From 8ab6af1ef30ddac265fced573f56687f2a1af09a Mon Sep 17 00:00:00 2001 From: github-actions Date: Sun, 17 Nov 2024 00:36:56 +0000 Subject: [PATCH] update jsdoc and bundles to release v3.4.4 --- current/coverage/index.html | 26 +- .../src/Exceptions/ErrorService.js.html | 2 +- current/coverage/src/Exceptions/index.html | 2 +- current/coverage/src/Formats/WKT.js.html | 2 +- current/coverage/src/Formats/WPS.js.html | 2 +- current/coverage/src/Formats/XLS.js.html | 2 +- .../src/Formats/XLS/AbstractService.js.html | 2 +- .../XLS/LocationUtilityService.js.html | 2 +- .../GeocodeFilterExtension.js.html | 2 +- .../GeocodeRequest.js.html | 2 +- .../ReverseGeocodeRequest.js.html | 2 +- .../XLS/LocationUtilityService/index.html | 2 +- .../model/Address.js.html | 2 +- .../model/Position.js.html | 2 +- .../model/Preference.js.html | 2 +- .../LocationUtilityService/model/index.html | 2 +- .../coverage/src/Formats/XLS/Request.js.html | 2 +- .../src/Formats/XLS/RequestHeader.js.html | 2 +- .../src/Formats/XLS/RouteService.js.html | 2 +- .../DetermineRouteRequest.js.html | 2 +- .../src/Formats/XLS/RouteService/index.html | 2 +- .../XLS/RouteService/model/RoutePlan.js.html | 2 +- .../Formats/XLS/RouteService/model/index.html | 2 +- current/coverage/src/Formats/XLS/index.html | 2 +- current/coverage/src/Formats/XML.js.html | 2 +- current/coverage/src/Formats/index.html | 2 +- current/coverage/src/Gp.js.html | 2 +- current/coverage/src/Protocols/JSONP.js.html | 2 +- .../coverage/src/Protocols/Protocol.js.html | 2 +- current/coverage/src/Protocols/XHR.js.html | 2 +- current/coverage/src/Protocols/index.html | 2 +- .../coverage/src/Services/Alti/Alti.js.html | 2 +- .../Alti/Formats/AltiResponseReader.js.html | 2 +- .../src/Services/Alti/Formats/index.html | 2 +- .../Alti/Request/AltiRequestFactory.js.html | 2 +- .../Alti/Request/AltiRequestREST.js.html | 2 +- .../Alti/Request/AltiRequestWPS.js.html | 2 +- .../src/Services/Alti/Request/index.html | 2 +- .../model/AltiElevationRequest.js.html | 2 +- .../Request/model/AltiProfilRequest.js.html | 2 +- .../Alti/Request/model/AltiRequest.js.html | 2 +- .../Services/Alti/Request/model/index.html | 2 +- .../Alti/Response/AltiResponseFactory.js.html | 2 +- .../src/Services/Alti/Response/index.html | 2 +- .../Alti/Response/model/AltiResponse.js.html | 2 +- .../Alti/Response/model/Elevation.js.html | 2 +- .../Alti/Response/model/Measure.js.html | 2 +- .../Services/Alti/Response/model/index.html | 2 +- current/coverage/src/Services/Alti/index.html | 2 +- .../AutoComplete/AutoComplete.js.html | 2 +- .../AutoCompleteResponseFactory.js.html | 2 +- .../Services/AutoComplete/Response/index.html | 2 +- .../model/AutoCompleteResponse.js.html | 2 +- .../Response/model/SuggestedLocation.js.html | 2 +- .../AutoComplete/Response/model/index.html | 2 +- .../src/Services/AutoComplete/index.html | 2 +- .../src/Services/CommonService.js.html | 2 +- .../src/Services/Config/Config.js.html | 2 +- .../Services/Config/ConfigInterface.js.html | 40 +- .../coverage/src/Services/Config/index.html | 26 +- .../src/Services/DefaultUrlService.js.html | 2 +- .../Formats/GeocodeResponseParser.js.html | 2 +- .../src/Services/Geocode/Formats/index.html | 2 +- .../src/Services/Geocode/Geocode.js.html | 2 +- .../Geocode/Request/GeocodeLocation.js.html | 2 +- .../Request/GeocodeRequestFactory.js.html | 2 +- .../Request/GeocodeRequestREST.js.html | 2 +- .../src/Services/Geocode/Request/index.html | 2 +- .../Request/model/GeocodeParamREST.js.html | 2 +- .../Request/model/PositionOfInterest.js.html | 2 +- .../Request/model/StreetAddress.js.html | 2 +- .../Services/Geocode/Request/model/index.html | 2 +- .../Response/GeocodeResponseFactory.js.html | 2 +- .../src/Services/Geocode/Response/index.html | 2 +- .../Response/model/GeocodeResponse.js.html | 2 +- .../Response/model/GeocodedLocation.js.html | 2 +- .../Geocode/Response/model/index.html | 2 +- .../Services/Geocode/ReverseGeocode.js.html | 2 +- .../coverage/src/Services/Geocode/index.html | 2 +- .../ProcessIsoCurve/ProcessIsoCurve.js.html | 2 +- .../Request/ProcessIsoCurveRequest.js.html | 2 +- .../ProcessIsoCurve/Request/index.html | 2 +- .../model/ProcessIsoCurveParam.js.html | 2 +- .../ProcessIsoCurve/Request/model/index.html | 2 +- .../ProcessIsoCurveResponseFactory.js.html | 2 +- .../ProcessIsoCurve/Response/index.html | 2 +- .../model/ProcessIsoCurveResponse.js.html | 2 +- .../ProcessIsoCurve/Response/model/index.html | 2 +- .../src/Services/ProcessIsoCurve/index.html | 2 +- .../Route/Request/RouteRequestFactory.js.html | 2 +- .../Route/Request/RouteRequestREST.js.html | 2 +- .../src/Services/Route/Request/index.html | 2 +- .../Request/model/RouteParamREST.js.html | 2 +- .../Services/Route/Request/model/index.html | 2 +- .../Response/RouteResponseFactory.js.html | 2 +- .../src/Services/Route/Response/index.html | 2 +- .../Response/model/RouteInstruction.js.html | 2 +- .../Response/model/RouteResponse.js.html | 2 +- .../Services/Route/Response/model/index.html | 2 +- .../coverage/src/Services/Route/Route.js.html | 2 +- .../coverage/src/Services/Route/index.html | 2 +- .../coverage/src/Services/Services.js.html | 2 +- current/coverage/src/Services/index.html | 2 +- current/coverage/src/Utils/Helper.js.html | 2 +- .../src/Utils/LoggerByDefault.js.html | 2 +- .../src/Utils/MessagesResources.js.html | 2 +- current/coverage/src/Utils/index.html | 2 +- current/coverage/src/index.html | 2 +- current/dist/GpServices-map.js | 8 +- current/dist/GpServices-src.js | 28 +- current/dist/GpServices.js | 8 +- current/jsdoc/Gp.BBox.html | 2 +- current/jsdoc/Gp.Circle.html | 2 +- current/jsdoc/Gp.Error.html | 2 +- current/jsdoc/Gp.Point.html | 2 +- current/jsdoc/Gp.Services.Alti.Elevation.html | 2 +- current/jsdoc/Gp.Services.Alti.Measure.html | 2 +- current/jsdoc/Gp.Services.Alti.html | 2 +- current/jsdoc/Gp.Services.AltiResponse.html | 2 +- ...rvices.AutoComplete.SuggestedLocation.html | 2 +- current/jsdoc/Gp.Services.AutoComplete.html | 2 +- .../Gp.Services.AutoCompleteResponse.html | 2 +- current/jsdoc/Gp.Services.CommonService.html | 2 +- current/jsdoc/Gp.Services.Config.Base.html | 2 +- .../jsdoc/Gp.Services.Config.Constraint.html | 2 +- current/jsdoc/Gp.Services.Config.Format.html | 2 +- current/jsdoc/Gp.Services.Config.Layer.html | 2 +- current/jsdoc/Gp.Services.Config.Legend.html | 2 +- .../jsdoc/Gp.Services.Config.Metadata.html | 2 +- .../jsdoc/Gp.Services.Config.Originator.html | 2 +- current/jsdoc/Gp.Services.Config.Service.html | 2 +- current/jsdoc/Gp.Services.Config.Style.html | 2 +- .../jsdoc/Gp.Services.Config.Territory.html | 2 +- .../jsdoc/Gp.Services.Config.Thematic.html | 2 +- .../jsdoc/Gp.Services.Config.TileMatrix.html | 2 +- .../Gp.Services.Config.TileMatrixLimit.html | 2 +- .../Gp.Services.Config.TileMatrixSet.html | 2 +- current/jsdoc/Gp.Services.Config.html | 2 +- current/jsdoc/Gp.Services.DefaultUrl.html | 2 +- .../Gp.Services.Geocode.GeocodedLocation.html | 2 +- current/jsdoc/Gp.Services.Geocode.html | 2 +- .../jsdoc/Gp.Services.GeocodeResponse.html | 2 +- .../jsdoc/Gp.Services.GetConfigInterface.html | 14 +- .../jsdoc/Gp.Services.IsoCurveResponse.html | 2 +- .../jsdoc/Gp.Services.ProcessIsoCurve.html | 2 +- current/jsdoc/Gp.Services.ReverseGeocode.html | 2 +- .../Gp.Services.Route.RouteInstruction.html | 2 +- current/jsdoc/Gp.Services.Route.html | 2 +- current/jsdoc/Gp.Services.RouteResponse.html | 2 +- current/jsdoc/global.html | 2 +- current/jsdoc/index.html | 2 +- current/jsdoc/module-Gp.html | 2 +- current/jsdoc/module-Helper.html | 2 +- current/jsdoc/module-Services.html | 2 +- current/jsdoc/module-XHR.html | 2 +- current/test-report/index.html | 2 +- current/test-report/index.json | 1112 +- latest | 2 +- v3.4.4/dist/GpServices-map.js | 893 + v3.4.4/dist/GpServices-src.js | 15990 ++++++++++++++++ v3.4.4/dist/GpServices.js | 30 + v3.4.4/jsdoc/Gp.BBox.html | 2848 +++ v3.4.4/jsdoc/Gp.Circle.html | 2825 +++ v3.4.4/jsdoc/Gp.Error.html | 2964 +++ v3.4.4/jsdoc/Gp.Point.html | 2802 +++ v3.4.4/jsdoc/Gp.Services.Alti.Elevation.html | 2850 +++ v3.4.4/jsdoc/Gp.Services.Alti.Measure.html | 2850 +++ v3.4.4/jsdoc/Gp.Services.Alti.html | 3593 ++++ v3.4.4/jsdoc/Gp.Services.AltiResponse.html | 2779 +++ ...rvices.AutoComplete.SuggestedLocation.html | 2943 +++ v3.4.4/jsdoc/Gp.Services.AutoComplete.html | 3620 ++++ .../Gp.Services.AutoCompleteResponse.html | 2779 +++ v3.4.4/jsdoc/Gp.Services.CommonService.html | 3384 ++++ v3.4.4/jsdoc/Gp.Services.Config.Base.html | 2730 +++ .../jsdoc/Gp.Services.Config.Constraint.html | 2873 +++ v3.4.4/jsdoc/Gp.Services.Config.Format.html | 2804 +++ v3.4.4/jsdoc/Gp.Services.Config.Layer.html | 3592 ++++ v3.4.4/jsdoc/Gp.Services.Config.Legend.html | 2827 +++ v3.4.4/jsdoc/Gp.Services.Config.Metadata.html | 2804 +++ .../jsdoc/Gp.Services.Config.Originator.html | 2873 +++ v3.4.4/jsdoc/Gp.Services.Config.Service.html | 2827 +++ v3.4.4/jsdoc/Gp.Services.Config.Style.html | 2850 +++ .../jsdoc/Gp.Services.Config.Territory.html | 3084 +++ v3.4.4/jsdoc/Gp.Services.Config.Thematic.html | 2730 +++ .../jsdoc/Gp.Services.Config.TileMatrix.html | 2919 +++ .../Gp.Services.Config.TileMatrixLimit.html | 2850 +++ .../Gp.Services.Config.TileMatrixSet.html | 2850 +++ v3.4.4/jsdoc/Gp.Services.Config.html | 3660 ++++ v3.4.4/jsdoc/Gp.Services.DefaultUrl.html | 3582 ++++ .../Gp.Services.Geocode.GeocodedLocation.html | 2906 +++ v3.4.4/jsdoc/Gp.Services.Geocode.html | 3809 ++++ v3.4.4/jsdoc/Gp.Services.GeocodeResponse.html | 2779 +++ .../jsdoc/Gp.Services.GetConfigInterface.html | 4579 +++++ .../jsdoc/Gp.Services.IsoCurveResponse.html | 2917 +++ v3.4.4/jsdoc/Gp.Services.ProcessIsoCurve.html | 4086 ++++ v3.4.4/jsdoc/Gp.Services.ReverseGeocode.html | 4329 +++++ .../Gp.Services.Route.RouteInstruction.html | 2885 +++ v3.4.4/jsdoc/Gp.Services.Route.html | 4215 ++++ v3.4.4/jsdoc/Gp.Services.RouteResponse.html | 2871 +++ .../fonts/glyphicons-halflings-regular.eot | Bin 0 -> 20290 bytes .../fonts/glyphicons-halflings-regular.svg | 229 + .../fonts/glyphicons-halflings-regular.ttf | Bin 0 -> 41236 bytes .../fonts/glyphicons-halflings-regular.woff | Bin 0 -> 23292 bytes v3.4.4/jsdoc/global.html | 3269 ++++ v3.4.4/jsdoc/images/entete.png | Bin 0 -> 119357 bytes v3.4.4/jsdoc/images/logoIGN.png | Bin 0 -> 7387 bytes v3.4.4/jsdoc/images/logoIGNsmall.png | Bin 0 -> 1010 bytes v3.4.4/jsdoc/images/showLeftMenu.png | Bin 0 -> 502 bytes v3.4.4/jsdoc/index.html | 2802 +++ v3.4.4/jsdoc/module-Gp.html | 2871 +++ v3.4.4/jsdoc/module-Helper.html | 3220 ++++ v3.4.4/jsdoc/module-Services.html | 8343 ++++++++ v3.4.4/jsdoc/module-XHR.html | 3137 +++ v3.4.4/jsdoc/scripts/bootstrap.min.js | 7 + v3.4.4/jsdoc/scripts/jquery.min.js | 6 + v3.4.4/jsdoc/scripts/jquery.min.map | 1 + v3.4.4/jsdoc/scripts/linenumber.js | 29 + v3.4.4/jsdoc/scripts/main.js | 73 + .../scripts/prettify/Apache-License-2.0.txt | 202 + v3.4.4/jsdoc/scripts/prettify/lang-css.js | 2 + v3.4.4/jsdoc/scripts/prettify/prettify.js | 28 + v3.4.4/jsdoc/scripts/underscore-min.js | 6 + v3.4.4/jsdoc/scripts/underscore-min.map | 1 + v3.4.4/jsdoc/styles/bootstrap.min.css | 7 + v3.4.4/jsdoc/styles/jaguar.css | 349 + v3.4.4/jsdoc/styles/prettify-jsdoc.css | 111 + v3.4.4/jsdoc/styles/prettify-tomorrow.css | 132 + v3.4.4/jsdoc/styles/sfd.css | 772 + 228 files changed, 162763 insertions(+), 777 deletions(-) create mode 100644 v3.4.4/dist/GpServices-map.js create mode 100644 v3.4.4/dist/GpServices-src.js create mode 100644 v3.4.4/dist/GpServices.js create mode 100644 v3.4.4/jsdoc/Gp.BBox.html create mode 100644 v3.4.4/jsdoc/Gp.Circle.html create mode 100644 v3.4.4/jsdoc/Gp.Error.html create mode 100644 v3.4.4/jsdoc/Gp.Point.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Alti.Elevation.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Alti.Measure.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Alti.html create mode 100644 v3.4.4/jsdoc/Gp.Services.AltiResponse.html create mode 100644 v3.4.4/jsdoc/Gp.Services.AutoComplete.SuggestedLocation.html create mode 100644 v3.4.4/jsdoc/Gp.Services.AutoComplete.html create mode 100644 v3.4.4/jsdoc/Gp.Services.AutoCompleteResponse.html create mode 100644 v3.4.4/jsdoc/Gp.Services.CommonService.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Config.Base.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Config.Constraint.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Config.Format.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Config.Layer.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Config.Legend.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Config.Metadata.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Config.Originator.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Config.Service.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Config.Style.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Config.Territory.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Config.Thematic.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Config.TileMatrix.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Config.TileMatrixLimit.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Config.TileMatrixSet.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Config.html create mode 100644 v3.4.4/jsdoc/Gp.Services.DefaultUrl.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Geocode.GeocodedLocation.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Geocode.html create mode 100644 v3.4.4/jsdoc/Gp.Services.GeocodeResponse.html create mode 100644 v3.4.4/jsdoc/Gp.Services.GetConfigInterface.html create mode 100644 v3.4.4/jsdoc/Gp.Services.IsoCurveResponse.html create mode 100644 v3.4.4/jsdoc/Gp.Services.ProcessIsoCurve.html create mode 100644 v3.4.4/jsdoc/Gp.Services.ReverseGeocode.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Route.RouteInstruction.html create mode 100644 v3.4.4/jsdoc/Gp.Services.Route.html create mode 100644 v3.4.4/jsdoc/Gp.Services.RouteResponse.html create mode 100644 v3.4.4/jsdoc/fonts/glyphicons-halflings-regular.eot create mode 100644 v3.4.4/jsdoc/fonts/glyphicons-halflings-regular.svg create mode 100644 v3.4.4/jsdoc/fonts/glyphicons-halflings-regular.ttf create mode 100644 v3.4.4/jsdoc/fonts/glyphicons-halflings-regular.woff create mode 100644 v3.4.4/jsdoc/global.html create mode 100644 v3.4.4/jsdoc/images/entete.png create mode 100644 v3.4.4/jsdoc/images/logoIGN.png create mode 100644 v3.4.4/jsdoc/images/logoIGNsmall.png create mode 100644 v3.4.4/jsdoc/images/showLeftMenu.png create mode 100644 v3.4.4/jsdoc/index.html create mode 100644 v3.4.4/jsdoc/module-Gp.html create mode 100644 v3.4.4/jsdoc/module-Helper.html create mode 100644 v3.4.4/jsdoc/module-Services.html create mode 100644 v3.4.4/jsdoc/module-XHR.html create mode 100644 v3.4.4/jsdoc/scripts/bootstrap.min.js create mode 100644 v3.4.4/jsdoc/scripts/jquery.min.js create mode 100644 v3.4.4/jsdoc/scripts/jquery.min.map create mode 100644 v3.4.4/jsdoc/scripts/linenumber.js create mode 100644 v3.4.4/jsdoc/scripts/main.js create mode 100644 v3.4.4/jsdoc/scripts/prettify/Apache-License-2.0.txt create mode 100644 v3.4.4/jsdoc/scripts/prettify/lang-css.js create mode 100644 v3.4.4/jsdoc/scripts/prettify/prettify.js create mode 100644 v3.4.4/jsdoc/scripts/underscore-min.js create mode 100644 v3.4.4/jsdoc/scripts/underscore-min.map create mode 100644 v3.4.4/jsdoc/styles/bootstrap.min.css create mode 100644 v3.4.4/jsdoc/styles/jaguar.css create mode 100644 v3.4.4/jsdoc/styles/prettify-jsdoc.css create mode 100644 v3.4.4/jsdoc/styles/prettify-tomorrow.css create mode 100644 v3.4.4/jsdoc/styles/sfd.css diff --git a/current/coverage/index.html b/current/coverage/index.html index 969dd550..24f7d6cd 100644 --- a/current/coverage/index.html +++ b/current/coverage/index.html @@ -23,16 +23,16 @@

All files

- 44.61% + 44.6% Statements - 1281/2871 + 1281/2872
- 28.99% + 28.89% Branches - 484/1669 + 484/1675
@@ -44,9 +44,9 @@

All files

- 44.61% + 44.6% Lines - 1281/2871 + 1281/2872
@@ -365,17 +365,17 @@

All files

src/Services/Config - +
- 4.1% - 8/195 + 4.08% + 8/196 0% - 0/102 + 0/108 0% 0/29 - 4.1% - 8/195 + 4.08% + 8/196 @@ -641,7 +641,7 @@

All files

\ No newline at end of file +Mochawesome Report
\ No newline at end of file diff --git a/current/test-report/index.json b/current/test-report/index.json index cdd29e1d..92b22245 100644 --- a/current/test-report/index.json +++ b/current/test-report/index.json @@ -5,9 +5,9 @@ "passes": 102, "pending": 9, "failures": 0, - "start": "2024-08-21T19:57:52.109Z", - "end": "2024-08-21T19:57:52.192Z", - "duration": 83, + "start": "2024-11-17T00:36:25.236Z", + "end": "2024-11-17T00:36:25.325Z", + "duration": 89, "testsRegistered": 111, "passPercent": 100, "pendingPercent": 8.108108108108109, @@ -18,7 +18,7 @@ }, "results": [ { - "uuid": "4d3f5144-a5fe-47e0-b107-b950a3bf060c", + "uuid": "52288f5f-2c73-4816-a906-9b2170eed3cd", "title": "", "fullFile": "", "file": "", @@ -27,19 +27,19 @@ "tests": [], "suites": [ { - "uuid": "7dedfeb5-1f85-4d5c-b1f3-17ca2f745296", + "uuid": "bcc627ca-0b4b-4145-bc2d-6d09bd2740e5", "title": "-- Test for WKT --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "8f35c0b9-d2a3-4642-bce8-9dacb1205c54", + "uuid": "bd07898b-733b-4f16-8cf7-c0d51e02b618", "title": "WKT", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -56,8 +56,8 @@ "context": null, "code": "Formats_WKT.toJson(strWktLine, function (json) {\n Object(external_chai_[\"expect\"])(json).to.have.property(\"type\", \"LineString\");\n Object(external_chai_[\"expect\"])(json).to.have.property(\"coordinates\");\n Object(external_chai_[\"expect\"])(json.coordinates).to.be.an(\"array\");\n Object(external_chai_[\"expect\"])(json.coordinates).to.have.length(2);\n Object(external_chai_[\"expect\"])(json.coordinates[0][0]).to.equal(2.416907);\n Object(external_chai_[\"expect\"])(json.coordinates[0][1]).to.equal(48.846577);\n Object(external_chai_[\"expect\"])(json.coordinates[1][0]).to.equal(2.416916);\n Object(external_chai_[\"expect\"])(json.coordinates[1][1]).to.equal(48.846613);\n});", "err": {}, - "uuid": "0eee4796-8cde-4d8a-977e-831bad09fbbd", - "parentUUID": "8f35c0b9-d2a3-4642-bce8-9dacb1205c54", + "uuid": "3b8ec64f-e92f-4830-8d34-e8191d907429", + "parentUUID": "bd07898b-733b-4f16-8cf7-c0d51e02b618", "isHook": false, "skipped": false }, @@ -65,7 +65,7 @@ "title": "parse un polygone", "fullTitle": "-- Test for WKT -- WKT parse un polygone", "timedOut": false, - "duration": 1, + "duration": 0, "state": "passed", "speed": "fast", "pass": true, @@ -74,8 +74,8 @@ "context": null, "code": "Formats_WKT.toJson(strWktPolygon, function (json) {\n Object(external_chai_[\"expect\"])(json).to.have.property(\"type\", \"Polygon\");\n Object(external_chai_[\"expect\"])(json).to.have.property(\"coordinates\");\n Object(external_chai_[\"expect\"])(json.coordinates).to.be.an(\"array\");\n Object(external_chai_[\"expect\"])(json.coordinates[0]).to.have.length(289);\n Object(external_chai_[\"expect\"])(json.coordinates[0][0][0]).to.equal(-34);\n Object(external_chai_[\"expect\"])(json.coordinates[0][0][1]).to.equal(127);\n});", "err": {}, - "uuid": "07de15d5-6fdf-4201-b6d7-790fbb3b3fb0", - "parentUUID": "8f35c0b9-d2a3-4642-bce8-9dacb1205c54", + "uuid": "6149ae7c-1019-433e-9ead-35499e40da61", + "parentUUID": "bd07898b-733b-4f16-8cf7-c0d51e02b618", "isHook": false, "skipped": false }, @@ -92,8 +92,8 @@ "context": null, "code": "var onSuccess = function (json) {\n Object(external_chai_[\"expect\"])(json).to.have.property(\"type\", \"LineString\");\n Object(external_chai_[\"expect\"])(json).to.have.property(\"coordinates\");\n Object(external_chai_[\"expect\"])(json.coordinates).to.be.an(\"array\");\n Object(external_chai_[\"expect\"])(json.coordinates).to.have.length(2);\n Object(external_chai_[\"expect\"])(json.coordinates[0][0]).to.equal(2);\n Object(external_chai_[\"expect\"])(json.coordinates[0][1]).to.equal(48);\n Object(external_chai_[\"expect\"])(json.coordinates[1][0]).to.equal(2);\n Object(external_chai_[\"expect\"])(json.coordinates[1][1]).to.equal(48);\n done();\n};\nvar onError = function (e) {\n console.log(e);\n Object(external_chai_[\"expect\"])(false).to.be.true;\n done(e);\n};\nFormats_WKT.toJson(\"LINESTRING (2 48, 2 48)\", onSuccess, onError);", "err": {}, - "uuid": "33f03ac5-d33b-41ab-b4f1-1351088e78af", - "parentUUID": "8f35c0b9-d2a3-4642-bce8-9dacb1205c54", + "uuid": "ac581f9b-1d1a-4efc-9bc4-9ec585a8edf5", + "parentUUID": "bd07898b-733b-4f16-8cf7-c0d51e02b618", "isHook": false, "skipped": false }, @@ -110,8 +110,8 @@ "context": null, "code": "var onSuccess = function (e) {};\nvar onError = function (e) {\n Object(external_chai_[\"should\"])().exist(e);\n Object(external_chai_[\"expect\"])(e.message).to.be.equal(\"La chaine WKT n'est pas renseignée !\");\n};\nFormats_WKT.toJson(\"\", onSuccess, onError);", "err": {}, - "uuid": "584d1f3d-7566-411f-a109-375dfdd4e382", - "parentUUID": "8f35c0b9-d2a3-4642-bce8-9dacb1205c54", + "uuid": "99463858-bb33-4e14-bfd3-b6968846b748", + "parentUUID": "bd07898b-733b-4f16-8cf7-c0d51e02b618", "isHook": false, "skipped": false }, @@ -128,8 +128,8 @@ "context": null, "code": "var onSuccess = function (e) {};\nvar onError = function (e) {\n Object(external_chai_[\"should\"])().exist(e);\n Object(external_chai_[\"expect\"])(e.message).to.be.equal(\"La liste des points est vide !\");\n};\nFormats_WKT.toJson(\"LINESTRING ()\", onSuccess, onError);", "err": {}, - "uuid": "b004e03f-ee10-4a53-8f79-b7cb5aaef361", - "parentUUID": "8f35c0b9-d2a3-4642-bce8-9dacb1205c54", + "uuid": "712c2924-3116-4060-9a9d-6f7b0a094a08", + "parentUUID": "bd07898b-733b-4f16-8cf7-c0d51e02b618", "isHook": false, "skipped": false }, @@ -146,8 +146,8 @@ "context": null, "code": "var onSuccess = function (e) {};\nvar onError = function (e) {\n Object(external_chai_[\"should\"])().exist(e);\n Object(external_chai_[\"expect\"])(e).to.be.equal(\"Erreur de parsing JSON !\");\n};\nFormats_WKT.toJson(\" (45 2)\", onSuccess, onError);", "err": {}, - "uuid": "2e98cbc0-4a68-441f-a7ee-9629c93e143e", - "parentUUID": "8f35c0b9-d2a3-4642-bce8-9dacb1205c54", + "uuid": "5328fbaf-b62e-47f8-9b1d-4882af3813dc", + "parentUUID": "bd07898b-733b-4f16-8cf7-c0d51e02b618", "isHook": false, "skipped": false }, @@ -155,7 +155,7 @@ "title": "erreur : 2 (erreur de parsing json !)", "fullTitle": "-- Test for WKT -- WKT erreur : 2 (erreur de parsing json !)", "timedOut": false, - "duration": 0, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -164,8 +164,8 @@ "context": null, "code": "var onSuccess = function (e) {};\nvar onError = function (e) {\n Object(external_chai_[\"should\"])().exist(e);\n Object(external_chai_[\"expect\"])(e).to.be.equal(\"Erreur de parsing JSON !\");\n};\nFormats_WKT.toJson(\"LINESTRING ((45 2),(46 3))\", onSuccess, onError);", "err": {}, - "uuid": "c3bc7b4a-ef9b-4e16-871b-b1cacd3d4c01", - "parentUUID": "8f35c0b9-d2a3-4642-bce8-9dacb1205c54", + "uuid": "8af4406c-0ee4-44c8-b077-47cae3f667c8", + "parentUUID": "bd07898b-733b-4f16-8cf7-c0d51e02b618", "isHook": false, "skipped": false }, @@ -173,7 +173,7 @@ "title": "erreur : 3 (erreur de parsing json !)", "fullTitle": "-- Test for WKT -- WKT erreur : 3 (erreur de parsing json !)", "timedOut": false, - "duration": 1, + "duration": 0, "state": "passed", "speed": "fast", "pass": true, @@ -182,27 +182,27 @@ "context": null, "code": "var onSuccess = function (e) {};\nvar onError = function (e) {\n Object(external_chai_[\"should\"])().exist(e);\n Object(external_chai_[\"expect\"])(e).to.be.equal(\"Erreur de parsing JSON !\");\n};\nFormats_WKT.toJson(\" \", onSuccess, onError);", "err": {}, - "uuid": "68e3383c-a665-4e6e-85ee-290b1775cbad", - "parentUUID": "8f35c0b9-d2a3-4642-bce8-9dacb1205c54", + "uuid": "dc34433d-f967-4341-9df9-9541d6aa33c4", + "parentUUID": "bd07898b-733b-4f16-8cf7-c0d51e02b618", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "0eee4796-8cde-4d8a-977e-831bad09fbbd", - "07de15d5-6fdf-4201-b6d7-790fbb3b3fb0", - "33f03ac5-d33b-41ab-b4f1-1351088e78af", - "584d1f3d-7566-411f-a109-375dfdd4e382", - "b004e03f-ee10-4a53-8f79-b7cb5aaef361", - "2e98cbc0-4a68-441f-a7ee-9629c93e143e", - "c3bc7b4a-ef9b-4e16-871b-b1cacd3d4c01", - "68e3383c-a665-4e6e-85ee-290b1775cbad" + "3b8ec64f-e92f-4830-8d34-e8191d907429", + "6149ae7c-1019-433e-9ead-35499e40da61", + "ac581f9b-1d1a-4efc-9bc4-9ec585a8edf5", + "99463858-bb33-4e14-bfd3-b6968846b748", + "712c2924-3116-4060-9a9d-6f7b0a094a08", + "5328fbaf-b62e-47f8-9b1d-4882af3813dc", + "8af4406c-0ee4-44c8-b077-47cae3f667c8", + "dc34433d-f967-4341-9df9-9541d6aa33c4" ], "failures": [], "pending": [], "skipped": [], - "duration": 5, + "duration": 4, "root": false, "rootEmpty": false, "_timeout": 2000 @@ -218,19 +218,19 @@ "_timeout": 2000 }, { - "uuid": "8af45902-1c5c-4cde-9e67-c99561fa7924", + "uuid": "d3b418ba-72ca-4ef6-9ffa-70e83a2218a3", "title": "-- Test for WPS --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "ee375e4b-b552-415b-b95f-fe16cdbf7170", + "uuid": "39d43c9d-7b22-462b-ad10-665ef5805752", "title": "TODO : WPS", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -247,8 +247,8 @@ "context": null, "code": "", "err": {}, - "uuid": "8483c803-ab08-4623-9d28-e3d166463475", - "parentUUID": "ee375e4b-b552-415b-b95f-fe16cdbf7170", + "uuid": "11f81e70-780c-4859-a34b-51c65666c320", + "parentUUID": "39d43c9d-7b22-462b-ad10-665ef5805752", "isHook": false, "skipped": false } @@ -257,7 +257,7 @@ "passes": [], "failures": [], "pending": [ - "8483c803-ab08-4623-9d28-e3d166463475" + "11f81e70-780c-4859-a34b-51c65666c320" ], "skipped": [], "duration": 0, @@ -276,10 +276,10 @@ "_timeout": 2000 }, { - "uuid": "d120148b-8775-41b3-8cda-fe0fc67a01d7", + "uuid": "b42f8f4b-cf46-46df-9b15-a583fe267844", "title": "-- Test XLS Geocode Request --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [ { "title": "\"before all\" hook", @@ -294,8 +294,8 @@ "context": null, "code": "hXML = new _src_Formats_XML__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"]();\ndone();", "err": {}, - "uuid": "2e351859-69cd-41a3-94ff-9ab477019123", - "parentUUID": "d120148b-8775-41b3-8cda-fe0fc67a01d7", + "uuid": "c5d54823-4da4-4a8f-aac8-38c2c545065c", + "parentUUID": "b42f8f4b-cf46-46df-9b15-a583fe267844", "isHook": true, "skipped": false } @@ -314,8 +314,8 @@ "context": null, "code": "hXML = null;", "err": {}, - "uuid": "da9b5c1e-c02a-4eca-82c7-b9e1b0390b4a", - "parentUUID": "d120148b-8775-41b3-8cda-fe0fc67a01d7", + "uuid": "9372457a-2127-442d-ae82-5bbc0258609b", + "parentUUID": "b42f8f4b-cf46-46df-9b15-a583fe267844", "isHook": true, "skipped": false } @@ -323,10 +323,10 @@ "tests": [], "suites": [ { - "uuid": "d9e49926-24ed-4380-bc97-500df0834a71", + "uuid": "968d064b-aa8c-486b-8686-4d28fba32bb8", "title": "-- XLS LocationUtilityService Geocode --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -334,7 +334,7 @@ "title": "Construction de la Requête avec objet LUS de type Direct (GeocodeRequest)", "fullTitle": "-- Test XLS Geocode Request -- -- XLS LocationUtilityService Geocode -- Construction de la Requête avec objet LUS de type Direct (GeocodeRequest)", "timedOut": false, - "duration": 3, + "duration": 2, "state": "passed", "speed": "fast", "pass": true, @@ -343,8 +343,8 @@ "context": null, "code": "// creation d'un objet de type Direct : GeocodeRequest\n// ajout de ce dernier dans le conteneur LocationUtilityService\n/*\n\n\n\n\n
\ntest\nParis\n
\n
\n
\n
\n*/\nvar lus = new _src_Formats_XLS_LocationUtilityService__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]();\nlus.addRequest(new _src_Formats_XLS_LocationUtilityService_GeocodeRequest__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"]({\n location: \"test\",\n returnFreeForm: true,\n filterOptions: {\n type: [\"PositionOfInterest\"],\n commune: \"Paris\"\n }\n}));\nvar options = {\n srsName: \"epsg:4326\",\n maximumResponses: 5\n};\nvar xls = new _src_Formats_XLS__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"](options);\nxls.namespace = false;\nxls.setService(lus);\n// parse\nhXML.setXMLString(xls.build());\nvar data = hXML.parse();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"XLS\");\nvar req = data[\"XLS\"][\"Request\"];\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req).to.have.property(\"GeocodeRequest\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"GeocodeRequest\"]).to.have.property(\"Address\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"GeocodeRequest\"][\"Address\"][\"attributes\"]).to.have.property(\"countryCode\", \"PositionOfInterest\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"GeocodeRequest\"][\"Address\"]).to.have.property(\"Place\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"GeocodeRequest\"][\"Address\"]).to.have.property(\"freeFormAddress\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"GeocodeRequest\"][\"Address\"][\"Place\"].textContent).to.equal(\"Paris\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"GeocodeRequest\"][\"Address\"][\"freeFormAddress\"].textContent).to.equal(\"test\");", "err": {}, - "uuid": "a344b02b-e553-4164-902f-4708362df2b4", - "parentUUID": "d9e49926-24ed-4380-bc97-500df0834a71", + "uuid": "5b685bec-56ef-45d2-8eaa-1f07580c0a31", + "parentUUID": "968d064b-aa8c-486b-8686-4d28fba32bb8", "isHook": false, "skipped": false }, @@ -352,7 +352,7 @@ "title": "Construction de la Requête sans objet LUS de type Direct", "fullTitle": "-- Test XLS Geocode Request -- -- XLS LocationUtilityService Geocode -- Construction de la Requête sans objet LUS de type Direct", "timedOut": false, - "duration": 2, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -361,30 +361,30 @@ "context": null, "code": "// creation d'un conteneur LocationUtilityService\n// le type de geocodage est determiné par le conteneur en fonction des param\n/*\n\n\n\n\n
\n\nrue de paris\n\n\n75000\nParis\n75000\n\n1.25 45.369\n2.36 46.2547\n\n
\n
\n
\n
\n*/\nvar settings = {\n location: {\n street: \"rue de paris\",\n number: 2,\n postalCode: 75000,\n city: \"Paris\"\n },\n filterOptions: {\n bbox: {\n left: 1.25,\n right: 2.36,\n bottom: 45.369,\n top: 46.2547\n },\n insee: 75000\n }\n};\nvar options = {\n srsName: \"epsg:4326\",\n maximumResponses: 5\n};\nvar xls = new _src_Formats_XLS__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"](options);\nxls.namespace = false;\nxls.setService(new _src_Formats_XLS_LocationUtilityService__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"](settings));\n// parse\nhXML.setXMLString(xls.build());\nvar data = hXML.parse();\n// console.log(data);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"XLS\");\nvar req = data[\"XLS\"][\"Request\"];\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req).to.have.property(\"GeocodeRequest\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"GeocodeRequest\"]).to.have.property(\"Address\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"GeocodeRequest\"][\"Address\"][\"attributes\"]).to.have.property(\"countryCode\", \"StreetAddress\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"GeocodeRequest\"][\"Address\"]).to.have.property(\"Place\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"GeocodeRequest\"][\"Address\"]).to.have.property(\"PostalCode\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"GeocodeRequest\"][\"Address\"]).to.have.property(\"StreetAddress\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"GeocodeRequest\"][\"Address\"]).to.have.property(\"gml:Envelope\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"GeocodeRequest\"][\"Address\"][\"Place\"][1].textContent).to.equal(\"Paris\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"GeocodeRequest\"][\"Address\"][\"Place\"][0].textContent).to.equal(\"75000\");\n// to finish...", "err": {}, - "uuid": "7b48e5d5-6e11-444a-97cb-b3eec79feda2", - "parentUUID": "d9e49926-24ed-4380-bc97-500df0834a71", + "uuid": "fc4e2f63-211b-48bc-a805-ecc808fe628c", + "parentUUID": "968d064b-aa8c-486b-8686-4d28fba32bb8", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "a344b02b-e553-4164-902f-4708362df2b4", - "7b48e5d5-6e11-444a-97cb-b3eec79feda2" + "5b685bec-56ef-45d2-8eaa-1f07580c0a31", + "fc4e2f63-211b-48bc-a805-ecc808fe628c" ], "failures": [], "pending": [], "skipped": [], - "duration": 5, + "duration": 3, "root": false, "rootEmpty": false, "_timeout": 2000 }, { - "uuid": "c8ccf048-d4d8-4a3e-a889-14abafd1626f", + "uuid": "153ce803-d1b0-4a90-b20e-b13bcdae7d1e", "title": "-- GeocodeRequest --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -392,7 +392,7 @@ "title": "Construction de la Requête Geocodage (sans filtres extensions)", "fullTitle": "-- Test XLS Geocode Request -- -- GeocodeRequest -- Construction de la Requête Geocodage (sans filtres extensions)", "timedOut": false, - "duration": 1, + "duration": 0, "state": "passed", "speed": "fast", "pass": true, @@ -401,8 +401,8 @@ "context": null, "code": "var req = new _src_Formats_XLS_LocationUtilityService_GeocodeRequest__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"]({\n location: \"saint mandé\",\n returnFreeForm: true,\n filterOptions: {\n type: [\"PositionOfInterest\"],\n bidon: \"test\",\n importance: \"8\"\n }\n});\n// parse\nhXML.setXMLString(req.toString());\nvar data = hXML.parse();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\n// Sans extension de filtre, le champs 'bidon' est en sorti :\n// out ->\n// \n//
\n// saint mandé\n//\t test\n// 8\n//
\n//
\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"GeocodeRequest\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"GeocodeRequest\"]).to.have.property(\"Address\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"GeocodeRequest\"][\"Address\"][\"Place\"][0][\"attributes\"]).to.have.property(\"type\", \"bidon\");", "err": {}, - "uuid": "3303befe-ea6b-4049-a792-ceea91b6fee5", - "parentUUID": "c8ccf048-d4d8-4a3e-a889-14abafd1626f", + "uuid": "6d8f0721-0bf3-4100-9ce3-1fd08663fe83", + "parentUUID": "153ce803-d1b0-4a90-b20e-b13bcdae7d1e", "isHook": false, "skipped": false }, @@ -419,8 +419,8 @@ "context": null, "code": "var ext = new _src_Formats_XLS_LocationUtilityService_GeocodeFilterExtension__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"]();\next.addFilterExtensions(new _src_Services_Geocode_Request_model_PositionOfInterest__WEBPACK_IMPORTED_MODULE_6__[/* default */ \"a\"]());\next.addFilterExtensions(new _src_Services_Geocode_Request_model_StreetAddress__WEBPACK_IMPORTED_MODULE_7__[/* default */ \"a\"]());\nvar req = new _src_Formats_XLS_LocationUtilityService_GeocodeRequest__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"]({\n location: \"saint mandé\",\n returnFreeForm: true,\n filterOptions: {\n type: [\"PositionOfInterest\", \"StreetAddress\"],\n bidon: \"test\",\n importance: \"8\",\n department: 94\n }\n});\nreq.addFilter(ext);\n// parse\nhXML.setXMLString(req.toString());\nvar data = hXML.parse();\n// console.log(data);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\n// Avec extension de filtre, le champs 'bidon' n'est pas pris en compte :\n// out ->\n// \n//
\n// saint mandé\n// 8\n// 94\n//
\n//
\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"GeocodeRequest\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"GeocodeRequest\"]).to.have.property(\"Address\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"GeocodeRequest\"][\"Address\"][\"Place\"]).length(2);\n// todo : filter 'bidon'", "err": {}, - "uuid": "2129316d-d063-47cf-b928-ea91a7bfe03d", - "parentUUID": "c8ccf048-d4d8-4a3e-a889-14abafd1626f", + "uuid": "2c1c4ada-6320-4790-81b4-e84ff355400e", + "parentUUID": "153ce803-d1b0-4a90-b20e-b13bcdae7d1e", "isHook": false, "skipped": false }, @@ -437,22 +437,22 @@ "context": null, "code": "var req = new _src_Formats_XLS_LocationUtilityService_GeocodeRequest__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"]({\n location: {\n postalCode: 94166,\n city: \"saint mandé\",\n street: \"avenue Pasteur\",\n number: 2\n },\n returnFreeForm: true,\n filterOptions: {\n type: [\"StreetAddress\"],\n importance: \"8\"\n }\n});\n// parse\nhXML.setXMLString(req.toString());\nvar data = hXML.parse();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\n//Requête structurée :\n// out ->\n// \n//\t
\n//\t\t\n//\t\t\t\tavenue Pasteur\n//\t\t\t\t\n//\t\t\n//\t\t8\n//\t\tsaint mandé\n//\t\t94166\n//\n//\t
\n//
\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"GeocodeRequest\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"GeocodeRequest\"]).to.have.property(\"Address\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"GeocodeRequest\"][\"Address\"]).to.have.property(\"StreetAddress\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"GeocodeRequest\"][\"Address\"]).to.have.property(\"PostalCode\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"GeocodeRequest\"][\"Address\"][\"StreetAddress\"]).to.have.property(\"Street\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"GeocodeRequest\"][\"Address\"][\"StreetAddress\"]).to.have.property(\"Building\");", "err": {}, - "uuid": "c0944521-8b12-4c50-8f92-56c16f884f96", - "parentUUID": "c8ccf048-d4d8-4a3e-a889-14abafd1626f", + "uuid": "0587257b-d2c2-42b7-aba1-8e6e3ae71789", + "parentUUID": "153ce803-d1b0-4a90-b20e-b13bcdae7d1e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "3303befe-ea6b-4049-a792-ceea91b6fee5", - "2129316d-d063-47cf-b928-ea91a7bfe03d", - "c0944521-8b12-4c50-8f92-56c16f884f96" + "6d8f0721-0bf3-4100-9ce3-1fd08663fe83", + "2c1c4ada-6320-4790-81b4-e84ff355400e", + "0587257b-d2c2-42b7-aba1-8e6e3ae71789" ], "failures": [], "pending": [], "skipped": [], - "duration": 3, + "duration": 2, "root": false, "rootEmpty": false, "_timeout": 2000 @@ -468,10 +468,10 @@ "_timeout": 2000 }, { - "uuid": "c361e3da-6f80-43dc-bc59-8777a2dac12b", + "uuid": "74086d31-1235-4c60-b1e8-8557f48c0528", "title": "-- Test XLS LocationUtilityService Request --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -488,8 +488,8 @@ "context": null, "code": "// objet LUS sans param.\n// exception générée :\n//\t* impossible de determiner le type de geocodage : Direct ou Inverse !?\n// \t* Type de Geocodage indefini !\nvar options = {\n srsName: \"epsg:4326\",\n maximumResponses: 5\n};\ntry {\n var xls = new _src_Formats_XLS__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"](options);\n xls.setService(new _src_Formats_XLS_LocationUtilityService__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]());\n xls.build();\n} catch (e) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(true).to.be.true;\n return; // FIXME !\n}\n// oups!\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;", "err": {}, - "uuid": "7279b84d-5fc7-4b43-81be-336b3eeecd0e", - "parentUUID": "c361e3da-6f80-43dc-bc59-8777a2dac12b", + "uuid": "9e5576b6-5372-4bcf-9f8f-bfbf75354767", + "parentUUID": "74086d31-1235-4c60-b1e8-8557f48c0528", "isHook": false, "skipped": false }, @@ -506,16 +506,16 @@ "context": null, "code": "var options = {\n srsName: \"epsg:4326\",\n maximumResponses: 5\n};\ntry {\n var xls = new _src_Formats_XLS__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"](options);\n xls.setService(new _src_Formats_XLS_LocationUtilityService__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]({\n location: \"test\"\n }));\n var result = xls.build();\n // parsing\n var hXml = new _src_Formats_XML__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"]();\n hXml.setXMLString(result);\n var data = hXml.parse();\n // test...\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"XLS\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"XLS\"][\"Request\"][\"attributes\"]).to.have.property(\"methodName\", \"GeocodeRequest\");\n} catch (e) {\n // oups!\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n return; // FIXME !\n}\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(true).to.be.true;", "err": {}, - "uuid": "7db94a73-a2f0-4c17-8004-4b52f1045a9e", - "parentUUID": "c361e3da-6f80-43dc-bc59-8777a2dac12b", + "uuid": "c668249d-df02-4837-a15a-8842b6b08f0e", + "parentUUID": "74086d31-1235-4c60-b1e8-8557f48c0528", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "7279b84d-5fc7-4b43-81be-336b3eeecd0e", - "7db94a73-a2f0-4c17-8004-4b52f1045a9e" + "9e5576b6-5372-4bcf-9f8f-bfbf75354767", + "c668249d-df02-4837-a15a-8842b6b08f0e" ], "failures": [], "pending": [], @@ -526,10 +526,10 @@ "_timeout": 2000 }, { - "uuid": "7fe4f786-8d37-407f-881e-1c717200c1bf", + "uuid": "a51128e9-04f0-41c8-a28f-d46fe937a0de", "title": "-- Test XLS ReverseGeocode Request --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [ { "title": "\"before all\" hook", @@ -544,8 +544,8 @@ "context": null, "code": "hXML = new _src_Formats_XML__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"]();\ndone();", "err": {}, - "uuid": "1b1e8e57-1972-4932-8f17-11f542ad15c8", - "parentUUID": "7fe4f786-8d37-407f-881e-1c717200c1bf", + "uuid": "2b8d479d-d27e-4b4e-89fe-5a2378bb2776", + "parentUUID": "a51128e9-04f0-41c8-a28f-d46fe937a0de", "isHook": true, "skipped": false } @@ -564,8 +564,8 @@ "context": null, "code": "hXML = null;", "err": {}, - "uuid": "ba275e77-fa0c-423d-a31f-9cb71609bd7d", - "parentUUID": "7fe4f786-8d37-407f-881e-1c717200c1bf", + "uuid": "a2733824-cb70-4895-9997-a2fd52b2fe07", + "parentUUID": "a51128e9-04f0-41c8-a28f-d46fe937a0de", "isHook": true, "skipped": false } @@ -573,10 +573,10 @@ "tests": [], "suites": [ { - "uuid": "6d5e3235-7344-4bf6-9655-98de98d0e351", + "uuid": "f3387c9d-1786-48e3-a816-1f5380374857", "title": "-- XLS LocationUtilityService ReverseGeocode --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -593,8 +593,8 @@ "context": null, "code": "// creation d\"un objet de type Inverse : ReverseGeocodeRequest\n// ajout de ce dernier dans le conteneur LocationUtilityService\nvar lus = new _src_Formats_XLS_LocationUtilityService__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]();\nlus.addRequest(new _src_Formats_XLS_LocationUtilityService_ReverseGeocodeRequest__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"]({\n position: {\n x: \"45.23565\",\n y: \"89.4587\"\n },\n filterOptions: {\n type: [\"PositionOfInterest\", \"StreetAddress\"],\n circle: {\n x: \"45.23565\",\n y: \"89.4587\",\n radius: 100\n }\n }\n}));\nvar options = {\n srsName: \"epsg:4326\",\n maximumResponses: 5\n};\nvar xls = new _src_Formats_XLS__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"](options);\nxls.namespace = false;\nxls.setService(lus);\n// parse\nhXML.setXMLString(xls.build());\nvar data = hXML.parse();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"XLS\");\nvar req = data[\"XLS\"][\"Request\"];\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req).to.have.property(\"ReverseGeocodeRequest\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"]).to.have.property(\"Position\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"Position\"]).to.have.property(\"gml:Point\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Point\"]).to.have.property(\"gml:pos\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Point\"][\"gml:pos\"].textContent).to.equal(\"45.23565 89.4587\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"Position\"]).to.have.property(\"gml:CircleByCenterPoint\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:CircleByCenterPoint\"]).to.have.property(\"gml:pos\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:CircleByCenterPoint\"][\"gml:pos\"].textContent).to.equal(\"45.23565 89.4587\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:CircleByCenterPoint\"]).to.have.property(\"gml:radius\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:CircleByCenterPoint\"][\"gml:radius\"].textContent).to.equal(\"100\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"]).to.have.property(\"ReverseGeocodePreference\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"ReverseGeocodePreference\"]).to.length(2);", "err": {}, - "uuid": "d3dfb7a5-53c2-45c3-b2bd-79aae0d52af3", - "parentUUID": "6d5e3235-7344-4bf6-9655-98de98d0e351", + "uuid": "95cdd156-efd0-44e3-bbda-c07d59923192", + "parentUUID": "f3387c9d-1786-48e3-a816-1f5380374857", "isHook": false, "skipped": false }, @@ -602,7 +602,7 @@ "title": "Construction de la Requête sans objet LUS de type Inverse", "fullTitle": "-- Test XLS ReverseGeocode Request -- -- XLS LocationUtilityService ReverseGeocode -- Construction de la Requête sans objet LUS de type Inverse", "timedOut": false, - "duration": 2, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -611,30 +611,30 @@ "context": null, "code": "// creation d\"un conteneur LocationUtilityService\n// le type de geocodage est determiné par le conteneur en fonction des param\nvar settings = {\n position: {\n x: \"45.23565\",\n y: \"89.4587\"\n },\n filterOptions: {\n type: [\"PositionOfInterest\", \"StreetAddress\"],\n circle: {\n x: \"45.23565\",\n y: \"89.4587\",\n radius: 100\n }\n }\n};\nvar options = {\n srsName: \"epsg:4326\",\n maximumResponses: 5\n};\nvar xls = new _src_Formats_XLS__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"](options);\nxls.namespace = false;\nxls.setService(new _src_Formats_XLS_LocationUtilityService__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"](settings));\n// parse\nhXML.setXMLString(xls.build());\nvar data = hXML.parse();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"XLS\");\nvar req = data[\"XLS\"][\"Request\"];\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req).to.have.property(\"ReverseGeocodeRequest\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"]).to.have.property(\"Position\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"Position\"]).to.have.property(\"gml:Point\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Point\"]).to.have.property(\"gml:pos\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Point\"][\"gml:pos\"].textContent).to.equal(\"45.23565 89.4587\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"Position\"]).to.have.property(\"gml:CircleByCenterPoint\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:CircleByCenterPoint\"]).to.have.property(\"gml:pos\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:CircleByCenterPoint\"][\"gml:pos\"].textContent).to.equal(\"45.23565 89.4587\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:CircleByCenterPoint\"]).to.have.property(\"gml:radius\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:CircleByCenterPoint\"][\"gml:radius\"].textContent).to.equal(\"100\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"]).to.have.property(\"ReverseGeocodePreference\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"ReverseGeocodeRequest\"][\"ReverseGeocodePreference\"]).to.length(2);", "err": {}, - "uuid": "84a467e4-c4f1-4d35-af23-ea18dfc26a44", - "parentUUID": "6d5e3235-7344-4bf6-9655-98de98d0e351", + "uuid": "cf82030f-752d-40d2-9a8e-4db19a385373", + "parentUUID": "f3387c9d-1786-48e3-a816-1f5380374857", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "d3dfb7a5-53c2-45c3-b2bd-79aae0d52af3", - "84a467e4-c4f1-4d35-af23-ea18dfc26a44" + "95cdd156-efd0-44e3-bbda-c07d59923192", + "cf82030f-752d-40d2-9a8e-4db19a385373" ], "failures": [], "pending": [], "skipped": [], - "duration": 4, + "duration": 3, "root": false, "rootEmpty": false, "_timeout": 2000 }, { - "uuid": "3b3924e5-075c-4e9f-a5e6-63fc8c4e1495", + "uuid": "8543098e-8ed3-42f0-b58e-4fb81716aa72", "title": "-- ReverseGeocode Request --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -651,8 +651,8 @@ "context": null, "code": "var req = new _src_Formats_XLS_LocationUtilityService_ReverseGeocodeRequest__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"]({\n position: {\n x: 2.39,\n y: 48.9\n },\n returnFreeForm: true,\n filterOptions: {\n type: [\"PositionOfInterest\"],\n bidon: \"test\",\n importance: \"8\"\n }\n});\n// console.log(req.toString());\n// parse\nhXML.setXMLString(req.toString());\nvar data = hXML.parse();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"ReverseGeocodeRequest\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"]).to.have.property(\"Position\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"]).to.have.property(\"gml:Point\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Point\"]).to.have.property(\"gml:pos\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Point\"][\"gml:pos\"].textContent).to.equal(\"2.39 48.9\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"]).to.have.property(\"ReverseGeocodePreference\");\n// todo pas de filtre bidon ou importance", "err": {}, - "uuid": "71f13eae-5146-4d75-81a1-7a7f9b4723b7", - "parentUUID": "3b3924e5-075c-4e9f-a5e6-63fc8c4e1495", + "uuid": "17cd2e15-d31d-49cb-92fa-5fa7ca18516c", + "parentUUID": "8543098e-8ed3-42f0-b58e-4fb81716aa72", "isHook": false, "skipped": false }, @@ -669,8 +669,8 @@ "context": null, "code": "var req = new _src_Formats_XLS_LocationUtilityService_ReverseGeocodeRequest__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"]({\n position: {\n x: 2.39,\n y: 48.9\n },\n returnFreeForm: true,\n filterOptions: {\n type: [\"PositionOfInterest\", \"StreetAddress\"],\n // circle : {x : 2.38, y : 49, radius : 100}\n bbox: {\n left: 2.38,\n right: 2.40,\n top: 49,\n bottom: 48\n }\n }\n});\n// console.log(req.toString());\n// out\n// \n// \t\n// \t\t2.39 48.9\n// \t\t\n//\t\t\t2.38 48\n//\t\t\t2.4 49\n//\t\t\n// \t\n// \tPositionOfInterest\n// \n// parse\nhXML.setXMLString(req.toString());\nvar data = hXML.parse();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"ReverseGeocodeRequest\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"]).to.have.property(\"Position\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"]).to.have.property(\"gml:Point\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"]).to.have.property(\"gml:Envelope\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Point\"]).to.have.property(\"gml:pos\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Point\"][\"gml:pos\"].textContent).to.equal(\"2.39 48.9\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Envelope\"]).to.have.property(\"gml:lowerCorner\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Envelope\"]).to.have.property(\"gml:upperCorner\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Envelope\"][\"gml:lowerCorner\"].textContent).to.equal(\"2.38 48\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Envelope\"][\"gml:upperCorner\"].textContent).to.equal(\"2.4 49\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"]).to.have.property(\"ReverseGeocodePreference\");", "err": {}, - "uuid": "59835fc4-5554-4597-9f68-8906dbd020b9", - "parentUUID": "3b3924e5-075c-4e9f-a5e6-63fc8c4e1495", + "uuid": "bf27e65c-231f-48b1-b361-6c028241fce6", + "parentUUID": "8543098e-8ed3-42f0-b58e-4fb81716aa72", "isHook": false, "skipped": false }, @@ -678,7 +678,7 @@ "title": "Construction de la Requête ReverseGeocodage avec filtre spatial : cercle", "fullTitle": "-- Test XLS ReverseGeocode Request -- -- ReverseGeocode Request -- Construction de la Requête ReverseGeocodage avec filtre spatial : cercle", "timedOut": false, - "duration": 0, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -687,8 +687,8 @@ "context": null, "code": "var req = new _src_Formats_XLS_LocationUtilityService_ReverseGeocodeRequest__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"]({\n position: {\n x: 2.39,\n y: 48.9\n },\n returnFreeForm: true,\n filterOptions: {\n type: [\"PositionOfInterest\", \"StreetAddress\"],\n circle: {\n x: 2.38,\n y: 49,\n radius: 100\n }\n }\n});\n// console.log(req.toString());\n// out\n// \n// \t\n// \t\t2.39 48.9\n// \t\t2.38 49100\n// \t\n// StreetAddress\n// \tPositionOfInterest\n// \n// parse\nhXML.setXMLString(req.toString());\nvar data = hXML.parse();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"ReverseGeocodeRequest\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"]).to.have.property(\"Position\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"]).to.have.property(\"gml:Point\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"]).to.have.property(\"gml:CircleByCenterPoint\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Point\"]).to.have.property(\"gml:pos\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Point\"][\"gml:pos\"].textContent).to.equal(\"2.39 48.9\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:CircleByCenterPoint\"]).to.have.property(\"gml:pos\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:CircleByCenterPoint\"]).to.have.property(\"gml:radius\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:CircleByCenterPoint\"][\"gml:pos\"].textContent).to.equal(\"2.38 49\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:CircleByCenterPoint\"][\"gml:radius\"].textContent).to.equal(\"100\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"]).to.have.property(\"ReverseGeocodePreference\");", "err": {}, - "uuid": "ee51bbc8-65c3-4048-8592-84a2dc6eaf9a", - "parentUUID": "3b3924e5-075c-4e9f-a5e6-63fc8c4e1495", + "uuid": "21a5e643-dca2-4377-8817-89de8b55442c", + "parentUUID": "8543098e-8ed3-42f0-b58e-4fb81716aa72", "isHook": false, "skipped": false }, @@ -705,23 +705,23 @@ "context": null, "code": "var req = new _src_Formats_XLS_LocationUtilityService_ReverseGeocodeRequest__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"]({\n position: {\n x: 2.39,\n y: 48.9\n },\n returnFreeForm: true,\n filterOptions: {\n type: [\"PositionOfInterest\", \"StreetAddress\"],\n polygon: [{\n x: 2.38,\n y: 49\n }, {\n x: 2.38,\n y: 49.1\n }, {\n x: 2.39,\n y: 49.1\n }, {\n x: 2.39,\n y: 49\n }, {\n x: 2.38,\n y: 49\n }]\n }\n});\n// console.log(req.toString());\n// out\n// \n// \t\n// \t\t2.39 48.9\n// \t\t2.38 49 2.38 49.1 2.39 49.1 2.39 49 2.38 49\n// \t\n// StreetAddress\n// \tPositionOfInterest\n// \n// parse\nhXML.setXMLString(req.toString());\nvar data = hXML.parse();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"ReverseGeocodeRequest\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"]).to.have.property(\"Position\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"]).to.have.property(\"gml:Point\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"]).to.have.property(\"gml:Polygon\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Point\"]).to.have.property(\"gml:pos\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Point\"][\"gml:pos\"].textContent).to.equal(\"2.39 48.9\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Polygon\"]).to.have.property(\"gml:exterior\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Polygon\"][\"gml:exterior\"]).to.have.property(\"gml:LinearRing\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Polygon\"][\"gml:exterior\"][\"gml:LinearRing\"]).to.have.property(\"gml:posList\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"][\"Position\"][\"gml:Polygon\"][\"gml:exterior\"][\"gml:LinearRing\"][\"gml:posList\"].textContent).to.equal(\"2.38 49 2.38 49.1 2.39 49.1 2.39 49 2.38 49\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[\"ReverseGeocodeRequest\"]).to.have.property(\"ReverseGeocodePreference\");", "err": {}, - "uuid": "8d1a6eca-458e-4036-94b4-cdca89705fe4", - "parentUUID": "3b3924e5-075c-4e9f-a5e6-63fc8c4e1495", + "uuid": "12ab737b-60a9-49ed-aa96-85b37d02f73a", + "parentUUID": "8543098e-8ed3-42f0-b58e-4fb81716aa72", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "71f13eae-5146-4d75-81a1-7a7f9b4723b7", - "59835fc4-5554-4597-9f68-8906dbd020b9", - "ee51bbc8-65c3-4048-8592-84a2dc6eaf9a", - "8d1a6eca-458e-4036-94b4-cdca89705fe4" + "17cd2e15-d31d-49cb-92fa-5fa7ca18516c", + "bf27e65c-231f-48b1-b361-6c028241fce6", + "21a5e643-dca2-4377-8817-89de8b55442c", + "12ab737b-60a9-49ed-aa96-85b37d02f73a" ], "failures": [], "pending": [], "skipped": [], - "duration": 3, + "duration": 4, "root": false, "rootEmpty": false, "_timeout": 2000 @@ -737,10 +737,10 @@ "_timeout": 2000 }, { - "uuid": "3f5559bb-44d8-4488-ae02-a3b96856f560", + "uuid": "8476c3a9-7b28-431f-981e-7b9936757fdd", "title": "-- Test XLS RouteService Request --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -757,8 +757,8 @@ "context": null, "code": "// exception générée :\n//\timpossible de determiner le type de service : Route ou Geocode !?\nvar options = {\n srsName: \"epsg:4326\",\n maximumResponses: 5\n};\ntry {\n var xls = new XLS[\"a\" /* default */](options);\n xls.setService(new XLS_RouteService());\n xls.build();\n} catch (e) {\n // console.log(e);\n Object(external_chai_[\"expect\"])(true).to.be.true;\n return; // FIXME !\n}\n// oups!\nObject(external_chai_[\"expect\"])(false).to.be.true;", "err": {}, - "uuid": "81c688c9-b699-4b59-afe0-6fc772ec9948", - "parentUUID": "3f5559bb-44d8-4488-ae02-a3b96856f560", + "uuid": "648a4545-df22-4b13-be47-436ba6ec6b26", + "parentUUID": "8476c3a9-7b28-431f-981e-7b9936757fdd", "isHook": false, "skipped": false }, @@ -766,7 +766,7 @@ "title": "Appel avec un objet Route (avec param)", "fullTitle": "-- Test XLS RouteService Request -- Appel avec un objet Route (avec param)", "timedOut": false, - "duration": 1, + "duration": 2, "state": "passed", "speed": "fast", "pass": true, @@ -775,30 +775,30 @@ "context": null, "code": "var options = {\n srsName: \"epsg:4326\",\n maximumResponses: 5\n};\n// spécifique au service\nvar settings = {\n startPoint: {\n x: 42.1121,\n y: 1.5557\n },\n endPoint: {\n x: 42.1123,\n y: 1.5559\n },\n viaPoint: [{\n x: 42.1121,\n y: 1.5557\n }, {\n x: 42.1122,\n y: 1.5558\n }, {\n x: 42.1123,\n y: 1.5559\n }],\n provideBoundingBox: true,\n avoidFeature: [\"bridge\", \"tunnel\", \"tollway\"],\n expectedStartTime: \"2015-12-23\",\n // YYYY-MM-DDThh:mm:ssZ\n distanceUnit: \"km\",\n vehicle: \"car\",\n provideGeometry: true,\n routePreference: \"fastest\"\n};\ntry {\n var xls = new XLS[\"a\" /* default */](options);\n xls.setService(new XLS_RouteService(settings));\n var result = xls.build();\n // parsing\n var hXml = new XML[\"a\" /* default */]();\n hXml.setXMLString(result);\n var data = hXml.parse();\n // test...\n Object(external_chai_[\"should\"])().exist(data);\n Object(external_chai_[\"expect\"])(data).to.have.property(\"XLS\");\n Object(external_chai_[\"expect\"])(data[\"XLS\"][\"Request\"][\"attributes\"]).to.have.property(\"methodName\", \"RouteRequest\");\n} catch (e) {\n // oups!\n console.log(e);\n Object(external_chai_[\"expect\"])(false).to.be.true;\n return; // FIXME !\n}\nObject(external_chai_[\"expect\"])(true).to.be.true;", "err": {}, - "uuid": "f49e5b05-0aec-417c-99da-2165b7a28a6c", - "parentUUID": "3f5559bb-44d8-4488-ae02-a3b96856f560", + "uuid": "6baa915b-5ce1-4925-84f2-54c58b09b7a1", + "parentUUID": "8476c3a9-7b28-431f-981e-7b9936757fdd", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "81c688c9-b699-4b59-afe0-6fc772ec9948", - "f49e5b05-0aec-417c-99da-2165b7a28a6c" + "648a4545-df22-4b13-be47-436ba6ec6b26", + "6baa915b-5ce1-4925-84f2-54c58b09b7a1" ], "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 3, "root": false, "rootEmpty": false, "_timeout": 2000 }, { - "uuid": "d49bf461-3505-49d9-8a12-3b50adfea1fa", + "uuid": "f3bb6f08-559f-454f-bd0a-3be942f1cf1d", "title": "-- Test XLS --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [ { "title": "\"before all\" hook", @@ -813,8 +813,8 @@ "context": null, "code": "hXML = new _src_Formats_XML__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"]();\ndone();", "err": {}, - "uuid": "a622b49d-615e-48be-ba85-16f0c399488e", - "parentUUID": "d49bf461-3505-49d9-8a12-3b50adfea1fa", + "uuid": "e7f60c09-b790-4c57-812b-a4aa2d16448b", + "parentUUID": "f3bb6f08-559f-454f-bd0a-3be942f1cf1d", "isHook": true, "skipped": false } @@ -833,8 +833,8 @@ "context": null, "code": "hXML = null;", "err": {}, - "uuid": "85974ab4-4804-458c-8e84-ff87bb877728", - "parentUUID": "d49bf461-3505-49d9-8a12-3b50adfea1fa", + "uuid": "e8d17c1a-a661-48cd-b6bd-f422ff7a0bd1", + "parentUUID": "f3bb6f08-559f-454f-bd0a-3be942f1cf1d", "isHook": true, "skipped": false } @@ -842,10 +842,10 @@ "tests": [], "suites": [ { - "uuid": "39c8c904-f8bb-445f-b6b1-f2d32136ee1d", + "uuid": "6b25b7bd-afc0-4031-aa61-f9eaf57ccdd5", "title": "XLS", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -853,7 +853,7 @@ "title": "Appel du constructeur (vide)", "fullTitle": "-- Test XLS -- XLS Appel du constructeur (vide)", "timedOut": false, - "duration": 1, + "duration": 2, "state": "passed", "speed": "fast", "pass": true, @@ -862,8 +862,8 @@ "context": null, "code": "// par defaut,\n//\tversion 1.2\n// \tsrs : EPSG:4326\n// maximumResponses : 25\n// la param \"methodName\" n'est pas connu : null\n// car pas d'objet LUS\nvar oXls = new _src_Formats_XLS__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"]();\nvar result = oXls.build();\n// parse\nhXML.setXMLString(result);\nvar data = hXML.parse();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"XLS\");\nvar xls = data[\"XLS\"];\nvar req = xls[\"Request\"];\nvar hdr = xls[\"RequestHeader\"];\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(xls).to.have.property(\"Request\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(xls).to.have.property(\"RequestHeader\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(xls).to.have.property(\"attributes\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(xls[\"attributes\"]).to.have.property(\"xmlns:xls\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(xls[\"attributes\"]).to.have.property(\"xmlns:gml\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(xls[\"attributes\"]).to.have.property(\"xmlns:xsi\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(xls[\"attributes\"]).to.have.property(\"xsi:schemaLocation\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"attributes\"]).to.have.property(\"maximumResponses\", \"25\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"attributes\"]).to.have.property(\"methodName\", \"null\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"attributes\"]).to.have.property(\"version\", \"1.2\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"attributes\"]).to.have.property(\"requestID\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(hdr[\"attributes\"]).to.have.property(\"srsName\", \"EPSG:4326\");", "err": {}, - "uuid": "5fca6007-7512-4f45-ad5b-0748cc675f51", - "parentUUID": "39c8c904-f8bb-445f-b6b1-f2d32136ee1d", + "uuid": "78432986-cfb1-4760-82c6-5f3aa847312c", + "parentUUID": "6b25b7bd-afc0-4031-aa61-f9eaf57ccdd5", "isHook": false, "skipped": false }, @@ -880,8 +880,8 @@ "context": null, "code": "// options pour srsName et maximumResponses\n// la param 'methodName' n'est pas connu : null\n// car pas d'objet LUS\nvar options = {\n srsName: \"epsg:4326\",\n maximumResponses: 5\n};\nvar oXls = new _src_Formats_XLS__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"](options);\nvar result = oXls.build();\n// parse\nhXML.setXMLString(result);\nvar data = hXML.parse();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"XLS\");\nvar req = data[\"XLS\"][\"Request\"];\nvar hdr = data[\"XLS\"][\"RequestHeader\"];\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"attributes\"]).to.have.property(\"maximumResponses\", \"5\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"attributes\"]).to.have.property(\"methodName\", \"null\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"attributes\"]).to.have.property(\"version\", \"1.2\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(hdr[\"attributes\"]).to.have.property(\"srsName\", \"epsg:4326\");", "err": {}, - "uuid": "d3ec3214-5170-4498-9625-28c55dbc58da", - "parentUUID": "39c8c904-f8bb-445f-b6b1-f2d32136ee1d", + "uuid": "e7fc8c69-d626-4a9b-bca9-6114945c28ad", + "parentUUID": "6b25b7bd-afc0-4031-aa61-f9eaf57ccdd5", "isHook": false, "skipped": false }, @@ -898,8 +898,8 @@ "context": null, "code": "// options pour srsName et maximumResponses\n// la param 'methodName' n'est pas connu : null\n// car pas d'objet LUS ou RouteService\nvar options = {\n srsName: \"epsg:4326\",\n maximumResponses: 5\n};\nvar oXls = new _src_Formats_XLS__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"](options);\noXls.namespace = true;\nvar result = oXls.build();\n// parse\nhXML.setXMLString(result);\nvar data = hXML.parse();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"xls:XLS\");\nvar req = data[\"xls:XLS\"][\"xls:Request\"];\nvar hdr = data[\"xls:XLS\"][\"xls:RequestHeader\"];\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"attributes\"]).to.have.property(\"maximumResponses\", \"5\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"attributes\"]).to.have.property(\"methodName\", \"null\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"attributes\"]).to.have.property(\"version\", \"1.2\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(hdr[\"attributes\"]).to.have.property(\"srsName\", \"epsg:4326\");", "err": {}, - "uuid": "c8f2c153-bdc1-40f6-9939-04d39649257f", - "parentUUID": "39c8c904-f8bb-445f-b6b1-f2d32136ee1d", + "uuid": "86cfcd44-c76d-45e0-ab76-0dd59b6ef1eb", + "parentUUID": "6b25b7bd-afc0-4031-aa61-f9eaf57ccdd5", "isHook": false, "skipped": false }, @@ -907,7 +907,7 @@ "title": "Ajout du namespace existant (xls)", "fullTitle": "-- Test XLS -- XLS Ajout du namespace existant (xls)", "timedOut": false, - "duration": 0, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -916,8 +916,8 @@ "context": null, "code": "// options pour srsName et maximumResponses\n// la param 'methodName' n'est pas connu : null\n// car pas d'objet LUS ou RouteService\nvar options = {\n srsName: \"epsg:4326\",\n maximumResponses: 5\n};\nvar oXls = new _src_Formats_XLS__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"](options);\nvar request = oXls.build();\nvar result = oXls.addNamespace({\n key: \"xls\",\n url: \"http://namespace/test.xsd\"\n}, request);\n// parse\nhXML.setXMLString(result);\nvar data = hXML.parse();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"xls:XLS\");\nvar req = data[\"xls:XLS\"][\"xls:Request\"];\nvar hdr = data[\"xls:XLS\"][\"xls:RequestHeader\"];\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"attributes\"]).to.have.property(\"maximumResponses\", \"5\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"attributes\"]).to.have.property(\"methodName\", \"null\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req[\"attributes\"]).to.have.property(\"version\", \"1.2\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(hdr[\"attributes\"]).to.have.property(\"srsName\", \"epsg:4326\");", "err": {}, - "uuid": "cd27fd02-a599-411b-9243-73f1307fe8d1", - "parentUUID": "39c8c904-f8bb-445f-b6b1-f2d32136ee1d", + "uuid": "3f79b73b-2122-48be-80d7-8bffd71e03f5", + "parentUUID": "6b25b7bd-afc0-4031-aa61-f9eaf57ccdd5", "isHook": false, "skipped": false }, @@ -934,25 +934,25 @@ "context": null, "code": "", "err": {}, - "uuid": "ff95c9de-92c4-4abb-af3e-eb3907b4159e", - "parentUUID": "39c8c904-f8bb-445f-b6b1-f2d32136ee1d", + "uuid": "c04a575d-9f61-48c4-ae1b-6487657b3369", + "parentUUID": "6b25b7bd-afc0-4031-aa61-f9eaf57ccdd5", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "5fca6007-7512-4f45-ad5b-0748cc675f51", - "d3ec3214-5170-4498-9625-28c55dbc58da", - "c8f2c153-bdc1-40f6-9939-04d39649257f", - "cd27fd02-a599-411b-9243-73f1307fe8d1" + "78432986-cfb1-4760-82c6-5f3aa847312c", + "e7fc8c69-d626-4a9b-bca9-6114945c28ad", + "86cfcd44-c76d-45e0-ab76-0dd59b6ef1eb", + "3f79b73b-2122-48be-80d7-8bffd71e03f5" ], "failures": [], "pending": [ - "ff95c9de-92c4-4abb-af3e-eb3907b4159e" + "c04a575d-9f61-48c4-ae1b-6487657b3369" ], "skipped": [], - "duration": 3, + "duration": 5, "root": false, "rootEmpty": false, "_timeout": 2000 @@ -968,19 +968,19 @@ "_timeout": 2000 }, { - "uuid": "c5e52806-9487-4820-9131-febd5d8a3e65", + "uuid": "826581f5-a47b-463e-affa-d8e9800cf974", "title": "-- Test XML parser --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "0780d17f-2ff7-4cc3-9695-a1fb835645a0", + "uuid": "619cba24-2692-4457-b11b-6aecc52060e7", "title": "XML", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -997,8 +997,8 @@ "context": null, "code": "var p = new _src_Formats_XML__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"]();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(p);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(p.logger);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(p.xmlString).to.be.null;\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(p.reader).to.be.null;\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(p.xmlDoc).to.be.null;", "err": {}, - "uuid": "449793fd-932c-4906-9a42-da13c31a0e84", - "parentUUID": "0780d17f-2ff7-4cc3-9695-a1fb835645a0", + "uuid": "3a788b0e-64e9-48bf-8394-41ecbd9486c5", + "parentUUID": "619cba24-2692-4457-b11b-6aecc52060e7", "isHook": false, "skipped": false }, @@ -1015,8 +1015,8 @@ "context": null, "code": "var p = new _src_Formats_XML__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"]();\np.setXMLString(xmlStringMinify);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(p.xmlString).to.be.a(\"string\");\nvar s = p.getXMLString();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(s);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(s).to.be.a(\"string\");\nchai__WEBPACK_IMPORTED_MODULE_0__[\"assert\"].strictEqual(s, xmlStringMinify, \"p.xmlString is equal to input xmlString\");\nvar x = p.getXMLDoc();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(x);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(x.documentElement);", "err": {}, - "uuid": "38714232-5ebd-41a1-84d8-510088c4a286", - "parentUUID": "0780d17f-2ff7-4cc3-9695-a1fb835645a0", + "uuid": "8ca51a1f-eae6-4b92-90de-e6941074895a", + "parentUUID": "619cba24-2692-4457-b11b-6aecc52060e7", "isHook": false, "skipped": false }, @@ -1033,8 +1033,8 @@ "context": null, "code": "var p = new _src_Formats_XML__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"]();\np.setReader(_src_Services_Alti_Formats_AltiResponseReader__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"]);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(p.reader).to.be.a(\"object\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(p.reader.read).to.be.a(\"function\");\nvar r = p.getReader();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(r);", "err": {}, - "uuid": "65df8151-0256-4f65-b989-b87cafc43a8d", - "parentUUID": "0780d17f-2ff7-4cc3-9695-a1fb835645a0", + "uuid": "ecc96c9a-19c8-4307-b698-2d37eb695ebc", + "parentUUID": "619cba24-2692-4457-b11b-6aecc52060e7", "isHook": false, "skipped": false }, @@ -1051,8 +1051,8 @@ "context": null, "code": "var options = {\n reader: _src_Services_Alti_Formats_AltiResponseReader__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"],\n xmlString: xmlStringMinify\n};\nvar p = new _src_Formats_XML__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"](options);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(p);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(p.xmlString);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(p.reader);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(p.xmlDoc);", "err": {}, - "uuid": "ff15e809-5d0e-4a2d-ab09-4d6025a4172a", - "parentUUID": "0780d17f-2ff7-4cc3-9695-a1fb835645a0", + "uuid": "b48c664d-7438-459e-993f-b1fcebc58b27", + "parentUUID": "619cba24-2692-4457-b11b-6aecc52060e7", "isHook": false, "skipped": false }, @@ -1069,8 +1069,8 @@ "context": null, "code": "var p = new _src_Formats_XML__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"]({\n reader: _src_Services_Alti_Formats_AltiResponseReader__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"],\n xmlString: xmlStringMinify\n});\nvar data = p.parse();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(data);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"elevations\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data.elevations).to.be.an(\"array\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data.elevations[0]).to.have.property(\"lat\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data.elevations[0]).to.have.property(\"lon\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data.elevations[0]).to.have.property(\"z\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data.elevations[0]).to.have.property(\"acc\");", "err": {}, - "uuid": "080eec71-4884-4f25-9f88-58bf66e181b8", - "parentUUID": "0780d17f-2ff7-4cc3-9695-a1fb835645a0", + "uuid": "ba3966a9-b467-45ea-8af7-255640468318", + "parentUUID": "619cba24-2692-4457-b11b-6aecc52060e7", "isHook": false, "skipped": false }, @@ -1087,20 +1087,20 @@ "context": null, "code": "var p = new _src_Formats_XML__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"]({\n xmlString: xmlStringMinify\n});\nvar data = p.parse();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.have.property(\"elevations\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data.elevations).to.have.property(\"elevation\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data.elevations.elevation).to.be.an(\"array\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data.elevations.elevation[0]).to.have.property(\"lat\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data.elevations.elevation[0]).to.have.property(\"lon\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data.elevations.elevation[0]).to.have.property(\"z\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data.elevations.elevation[0]).to.have.property(\"acc\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data.elevations.elevation[0].z).to.have.property(\"textContent\");", "err": {}, - "uuid": "c63962ad-1608-4b49-8d44-7bbfbbad9e11", - "parentUUID": "0780d17f-2ff7-4cc3-9695-a1fb835645a0", + "uuid": "e1eddb35-a39a-42f9-b22f-703c5645ae0e", + "parentUUID": "619cba24-2692-4457-b11b-6aecc52060e7", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "449793fd-932c-4906-9a42-da13c31a0e84", - "38714232-5ebd-41a1-84d8-510088c4a286", - "65df8151-0256-4f65-b989-b87cafc43a8d", - "ff15e809-5d0e-4a2d-ab09-4d6025a4172a", - "080eec71-4884-4f25-9f88-58bf66e181b8", - "c63962ad-1608-4b49-8d44-7bbfbbad9e11" + "3a788b0e-64e9-48bf-8394-41ecbd9486c5", + "8ca51a1f-eae6-4b92-90de-e6941074895a", + "ecc96c9a-19c8-4307-b698-2d37eb695ebc", + "b48c664d-7438-459e-993f-b1fcebc58b27", + "ba3966a9-b467-45ea-8af7-255640468318", + "e1eddb35-a39a-42f9-b22f-703c5645ae0e" ], "failures": [], "pending": [], @@ -1121,19 +1121,19 @@ "_timeout": 2000 }, { - "uuid": "a8f0b190-4c19-48d4-a5a1-152f25633be1", + "uuid": "22f766e7-480f-4962-adb8-4ff14998907f", "title": "-- Test for Gp --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "cce40edb-5429-4aef-ab62-676024c1db85", + "uuid": "47759d2c-9cdf-490e-b6cb-01dab7c3467b", "title": "Gp", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -1141,7 +1141,7 @@ "title": "Proprietes de Gp", "fullTitle": "-- Test for Gp -- Gp Proprietes de Gp", "timedOut": false, - "duration": 0, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -1150,8 +1150,8 @@ "context": null, "code": "// test des proprietes par defaut\nsrc_Gp.should.have.property(\"servicesVersion\");\nsrc_Gp.should.have.property(\"servicesDate\");", "err": {}, - "uuid": "3903c525-8e0e-494f-9e7e-7519a76d0865", - "parentUUID": "cce40edb-5429-4aef-ab62-676024c1db85", + "uuid": "33b6c1c3-eb1b-4632-9965-622859f80363", + "parentUUID": "47759d2c-9cdf-490e-b6cb-01dab7c3467b", "isHook": false, "skipped": false }, @@ -1159,7 +1159,7 @@ "title": "Namespace de Gp", "fullTitle": "-- Test for Gp -- Gp Namespace de Gp", "timedOut": false, - "duration": 1, + "duration": 0, "state": "passed", "speed": "fast", "pass": true, @@ -1168,16 +1168,16 @@ "context": null, "code": "// test des namespace par defaut\nsrc_Gp.should.have.property(\"Services\");\nsrc_Gp.should.have.property(\"Error\");\nsrc_Gp.should.have.property(\"Protocols\");\nsrc_Gp.should.have.property(\"Helper\");", "err": {}, - "uuid": "64b18bb6-b6aa-4d8b-ab0f-03ae2db40c91", - "parentUUID": "cce40edb-5429-4aef-ab62-676024c1db85", + "uuid": "3c2e3b25-5e27-4772-a31f-145def08707c", + "parentUUID": "47759d2c-9cdf-490e-b6cb-01dab7c3467b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "3903c525-8e0e-494f-9e7e-7519a76d0865", - "64b18bb6-b6aa-4d8b-ab0f-03ae2db40c91" + "33b6c1c3-eb1b-4632-9965-622859f80363", + "3c2e3b25-5e27-4772-a31f-145def08707c" ], "failures": [], "pending": [], @@ -1198,10 +1198,10 @@ "_timeout": 2000 }, { - "uuid": "9593dff9-df83-47ee-89ad-8437161cd0ba", + "uuid": "d8ceb6b0-43a3-4963-8199-c9407b04ba3f", "title": "-- Test AltiRequest --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [ { "title": "\"before all\" hook", @@ -1216,8 +1216,8 @@ "context": null, "code": "JSON.stringify = function (obj) {\n var seen = [];\n return stringify(obj, function (key, val) {\n if (typeof val === \"object\") {\n if (seen.indexOf(val) >= 0) {\n return;\n }\n seen.push(val);\n }\n return val;\n });\n};", "err": {}, - "uuid": "4519bc3c-fc0b-48d0-ba95-550698144e16", - "parentUUID": "9593dff9-df83-47ee-89ad-8437161cd0ba", + "uuid": "53eddd8f-7bc3-41d9-b054-c3da2934cfef", + "parentUUID": "d8ceb6b0-43a3-4963-8199-c9407b04ba3f", "isHook": true, "skipped": false } @@ -1236,8 +1236,8 @@ "context": null, "code": "JSON.stringify = stringify;", "err": {}, - "uuid": "7eb8e06f-29d6-4f0c-871d-d9bc07e1b1a2", - "parentUUID": "9593dff9-df83-47ee-89ad-8437161cd0ba", + "uuid": "b2dfa061-a89c-4014-95c9-f19702ca3d4a", + "parentUUID": "d8ceb6b0-43a3-4963-8199-c9407b04ba3f", "isHook": true, "skipped": false } @@ -1245,10 +1245,10 @@ "tests": [], "suites": [ { - "uuid": "3db10280-8b17-4f19-a705-eac7c361fd73", + "uuid": "bc5e9ef2-2d49-47ff-b7f5-d9ba4ff5a59f", "title": "-- AltiRequest --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -1256,7 +1256,7 @@ "title": "test de constructor()", "fullTitle": "-- Test AltiRequest -- -- AltiRequest -- test de constructor()", "timedOut": false, - "duration": 0, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -1265,8 +1265,8 @@ "context": null, "code": "var myReq = new _src_Services_Alti_Request_model_AltiRequest__WEBPACK_IMPORTED_MODULE_6__[/* default */ \"a\"]();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"crs\", \"CRS:84\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"delimiter\", \"|\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"indent\", false);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"format\", \"json\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"positions\");", "err": {}, - "uuid": "02c142d3-a954-479e-b838-d7ac28717fb4", - "parentUUID": "3db10280-8b17-4f19-a705-eac7c361fd73", + "uuid": "26ac1e88-1195-40c7-92b1-3f1e9e1356d3", + "parentUUID": "bc5e9ef2-2d49-47ff-b7f5-d9ba4ff5a59f", "isHook": false, "skipped": false }, @@ -1274,7 +1274,7 @@ "title": "test de constructor(options)", "fullTitle": "-- Test AltiRequest -- -- AltiRequest -- test de constructor(options)", "timedOut": false, - "duration": 0, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -1283,8 +1283,8 @@ "context": null, "code": "var myReq = new _src_Services_Alti_Request_model_AltiRequest__WEBPACK_IMPORTED_MODULE_6__[/* default */ \"a\"](options);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"crs\", \"EPSG:4326\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"delimiter\", \";\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"indent\", true);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"format\", \"json\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"positions\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"]).to.be.an(\"Array\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"]).to.be.length(3);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"][0]).to.have.property(\"lon\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"][0]).to.have.property(\"lat\");", "err": {}, - "uuid": "c6a884f2-8560-4a9e-9dcc-fe618ed4d81e", - "parentUUID": "3db10280-8b17-4f19-a705-eac7c361fd73", + "uuid": "5bd16211-260d-4bc3-a4b8-6ad420131fc8", + "parentUUID": "bc5e9ef2-2d49-47ff-b7f5-d9ba4ff5a59f", "isHook": false, "skipped": false }, @@ -1292,7 +1292,7 @@ "title": "test de setter()", "fullTitle": "-- Test AltiRequest -- -- AltiRequest -- test de setter()", "timedOut": false, - "duration": 1, + "duration": 0, "state": "passed", "speed": "fast", "pass": true, @@ -1301,8 +1301,8 @@ "context": null, "code": "var myReq = new _src_Services_Alti_Request_model_AltiRequest__WEBPACK_IMPORTED_MODULE_6__[/* default */ \"a\"]();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\nmyReq.setPositions(lstPositions);\nmyReq.delimiter = \",\";\nmyReq.indent = true;\nmyReq.crs = \"EPSG:4326\";\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"delimiter\", \",\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"indent\", true);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"crs\", \"EPSG:4326\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"positions\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"]).to.be.an(\"Array\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"]).to.be.length(5);", "err": {}, - "uuid": "88a58f86-15c1-4a18-ae4f-44987d8f010e", - "parentUUID": "3db10280-8b17-4f19-a705-eac7c361fd73", + "uuid": "d5f0555a-22ab-4d3f-a175-52f5eefc5d2d", + "parentUUID": "bc5e9ef2-2d49-47ff-b7f5-d9ba4ff5a59f", "isHook": false, "skipped": false }, @@ -1310,7 +1310,7 @@ "title": "test des proprietés par defaut", "fullTitle": "-- Test AltiRequest -- -- AltiRequest -- test des proprietés par defaut", "timedOut": false, - "duration": 1, + "duration": 0, "state": "passed", "speed": "fast", "pass": true, @@ -1319,8 +1319,8 @@ "context": null, "code": "var myReq = new _src_Services_Alti_Request_model_AltiRequest__WEBPACK_IMPORTED_MODULE_6__[/* default */ \"a\"]();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"indent\", false);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"delimiter\", \"|\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"crs\", \"CRS:84\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq.indent).to.be.false;", "err": {}, - "uuid": "19764b48-81f1-47c4-9b82-7413f4781c4b", - "parentUUID": "3db10280-8b17-4f19-a705-eac7c361fd73", + "uuid": "dad58cfd-0e9e-4388-b1ba-eba94b3b22fe", + "parentUUID": "bc5e9ef2-2d49-47ff-b7f5-d9ba4ff5a59f", "isHook": false, "skipped": false }, @@ -1328,7 +1328,7 @@ "title": "test de setPositions()", "fullTitle": "-- Test AltiRequest -- -- AltiRequest -- test de setPositions()", "timedOut": false, - "duration": 0, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -1337,8 +1337,8 @@ "context": null, "code": "var myReq = new _src_Services_Alti_Request_model_AltiRequest__WEBPACK_IMPORTED_MODULE_6__[/* default */ \"a\"]();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\nmyReq.setPositions(lstPositions);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"positions\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"]).to.be.an(\"Array\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"]).to.be.length(5);", "err": {}, - "uuid": "df60a362-a2ee-46ba-9b72-675b11448d4a", - "parentUUID": "3db10280-8b17-4f19-a705-eac7c361fd73", + "uuid": "97ed7437-7f4e-4f11-b500-262afa5bf21f", + "parentUUID": "bc5e9ef2-2d49-47ff-b7f5-d9ba4ff5a59f", "isHook": false, "skipped": false }, @@ -1346,7 +1346,7 @@ "title": "test de setPositions() avec de mauvaises positions !", "fullTitle": "-- Test AltiRequest -- -- AltiRequest -- test de setPositions() avec de mauvaises positions !", "timedOut": false, - "duration": 1, + "duration": 0, "state": "passed", "speed": "fast", "pass": true, @@ -1355,8 +1355,8 @@ "context": null, "code": "var myReq = new _src_Services_Alti_Request_model_AltiRequest__WEBPACK_IMPORTED_MODULE_6__[/* default */ \"a\"]();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\nmyReq.setPositions(lstPositions_failed);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"positions\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"]).to.be.an(\"Array\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"]).to.be.length(0);", "err": {}, - "uuid": "7ac67f6c-3257-4572-8a9f-63cef632f25c", - "parentUUID": "3db10280-8b17-4f19-a705-eac7c361fd73", + "uuid": "dc371ecf-0a65-4bc6-a775-c3a11e8f961b", + "parentUUID": "bc5e9ef2-2d49-47ff-b7f5-d9ba4ff5a59f", "isHook": false, "skipped": false }, @@ -1373,8 +1373,8 @@ "context": null, "code": "var myReq = new _src_Services_Alti_Request_model_AltiRequest__WEBPACK_IMPORTED_MODULE_6__[/* default */ \"a\"]();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\nmyReq.setPositions(lstPositions);\nmyReq.addPositions(lstMorePositions);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"positions\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"]).to.be.an(\"Array\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"]).to.be.length(8);", "err": {}, - "uuid": "8598de2b-39f8-46b5-863a-72d4ae5b6ca4", - "parentUUID": "3db10280-8b17-4f19-a705-eac7c361fd73", + "uuid": "8364762e-3dd3-4cc1-8733-12f1a859e917", + "parentUUID": "bc5e9ef2-2d49-47ff-b7f5-d9ba4ff5a59f", "isHook": false, "skipped": false }, @@ -1391,22 +1391,22 @@ "context": null, "code": "var myReq = new _src_Services_Alti_Request_model_AltiRequest__WEBPACK_IMPORTED_MODULE_6__[/* default */ \"a\"]();\nmyReq.setPositions(lstPositions);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\nvar data = myReq.getData();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.be.an(\"Array\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.be.length(6);\nfor (var i = 0; i < data.length; i++) {\n var o = data[i];\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(o).to.have.property(\"k\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(o).to.have.property(\"v\");\n}\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[0]).to.have.property(\"k\", \"lon\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[0]).to.have.property(\"v\", \"1.10|1.11|1.12|1.13|1.14\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[1]).to.have.property(\"k\", \"lat\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[1]).to.have.property(\"v\", \"1.10|1.11|1.12|1.13|1.14\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[2]).to.have.property(\"k\", \"delimiter\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[2]).to.have.property(\"v\", \"|\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[3]).to.have.property(\"k\", \"indent\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[3]).to.have.property(\"v\", false);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[4]).to.have.property(\"k\", \"crs\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[4]).to.have.property(\"v\", \"CRS:84\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[5]).to.have.property(\"k\", \"format\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[5]).to.have.property(\"v\", \"json\");", "err": {}, - "uuid": "78c59c97-323f-43ee-9ed6-45b9e8f320c5", - "parentUUID": "3db10280-8b17-4f19-a705-eac7c361fd73", + "uuid": "2bc42549-f037-4d85-abb7-d45553722f0b", + "parentUUID": "bc5e9ef2-2d49-47ff-b7f5-d9ba4ff5a59f", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "02c142d3-a954-479e-b838-d7ac28717fb4", - "c6a884f2-8560-4a9e-9dcc-fe618ed4d81e", - "88a58f86-15c1-4a18-ae4f-44987d8f010e", - "19764b48-81f1-47c4-9b82-7413f4781c4b", - "df60a362-a2ee-46ba-9b72-675b11448d4a", - "7ac67f6c-3257-4572-8a9f-63cef632f25c", - "8598de2b-39f8-46b5-863a-72d4ae5b6ca4", - "78c59c97-323f-43ee-9ed6-45b9e8f320c5" + "26ac1e88-1195-40c7-92b1-3f1e9e1356d3", + "5bd16211-260d-4bc3-a4b8-6ad420131fc8", + "d5f0555a-22ab-4d3f-a175-52f5eefc5d2d", + "dad58cfd-0e9e-4388-b1ba-eba94b3b22fe", + "97ed7437-7f4e-4f11-b500-262afa5bf21f", + "dc371ecf-0a65-4bc6-a775-c3a11e8f961b", + "8364762e-3dd3-4cc1-8733-12f1a859e917", + "2bc42549-f037-4d85-abb7-d45553722f0b" ], "failures": [], "pending": [], @@ -1417,10 +1417,10 @@ "_timeout": 2000 }, { - "uuid": "09a7ee9e-95ea-4b7c-8cc7-301c95f79efd", + "uuid": "f1ba390a-9c00-4a53-b80b-d0a8a0225403", "title": "-- AltiElevationRequest --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -1437,8 +1437,8 @@ "context": null, "code": "var myReq = new _src_Services_Alti_Request_model_AltiElevationRequest__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"]();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"crs\", \"CRS:84\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"delimiter\", \"|\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"indent\", false);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"format\", \"json\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"positions\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"zonly\");", "err": {}, - "uuid": "6cd809c7-3bae-472d-89d4-246fbf34282b", - "parentUUID": "09a7ee9e-95ea-4b7c-8cc7-301c95f79efd", + "uuid": "70d17f59-4956-484f-bbeb-663a213ae9ed", + "parentUUID": "f1ba390a-9c00-4a53-b80b-d0a8a0225403", "isHook": false, "skipped": false }, @@ -1455,8 +1455,8 @@ "context": null, "code": "var myReq = new _src_Services_Alti_Request_model_AltiElevationRequest__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"](options);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"zonly\", false);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"crs\", \"EPSG:4326\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"delimiter\", \";\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"indent\", true);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"format\", \"json\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"positions\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"]).to.be.an(\"Array\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"]).to.be.length(3);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"][0]).to.have.property(\"lon\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"][0]).to.have.property(\"lat\");", "err": {}, - "uuid": "01f8389a-cbb0-4af6-9da7-d7a46eb8da8d", - "parentUUID": "09a7ee9e-95ea-4b7c-8cc7-301c95f79efd", + "uuid": "3fa95577-c5d7-46b7-8e94-d1425846b83d", + "parentUUID": "f1ba390a-9c00-4a53-b80b-d0a8a0225403", "isHook": false, "skipped": false }, @@ -1464,7 +1464,7 @@ "title": "test de zonly", "fullTitle": "-- Test AltiRequest -- -- AltiElevationRequest -- test de zonly", "timedOut": false, - "duration": 0, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -1473,8 +1473,8 @@ "context": null, "code": "var myReq = new _src_Services_Alti_Request_model_AltiElevationRequest__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"](options);\nmyReq.zonly = true;\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"zonly\", true);", "err": {}, - "uuid": "a17254fb-0b4f-48a2-9e19-02225c4d4819", - "parentUUID": "09a7ee9e-95ea-4b7c-8cc7-301c95f79efd", + "uuid": "a36dc549-bca8-47d8-9975-2c7f9cf56f89", + "parentUUID": "f1ba390a-9c00-4a53-b80b-d0a8a0225403", "isHook": false, "skipped": false }, @@ -1491,32 +1491,32 @@ "context": null, "code": "var myReq = new _src_Services_Alti_Request_model_AltiElevationRequest__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"]();\nmyReq.setPositions(lstPositions);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\nvar data = myReq.getData();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.be.an(\"Array\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.be.length(7);\nfor (var i = 0; i < data.length; i++) {\n var o = data[i];\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(o).to.have.property(\"k\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(o).to.have.property(\"v\");\n}\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[0]).to.have.property(\"k\", \"lon\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[0]).to.have.property(\"v\", \"1.10|1.11|1.12|1.13|1.14\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[1]).to.have.property(\"k\", \"lat\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[1]).to.have.property(\"v\", \"1.10|1.11|1.12|1.13|1.14\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[2]).to.have.property(\"k\", \"indent\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[2]).to.have.property(\"v\", false);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[3]).to.have.property(\"k\", \"crs\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[3]).to.have.property(\"v\", \"CRS:84\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[4]).to.have.property(\"k\", \"zonly\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[4]).to.have.property(\"v\", false);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[5]).to.have.property(\"k\", \"format\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[5]).to.have.property(\"v\", \"json\");", "err": {}, - "uuid": "6733df6f-ab99-430a-9933-e042cb366208", - "parentUUID": "09a7ee9e-95ea-4b7c-8cc7-301c95f79efd", + "uuid": "587eb09a-2e80-447c-8c56-fc31b90ea4ba", + "parentUUID": "f1ba390a-9c00-4a53-b80b-d0a8a0225403", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "6cd809c7-3bae-472d-89d4-246fbf34282b", - "01f8389a-cbb0-4af6-9da7-d7a46eb8da8d", - "a17254fb-0b4f-48a2-9e19-02225c4d4819", - "6733df6f-ab99-430a-9933-e042cb366208" + "70d17f59-4956-484f-bbeb-663a213ae9ed", + "3fa95577-c5d7-46b7-8e94-d1425846b83d", + "a36dc549-bca8-47d8-9975-2c7f9cf56f89", + "587eb09a-2e80-447c-8c56-fc31b90ea4ba" ], "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 3, "root": false, "rootEmpty": false, "_timeout": 2000 }, { - "uuid": "8543a63e-b2ba-4f92-b23c-2671fe5f84a7", + "uuid": "79718f0c-cb50-48bf-ac84-eb0199fe1c60", "title": "-- AltiProfilRequest --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -1533,8 +1533,8 @@ "context": null, "code": "var myReq = new _src_Services_Alti_Request_model_AltiProfilRequest__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"]();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"crs\", \"CRS:84\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"delimiter\", \"|\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"indent\", false);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"format\", \"json\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"positions\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"sampling\");", "err": {}, - "uuid": "e2520662-4926-4ed6-91b5-40ca77c8f9f8", - "parentUUID": "8543a63e-b2ba-4f92-b23c-2671fe5f84a7", + "uuid": "078f7a8f-4055-417b-bb03-3c037f70cc84", + "parentUUID": "79718f0c-cb50-48bf-ac84-eb0199fe1c60", "isHook": false, "skipped": false }, @@ -1542,7 +1542,7 @@ "title": "test de constructor(options)", "fullTitle": "-- Test AltiRequest -- -- AltiProfilRequest -- test de constructor(options)", "timedOut": false, - "duration": 0, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -1551,8 +1551,8 @@ "context": null, "code": "var myReq = new _src_Services_Alti_Request_model_AltiProfilRequest__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"](options);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"sampling\", 3);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"crs\", \"EPSG:4326\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"delimiter\", \";\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"indent\", true);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"format\", \"json\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"positions\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"]).to.be.an(\"Array\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"]).to.be.length(3);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"][0]).to.have.property(\"lon\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq[\"positions\"][0]).to.have.property(\"lat\");", "err": {}, - "uuid": "ad8c8c8f-60ef-4e76-a58f-a95e2b3276b1", - "parentUUID": "8543a63e-b2ba-4f92-b23c-2671fe5f84a7", + "uuid": "1fafe2e1-6d6d-419b-90d2-45932525ecf7", + "parentUUID": "79718f0c-cb50-48bf-ac84-eb0199fe1c60", "isHook": false, "skipped": false }, @@ -1569,8 +1569,8 @@ "context": null, "code": "var myReq = new _src_Services_Alti_Request_model_AltiProfilRequest__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"](options);\nmyReq.sampling = 50;\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq).to.have.property(\"sampling\", 50);", "err": {}, - "uuid": "4e493d6b-c473-4fd0-8839-efc22e447451", - "parentUUID": "8543a63e-b2ba-4f92-b23c-2671fe5f84a7", + "uuid": "7f052fce-0405-40bf-8892-a50d3c12afe4", + "parentUUID": "79718f0c-cb50-48bf-ac84-eb0199fe1c60", "isHook": false, "skipped": false }, @@ -1578,7 +1578,7 @@ "title": "test de getData()", "fullTitle": "-- Test AltiRequest -- -- AltiProfilRequest -- test de getData()", "timedOut": false, - "duration": 1, + "duration": 2, "state": "passed", "speed": "fast", "pass": true, @@ -1587,32 +1587,32 @@ "context": null, "code": "var myReq = new _src_Services_Alti_Request_model_AltiProfilRequest__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"]();\nmyReq.setPositions(lstPositions);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\nvar data = myReq.getData();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.be.an(\"Array\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data).to.be.length(7);\nfor (var i = 0; i < data.length; i++) {\n var o = data[i];\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(o).to.have.property(\"k\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(o).to.have.property(\"v\");\n}\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[0]).to.have.property(\"k\", \"lon\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[0]).to.have.property(\"v\", \"1.10|1.11|1.12|1.13|1.14\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[1]).to.have.property(\"k\", \"lat\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[1]).to.have.property(\"v\", \"1.10|1.11|1.12|1.13|1.14\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[2]).to.have.property(\"k\", \"indent\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[2]).to.have.property(\"v\", false);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[3]).to.have.property(\"k\", \"crs\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[3]).to.have.property(\"v\", \"CRS:84\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[4]).to.have.property(\"k\", \"sampling\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[4]).to.have.property(\"v\", 3);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[5]).to.have.property(\"k\", \"format\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(data[5]).to.have.property(\"v\", \"json\");", "err": {}, - "uuid": "14c95948-47e7-4984-819e-80d499d4a86f", - "parentUUID": "8543a63e-b2ba-4f92-b23c-2671fe5f84a7", + "uuid": "f743b367-6a5a-4dcd-a2c4-4ee08f0d2a99", + "parentUUID": "79718f0c-cb50-48bf-ac84-eb0199fe1c60", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "e2520662-4926-4ed6-91b5-40ca77c8f9f8", - "ad8c8c8f-60ef-4e76-a58f-a95e2b3276b1", - "4e493d6b-c473-4fd0-8839-efc22e447451", - "14c95948-47e7-4984-819e-80d499d4a86f" + "078f7a8f-4055-417b-bb03-3c037f70cc84", + "1fafe2e1-6d6d-419b-90d2-45932525ecf7", + "7f052fce-0405-40bf-8892-a50d3c12afe4", + "f743b367-6a5a-4dcd-a2c4-4ee08f0d2a99" ], "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 4, "root": false, "rootEmpty": false, "_timeout": 2000 }, { - "uuid": "5823e4cb-111e-4cab-9ef4-0b2d48c74ae9", + "uuid": "7b8e57bf-7d05-4a06-b606-8bee92b4970e", "title": "-- AltiRequestREST --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -1620,7 +1620,7 @@ "title": "test avec objet ELEVATION en mode GET", "fullTitle": "-- Test AltiRequest -- -- AltiRequestREST -- test avec objet ELEVATION en mode GET", "timedOut": false, - "duration": 0, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -1629,8 +1629,8 @@ "context": null, "code": "options.method = \"GET\";\noptions.type = \"Elevation\";\nvar myReq = null;\ntry {\n myReq = new _src_Services_Alti_Request_AltiRequestREST__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"](options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq.processRequestString()).not.to.be.null;\n} catch (e) {\n // ne devrait pas passer dans le catch !?\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(e).to.be.null;\n console.log(e);\n}\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq.requestString).not.to.be.null;\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq.requestString).to.be.equal(\"lon=1.10|1.11|1.12&lat=1.10|1.11|1.12&indent=true&crs='EPSG:4326'&resource=undefined&measures=false&zonly=false\");", "err": {}, - "uuid": "89b8e4fe-d797-476d-9519-7ea8f0ce046e", - "parentUUID": "5823e4cb-111e-4cab-9ef4-0b2d48c74ae9", + "uuid": "7521451d-5ba2-4a1f-b124-c57a1a608fc0", + "parentUUID": "7b8e57bf-7d05-4a06-b606-8bee92b4970e", "isHook": false, "skipped": false }, @@ -1638,7 +1638,7 @@ "title": "test avec objet PROFIL en mode GET", "fullTitle": "-- Test AltiRequest -- -- AltiRequestREST -- test avec objet PROFIL en mode GET", "timedOut": false, - "duration": 1, + "duration": 0, "state": "passed", "speed": "fast", "pass": true, @@ -1647,8 +1647,8 @@ "context": null, "code": "options.method = \"GET\";\noptions.type = \"Profil\";\nvar myReq = null;\ntry {\n myReq = new _src_Services_Alti_Request_AltiRequestREST__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"](options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq.processRequestString()).not.to.be.null;\n} catch (e) {\n // ne devrait pas passer dans le catch !?\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(e).to.be.null;\n console.log(e);\n}\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq.requestString).not.to.be.null;\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq.requestString).to.be.equal(\"lon=1.10|1.11|1.12&lat=1.10|1.11|1.12&indent=true&crs='EPSG:4326'&resource=undefined&measures=false&sampling=10\");", "err": {}, - "uuid": "a53d5b57-602f-4583-8ad3-29becf9632c7", - "parentUUID": "5823e4cb-111e-4cab-9ef4-0b2d48c74ae9", + "uuid": "bb123e2b-fcb0-4add-80eb-4cc5afabb903", + "parentUUID": "7b8e57bf-7d05-4a06-b606-8bee92b4970e", "isHook": false, "skipped": false }, @@ -1656,7 +1656,7 @@ "title": "test avec objet ELEVATION en mode POST", "fullTitle": "-- Test AltiRequest -- -- AltiRequestREST -- test avec objet ELEVATION en mode POST", "timedOut": false, - "duration": 0, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -1665,8 +1665,8 @@ "context": null, "code": "// FIXME test inutil car le service ne l\"implemente pas !\noptions.method = \"POST\";\noptions.type = \"Elevation\";\nvar myReq = null;\ntry {\n myReq = new _src_Services_Alti_Request_AltiRequestREST__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"](options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq.processRequestString()).not.to.be.null;\n} catch (e) {\n // ne devrait pas passer dans le catch !?\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(e).to.be.null;\n console.log(e);\n}\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq.requestString).not.to.be.null;", "err": {}, - "uuid": "2f1a91e2-f30c-4bea-be3f-e55e40682f0a", - "parentUUID": "5823e4cb-111e-4cab-9ef4-0b2d48c74ae9", + "uuid": "600f13ce-358e-4d4e-93a6-573c0f0d5004", + "parentUUID": "7b8e57bf-7d05-4a06-b606-8bee92b4970e", "isHook": false, "skipped": false }, @@ -1683,8 +1683,8 @@ "context": null, "code": "// FIXME test inutil car le service ne l\"implemente pas !\noptions.method = \"POST\";\noptions.type = \"Profil\";\nvar myReq = null;\ntry {\n myReq = new _src_Services_Alti_Request_AltiRequestREST__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"](options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(myReq);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq.processRequestString()).not.to.be.null;\n} catch (e) {\n // ne devrait pas passer dans le catch !?\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(e).to.be.null;\n console.log(e);\n}\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(myReq.requestString).not.to.be.null;", "err": {}, - "uuid": "23a67d09-44aa-40e4-bfd7-154894ffa819", - "parentUUID": "5823e4cb-111e-4cab-9ef4-0b2d48c74ae9", + "uuid": "5c099716-3317-4a6b-a45c-13107731ab93", + "parentUUID": "7b8e57bf-7d05-4a06-b606-8bee92b4970e", "isHook": false, "skipped": false }, @@ -1701,33 +1701,33 @@ "context": null, "code": "options.method = \"GET\";\noptions.type = \"BIDON\";\nvar myReq = null;\ntry {\n myReq = new _src_Services_Alti_Request_AltiRequestREST__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"](options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n} catch (e) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(e).not.to.be.null;\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(e.message).to.contain(\"Wrong type(s) for parameter(s) 'type (Elevation or Profil)'\");\n // console.log(e.message);\n}", "err": {}, - "uuid": "6b998566-06ba-46da-9b86-e50552b6a284", - "parentUUID": "5823e4cb-111e-4cab-9ef4-0b2d48c74ae9", + "uuid": "0dc7bc52-189c-48b7-a860-c69fc06f1b8d", + "parentUUID": "7b8e57bf-7d05-4a06-b606-8bee92b4970e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "89b8e4fe-d797-476d-9519-7ea8f0ce046e", - "a53d5b57-602f-4583-8ad3-29becf9632c7", - "2f1a91e2-f30c-4bea-be3f-e55e40682f0a", - "23a67d09-44aa-40e4-bfd7-154894ffa819", - "6b998566-06ba-46da-9b86-e50552b6a284" + "7521451d-5ba2-4a1f-b124-c57a1a608fc0", + "bb123e2b-fcb0-4add-80eb-4cc5afabb903", + "600f13ce-358e-4d4e-93a6-573c0f0d5004", + "5c099716-3317-4a6b-a45c-13107731ab93", + "0dc7bc52-189c-48b7-a860-c69fc06f1b8d" ], "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 2, "root": false, "rootEmpty": false, "_timeout": 2000 }, { - "uuid": "8594f262-7061-45c1-915a-5b8677f5c97f", + "uuid": "7a480321-5e79-4890-a462-5d0b369f8224", "title": "-- AltiRequestFactory --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -1735,7 +1735,7 @@ "title": "test service REST en POST sur un PROFIL", "fullTitle": "-- Test AltiRequest -- -- AltiRequestFactory -- test service REST en POST sur un PROFIL", "timedOut": false, - "duration": 0, + "duration": 3, "state": "passed", "speed": "fast", "pass": true, @@ -1744,8 +1744,8 @@ "context": null, "code": "options.httpMethod = \"POST\";\ntry {\n var request = _src_Services_Alti_Request_AltiRequestFactory__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].build(options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(request).not.to.be.null;\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(true).to.be.true;\n} catch (e) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n}", "err": {}, - "uuid": "16693cc8-0b6e-40ea-b30f-485c629936ee", - "parentUUID": "8594f262-7061-45c1-915a-5b8677f5c97f", + "uuid": "996f1350-86c1-4699-a0b6-34cc0374bc11", + "parentUUID": "7a480321-5e79-4890-a462-5d0b369f8224", "isHook": false, "skipped": false }, @@ -1762,8 +1762,8 @@ "context": null, "code": "options.httpMethod = \"GET\";\ntry {\n var request = _src_Services_Alti_Request_AltiRequestFactory__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].build(options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(request).not.to.be.null;\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(true).to.be.true;\n} catch (e) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n}", "err": {}, - "uuid": "9217ad89-1ffb-479c-ae84-a8d1c59dcf43", - "parentUUID": "8594f262-7061-45c1-915a-5b8677f5c97f", + "uuid": "e3dcb4f9-ed6b-405c-a374-d7c6c0efbf74", + "parentUUID": "7a480321-5e79-4890-a462-5d0b369f8224", "isHook": false, "skipped": false }, @@ -1780,8 +1780,8 @@ "context": null, "code": "options.httpMethod = \"GET\";\noptions.api = \"WPS\";\ntry {\n var request = _src_Services_Alti_Request_AltiRequestFactory__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].build(options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(request).not.to.be.null;\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(true).to.be.true;\n} catch (e) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n}", "err": {}, - "uuid": "7b760129-1c22-4d37-ba5e-7c59641084f6", - "parentUUID": "8594f262-7061-45c1-915a-5b8677f5c97f", + "uuid": "45ef63a5-5bbc-4adb-921f-a2403f6e7c5a", + "parentUUID": "7a480321-5e79-4890-a462-5d0b369f8224", "isHook": false, "skipped": false }, @@ -1789,7 +1789,7 @@ "title": "test service WPS en POST sur un PROFIL", "fullTitle": "-- Test AltiRequest -- -- AltiRequestFactory -- test service WPS en POST sur un PROFIL", "timedOut": false, - "duration": 1, + "duration": 0, "state": "passed", "speed": "fast", "pass": true, @@ -1798,23 +1798,23 @@ "context": null, "code": "options.httpMethod = \"POST\";\noptions.api = \"WPS\";\ntry {\n var request = _src_Services_Alti_Request_AltiRequestFactory__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].build(options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(request).not.to.be.null;\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(true).to.be.true;\n} catch (e) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n}", "err": {}, - "uuid": "0e60d5f6-c297-4f9a-99f9-7a8e24a6210b", - "parentUUID": "8594f262-7061-45c1-915a-5b8677f5c97f", + "uuid": "da1ae2e2-a919-44e8-9457-ed433d7ca5d0", + "parentUUID": "7a480321-5e79-4890-a462-5d0b369f8224", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "16693cc8-0b6e-40ea-b30f-485c629936ee", - "9217ad89-1ffb-479c-ae84-a8d1c59dcf43", - "7b760129-1c22-4d37-ba5e-7c59641084f6", - "0e60d5f6-c297-4f9a-99f9-7a8e24a6210b" + "996f1350-86c1-4699-a0b6-34cc0374bc11", + "e3dcb4f9-ed6b-405c-a374-d7c6c0efbf74", + "45ef63a5-5bbc-4adb-921f-a2403f6e7c5a", + "da1ae2e2-a919-44e8-9457-ed433d7ca5d0" ], "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 4, "root": false, "rootEmpty": false, "_timeout": 2000 @@ -1830,19 +1830,19 @@ "_timeout": 2000 }, { - "uuid": "9b068fc3-d8eb-480a-9425-ea2700ee848a", + "uuid": "f90e2298-6b91-4164-b581-01c751607968", "title": "-- Tests Alti --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "ba45b6a0-b4db-4337-990b-cd81fa446664", + "uuid": "2ca8a590-1901-44df-97fd-1b2ef189c02f", "title": "-- AltiResponse", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -1859,15 +1859,15 @@ "context": null, "code": "var o = new _src_Services_Alti_Response_model_AltiResponse__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"]();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(o);\nvar elevations = o.elevations;\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(elevations);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(elevations).to.be.an(\"Array\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(elevations).to.be.empty;", "err": {}, - "uuid": "59aea25a-45da-492f-9557-b62cccc79294", - "parentUUID": "ba45b6a0-b4db-4337-990b-cd81fa446664", + "uuid": "72b38789-f11e-4ea1-b32d-a4473f9aa8e4", + "parentUUID": "2ca8a590-1901-44df-97fd-1b2ef189c02f", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "59aea25a-45da-492f-9557-b62cccc79294" + "72b38789-f11e-4ea1-b32d-a4473f9aa8e4" ], "failures": [], "pending": [], @@ -1878,10 +1878,10 @@ "_timeout": 2000 }, { - "uuid": "2d458bf4-41a6-4a41-a13e-1c4fa1c1d12b", + "uuid": "2b403231-c348-455d-83f4-69f7dabd4afb", "title": "-- AltiResponseReader", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -1898,8 +1898,8 @@ "context": null, "code": "Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(_src_Services_Alti_Formats_AltiResponseReader__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Services_Alti_Formats_AltiResponseReader__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]).to.have.property(\"READERS\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Services_Alti_Formats_AltiResponseReader__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"]).to.have.property(\"read\");", "err": {}, - "uuid": "b73bc5b3-f98c-4950-92ec-f82ce51c30b2", - "parentUUID": "2d458bf4-41a6-4a41-a13e-1c4fa1c1d12b", + "uuid": "c10ad003-d06f-4a7f-b678-68914b053631", + "parentUUID": "2b403231-c348-455d-83f4-69f7dabd4afb", "isHook": false, "skipped": false }, @@ -1907,7 +1907,7 @@ "title": "AltiResponseReader.read(root)", "fullTitle": "-- Tests Alti -- -- AltiResponseReader AltiResponseReader.read(root)", "timedOut": false, - "duration": 1, + "duration": 0, "state": "passed", "speed": "fast", "pass": true, @@ -1916,21 +1916,21 @@ "context": null, "code": "// vérification des infos d'une réponse avec 1 résultat de type StreetAddress.\nvar rep = _src_Services_Alti_Formats_AltiResponseReader__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"].read(xmlDoc.documentElement);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(rep);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(rep).to.have.property(\"elevations\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(rep.elevations).to.be.an(\"array\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(rep.elevations).to.have.length(2);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(rep.elevations[0]).to.have.property(\"z\", 93.58);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(rep.elevations[1]).to.have.property(\"lon\", 2.157);\n// vérification avec une réponse contenant une exception\nrep = _src_Services_Alti_Formats_AltiResponseReader__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"].read(xmlErrorDoc.documentElement);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(rep);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(rep).to.have.property(\"exceptionReport\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(rep.exceptionReport).to.have.property(\"exceptionCode\", \"MissingRights\");", "err": {}, - "uuid": "2505a06b-8b29-478a-a227-a121991f2375", - "parentUUID": "2d458bf4-41a6-4a41-a13e-1c4fa1c1d12b", + "uuid": "dcb48255-094c-4cbb-856d-38d7bb976baa", + "parentUUID": "2b403231-c348-455d-83f4-69f7dabd4afb", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "b73bc5b3-f98c-4950-92ec-f82ce51c30b2", - "2505a06b-8b29-478a-a227-a121991f2375" + "c10ad003-d06f-4a7f-b678-68914b053631", + "dcb48255-094c-4cbb-856d-38d7bb976baa" ], "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 0, "root": false, "rootEmpty": false, "_timeout": 2000 @@ -1946,19 +1946,19 @@ "_timeout": 2000 }, { - "uuid": "98378825-717f-44f0-81a9-211251d6c409", + "uuid": "8ba2cc95-f199-42d0-94a0-a226d3a72834", "title": "-- Tests AutoCompleteResponse --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "e9a28ef7-5ebf-4161-9f1b-1ff61d8dbdea", + "uuid": "a7881eeb-0a70-4236-9bef-1ddb88c31ad5", "title": "-- AutoCompleteResponse", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -1975,8 +1975,8 @@ "context": null, "code": "var a = new _src_Services_AutoComplete_Response_model_AutoCompleteResponse__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"]();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(a);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(a).to.have.property(\"suggestedLocations\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(a.suggestedLocations).to.be.an(\"array\");", "err": {}, - "uuid": "aadba67d-b88a-4773-a05d-574daa0649e6", - "parentUUID": "e9a28ef7-5ebf-4161-9f1b-1ff61d8dbdea", + "uuid": "764008f4-bef9-4080-acdd-ef62547684ba", + "parentUUID": "a7881eeb-0a70-4236-9bef-1ddb88c31ad5", "isHook": false, "skipped": false }, @@ -1993,16 +1993,16 @@ "context": null, "code": "var s = new _src_Services_AutoComplete_Response_model_SuggestedLocation__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"]();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(s);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(s).to.have.property(\"type\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(s).to.have.property(\"position\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(s.position).to.be.an(\"object\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(s.position).to.have.property(\"x\", null);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(s.position).to.have.property(\"y\", null);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(s).to.have.property(\"commune\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(s).to.have.property(\"fullText\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(s).to.have.property(\"postalCode\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(s).to.have.property(\"classification\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(s).to.have.property(\"street\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(s).to.have.property(\"poi\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(s).to.have.property(\"kind\");", "err": {}, - "uuid": "0151bf16-914c-4e2e-815d-2e4d20cfcf0d", - "parentUUID": "e9a28ef7-5ebf-4161-9f1b-1ff61d8dbdea", + "uuid": "1a9c1147-14ff-44f6-8e8d-43106d7020ae", + "parentUUID": "a7881eeb-0a70-4236-9bef-1ddb88c31ad5", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "aadba67d-b88a-4773-a05d-574daa0649e6", - "0151bf16-914c-4e2e-815d-2e4d20cfcf0d" + "764008f4-bef9-4080-acdd-ef62547684ba", + "1a9c1147-14ff-44f6-8e8d-43106d7020ae" ], "failures": [], "pending": [], @@ -2023,19 +2023,19 @@ "_timeout": 2000 }, { - "uuid": "8045a840-82b4-437e-b126-f4ceb5ac926d", + "uuid": "dbac44f8-1d10-46a5-bee7-eff707bb8086", "title": "-- Test CommonService --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "5b4e3396-943e-4cf6-b8b2-da7ed3158e5f", + "uuid": "20b7c2f5-bac5-499d-ba13-5e4fa9096dcb", "title": "CommonService", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -2052,8 +2052,8 @@ "context": null, "code": "var common;\ntry {\n common = new _src_Services_CommonService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"](options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n} catch (e) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(true).to.be.true;\n // expect(e.message).to.be.equal(\"Parameter(s) 'serverUrl' missing\");\n // console.log(e.message);\n}", "err": {}, - "uuid": "a2656eed-3678-4925-855b-2b3854225045", - "parentUUID": "5b4e3396-943e-4cf6-b8b2-da7ed3158e5f", + "uuid": "5053e2fe-0fca-45b7-8b2b-5cb825cee1af", + "parentUUID": "20b7c2f5-bac5-499d-ba13-5e4fa9096dcb", "isHook": false, "skipped": false }, @@ -2070,8 +2070,8 @@ "context": null, "code": "options.serverUrl = \"http://localhost/service\";\nvar common;\ntry {\n common = new _src_Services_CommonService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"](options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(true).to.be.true;\n} catch (e) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n}", "err": {}, - "uuid": "0ce358a5-e4fa-422a-bbf9-58a3f0b65b67", - "parentUUID": "5b4e3396-943e-4cf6-b8b2-da7ed3158e5f", + "uuid": "4884299d-e59c-4c98-9bde-c7668f02af24", + "parentUUID": "20b7c2f5-bac5-499d-ba13-5e4fa9096dcb", "isHook": false, "skipped": false }, @@ -2088,8 +2088,8 @@ "context": null, "code": "options.serverUrl = \"http://localhost/service\";\noptions.httpMethod = \"PUT\";\nvar common;\ntry {\n common = new _src_Services_CommonService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"](options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n} catch (e) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(true).to.be.true;\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(e.message).to.be.equal(\"Value(s) for parameter(s) 'httpMethod' not supported\");\n // console.log(e.message);\n}", "err": {}, - "uuid": "7c9d51b3-9c4b-46b9-80cb-7f856bdec7be", - "parentUUID": "5b4e3396-943e-4cf6-b8b2-da7ed3158e5f", + "uuid": "c48d31cb-3a92-4adc-80f0-8aa6021955f0", + "parentUUID": "20b7c2f5-bac5-499d-ba13-5e4fa9096dcb", "isHook": false, "skipped": false }, @@ -2106,8 +2106,8 @@ "context": null, "code": "options.serverUrl = \"http://localhost/service\";\noptions.httpMethod = \"BIDON\";\nvar common;\ntry {\n common = new _src_Services_CommonService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"](options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n} catch (e) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(true).to.be.true;\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(e.message).to.be.equal(\"Value(s) for parameter(s) 'httpMethod' unknown\");\n // console.log(e.message);\n}", "err": {}, - "uuid": "01a68487-b1b6-4297-bc16-f7e7766762d7", - "parentUUID": "5b4e3396-943e-4cf6-b8b2-da7ed3158e5f", + "uuid": "97e738b4-ca62-4f48-8138-1ac2ad7192a7", + "parentUUID": "20b7c2f5-bac5-499d-ba13-5e4fa9096dcb", "isHook": false, "skipped": false }, @@ -2124,8 +2124,8 @@ "context": null, "code": "options.serverUrl = \"http://localhost/service\";\noptions.httpMethod = \"get\";\nvar common;\ntry {\n common = new _src_Services_CommonService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"](options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(true).to.be.true;\n} catch (e) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n}", "err": {}, - "uuid": "275f2c2d-c0da-48c1-9867-2aa6d389e07c", - "parentUUID": "5b4e3396-943e-4cf6-b8b2-da7ed3158e5f", + "uuid": "de2a275e-3f6f-4edf-b2da-3e235f768871", + "parentUUID": "20b7c2f5-bac5-499d-ba13-5e4fa9096dcb", "isHook": false, "skipped": false }, @@ -2142,8 +2142,8 @@ "context": null, "code": "options.serverUrl = \"http://localhost/service\";\noptions.protocol = \"BIDON\";\nvar common;\ntry {\n common = new _src_Services_CommonService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"](options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n} catch (e) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(true).to.be.true;\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(e.message).to.be.equal(\"Value(s) for parameter(s) 'protocol' unknown\");\n // console.log(e.message);\n}", "err": {}, - "uuid": "ee7cb73e-054e-4d6d-92d0-78d70bd8d4b5", - "parentUUID": "5b4e3396-943e-4cf6-b8b2-da7ed3158e5f", + "uuid": "b7c939fd-4cbf-4216-9af2-724795abe05c", + "parentUUID": "20b7c2f5-bac5-499d-ba13-5e4fa9096dcb", "isHook": false, "skipped": false }, @@ -2160,8 +2160,8 @@ "context": null, "code": "options.serverUrl = \"http://localhost/service\";\noptions.protocol = \"xhr\";\nvar common;\ntry {\n common = new _src_Services_CommonService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"](options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(true).to.be.true;\n} catch (e) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n}", "err": {}, - "uuid": "dfed3a21-ff92-469b-87d4-4628da8597eb", - "parentUUID": "5b4e3396-943e-4cf6-b8b2-da7ed3158e5f", + "uuid": "e839363a-75f3-4192-aaaa-13b889a8048f", + "parentUUID": "20b7c2f5-bac5-499d-ba13-5e4fa9096dcb", "isHook": false, "skipped": false }, @@ -2178,22 +2178,22 @@ "context": null, "code": "options.serverUrl = \"http://localhost/service\";\noptions.protocol = \"xhr\";\noptions.onSuccess = null;\nvar common;\ntry {\n common = new _src_Services_CommonService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"](options);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n} catch (e) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(true).to.be.true;\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(e.message).to.be.equal(\"Parameter(s) 'onSuccess()' missing\");\n // console.log(e.message);\n}", "err": {}, - "uuid": "c12e9eb0-e525-40ea-bd14-f0b20dd48492", - "parentUUID": "5b4e3396-943e-4cf6-b8b2-da7ed3158e5f", + "uuid": "e351bb66-cbda-4ece-aa94-17783ac02f0c", + "parentUUID": "20b7c2f5-bac5-499d-ba13-5e4fa9096dcb", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "a2656eed-3678-4925-855b-2b3854225045", - "0ce358a5-e4fa-422a-bbf9-58a3f0b65b67", - "7c9d51b3-9c4b-46b9-80cb-7f856bdec7be", - "01a68487-b1b6-4297-bc16-f7e7766762d7", - "275f2c2d-c0da-48c1-9867-2aa6d389e07c", - "ee7cb73e-054e-4d6d-92d0-78d70bd8d4b5", - "dfed3a21-ff92-469b-87d4-4628da8597eb", - "c12e9eb0-e525-40ea-bd14-f0b20dd48492" + "5053e2fe-0fca-45b7-8b2b-5cb825cee1af", + "4884299d-e59c-4c98-9bde-c7668f02af24", + "c48d31cb-3a92-4adc-80f0-8aa6021955f0", + "97e738b4-ca62-4f48-8138-1ac2ad7192a7", + "de2a275e-3f6f-4edf-b2da-3e235f768871", + "b7c939fd-4cbf-4216-9af2-724795abe05c", + "e839363a-75f3-4192-aaaa-13b889a8048f", + "e351bb66-cbda-4ece-aa94-17783ac02f0c" ], "failures": [], "pending": [], @@ -2214,19 +2214,19 @@ "_timeout": 2000 }, { - "uuid": "e6939ad1-77c4-4c19-9f9c-cdae212c808c", + "uuid": "a54493a3-f673-435e-8425-09087827a9cf", "title": "-- Test DefaultUrlService --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "ee5931a1-ca2b-460e-a508-42eca7da4dd4", + "uuid": "19c3b401-f0a6-4b23-b6d4-88ec9f9c54c7", "title": "URLs par defaut des services", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -2243,15 +2243,15 @@ "context": null, "code": "Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Services_DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].Alti.newUrl(key)[\"elevation-json\"]).to.be.equal(\"https://data.geopf.fr/altimetrie/1.0/calcul/alti/rest/elevation.json\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Services_DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].Alti.newUrl(key)[\"elevation-xml\"]).to.be.equal(\"https://data.geopf.fr/altimetrie/1.0/calcul/alti/rest/elevation.xml\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Services_DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].Alti.newUrl(key)[\"profil-json\"]).to.be.equal(\"https://data.geopf.fr/altimetrie/1.0/calcul/alti/rest/elevationLine.json\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Services_DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].Alti.newUrl(key)[\"profil-xml\"]).to.be.equal(\"https://data.geopf.fr/altimetrie/1.0/calcul/alti/rest/elevationLine.xml\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Services_DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].ProcessIsoCurve.newUrl(key)).to.be.equal(\"https://data.geopf.fr/navigation/isochrone\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Services_DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].AutoComplete.newUrl(key)).to.be.equal(\"https://data.geopf.fr/geocodage/completion\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Services_DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].ReverseGeocode.newUrl(key)).to.be.equal(\"https://data.geopf.fr/geocodage/reverse\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Services_DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].Config.url([key])).deep.to.be.equal([\"https://raw.githubusercontent.com/IGNF/geoportal-configuration/new-url/dist/CLEConfig.json\"]);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Services_DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].Config.url(keys)).deep.to.be.equal([\"https://raw.githubusercontent.com/IGNF/geoportal-configuration/new-url/dist/CLE1Config.json\", \"https://raw.githubusercontent.com/IGNF/geoportal-configuration/new-url/dist/CLE2Config.json\"]);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Services_DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].Geocode.newUrl(key)).to.be.equal(\"https://data.geopf.fr/geocodage/search\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Services_DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].Route.newUrl(key)).to.be.equal(\"https://data.geopf.fr/navigation/itineraire\");", "err": {}, - "uuid": "de6092ed-23d5-4f09-bbf5-04d895d84228", - "parentUUID": "ee5931a1-ca2b-460e-a508-42eca7da4dd4", + "uuid": "e392d7ce-8996-4e98-8640-69e6aea7d456", + "parentUUID": "19c3b401-f0a6-4b23-b6d4-88ec9f9c54c7", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "de6092ed-23d5-4f09-bbf5-04d895d84228" + "e392d7ce-8996-4e98-8640-69e6aea7d456" ], "failures": [], "pending": [], @@ -2272,19 +2272,19 @@ "_timeout": 2000 }, { - "uuid": "3b4a2e15-df5d-45f3-863b-4f70cddbcd9a", + "uuid": "9f709fb0-5661-4dd7-b2ef-50f61a43ffa3", "title": "-- Test GeocodeRequest --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "3b66e1a6-067a-4e34-af52-33d86ba08033", + "uuid": "554017fe-5707-48e8-b74f-0450fbea5933", "title": "DirectGeocodeRequestFactory", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -2301,15 +2301,15 @@ "context": null, "code": "var options = {\n httpMethod: \"GET\",\n geocodeMethod: \"search\",\n index: \"PositionOfInterest\",\n query: \"Saint-Mandée, 94166\",\n filter: {\n postalCode: \"94166\"\n }\n};\n/** validation */\nvar valide = function (result) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(result).to.be.a('string');\n};\nvar request = _src_Services_Geocode_Request_GeocodeRequestFactory__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].build(options);\nvalide(request);", "err": {}, - "uuid": "b764d6ff-9220-4b7f-9349-e320b1c7d4e6", - "parentUUID": "3b66e1a6-067a-4e34-af52-33d86ba08033", + "uuid": "c90a9dde-5401-4ac7-b451-815943fef4f2", + "parentUUID": "554017fe-5707-48e8-b74f-0450fbea5933", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "b764d6ff-9220-4b7f-9349-e320b1c7d4e6" + "c90a9dde-5401-4ac7-b451-815943fef4f2" ], "failures": [], "pending": [], @@ -2330,10 +2330,10 @@ "_timeout": 2000 }, { - "uuid": "ef827fbe-1374-4ddf-ba18-f7087c7ca22f", + "uuid": "02bdf430-a281-40d4-b5b7-821a0f8eead1", "title": "-- Test ProcessIsoCurveRequest --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -2350,8 +2350,8 @@ "context": null, "code": "// ex. http://wxs.ign.fr/jhyvi0fgmnuxvfv0zjzorvdn/isochrone/isochrone.json?location=-1.557189,47.217122&method=distance&distance=5000&graphName=Voiture\nvar options = {\n httpMethod: \"GET\",\n // GET|POST\n // spécifique au service\n resource: \"bduni-idf-osrm\",\n position: {\n x: 2.3242664298058053,\n y: 48.86118017324745\n },\n graph: \"car\",\n method: \"time\",\n time: 1000,\n reverse: false,\n srs: \"EPSG:4326\",\n timeUnit: \"standard\",\n distanceUnit: \"km\",\n constraints: {\n constraintType: 'banned',\n key: 'ways_type',\n operator: '=',\n value: 'autoroute'\n }\n};\ntry {\n var oIsoCurve = new _src_Services_ProcessIsoCurve_Request_ProcessIsoCurveRequest__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"](options);\n if (!oIsoCurve.processRequestString()) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n }\n var request = oIsoCurve.requestString;\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(request).not.to.be.null;\n console.log(request);\n // point=2.3242664298058053,48.86118017324745&direction=departure&costType=time&costValue=1000&profile=car&constraints=...&crs=EPSG:4326\n var values = request.split(/&/);\n var map = {};\n for (var i = 0; i < values.length; i++) {\n var val = values[i].split(/=/);\n map[val[0]] = val[1];\n }\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(map).to.have.property(\"resource\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(map).to.have.property(\"point\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(map).to.have.property(\"direction\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(map).to.have.property(\"costValue\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(map).to.have.property(\"costType\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(map).to.have.property(\"profile\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(map).to.have.property(\"constraints\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(map).to.have.property(\"crs\");\n} catch (e) {\n console.log(e);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n}", "err": {}, - "uuid": "6e7f1f3d-1429-40a0-b09a-c5a72436025b", - "parentUUID": "ef827fbe-1374-4ddf-ba18-f7087c7ca22f", + "uuid": "3c963d72-6b8a-4c9f-919b-5b1b721cedb8", + "parentUUID": "02bdf430-a281-40d4-b5b7-821a0f8eead1", "isHook": false, "skipped": false }, @@ -2359,7 +2359,7 @@ "title": "ProcessIsoCurveRequest : mode POST", "fullTitle": "-- Test ProcessIsoCurveRequest -- ProcessIsoCurveRequest : mode POST", "timedOut": false, - "duration": 0, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -2368,39 +2368,39 @@ "context": null, "code": "// ex. http://wxs.ign.fr/jhyvi0fgmnuxvfv0zjzorvdn/isochrone/isochrone.json?location=-1.557189,47.217122&method=distance&distance=5000&graphName=Voiture\nvar options = {\n httpMethod: \"POST\",\n // GET|POST\n // spécifique au service\n resource: \"bduni-idf-osrm\",\n position: {\n x: 2.3242664298058053,\n y: 48.86118017324745\n },\n graph: \"pedestrian\",\n method: \"distance\",\n distance: 200,\n reverse: true,\n srs: \"EPSG:4326\",\n timeUnit: \"standard\",\n distanceUnit: \"km\",\n constraints: {\n constraintType: 'banned',\n key: 'ways_type',\n operator: '=',\n value: 'autoroute'\n }\n};\n/** validation */\nvar valide = function (result) {\n var req = JSON.parse(result);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(req);\n // console.log(req);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req).to.have.property(\"resource\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req).to.have.property(\"constraints\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req).to.have.property(\"profile\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req).to.have.property(\"point\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req).to.have.property(\"costType\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req).to.have.property(\"costValue\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req).to.have.property(\"direction\");\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(req).to.have.property(\"crs\");\n};\ntry {\n var oIsoCurve = new _src_Services_ProcessIsoCurve_Request_ProcessIsoCurveRequest__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"](options);\n if (!oIsoCurve.processRequestString()) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n }\n var request = oIsoCurve.requestString;\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(request).not.to.be.null;\n valide(request);\n} catch (e) {\n console.log(e);\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(false).to.be.true;\n}", "err": {}, - "uuid": "7376dfc6-2474-4757-a286-04ea7f4ed981", - "parentUUID": "ef827fbe-1374-4ddf-ba18-f7087c7ca22f", + "uuid": "41e0c7b2-0d78-4756-ad61-8748c89c74b0", + "parentUUID": "02bdf430-a281-40d4-b5b7-821a0f8eead1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "6e7f1f3d-1429-40a0-b09a-c5a72436025b", - "7376dfc6-2474-4757-a286-04ea7f4ed981" + "3c963d72-6b8a-4c9f-919b-5b1b721cedb8", + "41e0c7b2-0d78-4756-ad61-8748c89c74b0" ], "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 2, "root": false, "rootEmpty": false, "_timeout": 2000 }, { - "uuid": "2073b5df-9021-4ad6-bb55-3e3e794da3eb", + "uuid": "36f7319a-af46-4f96-9221-22e684695d37", "title": "-- Tests ProcessIsoCurveResponse --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "af0e0140-b143-4300-b75a-4bcdbe1d7b07", + "uuid": "3a06400c-7dcd-40cd-a3ea-81eb85b11c83", "title": "-- ProcessIsoCurveResponse", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -2417,15 +2417,15 @@ "context": null, "code": "var p = new _src_Services_ProcessIsoCurve_Response_model_ProcessIsoCurveResponse__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"]();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(p);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(p).to.have.property(\"message\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(p).to.have.property(\"id\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(p).to.have.property(\"location\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(p.location).to.be.an(\"object\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(p.location).to.have.property(\"x\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(p.location).to.have.property(\"y\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(p).to.have.property(\"srs\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(p).to.have.property(\"geometry\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(p).to.have.property(\"time\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(p).to.have.property(\"distance\");", "err": {}, - "uuid": "3d526b0a-66c6-4445-b1a8-ee26c1ac86a0", - "parentUUID": "af0e0140-b143-4300-b75a-4bcdbe1d7b07", + "uuid": "45d9de20-fb31-437d-95e9-449b484f5c02", + "parentUUID": "3a06400c-7dcd-40cd-a3ea-81eb85b11c83", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "3d526b0a-66c6-4445-b1a8-ee26c1ac86a0" + "45d9de20-fb31-437d-95e9-449b484f5c02" ], "failures": [], "pending": [], @@ -2446,19 +2446,19 @@ "_timeout": 2000 }, { - "uuid": "1f4f8dc2-2d84-4614-81fd-acf2ccc44dce", + "uuid": "f4d1130e-4a54-4ea9-aeee-0fb365988f11", "title": "-- Test ReverseGeocodeRequest --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "d72ded97-4d4a-482d-9d76-c16bbb981e47", + "uuid": "07a128bb-04b2-44b1-b50a-5d4d8d6dc01a", "title": "GeocodeRequestFactory", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -2475,15 +2475,15 @@ "context": null, "code": "var options = {\n geocodeMethod: \"reverse\",\n searchGeometry: {\n type: \"Circle\",\n coordinates: [2.49, 49],\n radius: 100\n },\n index: \"PositionOfInterest\",\n position: {\n lon: 2.48,\n lat: 48.9\n }\n};\n/** validation */\nvar valide = function (result) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(result).to.be.a('string');\n};\nvar request = _src_Services_Geocode_Request_GeocodeRequestFactory__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].build(options);\nvalide(request);", "err": {}, - "uuid": "13eed6b3-de8e-46cf-a2e7-ed5af859c202", - "parentUUID": "d72ded97-4d4a-482d-9d76-c16bbb981e47", + "uuid": "5c26724b-2d8d-4466-b0ec-1ba2afc846d7", + "parentUUID": "07a128bb-04b2-44b1-b50a-5d4d8d6dc01a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "13eed6b3-de8e-46cf-a2e7-ed5af859c202" + "5c26724b-2d8d-4466-b0ec-1ba2afc846d7" ], "failures": [], "pending": [], @@ -2504,19 +2504,19 @@ "_timeout": 2000 }, { - "uuid": "b8d49f87-194f-48bc-9959-78aba5d165b8", + "uuid": "8fdb13c2-c6ba-41a1-9b15-7f55a104368c", "title": "-- Test RouteRequest --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "57bf21c5-ee58-4c0c-9ef4-109949d4fba0", + "uuid": "58fe8063-31b1-44df-b871-4907d87ab5a6", "title": "RouteRequest", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -2524,7 +2524,7 @@ "title": "Appel de la factory : en mode REST avec options minimales", "fullTitle": "-- Test RouteRequest -- RouteRequest Appel de la factory : en mode REST avec options minimales", "timedOut": false, - "duration": 0, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -2533,8 +2533,8 @@ "context": null, "code": "var options = {\n onSuccess: function (response) {\n console.log(response);\n },\n onFailure: function (error) {\n console.log(error);\n },\n // spécifique au service\n resource: \"bdtopo-osrm\",\n startPoint: {\n x: 2.64,\n y: 48.54\n },\n endPoint: {\n x: 3.01,\n y: 48.45\n }\n};\n/** validation */\nvar valide = function (result) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(result).to.be.equal(\"resource=bdtopo-osrm&start=2.64,48.54&end=3.01,48.45&geometryFormat=geojson\");\n};\nvar request = _src_Services_Route_Request_RouteRequestFactory__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].build(options);\nvalide(request);", "err": {}, - "uuid": "f39007f9-3947-4c56-a15c-ca8b2f83739d", - "parentUUID": "57bf21c5-ee58-4c0c-9ef4-109949d4fba0", + "uuid": "b6b78445-fe06-4676-afdd-7152829fa5c9", + "parentUUID": "58fe8063-31b1-44df-b871-4907d87ab5a6", "isHook": false, "skipped": false }, @@ -2542,7 +2542,7 @@ "title": "Appel de la factory : mode REST avec options plus complet", "fullTitle": "-- Test RouteRequest -- RouteRequest Appel de la factory : mode REST avec options plus complet", "timedOut": false, - "duration": 1, + "duration": 0, "state": "passed", "speed": "fast", "pass": true, @@ -2551,16 +2551,16 @@ "context": null, "code": "var options = {\n onSuccess: function (response) {\n console.log(response);\n },\n onFailure: function (error) {\n console.log(error);\n },\n // spécifique au service\n resource: \"bdtopo-osrm\",\n startPoint: {\n x: 2.64,\n y: 48.54\n },\n endPoint: {\n x: 3.01,\n y: 48.45\n },\n viaPoints: [{\n x: 3.02,\n y: 48.46\n }],\n provideBbox: true,\n constraints: [{\n \"constraintType\": \"banned\",\n \"key\": \"wayType\",\n \"operator\": \"=\",\n \"value\": \"tunnel\"\n }, {\n \"constraintType\": \"banned\",\n \"key\": \"wayType\",\n \"operator\": \"=\",\n \"value\": \"pont\"\n }, {\n \"constraintType\": \"banned\",\n \"key\": \"wayType\",\n \"operator\": \"=\",\n \"value\": \"autoroute\"\n }],\n distanceUnit: \"m\",\n timeUnit: \"second\",\n graph: \"car\",\n geometryInInstructions: true,\n routePreference: \"shortest\",\n srs: \"EPSG:4326\",\n waysAttributes: [\"name\"]\n};\n/** validation */\nvar valide = function (result) {\n Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(result).to.be.equal('resource=bdtopo-osrm&start=2.64,48.54&end=3.01,48.45&geometryFormat=geojson&optimization=shortest&intermediates=3.02,48.46&profile=car&constraints={\"constraintType\":\"banned\",\"key\":\"wayType\",\"operator\":\"=\",\"value\":\"tunnel\"}|{\"constraintType\":\"banned\",\"key\":\"wayType\",\"operator\":\"=\",\"value\":\"pont\"}|{\"constraintType\":\"banned\",\"key\":\"wayType\",\"operator\":\"=\",\"value\":\"autoroute\"}&crs=EPSG:4326&distanceUnit=meter&timeUnit=second&waysAttributes=name');\n};\nvar request = _src_Services_Route_Request_RouteRequestFactory__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].build(options);\nvalide(request);", "err": {}, - "uuid": "d62771c4-f155-4304-972c-ae271aea0943", - "parentUUID": "57bf21c5-ee58-4c0c-9ef4-109949d4fba0", + "uuid": "3d4dac71-b2d4-4f6f-a6c5-3e58e38d0117", + "parentUUID": "58fe8063-31b1-44df-b871-4907d87ab5a6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "f39007f9-3947-4c56-a15c-ca8b2f83739d", - "d62771c4-f155-4304-972c-ae271aea0943" + "b6b78445-fe06-4676-afdd-7152829fa5c9", + "3d4dac71-b2d4-4f6f-a6c5-3e58e38d0117" ], "failures": [], "pending": [], @@ -2581,19 +2581,19 @@ "_timeout": 2000 }, { - "uuid": "18024d8d-4f21-4d4d-9406-d96b98e195b1", + "uuid": "e8cd43d6-53e5-4777-b1a3-8c63813762ae", "title": "-- Tests RouteResponse --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "17d0dcef-beea-4870-9391-e543a50e5acd", + "uuid": "85f099f7-7504-4162-95dc-386992369eca", "title": "-- test de l'objet RouteResponse en sortie", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -2601,7 +2601,7 @@ "title": "attributs de RouteResponse()", "fullTitle": "-- Tests RouteResponse -- -- test de l'objet RouteResponse en sortie attributs de RouteResponse()", "timedOut": false, - "duration": 1, + "duration": 0, "state": "passed", "speed": "fast", "pass": true, @@ -2610,8 +2610,8 @@ "context": null, "code": "var r = new _src_Services_Route_Response_model_RouteResponse__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"]();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(r);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(r).to.have.property(\"totalTime\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(r).to.have.property(\"totalDistance\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(r).to.have.property(\"bbox\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(r.bbox).to.be.an(\"object\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(r.bbox).to.have.property(\"left\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(r.bbox).to.have.property(\"right\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(r.bbox).to.have.property(\"top\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(r.bbox).to.have.property(\"bottom\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(r).to.have.property(\"routeGeometry\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(r).to.have.property(\"routeInstructions\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(r.routeInstructions).to.be.an(\"array\");", "err": {}, - "uuid": "79a48fd2-146b-44cc-af28-10720354a2e3", - "parentUUID": "17d0dcef-beea-4870-9391-e543a50e5acd", + "uuid": "861d2e2f-a2e3-4c86-847d-c5e68065ff80", + "parentUUID": "85f099f7-7504-4162-95dc-386992369eca", "isHook": false, "skipped": false }, @@ -2628,21 +2628,21 @@ "context": null, "code": "var r = new _src_Services_Route_Response_model_RouteInstruction__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"]();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"should\"])().exist(r);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(r).to.have.property(\"duration\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(r).to.have.property(\"distance\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(r).to.have.property(\"code\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(r).to.have.property(\"instruction\");", "err": {}, - "uuid": "f44d53ec-9e2a-4392-9ef5-f3a76d301968", - "parentUUID": "17d0dcef-beea-4870-9391-e543a50e5acd", + "uuid": "067d89a5-952c-4726-aa99-2da7e8c7113b", + "parentUUID": "85f099f7-7504-4162-95dc-386992369eca", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "79a48fd2-146b-44cc-af28-10720354a2e3", - "f44d53ec-9e2a-4392-9ef5-f3a76d301968" + "861d2e2f-a2e3-4c86-847d-c5e68065ff80", + "067d89a5-952c-4726-aa99-2da7e8c7113b" ], "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 0, "root": false, "rootEmpty": false, "_timeout": 2000 @@ -2658,19 +2658,19 @@ "_timeout": 2000 }, { - "uuid": "f51a8a6f-3c1a-4e89-98e5-3d435e56b0cd", + "uuid": "7c5f1c69-c796-459b-b61f-fb700b9c2caa", "title": "-- Test for Services --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "7d4419d2-5533-4973-92cc-a83625da2cc1", + "uuid": "aac6a417-d1ce-4ac4-8755-fa6331817b4f", "title": "TODO : Services", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -2687,8 +2687,8 @@ "context": null, "code": "", "err": {}, - "uuid": "f349b543-3c29-4927-8079-a1a0b3f2555f", - "parentUUID": "7d4419d2-5533-4973-92cc-a83625da2cc1", + "uuid": "655e1df8-fa81-422d-8e08-cff4f8a2d5a9", + "parentUUID": "aac6a417-d1ce-4ac4-8755-fa6331817b4f", "isHook": false, "skipped": false }, @@ -2705,8 +2705,8 @@ "context": null, "code": "", "err": {}, - "uuid": "5ba685ca-10b6-4348-8dde-1cb76b8f8112", - "parentUUID": "7d4419d2-5533-4973-92cc-a83625da2cc1", + "uuid": "bd9039cf-5726-4e7c-b17c-afd4544c0ca8", + "parentUUID": "aac6a417-d1ce-4ac4-8755-fa6331817b4f", "isHook": false, "skipped": false }, @@ -2723,8 +2723,8 @@ "context": null, "code": "", "err": {}, - "uuid": "6f4ff8eb-cfa7-40b0-aa0f-04634d74d123", - "parentUUID": "7d4419d2-5533-4973-92cc-a83625da2cc1", + "uuid": "499748f5-19a1-430b-8938-f2b65298d6df", + "parentUUID": "aac6a417-d1ce-4ac4-8755-fa6331817b4f", "isHook": false, "skipped": false }, @@ -2741,8 +2741,8 @@ "context": null, "code": "", "err": {}, - "uuid": "d3ef59cc-6a70-41d2-af54-6312e7bd9a32", - "parentUUID": "7d4419d2-5533-4973-92cc-a83625da2cc1", + "uuid": "47751572-087f-4555-96fa-d8e0403d2ff8", + "parentUUID": "aac6a417-d1ce-4ac4-8755-fa6331817b4f", "isHook": false, "skipped": false }, @@ -2759,8 +2759,8 @@ "context": null, "code": "", "err": {}, - "uuid": "9bb26d0a-0dc3-4aa1-a9ac-b94c45a55b97", - "parentUUID": "7d4419d2-5533-4973-92cc-a83625da2cc1", + "uuid": "dac857bf-a32b-4364-8d0b-92a8b6ce8d07", + "parentUUID": "aac6a417-d1ce-4ac4-8755-fa6331817b4f", "isHook": false, "skipped": false }, @@ -2777,8 +2777,8 @@ "context": null, "code": "", "err": {}, - "uuid": "76c08bf7-df1b-4ae3-8938-eb0c6a6f0dd4", - "parentUUID": "7d4419d2-5533-4973-92cc-a83625da2cc1", + "uuid": "cb9a8173-c7e0-4513-95c7-e4e623226c17", + "parentUUID": "aac6a417-d1ce-4ac4-8755-fa6331817b4f", "isHook": false, "skipped": false }, @@ -2795,8 +2795,8 @@ "context": null, "code": "", "err": {}, - "uuid": "074f4be0-54dc-4580-b2fd-d2f1dec3d571", - "parentUUID": "7d4419d2-5533-4973-92cc-a83625da2cc1", + "uuid": "98c245f3-1d75-4a80-8170-3f846d83ae05", + "parentUUID": "aac6a417-d1ce-4ac4-8755-fa6331817b4f", "isHook": false, "skipped": false } @@ -2805,13 +2805,13 @@ "passes": [], "failures": [], "pending": [ - "f349b543-3c29-4927-8079-a1a0b3f2555f", - "5ba685ca-10b6-4348-8dde-1cb76b8f8112", - "6f4ff8eb-cfa7-40b0-aa0f-04634d74d123", - "d3ef59cc-6a70-41d2-af54-6312e7bd9a32", - "9bb26d0a-0dc3-4aa1-a9ac-b94c45a55b97", - "76c08bf7-df1b-4ae3-8938-eb0c6a6f0dd4", - "074f4be0-54dc-4580-b2fd-d2f1dec3d571" + "655e1df8-fa81-422d-8e08-cff4f8a2d5a9", + "bd9039cf-5726-4e7c-b17c-afd4544c0ca8", + "499748f5-19a1-430b-8938-f2b65298d6df", + "47751572-087f-4555-96fa-d8e0403d2ff8", + "dac857bf-a32b-4364-8d0b-92a8b6ce8d07", + "cb9a8173-c7e0-4513-95c7-e4e623226c17", + "98c245f3-1d75-4a80-8170-3f846d83ae05" ], "skipped": [], "duration": 0, @@ -2830,19 +2830,19 @@ "_timeout": 2000 }, { - "uuid": "de868f59-59a5-47a1-96e9-ec658489f925", + "uuid": "2acc47d9-389f-4cda-86cf-a3f67d6bcc8b", "title": "-- Test for Helper --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "4d575346-dc28-41e9-a41a-02d7b7bec5f6", + "uuid": "8643cfe3-d92f-431f-ae8a-b4429a3fcd84", "title": "Helper.normalyzeParameters()", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -2859,8 +2859,8 @@ "context": null, "code": "var result = _src_Utils_Helper__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].normalyzeParameters({\n k1: \"value1\",\n k2: \"value2\"\n});\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(result).to.be.equal(\"k1=value1&k2=value2\");", "err": {}, - "uuid": "9c55b5cb-947d-46c6-83ab-c48d176dbdf2", - "parentUUID": "4d575346-dc28-41e9-a41a-02d7b7bec5f6", + "uuid": "053685b9-0995-40fa-8215-b8de130a773b", + "parentUUID": "8643cfe3-d92f-431f-ae8a-b4429a3fcd84", "isHook": false, "skipped": false }, @@ -2877,8 +2877,8 @@ "context": null, "code": "var result = _src_Utils_Helper__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].normalyzeParameters();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(result).to.be.null;", "err": {}, - "uuid": "3f3f776f-e9d5-4c36-a0da-d8c0b45a44b5", - "parentUUID": "4d575346-dc28-41e9-a41a-02d7b7bec5f6", + "uuid": "5d3edddc-d01b-4877-a566-a78f4828299a", + "parentUUID": "8643cfe3-d92f-431f-ae8a-b4429a3fcd84", "isHook": false, "skipped": false }, @@ -2895,17 +2895,17 @@ "context": null, "code": "var result = _src_Utils_Helper__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].normalyzeParameters({\n k1: \"value1\",\n k2: \"value2\",\n k3: null\n});\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(result).to.be.equal(\"k1=value1&k2=value2&k3=\");", "err": {}, - "uuid": "9dc1fb8a-e710-4177-9791-f553e42230d7", - "parentUUID": "4d575346-dc28-41e9-a41a-02d7b7bec5f6", + "uuid": "dabdaa75-4990-4c86-9fcc-5e60c27a04f1", + "parentUUID": "8643cfe3-d92f-431f-ae8a-b4429a3fcd84", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "9c55b5cb-947d-46c6-83ab-c48d176dbdf2", - "3f3f776f-e9d5-4c36-a0da-d8c0b45a44b5", - "9dc1fb8a-e710-4177-9791-f553e42230d7" + "053685b9-0995-40fa-8215-b8de130a773b", + "5d3edddc-d01b-4877-a566-a78f4828299a", + "dabdaa75-4990-4c86-9fcc-5e60c27a04f1" ], "failures": [], "pending": [], @@ -2916,10 +2916,10 @@ "_timeout": 2000 }, { - "uuid": "e836df78-a77e-40a9-b12c-ba165887ee8a", + "uuid": "7b10faf8-1fe7-46b9-9220-3f1434c42acd", "title": "Helper.normalyzeUrl()", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -2936,8 +2936,8 @@ "context": null, "code": "var result = _src_Utils_Helper__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].normalyzeUrl(\"http://localhost/service\", {\n k1: \"value1\",\n k2: \"value2\"\n});\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(result).to.be.equal(\"http://localhost/service?k1=value1&k2=value2\");", "err": {}, - "uuid": "ab55acc5-e815-4681-b71e-5aaa4ba3edfa", - "parentUUID": "e836df78-a77e-40a9-b12c-ba165887ee8a", + "uuid": "399e4a4c-8574-4db4-88ac-dd70fa7763f9", + "parentUUID": "7b10faf8-1fe7-46b9-9220-3f1434c42acd", "isHook": false, "skipped": false }, @@ -2954,8 +2954,8 @@ "context": null, "code": "var result = _src_Utils_Helper__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].normalyzeUrl();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(result).to.be.undefined;", "err": {}, - "uuid": "0dbf4c3a-84e7-4656-9d47-cf27224b6b7f", - "parentUUID": "e836df78-a77e-40a9-b12c-ba165887ee8a", + "uuid": "0974b29f-c23f-4216-95cf-29c12af23dec", + "parentUUID": "7b10faf8-1fe7-46b9-9220-3f1434c42acd", "isHook": false, "skipped": false }, @@ -2972,8 +2972,8 @@ "context": null, "code": "var result = _src_Utils_Helper__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].normalyzeUrl(\"http://localhost/service\", {\n k1: \"value1\",\n k2: \"value2\"\n}, true);\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(result).to.be.equal(\"http%3A%2F%2Flocalhost%2Fservice%3Fk1%3Dvalue1%26k2%3Dvalue2\");", "err": {}, - "uuid": "4bf57414-7ceb-44c6-a6c4-39d359004c16", - "parentUUID": "e836df78-a77e-40a9-b12c-ba165887ee8a", + "uuid": "59145a7b-f6e9-47e7-ae0f-7c1488289e28", + "parentUUID": "7b10faf8-1fe7-46b9-9220-3f1434c42acd", "isHook": false, "skipped": false }, @@ -2990,8 +2990,8 @@ "context": null, "code": "var result = _src_Utils_Helper__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].normalyzeUrl(\"http://localhost/service?k0=value0\", {\n k1: \"value1\",\n k2: \"value2\"\n});\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(result).to.be.equal(\"http://localhost/service?k0=value0&k1=value1&k2=value2\");", "err": {}, - "uuid": "63056da0-2906-451f-bcda-1d186039e6a0", - "parentUUID": "e836df78-a77e-40a9-b12c-ba165887ee8a", + "uuid": "31836070-e083-46c2-be85-ab80715e3fbc", + "parentUUID": "7b10faf8-1fe7-46b9-9220-3f1434c42acd", "isHook": false, "skipped": false }, @@ -3008,8 +3008,8 @@ "context": null, "code": "var result = _src_Utils_Helper__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].normalyzeUrl(\"http://localhost/service?\", {\n k1: \"value1\",\n k2: \"value2\"\n});\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(result).to.be.equal(\"http://localhost/service?k1=value1&k2=value2\");", "err": {}, - "uuid": "bfeb5618-9bda-485f-8381-2e1666b1673e", - "parentUUID": "e836df78-a77e-40a9-b12c-ba165887ee8a", + "uuid": "e7d618f2-5248-41df-8af6-c82347ae379b", + "parentUUID": "7b10faf8-1fe7-46b9-9220-3f1434c42acd", "isHook": false, "skipped": false }, @@ -3026,8 +3026,8 @@ "context": null, "code": "var result = _src_Utils_Helper__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].normalyzeUrl(\"\", {\n k1: \"value1\",\n k2: \"value2\"\n});\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(result).to.be.equal(\"k1=value1&k2=value2\");", "err": {}, - "uuid": "d092f471-b3bb-4b27-a0cd-eae0d8503b64", - "parentUUID": "e836df78-a77e-40a9-b12c-ba165887ee8a", + "uuid": "6d144d7e-ee6d-4fda-ab5d-932ba0004b8c", + "parentUUID": "7b10faf8-1fe7-46b9-9220-3f1434c42acd", "isHook": false, "skipped": false }, @@ -3035,7 +3035,7 @@ "title": "normalyzeUrl() avec les params aux formats 'string'", "fullTitle": "-- Test for Helper -- Helper.normalyzeUrl() normalyzeUrl() avec les params aux formats 'string'", "timedOut": false, - "duration": 0, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -3044,26 +3044,26 @@ "context": null, "code": "var result = _src_Utils_Helper__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].normalyzeUrl(\"http://localhost/service\", \"k1=value1&k2=value2\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(result).to.be.equal(\"http://localhost/service?k1=value1&k2=value2\");", "err": {}, - "uuid": "5ef3f802-8ead-416a-8dcb-e0d133ab1e3f", - "parentUUID": "e836df78-a77e-40a9-b12c-ba165887ee8a", + "uuid": "15be5af4-6c9d-4401-860f-daa0587e0873", + "parentUUID": "7b10faf8-1fe7-46b9-9220-3f1434c42acd", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "ab55acc5-e815-4681-b71e-5aaa4ba3edfa", - "0dbf4c3a-84e7-4656-9d47-cf27224b6b7f", - "4bf57414-7ceb-44c6-a6c4-39d359004c16", - "63056da0-2906-451f-bcda-1d186039e6a0", - "bfeb5618-9bda-485f-8381-2e1666b1673e", - "d092f471-b3bb-4b27-a0cd-eae0d8503b64", - "5ef3f802-8ead-416a-8dcb-e0d133ab1e3f" + "399e4a4c-8574-4db4-88ac-dd70fa7763f9", + "0974b29f-c23f-4216-95cf-29c12af23dec", + "59145a7b-f6e9-47e7-ae0f-7c1488289e28", + "31836070-e083-46c2-be85-ab80715e3fbc", + "e7d618f2-5248-41df-8af6-c82347ae379b", + "6d144d7e-ee6d-4fda-ab5d-932ba0004b8c", + "15be5af4-6c9d-4401-860f-daa0587e0873" ], "failures": [], "pending": [], "skipped": [], - "duration": 0, + "duration": 1, "root": false, "rootEmpty": false, "_timeout": 2000 @@ -3079,19 +3079,19 @@ "_timeout": 2000 }, { - "uuid": "24e48f35-5495-47ca-bdf0-5137f1eae78b", + "uuid": "60f6a6b2-f970-4369-bbb1-c28d079daff2", "title": "-- Test for Messager --", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "11c24915-d00f-4501-92e7-ef7954afae16", + "uuid": "c70fef13-14f8-478a-8647-cd9d0db490a1", "title": "Messager::getMessage()", - "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1724270267262/main.js", - "file": "/.tmp/mocha-webpack/1724270267262/main.js", + "fullFile": "/home/runner/work/geoportal-access-lib/geoportal-access-lib/.tmp/mocha-webpack/1731803780370/main.js", + "file": "/.tmp/mocha-webpack/1731803780370/main.js", "beforeHooks": [], "afterHooks": [], "tests": [ @@ -3108,8 +3108,8 @@ "context": null, "code": "var message = _src_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].getMessage();\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(message).not.to.be.null;\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(message).to.be.equal(\"Message indefined !\");", "err": {}, - "uuid": "a74db53d-f164-4512-85b5-eb403ccefb26", - "parentUUID": "11c24915-d00f-4501-92e7-ef7954afae16", + "uuid": "e44f85ce-1496-4e4c-bfcb-2d757c76ce9b", + "parentUUID": "c70fef13-14f8-478a-8647-cd9d0db490a1", "isHook": false, "skipped": false }, @@ -3126,8 +3126,8 @@ "context": null, "code": "var message = _src_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].getMessage(\"BIDON\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(message).not.to.null;", "err": {}, - "uuid": "28de47b3-a56a-4830-a152-6441fcb784be", - "parentUUID": "11c24915-d00f-4501-92e7-ef7954afae16", + "uuid": "ccd8789d-2f5e-4021-adee-19510d3256a9", + "parentUUID": "c70fef13-14f8-478a-8647-cd9d0db490a1", "isHook": false, "skipped": false }, @@ -3135,7 +3135,7 @@ "title": "getMessage(clef) avec clef sans parametre", "fullTitle": "-- Test for Messager -- Messager::getMessage() getMessage(clef) avec clef sans parametre", "timedOut": false, - "duration": 1, + "duration": 0, "state": "passed", "speed": "fast", "pass": true, @@ -3144,8 +3144,8 @@ "context": null, "code": "var message = _src_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].getMessage(\"SERVICE_REQUEST_EMPTY\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(message).not.to.be.null;\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(message).to.be.equal(\"The request sent to the service is empty\");", "err": {}, - "uuid": "5bc7dfee-cdbd-4e56-820c-6ca01dd97f30", - "parentUUID": "11c24915-d00f-4501-92e7-ef7954afae16", + "uuid": "d1eaa0b3-4cf6-46bd-94fe-2cffd66024e4", + "parentUUID": "c70fef13-14f8-478a-8647-cd9d0db490a1", "isHook": false, "skipped": false }, @@ -3162,8 +3162,8 @@ "context": null, "code": "var message = _src_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].getMessage(\"PARAM_UNKNOWN\", \"test\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(message).not.to.be.null;\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(message).to.be.equal(\"Value(s) for parameter(s) 'test' unknown\");", "err": {}, - "uuid": "1fa6fcf4-84f1-439b-a3e8-3f658c4e00ad", - "parentUUID": "11c24915-d00f-4501-92e7-ef7954afae16", + "uuid": "2dfc114a-53c7-4bea-81b3-6c4bb38efc84", + "parentUUID": "c70fef13-14f8-478a-8647-cd9d0db490a1", "isHook": false, "skipped": false }, @@ -3180,8 +3180,8 @@ "context": null, "code": "var message = _src_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].getMessage(\"PARAM_UNKNOWN\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(message).not.to.be.null;\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(message).to.be.equal(\"Value(s) for parameter(s) '%var% (not specified)' unknown\");", "err": {}, - "uuid": "d65f29ca-9436-4a3a-b7f3-584c96ae3369", - "parentUUID": "11c24915-d00f-4501-92e7-ef7954afae16", + "uuid": "cb215d1c-4e49-415e-9f63-d60e4ad88c83", + "parentUUID": "c70fef13-14f8-478a-8647-cd9d0db490a1", "isHook": false, "skipped": false }, @@ -3189,7 +3189,7 @@ "title": "getMessage(clef, '...', '...') avec plusieurs parametres", "fullTitle": "-- Test for Messager -- Messager::getMessage() getMessage(clef, '...', '...') avec plusieurs parametres", "timedOut": false, - "duration": 0, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, @@ -3198,8 +3198,8 @@ "context": null, "code": "Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].getMessage(\"PARAM_MISSING\", \"test1\", \"test2\", \"test3\")).to.be.equal(\"Parameter(s) 'test1 - test2 - test3' missing\");", "err": {}, - "uuid": "060867ee-ce5d-4722-bf1c-51987de1725b", - "parentUUID": "11c24915-d00f-4501-92e7-ef7954afae16", + "uuid": "cce75397-57ae-4b67-a39c-2edc37592941", + "parentUUID": "c70fef13-14f8-478a-8647-cd9d0db490a1", "isHook": false, "skipped": false }, @@ -3216,8 +3216,8 @@ "context": null, "code": "Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].getMessage(\"PARAM_MISSING\", \"\")).to.be.equal(\"Parameter(s) '' missing\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].getMessage(\"SERVICE_REQUEST_EMPTY\", \"\")).to.be.equal(\"The request sent to the service is empty\");", "err": {}, - "uuid": "41b2798d-ef57-4c92-977c-8901eb8251c4", - "parentUUID": "11c24915-d00f-4501-92e7-ef7954afae16", + "uuid": "f4fbf1c4-af04-4d0f-97af-c1ed4a7f33e6", + "parentUUID": "c70fef13-14f8-478a-8647-cd9d0db490a1", "isHook": false, "skipped": false }, @@ -3234,8 +3234,8 @@ "context": null, "code": "Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].getMessage(\"PARAM_MISSING\", [\"test1\", \"test2\", \"test3\"])).to.be.equal(\"Parameter(s) 'test1,test2,test3' missing\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].getMessage(\"SERVICE_REQUEST_EMPTY\", [\"test1\", \"test2\", \"test3\"])).to.be.equal(\"The request sent to the service is empty\");", "err": {}, - "uuid": "2f31cb86-0f50-432b-9039-994b7cff6ecf", - "parentUUID": "11c24915-d00f-4501-92e7-ef7954afae16", + "uuid": "b51907d8-3326-41b6-92e4-59820a26611c", + "parentUUID": "c70fef13-14f8-478a-8647-cd9d0db490a1", "isHook": false, "skipped": false }, @@ -3252,23 +3252,23 @@ "context": null, "code": "Object(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].getMessage(\"PARAM_MISSING\", [])).to.be.equal(\"Parameter(s) '' missing\");\nObject(chai__WEBPACK_IMPORTED_MODULE_0__[\"expect\"])(_src_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"].getMessage(\"SERVICE_REQUEST_EMPTY\", [])).to.be.equal(\"The request sent to the service is empty\");", "err": {}, - "uuid": "e00bc60e-a27e-4aab-8d15-9f8eeaa7a854", - "parentUUID": "11c24915-d00f-4501-92e7-ef7954afae16", + "uuid": "91ea01c9-95b0-47e5-8c01-eeb1d2ad4ee5", + "parentUUID": "c70fef13-14f8-478a-8647-cd9d0db490a1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "a74db53d-f164-4512-85b5-eb403ccefb26", - "28de47b3-a56a-4830-a152-6441fcb784be", - "5bc7dfee-cdbd-4e56-820c-6ca01dd97f30", - "1fa6fcf4-84f1-439b-a3e8-3f658c4e00ad", - "d65f29ca-9436-4a3a-b7f3-584c96ae3369", - "060867ee-ce5d-4722-bf1c-51987de1725b", - "41b2798d-ef57-4c92-977c-8901eb8251c4", - "2f31cb86-0f50-432b-9039-994b7cff6ecf", - "e00bc60e-a27e-4aab-8d15-9f8eeaa7a854" + "e44f85ce-1496-4e4c-bfcb-2d757c76ce9b", + "ccd8789d-2f5e-4021-adee-19510d3256a9", + "d1eaa0b3-4cf6-46bd-94fe-2cffd66024e4", + "2dfc114a-53c7-4bea-81b3-6c4bb38efc84", + "cb215d1c-4e49-415e-9f63-d60e4ad88c83", + "cce75397-57ae-4b67-a39c-2edc37592941", + "f4fbf1c4-af04-4d0f-97af-c1ed4a7f33e6", + "b51907d8-3326-41b6-92e4-59820a26611c", + "91ea01c9-95b0-47e5-8c01-eeb1d2ad4ee5" ], "failures": [], "pending": [], diff --git a/latest b/latest index 9af6fce8..e47a5c01 120000 --- a/latest +++ b/latest @@ -1 +1 @@ -v3.4.3 \ No newline at end of file +v3.4.4 \ No newline at end of file diff --git a/v3.4.4/dist/GpServices-map.js b/v3.4.4/dist/GpServices-map.js new file mode 100644 index 00000000..7a583f93 --- /dev/null +++ b/v3.4.4/dist/GpServices-map.js @@ -0,0 +1,893 @@ +/*! + * @brief Geoportal resources access library + * + * This software is released under the licence CeCILL-B (Free BSD compatible) + * @see http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt + * @see http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.txt + * @see http://www.cecill.info/ + * + * copyright CeCILL-B + * copyright IGN + * @author IGN + * @version 3.4.4 + * @date 17/11/2024 + * + */ +/*! + * @overview es6-promise - a tiny implementation of Promises/A+. + * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) + * @license Licensed under MIT license + * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE + * @version v4.2.4 + */ + +(function webpackUniversalModuleDefinition(root, factory) { + if(typeof exports === 'object' && typeof module === 'object') + module.exports = factory(require("node-fetch")); + else if(typeof define === 'function' && define.amd) + define("Gp", ["require"], factory); + else if(typeof exports === 'object') + exports["Gp"] = factory(require("node-fetch")); + else + root["Gp"] = factory(root[undefined]); +})(this, function(__WEBPACK_EXTERNAL_MODULE_node_fetch__) { +return /******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 0); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./node_modules/@xmldom/xmldom/lib/conventions.js": +/*!********************************************************!*\ + !*** ./node_modules/@xmldom/xmldom/lib/conventions.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\n/**\n * Ponyfill for `Array.prototype.find` which is only available in ES6 runtimes.\n *\n * Works with anything that has a `length` property and index access properties, including NodeList.\n *\n * @template {unknown} T\n * @param {Array | ({length:number, [number]: T})} list\n * @param {function (item: T, index: number, list:Array | ({length:number, [number]: T})):boolean} predicate\n * @param {Partial>?} ac `Array.prototype` by default,\n * \t\t\t\tallows injecting a custom implementation in tests\n * @returns {T | undefined}\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find\n * @see https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.find\n */\nfunction find(list, predicate, ac) {\n\tif (ac === undefined) {\n\t\tac = Array.prototype;\n\t}\n\tif (list && typeof ac.find === 'function') {\n\t\treturn ac.find.call(list, predicate);\n\t}\n\tfor (var i = 0; i < list.length; i++) {\n\t\tif (Object.prototype.hasOwnProperty.call(list, i)) {\n\t\t\tvar item = list[i];\n\t\t\tif (predicate.call(undefined, item, i, list)) {\n\t\t\t\treturn item;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * \"Shallow freezes\" an object to render it immutable.\n * Uses `Object.freeze` if available,\n * otherwise the immutability is only in the type.\n *\n * Is used to create \"enum like\" objects.\n *\n * @template T\n * @param {T} object the object to freeze\n * @param {Pick = Object} oc `Object` by default,\n * \t\t\t\tallows to inject custom object constructor for tests\n * @returns {Readonly}\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze\n */\nfunction freeze(object, oc) {\n\tif (oc === undefined) {\n\t\toc = Object\n\t}\n\treturn oc && typeof oc.freeze === 'function' ? oc.freeze(object) : object\n}\n\n/**\n * Since we can not rely on `Object.assign` we provide a simplified version\n * that is sufficient for our needs.\n *\n * @param {Object} target\n * @param {Object | null | undefined} source\n *\n * @returns {Object} target\n * @throws TypeError if target is not an object\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n * @see https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.assign\n */\nfunction assign(target, source) {\n\tif (target === null || typeof target !== 'object') {\n\t\tthrow new TypeError('target is not an object')\n\t}\n\tfor (var key in source) {\n\t\tif (Object.prototype.hasOwnProperty.call(source, key)) {\n\t\t\ttarget[key] = source[key]\n\t\t}\n\t}\n\treturn target\n}\n\n/**\n * All mime types that are allowed as input to `DOMParser.parseFromString`\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString#Argument02 MDN\n * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparsersupportedtype WHATWG HTML Spec\n * @see DOMParser.prototype.parseFromString\n */\nvar MIME_TYPE = freeze({\n\t/**\n\t * `text/html`, the only mime type that triggers treating an XML document as HTML.\n\t *\n\t * @see DOMParser.SupportedType.isHTML\n\t * @see https://www.iana.org/assignments/media-types/text/html IANA MimeType registration\n\t * @see https://en.wikipedia.org/wiki/HTML Wikipedia\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN\n\t * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring WHATWG HTML Spec\n\t */\n\tHTML: 'text/html',\n\n\t/**\n\t * Helper method to check a mime type if it indicates an HTML document\n\t *\n\t * @param {string} [value]\n\t * @returns {boolean}\n\t *\n\t * @see https://www.iana.org/assignments/media-types/text/html IANA MimeType registration\n\t * @see https://en.wikipedia.org/wiki/HTML Wikipedia\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN\n\t * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring \t */\n\tisHTML: function (value) {\n\t\treturn value === MIME_TYPE.HTML\n\t},\n\n\t/**\n\t * `application/xml`, the standard mime type for XML documents.\n\t *\n\t * @see https://www.iana.org/assignments/media-types/application/xml IANA MimeType registration\n\t * @see https://tools.ietf.org/html/rfc7303#section-9.1 RFC 7303\n\t * @see https://en.wikipedia.org/wiki/XML_and_MIME Wikipedia\n\t */\n\tXML_APPLICATION: 'application/xml',\n\n\t/**\n\t * `text/html`, an alias for `application/xml`.\n\t *\n\t * @see https://tools.ietf.org/html/rfc7303#section-9.2 RFC 7303\n\t * @see https://www.iana.org/assignments/media-types/text/xml IANA MimeType registration\n\t * @see https://en.wikipedia.org/wiki/XML_and_MIME Wikipedia\n\t */\n\tXML_TEXT: 'text/xml',\n\n\t/**\n\t * `application/xhtml+xml`, indicates an XML document that has the default HTML namespace,\n\t * but is parsed as an XML document.\n\t *\n\t * @see https://www.iana.org/assignments/media-types/application/xhtml+xml IANA MimeType registration\n\t * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocument WHATWG DOM Spec\n\t * @see https://en.wikipedia.org/wiki/XHTML Wikipedia\n\t */\n\tXML_XHTML_APPLICATION: 'application/xhtml+xml',\n\n\t/**\n\t * `image/svg+xml`,\n\t *\n\t * @see https://www.iana.org/assignments/media-types/image/svg+xml IANA MimeType registration\n\t * @see https://www.w3.org/TR/SVG11/ W3C SVG 1.1\n\t * @see https://en.wikipedia.org/wiki/Scalable_Vector_Graphics Wikipedia\n\t */\n\tXML_SVG_IMAGE: 'image/svg+xml',\n})\n\n/**\n * Namespaces that are used in this code base.\n *\n * @see http://www.w3.org/TR/REC-xml-names\n */\nvar NAMESPACE = freeze({\n\t/**\n\t * The XHTML namespace.\n\t *\n\t * @see http://www.w3.org/1999/xhtml\n\t */\n\tHTML: 'http://www.w3.org/1999/xhtml',\n\n\t/**\n\t * Checks if `uri` equals `NAMESPACE.HTML`.\n\t *\n\t * @param {string} [uri]\n\t *\n\t * @see NAMESPACE.HTML\n\t */\n\tisHTML: function (uri) {\n\t\treturn uri === NAMESPACE.HTML\n\t},\n\n\t/**\n\t * The SVG namespace.\n\t *\n\t * @see http://www.w3.org/2000/svg\n\t */\n\tSVG: 'http://www.w3.org/2000/svg',\n\n\t/**\n\t * The `xml:` namespace.\n\t *\n\t * @see http://www.w3.org/XML/1998/namespace\n\t */\n\tXML: 'http://www.w3.org/XML/1998/namespace',\n\n\t/**\n\t * The `xmlns:` namespace\n\t *\n\t * @see https://www.w3.org/2000/xmlns/\n\t */\n\tXMLNS: 'http://www.w3.org/2000/xmlns/',\n})\n\nexports.assign = assign;\nexports.find = find;\nexports.freeze = freeze;\nexports.MIME_TYPE = MIME_TYPE;\nexports.NAMESPACE = NAMESPACE;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL25vZGVfbW9kdWxlcy9AeG1sZG9tL3htbGRvbS9saWIvY29udmVudGlvbnMuanM/ODlhNyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBWTs7QUFFWjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsY0FBYyxRQUFRO0FBQ3RCLFdBQVcsYUFBYSwyQkFBMkIsRUFBRTtBQUNyRCxXQUFXLG9EQUFvRCwyQkFBMkIsV0FBVztBQUNyRyxXQUFXLHNEQUFzRDtBQUNqRTtBQUNBLGFBQWE7QUFDYjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsZ0JBQWdCLGlCQUFpQjtBQUNqQztBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUF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1ZHOiAnaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnLFxuXG5cdC8qKlxuXHQgKiBUaGUgYHhtbDpgIG5hbWVzcGFjZS5cblx0ICpcblx0ICogQHNlZSBodHRwOi8vd3d3LnczLm9yZy9YTUwvMTk5OC9uYW1lc3BhY2Vcblx0ICovXG5cdFhNTDogJ2h0dHA6Ly93d3cudzMub3JnL1hNTC8xOTk4L25hbWVzcGFjZScsXG5cblx0LyoqXG5cdCAqIFRoZSBgeG1sbnM6YCBuYW1lc3BhY2Vcblx0ICpcblx0ICogQHNlZSBodHRwczovL3d3dy53My5vcmcvMjAwMC94bWxucy9cblx0ICovXG5cdFhNTE5TOiAnaHR0cDovL3d3dy53My5vcmcvMjAwMC94bWxucy8nLFxufSlcblxuZXhwb3J0cy5hc3NpZ24gPSBhc3NpZ247XG5leHBvcnRzLmZpbmQgPSBmaW5kO1xuZXhwb3J0cy5mcmVlemUgPSBmcmVlemU7XG5leHBvcnRzLk1JTUVfVFlQRSA9IE1JTUVfVFlQRTtcbmV4cG9ydHMuTkFNRVNQQUNFID0gTkFNRVNQQUNFO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@xmldom/xmldom/lib/conventions.js\n"); + +/***/ }), + +/***/ "./node_modules/@xmldom/xmldom/lib/dom-parser.js": +/*!*******************************************************!*\ + !*** ./node_modules/@xmldom/xmldom/lib/dom-parser.js ***! + \*******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +eval("var conventions = __webpack_require__(/*! ./conventions */ \"./node_modules/@xmldom/xmldom/lib/conventions.js\");\nvar dom = __webpack_require__(/*! ./dom */ \"./node_modules/@xmldom/xmldom/lib/dom.js\")\nvar entities = __webpack_require__(/*! ./entities */ \"./node_modules/@xmldom/xmldom/lib/entities.js\");\nvar sax = __webpack_require__(/*! ./sax */ \"./node_modules/@xmldom/xmldom/lib/sax.js\");\n\nvar DOMImplementation = dom.DOMImplementation;\n\nvar NAMESPACE = conventions.NAMESPACE;\n\nvar ParseError = sax.ParseError;\nvar XMLReader = sax.XMLReader;\n\n/**\n * Normalizes line ending according to https://www.w3.org/TR/xml11/#sec-line-ends:\n *\n * > XML parsed entities are often stored in computer files which,\n * > for editing convenience, are organized into lines.\n * > These lines are typically separated by some combination\n * > of the characters CARRIAGE RETURN (#xD) and LINE FEED (#xA).\n * >\n * > To simplify the tasks of applications, the XML processor must behave\n * > as if it normalized all line breaks in external parsed entities (including the document entity)\n * > on input, before parsing, by translating all of the following to a single #xA character:\n * >\n * > 1. the two-character sequence #xD #xA\n * > 2. the two-character sequence #xD #x85\n * > 3. the single character #x85\n * > 4. the single character #x2028\n * > 5. any #xD character that is not immediately followed by #xA or #x85.\n *\n * @param {string} input\n * @returns {string}\n */\nfunction normalizeLineEndings(input) {\n\treturn input\n\t\t.replace(/\\r[\\n\\u0085]/g, '\\n')\n\t\t.replace(/[\\r\\u0085\\u2028]/g, '\\n')\n}\n\n/**\n * @typedef Locator\n * @property {number} [columnNumber]\n * @property {number} [lineNumber]\n */\n\n/**\n * @typedef DOMParserOptions\n * @property {DOMHandler} [domBuilder]\n * @property {Function} [errorHandler]\n * @property {(string) => string} [normalizeLineEndings] used to replace line endings before parsing\n * \t\t\t\t\t\tdefaults to `normalizeLineEndings`\n * @property {Locator} [locator]\n * @property {Record} [xmlns]\n *\n * @see normalizeLineEndings\n */\n\n/**\n * The DOMParser interface provides the ability to parse XML or HTML source code\n * from a string into a DOM `Document`.\n *\n * _xmldom is different from the spec in that it allows an `options` parameter,\n * to override the default behavior._\n *\n * @param {DOMParserOptions} [options]\n * @constructor\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser\n * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-parsing-and-serialization\n */\nfunction DOMParser(options){\n\tthis.options = options ||{locator:{}};\n}\n\nDOMParser.prototype.parseFromString = function(source,mimeType){\n\tvar options = this.options;\n\tvar sax = new XMLReader();\n\tvar domBuilder = options.domBuilder || new DOMHandler();//contentHandler and LexicalHandler\n\tvar errorHandler = options.errorHandler;\n\tvar locator = options.locator;\n\tvar defaultNSMap = options.xmlns||{};\n\tvar isHTML = /\\/x?html?$/.test(mimeType);//mimeType.toLowerCase().indexOf('html') > -1;\n \tvar entityMap = isHTML ? entities.HTML_ENTITIES : entities.XML_ENTITIES;\n\tif(locator){\n\t\tdomBuilder.setDocumentLocator(locator)\n\t}\n\n\tsax.errorHandler = buildErrorHandler(errorHandler,domBuilder,locator);\n\tsax.domBuilder = options.domBuilder || domBuilder;\n\tif(isHTML){\n\t\tdefaultNSMap[''] = NAMESPACE.HTML;\n\t}\n\tdefaultNSMap.xml = defaultNSMap.xml || NAMESPACE.XML;\n\tvar normalize = options.normalizeLineEndings || normalizeLineEndings;\n\tif (source && typeof source === 'string') {\n\t\tsax.parse(\n\t\t\tnormalize(source),\n\t\t\tdefaultNSMap,\n\t\t\tentityMap\n\t\t)\n\t} else {\n\t\tsax.errorHandler.error('invalid doc source')\n\t}\n\treturn domBuilder.doc;\n}\nfunction buildErrorHandler(errorImpl,domBuilder,locator){\n\tif(!errorImpl){\n\t\tif(domBuilder instanceof DOMHandler){\n\t\t\treturn domBuilder;\n\t\t}\n\t\terrorImpl = domBuilder ;\n\t}\n\tvar errorHandler = {}\n\tvar isCallback = errorImpl instanceof Function;\n\tlocator = locator||{}\n\tfunction build(key){\n\t\tvar fn = errorImpl[key];\n\t\tif(!fn && isCallback){\n\t\t\tfn = errorImpl.length == 2?function(msg){errorImpl(key,msg)}:errorImpl;\n\t\t}\n\t\terrorHandler[key] = fn && function(msg){\n\t\t\tfn('[xmldom '+key+']\\t'+msg+_locator(locator));\n\t\t}||function(){};\n\t}\n\tbuild('warning');\n\tbuild('error');\n\tbuild('fatalError');\n\treturn errorHandler;\n}\n\n//console.log('#\\n\\n\\n\\n\\n\\n\\n####')\n/**\n * +ContentHandler+ErrorHandler\n * +LexicalHandler+EntityResolver2\n * -DeclHandler-DTDHandler\n *\n * DefaultHandler:EntityResolver, DTDHandler, ContentHandler, ErrorHandler\n * DefaultHandler2:DefaultHandler,LexicalHandler, DeclHandler, EntityResolver2\n * @link http://www.saxproject.org/apidoc/org/xml/sax/helpers/DefaultHandler.html\n */\nfunction DOMHandler() {\n this.cdata = false;\n}\nfunction position(locator,node){\n\tnode.lineNumber = locator.lineNumber;\n\tnode.columnNumber = locator.columnNumber;\n}\n/**\n * @see org.xml.sax.ContentHandler#startDocument\n * @link http://www.saxproject.org/apidoc/org/xml/sax/ContentHandler.html\n */\nDOMHandler.prototype = {\n\tstartDocument : function() {\n \tthis.doc = new DOMImplementation().createDocument(null, null, null);\n \tif (this.locator) {\n \tthis.doc.documentURI = this.locator.systemId;\n \t}\n\t},\n\tstartElement:function(namespaceURI, localName, qName, attrs) {\n\t\tvar doc = this.doc;\n\t var el = doc.createElementNS(namespaceURI, qName||localName);\n\t var len = attrs.length;\n\t appendElement(this, el);\n\t this.currentElement = el;\n\n\t\tthis.locator && position(this.locator,el)\n\t for (var i = 0 ; i < len; i++) {\n\t var namespaceURI = attrs.getURI(i);\n\t var value = attrs.getValue(i);\n\t var qName = attrs.getQName(i);\n\t\t\tvar attr = doc.createAttributeNS(namespaceURI, qName);\n\t\t\tthis.locator &&position(attrs.getLocator(i),attr);\n\t\t\tattr.value = attr.nodeValue = value;\n\t\t\tel.setAttributeNode(attr)\n\t }\n\t},\n\tendElement:function(namespaceURI, localName, qName) {\n\t\tvar current = this.currentElement\n\t\tvar tagName = current.tagName;\n\t\tthis.currentElement = current.parentNode;\n\t},\n\tstartPrefixMapping:function(prefix, uri) {\n\t},\n\tendPrefixMapping:function(prefix) {\n\t},\n\tprocessingInstruction:function(target, data) {\n\t var ins = this.doc.createProcessingInstruction(target, data);\n\t this.locator && position(this.locator,ins)\n\t appendElement(this, ins);\n\t},\n\tignorableWhitespace:function(ch, start, length) {\n\t},\n\tcharacters:function(chars, start, length) {\n\t\tchars = _toString.apply(this,arguments)\n\t\t//console.log(chars)\n\t\tif(chars){\n\t\t\tif (this.cdata) {\n\t\t\t\tvar charNode = this.doc.createCDATASection(chars);\n\t\t\t} else {\n\t\t\t\tvar charNode = this.doc.createTextNode(chars);\n\t\t\t}\n\t\t\tif(this.currentElement){\n\t\t\t\tthis.currentElement.appendChild(charNode);\n\t\t\t}else if(/^\\s*$/.test(chars)){\n\t\t\t\tthis.doc.appendChild(charNode);\n\t\t\t\t//process xml\n\t\t\t}\n\t\t\tthis.locator && position(this.locator,charNode)\n\t\t}\n\t},\n\tskippedEntity:function(name) {\n\t},\n\tendDocument:function() {\n\t\tthis.doc.normalize();\n\t},\n\tsetDocumentLocator:function (locator) {\n\t if(this.locator = locator){// && !('lineNumber' in locator)){\n\t \tlocator.lineNumber = 0;\n\t }\n\t},\n\t//LexicalHandler\n\tcomment:function(chars, start, length) {\n\t\tchars = _toString.apply(this,arguments)\n\t var comm = this.doc.createComment(chars);\n\t this.locator && position(this.locator,comm)\n\t appendElement(this, comm);\n\t},\n\n\tstartCDATA:function() {\n\t //used in characters() methods\n\t this.cdata = true;\n\t},\n\tendCDATA:function() {\n\t this.cdata = false;\n\t},\n\n\tstartDTD:function(name, publicId, systemId) {\n\t\tvar impl = this.doc.implementation;\n\t if (impl && impl.createDocumentType) {\n\t var dt = impl.createDocumentType(name, publicId, systemId);\n\t this.locator && position(this.locator,dt)\n\t appendElement(this, dt);\n\t\t\t\t\tthis.doc.doctype = dt;\n\t }\n\t},\n\t/**\n\t * @see org.xml.sax.ErrorHandler\n\t * @link http://www.saxproject.org/apidoc/org/xml/sax/ErrorHandler.html\n\t */\n\twarning:function(error) {\n\t\tconsole.warn('[xmldom warning]\\t'+error,_locator(this.locator));\n\t},\n\terror:function(error) {\n\t\tconsole.error('[xmldom error]\\t'+error,_locator(this.locator));\n\t},\n\tfatalError:function(error) {\n\t\tthrow new ParseError(error, this.locator);\n\t}\n}\nfunction _locator(l){\n\tif(l){\n\t\treturn '\\n@'+(l.systemId ||'')+'#[line:'+l.lineNumber+',col:'+l.columnNumber+']'\n\t}\n}\nfunction _toString(chars,start,length){\n\tif(typeof chars == 'string'){\n\t\treturn chars.substr(start,length)\n\t}else{//java sax connect width xmldom on rhino(what about: \"? && !(chars instanceof String)\")\n\t\tif(chars.length >= start+length || start){\n\t\t\treturn new java.lang.String(chars,start,length)+'';\n\t\t}\n\t\treturn chars;\n\t}\n}\n\n/*\n * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/LexicalHandler.html\n * used method of org.xml.sax.ext.LexicalHandler:\n * #comment(chars, start, length)\n * #startCDATA()\n * #endCDATA()\n * #startDTD(name, publicId, systemId)\n *\n *\n * IGNORED method of org.xml.sax.ext.LexicalHandler:\n * #endDTD()\n * #startEntity(name)\n * #endEntity(name)\n *\n *\n * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/DeclHandler.html\n * IGNORED method of org.xml.sax.ext.DeclHandler\n * \t#attributeDecl(eName, aName, type, mode, value)\n * #elementDecl(name, model)\n * #externalEntityDecl(name, publicId, systemId)\n * #internalEntityDecl(name, value)\n * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/EntityResolver2.html\n * IGNORED method of org.xml.sax.EntityResolver2\n * #resolveEntity(String name,String publicId,String baseURI,String systemId)\n * #resolveEntity(publicId, systemId)\n * #getExternalSubset(name, baseURI)\n * @link http://www.saxproject.org/apidoc/org/xml/sax/DTDHandler.html\n * IGNORED method of org.xml.sax.DTDHandler\n * #notationDecl(name, publicId, systemId) {};\n * #unparsedEntityDecl(name, publicId, systemId, notationName) {};\n */\n\"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl\".replace(/\\w+/g,function(key){\n\tDOMHandler.prototype[key] = function(){return null}\n})\n\n/* Private static helpers treated below as private instance methods, so don't need to add these to the public API; we might use a Relator to also get rid of non-standard public properties */\nfunction appendElement (hander,node) {\n if (!hander.currentElement) {\n hander.doc.appendChild(node);\n } else {\n hander.currentElement.appendChild(node);\n }\n}//appendChild and setAttributeNS are preformance key\n\nexports.__DOMHandler = DOMHandler;\nexports.normalizeLineEndings = normalizeLineEndings;\nexports.DOMParser = DOMParser;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL25vZGVfbW9kdWxlcy9AeG1sZG9tL3htbGRvbS9saWIvZG9tLXBhcnNlci5qcz9iMDc0Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGtCQUFrQixtQkFBTyxDQUFDLHVFQUFlO0FBQ3pDLFVBQVUsbUJBQU8sQ0FBQyx1REFBTztBQUN6QixlQUFlLG1CQUFPLENBQUMsaUVBQVk7QUFDbkMsVUFBVSxtQkFBTyxDQUFDLHVEQUFPOztBQUV6Qjs7QUFFQTs7QUFFQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLFdBQVcsT0FBTztBQUNsQixhQUFhO0FBQ2I7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQSxjQUFjLE9BQU87QUFDckIsY0FBYyxPQUFPO0FBQ3JCOztBQUVBO0FBQ0E7QUFDQSxjQUFjLFdBQVc7QUFDekIsY0FBYyxTQUFTO0FBQ3ZCLGNBQWMsbUJBQW1CO0FBQ2pDO0FBQ0EsY0FBYyxRQUFRO0FBQ3RCLGNBQWMsdUJBQXVCO0FBQ3JDO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLFdBQVcsaUJBQWlCO0FBQzVCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBL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byB0aGUgcHVibGljIEFQSTsgd2UgbWlnaHQgdXNlIGEgUmVsYXRvciB0byBhbHNvIGdldCByaWQgb2Ygbm9uLXN0YW5kYXJkIHB1YmxpYyBwcm9wZXJ0aWVzICovXG5mdW5jdGlvbiBhcHBlbmRFbGVtZW50IChoYW5kZXIsbm9kZSkge1xuICAgIGlmICghaGFuZGVyLmN1cnJlbnRFbGVtZW50KSB7XG4gICAgICAgIGhhbmRlci5kb2MuYXBwZW5kQ2hpbGQobm9kZSk7XG4gICAgfSBlbHNlIHtcbiAgICAgICAgaGFuZGVyLmN1cnJlbnRFbGVtZW50LmFwcGVuZENoaWxkKG5vZGUpO1xuICAgIH1cbn0vL2FwcGVuZENoaWxkIGFuZCBzZXRBdHRyaWJ1dGVOUyBhcmUgcHJlZm9ybWFuY2Uga2V5XG5cbmV4cG9ydHMuX19ET01IYW5kbGVyID0gRE9NSGFuZGxlcjtcbmV4cG9ydHMubm9ybWFsaXplTGluZUVuZGluZ3MgPSBub3JtYWxpemVMaW5lRW5kaW5ncztcbmV4cG9ydHMuRE9NUGFyc2VyID0gRE9NUGFyc2VyO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@xmldom/xmldom/lib/dom-parser.js\n"); + +/***/ }), + +/***/ "./node_modules/@xmldom/xmldom/lib/dom.js": +/*!************************************************!*\ + !*** ./node_modules/@xmldom/xmldom/lib/dom.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +eval("var conventions = __webpack_require__(/*! ./conventions */ \"./node_modules/@xmldom/xmldom/lib/conventions.js\");\n\nvar find = conventions.find;\nvar NAMESPACE = conventions.NAMESPACE;\n\n/**\n * A prerequisite for `[].filter`, to drop elements that are empty\n * @param {string} input\n * @returns {boolean}\n */\nfunction notEmptyString (input) {\n\treturn input !== ''\n}\n/**\n * @see https://infra.spec.whatwg.org/#split-on-ascii-whitespace\n * @see https://infra.spec.whatwg.org/#ascii-whitespace\n *\n * @param {string} input\n * @returns {string[]} (can be empty)\n */\nfunction splitOnASCIIWhitespace(input) {\n\t// U+0009 TAB, U+000A LF, U+000C FF, U+000D CR, U+0020 SPACE\n\treturn input ? input.split(/[\\t\\n\\f\\r ]+/).filter(notEmptyString) : []\n}\n\n/**\n * Adds element as a key to current if it is not already present.\n *\n * @param {Record} current\n * @param {string} element\n * @returns {Record}\n */\nfunction orderedSetReducer (current, element) {\n\tif (!current.hasOwnProperty(element)) {\n\t\tcurrent[element] = true;\n\t}\n\treturn current;\n}\n\n/**\n * @see https://infra.spec.whatwg.org/#ordered-set\n * @param {string} input\n * @returns {string[]}\n */\nfunction toOrderedSet(input) {\n\tif (!input) return [];\n\tvar list = splitOnASCIIWhitespace(input);\n\treturn Object.keys(list.reduce(orderedSetReducer, {}))\n}\n\n/**\n * Uses `list.indexOf` to implement something like `Array.prototype.includes`,\n * which we can not rely on being available.\n *\n * @param {any[]} list\n * @returns {function(any): boolean}\n */\nfunction arrayIncludes (list) {\n\treturn function(element) {\n\t\treturn list && list.indexOf(element) !== -1;\n\t}\n}\n\nfunction copy(src,dest){\n\tfor(var p in src){\n\t\tif (Object.prototype.hasOwnProperty.call(src, p)) {\n\t\t\tdest[p] = src[p];\n\t\t}\n\t}\n}\n\n/**\n^\\w+\\.prototype\\.([_\\w]+)\\s*=\\s*((?:.*\\{\\s*?[\\r\\n][\\s\\S]*?^})|\\S.*?(?=[;\\r\\n]));?\n^\\w+\\.prototype\\.([_\\w]+)\\s*=\\s*(\\S.*?(?=[;\\r\\n]));?\n */\nfunction _extends(Class,Super){\n\tvar pt = Class.prototype;\n\tif(!(pt instanceof Super)){\n\t\tfunction t(){};\n\t\tt.prototype = Super.prototype;\n\t\tt = new t();\n\t\tcopy(pt,t);\n\t\tClass.prototype = pt = t;\n\t}\n\tif(pt.constructor != Class){\n\t\tif(typeof Class != 'function'){\n\t\t\tconsole.error(\"unknown Class:\"+Class)\n\t\t}\n\t\tpt.constructor = Class\n\t}\n}\n\n// Node Types\nvar NodeType = {}\nvar ELEMENT_NODE = NodeType.ELEMENT_NODE = 1;\nvar ATTRIBUTE_NODE = NodeType.ATTRIBUTE_NODE = 2;\nvar TEXT_NODE = NodeType.TEXT_NODE = 3;\nvar CDATA_SECTION_NODE = NodeType.CDATA_SECTION_NODE = 4;\nvar ENTITY_REFERENCE_NODE = NodeType.ENTITY_REFERENCE_NODE = 5;\nvar ENTITY_NODE = NodeType.ENTITY_NODE = 6;\nvar PROCESSING_INSTRUCTION_NODE = NodeType.PROCESSING_INSTRUCTION_NODE = 7;\nvar COMMENT_NODE = NodeType.COMMENT_NODE = 8;\nvar DOCUMENT_NODE = NodeType.DOCUMENT_NODE = 9;\nvar DOCUMENT_TYPE_NODE = NodeType.DOCUMENT_TYPE_NODE = 10;\nvar DOCUMENT_FRAGMENT_NODE = NodeType.DOCUMENT_FRAGMENT_NODE = 11;\nvar NOTATION_NODE = NodeType.NOTATION_NODE = 12;\n\n// ExceptionCode\nvar ExceptionCode = {}\nvar ExceptionMessage = {};\nvar INDEX_SIZE_ERR = ExceptionCode.INDEX_SIZE_ERR = ((ExceptionMessage[1]=\"Index size error\"),1);\nvar DOMSTRING_SIZE_ERR = ExceptionCode.DOMSTRING_SIZE_ERR = ((ExceptionMessage[2]=\"DOMString size error\"),2);\nvar HIERARCHY_REQUEST_ERR = ExceptionCode.HIERARCHY_REQUEST_ERR = ((ExceptionMessage[3]=\"Hierarchy request error\"),3);\nvar WRONG_DOCUMENT_ERR = ExceptionCode.WRONG_DOCUMENT_ERR = ((ExceptionMessage[4]=\"Wrong document\"),4);\nvar INVALID_CHARACTER_ERR = ExceptionCode.INVALID_CHARACTER_ERR = ((ExceptionMessage[5]=\"Invalid character\"),5);\nvar NO_DATA_ALLOWED_ERR = ExceptionCode.NO_DATA_ALLOWED_ERR = ((ExceptionMessage[6]=\"No data allowed\"),6);\nvar NO_MODIFICATION_ALLOWED_ERR = ExceptionCode.NO_MODIFICATION_ALLOWED_ERR = ((ExceptionMessage[7]=\"No modification allowed\"),7);\nvar NOT_FOUND_ERR = ExceptionCode.NOT_FOUND_ERR = ((ExceptionMessage[8]=\"Not found\"),8);\nvar NOT_SUPPORTED_ERR = ExceptionCode.NOT_SUPPORTED_ERR = ((ExceptionMessage[9]=\"Not supported\"),9);\nvar INUSE_ATTRIBUTE_ERR = ExceptionCode.INUSE_ATTRIBUTE_ERR = ((ExceptionMessage[10]=\"Attribute in use\"),10);\n//level2\nvar INVALID_STATE_ERR \t= ExceptionCode.INVALID_STATE_ERR \t= ((ExceptionMessage[11]=\"Invalid state\"),11);\nvar SYNTAX_ERR \t= ExceptionCode.SYNTAX_ERR \t= ((ExceptionMessage[12]=\"Syntax error\"),12);\nvar INVALID_MODIFICATION_ERR \t= ExceptionCode.INVALID_MODIFICATION_ERR \t= ((ExceptionMessage[13]=\"Invalid modification\"),13);\nvar NAMESPACE_ERR \t= ExceptionCode.NAMESPACE_ERR \t= ((ExceptionMessage[14]=\"Invalid namespace\"),14);\nvar INVALID_ACCESS_ERR \t= ExceptionCode.INVALID_ACCESS_ERR \t= ((ExceptionMessage[15]=\"Invalid access\"),15);\n\n/**\n * DOM Level 2\n * Object DOMException\n * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/ecma-script-binding.html\n * @see http://www.w3.org/TR/REC-DOM-Level-1/ecma-script-language-binding.html\n */\nfunction DOMException(code, message) {\n\tif(message instanceof Error){\n\t\tvar error = message;\n\t}else{\n\t\terror = this;\n\t\tError.call(this, ExceptionMessage[code]);\n\t\tthis.message = ExceptionMessage[code];\n\t\tif(Error.captureStackTrace) Error.captureStackTrace(this, DOMException);\n\t}\n\terror.code = code;\n\tif(message) this.message = this.message + \": \" + message;\n\treturn error;\n};\nDOMException.prototype = Error.prototype;\ncopy(ExceptionCode,DOMException)\n\n/**\n * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-536297177\n * The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. NodeList objects in the DOM are live.\n * The items in the NodeList are accessible via an integral index, starting from 0.\n */\nfunction NodeList() {\n};\nNodeList.prototype = {\n\t/**\n\t * The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.\n\t * @standard level1\n\t */\n\tlength:0,\n\t/**\n\t * Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.\n\t * @standard level1\n\t * @param index unsigned long\n\t * Index into the collection.\n\t * @return Node\n\t * \tThe node at the indexth position in the NodeList, or null if that is not a valid index.\n\t */\n\titem: function(index) {\n\t\treturn index >= 0 && index < this.length ? this[index] : null;\n\t},\n\ttoString:function(isHTML,nodeFilter){\n\t\tfor(var buf = [], i = 0;i=0){\n\t\tvar lastIndex = list.length-1\n\t\twhile(i0 || key == 'xmlns'){\n//\t\t\treturn null;\n//\t\t}\n\t\t//console.log()\n\t\tvar i = this.length;\n\t\twhile(i--){\n\t\t\tvar attr = this[i];\n\t\t\t//console.log(attr.nodeName,key)\n\t\t\tif(attr.nodeName == key){\n\t\t\t\treturn attr;\n\t\t\t}\n\t\t}\n\t},\n\tsetNamedItem: function(attr) {\n\t\tvar el = attr.ownerElement;\n\t\tif(el && el!=this._ownerElement){\n\t\t\tthrow new DOMException(INUSE_ATTRIBUTE_ERR);\n\t\t}\n\t\tvar oldAttr = this.getNamedItem(attr.nodeName);\n\t\t_addNamedNode(this._ownerElement,this,attr,oldAttr);\n\t\treturn oldAttr;\n\t},\n\t/* returns Node */\n\tsetNamedItemNS: function(attr) {// raises: WRONG_DOCUMENT_ERR,NO_MODIFICATION_ALLOWED_ERR,INUSE_ATTRIBUTE_ERR\n\t\tvar el = attr.ownerElement, oldAttr;\n\t\tif(el && el!=this._ownerElement){\n\t\t\tthrow new DOMException(INUSE_ATTRIBUTE_ERR);\n\t\t}\n\t\toldAttr = this.getNamedItemNS(attr.namespaceURI,attr.localName);\n\t\t_addNamedNode(this._ownerElement,this,attr,oldAttr);\n\t\treturn oldAttr;\n\t},\n\n\t/* returns Node */\n\tremoveNamedItem: function(key) {\n\t\tvar attr = this.getNamedItem(key);\n\t\t_removeNamedNode(this._ownerElement,this,attr);\n\t\treturn attr;\n\n\n\t},// raises: NOT_FOUND_ERR,NO_MODIFICATION_ALLOWED_ERR\n\n\t//for level2\n\tremoveNamedItemNS:function(namespaceURI,localName){\n\t\tvar attr = this.getNamedItemNS(namespaceURI,localName);\n\t\t_removeNamedNode(this._ownerElement,this,attr);\n\t\treturn attr;\n\t},\n\tgetNamedItemNS: function(namespaceURI, localName) {\n\t\tvar i = this.length;\n\t\twhile(i--){\n\t\t\tvar node = this[i];\n\t\t\tif(node.localName == localName && node.namespaceURI == namespaceURI){\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n};\n\n/**\n * The DOMImplementation interface represents an object providing methods\n * which are not dependent on any particular document.\n * Such an object is returned by the `Document.implementation` property.\n *\n * __The individual methods describe the differences compared to the specs.__\n *\n * @constructor\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation MDN\n * @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-102161490 DOM Level 1 Core (Initial)\n * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-102161490 DOM Level 2 Core\n * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-102161490 DOM Level 3 Core\n * @see https://dom.spec.whatwg.org/#domimplementation DOM Living Standard\n */\nfunction DOMImplementation() {\n}\n\nDOMImplementation.prototype = {\n\t/**\n\t * The DOMImplementation.hasFeature() method returns a Boolean flag indicating if a given feature is supported.\n\t * The different implementations fairly diverged in what kind of features were reported.\n\t * The latest version of the spec settled to force this method to always return true, where the functionality was accurate and in use.\n\t *\n\t * @deprecated It is deprecated and modern browsers return true in all cases.\n\t *\n\t * @param {string} feature\n\t * @param {string} [version]\n\t * @returns {boolean} always true\n\t *\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/hasFeature MDN\n\t * @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-5CED94D7 DOM Level 1 Core\n\t * @see https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature DOM Living Standard\n\t */\n\thasFeature: function(feature, version) {\n\t\t\treturn true;\n\t},\n\t/**\n\t * Creates an XML Document object of the specified type with its document element.\n\t *\n\t * __It behaves slightly different from the description in the living standard__:\n\t * - There is no interface/class `XMLDocument`, it returns a `Document` instance.\n\t * - `contentType`, `encoding`, `mode`, `origin`, `url` fields are currently not declared.\n\t * - this implementation is not validating names or qualified names\n\t * (when parsing XML strings, the SAX parser takes care of that)\n\t *\n\t * @param {string|null} namespaceURI\n\t * @param {string} qualifiedName\n\t * @param {DocumentType=null} doctype\n\t * @returns {Document}\n\t *\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocument MDN\n\t * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#Level-2-Core-DOM-createDocument DOM Level 2 Core (initial)\n\t * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocument DOM Level 2 Core\n\t *\n\t * @see https://dom.spec.whatwg.org/#validate-and-extract DOM: Validate and extract\n\t * @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names\n\t * @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names\n\t */\n\tcreateDocument: function(namespaceURI, qualifiedName, doctype){\n\t\tvar doc = new Document();\n\t\tdoc.implementation = this;\n\t\tdoc.childNodes = new NodeList();\n\t\tdoc.doctype = doctype || null;\n\t\tif (doctype){\n\t\t\tdoc.appendChild(doctype);\n\t\t}\n\t\tif (qualifiedName){\n\t\t\tvar root = doc.createElementNS(namespaceURI, qualifiedName);\n\t\t\tdoc.appendChild(root);\n\t\t}\n\t\treturn doc;\n\t},\n\t/**\n\t * Returns a doctype, with the given `qualifiedName`, `publicId`, and `systemId`.\n\t *\n\t * __This behavior is slightly different from the in the specs__:\n\t * - this implementation is not validating names or qualified names\n\t * (when parsing XML strings, the SAX parser takes care of that)\n\t *\n\t * @param {string} qualifiedName\n\t * @param {string} [publicId]\n\t * @param {string} [systemId]\n\t * @returns {DocumentType} which can either be used with `DOMImplementation.createDocument` upon document creation\n\t * \t\t\t\t or can be put into the document via methods like `Node.insertBefore()` or `Node.replaceChild()`\n\t *\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocumentType MDN\n\t * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#Level-2-Core-DOM-createDocType DOM Level 2 Core\n\t * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype DOM Living Standard\n\t *\n\t * @see https://dom.spec.whatwg.org/#validate-and-extract DOM: Validate and extract\n\t * @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names\n\t * @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names\n\t */\n\tcreateDocumentType: function(qualifiedName, publicId, systemId){\n\t\tvar node = new DocumentType();\n\t\tnode.name = qualifiedName;\n\t\tnode.nodeName = qualifiedName;\n\t\tnode.publicId = publicId || '';\n\t\tnode.systemId = systemId || '';\n\n\t\treturn node;\n\t}\n};\n\n\n/**\n * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641247\n */\n\nfunction Node() {\n};\n\nNode.prototype = {\n\tfirstChild : null,\n\tlastChild : null,\n\tpreviousSibling : null,\n\tnextSibling : null,\n\tattributes : null,\n\tparentNode : null,\n\tchildNodes : null,\n\townerDocument : null,\n\tnodeValue : null,\n\tnamespaceURI : null,\n\tprefix : null,\n\tlocalName : null,\n\t// Modified in DOM Level 2:\n\tinsertBefore:function(newChild, refChild){//raises\n\t\treturn _insertBefore(this,newChild,refChild);\n\t},\n\treplaceChild:function(newChild, oldChild){//raises\n\t\t_insertBefore(this, newChild,oldChild, assertPreReplacementValidityInDocument);\n\t\tif(oldChild){\n\t\t\tthis.removeChild(oldChild);\n\t\t}\n\t},\n\tremoveChild:function(oldChild){\n\t\treturn _removeChild(this,oldChild);\n\t},\n\tappendChild:function(newChild){\n\t\treturn this.insertBefore(newChild,null);\n\t},\n\thasChildNodes:function(){\n\t\treturn this.firstChild != null;\n\t},\n\tcloneNode:function(deep){\n\t\treturn cloneNode(this.ownerDocument||this,this,deep);\n\t},\n\t// Modified in DOM Level 2:\n\tnormalize:function(){\n\t\tvar child = this.firstChild;\n\t\twhile(child){\n\t\t\tvar next = child.nextSibling;\n\t\t\tif(next && next.nodeType == TEXT_NODE && child.nodeType == TEXT_NODE){\n\t\t\t\tthis.removeChild(next);\n\t\t\t\tchild.appendData(next.data);\n\t\t\t}else{\n\t\t\t\tchild.normalize();\n\t\t\t\tchild = next;\n\t\t\t}\n\t\t}\n\t},\n \t// Introduced in DOM Level 2:\n\tisSupported:function(feature, version){\n\t\treturn this.ownerDocument.implementation.hasFeature(feature,version);\n\t},\n // Introduced in DOM Level 2:\n hasAttributes:function(){\n \treturn this.attributes.length>0;\n },\n\t/**\n\t * Look up the prefix associated to the given namespace URI, starting from this node.\n\t * **The default namespace declarations are ignored by this method.**\n\t * See Namespace Prefix Lookup for details on the algorithm used by this method.\n\t *\n\t * _Note: The implementation seems to be incomplete when compared to the algorithm described in the specs._\n\t *\n\t * @param {string | null} namespaceURI\n\t * @returns {string | null}\n\t * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespacePrefix\n\t * @see https://www.w3.org/TR/DOM-Level-3-Core/namespaces-algorithms.html#lookupNamespacePrefixAlgo\n\t * @see https://dom.spec.whatwg.org/#dom-node-lookupprefix\n\t * @see https://github.com/xmldom/xmldom/issues/322\n\t */\n lookupPrefix:function(namespaceURI){\n \tvar el = this;\n \twhile(el){\n \t\tvar map = el._nsMap;\n \t\t//console.dir(map)\n \t\tif(map){\n \t\t\tfor(var n in map){\n\t\t\t\t\t\tif (Object.prototype.hasOwnProperty.call(map, n) && map[n] === namespaceURI) {\n\t\t\t\t\t\t\treturn n;\n\t\t\t\t\t\t}\n \t\t\t}\n \t\t}\n \t\tel = el.nodeType == ATTRIBUTE_NODE?el.ownerDocument : el.parentNode;\n \t}\n \treturn null;\n },\n // Introduced in DOM Level 3:\n lookupNamespaceURI:function(prefix){\n \tvar el = this;\n \twhile(el){\n \t\tvar map = el._nsMap;\n \t\t//console.dir(map)\n \t\tif(map){\n \t\t\tif(Object.prototype.hasOwnProperty.call(map, prefix)){\n \t\t\t\treturn map[prefix] ;\n \t\t\t}\n \t\t}\n \t\tel = el.nodeType == ATTRIBUTE_NODE?el.ownerDocument : el.parentNode;\n \t}\n \treturn null;\n },\n // Introduced in DOM Level 3:\n isDefaultNamespace:function(namespaceURI){\n \tvar prefix = this.lookupPrefix(namespaceURI);\n \treturn prefix == null;\n }\n};\n\n\nfunction _xmlEncoder(c){\n\treturn c == '<' && '<' ||\n c == '>' && '>' ||\n c == '&' && '&' ||\n c == '\"' && '"' ||\n '&#'+c.charCodeAt()+';'\n}\n\n\ncopy(NodeType,Node);\ncopy(NodeType,Node.prototype);\n\n/**\n * @param callback return true for continue,false for break\n * @return boolean true: break visit;\n */\nfunction _visitNode(node,callback){\n\tif(callback(node)){\n\t\treturn true;\n\t}\n\tif(node = node.firstChild){\n\t\tdo{\n\t\t\tif(_visitNode(node,callback)){return true}\n }while(node=node.nextSibling)\n }\n}\n\n\n\nfunction Document(){\n\tthis.ownerDocument = this;\n}\n\nfunction _onAddAttribute(doc,el,newAttr){\n\tdoc && doc._inc++;\n\tvar ns = newAttr.namespaceURI ;\n\tif(ns === NAMESPACE.XMLNS){\n\t\t//update namespace\n\t\tel._nsMap[newAttr.prefix?newAttr.localName:''] = newAttr.value\n\t}\n}\n\nfunction _onRemoveAttribute(doc,el,newAttr,remove){\n\tdoc && doc._inc++;\n\tvar ns = newAttr.namespaceURI ;\n\tif(ns === NAMESPACE.XMLNS){\n\t\t//update namespace\n\t\tdelete el._nsMap[newAttr.prefix?newAttr.localName:'']\n\t}\n}\n\n/**\n * Updates `el.childNodes`, updating the indexed items and it's `length`.\n * Passing `newChild` means it will be appended.\n * Otherwise it's assumed that an item has been removed,\n * and `el.firstNode` and it's `.nextSibling` are used\n * to walk the current list of child nodes.\n *\n * @param {Document} doc\n * @param {Node} el\n * @param {Node} [newChild]\n * @private\n */\nfunction _onUpdateChild (doc, el, newChild) {\n\tif(doc && doc._inc){\n\t\tdoc._inc++;\n\t\t//update childNodes\n\t\tvar cs = el.childNodes;\n\t\tif (newChild) {\n\t\t\tcs[cs.length++] = newChild;\n\t\t} else {\n\t\t\tvar child = el.firstChild;\n\t\t\tvar i = 0;\n\t\t\twhile (child) {\n\t\t\t\tcs[i++] = child;\n\t\t\t\tchild = child.nextSibling;\n\t\t\t}\n\t\t\tcs.length = i;\n\t\t\tdelete cs[cs.length];\n\t\t}\n\t}\n}\n\n/**\n * Removes the connections between `parentNode` and `child`\n * and any existing `child.previousSibling` or `child.nextSibling`.\n *\n * @see https://github.com/xmldom/xmldom/issues/135\n * @see https://github.com/xmldom/xmldom/issues/145\n *\n * @param {Node} parentNode\n * @param {Node} child\n * @returns {Node} the child that was removed.\n * @private\n */\nfunction _removeChild (parentNode, child) {\n\tvar previous = child.previousSibling;\n\tvar next = child.nextSibling;\n\tif (previous) {\n\t\tprevious.nextSibling = next;\n\t} else {\n\t\tparentNode.firstChild = next;\n\t}\n\tif (next) {\n\t\tnext.previousSibling = previous;\n\t} else {\n\t\tparentNode.lastChild = previous;\n\t}\n\tchild.parentNode = null;\n\tchild.previousSibling = null;\n\tchild.nextSibling = null;\n\t_onUpdateChild(parentNode.ownerDocument, parentNode);\n\treturn child;\n}\n\n/**\n * Returns `true` if `node` can be a parent for insertion.\n * @param {Node} node\n * @returns {boolean}\n */\nfunction hasValidParentNodeType(node) {\n\treturn (\n\t\tnode &&\n\t\t(node.nodeType === Node.DOCUMENT_NODE || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.ELEMENT_NODE)\n\t);\n}\n\n/**\n * Returns `true` if `node` can be inserted according to it's `nodeType`.\n * @param {Node} node\n * @returns {boolean}\n */\nfunction hasInsertableNodeType(node) {\n\treturn (\n\t\tnode &&\n\t\t(isElementNode(node) ||\n\t\t\tisTextNode(node) ||\n\t\t\tisDocTypeNode(node) ||\n\t\t\tnode.nodeType === Node.DOCUMENT_FRAGMENT_NODE ||\n\t\t\tnode.nodeType === Node.COMMENT_NODE ||\n\t\t\tnode.nodeType === Node.PROCESSING_INSTRUCTION_NODE)\n\t);\n}\n\n/**\n * Returns true if `node` is a DOCTYPE node\n * @param {Node} node\n * @returns {boolean}\n */\nfunction isDocTypeNode(node) {\n\treturn node && node.nodeType === Node.DOCUMENT_TYPE_NODE;\n}\n\n/**\n * Returns true if the node is an element\n * @param {Node} node\n * @returns {boolean}\n */\nfunction isElementNode(node) {\n\treturn node && node.nodeType === Node.ELEMENT_NODE;\n}\n/**\n * Returns true if `node` is a text node\n * @param {Node} node\n * @returns {boolean}\n */\nfunction isTextNode(node) {\n\treturn node && node.nodeType === Node.TEXT_NODE;\n}\n\n/**\n * Check if en element node can be inserted before `child`, or at the end if child is falsy,\n * according to the presence and position of a doctype node on the same level.\n *\n * @param {Document} doc The document node\n * @param {Node} child the node that would become the nextSibling if the element would be inserted\n * @returns {boolean} `true` if an element can be inserted before child\n * @private\n * https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity\n */\nfunction isElementInsertionPossible(doc, child) {\n\tvar parentChildNodes = doc.childNodes || [];\n\tif (find(parentChildNodes, isElementNode) || isDocTypeNode(child)) {\n\t\treturn false;\n\t}\n\tvar docTypeNode = find(parentChildNodes, isDocTypeNode);\n\treturn !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));\n}\n\n/**\n * Check if en element node can be inserted before `child`, or at the end if child is falsy,\n * according to the presence and position of a doctype node on the same level.\n *\n * @param {Node} doc The document node\n * @param {Node} child the node that would become the nextSibling if the element would be inserted\n * @returns {boolean} `true` if an element can be inserted before child\n * @private\n * https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity\n */\nfunction isElementReplacementPossible(doc, child) {\n\tvar parentChildNodes = doc.childNodes || [];\n\n\tfunction hasElementChildThatIsNotChild(node) {\n\t\treturn isElementNode(node) && node !== child;\n\t}\n\n\tif (find(parentChildNodes, hasElementChildThatIsNotChild)) {\n\t\treturn false;\n\t}\n\tvar docTypeNode = find(parentChildNodes, isDocTypeNode);\n\treturn !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));\n}\n\n/**\n * @private\n * Steps 1-5 of the checks before inserting and before replacing a child are the same.\n *\n * @param {Node} parent the parent node to insert `node` into\n * @param {Node} node the node to insert\n * @param {Node=} child the node that should become the `nextSibling` of `node`\n * @returns {Node}\n * @throws DOMException for several node combinations that would create a DOM that is not well-formed.\n * @throws DOMException if `child` is provided but is not a child of `parent`.\n * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity\n * @see https://dom.spec.whatwg.org/#concept-node-replace\n */\nfunction assertPreInsertionValidity1to5(parent, node, child) {\n\t// 1. If `parent` is not a Document, DocumentFragment, or Element node, then throw a \"HierarchyRequestError\" DOMException.\n\tif (!hasValidParentNodeType(parent)) {\n\t\tthrow new DOMException(HIERARCHY_REQUEST_ERR, 'Unexpected parent node type ' + parent.nodeType);\n\t}\n\t// 2. If `node` is a host-including inclusive ancestor of `parent`, then throw a \"HierarchyRequestError\" DOMException.\n\t// not implemented!\n\t// 3. If `child` is non-null and its parent is not `parent`, then throw a \"NotFoundError\" DOMException.\n\tif (child && child.parentNode !== parent) {\n\t\tthrow new DOMException(NOT_FOUND_ERR, 'child not in parent');\n\t}\n\tif (\n\t\t// 4. If `node` is not a DocumentFragment, DocumentType, Element, or CharacterData node, then throw a \"HierarchyRequestError\" DOMException.\n\t\t!hasInsertableNodeType(node) ||\n\t\t// 5. If either `node` is a Text node and `parent` is a document,\n\t\t// the sax parser currently adds top level text nodes, this will be fixed in 0.9.0\n\t\t// || (node.nodeType === Node.TEXT_NODE && parent.nodeType === Node.DOCUMENT_NODE)\n\t\t// or `node` is a doctype and `parent` is not a document, then throw a \"HierarchyRequestError\" DOMException.\n\t\t(isDocTypeNode(node) && parent.nodeType !== Node.DOCUMENT_NODE)\n\t) {\n\t\tthrow new DOMException(\n\t\t\tHIERARCHY_REQUEST_ERR,\n\t\t\t'Unexpected node type ' + node.nodeType + ' for parent node type ' + parent.nodeType\n\t\t);\n\t}\n}\n\n/**\n * @private\n * Step 6 of the checks before inserting and before replacing a child are different.\n *\n * @param {Document} parent the parent node to insert `node` into\n * @param {Node} node the node to insert\n * @param {Node | undefined} child the node that should become the `nextSibling` of `node`\n * @returns {Node}\n * @throws DOMException for several node combinations that would create a DOM that is not well-formed.\n * @throws DOMException if `child` is provided but is not a child of `parent`.\n * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity\n * @see https://dom.spec.whatwg.org/#concept-node-replace\n */\nfunction assertPreInsertionValidityInDocument(parent, node, child) {\n\tvar parentChildNodes = parent.childNodes || [];\n\tvar nodeChildNodes = node.childNodes || [];\n\n\t// DocumentFragment\n\tif (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {\n\t\tvar nodeChildElements = nodeChildNodes.filter(isElementNode);\n\t\t// If node has more than one element child or has a Text node child.\n\t\tif (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {\n\t\t\tthrow new DOMException(HIERARCHY_REQUEST_ERR, 'More than one element or text in fragment');\n\t\t}\n\t\t// Otherwise, if `node` has one element child and either `parent` has an element child,\n\t\t// `child` is a doctype, or `child` is non-null and a doctype is following `child`.\n\t\tif (nodeChildElements.length === 1 && !isElementInsertionPossible(parent, child)) {\n\t\t\tthrow new DOMException(HIERARCHY_REQUEST_ERR, 'Element in fragment can not be inserted before doctype');\n\t\t}\n\t}\n\t// Element\n\tif (isElementNode(node)) {\n\t\t// `parent` has an element child, `child` is a doctype,\n\t\t// or `child` is non-null and a doctype is following `child`.\n\t\tif (!isElementInsertionPossible(parent, child)) {\n\t\t\tthrow new DOMException(HIERARCHY_REQUEST_ERR, 'Only one element can be added and only after doctype');\n\t\t}\n\t}\n\t// DocumentType\n\tif (isDocTypeNode(node)) {\n\t\t// `parent` has a doctype child,\n\t\tif (find(parentChildNodes, isDocTypeNode)) {\n\t\t\tthrow new DOMException(HIERARCHY_REQUEST_ERR, 'Only one doctype is allowed');\n\t\t}\n\t\tvar parentElementChild = find(parentChildNodes, isElementNode);\n\t\t// `child` is non-null and an element is preceding `child`,\n\t\tif (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {\n\t\t\tthrow new DOMException(HIERARCHY_REQUEST_ERR, 'Doctype can only be inserted before an element');\n\t\t}\n\t\t// or `child` is null and `parent` has an element child.\n\t\tif (!child && parentElementChild) {\n\t\t\tthrow new DOMException(HIERARCHY_REQUEST_ERR, 'Doctype can not be appended since element is present');\n\t\t}\n\t}\n}\n\n/**\n * @private\n * Step 6 of the checks before inserting and before replacing a child are different.\n *\n * @param {Document} parent the parent node to insert `node` into\n * @param {Node} node the node to insert\n * @param {Node | undefined} child the node that should become the `nextSibling` of `node`\n * @returns {Node}\n * @throws DOMException for several node combinations that would create a DOM that is not well-formed.\n * @throws DOMException if `child` is provided but is not a child of `parent`.\n * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity\n * @see https://dom.spec.whatwg.org/#concept-node-replace\n */\nfunction assertPreReplacementValidityInDocument(parent, node, child) {\n\tvar parentChildNodes = parent.childNodes || [];\n\tvar nodeChildNodes = node.childNodes || [];\n\n\t// DocumentFragment\n\tif (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {\n\t\tvar nodeChildElements = nodeChildNodes.filter(isElementNode);\n\t\t// If `node` has more than one element child or has a Text node child.\n\t\tif (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {\n\t\t\tthrow new DOMException(HIERARCHY_REQUEST_ERR, 'More than one element or text in fragment');\n\t\t}\n\t\t// Otherwise, if `node` has one element child and either `parent` has an element child that is not `child` or a doctype is following `child`.\n\t\tif (nodeChildElements.length === 1 && !isElementReplacementPossible(parent, child)) {\n\t\t\tthrow new DOMException(HIERARCHY_REQUEST_ERR, 'Element in fragment can not be inserted before doctype');\n\t\t}\n\t}\n\t// Element\n\tif (isElementNode(node)) {\n\t\t// `parent` has an element child that is not `child` or a doctype is following `child`.\n\t\tif (!isElementReplacementPossible(parent, child)) {\n\t\t\tthrow new DOMException(HIERARCHY_REQUEST_ERR, 'Only one element can be added and only after doctype');\n\t\t}\n\t}\n\t// DocumentType\n\tif (isDocTypeNode(node)) {\n\t\tfunction hasDoctypeChildThatIsNotChild(node) {\n\t\t\treturn isDocTypeNode(node) && node !== child;\n\t\t}\n\n\t\t// `parent` has a doctype child that is not `child`,\n\t\tif (find(parentChildNodes, hasDoctypeChildThatIsNotChild)) {\n\t\t\tthrow new DOMException(HIERARCHY_REQUEST_ERR, 'Only one doctype is allowed');\n\t\t}\n\t\tvar parentElementChild = find(parentChildNodes, isElementNode);\n\t\t// or an element is preceding `child`.\n\t\tif (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {\n\t\t\tthrow new DOMException(HIERARCHY_REQUEST_ERR, 'Doctype can only be inserted before an element');\n\t\t}\n\t}\n}\n\n/**\n * @private\n * @param {Node} parent the parent node to insert `node` into\n * @param {Node} node the node to insert\n * @param {Node=} child the node that should become the `nextSibling` of `node`\n * @returns {Node}\n * @throws DOMException for several node combinations that would create a DOM that is not well-formed.\n * @throws DOMException if `child` is provided but is not a child of `parent`.\n * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity\n */\nfunction _insertBefore(parent, node, child, _inDocumentAssertion) {\n\t// To ensure pre-insertion validity of a node into a parent before a child, run these steps:\n\tassertPreInsertionValidity1to5(parent, node, child);\n\n\t// If parent is a document, and any of the statements below, switched on the interface node implements,\n\t// are true, then throw a \"HierarchyRequestError\" DOMException.\n\tif (parent.nodeType === Node.DOCUMENT_NODE) {\n\t\t(_inDocumentAssertion || assertPreInsertionValidityInDocument)(parent, node, child);\n\t}\n\n\tvar cp = node.parentNode;\n\tif(cp){\n\t\tcp.removeChild(node);//remove and update\n\t}\n\tif(node.nodeType === DOCUMENT_FRAGMENT_NODE){\n\t\tvar newFirst = node.firstChild;\n\t\tif (newFirst == null) {\n\t\t\treturn node;\n\t\t}\n\t\tvar newLast = node.lastChild;\n\t}else{\n\t\tnewFirst = newLast = node;\n\t}\n\tvar pre = child ? child.previousSibling : parent.lastChild;\n\n\tnewFirst.previousSibling = pre;\n\tnewLast.nextSibling = child;\n\n\n\tif(pre){\n\t\tpre.nextSibling = newFirst;\n\t}else{\n\t\tparent.firstChild = newFirst;\n\t}\n\tif(child == null){\n\t\tparent.lastChild = newLast;\n\t}else{\n\t\tchild.previousSibling = newLast;\n\t}\n\tdo{\n\t\tnewFirst.parentNode = parent;\n\t}while(newFirst !== newLast && (newFirst= newFirst.nextSibling))\n\t_onUpdateChild(parent.ownerDocument||parent, parent);\n\t//console.log(parent.lastChild.nextSibling == null)\n\tif (node.nodeType == DOCUMENT_FRAGMENT_NODE) {\n\t\tnode.firstChild = node.lastChild = null;\n\t}\n\treturn node;\n}\n\n/**\n * Appends `newChild` to `parentNode`.\n * If `newChild` is already connected to a `parentNode` it is first removed from it.\n *\n * @see https://github.com/xmldom/xmldom/issues/135\n * @see https://github.com/xmldom/xmldom/issues/145\n * @param {Node} parentNode\n * @param {Node} newChild\n * @returns {Node}\n * @private\n */\nfunction _appendSingleChild (parentNode, newChild) {\n\tif (newChild.parentNode) {\n\t\tnewChild.parentNode.removeChild(newChild);\n\t}\n\tnewChild.parentNode = parentNode;\n\tnewChild.previousSibling = parentNode.lastChild;\n\tnewChild.nextSibling = null;\n\tif (newChild.previousSibling) {\n\t\tnewChild.previousSibling.nextSibling = newChild;\n\t} else {\n\t\tparentNode.firstChild = newChild;\n\t}\n\tparentNode.lastChild = newChild;\n\t_onUpdateChild(parentNode.ownerDocument, parentNode, newChild);\n\treturn newChild;\n}\n\nDocument.prototype = {\n\t//implementation : null,\n\tnodeName : '#document',\n\tnodeType : DOCUMENT_NODE,\n\t/**\n\t * The DocumentType node of the document.\n\t *\n\t * @readonly\n\t * @type DocumentType\n\t */\n\tdoctype : null,\n\tdocumentElement : null,\n\t_inc : 1,\n\n\tinsertBefore : function(newChild, refChild){//raises\n\t\tif(newChild.nodeType == DOCUMENT_FRAGMENT_NODE){\n\t\t\tvar child = newChild.firstChild;\n\t\t\twhile(child){\n\t\t\t\tvar next = child.nextSibling;\n\t\t\t\tthis.insertBefore(child,refChild);\n\t\t\t\tchild = next;\n\t\t\t}\n\t\t\treturn newChild;\n\t\t}\n\t\t_insertBefore(this, newChild, refChild);\n\t\tnewChild.ownerDocument = this;\n\t\tif (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) {\n\t\t\tthis.documentElement = newChild;\n\t\t}\n\n\t\treturn newChild;\n\t},\n\tremoveChild : function(oldChild){\n\t\tif(this.documentElement == oldChild){\n\t\t\tthis.documentElement = null;\n\t\t}\n\t\treturn _removeChild(this,oldChild);\n\t},\n\treplaceChild: function (newChild, oldChild) {\n\t\t//raises\n\t\t_insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);\n\t\tnewChild.ownerDocument = this;\n\t\tif (oldChild) {\n\t\t\tthis.removeChild(oldChild);\n\t\t}\n\t\tif (isElementNode(newChild)) {\n\t\t\tthis.documentElement = newChild;\n\t\t}\n\t},\n\t// Introduced in DOM Level 2:\n\timportNode : function(importedNode,deep){\n\t\treturn importNode(this,importedNode,deep);\n\t},\n\t// Introduced in DOM Level 2:\n\tgetElementById :\tfunction(id){\n\t\tvar rtv = null;\n\t\t_visitNode(this.documentElement,function(node){\n\t\t\tif(node.nodeType == ELEMENT_NODE){\n\t\t\t\tif(node.getAttribute('id') == id){\n\t\t\t\t\trtv = node;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t\treturn rtv;\n\t},\n\n\t/**\n\t * The `getElementsByClassName` method of `Document` interface returns an array-like object\n\t * of all child elements which have **all** of the given class name(s).\n\t *\n\t * Returns an empty list if `classeNames` is an empty string or only contains HTML white space characters.\n\t *\n\t *\n\t * Warning: This is a live LiveNodeList.\n\t * Changes in the DOM will reflect in the array as the changes occur.\n\t * If an element selected by this array no longer qualifies for the selector,\n\t * it will automatically be removed. Be aware of this for iteration purposes.\n\t *\n\t * @param {string} classNames is a string representing the class name(s) to match; multiple class names are separated by (ASCII-)whitespace\n\t *\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName\n\t * @see https://dom.spec.whatwg.org/#concept-getelementsbyclassname\n\t */\n\tgetElementsByClassName: function(classNames) {\n\t\tvar classNamesSet = toOrderedSet(classNames)\n\t\treturn new LiveNodeList(this, function(base) {\n\t\t\tvar ls = [];\n\t\t\tif (classNamesSet.length > 0) {\n\t\t\t\t_visitNode(base.documentElement, function(node) {\n\t\t\t\t\tif(node !== base && node.nodeType === ELEMENT_NODE) {\n\t\t\t\t\t\tvar nodeClassNames = node.getAttribute('class')\n\t\t\t\t\t\t// can be null if the attribute does not exist\n\t\t\t\t\t\tif (nodeClassNames) {\n\t\t\t\t\t\t\t// before splitting and iterating just compare them for the most common case\n\t\t\t\t\t\t\tvar matches = classNames === nodeClassNames;\n\t\t\t\t\t\t\tif (!matches) {\n\t\t\t\t\t\t\t\tvar nodeClassNamesSet = toOrderedSet(nodeClassNames)\n\t\t\t\t\t\t\t\tmatches = classNamesSet.every(arrayIncludes(nodeClassNamesSet))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(matches) {\n\t\t\t\t\t\t\t\tls.push(node);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn ls;\n\t\t});\n\t},\n\n\t//document factory method:\n\tcreateElement :\tfunction(tagName){\n\t\tvar node = new Element();\n\t\tnode.ownerDocument = this;\n\t\tnode.nodeName = tagName;\n\t\tnode.tagName = tagName;\n\t\tnode.localName = tagName;\n\t\tnode.childNodes = new NodeList();\n\t\tvar attrs\t= node.attributes = new NamedNodeMap();\n\t\tattrs._ownerElement = node;\n\t\treturn node;\n\t},\n\tcreateDocumentFragment :\tfunction(){\n\t\tvar node = new DocumentFragment();\n\t\tnode.ownerDocument = this;\n\t\tnode.childNodes = new NodeList();\n\t\treturn node;\n\t},\n\tcreateTextNode :\tfunction(data){\n\t\tvar node = new Text();\n\t\tnode.ownerDocument = this;\n\t\tnode.appendData(data)\n\t\treturn node;\n\t},\n\tcreateComment :\tfunction(data){\n\t\tvar node = new Comment();\n\t\tnode.ownerDocument = this;\n\t\tnode.appendData(data)\n\t\treturn node;\n\t},\n\tcreateCDATASection :\tfunction(data){\n\t\tvar node = new CDATASection();\n\t\tnode.ownerDocument = this;\n\t\tnode.appendData(data)\n\t\treturn node;\n\t},\n\tcreateProcessingInstruction :\tfunction(target,data){\n\t\tvar node = new ProcessingInstruction();\n\t\tnode.ownerDocument = this;\n\t\tnode.tagName = node.nodeName = node.target = target;\n\t\tnode.nodeValue = node.data = data;\n\t\treturn node;\n\t},\n\tcreateAttribute :\tfunction(name){\n\t\tvar node = new Attr();\n\t\tnode.ownerDocument\t= this;\n\t\tnode.name = name;\n\t\tnode.nodeName\t= name;\n\t\tnode.localName = name;\n\t\tnode.specified = true;\n\t\treturn node;\n\t},\n\tcreateEntityReference :\tfunction(name){\n\t\tvar node = new EntityReference();\n\t\tnode.ownerDocument\t= this;\n\t\tnode.nodeName\t= name;\n\t\treturn node;\n\t},\n\t// Introduced in DOM Level 2:\n\tcreateElementNS :\tfunction(namespaceURI,qualifiedName){\n\t\tvar node = new Element();\n\t\tvar pl = qualifiedName.split(':');\n\t\tvar attrs\t= node.attributes = new NamedNodeMap();\n\t\tnode.childNodes = new NodeList();\n\t\tnode.ownerDocument = this;\n\t\tnode.nodeName = qualifiedName;\n\t\tnode.tagName = qualifiedName;\n\t\tnode.namespaceURI = namespaceURI;\n\t\tif(pl.length == 2){\n\t\t\tnode.prefix = pl[0];\n\t\t\tnode.localName = pl[1];\n\t\t}else{\n\t\t\t//el.prefix = null;\n\t\t\tnode.localName = qualifiedName;\n\t\t}\n\t\tattrs._ownerElement = node;\n\t\treturn node;\n\t},\n\t// Introduced in DOM Level 2:\n\tcreateAttributeNS :\tfunction(namespaceURI,qualifiedName){\n\t\tvar node = new Attr();\n\t\tvar pl = qualifiedName.split(':');\n\t\tnode.ownerDocument = this;\n\t\tnode.nodeName = qualifiedName;\n\t\tnode.name = qualifiedName;\n\t\tnode.namespaceURI = namespaceURI;\n\t\tnode.specified = true;\n\t\tif(pl.length == 2){\n\t\t\tnode.prefix = pl[0];\n\t\t\tnode.localName = pl[1];\n\t\t}else{\n\t\t\t//el.prefix = null;\n\t\t\tnode.localName = qualifiedName;\n\t\t}\n\t\treturn node;\n\t}\n};\n_extends(Document,Node);\n\n\nfunction Element() {\n\tthis._nsMap = {};\n};\nElement.prototype = {\n\tnodeType : ELEMENT_NODE,\n\thasAttribute : function(name){\n\t\treturn this.getAttributeNode(name)!=null;\n\t},\n\tgetAttribute : function(name){\n\t\tvar attr = this.getAttributeNode(name);\n\t\treturn attr && attr.value || '';\n\t},\n\tgetAttributeNode : function(name){\n\t\treturn this.attributes.getNamedItem(name);\n\t},\n\tsetAttribute : function(name, value){\n\t\tvar attr = this.ownerDocument.createAttribute(name);\n\t\tattr.value = attr.nodeValue = \"\" + value;\n\t\tthis.setAttributeNode(attr)\n\t},\n\tremoveAttribute : function(name){\n\t\tvar attr = this.getAttributeNode(name)\n\t\tattr && this.removeAttributeNode(attr);\n\t},\n\n\t//four real opeartion method\n\tappendChild:function(newChild){\n\t\tif(newChild.nodeType === DOCUMENT_FRAGMENT_NODE){\n\t\t\treturn this.insertBefore(newChild,null);\n\t\t}else{\n\t\t\treturn _appendSingleChild(this,newChild);\n\t\t}\n\t},\n\tsetAttributeNode : function(newAttr){\n\t\treturn this.attributes.setNamedItem(newAttr);\n\t},\n\tsetAttributeNodeNS : function(newAttr){\n\t\treturn this.attributes.setNamedItemNS(newAttr);\n\t},\n\tremoveAttributeNode : function(oldAttr){\n\t\t//console.log(this == oldAttr.ownerElement)\n\t\treturn this.attributes.removeNamedItem(oldAttr.nodeName);\n\t},\n\t//get real attribute name,and remove it by removeAttributeNode\n\tremoveAttributeNS : function(namespaceURI, localName){\n\t\tvar old = this.getAttributeNodeNS(namespaceURI, localName);\n\t\told && this.removeAttributeNode(old);\n\t},\n\n\thasAttributeNS : function(namespaceURI, localName){\n\t\treturn this.getAttributeNodeNS(namespaceURI, localName)!=null;\n\t},\n\tgetAttributeNS : function(namespaceURI, localName){\n\t\tvar attr = this.getAttributeNodeNS(namespaceURI, localName);\n\t\treturn attr && attr.value || '';\n\t},\n\tsetAttributeNS : function(namespaceURI, qualifiedName, value){\n\t\tvar attr = this.ownerDocument.createAttributeNS(namespaceURI, qualifiedName);\n\t\tattr.value = attr.nodeValue = \"\" + value;\n\t\tthis.setAttributeNode(attr)\n\t},\n\tgetAttributeNodeNS : function(namespaceURI, localName){\n\t\treturn this.attributes.getNamedItemNS(namespaceURI, localName);\n\t},\n\n\tgetElementsByTagName : function(tagName){\n\t\treturn new LiveNodeList(this,function(base){\n\t\t\tvar ls = [];\n\t\t\t_visitNode(base,function(node){\n\t\t\t\tif(node !== base && node.nodeType == ELEMENT_NODE && (tagName === '*' || node.tagName == tagName)){\n\t\t\t\t\tls.push(node);\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn ls;\n\t\t});\n\t},\n\tgetElementsByTagNameNS : function(namespaceURI, localName){\n\t\treturn new LiveNodeList(this,function(base){\n\t\t\tvar ls = [];\n\t\t\t_visitNode(base,function(node){\n\t\t\t\tif(node !== base && node.nodeType === ELEMENT_NODE && (namespaceURI === '*' || node.namespaceURI === namespaceURI) && (localName === '*' || node.localName == localName)){\n\t\t\t\t\tls.push(node);\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn ls;\n\n\t\t});\n\t}\n};\nDocument.prototype.getElementsByTagName = Element.prototype.getElementsByTagName;\nDocument.prototype.getElementsByTagNameNS = Element.prototype.getElementsByTagNameNS;\n\n\n_extends(Element,Node);\nfunction Attr() {\n};\nAttr.prototype.nodeType = ATTRIBUTE_NODE;\n_extends(Attr,Node);\n\n\nfunction CharacterData() {\n};\nCharacterData.prototype = {\n\tdata : '',\n\tsubstringData : function(offset, count) {\n\t\treturn this.data.substring(offset, offset+count);\n\t},\n\tappendData: function(text) {\n\t\ttext = this.data+text;\n\t\tthis.nodeValue = this.data = text;\n\t\tthis.length = text.length;\n\t},\n\tinsertData: function(offset,text) {\n\t\tthis.replaceData(offset,0,text);\n\n\t},\n\tappendChild:function(newChild){\n\t\tthrow new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR])\n\t},\n\tdeleteData: function(offset, count) {\n\t\tthis.replaceData(offset,count,\"\");\n\t},\n\treplaceData: function(offset, count, text) {\n\t\tvar start = this.data.substring(0,offset);\n\t\tvar end = this.data.substring(offset+count);\n\t\ttext = start + text + end;\n\t\tthis.nodeValue = this.data = text;\n\t\tthis.length = text.length;\n\t}\n}\n_extends(CharacterData,Node);\nfunction Text() {\n};\nText.prototype = {\n\tnodeName : \"#text\",\n\tnodeType : TEXT_NODE,\n\tsplitText : function(offset) {\n\t\tvar text = this.data;\n\t\tvar newText = text.substring(offset);\n\t\ttext = text.substring(0, offset);\n\t\tthis.data = this.nodeValue = text;\n\t\tthis.length = text.length;\n\t\tvar newNode = this.ownerDocument.createTextNode(newText);\n\t\tif(this.parentNode){\n\t\t\tthis.parentNode.insertBefore(newNode, this.nextSibling);\n\t\t}\n\t\treturn newNode;\n\t}\n}\n_extends(Text,CharacterData);\nfunction Comment() {\n};\nComment.prototype = {\n\tnodeName : \"#comment\",\n\tnodeType : COMMENT_NODE\n}\n_extends(Comment,CharacterData);\n\nfunction CDATASection() {\n};\nCDATASection.prototype = {\n\tnodeName : \"#cdata-section\",\n\tnodeType : CDATA_SECTION_NODE\n}\n_extends(CDATASection,CharacterData);\n\n\nfunction DocumentType() {\n};\nDocumentType.prototype.nodeType = DOCUMENT_TYPE_NODE;\n_extends(DocumentType,Node);\n\nfunction Notation() {\n};\nNotation.prototype.nodeType = NOTATION_NODE;\n_extends(Notation,Node);\n\nfunction Entity() {\n};\nEntity.prototype.nodeType = ENTITY_NODE;\n_extends(Entity,Node);\n\nfunction EntityReference() {\n};\nEntityReference.prototype.nodeType = ENTITY_REFERENCE_NODE;\n_extends(EntityReference,Node);\n\nfunction DocumentFragment() {\n};\nDocumentFragment.prototype.nodeName =\t\"#document-fragment\";\nDocumentFragment.prototype.nodeType =\tDOCUMENT_FRAGMENT_NODE;\n_extends(DocumentFragment,Node);\n\n\nfunction ProcessingInstruction() {\n}\nProcessingInstruction.prototype.nodeType = PROCESSING_INSTRUCTION_NODE;\n_extends(ProcessingInstruction,Node);\nfunction XMLSerializer(){}\nXMLSerializer.prototype.serializeToString = function(node,isHtml,nodeFilter){\n\treturn nodeSerializeToString.call(node,isHtml,nodeFilter);\n}\nNode.prototype.toString = nodeSerializeToString;\nfunction nodeSerializeToString(isHtml,nodeFilter){\n\tvar buf = [];\n\tvar refNode = this.nodeType == 9 && this.documentElement || this;\n\tvar prefix = refNode.prefix;\n\tvar uri = refNode.namespaceURI;\n\n\tif(uri && prefix == null){\n\t\t//console.log(prefix)\n\t\tvar prefix = refNode.lookupPrefix(uri);\n\t\tif(prefix == null){\n\t\t\t//isHTML = true;\n\t\t\tvar visibleNamespaces=[\n\t\t\t{namespace:uri,prefix:null}\n\t\t\t//{namespace:uri,prefix:''}\n\t\t\t]\n\t\t}\n\t}\n\tserializeToString(this,buf,isHtml,nodeFilter,visibleNamespaces);\n\t//console.log('###',this.nodeType,uri,prefix,buf.join(''))\n\treturn buf.join('');\n}\n\nfunction needNamespaceDefine(node, isHTML, visibleNamespaces) {\n\tvar prefix = node.prefix || '';\n\tvar uri = node.namespaceURI;\n\t// According to [Namespaces in XML 1.0](https://www.w3.org/TR/REC-xml-names/#ns-using) ,\n\t// and more specifically https://www.w3.org/TR/REC-xml-names/#nsc-NoPrefixUndecl :\n\t// > In a namespace declaration for a prefix [...], the attribute value MUST NOT be empty.\n\t// in a similar manner [Namespaces in XML 1.1](https://www.w3.org/TR/xml-names11/#ns-using)\n\t// and more specifically https://www.w3.org/TR/xml-names11/#nsc-NSDeclared :\n\t// > [...] Furthermore, the attribute value [...] must not be an empty string.\n\t// so serializing empty namespace value like xmlns:ds=\"\" would produce an invalid XML document.\n\tif (!uri) {\n\t\treturn false;\n\t}\n\tif (prefix === \"xml\" && uri === NAMESPACE.XML || uri === NAMESPACE.XMLNS) {\n\t\treturn false;\n\t}\n\n\tvar i = visibleNamespaces.length\n\twhile (i--) {\n\t\tvar ns = visibleNamespaces[i];\n\t\t// get namespace prefix\n\t\tif (ns.prefix === prefix) {\n\t\t\treturn ns.namespace !== uri;\n\t\t}\n\t}\n\treturn true;\n}\n/**\n * Well-formed constraint: No < in Attribute Values\n * > The replacement text of any entity referred to directly or indirectly\n * > in an attribute value must not contain a <.\n * @see https://www.w3.org/TR/xml11/#CleanAttrVals\n * @see https://www.w3.org/TR/xml11/#NT-AttValue\n *\n * Literal whitespace other than space that appear in attribute values\n * are serialized as their entity references, so they will be preserved.\n * (In contrast to whitespace literals in the input which are normalized to spaces)\n * @see https://www.w3.org/TR/xml11/#AVNormalize\n * @see https://w3c.github.io/DOM-Parsing/#serializing-an-element-s-attributes\n */\nfunction addSerializedAttribute(buf, qualifiedName, value) {\n\tbuf.push(' ', qualifiedName, '=\"', value.replace(/[<>&\"\\t\\n\\r]/g, _xmlEncoder), '\"')\n}\n\nfunction serializeToString(node,buf,isHTML,nodeFilter,visibleNamespaces){\n\tif (!visibleNamespaces) {\n\t\tvisibleNamespaces = [];\n\t}\n\n\tif(nodeFilter){\n\t\tnode = nodeFilter(node);\n\t\tif(node){\n\t\t\tif(typeof node == 'string'){\n\t\t\t\tbuf.push(node);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}else{\n\t\t\treturn;\n\t\t}\n\t\t//buf.sort.apply(attrs, attributeSorter);\n\t}\n\n\tswitch(node.nodeType){\n\tcase ELEMENT_NODE:\n\t\tvar attrs = node.attributes;\n\t\tvar len = attrs.length;\n\t\tvar child = node.firstChild;\n\t\tvar nodeName = node.tagName;\n\n\t\tisHTML = NAMESPACE.isHTML(node.namespaceURI) || isHTML\n\n\t\tvar prefixedNodeName = nodeName\n\t\tif (!isHTML && !node.prefix && node.namespaceURI) {\n\t\t\tvar defaultNS\n\t\t\t// lookup current default ns from `xmlns` attribute\n\t\t\tfor (var ai = 0; ai < attrs.length; ai++) {\n\t\t\t\tif (attrs.item(ai).name === 'xmlns') {\n\t\t\t\t\tdefaultNS = attrs.item(ai).value\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!defaultNS) {\n\t\t\t\t// lookup current default ns in visibleNamespaces\n\t\t\t\tfor (var nsi = visibleNamespaces.length - 1; nsi >= 0; nsi--) {\n\t\t\t\t\tvar namespace = visibleNamespaces[nsi]\n\t\t\t\t\tif (namespace.prefix === '' && namespace.namespace === node.namespaceURI) {\n\t\t\t\t\t\tdefaultNS = namespace.namespace\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (defaultNS !== node.namespaceURI) {\n\t\t\t\tfor (var nsi = visibleNamespaces.length - 1; nsi >= 0; nsi--) {\n\t\t\t\t\tvar namespace = visibleNamespaces[nsi]\n\t\t\t\t\tif (namespace.namespace === node.namespaceURI) {\n\t\t\t\t\t\tif (namespace.prefix) {\n\t\t\t\t\t\t\tprefixedNodeName = namespace.prefix + ':' + nodeName\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuf.push('<', prefixedNodeName);\n\n\t\tfor(var i=0;i');\n\t\t\t//if is cdata child node\n\t\t\tif(isHTML && /^script$/i.test(nodeName)){\n\t\t\t\twhile(child){\n\t\t\t\t\tif(child.data){\n\t\t\t\t\t\tbuf.push(child.data);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tserializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());\n\t\t\t\t\t}\n\t\t\t\t\tchild = child.nextSibling;\n\t\t\t\t}\n\t\t\t}else\n\t\t\t{\n\t\t\t\twhile(child){\n\t\t\t\t\tserializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());\n\t\t\t\t\tchild = child.nextSibling;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbuf.push('');\n\t\t}else{\n\t\t\tbuf.push('/>');\n\t\t}\n\t\t// remove added visible namespaces\n\t\t//visibleNamespaces.length = startVisibleNamespaces;\n\t\treturn;\n\tcase DOCUMENT_NODE:\n\tcase DOCUMENT_FRAGMENT_NODE:\n\t\tvar child = node.firstChild;\n\t\twhile(child){\n\t\t\tserializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());\n\t\t\tchild = child.nextSibling;\n\t\t}\n\t\treturn;\n\tcase ATTRIBUTE_NODE:\n\t\treturn addSerializedAttribute(buf, node.name, node.value);\n\tcase TEXT_NODE:\n\t\t/**\n\t\t * The ampersand character (&) and the left angle bracket (<) must not appear in their literal form,\n\t\t * except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section.\n\t\t * If they are needed elsewhere, they must be escaped using either numeric character references or the strings\n\t\t * `&` and `<` respectively.\n\t\t * The right angle bracket (>) may be represented using the string \" > \", and must, for compatibility,\n\t\t * be escaped using either `>` or a character reference when it appears in the string `]]>` in content,\n\t\t * when that string is not marking the end of a CDATA section.\n\t\t *\n\t\t * In the content of elements, character data is any string of characters\n\t\t * which does not contain the start-delimiter of any markup\n\t\t * and does not include the CDATA-section-close delimiter, `]]>`.\n\t\t *\n\t\t * @see https://www.w3.org/TR/xml/#NT-CharData\n\t\t * @see https://w3c.github.io/DOM-Parsing/#xml-serializing-a-text-node\n\t\t */\n\t\treturn buf.push(node.data\n\t\t\t.replace(/[<&>]/g,_xmlEncoder)\n\t\t);\n\tcase CDATA_SECTION_NODE:\n\t\treturn buf.push( '');\n\tcase COMMENT_NODE:\n\t\treturn buf.push( \"\");\n\tcase DOCUMENT_TYPE_NODE:\n\t\tvar pubid = node.publicId;\n\t\tvar sysid = node.systemId;\n\t\tbuf.push('');\n\t\t}else if(sysid && sysid!='.'){\n\t\t\tbuf.push(' SYSTEM ', sysid, '>');\n\t\t}else{\n\t\t\tvar sub = node.internalSubset;\n\t\t\tif(sub){\n\t\t\t\tbuf.push(\" [\",sub,\"]\");\n\t\t\t}\n\t\t\tbuf.push(\">\");\n\t\t}\n\t\treturn;\n\tcase PROCESSING_INSTRUCTION_NODE:\n\t\treturn buf.push( \"\");\n\tcase ENTITY_REFERENCE_NODE:\n\t\treturn buf.push( '&',node.nodeName,';');\n\t//case ENTITY_NODE:\n\t//case NOTATION_NODE:\n\tdefault:\n\t\tbuf.push('??',node.nodeName);\n\t}\n}\nfunction importNode(doc,node,deep){\n\tvar node2;\n\tswitch (node.nodeType) {\n\tcase ELEMENT_NODE:\n\t\tnode2 = node.cloneNode(false);\n\t\tnode2.ownerDocument = doc;\n\t\t//var attrs = node2.attributes;\n\t\t//var len = attrs.length;\n\t\t//for(var i=0;i',\n\tlt: '<',\n\tquot: '\"',\n});\n\n/**\n * A map of all entities that are detected in an HTML document.\n * They contain all entries from `XML_ENTITIES`.\n *\n * @see XML_ENTITIES\n * @see DOMParser.parseFromString\n * @see DOMImplementation.prototype.createHTMLDocument\n * @see https://html.spec.whatwg.org/#named-character-references WHATWG HTML(5) Spec\n * @see https://html.spec.whatwg.org/entities.json JSON\n * @see https://www.w3.org/TR/xml-entity-names/ W3C XML Entity Names\n * @see https://www.w3.org/TR/html4/sgml/entities.html W3C HTML4/SGML\n * @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Character_entity_references_in_HTML Wikipedia (HTML)\n * @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Entities_representing_special_characters_in_XHTML Wikpedia (XHTML)\n */\nexports.HTML_ENTITIES = freeze({\n\tAacute: '\\u00C1',\n\taacute: '\\u00E1',\n\tAbreve: '\\u0102',\n\tabreve: '\\u0103',\n\tac: '\\u223E',\n\tacd: '\\u223F',\n\tacE: '\\u223E\\u0333',\n\tAcirc: '\\u00C2',\n\tacirc: '\\u00E2',\n\tacute: '\\u00B4',\n\tAcy: '\\u0410',\n\tacy: '\\u0430',\n\tAElig: '\\u00C6',\n\taelig: '\\u00E6',\n\taf: '\\u2061',\n\tAfr: '\\uD835\\uDD04',\n\tafr: '\\uD835\\uDD1E',\n\tAgrave: '\\u00C0',\n\tagrave: '\\u00E0',\n\talefsym: '\\u2135',\n\taleph: '\\u2135',\n\tAlpha: '\\u0391',\n\talpha: '\\u03B1',\n\tAmacr: '\\u0100',\n\tamacr: '\\u0101',\n\tamalg: '\\u2A3F',\n\tAMP: '\\u0026',\n\tamp: '\\u0026',\n\tAnd: '\\u2A53',\n\tand: '\\u2227',\n\tandand: '\\u2A55',\n\tandd: '\\u2A5C',\n\tandslope: '\\u2A58',\n\tandv: '\\u2A5A',\n\tang: '\\u2220',\n\tange: '\\u29A4',\n\tangle: '\\u2220',\n\tangmsd: '\\u2221',\n\tangmsdaa: '\\u29A8',\n\tangmsdab: '\\u29A9',\n\tangmsdac: '\\u29AA',\n\tangmsdad: '\\u29AB',\n\tangmsdae: '\\u29AC',\n\tangmsdaf: '\\u29AD',\n\tangmsdag: '\\u29AE',\n\tangmsdah: '\\u29AF',\n\tangrt: '\\u221F',\n\tangrtvb: '\\u22BE',\n\tangrtvbd: '\\u299D',\n\tangsph: '\\u2222',\n\tangst: '\\u00C5',\n\tangzarr: '\\u237C',\n\tAogon: '\\u0104',\n\taogon: '\\u0105',\n\tAopf: '\\uD835\\uDD38',\n\taopf: '\\uD835\\uDD52',\n\tap: '\\u2248',\n\tapacir: '\\u2A6F',\n\tapE: '\\u2A70',\n\tape: '\\u224A',\n\tapid: '\\u224B',\n\tapos: '\\u0027',\n\tApplyFunction: '\\u2061',\n\tapprox: '\\u2248',\n\tapproxeq: '\\u224A',\n\tAring: '\\u00C5',\n\taring: '\\u00E5',\n\tAscr: '\\uD835\\uDC9C',\n\tascr: '\\uD835\\uDCB6',\n\tAssign: '\\u2254',\n\tast: '\\u002A',\n\tasymp: '\\u2248',\n\tasympeq: '\\u224D',\n\tAtilde: '\\u00C3',\n\tatilde: '\\u00E3',\n\tAuml: '\\u00C4',\n\tauml: '\\u00E4',\n\tawconint: '\\u2233',\n\tawint: '\\u2A11',\n\tbackcong: '\\u224C',\n\tbackepsilon: '\\u03F6',\n\tbackprime: '\\u2035',\n\tbacksim: '\\u223D',\n\tbacksimeq: '\\u22CD',\n\tBackslash: '\\u2216',\n\tBarv: '\\u2AE7',\n\tbarvee: '\\u22BD',\n\tBarwed: '\\u2306',\n\tbarwed: '\\u2305',\n\tbarwedge: '\\u2305',\n\tbbrk: '\\u23B5',\n\tbbrktbrk: '\\u23B6',\n\tbcong: '\\u224C',\n\tBcy: '\\u0411',\n\tbcy: '\\u0431',\n\tbdquo: '\\u201E',\n\tbecaus: '\\u2235',\n\tBecause: '\\u2235',\n\tbecause: '\\u2235',\n\tbemptyv: '\\u29B0',\n\tbepsi: '\\u03F6',\n\tbernou: '\\u212C',\n\tBernoullis: '\\u212C',\n\tBeta: '\\u0392',\n\tbeta: '\\u03B2',\n\tbeth: '\\u2136',\n\tbetween: '\\u226C',\n\tBfr: '\\uD835\\uDD05',\n\tbfr: '\\uD835\\uDD1F',\n\tbigcap: '\\u22C2',\n\tbigcirc: '\\u25EF',\n\tbigcup: '\\u22C3',\n\tbigodot: '\\u2A00',\n\tbigoplus: '\\u2A01',\n\tbigotimes: '\\u2A02',\n\tbigsqcup: '\\u2A06',\n\tbigstar: '\\u2605',\n\tbigtriangledown: '\\u25BD',\n\tbigtriangleup: '\\u25B3',\n\tbiguplus: '\\u2A04',\n\tbigvee: '\\u22C1',\n\tbigwedge: '\\u22C0',\n\tbkarow: '\\u290D',\n\tblacklozenge: '\\u29EB',\n\tblacksquare: '\\u25AA',\n\tblacktriangle: '\\u25B4',\n\tblacktriangledown: '\\u25BE',\n\tblacktriangleleft: '\\u25C2',\n\tblacktriangleright: '\\u25B8',\n\tblank: '\\u2423',\n\tblk12: '\\u2592',\n\tblk14: '\\u2591',\n\tblk34: '\\u2593',\n\tblock: '\\u2588',\n\tbne: '\\u003D\\u20E5',\n\tbnequiv: '\\u2261\\u20E5',\n\tbNot: '\\u2AED',\n\tbnot: '\\u2310',\n\tBopf: '\\uD835\\uDD39',\n\tbopf: '\\uD835\\uDD53',\n\tbot: '\\u22A5',\n\tbottom: '\\u22A5',\n\tbowtie: '\\u22C8',\n\tboxbox: '\\u29C9',\n\tboxDL: '\\u2557',\n\tboxDl: '\\u2556',\n\tboxdL: '\\u2555',\n\tboxdl: '\\u2510',\n\tboxDR: '\\u2554',\n\tboxDr: '\\u2553',\n\tboxdR: '\\u2552',\n\tboxdr: '\\u250C',\n\tboxH: '\\u2550',\n\tboxh: '\\u2500',\n\tboxHD: '\\u2566',\n\tboxHd: '\\u2564',\n\tboxhD: '\\u2565',\n\tboxhd: '\\u252C',\n\tboxHU: '\\u2569',\n\tboxHu: '\\u2567',\n\tboxhU: '\\u2568',\n\tboxhu: '\\u2534',\n\tboxminus: '\\u229F',\n\tboxplus: '\\u229E',\n\tboxtimes: '\\u22A0',\n\tboxUL: '\\u255D',\n\tboxUl: '\\u255C',\n\tboxuL: '\\u255B',\n\tboxul: '\\u2518',\n\tboxUR: '\\u255A',\n\tboxUr: '\\u2559',\n\tboxuR: '\\u2558',\n\tboxur: '\\u2514',\n\tboxV: '\\u2551',\n\tboxv: '\\u2502',\n\tboxVH: '\\u256C',\n\tboxVh: '\\u256B',\n\tboxvH: '\\u256A',\n\tboxvh: '\\u253C',\n\tboxVL: '\\u2563',\n\tboxVl: '\\u2562',\n\tboxvL: '\\u2561',\n\tboxvl: '\\u2524',\n\tboxVR: '\\u2560',\n\tboxVr: '\\u255F',\n\tboxvR: '\\u255E',\n\tboxvr: '\\u251C',\n\tbprime: '\\u2035',\n\tBreve: '\\u02D8',\n\tbreve: '\\u02D8',\n\tbrvbar: '\\u00A6',\n\tBscr: '\\u212C',\n\tbscr: '\\uD835\\uDCB7',\n\tbsemi: '\\u204F',\n\tbsim: '\\u223D',\n\tbsime: '\\u22CD',\n\tbsol: '\\u005C',\n\tbsolb: '\\u29C5',\n\tbsolhsub: '\\u27C8',\n\tbull: '\\u2022',\n\tbullet: '\\u2022',\n\tbump: '\\u224E',\n\tbumpE: '\\u2AAE',\n\tbumpe: '\\u224F',\n\tBumpeq: '\\u224E',\n\tbumpeq: '\\u224F',\n\tCacute: '\\u0106',\n\tcacute: '\\u0107',\n\tCap: '\\u22D2',\n\tcap: '\\u2229',\n\tcapand: '\\u2A44',\n\tcapbrcup: '\\u2A49',\n\tcapcap: '\\u2A4B',\n\tcapcup: '\\u2A47',\n\tcapdot: '\\u2A40',\n\tCapitalDifferentialD: '\\u2145',\n\tcaps: '\\u2229\\uFE00',\n\tcaret: '\\u2041',\n\tcaron: '\\u02C7',\n\tCayleys: '\\u212D',\n\tccaps: '\\u2A4D',\n\tCcaron: '\\u010C',\n\tccaron: '\\u010D',\n\tCcedil: '\\u00C7',\n\tccedil: '\\u00E7',\n\tCcirc: '\\u0108',\n\tccirc: '\\u0109',\n\tCconint: '\\u2230',\n\tccups: '\\u2A4C',\n\tccupssm: '\\u2A50',\n\tCdot: '\\u010A',\n\tcdot: '\\u010B',\n\tcedil: '\\u00B8',\n\tCedilla: '\\u00B8',\n\tcemptyv: '\\u29B2',\n\tcent: '\\u00A2',\n\tCenterDot: '\\u00B7',\n\tcenterdot: '\\u00B7',\n\tCfr: '\\u212D',\n\tcfr: '\\uD835\\uDD20',\n\tCHcy: '\\u0427',\n\tchcy: '\\u0447',\n\tcheck: '\\u2713',\n\tcheckmark: '\\u2713',\n\tChi: '\\u03A7',\n\tchi: '\\u03C7',\n\tcir: '\\u25CB',\n\tcirc: '\\u02C6',\n\tcirceq: '\\u2257',\n\tcirclearrowleft: '\\u21BA',\n\tcirclearrowright: '\\u21BB',\n\tcircledast: '\\u229B',\n\tcircledcirc: '\\u229A',\n\tcircleddash: '\\u229D',\n\tCircleDot: '\\u2299',\n\tcircledR: '\\u00AE',\n\tcircledS: '\\u24C8',\n\tCircleMinus: '\\u2296',\n\tCirclePlus: '\\u2295',\n\tCircleTimes: '\\u2297',\n\tcirE: '\\u29C3',\n\tcire: '\\u2257',\n\tcirfnint: '\\u2A10',\n\tcirmid: '\\u2AEF',\n\tcirscir: '\\u29C2',\n\tClockwiseContourIntegral: '\\u2232',\n\tCloseCurlyDoubleQuote: '\\u201D',\n\tCloseCurlyQuote: '\\u2019',\n\tclubs: '\\u2663',\n\tclubsuit: '\\u2663',\n\tColon: '\\u2237',\n\tcolon: '\\u003A',\n\tColone: '\\u2A74',\n\tcolone: '\\u2254',\n\tcoloneq: '\\u2254',\n\tcomma: '\\u002C',\n\tcommat: '\\u0040',\n\tcomp: '\\u2201',\n\tcompfn: '\\u2218',\n\tcomplement: '\\u2201',\n\tcomplexes: '\\u2102',\n\tcong: '\\u2245',\n\tcongdot: '\\u2A6D',\n\tCongruent: '\\u2261',\n\tConint: '\\u222F',\n\tconint: '\\u222E',\n\tContourIntegral: '\\u222E',\n\tCopf: '\\u2102',\n\tcopf: '\\uD835\\uDD54',\n\tcoprod: '\\u2210',\n\tCoproduct: '\\u2210',\n\tCOPY: '\\u00A9',\n\tcopy: '\\u00A9',\n\tcopysr: '\\u2117',\n\tCounterClockwiseContourIntegral: '\\u2233',\n\tcrarr: '\\u21B5',\n\tCross: '\\u2A2F',\n\tcross: '\\u2717',\n\tCscr: '\\uD835\\uDC9E',\n\tcscr: '\\uD835\\uDCB8',\n\tcsub: '\\u2ACF',\n\tcsube: '\\u2AD1',\n\tcsup: '\\u2AD0',\n\tcsupe: '\\u2AD2',\n\tctdot: '\\u22EF',\n\tcudarrl: '\\u2938',\n\tcudarrr: '\\u2935',\n\tcuepr: '\\u22DE',\n\tcuesc: '\\u22DF',\n\tcularr: '\\u21B6',\n\tcularrp: '\\u293D',\n\tCup: '\\u22D3',\n\tcup: '\\u222A',\n\tcupbrcap: '\\u2A48',\n\tCupCap: '\\u224D',\n\tcupcap: '\\u2A46',\n\tcupcup: '\\u2A4A',\n\tcupdot: '\\u228D',\n\tcupor: '\\u2A45',\n\tcups: '\\u222A\\uFE00',\n\tcurarr: '\\u21B7',\n\tcurarrm: '\\u293C',\n\tcurlyeqprec: '\\u22DE',\n\tcurlyeqsucc: '\\u22DF',\n\tcurlyvee: '\\u22CE',\n\tcurlywedge: '\\u22CF',\n\tcurren: '\\u00A4',\n\tcurvearrowleft: '\\u21B6',\n\tcurvearrowright: '\\u21B7',\n\tcuvee: '\\u22CE',\n\tcuwed: '\\u22CF',\n\tcwconint: '\\u2232',\n\tcwint: '\\u2231',\n\tcylcty: '\\u232D',\n\tDagger: '\\u2021',\n\tdagger: '\\u2020',\n\tdaleth: '\\u2138',\n\tDarr: '\\u21A1',\n\tdArr: '\\u21D3',\n\tdarr: '\\u2193',\n\tdash: '\\u2010',\n\tDashv: '\\u2AE4',\n\tdashv: '\\u22A3',\n\tdbkarow: '\\u290F',\n\tdblac: '\\u02DD',\n\tDcaron: '\\u010E',\n\tdcaron: '\\u010F',\n\tDcy: '\\u0414',\n\tdcy: '\\u0434',\n\tDD: '\\u2145',\n\tdd: '\\u2146',\n\tddagger: '\\u2021',\n\tddarr: '\\u21CA',\n\tDDotrahd: '\\u2911',\n\tddotseq: '\\u2A77',\n\tdeg: '\\u00B0',\n\tDel: '\\u2207',\n\tDelta: '\\u0394',\n\tdelta: '\\u03B4',\n\tdemptyv: '\\u29B1',\n\tdfisht: '\\u297F',\n\tDfr: '\\uD835\\uDD07',\n\tdfr: '\\uD835\\uDD21',\n\tdHar: '\\u2965',\n\tdharl: '\\u21C3',\n\tdharr: '\\u21C2',\n\tDiacriticalAcute: '\\u00B4',\n\tDiacriticalDot: '\\u02D9',\n\tDiacriticalDoubleAcute: '\\u02DD',\n\tDiacriticalGrave: '\\u0060',\n\tDiacriticalTilde: '\\u02DC',\n\tdiam: '\\u22C4',\n\tDiamond: '\\u22C4',\n\tdiamond: '\\u22C4',\n\tdiamondsuit: '\\u2666',\n\tdiams: '\\u2666',\n\tdie: '\\u00A8',\n\tDifferentialD: '\\u2146',\n\tdigamma: '\\u03DD',\n\tdisin: '\\u22F2',\n\tdiv: '\\u00F7',\n\tdivide: '\\u00F7',\n\tdivideontimes: '\\u22C7',\n\tdivonx: '\\u22C7',\n\tDJcy: '\\u0402',\n\tdjcy: '\\u0452',\n\tdlcorn: '\\u231E',\n\tdlcrop: '\\u230D',\n\tdollar: '\\u0024',\n\tDopf: '\\uD835\\uDD3B',\n\tdopf: '\\uD835\\uDD55',\n\tDot: '\\u00A8',\n\tdot: '\\u02D9',\n\tDotDot: '\\u20DC',\n\tdoteq: '\\u2250',\n\tdoteqdot: '\\u2251',\n\tDotEqual: '\\u2250',\n\tdotminus: '\\u2238',\n\tdotplus: '\\u2214',\n\tdotsquare: '\\u22A1',\n\tdoublebarwedge: '\\u2306',\n\tDoubleContourIntegral: '\\u222F',\n\tDoubleDot: '\\u00A8',\n\tDoubleDownArrow: '\\u21D3',\n\tDoubleLeftArrow: '\\u21D0',\n\tDoubleLeftRightArrow: '\\u21D4',\n\tDoubleLeftTee: '\\u2AE4',\n\tDoubleLongLeftArrow: '\\u27F8',\n\tDoubleLongLeftRightArrow: '\\u27FA',\n\tDoubleLongRightArrow: '\\u27F9',\n\tDoubleRightArrow: '\\u21D2',\n\tDoubleRightTee: '\\u22A8',\n\tDoubleUpArrow: '\\u21D1',\n\tDoubleUpDownArrow: '\\u21D5',\n\tDoubleVerticalBar: '\\u2225',\n\tDownArrow: '\\u2193',\n\tDownarrow: '\\u21D3',\n\tdownarrow: '\\u2193',\n\tDownArrowBar: '\\u2913',\n\tDownArrowUpArrow: '\\u21F5',\n\tDownBreve: '\\u0311',\n\tdowndownarrows: '\\u21CA',\n\tdownharpoonleft: '\\u21C3',\n\tdownharpoonright: '\\u21C2',\n\tDownLeftRightVector: '\\u2950',\n\tDownLeftTeeVector: '\\u295E',\n\tDownLeftVector: '\\u21BD',\n\tDownLeftVectorBar: '\\u2956',\n\tDownRightTeeVector: '\\u295F',\n\tDownRightVector: '\\u21C1',\n\tDownRightVectorBar: '\\u2957',\n\tDownTee: '\\u22A4',\n\tDownTeeArrow: '\\u21A7',\n\tdrbkarow: '\\u2910',\n\tdrcorn: '\\u231F',\n\tdrcrop: '\\u230C',\n\tDscr: '\\uD835\\uDC9F',\n\tdscr: '\\uD835\\uDCB9',\n\tDScy: '\\u0405',\n\tdscy: '\\u0455',\n\tdsol: '\\u29F6',\n\tDstrok: '\\u0110',\n\tdstrok: '\\u0111',\n\tdtdot: '\\u22F1',\n\tdtri: '\\u25BF',\n\tdtrif: '\\u25BE',\n\tduarr: '\\u21F5',\n\tduhar: '\\u296F',\n\tdwangle: '\\u29A6',\n\tDZcy: '\\u040F',\n\tdzcy: '\\u045F',\n\tdzigrarr: '\\u27FF',\n\tEacute: '\\u00C9',\n\teacute: '\\u00E9',\n\teaster: '\\u2A6E',\n\tEcaron: '\\u011A',\n\tecaron: '\\u011B',\n\tecir: '\\u2256',\n\tEcirc: '\\u00CA',\n\tecirc: '\\u00EA',\n\tecolon: '\\u2255',\n\tEcy: '\\u042D',\n\tecy: '\\u044D',\n\teDDot: '\\u2A77',\n\tEdot: '\\u0116',\n\teDot: '\\u2251',\n\tedot: '\\u0117',\n\tee: '\\u2147',\n\tefDot: '\\u2252',\n\tEfr: '\\uD835\\uDD08',\n\tefr: '\\uD835\\uDD22',\n\teg: '\\u2A9A',\n\tEgrave: '\\u00C8',\n\tegrave: '\\u00E8',\n\tegs: '\\u2A96',\n\tegsdot: '\\u2A98',\n\tel: '\\u2A99',\n\tElement: '\\u2208',\n\telinters: '\\u23E7',\n\tell: '\\u2113',\n\tels: '\\u2A95',\n\telsdot: '\\u2A97',\n\tEmacr: '\\u0112',\n\temacr: '\\u0113',\n\tempty: '\\u2205',\n\temptyset: '\\u2205',\n\tEmptySmallSquare: '\\u25FB',\n\temptyv: '\\u2205',\n\tEmptyVerySmallSquare: '\\u25AB',\n\temsp: '\\u2003',\n\temsp13: '\\u2004',\n\temsp14: '\\u2005',\n\tENG: '\\u014A',\n\teng: '\\u014B',\n\tensp: '\\u2002',\n\tEogon: '\\u0118',\n\teogon: '\\u0119',\n\tEopf: '\\uD835\\uDD3C',\n\teopf: '\\uD835\\uDD56',\n\tepar: '\\u22D5',\n\teparsl: '\\u29E3',\n\teplus: '\\u2A71',\n\tepsi: '\\u03B5',\n\tEpsilon: '\\u0395',\n\tepsilon: '\\u03B5',\n\tepsiv: '\\u03F5',\n\teqcirc: '\\u2256',\n\teqcolon: '\\u2255',\n\teqsim: '\\u2242',\n\teqslantgtr: '\\u2A96',\n\teqslantless: '\\u2A95',\n\tEqual: '\\u2A75',\n\tequals: '\\u003D',\n\tEqualTilde: '\\u2242',\n\tequest: '\\u225F',\n\tEquilibrium: '\\u21CC',\n\tequiv: '\\u2261',\n\tequivDD: '\\u2A78',\n\teqvparsl: '\\u29E5',\n\terarr: '\\u2971',\n\terDot: '\\u2253',\n\tEscr: '\\u2130',\n\tescr: '\\u212F',\n\tesdot: '\\u2250',\n\tEsim: '\\u2A73',\n\tesim: '\\u2242',\n\tEta: '\\u0397',\n\teta: '\\u03B7',\n\tETH: '\\u00D0',\n\teth: '\\u00F0',\n\tEuml: '\\u00CB',\n\teuml: '\\u00EB',\n\teuro: '\\u20AC',\n\texcl: '\\u0021',\n\texist: '\\u2203',\n\tExists: '\\u2203',\n\texpectation: '\\u2130',\n\tExponentialE: '\\u2147',\n\texponentiale: '\\u2147',\n\tfallingdotseq: '\\u2252',\n\tFcy: '\\u0424',\n\tfcy: '\\u0444',\n\tfemale: '\\u2640',\n\tffilig: '\\uFB03',\n\tfflig: '\\uFB00',\n\tffllig: '\\uFB04',\n\tFfr: '\\uD835\\uDD09',\n\tffr: '\\uD835\\uDD23',\n\tfilig: '\\uFB01',\n\tFilledSmallSquare: '\\u25FC',\n\tFilledVerySmallSquare: '\\u25AA',\n\tfjlig: '\\u0066\\u006A',\n\tflat: '\\u266D',\n\tfllig: '\\uFB02',\n\tfltns: '\\u25B1',\n\tfnof: '\\u0192',\n\tFopf: '\\uD835\\uDD3D',\n\tfopf: '\\uD835\\uDD57',\n\tForAll: '\\u2200',\n\tforall: '\\u2200',\n\tfork: '\\u22D4',\n\tforkv: '\\u2AD9',\n\tFouriertrf: '\\u2131',\n\tfpartint: '\\u2A0D',\n\tfrac12: '\\u00BD',\n\tfrac13: '\\u2153',\n\tfrac14: '\\u00BC',\n\tfrac15: '\\u2155',\n\tfrac16: '\\u2159',\n\tfrac18: '\\u215B',\n\tfrac23: '\\u2154',\n\tfrac25: '\\u2156',\n\tfrac34: '\\u00BE',\n\tfrac35: '\\u2157',\n\tfrac38: '\\u215C',\n\tfrac45: '\\u2158',\n\tfrac56: '\\u215A',\n\tfrac58: '\\u215D',\n\tfrac78: '\\u215E',\n\tfrasl: '\\u2044',\n\tfrown: '\\u2322',\n\tFscr: '\\u2131',\n\tfscr: '\\uD835\\uDCBB',\n\tgacute: '\\u01F5',\n\tGamma: '\\u0393',\n\tgamma: '\\u03B3',\n\tGammad: '\\u03DC',\n\tgammad: '\\u03DD',\n\tgap: '\\u2A86',\n\tGbreve: '\\u011E',\n\tgbreve: '\\u011F',\n\tGcedil: '\\u0122',\n\tGcirc: '\\u011C',\n\tgcirc: '\\u011D',\n\tGcy: '\\u0413',\n\tgcy: '\\u0433',\n\tGdot: '\\u0120',\n\tgdot: '\\u0121',\n\tgE: '\\u2267',\n\tge: '\\u2265',\n\tgEl: '\\u2A8C',\n\tgel: '\\u22DB',\n\tgeq: '\\u2265',\n\tgeqq: '\\u2267',\n\tgeqslant: '\\u2A7E',\n\tges: '\\u2A7E',\n\tgescc: '\\u2AA9',\n\tgesdot: '\\u2A80',\n\tgesdoto: '\\u2A82',\n\tgesdotol: '\\u2A84',\n\tgesl: '\\u22DB\\uFE00',\n\tgesles: '\\u2A94',\n\tGfr: '\\uD835\\uDD0A',\n\tgfr: '\\uD835\\uDD24',\n\tGg: '\\u22D9',\n\tgg: '\\u226B',\n\tggg: '\\u22D9',\n\tgimel: '\\u2137',\n\tGJcy: '\\u0403',\n\tgjcy: '\\u0453',\n\tgl: '\\u2277',\n\tgla: '\\u2AA5',\n\tglE: '\\u2A92',\n\tglj: '\\u2AA4',\n\tgnap: '\\u2A8A',\n\tgnapprox: '\\u2A8A',\n\tgnE: '\\u2269',\n\tgne: '\\u2A88',\n\tgneq: '\\u2A88',\n\tgneqq: '\\u2269',\n\tgnsim: '\\u22E7',\n\tGopf: '\\uD835\\uDD3E',\n\tgopf: '\\uD835\\uDD58',\n\tgrave: '\\u0060',\n\tGreaterEqual: '\\u2265',\n\tGreaterEqualLess: '\\u22DB',\n\tGreaterFullEqual: '\\u2267',\n\tGreaterGreater: '\\u2AA2',\n\tGreaterLess: '\\u2277',\n\tGreaterSlantEqual: '\\u2A7E',\n\tGreaterTilde: '\\u2273',\n\tGscr: '\\uD835\\uDCA2',\n\tgscr: '\\u210A',\n\tgsim: '\\u2273',\n\tgsime: '\\u2A8E',\n\tgsiml: '\\u2A90',\n\tGt: '\\u226B',\n\tGT: '\\u003E',\n\tgt: '\\u003E',\n\tgtcc: '\\u2AA7',\n\tgtcir: '\\u2A7A',\n\tgtdot: '\\u22D7',\n\tgtlPar: '\\u2995',\n\tgtquest: '\\u2A7C',\n\tgtrapprox: '\\u2A86',\n\tgtrarr: '\\u2978',\n\tgtrdot: '\\u22D7',\n\tgtreqless: '\\u22DB',\n\tgtreqqless: '\\u2A8C',\n\tgtrless: '\\u2277',\n\tgtrsim: '\\u2273',\n\tgvertneqq: '\\u2269\\uFE00',\n\tgvnE: '\\u2269\\uFE00',\n\tHacek: '\\u02C7',\n\thairsp: '\\u200A',\n\thalf: '\\u00BD',\n\thamilt: '\\u210B',\n\tHARDcy: '\\u042A',\n\thardcy: '\\u044A',\n\thArr: '\\u21D4',\n\tharr: '\\u2194',\n\tharrcir: '\\u2948',\n\tharrw: '\\u21AD',\n\tHat: '\\u005E',\n\thbar: '\\u210F',\n\tHcirc: '\\u0124',\n\thcirc: '\\u0125',\n\thearts: '\\u2665',\n\theartsuit: '\\u2665',\n\thellip: '\\u2026',\n\thercon: '\\u22B9',\n\tHfr: '\\u210C',\n\thfr: '\\uD835\\uDD25',\n\tHilbertSpace: '\\u210B',\n\thksearow: '\\u2925',\n\thkswarow: '\\u2926',\n\thoarr: '\\u21FF',\n\thomtht: '\\u223B',\n\thookleftarrow: '\\u21A9',\n\thookrightarrow: '\\u21AA',\n\tHopf: '\\u210D',\n\thopf: '\\uD835\\uDD59',\n\thorbar: '\\u2015',\n\tHorizontalLine: '\\u2500',\n\tHscr: '\\u210B',\n\thscr: '\\uD835\\uDCBD',\n\thslash: '\\u210F',\n\tHstrok: '\\u0126',\n\thstrok: '\\u0127',\n\tHumpDownHump: '\\u224E',\n\tHumpEqual: '\\u224F',\n\thybull: '\\u2043',\n\thyphen: '\\u2010',\n\tIacute: '\\u00CD',\n\tiacute: '\\u00ED',\n\tic: '\\u2063',\n\tIcirc: '\\u00CE',\n\ticirc: '\\u00EE',\n\tIcy: '\\u0418',\n\ticy: '\\u0438',\n\tIdot: '\\u0130',\n\tIEcy: '\\u0415',\n\tiecy: '\\u0435',\n\tiexcl: '\\u00A1',\n\tiff: '\\u21D4',\n\tIfr: '\\u2111',\n\tifr: '\\uD835\\uDD26',\n\tIgrave: '\\u00CC',\n\tigrave: '\\u00EC',\n\tii: '\\u2148',\n\tiiiint: '\\u2A0C',\n\tiiint: '\\u222D',\n\tiinfin: '\\u29DC',\n\tiiota: '\\u2129',\n\tIJlig: '\\u0132',\n\tijlig: '\\u0133',\n\tIm: '\\u2111',\n\tImacr: '\\u012A',\n\timacr: '\\u012B',\n\timage: '\\u2111',\n\tImaginaryI: '\\u2148',\n\timagline: '\\u2110',\n\timagpart: '\\u2111',\n\timath: '\\u0131',\n\timof: '\\u22B7',\n\timped: '\\u01B5',\n\tImplies: '\\u21D2',\n\tin: '\\u2208',\n\tincare: '\\u2105',\n\tinfin: '\\u221E',\n\tinfintie: '\\u29DD',\n\tinodot: '\\u0131',\n\tInt: '\\u222C',\n\tint: '\\u222B',\n\tintcal: '\\u22BA',\n\tintegers: '\\u2124',\n\tIntegral: '\\u222B',\n\tintercal: '\\u22BA',\n\tIntersection: '\\u22C2',\n\tintlarhk: '\\u2A17',\n\tintprod: '\\u2A3C',\n\tInvisibleComma: '\\u2063',\n\tInvisibleTimes: '\\u2062',\n\tIOcy: '\\u0401',\n\tiocy: '\\u0451',\n\tIogon: '\\u012E',\n\tiogon: '\\u012F',\n\tIopf: '\\uD835\\uDD40',\n\tiopf: '\\uD835\\uDD5A',\n\tIota: '\\u0399',\n\tiota: '\\u03B9',\n\tiprod: '\\u2A3C',\n\tiquest: '\\u00BF',\n\tIscr: '\\u2110',\n\tiscr: '\\uD835\\uDCBE',\n\tisin: '\\u2208',\n\tisindot: '\\u22F5',\n\tisinE: '\\u22F9',\n\tisins: '\\u22F4',\n\tisinsv: '\\u22F3',\n\tisinv: '\\u2208',\n\tit: '\\u2062',\n\tItilde: '\\u0128',\n\titilde: '\\u0129',\n\tIukcy: '\\u0406',\n\tiukcy: '\\u0456',\n\tIuml: '\\u00CF',\n\tiuml: '\\u00EF',\n\tJcirc: '\\u0134',\n\tjcirc: '\\u0135',\n\tJcy: '\\u0419',\n\tjcy: '\\u0439',\n\tJfr: '\\uD835\\uDD0D',\n\tjfr: '\\uD835\\uDD27',\n\tjmath: '\\u0237',\n\tJopf: '\\uD835\\uDD41',\n\tjopf: '\\uD835\\uDD5B',\n\tJscr: '\\uD835\\uDCA5',\n\tjscr: '\\uD835\\uDCBF',\n\tJsercy: '\\u0408',\n\tjsercy: '\\u0458',\n\tJukcy: '\\u0404',\n\tjukcy: '\\u0454',\n\tKappa: '\\u039A',\n\tkappa: '\\u03BA',\n\tkappav: '\\u03F0',\n\tKcedil: '\\u0136',\n\tkcedil: '\\u0137',\n\tKcy: '\\u041A',\n\tkcy: '\\u043A',\n\tKfr: '\\uD835\\uDD0E',\n\tkfr: '\\uD835\\uDD28',\n\tkgreen: '\\u0138',\n\tKHcy: '\\u0425',\n\tkhcy: '\\u0445',\n\tKJcy: '\\u040C',\n\tkjcy: '\\u045C',\n\tKopf: '\\uD835\\uDD42',\n\tkopf: '\\uD835\\uDD5C',\n\tKscr: '\\uD835\\uDCA6',\n\tkscr: '\\uD835\\uDCC0',\n\tlAarr: '\\u21DA',\n\tLacute: '\\u0139',\n\tlacute: '\\u013A',\n\tlaemptyv: '\\u29B4',\n\tlagran: '\\u2112',\n\tLambda: '\\u039B',\n\tlambda: '\\u03BB',\n\tLang: '\\u27EA',\n\tlang: '\\u27E8',\n\tlangd: '\\u2991',\n\tlangle: '\\u27E8',\n\tlap: '\\u2A85',\n\tLaplacetrf: '\\u2112',\n\tlaquo: '\\u00AB',\n\tLarr: '\\u219E',\n\tlArr: '\\u21D0',\n\tlarr: '\\u2190',\n\tlarrb: '\\u21E4',\n\tlarrbfs: '\\u291F',\n\tlarrfs: '\\u291D',\n\tlarrhk: '\\u21A9',\n\tlarrlp: '\\u21AB',\n\tlarrpl: '\\u2939',\n\tlarrsim: '\\u2973',\n\tlarrtl: '\\u21A2',\n\tlat: '\\u2AAB',\n\tlAtail: '\\u291B',\n\tlatail: '\\u2919',\n\tlate: '\\u2AAD',\n\tlates: '\\u2AAD\\uFE00',\n\tlBarr: '\\u290E',\n\tlbarr: '\\u290C',\n\tlbbrk: '\\u2772',\n\tlbrace: '\\u007B',\n\tlbrack: '\\u005B',\n\tlbrke: '\\u298B',\n\tlbrksld: '\\u298F',\n\tlbrkslu: '\\u298D',\n\tLcaron: '\\u013D',\n\tlcaron: '\\u013E',\n\tLcedil: '\\u013B',\n\tlcedil: '\\u013C',\n\tlceil: '\\u2308',\n\tlcub: '\\u007B',\n\tLcy: '\\u041B',\n\tlcy: '\\u043B',\n\tldca: '\\u2936',\n\tldquo: '\\u201C',\n\tldquor: '\\u201E',\n\tldrdhar: '\\u2967',\n\tldrushar: '\\u294B',\n\tldsh: '\\u21B2',\n\tlE: '\\u2266',\n\tle: '\\u2264',\n\tLeftAngleBracket: '\\u27E8',\n\tLeftArrow: '\\u2190',\n\tLeftarrow: '\\u21D0',\n\tleftarrow: '\\u2190',\n\tLeftArrowBar: '\\u21E4',\n\tLeftArrowRightArrow: '\\u21C6',\n\tleftarrowtail: '\\u21A2',\n\tLeftCeiling: '\\u2308',\n\tLeftDoubleBracket: '\\u27E6',\n\tLeftDownTeeVector: '\\u2961',\n\tLeftDownVector: '\\u21C3',\n\tLeftDownVectorBar: '\\u2959',\n\tLeftFloor: '\\u230A',\n\tleftharpoondown: '\\u21BD',\n\tleftharpoonup: '\\u21BC',\n\tleftleftarrows: '\\u21C7',\n\tLeftRightArrow: '\\u2194',\n\tLeftrightarrow: '\\u21D4',\n\tleftrightarrow: '\\u2194',\n\tleftrightarrows: '\\u21C6',\n\tleftrightharpoons: '\\u21CB',\n\tleftrightsquigarrow: '\\u21AD',\n\tLeftRightVector: '\\u294E',\n\tLeftTee: '\\u22A3',\n\tLeftTeeArrow: '\\u21A4',\n\tLeftTeeVector: '\\u295A',\n\tleftthreetimes: '\\u22CB',\n\tLeftTriangle: '\\u22B2',\n\tLeftTriangleBar: '\\u29CF',\n\tLeftTriangleEqual: '\\u22B4',\n\tLeftUpDownVector: '\\u2951',\n\tLeftUpTeeVector: '\\u2960',\n\tLeftUpVector: '\\u21BF',\n\tLeftUpVectorBar: '\\u2958',\n\tLeftVector: '\\u21BC',\n\tLeftVectorBar: '\\u2952',\n\tlEg: '\\u2A8B',\n\tleg: '\\u22DA',\n\tleq: '\\u2264',\n\tleqq: '\\u2266',\n\tleqslant: '\\u2A7D',\n\tles: '\\u2A7D',\n\tlescc: '\\u2AA8',\n\tlesdot: '\\u2A7F',\n\tlesdoto: '\\u2A81',\n\tlesdotor: '\\u2A83',\n\tlesg: '\\u22DA\\uFE00',\n\tlesges: '\\u2A93',\n\tlessapprox: '\\u2A85',\n\tlessdot: '\\u22D6',\n\tlesseqgtr: '\\u22DA',\n\tlesseqqgtr: '\\u2A8B',\n\tLessEqualGreater: '\\u22DA',\n\tLessFullEqual: '\\u2266',\n\tLessGreater: '\\u2276',\n\tlessgtr: '\\u2276',\n\tLessLess: '\\u2AA1',\n\tlesssim: '\\u2272',\n\tLessSlantEqual: '\\u2A7D',\n\tLessTilde: '\\u2272',\n\tlfisht: '\\u297C',\n\tlfloor: '\\u230A',\n\tLfr: '\\uD835\\uDD0F',\n\tlfr: '\\uD835\\uDD29',\n\tlg: '\\u2276',\n\tlgE: '\\u2A91',\n\tlHar: '\\u2962',\n\tlhard: '\\u21BD',\n\tlharu: '\\u21BC',\n\tlharul: '\\u296A',\n\tlhblk: '\\u2584',\n\tLJcy: '\\u0409',\n\tljcy: '\\u0459',\n\tLl: '\\u22D8',\n\tll: '\\u226A',\n\tllarr: '\\u21C7',\n\tllcorner: '\\u231E',\n\tLleftarrow: '\\u21DA',\n\tllhard: '\\u296B',\n\tlltri: '\\u25FA',\n\tLmidot: '\\u013F',\n\tlmidot: '\\u0140',\n\tlmoust: '\\u23B0',\n\tlmoustache: '\\u23B0',\n\tlnap: '\\u2A89',\n\tlnapprox: '\\u2A89',\n\tlnE: '\\u2268',\n\tlne: '\\u2A87',\n\tlneq: '\\u2A87',\n\tlneqq: '\\u2268',\n\tlnsim: '\\u22E6',\n\tloang: '\\u27EC',\n\tloarr: '\\u21FD',\n\tlobrk: '\\u27E6',\n\tLongLeftArrow: '\\u27F5',\n\tLongleftarrow: '\\u27F8',\n\tlongleftarrow: '\\u27F5',\n\tLongLeftRightArrow: '\\u27F7',\n\tLongleftrightarrow: '\\u27FA',\n\tlongleftrightarrow: '\\u27F7',\n\tlongmapsto: '\\u27FC',\n\tLongRightArrow: '\\u27F6',\n\tLongrightarrow: '\\u27F9',\n\tlongrightarrow: '\\u27F6',\n\tlooparrowleft: '\\u21AB',\n\tlooparrowright: '\\u21AC',\n\tlopar: '\\u2985',\n\tLopf: '\\uD835\\uDD43',\n\tlopf: '\\uD835\\uDD5D',\n\tloplus: '\\u2A2D',\n\tlotimes: '\\u2A34',\n\tlowast: '\\u2217',\n\tlowbar: '\\u005F',\n\tLowerLeftArrow: '\\u2199',\n\tLowerRightArrow: '\\u2198',\n\tloz: '\\u25CA',\n\tlozenge: '\\u25CA',\n\tlozf: '\\u29EB',\n\tlpar: '\\u0028',\n\tlparlt: '\\u2993',\n\tlrarr: '\\u21C6',\n\tlrcorner: '\\u231F',\n\tlrhar: '\\u21CB',\n\tlrhard: '\\u296D',\n\tlrm: '\\u200E',\n\tlrtri: '\\u22BF',\n\tlsaquo: '\\u2039',\n\tLscr: '\\u2112',\n\tlscr: '\\uD835\\uDCC1',\n\tLsh: '\\u21B0',\n\tlsh: '\\u21B0',\n\tlsim: '\\u2272',\n\tlsime: '\\u2A8D',\n\tlsimg: '\\u2A8F',\n\tlsqb: '\\u005B',\n\tlsquo: '\\u2018',\n\tlsquor: '\\u201A',\n\tLstrok: '\\u0141',\n\tlstrok: '\\u0142',\n\tLt: '\\u226A',\n\tLT: '\\u003C',\n\tlt: '\\u003C',\n\tltcc: '\\u2AA6',\n\tltcir: '\\u2A79',\n\tltdot: '\\u22D6',\n\tlthree: '\\u22CB',\n\tltimes: '\\u22C9',\n\tltlarr: '\\u2976',\n\tltquest: '\\u2A7B',\n\tltri: '\\u25C3',\n\tltrie: '\\u22B4',\n\tltrif: '\\u25C2',\n\tltrPar: '\\u2996',\n\tlurdshar: '\\u294A',\n\tluruhar: '\\u2966',\n\tlvertneqq: '\\u2268\\uFE00',\n\tlvnE: '\\u2268\\uFE00',\n\tmacr: '\\u00AF',\n\tmale: '\\u2642',\n\tmalt: '\\u2720',\n\tmaltese: '\\u2720',\n\tMap: '\\u2905',\n\tmap: '\\u21A6',\n\tmapsto: '\\u21A6',\n\tmapstodown: '\\u21A7',\n\tmapstoleft: '\\u21A4',\n\tmapstoup: '\\u21A5',\n\tmarker: '\\u25AE',\n\tmcomma: '\\u2A29',\n\tMcy: '\\u041C',\n\tmcy: '\\u043C',\n\tmdash: '\\u2014',\n\tmDDot: '\\u223A',\n\tmeasuredangle: '\\u2221',\n\tMediumSpace: '\\u205F',\n\tMellintrf: '\\u2133',\n\tMfr: '\\uD835\\uDD10',\n\tmfr: '\\uD835\\uDD2A',\n\tmho: '\\u2127',\n\tmicro: '\\u00B5',\n\tmid: '\\u2223',\n\tmidast: '\\u002A',\n\tmidcir: '\\u2AF0',\n\tmiddot: '\\u00B7',\n\tminus: '\\u2212',\n\tminusb: '\\u229F',\n\tminusd: '\\u2238',\n\tminusdu: '\\u2A2A',\n\tMinusPlus: '\\u2213',\n\tmlcp: '\\u2ADB',\n\tmldr: '\\u2026',\n\tmnplus: '\\u2213',\n\tmodels: '\\u22A7',\n\tMopf: '\\uD835\\uDD44',\n\tmopf: '\\uD835\\uDD5E',\n\tmp: '\\u2213',\n\tMscr: '\\u2133',\n\tmscr: '\\uD835\\uDCC2',\n\tmstpos: '\\u223E',\n\tMu: '\\u039C',\n\tmu: '\\u03BC',\n\tmultimap: '\\u22B8',\n\tmumap: '\\u22B8',\n\tnabla: '\\u2207',\n\tNacute: '\\u0143',\n\tnacute: '\\u0144',\n\tnang: '\\u2220\\u20D2',\n\tnap: '\\u2249',\n\tnapE: '\\u2A70\\u0338',\n\tnapid: '\\u224B\\u0338',\n\tnapos: '\\u0149',\n\tnapprox: '\\u2249',\n\tnatur: '\\u266E',\n\tnatural: '\\u266E',\n\tnaturals: '\\u2115',\n\tnbsp: '\\u00A0',\n\tnbump: '\\u224E\\u0338',\n\tnbumpe: '\\u224F\\u0338',\n\tncap: '\\u2A43',\n\tNcaron: '\\u0147',\n\tncaron: '\\u0148',\n\tNcedil: '\\u0145',\n\tncedil: '\\u0146',\n\tncong: '\\u2247',\n\tncongdot: '\\u2A6D\\u0338',\n\tncup: '\\u2A42',\n\tNcy: '\\u041D',\n\tncy: '\\u043D',\n\tndash: '\\u2013',\n\tne: '\\u2260',\n\tnearhk: '\\u2924',\n\tneArr: '\\u21D7',\n\tnearr: '\\u2197',\n\tnearrow: '\\u2197',\n\tnedot: '\\u2250\\u0338',\n\tNegativeMediumSpace: '\\u200B',\n\tNegativeThickSpace: '\\u200B',\n\tNegativeThinSpace: '\\u200B',\n\tNegativeVeryThinSpace: '\\u200B',\n\tnequiv: '\\u2262',\n\tnesear: '\\u2928',\n\tnesim: '\\u2242\\u0338',\n\tNestedGreaterGreater: '\\u226B',\n\tNestedLessLess: '\\u226A',\n\tNewLine: '\\u000A',\n\tnexist: '\\u2204',\n\tnexists: '\\u2204',\n\tNfr: '\\uD835\\uDD11',\n\tnfr: '\\uD835\\uDD2B',\n\tngE: '\\u2267\\u0338',\n\tnge: '\\u2271',\n\tngeq: '\\u2271',\n\tngeqq: '\\u2267\\u0338',\n\tngeqslant: '\\u2A7E\\u0338',\n\tnges: '\\u2A7E\\u0338',\n\tnGg: '\\u22D9\\u0338',\n\tngsim: '\\u2275',\n\tnGt: '\\u226B\\u20D2',\n\tngt: '\\u226F',\n\tngtr: '\\u226F',\n\tnGtv: '\\u226B\\u0338',\n\tnhArr: '\\u21CE',\n\tnharr: '\\u21AE',\n\tnhpar: '\\u2AF2',\n\tni: '\\u220B',\n\tnis: '\\u22FC',\n\tnisd: '\\u22FA',\n\tniv: '\\u220B',\n\tNJcy: '\\u040A',\n\tnjcy: '\\u045A',\n\tnlArr: '\\u21CD',\n\tnlarr: '\\u219A',\n\tnldr: '\\u2025',\n\tnlE: '\\u2266\\u0338',\n\tnle: '\\u2270',\n\tnLeftarrow: '\\u21CD',\n\tnleftarrow: '\\u219A',\n\tnLeftrightarrow: '\\u21CE',\n\tnleftrightarrow: '\\u21AE',\n\tnleq: '\\u2270',\n\tnleqq: '\\u2266\\u0338',\n\tnleqslant: '\\u2A7D\\u0338',\n\tnles: '\\u2A7D\\u0338',\n\tnless: '\\u226E',\n\tnLl: '\\u22D8\\u0338',\n\tnlsim: '\\u2274',\n\tnLt: '\\u226A\\u20D2',\n\tnlt: '\\u226E',\n\tnltri: '\\u22EA',\n\tnltrie: '\\u22EC',\n\tnLtv: '\\u226A\\u0338',\n\tnmid: '\\u2224',\n\tNoBreak: '\\u2060',\n\tNonBreakingSpace: '\\u00A0',\n\tNopf: '\\u2115',\n\tnopf: '\\uD835\\uDD5F',\n\tNot: '\\u2AEC',\n\tnot: '\\u00AC',\n\tNotCongruent: '\\u2262',\n\tNotCupCap: '\\u226D',\n\tNotDoubleVerticalBar: '\\u2226',\n\tNotElement: '\\u2209',\n\tNotEqual: '\\u2260',\n\tNotEqualTilde: '\\u2242\\u0338',\n\tNotExists: '\\u2204',\n\tNotGreater: '\\u226F',\n\tNotGreaterEqual: '\\u2271',\n\tNotGreaterFullEqual: '\\u2267\\u0338',\n\tNotGreaterGreater: '\\u226B\\u0338',\n\tNotGreaterLess: '\\u2279',\n\tNotGreaterSlantEqual: '\\u2A7E\\u0338',\n\tNotGreaterTilde: '\\u2275',\n\tNotHumpDownHump: '\\u224E\\u0338',\n\tNotHumpEqual: '\\u224F\\u0338',\n\tnotin: '\\u2209',\n\tnotindot: '\\u22F5\\u0338',\n\tnotinE: '\\u22F9\\u0338',\n\tnotinva: '\\u2209',\n\tnotinvb: '\\u22F7',\n\tnotinvc: '\\u22F6',\n\tNotLeftTriangle: '\\u22EA',\n\tNotLeftTriangleBar: '\\u29CF\\u0338',\n\tNotLeftTriangleEqual: '\\u22EC',\n\tNotLess: '\\u226E',\n\tNotLessEqual: '\\u2270',\n\tNotLessGreater: '\\u2278',\n\tNotLessLess: '\\u226A\\u0338',\n\tNotLessSlantEqual: '\\u2A7D\\u0338',\n\tNotLessTilde: '\\u2274',\n\tNotNestedGreaterGreater: '\\u2AA2\\u0338',\n\tNotNestedLessLess: '\\u2AA1\\u0338',\n\tnotni: '\\u220C',\n\tnotniva: '\\u220C',\n\tnotnivb: '\\u22FE',\n\tnotnivc: '\\u22FD',\n\tNotPrecedes: '\\u2280',\n\tNotPrecedesEqual: '\\u2AAF\\u0338',\n\tNotPrecedesSlantEqual: '\\u22E0',\n\tNotReverseElement: '\\u220C',\n\tNotRightTriangle: '\\u22EB',\n\tNotRightTriangleBar: '\\u29D0\\u0338',\n\tNotRightTriangleEqual: '\\u22ED',\n\tNotSquareSubset: '\\u228F\\u0338',\n\tNotSquareSubsetEqual: '\\u22E2',\n\tNotSquareSuperset: '\\u2290\\u0338',\n\tNotSquareSupersetEqual: '\\u22E3',\n\tNotSubset: '\\u2282\\u20D2',\n\tNotSubsetEqual: '\\u2288',\n\tNotSucceeds: '\\u2281',\n\tNotSucceedsEqual: '\\u2AB0\\u0338',\n\tNotSucceedsSlantEqual: '\\u22E1',\n\tNotSucceedsTilde: '\\u227F\\u0338',\n\tNotSuperset: '\\u2283\\u20D2',\n\tNotSupersetEqual: '\\u2289',\n\tNotTilde: '\\u2241',\n\tNotTildeEqual: '\\u2244',\n\tNotTildeFullEqual: '\\u2247',\n\tNotTildeTilde: '\\u2249',\n\tNotVerticalBar: '\\u2224',\n\tnpar: '\\u2226',\n\tnparallel: '\\u2226',\n\tnparsl: '\\u2AFD\\u20E5',\n\tnpart: '\\u2202\\u0338',\n\tnpolint: '\\u2A14',\n\tnpr: '\\u2280',\n\tnprcue: '\\u22E0',\n\tnpre: '\\u2AAF\\u0338',\n\tnprec: '\\u2280',\n\tnpreceq: '\\u2AAF\\u0338',\n\tnrArr: '\\u21CF',\n\tnrarr: '\\u219B',\n\tnrarrc: '\\u2933\\u0338',\n\tnrarrw: '\\u219D\\u0338',\n\tnRightarrow: '\\u21CF',\n\tnrightarrow: '\\u219B',\n\tnrtri: '\\u22EB',\n\tnrtrie: '\\u22ED',\n\tnsc: '\\u2281',\n\tnsccue: '\\u22E1',\n\tnsce: '\\u2AB0\\u0338',\n\tNscr: '\\uD835\\uDCA9',\n\tnscr: '\\uD835\\uDCC3',\n\tnshortmid: '\\u2224',\n\tnshortparallel: '\\u2226',\n\tnsim: '\\u2241',\n\tnsime: '\\u2244',\n\tnsimeq: '\\u2244',\n\tnsmid: '\\u2224',\n\tnspar: '\\u2226',\n\tnsqsube: '\\u22E2',\n\tnsqsupe: '\\u22E3',\n\tnsub: '\\u2284',\n\tnsubE: '\\u2AC5\\u0338',\n\tnsube: '\\u2288',\n\tnsubset: '\\u2282\\u20D2',\n\tnsubseteq: '\\u2288',\n\tnsubseteqq: '\\u2AC5\\u0338',\n\tnsucc: '\\u2281',\n\tnsucceq: '\\u2AB0\\u0338',\n\tnsup: '\\u2285',\n\tnsupE: '\\u2AC6\\u0338',\n\tnsupe: '\\u2289',\n\tnsupset: '\\u2283\\u20D2',\n\tnsupseteq: '\\u2289',\n\tnsupseteqq: '\\u2AC6\\u0338',\n\tntgl: '\\u2279',\n\tNtilde: '\\u00D1',\n\tntilde: '\\u00F1',\n\tntlg: '\\u2278',\n\tntriangleleft: '\\u22EA',\n\tntrianglelefteq: '\\u22EC',\n\tntriangleright: '\\u22EB',\n\tntrianglerighteq: '\\u22ED',\n\tNu: '\\u039D',\n\tnu: '\\u03BD',\n\tnum: '\\u0023',\n\tnumero: '\\u2116',\n\tnumsp: '\\u2007',\n\tnvap: '\\u224D\\u20D2',\n\tnVDash: '\\u22AF',\n\tnVdash: '\\u22AE',\n\tnvDash: '\\u22AD',\n\tnvdash: '\\u22AC',\n\tnvge: '\\u2265\\u20D2',\n\tnvgt: '\\u003E\\u20D2',\n\tnvHarr: '\\u2904',\n\tnvinfin: '\\u29DE',\n\tnvlArr: '\\u2902',\n\tnvle: '\\u2264\\u20D2',\n\tnvlt: '\\u003C\\u20D2',\n\tnvltrie: '\\u22B4\\u20D2',\n\tnvrArr: '\\u2903',\n\tnvrtrie: '\\u22B5\\u20D2',\n\tnvsim: '\\u223C\\u20D2',\n\tnwarhk: '\\u2923',\n\tnwArr: '\\u21D6',\n\tnwarr: '\\u2196',\n\tnwarrow: '\\u2196',\n\tnwnear: '\\u2927',\n\tOacute: '\\u00D3',\n\toacute: '\\u00F3',\n\toast: '\\u229B',\n\tocir: '\\u229A',\n\tOcirc: '\\u00D4',\n\tocirc: '\\u00F4',\n\tOcy: '\\u041E',\n\tocy: '\\u043E',\n\todash: '\\u229D',\n\tOdblac: '\\u0150',\n\todblac: '\\u0151',\n\todiv: '\\u2A38',\n\todot: '\\u2299',\n\todsold: '\\u29BC',\n\tOElig: '\\u0152',\n\toelig: '\\u0153',\n\tofcir: '\\u29BF',\n\tOfr: '\\uD835\\uDD12',\n\tofr: '\\uD835\\uDD2C',\n\togon: '\\u02DB',\n\tOgrave: '\\u00D2',\n\tograve: '\\u00F2',\n\togt: '\\u29C1',\n\tohbar: '\\u29B5',\n\tohm: '\\u03A9',\n\toint: '\\u222E',\n\tolarr: '\\u21BA',\n\tolcir: '\\u29BE',\n\tolcross: '\\u29BB',\n\toline: '\\u203E',\n\tolt: '\\u29C0',\n\tOmacr: '\\u014C',\n\tomacr: '\\u014D',\n\tOmega: '\\u03A9',\n\tomega: '\\u03C9',\n\tOmicron: '\\u039F',\n\tomicron: '\\u03BF',\n\tomid: '\\u29B6',\n\tominus: '\\u2296',\n\tOopf: '\\uD835\\uDD46',\n\toopf: '\\uD835\\uDD60',\n\topar: '\\u29B7',\n\tOpenCurlyDoubleQuote: '\\u201C',\n\tOpenCurlyQuote: '\\u2018',\n\toperp: '\\u29B9',\n\toplus: '\\u2295',\n\tOr: '\\u2A54',\n\tor: '\\u2228',\n\torarr: '\\u21BB',\n\tord: '\\u2A5D',\n\torder: '\\u2134',\n\torderof: '\\u2134',\n\tordf: '\\u00AA',\n\tordm: '\\u00BA',\n\torigof: '\\u22B6',\n\toror: '\\u2A56',\n\torslope: '\\u2A57',\n\torv: '\\u2A5B',\n\toS: '\\u24C8',\n\tOscr: '\\uD835\\uDCAA',\n\toscr: '\\u2134',\n\tOslash: '\\u00D8',\n\toslash: '\\u00F8',\n\tosol: '\\u2298',\n\tOtilde: '\\u00D5',\n\totilde: '\\u00F5',\n\tOtimes: '\\u2A37',\n\totimes: '\\u2297',\n\totimesas: '\\u2A36',\n\tOuml: '\\u00D6',\n\touml: '\\u00F6',\n\tovbar: '\\u233D',\n\tOverBar: '\\u203E',\n\tOverBrace: '\\u23DE',\n\tOverBracket: '\\u23B4',\n\tOverParenthesis: '\\u23DC',\n\tpar: '\\u2225',\n\tpara: '\\u00B6',\n\tparallel: '\\u2225',\n\tparsim: '\\u2AF3',\n\tparsl: '\\u2AFD',\n\tpart: '\\u2202',\n\tPartialD: '\\u2202',\n\tPcy: '\\u041F',\n\tpcy: '\\u043F',\n\tpercnt: '\\u0025',\n\tperiod: '\\u002E',\n\tpermil: '\\u2030',\n\tperp: '\\u22A5',\n\tpertenk: '\\u2031',\n\tPfr: '\\uD835\\uDD13',\n\tpfr: '\\uD835\\uDD2D',\n\tPhi: '\\u03A6',\n\tphi: '\\u03C6',\n\tphiv: '\\u03D5',\n\tphmmat: '\\u2133',\n\tphone: '\\u260E',\n\tPi: '\\u03A0',\n\tpi: '\\u03C0',\n\tpitchfork: '\\u22D4',\n\tpiv: '\\u03D6',\n\tplanck: '\\u210F',\n\tplanckh: '\\u210E',\n\tplankv: '\\u210F',\n\tplus: '\\u002B',\n\tplusacir: '\\u2A23',\n\tplusb: '\\u229E',\n\tpluscir: '\\u2A22',\n\tplusdo: '\\u2214',\n\tplusdu: '\\u2A25',\n\tpluse: '\\u2A72',\n\tPlusMinus: '\\u00B1',\n\tplusmn: '\\u00B1',\n\tplussim: '\\u2A26',\n\tplustwo: '\\u2A27',\n\tpm: '\\u00B1',\n\tPoincareplane: '\\u210C',\n\tpointint: '\\u2A15',\n\tPopf: '\\u2119',\n\tpopf: '\\uD835\\uDD61',\n\tpound: '\\u00A3',\n\tPr: '\\u2ABB',\n\tpr: '\\u227A',\n\tprap: '\\u2AB7',\n\tprcue: '\\u227C',\n\tprE: '\\u2AB3',\n\tpre: '\\u2AAF',\n\tprec: '\\u227A',\n\tprecapprox: '\\u2AB7',\n\tpreccurlyeq: '\\u227C',\n\tPrecedes: '\\u227A',\n\tPrecedesEqual: '\\u2AAF',\n\tPrecedesSlantEqual: '\\u227C',\n\tPrecedesTilde: '\\u227E',\n\tpreceq: '\\u2AAF',\n\tprecnapprox: '\\u2AB9',\n\tprecneqq: '\\u2AB5',\n\tprecnsim: '\\u22E8',\n\tprecsim: '\\u227E',\n\tPrime: '\\u2033',\n\tprime: '\\u2032',\n\tprimes: '\\u2119',\n\tprnap: '\\u2AB9',\n\tprnE: '\\u2AB5',\n\tprnsim: '\\u22E8',\n\tprod: '\\u220F',\n\tProduct: '\\u220F',\n\tprofalar: '\\u232E',\n\tprofline: '\\u2312',\n\tprofsurf: '\\u2313',\n\tprop: '\\u221D',\n\tProportion: '\\u2237',\n\tProportional: '\\u221D',\n\tpropto: '\\u221D',\n\tprsim: '\\u227E',\n\tprurel: '\\u22B0',\n\tPscr: '\\uD835\\uDCAB',\n\tpscr: '\\uD835\\uDCC5',\n\tPsi: '\\u03A8',\n\tpsi: '\\u03C8',\n\tpuncsp: '\\u2008',\n\tQfr: '\\uD835\\uDD14',\n\tqfr: '\\uD835\\uDD2E',\n\tqint: '\\u2A0C',\n\tQopf: '\\u211A',\n\tqopf: '\\uD835\\uDD62',\n\tqprime: '\\u2057',\n\tQscr: '\\uD835\\uDCAC',\n\tqscr: '\\uD835\\uDCC6',\n\tquaternions: '\\u210D',\n\tquatint: '\\u2A16',\n\tquest: '\\u003F',\n\tquesteq: '\\u225F',\n\tQUOT: '\\u0022',\n\tquot: '\\u0022',\n\trAarr: '\\u21DB',\n\trace: '\\u223D\\u0331',\n\tRacute: '\\u0154',\n\tracute: '\\u0155',\n\tradic: '\\u221A',\n\traemptyv: '\\u29B3',\n\tRang: '\\u27EB',\n\trang: '\\u27E9',\n\trangd: '\\u2992',\n\trange: '\\u29A5',\n\trangle: '\\u27E9',\n\traquo: '\\u00BB',\n\tRarr: '\\u21A0',\n\trArr: '\\u21D2',\n\trarr: '\\u2192',\n\trarrap: '\\u2975',\n\trarrb: '\\u21E5',\n\trarrbfs: '\\u2920',\n\trarrc: '\\u2933',\n\trarrfs: '\\u291E',\n\trarrhk: '\\u21AA',\n\trarrlp: '\\u21AC',\n\trarrpl: '\\u2945',\n\trarrsim: '\\u2974',\n\tRarrtl: '\\u2916',\n\trarrtl: '\\u21A3',\n\trarrw: '\\u219D',\n\trAtail: '\\u291C',\n\tratail: '\\u291A',\n\tratio: '\\u2236',\n\trationals: '\\u211A',\n\tRBarr: '\\u2910',\n\trBarr: '\\u290F',\n\trbarr: '\\u290D',\n\trbbrk: '\\u2773',\n\trbrace: '\\u007D',\n\trbrack: '\\u005D',\n\trbrke: '\\u298C',\n\trbrksld: '\\u298E',\n\trbrkslu: '\\u2990',\n\tRcaron: '\\u0158',\n\trcaron: '\\u0159',\n\tRcedil: '\\u0156',\n\trcedil: '\\u0157',\n\trceil: '\\u2309',\n\trcub: '\\u007D',\n\tRcy: '\\u0420',\n\trcy: '\\u0440',\n\trdca: '\\u2937',\n\trdldhar: '\\u2969',\n\trdquo: '\\u201D',\n\trdquor: '\\u201D',\n\trdsh: '\\u21B3',\n\tRe: '\\u211C',\n\treal: '\\u211C',\n\trealine: '\\u211B',\n\trealpart: '\\u211C',\n\treals: '\\u211D',\n\trect: '\\u25AD',\n\tREG: '\\u00AE',\n\treg: '\\u00AE',\n\tReverseElement: '\\u220B',\n\tReverseEquilibrium: '\\u21CB',\n\tReverseUpEquilibrium: '\\u296F',\n\trfisht: '\\u297D',\n\trfloor: '\\u230B',\n\tRfr: '\\u211C',\n\trfr: '\\uD835\\uDD2F',\n\trHar: '\\u2964',\n\trhard: '\\u21C1',\n\trharu: '\\u21C0',\n\trharul: '\\u296C',\n\tRho: '\\u03A1',\n\trho: '\\u03C1',\n\trhov: '\\u03F1',\n\tRightAngleBracket: '\\u27E9',\n\tRightArrow: '\\u2192',\n\tRightarrow: '\\u21D2',\n\trightarrow: '\\u2192',\n\tRightArrowBar: '\\u21E5',\n\tRightArrowLeftArrow: '\\u21C4',\n\trightarrowtail: '\\u21A3',\n\tRightCeiling: '\\u2309',\n\tRightDoubleBracket: '\\u27E7',\n\tRightDownTeeVector: '\\u295D',\n\tRightDownVector: '\\u21C2',\n\tRightDownVectorBar: '\\u2955',\n\tRightFloor: '\\u230B',\n\trightharpoondown: '\\u21C1',\n\trightharpoonup: '\\u21C0',\n\trightleftarrows: '\\u21C4',\n\trightleftharpoons: '\\u21CC',\n\trightrightarrows: '\\u21C9',\n\trightsquigarrow: '\\u219D',\n\tRightTee: '\\u22A2',\n\tRightTeeArrow: '\\u21A6',\n\tRightTeeVector: '\\u295B',\n\trightthreetimes: '\\u22CC',\n\tRightTriangle: '\\u22B3',\n\tRightTriangleBar: '\\u29D0',\n\tRightTriangleEqual: '\\u22B5',\n\tRightUpDownVector: '\\u294F',\n\tRightUpTeeVector: '\\u295C',\n\tRightUpVector: '\\u21BE',\n\tRightUpVectorBar: '\\u2954',\n\tRightVector: '\\u21C0',\n\tRightVectorBar: '\\u2953',\n\tring: '\\u02DA',\n\trisingdotseq: '\\u2253',\n\trlarr: '\\u21C4',\n\trlhar: '\\u21CC',\n\trlm: '\\u200F',\n\trmoust: '\\u23B1',\n\trmoustache: '\\u23B1',\n\trnmid: '\\u2AEE',\n\troang: '\\u27ED',\n\troarr: '\\u21FE',\n\trobrk: '\\u27E7',\n\tropar: '\\u2986',\n\tRopf: '\\u211D',\n\tropf: '\\uD835\\uDD63',\n\troplus: '\\u2A2E',\n\trotimes: '\\u2A35',\n\tRoundImplies: '\\u2970',\n\trpar: '\\u0029',\n\trpargt: '\\u2994',\n\trppolint: '\\u2A12',\n\trrarr: '\\u21C9',\n\tRrightarrow: '\\u21DB',\n\trsaquo: '\\u203A',\n\tRscr: '\\u211B',\n\trscr: '\\uD835\\uDCC7',\n\tRsh: '\\u21B1',\n\trsh: '\\u21B1',\n\trsqb: '\\u005D',\n\trsquo: '\\u2019',\n\trsquor: '\\u2019',\n\trthree: '\\u22CC',\n\trtimes: '\\u22CA',\n\trtri: '\\u25B9',\n\trtrie: '\\u22B5',\n\trtrif: '\\u25B8',\n\trtriltri: '\\u29CE',\n\tRuleDelayed: '\\u29F4',\n\truluhar: '\\u2968',\n\trx: '\\u211E',\n\tSacute: '\\u015A',\n\tsacute: '\\u015B',\n\tsbquo: '\\u201A',\n\tSc: '\\u2ABC',\n\tsc: '\\u227B',\n\tscap: '\\u2AB8',\n\tScaron: '\\u0160',\n\tscaron: '\\u0161',\n\tsccue: '\\u227D',\n\tscE: '\\u2AB4',\n\tsce: '\\u2AB0',\n\tScedil: '\\u015E',\n\tscedil: '\\u015F',\n\tScirc: '\\u015C',\n\tscirc: '\\u015D',\n\tscnap: '\\u2ABA',\n\tscnE: '\\u2AB6',\n\tscnsim: '\\u22E9',\n\tscpolint: '\\u2A13',\n\tscsim: '\\u227F',\n\tScy: '\\u0421',\n\tscy: '\\u0441',\n\tsdot: '\\u22C5',\n\tsdotb: '\\u22A1',\n\tsdote: '\\u2A66',\n\tsearhk: '\\u2925',\n\tseArr: '\\u21D8',\n\tsearr: '\\u2198',\n\tsearrow: '\\u2198',\n\tsect: '\\u00A7',\n\tsemi: '\\u003B',\n\tseswar: '\\u2929',\n\tsetminus: '\\u2216',\n\tsetmn: '\\u2216',\n\tsext: '\\u2736',\n\tSfr: '\\uD835\\uDD16',\n\tsfr: '\\uD835\\uDD30',\n\tsfrown: '\\u2322',\n\tsharp: '\\u266F',\n\tSHCHcy: '\\u0429',\n\tshchcy: '\\u0449',\n\tSHcy: '\\u0428',\n\tshcy: '\\u0448',\n\tShortDownArrow: '\\u2193',\n\tShortLeftArrow: '\\u2190',\n\tshortmid: '\\u2223',\n\tshortparallel: '\\u2225',\n\tShortRightArrow: '\\u2192',\n\tShortUpArrow: '\\u2191',\n\tshy: '\\u00AD',\n\tSigma: '\\u03A3',\n\tsigma: '\\u03C3',\n\tsigmaf: '\\u03C2',\n\tsigmav: '\\u03C2',\n\tsim: '\\u223C',\n\tsimdot: '\\u2A6A',\n\tsime: '\\u2243',\n\tsimeq: '\\u2243',\n\tsimg: '\\u2A9E',\n\tsimgE: '\\u2AA0',\n\tsiml: '\\u2A9D',\n\tsimlE: '\\u2A9F',\n\tsimne: '\\u2246',\n\tsimplus: '\\u2A24',\n\tsimrarr: '\\u2972',\n\tslarr: '\\u2190',\n\tSmallCircle: '\\u2218',\n\tsmallsetminus: '\\u2216',\n\tsmashp: '\\u2A33',\n\tsmeparsl: '\\u29E4',\n\tsmid: '\\u2223',\n\tsmile: '\\u2323',\n\tsmt: '\\u2AAA',\n\tsmte: '\\u2AAC',\n\tsmtes: '\\u2AAC\\uFE00',\n\tSOFTcy: '\\u042C',\n\tsoftcy: '\\u044C',\n\tsol: '\\u002F',\n\tsolb: '\\u29C4',\n\tsolbar: '\\u233F',\n\tSopf: '\\uD835\\uDD4A',\n\tsopf: '\\uD835\\uDD64',\n\tspades: '\\u2660',\n\tspadesuit: '\\u2660',\n\tspar: '\\u2225',\n\tsqcap: '\\u2293',\n\tsqcaps: '\\u2293\\uFE00',\n\tsqcup: '\\u2294',\n\tsqcups: '\\u2294\\uFE00',\n\tSqrt: '\\u221A',\n\tsqsub: '\\u228F',\n\tsqsube: '\\u2291',\n\tsqsubset: '\\u228F',\n\tsqsubseteq: '\\u2291',\n\tsqsup: '\\u2290',\n\tsqsupe: '\\u2292',\n\tsqsupset: '\\u2290',\n\tsqsupseteq: '\\u2292',\n\tsqu: '\\u25A1',\n\tSquare: '\\u25A1',\n\tsquare: '\\u25A1',\n\tSquareIntersection: '\\u2293',\n\tSquareSubset: '\\u228F',\n\tSquareSubsetEqual: '\\u2291',\n\tSquareSuperset: '\\u2290',\n\tSquareSupersetEqual: '\\u2292',\n\tSquareUnion: '\\u2294',\n\tsquarf: '\\u25AA',\n\tsquf: '\\u25AA',\n\tsrarr: '\\u2192',\n\tSscr: '\\uD835\\uDCAE',\n\tsscr: '\\uD835\\uDCC8',\n\tssetmn: '\\u2216',\n\tssmile: '\\u2323',\n\tsstarf: '\\u22C6',\n\tStar: '\\u22C6',\n\tstar: '\\u2606',\n\tstarf: '\\u2605',\n\tstraightepsilon: '\\u03F5',\n\tstraightphi: '\\u03D5',\n\tstrns: '\\u00AF',\n\tSub: '\\u22D0',\n\tsub: '\\u2282',\n\tsubdot: '\\u2ABD',\n\tsubE: '\\u2AC5',\n\tsube: '\\u2286',\n\tsubedot: '\\u2AC3',\n\tsubmult: '\\u2AC1',\n\tsubnE: '\\u2ACB',\n\tsubne: '\\u228A',\n\tsubplus: '\\u2ABF',\n\tsubrarr: '\\u2979',\n\tSubset: '\\u22D0',\n\tsubset: '\\u2282',\n\tsubseteq: '\\u2286',\n\tsubseteqq: '\\u2AC5',\n\tSubsetEqual: '\\u2286',\n\tsubsetneq: '\\u228A',\n\tsubsetneqq: '\\u2ACB',\n\tsubsim: '\\u2AC7',\n\tsubsub: '\\u2AD5',\n\tsubsup: '\\u2AD3',\n\tsucc: '\\u227B',\n\tsuccapprox: '\\u2AB8',\n\tsucccurlyeq: '\\u227D',\n\tSucceeds: '\\u227B',\n\tSucceedsEqual: '\\u2AB0',\n\tSucceedsSlantEqual: '\\u227D',\n\tSucceedsTilde: '\\u227F',\n\tsucceq: '\\u2AB0',\n\tsuccnapprox: '\\u2ABA',\n\tsuccneqq: '\\u2AB6',\n\tsuccnsim: '\\u22E9',\n\tsuccsim: '\\u227F',\n\tSuchThat: '\\u220B',\n\tSum: '\\u2211',\n\tsum: '\\u2211',\n\tsung: '\\u266A',\n\tSup: '\\u22D1',\n\tsup: '\\u2283',\n\tsup1: '\\u00B9',\n\tsup2: '\\u00B2',\n\tsup3: '\\u00B3',\n\tsupdot: '\\u2ABE',\n\tsupdsub: '\\u2AD8',\n\tsupE: '\\u2AC6',\n\tsupe: '\\u2287',\n\tsupedot: '\\u2AC4',\n\tSuperset: '\\u2283',\n\tSupersetEqual: '\\u2287',\n\tsuphsol: '\\u27C9',\n\tsuphsub: '\\u2AD7',\n\tsuplarr: '\\u297B',\n\tsupmult: '\\u2AC2',\n\tsupnE: '\\u2ACC',\n\tsupne: '\\u228B',\n\tsupplus: '\\u2AC0',\n\tSupset: '\\u22D1',\n\tsupset: '\\u2283',\n\tsupseteq: '\\u2287',\n\tsupseteqq: '\\u2AC6',\n\tsupsetneq: '\\u228B',\n\tsupsetneqq: '\\u2ACC',\n\tsupsim: '\\u2AC8',\n\tsupsub: '\\u2AD4',\n\tsupsup: '\\u2AD6',\n\tswarhk: '\\u2926',\n\tswArr: '\\u21D9',\n\tswarr: '\\u2199',\n\tswarrow: '\\u2199',\n\tswnwar: '\\u292A',\n\tszlig: '\\u00DF',\n\tTab: '\\u0009',\n\ttarget: '\\u2316',\n\tTau: '\\u03A4',\n\ttau: '\\u03C4',\n\ttbrk: '\\u23B4',\n\tTcaron: '\\u0164',\n\ttcaron: '\\u0165',\n\tTcedil: '\\u0162',\n\ttcedil: '\\u0163',\n\tTcy: '\\u0422',\n\ttcy: '\\u0442',\n\ttdot: '\\u20DB',\n\ttelrec: '\\u2315',\n\tTfr: '\\uD835\\uDD17',\n\ttfr: '\\uD835\\uDD31',\n\tthere4: '\\u2234',\n\tTherefore: '\\u2234',\n\ttherefore: '\\u2234',\n\tTheta: '\\u0398',\n\ttheta: '\\u03B8',\n\tthetasym: '\\u03D1',\n\tthetav: '\\u03D1',\n\tthickapprox: '\\u2248',\n\tthicksim: '\\u223C',\n\tThickSpace: '\\u205F\\u200A',\n\tthinsp: '\\u2009',\n\tThinSpace: '\\u2009',\n\tthkap: '\\u2248',\n\tthksim: '\\u223C',\n\tTHORN: '\\u00DE',\n\tthorn: '\\u00FE',\n\tTilde: '\\u223C',\n\ttilde: '\\u02DC',\n\tTildeEqual: '\\u2243',\n\tTildeFullEqual: '\\u2245',\n\tTildeTilde: '\\u2248',\n\ttimes: '\\u00D7',\n\ttimesb: '\\u22A0',\n\ttimesbar: '\\u2A31',\n\ttimesd: '\\u2A30',\n\ttint: '\\u222D',\n\ttoea: '\\u2928',\n\ttop: '\\u22A4',\n\ttopbot: '\\u2336',\n\ttopcir: '\\u2AF1',\n\tTopf: '\\uD835\\uDD4B',\n\ttopf: '\\uD835\\uDD65',\n\ttopfork: '\\u2ADA',\n\ttosa: '\\u2929',\n\ttprime: '\\u2034',\n\tTRADE: '\\u2122',\n\ttrade: '\\u2122',\n\ttriangle: '\\u25B5',\n\ttriangledown: '\\u25BF',\n\ttriangleleft: '\\u25C3',\n\ttrianglelefteq: '\\u22B4',\n\ttriangleq: '\\u225C',\n\ttriangleright: '\\u25B9',\n\ttrianglerighteq: '\\u22B5',\n\ttridot: '\\u25EC',\n\ttrie: '\\u225C',\n\ttriminus: '\\u2A3A',\n\tTripleDot: '\\u20DB',\n\ttriplus: '\\u2A39',\n\ttrisb: '\\u29CD',\n\ttritime: '\\u2A3B',\n\ttrpezium: '\\u23E2',\n\tTscr: '\\uD835\\uDCAF',\n\ttscr: '\\uD835\\uDCC9',\n\tTScy: '\\u0426',\n\ttscy: '\\u0446',\n\tTSHcy: '\\u040B',\n\ttshcy: '\\u045B',\n\tTstrok: '\\u0166',\n\ttstrok: '\\u0167',\n\ttwixt: '\\u226C',\n\ttwoheadleftarrow: '\\u219E',\n\ttwoheadrightarrow: '\\u21A0',\n\tUacute: '\\u00DA',\n\tuacute: '\\u00FA',\n\tUarr: '\\u219F',\n\tuArr: '\\u21D1',\n\tuarr: '\\u2191',\n\tUarrocir: '\\u2949',\n\tUbrcy: '\\u040E',\n\tubrcy: '\\u045E',\n\tUbreve: '\\u016C',\n\tubreve: '\\u016D',\n\tUcirc: '\\u00DB',\n\tucirc: '\\u00FB',\n\tUcy: '\\u0423',\n\tucy: '\\u0443',\n\tudarr: '\\u21C5',\n\tUdblac: '\\u0170',\n\tudblac: '\\u0171',\n\tudhar: '\\u296E',\n\tufisht: '\\u297E',\n\tUfr: '\\uD835\\uDD18',\n\tufr: '\\uD835\\uDD32',\n\tUgrave: '\\u00D9',\n\tugrave: '\\u00F9',\n\tuHar: '\\u2963',\n\tuharl: '\\u21BF',\n\tuharr: '\\u21BE',\n\tuhblk: '\\u2580',\n\tulcorn: '\\u231C',\n\tulcorner: '\\u231C',\n\tulcrop: '\\u230F',\n\tultri: '\\u25F8',\n\tUmacr: '\\u016A',\n\tumacr: '\\u016B',\n\tuml: '\\u00A8',\n\tUnderBar: '\\u005F',\n\tUnderBrace: '\\u23DF',\n\tUnderBracket: '\\u23B5',\n\tUnderParenthesis: '\\u23DD',\n\tUnion: '\\u22C3',\n\tUnionPlus: '\\u228E',\n\tUogon: '\\u0172',\n\tuogon: '\\u0173',\n\tUopf: '\\uD835\\uDD4C',\n\tuopf: '\\uD835\\uDD66',\n\tUpArrow: '\\u2191',\n\tUparrow: '\\u21D1',\n\tuparrow: '\\u2191',\n\tUpArrowBar: '\\u2912',\n\tUpArrowDownArrow: '\\u21C5',\n\tUpDownArrow: '\\u2195',\n\tUpdownarrow: '\\u21D5',\n\tupdownarrow: '\\u2195',\n\tUpEquilibrium: '\\u296E',\n\tupharpoonleft: '\\u21BF',\n\tupharpoonright: '\\u21BE',\n\tuplus: '\\u228E',\n\tUpperLeftArrow: '\\u2196',\n\tUpperRightArrow: '\\u2197',\n\tUpsi: '\\u03D2',\n\tupsi: '\\u03C5',\n\tupsih: '\\u03D2',\n\tUpsilon: '\\u03A5',\n\tupsilon: '\\u03C5',\n\tUpTee: '\\u22A5',\n\tUpTeeArrow: '\\u21A5',\n\tupuparrows: '\\u21C8',\n\turcorn: '\\u231D',\n\turcorner: '\\u231D',\n\turcrop: '\\u230E',\n\tUring: '\\u016E',\n\turing: '\\u016F',\n\turtri: '\\u25F9',\n\tUscr: '\\uD835\\uDCB0',\n\tuscr: '\\uD835\\uDCCA',\n\tutdot: '\\u22F0',\n\tUtilde: '\\u0168',\n\tutilde: '\\u0169',\n\tutri: '\\u25B5',\n\tutrif: '\\u25B4',\n\tuuarr: '\\u21C8',\n\tUuml: '\\u00DC',\n\tuuml: '\\u00FC',\n\tuwangle: '\\u29A7',\n\tvangrt: '\\u299C',\n\tvarepsilon: '\\u03F5',\n\tvarkappa: '\\u03F0',\n\tvarnothing: '\\u2205',\n\tvarphi: '\\u03D5',\n\tvarpi: '\\u03D6',\n\tvarpropto: '\\u221D',\n\tvArr: '\\u21D5',\n\tvarr: '\\u2195',\n\tvarrho: '\\u03F1',\n\tvarsigma: '\\u03C2',\n\tvarsubsetneq: '\\u228A\\uFE00',\n\tvarsubsetneqq: '\\u2ACB\\uFE00',\n\tvarsupsetneq: '\\u228B\\uFE00',\n\tvarsupsetneqq: '\\u2ACC\\uFE00',\n\tvartheta: '\\u03D1',\n\tvartriangleleft: '\\u22B2',\n\tvartriangleright: '\\u22B3',\n\tVbar: '\\u2AEB',\n\tvBar: '\\u2AE8',\n\tvBarv: '\\u2AE9',\n\tVcy: '\\u0412',\n\tvcy: '\\u0432',\n\tVDash: '\\u22AB',\n\tVdash: '\\u22A9',\n\tvDash: '\\u22A8',\n\tvdash: '\\u22A2',\n\tVdashl: '\\u2AE6',\n\tVee: '\\u22C1',\n\tvee: '\\u2228',\n\tveebar: '\\u22BB',\n\tveeeq: '\\u225A',\n\tvellip: '\\u22EE',\n\tVerbar: '\\u2016',\n\tverbar: '\\u007C',\n\tVert: '\\u2016',\n\tvert: '\\u007C',\n\tVerticalBar: '\\u2223',\n\tVerticalLine: '\\u007C',\n\tVerticalSeparator: '\\u2758',\n\tVerticalTilde: '\\u2240',\n\tVeryThinSpace: '\\u200A',\n\tVfr: '\\uD835\\uDD19',\n\tvfr: '\\uD835\\uDD33',\n\tvltri: '\\u22B2',\n\tvnsub: '\\u2282\\u20D2',\n\tvnsup: '\\u2283\\u20D2',\n\tVopf: '\\uD835\\uDD4D',\n\tvopf: '\\uD835\\uDD67',\n\tvprop: '\\u221D',\n\tvrtri: '\\u22B3',\n\tVscr: '\\uD835\\uDCB1',\n\tvscr: '\\uD835\\uDCCB',\n\tvsubnE: '\\u2ACB\\uFE00',\n\tvsubne: '\\u228A\\uFE00',\n\tvsupnE: '\\u2ACC\\uFE00',\n\tvsupne: '\\u228B\\uFE00',\n\tVvdash: '\\u22AA',\n\tvzigzag: '\\u299A',\n\tWcirc: '\\u0174',\n\twcirc: '\\u0175',\n\twedbar: '\\u2A5F',\n\tWedge: '\\u22C0',\n\twedge: '\\u2227',\n\twedgeq: '\\u2259',\n\tweierp: '\\u2118',\n\tWfr: '\\uD835\\uDD1A',\n\twfr: '\\uD835\\uDD34',\n\tWopf: '\\uD835\\uDD4E',\n\twopf: '\\uD835\\uDD68',\n\twp: '\\u2118',\n\twr: '\\u2240',\n\twreath: '\\u2240',\n\tWscr: '\\uD835\\uDCB2',\n\twscr: '\\uD835\\uDCCC',\n\txcap: '\\u22C2',\n\txcirc: '\\u25EF',\n\txcup: '\\u22C3',\n\txdtri: '\\u25BD',\n\tXfr: '\\uD835\\uDD1B',\n\txfr: '\\uD835\\uDD35',\n\txhArr: '\\u27FA',\n\txharr: '\\u27F7',\n\tXi: '\\u039E',\n\txi: '\\u03BE',\n\txlArr: '\\u27F8',\n\txlarr: '\\u27F5',\n\txmap: '\\u27FC',\n\txnis: '\\u22FB',\n\txodot: '\\u2A00',\n\tXopf: '\\uD835\\uDD4F',\n\txopf: '\\uD835\\uDD69',\n\txoplus: '\\u2A01',\n\txotime: '\\u2A02',\n\txrArr: '\\u27F9',\n\txrarr: '\\u27F6',\n\tXscr: '\\uD835\\uDCB3',\n\txscr: '\\uD835\\uDCCD',\n\txsqcup: '\\u2A06',\n\txuplus: '\\u2A04',\n\txutri: '\\u25B3',\n\txvee: '\\u22C1',\n\txwedge: '\\u22C0',\n\tYacute: '\\u00DD',\n\tyacute: '\\u00FD',\n\tYAcy: '\\u042F',\n\tyacy: '\\u044F',\n\tYcirc: '\\u0176',\n\tycirc: '\\u0177',\n\tYcy: '\\u042B',\n\tycy: '\\u044B',\n\tyen: '\\u00A5',\n\tYfr: '\\uD835\\uDD1C',\n\tyfr: '\\uD835\\uDD36',\n\tYIcy: '\\u0407',\n\tyicy: '\\u0457',\n\tYopf: '\\uD835\\uDD50',\n\tyopf: '\\uD835\\uDD6A',\n\tYscr: '\\uD835\\uDCB4',\n\tyscr: '\\uD835\\uDCCE',\n\tYUcy: '\\u042E',\n\tyucy: '\\u044E',\n\tYuml: '\\u0178',\n\tyuml: '\\u00FF',\n\tZacute: '\\u0179',\n\tzacute: '\\u017A',\n\tZcaron: '\\u017D',\n\tzcaron: '\\u017E',\n\tZcy: '\\u0417',\n\tzcy: '\\u0437',\n\tZdot: '\\u017B',\n\tzdot: '\\u017C',\n\tzeetrf: '\\u2128',\n\tZeroWidthSpace: '\\u200B',\n\tZeta: '\\u0396',\n\tzeta: '\\u03B6',\n\tZfr: '\\u2128',\n\tzfr: '\\uD835\\uDD37',\n\tZHcy: '\\u0416',\n\tzhcy: '\\u0436',\n\tzigrarr: '\\u21DD',\n\tZopf: '\\u2124',\n\tzopf: '\\uD835\\uDD6B',\n\tZscr: '\\uD835\\uDCB5',\n\tzscr: '\\uD835\\uDCCF',\n\tzwj: '\\u200D',\n\tzwnj: '\\u200C',\n});\n\n/**\n * @deprecated use `HTML_ENTITIES` instead\n * @see HTML_ENTITIES\n */\nexports.entityMap = exports.HTML_ENTITIES;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL25vZGVfbW9kdWxlcy9AeG1sZG9tL3htbGRvbS9saWIvZW50aXRpZXMuanM/YjMwZiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBYTs7QUFFYixhQUFhLG1CQUFPLENBQUMsdUVBQWU7O0FBRXBDO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsQ0FBQzs7QUFFRDtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FB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jgnLFxuXHR6ZnI6ICdcXHVEODM1XFx1REQzNycsXG5cdFpIY3k6ICdcXHUwNDE2Jyxcblx0emhjeTogJ1xcdTA0MzYnLFxuXHR6aWdyYXJyOiAnXFx1MjFERCcsXG5cdFpvcGY6ICdcXHUyMTI0Jyxcblx0em9wZjogJ1xcdUQ4MzVcXHVERDZCJyxcblx0WnNjcjogJ1xcdUQ4MzVcXHVEQ0I1Jyxcblx0enNjcjogJ1xcdUQ4MzVcXHVEQ0NGJyxcblx0endqOiAnXFx1MjAwRCcsXG5cdHp3bmo6ICdcXHUyMDBDJyxcbn0pO1xuXG4vKipcbiAqIEBkZXByZWNhdGVkIHVzZSBgSFRNTF9FTlRJVElFU2AgaW5zdGVhZFxuICogQHNlZSBIVE1MX0VOVElUSUVTXG4gKi9cbmV4cG9ydHMuZW50aXR5TWFwID0gZXhwb3J0cy5IVE1MX0VOVElUSUVTO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@xmldom/xmldom/lib/entities.js\n"); + +/***/ }), + +/***/ "./node_modules/@xmldom/xmldom/lib/index.js": +/*!**************************************************!*\ + !*** ./node_modules/@xmldom/xmldom/lib/index.js ***! + \**************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +eval("var dom = __webpack_require__(/*! ./dom */ \"./node_modules/@xmldom/xmldom/lib/dom.js\")\nexports.DOMImplementation = dom.DOMImplementation\nexports.XMLSerializer = dom.XMLSerializer\nexports.DOMParser = __webpack_require__(/*! ./dom-parser */ \"./node_modules/@xmldom/xmldom/lib/dom-parser.js\").DOMParser\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL25vZGVfbW9kdWxlcy9AeG1sZG9tL3htbGRvbS9saWIvaW5kZXguanM/MjEwYiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxVQUFVLG1CQUFPLENBQUMsdURBQU87QUFDekI7QUFDQTtBQUNBLG9CQUFvQixtQkFBTyxDQUFDLHFFQUFjIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL0B4bWxkb20veG1sZG9tL2xpYi9pbmRleC5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbInZhciBkb20gPSByZXF1aXJlKCcuL2RvbScpXG5leHBvcnRzLkRPTUltcGxlbWVudGF0aW9uID0gZG9tLkRPTUltcGxlbWVudGF0aW9uXG5leHBvcnRzLlhNTFNlcmlhbGl6ZXIgPSBkb20uWE1MU2VyaWFsaXplclxuZXhwb3J0cy5ET01QYXJzZXIgPSByZXF1aXJlKCcuL2RvbS1wYXJzZXInKS5ET01QYXJzZXJcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@xmldom/xmldom/lib/index.js\n"); + +/***/ }), + +/***/ "./node_modules/@xmldom/xmldom/lib/sax.js": +/*!************************************************!*\ + !*** ./node_modules/@xmldom/xmldom/lib/sax.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +eval("var NAMESPACE = __webpack_require__(/*! ./conventions */ \"./node_modules/@xmldom/xmldom/lib/conventions.js\").NAMESPACE;\n\n//[4] \tNameStartChar\t ::= \t\":\" | [A-Z] | \"_\" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]\n//[4a] \tNameChar\t ::= \tNameStartChar | \"-\" | \".\" | [0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040]\n//[5] \tName\t ::= \tNameStartChar (NameChar)*\nvar nameStartChar = /[A-Z_a-z\\xC0-\\xD6\\xD8-\\xF6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]///\\u10000-\\uEFFFF\nvar nameChar = new RegExp(\"[\\\\-\\\\.0-9\"+nameStartChar.source.slice(1,-1)+\"\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]\");\nvar tagNamePattern = new RegExp('^'+nameStartChar.source+nameChar.source+'*(?:\\:'+nameStartChar.source+nameChar.source+'*)?$');\n//var tagNamePattern = /^[a-zA-Z_][\\w\\-\\.]*(?:\\:[a-zA-Z_][\\w\\-\\.]*)?$/\n//var handlers = 'resolveEntity,getExternalSubset,characters,endDocument,endElement,endPrefixMapping,ignorableWhitespace,processingInstruction,setDocumentLocator,skippedEntity,startDocument,startElement,startPrefixMapping,notationDecl,unparsedEntityDecl,error,fatalError,warning,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,comment,endCDATA,endDTD,endEntity,startCDATA,startDTD,startEntity'.split(',')\n\n//S_TAG,\tS_ATTR,\tS_EQ,\tS_ATTR_NOQUOT_VALUE\n//S_ATTR_SPACE,\tS_ATTR_END,\tS_TAG_SPACE, S_TAG_CLOSE\nvar S_TAG = 0;//tag name offerring\nvar S_ATTR = 1;//attr name offerring\nvar S_ATTR_SPACE=2;//attr name end and space offer\nvar S_EQ = 3;//=space?\nvar S_ATTR_NOQUOT_VALUE = 4;//attr value(no quot value only)\nvar S_ATTR_END = 5;//attr value end and no space(quot end)\nvar S_TAG_SPACE = 6;//(attr value end || tag end ) && (space offer)\nvar S_TAG_CLOSE = 7;//closed el\n\n/**\n * Creates an error that will not be caught by XMLReader aka the SAX parser.\n *\n * @param {string} message\n * @param {any?} locator Optional, can provide details about the location in the source\n * @constructor\n */\nfunction ParseError(message, locator) {\n\tthis.message = message\n\tthis.locator = locator\n\tif(Error.captureStackTrace) Error.captureStackTrace(this, ParseError);\n}\nParseError.prototype = new Error();\nParseError.prototype.name = ParseError.name\n\nfunction XMLReader(){\n\n}\n\nXMLReader.prototype = {\n\tparse:function(source,defaultNSMap,entityMap){\n\t\tvar domBuilder = this.domBuilder;\n\t\tdomBuilder.startDocument();\n\t\t_copy(defaultNSMap ,defaultNSMap = {})\n\t\tparse(source,defaultNSMap,entityMap,\n\t\t\t\tdomBuilder,this.errorHandler);\n\t\tdomBuilder.endDocument();\n\t}\n}\nfunction parse(source,defaultNSMapCopy,entityMap,domBuilder,errorHandler){\n\tfunction fixedFromCharCode(code) {\n\t\t// String.prototype.fromCharCode does not supports\n\t\t// > 2 bytes unicode chars directly\n\t\tif (code > 0xffff) {\n\t\t\tcode -= 0x10000;\n\t\t\tvar surrogate1 = 0xd800 + (code >> 10)\n\t\t\t\t, surrogate2 = 0xdc00 + (code & 0x3ff);\n\n\t\t\treturn String.fromCharCode(surrogate1, surrogate2);\n\t\t} else {\n\t\t\treturn String.fromCharCode(code);\n\t\t}\n\t}\n\tfunction entityReplacer(a){\n\t\tvar k = a.slice(1,-1);\n\t\tif (Object.hasOwnProperty.call(entityMap, k)) {\n\t\t\treturn entityMap[k];\n\t\t}else if(k.charAt(0) === '#'){\n\t\t\treturn fixedFromCharCode(parseInt(k.substr(1).replace('x','0x')))\n\t\t}else{\n\t\t\terrorHandler.error('entity not found:'+a);\n\t\t\treturn a;\n\t\t}\n\t}\n\tfunction appendText(end){//has some bugs\n\t\tif(end>start){\n\t\t\tvar xt = source.substring(start,end).replace(/&#?\\w+;/g,entityReplacer);\n\t\t\tlocator&&position(start);\n\t\t\tdomBuilder.characters(xt,0,end-start);\n\t\t\tstart = end\n\t\t}\n\t}\n\tfunction position(p,m){\n\t\twhile(p>=lineEnd && (m = linePattern.exec(source))){\n\t\t\tlineStart = m.index;\n\t\t\tlineEnd = lineStart + m[0].length;\n\t\t\tlocator.lineNumber++;\n\t\t\t//console.log('line++:',locator,startPos,endPos)\n\t\t}\n\t\tlocator.columnNumber = p-lineStart+1;\n\t}\n\tvar lineStart = 0;\n\tvar lineEnd = 0;\n\tvar linePattern = /.*(?:\\r\\n?|\\n)|.*$/g\n\tvar locator = domBuilder.locator;\n\n\tvar parseStack = [{currentNSMap:defaultNSMapCopy}]\n\tvar closeMap = {};\n\tvar start = 0;\n\twhile(true){\n\t\ttry{\n\t\t\tvar tagStart = source.indexOf('<',start);\n\t\t\tif(tagStart<0){\n\t\t\t\tif(!source.substr(start).match(/^\\s*$/)){\n\t\t\t\t\tvar doc = domBuilder.doc;\n\t \t\t\tvar text = doc.createTextNode(source.substr(start));\n\t \t\t\tdoc.appendChild(text);\n\t \t\t\tdomBuilder.currentElement = text;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(tagStart>start){\n\t\t\t\tappendText(tagStart);\n\t\t\t}\n\t\t\tswitch(source.charAt(tagStart+1)){\n\t\t\tcase '/':\n\t\t\t\tvar end = source.indexOf('>',tagStart+3);\n\t\t\t\tvar tagName = source.substring(tagStart + 2, end).replace(/[ \\t\\n\\r]+$/g, '');\n\t\t\t\tvar config = parseStack.pop();\n\t\t\t\tif(end<0){\n\n\t \t\ttagName = source.substring(tagStart+2).replace(/[\\s<].*/,'');\n\t \t\terrorHandler.error(\"end tag name: \"+tagName+' is not complete:'+config.tagName);\n\t \t\tend = tagStart+1+tagName.length;\n\t \t}else if(tagName.match(/\\s\n\t\t\t\tlocator&&position(tagStart);\n\t\t\t\tend = parseInstruction(source,tagStart,domBuilder);\n\t\t\t\tbreak;\n\t\t\tcase '!':// start){\n\t\t\tstart = end;\n\t\t}else{\n\t\t\t//TODO: 这里有可能sax回退,有位置错误风险\n\t\t\tappendText(Math.max(tagStart,start)+1);\n\t\t}\n\t}\n}\nfunction copyLocator(f,t){\n\tt.lineNumber = f.lineNumber;\n\tt.columnNumber = f.columnNumber;\n\treturn t;\n}\n\n/**\n * @see #appendElement(source,elStartEnd,el,selfClosed,entityReplacer,domBuilder,parseStack);\n * @return end of the elementStartPart(end of elementEndPart for selfClosed el)\n */\nfunction parseElementStartPart(source,start,el,currentNSMap,entityReplacer,errorHandler){\n\n\t/**\n\t * @param {string} qname\n\t * @param {string} value\n\t * @param {number} startIndex\n\t */\n\tfunction addAttribute(qname, value, startIndex) {\n\t\tif (el.attributeNames.hasOwnProperty(qname)) {\n\t\t\terrorHandler.fatalError('Attribute ' + qname + ' redefined')\n\t\t}\n\t\tel.addValue(\n\t\t\tqname,\n\t\t\t// @see https://www.w3.org/TR/xml/#AVNormalize\n\t\t\t// since the xmldom sax parser does not \"interpret\" DTD the following is not implemented:\n\t\t\t// - recursive replacement of (DTD) entity references\n\t\t\t// - trimming and collapsing multiple spaces into a single one for attributes that are not of type CDATA\n\t\t\tvalue.replace(/[\\t\\n\\r]/g, ' ').replace(/&#?\\w+;/g, entityReplacer),\n\t\t\tstartIndex\n\t\t)\n\t}\n\tvar attrName;\n\tvar value;\n\tvar p = ++start;\n\tvar s = S_TAG;//status\n\twhile(true){\n\t\tvar c = source.charAt(p);\n\t\tswitch(c){\n\t\tcase '=':\n\t\t\tif(s === S_ATTR){//attrName\n\t\t\t\tattrName = source.slice(start,p);\n\t\t\t\ts = S_EQ;\n\t\t\t}else if(s === S_ATTR_SPACE){\n\t\t\t\ts = S_EQ;\n\t\t\t}else{\n\t\t\t\t//fatalError: equal must after attrName or space after attrName\n\t\t\t\tthrow new Error('attribute equal must after attrName'); // No known test case\n\t\t\t}\n\t\t\tbreak;\n\t\tcase '\\'':\n\t\tcase '\"':\n\t\t\tif(s === S_EQ || s === S_ATTR //|| s == S_ATTR_SPACE\n\t\t\t\t){//equal\n\t\t\t\tif(s === S_ATTR){\n\t\t\t\t\terrorHandler.warning('attribute value must after \"=\"')\n\t\t\t\t\tattrName = source.slice(start,p)\n\t\t\t\t}\n\t\t\t\tstart = p+1;\n\t\t\t\tp = source.indexOf(c,start)\n\t\t\t\tif(p>0){\n\t\t\t\t\tvalue = source.slice(start, p);\n\t\t\t\t\taddAttribute(attrName, value, start-1);\n\t\t\t\t\ts = S_ATTR_END;\n\t\t\t\t}else{\n\t\t\t\t\t//fatalError: no end quot match\n\t\t\t\t\tthrow new Error('attribute value no end \\''+c+'\\' match');\n\t\t\t\t}\n\t\t\t}else if(s == S_ATTR_NOQUOT_VALUE){\n\t\t\t\tvalue = source.slice(start, p);\n\t\t\t\taddAttribute(attrName, value, start);\n\t\t\t\terrorHandler.warning('attribute \"'+attrName+'\" missed start quot('+c+')!!');\n\t\t\t\tstart = p+1;\n\t\t\t\ts = S_ATTR_END\n\t\t\t}else{\n\t\t\t\t//fatalError: no equal before\n\t\t\t\tthrow new Error('attribute value must after \"=\"'); // No known test case\n\t\t\t}\n\t\t\tbreak;\n\t\tcase '/':\n\t\t\tswitch(s){\n\t\t\tcase S_TAG:\n\t\t\t\tel.setTagName(source.slice(start,p));\n\t\t\tcase S_ATTR_END:\n\t\t\tcase S_TAG_SPACE:\n\t\t\tcase S_TAG_CLOSE:\n\t\t\t\ts =S_TAG_CLOSE;\n\t\t\t\tel.closed = true;\n\t\t\tcase S_ATTR_NOQUOT_VALUE:\n\t\t\tcase S_ATTR:\n\t\t\t\tbreak;\n\t\t\t\tcase S_ATTR_SPACE:\n\t\t\t\t\tel.closed = true;\n\t\t\t\tbreak;\n\t\t\t//case S_EQ:\n\t\t\tdefault:\n\t\t\t\tthrow new Error(\"attribute invalid close char('/')\") // No known test case\n\t\t\t}\n\t\t\tbreak;\n\t\tcase ''://end document\n\t\t\terrorHandler.error('unexpected end of input');\n\t\t\tif(s == S_TAG){\n\t\t\t\tel.setTagName(source.slice(start,p));\n\t\t\t}\n\t\t\treturn p;\n\t\tcase '>':\n\t\t\tswitch(s){\n\t\t\tcase S_TAG:\n\t\t\t\tel.setTagName(source.slice(start,p));\n\t\t\tcase S_ATTR_END:\n\t\t\tcase S_TAG_SPACE:\n\t\t\tcase S_TAG_CLOSE:\n\t\t\t\tbreak;//normal\n\t\t\tcase S_ATTR_NOQUOT_VALUE://Compatible state\n\t\t\tcase S_ATTR:\n\t\t\t\tvalue = source.slice(start,p);\n\t\t\t\tif(value.slice(-1) === '/'){\n\t\t\t\t\tel.closed = true;\n\t\t\t\t\tvalue = value.slice(0,-1)\n\t\t\t\t}\n\t\t\tcase S_ATTR_SPACE:\n\t\t\t\tif(s === S_ATTR_SPACE){\n\t\t\t\t\tvalue = attrName;\n\t\t\t\t}\n\t\t\t\tif(s == S_ATTR_NOQUOT_VALUE){\n\t\t\t\t\terrorHandler.warning('attribute \"'+value+'\" missed quot(\")!');\n\t\t\t\t\taddAttribute(attrName, value, start)\n\t\t\t\t}else{\n\t\t\t\t\tif(!NAMESPACE.isHTML(currentNSMap['']) || !value.match(/^(?:disabled|checked|selected)$/i)){\n\t\t\t\t\t\terrorHandler.warning('attribute \"'+value+'\" missed value!! \"'+value+'\" instead!!')\n\t\t\t\t\t}\n\t\t\t\t\taddAttribute(value, value, start)\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase S_EQ:\n\t\t\t\tthrow new Error('attribute value missed!!');\n\t\t\t}\n//\t\t\tconsole.log(tagName,tagNamePattern,tagNamePattern.test(tagName))\n\t\t\treturn p;\n\t\t/*xml space '\\x20' | #x9 | #xD | #xA; */\n\t\tcase '\\u0080':\n\t\t\tc = ' ';\n\t\tdefault:\n\t\t\tif(c<= ' '){//space\n\t\t\t\tswitch(s){\n\t\t\t\tcase S_TAG:\n\t\t\t\t\tel.setTagName(source.slice(start,p));//tagName\n\t\t\t\t\ts = S_TAG_SPACE;\n\t\t\t\t\tbreak;\n\t\t\t\tcase S_ATTR:\n\t\t\t\t\tattrName = source.slice(start,p)\n\t\t\t\t\ts = S_ATTR_SPACE;\n\t\t\t\t\tbreak;\n\t\t\t\tcase S_ATTR_NOQUOT_VALUE:\n\t\t\t\t\tvar value = source.slice(start, p);\n\t\t\t\t\terrorHandler.warning('attribute \"'+value+'\" missed quot(\")!!');\n\t\t\t\t\taddAttribute(attrName, value, start)\n\t\t\t\tcase S_ATTR_END:\n\t\t\t\t\ts = S_TAG_SPACE;\n\t\t\t\t\tbreak;\n\t\t\t\t//case S_TAG_SPACE:\n\t\t\t\t//case S_EQ:\n\t\t\t\t//case S_ATTR_SPACE:\n\t\t\t\t//\tvoid();break;\n\t\t\t\t//case S_TAG_CLOSE:\n\t\t\t\t\t//ignore warning\n\t\t\t\t}\n\t\t\t}else{//not space\n//S_TAG,\tS_ATTR,\tS_EQ,\tS_ATTR_NOQUOT_VALUE\n//S_ATTR_SPACE,\tS_ATTR_END,\tS_TAG_SPACE, S_TAG_CLOSE\n\t\t\t\tswitch(s){\n\t\t\t\t//case S_TAG:void();break;\n\t\t\t\t//case S_ATTR:void();break;\n\t\t\t\t//case S_ATTR_NOQUOT_VALUE:void();break;\n\t\t\t\tcase S_ATTR_SPACE:\n\t\t\t\t\tvar tagName = el.tagName;\n\t\t\t\t\tif (!NAMESPACE.isHTML(currentNSMap['']) || !attrName.match(/^(?:disabled|checked|selected)$/i)) {\n\t\t\t\t\t\terrorHandler.warning('attribute \"'+attrName+'\" missed value!! \"'+attrName+'\" instead2!!')\n\t\t\t\t\t}\n\t\t\t\t\taddAttribute(attrName, attrName, start);\n\t\t\t\t\tstart = p;\n\t\t\t\t\ts = S_ATTR;\n\t\t\t\t\tbreak;\n\t\t\t\tcase S_ATTR_END:\n\t\t\t\t\terrorHandler.warning('attribute space is required\"'+attrName+'\"!!')\n\t\t\t\tcase S_TAG_SPACE:\n\t\t\t\t\ts = S_ATTR;\n\t\t\t\t\tstart = p;\n\t\t\t\t\tbreak;\n\t\t\t\tcase S_EQ:\n\t\t\t\t\ts = S_ATTR_NOQUOT_VALUE;\n\t\t\t\t\tstart = p;\n\t\t\t\t\tbreak;\n\t\t\t\tcase S_TAG_CLOSE:\n\t\t\t\t\tthrow new Error(\"elements closed character '/' and '>' must be connected to\");\n\t\t\t\t}\n\t\t\t}\n\t\t}//end outer switch\n\t\t//console.log('p++',p)\n\t\tp++;\n\t}\n}\n/**\n * @return true if has new namespace define\n */\nfunction appendElement(el,domBuilder,currentNSMap){\n\tvar tagName = el.tagName;\n\tvar localNSMap = null;\n\t//var currentNSMap = parseStack[parseStack.length-1].currentNSMap;\n\tvar i = el.length;\n\twhile(i--){\n\t\tvar a = el[i];\n\t\tvar qName = a.qName;\n\t\tvar value = a.value;\n\t\tvar nsp = qName.indexOf(':');\n\t\tif(nsp>0){\n\t\t\tvar prefix = a.prefix = qName.slice(0,nsp);\n\t\t\tvar localName = qName.slice(nsp+1);\n\t\t\tvar nsPrefix = prefix === 'xmlns' && localName\n\t\t}else{\n\t\t\tlocalName = qName;\n\t\t\tprefix = null\n\t\t\tnsPrefix = qName === 'xmlns' && ''\n\t\t}\n\t\t//can not set prefix,because prefix !== ''\n\t\ta.localName = localName ;\n\t\t//prefix == null for no ns prefix attribute\n\t\tif(nsPrefix !== false){//hack!!\n\t\t\tif(localNSMap == null){\n\t\t\t\tlocalNSMap = {}\n\t\t\t\t//console.log(currentNSMap,0)\n\t\t\t\t_copy(currentNSMap,currentNSMap={})\n\t\t\t\t//console.log(currentNSMap,1)\n\t\t\t}\n\t\t\tcurrentNSMap[nsPrefix] = localNSMap[nsPrefix] = value;\n\t\t\ta.uri = NAMESPACE.XMLNS\n\t\t\tdomBuilder.startPrefixMapping(nsPrefix, value)\n\t\t}\n\t}\n\tvar i = el.length;\n\twhile(i--){\n\t\ta = el[i];\n\t\tvar prefix = a.prefix;\n\t\tif(prefix){//no prefix attribute has no namespace\n\t\t\tif(prefix === 'xml'){\n\t\t\t\ta.uri = NAMESPACE.XML;\n\t\t\t}if(prefix !== 'xmlns'){\n\t\t\t\ta.uri = currentNSMap[prefix || '']\n\n\t\t\t\t//{console.log('###'+a.qName,domBuilder.locator.systemId+'',currentNSMap,a.uri)}\n\t\t\t}\n\t\t}\n\t}\n\tvar nsp = tagName.indexOf(':');\n\tif(nsp>0){\n\t\tprefix = el.prefix = tagName.slice(0,nsp);\n\t\tlocalName = el.localName = tagName.slice(nsp+1);\n\t}else{\n\t\tprefix = null;//important!!\n\t\tlocalName = el.localName = tagName;\n\t}\n\t//no prefix element has default namespace\n\tvar ns = el.uri = currentNSMap[prefix || ''];\n\tdomBuilder.startElement(ns,localName,tagName,el);\n\t//endPrefixMapping and startPrefixMapping have not any help for dom builder\n\t//localNSMap = null\n\tif(el.closed){\n\t\tdomBuilder.endElement(ns,localName,tagName);\n\t\tif(localNSMap){\n\t\t\tfor (prefix in localNSMap) {\n\t\t\t\tif (Object.prototype.hasOwnProperty.call(localNSMap, prefix)) {\n\t\t\t\t\tdomBuilder.endPrefixMapping(prefix);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}else{\n\t\tel.currentNSMap = currentNSMap;\n\t\tel.localNSMap = localNSMap;\n\t\t//parseStack.push(el);\n\t\treturn true;\n\t}\n}\nfunction parseHtmlSpecialContent(source,elStartEnd,tagName,entityReplacer,domBuilder){\n\tif(/^(?:script|textarea)$/i.test(tagName)){\n\t\tvar elEndStart = source.indexOf('',elStartEnd);\n\t\tvar text = source.substring(elStartEnd+1,elEndStart);\n\t\tif(/[&<]/.test(text)){\n\t\t\tif(/^script$/i.test(tagName)){\n\t\t\t\t//if(!/\\]\\]>/.test(text)){\n\t\t\t\t\t//lexHandler.startCDATA();\n\t\t\t\t\tdomBuilder.characters(text,0,text.length);\n\t\t\t\t\t//lexHandler.endCDATA();\n\t\t\t\t\treturn elEndStart;\n\t\t\t\t//}\n\t\t\t}//}else{//text area\n\t\t\t\ttext = text.replace(/&#?\\w+;/g,entityReplacer);\n\t\t\t\tdomBuilder.characters(text,0,text.length);\n\t\t\t\treturn elEndStart;\n\t\t\t//}\n\n\t\t}\n\t}\n\treturn elStartEnd+1;\n}\nfunction fixSelfClosed(source,elStartEnd,tagName,closeMap){\n\t//if(tagName in closeMap){\n\tvar pos = closeMap[tagName];\n\tif(pos == null){\n\t\t//console.log(tagName)\n\t\tpos = source.lastIndexOf('')\n\t\tif(pos',start+4);\n\t\t\t//append comment source.substring(4,end)//\",\n input: \"__KEY__=__DATA__\"\n },\n post: {\n value: \"\" + \"\" + \"__IDENTIFIER__\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"__RAWDATAOUTPUT__\" + \"\" + \"\" + \"\",\n input: \"\" + \"__KEY__\" + \"\" + \"__DATA__\" + \"\" + \"\"\n }\n },\n /**\n * Namespace par defaut de la requete POST.\n *\n * @returns {String} namespace\n */\n namespaceByDefault: function namespaceByDefault() {\n var ns = [\"xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\"\", \"xmlns=\\\"http://www.opengis.net/wps/1.0.0\\\"\", \"xmlns:wfs=\\\"http://www.opengis.net/wfs\\\"\", \"xmlns:wps=\\\"http://www.opengis.net/wps/1.0.0\\\"\", \"xmlns:ows=\\\"http://www.opengis.net/ows/1.1\\\"\", \"xmlns:gml=\\\"http://www.opengis.net/gml\\\"\", \"xmlns:ogc=\\\"http://www.opengis.net/ogc\\\"\", \"xmlns:wcs=\\\"http://www.opengis.net/wcs/1.1.1\\\"\", \"xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\"\"];\n return ns.join(\" \");\n },\n /**\n * Schemalocation par defaut.\n *\n * @returns {String} schemaLocation\n */\n schemaLocationByDefault: function schemaLocationByDefault() {\n return \"xsi:schemaLocation=\\\"http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd\\\"\";\n },\n /**\n * Construction de la requête.\n *\n * @example\n * // GET out :\n * // service=__SERVICE__\n * // &version=__VERSION__\n * // &rawdataoutput=__RAWDATAOUTPUT__\n * // &identifier=__IDENTIFIER__\n * // &request=__REQUEST__\n * // &datainputs=\"__DATAINPUTS__\"\n * // avec __DATAINPUTS__ = __KEY__=__DATA__;...\n *\n * // POST out :\n * // \n * // \n * // __IDENTIFIER__\n * // \n * // \n * // \n * // \n * // \n * // __RAWDATAOUTPUT__\n * // \n * // \n * // \",\n * // avec __DATAINPUTS__\n * // \n * // __KEY__\n * // \n * // __DATA__\n * // \n * // \n *\n * @returns {Boolean} validation de la construction de la requete\n */\n processRequestString: function processRequestString() {\n this.logger.trace(\"WPS::processRequestString ()\");\n var template = \"\";\n if (this.method === \"POST\") {\n template = this.template.post.value;\n } else if (this.method === \"GET\") {\n template = this.template.get.value;\n } else {\n this.logger.error(\"No other method supported by the service !\");\n return false;\n }\n template = template.replace(/__SERVICE__/g, this.paramservice);\n template = template.replace(/__VERSION__/g, this.paramversion);\n template = template.replace(/__RAWDATAOUTPUT__/g, this.paramrawdataoutput);\n template = template.replace(/__IDENTIFIER__/g, this.paramidentifier);\n template = template.replace(/__REQUEST__/g, this.paramrequest);\n\n // ajout +\n if (this.method === \"POST\") {\n template = template.replace(/__NAMESPACE__/g, this.namespaceByDefault);\n template = template.replace(/__SCHEMALOCATION__/g, this.schemaLocationByDefault);\n }\n\n // ajout des datainputs\n template = template.replace(//g, this.__addDataInputs());\n if (!template) {\n this.logger.warn(\"traduction tmpl : empty request !?\");\n return false;\n }\n this.requestString = template;\n this.logger.trace(\"traduction tmpl\", template);\n return true;\n },\n /**\n * Ajout des données\n *\n * @returns {String} Données concaténées dans une chaine\n */\n __addDataInputs: function __addDataInputs() {\n this.logger.trace(\"WPS::__addDataInputs ()\");\n\n // c'est un peu grossier...\n var tmpl = this.method === \"GET\" ? this.template.get.input : this.template.post.input;\n var sep = this.method === \"GET\" ? \";\" : \"\";\n var result = \"\";\n var that = this;\n var map = this.DataObject.getData();\n for (var i = 0; i < map.length; i++) {\n // FIXME closure ?\n (function (j) {\n if (sep) {\n sep = j === map.length - 1 ? \"\" : \";\";\n }\n result = result.concat(that.__addDataInput(tmpl, map[j].k, map[j].v), sep);\n })(i);\n }\n return result;\n },\n /**\n * Ajout d'une donnée.\n *\n * @param {String} tmpl - template\n * @param {String} key - clef\n * @param {String} data - valeur\n * @returns {String} chaine avec les substitutions clef/valeur\n */\n __addDataInput: function __addDataInput(tmpl, key, data) {\n var tmp = tmpl;\n tmp = tmp.replace(/__KEY__/g, key);\n tmp = tmp.replace(/__DATA__/g, data);\n return tmp;\n },\n /**\n * Definir le mode de requête\n *\n * @param {String} method - GET|POST\n */\n setMethod: function setMethod(method) {\n if (method === \"GET\" || method === \"POST\") {\n this.method = method;\n } else {\n this.logger.warn(\"support only GET and POST method !\");\n }\n },\n /**\n * Retourne le mode de requete (GET|POST).\n *\n * @returns {AltiRequest.options.mode|String} methode (GET|POST)\n */\n getMethod: function getMethod() {\n return this.method;\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (WPS);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9Gb3JtYXRzL1dQUy5qcz8xODQ0Il0sIm5hbWVzIjpbIldQUyIsIm9wdGlvbnMiLCJsb2dnZXIiLCJMb2dnZXIiLCJnZXRMb2dnZXIiLCJ0cmFjZSIsIlR5cGVFcnJvciIsIkRhdGFPYmplY3QiLCJkYXRhIiwicGFyYW1zZXJ2aWNlIiwicGFyYW0iLCJzZXJ2aWNlIiwicGFyYW12ZXJzaW9uIiwidmVyc2lvbiIsInBhcmFtaWRlbnRpZmllciIsImlkZW50aWZpZXIiLCJwYXJhbXJhd2RhdGFvdXRwdXQiLCJyYXdkYXRhb3V0cHV0IiwicGFyYW1yZXF1ZXN0IiwicmVxdWVzdCIsIm1ldGhvZCIsInByb3RvdHlwZSIsInJlcXVlc3RTdHJpbmciLCJjb25zdHJ1Y3RvciIsInRlbXBsYXRlIiwiZ2V0IiwidmFsdWUiLCJpbnB1dCIsInBvc3QiLCJuYW1lc3BhY2VCeURlZmF1bHQiLCJucyIsImpvaW4iLCJzY2hlbWFMb2NhdGlvbkJ5RGVmYXVsdCIsInByb2Nlc3NSZXF1ZXN0U3RyaW5nIiwiZXJyb3IiLCJyZXBsYWNlIiwiX19hZGREYXRhSW5wdXRzIiwid2FybiIsInRtcGwiLCJzZXAiLCJyZXN1bHQiLCJ0aGF0IiwibWFwIiwiZ2V0RGF0YSIsImkiLCJsZW5ndGgiLC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ICAgICAgfSxcbiAgICAgICAgcG9zdCA6IHtcblxuICAgICAgICAgICAgdmFsdWUgOiBcIjw/eG1sIHZlcnNpb249XFxcIjEuMFxcXCIgZW5jb2Rpbmc9XFxcIlVURi04XFxcIj8+XCIgK1xuICAgICAgICAgICAgICAgIFwiPHdwczpfX1JFUVVFU1RfXyB2ZXJzaW9uPVxcXCJfX1ZFUlNJT05fX1xcXCIgc2VydmljZT1cXFwiX19TRVJWSUNFX19cXFwiIFwiICtcbiAgICAgICAgICAgICAgICBcIl9fTkFNRVNQQUNFX18gX19TQ0hFTUFMT0NBVElPTl9fPlwiICtcbiAgICAgICAgICAgICAgICBcIjxvd3M6SWRlbnRpZmllcj5fX0lERU5USUZJRVJfXzwvb3dzOklkZW50aWZpZXI+XCIgK1xuICAgICAgICAgICAgICAgIFwiPHdwczpEYXRhSW5wdXRzPlwiICtcbiAgICAgICAgICAgICAgICBcIjwhLS0gX19EQVRBSU5QVVRTX18gLS0+XCIgK1xuICAgICAgICAgICAgICAgIFwiPC93cHM6RGF0YUlucHV0cz5cIiArXG4gICAgICAgICAgICAgICAgXCI8d3BzOlJlc3BvbnNlRm9ybT5cIiArXG4gICAgICAgICAgICAgICAgXCI8d3BzOlJhd0RhdGFPdXRwdXQ+XCIgK1xuICAgICAgICAgICAgICAgIFwiPG93czpJZGVudGlmaWVyPl9fUkFXREFUQU9VVFBVVF9fPC9vd3M6SWRlbnRpZmllcj5cIiArXG4gICAgICAgICAgICAgICAgXCI8L3dwczpSYXdEYXRhT3V0cHV0PlwiICtcbiAgICAgICAgICAgICAgICBcIjwvd3BzOlJlc3BvbnNlRm9ybT5cIiArXG4gICAgICAgICAgICAgICAgXCI8L3dwczpfX1JFUVVFU1RfXz5cIixcblxuICAgICAgICAgICAgaW5wdXQgOiBcIjx3cHM6SW5wdXQ+XCIgK1xuICAgICAgICAgICAgICAgIFwiPG93czpJZGVudGlmaWVyPl9fS0VZX188L293czpJZGVudGlmaWVyPlwiICtcbiAgICAgICAg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AgICAgKlxuICAgICAqIC8vIFBPU1Qgb3V0IDpcbiAgICAgKiAvLyAgICAgIDw/eG1sIHZlcnNpb249XFxcIjEuMFxcXCIgZW5jb2Rpbmc9XFxcIlVURi04XFxcIj8+XG4gICAgICogLy8gICAgICA8d3BzOl9fUkVRVUVTVF9fIHZlcnNpb249XFxcIl9fVkVSU0lPTl9fXFxcIiBzZXJ2aWNlPVxcXCJfX1NFUlZJQ0VfX1xcXCJcbiAgICAgKiAvLyAgICAgICAgIF9fTkFNRVNQQUNFX18gX19TQ0hFTUFMT0NBVElPTl9fPlxuICAgICAqIC8vICAgICAgICAgIDxvd3M6SWRlbnRpZmllcj5fX0lERU5USUZJRVJfXzwvb3dzOklkZW50aWZpZXI+XG4gICAgICogLy8gICAgICAgICAgPHdwczpEYXRhSW5wdXRzPlxuICAgICAqIC8vICAgICAgICAgICAgICA8IS0tIF9fREFUQUlOUFVUU19fIC0tPlxuICAgICAqIC8vICAgICAgICAgIDwvd3BzOkRhdGFJbnB1dHM+XG4gICAgICogLy8gICAgICAgICAgPHdwczpSZXNwb25zZUZvcm0+XG4gICAgICogLy8gICAgICAgICAgICAgIDx3cHM6UmF3RGF0YU91dHB1dD5cbiAgICAgKiAvLyAgICAgICAgICAgICAgPG93czpJZGVudGlmaWVyPl9fUkFXREFUQU9VVFBVVF9fPC9vd3M6SWRlbnRpZmllcj5cbiAgICAgKiAvLyAgICAgICAgICAgICAgPC93cHM6UmF3RGF0YU91dHB1dD5cbiAgICAgKiAvLyAgICAgICAgICA8L3dwczpSZXNwb25zZUZvcm0+XG4gICAgICogLy8gICAgICA8L3dwczpfX1JFUVVFU1RfXz5cIixcbiAgICAgKiAvLyAgICAgIGF2ZWMgX19EQVRBSU5QVVRTX19cbiAgICAgKiAvLyAgICAgICAgICAgICA8d3BzOklucHV0PlxuICAgICAqIC8vICAgICAgICAgICAgICAgICAgPG93czpJZGVudGlmaWVyPl9fS0VZX188L293czpJZGVudGlmaWVyPlxuICAgICAqIC8vIC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tcbiAgICAgICAgICAgIHRoaXMubG9nZ2VyLndhcm4oXCJzdXBwb3J0IG9ubHkgR0VUIGFuZCBQT1NUIG1ldGhvZCAhXCIpO1xuICAgICAgICB9XG4gICAgfSxcblxuICAgIC8qKlxuICAgICAqIFJldG91cm5lIGxlIG1vZGUgZGUgcmVxdWV0ZSAoR0VUfFBPU1QpLlxuICAgICAqXG4gICAgICogQHJldHVybnMge0FsdGlSZXF1ZXN0Lm9wdGlvbnMubW9kZXxTdHJpbmd9IG1ldGhvZGUgKEdFVHxQT1NUKVxuICAgICAqL1xuICAgIGdldE1ldGhvZCA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMubWV0aG9kO1xuICAgIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IFdQUztcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Formats/WPS.js\n"); + +/***/ }), + +/***/ "./src/Formats/XML.js": +/*!****************************!*\ + !*** ./src/Formats/XML.js ***! + \****************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* global require */\n\n\n// import __xmldom from \"xmldom\";\n\n/**\n * @classdesc\n *\n * Classe permettant d'écrire ou de lire du XML, sous forme de document DOM,\n * éventuellement selon des clés de lecture (readers) ou d'écriture (writers) spécifiques.\n *\n * @constructor\n * @alias Gp.Formats.XML\n *\n * @param {Object} [options] - options du format XML\n *\n * @param {Object} [options.reader] - Instance d'un Reader de service (AltiResponseReader, GeocodeRequestReader, etc.)\n * utile pour interpréter le XML lorsque sa structure est connue.\n * Ce reader doit comporter au moins une fonction statique read (root) permettant d'initialiser la lecture.\n *\n * @param {Object} [options.writers] - writers\n *\n * @param {String} [options.xmlString] - chaîne de caractère contenant du XML à interpréter.\n *\n * @private\n */\nfunction XML(options) {\n if (!(this instanceof XML)) {\n throw new TypeError(\"XML constructor cannot be called as a function.\");\n }\n\n // FIXME : notion de singleton\n\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger();\n this.logger.trace(\"[Constructeur XML ()]\");\n\n /**\n * Chaîne de caractères contenant le texte XML\n * @type {String}\n */\n this.xmlString = null;\n\n /**\n * DOM Element correspondant à la structure du XML.\n * @type {DOMElement}\n */\n this.xmlDoc = null;\n\n /**\n * Objet contenant des fonctions de lecture des différentes balises XML.\n * @type {Object}\n */\n this.reader = null;\n\n // traitement des paramètres d'options s'il y en a\n if (options) {\n if (options.xmlString && typeof options.xmlString === \"string\") {\n this.xmlString = options.xmlString;\n // Si une chaine de caractère a été passée en entrée : on la transforme aussi en XML document\n this.xmlDoc = __getXMLDOC(options.xmlString);\n }\n if (options.reader) {\n this.setReader(options.reader);\n }\n }\n}\nXML.prototype = {\n /**\n * @lends module:XML\n */\n\n /*\n * Constructeur (alias)\n */\n constructor: XML,\n /**\n * Méthode permettant de récupérer la chaîne de caractères associée au format XML\n *\n * @returns {String} xmlString - la chaîne de caractères correspondant au format XML\n */\n getXMLString: function getXMLString() {\n return this.xmlString;\n },\n /**\n * Méthode permettant d'attribuer une chaîne de caractères au format XML (attribut xmlString).\n * La méthode va aussi transformer cette chaîne de caractères en document XML,\n * afin de remplir l'attribut xmlDoc.\n *\n * @param {String} xmlString - la chaîne de caractères correspondant au format XML\n */\n setXMLString: function setXMLString(xmlString) {\n if (xmlString && typeof xmlString === \"string\") {\n this.xmlString = xmlString;\n this.xmlDoc = __getXMLDOC(xmlString);\n }\n },\n /**\n * Méthode permettant de récupérer les readers associés au format XML, s'ils ont été définis\n *\n * @return {Object} readers - les readers associés au format XML, s'ils existent,\n * sous forme d'une collection de fonctions\n */\n getReader: function getReader() {\n return this.reader;\n },\n /**\n * Méthode permettant d'attribuer des readers, sous la forme d'un objet de fonctions (node, data),\n * lorsqu'ils n'ont pas été définis lors de l'instanciation par exemple (new XML (options)).\n *\n * @param {Object} reader - Instance d'un Reader de service (AltiResponseReader, GeocodeRequestReader, etc.)\n * utile pour interpréter le XML lorsque sa structure est connue.\n * Ce reader doit comporter au moins une fonction statique read (root) permettant d'initialiser la lecture.\n */\n setReader: function setReader(reader) {\n if (reader && reader.read && typeof reader.read === \"function\") {\n this.reader = reader;\n }\n },\n /**\n * Méthode permettant de récupérer le document XML associé au format, s'il existe.\n *\n * @return {DOMElement} xmlDoc - le document XML (DOM document node) s'il existe\n */\n getXMLDoc: function getXMLDoc() {\n return this.xmlDoc;\n },\n /**\n * Setter\n */\n setXMLDoc: function setXMLDoc(doc) {\n this.xmlDoc = doc;\n },\n /**\n * Méthode initialisant la lecture du XML, à partir d'un XML Document :\n * création d'un objet JavaScript contenant les informations du XML,\n * sauf dans le cas où il n'existe pas de XML Document à interpréter (retourne un objet vide).\n *\n * @return {Object} [parserOutput] - un objet JavaScript contenant les informations du XML :\n * - soit toutes les informations si aucun reader n'a été spécifié à la création du format\n * - soit les informations spécifiées dans le reader.\n */\n parse: function parse() {\n // build xml document from xmlString\n if (!this.xmlDoc && this.xmlString) {\n this.xmlDoc = __getXMLDOC(this.xmlString);\n }\n if (this.xmlDoc) {\n var root = __getRootNode(this.xmlDoc);\n if (root) {\n var parserOutput;\n // call reader if exists\n if (this.reader && this.reader.read) {\n parserOutput = this.reader.read(root);\n } else {\n parserOutput = {};\n parserOutput[root.nodeName] = __readDefault(root);\n }\n return parserOutput;\n } else {\n return {};\n }\n }\n }\n};\n\n/**\n * Méthode de la classe (privée) permettant de créer un XML Document à partir d'une chaîne de caractères XML,\n * en utilisant DOMParser () lorsque c'est possible.\n * For more information, see: https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#the-domparser-interface\n *\n * @private\n * @memberof XML\n * @method __getXMLDOC\n * @param {String} xmlString - xml string to be converted into DOM element\n * @return {DOMElement} - the corresponding XML Document\n */\nfunction __getXMLDOC(xmlString) {\n if (typeof window === \"undefined\") {\n // env. nodejs\n var DOMParser = __webpack_require__(/*! @xmldom/xmldom */ \"./node_modules/@xmldom/xmldom/lib/index.js\").DOMParser; // __xmldom.DOMParser;\n return new DOMParser().parseFromString(xmlString, \"text/xml\");\n } else {\n // env. browser\n\n var parser;\n var xmlDoc;\n var errorMsg = \"Erreur lors du parsing de la réponse du service : XML non conforme\";\n if (window.ActiveXObject) {\n // Internet Explorer < 9\n xmlDoc = new window.ActiveXObject(\"Microsoft.XMLDOM\");\n xmlDoc.async = false;\n xmlDoc.loadXML(xmlString);\n var parseError = xmlDoc.parseError;\n if (parseError.errorCode) {\n if (parseError.line && parseError.linepos) {\n errorMsg += \"( ligne \" + parseError.line + \", colonne \" + parseError.linepos;\n }\n if (parseError.reason) {\n errorMsg += \": \" + parseError.reason + \")\";\n }\n throw new Error(errorMsg);\n }\n return xmlDoc;\n } else if (window.DOMParser) {\n // les autres (Chrome, Mozilla, IE >= 9)\n parser = new window.DOMParser();\n try {\n xmlDoc = parser.parseFromString(xmlString, \"text/xml\");\n } catch (e) {\n // Internet Explorer browser raises exception if xmlString is not valid XML\n if (e.message === \"SyntaxError\") {\n throw new Error(errorMsg);\n } else {\n throw new Error(\"Erreur lors du parsing de la réponse du service : \" + e.message);\n }\n }\n // look for parsing error in case no exception was raised\n if (xmlDoc.getElementsByTagName(\"parsererror\").length > 0) {\n var parsererror = xmlDoc.getElementsByTagName(\"parsererror\");\n for (var i = 0; i < parsererror.length; i++) {\n var content = parsererror[i].innerHTML;\n // except in case parsererror is just because of huge xml, but parsing is done.\n if (content.indexOf(\"Huge input lookup\") === -1) {\n errorMsg += \"(\" + content + \")\";\n throw new Error(errorMsg);\n }\n }\n } else if (!xmlDoc.documentElement) {\n // may happen in chrome browser\n throw new Error(errorMsg);\n }\n return xmlDoc;\n } else {\n // FIXME\n throw new Error(\"Incompatible DOM Parser pour ce navigateur !\");\n }\n }\n}\n\n/**\n * Méthode de la classe (privée) permettant de récupérer le noeud racine du document,\n * à partir d'un document node (nodeType=9), puis lecture de ce noeud (readNode)\n *\n * @private\n * @memberof XML\n * @method __getRootNode\n * @param {DOMElement} [xmlDoc] - a Document Node\n * @return {DOMElement} root - the document root node\n */\nfunction __getRootNode(xmlDoc) {\n var root;\n if (xmlDoc.nodeType === 9) {\n // INFO : nodeType 9 represents the entire document (the root-node of the DOM tree)\n root = xmlDoc.documentElement;\n } else if (xmlDoc.nodeType === 1) {\n root = xmlDoc;\n }\n return root;\n}\n\n/**\n * Méthode de la classe (privée) permettant de lire automatiquement un noeud XML,\n * lorsqu'aucun reader spécifique n'a été spécifié (parser brut)\n *\n * @private\n * @memberof XML\n * @method readDefault\n * @param {DOMElement} node - a DOM element node\n * @example final data object looks like :\n * data = {\n * attributeName: attributeValue,\n * childName: {\n * attributeName: attributeValue,\n * attributeName: attributeValue,\n * childName: {\n * \"textContent\": textContent\n * },\n * childName: {\n * childName: {\n * attributeName:attributeValue\n * }\n * }\n * }\n * }\n */\nfunction __readDefault(node) {\n var data = {};\n\n // if element node has attributes, set their values to data\n if (node.attributes.length > 0) {\n var dataAttributes = __getAttributes(node);\n data[\"attributes\"] = dataAttributes;\n }\n\n // if element node has childNodes, read them and set them to data\n if (node.hasChildNodes()) {\n var childData = {};\n var child;\n var children = node.childNodes;\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n if (child.nodeType === 3) {\n // TEXT_NODE\n data[\"textContent\"] = child.nodeValue;\n } else if (child.nodeType === 1) {\n childData = __readDefault(child);\n if (!data[child.nodeName]) {\n // store childData in an object\n data[child.nodeName] = childData;\n } else {\n // in case several childNodes has the same name : store them in an array.\n // if data[nodeName] already exists but is not an array\n if (!Array.isArray(data[child.nodeName])) {\n var old = data[child.nodeName];\n data[child.nodeName] = [];\n data[child.nodeName].push(old);\n }\n data[child.nodeName].push(childData);\n }\n }\n // TODO : manage other node types (4=CDATA, etc)\n }\n }\n return data;\n}\n\n/**\n * Méthode de la classe (privée) permettant de récupérer les attributs d'un noeud élément\n *\n * @private\n * @memberof XML\n * @method __getAttributes\n * @param {DOMElement} node - noeud contenant l'attribut recherché\n * @return {Object} nodeAttributes - objet contenant les noms et valeurs des différents attributs\n */\nfunction __getAttributes(node) {\n if (node.attributes.length > 0) {\n var nodeAttributes = {};\n var attributes = node.attributes;\n for (var i = 0; i < attributes.length; i++) {\n var attribute = attributes[i];\n nodeAttributes[attribute.nodeName] = attribute.nodeValue;\n }\n return nodeAttributes;\n }\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (XML);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9Gb3JtYXRzL1hNTC5qcz9mNTc3Il0sIm5hbWVzIjpbIlhNTCIsIm9wdGlvbnMiLCJUeXBlRXJyb3IiLCJsb2dnZXIiLCJMb2dnZXIiLCJnZXRMb2dnZXIiLCJ0cmFjZSIsInhtbFN0cmluZyIsInhtbERvYyIsInJlYWRlciIsIl9fZ2V0WE1MRE9DIiwic2V0UmVhZGVyIiwicHJvdG90eXBlIiwiY29uc3RydWN0b3IiLCJnZXRYTUxTdHJpbmciLCJzZXRYTUxTdHJpbmciLCJnZXRSZWFkZXIiLCJyZWFkIiwiZ2V0WE1MRG9jIiwic2V0WE1MRG9jIiwiZG9jIiwicGFyc2UiLCJyb290IiwiX19nZXRSb290Tm9kZSIsInBhcnNlck91dHB1dCIsIm5vZGVOYW1lIiwiX19yZWFkRGVmYXVsdCIsIndpbmRvdyIsIkRPTVBhcnNlciIsInJlcXVpcmUiLCJwYXJzZUZyb21TdHJpbmciLCJwYXJzZXIiLCJlcnJvck1zZyIsIkFjdGl2ZVhPYmplY3QiLCJhc3luYyIsImxvYWRYTUwiLCJwYXJzZUVycm9yIiwiZXJyb3JDb2RlIiwibGluZSIsImxpbmVwb3MiLCJyZWFzb24iLCJFcnJvciIsIm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YyA9IF9fZ2V0WE1MRE9DKHRoaXMueG1sU3RyaW5nKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy54bWxEb2MpIHtcbiAgICAgICAgICAgIHZhciByb290ID0gX19nZXRSb290Tm9kZSh0aGlzLnhtbERvYyk7XG4gICAgICAgICAgICBpZiAocm9vdCkge1xuICAgICAgICAgICAgICAgIHZhciBwYXJzZXJPdXRwdXQ7XG4gICAgICAgICAgICAgICAgLy8gY2FsbCByZWFkZXIgaWYgZXhpc3RzXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMucmVhZGVyICYmIHRoaXMucmVhZGVyLnJlYWQpIHtcbiAgICAgICAgICAgICAgICAgICAgcGFyc2VyT3V0cHV0ID0gdGhpcy5yZWFkZXIucmVhZChyb290KTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBwYXJzZXJPdXRwdXQgPSB7fTtcbiAgICAgICAgICAgICAgICAgICAgcGFyc2VyT3V0cHV0W3Jvb3Qubm9kZU5hbWVdID0gX19yZWFkRGVmYXVsdChyb290KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmV0dXJuIHBhcnNlck91dHB1dDtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHt9O1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG59O1xuXG4vKipcbiAqIE3DqXRob2RlIGRlIGxhIGNsYXNzZSAocHJpdsOpZSkgcGVybWV0dGFudCBkZSBjcsOpZXIgdW4gWE1MIERvY3VtZW50IMOgIHBhcnRpciBkJ3VuZSBjaGHDrm5lIGRlIGNhcmFjdMOocmVzIFhNTCxcbiAqICAgICAgZW4gdXRpbGlzYW50IERPTVBhcnNlciAoKSBsb3JzcXVlIGMnZXN0IHBvc3NpYmxlLlxuICogICAgICBGb3IgbW9yZSBpbmZvcm1hdGlvbiwgc2VlOiBodHRwczovL2R2Y3MudzM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cm9zb2Z0LlhNTERPTVwiKTtcbiAgICAgICAgICAgIHhtbERvYy5hc3luYyA9IGZhbHNlO1xuICAgICAgICAgICAgeG1sRG9jLmxvYWRYTUwoeG1sU3RyaW5nKTtcbiAgICAgICAgICAgIHZhciBwYXJzZUVycm9yID0geG1sRG9jLnBhcnNlRXJyb3I7XG4gICAgICAgICAgICBpZiAocGFyc2VFcnJvci5lcnJvckNvZGUpIHtcbiAgICAgICAgICAgICAgICBpZiAocGFyc2VFcnJvci5saW5lICYmIHBhcnNlRXJyb3IubGluZXBvcykge1xuICAgICAgICAgICAgICAgICAgICBlcnJvck1zZyArPSBcIiggbGlnbmUgXCIgKyBwYXJzZUVycm9yLmxpbmUgKyBcIiwgY29sb25uZSBcIiArIHBhcnNlRXJyb3IubGluZXBvcztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgaWYgKHBhcnNlRXJyb3IucmVhc29uKSB7XG4gICAgICAgICAgICAgICAgICAgIGVycm9yTXNnICs9IFwiOiAgXCIgKyBwYXJzZUVycm9yLnJlYXNvbiArIFwiKVwiO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoZXJyb3JNc2cpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIHhtbERvYztcbiAgICAgICAgfSBlbHNlIGlmICh3aW5kb3cuRE9NUGFyc2VyKSB7XG4gICAgICAgICAgICAvLyBsZXMgYXV0cmVzIChDaHJvbWUsIE1vemlsbGEsIElFID49IDkpXG4gICAgICAgICAgICBwYXJzZXIgPSBuZXcgd2luZG93LkRPTVBhcnNlcigpO1xuICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgICB4bWxEb2MgPSBwYXJzZXIucGFyc2VGcm9tU3RyaW5nKHhtbFN0cmluZywgXCJ0ZXh0L3htbFwiKTtcbiAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgICAgICAgICAgICAvLyB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W5wdXQgbG9va3VwXCIpID09PSAtMSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgZXJyb3JNc2cgKz0gXCIoXCIgKyBjb250ZW50ICsgXCIpXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoZXJyb3JNc2cpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIGlmICgheG1sRG9jLmRvY3VtZW50RWxlbWVudCkgeyAvLyBtYXkgaGFwcGVuIGluIGNocm9tZSBicm93c2VyXG4gICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGVycm9yTXNnKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiB4bWxEb2M7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAvLyBGSVhNRVxuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKFwiSW5jb21wYXRpYmxlIERPTSBQYXJzZXIgcG91ciBjZSBuYXZpZ2F0ZXVyICFcIik7XG4gICAgICAgIH1cbiAgICB9XG59XG5cbi8qKlxuICogTcOpdGhvZGUgZGUgbGEgY2xhc3NlIChwcml2w6llKSBwZXJtZXR0YW50IGRlIHLDqWN1cMOpcmVyIGxlIG5vZXVkIHJhY2luZSBkdSBkb2N1bWVudCxcbiAqICAgICAgw6AgcGFydGlyIGQndW4gZG9jdW1lbnQgbm9kZSAobm9kZVR5cGU9OSksIHB1aXMgbGVjdHVyZSBkZSBjZSBub2V1ZCAocmVhZE5vZGUpXG4gKlxuICogQHByaXZhdGVcbiAqIEBtZW1iZXJvZiBYTUxcbiAqIEBtZXRob2QgX19nZXRSb290Tm9kZVxuICogQHBhcmFtIHtET01FbGVtZW50fSBbeG1sRG9jXSAtIGEgRG9jdW1lbnQgTm9kZVxuICogQHJldHVybiB7RE9NRWxlbWVudH0gcm9vdCAtIHRoZSBkb2N1bWVudCByb290IG5vZGVcbiAqL1xuZnV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cbiAqICAgICAgICAgICAgICAgICAgY2hpbGROYW1lOiB7XG4gKiAgICAgICAgICAgICAgICAgICAgICBcInRleHRDb250ZW50XCI6IHRleHRDb250ZW50XG4gKiAgICAgICAgICAgICAgICAgIH0sXG4gKiAgICAgICAgICAgICAgICAgIGNoaWxkTmFtZToge1xuICogICAgICAgICAgICAgICAgICAgICAgY2hpbGROYW1lOiB7XG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cmlidXRlTmFtZTphdHRyaWJ1dGVWYWx1ZVxuICogICAgICAgICAgICAgICAgICAgICAgfVxuICogICAgICAgICAgICAgICAgICB9XG4gKiAgICAgICAgICAgICAgfVxuICogICAgICAgICAgfVxuICovXG5mdW5jdGlvbiBfX3JlYWREZWZhdWx0IChub2RlKSB7XG4gICAgdmFyIGRhdGEgPSB7fTtcblxuICAgIC8vIGlmIGVsZW1lbnQgbm9kZSBoYXMgYXR0cmlidXRlcywgc2V0IHRoZWlyIHZhbHVlcyB0byBkYXRhXG4gICAgaWYgKG5vZGUuYXR0cmlidXRlcy5sZW5ndGggPiAwKSB7XG4gICAgICAgIHZhciBkYXRhQXR0cmlidXRlcyA9IF9fZ2V0QXR0cmlidXRlcyhub2RlKTtcbiAgICAgICAgZGF0YVtcImF0dHJpYnV0ZXNcIl0gPSBkYXRhQXR0cmlidXRlcztcbiAgICB9XG5cbiAgICAvLyBpZiBlbGVtZW50IG5vZGUgaGFzIGNoaWxkTm9kZXMsIHJlYWQgdGhlbSBhbmQgc2V0IHRoZW0gdG8gZGF0YVxuICAgIGlmIChub2RlLmhhc0NoaWxkTm9kZXMoKSkge1xuICAgICAgICB2YXIgY2hpbGREYXRhID0ge307XG4gICAgICAgIHZhciBjaGlsZDtcbiAgICAgICAgdmFyIGNoaWxkcmVuID0gbm9kZS5jaGlsZE5vZGVzO1xuXG4gICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgY2hpbGRyZW4ubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgIGNoaWxkID0gY2hpbGRyZW5baV07XG5cbiAgICAgICAgICAgIGlmIChjaGlsZC5ub2RlVHlwZSA9PT0gMykgeyAvLyBURVhUX05PREVcbiAgICAgICAgICAgICAgICBkYXRhW1widGV4dENvbnRlbnRcIl0gPSBjaGlsZC5ub2RlVmFsdWU7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKGNoaWxkLm5vZGVUeXBlID09PSAxKSB7XG4gICAgICAgICAgICAgICAgY2hpbGREYXRhID0gX19yZWFkRGVmYXVsdChjaGlsZCk7XG5cbiAgICAgICAgICAgICAgICBpZiAoIWRhdGFbY2hpbGQubm9kZU5hbWVdKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIHN0b3JlIGNoaWxkRGF0YSBpbiBhbiBvYmplY3RcbiAgICAgICAgICAgICAgICAgICAgZGF0YVtjaGlsZC5ub2RlTmFtZV0gPSBjaGlsZERhdGE7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gaW4gY2FzZSBzZXZlcmFsIGNoaWxkTm9kZXMgaGFzIHRoZSBzYW1lIG5hbWUgOiBzdG9yZSB0aGVtIGluIGFuIGFycmF5LlxuICAgICAgICAgICAgICAgICAgICAvLyBpZiBkYXRhW25vZGVOYW1lXSBhbHJlYWR5IGV4aXN0cyBidXQgaXMgbm90IGFuIGFycmF5XG4gICAgICAgICAgICAgICAgICAgIGlmICghQXJyYXkuaXNBcnJheShkYXRhW2NoaWxkLm5vZGVOYW1lXSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBvbGQgPSBkYXRhW2NoaWxkLm5vZGVOYW1lXTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGRhdGFbY2hpbGQubm9kZU5hbWVdID0gW107XG4gICAgICAgICAgICAgICAgICAgICAgICBkYXRhW2NoaWxkLm5vZGVOYW1lXS5wdXNoKG9sZCk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgZ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YXR0cmlidXRlLm5vZGVWYWx1ZTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gbm9kZUF0dHJpYnV0ZXM7XG4gICAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBYTUw7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Formats/XML.js\n"); + +/***/ }), + +/***/ "./src/Gp.js": +/*!*******************!*\ + !*** ./src/Gp.js ***! + \*******************/ +/*! exports provided: servicesVersion, servicesDate, default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"servicesVersion\", function() { return servicesVersion; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"servicesDate\", function() { return servicesDate; });\n/* harmony import */ var _Services_Services__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Services/Services */ \"./src/Services/Services.js\");\n/* harmony import */ var _Services_DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Services/DefaultUrlService */ \"./src/Services/DefaultUrlService.js\");\n/* harmony import */ var _Services_Alti_Response_model_AltiResponse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Services/Alti/Response/model/AltiResponse */ \"./src/Services/Alti/Response/model/AltiResponse.js\");\n/* harmony import */ var _Services_Alti_Response_model_Elevation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Services/Alti/Response/model/Elevation */ \"./src/Services/Alti/Response/model/Elevation.js\");\n/* harmony import */ var _Services_AutoComplete_Response_model_AutoCompleteResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Services/AutoComplete/Response/model/AutoCompleteResponse */ \"./src/Services/AutoComplete/Response/model/AutoCompleteResponse.js\");\n/* harmony import */ var _Services_AutoComplete_Response_model_SuggestedLocation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Services/AutoComplete/Response/model/SuggestedLocation */ \"./src/Services/AutoComplete/Response/model/SuggestedLocation.js\");\n/* harmony import */ var _Services_ProcessIsoCurve_Response_model_ProcessIsoCurveResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Services/ProcessIsoCurve/Response/model/ProcessIsoCurveResponse */ \"./src/Services/ProcessIsoCurve/Response/model/ProcessIsoCurveResponse.js\");\n/* harmony import */ var _Services_Route_Response_model_RouteResponse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Services/Route/Response/model/RouteResponse */ \"./src/Services/Route/Response/model/RouteResponse.js\");\n/* harmony import */ var _Services_Route_Response_model_RouteInstruction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Services/Route/Response/model/RouteInstruction */ \"./src/Services/Route/Response/model/RouteInstruction.js\");\n/* harmony import */ var _Services_Config_Config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Services/Config/Config */ \"./src/Services/Config/Config.js\");\n/* harmony import */ var _Protocols_XHR__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Protocols/XHR */ \"./src/Protocols/XHR.js\");\n/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Exceptions/ErrorService */ \"./src/Exceptions/ErrorService.js\");\n/* harmony import */ var _Utils_Helper__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Utils/Helper */ \"./src/Utils/Helper.js\");\n/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../package.json */ \"./package.json\");\nvar _package_json__WEBPACK_IMPORTED_MODULE_13___namespace = /*#__PURE__*/__webpack_require__.t(/*! ../package.json */ \"./package.json\", 1);\n/**\n* Global variable Gp.\n*\n* @module Gp\n* @alias Gp\n* @description\n*\n* This is the global variable that is exposed in the browser environment.\n* Content is composed of constructor, functions and properties...\n*\n* > {@link Gp.Error Error()}\n* - .TYPE_SRVERR : \"SERVICE_ERROR\"\n* - .TYPE_UNKERR : \"UNKNOWN_ERROR\"\n* - .TYPE_USEERR : \"USAGE_ERROR\"\n*\n* > {@link module:Helper Helper}\n* - .indent()\n* - .normalyzeParameters()\n* - .normalyzeUrl()\n*\n* > {@link module:XHR Protocols.XHR}\n* - .call()\n*\n* > {@link module:Services Services (objects)}\n* - .Alti\n* - {@link Gp.Services.Alti.Elevation .Elevation()}\n* - {@link Gp.Services.AltiResponse .AltiResponse()}\n* - .AutoComplete\n* - {@link Gp.Services.AutoComplete.SuggestedLocation .SuggestedLocation()}\n* - {@link Gp.Services.AutoCompleteResponse .AutoCompleteResponse()}\n* - {@link Gp.Services.Config .Config()}\n* - {@link Gp.Services.DefaultUrl .DefaultUrl()}\n* - {@link Gp.Services.GeocodeResponse .GeocodeResponse()}\n* - {@link Gp.Services.GetConfigResponse .GetConfigResponse()}\n* - {@link Gp.Services.IsoCurveResponse .IsoCurveResponse()}\n* - .Route\n* - {@link Gp.Services.Route.RouteInstruction .RouteInstruction()}\n* - {@link Gp.Services.RouteResponse .RouteResponse()}\n*\n* > Services (factory)\n* - {@link module:Services~autoComplete .autoComplete()}\n* - {@link module:Services~geocode .geocode()}\n* - {@link module:Services~getAltitude .getAltitude()}\n* - {@link module:Services~getConfig .getConfig()}\n* - {@link module:Services~isoCurve .isoCurve()}\n* - {@link module:Services~reverseGeocode .reverseGeocode()}\n* - {@link module:Services~route .route()}\n*\n* > servicesDate : \"YYYY-MM-DD\"\n*\n* > servicesVersion : \"X.X.X\"\n*\n*/\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/** Version */\nvar servicesVersion = _package_json__WEBPACK_IMPORTED_MODULE_13__.version;\n/** Publication date */\nvar servicesDate = _package_json__WEBPACK_IMPORTED_MODULE_13__.date;\n\n// on declare les ns dans root global\nvar Gp = {};\nGp.servicesVersion = servicesVersion;\nGp.servicesDate = servicesDate;\n\n// Export Protocols\nGp.Protocols = {};\nGp.Protocols.XHR = _Protocols_XHR__WEBPACK_IMPORTED_MODULE_10__[\"default\"];\n// Export services\nGp.Services = _Services_Services__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n// Export DefaultUrls\nGp.Services.DefaultUrl = _Services_DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n// Export Alti\nGp.Services.AltiResponse = _Services_Alti_Response_model_AltiResponse__WEBPACK_IMPORTED_MODULE_2__[\"default\"];\nGp.Services.Alti = {};\nGp.Services.Alti.Elevation = _Services_Alti_Response_model_Elevation__WEBPACK_IMPORTED_MODULE_3__[\"default\"];\n// Export Autocomplete\nGp.Services.AutoCompleteResponse = _Services_AutoComplete_Response_model_AutoCompleteResponse__WEBPACK_IMPORTED_MODULE_4__[\"default\"];\nGp.Services.AutoComplete = {};\nGp.Services.AutoComplete.SuggestedLocation = _Services_AutoComplete_Response_model_SuggestedLocation__WEBPACK_IMPORTED_MODULE_5__[\"default\"];\n// Export Config\nGp.Services.Config = _Services_Config_Config__WEBPACK_IMPORTED_MODULE_9__[\"default\"];\n// Export IsoCurve\nGp.Services.IsoCurveResponse = _Services_ProcessIsoCurve_Response_model_ProcessIsoCurveResponse__WEBPACK_IMPORTED_MODULE_6__[\"default\"];\n// Export Route\nGp.Services.RouteResponse = _Services_Route_Response_model_RouteResponse__WEBPACK_IMPORTED_MODULE_7__[\"default\"];\nGp.Services.Route = {};\nGp.Services.Route.RouteInstruction = _Services_Route_Response_model_RouteInstruction__WEBPACK_IMPORTED_MODULE_8__[\"default\"];\n// Export Erreurs et Outils\nGp.Error = _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_11__[\"default\"];\nGp.Helper = _Utils_Helper__WEBPACK_IMPORTED_MODULE_12__[\"default\"];\n/* harmony default export */ __webpack_exports__[\"default\"] = (Gp);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8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91dGVcbkdwLlNlcnZpY2VzLlJvdXRlUmVzcG9uc2UgPSBSb3V0ZVJlc3BvbnNlO1xuR3AuU2VydmljZXMuUm91dGUgPSB7fTtcbkdwLlNlcnZpY2VzLlJvdXRlLlJvdXRlSW5zdHJ1Y3Rpb24gPSBSb3V0ZUluc3RydWN0aW9uO1xuLy8gRXhwb3J0IEVycmV1cnMgZXQgT3V0aWxzXG5HcC5FcnJvciA9IEVycm9yO1xuR3AuSGVscGVyID0gSGVscGVyO1xuXG5leHBvcnQgZGVmYXVsdCBHcDtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Gp.js\n"); + +/***/ }), + +/***/ "./src/Protocols/JSONP.js": +/*!********************************!*\ + !*** ./src/Protocols/JSONP.js ***! + \********************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/**\n * JSONP : Implémentation du protocole JSONP de la plateforme Géoportail\n *\n * @module JSONP\n * @private\n * @alias Gp.Protocols.JSONP\n */\n\n\n// cf. https://github.com/sobstel/jsonp.js\nvar JSONP = {\n /**\n * Construction d'un identifiant statique basé sur le timestamp,\n * et qui s'incremente de +1 à chaque appel\n */\n uuid: function () {\n var id = Math.floor(Date.now());\n return function () {\n return id++;\n };\n }(),\n /**\n * Cette fonction réalise l'appel du service fourni via le paramètre \"options.url\"\n * en mettant en œuvre le protocole JSONP.\n *\n * @method call\n * @static\n * @param {Object} options - parametres d'invocation du service en JSONP\n * @param {String} options.url - URL du service à invoquer (indépendamment du protocole JSONP).\n * Cette URL contient déjà les paramètres du service.\n * Si le paramètre dédié à la mise en oeuvre du protocole JSONP (callback=xxx) n'est pas présent, il est rajouté par la fonction ;\n * sa valeur est déterminée en fonction du paramètre callbackName.\n * @param {Number} [options.timeOut = 0] - Nombre de ms au bout duquel on considère que le service n'a pas répondu.\n * Une valeur de 0 pour ce paramètre permet de désactiver la gestion du timeOut.\n * @param {String} [options.callbackSuffix = null] - Suffixe de la fonction de callback à rajouter sur l'URL.\n * Si aucun suffixe n'est spécifié (cas par défaut), on utilisera l'identifiant this.uuid () comme suffixe. Ex: \"callback1458574396582 ()\"\n * @param {String} [options.callbackName = gp.protocol.jsonp] - Valeur du paramètre callback à rajouter sur l'URL.\n * Si l'URL fournie contient déjà le paramètre callback, le paramètre callbackName ne sera pas pris en compte.\n * La fonction de callback est créée dynamiquement par la fonction JSONP ;\n * elle a deux fonctions :\n * elle annule la condition de timeOut\n * puis appelle la fonction fournie par l'utilisateur via le paramètre onResponse.\n * @param {Function} options.onResponse - Nom de la fonction qui sera appelée lors de la réception des résultats du service.\n * Ce paramètre sera ignoré si l'URL contient déjà le paramètre callback.\n * La fonction de rappel appelée sera alors celle ayant pour nom la valeur de ce paramètre.\n * @param {Function} [options.onTimeOut] - Nom de la fonction qui sera appelée en cas de non réponse du service.\n * Le temps au bout duquel on considère que le service n'a pas répondu est déterminé par le paramètre timeOut.\n * @example\n * var options = {\n * url : 'http://localhost/some/test.json&callback=myResults',\n * timeOut : 100,\n * callbackName : 'myResults',\n * callbackSuffix : \"\",\n * onResponse : function (response) {\n * console.log('results : ', response);\n * },\n *\n * };\n * JSONP.call(options);\n */\n call: function call(options) {\n // logger\n var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"JSONP\");\n logger.trace(\"[JSONP::call ()]\");\n\n // analyse parametres\n\n if (!options) {\n logger.error(\"missing parameter : options !\");\n throw new Error(\"missing parameter : options !\");\n }\n if (!options.url) {\n logger.error(\"missing parameter : options.url !\");\n throw new Error(\"missing parameter : options.url !\");\n }\n if (!options.timeOut) {\n logger.info(\"setting 'options.timeOut' default value\");\n options.timeOut = 0;\n }\n\n // FIXME si un callback coté client a été mis en place,\n // cette condition sur cette methode n'a pas de sens !?\n if (!options.onResponse) {\n logger.error(\"missing parameter : options.onResponse !\");\n throw new Error(\"missing parameter : options.onResponse !\");\n // FIXME doit on definir un callback interne par defaut !?\n // options.onResponse = function (data) {\n // console.log(\"response callback (inner) : \", data);\n // };\n }\n\n // ID du callback à utiliser : null ou string.\n // si l'utilisateur a spécifié un suffixe pour le callback, on le récupère comme un ID (ex: options.callbackSuffix = \"\")\n // sinon, on utilise un timestamp : this.uuid ()\n var callbackId = typeof options.callbackSuffix === \"string\" ? options.callbackSuffix : this.uuid();\n\n // on recherche le parametre callback et son nom de fonction dans l'url\n var urlHasCallbackKey = false;\n var urlHasCallbackName = false;\n var idx = options.url.indexOf(\"callback=\");\n if (idx !== -1) {\n urlHasCallbackKey = true;\n // extraction callbackName de l'url : entre \"callback=\" et \"&\" ou fin de ligne\n var j = options.url.indexOf(\"&\", idx);\n if (j === -1) {\n j = options.url.length;\n }\n\n // on ecrase le parametre options.callbackName s'il avait été défini\n var callbackName = options.url.substring(idx + 9, j);\n if (callbackName) {\n urlHasCallbackName = true;\n options.callbackName = callbackName;\n logger.info(\"setting 'options.callbackName' value (\" + options.callbackName + \") from 'options.url' parameter\");\n }\n }\n\n // on ajoute le parametre callback dans l'URL s'il n'existe pas\n if (!urlHasCallbackKey) {\n // gestion des autres param. et \"?\"\n var k = options.url.indexOf(\"?\");\n if (k === -1) {\n // aucun param., ni de '?'\n options.url = options.url + \"?\" + \"callback=\";\n } else if (k === options.url.length) {\n // uniquement le '?'\n options.url = options.url + \"callback=\";\n } else {\n // le '?' et les param. existent\n options.url = options.url + \"&\" + \"callback=\";\n }\n logger.info(\"setting callback default key in 'options.url' : \" + options.url);\n }\n\n // utilisation de la fonction callback coté client ?\n var HasCallbackName = options.callbackName ? true : urlHasCallbackName;\n\n // on ajoute le nom de la fonction callback dans l'URL si elle n'existe pas\n if (!urlHasCallbackName) {\n // fonction callback par defaut\n if (!options.callbackName) {\n logger.info(\"setting 'options.callbackName' default value\");\n options.callbackName = \"callback\"; // ou \"gp.protocol.jsonp\" ?\n // info : si on ne veut pas gerer d'ID dans le callback,\n // options.callbackSuffix = \"\"\n if (callbackId || callbackId === \"\") {\n options.callbackName += callbackId;\n }\n }\n options.url = options.url.replace(\"callback=\", \"callback=\" + options.callbackName);\n logger.info(\"setting callback function name in 'options.url' : \" + options.url);\n }\n\n // timeOut par defaut\n if (!options.onTimeOut) {\n logger.info(\"setting 'options.onTimeOut' default value\");\n /** callback timeout par defaut */\n options.onTimeOut = function /* error */\n () {\n console.log(\"TimeOut while invoking url : \" + options.url);\n };\n }\n if (!HasCallbackName) {\n var self = this;\n\n // event du timeout\n var onTimeOutTrigger = null;\n\n // declenche le timeout si > à 0 !\n if (options.timeOut > 0) {\n onTimeOutTrigger = window.setTimeout(function () {\n /** fonction de reponse du service */\n window[options.callbackName] = function () {};\n options.onTimeOut();\n self._deleteScript(callbackId);\n }, options.timeOut);\n }\n\n // FIXME le nom de la fonction n'accepte pas de namespace !\n // ex. Gp.Function.callback\n /**\n * fonction de reponse du service\n * @param {Object} data - data\n * @private\n */\n window[options.callbackName] = function (data) {\n window.clearTimeout(onTimeOutTrigger);\n options.onResponse(data);\n self._deleteScript(callbackId);\n };\n }\n this._createScript(callbackId, options.url);\n },\n /**\n * create Script\n * @param {String} callbackId - callback Id\n * @param {String} url - url\n * @private\n */\n _createScript: function _createScript(callbackId, url) {\n var scriptu;\n var scripto = document.getElementById(\"results\" + callbackId);\n scriptu = document.createElement(\"script\");\n scriptu.setAttribute(\"type\", \"text/javascript\");\n scriptu.setAttribute(\"src\", url);\n scriptu.setAttribute(\"charset\", \"UTF-8\");\n scriptu.setAttribute(\"id\", \"results\" + callbackId);\n scriptu.setAttribute(\"async\", \"true\"); // FIXME async ?\n // head ou body ou autres ?\n var node = document.documentElement || document.getElementsByTagName(\"head\")[0];\n if (scripto === null) {\n node.appendChild(scriptu);\n } else {\n // s'il existe déjà, on le remplace !\n node.replaceChild(scriptu, scripto);\n }\n },\n /**\n * delete Script\n * @param {String} callbackId - callback Id\n * @private\n */\n _deleteScript: function _deleteScript(callbackId) {\n var script = document.getElementById(\"results\" + callbackId);\n if (script) {\n var node = script.parentNode || document.documentElement;\n if (!node) {\n return;\n }\n node.removeChild(script);\n }\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (JSONP);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9Qcm90b2NvbHMvSlNPTlAuanM/ZjVlYyJdLCJuYW1lcyI6WyJKU09OUCIsInV1aWQiLCJpZCIsIk1hdGgiLCJmbG9vciIsIkRhdGUiLCJub3ciLCJjYWxsIiwib3B0aW9ucyIsImxvZ2dlciIsIkxvZ2dlciIsImdldExvZ2dlciIsInRyYWNlIiwiZXJyb3IiLCJFcnJvciIsInVybCIsInRpbWVPdXQiLCJpbmZvIiwib25SZXNwb25zZSIsImNhbGxiYWNrSWQiLCJjYWxsYmFja1N1ZmZpeCIsInVybEhhc0NhbGxiYWNrS2V5IiwidXJsSGFzQ2FsbGJhY2tOYW1lIiwiaWR4IiwiaW5kZXhPZiIsImoiLCJsZW5ndGgiLCJjYWxsYmFja05hbWUiLCJzdWJzdHJpbmciLCJrIiwiSGFzQ2FsbGJhY2tOYW1lIiwicmVwbGFjZSIsIm9uVGltZU91dCIsImNvbnNvbGUiLCJsb2ciLCJzZWxmIiwib25UaW1lT3V0VHJpZ2dlciIsIndpbmRvdyIsInNldFRpbWVvdXQiLCJfZGVsZXRlU2NyaXB0IiwiZGF0YSIsImNsZWFyVGltZW91dCIsIl9jcmVhdGVTY3JpcHQiLCJzY3JpcHR1Iiwic2NyaXB0byIsImRvY3VtZW50IiwiZ2V0RWxlbWVudEJ5SWQiLCJjcmVhdGVFbGVtZW50Iiwic2V0QXR0cmlidXRlIiwibm9kZSIsImRvY3VtZW50RWxlbWVudCIsImdldEV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uICAgICAgICAgICAgICAgIGlmIChjYWxsYmFja0lkIHx8IGNhbGxiYWNrSWQgPT09IFwiXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5jYWxsYmFja05hbWUgKz0gY2FsbGJhY2tJZDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBvcHRpb25zLnVybCA9IG9wdGlvbnMudXJsLnJlcGxhY2UoXCJjYWxsYmFjaz1cIiwgXCJjYWxsYmFjaz1cIiArIG9wdGlvbnMuY2FsbGJhY2tOYW1lKTtcbiAgICAgICAgICAgIGxvZ2dlci5pbmZvKFwic2V0dGluZyBjYWxsYmFjayBmdW5jdGlvbiBuYW1lIGluICdvcHRpb25zLnVybCcgOiBcIiArIG9wdGlvbnMudXJsKTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIHRpbWVPdXQgcGFyIGRlZmF1dFxuICAgICAgICBpZiAoIW9wdGlvbnMub25UaW1lT3V0KSB7XG4gICAgICAgICAgICBsb2dnZXIuaW5mbyhcInNldHRpbmcgJ29wdGlvbnMub25UaW1lT3V0JyBkZWZhdWx0IHZhbHVlXCIpO1xuICAgICAgICAgICAgLyoqIGNhbGxiYWNrIHRpbWVvdXQgcGFyIGRlZmF1dCAqL1xuICAgICAgICAgICAgb3B0aW9ucy5vblRpbWVPdXQgPSBmdW5jdGlvbiAoLyogZXJyb3IgKi8pIHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIlRpbWVPdXQgd2hpbGUgaW52b2tpbmcgdXJsIDogXCIgKyBvcHRpb25zLnVybCk7XG4gICAgICAgICAgICB9O1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCFIYXNDYWxsYmFja05hbWUpIHtcbiAgICAgICAgICAgIHZhciBzZWxmID0gdGhpcztcblxuICAgICAgICAgICAgLy8gZXZlbnQgZHUgdGltZW91dFxuICAgICAgICAgICAgdmFyIG9uVGltZU91dFRyaWdnZXIgPSBudWxsO1xuXG4gICAgICAgICAgICAvLyBkZWNsZW5jaGUgbGUgdGltZW91dCBzaSA+IMOgIDAgIVxuICAgICAgICAgICAgaWYgKG9wdGlvbnMudGltZU91dCA+IDApIHtcbiAgICAgICAgICAgICAgICBvblRpbWVPdXRUcmlnZ2VyID0gd2luZG93LnNldFRpbWVvdXQoXG4gICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8qKiBmb25jdGlvbiBkZSByZXBvbnNlIGR1IHNlcnZpY2UgKi9cbiAgICAgICAgICAgICAgICAgICAgICAgIHdpbmRvd1tvcHRpb25zLmNhbGxiYWNrTmFtZV0gPSBmdW5jdGlvbiAoKSB7fTtcbiAgICAgICAgICAgICAgICAgICAgICAgIG9wdGlvbnMub25UaW1lT3V0KCk7XG4gICAgICAgICAgICAgICAgICAgICAgICBzZWxmLl9kZWxldGVTY3JpcHQoY2FsbGJhY2tJZCk7XG4gICAgICAgICAgICAgICAgICAgIH0sIG9wdGlvbnMudGltZU91dCk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIC8vIEZJWE1FIGxlIG5vbSBkZSBsYSBmb25jdGlvbiBuJ2FjY2VwdGUgcGFzIGRlIG5hbWVzcGFjZSAhXG4gICAgICAgICAgICAvLyBleC4gR3AuRnVuY3Rpb24uY2FsbGJhY2tcbiAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgKiBmb25jdGlvbiBkZSByZXBvbnNlIGR1IHNlcnZpY2VcbiAgICAgICAgICAgICogQHBhcmFtIHtPYmplY3R9IGRhdGEgLSBkYXRhXG4gICAgICAgICAgICAqIEBwcml2YXRlXG4gICAgICAgICAgICAqL1xuICAgICAgICAgICAgd2luZG93W29wdGlvbnMuY2FsbGJhY2tOYW1lXSA9IGZ1bmN0aW9uIChkYXRhKSB7XG4gICAgICAgICAgICAgICAgd2luZG93LmNsZWFyVGltZW91dChvblRpbWVPdXRUcmlnZ2VyKTtcbiAgICAgICAg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BvdSBib2R5IG91IGF1dHJlcyA/XG4gICAgICAgIHZhciBub2RlID0gZG9jdW1lbnQuZG9jdW1lbnRFbGVtZW50IHx8IGRvY3VtZW50LmdldEVsZW1lbnRzQnlUYWdOYW1lKFwiaGVhZFwiKVswXTtcbiAgICAgICAgaWYgKHNjcmlwdG8gPT09IG51bGwpIHtcbiAgICAgICAgICAgIG5vZGUuYXBwZW5kQ2hpbGQoc2NyaXB0dSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAvLyBzJ2lsIGV4aXN0ZSBkw6lqw6AsIG9uIGxlIHJlbXBsYWNlICFcbiAgICAgICAgICAgIG5vZGUucmVwbGFjZUNoaWxkKHNjcmlwdHUsIHNjcmlwdG8pO1xuICAgICAgICB9XG4gICAgfSxcblxuICAgIC8qKlxuICAgICogZGVsZXRlIFNjcmlwdFxuICAgICogQHBhcmFtIHtTdHJpbmd9IGNhbGxiYWNrSWQgLSBjYWxsYmFjayBJZFxuICAgICogQHByaXZhdGVcbiAgICAqL1xuICAgIF9kZWxldGVTY3JpcHQgOiBmdW5jdGlvbiAoY2FsbGJhY2tJZCkge1xuICAgICAgICB2YXIgc2NyaXB0ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoXCJyZXN1bHRzXCIgKyBjYWxsYmFja0lkKTtcbiAgICAgICAgaWYgKHNjcmlwdCkge1xuICAgICAgICAgICAgdmFyIG5vZGUgPSBzY3JpcHQucGFyZW50Tm9kZSB8fCBkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQ7XG4gICAgICAgICAgICBpZiAoIW5vZGUpIHtcbiAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBub2RlLnJlbW92ZUNoaWxkKHNjcmlwdCk7XG4gICAgICAgIH1cbiAgICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBKU09OUDtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Protocols/JSONP.js\n"); + +/***/ }), + +/***/ "./src/Protocols/Protocol.js": +/*!***********************************!*\ + !*** ./src/Protocols/Protocol.js ***! + \***********************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_Helper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Utils/Helper */ \"./src/Utils/Helper.js\");\n/* harmony import */ var _XHR__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./XHR */ \"./src/Protocols/XHR.js\");\n/* harmony import */ var _JSONP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./JSONP */ \"./src/Protocols/JSONP.js\");\n/**\n * Interface de dialogue avec les webservices\n *\n * @module Protocols\n * @private\n * @alias Gp.Protocols\n */\n\n\n\nvar Protocol = {\n /**\n * Interface unique d\"envoi d\"une requête.\n *\n * @method send\n * @static\n * @param {Object} options - options generales\n * @param {String} options.url - url du service\n * @param {String} options.method - GET, POST, PUT, DELETE\n * @param {String} options.protocol - XHR | JSONP\n * @param {String} options.format - format de la reponse du service : json, xml ou null (brute)...\n * @param {String} options.wrap - encapsuler la reponse du service dans du JSON : true|false (true par defaut sur le protocole JSONP)\n * @param {String} options.callbackSuffix - suffixe de la fonction de callback (JSONP uniquement) (ex: si callbackSuffix=\"\", la fonction s'appellera \"callback\")\n * @param {String} options.timeOut - 0 ms\n * @param {Boolean} options.nocache - true|false\n * @param {Object|String} options.data - content (post) ou param (get)\n * @param {Object|String} options.headers - (post) ex. referer\n * @param {Object|String} options.content - (post) ex. \"application/json\"\n * @param {String} options.scope - this (TODO)\n * @param {Function} options.onResponse - callback\n * @param {Function} options.onFailure - callback\n * @param {Function} options.onTimeOut - callback\n * @param {String} options.proxyUrl - (TODO)\n */\n send: function send(options) {\n // INFO\n // \"output\" - param est interne à la classe \"Protocol\" (parametrable via \"wrap\"), et à ajouter à l\"url\n // ce param est independant du service car il est géré par le filtre LUA :\n // ex. json|xml (json par defaut).\n // Ce param. permet d\"encapsuler du XML dans du JSON :\n // {http : {status:200, error:null},xml :\"réponse du service\"}\n // Utile pour les services qui ne repondent que du XML (ex. Geocodage)\n //\n // |-------------------------------------------------|\n // | \\service | | | |\n // | output\\ format| json | xml | remarques |\n // |--------\\------|------|-----|--------------------|\n // | json | json | json| json/xml encapsulé |\n // | xml | json | xml | param inactif |\n // |-------------------------------------------------|\n // ex. le service demande une reponse native au \"format\" json et avec un \"output\" json.\n // on a donc une reponse json encapsulé dans un json : ce qu'on ne souhaite pas !\n // dans ce cas on ne renseigne pas output=json\n\n // INFO\n // \"wrap\" - choix d\"encapsuler ou non les reponses dans du JSON.\n // Par defaut, on encapsule uniquement les reponses sur le protocole JSONP (et qui sont en xml) !\n\n // INFO\n // \"callback\" - param est interne à la classe \"Protocol\" (non parametrable), et à ajouter à l\"url\n // ce param est independant du service car il est géré aussi par le filtre LUA :\n // ex. callback|null\n // Ce param. permet de renvoyer une reponse javascript :\n // callback ({http : {status:200, error:null},xml :\"réponse du service\"})\n // Ce param. est non renseigné par defaut car pour du JSONP, on utilise le\n // le protocol JSONP, et ce dernier implemente déjà le callback !\n\n // settings par defaut\n var settings = options || {\n method: \"GET\",\n // protocol : \"JSONP\",\n protocol: \"XHR\",\n timeOut: 0,\n format: null,\n wrap: true,\n nocache: true,\n output: \"json\",\n callback: null,\n callbackSuffix: null\n };\n\n // on determine l'environnement d'execution : browser ou non ?\n // et on stoppe pour nodeJS... sur un protocole JSONP !\n if (typeof window === \"undefined\" && options.protocol === \"JSONP\") {\n console.log(\"Value (s) for parameter (s) 'protocol=JSONP (instead use XHR)' not supported to NodeJS\");\n return;\n }\n if (options.protocol === \"XHR\" || options.format === \"json\") {\n settings.wrap = false;\n } else if (options.protocol === \"JSONP\" && options.format === \"xml\") {\n settings.wrap = true;\n }\n settings.callback = null; // FIXME non géré !?\n settings.output = settings.wrap ? \"json\" : null;\n\n // on encapsule les reponses dans un objet JSON\n if (settings.wrap) {\n var params = {};\n params.output = settings.output;\n params.callback = settings.callback;\n delete params.callback; // FIXME non géré !?\n settings.url = _Utils_Helper__WEBPACK_IMPORTED_MODULE_0__[\"default\"].normalyzeUrl(options.url, params);\n }\n\n // choix de l\"implementation :\n // XHR ou JSONP\n switch (settings.protocol) {\n case \"XHR\":\n // on normalise l'url (gestion du cache)\n if (options.method === \"GET\" && options.nocache) {\n settings.url = _Utils_Helper__WEBPACK_IMPORTED_MODULE_0__[\"default\"].normalyzeUrl(settings.url, {\n t: new Date().getTime()\n });\n }\n // appel du service en XHR\n _XHR__WEBPACK_IMPORTED_MODULE_1__[\"default\"].call(settings);\n break;\n case \"JSONP\":\n // on normalise l'url si les params. sont renseignés dans la string|object \"data\"\n if (settings.data) {\n settings.url = _Utils_Helper__WEBPACK_IMPORTED_MODULE_0__[\"default\"].normalyzeUrl(settings.url, settings.data);\n }\n\n // appel du service en JSONP\n _JSONP__WEBPACK_IMPORTED_MODULE_2__[\"default\"].call(settings);\n break;\n default:\n throw new Error(\"protocol not supported (XHR|JSONP) !\");\n }\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Protocol);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9Qcm90b2NvbHMvUHJvdG9jb2wuanM/YTE4MyJdLCJuYW1lcyI6WyJQcm90b2NvbCIsInNlbmQiLCJvcHRpb25zIiwic2V0dGluZ3MiLCJtZXRob2QiLCJwcm90b2NvbCIsInRpbWVPdXQiLCJmb3JtYXQiLCJ3cmFwIiwibm9jYWNoZSIsIm91dHB1dCIsImNhbGxiYWNrIiwiY2FsbGJhY2tTdWZmaXgiLCJ3aW5kb3ciLCJjb25zb2xlIiwibG9nIiwicGFyYW1zIiwidXJsIiwiSGVscGVyIiwibm9ybWFseXplVXJsIiwidCIsIkRhdGUiLCJnZXRUaW1l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ZXJyb3I6bnVsbH0seG1sIDpcInLDqXBvbnNlIGR1IHNlcnZpY2VcIn0pXG4gICAgICAgIC8vICAgICAgICAgIENlIHBhcmFtLiBlc3Qgbm9uIHJlbnNlaWduw6kgcGFyIGRlZmF1dCBjYXIgcG91ciBkdSBKU09OUCwgb24gdXRpbGlzZSBsZVxuICAgICAgICAvLyAgICAgICAgICBsZSBwcm90b2NvbCBKU09OUCwgZXQgY2UgZGVybmllciBpbXBsZW1lbnRlIGTDqWrDoCBsZSBjYWxsYmFjayAhXG5cbiAgICAgICAgLy8gc2V0dGluZ3MgcGFyIGRlZmF1dFxuICAgICAgICB2YXIgc2V0dGluZ3MgPSBvcHRpb25zIHx8IHtcbiAgICAgICAgICAgIG1ldGhvZCA6IFwiR0VUXCIsXG4gICAgICAgICAgICAvLyBwcm90b2NvbCA6IFwiSlNPTlBcIixcbiAgICAgICAgICAgIHByb3RvY29sIDogXCJYSFJcIixcbiAgICAgICAgICAgIHRpbWVPdXQgOiAwLFxuICAgICAgICAgICAgZm9ybWF0IDogbnVsbCxcbiAgICAgICAgICAgIHdyYXAgOiB0cnVlLFxuICAgICAgICAgICAgbm9jYWNoZSA6IHRydWUsXG4gICAgICAgICAgICBvdXRwdXQgOiBcImpzb25cIixcbiAgICAgICAgICAgIGNhbGxiYWNrIDogbnVsbCxcbiAgICAgICAgICAgIGNhbGxiYWNrU3VmZml4IDogbnVsbFxuICAgICAgICB9O1xuXG4gICAgICAgIC8vIG9uIGRldGVybWluZSBsJ2Vudmlyb25uZW1lbnQgZCdleGVjdXRpb24gOiBicm93c2VyIG91IG5vbiA/XG4gICAgICAgIC8vIGV0IG9uIHN0b3BwZSBwb3VyIG5vZGVKUy4uLiBzdXIgdW4gcHJvdG9jb2xlIEpTT05QICFcbiAgICAgICAgaWYgKHR5cGVvZiB3aW5kb3cgPT09IFwidW5kZWZpbmVkXCIgJiYgb3B0aW9ucy5wcm90b2NvbCA9PT0gXCJKU09OUFwiKSB7XG4gICAgICAgICA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wYXJhbXMpO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gY2hvaXggZGUgbFwiaW1wbGVtZW50YXRpb24gOlxuICAgICAgICAvLyBYSFIgb3UgSlNPTlBcbiAgICAgICAgc3dpdGNoIChzZXR0aW5ncy5wcm90b2NvbCkge1xuICAgICAgICAgICAgY2FzZSBcIlhIUlwiOlxuICAgICAgICAgICAgICAgIC8vIG9uIG5vcm1hbGlzZSBsJ3VybCAoZ2VzdGlvbiBkdSBjYWNoZSlcbiAgICAgICAgICAgICAgICBpZiAob3B0aW9ucy5tZXRob2QgPT09IFwiR0VUXCIgJiYgb3B0aW9ucy5ub2NhY2hlKSB7XG4gICAgICAgICAgICAgICAgICAgIHNldHRpbmdzLnVybCA9IEhlbHBlci5ub3JtYWx5emVVcmwoc2V0dGluZ3MudXJsLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0IDogbmV3IERhdGUoKS5nZXRUaW1lKClcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIC8vIGFwcGVsIGR1IHNlcnZpY2UgZW4gWEhSXG4gICAgICAgICAgICAgICAgWEhSLmNhbGwoc2V0dGluZ3MpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcIkpTT05QXCI6XG5cbiAgICAgICAgICAgICAgICAvLyBvbiBub3JtYWxpc2UgbCd1cmwgc2kgbGVzIHBhcmFtcy4gc29udCByZW5zZWlnbsOpcyBkYW5zIGxhIHN0cmluZ3xvYmplY3QgXCJkYXRhXCJcbiAgICAgICAgICAgICAgICBpZiAoc2V0dGluZ3MuZGF0YSkge1xuICAgICAgICAgICAgICAgICAgICBzZXR0aW5ncy51cmwgPSBIZWxwZXIubm9ybWFseXplVXJsKHNldHRpbmdzLnVybCwgc2V0dGluZ3MuZGF0YSk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgLy8gYXBwZWwgZHUgc2VydmljZSBlbiBKU09OUFxuICAgICAgICAgICAgICAgIEpTT05QLmNhbGwoc2V0dGluZ3MpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXCJwcm90b2NvbCBub3Qgc3VwcG9ydGVkIChYSFJ8SlNPTlApICFcIik7XG4gICAgICAgIH1cbiAgICB9XG5cbn07XG5cbmV4cG9ydCBkZWZhdWx0IFByb3RvY29sO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/Protocols/Protocol.js\n"); + +/***/ }), + +/***/ "./src/Protocols/XHR.js": +/*!******************************!*\ + !*** ./src/Protocols/XHR.js ***! + \******************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_Helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Utils/Helper */ \"./src/Utils/Helper.js\");\n/* harmony import */ var es6_promise__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! es6-promise */ \"./node_modules/es6-promise/dist/es6-promise.js\");\n/* harmony import */ var es6_promise__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(es6_promise__WEBPACK_IMPORTED_MODULE_2__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n/* global Promise, require, XDomainRequest */\n\n\n\n\n// import __request from \"request\";\n// import __xmldom from \"xmldom\";\n\n/**\n * Ajax Request (use of Promises)\n *\n * @module XHR\n * @alias Gp.Protocols.XHR\n * @see dependance 'es6-promise'\n */\n\n// cf. https://xhr.spec.whatwg.org/\n// cf. https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest\n\nvar XHR = {\n /**\n * Interface unique d'envoi d'une requête.\n *\n * @method call\n * @static\n * @param {Object} settings - options generales\n * @param {String} settings.url - url du service\n * @param {String} settings.method - GET, POST, PUT, DELETE\n * @param {String} settings.format - format de la reponse du service : json, xml ou null (brute)\n * @param {String} settings.data - content (post) ou param (get)\n * @param {String} settings.proxy - proxy url\n * @param {Object|String} settings.headers - (post) ex. referer\n * @param {Object|String} settings.content - (post) ex. 'application/json'\n * @param {String} settings.timeOut - timeout = 0 par defaut\n * @param {String} settings.scope - this\n * @param {Function} settings.onResponse - callback\n * @param {Function} settings.onFailure - callback\n */\n call: function call(settings) {\n // logger\n var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"XHR\");\n logger.trace(\"[XHR::call()]\");\n\n // FIXME\n // To polyfill the global environment\n es6_promise__WEBPACK_IMPORTED_MODULE_2___default.a.polyfill();\n\n // test sur les settings obligatoires\n if (!settings.url) {\n throw new Error(\"missing parameter : url is not defined !\");\n }\n if (!settings.method) {\n throw new Error(\"missing parameter : method is not defined !\");\n }\n if (!settings.format) {\n settings.format = \"text\"; // reponse brute !\n }\n var options = {};\n options.url = settings.url;\n options.data = settings.data ? settings.data : null;\n options.method = settings.method;\n options.timeOut = settings.timeOut || 0;\n options.scope = settings.scope || this;\n options.proxy = settings.proxy || null;\n options.content = settings.content || null;\n options.headers = settings.headers || {\n referer: \"http://localhost\"\n };\n\n // test sur les valeurs de 'settings.method'\n switch (settings.method) {\n case \"DELETE\":\n case \"GET\":\n break;\n case \"PUT\":\n case \"POST\":\n // on force sur ces params spécifiques au mode POST\n options.content = settings.content ? settings.content : \"application/x-www-form-urlencoded\"; // FIXME en attente des services : bascule en \"application/xml\" ou \"application/json\"\n options.headers = settings.headers ? settings.headers : {\n referer: \"http://localhost\"\n }; // FIXME parametrable...\n break;\n case \"HEAD\":\n case \"OPTIONS\":\n throw new Error(\"HTTP method not yet supported !\");\n default:\n throw new Error(\"HTTP method unknown !\");\n }\n\n // test sur les valeurs de 'settings.format'\n switch (settings.format) {\n case \"text\":\n this.__call(options).then(function (response) {\n logger.trace(response);\n settings.onResponse.call(this, response);\n })[\"catch\"](function (error) {\n settings.onFailure.call(this, error);\n });\n break;\n case \"json\":\n this.__callJSON(options).then(function (response) {\n logger.trace(response);\n settings.onResponse.call(this, response);\n })[\"catch\"](function (error) {\n settings.onFailure.call(this, error);\n });\n break;\n case \"xml\":\n this.__callXML(options).then(function (response) {\n logger.trace(response);\n settings.onResponse.call(this, response);\n })[\"catch\"](function (error) {\n settings.onFailure.call(this, error);\n });\n break;\n default:\n throw new Error(\"This output Format is not yet supported !\");\n }\n },\n /**\n * Requete\n *\n * @method __call\n * @private\n * @param {Object} options - options\n * @return {Object} promise\n */\n __call: function __call(options) {\n var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"XHR\");\n logger.trace(\"[XHR::__call()]\");\n var promise = new Promise(function (resolve, reject) {\n // traitement du corps de la requête\n var corps = options.method === \"POST\" || options.method === \"PUT\" ? 1 : 0;\n\n // seulement si options.data n'est pas vide (peut être un objet ou une chaine de caractères)\n if (options.data && (_typeof(options.data) === \"object\" && Object.keys(options.data).length || typeof options.data === \"string\" && options.data.length) && !corps) {\n options.url = _Utils_Helper__WEBPACK_IMPORTED_MODULE_1__[\"default\"].normalyzeUrl(options.url, options.data);\n }\n logger.trace(\"URL = \", options.url);\n var hXHR = null;\n\n // test on env. nodejs or browser\n if (typeof window === \"undefined\") {\n var nodefetch = __webpack_require__(/*! node-fetch */ \"node-fetch\");\n var opts = {\n headers: {\n Referer: \"https://localhost\"\n }\n };\n if (options.data && typeof options.data === \"string\" && corps) {\n opts = {\n method: options.method,\n body: options.data,\n headers: {\n \"Content-Type\": options.content,\n Referer: \"https://localhost\"\n }\n };\n }\n return nodefetch(options.url, opts).then(function (response) {\n if (response.ok) {\n // res.status >= 200 && res.status < 300\n resolve(response.text());\n } else {\n var message = \"Errors Occured on Http Request (status : '\" + response.statusText + \"' | url : '\" + response.url + \"')\";\n var status = response.status;\n reject({\n message: message,\n status: status\n });\n }\n })[\"catch\"](function (e) {\n reject({\n message: e,\n status: -1\n });\n });\n } else {\n if (window.XMLHttpRequest) {\n logger.trace(\"XMLHttpRequest\");\n hXHR = new XMLHttpRequest();\n hXHR.open(options.method, options.url, true); // async\n hXHR.overrideMimeType = options.content;\n\n // gestion du timeout\n var onTimeOutTrigger = null;\n if (options.timeOut > 0) {\n // FIXME le timeout interne ne me permet pas de declencher le bon message...\n // hXHR.timeout = options.timeOut;\n logger.trace(\"XHR - TimeOut actif !\");\n /**\n * Description\n *\n * @method onTimeOutTrigger\n * @private\n */\n onTimeOutTrigger = window.setTimeout(function () {\n var message = \"TimeOut Occured on Http Request with XMLHttpRequest !\";\n reject({\n message: message,\n status: -1\n });\n }, options.timeOut);\n }\n if (corps) {\n // headers, data, content of data\n // cf. https://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#dom-xmlhttprequest-setrequestheader\n logger.trace(\"data = \", options.data);\n hXHR.setRequestHeader(\"Content-type\", options.content);\n // FIXME refused to set unsafe header content-length javascript\n // hXHR.setRequestHeader (\"Content-length\", options.data.length);\n // hXHR.setRequestHeader (\"Referer\", options.headers.referer);\n }\n\n /**\n * On Error\n * FIXME ne se declenche pas !?\n *\n * @param {Object} e - Event\n * @method onerror\n * @private\n */\n hXHR.onerror = function (e) {\n console.log(e);\n reject(new Error(\"Errors Occured on Http Request with XMLHttpRequest !\"));\n };\n\n /**\n * On Timeout\n * FIXME ne se declenche pas !?\n *\n * @param {Object} e - Event\n * @method ontimeout\n * @private\n */\n hXHR.ontimeout = function (e) {\n console.log(e);\n reject(new Error(\"TimeOut Occured on Http Request with XMLHttpRequest !\"));\n };\n\n /**\n * Description\n *\n * @method onreadystatechange\n * @private\n */\n hXHR.onreadystatechange = function (e) {\n if (hXHR.readyState === 4) {\n // DONE\n if (hXHR.status === 200) {\n window.clearTimeout(onTimeOutTrigger);\n resolve(hXHR.response);\n } else {\n var message = \"Errors Occured on Http Request (status : '\" + e.target.statusText + \"' | url : '\" + e.target.responseURL + \"' | response : '\" + e.target.response + \"')\";\n var status = e.target.status;\n reject({\n message: message,\n status: status\n });\n }\n }\n };\n\n // gestion du content data\n var data4xhr = options.data && corps ? options.data : null;\n hXHR.send(data4xhr);\n } else if (window.XDomainRequest) {\n // worked in Internet Explorer 8–10 only !\n logger.trace(\"XDomainRequest\");\n hXHR = new XDomainRequest();\n hXHR.open(options.method, options.url);\n hXHR.overrideMimeType = options.content;\n if (options.timeOut > 0) {\n hXHR.timeout = options.timeout;\n logger.trace(\"XHR - TimeOut actif !\");\n }\n if (corps) {\n // headers, data, content of data\n // cf. https://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#dom-xmlhttprequest-setrequestheader\n hXHR.setRequestHeader(\"Content-type\", options.content);\n // FIXME refused to set unsafe header content-length javascript\n // hXHR.setRequestHeader (\"Content-length\", options.data.length);\n // hXHR.setRequestHeader (\"Referer\", options.headers.referer);\n }\n\n /**\n * Description\n *\n * @method onerror\n * @private\n */\n hXHR.onerror = function () {\n reject(new Error(\"Errors Occured on Http Request with XMLHttpRequest !\"));\n };\n\n /**\n * Description\n *\n * @method ontimeout\n * @private\n */\n hXHR.ontimeout = function () {\n reject(new Error(\"TimeOut Occured on Http Request with XMLHttpRequest !\"));\n };\n\n /**\n * On Load\n *\n * @method onload\n * @private\n */\n hXHR.onload = function (e) {\n if (hXHR.status === 200) {\n resolve(hXHR.responseText);\n } else {\n var message = \"Errors Occured on Http Request (status : '\" + e.target.statusText + \"' | url : '\" + e.target.responseURL + \"')\";\n var status = e.target.status;\n reject({\n message: message,\n status: status\n });\n }\n };\n var data4xdr = options.data && corps ? options.data : null;\n hXHR.send(data4xdr);\n } else {\n throw new Error(\"CORS not supported\");\n }\n }\n });\n return promise;\n },\n /**\n * Requete avec parser JSON\n *\n * @method __callJSON\n * @private\n * @param {Object} options - options\n * @return {Object} promise\n */\n __callJSON: function __callJSON(options) {\n return this.__call(options).then(JSON.parse)[\"catch\"](function (error) {\n console.log(\"_callJSON failed on : \", options.url, error);\n // FIXME pas d'exception, laissons le fil se derouler...\n // throw error;\n });\n },\n /**\n * Requete avec parser XML\n *\n * @method __callXML\n * @private\n * @param {Object} options - options\n * @return {Object} promise\n */\n __callXML: function __callXML(options) {\n return this.__call(options).then(function (response) {\n var xmlDoc;\n\n // test on env. nodejs or browser\n if (typeof window === \"undefined\") {\n var DOMParser = __webpack_require__(/*! @xmldom/xmldom */ \"./node_modules/@xmldom/xmldom/lib/index.js\").DOMParser; // __xmldom.DOMParser\n xmlDoc = new DOMParser().parseFromString(response, \"text/xml\");\n } else {\n if (window.DOMParser) {\n var parser = new window.DOMParser();\n xmlDoc = parser.parseFromString(response, \"text/xml\");\n } else {\n // IE\n xmlDoc = new window.ActiveXObject(\"Microsoft.XMLDOM\");\n xmlDoc.async = false;\n xmlDoc.loadXML(response);\n }\n }\n return xmlDoc;\n })[\"catch\"](function (error) {\n console.log(\"__callXML failed on : \", options.url, error);\n // FIXME pas d'exception, laissons le fil se derouler...\n // throw error;\n });\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (XHR);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9Qcm90b2NvbHMvWEhSLmpzPzgzNGIiXSwibmFtZXMiOlsiWEhSIiwiY2FsbCIsInNldHRpbmdzIiwibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwidHJhY2UiLCJFUzZQcm9taXNlIiwicG9seWZpbGwiLCJ1cmw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SlcbiAgICAgICAgICAgICAgICAgICAgLmNhdGNoKGZ1bmN0aW9uIChlcnJvcikge1xuICAgICAgICAgICAgICAgICAgICAgICAgc2V0dGluZ3Mub25GYWlsdXJlLmNhbGwodGhpcywgZXJyb3IpO1xuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgXCJqc29uXCI6XG4gICAgICAgICAgICAgICAgdGhpcy5fX2NhbGxKU09OKG9wdGlvbnMpXG4gICAgICAgICAgICAgICAgICAgIC50aGVuKGZ1bmN0aW9uIChyZXNwb25zZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgbG9nZ2VyLnRyYWNlKHJlc3BvbnNlKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHNldHRpbmdzLm9uUmVzcG9uc2UuY2FsbCh0aGlzLCByZXNwb25zZSk7XG4gICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgIC5jYXRjaChmdW5jdGlvbiAoZXJyb3IpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHNldHRpbmdzLm9uRmFpbHVyZS5jYWxsKHRoaXMsIGVycm9yKTtcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlIFwieG1sXCI6XG4gICAgICAgICAgICAgICAgdGhpcy5fX2NhbGxYTUwob3B0aW9ucylcbiAgICAgICAgICAgICAgICAgICAgLnRoZW4oZnVuY3Rpb24gKHJlc3BvbnNlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIudHJhY2UocmVzcG9uc2UpO1xuICAgICAgICAgICAgICAgICAgICAgICAgc2V0dGluZ3Mub25SZXNwb25zZS5jYWxsKHRoaXMsIHJlc3BvbnNlKTtcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgLmNhdGNoKGZ1bmN0aW9uIChlcnJvcikge1x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SBjaGFpbmUgZGUgY2FyYWN0w6hyZXMpXG4gICAgICAgICAgICAgICAgaWYgKG9wdGlvbnMuZGF0YSAmJiAoKHR5cGVvZiBvcHRpb25zLmRhdGEgPT09IFwib2JqZWN0XCIgJiYgT2JqZWN0LmtleXMob3B0aW9ucy5kYXRhKS5sZW5ndGgpIHx8ICh0eXBlb2Ygb3B0aW9ucy5kYXRhID09PSBcInN0cmluZ1wiICYmIG9wdGlvbnMuZGF0YS5sZW5ndGgpKSAmJiAhY29ycHMpIHtcbiAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy51cmwgPSBIZWxwZXIubm9ybWFseXplVXJsKG9wdGlvbnMudXJsLCBvcHRpb25zLmRhdGEpO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGxvZ2dlci50cmFjZShcIlVSTCA9IFwiLCBvcHRpb25zLnVybCk7XG5cbiAgICAgICAgICAgICAgICB2YXIgaFhIUiA9IG51bGw7XG5cbiAgICAgICAgICAgICAgICAvLyB0ZXN0IG9uIGVudi4gbm9kZWpzIG9yIGJyb3dzZXJcbiAgICAgICAgICAgICAgICBpZiAodHlwZW9mIHdpbmRvdyA9PT0gXCJ1bmRlZmluZWRcIikge1xuICAgICAgICAgICAgICAgICAgICB2YXIgbm9kZWZldGNoID0gcmVxdWlyZShcIm5vZGUtZmV0Y2hcIik7XG5cbiAgICAgICAgICAgICAgICAgICAgdmFyIG9wdHMgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBoZWFkZXJzIDoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFJlZmVyZXIgOiBcImh0dHBzOi8vbG9jYWxob3N0XCJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgICAgICAgICBpZiAob3B0aW9ucy5kYXRhICYmIHR5cGVvZiBvcHRpb25zLmRhdGEgPT09IFwic3RyaW5nXCIgJiYgY29ycHMpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG9wdHMgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbWV0aG9kIDogb3B0aW9ucy5tZXRob2QsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYm9keSA6IG9wdGlvbnMuZGF0YSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoZWFkZXJzIDoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIkNvbnRlbnQtVHlwZVwiIDogb3B0aW9ucy5jb250ZW50LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBSZWZlcmVyIDogXCJodHRwczovL2xvY2FsaG9zdFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBub2RlZmV0Y2gob3B0aW9ucy51cmwsIG9wdHMpXG4gICAgICAgICAgICAgICAgICAgICAgICAudGhlbihmdW5jdGlvbiAocmVzcG9uc2UpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAocmVzcG9uc2Uub2spIHsgLy8gcmVzLnN0YXR1cyA+PSAyMDAgJiYgcmVzLnN0YXR1cyA8IDMwMFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXNvbHZlKHJlc3BvbnNlLnRleHQoKSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIG1lc3NhZ2UgPSBcIkVycm9ycyBPY2N1cmVkIG9uIEh0dHAgUmVxdWVzdCAoc3RhdHVzIDogJ1wiICsgcmVzcG9uc2Uuc3RhdHVzVGV4dCArIFwiJyB8IHVybCA6ICdcIiArIHJlc3BvbnNlLnVybCArIFwiJylcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHN0YXR1cyA9IHJlc3BvbnNlLnN0YXR1cztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVqZWN0KHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1lc3NhZ2UgOiBtZXNzYWdlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdHVzIDogc3RhdHVzXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgICAuY2F0Y2goZnVuY3Rpb24gKGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWplY3Qoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtZXNzYWdlIDogZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdHVzIDogLTFcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIGlmICh3aW5kb3cuWE1MSHR0cFJlcXVlc3QpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxvZ2dlci50cmFjZShcIlhNTEh0dHBSZXF1ZXN0XCIpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBoWEhSID0gbmV3IFhNTEh0dHBSZXF1ZXN0KCk7XG4gICAgICAgICAgICAgICAgICAgICAgICBoWEhSLm9wZW4ob3B0aW9ucy5tZXRob2QsIG9wdGlvbnMudXJsLCB0cnVlKTsgLy8gYXN5bmNcbiAgICAgICAgICAgICAgICAgICAgICAgIGhYSFIub3ZlcnJpZGVNaW1lVHlwZSA9IG9wdGlvbnMuY29udGVudDtcblxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gZ2VzdGlvbiBkdSB0aW1lb3V0XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgb25UaW1lT3V0VHJpZ2dlciA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAob3B0aW9ucy50aW1lT3V0ID4gMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIEZJWE1FIGxlIHRpbWVvdXQgaW50ZXJuZSBuZSBtZSBwZXJtZXQgcGFzIGRlIGRlY2xlbmNoZXIgbGUgYm9uIG1lc3NhZ2UuLi5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBoWEhSLnRpbWVvdXQgPSBvcHRpb25zLnRpbWVPdXQ7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9nZ2VyLnRyYWNlKFwiWEhSIC0gVGltZU91dCBhY3RpZiAhXCIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqIERlc2NyaXB0aW9uXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKiBAbWV0aG9kIG9uVGltZU91dFRyaWdnZXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKiBAcHJpdmF0ZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uVGltZU91dFRyaWdnZXIgPSB3aW5kb3cuc2V0VGltZW91dChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIG1lc3NhZ2UgPSBcIlRpbWVPdXQgT2NjdXJlZCBvbiBIdHRwIFJlcXVlc3Qgd2l0aCBYTUxIdHRwUmVxdWVzdCAhXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWplY3Qoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1lc3NhZ2UgOiBtZXNzYWdlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXR1cyA6IC0xXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSwgb3B0aW9ucy50aW1lT3V0KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGNvcnBzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gaGVhZGVycywgZGF0YSwgY29udGVudCBvZiBkYXRhXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gY2YuIGh0dHBzOi8vZHZjcy53My5vcmcvaGcveGhyL3Jhdy1maWxlL3RpcC9PdmVydmlldy5odG1sI2RvbS14bWxodHRwcmVxdWVzdC1zZXRyZXF1ZXN0aGVhZGVyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9nZ2VyLnRyYWNlKFwiZGF0YSA9IFwiLCBvcHRpb25zLmRhdGEpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhYSFIuc2V0UmVxdWVzdEhlYWRlcihcIkNvbnRlbnQtdHlwZVwiLCBvcHRpb25zLmNvbnRlbnQpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIEZJWE1FIHJlZnVzZWQgdG8gc2V0IHVuc2FmZSBoZWFkZXIgY29udGVudC1sZW5ndGggamF2YXNjcmlwdFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGhYSFIuc2V0UmVxdWVzdEhlYWRlciAoXCJDb250ZW50LWxlbmd0aFwiLCBvcHRpb25zLmRhdGEubGVuZ3RoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBoWEhSLnNldFJlcXVlc3RIZWFkZXIgKFwiUmVmZXJlclwiLCBvcHRpb25zLmhlYWRlcnMucmVmZXJlcik7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICAgICAgICAgICAgICogT24gRXJyb3JcbiAgICAgICAgICAgICAgICAgICAgICAgICAqIEZJWE1FIG5lIHNlIGRlY2xlbmNoZSBwYXMgIT9cbiAgICAgICAgICAgICAgICAgICAgICAgICAqXG4gICAgICAgICAgICAgICAgICAgICAgICAgKiBAcGFyYW0ge09iamVjdH0gZSAtIEV2ZW50XG4gICAgICAgICAgICAgICAgICAgICAgICAgKiBAbWV0aG9kIG9uZXJyb3JcbiAgICAgICAgICAgICAgICAgICAgICAgICAqIEBwcml2YXRlXG4gICAgICAgICAgICAgICAgICAgICAgICAgKi9cbiAgICAgICAgICAgICAgICAgICAgICAgIGhYSFIub25lcnJvciA9IGZ1bmN0aW9uIChlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVqZWN0KG5ldyBFcnJvcihcIkVycm9ycyBPY2N1cmVkIG9uIEh0dHAgUmVxdWVzdCB3aXRoIFhNTEh0dHBSZXF1ZXN0ICFcIikpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICAgICAgICAgKiBPbiBUaW1lb3V0XG4gICAgICAgICAgICAgICAgICAgICAgICAgKiBGSVhNRSBuZSBzZSBkZWNsZW5jaGUgcGFzICE/XG4gICAgICAgICAgICAgICAgICAgICAgICAgKlxuICAgICAgICAgICAgICAgICAgICAgICAgICogQHBhcmFtIHtPYmplY3R9IGUgLSBFdmVudFxuICAgICAgICAgICAgICAgICAgICAgICAgICogQG1ldGhvZCBvbnRpbWVvdXRcbiAgICAgICAgICAgICAgICAgICAgICAgICAqIEBwcml2YXRlXG4gICAgICAgICAgICAgICAgICAgICAgICAgKi9cbiAgICAgICAgICAgICAgICAgICAgICAgIGhYSFIub250aW1lb3V0ID0gZnVuY3Rpb24gKGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWplY3QobmV3IEVycm9yKFwiVGltZU91dCBPY2N1cmVkIG9uIEh0dHAgUmVxdWVzdCB3aXRoIFhNTEh0dHBSZXF1ZXN0ICFcIikpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICAgICAgICAgKiBEZXNjcmlwdGlvblxuICAgICAgICAgICAgICAgICAgICAgICAgICpcbiAgICAgICAgICAgICAgICAgICAgICAgICAqIEBtZXRob2Qgb25yZWFkeXN0YXRlY2hhbmdlXG4gICAgICAgICAgICAgICAgICAgICAgICAgKiBAcHJpdmF0ZVxuICAgICAgICAgICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgICAgICAgICBoWEhSLm9ucmVhZHlzdGF0ZWNoYW5nZSA9IGZ1bmN0aW9uIChlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGhYSFIucmVhZHlTdGF0ZSA9PT0gNCkgeyAvLyBET05FXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChoWEhSLnN0YXR1cyA9PT0gMjAwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aW5kb3cuY2xlYXJUaW1lb3V0KG9uVGltZU91dFRyaWdnZXIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZShoWEhSLnJlc3BvbnNlKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBtZXNzYWdlID0gXCJFcnJvcnMgT2NjdXJlZCBvbiBIdHRwIFJlcXVlc3QgKHN0YXR1cyA6ICdcIiArIGUudGFyZ2V0LnN0YXR1c1RleHQgKyBcIicgfCB1cmwgOiAnXCIgKyBlLnRhcmdldC5yZXNwb25zZVVSTCArIFwiJyB8IHJlc3BvbnNlIDogJ1wiICsgZS50YXJnZXQucmVzcG9uc2UgKyBcIicpXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgc3RhdHVzID0gZS50YXJnZXQuc3RhdHVzO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVqZWN0KHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtZXNzYWdlIDogbWVzc2FnZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0dXMgOiBzdGF0dXNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gZ2VzdGlvbiBkdSBjb250ZW50IGRhdGFcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBkYXRhNHhociA9IChvcHRpb25zLmRhdGEgJiYgY29ycHMpID8gb3B0aW9ucy5kYXRhIDogbnVsbDtcblxuICAgICAgICAgICAgICAgICAgICAgICAgaFhIUi5zZW5kKGRhdGE0eGhyKTtcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICh3aW5kb3cuWERvbWFpblJlcXVlc3QpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIHdvcmtlZCBpbiBJbnRlcm5ldCBFeHBsb3JlciA44oCTMTAgb25seSAhXG4gICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIudHJhY2UoXCJYRG9tYWluUmVxdWVzdFwiKTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgaFhIUiA9IG5ldyBYRG9tYWluUmVxdWVzdCgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgaFhIUi5vcGVuKG9wdGlvbnMubWV0aG9kLCBvcHRpb25zLnVybCk7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGhYSFIub3ZlcnJpZGVNaW1lVHlwZSA9IG9wdGlvbnMuY29udGVudDtcblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG9wdGlvbnMudGltZU91dCA+IDApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoWEhSLnRpbWVvdXQgPSBvcHRpb25zLnRpbWVvdXQ7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9nZ2VyLnRyYWNlKFwiWEhSIC0gVGltZU91dCBhY3RpZiAhXCIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoY29ycHMpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBoZWFkZXJzLCBkYXRhLCBjb250ZW50IG9mIGRhdGFcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBjZi4gaHR0cHM6Ly9kdmNzLnczLm9yZy9oZy94aHIvcmF3LWZpbGUvdGlwL092ZXJ2aWV3Lmh0bWwjZG9tLXhtbGh0dHByZXF1ZXN0LXNldHJlcXVlc3RoZWFkZXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoWEhSLnNldFJlcXVlc3RIZWFkZXIoXCJDb250ZW50LXR5cGVcIiwgb3B0aW9ucy5jb250ZW50KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBGSVhNRSByZWZ1c2VkIHRvIHNldCB1bnNhZmUgaGVhZGVyIGNvbnRlbnQtbGVuZ3RoIGphdmFzY3JpcHRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBoWEhSLnNldFJlcXVlc3RIZWFkZXIgKFwiQ29udGVudC1sZW5ndGhcIiwgb3B0aW9ucy5kYXRhLmxlbmd0aCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gaFhIUi5zZXRSZXF1ZXN0SGVhZGVyIChcIlJlZmVyZXJcIiwgb3B0aW9ucy5oZWFkZXJzLnJlZmVyZXIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgICAgICAgICAqIERlc2NyaXB0aW9uXG4gICAgICAgICAgICAgICAgICAgICAgICAgKlxuICAgICAgICAgICAgICAgICAgICAgICAgICogQG1ldGhvZCBvbmVycm9yXG4gICAgICAgICAgICAgICAgICAgICAgICAgKiBAcHJpdmF0ZVxuICAgICAgICAgICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgICAgICAgICBoWEhSLm9uZXJyb3IgPSBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVqZWN0KG5ldyBFcnJvcihcIkVycm9ycyBPY2N1cmVkIG9uIEh0dHAgUmVxdWVzdCB3aXRoIFhNTEh0dHBSZXF1ZXN0ICFcIikpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICAgICAgICAgKiBEZXNjcmlwdGlvblxuICAgICAgICAgICAgICAgICAgICAgICAgICpcbiAgICAgICAgICAgICAgICAgICAgICAgICAqIEBtZXRob2Qgb250aW1lb3V0XG4gICAgICAgICAgICAgICAgICAgICAgICAgKiBAcHJpdmF0ZVxuICAgICAgICAgICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgICAgICAgICBoWEhSLm9udGltZW91dCA9IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWplY3QobmV3IEVycm9yKFwiVGltZU91dCBPY2N1cmVkIG9uIEh0dHAgUmVxdWVzdCB3aXRoIFhNTEh0dHBSZXF1ZXN0ICFcIikpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICAgICAgICAgKiBPbiBMb2FkXG4gICAgICAgICAgICAgICAgICAgICAgICAgKlxuICAgICAgICAgICAgICAgICAgICAgICAgICogQG1ldGhvZCBvbmxvYWRcbiAgICAgICAgICAgICAgICAgICAgICAgICAqIEBwcml2YXRlXG4gICAgICAgICAgICAgICAgICAgICAgICAgKi9cbiAgICAgICAgICAgICAgICAgICAgICAgIGhYSFIub25sb2FkID0gZnVuY3Rpb24gKGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoaFhIUi5zdGF0dXMgPT09IDIwMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXNvbHZlKGhYSFIucmVzcG9uc2VUZXh0KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgbWVzc2FnZSA9IFwiRXJyb3JzIE9jY3VyZWQgb24gSHR0cCBSZXF1ZXN0IChzdGF0dXMgOiAnXCIgKyBlLnRhcmdldC5zdGF0dXNUZXh0ICsgXCInIHwgdXJsIDogJ1wiICsgZS50YXJnZXQucmVzcG9uc2VVUkwgKyBcIicpXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBzdGF0dXMgPSBlLnRhcmdldC5zdGF0dXM7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlamVjdCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtZXNzYWdlIDogbWVzc2FnZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXR1cyA6IHN0YXR1c1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgZGF0YTR4ZHIgPSAob3B0aW9ucy5kYXRhICYmIGNvcnBzKSA/IG9wdGlvbnMuZGF0YSA6IG51bGw7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGhYSFIuc2VuZChkYXRhNHhkcik7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXCJDT1JTIG5vdCBzdXBwb3J0ZWRcIik7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICk7XG5cbiAgICAgICAgcmV0dXJuIHByb21pc2U7XG4gICAgfSxcblxuICAgIC8qKlxuICAgICAqIFJlcXVldGUgYXZlYyBwYXJzZXIgSlNPTlxuICAgICAqXG4gICAgICogQG1ldGhvZCBfX2NhbGxKU09OXG4gICAgICogQHByaXZhdGVcbiAgICAgKiBAcGFyYW0gIHtPYmplY3R9IG9wdGlvbnMgLSBvcHRpb25zXG4gICAgICogQHJldHVybiB7T2JqZWN0fSBwcm9taXNlXG4gICAgICovXG4gICAgX19jYWxsSlNPTiA6IGZ1bmN0aW9uIChvcHRpb25zKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9fY2FsbChvcHRpb25zKVxuICAgICAgICAgICAgLnRoZW4oSlNPTi5wYXJzZSlcbiAgICAgICAgICAgIC5jYXRjaChmdW5jdGlvbiAoZXJyb3IpIHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIl9jYWxsSlNPTiBmYWlsZWQgb24gOiBcIiwgb3B0aW9ucy51cmwsIGVycm9yKTtcbiAgICAgICAgICAgICAgICAvLyBGSVhNRSBwYXMgZCdleGNlcHRpb24sIGxhaXNzb25zIGxlIGZpbCBzZSBkZXJvdWxlci4uLlxuICAgICAgICAgICAgICAgIC8vIHRocm93IGVycm9yO1xuICAgICAgICAgICAgfSk7XG4gICAgfSxcblxuICAgIC8qKlxuICAgICAqIFJlcXVldGUgYXZlYyBwYXJzZXIgWE1MXG4gICAgICpcbiAgICAgKiBAbWV0aG9kIF9fY2FsbFhNTFxuICAgICAqIEBwcml2YXRlXG4gICAgICogQHBhcmFtICB7T2JqZWN0fSBvcHRpb25zIC0gb3B0aW9uc1xuICAgICAqIEByZXR1cm4ge09iamVjdH0gcHJvbWlzZVxuICAgICAqL1xuICAgIF9fY2FsbFhNTCA6IGZ1bmN0aW9uIChvcHRpb25zKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9fY2FsbChvcHRpb25zKVxuICAgICAgICAgICAgLnRoZW4oZnVuY3Rpb24gKHJlc3BvbnNlKSB7XG4gICAgICAgICAgICAgICAgdmFyIHhtbERvYztcblxuICAgICAgICAgICAgICAgIC8vIHRlc3Qgb24gZW52LiBub2RlanMgb3IgYnJvd3NlclxuICAgICAgICAgICAgICAgIGlmICh0eXBlb2Ygd2luZG93ID09PSBcInVuZGVmaW5lZFwiKSB7XG4gICAgICAgICAgICAgICAgICAgIHZhciBET01QYXJzZXIgPSByZXF1aXJlKFwiQHhtbGRvbS94bWxkb21cIikuRE9NUGFyc2VyOyAvLyBfX3htbGRvbS5ET01QYXJzZXJcbiAgICAgICAgICAgICAgICAgICAgeG1sRG9jID0gbmV3IERPTVBhcnNlcigpLnBhcnNlRnJvbVN0cmluZyhyZXNwb25zZSwgXCJ0ZXh0L3htbFwiKTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBpZiAod2luZG93LkRPTVBhcnNlcikge1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHBhcnNlciA9IG5ldyB3aW5kb3cuRE9NUGFyc2VyKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB4bWxEb2MgPSBwYXJzZXIucGFyc2VGcm9tU3RyaW5nKHJlc3BvbnNlLCBcInRleHQveG1sXCIpO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2UgeyAvLyBJRVxuICAgICAgICAgICAgICAgICAgICAgICAgeG1sRG9jID0gbmV3IHdpbmRvdy5BY3RpdmVYT2JqZWN0KFwiTWljcm9zb2Z0LlhNTERPTVwiKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHhtbERvYy5hc3luYyA9IGZhbHNlO1xuICAgICAgICAgICAgICAgICAgICAgICAgeG1sRG9jLmxvYWRYTUwocmVzcG9uc2UpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgcmV0dXJuIHhtbERvYztcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAuY2F0Y2goZnVuY3Rpb24gKGVycm9yKSB7XG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coXCJfX2NhbGxYTUwgZmFpbGVkIG9uIDogXCIsIG9wdGlvbnMudXJsLCBlcnJvcik7XG4gICAgICAgICAgICAgICAgLy8gRklYTUUgcGFzIGQnZXhjZXB0aW9uLCBsYWlzc29ucyBsZSBmaWwgc2UgZGVyb3VsZXIuLi5cbiAgICAgICAgICAgICAgICAvLyB0aHJvdyBlcnJvcjtcbiAgICAgICAgICAgIH0pO1xuICAgIH1cblxufTtcblxuZXhwb3J0IGRlZmF1bHQgWEhSO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/Protocols/XHR.js\n"); + +/***/ }), + +/***/ "./src/Services/Alti/Alti.js": +/*!***********************************!*\ + !*** ./src/Services/Alti/Alti.js ***! + \***********************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Exceptions/ErrorService */ \"./src/Exceptions/ErrorService.js\");\n/* harmony import */ var _CommonService__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../CommonService */ \"./src/Services/CommonService.js\");\n/* harmony import */ var _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../DefaultUrlService */ \"./src/Services/DefaultUrlService.js\");\n/* harmony import */ var _Request_AltiRequestFactory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Request/AltiRequestFactory */ \"./src/Services/Alti/Request/AltiRequestFactory.js\");\n/* harmony import */ var _Response_AltiResponseFactory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Response/AltiResponseFactory */ \"./src/Services/Alti/Response/AltiResponseFactory.js\");\n\n\n\n\n\n\n\n\n/**\n * @classdesc\n *\n * Appel du service d'altimétrie du Géoportail\n *\n * @todo gestion du parma. output et callback\n * @todo outputFormat (REST) et format (WPS)\n * @todo La reponse JSON peut encapsuler un XML !\n *\n * @constructor\n * @extends {Gp.Services.CommonService}\n * @alias Gp.Services.Alti\n * @param {Object} options - options spécifiques au service (+ les options heritées)\n *\n * @param {Array.} options.positions - Tableau ({lon:float,lat:float}) contenant les coordonnées des points (CRS:84)\n * dont on veut connaître les altitudes (ou à partir desquelles on va calculer le profil).\n * Chaque élément du tableau est un objet JavaScript avec deux attributs : lon et lat, qui sont des flottants.\n * Minimum 2 éléments si on souhaite calculer un profil altimétrique (ElevationLine).\n * Maximum 50 éléments.\n *\n * @param {String} options.outputFormat - Le format de la réponse du service alti : 'xml' ou 'json'.\n * Ce paramètre déterminera l'extension '.xml' ou '.json' du service dans le cas de l'API REST,\n * ou la valeur du paramètre 'format' dans le cas de la norme WPS.\n * Nécessaire si serverUrl est renseigné, et qu'on souhaite passer par l'API REST,\n * pour connaître le format dans lequel sera fournie la réponse (pour son traitement).\n * Non nécessaire pour la norme WPS. Par défaut, ce paramètre vaut 'json'.\n *\n * @param {Number} [options.sampling] - Nombre de points à utiliser pour déterminer le tracé d'un profil altimétrique, compris entre 2 et 5000.\n * A spécifier lorsqu'on souhaite accéder à cette fonctionnalité.\n * Dans ce cas, les points fournis en entrée (au minimum de deux) servent à déterminer l'axe planimétrique\n * le long duquel le profil doit être calculé.\n * Si le paramètre sampling n'est pas spécifié ou moins de deux points sont fournis,\n * c'est le service Elevation qui sera interrogé (altitudes simples calculées pour les points fournis).\n * Une valeur de sampling strictement inférieure à 2 déclenchera un échantillonnage avec la valeur par défaut du service (3 points).\n *\n * @param {String} [options.api] - Manière d'accéder au service : 'REST' (via l'API REST) ou 'WPS' (via la norme WPS).\n * Par défaut, on utilise l'API REST.\n *\n * @param {Boolean} [options.zonly] - Permet de ne récupérer que les altitudes en sortie s'il vaut 'true'.\n * Vaut 'false' par défaut.\n *\n * @param {String} [options.resource] - Resource utilisée pour réaliser le calcul.\n *\n * @example\n * var options = {\n * apiKey : null,\n * serverUrl : 'http://localhost/service/',\n * protocol : 'JSONP', // JSONP|XHR\n * proxyURL : null,\n * httpMethod : 'GET', // GET|POST\n * timeOut : 10000, // ms\n * rawResponse : false, // true|false\n * scope : null, // this\n * onSuccess : function (response) {},\n * onFailure : function (error) {},\n * // spécifique au service\n * positions : [{lon:, lat:}, {lon:, lat:}],\n * outputFormat : 'json' // json|xml\n * sampling : 3,\n * api : 'REST', // REST|WPS\n * zonly : false // false|true,\n * resource : \"resource-par-defaut\"\n * };\n *\n */\nfunction Alti(options) {\n if (!(this instanceof Alti)) {\n throw new TypeError(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"CLASS_CONSTRUCTOR\", \"Alti\"));\n }\n\n /**\n * Nom de la classe (heritage)\n * FIXME instance ou classe ?\n */\n this.CLASSNAME = \"Alti\";\n\n // appel du constructeur par heritage\n _CommonService__WEBPACK_IMPORTED_MODULE_3__[\"default\"].apply(this, arguments);\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"Gp.Services.Alti\");\n this.logger.trace(\"[Constructeur Alti (options)]\");\n\n // #####################\n // analyse des options\n // #####################\n\n if (!options.positions) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_MISSING\", \"positions\"));\n }\n if (options.positions.length === 0) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_EMPTY\", \"positions\"));\n }\n\n // ajout des options spécifiques au service\n this.options.positions = options.positions;\n\n // format de réponse du service : \"json\" ou \"xml\" (valeur par défaut), en minuscule !\n this.options.outputFormat = typeof options.outputFormat === \"string\" ? options.outputFormat.toLowerCase() : \"xml\";\n\n // ressource utilisée pour le calcul altimétrique\n this.options.resource = options.resource || \"ign_rge_alti_wld\";\n\n // sampling\n this.options.sampling = options.sampling || null;\n\n // type d'api utilisé pour requeter le service, en majuscule !\n this.options.api = typeof options.api === \"string\" ? options.api.toUpperCase() : \"REST\";\n\n // l'api ne peut être interrogée qu'en GET.\n if (this.options.api === \"REST\") {\n this.options.httpMethod = \"GET\";\n }\n\n // param. zonly\n this.options.zonly = options.zonly || false;\n\n // param. measures\n this.options.measures = options.measures || false;\n\n // gestion de l'url du service par defaut\n // si l'url n'est pas renseignée, il faut utiliser les urls par defaut\n // en fonction du type d'api, REST ou WPS, du format de reponse demandé (outputFormat)\n // ainsi que sur le type de service (profil ou elevation)\n if (!this.options.serverUrl) {\n var lstUrlByDefault = _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Alti.newUrl();\n var urlFound = null;\n switch (this.options.api) {\n case \"WPS\":\n urlFound = lstUrlByDefault.wps;\n break;\n case \"REST\":\n var key = (options.sampling ? \"profil\" : \"elevation\") + \"-\" + this.options.outputFormat;\n urlFound = lstUrlByDefault[key];\n break;\n default:\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_UNKNOWN\", \"api\"));\n }\n if (!urlFound) {\n throw new Error(\"Url by default not found !\");\n }\n this.options.serverUrl = urlFound;\n this.logger.trace(\"Server URL by default : \" + this.options.serverUrl);\n }\n\n // gestion du type de service\n // si l'extension de l'url est .json ou .xml, on surcharge le format de sortie (outputFormat)\n var idx = this.options.serverUrl.lastIndexOf(\".\");\n if (idx !== -1) {\n var extension = this.options.serverUrl.substring(idx + 1);\n if (extension && extension.length < 5) {\n // FIXME extension de moins de 4 car. ...\n this.logger.trace(\"Server Extension URL : \" + extension);\n switch (extension.toLowerCase()) {\n case \"json\":\n case \"xml\":\n this.options.outputFormat = extension.toLowerCase();\n break;\n default:\n throw new Error(\"type of service : unknown or unsupported (json or xml) !\");\n }\n }\n }\n}\n\n/**\n * @lends module:Alti#\n */\nAlti.prototype = Object.create(_CommonService__WEBPACK_IMPORTED_MODULE_3__[\"default\"].prototype, {\n // todo\n // getter/setter\n});\n\n/**\n * Constructeur (alias)\n */\nAlti.prototype.constructor = Alti;\n\n/**\n * Création de la requête (overwrite)\n *\n * @param {Function} error - callback des erreurs\n * @param {Function} success - callback\n */\nAlti.prototype.buildRequest = function (error, success) {\n // utilisation en mode callback\n var options = {\n httpMethod: this.options.httpMethod,\n // callback\n onSuccess: function onSuccess(result) {\n // sauvegarde de la requete !\n this.request = result;\n success.call(this, this.request);\n },\n onError: error,\n scope: this,\n // spécifique au service :\n resource: this.options.resource,\n positions: this.options.positions,\n outputFormat: this.options.outputFormat,\n sampling: this.options.sampling,\n api: this.options.api,\n zonly: this.options.zonly,\n measures: this.options.measures\n };\n _Request_AltiRequestFactory__WEBPACK_IMPORTED_MODULE_5__[\"default\"].build(options);\n};\n\n/**\n * Analyse de la reponse (overwrite)\n *\n * @param {Function} error - callback des erreurs\n * @param {Function} success - callback\n */\nAlti.prototype.analyzeResponse = function (error, success) {\n // INFO\n // Factory pour masquer la complexité du retour du service qui renvoie soit\n // - une 'string' qui contient du XML ou JSON natif en mode XHR\n // - un objet JSON qui est natif ou encapsulé\n\n if (this.response) {\n var options = {\n response: this.response,\n outputFormat: this.options.outputFormat,\n // utile pour parser la string en mode XHR : JSON ou XML !\n rawResponse: this.options.rawResponse,\n onError: error,\n onSuccess: success,\n scope: this\n };\n _Response_AltiResponseFactory__WEBPACK_IMPORTED_MODULE_6__[\"default\"].build(options);\n } else {\n error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EMPTY\")));\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Alti);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9BbHRpL0FsdGkuanM/Y2ZiNiJdLCJuYW1lcyI6WyJBbHRpIiwib3B0aW9ucyIsIlR5cGVFcnJvciIsIl8iLCJnZXRNZXNzYWdlIiwiQ0xBU1NOQU1FIiwiQ29tbW9uU2VydmljZSIsImFwcGx5IiwiYXJndW1lbnRzIiwibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwidHJhY2UiLCJwb3NpdGlvbnMiLCJFcnJvciIsImxlbmd0aCIsIm91dHB1dEZvcm1hdCIsInRvTG93ZXJDYXNlIiwicmVzb3VyY2UiLCJzYW1wbGluZyIsImFwaSIsInRvVXBwZXJDYXNlIiwiaHR0cE1ldGhvZCIsInpvbmx5IiwibWVhc3VyZXMiLCJzZXJ2ZXJVcmwiLCJsc3RVcmxCeURlZmF1bHQiLCJEZWZhdWx0VXJsU2VydmljZSIsIm5ld1VybCIsInVybEZvdW5kIiwid3BzIiwia2V5IiwiaWR4IiwibGFzdEluZGV4T2YiLCJleHRl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dGk7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Services/Alti/Alti.js\n"); + +/***/ }), + +/***/ "./src/Services/Alti/Formats/AltiResponseReader.js": +/*!*********************************************************!*\ + !*** ./src/Services/Alti/Formats/AltiResponseReader.js ***! + \*********************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Response_model_AltiResponse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Response/model/AltiResponse */ \"./src/Services/Alti/Response/model/AltiResponse.js\");\n/* harmony import */ var _Response_model_Elevation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Response/model/Elevation */ \"./src/Services/Alti/Response/model/Elevation.js\");\n/* harmony import */ var _Response_model_Measure__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Response/model/Measure */ \"./src/Services/Alti/Response/model/Measure.js\");\n/**\n * Fonction retournant un objet contenant des clés de lecture (readers)\n * qui permettent de parser des réponses XML du service Altimétrique du Géoportail\n * (calcul altimétrique simple ou profil altimétrique d'une courbe),\n * lorsque le paramètre output = xml,\n * afin de récupérer les élévations retournées.\n *\n * @module AltiResponseReader\n * @alias Gp.Services.Alti.Formats.AltiResponseReader\n * @private\n */\n\n// import Logger from \"../../../Utils/LoggerByDefault\";\n\n\n\n\n/**\n *\n * Objet AltiResponseReader\n *\n * @member {Object} AltiResponseReader\n *\n * @property {Object} AltiResponseReader.READERS - Objet contenant des fonctions de lecture, appelées \"readers\"\n * dont chaque clé correspond au nom d'un tag du XML que l'on souhaite lire\n * et la valeur associée est une fonction (node, data)\n * où node est un noeud du document DOM\n * et data est un objet où l'on stocke les informations lues dans le XML.\n *\n * @property {Method} AltiResponseReader.READERS.elevations - Lecture d'un noeud \"elevations\" de la réponse XML\n * du service alti, correspondant logiquement à la racine du document\n * (contient un ou plusieurs childNodes correspondant chacun à une élévation retournée)\n *\n * @property {Method} AltiResponseReader.READERS.elevation - Lecture d'un noeud \"elevation\" de la réponse xml du service alti.\n * (contient un ou 4 childNode (s) correspondant à l'altitude (z) et éventuellement lat, lon, et acc)\n *\n * @property {Method} AltiResponseReader.READERS.lat - Lecture d'un noeud \"lat\" de la réponse xml du service alti.\n * (contient une valeur de latitude, qui est un flottant)\n *\n * @property {Method} AltiResponseReader.READERS.lon - Lecture d'un noeud \"lon\" de la réponse xml du service alti.\n * (contient une valeur de longitude, qui est un flottant)\n *\n * @property {Method} AltiResponseReader.READERS.z - Lecture d'un noeud \"z\" de la réponse xml du service alti.\n * (contient une valeur d'altitude, qui est un flottant)\n *\n * @property {Method} AltiResponseReader.READERS.acc - Lecture d'un noeud \"acc\" de la réponse xml du service alti.\n * (contient une valeur de précision, qui est un flottant)\n *\n * @property {Method} AltiResponseReader.READERS.measures - Lecture d'un noeud \"measures\" de la réponse xml du service alti.\n * (contient une valeur de précision, qui est un flottant)\n *\n * @property {Method} AltiResponseReader.READERS.source_name - Lecture d'un noeud \"source_name\" de la réponse xml du service alti.\n * (pour remplir l'éventuel objet measure)\n *\n * @property {Method} AltiResponseReader.READERS.source_mesure - Lecture d'un noeud \"source_mesure\" de la réponse xml du service alti.\n * (pour remplir l'éventuel objet measure)\n *\n * @property {Method} AltiResponseReader.READERS.exceptionreport - Lecture d'un noeud \"ExceptionReport\" de la réponse xml du service alti.\n *\n * @property {Method} AltiResponseReader.READERS.exception - Lecture d'un noeud \"Exception\" de la réponse xml du service alti.\n *\n * @property {Method} AltiResponseReader.read - Méthode permettant de lancer la lecture d'une réponse XML du service altimétrique,\n * à l'aide des readers de la classe.\n *\n */\nvar AltiResponseReader = {};\nAltiResponseReader.READERS = {\n /**\n * Lecture d'un noeud \"elevations\" de la réponse XML du service alti, correspondant logiquement à la racine du document\n * (contient un ou plusieurs childNodes correspondant chacun à une élévation retournée)\n *\n * @param {DOMElement} root - racine de la réponse XML\n * @static\n * @memberof AltiResponseReader\n * @returns {Object} Retourne un objet de type AltiResponse\n */\n elevations: function elevations(root) {\n // INFO : on passe en paramètre l'objet en entrée elevations, vide, à remplir.\n var altiResponse = new _Response_model_AltiResponse__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\n if (root.hasChildNodes()) {\n var children = root.childNodes;\n var child;\n var elevation;\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n if (AltiResponseReader.READERS[child.nodeName]) {\n elevation = AltiResponseReader.READERS[child.nodeName](child);\n altiResponse.elevations.push(elevation);\n }\n }\n }\n return altiResponse;\n },\n /**\n * Lecture d'un noeud \"elevation\" de la réponse xml du service alti.\n * (contient un ou 5 childNode (s) correspondant à l'altitude (z) et éventuellement lat, lon, acc et measures)\n *\n * @param {DOMElement} node - noeud elevation à lire pour récupérer les informations de l'élévation retournée (z [, lon, lat, acc, measures])\n * @return {Array} elevationResponse - format de la réponse en sortie, instance de AltiResponse\n * @static\n * @memberof AltiResponseReader\n */\n elevation: function elevation(node) {\n var elevation = new _Response_model_Elevation__WEBPACK_IMPORTED_MODULE_1__[\"default\"]();\n if (node.hasChildNodes()) {\n var children = node.childNodes;\n var child;\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n if (AltiResponseReader.READERS[child.nodeName]) {\n // INFO : on passe en paramètre l'objet en entrée elevation, vide, à remplir.\n AltiResponseReader.READERS[child.nodeName](child, elevation);\n }\n }\n }\n return elevation;\n },\n /**\n * Lecture d'un noeud \"lat\" de la réponse xml du service alti.\n * (contient une valeur de latitude, qui est un flottant)\n *\n * @param {DOMElement} node - noeud à lire pour récupérer la latitude\n * @param {Object} elevation - objet dans lequel stocker la latitude retournée\n * @static\n * @memberof AltiResponseReader\n */\n lat: function lat(node, elevation) {\n var textNode = node.firstChild;\n if (textNode && textNode.nodeType === 3) {\n // 3 === node.TEXT_NODE\n elevation.lat = parseFloat(textNode.nodeValue);\n } else {\n throw new Error(\"Erreur dans la lecture de la réponse du service : latitude attendue mais absente\");\n }\n },\n /**\n * Lecture d'un noeud \"lon\" de la réponse xml du service alti.\n * (contient une valeur de longitude, qui est un flottant)\n *\n * @param {DOMElement} node - noeud à lire pour récupérer la longitude\n * @param {Object} elevation - objet dans lequel stocker la longitude retournée\n * @static\n * @memberof AltiResponseReader\n */\n lon: function lon(node, elevation) {\n var textNode = node.firstChild;\n if (textNode && textNode.nodeType === 3) {\n // 3 === node.TEXT_NODE\n elevation.lon = parseFloat(textNode.nodeValue);\n } else {\n throw new Error(\"Erreur dans la lecture de la réponse du service : longitude attendue mais absente\");\n }\n },\n /**\n * Lecture d'un noeud \"z\" de la réponse xml du service alti.\n * (contient une valeur d'altitude, qui est un flottant)\n *\n * @param {DOMElement} node - noeud à lire pour récupérer l'altitude\n * @param {Object} elevationObject - objet dans lequel stocker l'altitude retournée : elevation ou measure\n * @static\n * @memberof AltiResponseReader\n */\n z: function z(node, elevationObject) {\n var textNode = node.firstChild;\n if (textNode && textNode.nodeType === 3) {\n // 3 === node.TEXT_NODE\n if (elevationObject) {\n elevationObject.z = parseFloat(textNode.nodeValue);\n } else {\n elevationObject = new _Response_model_Elevation__WEBPACK_IMPORTED_MODULE_1__[\"default\"]();\n elevationObject.z = parseFloat(textNode.nodeValue);\n return elevationObject;\n }\n } else {\n throw new Error(\"Erreur dans la lecture de la réponse du service : altitude attendue mais absente\");\n }\n },\n /**\n * Lecture d'un noeud \"acc\" de la réponse xml du service alti.\n * (contient une valeur de précision, qui est un flottant)\n *\n * @param {DOMElement} node - noeud à lire pour récupérer la précision\n * @param {Object} elevationObject - objet dans lequel stocker la précision retournée : elevation ou measure\n * @static\n * @memberof AltiResponseReader\n */\n acc: function acc(node, elevationObject) {\n var textNode = node.firstChild;\n if (textNode && textNode.nodeType === 3) {\n // 3 === node.TEXT_NODE\n elevationObject.acc = parseFloat(textNode.nodeValue);\n } else {\n throw new Error(\"Erreur dans la lecture de la réponse du service : précision (acc) attendue mais absente\");\n }\n },\n /**\n * Lecture d'un noeud \"source_name\" de la réponse xml du service alti.\n * (contient le nom de la source, qui est un string)\n *\n * @param {DOMElement} node - noeud à lire pour récupérer la précision\n * @param {Object} measure - objet dans lequel stocker le nom de la source retourné\n * @static\n * @memberof AltiResponseReader\n */\n source_name: function source_name(node, measure) {\n var textNode = node.firstChild;\n if (textNode && textNode.nodeType === 3) {\n // 3 === node.TEXT_NODE\n measure.source_name = textNode.nodeValue;\n } else {\n throw new Error(\"Erreur dans la lecture de la réponse du service : source_name attendue mais absente\");\n }\n },\n /**\n * Lecture d'un noeud \"source_measure\" de la réponse xml du service alti.\n * (contient le nom de la mesure, qui est un string)\n *\n * @param {DOMElement} node - noeud à lire pour récupérer la précision\n * @param {Object} measure - objet dans lequel stocker le nom de la source retourné\n * @static\n * @memberof AltiResponseReader\n */\n source_measure: function source_measure(node, measure) {\n var textNode = node.firstChild;\n if (textNode && textNode.nodeType === 3) {\n // 3 === node.TEXT_NODE\n measure.source_measure = textNode.nodeValue;\n } else {\n throw new Error(\"Erreur dans la lecture de la réponse du service : source_measure attendue mais absente\");\n }\n },\n /**\n * Lecture d'un noeud \"measures\" et de ses enfants \"measure\" de la réponse xml du service alti.\n * (contient une valeur de précision, qui est un flottant)\n *\n * @param {DOMElement} node - noeud à lire pour récupérer la précision\n * @param {Object} elevation - objet dans lequel stocker la précision retournée\n * @static\n * @memberof AltiResponseReader\n */\n measures: function measures(node, elevation) {\n elevation.measures = [];\n var measure;\n if (node.hasChildNodes()) {\n var children = node.childNodes;\n var measureNode;\n var measureChildren;\n for (var i = 0; i < children.length; i++) {\n measure = new _Response_model_Measure__WEBPACK_IMPORTED_MODULE_2__[\"default\"]();\n measureNode = children[i];\n measureChildren = measureNode.childNodes;\n for (var j = 0; j < measureChildren.length; j++) {\n if (AltiResponseReader.READERS[measureChildren[j].nodeName]) {\n // INFO : on passe en paramètre l'objet en entrée elevation, vide, à remplir.\n AltiResponseReader.READERS[measureChildren[j].nodeName](measureChildren[j], measure);\n } else {\n throw new Error(\"Erreur dans la lecture de la réponse du service : measures attendues mais absentes\");\n }\n }\n elevation.measures.push(measure);\n }\n }\n },\n /**\n * Lecture d'un noeud \"ExceptionReport\" de la réponse xml du service alti.\n *\n * @param {DOMElement} node - noeud à lire pour récupérer l'exception\n * @return {Object} exceptionReport - objet contenant l'exception\n * @static\n * @memberof AltiResponseReader\n */\n exceptionreport: function exceptionreport(node) {\n var response = {};\n if (node.hasChildNodes()) {\n var children = node.childNodes;\n var child;\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n if (child.nodeName === \"Exception\") {\n response.exceptionReport = AltiResponseReader.READERS.exception(child);\n }\n }\n }\n return response;\n },\n /**\n * Lecture d'un noeud \"Exception\" de la réponse xml du service alti.\n *\n * @param {DOMElement} node - noeud à lire pour récupérer l'exception\n * @return {Object} exceptionReport - objet contenant l'exception, avec deux attributs :\n * {String} exceptionReport.exceptionCode - qui contient l'identifiant du code de l'exception\n * {String} exceptionReport.exception - qui contient le message de l'exception\n * @static\n * @memberof AltiResponseReader\n */\n exception: function exception(node) {\n var exceptionReport = {};\n\n // get exception code\n var exceptionCode = node.getAttribute(\"exceptionCode\");\n if (exceptionCode) {\n exceptionReport.exceptionCode = exceptionCode;\n }\n\n // get exception message\n var textNode = node.firstChild;\n if (textNode && textNode.nodeType === 3) {\n // 3 === node.TEXT_NODE\n exceptionReport.exception = textNode.nodeValue;\n }\n return exceptionReport;\n },\n /**\n * Lecture d'un noeud \"Error\" de la réponse xml du service alti.\n *\n * @param {DOMElement} node - noeud à lire pour récupérer l'exception\n * @return {Object} error - objet contenant l'exception\n * @static\n */\n error: function error(node) {\n var response = {\n error: {}\n };\n // get error code and description\n if (node.hasChildNodes()) {\n var children = node.childNodes;\n var child;\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n var textNode;\n // get error code\n if (child.nodeType === 1 && child.nodeName === \"code\") {\n // 1 === node.ELEMENT_NODE\n textNode = child.firstChild;\n if (textNode && textNode.nodeType === 3) {\n // 3 === node.TEXT_NODE\n response.error.code = textNode.nodeValue;\n }\n }\n // get error description\n if (child.nodeType === 1 && child.nodeName === \"description\") {\n // 1 === node.ELEMENT_NODE\n textNode = child.firstChild;\n if (textNode && textNode.nodeType === 3) {\n // 3 === node.TEXT_NODE\n response.error.description = textNode.nodeValue;\n }\n }\n }\n }\n return response;\n }\n};\n\n/**\n * Méthode permettant de lancer la lecture d'une réponse XML du service altimétrique,\n * à l'aide des readers de la classe.\n *\n * @method AltiResponseReader.read\n * @param {DOMElement} root - racine de la réponse XML à lire\n * @static\n * @memberof AltiResponseReader\n */\nAltiResponseReader.read = function (root) {\n if (root.nodeName === \"elevations\") {\n var altiResponse = AltiResponseReader.READERS.elevations(root);\n return altiResponse;\n } else if (root.nodeName === \"ExceptionReport\") {\n var exceptionReport = AltiResponseReader.READERS.exceptionreport(root);\n return exceptionReport;\n } else if (root.nodeName === \"error\") {\n var error = AltiResponseReader.READERS.error(root);\n return error;\n } else {\n throw new Error(\"Erreur lors de la lecture de la réponse : elle n'est pas au format attendu.\");\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (AltiResponseReader);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9BbHRpL0Zvcm1hdHMvQWx0aVJlc3BvbnNlUmVhZGVyLmpzPzNlYTAiXSwibmFtZXMiOlsiQWx0aVJlc3BvbnNlUmVhZGVyIiwiUkVBREVSUyIsImVsZXZhdGlvbnMiLCJyb290IiwiYWx0aVJlc3BvbnNlIiwiQWx0aVJlc3BvbnNlIiwiaGFzQ2hpbGROb2RlcyIsImNoaWxkcmVuIiwiY2hpbGROb2RlcyIsImNoaWxkIiwiZWxldmF0aW9uIiwiaSIsImxlbmd0aCIsIm5vZGVOYW1lIiwicHVzaCIsIm5vZGUiLCJFbGV2YXRpb24iLCJsYXQiLCJ0ZXh0Tm9kZSIsImZpcnN0Q2hpbGQiLCJub2RlVHlwZSIsInB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iBmdW5jdGlvbiAobm9kZSkge1xuICAgICAgICB2YXIgZWxldmF0aW9uID0gbmV3IEVsZXZhdGlvbigpO1xuXG4gICAgICAgIGlmIChub2RlLmhhc0NoaWxkTm9kZXMoKSkge1xuICAgICAgICAgICAgdmFyIGNoaWxkcmVuID0gbm9kZS5jaGlsZE5vZGVzO1xuICAgICAgICAgICAgdmFyIGNoaWxkO1xuICAgICAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBjaGlsZHJlbi5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgIGNoaWxkID0gY2hpbGRyZW5baV07XG4gICAgICAgICAgICAgICAgaWYgKEFsdGlSZXNwb25zZVJlYWRlci5SRUFERVJTW2NoaWxkLm5vZGVOYW1lXSkge1xuICAgICAgICAgICAgICAgICAgICAvLyBJTkZPIDogb24gcGFzc2UgZW4gcGFyYW3DqHRyZSBsJ29iamV0IGVuIGVudHLDqWUgZWxldmF0aW9uLCB2aWRlLCDDoCByZW1wbGlyLlxuICAgICAgICAgICAgICAgICAgICBBbHRpUmVzcG9uc2VSZWFkZXIuUkVBREVSU1tjaGlsZC5ub2RlTmFtZV0oY2hpbGQsIGVsZXZhdGlvbik7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBlbGV2YXRpb247XG4gICAgfSxcblxuICAgIC8qKlxuICAgICAqIExlY3R1cmUgZCd1biBub2V1ZCBcImxhdFwiIGRlIGxhIHLDqXBvbnNlIHhtbCBkdSBzZXJ2aWNlIGFsdGkuXG4gICAgICogICAgICAoY29udGllbnQgdW5lIHZhbGV1ciBkZSBsYXRpdHVkZSwgcXVpIGVzdCB1biBmbG90dGFudClcbiAgICAgKlxuICAgICAqIEBwYXJhbSB7RE9NRWxlbWVudH0gbm9kZSAtIG5vZXVkIMOgIGxpcmUgcG91ciByw6ljdXDDqXJlciBsYSBsYXRpdHVkZVxuICAgICAqIEBwYXJhbSB7T2JqZWN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9cbiAgICBlcnJvciA6IGZ1bmN0aW9uIChub2RlKSB7XG4gICAgICAgIHZhciByZXNwb25zZSA9IHtcbiAgICAgICAgICAgIGVycm9yIDoge31cbiAgICAgICAgfTtcbiAgICAgICAgLy8gZ2V0IGVycm9yIGNvZGUgYW5kIGRlc2NyaXB0aW9uXG4gICAgICAgIGlmIChub2RlLmhhc0NoaWxkTm9kZXMoKSkge1xuICAgICAgICAgICAgdmFyIGNoaWxkcmVuID0gbm9kZS5jaGlsZE5vZGVzO1xuICAgICAgICAgICAgdmFyIGNoaWxkO1xuICAgICAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBjaGlsZHJlbi5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgIGNoaWxkID0gY2hpbGRyZW5baV07XG4gICAgICAgICAgICAgICAgdmFyIHRleHROb2RlO1xuICAgICAgICAgICAgICAgIC8vIGdldCBlcnJvciBjb2RlXG4gICAgICAgICAgICAgICAgaWYgKGNoaWxkLm5vZGVUeXBlID09PSAxICYmIGNoaWxkLm5vZGVOYW1lID09PSBcImNvZGVcIikgeyAvLyAxID09PSBub2RlLkVMRU1FTlRfTk9ERVxuICAgICAgICAgICAgICAgICAgICB0ZXh0Tm9kZSA9IGNoaWxkLmZpcnN0Q2hpbGQ7XG4gICAgICAgICAgICAgICAgICAgIGlmICh0ZXh0Tm9kZSAmJiB0ZXh0Tm9kZS5ub2RlVHlwZSA9PT0gMykgeyAvLyAzID09PSBub2RlLlRFWFRfTk9ERVxuICAgICAgICAgICAgICAgICAgICAgICAgcmVzcG9uc2UuZXJyb3IuY29kZSA9IHRleHROb2RlLm5vZGVWYWx1ZTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAvLyBnZXQgZXJyb3IgZGVzY3JpcHRpb25cbiAgICAgICAgICAgICAgICBpZiAoY2hpbGQubm9kZVR5cGUgPT09IDEgJiYgY2hpbGQubm9kZU5hbWUgPT09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7XG4gICAgICAgIHJldHVybiBhbHRpUmVzcG9uc2U7XG4gICAgfSBlbHNlIGlmIChyb290Lm5vZGVOYW1lID09PSBcIkV4Y2VwdGlvblJlcG9ydFwiKSB7XG4gICAgICAgIHZhciBleGNlcHRpb25SZXBvcnQgPSBBbHRpUmVzcG9uc2VSZWFkZXIuUkVBREVSUy5leGNlcHRpb25yZXBvcnQocm9vdCk7XG4gICAgICAgIHJldHVybiBleGNlcHRpb25SZXBvcnQ7XG4gICAgfSBlbHNlIGlmIChyb290Lm5vZGVOYW1lID09PSBcImVycm9yXCIpIHtcbiAgICAgICAgdmFyIGVycm9yID0gQWx0aVJlc3BvbnNlUmVhZGVyLlJFQURFUlMuZXJyb3Iocm9vdCk7XG4gICAgICAgIHJldHVybiBlcnJvcjtcbiAgICB9IGVsc2Uge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXCJFcnJldXIgbG9ycyBkZSBsYSBsZWN0dXJlIGRlIGxhIHLDqXBvbnNlIDogZWxsZSBuJ2VzdCBwYXMgYXUgZm9ybWF0IGF0dGVuZHUuXCIpO1xuICAgIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IEFsdGlSZXNwb25zZVJlYWRlcjtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Services/Alti/Formats/AltiResponseReader.js\n"); + +/***/ }), + +/***/ "./src/Services/Alti/Request/AltiRequestFactory.js": +/*!*********************************************************!*\ + !*** ./src/Services/Alti/Request/AltiRequestFactory.js ***! + \*********************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Exceptions/ErrorService */ \"./src/Exceptions/ErrorService.js\");\n/* harmony import */ var _AltiRequestREST__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AltiRequestREST */ \"./src/Services/Alti/Request/AltiRequestREST.js\");\n/* harmony import */ var _AltiRequestWPS__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AltiRequestWPS */ \"./src/Services/Alti/Request/AltiRequestWPS.js\");\n/**\n * Creation d'une requête en REST ou WPS\n * (Factory)\n *\n * @module AltiRequestFactory\n * @alias Gp.Services.Alti.Request.AltiRequestFactory\n * @private\n */\n\n\n\n\nvar AltiRequestFactory = {\n /**\n * interface unique\n *\n * @method build\n * @static\n * @param {Object} options - options definies dans le composant Alti\n *\n * @example\n * var options = {\n * httpMethod : 'GET', // GET|POST\n * onSuccess : function (response) {},\n * onError : function (error) {},\n * scope : this,\n * positions : [{lon:, lat:}, {lon:, lat:}],\n * outputFormat : 'json' // json|xml\n * sampling : 3,\n * api : 'REST', // REST|WPS\n * zonly : false // false|true\n * };\n *\n */\n build: function build(options) {\n // logger\n var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"AltiRequestFactory\");\n logger.trace([\"AltiRequestFactory::build()\"]);\n var request = null;\n\n // on factorise les options par groupe;\n // - global,\n // - param, les params pour les data inputs\n // - wps, les param du service\n // - callback\n\n var settings = {\n // ajout des valeurs par defaut spécifiques au service\n type: options.sampling ? \"Profil\" : \"Elevation\",\n method: options.httpMethod,\n param: {\n positions: null,\n delimiter: null,\n // FIXME par defaut, on ne le met pas en place car ça fait planter la requête !?\n indent: null,\n // par defaut\n crs: null,\n // par defaut\n format: null,\n // (only to POST)\n sampling: null,\n // (only use by Profil)\n zonly: null,\n // (only use by Elevation)\n measures: null // (only use by Elevation)\n }\n };\n\n // surcharge des valeurs obligatoires\n settings.param.positions = options.positions;\n settings.param.format = options.outputFormat;\n settings.param.sampling = options.sampling;\n settings.param.zonly = options.zonly;\n settings.param.measures = options.measures;\n settings.param.resource = options.resource;\n\n // gestion des callback\n var bOnError = !!(options.onError !== null && typeof options.onError === \"function\"); // cast variable to boolean\n var bOnSuccess = !!(options.onSuccess !== null && typeof options.onSuccess === \"function\");\n var message = null;\n switch (options.api) {\n case \"REST\":\n // FIXME les exceptions ne sont pas 'catchées' sur le constructeur !\n var myReq = new _AltiRequestREST__WEBPACK_IMPORTED_MODULE_2__[\"default\"](settings);\n if (!myReq.processRequestString()) {\n message = \"Error in process request (rest) !\";\n if (bOnError) {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_1__[\"default\"](message));\n return;\n }\n throw new Error(message);\n }\n request = myReq.requestString;\n break;\n case \"WPS\":\n // ajout des valeurs par defaut spécifiques au service WPS\n settings.wps = {\n service: null,\n // par defaut\n version: null,\n // par defaut\n identifier: null,\n // par defaut\n rawdataoutput: null,\n // par defaut\n request: null // par defaut\n };\n request = _AltiRequestWPS__WEBPACK_IMPORTED_MODULE_3__[\"default\"].build(settings);\n if (!request) {\n message = \"Error in process request (wps) !\";\n if (bOnError) {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_1__[\"default\"](message));\n return;\n }\n throw new Error(message);\n }\n break;\n default:\n message = \"Type of API is not supported by service (REST or WPS) !\";\n if (bOnError) {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_1__[\"default\"](message));\n return;\n }\n throw new Error(message);\n }\n if (bOnSuccess) {\n options.onSuccess.call(options.scope, request);\n }\n return request;\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (AltiRequestFactory);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9BbHRpL1JlcXVlc3QvQWx0aVJlcXVlc3RGYWN0b3J5LmpzP2Q0MDM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sbChvcHRpb25zLnNjb3BlLCBuZXcgRXJyb3JTZXJ2aWNlKG1lc3NhZ2UpKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IobWVzc2FnZSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHJlcXVlc3QgPSBteVJlcS5yZXF1ZXN0U3RyaW5nO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcIldQU1wiOlxuICAgICAgICAgICAgICAgIC8vIGFqb3V0IGRlcyB2YWxldXJzIHBhciBkZWZhdXQgc3DDqWNpZmlxdWVzIGF1IHNlcnZpY2UgV1BTXG4gICAgICAgICAgICAgICAgc2V0dGluZ3Mud3BzID0ge1xuICAgICAgICAgICAgICAgICAgICBzZXJ2aWNlIDogbnVsbCwgLy8gcGFyIGRlZmF1dFxuICAgICAgICAgICAgICAgICAgICB2ZXJzaW9uIDogbnVsbCwgLy8gcGFyIGRlZmF1dFxuICAgICAgICAgICAgICAgICAgICBpZGVudGlmaWVyIDogbnVsbCwgLy8gcGFyIGRlZmF1dFxuICAgICAgICAgICAgICAgICAgICByYXdkYXRhb3V0cHV0IDogbnVsbCwgLy8gcGFyIGRlZmF1dFxuICAgICAgICAgICAgICAgICAgICByZXF1ZXN0IDogbnVsbCAvLyBwYXIgZGVmYXV0XG4gICAgICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgICAgIHJlcXVlc3QgPSBBbHRpUmVxdWVzdFdQUy5idWlsZChzZXR0aW5ncyk7XG4gICAgICAgICAgICAgICAgaWYgKCFyZXF1ZXN0KSB7XG4gICAgICAgICAgICAgICAgICAgIG1lc3NhZ2UgPSBcIkVycm9yIGluIHByb2Nlc3MgcmVxdWVzdCAod3BzKSAhXCI7XG4gICAgICAgICAgICAgICAgICAgIGlmIChiT25FcnJvcikge1xuICAgICAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5vbkVycm9yLmNhbGwob3B0aW9ucy5zY29wZSwgbmV3IEVycm9yU2VydmljZShtZXNzYWdlKSk7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKG1lc3NhZ2UpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgbWVzc2FnZSA9IFwiVHlwZSBvZiBBUEkgaXMgbm90IHN1cHBvcnRlZCBieSBzZXJ2aWNlIChSRVNUIG9yIFdQUykgIVwiO1xuICAgICAgICAgICAgICAgIGlmIChiT25FcnJvcikge1xuICAgICAgICAgICAgICAgICAgICBvcHRpb25zLm9uRXJyb3IuY2FsbChvcHRpb25zLnNjb3BlLCBuZXcgRXJyb3JTZXJ2aWNlKG1lc3NhZ2UpKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IobWVzc2FnZSk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoYk9uU3VjY2Vzcykge1xuICAgICAgICAgICAgb3B0aW9ucy5vblN1Y2Nlc3MuY2FsbChvcHRpb25zLnNjb3BlLCByZXF1ZXN0KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiByZXF1ZXN0O1xuICAgIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IEFsdGlSZXF1ZXN0RmFjdG9yeTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Services/Alti/Request/AltiRequestFactory.js\n"); + +/***/ }), + +/***/ "./src/Services/Alti/Request/AltiRequestREST.js": +/*!******************************************************!*\ + !*** ./src/Services/Alti/Request/AltiRequestREST.js ***! + \******************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _model_AltiElevationRequest__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./model/AltiElevationRequest */ \"./src/Services/Alti/Request/model/AltiElevationRequest.js\");\n/* harmony import */ var _model_AltiProfilRequest__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./model/AltiProfilRequest */ \"./src/Services/Alti/Request/model/AltiProfilRequest.js\");\n/* jshint multistr : true */\n\n\n\n\n\n\n/**\n * @classdesc\n * Classe de gestion des requêtes de type REST sur le service altimetrique.\n *\n * @todo Le service Alti n'implemente pas le POST !?\n * @constructor\n * @alias Gp.Services.Alti.Request.AltiRequestREST\n * @param {Object} options - options\n * @param {Object} options.param.positions - tableau de coordonnées lon/lat\n * @param {String} options.param.delimiter - '|'\n * @param {Boolean} options.param.indent - false|true\n * @param {String} options.param.crs - 'CRS:84'\n * @param {String} options.param.sampling - 3\n * @param {String} options.param.resource - 'rge_alti_corse2a_float32_zip_lamb93'\n * @param {Boolean} options.param.zonly - false|true\n * @param {Boolean} options.param.measures - false|true\n * @param {String} options.param.format - \"JSON|XML\"\n * @param {String} options.type - \"Profil|Elevation\"\n * @param {String} options.method - GET|POST\n *\n * @example\n * var options = {\n * type : 'Profil', // Elevation\n * method : 'GET', // par defaut\n * param : {\n * positions : [\n * {lon:'1.11', lat:'1.11'},\n * {lon:'1.10', lat:'1.10'},\n * {lon:'1.12', lat:'1.12'}\n * ],\n * delimiter : \";\", // par defaut\n * indent : true, // par defaut\n * crs : 'EPSG:4326', // par defaut\n * format : 'json', // par defaut (only to POST)\n * sampling : 3 , // par defaut (only use by Profil)\n * zonly : false // par defaut (only use by Elevation)\n * measures : false // par defaut (only use by Elevation)\n * }\n * };\n *\n * var result;\n * try {\n * var obj = new AltiRequestREST (options);\n * if (! obj.processRequestString ()) {\n * throw new Error(\"Request empty !?\")\n * }\n * result = obj.requestString;\n * } catch (e) {\n * // exceptions...\n * }\n * @private\n */\nfunction AltiRequestREST(options) {\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"AltiRequestREST\");\n this.logger.trace(\"[Constructeur AltiRequestREST ()]\");\n if (!(this instanceof AltiRequestREST)) {\n throw new TypeError(\"AltiRequestREST constructor cannot be called as a function.\");\n }\n this.options = options || {};\n\n // existance des options\n if (!this.options) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_EMPTY\", \"options\"));\n }\n\n // type de requete : Altitude ou Profil\n // (param. à determiner en fonction des parametres d'entrée)\n if (!this.options.type) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_EMPTY\", \"type (Elevation or Profil)\"));\n }\n\n // construction du modele de requête\n // (test du type d'objet candidat)\n this.DataObject = null;\n switch (this.options.type) {\n case \"Elevation\":\n this.DataObject = new _model_AltiElevationRequest__WEBPACK_IMPORTED_MODULE_2__[\"default\"](this.options.param);\n break;\n case \"Profil\":\n this.DataObject = new _model_AltiProfilRequest__WEBPACK_IMPORTED_MODULE_3__[\"default\"](this.options.param);\n break;\n default:\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_TYPE\", \"type (Elevation or Profil)\"));\n }\n\n /**\n * methode.\n * Par defaut, \"GET\".\n */\n this.method = this.options.method || \"GET\";\n}\nAltiRequestREST.prototype = {\n /**\n * request\n * @type {String}\n */\n requestString: null,\n /**\n * Constructeur (alias)\n */\n constructor: AltiRequestREST,\n /**\n * Template de la requête.\n */\n template: {\n get: {\n // FIXME on retire le param 'delimiter' : &delimiter='__DELIMITER__'\n value: \"lon=__LON__&lat=__LAT__&indent=__INDENT__&crs='__CRS__'&resource=__RESOURCE__&measures=__MEASURES__\",\n input: {\n point: \"&zonly=__ZONLY__\",\n profil: \"&sampling=__SAMPLING__\"\n }\n },\n post: {\n // FIXME on retire le param 'delimiter' : delimiter='__DELIMITER__'\\n\\\n value: \"lon=__LON__\\n\" + \"lat=__LAT__\\n\" + \"indent=__INDENT__\\n\" + \"crs='__CRS__'\\n\" + \"resource='__RESOURCE__'\\n\" + \"measures='__MEASURES__'\\n\",\n input: {\n point: \"zonly=__ZONLY__\\n\",\n profil: \"sampling=__SAMPLING__\"\n }\n }\n },\n /**\n * Construction de la requête.\n *\n * @example\n * // GET out : lon=0.2367,2.1570&lat=48.0551,46.6077&delimiter=,&indent=true&zonly=true&crs='CRS:84'\n * // POST out : Not yet supported method POST !\n * @returns {String}\n */\n processRequestString: function processRequestString() {\n this.logger.trace(\"AltiRequestREST::processRequestString ()\");\n var template = \"\";\n if (this.method === \"POST\") {\n template = this.template.post.value;\n } else if (this.method === \"GET\") {\n template = this.template.get.value;\n }\n template = template.replace(/__LON__/g, this.DataObject.getLon());\n template = template.replace(/__LAT__/g, this.DataObject.getLat());\n // FIXME on retire le param 'delimiter'\n // template = template.replace(/__DELIMITER__/g, this.DataObject.delimiter);\n template = template.replace(/__INDENT__/g, this.DataObject.indent);\n template = template.replace(/__CRS__/g, this.DataObject.crs);\n template = template.replace(/__RESOURCE__/g, this.DataObject.resource);\n template = template.replace(/__MEASURES__/g, this.DataObject.measures);\n\n // ajout +\n template = template + this.__addDataInputs();\n this.logger.trace(\"traduction tmpl\", template);\n\n // sauvegarde\n this.requestString = template;\n return this.requestString;\n },\n /**\n * Ajout de parametres spécifiques (ex. zonly)\n *\n * @returns {String}\n */\n __addDataInputs: function __addDataInputs() {\n this.logger.trace(\"AltiRequestREST::addDataInput ()\");\n var myTemplate;\n if (this.method === \"POST\") {\n myTemplate = this.template.post;\n } else if (this.method === \"GET\") {\n myTemplate = this.template.get;\n } else {\n throw new Error(\"No other HTTP method supported by the service !\");\n }\n var tmpl = null;\n if (this.DataObject.CLASSNAME === \"AltiElevationRequest\") {\n tmpl = myTemplate.input.point;\n return tmpl.replace(/__ZONLY__/g, this.DataObject.zonly.toString());\n } else if (this.DataObject.CLASSNAME === \"AltiProfilRequest\") {\n tmpl = myTemplate.input.profil;\n return tmpl.replace(/__SAMPLING__/g, this.DataObject.sampling);\n } else {\n throw new Error(\"No other object supported than elevation or profil !?\");\n }\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (AltiRequestREST);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9BbHRpL1JlcXVlc3QvQWx0aVJlcXVlc3RSRVNULmpzPzY2YjkiXSwibmFtZXMiOlsiQWx0aVJlcXVlc3RSRVNUIiwib3B0aW9ucyIsImxvZ2dlciIsIkxvZ2dlciIsImdldExvZ2dlciIsInRyYWNlIiwiVHlwZUVycm9yIiwiRXJyb3IiLCJfIiwiZ2V0TWVzc2FnZSIsInR5cGUiLCJEYXRhT2JqZWN0IiwiQWx0aUVsZXZhdGlvblJlcXVlc3QiLCJwYXJhbSIsIkFsdGlQcm9maWxSZXF1ZXN0IiwibWV0aG9kIiwicHJvdG90eXBlIiwicmVxdWVzdFN0cmluZyIsImNvbnN0cnVjdG9yIiwidGVtcGxhdGUiLCJnZXQiLCJ2YWx1ZSIsImlucHV0IiwicG9pbnQiLCJwcm9maWwiLCJwb3N0IiwicHJvY2Vzc1JlcXVlc3RTdHJpbmciLCJyZXBsYWNlIiwiZ2V0TG9uIiwiZ2V0TGF0IiwiaW5kZW50IiwiY3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AgICAgICAgLy8gcGFyIGRlZmF1dFxuICogICAgICAgICAgICAgICBpbmRlbnQgICAgOiB0cnVlLCAgICAgICAgLy8gcGFyIGRlZmF1dFxuICogICAgICAgICAgICAgICBjcnMgICAgICAgOiAnRVBTRzo0MzI2JywgLy8gcGFyIGRlZmF1dFxuICogICAgICAgICAgICAgICBmb3JtYXQgICAgOiAnanNvbicsICAgICAgLy8gcGFyIGRlZmF1dCAob25seSB0byBQT1NUKVxuICogICAgICAgICAgICAgICBzYW1wbGluZyAgOiAzICwgICAgICAgICAgLy8gcGFyIGRlZmF1dCAob25seSB1c2UgYnkgUHJvZmlsKVxuICogICAgICAgICAgICAgICB6b25seSAgICAgOiBmYWxzZSAgICAgICAgLy8gcGFyIGRlZmF1dCAob25seSB1c2UgYnkgRWxldmF0aW9uKVxuICogICAgICAgICAgICAgICBtZWFzdXJlcyAgOiBmYWxzZSAgICAgICAgLy8gcGFyIGRlZmF1dCAob25seSB1c2UgYnkgRWxldmF0aW9uKVxuICogICAgICAgICAgIH1cbiAqICAgICAgfTtcbiAqXG4gKiAgICAgIHZhciByZXN1bHQ7XG4gKiAgICAgIHRyeSB7XG4gKiAgICAgICAgICB2YXIgb2JqID0gbmV3IEFsdGlSZXF1ZXN0UkVTVCAob3B0aW9ucyk7XG4gKiAgICAgICAgICBpZiAoISBvYmoucHJvY2Vzc1JlcXVlc3RTdHJpbmcgKCkpIHtcbiAqICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXCJSZXF1ZXN0IGVtcHR5ICE/XCIpXG4gKiAgICAgICAgICB9XG4gKiAgICAgICAgICByZXN1bHQgPSBvYmoucmVxdWVzdFN0cmluZztcbiAqICAgICAgfSBjYXRjaCAoZSkge1xuICogICAgICAgICAgLy8gZXhjZXB0aW9ucy4uLlxuICogICAgICB9XG4gKiBAcHJpdmF0ZVxuICovXG5mdW5jdGlvbiBBbHRpUmVxdWVzdFJFU1QgKG9wdGlvbnMpIHtcbiAgICB0aGlzLmxvZ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ltaXRlcicgOiAmZGVsaW1pdGVyPSdfX0RFTElNSVRFUl9fJ1xuICAgICAgICAgICAgdmFsdWUgOiBcImxvbj1fX0xPTl9fJmxhdD1fX0xBVF9fJmluZGVudD1fX0lOREVOVF9fJmNycz0nX19DUlNfXycmcmVzb3VyY2U9X19SRVNPVVJDRV9fJm1lYXN1cmVzPV9fTUVBU1VSRVNfX1wiLFxuICAgICAgICAgICAgaW5wdXQgOiB7XG4gICAgICAgICAgICAgICAgcG9pbnQgOiBcIiZ6b25seT1fX1pPTkxZX19cIixcbiAgICAgICAgICAgICAgICBwcm9maWwgOiBcIiZzYW1wbGluZz1fX1NBTVBMSU5HX19cIlxuICAgICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBwb3N0IDoge1xuICAgICAgICAgICAgLy8gRklYTUUgb24gcmV0aXJlIGxlIHBhcmFtICdkZWxpbWl0ZXInIDogZGVsaW1pdGVyPSdfX0RFTElNSVRFUl9fJ1xcblxcXG4gICAgICAgICAgICB2YWx1ZSA6IFwibG9uPV9fTE9OX19cXG5cIiArXG4gICAgICAgICAgICAgICAgXCJsYXQ9X19MQVRfX1xcblwiICtcbiAgICAgICAgICAgICAgICBcImluZGVudD1fX0lOREVOVF9fXFxuXCIgK1xuICAgICAgICAgICAgICAgIFwiY3JzPSdfX0NSU19fJ1xcblwiICtcbiAgICAgICAgICAgICAgICBcInJlc291cmNlPSdfX1JFU09VUkNFX18nXFxuXCIgK1xuICAgICAgICAgICAgICAgIFwibWVhc3VyZXM9J19fTUVBU1VSRVNfXydcXG5cIixcbiAgICAgICAgICAgIGlucHV0IDoge1xuICAgICAgICAgICAgICAgIHBvaW50IDogXCJ6b25seT1fX1pPTkxZX19cXG5cIixcbiAgICAgICAgICAgICAgICBwcm9maWwgOiBcInNhbXBsaW5nPV9fU0FNUExJTkdfX1wiXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9LFxuXG4gICAgLyoqXG4gICAgICogQ29uc3RydWN0aW9uIGR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ZhdGlvbiBvciBwcm9maWwgIT9cIik7XG4gICAgICAgIH1cbiAgICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBBbHRpUmVxdWVzdFJFU1Q7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Services/Alti/Request/AltiRequestREST.js\n"); + +/***/ }), + +/***/ "./src/Services/Alti/Request/AltiRequestWPS.js": +/*!*****************************************************!*\ + !*** ./src/Services/Alti/Request/AltiRequestWPS.js ***! + \*****************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _Formats_WPS__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Formats/WPS */ \"./src/Formats/WPS.js\");\n/* harmony import */ var _model_AltiElevationRequest__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./model/AltiElevationRequest */ \"./src/Services/Alti/Request/model/AltiElevationRequest.js\");\n/* harmony import */ var _model_AltiProfilRequest__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./model/AltiProfilRequest */ \"./src/Services/Alti/Request/model/AltiProfilRequest.js\");\n/**\n * Classe d'interface des requêtes de type WPS sur le service altimetrique.\n * (Factory)\n *\n * @module Gp.Services.Alti.Request.AltiRequestWPS\n * @alias Gp.Services.Alti.Request.AltiRequestWPS\n * @private\n */\n\n\n\n\n\nvar AltiRequestWPS = {\n /**\n * Interface unique de construction de la requête.\n *\n * @method build\n * @param {Object} options - options\n * @param {Object} options.param.positions - tableau de coordonnées lon/lat\n * @param {String} options.param.delimiter - '|'\n * @param {Boolean} options.param.indent - false|true\n * @param {String} options.param.crs - 'CRS:84'\n * @param {String} options.param.sampling - 3\n * @param {Boolean} options.param.zonly - false|true\n * @param {String} options.param.format - \"JSON|XML\" (only to POST)\n * @param {String} options.wps.service - \"WPS\"\n * @param {String} options.wps.version - \"1.0.0\"\n * @param {String} options.wps.identifier - \"gs:WPSElevation|gs:WPSLineElevation\"\n * @param {String} options.wps.rawdataoutput - \"result\"\n * @param {String} options.wps.request - \"Execute\"\n * @param {String} options.type - \"Profil|Elevation\"\n * @param {String} options.method - GET|POST\n * @example\n * var options = {\n * type : 'Profil', // Elevation\n * method : 'GET', // par defaut\n * param : {\n * positions : [\n * {lon:'1.11', lat:'1.11'},\n * {lon:'1.10', lat:'1.10'},\n * {lon:'1.12', lat:'1.12'}\n * ],\n * delimiter : \";\", // par defaut\n * indent : true, // par defaut\n * crs : 'EPSG:4326', // par defaut\n * format : 'json', // par defaut (only to POST)\n * sampling : 3 , // par defaut (only use by Profil)\n * zonly : false, // par defaut (only use by Elevation)\n * },\n * wps : {\n * service : 'WPS', // par defaut\n * version : '1.0.0', // par defaut\n * identifier : 'gs:WPS', // par defaut, Elevation = gs:WPSElevation, Profil = gs:WPSLineElevation\n * rawdataoutput : 'result',// par defaut\n * request : 'Execute' // par defaut\n * }\n * };\n */\n build: function build(options) {\n // logger\n var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"AltiRequestWPS\");\n logger.trace([\"AltiRequestWPS::build()\"]);\n\n // existance des options\n if (!options) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_EMPTY\", \"options\"));\n }\n\n // type de requete : Altitude ou Profil\n // (param. à determiner en fonction des parametres d'entrée)\n if (!options.type) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_EMPTY\", \"type (Elevation or Profil)\"));\n }\n\n // construction du modele de requête\n // (test du type d'objet candidat)\n var DataObject = null;\n switch (options.type) {\n case \"Elevation\":\n // surcharge\n options.wps.identifier = \"gs:WPSElevation\";\n DataObject = new _model_AltiElevationRequest__WEBPACK_IMPORTED_MODULE_3__[\"default\"](options.param);\n break;\n case \"Profil\":\n // surcharge\n options.wps.identifier = \"gs:WPSLineElevation\";\n DataObject = new _model_AltiProfilRequest__WEBPACK_IMPORTED_MODULE_4__[\"default\"](options.param);\n break;\n default:\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_TYPE\", \"type (Elevation or Profil)\"));\n }\n\n // construction de la requête WPS\n var settings = {\n data: DataObject,\n method: options.method,\n param: options.wps\n };\n var rqstWPS = new _Formats_WPS__WEBPACK_IMPORTED_MODULE_2__[\"default\"](settings);\n if (!rqstWPS.processRequestString()) {\n throw new Error(\"Enable to process request !\");\n }\n return rqstWPS.requestString;\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (AltiRequestWPS);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9BbHRpL1JlcXVlc3QvQWx0aVJlcXVlc3RXUFMuanM/ZGU1MiJdLCJuYW1lcyI6WyJBbHRpUmVxdWVzdFdQUyIsImJ1aWxkIiwib3B0aW9ucyIsImxvZ2dlciIsIkxvZ2dlciIsImdldExvZ2dlciIsInRyYWNlIiwiRXJyb3IiLCJfIiwiZ2V0TWVzc2FnZSIsInR5cGUiLCJEYXRhT2JqZWN0Iiwid3BzIiwiaWRlbnRpZmllciIsIkFsdGlFbGV2YXRpb25SZXF1ZXN0IiwicGFyYW0iLCJBbHRpUHJvZmlsUmVxdWVzdCIsInNldHRpbmdzIiwiZGF0YSIsIm1ldGhvZCIsInJxc3RXUFMiLCJXUFMiLCJwcm9j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vcHRpb25zLm1ldGhvZCAtIEdFVHxQT1NUXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiAgICAgIHZhciBvcHRpb25zID0ge1xuICAgICAqICAgICAgICAgICB0eXBlIDogJ1Byb2ZpbCcsIC8vIEVsZXZhdGlvblxuICAgICAqICAgICAgICAgICBtZXRob2QgOiAnR0VUJywgIC8vIHBhciBkZWZhdXRcbiAgICAgKiAgICAgICAgICAgcGFyYW0gOiB7XG4gICAgICogICAgICAgICAgICAgICBwb3NpdGlvbnMgOiBbXG4gICAgICogICAgICAgICAgICAgICAgICAge2xvbjonMS4xMScsIGxhdDonMS4xMSd9LFxuICAgICAqICAgICAgICAgICAgICAgICAgIHtsb246JzEuMTAnLCBsYXQ6JzEuMTAnfSxcbiAgICAgKiAgICAgICAgICAgICAgICAgICB7bG9uOicxLjEyJywgbGF0OicxLjEyJ31cbiAgICAgKiAgICAgICAgICAgICAgIF0sXG4gICAgICogICAgICAgICAgICAgICBkZWxpbWl0ZXIgOiBcIjtcIiwgICAgICAgICAvLyBwYXIgZGVmYXV0XG4gICAgICogICAgICAgICAgICAgICBpbmRlbnQgICAgOiB0cnVlLCAgICAgICAgLy8gcGFyIGRlZmF1dFxuICAgICAqICAgICAgICAgICAgICAgY3JzICAgICAgIDogJ0VQU0c6NDMyNicsIC8vIHBhciBkZWZhdXRcbiAgICAgKiAgICAgICAgICAgICAgIGZvcm1hdCAgICA6ICdqc29uJywgICAgICAvLyBwYXIgZGVmYXV0IChvbmx5IHRvIFBPU1QpXG4gICAgICogICAgICAgICAgICAgICBzYW1wbGluZyAgOiAzICwgICAgICAgICAgLy8gcGFyIGRlZmF1dCAob25seSB1c2UgYnkgUHJvZmlsKVxuICAgICAqICAgICAgICAgICAgICAgem9ubHkgICAgIDogZmFsc2UsICAgICAgIC8vIHBhciBkZWZhdXQgKG9ubHkgdXNlIGJ5IEVsZXZhdGlvbilcbiAgICAgKiAgICAgICAgICAgfSxcbiAgICAgKiAgICAgICAgICAgd3BzIDoge1xuICAgICAqICAgICAgICAgICAgICAgICBzZXJ2aWNlIDogJ1dQUycsICAgICAgICAgLy8gcGFyIGRlZmF1dFxuICAgICAqICAgICAgICAgICAgICAgICB2ZXJzaW9uIDogJzEuMC4wJywgICAgICAgLy8gcGFyIGRlZmF1dFxuICAgICAqICAgICAgICAgICAgICAgICBpZGVudGlmaWVyIDogJ2dzOldQUycsICAgLy8gcGFyIGRlZmF1dCwgRWxldmF0aW9uID0gZ3M6V1BTRWxldmF0aW9uLCBQcm9maWwgPSBnczpXUFNMaW5lRWxldmF0aW9uXG4gICAgICogICAgICAgICAgICAgICAgIHJhd2RhdGFvdXRwdXQgOiAncmVzdWx0JywvLyBwYXIgZGVmYXV0XG4gICAgICogICAgICAgICAgICAgICAgIHJlcXVlc3QgOiAnRXhlY3V0ZScgICAgICAvLyBwYXIgZGVmYXV0XG4gICAgICogICAgICAgICAgIH1cbiAgICAgKiAgICAgICB9O1xuICAgICAqL1xuICAgIGJ1aWxkIDogZnVuY3Rpb24gKG9wdGlvbnMpIHtcbiAgICAgICAgLy8gbG9nZ2VyXG4gICAgICAgIHZhciBsb2dnZXIgPSBMb2dnZXIuZ2V0TG9nZ2VyKFwiQWx0aVJlcXVlc3RXUFNcIik7XG4gICAgICAgIGxvZ2dlci50cmFjZShbXCJBbHRpUmVxdWVzdFdQUzo6YnVpbGQoKVwiXSk7XG5cbiAgICAgICAgLy8gZXhpc3RhbmNlIGRlcyBvcHRpb25zXG4gICAgICAgIGlmICghb3B0aW9ucykge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKF8uZ2V0TWVzc2FnZShcIlBBUkFNX0VNUFRZXCIsIFwib3B0aW9uc1wiKSk7XG4gICAgICAgIH1cblxuICAgICAgICAvLyB0eXBlIGRlIHJlcXVldGUgOiBBbHRpdHVkZSBvdSBQcm9maWxcbiAgICAgICAgLy8gKHBhcmFtLiDDoCBkZXRlcm1pbmVyIGVuIGZvbmN0aW9uIGRlcyBwYXJhbWV0cmVzIGQnZW50csOpZSlcbiAgICAgICAgaWYgKCFvcHRpb25zLnR5cGUpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihfLmdldE1lc3NhZ2UoXCJQQVJBTV9FTVBUWVwiLCBcInR5cGUgKEVsZXZhdGlvbiBvciBQcm9maWwpXCIpKTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIGNvbnN0cnVjdGlvbiBkdSBtb2RlbGUgZGUgcmVxdcOqdGVcbiAgICAgICAgLy8gKHRlc3QgZHUgdHlwZSBkJ29iamV0IGNhbmRpZGF0KVxuICAgICAgICB2YXIgRGF0YU9iamVjdCA9IG51bGw7XG4gICAgICAgIHN3aXRjaCAob3B0aW9ucy50eXBlKSB7XG4gICAgICAgICAgICBjYXNlIFwiRWxldmF0aW9uXCI6XG4gICAgICAgICAgICAgICAgLy8gc3VyY2hhcmdlXG4gICAgICAgICAgICAgICAgb3B0aW9ucy53cHMuaWRlbnRpZmllciA9IFwiZ3M6V1BTRWxldmF0aW9uXCI7XG4gICAgICAgICAgICAgICAgRGF0YU9iamVjdCA9IG5ldyBBbHRpRWxldmF0aW9uUmVxdWVzdChvcHRpb25zLnBhcmFtKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgXCJQcm9maWxcIjpcbiAgICAgICAgICAgICAgICAvLyBzdXJjaGFyZ2VcbiAgICAgICAgICAgICAgICBvcHRpb25zLndwcy5pZGVudGlmaWVyID0gXCJnczpXUFNMaW5lRWxldmF0aW9uXCI7XG4gICAgICAgICAgICAgICAgRGF0YU9iamVjdCA9IG5ldyBBbHRpUHJvZmlsUmVxdWVzdChvcHRpb25zLnBhcmFtKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKF8uZ2V0TWVzc2FnZShcIlBBUkFNX1RZUEVcIiwgXCJ0eXBlIChFbGV2YXRpb24gb3IgUHJvZmlsKVwiKSk7XG4gICAgICAgIH1cblxuICAgICAgICAvLyBjb25zdHJ1Y3Rpb24gZGUgbGEgcmVxdcOqdGUgV1BTXG4gICAgICAgIHZhciBzZXR0aW5ncyA9IHtcbiAgICAgICAgICAgIGRhdGEgOiBEYXRhT2JqZWN0LFxuICAgICAgICAgICAgbWV0aG9kIDogb3B0aW9ucy5tZXRob2QsXG4gICAgICAgICAgICBwYXJhbSA6IG9wdGlvbnMud3BzXG4gICAgICAgIH07XG5cbiAgICAgICAgdmFyIHJxc3RXUFMgPSBuZXcgV1BTKHNldHRpbmdzKTtcblxuICAgICAgICBpZiAoIXJxc3RXUFMucHJvY2Vzc1JlcXVlc3RTdHJpbmcoKSkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKFwiRW5hYmxlIHRvIHByb2Nlc3MgcmVxdWVzdCAhXCIpO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHJxc3RXUFMucmVxdWVzdFN0cmluZztcbiAgICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBBbHRpUmVxdWVzdFdQUztcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Services/Alti/Request/AltiRequestWPS.js\n"); + +/***/ }), + +/***/ "./src/Services/Alti/Request/model/AltiElevationRequest.js": +/*!*****************************************************************!*\ + !*** ./src/Services/Alti/Request/model/AltiElevationRequest.js ***! + \*****************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _AltiRequest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AltiRequest */ \"./src/Services/Alti/Request/model/AltiRequest.js\");\n\n\n\n/**\n * @classdesc\n *\n * Classe de gestion des param. des requêtes de type POINT du service altimetrique.\n *\n * @constructor\n * @alias Gp.Services.Alti.Request.AltiElevationRequest\n * @param {Object} options - options\n * @param {Boolean} options.zonly - false|true\n *\n * @private\n */\nfunction AltiElevationRequest(options) {\n if (!(this instanceof AltiElevationRequest)) {\n throw new TypeError(\"AltiElevationRequest constructor cannot be called as a function.\");\n }\n\n /**\n * Nom de la classe (heritage)\n */\n this.CLASSNAME = \"AltiElevationRequest\";\n\n // appel du constructeur par heritage\n _AltiRequest__WEBPACK_IMPORTED_MODULE_1__[\"default\"].apply(this, arguments);\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger();\n this.logger.trace(\"[Constructeur AltiElevationRequest ()]\");\n\n /**\n * Z uniquement.\n * true|false\n */\n this.zonly = this.options.zonly || false; // test des options héritées !\n}\n\n/**\n * @lends module:AltiElevationRequest#\n */\n\nAltiElevationRequest.prototype = Object.create(_AltiRequest__WEBPACK_IMPORTED_MODULE_1__[\"default\"].prototype, {\n /**\n * Setter/getter pour \"zonly\"\n */\n zonly: {\n /** getter */\n get: function get() {\n return this._zonly;\n },\n /** setter */\n set: function set(z) {\n this._zonly = z;\n }\n }\n});\n\n/**\n * Constructeur (alias)\n */\nAltiElevationRequest.prototype.constructor = AltiElevationRequest;\n\n/**\n * Tableau de clefs/valeurs pour param.\n *\n * @returns {Array}\n */\nAltiElevationRequest.prototype.getData = function () {\n // par glop..., appel de AltiRequest::getData () !\n var map = [];\n map.push({\n k: \"lon\",\n v: this.getLon()\n });\n map.push({\n k: \"lat\",\n v: this.getLat()\n });\n // map.push({k : \"delimiter\", v : this.delimiter}); // FIXME on retire le param \"delimiter\"\n map.push({\n k: \"indent\",\n v: this.indent\n });\n map.push({\n k: \"crs\",\n v: this.crs\n });\n map.push({\n k: \"zonly\",\n v: this.zonly\n });\n map.push({\n k: \"format\",\n v: this.format\n });\n map.push({\n k: \"resource\",\n v: this.resource\n });\n return map;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (AltiElevationRequest);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9BbHRpL1JlcXVlc3QvbW9kZWwvQWx0aUVsZXZhdGlvblJlcXVlc3QuanM/MTY1NCJdLCJuYW1lcyI6WyJBbHRpRWxldmF0aW9uUmVxdWVzdCIsIm9wdGlvbnMiLCJUeXBlRXJyb3IiLCJDTEFTU05BTUUiLCJBbHRpUmVxdWVzdCIsImFwcGx5IiwiYXJndW1lbnRzIiwibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwidHJhY2UiLCJ6b25seSIsInByb3RvdHlwZSIsIk9iamVjdCIsImNyZWF0ZSIsImdldCIsIl96b25seSIsInNldCIsInoiLCJjb25zdHJ1Y3RvciIsImdldERhdGEiLCJtYXAiLCJwdXNoIiwiayIsInYiLCJnZXRMb24iLCJnZXRMYXQiLCJpbmRlbnQiLCJjcnMiLCJmb3JtYXQiLCJyZXNvdXJjZSJdLCJtYXBwaW5ncyI6IkFBQ0E7QUFBQTtBQUFBO0FBQXVEO0FBQ2Y7O0FBRXhDO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLFNBQVNBLG9CQUFvQkEsQ0FBRUMsT0FBTyxFQUFFO0VBQ3BDLElBQUksRUFBRSxJQUFJLFlBQVlELG9CQUFvQixDQUFDLEVBQUU7SUFDekMsTUFBTSxJQUFJRSxTQUFTLENBQUMsa0VBQWtFLENBQUM7RUFDM0Y7O0VBRUE7QUFDSjtBQUNBO0VBQ0ksSUFBSSxDQUFDQyxTQUFTLEdBQUcsc0JBQXNCOztFQUV2QztFQUNBQyxvREFBVyxDQUFDQyxLQUFLLENBQUMsSUFBSSxFQUFFQyx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HBlbCBkZSBBbHRpUmVxdWVzdDo6Z2V0RGF0YSAoKSAhXG4gICAgdmFyIG1hcCA9IFtdO1xuICAgIG1hcC5wdXNoKHtcbiAgICAgICAgayA6IFwibG9uXCIsXG4gICAgICAgIHYgOiB0aGlzLmdldExvbigpXG4gICAgfSk7XG4gICAgbWFwLnB1c2goe1xuICAgICAgICBrIDogXCJsYXRcIixcbiAgICAgICAgdiA6IHRoaXMuZ2V0TGF0KClcbiAgICB9KTtcbiAgICAvLyBtYXAucHVzaCh7ayA6IFwiZGVsaW1pdGVyXCIsIHYgOiB0aGlzLmRlbGltaXRlcn0pOyAvLyBGSVhNRSBvbiByZXRpcmUgbGUgcGFyYW0gXCJkZWxpbWl0ZXJcIlxuICAgIG1hcC5wdXNoKHtcbiAgICAgICAgayA6IFwiaW5kZW50XCIsXG4gICAgICAgIHYgOiB0aGlzLmluZGVudFxuICAgIH0pO1xuICAgIG1hcC5wdXNoKHtcbiAgICAgICAgayA6IFwiY3JzXCIsXG4gICAgICAgIHYgOiB0aGlzLmNyc1xuICAgIH0pO1xuICAgIG1hcC5wdXNoKHtcbiAgICAgICAgayA6IFwiem9ubHlcIixcbiAgICAgICAgdiA6IHRoaXMuem9ubHlcbiAgICB9KTtcbiAgICBtYXAucHVzaCh7XG4gICAgICAgIGsgOiBcImZvcm1hdFwiLFxuICAgICAgICB2IDogdGhpcy5mb3JtYXRcbiAgICB9KTtcbiAgICBtYXAucHVzaCh7XG4gICAgICAgIGsgOiBcInJlc291cmNlXCIsXG4gICAgICAgIHYgOiB0aGlzLnJlc291cmNlXG4gICAgfSk7XG5cbiAgICByZXR1cm4gbWFwO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgQWx0aUVsZXZhdGlvblJlcXVlc3Q7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Services/Alti/Request/model/AltiElevationRequest.js\n"); + +/***/ }), + +/***/ "./src/Services/Alti/Request/model/AltiProfilRequest.js": +/*!**************************************************************!*\ + !*** ./src/Services/Alti/Request/model/AltiProfilRequest.js ***! + \**************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _AltiRequest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AltiRequest */ \"./src/Services/Alti/Request/model/AltiRequest.js\");\n\n\n\n/**\n * @classdesc\n * Classe de gestion des param. des requêtes de type PROFIL du service altimetrique.\n *\n * @constructor\n * @alias Gp.Services.Alti.Request.AltiProfilRequest\n * @param {Object} options - options\n * @param {String} options.sampling - 3\n *\n * @private\n */\nfunction AltiProfilRequest(options) {\n if (!(this instanceof AltiProfilRequest)) {\n throw new TypeError(\"AltiProfilRequest constructor cannot be called as a function.\");\n }\n\n /**\n * Nom de la classe (heritage)\n */\n this.CLASSNAME = \"AltiProfilRequest\";\n\n // appel du constructeur par heritage\n _AltiRequest__WEBPACK_IMPORTED_MODULE_1__[\"default\"].apply(this, arguments);\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger();\n this.logger.trace(\"[Constructeur AltiProfilRequest ()]\");\n\n /**\n * Sampling\n * Par defaut, 3\n */\n this.sampling = this.options.sampling || 3; // test des options héritées !\n}\n\n/**\n * @lends module:AltiProfilRequest#\n */\n\nAltiProfilRequest.prototype = Object.create(_AltiRequest__WEBPACK_IMPORTED_MODULE_1__[\"default\"].prototype, {\n /**\n * Setter/getter pour \"sampling\"\n */\n sampling: {\n /** getter */\n get: function get() {\n return this._sampling;\n },\n /** setter */\n set: function set(value) {\n this._sampling = value;\n }\n }\n});\n\n/**\n * Constructeur (alias)\n */\nAltiProfilRequest.prototype.constructor = AltiProfilRequest;\n\n/**\n * Tableau de clefs/valeurs pour param.\n *\n * @returns {Object[]}\n */\nAltiProfilRequest.prototype.getData = function () {\n // par glop..., appel de AltiRequest::getData () !\n var map = [];\n map.push({\n k: \"lon\",\n v: this.getLon()\n });\n map.push({\n k: \"lat\",\n v: this.getLat()\n });\n // map.push({k : \"delimiter\", v : this.delimiter}); // FIXME on retire le param \"delimiter\"\n map.push({\n k: \"indent\",\n v: this.indent\n });\n map.push({\n k: \"crs\",\n v: this.crs\n });\n map.push({\n k: \"sampling\",\n v: this.sampling\n });\n map.push({\n k: \"format\",\n v: this.format\n });\n map.push({\n k: \"resource\",\n v: this.resource\n });\n return map;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (AltiProfilRequest);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9BbHRpL1JlcXVlc3QvbW9kZWwvQWx0aVByb2ZpbFJlcXVlc3QuanM/ZjA5YyJdLCJuYW1lcyI6WyJBbHRpUHJvZmlsUmVxdWVzdCIsIm9wdGlvbnMiLCJUeXBlRXJyb3IiLCJDTEFTU05BTUUiLCJBbHRpUmVxdWVzdCIsImFwcGx5IiwiYXJndW1lbnRzIiwibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwidHJhY2UiLCJzYW1wbGluZyIsInByb3RvdHlwZSIsIk9iamVjdCIsImNyZWF0ZSIsImdldCIsIl9zYW1wbGluZyIsInNldCIsInZhbHVlIiwiY29uc3RydWN0b3IiLCJnZXREYXRhIiwibWFwIiwicHVzaCIsImsiLCJ2IiwiZ2V0TG9uIiwiZ2V0TGF0IiwiaW5kZW50IiwiY3JzIiwiZm9ybWF0IiwicmVzb3VyY2UiXSwibWFwcGluZ3MiOiJBQUNBO0FBQUE7QUFBQTtBQUF1RDtBQUNmOztBQUV4QztBQUNBO0FBQ0E7QUFDQTtBQUNBO0FB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4gICAgICAgIHYgOiB0aGlzLmZvcm1hdFxuICAgIH0pO1xuICAgIG1hcC5wdXNoKHtcbiAgICAgICAgayA6IFwicmVzb3VyY2VcIixcbiAgICAgICAgdiA6IHRoaXMucmVzb3VyY2VcbiAgICB9KTtcblxuICAgIHJldHVybiBtYXA7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBBbHRpUHJvZmlsUmVxdWVzdDtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Services/Alti/Request/model/AltiProfilRequest.js\n"); + +/***/ }), + +/***/ "./src/Services/Alti/Request/model/AltiRequest.js": +/*!********************************************************!*\ + !*** ./src/Services/Alti/Request/model/AltiRequest.js ***! + \********************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n\n\n/**\n * @classdesc\n * Classe de gestion des param. des requêtes du service altimetrique.\n *\n * @constructor\n * @alias Gp.Services.Alti.Request.AltiRequest\n * @param {Object} options - options\n * @param {Object} options.positions - tableau de coordonnées lon/lat\n * @param {String} options.delimiter - \"|\"\n * @param {Boolean} options.indent - false|true\n * @param {String} options.crs - \"CRS:84\"\n * @param {String} options.format - \"JSON|XML\"\n *\n * @private\n */\nfunction AltiRequest(options) {\n if (!(this instanceof AltiRequest)) {\n throw new TypeError(\"AltiRequest constructor cannot be called as a function.\");\n }\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger();\n this.logger.trace(\"[Constructeur AltiRequest ()]\");\n\n /**\n * Options en paramêtres du constructeur.\n */\n this.options = options || {};\n\n /**\n * Liste des coordonnées.\n * @example\n * var c = [{lon : \"\", lat : \"\"}, {lon : \"\", lat : \"\"}];\n */\n this.positions = this.options.positions || [];\n\n /**\n * Caractère de séparation.\n * Par defaut, \"|\".\n */\n this.delimiter = this.options.delimiter || \"|\";\n\n /**\n * Indentation.\n * true|false\n */\n this.indent = this.options.indent || false;\n\n /**\n * Projection.\n * Par defaut, CRS:84.\n */\n this.crs = this.options.crs || \"CRS:84\";\n\n /**\n * format de sortie.\n * Par defaut, \"json\".\n */\n this.format = this.options.format || \"json\";\n\n /*\n * Ressource utilisée\n */\n this.resource = this.options.resource;\n\n /**\n * Réponse détaillée (source & accuracy)\n * true|false\n */\n this.measures = this.options.measures || false;\n}\n\n/**\n * CLASSNAME\n */\nAltiRequest.CLASSNAME = \"AltiRequest\";\nAltiRequest.prototype = {\n /**\n * @lends module:AltiRequest#\n */\n\n /**\n * Constructeur (alias)\n */\n constructor: AltiRequest,\n /**\n * Ajout d\"une liste de coordonnées.\n *\n * @param {Object[]} lstPosition - liste de positions\n * @example\n * obj.setPositions ([{lon : \"0.15\", lat : \"0.15\"}, {lon : \"1.15\", lat : \"1.15\"}]);\n */\n setPositions: function setPositions(lstPosition) {\n var positions = [];\n for (var i = 0; i < lstPosition.length; i++) {\n var o = lstPosition[i];\n if (o.lon && o.lat) {\n positions.push(o);\n }\n }\n this.positions = positions;\n },\n /**\n * Liste des coordonnées.\n *\n * @param {Int} pos - position\n * @returns {positions}\n * @example\n * obj.getPositions (); // [{lon : \"\", lat : \"\"}, {lon : \"\", lat : \"\"}]\n * obj.getPositions (0); // [{lon : \"\", lat : \"\"}]\n */\n getPositions: function getPositions(pos) {\n // FIXME test if not a number !?\n if (!pos) {\n return this.positions;\n }\n var index = this.positions.length - 1;\n if (pos > index || pos < index) {\n this.logger.warn(\"index out of range !\");\n return this.positions;\n }\n return this.positions[pos];\n },\n /**\n * Ajout d\"une liste de coordonnées.\n *\n * @param {Object[]} lstPosition - liste de positions\n * @example\n * obj.addPositions ([{lon : \"0.15\", lat : \"0.15\"}, {lon : \"1.15\", lat : \"1.15\"}]);\n */\n addPositions: function addPositions(lstPosition) {\n for (var i = 0; i < lstPosition.length; i++) {\n var o = lstPosition[i];\n if (o.lon && o.lat) {\n this.positions.push(lstPosition[i]);\n }\n }\n },\n /**\n * Retourne la liste des longitudes avec un caractère de séparation.\n *\n * @returns {String} - une liste de longitudes\n * @example\n * // out : 0.2367|2.1570|43.789|...\n */\n getLon: function getLon() {\n var lstLon = [];\n for (var i = 0; i < this.positions.length; i++) {\n lstLon.push(this.positions[i].lon);\n }\n this.logger.trace(lstLon);\n return lstLon.join(this.delimiter);\n },\n /**\n * Retourne la liste des lattitudes avec un caractère de séparation.\n *\n * @returns {String} - une liste de lattitudes\n * @example\n * // out : 0.2367|2.1570|43.789|...\n */\n getLat: function getLat() {\n var lstLat = [];\n for (var i = 0; i < this.positions.length; i++) {\n lstLat.push(this.positions[i].lat);\n }\n this.logger.trace(lstLat);\n return lstLat.join(this.delimiter);\n }\n};\n\n/**\n * Tableau de clefs/valeurs pour param.\n *\n * @returns {Object[]}\n */\nAltiRequest.prototype.getData = function () {\n var map = [];\n map.push({\n k: \"lon\",\n v: this.getLon()\n });\n map.push({\n k: \"lat\",\n v: this.getLat()\n });\n map.push({\n k: \"delimiter\",\n v: this.delimiter\n });\n map.push({\n k: \"indent\",\n v: this.indent\n });\n map.push({\n k: \"crs\",\n v: this.crs\n });\n map.push({\n k: \"format\",\n v: this.format\n });\n return map;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (AltiRequest);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9BbHRpL1JlcXVlc3QvbW9kZWwvQWx0aVJlcXVlc3QuanM/MDgwZSJdLCJuYW1lcyI6WyJBbHRpUmVxdWVzdCIsIm9wdGlvbnMiLCJUeXBlRXJyb3IiLCJsb2dnZXIiLCJMb2dnZXIiLCJnZXRMb2dnZXIiLCJ0cmFjZSIsInBvc2l0aW9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gICAgaWYgKCFwb3MpIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnBvc2l0aW9ucztcbiAgICAgICAgfVxuXG4gICAgICAgIHZhciBpbmRleCA9IHRoaXMucG9zaXRpb25zLmxlbmd0aCAtIDE7XG4gICAgICAgIGlmIChwb3MgPiBpbmRleCB8fCBwb3MgPCBpbmRleCkge1xuICAgICAgICAgICAgdGhpcy5sb2dnZXIud2FybihcImluZGV4IG91dCBvZiByYW5nZSAhXCIpO1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMucG9zaXRpb25zO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXMucG9zaXRpb25zW3Bvc107XG4gICAgfSxcblxuICAgIC8qKlxuICAgICAqIEFqb3V0IGRcInVuZSBsaXN0ZSBkZSBjb29yZG9ubsOpZXMuXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge09iamVjdFtdfSBsc3RQb3NpdGlvbiAtIGxpc3RlIGRlIHBvc2l0aW9uc1xuICAgICAqIEBleGFtcGxlXG4gICAgICogb2JqLmFkZFBvc2l0aW9ucyAoW3tsb24gOiBcIjAuMTVcIiwgbGF0IDogXCIwLjE1XCJ9LCB7bG9uIDogXCIxLjE1XCIsIGxhdCA6IFwiMS4xNVwifV0pO1xuICAgICAqL1xuICAgIGFkZFBvc2l0aW9ucyA6IGZ1bmN0aW9uIChsc3RQb3NpdGlvbikge1xuICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxzdFBvc2l0aW9uLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICB2YXIgbyA9IGxzdFBvc2l0aW9uW2ldO1xuICAgICAgICAgICAgaWYgKG8ubG9uICYmIG8ubGF0KSB7XG4gICAgICAgICAgICAgICAgdGhpcy5wb3NpdGlvbnMucHVzaChsc3RQb3NpdGlvbltpXSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9LFxuXG4gICAgLyoqXG4gICAgICogUmV0b3VybmUgbGEgbGlz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y5sb2dnZXIudHJhY2UobHN0TGF0KTtcbiAgICAgICAgcmV0dXJuIGxzdExhdC5qb2luKHRoaXMuZGVsaW1pdGVyKTtcbiAgICB9XG5cbn07XG5cbi8qKlxuICogVGFibGVhdSBkZSBjbGVmcy92YWxldXJzIHBvdXIgcGFyYW0uXG4gKlxuICogQHJldHVybnMge09iamVjdFtdfVxuICovXG5BbHRpUmVxdWVzdC5wcm90b3R5cGUuZ2V0RGF0YSA9IGZ1bmN0aW9uICgpIHtcbiAgICB2YXIgbWFwID0gW107XG5cbiAgICBtYXAucHVzaCh7XG4gICAgICAgIGsgOiBcImxvblwiLFxuICAgICAgICB2IDogdGhpcy5nZXRMb24oKVxuICAgIH0pO1xuICAgIG1hcC5wdXNoKHtcbiAgICAgICAgayA6IFwibGF0XCIsXG4gICAgICAgIHYgOiB0aGlzLmdldExhdCgpXG4gICAgfSk7XG4gICAgbWFwLnB1c2goe1xuICAgICAgICBrIDogXCJkZWxpbWl0ZXJcIixcbiAgICAgICAgdiA6IHRoaXMuZGVsaW1pdGVyXG4gICAgfSk7XG4gICAgbWFwLnB1c2goe1xuICAgICAgICBrIDogXCJpbmRlbnRcIixcbiAgICAgICAgdiA6IHRoaXMuaW5kZW50XG4gICAgfSk7XG4gICAgbWFwLnB1c2goe1xuICAgICAgICBrIDogXCJjcnNcIixcbiAgICAgICAgdiA6IHRoaXMuY3JzXG4gICAgfSk7XG4gICAgbWFwLnB1c2goe1xuICAgICAgICBrIDogXCJmb3JtYXRcIixcbiAgICAgICAgdiA6IHRoaXMuZm9ybWF0XG4gICAgfSk7XG5cbiAgICByZXR1cm4gbWFwO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgQWx0aVJlcXVlc3Q7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Services/Alti/Request/model/AltiRequest.js\n"); + +/***/ }), + +/***/ "./src/Services/Alti/Response/AltiResponseFactory.js": +/*!***********************************************************!*\ + !*** ./src/Services/Alti/Response/AltiResponseFactory.js ***! + \***********************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Exceptions/ErrorService */ \"./src/Exceptions/ErrorService.js\");\n/* harmony import */ var _Formats_XML__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Formats/XML */ \"./src/Formats/XML.js\");\n/* harmony import */ var _Formats_AltiResponseReader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Formats/AltiResponseReader */ \"./src/Services/Alti/Formats/AltiResponseReader.js\");\n/* harmony import */ var _model_AltiResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./model/AltiResponse */ \"./src/Services/Alti/Response/model/AltiResponse.js\");\n/* harmony import */ var _model_Elevation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./model/Elevation */ \"./src/Services/Alti/Response/model/Elevation.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n/**\n * Factory pour générer une reponse JSON à partir d'un XML ou d'un JSON\n * (Factory)\n *\n * @module AltiResponseFactory\n * @private\n * @alias Gp.Services.Alti.Response.AltiResponseFactory\n */\n\n\n\n\n\n\n\nvar AltiResponseFactory = {\n /**\n * interface unique\n *\n * @method build\n * @static\n * @param {Object} options - options definies dans le composant Alti\n *\n * @example\n * var options = {\n * response :\n * outputFormat :\n * rawResponse :\n * scope :\n * onSuccess :\n * onError :\n * };\n *\n */\n build: function build(options) {\n // logger\n var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"AltiResponseFactory\");\n logger.trace([\"AltiResponseFactory::build()\"]);\n var data = null;\n if (options.response) {\n if (options.rawResponse) {\n logger.trace(\"analyze response : raw\");\n data = options.response;\n } else {\n switch (options.outputFormat) {\n case \"xml\":\n logger.trace(\"analyze response : xml\");\n try {\n var p = new _Formats_XML__WEBPACK_IMPORTED_MODULE_3__[\"default\"]({\n reader: _Formats_AltiResponseReader__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n });\n if (typeof options.response === \"string\") {\n p.setXMLString(options.response);\n } else {\n p.setXMLDoc(options.response);\n }\n data = p.parse();\n if (!data) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EXCEPTION_2\"));\n }\n } catch (e) {\n var message = e.message;\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EXCEPTION\", message),\n status: 200,\n type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"].TYPE_SRVERR\n }));\n return;\n }\n break;\n case \"json\":\n logger.trace(\"analyze response : json\");\n logger.trace(\"analyze response : \", _typeof(options.response));\n var JSONResponse = null;\n if (typeof options.response === \"string\") {\n JSONResponse = JSON.parse(options.response);\n } else {\n JSONResponse = options.response;\n }\n\n // le service renvoie t il une erreur ?\n if (JSONResponse && JSONResponse.error) {\n // ex. {\"error\": {\"code\": \"BAD_PARAMETER\",\"description\": \"The values () cannot be parsed as a valid longitude (double value such as -180 < lat < 180).\"}}\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EXCEPTION\", JSONResponse.error.description),\n status: 200,\n type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"].TYPE_SRVERR\n }));\n return;\n }\n\n // analyse de la reponse\n if (JSONResponse) {\n var elevations = JSONResponse.elevations;\n var altiResponse = new _model_AltiResponse__WEBPACK_IMPORTED_MODULE_5__[\"default\"]();\n var elevation;\n if (Array.isArray(elevations) && elevations.length) {\n for (var i = 0; i < elevations.length; i++) {\n elevation = new _model_Elevation__WEBPACK_IMPORTED_MODULE_6__[\"default\"]();\n if (_typeof(elevations[i]) === \"object\") {\n // elevations[i] est un objet elevation\n if (elevations[i].lon) {\n elevation.lon = elevations[i].lon;\n }\n if (elevations[i].lat) {\n elevation.lat = elevations[i].lat;\n }\n if (elevations[i].z) {\n elevation.z = elevations[i].z;\n }\n if (elevations[i].acc) {\n elevation.acc = elevations[i].acc;\n }\n if (elevations[i].measures) {\n elevation.measures = elevations[i].measures;\n }\n } else if (typeof elevations[i] === \"number\") {\n // elevations[i] est un nombre, dans le cas de zonly=true notamment\n elevation.z = elevations[i];\n }\n if (Array.isArray(altiResponse.elevations)) {\n altiResponse.elevations.push(elevation);\n }\n }\n }\n data = altiResponse;\n }\n if (!data) {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_ANALYSE_2\"),\n type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"].TYPE_UNKERR,\n status: -1\n }));\n return;\n }\n break;\n default:\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_FORMAT_2\"),\n type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"].TYPE_UNKERR,\n status: -1\n }));\n return;\n }\n\n // Si la réponse contenait une exception renvoyée par le service\n if (data.exceptionReport) {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EXCEPTION\", data.exceptionReport),\n type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"].TYPE_SRVERR,\n status: 200\n }));\n return;\n } else if (data.error) {\n var errorMess = data.error.description;\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EXCEPTION\", errorMess),\n type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"].TYPE_SRVERR,\n status: 200\n }));\n return;\n }\n }\n } else {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EMPTY\")));\n return;\n }\n options.onSuccess.call(options.scope, data);\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (AltiResponseFactory);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9BbHRpL1Jlc3BvbnNlL0FsdGlSZXNwb25zZUZhY3RvcnkuanM/NDc1MSJdLCJu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9wdGlvbnMpIHtcbiAgICAgICAgLy8gbG9nZ2VyXG4gICAgICAgIHZhciBsb2dnZXIgPSBMb2dnZXIuZ2V0TG9nZ2VyKFwiQWx0aVJlc3BvbnNlRmFjdG9yeVwiKTtcbiAgICAgICAgbG9nZ2VyLnRyYWNlKFtcIkFsdGlSZXNwb25zZUZhY3Rvcnk6OmJ1aWxkKClcIl0pO1xuXG4gICAgICAgIHZhciBkYXRhID0gbnVsbDtcblxuICAgICAgICBpZiAob3B0aW9ucy5yZXNwb25zZSkge1xuICAgICAgICAgICAgaWYgKG9wdGlvbnMucmF3UmVzcG9uc2UpIHtcbiAgICAgICAgICAgICAgICBsb2dnZXIudHJhY2UoXCJhbmFseXplIHJlc3BvbnNlIDogcmF3XCIpO1xuICAgICAgICAgICAgICAgIGRhdGEgPSBvcHRpb25zLnJlc3BvbnNlO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBzd2l0Y2ggKG9wdGlvbnMub3V0cHV0Rm9ybWF0KSB7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgXCJ4bWxcIjpcbiAgICAgICAgICAgICAgICAgICAgICAgIGxvZ2dlci50cmFjZShcImFuYWx5emUgcmVzcG9uc2UgOiB4bWxcIik7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHAgPSBuZXcgWE1MKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVhZGVyIDogQWx0aVJlc3BvbnNlUmVhZGVyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAodHlwZW9mIG9wdGlvbnMucmVzcG9uc2UgPT09IFwic3RyaW5nXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcC5zZXRYTUxTdHJpbmcob3B0aW9ucy5yZXNwb25zZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcC5zZXRYTUxEb2Mob3B0aW9ucy5yZXNwb25zZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YSA9IHAucGFyc2UoKTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghZGF0YSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoTVJlcy5nZXRNZXNzYWdlKFwiU0VSVklDRV9SRVNQT05TRV9FWENFUFRJT05fMlwiKSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSBjYXRjaCAoZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBtZXNzYWdlID0gZS5tZXNzYWdlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9wdGlvbnMub25FcnJvci5jYWxsKG9wdGlvbnMuc2NvcGUsIG5ldyBFcnJvclNlcnZpY2Uoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtZXNzYWdlIDogTVJlcy5nZXRNZXNzYWdlKFwiU0VSVklDRV9SRVNQT05TRV9FWENFUFRJT05cIiwgbWVzc2FnZSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXR1cyA6IDIwMCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdHlwZSA6IEVycm9yU2VydmljZS5UWVBFX1NSVkVSUlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgICAgIGNhc2UgXCJqc29uXCI6XG4gICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIudHJhY2UoXCJhbmFseXplIHJlc3BvbnNlIDoganNvblwiKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxvZ2dlci50cmFjZShcImFuYWx5emUgcmVzcG9uc2UgOiBcIiwgdHlwZW9mIG9wdGlvbnMucmVzcG9uc2UpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgSlNPTlJlc3BvbnNlID0gbnVsbDtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2Ygb3B0aW9ucy5yZXNwb25zZSA9PT0gXCJzdHJpbmdcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEpTT05SZXNwb25zZSA9IEpTT04ucGFyc2Uob3B0aW9ucy5yZXNwb25zZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEpTT05SZXNwb25zZSA9IG9wdGlvbnMucmVzcG9uc2U7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGxlIHNlcnZpY2UgcmVudm9pZSB0IGlsIHVuZSBlcnJldXIgP1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKEpTT05SZXNwb25zZSAmJiBKU09OUmVzcG9uc2UuZXJyb3IpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBleC4ge1wiZXJyb3JcIjoge1wiY29kZVwiOiBcIkJBRF9QQVJBTUVURVJcIixcImRlc2NyaXB0aW9uXCI6IFwiVGhlIHZhbHVlcyAoKSBjYW5ub3QgYmUgcGFyc2VkIGFzIGEgdmFsaWQgbG9uZ2l0dWRlIChkb3VibGUgdmFsdWUgc3VjaCBhcyAtMTgwIDwgbGF0IDwgMTgwKS5cIn19XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5vbkVycm9yLmNhbGwob3B0aW9ucy5zY29wZSwgbmV3IEVycm9yU2VydmljZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1lc3NhZ2UgOiBNUmVzLmdldE1lc3NhZ2UoXCJTRVJWSUNFX1JFU1BPTlNFX0VYQ0VQVElPTlwiLCBKU09OUmVzcG9uc2UuZXJyb3IuZGVzY3JpcHRpb24pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0dXMgOiAyMDAsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGUgOiBFcnJvclNlcnZpY2UuVFlQRV9TUlZFUlJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBhbmFseXNlIGRlIGxhIHJlcG9uc2VcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChKU09OUmVzcG9uc2UpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgZWxldmF0aW9ucyA9IEpTT05SZXNwb25zZS5lbGV2YXRpb25zO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBhbHRpUmVzcG9uc2UgPSBuZXcgQWx0aVJlc3BvbnNlKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGVsZXZhdGlvbjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShlbGV2YXRpb25zKSAmJiBlbGV2YXRpb25zLmxlbmd0aCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGVsZXZhdGlvbnMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsZXZhdGlvbiA9IG5ldyBFbGV2YXRpb24oKTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBlbGV2YXRpb25zW2ldID09PSBcIm9iamVjdFwiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gZWxldmF0aW9uc1tpXSBlc3QgdW4gb2JqZXQgZWxldmF0aW9uXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGVsZXZhdGlvbnNbaV0ubG9uKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsZXZhdGlvbi5sb24gPSBlbGV2YXRpb25zW2ldLmxvbjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGVsZXZhdGlvbnNbaV0ubGF0KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsZXZhdGlvbi5sYXQgPSBlbGV2YXRpb25zW2ldLmxhdDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGVsZXZhdGlvbnNbaV0ueikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbGV2YXRpb24ueiA9IGVsZXZhdGlvbnNbaV0uejtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGVsZXZhdGlvbnNbaV0uYWNjKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsZXZhdGlvbi5hY2MgPSBlbGV2YXRpb25zW2ldLmFjYztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGVsZXZhdGlvbnNbaV0ubWVhc3VyZXMpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxldmF0aW9uLm1lYXN1cmVzID0gZWxldmF0aW9uc1tpXS5tZWFzdXJlcztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHR5cGVvZiBlbGV2YXRpb25zW2ldID09PSBcIm51bWJlclwiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gZWxldmF0aW9uc1tpXSBlc3QgdW4gbm9tYnJlLCBkYW5zIGxlIGNhcyBkZSB6b25seT10cnVlIG5vdGFtbWVudFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsZXZhdGlvbi56ID0gZWxldmF0aW9uc1tpXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKEFycmF5LmlzQXJyYXkoYWx0aVJlc3BvbnNlLmVsZXZhdGlvbnMpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWx0aVJlc3BvbnNlLmVsZXZhdGlvbnMucHVzaChlbGV2YXRpb24pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEgPSBhbHRpUmVzcG9uc2U7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICghZGF0YSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9wdGlvbnMub25FcnJvci5jYWxsKG9wdGlvbnMuc2NvcGUsIG5ldyBFcnJvclNlcnZpY2Uoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtZXNzYWdlIDogTVJlcy5nZXRNZXNzYWdlKFwiU0VSVklDRV9SRVNQT05TRV9BTkFMWVNFXzJcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGUgOiBFcnJvclNlcnZpY2UuVFlQRV9VTktFUlIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXR1cyA6IC0xXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgICAgICAgICBvcHRpb25zLm9uRXJyb3IuY2FsbChvcHRpb25zLnNjb3BlLCBuZXcgRXJyb3JTZXJ2aWNlKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBtZXNzYWdlIDogTVJlcy5nZXRNZXNzYWdlKFwiU0VSVklDRV9SRVNQT05TRV9GT1JNQVRfMlwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0eXBlIDogRXJyb3JTZXJ2aWNlLlRZUEVfVU5LRVJSLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXR1cyA6IC0xXG4gICAgICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgLy8gU2kgbGEgcsOpcG9uc2UgY29udGVuYWl0IHVuZSBleGNlcHRpb24gcmVudm95w6llIHBhciBsZSBzZXJ2aWNlXG4gICAgICAgICAgICAgICAgaWYgKGRhdGEuZXhjZXB0aW9uUmVwb3J0KSB7XG4gICAgICAgICAgICAgICAgICAgIG9wdGlvbnMub25FcnJvci5jYWxsKG9wdGlvbnMuc2NvcGUsIG5ldyBFcnJvclNlcnZpY2Uoe1xuICAgICAgICAgICAgICAgICAgICAgICAgbWVzc2FnZSA6IE1SZXMuZ2V0TWVzc2FnZShcIlNFUlZJQ0VfUkVTUE9OU0VfRVhDRVBUSU9OXCIsIGRhdGEuZXhjZXB0aW9uUmVwb3J0KSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGUgOiBFcnJvclNlcnZpY2UuVFlQRV9TUlZFUlIsXG4gICAgICAgICAgICAgICAgICAgICAgICBzdGF0dXMgOiAyMDBcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgfSBlbHNlIGlmIChkYXRhLmVycm9yKSB7XG4gICAgICAgICAgICAgICAgICAgIHZhciBlcnJvck1lc3MgPSBkYXRhLmVycm9yLmRlc2NyaXB0aW9uO1xuICAgICAgICAgICAgICAgICAgICBvcHRpb25zLm9uRXJyb3IuY2FsbChvcHRpb25zLnNjb3BlLCBuZXcgRXJyb3JTZXJ2aWNlKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG1lc3NhZ2UgOiBNUmVzLmdldE1lc3NhZ2UoXCJTRVJWSUNFX1JFU1BPTlNFX0VYQ0VQVElPTlwiLCBlcnJvck1lc3MpLFxuICAgICAgICAgICAgICAgICAgICAgICAgdHlwZSA6IEVycm9yU2VydmljZS5UWVBFX1NSVkVSUixcbiAgICAgICAgICAgICAgICAgICAgICAgIHN0YXR1cyA6IDIwMFxuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBvcHRpb25zLm9uRXJyb3IuY2FsbChvcHRpb25zLnNjb3BlLCBuZXcgRXJyb3JTZXJ2aWNlKE1SZXMuZ2V0TWVzc2FnZShcIlNFUlZJQ0VfUkVTUE9OU0VfRU1QVFlcIikpKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIG9wdGlvbnMub25TdWNjZXNzLmNhbGwob3B0aW9ucy5zY29wZSwgZGF0YSk7XG4gICAgfVxufTtcblxuZXhwb3J0IGRlZmF1bHQgQWx0aVJlc3BvbnNlRmFjdG9yeTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Services/Alti/Response/AltiResponseFactory.js\n"); + +/***/ }), + +/***/ "./src/Services/Alti/Response/model/AltiResponse.js": +/*!**********************************************************!*\ + !*** ./src/Services/Alti/Response/model/AltiResponse.js ***! + \**********************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Response object for {@link module:Services~getAltitude Gp.Services.getAltitude ()} invocation when successful. Received as the argument of onSuccess callback function.\n *\n * @property {Array.} elevations - Elevations array.\n *\n * @namespace\n * @alias Gp.Services.AltiResponse\n */\nfunction AltiResponse() {\n if (!(this instanceof AltiResponse)) {\n throw new TypeError(\"AltiResponse constructor cannot be called as a function.\");\n }\n this.elevations = [];\n}\nAltiResponse.prototype = {\n constructor: AltiResponse\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (AltiResponse);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9BbHRpL1Jlc3BvbnNlL21vZGVsL0FsdGlSZXNwb25zZS5qcz8yYmM1Il0sIm5hbWVzIjpbIkFsdGlSZXNwb25zZSIsIlR5cGVFcnJvciIsImVsZXZhdGlvbnMiLCJwcm90b3R5cGUiLCJjb25zdHJ1Y3RvciJdLCJtYXBwaW5ncyI6IkFBQUE7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b3IgY2Fubm90IGJlIGNhbGxlZCBhcyBhIGZ1bmN0aW9uLlwiKTtcbiAgICB9XG5cbiAgICB0aGlzLmVsZXZhdGlvbnMgPSBbXTtcbn1cblxuQWx0aVJlc3BvbnNlLnByb3RvdHlwZSA9IHtcblxuICAgIGNvbnN0cnVjdG9yIDogQWx0aVJlc3BvbnNlXG5cbn07XG5cbmV4cG9ydCBkZWZhdWx0IEFsdGlSZXNwb25zZTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Services/Alti/Response/model/AltiResponse.js\n"); + +/***/ }), + +/***/ "./src/Services/Alti/Response/model/Elevation.js": +/*!*******************************************************!*\ + !*** ./src/Services/Alti/Response/model/Elevation.js ***! + \*******************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Single elevation object returned by underlying web service. Contains at least, one elevation (z). May also contain point coordinates and elevation accuracy if \"zonly\" parameter wasn't set to true.\n *\n * @property {Float} lat - Point latitude. (only if zonly=false)\n * @property {Float} lon - Point longitude. (only if zonly=false)\n * @property {Float} z - Point elevation.\n * @property {Float} acc - Accuracy of elevation for this point. (only if zonly=false)\n *\n * @namespace\n * @alias Gp.Services.Alti.Elevation\n */\nfunction Elevation() {\n if (!(this instanceof Elevation)) {\n throw new TypeError(\"Elevation constructor cannot be called as a function.\");\n }\n this.z = null;\n}\nElevation.prototype = {\n constructor: Elevation\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Elevation);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9BbHRpL1Jlc3BvbnNlL21vZGVsL0VsZXZhdGlvbi5qcz82NTZhIl0sIm5hbWVzIjpbIkVsZXZhdGlvbiIsIlR5cGVFcnJvciIsInoiLCJwcm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HByb3BlcnR5IHtGbG9hdH0gYWNjIC0gQWNjdXJhY3kgb2YgZWxldmF0aW9uIGZvciB0aGlzIHBvaW50LiAob25seSBpZiB6b25seT1mYWxzZSlcbiAqXG4gKiBAbmFtZXNwYWNlXG4gKiBAYWxpYXMgR3AuU2VydmljZXMuQWx0aS5FbGV2YXRpb25cbiAqL1xuZnVuY3Rpb24gRWxldmF0aW9uICgpIHtcbiAgICBpZiAoISh0aGlzIGluc3RhbmNlb2YgRWxldmF0aW9uKSkge1xuICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKFwiRWxldmF0aW9uIGNvbnN0cnVjdG9yIGNhbm5vdCBiZSBjYWxsZWQgYXMgYSBmdW5jdGlvbi5cIik7XG4gICAgfVxuXG4gICAgdGhpcy56ID0gbnVsbDtcbn1cblxuRWxldmF0aW9uLnByb3RvdHlwZSA9IHtcblxuICAgIGNvbnN0cnVjdG9yIDogRWxldmF0aW9uXG5cbn07XG5cbmV4cG9ydCBkZWZhdWx0IEVsZXZhdGlvbjtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Services/Alti/Response/model/Elevation.js\n"); + +/***/ }), + +/***/ "./src/Services/Alti/Response/model/Measure.js": +/*!*****************************************************!*\ + !*** ./src/Services/Alti/Response/model/Measure.js ***! + \*****************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Single measure object returned by underlying web service if measures = true and zonly = false\n *\n * @property {String} source_name - Name of the source\n * @property {String} source_measure - Name of the measure\n * @property {Float} z - Point elevation.\n * @property {Float} acc - Accuracy of elevation for this point. (only if zonly=false)\n *\n * @namespace\n * @alias Gp.Services.Alti.Measure\n */\nfunction Measure() {\n if (!(this instanceof Measure)) {\n throw new TypeError(\"Measure constructor cannot be called as a function.\");\n }\n this.source_name = null;\n this.source_measure = null;\n this.z = null;\n this.acc = null;\n}\nMeasure.prototype = {\n constructor: Measure\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Measure);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9BbHRpL1Jlc3BvbnNlL21vZGVsL01lYXN1cmUuanM/ZTNiMSJdLCJuYW1lcyI6WyJNZWFzdXJlIiwiVHlwZUVycm9yIiwic291cmNlX25hbWUiLCJzb3VyY2VfbWVhc3VyZSIsInoiLCJhY2MiLCJwcm90b3R5cGUiLCJjb25zdHJ1Y3RvciJdLCJtYXBwaW5ncyI6IkFBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsU0FBU0EsT0FBT0EsQ0FBQSxFQUFJO0VBQ2hCLElBQUksRUFBRSxJQUFJLFlBQVlBLE9BQU8sQ0FBQyxFQUFFO0lBQzVCLE1BQU0sSUFBSUMsU0FBUyxDQUFDLHFEQUFxRCxDQUFDO0VBQzlFO0VBRUEsSUFBSSxDQUFDQyxXQUFXLEdBQUcsSUFBSTtFQUN2QixJQUFJLENBQUNDLGNBQWMsR0FBRyxJQUFJO0VBQzFCLElBQUksQ0FBQ0MsQ0FBQyxHQUFHLElBQUk7RUFDYixJQUFJLENBQUNDLEdBQUcsR0FBRyxJQUFJO0FBQ25CO0FBRUFMLE9BQU8sQ0FBQ00sU0FBUyxHQUFHO0VBRWhCQyxXQUFXLEVBQUdQO0FBRWxCLENBQUM7QUFFY0Esc0VBQU8iLCJmaWxlIjoiLi9zcmMvU2VydmljZXMvQWx0aS9SZXNwb25zZS9tb2RlbC9NZWFzdXJlLmpzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiXG4vKipcbiAqIFNpbmdsZSBtZWFzdXJlIG9iamVjdCByZXR1cm5lZCBieSB1bmRlcmx5aW5nIHdlYiBzZXJ2aWNlIGlmIG1lYXN1cmVzID0gdHJ1ZSBhbmQgem9ubHkgPSBmYWxzZVxuICpcbiAqIEBwcm9wZXJ0eSB7U3RyaW5nfSBzb3VyY2VfbmFtZSAtIE5hbWUgb2YgdGhlIHNvdXJjZVxuICogQHByb3BlcnR5IHtTdHJpbmd9IHNvdXJjZV9tZWFzdXJlIC0gTmFtZSBvZiB0aGUgbWVhc3VyZVxuICogQHByb3BlcnR5IHtGbG9hdH0geiAtIFBvaW50IGVsZXZhdGlvbi5cbiAqIEBwcm9wZXJ0eSB7RmxvYXR9IGFjYyAtIEFjY3VyYWN5IG9mIGVsZXZhdGlvbiBmb3IgdGhpcyBwb2ludC4gKG9ubHkgaWYgem9ubHk9ZmFsc2UpXG4gKlxuICogQG5hbWVzcGFjZVxuICogQGFsaWFzIEdwLlNlcnZpY2VzLkFsdGkuTWVhc3VyZVxuICovXG5mdW5jdGlvbiBNZWFzdXJlICgpIHtcbiAgICBpZiAoISh0aGlzIGluc3RhbmNlb2YgTWVhc3VyZSkpIHtcbiAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcihcIk1lYXN1cmUgY29uc3RydWN0b3IgY2Fubm90IGJlIGNhbGxlZCBhcyBhIGZ1bmN0aW9uLlwiKTtcbiAgICB9XG5cbiAgICB0aGlzLnNvdXJjZV9uYW1lID0gbnVsbDtcbiAgICB0aGlzLnNvdXJjZV9tZWFzdXJlID0gbnVsbDtcbiAgICB0aGlzLnogPSBudWxsO1xuICAgIHRoaXMuYWNjID0gbnVsbDtcbn1cblxuTWVhc3VyZS5wcm90b3R5cGUgPSB7XG5cbiAgICBjb25zdHJ1Y3RvciA6IE1lYXN1cmVcblxufTtcblxuZXhwb3J0IGRlZmF1bHQgTWVhc3VyZTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Services/Alti/Response/model/Measure.js\n"); + +/***/ }), + +/***/ "./src/Services/AutoComplete/AutoComplete.js": +/*!***************************************************!*\ + !*** ./src/Services/AutoComplete/AutoComplete.js ***! + \***************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _CommonService__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../CommonService */ \"./src/Services/CommonService.js\");\n/* harmony import */ var _DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../DefaultUrlService */ \"./src/Services/DefaultUrlService.js\");\n/* harmony import */ var _Response_AutoCompleteResponseFactory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Response/AutoCompleteResponseFactory */ \"./src/Services/AutoComplete/Response/AutoCompleteResponseFactory.js\");\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _Utils_Helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Utils/Helper */ \"./src/Utils/Helper.js\");\n/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../Exceptions/ErrorService */ \"./src/Exceptions/ErrorService.js\");\n\n\n\n\n\n\n\n\n/**\n * @classdesc\n * Appel du service d'autocomplétion du Géoportail :\n * envoi de la requête construite selon les paramètres en options,\n * éventuellement parsing et analyse de la réponse,\n * retour d'une réponse en paramètre de la fonction onSuccess.\n * @constructor\n * @extends {Gp.Services.CommonService}\n * @alias Gp.Services.AutoComplete\n *\n * @param {Object} options - options spécifiques au service (+ les options heritées)\n *\n * @param {String} options.text - La chaîne de caractère à compléter.\n * Cette chaîne n'est pas \"URL encodée\".\n * C'est l'API qui s'occupe de l'encoder pour l'inclure dans la requête.\n *\n * @param {Array.} [options.type = [\"StreetAddress\"]] - Type de l'objet recherché.\n * Le service d'autocomplétion du Géoportail permet de rechercher des toponymes 'PositionOfInterest' et/ou des adresses postales 'StreetAddress'.\n * D'autres types pourront être rajoutés selon l'évolution du service.\n * Par défaut, type = ['StreetAddress'].\n *\n * @param {String} [options.territory] - Limitation de la zone de recherche de localisants.\n * Le service d'autocomplétion du Géoportail permet de limiter la recherche à la métropole et la Corse : options.territory = 'METROPOLE',\n * DOMS TOMS : options.territory = 'DOMTOM', ou à un département : options.territory = '31'\n * Pas de valeur par défaut.\n * La valeur par défaut est donc celle du service.\n * Le service d'autocomplétion du Géoportail renvoie toutes les informations quand aucun territoire n'est spécifié.\n *\n * @param {Number} [options.maximumResponses = 10] - Nombre de réponses maximal que l'on souhaite recevoir.\n * Pas de valeur par défaut.\n * La valeur par défaut sera donc celle du service : 10.\n *\n * @example\n * var options = {\n * // options communes aux services\n * apiKey : null,\n * serverUrl : 'http://localhost/service/',\n * protocol : 'JSONP', // JSONP|XHR\n * proxyURL : null,\n * httpMethod : 'GET', // GET|POST\n * timeOut : 10000, // ms\n * rawResponse : false, // true|false\n * scope : null, // this\n * onSuccess : function (response) {},\n * onFailure : function (error) {},\n * // spécifique au service\n * text : \"\",\n * type : \"StreetAddress\",\n * territory : 'METROPOLE',\n * maximumResponses : 10\n * };\n */\nfunction AutoComplete(options_) {\n if (!(this instanceof AutoComplete)) {\n throw new TypeError(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_4__[\"default\"].getMessage(\"CLASS_CONSTRUCTOR\", \"AutoComplete\"));\n }\n\n /**\n * Nom de la classe (heritage)\n * FIXME instance ou classe ?\n */\n this.CLASSNAME = \"AutoComplete\";\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getLogger(\"Gp.Services.AutoComplete\");\n this.logger.trace(\"[Constructeur AutoComplete (options)]\");\n var options = this.patchOptionConvertor(options_);\n if (!options.serverUrl) {\n options.serverUrl = _DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__[\"default\"].AutoComplete.newUrl();\n }\n\n // appel du constructeur par heritage\n _CommonService__WEBPACK_IMPORTED_MODULE_0__[\"default\"].apply(this, arguments);\n if (!options.text) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_4__[\"default\"].getMessage(\"PARAM_MISSING\", \"text\"));\n }\n\n // ajout des options spécifiques au service\n this.options.text = options.text;\n\n // on definit des parametres par defaut\n if (!options.type) {\n options.type = [\"StreetAddress,PositionOfInterest\"];\n }\n this.options.type = options.type;\n this.options.territory = options.terr || \"\";\n this.options.maximumResponses = options.maximumResponses || 10;\n\n // INFO\n // le service ne repond pas en mode POST (405 Method Not Allowed)\n if (this.options.protocol === \"XHR\" && this.options.httpMethod === \"POST\") {\n this.logger.warn(\"Le service ne gére pas le mode d'interrogation en POST, on bascule sur du GET !\");\n this.options.httpMethod = \"GET\"; // on surcharge !\n }\n\n // attributs d'instances\n\n /**\n * Format forcé de la réponse du service : \"json\"\n * sauf si l'on souhaite une reponse brute (options.rawResponse)\n */\n this.options.outputFormat = this.options.rawResponse ? \"\" : \"json\";\n}\n\n/**\n * @lends module:AutoComplete#\n */\n\nAutoComplete.prototype = Object.create(_CommonService__WEBPACK_IMPORTED_MODULE_0__[\"default\"].prototype, {\n // todo\n // getter/setter\n});\n\n/*\n * Constructeur (alias)\n */\nAutoComplete.prototype.constructor = AutoComplete;\n\n/**\n * Patch pour la convertion des options vers le nouveau formalisme.\n *\n * @param {Object} options_ - options du service\n * @return {Object} - options\n */\nAutoComplete.prototype.patchOptionConvertor = function (options_) {\n var options = options_;\n if (options.filterOptions) {\n this.logger.warn(\"The parameter 'filterOptions' is deprecated\");\n if (options.filterOptions.type) {\n this.logger.warn(\"The parameter 'filterOptions.type' is deprecated\");\n if (!options.type) {\n options.type = options.filterOptions.type;\n }\n }\n if (options.filterOptions.territory) {\n this.logger.warn(\"The parameter 'filterOptions.territory' is deprecated\");\n if (!options.terr) {\n options.terr = options.filterOptions.territory;\n }\n }\n delete options.filterOptions;\n }\n return options;\n};\n\n/**\n * (overwrite)\n * Création de la requête\n *\n * @param {Function} error - callback des erreurs\n * @param {Function} success - callback\n */\nAutoComplete.prototype.buildRequest = function (error, success) {\n // ex.\n // http://wxs.ign.fr/CLEF/ols/apis/completion?\n // text=Brie-Comt&\n // type=StreetAddress,PositionOfInterest&\n // territory=METROPOLE&\n // maximumResponses=10\n\n // traitement des param KPV sous forme de tableau\n var territory = \"\";\n if (this.options.territory) {\n territory = this.options.territory;\n }\n var type = \"\";\n if (this.options.type) {\n type = this.options.type.join(\",\");\n }\n\n // normalisation de la requete avec param KPV\n this.request = _Utils_Helper__WEBPACK_IMPORTED_MODULE_5__[\"default\"].normalyzeParameters({\n text: encodeURIComponent(this.options.text),\n type: type,\n terr: territory,\n maximumResponses: this.options.maximumResponses\n });\n !this.request ? error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_6__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_4__[\"default\"].getMessage(\"SERVICE_REQUEST_BUILD\"))) : success.call(this, this.request);\n};\n\n/**\n * (overwrite)\n * Analyse de la reponse\n *\n * @param {Function} error - callback des erreurs\n * @param {Function} success - callback de succès de l'analyse de la réponse\n */\nAutoComplete.prototype.analyzeResponse = function (error, success) {\n if (this.response) {\n var options = {\n response: this.response,\n rawResponse: this.options.rawResponse,\n onSuccess: success,\n onError: error,\n scope: this\n };\n _Response_AutoCompleteResponseFactory__WEBPACK_IMPORTED_MODULE_2__[\"default\"].build(options);\n } else {\n error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_6__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_4__[\"default\"].getMessage(\"SERVICE_RESPONSE_EMPTY\")));\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (AutoComplete);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json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ge1xuICAgICAgICB2YXIgb3B0aW9ucyA9IHtcbiAgICAgICAgICAgIHJlc3BvbnNlIDogdGhpcy5yZXNwb25zZSxcbiAgICAgICAgICAgIHJhd1Jlc3BvbnNlIDogdGhpcy5vcHRpb25zLnJhd1Jlc3BvbnNlLFxuICAgICAgICAgICAgb25TdWNjZXNzIDogc3VjY2VzcyxcbiAgICAgICAgICAgIG9uRXJyb3IgOiBlcnJvcixcbiAgICAgICAgICAgIHNjb3BlIDogdGhpc1xuICAgICAgICB9O1xuXG4gICAgICAgIEF1dG9Db21wbGV0ZVJlc3BvbnNlRmFjdG9yeS5idWlsZChvcHRpb25zKTtcbiAgICB9IGVsc2Uge1xuICAgICAgICBlcnJvci5jYWxsKHRoaXMsIG5ldyBFcnJvclNlcnZpY2UoTVIuZ2V0TWVzc2FnZShcIlNFUlZJQ0VfUkVTUE9OU0VfRU1QVFlcIikpKTtcbiAgICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBBdXRvQ29tcGxldGU7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Services/AutoComplete/AutoComplete.js\n"); + +/***/ }), + +/***/ "./src/Services/AutoComplete/Response/AutoCompleteResponseFactory.js": +/*!***************************************************************************!*\ + !*** ./src/Services/AutoComplete/Response/AutoCompleteResponseFactory.js ***! + \***************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Exceptions/ErrorService */ \"./src/Exceptions/ErrorService.js\");\n/* harmony import */ var _model_AutoCompleteResponse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./model/AutoCompleteResponse */ \"./src/Services/AutoComplete/Response/model/AutoCompleteResponse.js\");\n/* harmony import */ var _model_SuggestedLocation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./model/SuggestedLocation */ \"./src/Services/AutoComplete/Response/model/SuggestedLocation.js\");\n/**\n * Factory pour générer une reponse JSON à partir d'un XML ou d'un JSON\n * (Factory)\n *\n * @module AutoCompleteResponseFactory\n * @private\n * @alias Gp.Services.AutoComplete.Response.AutoCompleteResponseFactory\n */\n\n\n\n\n\nvar AutoCompleteResponseFactory = {\n /**\n * interface unique\n *\n * @method build\n * @static\n * @param {Object} options - options definies dans le composant Alti\n *\n * @example\n * var options = {\n * response :\n * outputFormat :\n * rawResponse :\n * scope :\n * onSuccess :\n * onError :\n * };\n *\n */\n build: function build(options) {\n // logger\n var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"AutoCompleteResponseFactory\");\n logger.trace([\"AutoCompleteResponseFactory::build()\"]);\n var data = null;\n if (options.response) {\n if (options.rawResponse) {\n logger.trace(\"analyze response : raw\");\n data = options.response;\n } else {\n var JSONResponse = null;\n if (typeof options.response === \"string\") {\n JSONResponse = JSON.parse(options.response);\n } else {\n JSONResponse = options.response;\n }\n\n // analyse de la réponse\n if (JSONResponse) {\n // le service renvoie t il une erreur ?\n if (JSONResponse.error) {\n // ex. ?\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EXCEPTION\", JSONResponse.error.description),\n status: JSONResponse.error.code,\n type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"].TYPE_SRVERR\n }));\n return;\n }\n\n // création de l'objet réponse\n data = new _model_AutoCompleteResponse__WEBPACK_IMPORTED_MODULE_3__[\"default\"]();\n\n // boucle sur les résultats de l'autocomplétion\n if (JSONResponse.results && Array.isArray(JSONResponse.results)) {\n var suggestedLocation = null;\n for (var i = 0; i < JSONResponse.results.length; i++) {\n var result = JSONResponse.results[i];\n suggestedLocation = new _model_SuggestedLocation__WEBPACK_IMPORTED_MODULE_4__[\"default\"]();\n if (result) {\n if (result.country === \"StreetAddress\") {\n suggestedLocation.street = result.street;\n suggestedLocation.type = \"StreetAddress\";\n } else if (result.country === \"PositionOfInterest\") {\n suggestedLocation.poi = result.street;\n suggestedLocation.type = \"PositionOfInterest\";\n suggestedLocation.poiType = result.poiType;\n }\n if (suggestedLocation.position) {\n suggestedLocation.position.x = result.x;\n suggestedLocation.position.y = result.y;\n }\n suggestedLocation.kind = result.kind;\n suggestedLocation.commune = result.city;\n suggestedLocation.fullText = result.fulltext;\n suggestedLocation.postalCode = result.zipcode;\n suggestedLocation.classification = result.classification;\n }\n // Ajout du résultat au tableau reverseGeocodedLocations de geocodedLocation\n data.suggestedLocations.push(suggestedLocation);\n }\n } else {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_FORMAT_3\")));\n return;\n }\n if (!data.suggestedLocations.length) {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_FORMAT_3\")));\n return;\n }\n }\n if (!data) {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_ANALYSE_2\"),\n type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"].TYPE_UNKERR,\n status: -1\n }));\n return;\n }\n\n // Si la réponse contenait une exception renvoyée par le service\n if (data.exceptionReport) {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EXCEPTION\", data.exceptionReport),\n type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"].TYPE_SRVERR,\n status: 200\n }));\n return;\n }\n }\n } else {\n // si la réponse (xmlString) est vide, on appelle le callback d'erreur\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EMPTY\")));\n return;\n }\n\n // si tout s'est bien passé, on appelle le callback de succès\n options.onSuccess.call(options.scope, data);\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (AutoCompleteResponseFactory);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9BdXRvQ29tcGxldGUvUmVzcG9uc2UvQXV0b0NvbXBsZXRlUmVzcG9uc2VGYWN0b3J5LmpzPzdhZTMiXSwibmFtZXMiOlsiQXV0b0NvbXBsZXRlUmVzcG9uc2VGYWN0b3J5IiwiYnVpbGQiLCJvcHRpb25zIiwibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwidHJhY2UiLCJkYXRhIiwicmVzcG9uc2UiLCJyYXdSZXNwb25zZSIsIkpTT05SZXNwb25zZSIsIkpTT04iLCJwYXJzZSIsImVycm9yIiwib25FcnJvciIsImNhbGwiLCJzY29wZSIsIkVyc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B7XG4gICAgICogICAgICByZXNwb25zZSA6XG4gICAgICogICAgICBvdXRwdXRGb3JtYXQgOlxuICAgICAqICAgICAgcmF3UmVzcG9uc2UgOlxuICAgICAqICAgICAgc2NvcGUgOlxuICAgICAqICAgICAgb25TdWNjZXNzIDpcbiAgICAgKiAgICAgIG9uRXJyb3IgOlxuICAgICAqICAgfTtcbiAgICAgKlxuICAgICAqL1xuICAgIGJ1aWxkIDogZnVuY3Rpb24gKG9wdGlvbnMpIHtcbiAgICAgICAgLy8gbG9nZ2VyXG4gICAgICAgIHZhciBsb2dnZXIgPSBMb2dnZXIuZ2V0TG9nZ2VyKFwiQXV0b0NvbXBsZXRlUmVzcG9uc2VGYWN0b3J5XCIpO1xuICAgICAgICBsb2dnZXIudHJhY2UoW1wiQXV0b0NvbXBsZXRlUmVzcG9uc2VGYWN0b3J5OjpidWlsZCgpXCJdKTtcblxuICAgICAgICB2YXIgZGF0YSA9IG51bGw7XG5cbiAgICAgICAgaWYgKG9wdGlvbnMucmVzcG9uc2UpIHtcbiAgICAgICAgICAgIGlmIChvcHRpb25zLnJhd1Jlc3BvbnNlKSB7XG4gICAgICAgICAgICAgICAgbG9nZ2VyLnRyYWNlKFwiYW5hbHl6ZSByZXNwb25zZSA6IHJhd1wiKTtcbiAgICAgICAgICAgICAgICBkYXRhID0gb3B0aW9ucy5yZXNwb25zZTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdmFyIEpTT05SZXNwb25zZSA9IG51bGw7XG4gICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBvcHRpb25zLnJlc3BvbnNlID09PSBcInN0cmluZ1wiKSB7XG4gICAgICAgICAgICAgICAgICAgIEpTT05SZXNwb25zZSA9IEpTT04ucGFyc2Uob3B0aW9ucy5yZXNwb25zZSk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgSlNPTlJlc3BvbnNlID0gb3B0aW9ucy5yZXNwb25zZTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAvLyBhbmFseXNlIGRlIGxhIHLDqXBvbnNlXG4gICAgICAgICAgICAgICAgaWYgKEpTT05SZXNwb25zZSkge1xuICAgICAgICAgICAgICAgICAgICAvLyBsZSBzZXJ2aWNlIHJlbnZvaWUgdCBpbCB1bmUgZXJyZXVyID9cbiAgICAgICAgICAgICAgICAgICAgaWYgKEpTT05SZXNwb25zZS5lcnJvcikge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gZXguID9cbiAgICAgICAgICAgICAgICAgICAgICAgIG9wdGlvbnMub25FcnJvci5jYWxsKG9wdGlvbnMuc2NvcGUsIG5ldyBFcnJvclNlcnZpY2Uoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1lc3NhZ2UgOiBNUmVzLmdldE1lc3NhZ2UoXCJTRVJWSUNFX1JFU1BPTlNFX0VYQ0VQVElPTlwiLCBKU09OUmVzcG9uc2UuZXJyb3IuZGVzY3JpcHRpb24pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXR1cyA6IEpTT05SZXNwb25zZS5lcnJvci5jb2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGUgOiBFcnJvclNlcnZpY2UuVFlQRV9TUlZFUlJcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIC8vIGNyw6lhdGlvbiBkZSBsJ29iamV0IHLDqXBvbnNlXG4gICAgICAgICAgICAgICAgICAgIGRhdGEgPSBuZXcgQXV0b0NvbXBsZXRlUmVzcG9uc2UoKTtcblxuICAgICAgICAgICAgICAgICAgICAvLyBib3VjbGUgc3VyIGxlcyByw6lzdWx0YXRzIGRlIGwnYXV0b2NvbXBsw6l0aW9uXG4gICAgICAgICAgICAgICAgICAgIGlmIChKU09OUmVzcG9uc2UucmVzdWx0cyAmJiBBcnJheS5pc0FycmF5KEpTT05SZXNwb25zZS5yZXN1bHRzKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHN1Z2dlc3RlZExvY2F0aW9uID0gbnVsbDtcblxuICAgICAgICAgICAgICAgICAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBKU09OUmVzcG9uc2UucmVzdWx0cy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciByZXN1bHQgPSBKU09OUmVzcG9uc2UucmVzdWx0c1tpXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWdnZXN0ZWRMb2NhdGlvbiA9IG5ldyBTdWdnZXN0ZWRMb2NhdGlvbigpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHJlc3VsdCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAocmVzdWx0LmNvdW50cnkgPT09IFwiU3RyZWV0QWRkcmVzc1wiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWdnZXN0ZWRMb2NhdGlvbi5zdHJlZXQgPSByZXN1bHQuc3RyZWV0O1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3VnZ2VzdGVkTG9jYXRpb24udHlwZSA9IFwiU3RyZWV0QWRkcmVzc1wiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHJlc3VsdC5jb3VudHJ5ID09PSBcIlBvc2l0aW9uT2ZJbnRlcmVzdFwiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWdnZXN0ZWRMb2NhdGlvbi5wb2kgPSByZXN1bHQuc3RyZWV0O1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3VnZ2VzdGVkTG9jYXRpb24udHlwZSA9IFwiUG9zaXRpb25PZkludGVyZXN0XCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWdnZXN0ZWRMb2NhdGlvbi5wb2lUeXBlID0gcmVzdWx0LnBvaVR5cGU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoc3VnZ2VzdGVkTG9jYXRpb24ucG9zaXRpb24pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN1Z2dlc3RlZExvY2F0aW9uLnBvc2l0aW9uLnggPSByZXN1bHQueDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN1Z2dlc3RlZExvY2F0aW9uLnBvc2l0aW9uLnkgPSByZXN1bHQueTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN1Z2dlc3RlZExvY2F0aW9uLmtpbmQgPSByZXN1bHQua2luZDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3VnZ2VzdGVkTG9jYXRpb24uY29tbXVuZSA9IHJlc3VsdC5jaXR5O1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWdnZXN0ZWRMb2NhdGlvbi5mdWxsVGV4dCA9IHJlc3VsdC5mdWxsdGV4dDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3VnZ2VzdGVkTG9jYXRpb24ucG9zdGFsQ29kZSA9IHJlc3VsdC56aXBjb2RlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWdnZXN0ZWRMb2NhdGlvbi5jbGFzc2lmaWNhdGlvbiA9IHJlc3VsdC5jbGFzc2lmaWNhdGlvbjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gQWpvdXQgZHUgcsOpc3VsdGF0IGF1IHRhYmxlYXUgcmV2ZXJzZUdlb2NvZGVkTG9jYXRpb25zIGRlIGdlb2NvZGVkTG9jYXRpb25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnN1Z2dlc3RlZExvY2F0aW9ucy5wdXNoKHN1Z2dlc3RlZExvY2F0aW9uKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG9wdGlvbnMub25FcnJvci5jYWxsKG9wdGlvbnMuc2NvcGUsIG5ldyBFcnJvclNlcnZpY2UoTVJlcy5nZXRNZXNzYWdlKFwiU0VSVklDRV9SRVNQT05TRV9GT1JNQVRfM1wiKSkpO1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKCFkYXRhLnN1Z2dlc3RlZExvY2F0aW9ucy5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG9wdGlvbnMub25FcnJvci5jYWxsKG9wdGlvbnMuc2NvcGUsIG5ldyBFcnJvclNlcnZpY2UoTVJlcy5nZXRNZXNzYWdlKFwiU0VSVklDRV9SRVNQT05TRV9GT1JNQVRfM1wiKSkpO1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYgKCFkYXRhKSB7XG4gICAgICAgICAgICAgICAgICAgIG9wdGlvbnMub25FcnJvci5jYWxsKG9wdGlvbnMuc2NvcGUsIG5ldyBFcnJvclNlcnZpY2Uoe1xuICAgICAgICAgICAgICAgICAgICAgICAgbWVzc2FnZSA6IE1SZXMuZ2V0TWVzc2FnZShcIlNFUlZJQ0VfUkVTUE9OU0VfQU5BTFlTRV8yXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgdHlwZSA6IEVycm9yU2VydmljZS5UWVBFX1VOS0VSUixcbiAgICAgICAgICAgICAgICAgICAgICAgIHN0YXR1cyA6IC0xXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIC8vIFNpIGxhIHLDqXBvbnNlIGNvbnRlbmFpdCB1bmUgZXhjZXB0aW9uIHJlbnZvecOpZSBwYXIgbGUgc2VydmljZVxuICAgICAgICAgICAgICAgIGlmIChkYXRhLmV4Y2VwdGlvblJlcG9ydCkge1xuICAgICAgICAgICAgICAgICAgICBvcHRpb25zLm9uRXJyb3IuY2FsbChvcHRpb25zLnNjb3BlLCBuZXcgRXJyb3JTZXJ2aWNlKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG1lc3NhZ2UgOiBNUmVzLmdldE1lc3NhZ2UoXCJTRVJWSUNFX1JFU1BPTlNFX0VYQ0VQVElPTlwiLCBkYXRhLmV4Y2VwdGlvblJlcG9ydCksXG4gICAgICAgICAgICAgICAgICAgICAgICB0eXBlIDogRXJyb3JTZXJ2aWNlLlRZUEVfU1JWRVJSLFxuICAgICAgICAgICAgICAgICAgICAgICAgc3RhdHVzIDogMjAwXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIC8vIHNpIGxhIHLDqXBvbnNlICh4bWxTdHJpbmcpIGVzdCB2aWRlLCBvbiBhcHBlbGxlIGxlIGNhbGxiYWNrIGQnZXJyZXVyXG4gICAgICAgICAgICBvcHRpb25zLm9uRXJyb3IuY2FsbChvcHRpb25zLnNjb3BlLCBuZXcgRXJyb3JTZXJ2aWNlKE1SZXMuZ2V0TWVzc2FnZShcIlNFUlZJQ0VfUkVTUE9OU0VfRU1QVFlcIikpKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIHNpIHRvdXQgcydlc3QgYmllbiBwYXNzw6ksIG9uIGFwcGVsbGUgbGUgY2FsbGJhY2sgZGUgc3VjY8Ooc1xuICAgICAgICBvcHRpb25zLm9uU3VjY2Vzcy5jYWxsKG9wdGlvbnMuc2NvcGUsIGRhdGEpO1xuICAgIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IEF1dG9Db21wbGV0ZVJlc3BvbnNlRmFjdG9yeTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Services/AutoComplete/Response/AutoCompleteResponseFactory.js\n"); + +/***/ }), + +/***/ "./src/Services/AutoComplete/Response/model/AutoCompleteResponse.js": +/*!**************************************************************************!*\ + !*** ./src/Services/AutoComplete/Response/model/AutoCompleteResponse.js ***! + \**************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Response object for {@link module:Services~autoComplete Gp.Services.autoComplete ()} invocation when successful. Received as the argument of onSuccess callback function.\n *\n * @property {Array.} suggestedLocations - SuggestedLocations array.\n *\n * @namespace\n * @alias Gp.Services.AutoCompleteResponse\n */\nfunction AutoCompleteResponse() {\n if (!(this instanceof AutoCompleteResponse)) {\n throw new TypeError(\"AutoCompleteResponse constructor cannot be called as a function.\");\n }\n this.suggestedLocations = [];\n}\nAutoCompleteResponse.prototype = {\n constructor: AutoCompleteResponse\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (AutoCompleteResponse);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9BdXRvQ29tcGxldGUvUmVzcG9uc2UvbW9kZWwvQXV0b0NvbXBsZXRlUmVzcG9uc2UuanM/NjViOSJdLCJuYW1lcyI6WyJBdXRvQ29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BHcC5TZXJ2aWNlcy5BdXRvQ29tcGxldGVSZXNwb25zZVxuICovXG5mdW5jdGlvbiBBdXRvQ29tcGxldGVSZXNwb25zZSAoKSB7XG4gICAgaWYgKCEodGhpcyBpbnN0YW5jZW9mIEF1dG9Db21wbGV0ZVJlc3BvbnNlKSkge1xuICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKFwiQXV0b0NvbXBsZXRlUmVzcG9uc2UgY29uc3RydWN0b3IgY2Fubm90IGJlIGNhbGxlZCBhcyBhIGZ1bmN0aW9uLlwiKTtcbiAgICB9XG5cbiAgICB0aGlzLnN1Z2dlc3RlZExvY2F0aW9ucyA9IFtdO1xufVxuXG5BdXRvQ29tcGxldGVSZXNwb25zZS5wcm90b3R5cGUgPSB7XG5cbiAgICBjb25zdHJ1Y3RvciA6IEF1dG9Db21wbGV0ZVJlc3BvbnNlXG5cbn07XG5cbmV4cG9ydCBkZWZhdWx0IEF1dG9Db21wbGV0ZVJlc3BvbnNlO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/Services/AutoComplete/Response/model/AutoCompleteResponse.js\n"); + +/***/ }), + +/***/ "./src/Services/AutoComplete/Response/model/SuggestedLocation.js": +/*!***********************************************************************!*\ + !*** ./src/Services/AutoComplete/Response/model/SuggestedLocation.js ***! + \***********************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Single SuggestedLocation Object returned by underlying web service.\n * Each suggested location represents a street address (\"StreetAddress\") or a place name (\"PositionOfInterest\").\n *\n * @property {String} type - Suggested location type : \"StreetAddress\" ou \"PositionOfInterest\"\n * @property {Gp.Point} position - Position of the suggested location given in requested coordinates system.\n * @property {String} commune - Suggested municipality\n * @property {String} fullText - Full text representation of the suggested location.\n * @property {String} postalCode - Suggested location postcode\n * @property {Integer} classification - Number used to classify the importance of the place where is the suggested location from 1 (most important) to 7 (less important).\n * @property {String} street - Street name of the suggested location (\"StreetAddress\" only).\n * @property {String} kind - Nature of the suggested location : \"prefecture\", \"monument\", \"commune\", ... for instance (\"PositionOfInterest\" only).\n *\n * @namespace\n * @alias Gp.Services.AutoComplete.SuggestedLocation\n */\nfunction SuggestedLocation() {\n if (!(this instanceof SuggestedLocation)) {\n throw new TypeError(\"SuggestedLocation constructor cannot be called as a function.\");\n }\n\n /* REPONSE :\n {\n \"status\" : \"OK\",\n \"results\" : [\n {\n \"country\":\"PositionOfInterest\",\n \"x\":-1.559185,\n \"y\":47.952603,\n \"city\":\"Brie\",\n \"zipcode\":\"35150\",\n \"street\":\"corbe\",\n \"kind\":\"Lieu-dit habité\",\n \"fulltext\":\"corbe, 35150 Brie\",\n \"classification\":6\n },\n {\n \"country\":\"StreetAddress\",\n \"x\":1.538295,\n \"y\":43.19646,\n \"city\":\"Brie\",\n \"zipcode\":\"09700\",\n \"street\":\"courreste\",\n \"kind\":\"\",\n \"fulltext\":\"courreste, 09700 Brie\",\n \"classification\":7\n }\n ]\n }\n */\n\n /* REPONSE EN ERREUR\n {\n status : \"ERROR\",\n results : [ ]\n }\n */\n\n /**\n * Suggested location type : \"StreetAddress\" ou \"PositionOfInterest\"\n * @type {String}\n */\n this.type = null;\n\n /**\n * Position of the suggested location given in requested coordinates system.\n * @type {Gp.Point}\n */\n this.position = {\n x: null,\n y: null\n };\n\n /**\n * Suggested municipality\n * @type {String}\n */\n this.commune = null;\n\n /**\n * Full text representation of the suggested location.\n * @type {String}\n */\n this.fullText = null;\n\n /**\n * Suggested location postcode\n * @type {Number}\n */\n this.postalCode = null;\n\n /**\n * Number used to classify the importance of the place where is the suggested location from 1 (most important) to 7 (less important).\n * @type {Integer}\n */\n this.classification = null;\n\n /**\n * Street name of the suggested location (\"StreetAddress\" only).\n * @type {String}\n */\n this.street = null;\n\n /**\n * Place name of the suggested location (\"PositionOfInterest\" only).\n * @type {String}\n */\n this.poi = null;\n\n /**\n * Nature of the suggested location : \"prefecture\", \"monument\", \"commune\", ... for instance (\"PositionOfInterest\" only).\n * @type {String}\n */\n this.kind = null;\n}\nSuggestedLocation.prototype = {\n constructor: SuggestedLocation\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (SuggestedLocation);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9BdXRvQ29tcGxldGUvUmVzcG9uc2UvbW9kZWwvU3VnZ2VzdGVkTG9jYXRpb24uanM/ODM1YyJdLCJuYW1lcyI6WyJTdWdnZXN0ZWRMb2NhdGlvbiIsIlR5cGVFcnJvciIsInR5cGUiLCJwb3NpdGlvbiIsIngiLCJ5IiwiY29tbXVuZSIsImZ1bGxUZXh0IiwicG9zdGFsQ29kZSIsImNsYXNzaWZpY2F0aW9uIiwic3RyZWV0IiwicG9pIiwia2luZCIsInByb3RvdHlwZSIsImNvbnN0cnVjdG9yIl0sIm1hcHBpbmdzIjoiQUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsU0FBU0EsaUJBQWlCQSxDQUFBLEVBQUk7RUFDMUIsSUFBSSxFQUFFLElBQUksWUFBWUEsaUJBQWlCLENBQUMsRUFBRTtJQUN0QyxNQUFNLElBQUlDLFNBQVMsQ0FBQywrREFBK0QsQ0FBQztFQUN4Rjs7RUFFQTtBQUNKO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztFQUVJ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VcIixcbiAgICAgICAgICAgICAgICAgXCJraW5kXCI6XCJMaWV1LWRpdCBoYWJpdMOpXCIsXG4gICAgICAgICAgICAgICAgIFwiZnVsbHRleHRcIjpcImNvcmJlLCAzNTE1MCBCcmllXCIsXG4gICAgICAgICAgICAgICAgIFwiY2xhc3NpZmljYXRpb25cIjo2XG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgXCJjb3VudHJ5XCI6XCJTdHJlZXRBZGRyZXNzXCIsXG4gICAgICAgICAgICAgICAgIFwieFwiOjEuNTM4Mjk1LFxuICAgICAgICAgICAgICAgICBcInlcIjo0My4xOTY0NixcbiAgICAgICAgICAgICAgICAgXCJjaXR5XCI6XCJCcmllXCIsXG4gICAgICAgICAgICAgICAgIFwiemlwY29kZVwiOlwiMDk3MDBcIixcbiAgICAgICAgICAgICAgICAgXCJzdHJlZXRcIjpcImNvdXJyZXN0ZVwiLFxuICAgICAgICAgICAgICAgICBcImtpbmRcIjpcIlwiLFxuICAgICAgICAgICAgICAgICBcImZ1bGx0ZXh0XCI6XCJjb3VycmVzdGUsIDA5NzAwIEJyaWVcIixcbiAgICAgICAgICAgICAgICAgXCJjbGFzc2lmaWNhdGlvblwiOjdcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICBdXG4gICAgICAgIH1cbiAgICAqL1xuXG4gICAgLyogUkVQT05TRSBFTiBFUlJFVVJcbiAgICAgICAge1xuICAgICAgICAgICAgc3RhdHVzIDogXCJFUlJPUlwiLFxuICAgICAgICAgICAgcmVzdWx0cyA6IFsgXVxuICAgICAgICB9XG4gICAgKi9cblxuICAgIC8qKlxuICAgICAqIFN1Z2dlc3RlZCBsb2NhdGlvbiB0eXBlIDogXCJTdHJlZXRBZGRyZXNzXCIgb3UgXCJQb3NpdGlvbk9mSW50ZXJlc3RcIlxuICAgICAqIEB0eXBlIHtTdHJpbmd9XG4gICAgICovXG4gICAgdGhpcy50eXBlID0gbnVsbDtcblxuIC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ZXNzXCIgb25seSkuXG4gICAgICogQHR5cGUge1N0cmluZ31cbiAgICAgKi9cbiAgICB0aGlzLnN0cmVldCA9IG51bGw7XG5cbiAgICAvKipcbiAgICAgKiBQbGFjZSBuYW1lIG9mIHRoZSBzdWdnZXN0ZWQgbG9jYXRpb24gKFwiUG9zaXRpb25PZkludGVyZXN0XCIgb25seSkuXG4gICAgICogQHR5cGUge1N0cmluZ31cbiAgICAgKi9cbiAgICB0aGlzLnBvaSA9IG51bGw7XG5cbiAgICAvKipcbiAgICAgKiBOYXR1cmUgb2YgdGhlIHN1Z2dlc3RlZCBsb2NhdGlvbiA6IFwicHJlZmVjdHVyZVwiLCBcIm1vbnVtZW50XCIsIFwiY29tbXVuZVwiLCAuLi4gZm9yIGluc3RhbmNlIChcIlBvc2l0aW9uT2ZJbnRlcmVzdFwiIG9ubHkpLlxuICAgICAqIEB0eXBlIHtTdHJpbmd9XG4gICAgICovXG4gICAgdGhpcy5raW5kID0gbnVsbDtcbn1cblxuU3VnZ2VzdGVkTG9jYXRpb24ucHJvdG90eXBlID0ge1xuXG4gICAgY29uc3RydWN0b3IgOiBTdWdnZXN0ZWRMb2NhdGlvblxufTtcblxuZXhwb3J0IGRlZmF1bHQgU3VnZ2VzdGVkTG9jYXRpb247XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Services/AutoComplete/Response/model/SuggestedLocation.js\n"); + +/***/ }), + +/***/ "./src/Services/CommonService.js": +/*!***************************************!*\ + !*** ./src/Services/CommonService.js ***! + \***************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_Helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Utils/Helper */ \"./src/Utils/Helper.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _Protocols_Protocol__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Protocols/Protocol */ \"./src/Protocols/Protocol.js\");\n/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Exceptions/ErrorService */ \"./src/Exceptions/ErrorService.js\");\n/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../package.json */ \"./package.json\");\nvar _package_json__WEBPACK_IMPORTED_MODULE_5___namespace = /*#__PURE__*/__webpack_require__.t(/*! ../../package.json */ \"./package.json\", 1);\n\n\n\n\n\n// import DefaultUrlService from \"./DefaultUrlService\";\n// package.json (extract version)\n\n\n/**\n * @classdesc\n * Composant Service\n *\n * @constructor\n * @alias Gp.Services.CommonService\n * @param {Object} options - options communes à tous les services\n *\n * @param {String} [options.serverUrl] - URL d'accès au service. Par défaut \"https://data.geopf.fr/SERVICE/\".\n * Permet de forcer l'utilisation d'un service équivalent déployé derrière une éventuelle autre URL d'accès.\n * Si ce paramètre est renseigné alors, le paramètre par défaut est ignoré.\n *\n * @param {String} [options.protocol] - Le protocole à utiliser pour récupérer les informations du service :\n * peut valoir 'JSONP' ou 'XHR'.\n * Par défaut, c'est le protocole XHR qui sera utilisé.\n * Attention, le protocole JSONP n'est pas valide dans un environnement NodeJS (Utilisation du mode XHR).\n *\n * @param {Boolean} [options.ssl] - Indique si l'on souhaite intérroger les services en https.\n * Ce paramètre ne fonctionne que pour une utilisation hors navigateur (ex. NodeJS).\n * Sur un navigateur, le protocole est automatiquement extrait de l'url du site...\n * Par défaut, on utilise le protocole http (ssl=false).\n *\n * @param {String} [options.proxyURL] - Le proxy à utiliser pour pallier au problème de cross-domain dans le cas d'une requête XHR.\n * Utile si le paramètre 'protocol' vaut 'XHR', il ne sera pas pris en compte si protocol vaut JSONP.\n *\n * @param {String} [options.callbackSuffix] - Suffixe de la fonction de callback à utiliser, dans le cas du protocole JSONP.\n * Par défaut, la fonction de callback portera un nom du type \"callback\"+ID, où ID est soit un identifiant unique généré à chaque requête,\n * soit le paramètre callbackSuffix s'il est spécifié. Par exemple, si callbackSuffix=\"_2\", la fonction sera \"callback_2 ()\".\n * Utile pour utiliser une réponse déjà encapsulée dans une fonction de callback, dont le nom est connu\n * Utile seulement si le paramètre 'protocol' vaut 'JSONP', il ne sera pas pris en compte si protocol vaut 'XHR'.\n *\n * @param {String} [options.httpMethod] - La méthode HTTP\n * à utiliser dans le cas d'une requête XHR : peut valoir 'GET' ou 'POST'.\n * Non pris en compte si 'protocol' vaut JSONP qui fonctionne obligatoirement en GET.\n * Par défaut, c'est la méthode GET qui est utilisée.\n *\n * @param {String} [options.contentType] - Content-Type de la requete\n * à utiliser dans le cas d'une requête XHR en mode POST.\n * Non pris en compte si 'protocol' vaut JSONP et/ou la méthode HTTP vaut GET.\n * Par défaut, c'est la méthode GET qui est utilisée donc on n'utilise pas de Content-Type.\n *\n * @param {Number} [options.timeOut] - Délai d'attente maximal (en ms) de la réponse du service (à partir de l'envoi de la requête).\n * Par défaut, aucun timeOut n'est pris en compte (timeoutDelay= 0).\n *\n * @param {Boolean} [options.rawResponse] - Indique si l'on souhaite que la réponse du service ne soit pas parsée par l'API avant d'être restituée.\n * (Cf. paramètre « onSuccess » pour plus de détails).\n *\n * @param {Function} [options.onSuccess] - Fonction appelée lorsque le service répond correctement à la requête\n * (code HTTP 200, sans message d'erreur).\n * Cette fonction prend en paramètre la réponse du service,\n * soit sous la forme d'un Object Javascript formaté par le parseur dédié à la syntaxe du service (comportement par défaut) ;\n * soit brute au format String non prétraité si le paramètre « rawResponse » a été précisé avec la valeur « true ».\n *\n * @param {Function} [options.onFailure] - Fonction appelée lorsque le service ne répond pas correctement\n * (code HTTP de retour différent de 200 ou pas de réponse).\n *\n * @param {Function} [options.onBeforeParse] - Fonction appelée avant le parsing de la réponse\n * Permet de modifier la réponse avant parsing et la fonction doit retourner une String.\n * Cette fonction prend en paramètre la réponse telle que renvoyée par le service\n * (cad au format json ou xml).\n * Pour le JSONP, si le paramètre \"rawResponse\" a été précisé avec la valeur \"true\",\n * la fonction prend en paramètre un Object JavaScript contenant la réponse XML.\n *\n * @example\n * var options = {\n * serverUrl : 'http://localhost/service/',\n * protocol : 'JSONP', // JSONP|XHR\n * ssl : false,\n * proxyURL : null,\n * callbackName : null,\n * httpMethod : 'GET', // GET|POST\n * timeOut : 10000, // ms\n * rawResponse : false, // true|false\n * scope : null, // this\n * onSuccess : function (response) {},\n * onFailure : function (error) {},\n * onBeforeParse : function (rawResponse) {}\n * };\n */\nfunction CommonService(options) {\n if (!(this instanceof CommonService)) {\n throw new TypeError(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_2__[\"default\"].getMessage(\"CLASS_CONSTRUCTOR\"));\n }\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"CommonService\");\n this.logger.trace(\"[Constructeur CommonService (options)]\");\n\n // #####################\n // récupération des options par défaut pour les paramètres optionnels\n // #####################\n\n /**\n * Options du service\n * @type {Object}\n */\n this.options = {\n // protocol : \"JSONP\",\n protocol: \"XHR\",\n ssl: true,\n proxyURL: \"\",\n // callbackName : \"\",\n callbackSuffix: null,\n httpMethod: \"GET\",\n timeOut: 0,\n rawResponse: false,\n scope: this,\n /**\n * callback par defaut pour la reponse\n * @param {Object} response - response\n * @private\n */\n onSuccess: function onSuccess(response) {\n console.log(\"onSuccess - la reponse est la suivante : \", response);\n },\n /**\n * callback par defaut pour les erreurs\n * @param {Object} error - error\n * @private\n */\n onFailure: function onFailure(error) {\n if (error.status === 200 || !error.status) {\n console.log(\"onFailure : \", error.message);\n } else {\n console.log(\"onFailure - Erreur (\", error.status, \") : \", error.message);\n }\n }\n };\n\n // et on ajoute les options en paramètre aux options par défaut\n for (var opt in options) {\n if (options.hasOwnProperty(opt)) {\n this.options[opt] = options[opt];\n }\n }\n\n // #####################\n // analyse des options\n // #####################\n\n // modification de la fonction de callback onSuccess dans le cas où la réponse brute est demandée\n if (this.options.rawResponse && !this.options.onSuccess) {\n /**\n * callback par defaut pour la reponse\n * @param {Object} response - response\n * @private\n */\n this.options.onSuccess = function (response) {\n console.log(\"onSuccess - la réponse brute du service est la suivante : \", response);\n };\n }\n\n // gestion du callback onSuccess\n var bOnSuccess = !!(this.options.onSuccess !== null && typeof this.options.onSuccess === \"function\");\n if (!bOnSuccess) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_2__[\"default\"].getMessage(\"PARAM_MISSING\", \"onSuccess()\"));\n }\n\n // gestion de la methode HTTP\n this.options.httpMethod = typeof options.httpMethod === \"string\" ? options.httpMethod.toUpperCase() : \"GET\";\n switch (this.options.httpMethod) {\n case \"POST\":\n case \"GET\":\n break;\n case \"PUT\":\n case \"DELETE\":\n case \"HEAD\":\n case \"OPTIONS\":\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_2__[\"default\"].getMessage(\"PARAM_NOT_SUPPORT\", \"httpMethod\"));\n default:\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_2__[\"default\"].getMessage(\"PARAM_UNKNOWN\", \"httpMethod\"));\n }\n\n // gestion du protocole\n // this.options.protocol = (typeof options.protocol === \"string\" ) ? options.protocol.toUpperCase() : \"JSONP\";\n this.options.protocol = typeof options.protocol === \"string\" ? options.protocol.toUpperCase() : \"XHR\";\n switch (this.options.protocol) {\n case \"JSONP\":\n case \"XHR\":\n break;\n default:\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_2__[\"default\"].getMessage(\"PARAM_UNKNOWN\", \"protocol\"));\n }\n\n // on determine l'environnement d'execution : browser ou non ?\n // et on lance une exception sur l'utilisation du protocole JSONP pour nodeJS...\n if (typeof window === \"undefined\" && this.options.protocol === \"JSONP\") {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_2__[\"default\"].getMessage(\"PARAM_NOT_SUPPORT_NODEJS\", \"protocol=JSONP (instead use XHR)\"));\n }\n\n // le protocole JSONP ne fonctionne qu'en GET.\n if (this.options.protocol === \"JSONP\") {\n this.options.httpMethod = \"GET\";\n }\n\n // gestion du cache\n this.options.nocache = options.nocache || false;\n\n // #####################\n // attributs d'instances\n // #####################\n\n /**\n * Format de réponse du service\n */\n this.options.outputFormat = null;\n /**\n * Requête envoyée au service\n */\n this.request = null;\n /**\n * Reponse du service\n */\n this.response = null;\n}\n\n/**\n * @lends module:CommonService\n */\nCommonService.prototype = {\n /*\n * Constructeur (alias)\n */\n constructor: CommonService,\n /**\n * Appel du service Géoportail\n */\n call: function call() {\n /* jshint validthis : true */\n this.logger.trace(\"CommonService::call ()\");\n var context = this;\n /** fonction d'execution */\n function run() {\n this.logger.trace(\"CommonService::run ()\");\n this.buildRequest.call(context, onError, onBuildRequest);\n }\n run.call(context);\n\n // callback de fin de construction de la requête\n function onBuildRequest(result) {\n this.logger.trace(\"CommonService::onBuildRequest : \", result);\n this.callService.call(context, onError, onCallService);\n }\n\n // callback de fin d'appel au service\n function onCallService(result) {\n this.logger.trace(\"CommonService::onCallService : \", result);\n this.analyzeResponse.call(context, onError, onAnalyzeResponse);\n }\n\n // callback de fin de lecture de la reponse\n function onAnalyzeResponse(result) {\n this.logger.trace(\"CommonService::onAnalyzeResponse : \", result);\n if (result) {\n this.options.onSuccess.call(this, result);\n } else {\n return onError.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"Analyse de la reponse en échec !?\"));\n }\n }\n\n // callback de gestion des erreurs : renvoit un objet de type ErrorService\n function onError(error) {\n this.logger.trace(\"CommonService::onError()\");\n // error : l'objet est du type ErrorService ou Error\n var e = error;\n if (!(e instanceof _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__[\"default\"])) {\n e = new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__[\"default\"](error.message);\n }\n this.options.onFailure.call(this, e);\n }\n },\n /**\n * Création de la requête\n * @param {Function} error - callback\n * @param {Function} success - callback\n */\n buildRequest: function buildRequest(error, success) {\n // INFO\n this.logger.error(\"overwritten method !\");\n // retourne l'objet 'this.request'\n if (error) {\n error.call(this, \"This method must be overwritten !\");\n }\n success.call(this, \"This method must be overwritten !\");\n },\n /**\n * Appel du service\n * @param {Function} error - callback\n * @param {Function} success - callback\n */\n callService: function callService(error, success) {\n // INFO\n // retourne l'objet 'this.response'\n\n // NOTES\n // Pour le mode XHR, on recupère une reponse sous forme d'un json ou xml (#document).\n // Pour le mode JSONP, on a toujours un objet JSON mais sous 2 formes :\n // - natif\n // - XML encapsulé :\n // {http : {status:200, error:null},xml :'réponse du service'}\n // {http : {status:400, error:'reponse du service'},xml :null}\n // En XHR, la reponse est directement sauvegardée dans 'this.response'.\n // Par contre, en JSONP, on doit analyser la reponse (status ou non vide),\n // et ne renvoyer que le contenu (xml ou l'objet)\n\n // gestion de la proxification du service\n var strUrlProxified = null;\n var strData = this.request;\n\n // a t on mis en place un proxy ?\n // la proxyfication est valable uniquement en mode XHR !\n var bUrlProxified = !!(this.options.proxyURL && this.options.protocol === \"XHR\");\n\n // rajout de l'option gpbibaccess\n // INFO : acces au numero de version de package.conf aprés compilation !\n var requestMetaOptions = {\n \"gp-access-lib\": _package_json__WEBPACK_IMPORTED_MODULE_5__.version\n };\n if (this.options.apiKey) {\n requestMetaOptions.apiKey = this.options.apiKey;\n }\n this.options.serverUrl = _Utils_Helper__WEBPACK_IMPORTED_MODULE_1__[\"default\"].normalyzeUrl(this.options.serverUrl, requestMetaOptions, false);\n\n // si le proxy est renseigné, on proxifie l'url du service\n if (bUrlProxified) {\n if (this.options.httpMethod === \"GET\") {\n strUrlProxified = this.options.proxyURL + _Utils_Helper__WEBPACK_IMPORTED_MODULE_1__[\"default\"].normalyzeUrl(this.options.serverUrl, this.request, true);\n strData = null;\n }\n if (this.options.httpMethod === \"POST\") {\n strUrlProxified = this.options.proxyURL + _Utils_Helper__WEBPACK_IMPORTED_MODULE_1__[\"default\"].normalyzeUrl(this.options.serverUrl, null, true);\n strData = this.request;\n }\n }\n\n // contexte du composant spécifique !\n var self = this;\n var options = {\n url: strUrlProxified || this.options.serverUrl,\n method: this.options.httpMethod,\n protocol: this.options.protocol,\n timeOut: this.options.timeOut || 0,\n format: this.options.outputFormat,\n // ceci declenche le parsing de la reponse du service, mais on souhaite toujours une reponse brute (string) !\n nocache: this.options.nocache || false,\n // ceci permet d'ajouter un timestamp dans la requête\n wrap: this.options.protocol !== \"XHR\",\n // ceci declenche l'encapsulation de la reponse XML du service dans du JSON, mais pas en mode XHR !\n callbackSuffix: this.options.callbackSuffix,\n // callbackName : this.options.callbackName || null,\n data: strData,\n headers: null,\n // TODO...\n content: this.options.contentType || \"application/xml\",\n scope: this.options.scope || this,\n // callback de reponse\n onResponse: function onResponse(response) {\n self.logger.trace(\"callService::onResponse()\");\n\n // le contenu de la reponse à renvoyer !\n var content = null;\n\n // XHR : on renvoie toujours la reponse brute du service (json ou xml)\n // au parser du composant...\n if (self.options.protocol === \"XHR\") {\n self.logger.trace(\"Response XHR\", response);\n content = response; // par defaut, la reponse du service !\n }\n\n // JSONP : on pre-analyse la reponse brute du service (encapsuler ou pas)\n // avant de l'envoyer au parser du composant...\n if (self.options.protocol === \"JSONP\") {\n self.logger.trace(\"Response JSON\", response);\n if (response) {\n if (response.http) {\n // reponse encapsulée :\n // ex. reponse du service en xml\n // > {http : {status:200, error:null},xml :'réponse du service'}\n if (response.http.status !== 200) {\n error.call(self, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__[\"default\"]({\n status: response.http.status,\n message: response.http.error,\n type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__[\"default\"].TYPE_SRVERR\n }));\n return;\n } else {\n content = response.xml; // par defaut !\n if (self.options.rawResponse) {\n content = response;\n }\n }\n } else {\n // reponse non encapsulée :\n // ex. reponse du service en json ou xml\n content = response;\n }\n } else {\n error.call(self, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"Le contenu de la reponse est vide !?\"));\n return;\n }\n }\n\n // si on souhaite parser la reponse du service\n if (typeof self.options.onBeforeParse === \"function\") {\n var newResponse = self.options.onBeforeParse(content);\n if (typeof newResponse === \"string\") {\n // la reponse parsée par l'utilisateur est retournée sous\n // forme de string !\n content = newResponse;\n }\n }\n // sauvegarde de la reponse dans l'objet parent (CommonService)\n self.response = content;\n // on renvoie la reponse...\n success.call(self, content);\n },\n // callback des erreurs\n onFailure: function onFailure(e) {\n self.logger.trace(\"callService::onFailure()\");\n // on est forcement sur une erreur levée par un service !\n e.type = _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__[\"default\"].TYPE_SRVERR;\n error.call(self, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__[\"default\"](e));\n },\n // callback de timeOut\n onTimeOut: function onTimeOut() {\n self.logger.trace(\"callService::onTimeOut()\");\n error.call(self, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"TimeOut!\"));\n }\n };\n _Protocols_Protocol__WEBPACK_IMPORTED_MODULE_3__[\"default\"].send(options);\n },\n /**\n * Analyse de la réponse\n * @param {Function} error - callback\n * @param {Function} success - callback\n */\n analyzeResponse: function analyzeResponse(error, success) {\n // INFO\n this.logger.error(\"overwritten method !\");\n // retourne l'objet spécifique au type de composant (json)\n if (error) {\n error.call(this, \"This method must be overwritten !\");\n }\n success.call(this, \"This method must be overwritten !\");\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (CommonService);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9Db21tb25TZXJ2aW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IFwiWEhSXCIsXG4gICAgICAgIHNzbCA6IHRydWUsXG4gICAgICAgIHByb3h5VVJMIDogXCJcIixcbiAgICAgICAgLy8gY2FsbGJhY2tOYW1lIDogXCJcIixcbiAgICAgICAgY2FsbGJhY2tTdWZmaXggOiBudWxsLFxuICAgICAgICBodHRwTWV0aG9kIDogXCJHRVRcIixcbiAgICAgICAgdGltZU91dCA6IDAsXG4gICAgICAgIHJhd1Jlc3BvbnNlIDogZmFsc2UsXG4gICAgICAgIHNjb3BlIDogdGhpcyxcbiAgICAgICAgLyoqXG4gICAgICAgICogY2FsbGJhY2sgcGFyIGRlZmF1dCBwb3VyIGxhIHJlcG9uc2VcbiAgICAgICAgKiBAcGFyYW0ge09iamVjdH0gcmVzcG9uc2UgLSByZXNwb25zZVxuICAgICAgICAqIEBwcml2YXRlXG4gICAgICAgICovXG4gICAgICAgIG9uU3VjY2VzcyA6IGZ1bmN0aW9uIChyZXNwb25zZSkge1xuICAgICAgICAgICAgY29uc29sZS5sb2coXCJvblN1Y2Nlc3MgLSBsYSByZXBvbnNlIGVzdCBsYSBzdWl2YW50ZSA6IFwiLCByZXNwb25zZSk7XG4gICAgICAgIH0sXG4gICAgICAgIC8qKlxuICAgICAgICAqIGNhbGxiYWNrIHBhciBkZWZhdXQgcG91ciBsZXMgZXJyZXVyc1xuICAgICAgICAqIEBwYXJhbSB7T2JqZWN0fSBlcnJvciAtIGVycm9yXG4gICAgICAgICogQHByaXZhdGVcbiAgICAgICAgKi9cbiAgICAgICAgb25GYWlsdXJlIDogZnVuY3Rpb24gKGVycm9yKSB7XG4gICAgICAgICAgICBpZiAoZXJyb3Iuc3RhdHVzID09PSAyMDAgfHwgIWVycm9yLnN0YXR1cykge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKFwib25GYWlsdXJlIDogXCIsIGVycm9yLm1lc3NhZ2UpO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIm9uR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ICAgIHZhciBjb250ZW50ID0gbnVsbDtcblxuICAgICAgICAgICAgICAgIC8vIFhIUiA6IG9uIHJlbnZvaWUgdG91am91cnMgbGEgcmVwb25zZSBicnV0ZSBkdSBzZXJ2aWNlIChqc29uIG91IHhtbClcbiAgICAgICAgICAgICAgICAvLyBhdSBwYXJzZXIgZHUgY29tcG9zYW50Li4uXG4gICAgICAgICAgICAgICAgaWYgKHNlbGYub3B0aW9ucy5wcm90b2NvbCA9PT0gXCJYSFJcIikge1xuICAgICAgICAgICAgICAgICAgICBzZWxmLmxvZ2dlci50cmFjZShcIlJlc3BvbnNlIFhIUlwiLCByZXNwb25zZSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnRlbnQgPSByZXNwb25zZTsgLy8gcGFyIGRlZmF1dCwgbGEgcmVwb25zZSBkdSBzZXJ2aWNlICAhXG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgLy8gSlNPTlAgOiBvbiBwcmUtYW5hbHlzZSBsYSByZXBvbnNlIGJydXRlIGR1IHNlcnZpY2UgKGVuY2Fwc3VsZXIgb3UgcGFzKVxuICAgICAgICAgICAgICAgIC8vIGF2YW50IGRlIGwnZW52b3llciBhdSBwYXJzZXIgZHUgY29tcG9zYW50Li4uXG4gICAgICAgICAgICAgICAgaWYgKHNlbGYub3B0aW9ucy5wcm90b2NvbCA9PT0gXCJKU09OUFwiKSB7XG4gICAgICAgICAgICAgICAgICAgIHNlbGYubG9nZ2VyLnRyYWNlKFwiUmVzcG9uc2UgSlNPTlwiLCByZXNwb25zZSk7XG4gICAgICAgICAgICAgICAgICAgIGlmIChyZXNwb25zZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHJlc3BvbnNlLmh0dHApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyByZXBvbnNlIGVuY2Fwc3Vsw6llIDpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBleC4gcmVwb25zZSBkdSBzZXJ2aWNlIGVuIHhtbFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vID4ge2h0dHAgOiB7c3RhdHVzOjIwMCwgZXJyb3I6bnVsbH0seG1sIDoncsOpcG9uc2UgZHUgc2VydmljZSd9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHJlc3BvbnNlLmh0dHAuc3RhdHVzICE9PSAyMDApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZXJyb3IuY2FsbChzZWxmLCBuZXcgRXJyb3JTZXJ2aWNlKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXR1cyA6IHJlc3BvbnNlLmh0dHAuc3RhdHVzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWVzc2FnZSA6IHJlc3BvbnNlLmh0dHAuZXJyb3IsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0eXBlIDogRXJyb3JTZXJ2aWNlLlRZUEVfU1JWRVJSXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRlbnQgPSByZXNwb25zZS54bWw7IC8vIHBhciBkZWZhdXQgIVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoc2VsZi5vcHRpb25zLnJhd1Jlc3BvbnNlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb250ZW50ID0gcmVzcG9uc2U7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHJlcG9uc2Ugbm9uIGVuY2Fwc3Vsw6llIDpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBleC4gcmVwb25zZSBkdSBzZXJ2aWNlIGVuIGpzb24gb3UgeG1sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29udGVudCA9IHJlc3BvbnNlO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgZXJyb3IuY2FsbChzZWxmLCBuZXcgRXJyb3JTZXJ2aWNlKFwiTGUgY29udGVudSBkZSBsYSByZXBvbnNlIGVzdCB2aWRlICE/XCIpKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIC8vIHNpIG9uIHNvdWhhaXRlIHBhcnNlciBsYSByZXBvbnNlIGR1IHNlcnZpY2VcbiAgICAgICAgICAgICAgICBpZiAodHlwZW9mIHNlbGYub3B0aW9ucy5vbkJlZm9yZVBhcnNlID09PSBcImZ1bmN0aW9uXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgdmFyIG5ld1Jlc3BvbnNlID0gc2VsZi5vcHRpb25zLm9uQmVmb3JlUGFyc2UoY29udGVudCk7XG4gICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbmV3UmVzcG9uc2UgPT09IFwic3RyaW5nXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGxhIHJlcG9uc2UgcGFyc8OpZSBwYXIgbCd1dGlsaXNhdGV1ciBlc3QgcmV0b3VybsOpZSBzb3VzXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBmb3JtZSBkZSBzdHJpbmcgIVxuICAgICAgICAgICAgICAgICAgICAgICAgY29udGVudCA9IG5ld1Jlc3BvbnNlO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIC8vIHNhdXZlZ2FyZGUgZGUgbGEgcmVwb25zZSBkYW5zIGwnb2JqZXQgcGFyZW50IChDb21tb25TZXJ2aWNlKVxuICAgICAgICAgICAgICAgIHNlbGYucmVzcG9uc2UgPSBjb250ZW50O1xuICAgICAgICAgICAgICAgIC8vIG9uIHJlbnZvaWUgbGEgcmVwb25zZS4uLlxuICAgICAgICAgICAgICAgIHN1Y2Nlc3MuY2FsbChzZWxmLCBjb250ZW50KTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAvLyBjYWxsYmFjayBkZXMgZXJyZXVyc1xuICAgICAgICAgICAgb25GYWlsdXJlIDogZnVuY3Rpb24gKGUpIHtcbiAgICAgICAgICAgICAgICBzZWxmLmxvZ2dlci50cmFjZShcImNhbGxTZXJ2aWNlOjpvbkZhaWx1cmUoKVwiKTtcbiAgICAgICAgICAgICAgICAvLyBvbiBlc3QgZm9yY2VtZW50IHN1ciB1bmUgZXJyZXVyIGxldsOpZSBwYXIgdW4gc2VydmljZSAhXG4gICAgICAgICAgICAgICAgZS50eXBlID0gRXJyb3JTZXJ2aWNlLlRZUEVfU1JWRVJSO1xuICAgICAgICAgICAgICAgIGVycm9yLmNhbGwoc2VsZiwgbmV3IEVycm9yU2VydmljZShlKSk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgLy8gY2FsbGJhY2sgZGUgdGltZU91dFxuICAgICAgICAgICAgb25UaW1lT3V0IDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgIHNlbGYubG9nZ2VyLnRyYWNlKFwiY2FsbFNlcnZpY2U6Om9uVGltZU91dCgpXCIpO1xuICAgICAgICAgICAgICAgIGVycm9yLmNhbGwoc2VsZiwgbmV3IEVycm9yU2VydmljZShcIlRpbWVPdXQhXCIpKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfTtcblxuICAgICAgICBQcm90b2NvbC5zZW5kKG9wdGlvbnMpO1xuICAgIH0sXG5cbiAgICAvKipcbiAgICAgKiBBbmFseXNlIGRlIGxhIHLDqXBvbnNlXG4gICAgICogQHBhcmFtIHtGdW5jdGlvbn0gZXJyb3IgLSBjYWxsYmFja1xuICAgICAqIEBwYXJhbSB7RnVuY3Rpb259IHN1Y2Nlc3MgLSBjYWxsYmFja1xuICAgICAqL1xuICAgIGFuYWx5emVSZXNwb25zZSA6IGZ1bmN0aW9uIChlcnJvciwgc3VjY2Vzcykge1xuICAgICAgICAvLyBJTkZPXG4gICAgICAgIHRoaXMubG9nZ2VyLmVycm9yKFwib3ZlcndyaXR0ZW4gbWV0aG9kICFcIik7XG4gICAgICAgIC8vIHJldG91cm5lIGwnb2JqZXQgc3DDqWNpZmlxdWUgYXUgdHlwZSBkZSBjb21wb3NhbnQgKGpzb24pXG4gICAgICAgIGlmIChlcnJvcikge1xuICAgICAgICAgICAgZXJyb3IuY2FsbCh0aGlzLCBcIlRoaXMgbWV0aG9kIG11c3QgYmUgb3ZlcndyaXR0ZW4gIVwiKTtcbiAgICAgICAgfVxuICAgICAgICBzdWNjZXNzLmNhbGwodGhpcywgXCJUaGlzIG1ldGhvZCBtdXN0IGJlIG92ZXJ3cml0dGVuICFcIik7XG4gICAgfVxuXG59O1xuXG5leHBvcnQgZGVmYXVsdCBDb21tb25TZXJ2aWNlO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/Services/CommonService.js\n"); + +/***/ }), + +/***/ "./src/Services/Config/Config.js": +/*!***************************************!*\ + !*** ./src/Services/Config/Config.js ***! + \***************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _CommonService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../CommonService */ \"./src/Services/CommonService.js\");\n/* harmony import */ var _DefaultUrlService__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../DefaultUrlService */ \"./src/Services/DefaultUrlService.js\");\n/* harmony import */ var _ConfigInterface__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ConfigInterface */ \"./src/Services/Config/ConfigInterface.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n/**\n * @classdesc\n *\n * Recupération de la configuration de clés Géoportail sous forme de JSON\n *\n * @constructor\n * @extends {Gp.Services.CommonService}\n * @alias Gp.Services.Config\n * @param {Object} options - options spécifiques au service (+ les options heritées)\n * @param {Sting} options.apiKey - clé(s) dont on veut obtenir la configuration. Si plusieurs clés, séparer chacune par une virgule\n * @param {Boolean} [options.sync=false] - force le mode synchrone\n * @param {String} options.customConfigFile - chemin vers un fichier de configuration personnalisé. Surcharge le paramètre apiKey.\n * @see Gp.Services.GetConfigInterface\n *\n * @example\n * var options = {\n * apiKey : \"cartes,ortho\",\n * sync : false,\n * onSuccess : function (response) {},\n * onFailure : function (error) {},\n * };\n *\n */\nfunction Config(options) {\n if (!(this instanceof Config)) {\n throw new TypeError(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"CLASS_CONSTRUCTOR\", \"Config\"));\n }\n\n /**\n * Nom de la classe (heritage)\n */\n this.CLASSNAME = \"Config\";\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"Gp.Config\");\n this.logger.trace(\"[Constructeur Config (options)]\");\n\n // #####################\n // analyse des options\n // #####################\n\n // gestion du callback onSuccess\n var bOnSuccess = !!(options.onSuccess !== null && typeof options.onSuccess === \"function\");\n if (!bOnSuccess) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_MISSING\", \"onSuccess()\"));\n }\n if (!options.apiKey && !options.customConfigFile) {\n // si pas de thème spécifié, on récupère toutes les ressources possibles dans l'objet Config\n options.apiKey = \"full\";\n }\n this.options = {};\n this.options.onSuccess = options.onSuccess;\n this.options.onFailure = options.onFailure;\n\n // mode sync\n this.options.sync = options.sync || false;\n\n // gestion d'un tableau d'url des fichiers de configuration\n this.options.listConfigUrls = options.customConfigFile ? [options.customConfigFile] : !Array.isArray(options.apiKey) ? _DefaultUrlService__WEBPACK_IMPORTED_MODULE_3__[\"default\"].Config.url(options.apiKey.split(\",\")) : _DefaultUrlService__WEBPACK_IMPORTED_MODULE_3__[\"default\"].Config.url(options.apiKey);\n}\n\n/**\n * @lends module:Config#\n */\nConfig.prototype = Object.create(_CommonService__WEBPACK_IMPORTED_MODULE_2__[\"default\"].prototype, {\n // todo\n // getter/setter\n});\n\n/**\n * Constructeur (alias)\n */\nConfig.prototype.constructor = Config;\n\n/**\n * Création de la requête\n *\n * @param {Function} error - callback des erreurs\n * @param {Function} success - callback\n * @overload\n */\nConfig.prototype.buildRequest = function (error, success) {\n // liste des urls des fichiers de configuration en JSON\n this.listConfigUrls = this.options.listConfigUrls;\n if (!this.listConfigUrls) {\n error.call(this, new Error(\"url by default not found !\"));\n return;\n }\n\n // INFO :\n // il n'y a pas de construction de requête,\n // on passe directement à l'appel des requêtes\n success.call(this, this.listConfigUrls);\n};\n\n/**\n * Récupération des configuration\n *\n * @param {Function} error - callback des erreurs\n * @param {Function} success - callback\n * @overload\n */\nConfig.prototype.callService = function (error, success) {\n if (this.options.sync) {\n __callServiceSync.call(this, error, success);\n } else {\n __callService.call(this, error, success);\n }\n};\n\n/**\n * Requêtes en mode asynchrone\n *\n * @param {*} error\n * @param {*} success\n * @private\n */\nvar __callService = function __callService(error, success) {\n var _this = this;\n // liste des resultats au format JSON\n this.listConfigResults = [];\n\n // test on env. nodejs or browser\n var Fetch = null;\n if (typeof window === \"undefined\") {\n var nodefetch = __webpack_require__(/*! node-fetch */ \"node-fetch\");\n Fetch = nodefetch;\n } else {\n Fetch = window.fetch;\n }\n\n // the factory of fetch !\n var fetchFactory = function fetchFactory(url) {\n return Fetch(url, {\n credentials: \"same-origin\"\n }).then(function (response) {\n if (response.ok) {\n return response.json().then(function (json) {\n // TODO :\n // tester le contenu !\n return json;\n })[\"catch\"](function (error) {\n throw new Error(\"Exception Json : \" + error);\n });\n } else {\n throw new Error(\"Exception HTTP : \" + response.status + \" (status code) !\");\n }\n })[\"catch\"](function (error) {\n return new Promise(function (resolve, reject) {\n // eslint-disable-line no-unused-vars\n reject(error);\n });\n });\n };\n\n // construction des promises fetch\n var promises = [];\n for (var index = 0; index < this.listConfigUrls.length; index++) {\n var url = this.listConfigUrls[index];\n promises.push(fetchFactory(url));\n }\n Promise.all(promises).then(function (results) {\n if (!results) {\n throw new Error(\"results config empty !?\");\n }\n results.forEach(function (result) {\n // TODO :\n // verification des resultats\n _this.listConfigResults.push(result);\n });\n }).then(function () {\n success.call(_this, _this.listConfigResults);\n })[\"catch\"](function (e) {\n // TODO :\n // construction d'un message\n error.call(_this, e);\n });\n};\n\n/**\n * Requêtes en mode synchrone\n *\n * @param {*} error\n * @param {*} success\n * @private\n */\nvar __callServiceSync = function __callServiceSync(error, success) {\n // liste des resultats au format JSON\n this.listConfigResults = [];\n\n // FIXME :\n // boucle synchrone !\n for (var i = 0; i < this.listConfigUrls.length; i++) {\n var url = this.listConfigUrls[i];\n // TODO :\n // prévoir le CORS, headers, ...\n var request = new XMLHttpRequest();\n request.open(\"GET\", url, false);\n request.send(null);\n if (request.status === 200) {\n // TODO :\n // tester la reponse !\n var response = JSON.parse(request.responseText);\n this.listConfigResults.push(response);\n }\n }\n // callback\n if (this.listConfigResults.length !== 0) {\n success.call(this, this.listConfigResults);\n } else {\n error.call(this, new Error(\"...\"));\n }\n};\n\n/**\n * Analyse et mise en forme de la réponse en fusionnant les configurations\n *\n * @param {Function} error - callback des erreurs\n * @param {Function} success - callback\n * @overload\n */\nConfig.prototype.analyzeResponse = function (error, success) {\n // fonction de merge des objects JSON\n var mergeConfig = function mergeConfig(objects) {\n // objet fusion des couches\n var allLayersConfig = {};\n // objet fusion des clés\n var allKeysConfig = {};\n // objet fusion des TMS\n var allTMSConfig = {};\n\n // on fusionne les résultat\n for (var i = 0; i < objects.length; i++) {\n if (!objects[i].generalOptions || !objects[i].layers) {\n return;\n }\n allKeysConfig = _objectSpread(_objectSpread({}, allKeysConfig), objects[i].generalOptions.apiKeys);\n allLayersConfig = _objectSpread(_objectSpread({}, allLayersConfig), objects[i].layers);\n allTMSConfig = _objectSpread(_objectSpread({}, allTMSConfig), objects[i].tileMatrixSets);\n }\n var mergedConfig = {\n generalOptions: {\n apiKeys: allKeysConfig\n },\n layers: allLayersConfig,\n tileMatrixSets: allTMSConfig\n };\n return mergedConfig;\n };\n\n // fusion des configurations JSON\n var ConfigJSON = mergeConfig(this.listConfigResults);\n if (!ConfigJSON) {\n error.call(this, new Error(\"configuration structure not conforme !\"));\n return;\n }\n\n // creation des interfaces\n var IConfig = new _ConfigInterface__WEBPACK_IMPORTED_MODULE_4__[\"default\"]();\n // ajout des interfaces avec la configuration JSON\n Object.assign(IConfig, ConfigJSON);\n\n // définition de la variable globale Gp.Config\n var scope = typeof window !== \"undefined\" ? window : {};\n if (!scope.Gp) {\n scope.Gp = {};\n }\n\n // enregistrement\n if (scope.Gp.Config) {\n Object.assign(scope.Gp.Config, IConfig);\n // dans le doute..., ceinture et bretelles !\n for (var property in IConfig) {\n scope.Gp.Config[property] = IConfig[property];\n }\n } else {\n scope.Gp.Config = IConfig;\n }\n\n // INFO :\n // il n'y a pas d'analyse des résultats,\n // on passe directement à l'appel de la callback utilisateur\n success.call(this, scope.Gp.Config);\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Config);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9Db25maWcvQ29uZmlnLmpzP2FjMjIiXSwibmFtZXMiOlsiQ29uZmlnIiwib3B0aW9ucyIsIlR5cGVFcnJvciIsIl8iLCJnZXRNZXNzYWdlIiwiQ0xBU1NOQU1FIiwibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwidHJhY2UiLCJiT25TdWNjZXNzIiwib25TdW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tcbiAgICAgICAgcmV0dXJuIEZldGNoKHVybCwgeyBjcmVkZW50aWFscyA6IFwic2FtZS1vcmlnaW5cIiB9KVxuICAgICAgICAgICAgLnRoZW4oKHJlc3BvbnNlKSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKHJlc3BvbnNlLm9rKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiByZXNwb25zZS5qc29uKClcbiAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKChqc29uKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gVE9ETyA6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gdGVzdGVyIGxlIGNvbnRlbnUgIVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBqc29uO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgIC5jYXRjaCgoZXJyb3IpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXCJFeGNlcHRpb24gSnNvbiA6IFwiICsgZXJyb3IpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKFwiRXhjZXB0aW9uIEhUVFAgOiBcIiArIHJlc3BvbnNlLnN0YXR1cyArIFwiIChzdGF0dXMgY29kZSkgIVwiKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgLmNhdGNoKChlcnJvcikgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSwgcmVqZWN0KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIC8vIGVzbGludC1kaXNhYmxlLWxpbmUgbm8tdW51c2VkLXZhcnNcbiAgICAgICAgICAgICAgICAgICAgcmVqZWN0KGVycm9yKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0pO1xuICAgIH07XG5cbiAgICAvLyBjb25zdHJ1Y3Rpb24gZGVzIHByb21pc2VzIGZldGNoXG4gICAgdmFyIHByb21pc2VzID0gW107XG4gICAgZm9yIChsZXQgaW5kZXggPSAwOyBpbmRleCA8IHRoaXMubGlzdENvbmZpZ1VybHMubGVuZ3RoOyBpbmRleCsrKSB7XG4gICAgICAgIGNvbnN0IHVybCA9IHRoaXMubGlzdENvbmZpZ1VybHNbaW5kZXhdO1xuICAgICAgICBwcm9taXNlcy5wdXNoKGZldGNoRmFjdG9yeSh1cmwpKTtcbiAgICB9XG5cbiAgICBQcm9taXNlLmFsbChwcm9taXNlcylcbiAgICAgICAgLnRoZW4oKHJlc3VsdHMpID0+IHtcbiAgICAgICAgICAgIGlmICghcmVzdWx0cykge1xuICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcInJlc3VsdHMgY29uZmlnIGVtcHR5ICE/XCIpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmVzdWx0cy5mb3JFYWNoKChyZXN1bHQpID0+IHtcbiAgICAgICAgICAgICAgICAvLyBUT0RPIDpcbiAgICAgICAgICAgICAgICAvLyB2ZXJpZmljYXRpb24gZGVzIHJlc3VsdGF0c1xuICAgICAgICAgICAgICAgIHRoaXMubGlzdENvbmZpZ1Jlc3VsdHMucHVzaChyZXN1bHQpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH0pXG4gICAgICAgIC50aGVuKCgpID0+IHtcbiAgICAgICAgICAgIHN1Y2Nlc3MuY2FsbCh0aGlzLCB0aGlzLmxpc3RDb25maWdSZXN1bHRzKTtcbiAgICAgICAgfSlcbiAgICAgICAgLmNhdGNoKChlKSA9PiB7XG4gICAgICAgICAgICAvLyBUT0RPIDpcbiAgICAgICAgICAgIC8vIGNvbnN0cnVjdGlvbiBkJ3VuIG1lc3NhZ2VcbiAgICAgICAgICAgIGVycm9yLmNhbGwodGhpc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A7IGkgPCBvYmplY3RzLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICBpZiAoIW9iamVjdHNbaV0uZ2VuZXJhbE9wdGlvbnMgfHwgIW9iamVjdHNbaV0ubGF5ZXJzKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgYWxsS2V5c0NvbmZpZyA9IHtcbiAgICAgICAgICAgICAgICAuLi5hbGxLZXlzQ29uZmlnLFxuICAgICAgICAgICAgICAgIC4uLm9iamVjdHNbaV0uZ2VuZXJhbE9wdGlvbnMuYXBpS2V5c1xuICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIGFsbExheWVyc0NvbmZpZyA9IHtcbiAgICAgICAgICAgICAgICAuLi5hbGxMYXllcnNDb25maWcsXG4gICAgICAgICAgICAgICAgLi4ub2JqZWN0c1tpXS5sYXllcnNcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICBhbGxUTVNDb25maWcgPSB7XG4gICAgICAgICAgICAgICAgLi4uYWxsVE1TQ29uZmlnLFxuICAgICAgICAgICAgICAgIC4uLm9iamVjdHNbaV0udGlsZU1hdHJpeFNldHNcbiAgICAgICAgICAgIH07XG4gICAgICAgIH1cblxuICAgICAgICB2YXIgbWVyZ2VkQ29uZmlnID0ge1xuICAgICAgICAgICAgZ2VuZXJhbE9wdGlvbnMgOiB7XG4gICAgICAgICAgICAgICAgYXBpS2V5cyA6IGFsbEtleXNDb25maWdcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBsYXllcnMgOiBhbGxMYXllcnNDb25maWcsXG4gICAgICAgICAgICB0aWxlTWF0cml4U2V0cyA6IGFsbFRNU0NvbmZpZ1xuICAgICAgICB9O1xuICAgICAgICByZXR1cm4gbWVyZ2VkQ29uZmlnO1xuICAgIH07XG5cbiAgICAvLyBmdXNpb24gZGVzIGNvbmZpZ3VyYXRpb25zIEpTT05cbiAgICB2YXIgQ29uZmlnSlNPTiA9IG1lcmdlQ29u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gSU5GTyA6XG4gICAgLy8gaWwgbid5IGEgcGFzIGQnYW5hbHlzZSBkZXMgcsOpc3VsdGF0cyxcbiAgICAvLyBvbiBwYXNzZSBkaXJlY3RlbWVudCDDoCBsJ2FwcGVsIGRlIGxhIGNhbGxiYWNrIHV0aWxpc2F0ZXVyXG4gICAgc3VjY2Vzcy5jYWxsKHRoaXMsIHNjb3BlLkdwLkNvbmZpZyk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBDb25maWc7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Services/Config/Config.js\n"); + +/***/ }), + +/***/ "./src/Services/Config/ConfigInterface.js": +/*!************************************************!*\ + !*** ./src/Services/Config/ConfigInterface.js ***! + \************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Response object for {@link module:Services~getConfig Gp.Services.getConfig ()} invocation when successful. Received as the argument of onSuccess callback function.\n *\n * @property {Object} generalOptions - General properties for default map configuration resources.\n * @property {Object} generalOptions.apiKeys - Object that associates apiKey (s) with an array of resources IDs availables with that key.\n * @property {String} generalOptions.title - Underlying web service Title.\n * @property {String} generalOptions.defaultGMLGFIStyle - XSL URL used by default to translate an XML GetFeatureInfo response into an HTML array.\n * @property {String} generalOptions.theme - default theme (FIXME : for what ?)\n * @property {Array.} generalOptions.wgs84Resolutions - geographical resolutions Array for each [zoom level of the Geoportal platform]{@link http://api.ign.fr/tech-docs-js/webmaster/layers.html#Geoportal_resolutions} from 0 to 21. Expressed in degrees/pixel.\n * @property {Object} layers - Associative array mapping resources availables IDs (keys) with their properties (values given as {@link Gp.Services.Config.Layer}).\n * @property {Object} tileMatrixSets - Associative Array mapping TileMatrixSets IDs (keys) availables with their properties (values given as {@link Gp.Services.Config.TileMatrixSet}).\n *\n * @namespace\n * @alias Gp.Services.GetConfigInterface\n */\nfunction ConfigInterface() {\n if (!(this instanceof ConfigInterface)) {\n throw new TypeError(\"ConfigInterface constructor cannot be called as a function.\");\n }\n this.generalOptions = {\n apiKeys: {},\n title: null,\n defaultGMLGFIStyle: null,\n theme: null,\n wgs84Resolutions: []\n };\n this.layers = {};\n this.tileMatrixSets = {};\n}\nConfigInterface.prototype = {\n /*\n * Constructor (alias)\n */\n constructor: ConfigInterface,\n /**\n * Check if config is loaded for a given key\n *\n * @param {String} apiKey - Access key to Geoportal platform\n * @returns {Boolean} isKeyConfLoaded - true if config of the key is already loaded, false otherwise\n */\n isKeyConfLoaded: function isKeyConfLoaded(apiKey) {\n if (!apiKey) {\n return;\n }\n if (this.generalOptions.apiKeys[apiKey]) {\n return true;\n }\n return false;\n },\n /**\n * Returns an array of Geoportal layers identifiers, corresponding to an API contract key.\n *\n * @param {String} apiKey - Access key to Geoportal platform\n * @returns {Array} apiKeys - Array of geoportal layers identifiers\n */\n getLayersId: function getLayersId(apiKey) {\n return this.generalOptions.apiKeys[apiKey];\n },\n /**\n * Returns the id of a Geoportal layer with its name and its service.\n *\n * @param {String} layerName - name of the layer (ex. \"ORTHOIMAGERY.ORTHOPHOTOS\")\n * @param {String} service - name of the service (ex. \"WMS\" ou \"WMTS\")\n * @returns {String} Id of the layer (ex. \"ORTHOIMAGERY.ORTHOPHOTOS$GEOPORTAIL:OGC:WMTS\")\n */\n getLayerId: function getLayerId(layerName, service) {\n if (!layerName || !service) {\n return;\n }\n var layerId = null;\n\n // layer\n // key : [layerName]$[contexte]:OGC:[service]\n // ex : \"ORTHOIMAGERY.ORTHOPHOTOS$GEOPORTAIL:OGC:WMTS\"\n\n // service\n // key : [layerName]$[contexte];[service]\n // ex : PositionOfInterest$OGC:OPENLS;ReverseGeocode\n\n if (this.layers) {\n var layers = this.layers;\n for (var key in layers) {\n if (layers.hasOwnProperty(key)) {\n var parts = key.split(\"$\");\n if (layerName === parts[0]) {\n if (parts[1]) {\n var servicePartsLayer = parts[1].split(\":\");\n var servicePartsService = parts[1].split(\";\");\n if (servicePartsService[1] === service.toUpperCase()) {\n layerId = key;\n break;\n }\n if (servicePartsLayer[2] === service.toUpperCase()) {\n layerId = key;\n break;\n }\n }\n }\n }\n }\n }\n if (!layerId) {\n return;\n }\n return layerId;\n },\n /**\n * Returns an associative array of Geoportal layers configurations, corresponding to an API contract key.\n * If no key is specified, all layers from configuration are returned.\n *\n * @param {String} apiKey - Access key to Geoportal platform\n * @returns {Object} layers - Object which properties are layers identifiers.\n */\n getLayersConf: function getLayersConf(apiKey) {\n var layers = {};\n var layersIdArray = this.getLayersId(apiKey);\n if (layersIdArray) {\n for (var i = 0; i < layersIdArray.length; i++) {\n var lyrId = layersIdArray[i];\n layers[lyrId] = this.layers[lyrId];\n }\n }\n return layers;\n },\n /**\n * Returns a geoportal layer configuration, given its identifier\n *\n * @param {String} layerId - Geoportal layer identifier (e.g. \"GEOGRAPHICALGRIDSYSTEMS.MAPS$GEOPORTAIL:OGC:WMTS\")\n * @return {Object} layer - Layer configuration\n * @see Gp.Services.Config.Layer\n */\n getLayerConf: function getLayerConf(layerId) {\n if (!this.layers) {\n return;\n }\n return this.layers[layerId];\n },\n /**\n * Get all parameters needed to display a WFS, WMS or WMTS layer given its name, its service and its key\n *\n * @param {String} layerName - name of the layer (ex. \"ORTHOIMAGERY.ORTHOPHOTOS\")\n * @param {String} service - name of the service (ex. \"WMS\" ou \"WMTS\")\n * @param {String} [apiKey] - Contract API key\n * @returns {Object} params - params of the service (WFS, WMS or WMTS) for the given layer\n * @returns {String} params.url - Url of the service to reach to display the layer\n * @returns {String} params.version - Version of the service\n * @returns {String} params.styles - Default style of the layer\n * @returns {String} params.format - Default format of the layer\n * @returns {String} params.projection - Default projection of the layer\n * @returns {Number} params.minScale - Min scale denominator of the layer\n * @returns {Number} params.maxScale - Max scale denominator of the layer\n * @returns {Gp.BBox} params.extent - Extent of the layer, in the projection of the layer\n * @returns {Array} params.legends - Array of legends associated to the layer\n * @returns {Array} params.title - Name of the layer, readable by a human\n * @returns {Array} params.description - Description of the layer\n * @returns {String} params.[TMSLink] - Id of the Tile Matrix Set (TMS), in the case of WMTS layer\n * @returns {Gp.Point} params.[matrixOrigin] - Originof the tile matrix (top left corner), in the case of WMTS layer\n * @returns {Array} params.[nativeResolutions] - Array with the resolution of each level of the tile matrix set, in the case of WMTS layer\n * @returns {Array} params.[matrixIds] - Array with the ID of each level of the tile matrix set, in the case of WMTS layer\n */\n getLayerParams: function getLayerParams(layerName, service) {\n var params = {};\n if ((service === \"WMS\" || Object.keys(this.tileMatrixSets).length !== 0) && Object.keys(this.layers).length !== 0) {\n // get the layerId of the layer\n var layerId = this.getLayerId(layerName, service);\n if (layerId) {\n // get the layer Conf Object\n var layerConf = this.getLayerConf(layerId);\n var keys = this.getLayerKey(layerId);\n if (keys.length === 0) {\n return;\n }\n\n // get services params\n for (var i = 0; i < keys.length; i++) {\n // only one serverUrl is saved in Gp.Config : with multiKeys, we have to retrieve the key used in the serverUrl property\n if (layerConf.serviceParams.serverUrl[keys[i]]) {\n params.url = layerConf.serviceParams.serverUrl[keys[i]];\n }\n }\n if (service !== \"WFS\") {\n var wmsTypeRegex = /\\/v\\//;\n // WMS vector style always empty (not in getCap)\n if (wmsTypeRegex.test(params.url)) {\n params.styles = \" \";\n } else {\n // WMS raster style is defined in getCap\n params.styles = layerConf.styles[0].name;\n }\n }\n params.version = layerConf.serviceParams.version;\n params.format = layerConf.formats && layerConf.formats.length ? layerConf.formats[0].name : \"\";\n params.projection = layerConf.defaultProjection;\n\n // get layer info and constraints\n params.minScale = layerConf.globalConstraint.minScaleDenominator;\n params.maxScale = layerConf.globalConstraint.maxScaleDenominator;\n params.extent = layerConf.globalConstraint.bbox;\n params.legends = layerConf.legends;\n params.title = layerConf.title;\n params.description = layerConf.description;\n if (service === \"WMS\") {\n params.metadata = layerConf.metadata;\n }\n\n // Informations non disponibles avec les getCap\n // params.metadata = layerConf.getMetadata();\n // params.originators = layerConf.getOriginators();\n // params.quicklookUrl = layerConf.getQuicklookUrl();\n\n // WMTS : get the tileMatrixSetLimits\n if (layerConf.wmtsOptions) {\n params.tileMatrixSetLimits = layerConf.wmtsOptions.tileMatrixSetLimits;\n var TMSLink = layerConf.wmtsOptions.tileMatrixSetLink;\n if (TMSLink) {\n params.TMSLink = TMSLink;\n var tmsConf = this.getTMSConf(TMSLink);\n // Get matrix origin : Gp.Point = Object{x:Float, y:Float}\n // params.matrixOrigin = tmsConf.getTopLeftCorner();\n params.matrixIds = Object.keys(tmsConf.tileMatrices);\n params.tileMatrices = tmsConf.tileMatrices;\n // by default, pseudo mercator resolutions\n params.nativeResolutions = tmsConf.nativeResolutions || this.getTMSConf(\"PM\").nativeResolutions;\n }\n }\n }\n }\n return params;\n },\n /**\n * Get the contract key(s) associated to a given layer.\n *\n * @param {String} layerId - Geoportal layer identifier (e.g. \"GEOGRAPHICALGRIDSYSTEMS.MAPS$GEOPORTAIL:OGC:WMTS\")\n * @return {Array} layerKey - array of key(s) associated to the given layer\n */\n getLayerKey: function getLayerKey(layerId) {\n var layerKey = [];\n if (this.generalOptions && this.generalOptions.apiKeys && Object.keys(this.generalOptions.apiKeys).length !== 0) {\n var resourcesByKey = this.generalOptions.apiKeys;\n for (var key in resourcesByKey) {\n var resourcesArray = resourcesByKey[key];\n resourcesArray.forEach(function (arrayLayerId) {\n if (arrayLayerId === layerId) {\n layerKey.push(key);\n }\n });\n }\n }\n return layerKey;\n },\n /**\n * Returns an associative array of Tile Matrix Sets configurations.\n *\n * @return {Object} tileMatrixSets - Object which properties are TMS identifiers\n *\n */\n getTileMatrixSets: function getTileMatrixSets() {\n return this.tileMatrixSets;\n },\n /**\n * Returns a Tile Matrix Sets configuration, given its identifier.\n *\n * @param {String} tmsID - Tile Matrix Set identifier (e.g. : \"PM\")\n * @return {Object} tileMatrixSet - Tile Matrix Set configuration\n * @see Gp.Services.Config.TileMatrixSet\n */\n getTMSConf: function getTMSConf(tmsID) {\n if (!this.tileMatrixSets) {\n return;\n }\n return this.tileMatrixSets[tmsID];\n },\n /**\n * Get global constraints for a given Layer : extent, minScale, maxScale, projection\n *\n * @param {String} layerId - Geoportal layer identifier (e.g. \"GEOGRAPHICALGRIDSYSTEMS.MAPS$GEOPORTAIL:OGC:WMTS\")\n * @returns {Object} params - layer constraints\n * @returns {String} params.projection - default layer projection\n * @returns {Number} params.minScale - layer min scale denominator\n * @returns {Number} params.maxScale - layer max scale denominator\n * @returns {Gp.BBox} params.extent - layer extent expressed in the layer projection\n */\n getGlobalConstraints: function getGlobalConstraints(layerId) {\n var params = {};\n if (layerId) {\n // get layer configuration object\n var layerConf = this.getLayerConf(layerId);\n params.projection = layerConf.defaultProjection;\n params.minScale = layerConf.globalConstraint.minScaleDenominator;\n params.maxScale = layerConf.globalConstraint.maxScaleDenominator;\n params.extent = layerConf.globalConstraint.bbox;\n }\n return params;\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (ConfigInterface);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9Db25maWcvQ29uZmlnSW50ZXJmYWNlLmpzPzQyYjQiXSwibmFtZXMiOlsiQ29uZmlnSW50ZXJmYWNlIiwiVHlwZUVycm9yIiwiZ2VuZXJhbE9wdGlvbnMiLCJhcGlLZXlzIiwidGl0bGUiLCJkZWZhdWx0R01MR0ZJU3R5bGUiLCJ0aGVtZSIsIndnczg0UmVzb2x1dGlvbnMiLCJsYXllcnMiLCJ0aWxlTWF0cml4U2V0cyIsInByb3RvdHlwZSIsImNvbnN0cnVjdG9yIiwiaXNLZXlDb25mTG9hZGVkIiwiYXBpS2V5IiwiZ2V0TGF5ZXJzSWQiLCJnZXRMYXllcklkIiwibGF5ZXJOYW1lIiwic2VydmljZSIsImxheWVySWQiLCJrZXkiLCJoYXNPd25Qcm9wZXJ0eSIsInBhcnRzIiwic3BsaXQiLCJzZXJ2aWNlUGFydHNMYXllciIsInNlcnZpY2VQ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tsYXllck5hbWVdJFtjb250ZXh0ZV06T0dDOltzZXJ2aWNlXVxuICAgICAgICAvLyBleCA6IFwiT1JUSE9JTUFHRVJZLk9SVEhPUEhPVE9TJEdFT1BPUlRBSUw6T0dDOldNVFNcIlxuXG4gICAgICAgIC8vIHNlcnZpY2VcbiAgICAgICAgLy8ga2V5IDogW2xheWVyTmFtZV0kW2NvbnRleHRlXTtbc2VydmljZV1cbiAgICAgICAgLy8gZXggOiBQb3NpdGlvbk9mSW50ZXJlc3QkT0dDOk9QRU5MUztSZXZlcnNlR2VvY29kZVxuXG4gICAgICAgIGlmICh0aGlzLmxheWVycykge1xuICAgICAgICAgICAgdmFyIGxheWVycyA9IHRoaXMubGF5ZXJzO1xuICAgICAgICAgICAgZm9yICh2YXIga2V5IGluIGxheWVycykge1xuICAgICAgICAgICAgICAgIGlmIChsYXllcnMuaGFzT3duUHJvcGVydHkoa2V5KSkge1xuICAgICAgICAgICAgICAgICAgICB2YXIgcGFydHMgPSBrZXkuc3BsaXQoXCIkXCIpO1xuICAgICAgICAgICAgICAgICAgICBpZiAobGF5ZXJOYW1lID09PSBwYXJ0c1swXSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHBhcnRzWzFdKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHNlcnZpY2VQYXJ0c0xheWVyID0gcGFydHNbMV0uc3BsaXQoXCI6XCIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBzZXJ2aWNlUGFydHNTZXJ2aWNlID0gcGFydHNbMV0uc3BsaXQoXCI7XCIpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHNlcnZpY2VQYXJ0c1NlcnZpY2VbMV0gPT09IHNlcnZpY2UudG9VcHBlckNhc2UoKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYXllcklkID0ga2V5O1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHNlcnZpY2VQYXJ0c0xheWVyWzJdID09PSBzZXJ2aWNlLnRvVXBwZXJDYXNlKCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGF5ZXJJZCA9IGtleTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGlmICghbGF5ZXJJZCkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBsYXllcklkO1xuICAgIH0sXG5cbiAgICAvKipcbiAgICAgKiBSZXR1cm5zIGFuIGFzc29jaWF0aXZlIGFycmF5IG9mIEdlb3BvcnRhbCBsYXllcnMgY29uZmlndXJhdGlvbnMsIGNvcnJlc3BvbmRpbmcgdG8gYW4gQVBJIGNvbnRyYWN0IGtleS5cbiAgICAgKiBJZiBubyBrZXkgaXMgc3BlY2lmaWVkLCBhbGwgbGF5ZXJzIGZyb20gY29uZmlndXJhdGlvbiBhcmUgcmV0dXJuZWQuXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge1N0cmluZ30gYXBpS2V5IC0gQWNjZXNzIGtleSB0byBHZW9wb3J0YWwgcGxhdGZvcm1cbiAgICAgKiBAcmV0dXJucyB7T2JqZWN0fSBsYXllcnMgLSBPYmplY3Qgd2hpY2ggcHJvcGVydGllcyBhcmUgbGF5ZXJzIGlkZW50aWZpZXJzLlxuICAgICAqL1xuICAgIGdldExheWVyc0NvbmYgOiBmdW5jdGlvbiAoYXBpS2V5KSB7XG4gICAgICAgIHZhciBsYXllcnMgPSB7fTtcbiAgICAgICAgdmFyIGxheWVyc0lkQXJyYXkgPSB0aGlzLmdldExheWVyc0lkKGFwaUtleSk7XG4gICAgICAgIGlmIChsYXllcnNJZEFycmF5KSB7XG4gICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxheWVyc0lkQXJyYXkubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICB2YXIgbHlySWQgPSBsYXllcnNJZEFycmF5W2ldO1xuICAgICAgICAgICAgICAgIGxheWVyc1tseXJJZF0gPSB0aGlzLmxheWVyc1tseXJJZF07XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIGxheWVycztcbiAgICB9LFxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyBhIGdlb3BvcnRhbCBsYXllciBjb25maWd1cmF0aW9uLCBnaXZlbiBpdHMgaWRlbnRpZmllclxuICAgICAqXG4gICAgICogQHBhcmFtIHtTdHJpbmd9IGxheWVySWQgLSBHZW9wb3J0YWwgbGF5ZXIgaWRlbnRpZmllciAoZS5nLiBcIkdFT0dSQVBISUNBTEdSSURTWVNURU1TLk1BUFMkR0VPUE9SVEFJTDpPR0M6V01UU1wiKVxuICAgICAqIEByZXR1cm4ge09iamVjdH0gbGF5ZXIgLSBMYXllciBjb25maWd1cmF0aW9uXG4gICAgICogQHNlZSBHcC5TZXJ2aWNlcy5Db25maWcuTGF5ZXJcbiAgICAgKi9cbiAgICBnZXRMYXllckNvbmYgOiBmdW5jdGlvbiAobGF5ZXJJZCkge1xuICAgICAgICBpZiAoIXRoaXMubGF5ZXJzKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHRoaXMubGF5ZXJzW2xheWVySWRdO1xuICAgIH0sXG5cbiAgICAvKipcbiAgICAgKiBHZXQgYWxsIHBhcmFtZXRlcnMgbmVlZGVkIHRvIGRpc3BsYXkgYSBXRlMsIFdNUyBvciBXTVRTIGxheWVyIGdpdmVuIGl0cyBuYW1lLCBpdHMgc2VydmljZSBh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GFyYW1zLlttYXRyaXhJZHNdICAgICAgICAgLSBBcnJheSB3aXRoIHRoZSBJRCBvZiBlYWNoIGxldmVsIG9mIHRoZSB0aWxlIG1hdHJpeCBzZXQsIGluIHRoZSBjYXNlIG9mIFdNVFMgbGF5ZXJcbiAgICAgKi9cbiAgICBnZXRMYXllclBhcmFtcyA6IGZ1bmN0aW9uIChsYXllck5hbWUsIHNlcnZpY2UpIHtcbiAgICAgICAgdmFyIHBhcmFtcyA9IHt9O1xuXG4gICAgICAgIGlmICgoc2VydmljZSA9PT0gXCJXTVNcIiB8fCBPYmplY3Qua2V5cyh0aGlzLnRpbGVNYXRyaXhTZXRzKS5sZW5ndGggIT09IDApICYmIE9iamVjdC5rZXlzKHRoaXMubGF5ZXJzKS5sZW5ndGggIT09IDApIHtcbiAgICAgICAgICAgIC8vIGdldCB0aGUgbGF5ZXJJZCBvZiB0aGUgbGF5ZXJcbiAgICAgICAgICAgIHZhciBsYXllcklkID0gdGhpcy5nZXRMYXllcklkKGxheWVyTmFtZSwgc2VydmljZSk7XG5cbiAgICAgICAgICAgIGlmIChsYXllcklkKSB7XG4gICAgICAgICAgICAgICAgLy8gZ2V0IHRoZSBsYXllciBDb25mIE9iamVjdFxuICAgICAgICAgICAgICAgIHZhciBsYXllckNvbmYgPSB0aGlzLmdldExheWVyQ29uZihsYXllcklkKTtcblxuICAgICAgICAgICAgICAgIHZhciBrZXlzID0gdGhpcy5nZXRMYXllcktleShsYXllcklkKTtcbiAgICAgICAgICAgICAgICBpZiAoa2V5cy5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIC8vIGdldCBzZXJ2aWNlcyBwYXJhbXNcbiAgICAgICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGtleXMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gb25seSBvbmUgc2VydmVyVXJsIGlzIHNhdmVkIGluIEdwLkNvbmZpZyA6IHdpdGggbXVsdGlLZXlzLCB3ZSBoYXZlIHRvIHJldHJpZXZlIHRoZSBrZXkgdXNlZCBpbiB0aGUgc2VydmVyVXJsIHByb3BlcnR5XG4gICAgICAgICAgICAgICAgICAgIGlmIChsYXllckNvbmYuc2VydmljZVBhcmFtcy5zZXJ2ZXJVcmxba2V5c1tpXV0pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhcmFtcy51cmwgPSBsYXllckNvbmYuc2VydmljZVBhcmFtcy5zZXJ2ZXJVcmxba2V5c1tpXV07XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZiAoc2VydmljZSAhPT0gXCJXRlNcIikge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCB3bXNUeXBlUmVnZXggPSAvXFwvdlxcLy87XG4gICAgICAgICAgICAgICAgICAgIC8vIFdNUyB2ZWN0b3Igc3R5bGUgYWx3YXlzIGVtcHR5IChub3QgaW4gZ2V0Q2FwKVxuICAgICAgICAgICAgICAgICAgICBpZiAod21zVHlwZVJlZ2V4LnRlc3QocGFyYW1zLnVybCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhcmFtcy5zdHlsZXMgPSBcIiBcIjtcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIFdNUyByYXN0ZXIgc3R5bGUgaXMgZGVmaW5lZCBpbiBnZXRDYXBcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhcmFtcy5zdHlsZXMgPSBsYXllckNvbmYuc3R5bGVzWzBdLm5hbWU7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBwYXJhbXMudmVyc2lvbiA9IGxheWVyQ29uZi5zZXJ2aWNlUGFyYW1zLnZlcnNpb247XG4gICAgICAgICAgICAgICAgcGFyYW1zLmZvcm1hdCA9IChsYXllckNvbmYuZm9ybWF0cyAmJiBsYXllckNvbmYuZm9ybWF0cy5sZW5ndGgpID8gbGF5ZXJDb25mLmZvcm1hdHNbMF0ubmFtZSA6IFwiXCI7XG4gICAgICAgICAgICAgICAgcGFyYW1zLnByb2plY3Rpb24gPSBsYXllckNvbmYuZGVmYXVsdFByb2plY3Rpb247XG5cbiAgICAgICAgICAgICAgICAvLyBnZXQgbGF5ZXIgaW5mbyBhbmQgY29uc3RyYWludHNcbiAgICAgICAgICAgICAgICBwYXJhbXMubWluU2NhbGUgPSBsYXllckNvbmYuZ2xvYmFsQ29uc3RyYWludC5taW5TY2FsZURlbm9taW5hdG9yO1xuICAgICAgICAgICAgICAgIHBhcmFtcy5tYXhTY2FsZSA9IGxheWVyQ29uZi5nbG9iYWxDb25zdHJhaW50Lm1heFNjYWxlRGVub21pbmF0b3I7XG4gICAgICAgICAgICAgICAgcGFyYW1zLmV4dGVudCA9IGxheWVyQ29uZi5nbG9iYWxDb25zdHJhaW50LmJib3g7XG4gICAgICAgICAgICAgICAgcGFyYW1zLmxlZ2VuZHMgPSBsYXllckNvbmYubGVnZW5kcztcbiAgICAgICAgICAgICAgICBwYXJhbXMudGl0bGUgPSBsYXllckNvbmYudGl0bGU7XG4gICAgICAgICAgICAgICAgcGFyYW1zLmRlc2NyaXB0aW9uID0gbGF5ZXJDb25mLmRlc2NyaXB0aW9uO1xuXG4gICAgICAgICAgICAgICAgaWYgKHNlcnZpY2UgPT09IFwiV01TXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgcGFyYW1zLm1ldGFkYXRhID0gbGF5ZXJDb25mLm1ldGFkYXRhO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIC8vIEluZm9ybWF0aW9ucyAgbm9uIGRpc3BvbmlibGVzIGF2ZWMgbGVzIGdldENhcFxuICAgICAgICAgICAgICAgIC8vIHBhcmFtcy5tZXRhZGF0YSA9IGxheWVyQ29uZi5nZXRNZXRhZGF0YSgpO1xuICAgICAgICAgICAgICAgIC8vIHBhcmFtcy5vcmlnaW5hdG9ycyA9IGxheWVyQ29uZi5nZXRPcmlnaW5hdG9ycygpO1xuICAgICAgICAgICAgICAgIC8vIHBhcmFtcy5xdWlja2xvb2tVcmwgPSBsYXllckNvbmYuZ2V0UXVpY2tsb29rVXJsKCk7XG5cbiAgICAgICAgICAgICAgICAvLyBXTVRTIDogZ2V0IHRoZSB0aWxlTWF0cml4U2V0TGltaXRzXG4gICAgICAgICAgICAgICAgaWYgKGxheWVyQ29uZi53bXRzT3B0aW9ucykge1xuICAgICAgICAgICAgICAgICAgICBwYXJhbXMudGlsZU1hdHJpeFNldExpbWl0cyA9IGxheWVyQ29uZi53bXRzT3B0aW9ucy50aWxlTWF0cml4U2V0TGltaXRzO1xuICAgICAgICAgICAgICAgICAgICB2YXIgVE1TTGluayA9IGxheWVyQ29uZi53bXRzT3B0aW9ucy50aWxlTWF0cml4U2V0TGluaztcbiAgICAgICAgICAgICAgICAgICAgaWYgKFRNU0xpbmspIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhcmFtcy5UTVNMaW5rID0gVE1TTGluaztcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciB0bXNDb25mID0gdGhpcy5nZXRUTVNDb25mKFRNU0xpbmspO1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gR2V0IG1hdHJpeCBvcmlnaW4gOiBHcC5Qb2ludCA9IE9iamVjdHt4OkZsb2F0LCB5OkZsb2F0fVxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gcGFyYW1zLm1hdHJpeE9yaWdpbiA9IHRtc0NvbmYuZ2V0VG9wTGVmdENvcm5lcigpO1xuICAgICAgICAgICAgICAgICAgICAgICAgcGFyYW1zLm1hdHJpeElkcyA9IE9iamVjdC5rZXlzKHRtc0NvbmYudGlsZU1hdHJpY2VzKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhcmFtcy50aWxlTWF0cmljZXM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VyY2VzQnlLZXkgPSB0aGlzLmdlbmVyYWxPcHRpb25zLmFwaUtleXM7XG4gICAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gcmVzb3VyY2VzQnlLZXkpIHtcbiAgICAgICAgICAgICAgICB2YXIgcmVzb3VyY2VzQXJyYXkgPSByZXNvdXJjZXNCeUtleVtrZXldO1xuICAgICAgICAgICAgICAgIHJlc291cmNlc0FycmF5LmZvckVhY2goZnVuY3Rpb24gKGFycmF5TGF5ZXJJZCkge1xuICAgICAgICAgICAgICAgICAgICBpZiAoYXJyYXlMYXllcklkID09PSBsYXllcklkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsYXllcktleS5wdXNoKGtleSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gbGF5ZXJLZXk7XG4gICAgfSxcblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgYW4gYXNzb2NpYXRpdmUgYXJyYXkgb2YgVGlsZSBNYXRyaXggU2V0cyBjb25maWd1cmF0aW9ucy5cbiAgICAgKlxuICAgICAqIEByZXR1cm4ge09iamVjdH0gdGlsZU1hdHJpeFNldHMgLSBPYmplY3Qgd2hpY2ggcHJvcGVydGllcyBhcmUgVE1TIGlkZW50aWZpZXJzXG4gICAgICpcbiAgICAgKi9cbiAgICBnZXRUaWxlTWF0cml4U2V0cyA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMudGlsZU1hdHJpeFNldHM7XG4gICAgfSxcblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgYSBUaWxlIE1hdHJpeCBTZXRzIGNvbmZpZ3VyYXRpb24sIGdpdmVuIGl0cyBpZGVudGlmaWVyLlxuICAgICAqXG4gICAgICogQHBhcmFtIHtTdHJpbmd9IHRtc0lEIC0gVGlsZSBNYXRyaXggU2V0IGlkZW50aWZpZXIgKGUuZy4gOiBc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ICAgLSBsYXllciBleHRlbnQgZXhwcmVzc2VkIGluIHRoZSBsYXllciBwcm9qZWN0aW9uXG4gICAgICovXG4gICAgZ2V0R2xvYmFsQ29uc3RyYWludHMgOiBmdW5jdGlvbiAobGF5ZXJJZCkge1xuICAgICAgICB2YXIgcGFyYW1zID0ge307XG5cbiAgICAgICAgaWYgKGxheWVySWQpIHtcbiAgICAgICAgICAgIC8vIGdldCBsYXllciBjb25maWd1cmF0aW9uIG9iamVjdFxuICAgICAgICAgICAgdmFyIGxheWVyQ29uZiA9IHRoaXMuZ2V0TGF5ZXJDb25mKGxheWVySWQpO1xuICAgICAgICAgICAgcGFyYW1zLnByb2plY3Rpb24gPSBsYXllckNvbmYuZGVmYXVsdFByb2plY3Rpb247XG4gICAgICAgICAgICBwYXJhbXMubWluU2NhbGUgPSBsYXllckNvbmYuZ2xvYmFsQ29uc3RyYWludC5taW5TY2FsZURlbm9taW5hdG9yO1xuICAgICAgICAgICAgcGFyYW1zLm1heFNjYWxlID0gbGF5ZXJDb25mLmdsb2JhbENvbnN0cmFpbnQubWF4U2NhbGVEZW5vbWluYXRvcjtcbiAgICAgICAgICAgIHBhcmFtcy5leHRlbnQgPSBsYXllckNvbmYuZ2xvYmFsQ29uc3RyYWludC5iYm94O1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHBhcmFtcztcbiAgICB9XG5cbn07XG5cbmV4cG9ydCBkZWZhdWx0IENvbmZpZ0ludGVyZmFjZTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Services/Config/ConfigInterface.js\n"); + +/***/ }), + +/***/ "./src/Services/DefaultUrlService.js": +/*!*******************************************!*\ + !*** ./src/Services/DefaultUrlService.js ***! + \*******************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n// cette classe contient les URLs par defaut des services.\n// DefaultUrlService.Alti.url(key)[elevation-json]\n// DefaultUrlService.Alti.url(key)[elevation-xml]\n// DefaultUrlService.Alti.url(key)[profil-json]\n// DefaultUrlService.Alti.url(key)[profil-xml]\n// DefaultUrlService.ProcessIsoCurve.url(key)\n// DefaultUrlService.AutoComplete.url(key)\n// DefaultUrlService.ReverseGeocode.url(key)\n// DefaultUrlService.Geocode.url(key)\n// DefaultUrlService.Route.url(key)\n\n// Example :\n//\n// DefaultUrlService.Alti.url('alti')[elevation-json]\n// output {String} -> http://wxs.ign.fr/calcul/alti/rest/elevation.json\n//\n// DefaultUrlService.Alti.url('calcul')\n// output {Object|String}\n// -> http://wxs.ign.fr/calcul/alti/rest/elevation.json\n// -> http://wxs.ign.fr/calcul/alti/rest/elevation.xml\n// -> http://wxs.ign.fr/calcul/alti/rest/elevationLine.json\n// -> http://wxs.ign.fr/calcul/alti/rest/elevationLine.xml\n//\n// ssl by default.\n//\n// Force to not do ssl :\n// DefaultUrlService.ssl = false;\n//\n// DefaultUrlService.AutoComplete.url('calcul')\n// output {Object|String}\n// -> https://wxs.ign.fr/calcul/ols/apis/completion\n\n/**\n * Default Geoportal web services URLs access.\n *\n * @namespace\n * @alias Gp.Services.DefaultUrl\n */\nvar DefaultUrlService = {\n /** if set true, require the use of https protocol */\n ssl: true,\n /**\n * base new-url of geoplateforme services (ssl protocol management)\n * @param {String} path - path\n * @returns {String} url\n */\n newUrl: function newUrl(path) {\n var NEW_GPF_HOSTNAME = \"data.geopf.fr\";\n\n // comportement par défaut => https\n // sinon, il est fixé par l'option 'ssl' (false => http)\n var _protocol;\n if (DefaultUrlService.ssl === false) {\n _protocol = \"http://\";\n } else {\n _protocol = \"https://\";\n }\n return _protocol + NEW_GPF_HOSTNAME + path;\n },\n /**\n * Elevation web service access\n *\n * @member {Object}\n * @property {Function} url (key) - Returns elevation service default urls with or without geoportal access key given as a parameter. The result is a javascript object with different urls given used protocols (\"elevation-json\", \"elevation-xml\", \"profil-json\" or \"profil-xml\").\n */\n Alti: {\n new_key: {\n // rest\n \"elevation-json\": \"/altimetrie/1.0/calcul/alti/rest/elevation.json\",\n \"elevation-xml\": \"/altimetrie/1.0/calcul/alti/rest/elevation.xml\",\n \"profil-json\": \"/altimetrie/1.0/calcul/alti/rest/elevationLine.json\",\n \"profil-xml\": \"/altimetrie/1.0/calcul/alti/rest/elevationLine.xml\"\n },\n /**\n * newurl from geoplateforme service\n * @param {String} key - key\n * @returns {String} url\n */\n newUrl: function newUrl() {\n return {\n // rest\n \"elevation-json\": DefaultUrlService.newUrl(this.new_key[\"elevation-json\"]),\n \"elevation-xml\": DefaultUrlService.newUrl(this.new_key[\"elevation-xml\"]),\n \"profil-json\": DefaultUrlService.newUrl(this.new_key[\"profil-json\"]),\n \"profil-xml\": DefaultUrlService.newUrl(this.new_key[\"profil-xml\"])\n };\n }\n },\n /**\n * IsoCurve web service access\n *\n * @member {Object}\n * @property {Function} url (key) - Returns isocurve service default urls with or without geoportal access key given as a parameter. The result is a javascript object with different urls given used protocols (\"iso-json\" or \"iso-xml\").\n */\n ProcessIsoCurve: {\n new_key: \"/navigation/isochrone\",\n /**\n * url from geoplateforme service\n * @returns {String} url\n */\n newUrl: function newUrl() {\n return DefaultUrlService.newUrl(this.new_key);\n }\n },\n /**\n * Config web service access\n *\n * @member {Object}\n * @property {Function} url (key) - Returns config service default urls with or without geoportal access key given as a parameter.\n */\n Config: {\n _key: \"https://raw.githubusercontent.com/IGNF/geoportal-configuration/new-url/dist/\",\n /**\n * url\n * @param {String} key - key\n * @returns {String} url\n */\n url: function url(key) {\n // key must be an array of one or several keys\n if (!Array.isArray(key)) {\n key = key.split(\",\");\n }\n // not homogeneous with others geoportal services URLs\n var url = [];\n for (var i = 0; i < key.length; i++) {\n url[i] = this._key + key[i] + \"Config.json\";\n }\n return url;\n }\n },\n /**\n * Autocompletion web service access\n *\n * @member {Object}\n * @property {Function} url (key) - Returns autocomplete service default urls with or without geoportal access key given as a parameter. The result is a String.\n */\n AutoComplete: {\n new_key: \"/geocodage/completion\",\n /**\n * url from geoplateforme service\n * @returns {String} url\n */\n newUrl: function newUrl() {\n return DefaultUrlService.newUrl(this.new_key);\n }\n },\n /**\n * Reverse geocoding web service access\n *\n * @member {Object}\n * @property {Function} url (key) - Returns reverse geocoding service default urls with or without geoportal access key given as a parameter. The result is a String.\n */\n ReverseGeocode: {\n new_key: \"/geocodage/reverse\",\n /**\n * url from geoplateforme service\n * @returns {String} url\n */\n newUrl: function newUrl() {\n return DefaultUrlService.newUrl(this.new_key);\n }\n },\n /**\n * Geocoding web service access\n *\n * @member {Object}\n * @property {Function} url (key) - Returns geocoding service default urls with or without geoportal access key given as a parameter. The result is a String.\n */\n Geocode: {\n new_key: \"/geocodage/search\",\n /**\n * url from geoplateforme service\n * @returns {String} url\n */\n newUrl: function newUrl() {\n return DefaultUrlService.newUrl(this.new_key);\n }\n },\n /**\n * Routing web service access\n *\n * @member {Object}\n * @property {Function} url (key) - Returns routing service default urls with or without geoportal access key given as a parameter. The result is a javascript object with different urls given used protocols.\n */\n Route: {\n new_key: \"/navigation/itineraire\",\n /**\n * url from geoplateforme service\n * @returns {String} url\n */\n newUrl: function newUrl() {\n return DefaultUrlService.newUrl(this.new_key);\n }\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (DefaultUrlService);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9EZWZhdWx0VXJsU2VydmljZS5qcz8zYTBkIl0sIm5hbWVzIjpbIkRlZmF1bHRVcmxTZXJ2aWNlIiwic3NsIiwibmV3VXJsIiwicGF0aCIsIk5FV19HUEZfSE9TVE5BTUUiLCJfcHJvdG9jb2wiLCJBbHRpIiwibmV3X2tleSIsIlByb2Nlc3NJc29DdXJ2ZSIsIkNvbmZpZyIsIl9rZXkiLCJ1cmwiLCJrZXkiLCJBcnJheSIsImlzQXJyYXkiLCJzcGxpdCIsImkiLCJsZW5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yaW5nfSB1cmxcbiAgICAgICAgKi9cbiAgICAgICAgbmV3VXJsIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgcmV0dXJuIERlZmF1bHRVcmxTZXJ2aWNlLm5ld1VybCh0aGlzLm5ld19rZXkpO1xuICAgICAgICB9XG4gICAgfVxufTtcblxuZXhwb3J0IGRlZmF1bHQgRGVmYXVsdFVybFNlcnZpY2U7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Services/DefaultUrlService.js\n"); + +/***/ }), + +/***/ "./src/Services/Geocode/Formats/GeocodeResponseParser.js": +/*!***************************************************************!*\ + !*** ./src/Services/Geocode/Formats/GeocodeResponseParser.js ***! + \***************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Exceptions/ErrorService */ \"./src/Exceptions/ErrorService.js\");\n/* harmony import */ var _Response_model_GeocodeResponse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Response/model/GeocodeResponse */ \"./src/Services/Geocode/Response/model/GeocodeResponse.js\");\n/* harmony import */ var _Response_model_GeocodedLocation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Response/model/GeocodedLocation */ \"./src/Services/Geocode/Response/model/GeocodedLocation.js\");\n// import Logger from \"../../../Utils/LoggerByDefault\";\n\n\n\n\n\n/**\n * Fonction retournant un objet contenant des clés de lecture (readers)\n * qui permettent de parser des réponses XML du service de géocodage direct du Géoportail\n * afin de récupérer les résultats retournés.\n * @module GeocodeResponseParser\n * @alias Gp.Services.Geocode.Formats.GeocodeResponseParser\n * @private\n */\n\n/**\n * @classdesc\n *\n * Classe permettant de parser une réponse GeoJSON\n *\n * @constructor\n * @alias Gp.Formats.GeocodeResponseParser\n *\n * @private\n */\nfunction GeocodeResponseParser() {\n if (!(this instanceof GeocodeResponseParser)) {\n throw new TypeError(\"GeocodeResponseParser constructor cannot be called as a function.\");\n }\n}\nGeocodeResponseParser.prototype = {\n /**\n * @lends module:GeocodeResponseParser\n */\n\n /*\n * Constructeur (alias)\n */\n constructor: GeocodeResponseParser,\n /**\n * Méthode permettant de lancer la lecture d'une réponse GeoJSON,\n *\n * @param {String} json - réponse au format GeoJSON\n * @return {Object} geocodeResponse|exceptionReport : l'objet contenant les informations de la réponse GeoJSON,\n * sous la forme d'un objet GeocodeResponse, ou un objet littéral exceptionReport si le service a renvoyé une exception.\n */\n parse: function parse(json) {\n var geocodeResponse = new _Response_model_GeocodeResponse__WEBPACK_IMPORTED_MODULE_2__[\"default\"]();\n var obj = JSON.parse(json);\n if (obj.type === \"FeatureCollection\") {\n for (var i = 0; i < obj.features.length; ++i) {\n _parseFeature(obj.features[i], geocodeResponse);\n }\n } else if (obj.type === \"Feature\") {\n _parseFeature(obj, geocodeResponse);\n } else if (obj.type === \"SERVICE_ERROR\") {\n return _parseError(obj);\n } else {\n var mess = _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getMessage(\"SERVICE_RESPONSE_ANALYSE\", obj.type);\n throw new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_1__[\"default\"]({\n message: mess,\n type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_1__[\"default\"].TYPE_UNKERR,\n status: 200\n });\n }\n return geocodeResponse;\n }\n};\n\n/**\n * Méthode permettant de parser un feature\n *\n * @private\n *\n * @param {Object} feature\n * @param {Object} geocodeResponse\n *\n * @memberof GeocodeResponseParser\n * @return {Object} objet GeocodedLocation\n */\nfunction _parseFeature(feature, geocodeResponse) {\n var location = new _Response_model_GeocodedLocation__WEBPACK_IMPORTED_MODULE_3__[\"default\"]();\n if (feature.geometry && feature.geometry.type === \"Point\") {\n location.position = {\n lon: feature.geometry.coordinates[0],\n lat: feature.geometry.coordinates[1]\n };\n }\n if (feature.properties) {\n for (var prop in feature.properties) {\n if (prop === \"score\") {\n location.accuracy = feature.properties[prop];\n } else if (prop === \"_type\") {\n if (feature.properties[prop] === \"address\") {\n location.type = \"StreetAddress\";\n } else if (feature.properties[prop] === \"poi\") {\n location.type = \"PositionOfInterest\";\n } else if (feature.properties[prop] === \"parcel\" || feature.properties[prop] === \"cadastral\") {\n location.type = \"CadastralParcel\";\n }\n } else {\n location.placeAttributes[prop] = feature.properties[prop];\n }\n }\n if (feature.properties._type === \"address\") {\n location.matchType = feature.properties.number !== undefined && feature.properties.number !== null ? \"street number\" : \"street\";\n }\n }\n geocodeResponse.locations.push(location);\n}\n\n/**\n * Méthode permettant de parser une erreur\n *\n * @private\n *\n * @param {Object} error\n *\n * @memberof GeocodeResponseParser\n * @return {Object}\n */\nfunction _parseError(error) {\n return {\n exceptionReport: error\n };\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (GeocodeResponseParser);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9HZW9jb2RlL0Zvcm1hdHMvR2VvY29kZVJlc3BvbnNlUGFyc2VyLmpzPzJlNDUiXSwibmFtZXMiOlsiR2VvY29kZVJlc3BvbnNlUGFyc2VyIiwiVHlwZUVycm9yIiwicHJvdG90eXBlIiwiY29uc3RydWN0b3IiLCJwYXJzZSIsImpzb24iLCJnZW9jb2RlUmVzcG9uc2UiLCJHZW9jb2RlUmVzcG9uc2UiLCJvYmoiLCJKU09OIiwidHlwZSIsImkiLCJmZWF0dXJlcyIsImxlbmd0aCIsIl9wYXJzZUZlYXR1cmUiLCJfcGFyc2VFcnJvciIsIm1lc3MiLCJNUiIsImdldE1lc3NhZ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AgICByZXR1cm4ge1xuICAgICAgICBleGNlcHRpb25SZXBvcnQgOiBlcnJvclxuICAgIH07XG59XG5cbmV4cG9ydCBkZWZhdWx0IEdlb2NvZGVSZXNwb25zZVBhcnNlcjtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Services/Geocode/Formats/GeocodeResponseParser.js\n"); + +/***/ }), + +/***/ "./src/Services/Geocode/Geocode.js": +/*!*****************************************!*\ + !*** ./src/Services/Geocode/Geocode.js ***! + \*****************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Exceptions/ErrorService */ \"./src/Exceptions/ErrorService.js\");\n/* harmony import */ var _CommonService__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../CommonService */ \"./src/Services/CommonService.js\");\n/* harmony import */ var _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../DefaultUrlService */ \"./src/Services/DefaultUrlService.js\");\n/* harmony import */ var _Request_GeocodeRequestFactory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Request/GeocodeRequestFactory */ \"./src/Services/Geocode/Request/GeocodeRequestFactory.js\");\n/* harmony import */ var _Response_GeocodeResponseFactory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Response/GeocodeResponseFactory */ \"./src/Services/Geocode/Response/GeocodeResponseFactory.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n\n\n\n\n\n\n\n\n/**\n * @classdesc\n * Appel du service de géocodage direct du Géoportail :\n * envoi de la requête construite selon les paramètres en options,\n * éventuellement parsing et analyse de la réponse,\n * retour d'une réponse en paramètre de la fonction onSuccess.\n *\n *\n * @constructor\n * @extends {Gp.Services.CommonService}\n * @alias Gp.Services.Geocode\n *\n * @param {Object} options - options spécifiques au service (+ les options heritées)\n *\n * @param {String|Object} options.query - Nom de l'adresse, du toponyme, de l'unité administrative ou de la parcelle cadastrale recherchée.\n *\n * @param {Object} [options.filters] - Les propriétés possibles de cet objet sont décrites ci-après.\n * @param {String} [options.filters.[prop]] - Critère supplémentaire pour filtrer la recherche sous la forme\n * d'un couple clé/valeur à définir selon les possibilités du serveur ajouté à la requête.\n * Le service de géocodage du Géoportail permet de filtrer les adresses postales avec les propriétés :\n * \"postalCode\", \"inseeCode\", \"city\".\n * Il permet également de filtrer les toponymes avec les propriétés :\n * \"postalCode\", \"inseeCode\", \"type\".\n * Enfin, il permet de filtrer les parcelles cadastrales avec les propriétés :\n * \"codeDepartement\", \"codeCommune\", \"nomCommune\", \"codeCommuneAbs\", \"codeArrondissement\", \"section\", \"numero\", \"feuille\".\n *\n * @param {String} [options.index = \"StreetAddress\"] - Type de l'objet recherché.\n * Le service de géocodage du Géoportail permet de rechercher des 'PositionOfInterest' pour des toponymes, des 'StreetAddress'\n * pour des adresses postales ou des 'CadastralParcel' pour des parcelles cadastrales.\n * L'index 'location' regroupe les indexes 'StreetAddress' et 'PositionOfInterest'.\n * D'autres types pourront être rajoutés selon l'évolution du service.\n * Par défaut, index = 'StreetAddress'.\n *\n * @param {Object} options.position - Position du point de référence pour le calcul de proximité exprimée dans le système de référence spécifié par le srs.\n * @param {Float} options.position.lon - Longitude du point de référence pour le calcul de proximité.\n * @param {Float} options.position.lat - Latitude du point de référence pour le calcul de proximité.\n *\n * @param {Number} [options.maximumResponses] - Nombre de réponses maximal que l'on souhaite recevoir.\n * Pas de valeur par défaut.\n * Si le serveur consulté est celui du Géoportail, la valeur par défaut sera donc celle du service : 20.\n *\n * @param {Boolean} [options.returnTrueGeometry = false] - Booléen indiquant si l'on souhaite récupérer la géométrie vraie des objects géolocalisés.\n * false par défaut.\n *\n *\n * @example\n * var options = {\n * apiKey : null,\n * serverUrl : 'http://localhost/service/',\n * proxyURL : null,\n * timeOut : 10000, // ms\n * rawResponse : false, // true|false\n * scope : null, // this\n * onSuccess : function (response) {},\n * onFailure : function (error) {},\n * // spécifique au service\n * position : {lon:, lat:},\n * index : 'StreetAddress',\n * query : '10 rue du pont Machin-ville'\n * (...)\n * };\n */\nfunction Geocode(options_) {\n if (!(this instanceof Geocode)) {\n throw new TypeError(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"CLASS_CONSTRUCTOR\", \"Geocode\"));\n }\n\n /**\n * Nom de la classe (heritage)\n * FIXME instance ou classe ?\n */\n this.CLASSNAME = \"Geocode\";\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"Gp.Services.Geocode\");\n this.logger.trace(\"[Constructeur Geocode (options)]\");\n var options = this.patchOptionConvertor(options_);\n if (!options.serverUrl) {\n options.serverUrl = _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Geocode.newUrl();\n }\n\n // appel du constructeur par heritage\n _CommonService__WEBPACK_IMPORTED_MODULE_3__[\"default\"].apply(this, [options]);\n if (!options.hasOwnProperty(\"query\")) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_MISSING\", \"query\"));\n }\n\n // ajout des options spécifiques au service\n this.options.query = options.query;\n\n // on definit l'index par defaut\n if (!options.index) {\n this.options.index = options.index = \"StreetAddress\";\n }\n if (options.filters) {\n var filter = Object.keys(options.filters);\n for (var i = 0; i < filter.length; i++) {\n var key = filter[i];\n // on supprime les filtres vides\n if (typeof options.filters[key] === \"undefined\" || _typeof(options.filters[key]) === \"object\" && Object.keys(options.filters[key]).length === 0 || typeof options.filters[key] === \"string\" && options.filters[key].length === 0 || Array.isArray(options.filters[key]) && options.filters[key].length === 0) {\n delete this.options.filters[key];\n }\n }\n }\n this.options.index = options.index || \"StreetAddress\";\n this.options.maximumResponses = options.maximumResponses || 20;\n}\n\n/**\n * @lends module:Geocode#\n */\nGeocode.prototype = Object.create(_CommonService__WEBPACK_IMPORTED_MODULE_3__[\"default\"].prototype, {\n // todo\n // getter/setter\n});\n\n/*\n * Constructeur (alias)\n */\nGeocode.prototype.constructor = Geocode;\n\n/**\n * Patch pour la convertion des options vers le nouveau formalisme.\n *\n * @param {Object} options_ - options du service\n * @return {Object} - options\n */\nGeocode.prototype.patchOptionConvertor = function (options_) {\n var options = options_;\n if (options.hasOwnProperty(\"location\")) {\n this.logger.warn(\"The parameter 'location' is deprecated\");\n if (!options.query) {\n options.query = options.location;\n }\n delete options.location;\n }\n if (options.filterOptions) {\n this.logger.warn(\"The parameter 'filterOptions' is deprecated\");\n if (!options.filters) {\n options.filters = options.filterOptions;\n if (options.filters.type) {\n this.logger.warn(\"The parameter 'filterOptions.type' is deprecated\");\n if (!options.index) {\n if (Array.isArray(options.filters.type) && options.filters.type.length > 0) {\n options.index = options.filters.type[0];\n } else {\n options.index = options.filters.type;\n }\n }\n delete options.filters.type;\n }\n if (options.filters.bbox) {\n this.logger.warn(\"The parameter 'filterOptions.bbox' is deprecated\");\n delete options.filters.bbox;\n }\n }\n delete options.filterOptions;\n }\n if (options.position) {\n if (options.position.x) {\n this.logger.warn(\"The parameter 'position.x' is deprecated\");\n if (!options.position.lon) {\n options.position.lon = options.position.x;\n }\n delete options.position.x;\n }\n if (options.position.y) {\n this.logger.warn(\"The parameter 'position.y' is deprecated\");\n if (!options.position.lat) {\n options.position.lat = options.position.y;\n }\n delete options.position.y;\n }\n }\n if (options.returnFreeForm) {\n this.logger.warn(\"The parameter 'returnFreeForm' is deprecated\");\n delete options.returnFreeForm;\n }\n if (options.srs) {\n this.logger.warn(\"The parameter 'srs' is deprecated\");\n delete options.srs;\n }\n return options;\n};\n\n/**\n * Création de la requête (overwrite)\n *\n * @param {Function} error - callback des erreurs\n * @param {Function} success - callback\n */\nGeocode.prototype.buildRequest = function (error, success) {\n var options = {\n httpMethod: this.options.httpMethod,\n // options specifiques du service\n geocodeMethod: \"search\",\n query: this.options.query,\n index: this.options.index,\n returnTrueGeometry: this.options.returnTrueGeometry,\n position: this.options.position,\n maxResp: this.options.maximumResponses,\n filters: this.options.filters\n };\n this.request = _Request_GeocodeRequestFactory__WEBPACK_IMPORTED_MODULE_5__[\"default\"].build(options);\n\n // on teste si la requete a bien été construite !\n !this.request ? error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_REQUEST_BUILD\"))) : success.call(this, this.request);\n};\n\n/**\n * Analyse de la reponse (overwrite)\n *\n * @param {Function} error - callback des erreurs\n * @param {Function} success - callback\n */\nGeocode.prototype.analyzeResponse = function (error, success) {\n /* INFO :\n Etape 1 : Création de la requête (URL)\n -> stockage de la requête dans this.request\n Etape 2 : Envoi de la requête\n -> appel du protocol XHR, et envoi (par ex send ())\n -> récupération de la réponse JSON dans la fonction onSuccess () (this.response)\n -> si code HTTP 200 et pas de message d'erreur : etape 3\n -> si code HTTP != 200 : lancement de la fonction de callback onFailure avec le message d'erreur\n Etape 3 : Analyse de la réponse JSON (si rawResponse === false )\n -> appel du parser pour récupérer le document\n Etape 4 : Lancement de la fonction de callback onSuccess avec la réponse :\n -> JSON (si rawResponse === true)\n -> ou geocodedLocations\n */\n\n if (this.response) {\n var options = {\n response: this.response,\n rawResponse: this.options.rawResponse,\n onError: error,\n onSuccess: success,\n scope: this\n };\n _Response_GeocodeResponseFactory__WEBPACK_IMPORTED_MODULE_6__[\"default\"].build(options);\n } else {\n error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EMPTY\")));\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Geocode);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9HZW9jb2RlL0dlb2NvZGUuanM/NGZjNyJdLCJuYW1lcyI6WyJHZW9jb2RlIiwib3B0aW9uc18iLCJUeXBlRXJyb3IiLCJfIiwiZ2V0TWVzc2FnZSIsIkNMQVNTTkFNRSIsImxvZ2dlciIsIkxvZ2dlciIsImdldExvZ2dlciIsInRyYWNlIiwib3B0aW9ucyIsInBhdGNoT3B0aW9uQ29udmVydG9yIiwic2VydmVyVXJsIiwiRGVmYXVsdFVybFNlcnZpY2UiLCJuZXdVcmwiLCJDb21tb25TZXJ2aWNlIiwiYXBwbHkiLCJoYXNPd25Qcm9wZXJ0eSIsIkVycm9yIiwicXVlcnkiLCJpbmRleCIsImZpbHRlcnMiLCJmaWx0ZXIiLCJPYmplY3QiLCJrZXlzIiwiaSIsImxlbmd0aCIsImtleSIsIl90eXBlb2YiLCJBcnJheSIsImlzQXJyYXkiLCJtYXhpbXVtUmVzcG9uc2VzIiwicHJvdG90eXBlIiwiY3JlYXRlIiwiY29uc3RydWN0b3IiLCJ3YXJuIiwibG9jYXRpb24iLCJmaWx0ZXJPcHRpb25zIiwidHlwZSIsImJib3giLCJwb3NpdGlvbiIsIngiLCJsb24iLCJ5IiwibGF0IiwicmV0dXJuRnJlZUZvcm0iLCJzcnMiLCJidWlsZFJlcXVlc3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eXBlLmxlbmd0aCA+IDApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG9wdGlvbnMuaW5kZXggPSBvcHRpb25zLmZpbHRlcnMudHlwZVswXTtcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG9wdGlvbnMuaW5kZXggPSBvcHRpb25zLmZpbHRlcnMudHlwZTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBkZWxldGUgb3B0aW9ucy5maWx0ZXJzLnR5cGU7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChvcHRpb25zLmZpbHRlcnMuYmJveCkge1xuICAgICAgICAgICAgICAgIHRoaXMubG9nZ2VyLndhcm4oXCJUaGUgcGFyYW1ldGVyICdmaWx0ZXJPcHRpb25zLmJib3gnIGlzIGRlcHJlY2F0ZWRcIik7XG4gICAgICAgICAgICAgICAgZGVsZXRlIG9wdGlvbnMuZmlsdGVycy5iYm94O1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGRlbGV0ZSBvcHRpb25zLmZpbHRlck9wdGlvbnM7XG4gICAgfVxuXG4gICAgaWYgKG9wdGlvbnMucG9zaXRpb24pIHtcbiAgICAgICAgaWYgKG9wdGlvbnMucG9zaXRpb24ueCkge1xuICAgICAgICAgICAgdGhpcy5sb2dnZXIud2FybihcIlRoZSBwYXJhbWV0ZXIgJ3Bvc2l0aW9uLngnIGlzIGRlcHJlY2F0ZWRcIik7XG5cbiAgICAgICAgICAgIGlmICghb3B0aW9ucy5wb3NpdGlvbi5sb24pIHtcbiAgICAgICAgICAgICAgICBvcHRpb25zLnBvc2l0aW9uLmxvbiA9IG9wdGlvbnMucG9zaXRpb24ueDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGRlbGV0ZSBvcHRpb25zLnBvc2l0aW9uLng7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAob3B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gICAgICAgLT4gSlNPTiAoc2kgcmF3UmVzcG9uc2UgPT09IHRydWUpXG4gICAgICAgICAgICAtPiBvdSBnZW9jb2RlZExvY2F0aW9uc1xuICAgICovXG5cbiAgICBpZiAodGhpcy5yZXNwb25zZSkge1xuICAgICAgICB2YXIgb3B0aW9ucyA9IHtcbiAgICAgICAgICAgIHJlc3BvbnNlIDogdGhpcy5yZXNwb25zZSxcbiAgICAgICAgICAgIHJhd1Jlc3BvbnNlIDogdGhpcy5vcHRpb25zLnJhd1Jlc3BvbnNlLFxuICAgICAgICAgICAgb25FcnJvciA6IGVycm9yLFxuICAgICAgICAgICAgb25TdWNjZXNzIDogc3VjY2VzcyxcbiAgICAgICAgICAgIHNjb3BlIDogdGhpc1xuICAgICAgICB9O1xuXG4gICAgICAgIEdlb2NvZGVSZXNwb25zZUZhY3RvcnkuYnVpbGQob3B0aW9ucyk7XG4gICAgfSBlbHNlIHtcbiAgICAgICAgZXJyb3IuY2FsbCh0aGlzLCBuZXcgRXJyb3JTZXJ2aWNlKF8uZ2V0TWVzc2FnZShcIlNFUlZJQ0VfUkVTUE9OU0VfRU1QVFlcIikpKTtcbiAgICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBHZW9jb2RlO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/Services/Geocode/Geocode.js\n"); + +/***/ }), + +/***/ "./src/Services/Geocode/Request/GeocodeRequestFactory.js": +/*!***************************************************************!*\ + !*** ./src/Services/Geocode/Request/GeocodeRequestFactory.js ***! + \***************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _GeocodeRequestREST__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GeocodeRequestREST */ \"./src/Services/Geocode/Request/GeocodeRequestREST.js\");\n\n\n\n/**\n * Creation d'une requête\n * (Factory)\n *\n * @module GeocodeRequestFactory\n * @alias Gp.Services.Geocode.Request.GeocodeRequestFactory\n * @private\n */\nvar GeocodeRequestFactory = {\n /**\n * interface unique\n *\n * @method build\n * @static\n * @param {Object} options - options definies dans le composant Geocode\n *\n * @example\n * var options = {\n * // options specifiques du service\n * geocodeMethod:\n * query:\n * filters:\n * maximumResponses:\n * };\n * var result = GeocodeRequestFactory.build(options);\n * if (!result) {\n * // error...\n * }\n * @returns {String} request\n */\n build: function build(options) {\n // logger\n var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"GeocodeRequestFactory\");\n logger.trace([\"GeocodeRequestFactory::build()\"]);\n var settings = options || {};\n var myReq = new _GeocodeRequestREST__WEBPACK_IMPORTED_MODULE_1__[\"default\"](settings);\n if (!myReq.processRequestString()) {\n throw new Error(\"Error process request (rest) !\");\n }\n var request = myReq.requestString;\n logger.trace(request);\n return request;\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GeocodeRequestFactory);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9HZW9jb2RlL1JlcXVlc3QvR2VvY29kZVJlcXVlc3RGYWN0b3J5LmpzPzQ1MzgiXSwibmFtZXMiOlsiR2VvY29kZVJlcXVlc3RGYWN0b3J5IiwiYnVpbGQiLCJvcHRpb25zIiwibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwidHJhY2UiLCJzZXR0aW5ncyIsIm15UmVxIiwiR2VvY29kZVJlcXVlc3RSRVNUIiwicHJvY2Vzc1JlcXVlc3RTdHJpbmciLCJFcnJvciIsInJlcXVlc3QiLCJyZXF1ZXN0U3Ry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luZ30gcmVxdWVzdFxuICAgICAqL1xuICAgIGJ1aWxkIDogZnVuY3Rpb24gKG9wdGlvbnMpIHtcbiAgICAgICAgLy8gbG9nZ2VyXG4gICAgICAgIHZhciBsb2dnZXIgPSBMb2dnZXIuZ2V0TG9nZ2VyKFwiR2VvY29kZVJlcXVlc3RGYWN0b3J5XCIpO1xuICAgICAgICBsb2dnZXIudHJhY2UoW1wiR2VvY29kZVJlcXVlc3RGYWN0b3J5OjpidWlsZCgpXCJdKTtcblxuICAgICAgICB2YXIgc2V0dGluZ3MgPSBvcHRpb25zIHx8IHt9O1xuXG4gICAgICAgIHZhciBteVJlcSA9IG5ldyBHZW9jb2RlUmVxdWVzdFJFU1Qoc2V0dGluZ3MpO1xuICAgICAgICBpZiAoIW15UmVxLnByb2Nlc3NSZXF1ZXN0U3RyaW5nKCkpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcIkVycm9yIHByb2Nlc3MgcmVxdWVzdCAocmVzdCkgIVwiKTtcbiAgICAgICAgfVxuICAgICAgICB2YXIgcmVxdWVzdCA9IG15UmVxLnJlcXVlc3RTdHJpbmc7XG5cbiAgICAgICAgbG9nZ2VyLnRyYWNlKHJlcXVlc3QpO1xuXG4gICAgICAgIHJldHVybiByZXF1ZXN0O1xuICAgIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IEdlb2NvZGVSZXF1ZXN0RmFjdG9yeTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Services/Geocode/Request/GeocodeRequestFactory.js\n"); + +/***/ }), + +/***/ "./src/Services/Geocode/Request/GeocodeRequestREST.js": +/*!************************************************************!*\ + !*** ./src/Services/Geocode/Request/GeocodeRequestREST.js ***! + \************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _model_GeocodeParamREST__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./model/GeocodeParamREST */ \"./src/Services/Geocode/Request/model/GeocodeParamREST.js\");\n\n\n\n\n/**\n * @classdesc\n * Classe de gestion des requêtes de type REST sur le service de calcul d'itineraire\n * (uniquement en GET)\n *\n * @constructor\n * @alias Gp.Services.Geocode.Request.GeocodeRequestREST\n * @param {Object} options - options definies dans le composant Route\n *\n * @example\n * var options = {\n * (...)\n * };\n *\n * @private\n */\nfunction GeocodeRequestREST(options) {\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"GeocodeRequestREST\");\n this.logger.trace(\"[Constructeur GeocodeRequestREST ()]\");\n if (!(this instanceof GeocodeRequestREST)) {\n throw new TypeError(\"GeocodeRequestREST constructor cannot be called as a function.\");\n }\n\n // existance des options\n if (!options) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_EMPTY\", \"options\"));\n }\n\n /** liste des options */\n this.settings = options;\n}\nGeocodeRequestREST.prototype = {\n /**\n * @lends module:GeocodeRequestREST#\n */\n\n /**\n * request\n * @type {String}\n */\n requestString: null,\n /**\n * Constructeur (alias)\n */\n constructor: GeocodeRequestREST,\n /**\n * Construction de la requête.\n *\n * @returns {String} request\n */\n processRequestString: function processRequestString() {\n var request = \"\";\n\n // Mapping des options avec le service de l'API REST\n var oParams = new _model_GeocodeParamREST__WEBPACK_IMPORTED_MODULE_2__[\"default\"](this.settings);\n var params = oParams.getParams();\n for (var i = 0; i < params.length; i++) {\n var o = params[i];\n if (request) {\n request += \"&\";\n }\n request += o.k + \"=\" + o.v;\n }\n if (!this.settings.geocodeMethod || this.settings.geocodeMethod !== \"search\" && this.settings.geocodeMethod !== \"reverse\") {\n throw new Error(\"Error geocodeMethod not valid\");\n }\n this.requestString = \"?\" + request;\n this.logger.trace(this.requestString);\n return this.requestString;\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GeocodeRequestREST);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9HZW9jb2RlL1JlcXVlc3QvR2VvY29kZVJlcXVlc3RSRVNULmpzP2Q1ZTciXSwibmFtZXMiOlsiR2VvY29kZVJlcXVlc3RSRVNUIiwib3B0aW9ucyIsImxvZ2dlciIsIkxvZ2dlciIsImdldExvZ2dlciIsInRyYWNlIiwiVHlwZUVycm9yIiwiRXJyb3IiLCJfIiwiZ2V0TWVzc2FnZSIsInNldHRpbmdzIiwicHJvdG90eXBlIiwicmVxdWVzdFN0cmluZyIsImNvbnN0cnVjdG9yIiwicHJvY2Vzc1JlcXVlc3RTdHJpbmciLCJyZXF1ZXN0Iiwib1BhcmFtcyIsIkdlb2NvZGVQYXJhbVJFU1QiLCJwYXJhbXMiLCJnZXRQYXJhbXMiLCJpIiwibGVuZ3RoIiwibyIsImsiLCJ2IiwiZ2VvY29kZU1ldGhvZCJdLCJtYXBwaW5ncyI6IkFBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBb0Q7QUFDSDtBQUNPOztBQUV4RDtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLFNBQVNBLGtCQUFrQkEsQ0FBRUMsT0FBTyxFQUFFO0VBQ2xDLElBQUksQ0FBQ0MsTUFBTSxHQUFHQyw4REFBTSxDQUFDQyxTQUFTLENBQUMsb0JBQW9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CF0aGlzLnNldHRpbmdzLmdlb2NvZGVNZXRob2QgfHwgKHRoaXMuc2V0dGluZ3MuZ2VvY29kZU1ldGhvZCAhPT0gXCJzZWFyY2hcIiAmJiB0aGlzLnNldHRpbmdzLmdlb2NvZGVNZXRob2QgIT09IFwicmV2ZXJzZVwiKSkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKFwiRXJyb3IgZ2VvY29kZU1ldGhvZCBub3QgdmFsaWRcIik7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLnJlcXVlc3RTdHJpbmcgPSBcIj9cIiArIHJlcXVlc3Q7XG4gICAgICAgIHRoaXMubG9nZ2VyLnRyYWNlKHRoaXMucmVxdWVzdFN0cmluZyk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXMucmVxdWVzdFN0cmluZztcbiAgICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBHZW9jb2RlUmVxdWVzdFJFU1Q7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Services/Geocode/Request/GeocodeRequestREST.js\n"); + +/***/ }), + +/***/ "./src/Services/Geocode/Request/model/GeocodeParamREST.js": +/*!****************************************************************!*\ + !*** ./src/Services/Geocode/Request/model/GeocodeParamREST.js ***! + \****************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n\n\n/**\n * @classdesc\n * Classe de gestion des param. des requêtes du service de calcul d'itineraire (REST).\n * Permet le mapping avec les options du service.\n * @constructor\n * @alias Gp.Services.Route.Request.RouteParamREST\n * @param {Object} options - options\n *\n * @private\n */\nfunction GeocodeParamREST(options) {\n if (!(this instanceof GeocodeParamREST)) {\n throw new TypeError(\"GeocodeParamREST constructor cannot be called as a function.\");\n }\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger();\n this.logger.trace(\"[Constructeur GeocodeParamREST ()]\");\n\n /**\n * Options en paramêtres du constructeur.\n */\n this.options = options || {};\n\n // methode de geocodage\n if (!this.options.geocodeMethod || this.options.geocodeMethod !== \"search\" && this.options.geocodeMethod !== \"reverse\") {\n throw new Error(\"Error geocodeMethod not valid\");\n }\n this.geocodeMethod = this.options.geocodeMethod;\n\n // mapping des options avec l'API REST\n this.query = typeof this.options !== \"undefined\" ? this.options.query : null;\n this.searchGeometry = this.options.searchGeometry || null;\n this.index = this.options.index || null;\n this.lon = this.options.position && this.options.position.lon ? this.options.position.lon : null;\n this.lat = this.options.position && this.options.position.lat ? this.options.position.lat : null;\n this.maxResp = this.options.maxResp || null;\n this.returnTrueGeometry = this.options.returnTrueGeometry || null;\n this.filters = this.options.filters || {};\n}\n\n/**\n * CLASSNAME\n */\nGeocodeParamREST.CLASSNAME = \"GeocodeParamREST\";\nGeocodeParamREST.prototype = {\n /**\n * @lends module:GeocodeParamREST#\n */\n\n /**\n * Constructeur (alias)\n */\n constructor: GeocodeParamREST,\n /**\n * Retourne les filtres\n * @returns {String} les filtres\n */\n getFilters: function getFilters() {\n var filters = {};\n for (var prop in this.filters) {\n if (this.filters.hasOwnProperty(prop)) {\n filters[prop] = this.filters[prop];\n }\n }\n return filters;\n },\n /**\n * Retourne l'index\n * @returns {String} l'index\n */\n getIndex: function getIndex() {\n if (this.index === undefined) {\n return null;\n }\n if (this.index === \"StreetAddress\") {\n return \"address\";\n } else if (this.index === \"CadastralParcel\") {\n return \"parcel\";\n } else if (this.index === \"PositionOfInterest\") {\n return \"poi\";\n } else if (this.index === \"location\") {\n return \"location\";\n }\n return this.index;\n },\n /**\n * Retourne la géométrie de recherche\n * @returns {String} la géométrie de recherche au format json\n */\n getSearchGeometry: function getSearchGeometry() {\n return JSON.stringify(this.searchGeometry);\n }\n};\n\n/**\n * Tableau de clefs/valeurs pour param.\n *\n * @returns {Array} liste de paramêtres\n */\nGeocodeParamREST.prototype.getParams = function () {\n var map = [];\n if (this.geocodeMethod === \"search\") {\n map.push({\n k: \"q\",\n v: this.query\n });\n }\n if (this.index) {\n map.push({\n k: \"index\",\n v: this.getIndex()\n });\n }\n if (this.geocodeMethod === \"reverse\" && this.searchGeometry) {\n map.push({\n k: \"searchgeom\",\n v: this.getSearchGeometry()\n });\n }\n if (this.lon && this.lat) {\n map.push({\n k: \"lon\",\n v: this.lon\n });\n map.push({\n k: \"lat\",\n v: this.lat\n });\n }\n if (this.maxResp) {\n map.push({\n k: \"limit\",\n v: this.maxResp\n });\n }\n if (this.returnTrueGeometry) {\n map.push({\n k: \"returntruegeometry\",\n v: this.returnTrueGeometry\n });\n }\n var filters = this.getFilters();\n for (var key in filters) {\n map.push({\n k: key,\n v: filters[key]\n });\n }\n return map;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GeocodeParamREST);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9HZW9jb2RlL1JlcXVlc3QvbW9kZWwvR2VvY29kZVBhcmFtUkVTVC5qcz83NDNiIl0sIm5hbWVzIjpbIkdlb2NvZGVQYXJhbVJFU1QiLCJvcHRpb25zIiwiVHlwZUVycm9yIiwibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwidHJhY2UiLCJnZW9jb2RlTWV0aG9kIiwiRXJyb3IiLCJxdWVyeSIsInNlYXJjaEdlb21ldHJ5IiwiaW5kZXgiLCJsb24iLCJwb3NpdGlvbiIsImxhdCIsIm1heFJlc3AiLCJyZXR1cm5UcnVlR2VvbWV0cnkiLCJmaWx0ZXJzIiwiQ0xBU1NOQU1FIiwicHJvdG90eXBlIiwiY29uc3RydWN0b3IiLCJnZXRGaWx0ZXJzIiwicHJvc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AgICAgICAgbWFwLnB1c2goe1xuICAgICAgICAgICAgayA6IFwicVwiLFxuICAgICAgICAgICAgdiA6IHRoaXMucXVlcnlcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgaWYgKHRoaXMuaW5kZXgpIHtcbiAgICAgICAgbWFwLnB1c2goe1xuICAgICAgICAgICAgayA6IFwiaW5kZXhcIixcbiAgICAgICAgICAgIHYgOiB0aGlzLmdldEluZGV4KClcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgaWYgKHRoaXMuZ2VvY29kZU1ldGhvZCA9PT0gXCJyZXZlcnNlXCIgJiYgdGhpcy5zZWFyY2hHZW9tZXRyeSkge1xuICAgICAgICBtYXAucHVzaCh7XG4gICAgICAgICAgICBrIDogXCJzZWFyY2hnZW9tXCIsXG4gICAgICAgICAgICB2IDogdGhpcy5nZXRTZWFyY2hHZW9tZXRyeSgpXG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIGlmICh0aGlzLmxvbiAmJiB0aGlzLmxhdCkge1xuICAgICAgICBtYXAucHVzaCh7XG4gICAgICAgICAgICBrIDogXCJsb25cIixcbiAgICAgICAgICAgIHYgOiB0aGlzLmxvblxuICAgICAgICB9KTtcbiAgICAgICAgbWFwLnB1c2goe1xuICAgICAgICAgICAgayA6IFwibGF0XCIsXG4gICAgICAgICAgICB2IDogdGhpcy5sYXRcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgaWYgKHRoaXMubWF4UmVzcCkge1xuICAgICAgICBtYXAucHVzaCh7XG4gICAgICAgICAgICBrIDogXCJsaW1pdFwiLFxuICAgICAgICAgICAgdiA6IHRoaXMubWF4UmVzcFxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBpZiAodGhpcy5yZXR1cm5UcnVlR2VvbWV0cnkpIHtcbiAgICAgICAgbWFwLnB1c2goe1xuICAgICAgICAgICAgayA6IFwicmV0dXJudHJ1ZWdlb21ldHJ5XCIsXG4gICAgICAgICAgICB2IDogdGhpcy5yZXR1cm5UcnVlR2VvbWV0cnlcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgY29uc3QgZmlsdGVycyA9IHRoaXMuZ2V0RmlsdGVycygpO1xuICAgIGZvciAodmFyIGtleSBpbiBmaWx0ZXJzKSB7XG4gICAgICAgIG1hcC5wdXNoKHtcbiAgICAgICAgICAgIGsgOiBrZXksXG4gICAgICAgICAgICB2IDogZmlsdGVyc1trZXldXG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHJldHVybiBtYXA7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBHZW9jb2RlUGFyYW1SRVNUO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/Services/Geocode/Request/model/GeocodeParamREST.js\n"); + +/***/ }), + +/***/ "./src/Services/Geocode/Response/GeocodeResponseFactory.js": +/*!*****************************************************************!*\ + !*** ./src/Services/Geocode/Response/GeocodeResponseFactory.js ***! + \*****************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Exceptions/ErrorService */ \"./src/Exceptions/ErrorService.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _Formats_GeocodeResponseParser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Formats/GeocodeResponseParser */ \"./src/Services/Geocode/Formats/GeocodeResponseParser.js\");\n/**\n * Factory pour générer une reponse JSON à partir d'un XML\n * (Factory)\n *\n * @module GeocodeResponseFactory\n * @alias Gp.Services.Geocode.Response.GeocodeResponseFactory\n * @private\n */\n// import Logger from \"../../../Utils/LoggerByDefault\";\n\n\n\nvar GeocodeReponseFactory = {\n /**\n * interface unique\n *\n * @method build\n * @static\n * @param {Object} options - options definies dans le composant Geocode\n *\n * @example\n * var options = {\n * response :\n * rawResponse :\n * scope :\n * onSuccess :\n * onError :\n * };\n *\n */\n build: function build(options) {\n // data de type GeocodeResponse\n var data = null;\n if (options.response) {\n if (options.rawResponse) {\n data = options.response;\n } else {\n try {\n var parser = new _Formats_GeocodeResponseParser__WEBPACK_IMPORTED_MODULE_2__[\"default\"]();\n data = parser.parse(options.response);\n if (!data) {\n throw new Error(\"L'analyse de la réponse du service !?\");\n }\n } catch (e) {\n var message = e.message;\n if (typeof options.response === \"string\") {\n message += \"('\" + options.response + \"')\";\n } else {\n message += \"('\" + options.response.documentElement.innerHTML + \"')\";\n }\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_0__[\"default\"]({\n message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_ANALYSE\", message),\n type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_0__[\"default\"].TYPE_UNKERR,\n status: -1\n }));\n return;\n }\n\n // Si la réponse contenait une exception renvoyée par le service\n if (data.exceptionReport) {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_0__[\"default\"]({\n message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EXCEPTION\", data.exceptionReport),\n type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_0__[\"default\"].TYPE_SRVERR,\n status: 200 // FIXME : 200 ?\n }));\n return;\n }\n }\n } else {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_0__[\"default\"]({\n message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EMPTY\"),\n type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_0__[\"default\"].TYPE_SRVERR,\n status: -1 // FIXME : status response\n }));\n return;\n }\n options.onSuccess.call(options.scope, data);\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GeocodeReponseFactory);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9HZW9jb2RlL1Jlc3BvbnNlL0dlb2NvZGVSZXNwb25zZUZhY3RvcnkuanM/MDJjOCJdLCJuYW1lcyI6WyJHZW9jb2RlUmVwb25zZUZhY3RvcnkiLCJidWlsZCIsIm9wdGlvbnMiLCJkYXRhIiwicmVzcG9uc2UiLCJyYXdSZXNwb25zZSIsInBhcnNlciIsIkdlb2NvZGVSZXNwb25zZVBhcnNlciIsInBhcnNlIiwiRXJyb3IiLCJlIiwibWVzc2FnZSIsImRvY3VtZW50RWxlbWVudCIsImlubmVySFRNTCIsIm9uRXJyb3IiLCJjYWxsIiwic2NvcGUiLCJFcnJvclNlcnZpY2UiLCJNUmVzIiwiZ2V0TWVzc2FnZSIsInR5cGUiLCJUWVBFX1VOS0VSUiIsInN0YXR1cyIsImV4Y2VwdGlvblJlcG9ydCIsIlRZUEVfU1JWRVJSIiwib25TdWNjZXNzIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUM0RDtBQUNSO0FBQ2lCO0FBRXJFLElBQUlBLHFCQUFxQixHQUFHO0VBRXhCO0FBQ0o7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7RUFDSUMsS0FBSyxFQUFHLFNBQVJBLEtBQUtBLENBQWFDLE9BQU8sRUFBRTtJQUN2QjtJQUNBLElBQUlDLElBQUksR0F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jdGlvbiAob3B0aW9ucykge1xuICAgICAgICAvLyBkYXRhIGRlIHR5cGUgR2VvY29kZVJlc3BvbnNlXG4gICAgICAgIHZhciBkYXRhID0gbnVsbDtcblxuICAgICAgICBpZiAob3B0aW9ucy5yZXNwb25zZSkge1xuICAgICAgICAgICAgaWYgKG9wdGlvbnMucmF3UmVzcG9uc2UpIHtcbiAgICAgICAgICAgICAgICBkYXRhID0gb3B0aW9ucy5yZXNwb25zZTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgcGFyc2VyID0gbmV3IEdlb2NvZGVSZXNwb25zZVBhcnNlcigpO1xuICAgICAgICAgICAgICAgICAgICBkYXRhID0gcGFyc2VyLnBhcnNlKG9wdGlvbnMucmVzcG9uc2UpO1xuXG4gICAgICAgICAgICAgICAgICAgIGlmICghZGF0YSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKFwiTCdhbmFseXNlIGRlIGxhIHLDqXBvbnNlIGR1IHNlcnZpY2UgIT9cIik7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgICAgICAgICAgICAgIHZhciBtZXNzYWdlID0gZS5tZXNzYWdlO1xuICAgICAgICAgICAgICAgICAgICBpZiAodHlwZW9mIG9wdGlvbnMucmVzcG9uc2UgPT09IFwic3RyaW5nXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG1lc3NhZ2UgKz0gXCIoJ1wiICsgb3B0aW9ucy5yZXNwb25zZSArIFwiJylcIjtcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG1lc3NhZ2UgKz0gXCIoJ1wiICsgb3B0aW9ucy5yZXNwb25zZS5kb2N1bWVudEVsZW1lbnQuaW5uZXJIVE1MICsgXCInKVwiO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIG9wdGlvbnMub25FcnJvci5jYWxsKG9wdGlvbnMuc2NvcGUsIG5ldyBFcnJvclNlcnZpY2Uoe1xuICAgICAgICAgICAgICAgICAgICAgICAgbWVzc2FnZSA6IE1SZXMuZ2V0TWVzc2FnZShcIlNFUlZJQ0VfUkVTUE9OU0VfQU5BTFlTRVwiLCBtZXNzYWdlKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGUgOiBFcnJvclNlcnZpY2UuVFlQRV9VTktFUlIsXG4gICAgICAgICAgICAgICAgICAgICAgICBzdGF0dXMgOiAtMVxuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAvLyBTaSBsYSByw6lwb25zZSBjb250ZW5haXQgdW5lIGV4Y2VwdGlvbiByZW52b3nDqWUgcGFyIGxlIHNlcnZpY2VcbiAgICAgICAgICAgICAgICBpZiAoZGF0YS5leGNlcHRpb25SZXBvcnQpIHtcbiAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5vbkVycm9yLmNhbGwob3B0aW9ucy5zY29wZSwgbmV3IEVycm9yU2VydmljZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICBtZXNzYWdlIDogTVJlcy5nZXRNZXNzYWdlKFwiU0VSVklDRV9SRVNQT05TRV9FWENFUFRJT05cIiwgZGF0YS5leGNlcHRpb25SZXBvcnQpLFxuICAgICAgICAgICAgICAgICAgICAgICAgdHlwZSA6IEVycm9yU2VydmljZS5UWVBFX1NSVkVSUixcbiAgICAgICAgICAgICAgICAgICAgICAgIHN0YXR1cyA6IDIwMCAvLyBGSVhNRSA6IDIwMCA/XG4gICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIG9wdGlvbnMub25FcnJvci5jYWxsKG9wdGlvbnMuc2NvcGUsIG5ldyBFcnJvclNlcnZpY2Uoe1xuICAgICAgICAgICAgICAgIG1lc3NhZ2UgOiBNUmVzLmdldE1lc3NhZ2UoXCJTRVJWSUNFX1JFU1BPTlNFX0VNUFRZXCIpLFxuICAgICAgICAgICAgICAgIHR5cGUgOiBFcnJvclNlcnZpY2UuVFlQRV9TUlZFUlIsXG4gICAgICAgICAgICAgICAgc3RhdHVzIDogLTEgLy8gRklYTUUgOiBzdGF0dXMgcmVzcG9uc2VcbiAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIG9wdGlvbnMub25TdWNjZXNzLmNhbGwob3B0aW9ucy5zY29wZSwgZGF0YSk7XG4gICAgfVxufTtcblxuZXhwb3J0IGRlZmF1bHQgR2VvY29kZVJlcG9uc2VGYWN0b3J5O1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/Services/Geocode/Response/GeocodeResponseFactory.js\n"); + +/***/ }), + +/***/ "./src/Services/Geocode/Response/model/GeocodeResponse.js": +/*!****************************************************************!*\ + !*** ./src/Services/Geocode/Response/model/GeocodeResponse.js ***! + \****************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Response object for {@link module:Services~geocode Gp.Services.geocode ()} or {@link module:Services~reverseGeocode Gp.Services.reverseGeocode ()} invocation when successful. Received as the argument of onSuccess callback function.\n *\n * @property {Array.} locations - locations array.\n *\n * @namespace\n * @alias Gp.Services.GeocodeResponse\n */\nfunction GeocodeResponse() {\n if (!(this instanceof GeocodeResponse)) {\n throw new TypeError(\"GeocodeResponse constructor cannot be called as a function.\");\n }\n this.locations = [];\n}\nGeocodeResponse.prototype = {\n constructor: GeocodeResponse\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GeocodeResponse);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9HZW9jb2RlL1Jlc3BvbnNlL21vZGVsL0dlb2NvZGVSZXNwb25zZS5qcz81OTdkIl0sIm5hbWVzIjpbIkdlb2NvZGVSZXNwb25zZSIsIlR5cGVFcnJvciIsImxvY2F0aW9ucyIsInByb3RvdHlwZSIsImNvbnN0cnVjdG9yIl0sIm1hcHBpbmdzIjoiQUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxTQUFTQSxlQUFlQSxDQUFBLEVBQUk7RUFDeEIsSUFBSSxFQUFFLElBQUksWUFBWUEsZUFBZSxDQUFDLEVBQUU7SUFDcEMsTUFBTSxJQUFJQyxTQUFTLENBQUMsNkRBQTZELENBQUM7RUFDdEY7RUFFQSxJQUFJLENBQUNDLFNBQVMsR0FBRyxFQUFFO0FBQ3ZCO0FBRUFGLGVBQWUsQ0FBQ0csU0FBUyxHQUFHO0VBRXhCQyxXQUFXLEVBQUdKO0FBRWxCLENBQUM7QUFFY0EsOEVBQWUiLCJmaWxlIjoiLi9zcmMvU2VydmljZXMvR2VvY29kZS9SZXNwb25zZS9tb2RlbC9HZW9jb2RlUmVzcG9uc2UuanMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJcbi8qKlxuICogUmVzcG9uc2Ugb2JqZWN0IGZvciB7QGxpbmsgbW9kdWxlOlNlcnZpY2Vzfmdlb2NvZGUgR3AuU2VydmljZXMuZ2VvY29kZSAoKX0gb3Ige0BsaW5rIG1vZHVsZTpTZXJ2aWNlc35yZXZlcnNlR2VvY29kZSBHcC5TZXJ2aWNlcy5yZXZlcnNlR2VvY29kZSAoKX0gaW52b2NhdGlvbiB3aGVuIHN1Y2Nlc3NmdWwuIFJlY2VpdmVkIGFzIHRoZSBhcmd1bWVudCBvZiBvblN1Y2Nlc3MgY2FsbGJhY2sgZnVuY3Rpb24uXG4gKlxuICogQHByb3BlcnR5IHtBcnJheS48R3AuU2VydmljZXMuR2VvY29kZS5HZW9jb2RlZExvY2F0aW9uPn0gbG9jYXRpb25zIC0gbG9jYXRpb25zIGFycmF5LlxuICpcbiAqIEBuYW1lc3BhY2VcbiAqIEBhbGlhcyBHcC5TZXJ2aWNlcy5HZW9jb2RlUmVzcG9uc2VcbiAqL1xuZnVuY3Rpb24gR2VvY29kZVJlc3BvbnNlICgpIHtcbiAgICBpZiAoISh0aGlzIGluc3RhbmNlb2YgR2VvY29kZVJlc3BvbnNlKSkge1xuICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKFwiR2VvY29kZVJlc3BvbnNlIGNvbnN0cnVjdG9yIGNhbm5vdCBiZSBjYWxsZWQgYXMgYSBmdW5jdGlvbi5cIik7XG4gICAgfVxuXG4gICAgdGhpcy5sb2NhdGlvbnMgPSBbXTtcbn1cblxuR2VvY29kZVJlc3BvbnNlLnByb3RvdHlwZSA9IHtcblxuICAgIGNvbnN0cnVjdG9yIDogR2VvY29kZVJlc3BvbnNlXG5cbn07XG5cbmV4cG9ydCBkZWZhdWx0IEdlb2NvZGVSZXNwb25zZTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Services/Geocode/Response/model/GeocodeResponse.js\n"); + +/***/ }), + +/***/ "./src/Services/Geocode/Response/model/GeocodedLocation.js": +/*!*****************************************************************!*\ + !*** ./src/Services/Geocode/Response/model/GeocodedLocation.js ***! + \*****************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Single location object returned by the underlying geocoding web service.\n *\n * @property {Gp.Point} position - Position of the location given in the requested coordinates system.\n * @property {String} type - location type \"StreetAddress\" (for an address), \"PositionOfInterest\" (for a place name) or \"CadastralParcel\" (for cadastral parcel).\n * @property {String} matchType - how geocoding is performed : \"street number\" (exact address), \"street enhanced\" (street number calculated by interpolation), \"street\" (only the street), \"city\" (only the city).\n * @property {Float} accuracy - Accuracy of the response towards the requested location between 0 (unaccurate) and 1 (exact match).\n * @property {Object} placeAttributes - Associative array matching the following attributes with their values given by the underlying web service :\n *\n * *Common attributes : *\n *\n * - **trueGeometry** - the 'real life' geometry if different from 'Point' type.\n *\n * *if type === \"StreetAddress\" :*\n *\n * - **number** - Street number.\n * - **postalCode** - PostCode\n * - **street** - Street name\n * - **city** - City\n * - **houseNumberInfos** - additional street number information\n * - **inseeCode** - INSEE Code\n *\n *\n * *if type === \"PositionOfInterest\" :*\n *\n * - **type** - Place name type\n * - **postalCode** - PostCode\n * - **toponyme** - Toponyme\n * - **extraFields** - additional place name properties\n * - **inseeCode** - INSEE Code\n *\n *\n * *si type = \"CadastralParcel\" :*\n *\n * - **codeCommuneAbs** - when a parcel comes from a city that was absorbed by another, code of that old city. \"000\" otherwise.\n * - **codeArrondissement** - arrondissement\n * - **identifiant** - cadastral parcel code\n * - **feuille** - Parcel Sheet (eg. \"1\").\n * - **numero** - Parcel Number (eg. \"0041\")\n * - **section** - Parcel Section (eg. \"0D\").\n * - **nomCommune** - Parcel municipality name.\n * - **codeCommune** - Parcel municipality.\n * - **codeDepartement** - Parcel Department.\n *\n * @namespace\n * @alias Gp.Services.Geocode.GeocodedLocation\n */\nfunction GeocodedLocation() {\n if (!(this instanceof GeocodedLocation)) {\n throw new TypeError(\"GeocodedLocation constructor cannot be called as a function.\");\n }\n this.position = null;\n this.matchType = null;\n this.placeAttributes = {};\n this.type = null;\n this.accuracy = null;\n\n /**\n * Nom de la classe : \"GeocodedLocation\"\n * @type {String}\n */\n this.CLASSNAME = \"GeocodedLocation\";\n}\nGeocodedLocation.prototype = {\n constructor: GeocodedLocation\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GeocodedLocation);//# sourceURL=[module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biAgICBpZiAoISh0aGlzIGluc3RhbmNlb2YgR2VvY29kZWRMb2NhdGlvbikpIHtcbiAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcihcIkdlb2NvZGVkTG9jYXRpb24gY29uc3RydWN0b3IgY2Fubm90IGJlIGNhbGxlZCBhcyBhIGZ1bmN0aW9uLlwiKTtcbiAgICB9XG5cbiAgICB0aGlzLnBvc2l0aW9uID0gbnVsbDtcblxuICAgIHRoaXMubWF0Y2hUeXBlID0gbnVsbDtcblxuICAgIHRoaXMucGxhY2VBdHRyaWJ1dGVzID0ge307XG5cbiAgICB0aGlzLnR5cGUgPSBudWxsO1xuXG4gICAgdGhpcy5hY2N1cmFjeSA9IG51bGw7XG5cbiAgICAvKipcbiAgICAgKiBOb20gZGUgbGEgY2xhc3NlIDogXCJHZW9jb2RlZExvY2F0aW9uXCJcbiAgICAgKiBAdHlwZSB7U3RyaW5nfVxuICAgICAqL1xuICAgIHRoaXMuQ0xBU1NOQU1FID0gXCJHZW9jb2RlZExvY2F0aW9uXCI7XG59XG5cbkdlb2NvZGVkTG9jYXRpb24ucHJvdG90eXBlID0ge1xuXG4gICAgY29uc3RydWN0b3IgOiBHZW9jb2RlZExvY2F0aW9uXG5cbn07XG5cbmV4cG9ydCBkZWZhdWx0IEdlb2NvZGVkTG9jYXRpb247XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Services/Geocode/Response/model/GeocodedLocation.js\n"); + +/***/ }), + +/***/ "./src/Services/Geocode/ReverseGeocode.js": +/*!************************************************!*\ + !*** ./src/Services/Geocode/ReverseGeocode.js ***! + \************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Exceptions/ErrorService */ \"./src/Exceptions/ErrorService.js\");\n/* harmony import */ var _CommonService__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../CommonService */ \"./src/Services/CommonService.js\");\n/* harmony import */ var _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../DefaultUrlService */ \"./src/Services/DefaultUrlService.js\");\n/* harmony import */ var _Request_GeocodeRequestFactory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Request/GeocodeRequestFactory */ \"./src/Services/Geocode/Request/GeocodeRequestFactory.js\");\n/* harmony import */ var _Response_GeocodeResponseFactory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Response/GeocodeResponseFactory */ \"./src/Services/Geocode/Response/GeocodeResponseFactory.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n\n\n\n\n\n\n\n\n/**\n * @classdesc\n * Appel du service de géocodage inverse du Géoportail :\n * envoi de la requête construite selon les paramètres en options,\n * éventuellement parsing et analyse de la réponse,\n * retour d'une réponse en paramètre de la fonction onSuccess.\n * @constructor\n * @extends {Gp.Services.CommonService}\n * @alias Gp.Services.ReverseGeocode\n *\n * @param {Object} options - options spécifiques au service (+ les options heritées)\n *\n * @param {Object} options.position - Position du point de référence pour le calcul de proximité exprimée dans le système de référence spécifié par le srs.\n * @param {Float} options.position.lon - Longitude du point de référence pour le calcul de proximité.\n * @param {Float} options.position.lat - Latitude du point de référence pour le calcul de proximité.\n *\n * @param {Object} [options.filters] - Les propriétés possibles de cet objet.\n * @param {String} [options.filters.[proprietes du filtre]] - Critère supplémentaire pour filtrer la recherche sous la forme\n * d'un couple clé/valeur à définir selon les possibilités du serveur ajouté à la requête.\n * Le service de géocodage du Géoportail permet de filtrer les adresses postales avec les propriétés :\n * \"postalCode\", \"inseeCode\", \"city\".\n * Il permet également de filtrer les toponymes avec les propriétés :\n * \"postalCode\", \"inseeCode\", \"type\".\n * Enfin, il permet de filtrer les parcelles cadastrales avec les propriétés :\n * \"codeDepartement\", \"codeCommune\", \"nomCommune\", \"codeCommuneAbs\", \"codeArrondissement\", \"section\", \"numero\", \"feuille\".\n *\n * @param {Object} [options.searchGeometry] - Emprise dans laquelle on souhaite effectuer la recherche.\n * Les propriétés possibles de cet objet sont décrites ci-après.\n * @param {String} options.searchGeometry.type - Type de géometrie (Point|Circle|Linestring|Polygon)\n * @param {Array.|Array.Array.} options.searchGeometry.coordinates - Coordonnées des points constituant la géométrie.\n * @param {Float} options.searchGeometry.radius - Rayon. Paramètre applicable uniquement pour le type 'Circle'.\n *\n * @param {String} [options.index = \"StreetAddress\"] - Type de l'objet recherché.\n * Le service de géocodage du Géoportail permet de rechercher des 'PositionOfInterest' pour des toponymes, des 'StreetAddress'\n * pour des adresses postales ou des 'CadastralParcel' pour des parcelles cadastrales. L'index 'location' permet une recherche\n * multi-indexes en regroupant les indexes 'PositionOfInterest' et 'StreetAddress'.\n * D'autres types pourront être rajoutés selon l'évolution du service.\n * Par défaut, index = 'StreetAddress'.\n *\n * @param {Number} [options.maximumResponses] - Nombre de réponses maximal que l'on souhaite recevoir.\n * Pas de valeur par défaut. Si le serveur consulté est celui du Géoportail, la valeur par défaut sera donc celle du service : 20s.\n *\n * @param {Boolean} [options.returnTrueGeometry] - Booléen indiquant si l'on souhaite récupérer la géométrie vraie des objects géolocalisés.\n * false par défaut.\n *\n * @example\n * var options = {\n * apiKey : null,\n * serverUrl : 'http://localhost/service/',\n * proxyURL : null,\n * timeOut : 10000, // ms\n * rawResponse : false, // true|false\n * scope : null, // this\n * onSuccess : function (response) {},\n * onFailure : function (error) {},\n * // spécifique au service\n * index : 'StreetAddress',\n * searchGeometry : {\n * type : Circle,\n * coordinates : [48, 2],\n * radius : 100\n * },\n * position : {lon:2 , lat:48.5},\n * maximumResponses : 25,\n * };\n *\n */\nfunction ReverseGeocode(options_) {\n if (!(this instanceof ReverseGeocode)) {\n throw new TypeError(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"CLASS_CONSTRUCTOR\", \"ReverseGeocode\"));\n }\n\n /**\n * Nom de la classe (heritage)\n * FIXME instance ou classe ?\n */\n this.CLASSNAME = \"ReverseGeocode\";\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"Gp.Services.ReverseGeocode\");\n this.logger.trace(\"[Constructeur ReverseGeocode (options)]\");\n var options = this.patchOptionConvertor(options_);\n if (!options.serverUrl) {\n options.serverUrl = _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__[\"default\"].ReverseGeocode.newUrl();\n }\n\n // appel du constructeur par heritage\n _CommonService__WEBPACK_IMPORTED_MODULE_3__[\"default\"].apply(this, [options]);\n if (!options.searchGeometry) {\n if (!options.position) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_MISSING\", \"searchGeometry\"));\n }\n } else {\n this.options.searchGeometry = options.searchGeometry;\n }\n\n // on definit l'index par defaut\n if (!options.index) {\n this.options.index = options.index = \"StreetAddress\";\n }\n if (options.filters) {\n var filter = Object.keys(options.filters);\n for (var i = 0; i < filter.length; i++) {\n var key = filter[i];\n // on supprime les filtres vides\n if (typeof options.filters[key] === \"undefined\" || _typeof(options.filters[key]) === \"object\" && Object.keys(options.filters[key]).length === 0 || typeof options.filters[key] === \"string\" && options.filters[key].length === 0 || Array.isArray(options.filters[key]) && options.filters[key].length === 0) {\n delete this.options.filters[key];\n }\n }\n }\n this.options.position = options.position;\n this.options.index = options.index || \"StreetAddress\";\n this.options.maximumResponses = options.maximumResponses || 20;\n}\n\n/**\n * @lends module:ReverseGeocode#\n */\nReverseGeocode.prototype = Object.create(_CommonService__WEBPACK_IMPORTED_MODULE_3__[\"default\"].prototype, {\n // todo\n // getter/setter\n});\n\n/*\n * Constructeur (alias)\n */\nReverseGeocode.prototype.constructor = ReverseGeocode;\n\n/**\n * Patch pour la convertion des options vers le nouveau formalisme.\n *\n * @param {Object} options_ - options du service\n * @return {Object} - options\n */\nReverseGeocode.prototype.patchOptionConvertor = function (options_) {\n var options = options_;\n if (options.filterOptions) {\n this.logger.warn(\"The parameter 'filterOptions' is deprecated\");\n if (options.filterOptions.type) {\n this.logger.warn(\"The parameter 'filterOptions.type' is deprecated\");\n if (!options.index) {\n if (Array.isArray(options.filterOptions.type) && options.filterOptions.type.length > 0) {\n options.index = options.filterOptions.type[0];\n } else {\n options.index = options.filterOptions.type;\n }\n }\n delete options.filterOptions.type;\n }\n if (options.filterOptions.bbox) {\n this.logger.warn(\"The parameter 'filterOptions.bbox' is deprecated\");\n if (!options.searchGeometry) {\n // convertir la geometrie\n options.searchGeometry = this.bbox2Json(options.filterOptions.bbox);\n }\n delete options.filterOptions.bbox;\n }\n if (options.filterOptions.circle) {\n this.logger.warn(\"The parameter 'filterOptions.circle' is deprecated\");\n if (!options.searchGeometry) {\n // convertir la geometrie\n options.searchGeometry = this.circle2Json(options.filterOptions.circle);\n }\n delete options.filterOptions.circle;\n }\n if (options.filterOptions.polygon) {\n this.logger.warn(\"The parameter 'filterOptions.polygon' is deprecated\");\n if (!options.searchGeometry) {\n // convertir la geometrie\n options.searchGeometry = this.polygon2Json(options.filterOptions.polygon);\n }\n delete options.filterOptions.polygon;\n }\n if (!options.filters && Object.keys(options.filterOptions).length > 0) {\n options.filters = options.filterOptions;\n }\n delete options.filterOptions;\n }\n if (options.position) {\n if (options.position.x) {\n this.logger.warn(\"The parameter 'position.x' is deprecated\");\n if (!options.position.lon) {\n options.position.lon = options.position.x;\n }\n delete options.position.x;\n }\n if (options.position.y) {\n this.logger.warn(\"The parameter 'position.y' is deprecated\");\n if (!options.position.lat) {\n options.position.lat = options.position.y;\n }\n delete options.position.y;\n }\n }\n if (options.srs) {\n this.logger.warn(\"The parameter 'srs' is deprecated\");\n delete options.srs;\n }\n return options;\n};\n\n/**\n * (overwrite)\n * Création de la requête\n *\n * @param {Function} error - callback des erreurs\n * @param {Function} success - callback\n */\nReverseGeocode.prototype.buildRequest = function (error, success) {\n var options = {\n httpMethod: this.options.httpMethod,\n // options specifiques du service\n geocodeMethod: \"reverse\",\n searchGeometry: this.options.searchGeometry,\n index: this.options.index,\n position: this.options.position,\n returnTrueGeometry: this.options.returnTrueGeometry,\n maxResp: this.options.maximumResponses,\n filters: this.options.filters\n };\n this.request = _Request_GeocodeRequestFactory__WEBPACK_IMPORTED_MODULE_5__[\"default\"].build(options);\n\n // on teste si la requete a bien été construite !\n !this.request ? error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_REQUEST_BUILD\"))) : success.call(this, this.request);\n};\n\n/**\n * (overwrite)\n * Analyse de la reponse\n *\n * @param {Function} error - callback des erreurs\n * @param {Function} success - callback\n */\nReverseGeocode.prototype.analyzeResponse = function (error, success) {\n if (this.response) {\n var options = {\n response: this.response,\n rawResponse: this.options.rawResponse,\n onError: error,\n onSuccess: success,\n scope: this\n };\n _Response_GeocodeResponseFactory__WEBPACK_IMPORTED_MODULE_6__[\"default\"].build(options);\n } else {\n error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EMPTY\")));\n }\n};\n\n/**\n * Patch pour la convertion des options vers le nouveau formalisme.\n *\n * @param {Array} bbox - bbox\n * @return {Object} - geometrie au format json\n */\nReverseGeocode.prototype.bbox2Json = function (bbox) {\n return {\n type: \"Polygon\",\n coordinates: [[[bbox.left, bbox.top], [bbox.right, bbox.top], [bbox.right, bbox.bottom], [bbox.left, bbox.bottom], [bbox.left, bbox.top]]]\n };\n};\n\n/**\n * Patch pour la convertion des options vers le nouveau formalisme.\n *\n * @param {Object} circle - circle\n * @return {Object} - geometrie au format json\n */\nReverseGeocode.prototype.circle2Json = function (circle) {\n return {\n type: \"Circle\",\n radius: circle.radius,\n coordinates: [circle.x, circle.y]\n };\n};\n\n/**\n * Patch pour la convertion des options vers le nouveau formalisme.\n *\n * @param {Array} polygon - polygon\n * @return {Object} - geometrie au format json\n */\nReverseGeocode.prototype.polygon2Json = function (polygon) {\n var jsonGeom = {\n type: \"Polygon\",\n coordinates: [[]]\n };\n for (var i = 0; i < polygon.length; ++i) {\n jsonGeom.coordinates[0].push([polygon[i].x, polygon[i].y]);\n }\n return jsonGeom;\n};\n\n/**\n * Codes EPSG géographiques (lat/lon). Utiles car les coordonnées doivent être inversées.\n */\nReverseGeocode.geoEPSG = [\"EPSG:4326\"];\n/* harmony default export */ __webpack_exports__[\"default\"] = (ReverseGeocode);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9HZW9jb2RlL1JldmVyc2VHZW9jb2RlLmpzP2JiYjQiXSwibmFtZXMiOlsiUmV2ZXJzZUdlb2NvZGUiLCJvcHRpb25zXyIsIlR5cGVFcnJvciIsIl8iLCJnZXRNZXNzYWdlIiwiQ0xBU1NOQU1FIiwibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwidHJhY2UiLCJvcHRpb25zIiwicGF0Y2hPcHRpb25Db252ZXJ0b3IiLCJzZXJ2ZXJVcmwiLCJEZWZhdWx0VXJsU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gICAgICAgIHRoaXMub3B0aW9ucy5pbmRleCA9IG9wdGlvbnMuaW5kZXggPSBcIlN0cmVldEFkZHJlc3NcIjtcbiAgICB9XG5cbiAgICBpZiAob3B0aW9ucy5maWx0ZXJzKSB7XG4gICAgICAgIHZhciBmaWx0ZXIgPSBPYmplY3Qua2V5cyhvcHRpb25zLmZpbHRlcnMpO1xuICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGZpbHRlci5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgdmFyIGtleSA9IGZpbHRlcltpXTtcbiAgICAgICAgICAgIC8vIG9uIHN1cHByaW1lIGxlcyBmaWx0cmVzIHZpZGVzXG4gICAgICAgICAgICBpZiAodHlwZW9mIG9wdGlvbnMuZmlsdGVyc1trZXldID09PSBcInVuZGVmaW5lZFwiIHx8XG4gICAgICAgICAgICAgICAgKHR5cGVvZiBvcHRpb25zLmZpbHRlcnNba2V5XSA9PT0gXCJvYmplY3RcIiAmJiBPYmplY3Qua2V5cyhvcHRpb25zLmZpbHRlcnNba2V5XSkubGVuZ3RoID09PSAwKSB8fFxuICAgICAgICAgICAgICAgICh0eXBlb2Ygb3B0aW9ucy5maWx0ZXJzW2tleV0gPT09IFwic3RyaW5nXCIgJiYgb3B0aW9ucy5maWx0ZXJzW2tleV0ubGVuZ3RoID09PSAwKSB8fFxuICAgICAgICAgICAgICAgIChBcnJheS5pc0FycmF5KG9wdGlvbnMuZmlsdGVyc1trZXldKSAmJiBvcHRpb25zLmZpbHRlcnNba2V5XS5sZW5ndGggPT09IDApXG4gICAgICAgICAgICApIHtcbiAgICAgICAgICAgICAgICBkZWxldGUgdGhpcy5vcHRpb25zLmZpbHRlcnNba2V5XTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIHRoaXMub3B0aW9ucy5wb3NpdGlvbiA9IG9wdGlvbnMucG9zaXRpb247XG4gICAgdGhpcy5vcHRpb25zLmluZGV4ID0gb3B0aW9ucy5pbmRleCB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GVyT3B0aW9ucy50eXBlJyBpcyBkZXByZWNhdGVkXCIpO1xuICAgICAgICAgICAgaWYgKCFvcHRpb25zLmluZGV4KSB7XG4gICAgICAgICAgICAgICAgaWYgKEFycmF5LmlzQXJyYXkob3B0aW9ucy5maWx0ZXJPcHRpb25zLnR5cGUpICYmIG9wdGlvbnMuZmlsdGVyT3B0aW9ucy50eXBlLmxlbmd0aCA+IDApIHtcbiAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5pbmRleCA9IG9wdGlvbnMuZmlsdGVyT3B0aW9ucy50eXBlWzBdO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIG9wdGlvbnMuaW5kZXggPSBvcHRpb25zLmZpbHRlck9wdGlvbnMudHlwZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBkZWxldGUgb3B0aW9ucy5maWx0ZXJPcHRpb25zLnR5cGU7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAob3B0aW9ucy5maWx0ZXJPcHRpb25zLmJib3gpIHtcbiAgICAgICAgICAgIHRoaXMubG9nZ2VyLndhcm4oXCJUaGUgcGFyYW1ldGVyICdmaWx0ZXJPcHRpb25zLmJib3gnIGlzIGRlcHJlY2F0ZWRcIik7XG4gICAgICAgICAgICBpZiAoIW9wdGlvbnMuc2VhcmNoR2VvbWV0cnkpIHtcbiAgICAgICAgICAgICAgICAvLyBjb252ZXJ0aXIgbGEgZ2VvbWV0cmllXG4gICAgICAgICAgICAgICAgb3B0aW9ucy5zZWFyY2hHZW9tZXRyeSA9IHRoaXMuYmJveDJKc29uKG9wdGlvbnMuZmlsdGVyT3B0aW9ucy5iYm94KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGRlbGV0ZSBvcHRpb25zLmZpbHRlck9wdGlvbnMuYmJveDtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChvcHRpb25zLmZpbHRlck9wdGlvbnMuY2lyY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nRpb24gZGVzIG9wdGlvbnMgdmVycyBsZSBub3V2ZWF1IGZvcm1hbGlzbWUuXG4gKlxuICogQHBhcmFtIHtBcnJheX0gcG9seWdvbiAtIHBvbHlnb25cbiAqIEByZXR1cm4ge09iamVjdH0gLSBnZW9tZXRyaWUgYXUgZm9ybWF0IGpzb25cbiAqL1xuUmV2ZXJzZUdlb2NvZGUucHJvdG90eXBlLnBvbHlnb24ySnNvbiA9IGZ1bmN0aW9uIChwb2x5Z29uKSB7XG4gICAgdmFyIGpzb25HZW9tID0ge1xuICAgICAgICB0eXBlIDogXCJQb2x5Z29uXCIsXG4gICAgICAgIGNvb3JkaW5hdGVzIDogW1tdXVxuICAgIH07XG5cbiAgICBmb3IgKHZhciBpID0gMDsgaSA8IHBvbHlnb24ubGVuZ3RoOyArK2kpIHtcbiAgICAgICAganNvbkdlb20uY29vcmRpbmF0ZXNbMF0ucHVzaChbcG9seWdvbltpXS54LCBwb2x5Z29uW2ldLnldKTtcbiAgICB9XG5cbiAgICByZXR1cm4ganNvbkdlb207XG59O1xuXG4vKipcbiAqIENvZGVzIEVQU0cgZ8Opb2dyYXBoaXF1ZXMgKGxhdC9sb24pLiBVdGlsZXMgY2FyIGxlcyBjb29yZG9ubsOpZXMgZG9pdmVudCDDqnRyZSBpbnZlcnPDqWVzLlxuICovXG5SZXZlcnNlR2VvY29kZS5nZW9FUFNHID0gW1wiRVBTRzo0MzI2XCJdO1xuXG5leHBvcnQgZGVmYXVsdCBSZXZlcnNlR2VvY29kZTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Services/Geocode/ReverseGeocode.js\n"); + +/***/ }), + +/***/ "./src/Services/ProcessIsoCurve/ProcessIsoCurve.js": +/*!*********************************************************!*\ + !*** ./src/Services/ProcessIsoCurve/ProcessIsoCurve.js ***! + \*********************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Exceptions/ErrorService */ \"./src/Exceptions/ErrorService.js\");\n/* harmony import */ var _CommonService__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../CommonService */ \"./src/Services/CommonService.js\");\n/* harmony import */ var _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../DefaultUrlService */ \"./src/Services/DefaultUrlService.js\");\n/* harmony import */ var _Request_ProcessIsoCurveRequest__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Request/ProcessIsoCurveRequest */ \"./src/Services/ProcessIsoCurve/Request/ProcessIsoCurveRequest.js\");\n/* harmony import */ var _Response_ProcessIsoCurveResponseFactory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Response/ProcessIsoCurveResponseFactory */ \"./src/Services/ProcessIsoCurve/Response/ProcessIsoCurveResponseFactory.js\");\n\n\n\n\n\n\n\n\n/**\n * @classdesc\n * Appel du service d'isochrone/distance du Géoportail :\n * envoi de la requête construite selon les paramètres en options,\n * éventuellement parsing et analyse de la réponse,\n * retour d'une réponse en paramètre de la fonction onSuccess.\n * @constructor\n * @extends {Gp.Services.CommonService}\n * @alias Gp.Services.ProcessIsoCurve\n * @param {Object} options - options spécifiques au service (+ les options heritées)\n *\n * @param {String} options.resource - La ressource utilisée pour le calcul : bdtopo-valhalla (par défaut) ou bdtopo-pgr.\n *\n * @param {String} options.outputFormat - Le format de la réponse du service iso : 'json' uniquement et par défaut.\n *\n * @param {Object} options.position - Point de départ du calcul.\n * Coordonnées exprimées en longitudes, latitudes (EPSG:4326)\n * @param {Float} options.position.x - Abcisse du point de départ du calcul d'isochrone/distance.\n * @param {Float} options.position.y - Ordonnée du point de départ du calcul d'isochrone/distance.\n *\n * @param {String} options.srs - Projection.\n * Système de coordonnées dans lequel les coordonnées du point « location » sont exprimées et\n * dans lequel la géométrie de la courbe résultante sera exprimée.\n * Par défaut, le système de coordonnées utilisé sera « EPSG:4326 ».\n *\n * @param {String} [options.graph = \"voiture\"] - Nom du graphe à utiliser pour le calcul (« Pieton » ou « Voiture »).\n * La valeur par défaut est : «voiture»\n *\n * @param {Array.} [options.exclusions] - DEPRECATED: Ce paramètre est conservé pour une rétrocompatibilité de l'api. Le nouveau paramètre à utiliser est options.constraints.\n * Critères d'exclusions à appliquer pour le calcul.\n * On précise ici le type de tronçons que l'on ne veut pas que l'isochrone/distance emprunte\n * (valeurs possibles : « toll » (éviter les péages), « bridge », « tunnel »).\n *\n * @param {Object[]} [options.constraints] - Critères de contraintes à appliquer sur un itinéraire. Les valeurs disponibles dépendent de la ressource utilisée. Il est donc utile de regarder le getCapabilities.\n * @param {String} [options.constraints.constraintType] - Type de la contrainte. Généralement \"banned\".\n * @param {String} [options.constraints.key] - Clé de la contrainte. Généralement \"wayType\".\n * @param {String} [options.constraints.operator] - Opérateur de la contrainte. Généralement \"=\".\n * @param {String} [options.constraints.value] - Valeur de la contrainte. Généralement \"autoroute\".\n *\n * @param {String} [options.method = \"time\"] - Méthode utilisée pour le calcul de la courbe iso.\n * Les valeurs possible sont \"time\" pour un calcul d'isochrone, \"distance\" pour un calcul d'isodistance.\n * Pas de valeur spécifié équivaut à un calcul d'isochrone.\n *\n * @param {String} [options.distanceUnit = \"m\"] - Indique si la distance doit être exprimée en km ou m dans la réponse (\"m\" or \"km\").\n *\n * @param {String} [options.timeUnit = \"second\"] - Indique si la durée doit être exprimée en seconde, minute ou heure dans la réponse (\"standard\", \"second\", \"minute\", \"hour\"). Il peut-être formatté hh:mm::ss avec la valeur standard.\n *\n * @param {Float} options.time - Durée maximum (exprimée en secondes) à utiliser pour le calcul de la courbe à partir du ou jusqu'au point « location ».\n * Ce paramètre doit être renseigné si l'option \"méthod\" a la valeur \"time\".\n * Si l'option method n'est pas renseignée, ce paramètre doit être renseigné.\n *\n * @param {Float} options.distance - Distance maximum (exprimée en metres) à utiliser pour le calcul de la courbe à partir du ou j'usqu'au point « location ».\n * Ce paramètre doit être renseigné si l'option \"méthod\" a la valeur \"DISTANCE\".\n * Si l'option \"method\" n'est pas renseignée, ce paramètre sera ignoré.\n *\n * @param {Boolean} [options.reverse = false] - Indique si la géométrie résultante doit être lissée (« true ») pour ne pas avoir d'effet d'escalier.\n * Par défaut, la valeur « false » est appliquée.\n *\n * @param {Boolean} [options.smoothing = false] - Indique si la géométrie résultante doit être lissée (« true ») pour ne pas avoir d'effet d'escalier.\n * Par défaut, la valeur « false » est appliquée.\n *\n * @param {Boolean} [options.holes = false] - Indique si la géométrie résultante (surface) doit être retournée avec des trous (« true »).\n * Par défaut, la valeur « false » est appliquée.\n *\n * @example\n * var options = {\n * // options communes aux services\n * apiKey : null,\n * serverUrl : 'http://localhost/service/',\n * protocol : 'JSONP', // JSONP|XHR\n * proxyURL : null,\n * httpMethod : 'GET', // GET|POST\n * timeOut : 10000, // ms\n * rawResponse : false, // true|false\n * scope : null, // this\n * onSuccess : function (response) {},\n * onFailure : function (error) {},\n * // spécifique au service\n * position : {\n * x : 2.3242664298058053,\n * y : 48.86118017324745\n * },\n * resource : bdtopo-valhalla,\n * distance : 200,\n * [time : ]\n * method : \"distance\",\n * graph : \"voiture\",\n * reverse : false\n * };\n */\n\nfunction ProcessIsoCurve(options) {\n if (!(this instanceof ProcessIsoCurve)) {\n throw new TypeError(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"CLASS_CONSTRUCTOR\", \"ProcessIsoCurve\"));\n }\n\n /**\n * Nom de la classe (heritage)\n * FIXME instance ou classe ?\n */\n this.CLASSNAME = \"ProcessIsoCurve\";\n\n // appel du constructeur par heritage\n _CommonService__WEBPACK_IMPORTED_MODULE_3__[\"default\"].apply(this, arguments);\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"Gp.Services.ProcessIsoCurve\");\n this.logger.trace(\"[Constructeur ProcessIsoCurve (options)]\");\n if (!options.position) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_MISSING\", \"position\"));\n }\n\n // on lance une exception afin d'eviter au service de le faire...\n if (options.position.x === null) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_MISSING\", \"position.x\"));\n }\n if (options.position.y === null) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_MISSING\", \"position.y\"));\n }\n if (!options.time && !options.distance) {\n throw new Error(\"Parameter (s) 'distance' missing. Parameter time to calculate an isochrone, parameter distance for an isodistance\");\n }\n\n // si on a que le paramètre \"distance\" en entrée, on calcule une isodistance.\n // Le paramètre \"méthode\" doit pour avoir une réponse du service, être passé à \"distance\"\n if (!options.time && options.distance) {\n this.options.method = \"distance\";\n // on supprime l'éventuel attribut time, résidu d'un appel antérieur\n if (this.options.time) {\n delete this.options.time;\n }\n }\n\n // si on a que le paramètre \"time\" en entrée, on calcule une isochrone.\n // Le paramètre \"méthode\" doit pour avoir une réponse du service, être passé à \"time\"\n if (options.time && !options.distance) {\n this.options.method = \"time\";\n // on supprime l'éventuel attribut time, résidu d'un appel antérieur\n if (this.options.distance) {\n delete this.options.distance;\n }\n }\n\n // au cas où on a ni l'un, ni l'autre...\n this.options.method = this.options.method || \"time\";\n\n // options par defaut du service\n // TODO: modifier la ressource lors de la mise en production du service\n this.options.resource = options.resource || \"bdtopo-valhalla\";\n this.options.exclusions = options.exclusions || [];\n this.options.reverse = options.reverse || false;\n this.options.srs = options.srs || \"EPSG:4326\";\n this.options.distanceUnit = options.distanceUnit || \"m\";\n this.options.timeUnit = options.timeUnit || \"second\";\n\n // options depreciees\n if (options.smoothing) {\n this.logger.warn(\"options.smoothing is DEPRECATED\");\n }\n this.options.smoothing = false;\n if (options.holes) {\n this.logger.warn(\"options.holes is DEPRECATED\");\n }\n this.options.holes = false;\n\n // Gestion du graphe\n if (options.graph) {\n if (options.graph === \"Voiture\") {\n this.options.graph = \"car\";\n }\n if (options.graph === \"Pieton\") {\n this.options.graph = \"pedestrian\";\n }\n } else {\n this.options.graph = \"car\";\n }\n\n // Gestions des contraintes\n this.options.constraints = [];\n if (options.constraints) {\n if (Array.isArray(options.constraints)) {\n for (var k = 0; k < options.constraints.length; k++) {\n this.options.constraints.push(options.constraints[k]);\n }\n } else {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_TYPE\", \"constraints\"));\n }\n }\n\n // Gestion de l'ancien paramètre exclusions\n var constraintTunnel = {};\n var constraintPont = {};\n var constraintAutoroute = {};\n if (options.exclusions) {\n if (options.exclusions.length !== 0) {\n this.logger.warn(\"options.exclusions is DEPRECATED !!\");\n for (var c = 0; c < options.exclusions.length; c++) {\n if (typeof options.exclusions[c] === \"string\") {\n options.exclusions[c] = options.exclusions[c].toLowerCase();\n } else {\n // on ne crée pas une erreur pour rétro-compatibilité avec les anciennes versions\n continue;\n }\n if (options.exclusions[c] === \"toll\") {\n constraintAutoroute.constraintType = \"banned\";\n constraintAutoroute.key = \"wayType\";\n constraintAutoroute.operator = \"=\";\n constraintAutoroute.value = \"autoroute\";\n this.options.constraints.push(constraintAutoroute);\n }\n if (options.exclusions[c] === \"tunnel\") {\n constraintTunnel.constraintType = \"banned\";\n constraintTunnel.key = \"wayType\";\n constraintTunnel.operator = \"=\";\n constraintTunnel.value = \"tunnel\";\n this.options.constraints.push(constraintTunnel);\n }\n if (options.exclusions[c] === \"bridge\") {\n constraintPont.constraintType = \"banned\";\n constraintPont.key = \"wayType\";\n constraintPont.operator = \"=\";\n constraintPont.value = \"pont\";\n this.options.constraints.push(constraintPont);\n }\n }\n }\n }\n\n // on passe l'option outputFormat en minuscules afin d'éviter des exceptions.\n this.options.outputFormat = typeof options.outputFormat === \"string\" ? options.outputFormat.toLowerCase() : \"json\";\n if (options.outputFormat && options.outputFormat !== \"json\") {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_NOT_SUPPORT\", \"outputFormat\"));\n }\n this.options.outputFormat = \"json\";\n\n // gestion de l'url du service par defaut\n // si l'url n'est pas renseignée, il faut utiliser les urls par defaut\n if (!this.options.serverUrl) {\n var urlFound = _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__[\"default\"].ProcessIsoCurve.newUrl();\n if (!urlFound) {\n throw new Error(\"Url by default not found !\");\n }\n this.options.serverUrl = urlFound;\n this.logger.trace(\"Serveur URL par defaut : \" + this.options.serverUrl);\n }\n}\n\n/**\n * @lends module:ProcessIsoCurve#\n */\nProcessIsoCurve.prototype = Object.create(_CommonService__WEBPACK_IMPORTED_MODULE_3__[\"default\"].prototype, {\n // todo\n // getter/setter\n});\n\n/*\n * Constructeur (alias)\n */\nProcessIsoCurve.prototype.constructor = ProcessIsoCurve;\n\n/**\n * Création de la requête (overwrite)\n *\n * @param {Function} error - callback des erreurs\n * @param {Function} success - callback\n */\nProcessIsoCurve.prototype.buildRequest = function (error, success) {\n try {\n var oIsoCurve = new _Request_ProcessIsoCurveRequest__WEBPACK_IMPORTED_MODULE_5__[\"default\"](this.options);\n if (!oIsoCurve.processRequestString()) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_REQUEST_BUILD\"));\n }\n this.request = oIsoCurve.requestString;\n } catch (e) {\n error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](e.message));\n return;\n }\n success.call(this, this.request);\n};\n\n/**\n * (overwrite)\n * Analyse de la reponse\n *\n * @param {Function} onError - callback des erreurs\n * @param {Function} onSuccess - callback de succès de l'analyse de la réponse\n */\nProcessIsoCurve.prototype.analyzeResponse = function (onError, onSuccess) {\n if (this.response) {\n var options = {\n response: this.response,\n outputFormat: this.options.outputFormat,\n rawResponse: this.options.rawResponse,\n onSuccess: onSuccess,\n onError: onError,\n scope: this\n };\n _Response_ProcessIsoCurveResponseFactory__WEBPACK_IMPORTED_MODULE_6__[\"default\"].build(options);\n } else {\n onError.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EMPTY\")));\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (ProcessIsoCurve);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9Qcm9jZXNzSXNvQ3VydmUvUHJvY2Vzc0lzb0N1cnZlLmpzP2M1MDEiXSwibmFtZXMiOlsiUHJvY2Vzc0lzb0N1cnZlIiwib3B0aW9ucyIsIlR5cGVFcnJvciIsIl8iLCJnZXRNZXNzYWdlIiwiQ0xBU1NOQU1FIiwiQ29tbW9uU2VydmljZSIsImFwcGx5IiwiYXJndW1lbnRzIiwibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwidHJhY2UiLCJwb3NpdGlvbiIsIkVycm9yIiwieCIsInkiLCJ0aW1lIiwiZGlzdGFuY2UiLCJtZXRob2QiLCJyZXNvdXJjZSIsImV4Y2x1c2lvbnMiLCJyZXZlcnNlIiwic3JzIiwiZGlzdGFuY2VVbml0IiwidGltZVVuaXQiLCJzbW9vdGhpbmciLCJ3YXJuIiwiaG9sZXMiLCJncmFwaCIsImNvbnN0cmFpbn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8IG9wdGlvbnMuY29uc3RyYWludHMubGVuZ3RoOyBrKyspIHtcbiAgICAgICAgICAgICAgICB0aGlzLm9wdGlvbnMuY29uc3RyYWludHMucHVzaChvcHRpb25zLmNvbnN0cmFpbnRzW2tdKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihfLmdldE1lc3NhZ2UoXCJQQVJBTV9UWVBFXCIsIFwiY29uc3RyYWludHNcIikpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgLy8gR2VzdGlvbiBkZSBsJ2FuY2llbiBwYXJhbcOodHJlIGV4Y2x1c2lvbnNcbiAgICB2YXIgY29uc3RyYWludFR1bm5lbCA9IHt9O1xuICAgIHZhciBjb25zdHJhaW50UG9udCA9IHt9O1xuICAgIHZhciBjb25zdHJhaW50QXV0b3JvdXRlID0ge307XG4gICAgaWYgKG9wdGlvbnMuZXhjbHVzaW9ucykge1xuICAgICAgICBpZiAob3B0aW9ucy5leGNsdXNpb25zLmxlbmd0aCAhPT0gMCkge1xuICAgICAgICAgICAgdGhpcy5sb2dnZXIud2FybihcIm9wdGlvbnMuZXhjbHVzaW9ucyBpcyBERVBSRUNBVEVEICEhXCIpO1xuICAgICAgICAgICAgZm9yICh2YXIgYyA9IDA7IGMgPCBvcHRpb25zLmV4Y2x1c2lvbnMubGVuZ3RoOyBjKyspIHtcbiAgICAgICAgICAgICAgICBpZiAodHlwZW9mIG9wdGlvbnMuZXhjbHVzaW9uc1tjXSA9PT0gXCJzdHJpbmdcIikge1xuICAgICAgICAgICAgICAgICAgICBvcHRpb25zLmV4Y2x1c2lvbnNbY10gPSBvcHRpb25zLmV4Y2x1c2lvbnNbY10udG9Mb3dlckNhc2UoKTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAvLyBvbiBuZSBjcsOpZSBwYXMgdW5lIGVycmV1ciBwb3VyIHLDqXRyby1jb21wYXRpYmlsaXTDqSBhdmVjIGxlcyBhbmNpZW5uZXMgdmVyc2lvbnNcbiAgICAgICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmIChvcHRpb25zLmV4Y2x1c2lvbnNbY10gPT09IFwidG9sbFwiKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0cmFpbnRBdXRvcm91dGUuY29uc3RyYWludFR5cGUgPSBcImJhbm5lZFwiO1xuICAgICAgICAgICAgICAgICAgICBjb25zdHJhaW50QXV0b3JvdXRlLmtleSA9IFwid2F5VHlwZVwiO1xuICAgICAgICAgICAgICAgICAgICBjb25zdHJhaW50QXV0b3JvdXRlLm9wZXJhdG9yID0gXCI9XCI7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0cmFpbnRBdXRvcm91dGUudmFsdWUgPSBcImF1dG9yb3V0ZVwiO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLm9wdGlvbnMuY29uc3RyYWludHMucHVzaChjb25zdHJhaW50QXV0b3JvdXRlKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgaWYgKG9wdGlvbnMuZXhjbHVzaW9uc1tjXSA9PT0gXCJ0dW5uZWxcIikge1xuICAgICAgICAgICAgICAgICAgICBjb25zdHJhaW50VHVubmVsLmNvbnN0cmFpbnRUeXBlID0gXCJiYW5uZWRcIjtcbiAgICAgICAgICAgICAgICAgICAgY29uc3RyYWludFR1bm5lbC5rZXkgPSBcIndheVR5cGVcIjtcbiAgICAgICAgICAgICAgICAgICAgY29uc3RyYWludFR1bm5lbC5vcGVyYXRvciA9IFwiPVwiO1xuICAgICAgICAgICAgICAgICAgICBjb25zdHJhaW50VHVubmVsLnZhbHVlID0gXCJ0dW5uZWxcIjtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5vcHRpb25zLmNvbnN0cmFpbnRzLnB1c2goY29uc3RyYWludFR1bm5lbCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmIChvcHRpb25zLmV4Y2x1c2lvbnNbY10gPT09IFwiYnJpZGdlXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3RyYWludFBvbnQuY29uc3RyYWludFR5cGUgPSBcImJhbm5lZFwiO1xuICAgICAgICAgICAgICAgICAgICBjb25zdHJhaW50UG9udC5rZXkgPSBcIndheVR5cGVcIjtcbiAgICAgICAgICAgICAgICAgICAgY29uc3RyYWludFBvbnQub3BlcmF0b3IgPSBcIj1cIjtcbiAgICAgICAgICAgICAgICAgICAgY29uc3RyYWludFBvbnQudmFsdWUgPSBcInBvbnRcIjtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5vcHRpb25zLmNvbnN0cmFpbnRzLnB1c2goY29uc3RyYWludFBvbnQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8vIG9uIHBhc3NlIGwnb3B0aW9uIG91dHB1dEZvcm1hdCBlbiBtaW51c2N1bGVzIGFmaW4gZCfDqXZpdGVyIGRlcyBleGNlcHRpb25zLlxuICAgIHRoaXMub3B0aW9ucy5vdXRwdXRGb3JtYXQgPSAodHlwZW9mIG9wdGlvbnMub3V0cHV0Rm9ybWF0ID09PSBcInN0cmluZ1wiKSA/IG9wdGlvbnMub3V0cHV0Rm9ybWF0LnRvTG93ZXJDYXNlKCkgOiBcImpzb25cIjtcbiAgICBpZiAob3B0aW9ucy5vdXRwdXRGb3JtYXQgJiYgb3B0aW9ucy5vdXRwdXRGb3JtYXQgIT09IFwianNvblwiKSB7XG4gICAgICAgIHRocm93IG5ldyBFcnJvcihfLmdldE1lc3NhZ2UoXCJQQVJBTV9OT1RfU1VQUE9SVFwiLCBcIm91dHB1dEZvcm1hdFwiKSk7XG4gICAgfVxuICAgIHRoaXMub3B0aW9ucy5vdXRwdXRGb3JtYXQgPSBcImpzb25cIjtcblxuICAgIC8vIGdlc3Rpb24gZGUgbCd1cmw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ICAgICAgIHZhciBvcHRpb25zID0ge1xuICAgICAgICAgICAgcmVzcG9uc2UgOiB0aGlzLnJlc3BvbnNlLFxuICAgICAgICAgICAgb3V0cHV0Rm9ybWF0IDogdGhpcy5vcHRpb25zLm91dHB1dEZvcm1hdCxcbiAgICAgICAgICAgIHJhd1Jlc3BvbnNlIDogdGhpcy5vcHRpb25zLnJhd1Jlc3BvbnNlLFxuICAgICAgICAgICAgb25TdWNjZXNzIDogb25TdWNjZXNzLFxuICAgICAgICAgICAgb25FcnJvciA6IG9uRXJyb3IsXG4gICAgICAgICAgICBzY29wZSA6IHRoaXNcbiAgICAgICAgfTtcblxuICAgICAgICBQcm9jZXNzSXNvQ3VydmVSZXNwb25zZUZhY3RvcnkuYnVpbGQob3B0aW9ucyk7XG4gICAgfSBlbHNlIHtcbiAgICAgICAgb25FcnJvci5jYWxsKHRoaXMsIG5ldyBFcnJvclNlcnZpY2UoXy5nZXRNZXNzYWdlKFwiU0VSVklDRV9SRVNQT05TRV9FTVBUWVwiKSkpO1xuICAgIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IFByb2Nlc3NJc29DdXJ2ZTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Services/ProcessIsoCurve/ProcessIsoCurve.js\n"); + +/***/ }), + +/***/ "./src/Services/ProcessIsoCurve/Request/ProcessIsoCurveRequest.js": +/*!************************************************************************!*\ + !*** ./src/Services/ProcessIsoCurve/Request/ProcessIsoCurveRequest.js ***! + \************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _model_ProcessIsoCurveParam__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./model/ProcessIsoCurveParam */ \"./src/Services/ProcessIsoCurve/Request/model/ProcessIsoCurveParam.js\");\n\n\n\n\n/**\n * @classdesc\n * Classe de gestion des requêtes sur le service de calcul d'isoschrone/isodistance.\n * Les requêtes peuvent être en mode GET ou POST,\n * et le format de sorti est en JSON.\n *\n * @constructor\n * @alias Gp.Services.ProcessIsoCurve.Request.ProcessIsoCurveRequest\n * @param {Object} options - options\n *\n * @example\n * var options = {\n * httpMethod : 'GET', // GET|POST\n * // spécifique au service\n * position : {\n * x : 2.3242664298058053,\n * y : 48.86118017324745\n * },\n * graph : \"car\",\n * method : 'time',\n * time : 1000, //distance : 200\n * reverse : false,\n * srs : 'EPSG:4326'\n * };\n *\n * try {\n *\n * var oIsoCurve = new ProcessIsoCurveRequest (options);\n * if (!oIsoCurve.processRequestString ()) {\n * // error\n * }\n *\n * var request = oIsoCurve.requestString;\n *\n * } catch (e) {\n * // error\n * }\n * @private\n */\nfunction ProcessIsoCurveRequest(options) {\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"ProcessIsoCurveRequest\");\n this.logger.trace(\"[Constructeur ProcessIsoCurveRequest ()]\");\n if (!(this instanceof ProcessIsoCurveRequest)) {\n throw new TypeError(\"ProcessIsoCurveRequest constructor cannot be called as a function.\");\n }\n\n // existance des options\n if (!options) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_EMPTY\", \"options\"));\n }\n\n /**\n * Liste des options\n */\n this.settings = options;\n\n /**\n * Mode HTPP.\n * Par defaut, \"GET\".\n * @type {String}\n */\n this.mode = this.settings.httpMethod || \"GET\";\n}\nProcessIsoCurveRequest.prototype = {\n /**\n * @lends module:ProcessIsoCurveRequest#\n */\n\n /**\n * Requête\n * @type {String}\n */\n requestString: null,\n /**\n * Constructeur (alias)\n */\n constructor: ProcessIsoCurveRequest,\n /**\n * Construction de la requête.\n *\n * @example\n * // GET out :\n * // (http://wxs.ign.fr/KEY/isochrone?)\n * // resource=&\n * // point=&\n * // costValue=&\n * // costType=&\n * // profile=&\n * // constraints=&\n * // direction=&\n * // crs=\n *\n * // POST out :\n * {\n * resource: \"bduni-idf-pgr\",\n * point: \"2.337306,48.849319\",\n * costValue: 100,\n * costType: \"time\",\n * profile: \"car\",\n * constraints: [{\n * constraintType: \"banned\",\n * key: \"ways_type\",\n * operator: \"=\",\n * value: \"autoroute\"\n * }]\n * }\n *\n * @returns {String} request\n */\n processRequestString: function processRequestString() {\n var request = \"\";\n var i = 0;\n switch (this.mode) {\n case \"GET\":\n this.logger.trace(\"Process GET Request\");\n\n // Mapping des options avec le service de l'API REST\n var oParams = new _model_ProcessIsoCurveParam__WEBPACK_IMPORTED_MODULE_2__[\"default\"](this.settings);\n var params = oParams.getParams();\n for (i = 0; i < params.length; i++) {\n var o = params[i];\n if (request) {\n request += \"&\";\n }\n request += o.k + \"=\" + o.v;\n }\n break;\n case \"POST\":\n this.logger.trace(\"Process POST Request\");\n // creation du JSON\n var postRequest = {};\n postRequest.resource = this.settings.resource;\n postRequest.point = this.settings.position.x + \",\" + this.settings.position.y;\n if (this.settings.method === \"distance\") {\n postRequest.costType = \"distance\";\n postRequest.costValue = this.settings.distance;\n } else {\n postRequest.costType = \"time\";\n postRequest.costValue = this.settings.time;\n }\n postRequest.profile = this.settings.graph;\n if (this.settings.reverse) {\n postRequest.direction = \"arrival\";\n } else {\n postRequest.direction = \"departure\";\n }\n postRequest.constraints = this.settings.constraints;\n postRequest.distanceUnit = this.settings.distanceUnit;\n postRequest.timeUnit = this.settings.timeUnit;\n postRequest.crs = this.settings.srs;\n\n // conversion en chaîne de caractères\n request = JSON.stringify(postRequest);\n break;\n default:\n this.logger.error(\"No other HTTP method supported by the service !\");\n }\n this.logger.trace(request);\n this.requestString = request;\n return this.requestString;\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (ProcessIsoCurveRequest);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9Qcm9jZXNzSXNvQ3VydmUvUmVxdWVzdC9Qcm9jZXNzSXNvQ3VydmVSZXF1ZXN0LmpzPzcwMzQiXSwibmFtZXMiOlsiUHJvY2Vzc0lzb0N1cnZlUmVxdWVzdCIsIm9wdGlvbnMiLCJsb2dnZXIiLCJMb2dnZXIiLCJnZXRMb2dnZXIiLCJ0cmFjZSIsIlR5cGVFcnJvciIsIkVycm9yIiwiXyIsImdldE1lc3NhZ2UiLCJzZXR0aW5ncyIsIm1vZGUiLCJodHRwTWV0aG9kIiwicHJvdG90eXBlIiwicmVxdWVzdFN0cmluZyIsImNvbnN0cnVjdG9yIiwicHJvY2Vzc1JlcXVlc3RTdHJpbmciLCJyZXF1ZXN0IiwiaSIsIm9QYXJhbXMiLCJQcm9jZXNzSXNvQ3VydmVQYXJhbSIsInBhcmFtcyIsImdldFBhcmFtcyIsImxlbmd0aCIsIm8iLCJrIiwidiIsInBvc3RSZXF1ZXN0IiwicmVzb3VyY2UiLCJwb2ludCIsInBvc2l0aW9uIiwieCIsInkiLCJtZXRob2QiLCJjb3N0VHlwZSIsImNvc3RWYWx1ZSIsImRpc3RhbmNlIiwidGltZSIsInByb2ZpbGUiLCJncmFwaCIsInJldmVyc2UiLCJkaXJlY3Rpb24iLCJjb25zdHJhaW50cyIsImRpc3RhbmNlVW5pdCIsInRpbWVVbml0IiwiY3JzIiwic3JzIiwiSlNPTiIsInN0cmluZ2lmeSIsImVycm9yIl0sIm1hcHBpbmdzIjoiQUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFvRDtBQUNIO0FBQ2U7O0FBRWhFO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUF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RzOiBbe1xuICAgICAqICAgICAgY29uc3RyYWludFR5cGU6IFwiYmFubmVkXCIsXG4gICAgICogICAgICBrZXk6IFwid2F5c190eXBlXCIsXG4gICAgICogICAgICBvcGVyYXRvcjogXCI9XCIsXG4gICAgICogICAgICB2YWx1ZTogXCJhdXRvcm91dGVcIlxuICAgICAqICB9XVxuICAgICAqIH1cbiAgICAgKlxuICAgICAqIEByZXR1cm5zIHtTdHJpbmd9IHJlcXVlc3RcbiAgICAgKi9cbiAgICBwcm9jZXNzUmVxdWVzdFN0cmluZyA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgdmFyIHJlcXVlc3QgPSBcIlwiO1xuICAgICAgICB2YXIgaSA9IDA7XG5cbiAgICAgICAgc3dpdGNoICh0aGlzLm1vZGUpIHtcbiAgICAgICAgICAgIGNhc2UgXCJHRVRcIjpcbiAgICAgICAgICAgICAgICB0aGlzLmxvZ2dlci50cmFjZShcIlByb2Nlc3MgR0VUIFJlcXVlc3RcIik7XG5cbiAgICAgICAgICAgICAgICAvLyBNYXBwaW5nIGRlcyBvcHRpb25zIGF2ZWMgbGUgc2VydmljZSBkZSBsJ0FQSSBSRVNUXG4gICAgICAgICAgICAgICAgdmFyIG9QYXJhbXMgPSBuZXcgUHJvY2Vzc0lzb0N1cnZlUGFyYW0odGhpcy5zZXR0aW5ncyk7XG4gICAgICAgICAgICAgICAgdmFyIHBhcmFtcyA9IG9QYXJhbXMuZ2V0UGFyYW1zKCk7XG5cbiAgICAgICAgICAgICAgICBmb3IgKGkgPSAwOyBpIDwgcGFyYW1zLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgICAgICAgIHZhciBvID0gcGFyYW1zW2ldO1xuICAgICAgICAgICAgICAgICAgICBpZiAocmVxdWVzdCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmVxdWVzdCArPSBcIiZcIjtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICByZXF1ZXN0ICs9IG8uayArIFwiPVwiICsgby52O1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBjYXNlIFwiUE9TVFwiOlxuICAgICAgICAgICAgICAgIHRoaXMubG9nZ2VyLnRyYWNlKFwiUHJvY2VzcyBQT1NUIFJlcXVlc3RcIik7XG4gICAgICAgICAgICAgICAgLy8gY3JlYXRpb24gZHUgSlNPTlxuICAgICAgICAgICAgICAgIHZhciBwb3N0UmVxdWVzdCA9IHt9O1xuXG4gICAgICAgICAgICAgICAgcG9zdFJlcXVlc3QucmVzb3VyY2UgPSB0aGlzLnNldHRpbmdzLnJlc291cmNlO1xuXG4gICAgICAgICAgICAgICAgcG9zdFJlcXVlc3QucG9pbnQgPSB0aGlzLnNldHRpbmdzLnBvc2l0aW9uLnggKyBcIixcIiArIHRoaXMuc2V0dGluZ3MucG9zaXRpb24ueTtcblxuICAgICAgICAgICAgICAgIGlmICh0aGlzLnNldHRpbmdzLm1ldGhvZCA9PT0gXCJkaXN0YW5jZVwiKSB7XG4gICAgICAgICAgICAgICAgICAgIHBvc3RSZXF1ZXN0LmNvc3RUeXBlID0gXCJkaXN0YW5jZVwiO1xuICAgICAgICAgICAgICAgICAgICBwb3N0UmVxdWVzdC5jb3N0VmFsdWUgPSB0aGlzLnNldHRpbmdzLmRpc3RhbmNlO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIHBvc3RSZXF1ZXN0LmNvc3RUeXBlID0gXCJ0aW1lXCI7XG4gICAgICAgICAgICAgICAgICAgIHBvc3RSZXF1ZXN0LmNvc3RWYWx1ZSA9IHRoaXMuc2V0dGluZ3MudGltZTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBwb3N0UmVxdWVzdC5wcm9maWxlID0gdGhpcy5zZXR0aW5ncy5ncmFwaDtcblxuICAgICAgICAgICAgICAgIGlmICh0aGlzLnNldHRpbmdzLnJldmVyc2UpIHtcbiAgICAgICAgICAgICAgICAgICAgcG9zdFJlcXVlc3QuZGlyZWN0aW9uID0gXCJhcnJpdmFsXCI7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgcG9zdFJlcXVlc3QuZGlyZWN0aW9uID0gXCJkZXBhcnR1cmVcIjtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBwb3N0UmVxdWVzdC5jb25zdHJhaW50cyA9IHRoaXMuc2V0dGluZ3MuY29uc3RyYWludHM7XG5cbiAgICAgICAgICAgICAgICBwb3N0UmVxdWVzdC5kaXN0YW5jZVVuaXQgPSB0aGlzLnNldHRpbmdzLmRpc3RhbmNlVW5pdDtcblxuICAgICAgICAgICAgICAgIHBvc3RSZXF1ZXN0LnRpbWVVbml0ID0gdGhpcy5zZXR0aW5ncy50aW1lVW5pdDtcblxuICAgICAgICAgICAgICAgIHBvc3RSZXF1ZXN0LmNycyA9IHRoaXMuc2V0dGluZ3Muc3JzO1xuXG4gICAgICAgICAgICAgICAgLy8gY29udmVyc2lvbiBlbiBjaGHDrm5lIGRlIGNhcmFjdMOocmVzXG4gICAgICAgICAgICAgICAgcmVxdWVzdCA9IEpTT04uc3RyaW5naWZ5KHBvc3RSZXF1ZXN0KTtcbiAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICB0aGlzLmxvZ2dlci5lcnJvcihcIk5vIG90aGVyIEhUVFAgbWV0aG9kIHN1cHBvcnRlZCBieSB0aGUgc2VydmljZSAhXCIpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5sb2dnZXIudHJhY2UocmVxdWVzdCk7XG4gICAgICAgIHRoaXMucmVxdWVzdFN0cmluZyA9IHJlcXVlc3Q7XG5cbiAgICAgICAgcmV0dXJuIHRoaXMucmVxdWVzdFN0cmluZztcbiAgICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBQcm9jZXNzSXNvQ3VydmVSZXF1ZXN0O1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/Services/ProcessIsoCurve/Request/ProcessIsoCurveRequest.js\n"); + +/***/ }), + +/***/ "./src/Services/ProcessIsoCurve/Request/model/ProcessIsoCurveParam.js": +/*!****************************************************************************!*\ + !*** ./src/Services/ProcessIsoCurve/Request/model/ProcessIsoCurveParam.js ***! + \****************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n\n\n/**\n * @classdesc\n *\n * Classe de gestion des param. des requêtes du service de calcul des iso.\n * Permet le mapping avec les options du service.\n *\n * @constructor\n * @alias Gp.Services.ProcessIsoCurve.Request.ProcessIsoCurveParam\n * @param {Object} options - options\n * @private\n *\n */\nfunction ProcessIsoCurveParam(options) {\n if (!(this instanceof ProcessIsoCurveParam)) {\n throw new TypeError(\"ProcessIsoCurveParam constructor cannot be called as a function.\");\n }\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger();\n this.logger.trace(\"[Constructeur ProcessIsoCurveParam ()]\");\n\n /**\n * Options en paramêtres du constructeur.\n */\n this.options = options || {};\n\n // mapping des options avec l'API REST\n\n /** Identifiant de l’isochrone */\n this.id = this.options.id;\n\n /** Resource */\n this.resource = this.options.resource;\n\n /** Coordonnées de départ (ou arrivée si le reverse est à true). */\n this.point = this.options.position;\n\n /** projection (code EPSG comme epsg:4326 ou wgs84) */\n this.crs = this.options.srs;\n\n /**\n * Profil de véhicule à utiliser pour le calcul.\n * Voiture ou Pieton\n */\n this.profile = this.options.graph;\n\n /** Liste des règles de restrictions à utiliser */\n this.constraints = this.options.constraints;\n this.reverse = this.options.reverse;\n this.timeUnit = this.options.timeUnit;\n this.distanceUnit = this.options.distanceUnit;\n\n /**\n * \"time\" pour isochrone ou \"distance\" for isodistance.\n * Par defaut, time...\n */\n if (this.options.method === \"distance\") {\n this.costType = \"distance\";\n this.costValue = this.options.distance;\n if (this.distanceUnit === \"m\" && this.costValue >= 50000) {\n this.distanceUnit = \"km\";\n this.costValue /= 1000;\n }\n } else {\n this.costType = \"time\";\n this.costValue = this.options.time;\n }\n}\n\n/**\n * CLASSNAME\n */\nProcessIsoCurveParam.CLASSNAME = \"ProcessIsoCurveParam\";\nProcessIsoCurveParam.prototype = {\n /**\n * @lends module:ProcessIsoCurveParam#\n */\n\n /**\n * Constructeur (alias)\n */\n constructor: ProcessIsoCurveParam,\n /**\n * Retourne le point\n * @returns {String} x,y\n */\n getLocation: function getLocation() {\n return this.point.x + \",\" + this.point.y;\n },\n /**\n * Retourne l'unité de la distance\n * @returns {String}\n */\n getDistanceUnit: function getDistanceUnit() {\n if (this.distanceUnit === \"m\") {\n return \"meter\";\n }\n if (this.distanceUnit === \"km\") {\n return \"kilometer\";\n }\n return \"\";\n },\n /**\n * Retourne la liste des contraintes\n * @returns {String}\n */\n getConstraints: function getConstraints() {\n var constraintArray = [];\n if (this.constraints.length !== 0) {\n for (var k = 0; k < this.constraints.length; k++) {\n constraintArray.push(JSON.stringify(this.constraints[k]));\n }\n }\n return constraintArray.join(\"|\");\n },\n /**\n * Retourne la direction\n * @returns {String}\n */\n getDirection: function getDirection() {\n if (this.reverse) {\n return \"arrival\";\n } else {\n return \"departure\";\n }\n }\n};\n\n/**\n * Tableau de clefs/valeurs pour param.\n *\n * @returns {Object[]} KVP\n */\nProcessIsoCurveParam.prototype.getParams = function () {\n var map = [];\n map.push({\n k: \"resource\",\n v: this.resource\n });\n map.push({\n k: \"point\",\n v: this.getLocation()\n });\n map.push({\n k: \"direction\",\n v: this.getDirection()\n });\n map.push({\n k: \"costType\",\n v: this.costType\n });\n map.push({\n k: \"costValue\",\n v: this.costValue\n });\n map.push({\n k: \"profile\",\n v: this.profile\n });\n map.push({\n k: \"timeUnit\",\n v: this.timeUnit\n });\n map.push({\n k: \"distanceUnit\",\n v: this.getDistanceUnit()\n });\n if (this.crs) {\n map.push({\n k: \"crs\",\n v: this.crs\n });\n }\n if (this.constraints) {\n map.push({\n k: \"constraints\",\n v: this.getConstraints()\n });\n }\n return map;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (ProcessIsoCurveParam);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9Qcm9jZXNzSXNvQ3VydmUvUmVxdWVzdC9tb2RlbC9Qcm9jZXNzSXNvQ3VydmVQYXJhbS5qcz85NzI1Il0sIm5hbWVzIjpbIlByb2Nlc3NJc29DdXJ2ZVBhcmFtIiwib3B0aW9ucyIsIlR5cGVFcnJvciIsImxvZ2dlciIsIkxvZ2dlciIsImdldExvZ2dlciIsInRyYWNlIiwiaWQiLCJyZXNvdXJjZSIsInBvaW50IiwicG9zaXRpb24iLCJjcnMiLCJzcnMiLCJwcm9maWxlIiwiZ3JhcGgiLCJjb25zdHJhaW50cyIsInJldmVyc2UiLCJ0aW1lVW5pdCIsImRpc3RhbmNlVW5pdCIsIm1ldGhvZCIsImNvc3RUeXBlIiwiY29zdFZhbHVlIiwiZGlzdGFuY2UiLCJ0aW1lIiwiQ0xBU1NOQU1FIiwicHJvdG90eXBlIiwiY29uc3RydWN0b3IiLCJnZXRMb2NhdGlvbiIsIngiLCJ5IiwiZ2V0RGlzdGFuY2VVbml0IiwiZ2V0Q29uc3RyYWludHMiLCJjb25zdHJhaW50QXJyYXkiLCJsZW5ndGgiLCJrIiwicHVzaCIsIkpTT04iLCJzdHJpbmdpZnkiLCJqb2luIiwiZ2V0RGlyZWN0aW9uIiwiZ2V0UGFyYW1zIiwibWFwIiwidiJdLCJtYXBw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cbiAgICAgICAgaWYgKHRoaXMuZGlzdGFuY2VVbml0ID09PSBcIm1cIikge1xuICAgICAgICAgICAgcmV0dXJuIFwibWV0ZXJcIjtcbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy5kaXN0YW5jZVVuaXQgPT09IFwia21cIikge1xuICAgICAgICAgICAgcmV0dXJuIFwia2lsb21ldGVyXCI7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIFwiXCI7XG4gICAgfSxcblxuICAgIC8qKlxuICAgICAqIFJldG91cm5lIGxhIGxpc3RlIGRlcyBjb250cmFpbnRlc1xuICAgICAqIEByZXR1cm5zIHtTdHJpbmd9XG4gICAgICovXG4gICAgZ2V0Q29uc3RyYWludHMgOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgIHZhciBjb25zdHJhaW50QXJyYXkgPSBbXTtcblxuICAgICAgICBpZiAodGhpcy5jb25zdHJhaW50cy5sZW5ndGggIT09IDApIHtcbiAgICAgICAgICAgIGZvciAodmFyIGsgPSAwOyBrIDwgdGhpcy5jb25zdHJhaW50cy5sZW5ndGg7IGsrKykge1xuICAgICAgICAgICAgICAgIGNvbnN0cmFpbnRBcnJheS5wdXNoKEpTT04uc3RyaW5naWZ5KHRoaXMuY29uc3RyYWludHNba10pKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gY29uc3RyYWludEFycmF5LmpvaW4oXCJ8XCIpO1xuICAgIH0sXG5cbiAgICAvKipcbiAgICAgKiBSZXRvdXJuZSBsYSBkaXJlY3Rpb25cbiAgICAgKiBAcmV0dXJucyB7U3RyaW5nfVxuICAgICAqL1xuICAgIGdldERpcmVjdGlvbiA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgaWYgKHRoaXMucmV2ZXJzZSkge1xuICAgICAgICAgICAgcmV0dXJuIFwiYXJyaXZhbFwiO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0dXJuIFwiZGVwYXJ0dXJlXCI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bml0KClcbiAgICB9KTtcblxuICAgIGlmICh0aGlzLmNycykge1xuICAgICAgICBtYXAucHVzaCh7XG4gICAgICAgICAgICBrIDogXCJjcnNcIixcbiAgICAgICAgICAgIHYgOiB0aGlzLmNyc1xuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBpZiAodGhpcy5jb25zdHJhaW50cykge1xuICAgICAgICBtYXAucHVzaCh7XG4gICAgICAgICAgICBrIDogXCJjb25zdHJhaW50c1wiLFxuICAgICAgICAgICAgdiA6IHRoaXMuZ2V0Q29uc3RyYWludHMoKVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICByZXR1cm4gbWFwO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgUHJvY2Vzc0lzb0N1cnZlUGFyYW07XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Services/ProcessIsoCurve/Request/model/ProcessIsoCurveParam.js\n"); + +/***/ }), + +/***/ "./src/Services/ProcessIsoCurve/Response/ProcessIsoCurveResponseFactory.js": +/*!*********************************************************************************!*\ + !*** ./src/Services/ProcessIsoCurve/Response/ProcessIsoCurveResponseFactory.js ***! + \*********************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Exceptions/ErrorService */ \"./src/Exceptions/ErrorService.js\");\n/* harmony import */ var _model_ProcessIsoCurveResponse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./model/ProcessIsoCurveResponse */ \"./src/Services/ProcessIsoCurve/Response/model/ProcessIsoCurveResponse.js\");\n\n\n\n\n\n/**\n * Factory pour générer une reponse JSON à partir d'un JSON\n * (Factory)\n *\n * @module ProcessIsoCurveResponseFactory\n * @alias Gp.Services.ProcessIsoCurve.Response.ProcessIsoCurveResponseFactory\n * @private\n */\nvar ProcessIsoCurveResponseFactory = {\n /**\n * interface unique\n *\n * @method build\n * @static\n * @param {Object} options - options definies dans le composant ProcessIsoCurve\n *\n * @example\n * var options = {\n * response :\n * outputFormat :\n * rawResponse :\n * scope :\n * onSuccess :\n * onError :\n * };\n *\n */\n build: function build(options) {\n // logger\n var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"ProcessIsoCurveResponseFactory\");\n logger.trace([\"ProcessIsoCurveResponseFactory::build()\"]);\n var data = null;\n if (options.response) {\n if (options.rawResponse) {\n logger.trace(\"analyze response : raw\");\n data = options.response;\n } else {\n logger.trace(\"analyze response : json\");\n var JSONResponse;\n if (typeof options.response === \"string\") {\n JSONResponse = JSON.parse(options.response);\n } else {\n JSONResponse = options.response;\n }\n\n // analyse de la reponse\n // création de l'objet de réponse\n data = new _model_ProcessIsoCurveResponse__WEBPACK_IMPORTED_MODULE_3__[\"default\"]();\n\n // remplissage de l'objet créé avec les attribtuts de la réponse du service\n if (JSONResponse) {\n if (JSONResponse.costType === \"distance\") {\n data.time = \"\";\n data.distance = JSONResponse.costValue;\n } else {\n data.time = JSONResponse.costValue;\n data.distance = \"\";\n }\n data.message = \"\";\n data.id = \"\";\n data.srs = JSONResponse.crs;\n data.geometry = JSONResponse.geometry;\n var coords = JSONResponse.point.split(\",\");\n if (data.location) {\n data.location.x = coords[0];\n data.location.y = coords[1];\n }\n } else {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_ANALYSE\", options.response)));\n return;\n }\n\n // info : en cas de problèmes de droits (clé invalide ou autre), la réponse est au format XML !!\n // ex. Key does not exist or has expired\n // mais le statut est 403, l'erreur est donc remontée plus tôt.\n if (data.exceptionReport) {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EXCEPTION\", data.exceptionReport),\n type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"].TYPE_SRVERR,\n status: 200\n }));\n return;\n }\n }\n } else {\n // si la réponse est vide, on appelle le callback d'erreur\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EMPTY\")));\n return;\n }\n\n // si tout s'est bien passé, on appelle le callback de succès\n options.onSuccess.call(options.scope, data);\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (ProcessIsoCurveResponseFactory);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9Qcm9jZXNzSXNvQ3VydmUvUmVzcG9uc2UvUHJvY2Vzc0lzb0N1cnZlUmVzcG9uc2VGYWN0b3J5LmpzP2RkNTAiXSwibmFtZXMiOlsiUHJvY2Vzc0lzb0N1cnZlUmVzcG9uc2VGYWN0b3J5IiwiYnVpbGQiLCJvcHRpb25zIiwibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwidHJhY2UiLCJkYXRhIiwicmVzcG9uc2UiLCJyYXdSZXNwb25zZSIsIkpTT05SZXNwb25zZSIsIkpTT04iLCJwYXJzZSIsIlByb2Nlc3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kIGJ1aWxkXG4gICAgICogQHN0YXRpY1xuICAgICAqIEBwYXJhbSB7T2JqZWN0fSBvcHRpb25zIC0gb3B0aW9ucyBkZWZpbmllcyBkYW5zIGxlIGNvbXBvc2FudCBQcm9jZXNzSXNvQ3VydmVcbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogICB2YXIgb3B0aW9ucyA9IHtcbiAgICAgKiAgICAgIHJlc3BvbnNlIDpcbiAgICAgKiAgICAgIG91dHB1dEZvcm1hdCA6XG4gICAgICogICAgICByYXdSZXNwb25zZSA6XG4gICAgICogICAgICBzY29wZSA6XG4gICAgICogICAgICBvblN1Y2Nlc3MgOlxuICAgICAqICAgICAgb25FcnJvciA6XG4gICAgICogICB9O1xuICAgICAqXG4gICAgICovXG4gICAgYnVpbGQgOiBmdW5jdGlvbiAob3B0aW9ucykge1xuICAgICAgICAvLyBsb2dnZXJcbiAgICAgICAgdmFyIGxvZ2dlciA9IExvZ2dlci5nZXRMb2dnZXIoXCJQcm9jZXNzSXNvQ3VydmVSZXNwb25zZUZhY3RvcnlcIik7XG4gICAgICAgIGxvZ2dlci50cmFjZShbXCJQcm9jZXNzSXNvQ3VydmVSZXNwb25zZUZhY3Rvcnk6OmJ1aWxkKClcIl0pO1xuXG4gICAgICAgIHZhciBkYXRhID0gbnVsbDtcblxuICAgICAgICBpZiAob3B0aW9ucy5yZXNwb25zZSkge1xuICAgICAgICAgICAgaWYgKG9wdGlvbnMucmF3UmVzcG9uc2UpIHtcbiAgICAgICAgICAgICAgICBsb2dnZXIudHJhY2UoXCJhbmFseXplIHJlc3BvbnNlIDogcmF3XCIpO1xuICAgICAgICAgICAgICAgIGRhdGEgPSBvcHRpb25zLnJlc3BvbnNlO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBsb2dnZXIudHJhY2UoXCJhbmFseXplIHJlc3BvbnNlIDoganNvblwiKTtcblxuICAgICAgICAgICAgICAgIHZhciBKU09OUmVzcG9uc2U7XG4gICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBvcHRpb25zLnJlc3BvbnNlID09PSBcInN0cmluZ1wiKSB7XG4gICAgICAgICAgICAgICAgICAgIEpTT05SZXNwb25zZSA9IEpTT04ucGFyc2Uob3B0aW9ucy5yZXNwb25zZSk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgSlNPTlJlc3BvbnNlID0gb3B0aW9ucy5yZXNwb25zZTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAvLyBhbmFseXNlIGRlIGxhIHJlcG9uc2VcbiAgICAgICAgICAgICAgICAvLyBjcsOpYXRpb24gZGUgbCdvYmpldCBkZSByw6lwb25zZVxuICAgICAgICAgICAgICAgIGRhdGEgPSBuZXcgUHJvY2Vzc0lzb0N1cnZlUmVzcG9uc2UoKTtcblxuICAgICAgICAgICAgICAgIC8vIHJlbXBsaXNzYWdlIGRlIGwnb2JqZXQgY3LDqcOpIGF2ZWMgbGVzIGF0dHJpYnR1dHMgZGUgbGEgcsOpcG9uc2UgZHUgc2VydmljZVxuICAgICAgICAgICAgICAgIGlmIChKU09OUmVzcG9uc2UpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKEpTT05SZXNwb25zZS5jb3N0VHlwZSA9PT0gXCJkaXN0YW5jZVwiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnRpbWUgPSBcIlwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5kaXN0YW5jZSA9IEpTT05SZXNwb25zZS5jb3N0VmFsdWU7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnRpbWUgPSBKU09OUmVzcG9uc2UuY29zdFZhbHVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5kaXN0YW5jZSA9IFwiXCI7XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICBkYXRhLm1lc3NhZ2UgPSBcIlwiO1xuICAgICAgICAgICAgICAgICAgICBkYXRhLmlkID0gXCJcIjtcbiAgICAgICAgICAgICAgICAgICAgZGF0YS5zcnMgPSBKU09OUmVzcG9uc2UuY3JzO1xuICAgICAgICAgICAgICAgICAgICBkYXRhLmdlb21ldHJ5ID0gSlNPTlJlc3BvbnNlLmdlb21ldHJ5O1xuICAgICAgICAgICAgICAgICAgICB2YXIgY29vcmRzID0gSlNPTlJlc3BvbnNlLnBvaW50LnNwbGl0KFwiLFwiKTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGRhdGEubG9jYXRpb24pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEubG9jYXRpb24ueCA9IGNvb3Jkc1swXTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEubG9jYXRpb24ueSA9IGNvb3Jkc1sxXTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIG9wdGlvbnMub25FcnJvci5jYWxsKG9wdGlvbnMuc2NvcGUsIG5ldyBFcnJvclNlcnZpY2UoTVJlcy5nZXRNZXNzYWdlKFwiU0VSVklDRV9SRVNQT05TRV9BTkFMWVNFXCIsIG9wdGlvbnMucmVzcG9uc2UpKSk7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAvLyBpbmZvIDogZW4gY2FzIGRlIHByb2Jsw6htZXMgZGUgZHJvaXRzIChjbMOpIGludmFsaWRlIG91IGF1dHJlKSwgbGEgcsOpcG9uc2UgZXN0IGF1IGZvcm1hdCBYTUwgISFcbiAgICAgICAgICAgICAgICAvLyBleC4gPEV4Y2VwdGlvblJlcG9ydD48RXhjZXB0aW9uIGV4Y2VwdGlvbkNvZGU9XCJNaXNzaW5nUGFyYW1ldGVyXCI+S2V5IGRvZXMgbm90IGV4aXN0IG9yIGhhcyBleHBpcmVkPC9FeGNlcHRpb24+PC9FeGNlcHRpb25SZXBvcnQ+XG4gICAgICAgICAgICAgICAgLy8gbWFpcyBsZSBzdGF0dXQgZXN0IDQwMywgbCdlcnJldXIgZXN0IGRvbmMgcmVtb250w6llIHBsdXMgdMO0dC5cbiAgICAgICAgICAgICAgICBpZiAoZGF0YS5leGNlcHRpb25SZXBvcnQpIHtcbiAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5vbkVycm9yLmNhbGwob3B0aW9ucy5zY29wZSwgbmV3IEVycm9yU2VydmljZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICBtZXNzYWdlIDogTVJlcy5nZXRNZXNzYWdlKFwiU0VSVklDRV9SRVNQT05TRV9FWENFUFRJT05cIiwgZGF0YS5leGNlcHRpb25SZXBvcnQpLFxuICAgICAgICAgICAgICAgICAgICAgICAgdHlwZSA6IEVycm9yU2VydmljZS5UWVBFX1NSVkVSUixcbiAgICAgICAgICAgICAgICAgICAgICAgIHN0YXR1cyA6IDIwMFxuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAvLyBzaSBsYSByw6lwb25zZSBlc3QgdmlkZSwgb24gYXBwZWxsZSBsZSBjYWxsYmFjayBkJ2VycmV1clxuICAgICAgICAgICAgb3B0aW9ucy5vbkVycm9yLmNhbGwob3B0aW9ucy5zY29wZSwgbmV3IEVycm9yU2VydmljZShNUmVzLmdldE1lc3NhZ2UoXCJTRVJWSUNFX1JFU1BPTlNFX0VNUFRZXCIpKSk7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICAvLyBzaSB0b3V0IHMnZXN0IGJpZW4gcGFzc8OpLCBvbiBhcHBlbGxlIGxlIGNhbGxiYWNrIGRlIHN1Y2PDqHNcbiAgICAgICAgb3B0aW9ucy5vblN1Y2Nlc3MuY2FsbChvcHRpb25zLnNjb3BlLCBkYXRhKTtcbiAgICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBQcm9jZXNzSXNvQ3VydmVSZXNwb25zZUZhY3Rvcnk7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Services/ProcessIsoCurve/Response/ProcessIsoCurveResponseFactory.js\n"); + +/***/ }), + +/***/ "./src/Services/ProcessIsoCurve/Response/model/ProcessIsoCurveResponse.js": +/*!********************************************************************************!*\ + !*** ./src/Services/ProcessIsoCurve/Response/model/ProcessIsoCurveResponse.js ***! + \********************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Response object for {@link module:Services~isoCurve Gp.Services.isoCurve ()} invocation when successful. Received as the argument of onSuccess callback function.\n *\n * @property {Float} distance - distance (expressed in meters) used for the request.\n * @property {Float} time - time (expressed in seconds) used for the request.\n * @property {Object} geometry - Geometry (expressed in [GeoJSON]{@link http://geojson.org/}) of the isocurve.\n * @property {String} id - request id (used by underlying webservice).\n * @property {Gp.Point} location - Position of the start or end point used for the request (expressed in \"srs\" coordinates system).\n * @property {String} message - message\n * @property {String} srs - Identifier of the coordinates system used for the isocurve.\n *\n * @namespace\n * @alias Gp.Services.IsoCurveResponse\n *\n */\nfunction ProcessIsoCurveResponse() {\n if (!(this instanceof ProcessIsoCurveResponse)) {\n throw new TypeError(\"ProcessIsoCurveResponse constructor cannot be called as a function.\");\n }\n this.message = null;\n this.id = null;\n this.location = {};\n this.location.x = null;\n this.location.y = null;\n this.srs = null;\n this.geometry = null;\n this.time = null;\n this.distance = null;\n}\nProcessIsoCurveResponse.prototype = {\n constructor: ProcessIsoCurveResponse\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (ProcessIsoCurveResponse);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8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G9ydCBkZWZhdWx0IFByb2Nlc3NJc29DdXJ2ZVJlc3BvbnNlO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/Services/ProcessIsoCurve/Response/model/ProcessIsoCurveResponse.js\n"); + +/***/ }), + +/***/ "./src/Services/Route/Request/RouteRequestFactory.js": +/*!***********************************************************!*\ + !*** ./src/Services/Route/Request/RouteRequestFactory.js ***! + \***********************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Exceptions/ErrorService */ \"./src/Exceptions/ErrorService.js\");\n/* harmony import */ var _RouteRequestREST__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./RouteRequestREST */ \"./src/Services/Route/Request/RouteRequestREST.js\");\n\n\n\n\n/**\n * Creation d'une requête REST en mode POST ou GET\n * (Factory)\n *\n * @module RouteRequestFactory\n * @alias Gp.Services.Route.Request.RouteRequestFactory\n * @private\n */\nvar RouteRequestFactory = {\n /**\n * interface unique\n *\n * @method build\n * @static\n * @param {Object} options - options definies dans le composant Route\n *\n * @example\n * // utilisation avec les callback\n * var options = {\n * (...)\n * onSuccess : function (response) {},\n * onError : function (error) {},\n * // spécifique au service\n * startPoint : {\n * x : 42.1121,\n * y : 1.5557\n * },\n * endPoint : {\n * x : 42.1121,\n * y : 1.5557\n * },\n * provideBbox : false,\n * exclusions : [\"bridge\", \"tunnel\", \"toll\"],\n * distanceUnit : \"km\",\n * graph : \"Voiture\",\n * geometryInInstructions : false,\n * routePreference : \"fastest\"\n * };\n * RouteRequestFactory.build(options);\n *\n * // utilisation sans callback\n * var options = {...};\n * try {\n * var result = RouteRequestFactory.build(options);\n * if (! result) { throw new Error(\"...\"):}\n * } catch (e) {\n * // todo\n * }\n * @returns {String} request\n */\n build: function build(options) {\n // logger\n var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"RouteRequestFactory\");\n logger.trace([\"RouteRequestFactory::build()\"]);\n var request = null;\n var settings = options || {};\n\n // gestion des callback\n var bOnError = !!(options.onError !== null && typeof options.onError === \"function\");\n var message = null;\n\n // FIXME les exceptions ne sont pas 'catchées' sur le constructeur !\n var myReq = new _RouteRequestREST__WEBPACK_IMPORTED_MODULE_2__[\"default\"](settings);\n if (!myReq.processRequestString()) {\n message = \"Error process request (rest) !\";\n if (bOnError) {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_1__[\"default\"](message));\n return;\n }\n throw new Error(message);\n }\n request = myReq.requestString;\n return request;\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (RouteRequestFactory);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9Sb3V0ZS9SZXF1ZXN0L1JvdXRlUmVxdWVzdEZhY3RvcnkuanM/MWQzMCJdLCJuYW1lcyI6WyJSb3V0ZVJlcXVlc3RGYWN0b3J5IiwiYnVpbGQiLCJvcHRpb25zIiwibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwidHJhY2UiLCJyZXF1ZXN0Iiwic2V0dGluZ3MiLCJiT25FcnJvciIsIm9uRXJyb3IiLCJtZXNzYWdlIiwibXlSZXEiLCJSb3V0ZVJlcXVlc3RSRVNUIiwicHJvY2Vzc1JlcXVlc3RTdHJpbmciLCJjYWxsIiwic2NvcGUiLCJFcnJvclNlcnZpY2UiLCJFcnJvciIsInJlcXVlc3RTdHJpbmciXSwibWFwc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lXG4gICAgICpcbiAgICAgKiBAbWV0aG9kIGJ1aWxkXG4gICAgICogQHN0YXRpY1xuICAgICAqIEBwYXJhbSB7T2JqZWN0fSBvcHRpb25zIC0gb3B0aW9ucyBkZWZpbmllcyBkYW5zIGxlIGNvbXBvc2FudCBSb3V0ZVxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiAgIC8vIHV0aWxpc2F0aW9uIGF2ZWMgbGVzIGNhbGxiYWNrXG4gICAgICogICB2YXIgb3B0aW9ucyA9IHtcbiAgICAgKiAgICAgICguLi4pXG4gICAgICogICAgICBvblN1Y2Nlc3MgOiBmdW5jdGlvbiAocmVzcG9uc2UpIHt9LFxuICAgICAqICAgICAgb25FcnJvciA6IGZ1bmN0aW9uIChlcnJvcikge30sXG4gICAgICogICAgICAvLyBzcMOpY2lmaXF1ZSBhdSBzZXJ2aWNlXG4gICAgICogICAgICBzdGFydFBvaW50IDoge1xuICAgICAqICAgICAgICAgIHggOiA0Mi4xMTIxLFxuICAgICAqICAgICAgICAgIHkgOiAxLjU1NTdcbiAgICAgKiAgICAgIH0sXG4gICAgICogICAgICBlbmRQb2ludCA6IHtcbiAgICAgKiAgICAgICAgICB4IDogNDIuMTEyMSxcbiAgICAgKiAgICAgICAgICB5IDogMS41NTU3XG4gICAgICogICAgICB9LFxuICAgICAqICAgICAgcHJvdmlkZUJib3ggOiBmYWxzZSxcbiAgICAgKiAgICAgIGV4Y2x1c2lvbnMgOiBbXCJicmlkZ2VcIiwgXCJ0dW5uZWxcIiwgXCJ0b2xsXCJdLFxuICAgICAqICAgICAgZGlzdGFuY2VVbml0IDogXCJrbVwiLFxuICAgICAqICAgICAgZ3JhcGggOiBcIlZvaXR1cmVcIixcbiAgICAgKiAgICAgIGdlb21ldHJ5SW5JbnN0cnVjdGlvbnMgOiBmYWxzZSxcbiAgICAgKiAgICAgIHJvdXRlUHJlZmVyZW5jZSA6IFwiZmFzdGVzdFwiXG4gICAgICogICB9O1xuICAgICAqICAgUm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AhXG4gICAgICAgIHZhciBteVJlcSA9IG5ldyBSb3V0ZVJlcXVlc3RSRVNUKHNldHRpbmdzKTtcbiAgICAgICAgaWYgKCFteVJlcS5wcm9jZXNzUmVxdWVzdFN0cmluZygpKSB7XG4gICAgICAgICAgICBtZXNzYWdlID0gXCJFcnJvciBwcm9jZXNzIHJlcXVlc3QgKHJlc3QpICFcIjtcbiAgICAgICAgICAgIGlmIChiT25FcnJvcikge1xuICAgICAgICAgICAgICAgIG9wdGlvbnMub25FcnJvci5jYWxsKG9wdGlvbnMuc2NvcGUsIG5ldyBFcnJvclNlcnZpY2UobWVzc2FnZSkpO1xuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihtZXNzYWdlKTtcbiAgICAgICAgfVxuICAgICAgICByZXF1ZXN0ID0gbXlSZXEucmVxdWVzdFN0cmluZztcblxuICAgICAgICByZXR1cm4gcmVxdWVzdDtcbiAgICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBSb3V0ZVJlcXVlc3RGYWN0b3J5O1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/Services/Route/Request/RouteRequestFactory.js\n"); + +/***/ }), + +/***/ "./src/Services/Route/Request/RouteRequestREST.js": +/*!********************************************************!*\ + !*** ./src/Services/Route/Request/RouteRequestREST.js ***! + \********************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _model_RouteParamREST__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./model/RouteParamREST */ \"./src/Services/Route/Request/model/RouteParamREST.js\");\n\n\n\n\n/**\n * @classdesc\n * Classe de gestion des requêtes de type REST sur le service de calcul d'itineraire\n * (uniquement en GET)\n *\n * @constructor\n * @alias Gp.Services.Route.Request.RouteRequestREST\n * @param {Object} options - options definies dans le composant Route\n *\n * @example\n * var options = {\n * (...)\n * };\n *\n * @private\n */\nfunction RouteRequestREST(options) {\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"RouteRequestREST\");\n this.logger.trace(\"[Constructeur RouteRequestREST ()]\");\n if (!(this instanceof RouteRequestREST)) {\n throw new TypeError(\"RouteRequestREST constructor cannot be called as a function.\");\n }\n\n // existance des options\n if (!options) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_EMPTY\", \"options\"));\n }\n\n /** liste des options */\n this.settings = options;\n}\nRouteRequestREST.prototype = {\n /**\n * @lends module:RouteRequestREST#\n */\n\n /**\n * request\n * @type {String}\n */\n requestString: null,\n /**\n * Constructeur (alias)\n */\n constructor: RouteRequestREST,\n /**\n * Construction de la requête.\n *\n * @example\n * // GET out : origin=2.416907353809513,48.8465772142297&destination=2.4248037771493673,48.84591353161838\n * // POST out : Not yet supported method POST !\n * @returns {String} request\n */\n processRequestString: function processRequestString() {\n // INFO\n // construction simple sans template...,\n // mais en attendant que les services soient fixés, on taggue ce composant en mode PROTOTYPE !\n this.logger.warn(\" PROTOTYPE !\");\n\n // Mapping des options avec le service de l'API REST\n var oParams = new _model_RouteParamREST__WEBPACK_IMPORTED_MODULE_2__[\"default\"](this.settings);\n var params = oParams.getParams();\n var request = \"\";\n for (var i = 0; i < params.length; i++) {\n var o = params[i];\n if (request) {\n request += \"&\";\n }\n request += o.k + \"=\" + o.v;\n }\n\n // Exemple :\n // http://wxs.ign.fr/KEY/itineraire/rest/route.json?\n // origin=&\n // destination=&\n // waypoints=&\n // method=DISTANCE&\n // graph=Pieton&\n // graphName=Pieton&\n // exclusions=&\n // tolerance=10&\n // srs=\n\n this.logger.trace(request);\n this.requestString = request;\n return this.requestString;\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (RouteRequestREST);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9Sb3V0ZS9SZXF1ZXN0L1JvdXRlUmVxdWVzdFJFU1QuanM/MjBlZCJdLCJuYW1lcyI6WyJSb3V0ZVJlcXVlc3RSRVNUIiwib3B0aW9ucyIsImxvZ2dlciIsIkxvZ2dlciIsImdldExvZ2dlciIsInRyYWNlIiwiVHlwZUVycm9yIiwiRXJyb3IiLCJfIiwiZ2V0TWVzc2FnZSIsInNldHRpbmdzIiwicHJvdG90eXBlIiwicmVxdWVzdFN0cmluZyIsImNvbnN0cnVjdG9yIiwicHJvY2Vzc1JlcXVlc3RTdHJpbmciLCJ3YXJuIiwib1BhcmFtcyIsIlJvdXRlUGFyYW1SRVNUIiwicGFyYW1zIiwiZ2V0UGFyYW1zIiwicmVxdWVzdCIsImkiLCJsZW5ndGgiLCJvIiwiayIsInYiXSwibWFwcGluZ3MiOiJBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQW9EO0FBQ0g7QUFDRzs7QUFFcEQ7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxTQUFTQSxnQkFBZ0JBLENBQUVDLE9BQU8sRUFBRTtFQUNoQyxJQUFJLENBQUNDLE1BQU0sR0FBR0MsOERBQU0sQ0FBQ0MsU0FBUyxDQUFDLGtCQUFrQixDQUFDO0VBQ2xELElBQUksQ0FBQ0YsTUFBTSxDQUFDR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TtcbiAgICAgICAgdmFyIHBhcmFtcyA9IG9QYXJhbXMuZ2V0UGFyYW1zKCk7XG5cbiAgICAgICAgdmFyIHJlcXVlc3QgPSBcIlwiO1xuICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IHBhcmFtcy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgdmFyIG8gPSBwYXJhbXNbaV07XG4gICAgICAgICAgICBpZiAocmVxdWVzdCkge1xuICAgICAgICAgICAgICAgIHJlcXVlc3QgKz0gXCImXCI7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXF1ZXN0ICs9IG8uayArIFwiPVwiICsgby52O1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gRXhlbXBsZSA6XG4gICAgICAgIC8vICBodHRwOi8vd3hzLmlnbi5mci9LRVkvaXRpbmVyYWlyZS9yZXN0L3JvdXRlLmpzb24/XG4gICAgICAgIC8vICBvcmlnaW49JlxuICAgICAgICAvLyAgZGVzdGluYXRpb249JlxuICAgICAgICAvLyAgd2F5cG9pbnRzPSZcbiAgICAgICAgLy8gIG1ldGhvZD1ESVNUQU5DRSZcbiAgICAgICAgLy8gIGdyYXBoPVBpZXRvbiZcbiAgICAgICAgLy8gIGdyYXBoTmFtZT1QaWV0b24mXG4gICAgICAgIC8vICBleGNsdXNpb25zPSZcbiAgICAgICAgLy8gIHRvbGVyYW5jZT0xMCZcbiAgICAgICAgLy8gIHNycz1cblxuICAgICAgICB0aGlzLmxvZ2dlci50cmFjZShyZXF1ZXN0KTtcbiAgICAgICAgdGhpcy5yZXF1ZXN0U3RyaW5nID0gcmVxdWVzdDtcblxuICAgICAgICByZXR1cm4gdGhpcy5yZXF1ZXN0U3RyaW5nO1xuICAgIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IFJvdXRlUmVxdWVzdFJFU1Q7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Services/Route/Request/RouteRequestREST.js\n"); + +/***/ }), + +/***/ "./src/Services/Route/Request/model/RouteParamREST.js": +/*!************************************************************!*\ + !*** ./src/Services/Route/Request/model/RouteParamREST.js ***! + \************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n\n\n/**\n * @classdesc\n * Classe de gestion des param. des requêtes du service de calcul d'itineraire (REST).\n * Permet le mapping avec les options du service.\n * @constructor\n * @alias Gp.Services.Route.Request.RouteParamREST\n * @param {Object} options - options\n *\n * @private\n */\nfunction RouteParamREST(options) {\n if (!(this instanceof RouteParamREST)) {\n throw new TypeError(\"RouteParamREST constructor cannot be called as a function.\");\n }\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger();\n this.logger.trace(\"[Constructeur RouteParamREST ()]\");\n /**\n * Options en paramêtres du constructeur.\n */\n this.options = options || {};\n\n // mapping des options avec l'API REST\n\n /** Ressource utilisée */\n this.resource = this.options.resource;\n\n /** Coordonnées du point de départ. */\n this.start = this.options.startPoint.x + \",\" + this.options.startPoint.y;\n\n /** Coordonnées du point d’arrivée. */\n this.end = this.options.endPoint.x + \",\" + this.options.endPoint.y;\n\n /** Coordonnées des étapes point de départ. */\n this.intermediates = this.options.viaPoints;\n\n /** Nom du profile à utiliser */\n this.profile = this.options.graph;\n\n /** projection (code EPSG comme epsg:4326 ou wgs84) */\n this.crs = this.options.srs;\n\n /** Liste des contraintes */\n this.constraints = this.options.constraints;\n\n /** Nom de l'optimisation à utiliser */\n this.optimization = this.options.routePreference;\n\n /** Format de sortie (résumé de l’itinéraire) */\n this.getSteps = this.options.geometryInInstructions ? \"true\" : \"false\";\n\n /** Unité des distances */\n this.distanceUnit = this.options.distanceUnit;\n\n /** Unité des durées */\n this.timeUnit = this.options.timeUnit;\n\n /** Attributs des voies */\n this.waysAttributes = this.options.waysAttributes;\n}\n\n/**\n * CLASSNAME\n */\nRouteParamREST.CLASSNAME = \"RouteParamREST\";\nRouteParamREST.prototype = {\n /**\n * @lends module:RouteParamREST#\n */\n\n /**\n * Constructeur (alias)\n */\n constructor: RouteParamREST,\n /**\n * Retourne une liste de points\n * @returns {String} une liste de points (sep '|')\n */\n getIntermediates: function getIntermediates() {\n var array = [];\n if (this.intermediates.length !== 0) {\n for (var i = 0; i < this.intermediates.length; i++) {\n var obj = this.intermediates[i];\n array.push(obj.x + \",\" + obj.y);\n }\n }\n return array.join(\"|\");\n },\n /**\n * Retourne une liste d'attributs\n * @returns {String} une liste d'attributs (sep '|')\n */\n getWaysAttributes: function getWaysAttributes() {\n return this.waysAttributes.join(\"|\");\n },\n /**\n * Retourne un profile\n * @returns {String} profile\n */\n getProfile: function getProfile() {\n return this.profile;\n },\n /**\n * Retourne un distanceUnit\n * @returns {String} distanceUnit\n */\n getDistanceUnit: function getDistanceUnit() {\n if (this.distanceUnit === \"m\") {\n return \"meter\";\n }\n if (this.distanceUnit === \"km\") {\n return \"kilometer\";\n }\n return \"\";\n },\n /**\n * Retourne une optimisation\n * @returns {String} optimization\n */\n getOptimization: function getOptimization() {\n if (this.optimization) {\n return this.optimization;\n } else {\n return \"\";\n }\n },\n /**\n * Retourne la liste des constraints\n * @returns {String} une liste des constraints (sep '|')\n */\n getConstraints: function getConstraints() {\n var constraintArray = [];\n if (this.constraints.length !== 0) {\n for (var k = 0; k < this.constraints.length; k++) {\n constraintArray.push(JSON.stringify(this.constraints[k]));\n }\n }\n return constraintArray.join(\"|\");\n }\n};\n\n/**\n * Tableau de clefs/valeurs pour param.\n *\n * @returns {Array} liste de paramêtres\n */\nRouteParamREST.prototype.getParams = function () {\n var map = [];\n map.push({\n k: \"resource\",\n v: this.resource\n });\n map.push({\n k: \"start\",\n v: this.start\n });\n map.push({\n k: \"end\",\n v: this.end\n });\n map.push({\n k: \"geometryFormat\",\n v: \"geojson\"\n });\n if (this.optimization) {\n map.push({\n k: \"optimization\",\n v: this.getOptimization()\n });\n }\n if (this.intermediates) {\n map.push({\n k: \"intermediates\",\n v: this.getIntermediates()\n });\n }\n if (this.profile) {\n map.push({\n k: \"profile\",\n v: this.getProfile()\n });\n }\n if (this.constraints) {\n map.push({\n k: \"constraints\",\n v: this.getConstraints()\n });\n }\n if (this.crs) {\n map.push({\n k: \"crs\",\n v: this.crs\n });\n }\n if (this.distanceUnit) {\n map.push({\n k: \"distanceUnit\",\n v: this.getDistanceUnit()\n });\n }\n if (this.timeUnit) {\n map.push({\n k: \"timeUnit\",\n v: this.timeUnit\n });\n }\n if (this.waysAttributes) {\n map.push({\n k: \"waysAttributes\",\n v: this.getWaysAttributes()\n });\n }\n return map;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (RouteParamREST);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9Sb3V0ZS9SZXF1ZXN0L21vZGVsL1JvdXRlUGFyYW1SRVNULmpzPzczODMiXSwibmFtZXMiOlsiUm91dGVQYXJhbVJFU1QiLCJvcHRpb25zIiwiVHlwZUVycm9yIiwibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwidHJhY2UiLCJyZXNvdXJjZSIsInN0YXJ0Iiwic3RhcnRQb2ludCIsIngiLCJ5IiwiZW5kIiwiZW5kUG9pbnQiLCJpbnRlcm1lZGlhdGVzIiwidmlhUG9pbnRzIiwicHJvZmlsZSIsImdyYXBoIiwiY3JzIiwic3JzIiwiY29uc3RyYWludHMiLCJvcHRpbWl6YXRpb24iLCJyb3V0ZVByZWZlcmVuY2UiLCJnZXRTdGVwcyIsImdlb21ldHJ5SW5JbnN0cnVjdGlvbnMiLCJkaXN0YW5jZVVuaXQiLCJ0aW1lVW5pdCIsIndhe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m5zIHtTdHJpbmd9IGRpc3RhbmNlVW5pdFxuICAgICAqL1xuICAgIGdldERpc3RhbmNlVW5pdCA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgaWYgKHRoaXMuZGlzdGFuY2VVbml0ID09PSBcIm1cIikge1xuICAgICAgICAgICAgcmV0dXJuIFwibWV0ZXJcIjtcbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy5kaXN0YW5jZVVuaXQgPT09IFwia21cIikge1xuICAgICAgICAgICAgcmV0dXJuIFwia2lsb21ldGVyXCI7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIFwiXCI7XG4gICAgfSxcblxuICAgIC8qKlxuICAgICAqIFJldG91cm5lIHVuZSBvcHRpbWlzYXRpb25cbiAgICAgKiBAcmV0dXJucyB7U3RyaW5nfSBvcHRpbWl6YXRpb25cbiAgICAgKi9cbiAgICBnZXRPcHRpbWl6YXRpb24gOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgIGlmICh0aGlzLm9wdGltaXphdGlvbikge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMub3B0aW1pemF0aW9uO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0dXJuIFwiXCI7XG4gICAgICAgIH1cbiAgICB9LFxuXG4gICAgLyoqXG4gICAgICogUmV0b3VybmUgbGEgbGlzdGUgZGVzIGNvbnN0cmFpbnRzXG4gICAgICogQHJldHVybnMge1N0cmluZ30gdW5lIGxpc3RlIGRlcyBjb25zdHJhaW50cyAoc2VwICd8JylcbiAgICAgKi9cbiAgICBnZXRDb25zdHJhaW50cyA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgdmFyIGNvbnN0cmFpbnRBcnJheSA9IFtdO1xuXG4gICAgICAgIGlmICh0aGlzLmNvbnN0cmFpbnRzLmxlbmd0aCAhPT0gMCkge1xuICAgICAgICAgICAgZm9yICh2YXIgayA9IDA7IGsgPCB0aGlzLmNvbnN0cmFpbnRzLmxlbmd0aDsgaysrKSB7XG4gICAgICAgICAgICAgICAgY29uc3RyYWludEFycmF5LnB1c2goSlNPTi5zdHJpbmdpZnkodGhpcy5jb25zdHJhaW50c1trXSkpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBjb25zdHJhaW50QXJyYXkuam9pbihcInxcIik7XG4gICAgfVxufTtcblxuLyoqXG4gKiBUYWJsZWF1IGRlIGNsZWZzL3ZhbGV1cnMgcG91ciBwYXJhbS5cbiAqXG4gKiBAcmV0dXJucyB7QXJyYXl9IGxpc3RlIGRlIHBhcmFtw6p0cmVzXG4gKi9cblJvdXRlUGFyYW1SRVNULnByb3RvdHlwZS5nZXRQYXJhbXMgPSBmdW5jdGlvbiAoKSB7XG4gICAgdmFyIG1hcCA9IFtdO1xuXG4gICAgbWFwLnB1c2goe1xuICAgICAgICBrIDogXCJyZXNvdXJjZVwiLFxuICAgICAgICB2IDogdGhpcy5yZXNvdXJjZVxuICAgIH0pO1xuXG4gICAgbWFwLnB1c2goe1xuICAgICAgICBrIDogXCJzdGFydFwiLFxuICAgICAgICB2IDogdGhpcy5zdGFydFxuICAgIH0pO1xuXG4gICAgbWFwLnB1c2goe1xuICAgICAgICBrIDogXCJlbmRcIixcbiAgICAgICAgdiA6IHRoaXMuZW5kXG4gICAgfSk7XG5cbiAgICBtYXAucHVzaCh7XG4gICAgICAgIGsgOiBcImdlb21ldHJ5Rm9ybWF0XCIsXG4gICAgICAgIHYgOiBcImdlb2pzb25cIlxuICAgIH0pO1xuXG4gICAgaWYgKHRoaXMub3B0aW1pemF0aW9uKSB7XG4gICAgICAgIG1hcC5wdXNoKHtcbiAgICAgICAgICAgIGsgOiBcIm9wdGltaXphdGlvblwiLFxuICAgICAgICAgICAgdiA6IHRoaXMuZ2V0T3B0aW1pemF0aW9uKClcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgaWYgKHRoaXMuaW50ZXJtZWRpYXRlcykge1xuICAgICAgICBtYXAucHVzaCh7XG4gICAgICAgICAgICBrIDogXCJpbnRlcm1lZGlhdGVzXCIsXG4gICAgICAgICAgICB2IDogdGhpcy5nZXRJbnRlcm1lZGlhdGVzKClcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgaWYgKHRoaXMucHJvZmlsZSkge1xuICAgICAgICBtYXAucHVzaCh7XG4gICAgICAgICAgICBrIDogXCJwcm9maWxlXCIsXG4gICAgICAgICAgICB2IDogdGhpcy5nZXRQcm9maWxlKClcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgaWYgKHRoaXMuY29uc3RyYWludHMpIHtcbiAgICAgICAgbWFwLnB1c2goe1xuICAgICAgICAgICAgayA6IFwiY29uc3RyYWludHNcIixcbiAgICAgICAgICAgIHYgOiB0aGlzLmdldENvbnN0cmFpbnRzKClcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgaWYgKHRoaXMuY3JzKSB7XG4gICAgICAgIG1hcC5wdXNoKHtcbiAgICAgICAgICAgIGsgOiBcImNyc1wiLFxuICAgICAgICAgICAgdiA6IHRoaXMuY3JzXG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIGlmICh0aGlzLmRpc3RhbmNlVW5pdCkge1xuICAgICAgICBtYXAucHVzaCh7XG4gICAgICAgICAgICBrIDogXCJkaXN0YW5jZVVuaXRcIixcbiAgICAgICAgICAgIHYgOiB0aGlzLmdldERpc3RhbmNlVW5pdCgpXG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIGlmICh0aGlzLnRpbWVVbml0KSB7XG4gICAgICAgIG1hcC5wdXNoKHtcbiAgICAgICAgICAgIGsgOiBcInRpbWVVbml0XCIsXG4gICAgICAgICAgICB2IDogdGhpcy50aW1lVW5pdFxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBpZiAodGhpcy53YXlzQXR0cmlidXRlcykge1xuICAgICAgICBtYXAucHVzaCh7XG4gICAgICAgICAgICBrIDogXCJ3YXlzQXR0cmlidXRlc1wiLFxuICAgICAgICAgICAgdiA6IHRoaXMuZ2V0V2F5c0F0dHJpYnV0ZXMoKVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICByZXR1cm4gbWFwO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgUm91dGVQYXJhbVJFU1Q7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Services/Route/Request/model/RouteParamREST.js\n"); + +/***/ }), + +/***/ "./src/Services/Route/Response/RouteResponseFactory.js": +/*!*************************************************************!*\ + !*** ./src/Services/Route/Response/RouteResponseFactory.js ***! + \*************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Exceptions/ErrorService */ \"./src/Exceptions/ErrorService.js\");\n/* harmony import */ var _model_RouteResponse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./model/RouteResponse */ \"./src/Services/Route/Response/model/RouteResponse.js\");\n/* harmony import */ var _model_RouteInstruction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./model/RouteInstruction */ \"./src/Services/Route/Response/model/RouteInstruction.js\");\n\n\n\n\n\n\n/**\n * Factory pour générer une reponse JSON à partir d'un XML ou d'un JSON\n * (Factory)\n *\n * @module RouteResponseFactory\n * @alias Gp.Services.Route.Response.RouteResponseFactory\n * @private\n */\nvar RouteResponseFactory = {\n /**\n * interface unique\n *\n * @method build\n * @static\n * @param {Object} options - options definies dans le composant Route\n *\n * @example\n * var options = {\n * response :\n * outputFormat :\n * rawResponse :\n * scope :\n * onSuccess :\n * onError :\n * };\n *\n */\n build: function build(options) {\n // logger\n var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"RouteResponseFactory\");\n logger.trace(\"RouteResponseFactory::build()\");\n var data = null;\n if (options.response) {\n if (options.rawResponse) {\n logger.trace(\"analyze response : raw\");\n data = options.response;\n } else {\n logger.trace(\"analyze response : json\");\n var JSONResponse;\n if (typeof options.response === \"string\") {\n JSONResponse = JSON.parse(options.response);\n } else {\n JSONResponse = options.response;\n }\n\n // construction de l'objet réponse JSON\n if (JSONResponse) {\n // le service renvoie t il une erreur ?\n if (JSONResponse.message) {\n // ex. {\"message\":\"message not null\", \"status\":\"ERROR\"}\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EXCEPTION\", JSONResponse.message)));\n return;\n }\n var legs = [];\n var legSteps = [];\n var steps = [];\n data = new _model_RouteResponse__WEBPACK_IMPORTED_MODULE_3__[\"default\"]();\n if (data.hasOwnProperty(\"totalTime\")) {\n data.totalTime = parseFloat(JSONResponse.duration);\n }\n if (data.hasOwnProperty(\"totalDistance\")) {\n data.totalDistance = parseFloat(JSONResponse.distance);\n }\n if (data.hasOwnProperty(\"bbox\")) {\n data.bbox.left = parseFloat(JSONResponse.bbox[0]);\n data.bbox.bottom = parseFloat(JSONResponse.bbox[1]);\n data.bbox.right = parseFloat(JSONResponse.bbox[2]);\n data.bbox.top = parseFloat(JSONResponse.bbox[3]);\n }\n if (data.hasOwnProperty(\"routeGeometry\") && !options.geometryInInstructions) {\n data.routeGeometry = JSONResponse.geometry;\n }\n if (data.hasOwnProperty(\"routeInstructions\") && options.geometryInInstructions) {\n var legList = JSONResponse.portions;\n var i;\n if (Array.isArray(legList) && legList.length) {\n for (i = 0; i < legList.length; i++) {\n legs.push(legList[i]);\n }\n }\n if (legs.length) {\n for (i = 0; i < legs.length; i++) {\n legSteps.push(legs[i].steps);\n }\n }\n if (legSteps.length) {\n for (i = 0; i < legSteps.length; i++) {\n steps = steps.concat(legSteps[i]);\n }\n }\n steps.forEach(function (step) {\n data.routeInstructions.push(new _model_RouteInstruction__WEBPACK_IMPORTED_MODULE_4__[\"default\"]());\n data.routeInstructions[data.routeInstructions.length - 1].duration = step.duration;\n data.routeInstructions[data.routeInstructions.length - 1].distance = step.distance;\n data.routeInstructions[data.routeInstructions.length - 1].code = \"\";\n data.routeInstructions[data.routeInstructions.length - 1].instruction = \"\";\n data.routeInstructions[data.routeInstructions.length - 1].geometry = step.geometry;\n\n // on ne souhaite pas de ce type de valeur...\n if (step.name === \"Valeur non renseignée\") {\n step.name = \"\";\n }\n switch (step.instruction.type) {\n case \"turn\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"Tourner\";\n break;\n case \"new name\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"Continuer tout droit\";\n break;\n case \"depart\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"Départ\";\n break;\n case \"arrive\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"Arrivée\";\n break;\n case \"merge\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"Rejoindre\";\n break;\n case \"ramp\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"Prendre la bretelle\";\n break;\n case \"on ramp\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"Prendre la bretelle\";\n break;\n case \"off ramp\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"Prendre la sortie\";\n break;\n case \"fork\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"Sur la bifurcation, prendre\";\n break;\n case \"end of road\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"À la fin de la route, prendre\";\n break;\n case \"use lane\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"Utiliser la file\";\n break;\n case \"continue\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"Continuer\";\n break;\n case \"roundabout\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"Au rond-point\";\n break;\n case \"rotary\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"Au rond-point\";\n break;\n case \"roundabout turn\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"Au rond point, tourner\";\n break;\n case \"notification\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"\";\n break;\n default:\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"?\" + step.instruction.type + \"?\";\n break;\n }\n if (step.instruction.modifier) {\n switch (step.instruction.modifier) {\n case \"uturn\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction = \"Faire demi-tour\";\n break;\n case \"sharp right\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \" complètement à droite\";\n break;\n case \"right\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \" à droite\";\n break;\n case \"slight right\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \" légèrement à droite\";\n break;\n case \"straight\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction = \"Continuer tout droit\";\n break;\n case \"slight left\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \" lègèrement à gauche\";\n break;\n case \"left\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \" à gauche\";\n break;\n case \"sharp left\":\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \" complètement à gauche\";\n break;\n default:\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \" ?\" + step.instruction.modifier + \"?\";\n break;\n }\n }\n if (step.instruction.exit) {\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \"\".concat(step.instruction.exit, \"e sortie\");\n }\n if (step.attributes.name) {\n if (step.attributes.name.nom_1_droite || step.attributes.name.toponyme) {\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \" sur\";\n }\n if (step.attributes.name.nom_1_droite) {\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \" \".concat(step.attributes.name.nom_1_droite);\n }\n if (step.attributes.name.toponyme) {\n data.routeInstructions[data.routeInstructions.length - 1].instruction += \" \".concat(step.attributes.name.toponyme);\n }\n }\n });\n }\n }\n if (!data) {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_ANALYSE\", \"json\")));\n return;\n }\n\n // Si la réponse contenait une exception renvoyée par le service\n if (data.exceptionReport) {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EXCEPTION_2\")));\n return;\n }\n }\n } else {\n options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EMPTY\")));\n return;\n }\n options.onSuccess.call(options.scope, data);\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (RouteResponseFactory);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9Sb3V0ZS9SZXNwb25zZS9Sb3V0ZVJlc3BvbnNlRmFjdG9yeS5qcz8zMTg2Il0sIm5hbWVzIjpbIlJvdXRlUmVzcG9uc2VGYWN0b3J5IiwiYnVpbGQiLCJvcHRpb25zIiwibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwidHJhY2UiLCJkYXRhIiwicmVzcG9uc2UiLCJyYXdSZXNwb25zZSIsIkpTT05SZXNwb25zZSIsIkp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cmFjZShcImFuYWx5emUgcmVzcG9uc2UgOiByYXdcIik7XG4gICAgICAgICAgICAgICAgZGF0YSA9IG9wdGlvbnMucmVzcG9uc2U7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGxvZ2dlci50cmFjZShcImFuYWx5emUgcmVzcG9uc2UgOiBqc29uXCIpO1xuXG4gICAgICAgICAgICAgICAgdmFyIEpTT05SZXNwb25zZTtcbiAgICAgICAgICAgICAgICBpZiAodHlwZW9mIG9wdGlvbnMucmVzcG9uc2UgPT09IFwic3RyaW5nXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgSlNPTlJlc3BvbnNlID0gSlNPTi5wYXJzZShvcHRpb25zLnJlc3BvbnNlKTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBKU09OUmVzcG9uc2UgPSBvcHRpb25zLnJlc3BvbnNlO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIC8vIGNvbnN0cnVjdGlvbiBkZSBsJ29iamV0IHLDqXBvbnNlIEpTT05cbiAgICAgICAgICAgICAgICBpZiAoSlNPTlJlc3BvbnNlKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIGxlIHNlcnZpY2UgcmVudm9pZSB0IGlsIHVuZSBlcnJldXIgP1xuICAgICAgICAgICAgICAgICAgICBpZiAoSlNPTlJlc3BvbnNlLm1lc3NhZ2UpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGV4LiB7XCJtZXNzYWdlXCI6XCJtZXNzYWdlIG5vdCBudWxsXCIsIFwic3RhdHVzXCI6XCJFUlJPUlwifVxuICAgICAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5vbkVycm9yLmNhbGwob3B0aW9ucy5zY29wZSwgbmV3IEVycm9yU2VydmljZShNUmVzLmdldE1lc3NhZ2UoXCJTRVJWSUNFX1JFU1BPTlNFX0VYQ0VQVElPTlwiLCBKU09OUmVzcG9uc2UubWVzc2FnZSkpKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB2YXIgbGVncyA9IFtdO1xuICAgICAgICAgICAgICAgICAgICB2YXIgbGVnU3RlcHMgPSBbXTtcbiAgICAgICAgICAgICAgICAgICAgdmFyIHN0ZXBzID0gW107XG5cbiAgICAgICAgICAgICAgICAgICAgZGF0YSA9IG5ldyBSb3V0ZVJlc3BvbnNlKCk7XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoXCJ0b3RhbFRpbWVcIikpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEudG90YWxUaW1lID0gcGFyc2VGbG9hdChKU09OUmVzcG9uc2UuZHVyYXRpb24pO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGlmIChkYXRhLmhhc093blByb3BlcnR5KFwidG90YWxEaXN0YW5jZVwiKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS50b3RhbERpc3RhbmNlID0gcGFyc2VGbG9hdChKU09OUmVzcG9uc2UuZGlzdGFuY2UpO1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoXCJiYm94XCIpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBkYXRhLmJib3gubGVmdCA9IHBhcnNlRmxvYXQoSlNPTlJlc3BvbnNlLmJib3hbMF0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5iYm94LmJvdHRvbSA9IHBhcnNlRmxvYXQoSlNPTlJlc3BvbnNlLmJib3hbMV0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5iYm94LnJpZ2h0ID0gcGFyc2VGbG9hdChKU09OUmVzcG9uc2UuYmJveFsyXSk7XG4gICAgICAgICAgICAgICAgICAgICAgICBkYXRhLmJib3gudG9wID0gcGFyc2VGbG9hdChKU09OUmVzcG9uc2UuYmJveFszXSk7XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICBpZiAoZGF0YS5oYXNPd25Qcm9wZXJ0eShcInJvdXRlR2VvbWV0cnlcIikgJiYgIW9wdGlvbnMuZ2VvbWV0cnlJbkluc3RydWN0aW9ucykge1xuICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5yb3V0ZUdlb21ldHJ5ID0gSlNPTlJlc3BvbnNlLmdlb21ldHJ5O1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoXCJyb3V0ZUluc3RydWN0aW9uc1wiKSAmJiBvcHRpb25zLmdlb21ldHJ5SW5JbnN0cnVjdGlvbnMpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBsZWdMaXN0ID0gSlNPTlJlc3BvbnNlLnBvcnRpb25zO1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGk7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShsZWdMaXN0KSAmJiBsZWdMaXN0Lmxlbmd0aCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvciAoaSA9IDA7IGkgPCBsZWdMaXN0Lmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxlZ3MucHVzaChsZWdMaXN0W2ldKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAobGVncy5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGkgPSAwOyBpIDwgbGVncy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZWdTdGVwcy5wdXNoKGxlZ3NbaV0uc3RlcHMpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChsZWdTdGVwcy5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGkgPSAwOyBpIDwgbGVnU3RlcHMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RlcHMgPSBzdGVwcy5jb25jYXQobGVnU3RlcHNbaV0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgc3RlcHMuZm9yRWFjaChmdW5jdGlvbiAoc3RlcCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEucm91dGVJbnN0cnVjdGlvbnMucHVzaChuZXcgUm91dGVJbnN0cnVjdGlvbigpKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zW2RhdGEucm91dGVJbnN0cnVjdGlvbnMubGVuZ3RoIC0gMV0uZHVyYXRpb24gPSBzdGVwLmR1cmF0aW9uO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEucm91dGVJbnN0cnVjdGlvbnNbZGF0YS5yb3V0ZUluc3RydWN0aW9ucy5sZW5ndGggLSAxXS5kaXN0YW5jZSA9IHN0ZXAuZGlzdGFuY2U7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5yb3V0ZUluc3RydWN0aW9uc1tkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zLmxlbmd0aCAtIDFdLmNvZGUgPSBcIlwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEucm91dGVJbnN0cnVjdGlvbnNbZGF0YS5yb3V0ZUluc3RydWN0aW9ucy5sZW5ndGggLSAxXS5pbnN0cnVjdGlvbiA9IFwiXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5yb3V0ZUluc3RydWN0aW9uc1tkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zLmxlbmd0aCAtIDFdLmdlb21ldHJ5ID0gc3RlcC5nZW9tZXRyeTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIG9uIG5lIHNvdWhhaXRlIHBhcyBkZSBjZSB0eXBlIGRlIHZhbGV1ci4uLlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChzdGVwLm5hbWUgPT09IFwiVmFsZXVyIG5vbiByZW5zZWlnbsOpZVwiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0ZXAubmFtZSA9IFwiXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3dpdGNoIChzdGVwLmluc3RydWN0aW9uLnR5cGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSBcInR1cm5cIjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEucm91dGVJbnN0cnVjdGlvbnNbZGF0YS5yb3V0ZUluc3RydWN0aW9ucy5sZW5ndGggLSAxXS5pbnN0cnVjdGlvbiArPSBcIlRvdXJuZXJcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlIFwibmV3IG5hbWVcIjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEucm91dGVJbnN0cnVjdGlvbnNbZGF0YS5yb3V0ZUluc3RydWN0aW9ucy5sZW5ndGggLSAxXS5pbnN0cnVjdGlvbiArPSBcIkNvbnRpbnVlciB0b3V0IGRyb2l0XCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSBcImRlcGFydFwiOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5yb3V0ZUluc3RydWN0aW9uc1tkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zLmxlbmd0aCAtIDFdLmluc3RydWN0aW9uICs9IFwiRMOpcGFydFwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgXCJhcnJpdmVcIjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEucm91dGVJbnN0cnVjdGlvbnNbZGF0YS5yb3V0ZUluc3RydWN0aW9ucy5sZW5ndGggLSAxXS5pbnN0cnVjdGlvbiArPSBcIkFycml2w6llXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSBcIm1lcmdlXCI6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zW2RhdGEucm91dGVJbnN0cnVjdGlvbnMubGVuZ3RoIC0gMV0uaW5zdHJ1Y3Rpb24gKz0gXCJSZWpvaW5kcmVcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlIFwicmFtcFwiOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5yb3V0ZUluc3RydWN0aW9uc1tkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zLmxlbmd0aCAtIDFdLmluc3RydWN0aW9uICs9IFwiUHJlbmRyZSBsYSBicmV0ZWxsZVwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgXCJvbiByYW1wXCI6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zW2RhdGEucm91dGVJbnN0cnVjdGlvbnMubGVuZ3RoIC0gMV0uaW5zdHJ1Y3Rpb24gKz0gXCJQcmVuZHJlIGxhIGJyZXRlbGxlXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSBcIm9mZiByYW1wXCI6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zW2RhdGEucm91dGVJbnN0cnVjdGlvbnMubGVuZ3RoIC0gMV0uaW5zdHJ1Y3Rpb24gKz0gXCJQcmVuZHJlIGxhIHNvcnRpZVwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgXCJmb3JrXCI6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zW2RhdGEucm91dGVJbnN0cnVjdGlvbnMubGVuZ3RoIC0gMV0uaW5zdHJ1Y3Rpb24gKz0gXCJTdXIgbGEgYmlmdXJjYXRpb24sIHByZW5kcmVcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlIFwiZW5kIG9mIHJvYWRcIjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEucm91dGVJbnN0cnVjdGlvbnNbZGF0YS5yb3V0ZUluc3RydWN0aW9ucy5sZW5ndGggLSAxXS5pbnN0cnVjdGlvbiArPSBcIsOAIGxhIGZpbiBkZSBsYSByb3V0ZSwgcHJlbmRyZVwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgXCJ1c2UgbGFuZVwiOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5yb3V0ZUluc3RydWN0aW9uc1tkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zLmxlbmd0aCAtIDFdLmluc3RydWN0aW9uICs9IFwiVXRpbGlzZXIgbGEgZmlsZVwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgXCJjb250aW51ZVwiOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5yb3V0ZUluc3RydWN0aW9uc1tkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zLmxlbmd0aCAtIDFdLmluc3RydWN0aW9uICs9IFwiQ29udGludWVyXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSBcInJvdW5kYWJvdXRcIjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEucm91dGVJbnN0cnVjdGlvbnNbZGF0YS5yb3V0ZUluc3RydWN0aW9ucy5sZW5ndGggLSAxXS5pbnN0cnVjdGlvbiArPSBcIkF1IHJvbmQtcG9pbnRcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlIFwicm90YXJ5XCI6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zW2RhdGEucm91dGVJbnN0cnVjdGlvbnMubGVuZ3RoIC0gMV0uaW5zdHJ1Y3Rpb24gKz0gXCJBdSByb25kLXBvaW50XCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSBcInJvdW5kYWJvdXQgdHVyblwiOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5yb3V0ZUluc3RydWN0aW9uc1tkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zLmxlbmd0aCAtIDFdLmluc3RydWN0aW9uICs9IFwiQXUgcm9uZCBwb2ludCwgdG91cm5lclwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgXCJub3RpZmljYXRpb25cIjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEucm91dGVJbnN0cnVjdGlvbnNbZGF0YS5yb3V0ZUluc3RydWN0aW9ucy5sZW5ndGggLSAxXS5pbnN0cnVjdGlvbiArPSBcIlwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zW2RhdGEucm91dGVJbnN0cnVjdGlvbnMubGVuZ3RoIC0gMV0uaW5zdHJ1Y3Rpb24gKz0gXCI/XCIgKyBzdGVwLmluc3RydWN0aW9uLnR5cGUgKyBcIj9cIjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChzdGVwLmluc3RydWN0aW9uLm1vZGlmaWVyKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN3aXRjaCAoc3RlcC5pbnN0cnVjdGlvbi5tb2RpZmllcikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSBcInV0dXJuXCI6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5yb3V0ZUluc3RydWN0aW9uc1tkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zLmxlbmd0aCAtIDFdLmluc3RydWN0aW9uID0gXCJGYWlyZSBkZW1pLXRvdXJcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgXCJzaGFycCByaWdodFwiOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEucm91dGVJbnN0cnVjdGlvbnNbZGF0YS5yb3V0ZUluc3RydWN0aW9ucy5sZW5ndGggLSAxXS5pbnN0cnVjdGlvbiArPSBcIiBjb21wbMOodGVtZW50IMOgIGRyb2l0ZVwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSBcInJpZ2h0XCI6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5yb3V0ZUluc3RydWN0aW9uc1tkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zLmxlbmd0aCAtIDFdLmluc3RydWN0aW9uICs9IFwiIMOgIGRyb2l0ZVwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSBcInNsaWdodCByaWdodFwiOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEucm91dGVJbnN0cnVjdGlvbnNbZGF0YS5yb3V0ZUluc3RydWN0aW9ucy5sZW5ndGggLSAxXS5pbnN0cnVjdGlvbiArPSBcIiBsw6lnw6hyZW1lbnQgw6AgZHJvaXRlXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlIFwic3RyYWlnaHRcIjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zW2RhdGEucm91dGVJbnN0cnVjdGlvbnMubGVuZ3RoIC0gMV0uaW5zdHJ1Y3Rpb24gPSBcIkNvbnRpbnVlciB0b3V0IGRyb2l0XCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlIFwic2xpZ2h0IGxlZnRcIjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zW2RhdGEucm91dGVJbnN0cnVjdGlvbnMubGVuZ3RoIC0gMV0uaW5zdHJ1Y3Rpb24gKz0gXCIgbMOoZ8OocmVtZW50IMOgIGdhdWNoZVwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSBcImxlZnRcIjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zW2RhdGEucm91dGVJbnN0cnVjdGlvbnMubGVuZ3RoIC0gMV0uaW5zdHJ1Y3Rpb24gKz0gXCIgw6AgZ2F1Y2hlXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlIFwic2hhcnAgbGVmdFwiOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEucm91dGVJbnN0cnVjdGlvbnNbZGF0YS5yb3V0ZUluc3RydWN0aW9ucy5sZW5ndGggLSAxXS5pbnN0cnVjdGlvbiArPSBcIiBjb21wbMOodGVtZW50IMOgIGdhdWNoZVwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zW2RhdGEucm91dGVJbnN0cnVjdGlvbnMubGVuZ3RoIC0gMV0uaW5zdHJ1Y3Rpb24gKz0gXCIgP1wiICsgc3RlcC5pbnN0cnVjdGlvbi5tb2RpZmllciArIFwiP1wiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHN0ZXAuaW5zdHJ1Y3Rpb24uZXhpdCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zW2RhdGEucm91dGVJbnN0cnVjdGlvbnMubGVuZ3RoIC0gMV0uaW5zdHJ1Y3Rpb24gKz0gYCR7c3RlcC5pbnN0cnVjdGlvbi5leGl0fWUgc29ydGllYDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoc3RlcC5hdHRyaWJ1dGVzLm5hbWUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHN0ZXAuYXR0cmlidXRlcy5uYW1lLm5vbV8xX2Ryb2l0ZSB8fCBzdGVwLmF0dHJpYnV0ZXMubmFtZS50b3BvbnltZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5yb3V0ZUluc3RydWN0aW9uc1tkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zLmxlbmd0aCAtIDFdLmluc3RydWN0aW9uICs9IFwiIHN1clwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHN0ZXAuYXR0cmlidXRlcy5uYW1lLm5vbV8xX2Ryb2l0ZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5yb3V0ZUluc3RydWN0aW9uc1tkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zLmxlbmd0aCAtIDFdLmluc3RydWN0aW9uICs9IGAgJHtzdGVwLmF0dHJpYnV0ZXMubmFtZS5ub21fMV9kcm9pdGV9YDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChzdGVwLmF0dHJpYnV0ZXMubmFtZS50b3BvbnltZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5yb3V0ZUluc3RydWN0aW9uc1tkYXRhLnJvdXRlSW5zdHJ1Y3Rpb25zLmxlbmd0aCAtIDFdLmluc3RydWN0aW9uICs9IGAgJHtzdGVwLmF0dHJpYnV0ZXMubmFtZS50b3BvbnltZX1gO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZiAoIWRhdGEpIHtcbiAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5vbkVycm9yLmNhbGwob3B0aW9ucy5zY29wZSwgbmV3IEVycm9yU2VydmljZShNUmVzLmdldE1lc3NhZ2UoXCJTRVJWSUNFX1JFU1BPTlNFX0FOQUxZU0VcIiwgXCJqc29uXCIpKSk7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAvLyBTaSBsYSByw6lwb25zZSBjb250ZW5haXQgdW5lIGV4Y2VwdGlvbiByZW52b3nDqWUgcGFyIGxlIHNlcnZpY2VcbiAgICAgICAgICAgICAgICBpZiAoZGF0YS5leGNlcHRpb25SZXBvcnQpIHtcbiAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5vbkVycm9yLmNhbGwob3B0aW9ucy5zY29wZSwgbmV3IEVycm9yU2VydmljZShNUmVzLmdldE1lc3NhZ2UoXCJTRVJWSUNFX1JFU1BPTlNFX0VYQ0VQVElPTl8yXCIpKSk7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBvcHRpb25zLm9uRXJyb3IuY2FsbChvcHRpb25zLnNjb3BlLCBuZXcgRXJyb3JTZXJ2aWNlKE1SZXMuZ2V0TWVzc2FnZShcIlNFUlZJQ0VfUkVTUE9OU0VfRU1QVFlcIikpKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIG9wdGlvbnMub25TdWNjZXNzLmNhbGwob3B0aW9ucy5zY29wZSwgZGF0YSk7XG4gICAgfVxufTtcblxuZXhwb3J0IGRlZmF1bHQgUm91dGVSZXNwb25zZUZhY3Rvcnk7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Services/Route/Response/RouteResponseFactory.js\n"); + +/***/ }), + +/***/ "./src/Services/Route/Response/model/RouteInstruction.js": +/*!***************************************************************!*\ + !*** ./src/Services/Route/Response/model/RouteInstruction.js ***! + \***************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Single Route Instruction object.\n *\n * @property {String} code - Instruction code :\n *\n * - \"F\" : Straight forward\n * - \"B\" : U-turn\n * - \"L\" : turn left\n * - \"R\" : turn right\n * - \"BL\" : turn left strongly\n * - \"BR\" : turn right strongly\n * - \"FL\" : turn lightly to the left\n * - \"FR\" : turn lightly to the right\n * - \"round_about_entry\" : round about entry\n * - \"round_about_exit\" : round about exit\n *\n * @property {String} instruction - Instruction text : translated code + street name\n * @property {Object} geometry - Geometry (expressed in [GeoJSON]{@link http://geojson.org/}) of the street.\n * @property {Float} distance - Length of the instruction. Expressed in km or m, depending on distanceUnit parameter.\n * @property {Float} duration - Instruction duration in seconds.\n *\n * @namespace\n * @alias Gp.Services.Route.RouteInstruction\n */\nfunction RouteInstruction() {\n if (!(this instanceof RouteInstruction)) {\n throw new TypeError(\"RouteInstruction constructor cannot be called as a function.\");\n }\n this.duration = null;\n this.distance = null;\n this.code = null;\n this.instruction = null;\n this.geometry = null; // FIXME can be null if option 'geometryInInstructions' is false !\n}\nRouteInstruction.prototype = {\n constructor: RouteInstruction\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (RouteInstruction);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9Sb3V0ZS9SZXNwb25zZS9tb2RlbC9Sb3V0ZUluc3RydWN0aW9uLmpzPzFlOTciXSwibmFtZXMiOlsiUm91dGVJbnN0cnVjdGlvbiIsIlR5cGVFcnJvciIsImR1cmF0aW9uIiwiZGlzdGFuY2U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RydWN0aW9uICgpIHtcbiAgICBpZiAoISh0aGlzIGluc3RhbmNlb2YgUm91dGVJbnN0cnVjdGlvbikpIHtcbiAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcihcIlJvdXRlSW5zdHJ1Y3Rpb24gY29uc3RydWN0b3IgY2Fubm90IGJlIGNhbGxlZCBhcyBhIGZ1bmN0aW9uLlwiKTtcbiAgICB9XG5cbiAgICB0aGlzLmR1cmF0aW9uID0gbnVsbDtcblxuICAgIHRoaXMuZGlzdGFuY2UgPSBudWxsO1xuXG4gICAgdGhpcy5jb2RlID0gbnVsbDtcblxuICAgIHRoaXMuaW5zdHJ1Y3Rpb24gPSBudWxsO1xuXG4gICAgdGhpcy5nZW9tZXRyeSA9IG51bGw7IC8vIEZJWE1FIGNhbiBiZSBudWxsIGlmIG9wdGlvbiAnZ2VvbWV0cnlJbkluc3RydWN0aW9ucycgaXMgZmFsc2UgIVxufVxuXG5Sb3V0ZUluc3RydWN0aW9uLnByb3RvdHlwZSA9IHtcblxuICAgIGNvbnN0cnVjdG9yIDogUm91dGVJbnN0cnVjdGlvblxuXG59O1xuXG5leHBvcnQgZGVmYXVsdCBSb3V0ZUluc3RydWN0aW9uO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/Services/Route/Response/model/RouteInstruction.js\n"); + +/***/ }), + +/***/ "./src/Services/Route/Response/model/RouteResponse.js": +/*!************************************************************!*\ + !*** ./src/Services/Route/Response/model/RouteResponse.js ***! + \************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Response object for {@link module:Services~route Gp.Services.route ()} invocation when successful. Received as the argument of onSuccess callback function.\n *\n * @property {Gp.BBox} bbox - Bounding Box of the route. Given when provideBBox parameter is used in function call.\n * @property {Object} routeGeometry - Geometry (expressed in [GeoJSON]{@link http://geojson.org/}) of the route.\n * @property {Array.} routeInstructions - Instructions of the route.\n * @property {String} totalDistance - Length of the route. If distanceUnit parameter was set to \"km\" (default), totalDistance is a string containing the total distance expressed in kilometers, followed by \" Km\" (e.g. : \"19.6 Km\"). If distanceUnit parameter was set to \"m\", totalDistance is a string containing the total distance expressed in meters (e.g. : \"19599.14\").\n * @property {Float} totalTime - Route duration in seconds.\n *\n * @namespace\n * @alias Gp.Services.RouteResponse\n */\nfunction RouteResponse() {\n if (!(this instanceof RouteResponse)) {\n throw new TypeError(\"RouteResponse constructor cannot be called as a function.\");\n }\n this.totalTime = null;\n this.totalDistance = null;\n this.bbox = {\n left: null,\n right: null,\n top: null,\n bottom: null\n };\n this.routeGeometry = null; // FIXME can be null if option 'geometryInInstructions' is true !\n\n this.routeInstructions = [];\n}\nRouteResponse.prototype = {\n constructor: RouteResponse\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (RouteResponse);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9Sb3V0ZS9SZXNwb25zZS9tb2RlbC9Sb3V0ZVJlc3BvbnNlLmpzPzg5ZTciXSwibmFtZXMiOlsiUm91dGVSZXNwb25zZSIsIlR5cGVFcnJvciIsInRvdGFsVGltZSIsInRvdGFsRGlzdGFuY2UiLCJiYm94IiwibGVmdCIsInJpZ2h0IiwidG9wIiwiYm90dG9tIiwicm91dGVHZW9tZXRyeSIsInJvdXRlSW5zdHJ1Y3Rpb25zIiwicHJvdG90eXBlIiwiY29uc3RydWN0b3IiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsU0FBU0EsYUFBYUEsQ0FBQSxFQUFJO0VBQ3RCLElBQUksRUFBRSxJQUFJLFlBQVlBLGFBQWEsQ0FBQ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9uc2UgY29uc3RydWN0b3IgY2Fubm90IGJlIGNhbGxlZCBhcyBhIGZ1bmN0aW9uLlwiKTtcbiAgICB9XG5cbiAgICB0aGlzLnRvdGFsVGltZSA9IG51bGw7XG5cbiAgICB0aGlzLnRvdGFsRGlzdGFuY2UgPSBudWxsO1xuXG4gICAgdGhpcy5iYm94ID0ge1xuICAgICAgICBsZWZ0IDogbnVsbCxcbiAgICAgICAgcmlnaHQgOiBudWxsLFxuICAgICAgICB0b3AgOiBudWxsLFxuICAgICAgICBib3R0b20gOiBudWxsXG4gICAgfTtcblxuICAgIHRoaXMucm91dGVHZW9tZXRyeSA9IG51bGw7IC8vIEZJWE1FIGNhbiBiZSBudWxsIGlmIG9wdGlvbiAnZ2VvbWV0cnlJbkluc3RydWN0aW9ucycgaXMgdHJ1ZSAhXG5cbiAgICB0aGlzLnJvdXRlSW5zdHJ1Y3Rpb25zID0gW107XG59XG5cblJvdXRlUmVzcG9uc2UucHJvdG90eXBlID0ge1xuXG4gICAgY29uc3RydWN0b3IgOiBSb3V0ZVJlc3BvbnNlXG5cbn07XG5cbmV4cG9ydCBkZWZhdWx0IFJvdXRlUmVzcG9uc2U7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Services/Route/Response/model/RouteResponse.js\n"); + +/***/ }), + +/***/ "./src/Services/Route/Route.js": +/*!*************************************!*\ + !*** ./src/Services/Route/Route.js ***! + \*************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utils/LoggerByDefault */ \"./src/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utils/MessagesResources */ \"./src/Utils/MessagesResources.js\");\n/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Exceptions/ErrorService */ \"./src/Exceptions/ErrorService.js\");\n/* harmony import */ var _CommonService__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../CommonService */ \"./src/Services/CommonService.js\");\n/* harmony import */ var _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../DefaultUrlService */ \"./src/Services/DefaultUrlService.js\");\n/* harmony import */ var _Request_RouteRequestFactory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Request/RouteRequestFactory */ \"./src/Services/Route/Request/RouteRequestFactory.js\");\n/* harmony import */ var _Response_RouteResponseFactory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Response/RouteResponseFactory */ \"./src/Services/Route/Response/RouteResponseFactory.js\");\n\n\n\n\n\n\n\n\n/**\n * @classdesc\n * Appel du service d'itinéraire du Géoportail :\n * envoi de la requête construite selon les paramètres en options,\n * éventuellement parsing et analyse de la réponse,\n * retour d'une réponse en paramètre de la fonction onSuccess.\n *\n * @alias Gp.Services.Route\n * @constructor\n * @extends {Gp.Services.CommonService}\n * @param {Object} options - options spécifiques au service (+ les options heritées)\n *\n * @param {String} options.resource - La ressource utilisée pour le calcul. Ce paramètre devrait être obligatoire car il l'est dans l'appel au service. Mais il ne l'est pas pour des raisons de rétrocompatibilité.\n *\n * @param {String} options.outputFormat - Le format de la réponse du service itineraire : 'json' uniquement et par défaut.\n *\n * @param {String} [options.routePreference = \"fastest\"] - Mode de calcul à utiliser :\n * - le plus rapide « fastest »\n * - le plus court « shortest »\n * Par défaut : « fastest ».\n *\n * @param {Object} options.startPoint - Point de départ du calcul. Coordonnées exprimées en longitudes, latitudes (EPSG:4326)\n * @param {Float} options.startPoint.x - Abcisse du point de départ du calcul d'itinéraire.\n * @param {Float} options.startPoint.y - Ordonnée du point de départ du calcul d'itinéraire.\n *\n * @param {Object} options.endPoint - Point d'arrivée du calcul. Coordonnées exprimées en longitudes, latitudes (EPSG:4326)\n * @param {Float} options.endPoint.x - Abcisse du point d'arrivée du calcul d'itinéraire.\n * @param {Float} options.endPoint.y - Ordonnée du point d'arrivée du calcul d'itinéraire.\n *\n * @param {Object[]} [options.viaPoints] - Liste de point ({x:Float,y:Float}) intermédaires que l'itinéraire doit emprunter dans l'ordre du tableau.\n * Coordonnées exprimées en longitudes, latitudes (EPSG:4326) :{x:float, y:float}\n *\n * @param {String} [options.graph = \"voiture\"] - Type de graphe utilisé : \"Voiture\" ou \"Pieton\".\n * Détermine le profil de vitesses utilisé pour le calcul ainsi que les tronçons autorisés ou non.\n * Par défaut, c'est la valeur \"Voiture\" qui sera utilisée.\n *\n * @param {String[]} [options.exclusions] - DEPRECATED: Critères d'exclusions à appliquer pour le calcul. (correspond au paramètre \"avoidFeature\" d'OpenLS)\n * On précise ici le type de tronçons que l'on ne veut pas que l'itinéraire emprunte\n * (valeurs possibles : « toll » (éviter les péages), « bridge », « tunnel »).\n * Ce paramètre est conservé pour une rétrocompatibilité de l'api. Le nouveau paramètre à utiliser est options.constraints\n *\n * @param {Object[]} [options.constraints] - Critères de contraintes à appliquer sur un itinéraire. Les valeurs disponibles dépendent de la ressource utilisée. Il est donc utile de regarder le getCapabilities.\n * @param {String} [options.constraints.constraintType] - Type de la contrainte. Généralement \"banned\".\n * @param {String} [options.constraints.key] - Clé de la contrainte. Généralement \"wayType\".\n * @param {String} [options.constraints.operator] - Opérateur de la contrainte. Généralement \"=\".\n * @param {String} [options.constraints.value] - Valeur de la contrainte. Généralement \"autoroute\".\n *\n * @param {Boolean} [options.geometryInInstructions = false] - Indique si la géométrie de l'itinéraire doit être reprise morceau par morceau dans les instructions.\n * (correspond au paramètre \"provideGeometry\" d'OpenLS) Par défaut : false.\n *\n * @param {Boolean} [options.provideBbox = true] - Indique si les instructions doivent être localisées par une bbox dans la réponse.\n * Par défaut : true.\n *\n * @param {String} [options.distanceUnit = \"m\"] - Indique si la distance doit être exprimée en km ou m dans la réponse.\n * Par défaut : m.\n * @param {String} [options.timeUnit = \"second\"] - Indique si la durée doit être exprimée en seconde, minute ou heure dans la réponse. Il peut-être formatté hh:mm::ss avec la valeur standard.\n * Les valeurs possibles sont \"standard\", \"second\", \"minute\" ou \"hour\".\n * Par défaut : \"standard\".\n *\n * @param {String} [options.srs] - Système de coordonnées dans lequel les paramètres géographiques en entrée et la réponse du service sont exprimés.\n * Pas de valeur par défaut. Si le serveur consulté est celui du Géoportail, la valeur par défaut sera donc celle du service : 'EPSG:4326'.\n *\n * @param {String[]} [options.waysAttributes] - Nom des attributs des voies. Les valeurs disponibles dépendent de la ressource utilisée. Il est donc utile de regarder le getCapabilities.\n *\n * @example\n * var options = {\n * // options communes aux services\n * apiKey : null,\n * serverUrl : 'http://localhost/service/',\n * protocol : 'XHR',\n * proxyURL : null,\n * httpMethod : 'GET', // GET|POST\n * timeOut : 10000, // ms\n * rawResponse : false, // true|false\n * scope : null, // this\n * onSuccess : function (response) {},\n * onFailure : function (error) {},\n * // spécifique au service\n * resource : 'bdtopo'\n * outputFormat : 'json',\n * startPoint : {\n * x : 42.1121,\n * y : 1.5557\n * },\n * endPoint : {\n * x : 42.1121,\n * y : 1.5557\n * },\n * provideBbox : true,\n * exclusions : [\"Bridge\", \"Tunnel\", \"Toll\"],\n * distanceUnit : \"km\",\n * graph : \"Voiture\",\n * geometryInInstructions : true,\n * routePreference : \"fastest\"\n * };\n *\n */\nfunction Route(options) {\n if (!(this instanceof Route)) {\n throw new TypeError(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"CLASS_CONSTRUCTOR\", \"Route\"));\n }\n\n /**\n * Nom de la classe (heritage)\n */\n this.CLASSNAME = \"Route\";\n\n // appel du constructeur par heritage\n _CommonService__WEBPACK_IMPORTED_MODULE_3__[\"default\"].apply(this, arguments);\n this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getLogger(\"Gp.Services.Route\");\n this.logger.trace(\"[Constructeur Route (options)]\");\n if (!options.startPoint) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_MISSING\", \"startPoint\"));\n }\n\n // on lance une exception afin d'eviter au service de le faire...\n if (options.startPoint.x === null) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_MISSING\", \"startPoint.x\"));\n }\n if (options.startPoint.y === null) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_MISSING\", \"startPoint.y\"));\n }\n if (!options.endPoint) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_MISSING\", \"endPoint\"));\n }\n\n // on lance une exception afin d'eviter au service de le faire...\n if (options.endPoint.x === null) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_MISSING\", \"endPoint.x\"));\n }\n if (options.endPoint.y === null) {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_MISSING\", \"endPoint.y\"));\n }\n\n // options par defaut\n\n // on passe l'option outputFormat en minuscules afin d'éviter des exceptions.\n if (options.outputFormat && options.outputFormat !== \"json\") {\n this.logger.warn(\"options.outputFormat could only be json\");\n }\n this.options.outputFormat = \"json\";\n this.options.resource = options.resource || \"bdtopo-osrm\";\n this.options.startPoint = options.startPoint;\n this.options.endPoint = options.endPoint;\n this.options.viaPoints = options.viaPoints || [];\n this.options.routePreference = options.routePreference || \"fastest\";\n /** Gestion des anciennes valeurs de graph */\n if (options.graph) {\n if (options.graph === \"Voiture\") {\n this.options.graph = \"car\";\n }\n if (options.graph === \"Pieton\") {\n this.options.graph = \"pedestrian\";\n }\n } else {\n this.options.graph = \"car\";\n }\n this.options.constraints = [];\n if (options.constraints) {\n if (Array.isArray(options.constraints)) {\n for (var k = 0; k < options.constraints.length; k++) {\n this.options.constraints.push(options.constraints[k]);\n }\n } else {\n throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"PARAM_TYPE\", \"constraints\"));\n }\n }\n\n /** Gestion de l'ancien paramètre exclusion */\n var constraintTunnel = {};\n var constraintPont = {};\n var constraintAutoroute = {};\n if (options.exclusions) {\n if (options.exclusions.length !== 0) {\n this.logger.warn(\"options.exclusions is DEPRECATED !!\");\n for (var c = 0; c < options.exclusions.length; c++) {\n if (typeof options.exclusions[c] === \"string\") {\n options.exclusions[c] = options.exclusions[c].toLowerCase();\n } else {\n // on ne crée pas une erreur pour rétro-compatibilité avec les anciennes versions\n continue;\n }\n if (options.exclusions[c] === \"toll\") {\n constraintAutoroute.constraintType = \"banned\";\n constraintAutoroute.key = \"wayType\";\n constraintAutoroute.operator = \"=\";\n constraintAutoroute.value = \"autoroute\";\n this.options.constraints.push(constraintAutoroute);\n }\n if (options.exclusions[c] === \"tunnel\") {\n constraintTunnel.constraintType = \"banned\";\n constraintTunnel.key = \"wayType\";\n constraintTunnel.operator = \"=\";\n constraintTunnel.value = \"tunnel\";\n this.options.constraints.push(constraintTunnel);\n }\n if (options.exclusions[c] === \"bridge\") {\n constraintPont.constraintType = \"banned\";\n constraintPont.key = \"wayType\";\n constraintPont.operator = \"=\";\n constraintPont.value = \"pont\";\n this.options.constraints.push(constraintPont);\n }\n }\n }\n }\n this.options.geometryInInstructions = options.geometryInInstructions || false;\n this.options.provideBbox = options.provideBbox || true;\n this.options.distanceUnit = options.distanceUnit || \"m\";\n this.options.timeUnit = options.timeUnit || \"second\";\n this.options.expectedStartTime = null; // FIXME not yet implemented !\n this.options.srs = options.srs || \"EPSG:4326\";\n this.options.waysAttributes = options.waysAttributes || [];\n\n // gestion de l'url du service par defaut\n // si l'url n'est pas renseignée, il faut utiliser les urls par defaut\n if (!this.options.serverUrl) {\n var UrlByDefault = _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__[\"default\"].Route.newUrl();\n if (!UrlByDefault) {\n throw new Error(\"Url by default not found !\");\n }\n this.options.serverUrl = UrlByDefault;\n this.logger.trace(\"Serveur URL par defaut : \" + this.options.serverUrl);\n }\n}\n\n/**\n * @lends module:Route#\n */\nRoute.prototype = Object.create(_CommonService__WEBPACK_IMPORTED_MODULE_3__[\"default\"].prototype, {\n // todo\n // getter/setter\n});\n\n/*\n * Constructeur (alias)\n */\nRoute.prototype.constructor = Route;\n\n/**\n * (overwrite)\n * Création de la requête\n *\n * @param {Function} error - callback des erreurs\n * @param {Function} success - callback\n */\nRoute.prototype.buildRequest = function (error, success) {\n var options = {\n // spécifique au service\n resource: this.options.resource,\n startPoint: this.options.startPoint,\n endPoint: this.options.endPoint,\n viaPoints: this.options.viaPoints,\n provideBbox: this.options.provideBbox,\n constraints: this.options.constraints,\n distanceUnit: this.options.distanceUnit,\n timeUnit: this.options.timeUnit,\n graph: this.options.graph,\n geometryInInstructions: this.options.geometryInInstructions,\n routePreference: this.options.routePreference,\n srs: this.options.srs,\n waysAttributes: this.options.waysAttributes\n };\n this.request = _Request_RouteRequestFactory__WEBPACK_IMPORTED_MODULE_5__[\"default\"].build(options);\n\n // on teste si la requete a bien été construite !\n if (!this.request) {\n error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_REQUEST_BUILD\")));\n } else {\n success.call(this, this.request);\n }\n};\n\n/**\n * (overwrite)\n * Analyse de la reponse\n *\n * @param {Function} error - callback des erreurs\n * @param {Function} success - callback\n */\nRoute.prototype.analyzeResponse = function (error, success) {\n // INFO\n // Factory pour masquer la complexité du retour du service\n\n if (this.response) {\n var options = {\n distanceUnit: this.options.distanceUnit,\n timeUnit: this.options.timeUnit,\n response: this.response,\n outputFormat: this.options.outputFormat,\n // utile pour parser la string en mode XHR : JSON ou XML !\n rawResponse: this.options.rawResponse,\n onError: error,\n onSuccess: success,\n scope: this,\n geometryInInstructions: this.options.geometryInInstructions\n };\n _Response_RouteResponseFactory__WEBPACK_IMPORTED_MODULE_6__[\"default\"].build(options);\n } else {\n error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getMessage(\"SERVICE_RESPONSE_EMPTY\")));\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Route);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9Sb3V0ZS9Sb3V0ZS5qcz9lYjIwIl0sIm5hbWVzIjpbIlJvdXRlIiwib3B0aW9ucyIsIlR5cGVFcnJvciIsIl8iLCJnZXRNZXNzYWdlIiwiQ0xBU1NOQU1FIiwiQ29tbW9uU2VydmljZSIsImFwcGx5IiwiYXJndW1lbnRzIiwibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwidHJhY2UiLCJzdGFydFBvaW50IiwiRXJyb3IiLCJ4IiwieSIsImVuZFBvaW50Iiwib3V0cHV0Rm9ybWF0Iiwid2FybiIsInJlc291cmNlIiwidmlhUG9pbnRzIiwicm91dGVQcmVmZXJlbmNlIiwiZ3JhcGgiLCJjb25zdHJhaW50cyIsIkFycmF5IiwiaXNBcnJheSIsImsiLCJsZW5ndGgiLCJwdXNoIiwiY29uc3RyYWludFR1bm5lbCIsImNvbnN0cmFpbnRQb250IiwiY29uc3RyYWludEF1dG9yb3V0ZSIsImV4Y2x1c2lvbnMiLCJjIiwidG9Mb3dlckNhc2UiLCJjb25zdHJhaW50VHlwZSIsImtleSIsIm9wZXJhdG9yIiwidmFsdWUiLCJnZW9tZXRyeUluSW5zdHJ1Y3Rpb25zIiwicHJvdmlkZUJib3giLCJka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gICAgICAgICAgb3B0aW9ucy5leGNsdXNpb25zW2NdID0gb3B0aW9ucy5leGNsdXNpb25zW2NdLnRvTG93ZXJDYXNlKCk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gb24gbmUgY3LDqWUgcGFzIHVuZSBlcnJldXIgcG91ciByw6l0cm8tY29tcGF0aWJpbGl0w6kgYXZlYyBsZXMgYW5jaWVubmVzIHZlcnNpb25zXG4gICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZiAob3B0aW9ucy5leGNsdXNpb25zW2NdID09PSBcInRvbGxcIikge1xuICAgICAgICAgICAgICAgICAgICBjb25zdHJhaW50QXV0b3JvdXRlLmNvbnN0cmFpbnRUeXBlID0gXCJiYW5uZWRcIjtcbiAgICAgICAgICAgICAgICAgICAgY29uc3RyYWludEF1dG9yb3V0ZS5rZXkgPSBcIndheVR5cGVcIjtcbiAgICAgICAgICAgICAgICAgICAgY29uc3RyYWludEF1dG9yb3V0ZS5vcGVyYXRvciA9IFwiPVwiO1xuICAgICAgICAgICAgICAgICAgICBjb25zdHJhaW50QXV0b3JvdXRlLnZhbHVlID0gXCJhdXRvcm91dGVcIjtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5vcHRpb25zLmNvbnN0cmFpbnRzLnB1c2goY29uc3RyYWludEF1dG9yb3V0ZSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmIChvcHRpb25zLmV4Y2x1c2lvbnNbY10gPT09IFwidHVubmVsXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3RyYWludFR1bm5lbC5jb25zdHJhaW50VHlwZSA9IFwiYmFubmVkXCI7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0cmFpbnRUdW5uZWwua2V5ID0gXCJ3YXlUeXBlXCI7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0cmFpbnRUdW5uZWwub3BlcmF0b3IgPSBcIj1cIjtcbiAgICAgICAgICAgICAgICAgICAgY29uc3RyYWludFR1bm5lbC52YWx1ZSA9IFwidHVubmVsXCI7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMub3B0aW9ucy5jb25zdHJhaW50cy5wdXNoKGNvbnN0cmFpbnRUdW5uZWwpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZiAob3B0aW9ucy5leGNsdXNpb25zW2NdID09PSBcImJyaWRnZVwiKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0cmFpbnRQb250LmNvbnN0cmFpbnRUeXBlID0gXCJiYW5uZWRcIjtcbiAgICAgICAgICAgICAgICAgICAgY29uc3RyYWludFBvbnQua2V5ID0gXCJ3YXlUeXBlXCI7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0cmFpbnRQb250Lm9wZXJhdG9yID0gXCI9XCI7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0cmFpbnRQb250LnZhbHVlID0gXCJwb250XCI7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMub3B0aW9ucy5jb25zdHJhaW50cy5wdXNoKGNvbnN0cmFpbnRQb250KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICB0aGlzLm9wdGlvbnMuZ2VvbWV0cnlJbkluc3RydWN0aW9ucyA9IG9wdGlvbnMuZ2VvbWV0cnlJbkluc3RydWN0aW9ucyB8fCBmYWxzZTtcbiAgICB0aGlzLm9wdGlvbnMucHJvdmlkZUJib3ggPSBvcHRpb25zLnByb3ZpZGVCYm94IHx8IHRydWU7XG4gICAgdGhpcy5vcHRpb25zLmRpc3RhbmNlVW5pdCA9IG9wdGlvbnMuZGlzdGFuY2VVbml0IHx8IFwibVwiO1xuICAgIHRoaXMub3B0aW9ucy50aW1lVW5pdCA9IG9wdGlvbnMudGltZVVuaXQgfHwgXCJzZWNvbmRcIjtcb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0IDogdGhpcy5vcHRpb25zLmRpc3RhbmNlVW5pdCxcbiAgICAgICAgICAgIHRpbWVVbml0IDogdGhpcy5vcHRpb25zLnRpbWVVbml0LFxuICAgICAgICAgICAgcmVzcG9uc2UgOiB0aGlzLnJlc3BvbnNlLFxuICAgICAgICAgICAgb3V0cHV0Rm9ybWF0IDogdGhpcy5vcHRpb25zLm91dHB1dEZvcm1hdCwgLy8gdXRpbGUgcG91ciBwYXJzZXIgbGEgc3RyaW5nIGVuIG1vZGUgWEhSIDogSlNPTiBvdSBYTUwgIVxuICAgICAgICAgICAgcmF3UmVzcG9uc2UgOiB0aGlzLm9wdGlvbnMucmF3UmVzcG9uc2UsXG4gICAgICAgICAgICBvbkVycm9yIDogZXJyb3IsXG4gICAgICAgICAgICBvblN1Y2Nlc3MgOiBzdWNjZXNzLFxuICAgICAgICAgICAgc2NvcGUgOiB0aGlzLFxuICAgICAgICAgICAgZ2VvbWV0cnlJbkluc3RydWN0aW9ucyA6IHRoaXMub3B0aW9ucy5nZW9tZXRyeUluSW5zdHJ1Y3Rpb25zXG4gICAgICAgIH07XG5cbiAgICAgICAgUm91dGVSZXNwb25zZUZhY3RvcnkuYnVpbGQob3B0aW9ucyk7XG4gICAgfSBlbHNlIHtcbiAgICAgICAgZXJyb3IuY2FsbCh0aGlzLCBuZXcgRXJyb3JTZXJ2aWNlKF8uZ2V0TWVzc2FnZShcIlNFUlZJQ0VfUkVTUE9OU0VfRU1QVFlcIikpKTtcbiAgICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBSb3V0ZTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Services/Route/Route.js\n"); + +/***/ }), + +/***/ "./src/Services/Services.js": +/*!**********************************!*\ + !*** ./src/Services/Services.js ***! + \**********************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Config_Config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Config/Config */ \"./src/Services/Config/Config.js\");\n/* harmony import */ var _Alti_Alti__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Alti/Alti */ \"./src/Services/Alti/Alti.js\");\n/* harmony import */ var _Geocode_Geocode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Geocode/Geocode */ \"./src/Services/Geocode/Geocode.js\");\n/* harmony import */ var _Geocode_ReverseGeocode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Geocode/ReverseGeocode */ \"./src/Services/Geocode/ReverseGeocode.js\");\n/* harmony import */ var _AutoComplete_AutoComplete__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AutoComplete/AutoComplete */ \"./src/Services/AutoComplete/AutoComplete.js\");\n/* harmony import */ var _Route_Route__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Route/Route */ \"./src/Services/Route/Route.js\");\n/* harmony import */ var _ProcessIsoCurve_ProcessIsoCurve__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ProcessIsoCurve/ProcessIsoCurve */ \"./src/Services/ProcessIsoCurve/ProcessIsoCurve.js\");\n/* eslint no-unused-vars: [\"error\", { \"varsIgnorePattern\": \"point|circle|bbox\" }] */\n\n/**\n* Geoportal web services invocation namespace.\n*\n* @module Services\n* @alias Gp.Services\n*/\n\n\n\n\n\n\n\nvar Services = {\n /**\n * Access to Geoportal resources metadata availables with one ore several keys\n *\n * @method getConfig\n * @param {Object} options - Options for function call.\n * @param {String} [options.apiKey] - Access key(s) (\",\" as separator, no spaces) to Geoportal platform, obtained [here]{@link https://geoservices.ign.fr/services-web}\n * @param {String} [options.customConfigFile] - path to a local config file. Overload the apiKey parameter\n * @param {Function} options.onSuccess - Callback function for getting successful service response. Takes a {@link Gp.Services.GetConfigResponse} object as a parameter except if \"rawResponse\" parameter is set to true : a String will be returned.\n * @param {Function} [options.onFailure] - Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a {@link Gp.Error} object as parameter.\n * @param {Number} [options.timeOut=0] - Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled.\n */\n getConfig: function getConfig(options) {\n var configService = new _Config_Config__WEBPACK_IMPORTED_MODULE_0__[\"default\"](options);\n configService.call();\n },\n /**\n * Getting elevations in or along of one or several points on french territories using the [elevation services of the Geoportal Platform]{@link https://geoservices.ign.fr/documentation/geoservices/alti.html}.
\n * Two use cases are availables :
\n * 1. getting elevations of the given points : don't use the options.sampling parameter ;
\n * 2. getting a regular set of elevations along the given points : use the options.sampling parameter.\n *\n * @method getAltitude\n * @param {Object} options - Options for function call.\n * @param {String} options.apiKey - Access key to Geoportal platform, obtained [here]{@link https://geoservices.ign.fr/services-web}.\n * @param {Array.} options.positions - Array of positions ({lon:float, lat:float}) expressed in CRS:84 coordinates system, where to get elevations. 50 positions maximum may be given. 2 positions minimum are required if you use the options.sampling parameter.\n * @param {Number} [options.sampling] - Number of points to use (between 2 and 5000) in order to compute an elevation path. The points given with the options.positions parameter are used to fix the planimetric path along which the elevations will be computed.
\n * If not used, only elevations of these positions will be returned.\n * @param {Boolean} [options.zonly=false] - Set this parameter to true if you only want to have elevations returned without corresponding coordinates.\n * @param {Function} options.onSuccess - Callback function for getting successful service response. Takes a {@link Gp.Services.AltiResponse} object as a parameter, except if \"rawResponse\" is set to true.\n * @param {Function} [options.onFailure] - Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a {@link Gp.Error} object as parameter.\n * @param {Number} [options.timeOut=0] - Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled.\n * @param {String} [options.serverUrl=https://data.geopf.fr/altimetrie/1.0/calcul/alti/rest/elevation.json] - Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing.\n * @param {Boolean} [options.ssl = true] - Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true).\n * @param {String} [options.protocol=XHR] - Protocol used to handle dialog with web service. Possible values are 'JSONP' ({@link https://en.wikipedia.org/wiki/JSONP}) and 'XHR' ({@link https://en.wikipedia.org/wiki/XMLHttpRequest}). Only XHR protocol is supported in a NodeJS environment. Only use if you know what you're doing.\n * @param {String} [options.proxyURL] - Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing.\n * @param {String} [options.callbackSuffix] - Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing.\n * @param {String} [options.httpMethod=GET] - HTTP method to use when requesting underlying web service in case of a XHR protocol use (see above). Possible values are 'GET' and 'POST'. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing.\n * @param {String} [options.contentType=\"application/xml\"] - Content-Type to use when requesting underlying web service in case of a XHR protocol use (see above) and if method HTTP is POST. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing.\n * @param {Boolean} [options.rawResponse=false] - Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing.\n * @param {Function} [options.onBeforeParse] - Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing.\n * @param {String} [options.api='REST'] - What API to use for interacting with underlying web service : 'REST'. Only use if you know what you are doing.\n * @param {String} [options.outputFormat='xml'] - Output format for underlying web service response : 'xml' or 'json'. Only use if you know what you are doing.\n */\n getAltitude: function getAltitude(options) {\n var altiService = new _Alti_Alti__WEBPACK_IMPORTED_MODULE_1__[\"default\"](options);\n altiService.call();\n },\n /**\n * Getting positon of a geographic identifier (places names, address, cadastral parcel, other...) using the [geocoding web service of the Geoportal Platform]{@link https://geoservices.ign.fr/documentation/geoservices/geocodage.html}.\n *\n * @example\n * Gp.Services.geocode ({\n * apiKey : \"carte\",\n * location : \"73 avenue de Paris, Saint-Mandé\",\n * // traitement des resultats\n * onSuccess : function (result) {\n * console.log(\"found (x:\"+result.position.x+\", y:\"+result.position.y+\")\") ;\n * }\n * }) ;\n *\n *\n * @method geocode\n * @param {Object} options - Options for function call.\n * @param {String} options.apiKey - Access key to Geoportal platform, obtained [here]{@link https://geoservices.ign.fr/services-web}.\n * @param {String} [options.index=\"StreetAddress\"] - Geographical identifier type to search. Values currently availables are : \"PositionOfInterest\" for place names, \"StreetAddress\" for address search, \"CadastralParcel\" for Cadastral parcels search, \"location\" for a multi-index search on \"StreetAddress\" and \"PositionOfInterest\". Default is \"StreetAddress\".\n * @param {String} options.query - Geographic identifier to locate.\n * @param {Object} [options.filters] - Additional filters to apply to search. The following properties may be given.\n * @param {String} [options.filters.[prop]] - Additionnal properties to filter search. Properties depends on options.index, and values type should be \"String\".\n *

\n * Properties availables for address search :
\n * \"postalCode\", \"inseeCode\" and \"city\".\n *

\n * Properties availables for place names search :
\n * \"postalCode\", \"inseeCode\" and \"type\".\n *

\n * Properties availables for cadastral parcels search :
\n * \"codeDepartement\", \"codeCommune\", \"nomCommune\", \"codeCommuneAbs\", \"codeArrondissement\", \"section\", \"numero\", \"feuille\".\n * @param {Number} [options.maximumResponses=20] - Maximum number of responses. Default underlying service value applies (20) if not provided.\n * @param {Boolean} [options.returnTrueGeometry=false] - Set this parameter to true if you wish to have the true geometrie returned.\n * @param {Function} options.onSuccess - Callback function for getting successful service response. Takes a {@link Gp.Services.GeocodeResponse} object as a parameter except if \"rawResponse\" is set to true.\n * @param {Function} [options.onFailure] - Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a {@link Gp.Error} object as parameter.\n * @param {Number} [options.timeOut=0] - Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled.\n * @param {String} [options.serverUrl=http (s)://data.geopf.fr/geocodage/search] - Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing.\n * @param {Boolean} [options.ssl = true] - Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true).\n * @param {String} [options.proxyURL] - Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing.\n * @param {String} [options.callbackSuffix] - Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing.\n * @param {Boolean} [options.rawResponse=false] - Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing.\n * @param {Function} [options.onBeforeParse] - Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing.\n */\n geocode: function geocode(options) {\n var geocodeService = new _Geocode_Geocode__WEBPACK_IMPORTED_MODULE_2__[\"default\"](options);\n geocodeService.call();\n },\n /**\n * Retrieving geographical identifiers (place names, address, cadastral parcels, ...) near a given position, using the [reverse geocoding web service of the Geoportal Platform]{@link https://geoservices.ign.fr/documentation/geoservices/geocodage-inverse.html}.\n *\n * @method reverseGeocode\n * @param {Object} options - Options for function call.\n * @param {String} options.apiKey - Access key to Geoportal platform, obtained [here]{@link https://geoservices.ign.fr/services-web}.\n * @param {String} [options.index=\"StreetAddress\"] - Geographical identifier type to search. Values currently availables are : \"PositionOfInterest\" for place names, \"StreetAddress\" for address search, \"CadastralParcel\" for Cadastral parcels search, \"location\" for a multi-index search on \"StreetAddress\" and \"PositionOfInterest\". Default is \"StreetAddress\".\n * @param {Object} options.position - Reference position where to search geographical identifiers.\n * @param {Float} options.position.lon - Longitude\n * @param {Float} options.position.lat - Latitude\n * @param {Object} [options.filters] - Additional filters to apply to search. The following properties may be given.\n * @param {String} [options.filters.[prop]] - Additionnal properties to filter search. Properties depends on options.index, and values type should be \"String\".\n *

\n * Properties availables for address search :
\n * \"postalCode\", \"inseeCode\" and \"city\".\n *

\n * Properties availables for place names search :
\n * \"postalCode\", \"inseeCode\" and \"type\".\n *

\n * Properties availables for cadastral parcels search :
\n * \"codeDepartement\", \"codeCommune\", \"nomCommune\", \"codeCommuneAbs\", \"codeArrondissement\", \"section\", \"numero\", \"feuille\".\n * @param {Object} [options.searchGeometry] - Location where to perform the search.\n * @param {String} options.searchGeometry.type - Geometry type (Point|Circle|Linestring|Polygon)\n * @param {Array.|Array.Array.} options.searchGeometry.coordinates - Coordinates\n * @param {Float} [options.searchGeometry.radius] - Radius (only for type 'Circle')\n * @param {Number} [options.maximumResponses=20] - Maximum number of responses. Default underlying service value applies (20) if not provided.\n * @param {Function} options.onSuccess - Callback function for getting successful service response. Takes a {@link Gp.Services.GeocodeResponse} object as a parameter except if \"rawResponse\" is set to true.\n * @param {Function} [options.onFailure] - Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a {@link Gp.Error} object as parameter.\n * @param {Number} [options.timeOut=0] - Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled.\n * @param {String} [options.serverUrl=https://data.geopf.fr/geocodage/reverse] - Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing.\n * @param {Boolean} [options.ssl = true] - Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true).\n * @param {String} [options.proxyURL] - Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing.\n * @param {String} [options.callbackSuffix] - Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing.\n * @param {Boolean} [options.rawResponse=false] - Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing.\n * @param {Function} [options.onBeforeParse] - Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing.\n */\n reverseGeocode: function reverseGeocode(options) {\n var reverseGeocodeService = new _Geocode_ReverseGeocode__WEBPACK_IMPORTED_MODULE_3__[\"default\"](options);\n reverseGeocodeService.call();\n },\n /**\n * Getting suggestions of probable places names or address based on uncomplete texts, using the [autocompletion service of the Geoportal Platform]{@link https://geoservices.ign.fr/documentation/geoservices/autocompletion.html}\n *\n * @method autoComplete\n * @param {Object} options - Options for function call.\n * @param {String} options.apiKey - Access key to Geoportal platform, obtained [here]{@link https://geoservices.ign.fr/services-web}.\n * @param {String} options.text - Text input to complete.\n * @param {Array.} [options.filterOptions.type = \"StreetAddress\"] - Suggestion types to provide : address (\"StreetAddress\") and/or place name (\"PositionOfInterest\").\n * @param {Array.} [options.filterOptions.territory] - Places where to limit the search of suggestions : \"METROPOLE\" (Corsica and metropolitan France), \"DOMTOM\" (French overseas departments and territories), or an INSEE code of a department. No limitation by default. For instance : ['METROPOLE', '31']\n * @param {Number} [options.maximumResponses = 10] - Maximum number of responses.\n * @param {Function} options.onSuccess - Callback function for getting successful service response. Takes a {@link Gp.Services.AutoCompleteResponse} object as a parameter except if \"rawResponse\" is set to true.\n * @param {Function} [options.onFailure] - Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a {@link Gp.Error} object as parameter.\n * @param {Number} [options.timeOut=0] - Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled.\n * @param {String} [options.serverUrl=https://data.geopf.fr/geocodage/completion] - Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing.\n * @param {Boolean} [options.ssl = true] - Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true).\n * @param {String} [options.protocol=XHR] - Protocol used to handle dialog with web service. Possible values are 'JSONP' ({@link https://en.wikipedia.org/wiki/JSONP}) and 'XHR' ({@link https://en.wikipedia.org/wiki/XMLHttpRequest}). Only XHR protocol is supported in a NodeJS environment. Only use if you know what you're doing.\n * @param {String} [options.proxyURL] - Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing.\n * @param {String} [options.callbackSuffix] - Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing.\n * @param {String} [options.httpMethod=GET] - HTTP method to use when requesting underlying web service in case of a XHR protocol use (see above). Possible values are 'GET' and 'POST'. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing.\n * @param {String} [options.contentType=\"application/xml\"] - Content-Type to use when requesting underlying web service in case of a XHR protocol use (see above) and if method HTTP is POST. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing.\n * @param {Boolean} [options.rawResponse=false] - Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing.\n * @param {Function} [options.onBeforeParse] - Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing.\n */\n autoComplete: function autoComplete(options) {\n var autoCompleteService = new _AutoComplete_AutoComplete__WEBPACK_IMPORTED_MODULE_4__[\"default\"](options);\n autoCompleteService.call();\n },\n /**\n * Getting a route from one point to another using the [route service of the Geoportal Platform]{@link https://geoservices.ign.fr/documentation/geoservices/itineraires.html}.\n *\n * @method route\n * @param {Object} options - Options for function call.\n * @param {String} options.resource - Resource used to compute the route. Available values are in the GetCapabilities.\n * @param {String} options.apiKey - Access key to Geoportal platform, obtained [here]{@link https://geoservices.ign.fr/services-web}.\n * @param {String} [options.routePreference = \"fastest\"] - Indicates the way to compute the route : \"fastest\" (time optimisation) or \"shortest\" (distance optimisation). Available values are in the GetCapabilities.\n * @param {Gp.Point} options.startPoint - Start point of the route. Expressed in CRS:84 coordinates system (startPoint.x corresponds to longitude, startPoint.y corresponds to latitude). Available bbox are in the GetCapabilities.\n * @param {Gp.Point} options.endPoint - End point of the route. Expressed in CRS:84 coordinates system (endPoint.x corresponds to longitude, endPoint.y corresponds to latitude). Available bbox are in the GetCapabilities.\n * @param {Array.} [options.viaPoints] - Ordered via Points of the route. Expressed in CRS:84 coordinates system (viaPoints[i].x corresponds to longitude, viaPoints[i].y corresponds to latitude). Available bbox are in the GetCapabilities.\n * @param {String} [options.graph = \"Voiture\"] - User profile to use to compute the route : \"Voiture\" (using a vehicule) or \"Pieton\" (pedestrian). Has an influence on the kind of roads the route may use and the average speed. Available bbox are in the GetCapabilities.\n * @param {Array.} [options.exclusions] - DEPRECATED: use options.constraints. Indicates if route has to avoid some features (\"toll\", \"bridge\" or \"tunnel\").\n * @param {Boolean} [options.geometryInInstructions = false] - Indicates if route geometry has to be also returned with route instructions.\n * @param {Boolean} [options.provideBoundingBox = true] - Indicates if route instructions has to be localised with a BBOX in the response.\n * @param {String} [options.distanceUnit = \"m\"] - The unit used to provide distances in the response (\"meter\" or \"kilometer\").\n * @param {String} [options.timeUnit = \"second\"] - The unit used to provide duration in the response (\"standard\", \"second\", \"minute\", \"hour\").\n * @param {Array.} [options.waysAttributes] - Way Attributes to add in the response. Available values are in the GetCapabilities.\n * @param {Array.} [options.constraints] - Constraints used ({'constraintType':'banned','key':'ways_type','operator':'=','value':'autoroute'}). Available values are in the GetCapabilities.\n * @param {Function} options.onSuccess - Callback function for getting successful service response. Takes a {@link Gp.Services.RouteResponse} object as a parameter except if \"rawResponse\" is set to true.\n * @param {Function} [options.onFailure] - Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a {@link Gp.Error} object as parameter.\n * @param {Number} [options.timeOut=0] - Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled.\n * @param {String} [options.outputFormat='json'] - Output format (\"json\" or \"xml\") to use for underlying webService. Only use if you know what you are doing.\n * @param {String} [options.serverUrl=https://data.geopf.fr/navigation/itineraire] - Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing.\n * @param {Boolean} [options.ssl = true] - Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true).\n * @param {String} [options.protocol=XHR] - Protocol used to handle dialog with web service. Possible values are 'JSONP' ({@link https://en.wikipedia.org/wiki/JSONP}) and 'XHR' ({@link https://en.wikipedia.org/wiki/XMLHttpRequest}). Only XHR protocol is supported in a NodeJS environment. Only use if you know what you're doing.\n * @param {String} [options.proxyURL] - Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing.\n * @param {String} [options.callbackSuffix] - Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing.\n * @param {String} [options.httpMethod=GET] - HTTP method to use when requesting underlying web service in case of a XHR protocol use (see above). Possible values are 'GET' and 'POST'. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing.\n * @param {String} [options.contentType=\"application/xml\"] - Content-Type to use when requesting underlying web service in case of a XHR protocol use (see above) and if method HTTP is POST. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing.\n * @param {Boolean} [options.rawResponse=false] - Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing.\n * @param {Function} [options.onBeforeParse] - Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing.\n */\n route: function route(options) {\n var routeService = new _Route_Route__WEBPACK_IMPORTED_MODULE_5__[\"default\"](options);\n routeService.call();\n },\n /**\n * Computing a set of places (curve) reachable from a given point (or from where to start to reach a given point) within a time or distance constraint using the [isochrone service of the Geoportal Platform]{@link https://geoservices.ign.fr/documentation/geoservices/isochrones.html}.\n *\n * @method isoCurve\n * @param {Object} options - Options for function call.\n * @param {String} options.apiKey - Access key to Geoportal platform, obtained [here]{@link https://geoservices.ign.fr/services-web}.\n * @param {String} options.resource - Resource used to compute the route. Available values are in the GetCapabilities.\n * @param {Gp.Point} options.position - Start or Arrival (options.reverse===true) Point for the computing. Expressed in CRS:84 coordinates system (position.x corresponds to longitude, position.y corresponds to latitude).\n * @param {String} [options.graph = \"Voiture\"] - User profile to use to compute the isoCurve : \"Voiture\" (using a vehicule) or \"Pieton\" (pedestrian). Has an influence on the kind of roads to use and the average speed. Available values are in the GetCapabilities.\n * @param {Array.} [options.exclusions] - DEPRECATED: use options.constraints. Indicates if route has to avoid some features (\"toll\", \"bridge\" or \"tunnel\").\n * @param {Array.} [options.constraints] - Constraints used ({'constraintType':'banned','key':'ways_type','operator':'=','value':'autoroute'}). Available values are in the GetCapabilities.\n * @param {String} [options.method = \"time\"] - Computing method to use : \"time\" (using a duration as a constraint) or \"distance\" (using a distance as a constraint). Available values are in the GetCapabilities.\n * @param {Float} options.time - Maximum duration (expressed in seconds) to use when options.method is set to \"time\".\n * @param {Float} options.distance - Maximum distance (expressed in meters) to use when options.method is set to \"distance\".\n * @param {Boolean} [options.reverse = false] - Set this parameter to true if you want options.position to be the destination (instead of departure) for the computing.\n * @param {String} [options.distanceUnit = \"km\"] - The unit used to provide distances in the response (\"m\" or \"km\").\n * @param {String} [options.timeUnit = \"second\"] - The unit used to provide duration in the response (\"standard\", \"second\", \"minute\", \"hour\").\n * @param {Boolean} [options.smoothing = false] - DEPRECATED: Set this parameter to true if you want the resulting geometry to be smoothed.\n * @param {Boolean} [options.holes = false] - DEPRECATED: Set this parameter to true if you want the resulting geometry (polygon) to have holes if pertinent.\n * @param {Function} options.onSuccess - Callback function for getting successful service response. Takes a {@link Gp.Services.IsoCurveResponse} object as a parameter except if \"rawResponse\" is set to true.\n * @param {Function} [options.onFailure] - Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a {@link Gp.Error} object as parameter.\n * @param {Number} [options.timeOut=0] - Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled.\n * @param {String} [options.outputFormat='json'] - Output format (\"json\") to use for underlying webService. Only use if you know what you are doing.\n * @param {String} [options.serverUrl=https://data.geopf.fr/navigation/isochrone] - Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing.\n * @param {Boolean} [options.ssl = true] - Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true).\n * @param {String} [options.protocol=XHR] - Protocol used to handle dialog with web service. Possible values are 'JSONP' ({@link https://en.wikipedia.org/wiki/JSONP}) and 'XHR' ({@link https://en.wikipedia.org/wiki/XMLHttpRequest}). Only XHR protocol is supported in a NodeJS environment. Only use if you know what you're doing.\n * @param {String} [options.proxyURL] - Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing.\n * @param {String} [options.callbackSuffix] - Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing.\n * @param {String} [options.httpMethod=GET] - HTTP method to use when requesting underlying web service in case of a XHR protocol use (see above). Possible values are 'GET' and 'POST'. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing.\n * @param {String} [options.contentType=\"application/xml\"] - Content-Type to use when requesting underlying web service in case of a XHR protocol use (see above) and if method HTTP is POST. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing.\n * @param {Boolean} [options.rawResponse=false] - Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing.\n * @param {Function} [options.onBeforeParse] - Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing.\n */\n isoCurve: function isoCurve(options) {\n var processIsoCurveService = new _ProcessIsoCurve_ProcessIsoCurve__WEBPACK_IMPORTED_MODULE_6__[\"default\"](options);\n processIsoCurveService.call();\n }\n};\n\n/**\n * Point object.\n *\n * @namespace\n * @alias Gp.Point\n *\n * @property {Float} x - Point abscissa\n * @property {Float} y - Point ordinate\n */\nvar point = {};\n\n/**\n * Circle object.\n *\n * @namespace\n * @alias Gp.Circle\n *\n * @property {Float} x - Circle center abscissa.\n * @property {Float} y - Circle center ordinate.\n * @property {Float} radius - Circle radius.\n */\nvar circle = {};\n\n/**\n * Bounding box object, expressed with four coordinates.\n *\n * @namespace\n * @alias Gp.BBox\n *\n * @property {Float} left - minimum abscissa\n * @property {Float} right - maximum abscissa\n * @property {Float} bottom - minimum ordinate\n * @property {Float} top - maximum ordinate\n */\nvar bbox = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Services);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9TZXJ2aWNlcy9TZXJ2aWNlcy5qcz83NjZmIl0sIm5hbWVzIjpbIlNlcnZpY2VzIiwiZ2V0Q29uZmlnIiwib3B0aW9ucyIsImNvbmZpZ1NlcnZpY2UiLCJDb25maWciLCJjYWxsIiwiZ2V0QWx0aXR1ZGUiLCJhbHRpU2VydmljZSIsIkFsdGkiLCJnZW9jb2RlIiwiZ2VvY29kZVNlcnZpY2UiLCJHZW9jb2RlIiwicmV2ZXJzZUdlb2NvZGUiLCJyZXZlcnNlR2VvY29kZVNlcnZpY2UiLCJSZXZlcnNlR2VvY29kZSIsImF1dG9Db21wbGV0ZSIsImF1dG9Db21wbGV0ZVNlcnZpY2UiLCJBdXRvQ29tcGxldGUiLCJyb3V0ZSIsInJvdXRlU2VydmljZSIsIlJvdXRlIiwiaXNvQ3VydmUiLCJwcm9jZXNzSXNvQ3VydmVTZXJ2aWNlIiwiUHJvY2Vzc0lzb0N1cnZlIiwicG9pbnQiLCJjaXJjbGUiLCJiYm94Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ3FDO0FBQ047QUFDUztBQUNjO0FBQ0M7QUFDckI7QUFDOEI7QUFFaEUsSUFBSUEsUUFBUSxHQUFHO0VBQ1g7QUFDSjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E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/Helper.js": +/*!*****************************!*\ + !*** ./src/Utils/Helper.js ***! + \*****************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Classe utilitaire\n *\n * @module Helper\n * @alias Gp.Helper\n */\nvar Helper = {\n /**\n * concatenation des parametres key/value dans les urls\n *\n * @method normalyzeParameters\n * @static\n * @param {Object} params - tableau de clef/valeur\n *\n * @example\n * Gp.Utils.Helper.normalyzeParameters ({\n * key1:value1,\n * key2:value2,\n * key3:value3\n * });\n * // out : \"key1=value1&key2=value2&key3=value3\"\n *\n * @returns {String} retourne les paramètres concaténés\n */\n normalyzeParameters: function normalyzeParameters(params) {\n var myParams = null;\n if (params) {\n var tabParams = [];\n for (var key in params) {\n if (params.hasOwnProperty(key)) {\n var value = params[key];\n if (!value) {\n value = \"\";\n }\n tabParams.push(key + \"=\" + value);\n }\n }\n myParams = tabParams.join(\"&\");\n }\n return myParams;\n },\n /**\n * Concaténation et encodage des urls.\n *\n * @method normalyzeUrl\n * @static\n * @param {String} url - url\n * @param {Object|String} params - tableau de clef/valeur ou string\n * @param {Boolean} encode - true|false, false par defaut\n *\n * @example\n * Gp.Utils.Helper.normalyzeUrl (url, {\n * key1:value1,\n * key2=:value2,\n * key3:value3\n * });\n * // out : \"url?key1=value1&key2=value2&key3=value3\"\n *\n * @returns {String} retourne une url normalisée\n */\n normalyzeUrl: function normalyzeUrl(url, params, encode) {\n var myUrl = url;\n if (url) {\n if (url.split(\"?\").length - 1 >= 2) {\n // S'il y a plusieurs \"?\" dans l'URL, on garde le premier et on remplace les autres par des &\n var firstOccuranceIndex = url.search(/\\?/) + 1;\n myUrl = url.substring(0, firstOccuranceIndex) + url.slice(firstOccuranceIndex).replace(/\\?/g, \"&\");\n }\n var k = url.indexOf(\"?\");\n if (k === -1) {\n // pas de ? et KVP\n myUrl += \"?\";\n }\n if (k !== -1 && k !== url.length - 1) {\n // KVP\n myUrl += \"&\";\n }\n }\n if (params) {\n if (typeof params === \"string\") {\n params = params.replace(\"?\", \"\");\n myUrl += params;\n } else {\n myUrl += this.normalyzeParameters(params);\n }\n }\n if (encode) {\n // FIXME bonne idée ?\n myUrl = encodeURIComponent(myUrl);\n }\n return myUrl;\n },\n /**\n * Indentation d'une chaine\n *\n * @method indent\n * @static\n * @param {Number} n - nombre de tabulation\n * @param {String} msg - chaine\n *\n * @example\n * Gp.Utils.Helper.indent (2, \"message à indenter\")\n * // out\n * // ........message à indenter\n *\n * @returns {String} retourne une chaine indentée\n */\n indent: function indent(n, msg) {\n var num = n || 0;\n return new Array(num + 1).join(\"\\t\") + msg;\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Helper);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9VdGlscy9IZWxwZXIuanM/ODAzNSJdLCJuYW1lcyI6WyJIZWxwZXIiLCJub3JtYWx5emVQYXJhbWV0ZXJzIiwicGFyYW1zIiwibXlQYXJhbXMiLCJ0YWJQYXJhbXMiLCJrZXkiLCJoYXNPd25Qcm9wZXJ0eSIsInZhbHVlIiwicHVzaCIsImpvaW4iLCJub3JtYWx5emVVcmwiLCJ1cmwiLCJlbmNvZGUiLCJteVVybCIsInNwbGl0IiwibGVuZ3RoIiwiZmlyc3RPY2N1cmFuY2VJbmRleCIsInNlYXJjaCIsInN1YnN0cmluZyIsInNsaWNlIiwicmVwbGFjZSIsImsiLCJpbmRleE9mIiwiZW5jb2RlVVJJQ29tcG9uZW50IiwiaW5kZW50IiwibiIsIm1zZyIsIm51bSIsIkFycmF5Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLElBQUlBLE1BQU0sR0FBRztFQUVUO0FBQ0o7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQ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ICAvLyBvdXQgOiBcImtleTE9dmFsdWUxJmtleTI9dmFsdWUyJmtleTM9dmFsdWUzXCJcbiAgICAgKlxuICAgICAqIEByZXR1cm5zIHtTdHJpbmd9IHJldG91cm5lIGxlcyBwYXJhbcOodHJlcyBjb25jYXTDqW7DqXNcbiAgICAgKi9cbiAgICBub3JtYWx5emVQYXJhbWV0ZXJzIDogZnVuY3Rpb24gKHBhcmFtcykge1xuICAgICAgICB2YXIgbXlQYXJhbXMgPSBudWxsO1xuXG4gICAgICAgIGlmIChwYXJhbXMpIHtcbiAgICAgICAgICAgIHZhciB0YWJQYXJhbXMgPSBbXTtcbiAgICAgICAgICAgIGZvciAodmFyIGtleSBpbiBwYXJhbXMpIHtcbiAgICAgICAgICAgICAgICBpZiAocGFyYW1zLmhhc093blByb3BlcnR5KGtleSkpIHtcbiAgICAgICAgICAgICAgICAgICAgdmFyIHZhbHVlID0gcGFyYW1zW2tleV07XG4gICAgICAgICAgICAgICAgICAgIGlmICghdmFsdWUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlID0gXCJcIjtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB0YWJQYXJhbXMucHVzaChrZXkgKyBcIj1cIiArIHZhbHVlKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIG15UGFyYW1zID0gdGFiUGFyYW1zLmpvaW4oXCImXCIpO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIG15UGFyYW1zO1xuICAgIH0sXG5cbiAgICAvKipcbiAgICAgKiBDb25jYXTDqW5hdGlvbiBldCBlbmNvZGFnZSBkZXMgdXJscy5cbiAgICAgKlxuICAgICAqIEBtZXRob2Qgbm9ybWFseXplVXJsXG4gICAgICogQHN0YXRpY1xuICAgICAqIEBwYXJhbSB7U3RyaW5nfSB1cmwgLSB1cmxcbiAgICAgKiBAcGFyYW0ge09iamVjdHxTdHJpbmd9IHBhc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FjZSgvXFw/L2csIFwiJlwiKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgdmFyIGsgPSB1cmwuaW5kZXhPZihcIj9cIik7XG4gICAgICAgICAgICBpZiAoayA9PT0gLTEpIHsgLy8gcGFzIGRlID8gZXQgS1ZQXG4gICAgICAgICAgICAgICAgbXlVcmwgKz0gXCI/XCI7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChrICE9PSAtMSAmJiBrICE9PSB1cmwubGVuZ3RoIC0gMSkgeyAvLyBLVlBcbiAgICAgICAgICAgICAgICBteVVybCArPSBcIiZcIjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChwYXJhbXMpIHtcbiAgICAgICAgICAgIGlmICh0eXBlb2YgcGFyYW1zID09PSBcInN0cmluZ1wiKSB7XG4gICAgICAgICAgICAgICAgcGFyYW1zID0gcGFyYW1zLnJlcGxhY2UoXCI/XCIsIFwiXCIpO1xuICAgICAgICAgICAgICAgIG15VXJsICs9IHBhcmFtcztcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgbXlVcmwgKz0gdGhpcy5ub3JtYWx5emVQYXJhbWV0ZXJzKHBhcmFtcyk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoZW5jb2RlKSB7XG4gICAgICAgICAgICAvLyBGSVhNRSBib25uZSBpZMOpZSA/XG4gICAgICAgICAgICBteVVybCA9IGVuY29kZVVSSUNvbXBvbmVudChteVVybCk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gbXlVcmw7XG4gICAgfSxcblxuICAgIC8qKlxuICAgICAqIEluZGVudGF0aW9uIGQndW5lIGNoYWluZVxuICAgICAqXG4gICAgICogQG1ldGhvZCBpbmRlbnRcbiAgICAgKiBAc3RhdGljXG4gICAgICogQHBhcmFtIHtOdW1iZXJ9IG4gLSBub21icmUgZGUgdGFidWxhdGlvblxuICAgICAqIEBwYXJhbSB7U3RyaW5nfSBtc2cgLSBjaGFpbmVcbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogR3AuVXRpbHMuSGVscGVyLmluZGVudCAoMiwgXCJtZXNzYWdlIMOgIGluZGVudGVyXCIpXG4gICAgICogLy8gb3V0XG4gICAgICogLy8gLi4uLi4uLi5tZXNzYWdlIMOgIGluZGVudGVyXG4gICAgICpcbiAgICAgKiBAcmV0dXJucyB7U3RyaW5nfSByZXRvdXJuZSB1bmUgY2hhaW5lIGluZGVudMOpZVxuICAgICAqL1xuICAgIGluZGVudCA6IGZ1bmN0aW9uIChuLCBtc2cpIHtcbiAgICAgICAgdmFyIG51bSA9IG4gfHwgMDtcbiAgICAgICAgcmV0dXJuIG5ldyBBcnJheShudW0gKyAxKS5qb2luKFwiXFx0XCIpICsgbXNnO1xuICAgIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IEhlbHBlcjtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Utils/Helper.js\n"); + +/***/ }), + +/***/ "./src/Utils/LoggerByDefault.js": +/*!**************************************!*\ + !*** ./src/Utils/LoggerByDefault.js ***! + \**************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var loglevel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! loglevel */ \"./node_modules/loglevel/lib/loglevel.js\");\n/* harmony import */ var loglevel__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(loglevel__WEBPACK_IMPORTED_MODULE_0__);\n\nvar LoggerByDefault = {\n /**\n * logger statique\n *\n * @static\n * @param {String} name - nom du logger\n * @returns {Object} retourne un logger\n */\n getLogger: function getLogger(name) {\n // Substitute global constants configured at compile time\n // cf. webpack.config.js\n // on définit process si non défini dans l'environnement\n // eslint-disable-next-line no-use-before-define\n if (typeof process === \"undefined\") {\n var process = {};\n process.env = {\n VERBOSE: false\n };\n }\n process.env.VERBOSE ? loglevel__WEBPACK_IMPORTED_MODULE_0__[\"enableAll\"]() : loglevel__WEBPACK_IMPORTED_MODULE_0__[\"disableAll\"]();\n var logname = name || \"default\";\n return loglevel__WEBPACK_IMPORTED_MODULE_0__[\"getLogger\"](logname);\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (LoggerByDefault);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9VdGlscy9Mb2dnZXJCeURlZmF1bHQuanM/ODFmMyJdLCJuYW1lcyI6WyJMb2dnZXJCeURlZmF1bHQiLCJnZXRMb2dnZXIiLCJuYW1lIiwicHJvY2VzcyIsImVudiIsIlZFUkJPU0UiLCJMb2ciLCJsb2duYW1lIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBZ0M7QUFFaEMsSUFBSUEsZUFBZSxHQUFHO0VBQ2xCO0FBQ0o7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0VBQ0lDLFNBQVMsRUFBRyxTQUFaQSxTQUFTQSxDQUFhQyxJQUFJLEVBQUU7SUFDeEI7SUFDQTtJQUNBO0lBQ0E7SUFDQSxJQUFJLE9BQU9DLE9BQU8sS0FBSyxXQUFXLEVBQUU7TUFDaEMsSUFBSUEsT0FBTyxHQUFHLENBQUMsQ0FBQztNQUNoQkEsT0FBTyxDQUFDQyxHQUFHLEdBQUc7UUFDVkMsT0FBTyxFQUFHO01BQ2QsQ0FBQztJQUNMO0lBQ0NGLE9BQU8sQ0FBQ0MsR0FBRyxDQUFDQyxPQUFPLEdBQUlDLGtEQUFhLENBQUMsQ0FBQyxHQUFHQSxtREFBYyxDQUFDLENBQUM7SUFDMUQsSUFBSUMsT0FBTyxHQUFHTCxJQUFJLElBQUksU0FBUztJQUMvQixPQUFPSSxrREFB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CgpO1xuICAgICAgICB2YXIgbG9nbmFtZSA9IG5hbWUgfHwgXCJkZWZhdWx0XCI7XG4gICAgICAgIHJldHVybiBMb2cuZ2V0TG9nZ2VyKGxvZ25hbWUpO1xuICAgIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IExvZ2dlckJ5RGVmYXVsdDtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Utils/LoggerByDefault.js\n"); + +/***/ }), + +/***/ "./src/Utils/MessagesResources.js": +/*!****************************************!*\ + !*** ./src/Utils/MessagesResources.js ***! + \****************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Classe de gestion des erreurs qui permer d'associer un message d'erreur à l'exception lancée.\n *\n * @example\n * MessagesResources.getMessage(\"ERROR_PARAM_MISSING\", \"x\", \"y\", \"z\")));\n * // --> output : Parameter(s) 'x - y - z' missing\n *\n * @module MessagesResources\n * @alias Gp.Utils.MessagesResources\n * @private\n */\nvar MessagesResources = {\n // Paramètres\n PARAM_MISSING: \"Parameter(s) '%var%' missing\",\n PARAM_EMPTY: \"Parameter(s) '%var%' empty\",\n PARAM_TYPE: \"Wrong type(s) for parameter(s) '%var%'\",\n PARAM_FORMAT: \"Parameter(s) '%var%' not correctly formatted\",\n PARAM_NOT_SUPPORT: \"Value(s) for parameter(s) '%var%' not supported\",\n PARAM_NOT_SUPPORT_NODEJS: \"Value(s) for parameter(s) '%var%' not supported to NodeJS\",\n PARAM_UNKNOWN: \"Value(s) for parameter(s) '%var%' unknown\",\n // Services\n // Requête\n SERVICE_REQUEST_BUILD: \"An error occurred during the request building of the service\",\n SERVICE_REQUEST_EMPTY: \"The request sent to the service is empty\",\n // Réponse\n SERVICE_RESPONSE_EXCEPTION: \"The service returned an exception : '%var%'\",\n SERVICE_RESPONSE_EXCEPTION_2: \"The service returned an exception\",\n SERVICE_RESPONSE_ANALYSE: \"An error occurred while parsing the response '%var%' of the service\",\n SERVICE_RESPONSE_ANALYSE_2: \"An unknown error occurred while parsing the response\",\n SERVICE_RESPONSE_EMPTY: \"The response of the service is empty\",\n SERVICE_RESPONSE_EMPTY_2: \"The response from the service could not be analyzed or is empty\",\n SERVICE_RESPONSE_FORMAT: \"The format of the service response is not supported (handled format(s) : '%var%')\",\n SERVICE_RESPONSE_FORMAT_2: \"The format of the service response is not supported\",\n SERVICE_RESPONSE_FORMAT_3: \"No suggestion matching the search\",\n // Classes\n CLASS_CONSTRUCTOR: \"'%var%' constructor cannot be called as a function.\",\n /**\n * Fonction qui va retourner le message d'erreur associé à la clé donnée\n *\n * @method getMessage\n * @param {String} clef - Clef de l'erreur (ex : ERROR_PARAM)\n * @param {String[]} parametres - Paramètres/variables concernés par le message d'erreur associé à la clef donnée\n * @return {String} message - String contenant le message de l'exception\n */\n getMessage: function getMessage(clef, parametres) {\n // param de la fonction uniquement pour la documentation...\n\n if (Object.keys(arguments).length === 0) {\n return \"Message indefined !\";\n }\n var params = Array.prototype.slice.call(arguments);\n var key = params.shift();\n var args = params;\n var message = this[key];\n try {\n if (Array.isArray(args) && args.length > 0) {\n message = message.replace(\"%var%\", args.join(\" - \"));\n } else {\n message = message.replace(\"%var%\", \"%var% (not specified)\");\n }\n } catch (e) {\n // error de string.replace()\n }\n return message;\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (MessagesResources);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9VdGlscy9NZXNzYWdlc1Jlc291cmNlcy5qcz9lYWY1Il0sIm5hbWVzIjpbIk1lc3NhZ2VzUmVzb3VyY2VzIiwiUEFSQU1fTUlTU0lORyIsIlBBUkFNX0VNUFRZIiwiUEFSQU1fVFlQRSIsIlBBUkFNX0ZPUk1BVCIsIlBBUkFNX05PVF9TVVBQT1JUIiwiUEFS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aWYgKEFycmF5LmlzQXJyYXkoYXJncykgJiYgYXJncy5sZW5ndGggPiAwKSB7XG4gICAgICAgICAgICAgICAgbWVzc2FnZSA9IG1lc3NhZ2UucmVwbGFjZShcIiV2YXIlXCIsIGFyZ3Muam9pbihcIiAtIFwiKSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIG1lc3NhZ2UgPSBtZXNzYWdlLnJlcGxhY2UoXCIldmFyJVwiLCBcIiV2YXIlIChub3Qgc3BlY2lmaWVkKVwiKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBjYXRjaCAoZSkge1xuICAgICAgICAgICAgLy8gZXJyb3IgZGUgc3RyaW5nLnJlcGxhY2UoKVxuXG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gbWVzc2FnZTtcbiAgICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBNZXNzYWdlc1Jlc291cmNlcztcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Utils/MessagesResources.js\n"); + +/***/ }), + +/***/ 0: +/*!**********************!*\ + !*** multi ./src/Gp ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(/*! /home/runner/work/geoportal-access-lib/geoportal-access-lib/src/Gp */"./src/Gp.js"); + + +/***/ }), + +/***/ "node-fetch": +/*!***********************************************************************************!*\ + !*** external {"commonjs2":"node-fetch","commonjs":"node-fetch","amd":"require"} ***! + \***********************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +eval("module.exports = __WEBPACK_EXTERNAL_MODULE_node_fetch__;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC9leHRlcm5hbCB7XCJjb21tb25qczJcIjpcIm5vZGUtZmV0Y2hcIixcImNvbW1vbmpzXCI6XCJub2RlLWZldGNoXCIsXCJhbWRcIjpcInJlcXVpcmVcIn0/YWJiZiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsImZpbGUiOiJub2RlLWZldGNoLmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBfX1dFQlBBQ0tfRVhURVJOQUxfTU9EVUxFX25vZGVfZmV0Y2hfXzsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///node-fetch\n"); + +/***/ }) + +/******/ })["default"]; +}); \ No newline at end of file diff --git a/v3.4.4/dist/GpServices-src.js b/v3.4.4/dist/GpServices-src.js new file mode 100644 index 00000000..750782d4 --- /dev/null +++ b/v3.4.4/dist/GpServices-src.js @@ -0,0 +1,15990 @@ +/*! + * @brief Geoportal resources access library + * + * This software is released under the licence CeCILL-B (Free BSD compatible) + * @see http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt + * @see http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.txt + * @see http://www.cecill.info/ + * + * copyright CeCILL-B + * copyright IGN + * @author IGN + * @version 3.4.4 + * @date 17/11/2024 + * + */ +/*! + * @overview es6-promise - a tiny implementation of Promises/A+. + * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) + * @license Licensed under MIT license + * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE + * @version v4.2.4 + */ + +(function webpackUniversalModuleDefinition(root, factory) { + if(typeof exports === 'object' && typeof module === 'object') + module.exports = factory(require("node-fetch")); + else if(typeof define === 'function' && define.amd) + define("Gp", ["require"], factory); + else if(typeof exports === 'object') + exports["Gp"] = factory(require("node-fetch")); + else + root["Gp"] = factory(root[undefined]); +})(this, function(__WEBPACK_EXTERNAL_MODULE__14__) { +return /******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 0); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(1); + + +/***/ }), +/* 1 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "servicesVersion", function() { return servicesVersion; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "servicesDate", function() { return servicesDate; }); +/* harmony import */ var _Services_Services__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2); +/* harmony import */ var _Services_DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24); +/* harmony import */ var _Services_Alti_Response_model_AltiResponse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37); +/* harmony import */ var _Services_Alti_Response_model_Elevation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(38); +/* harmony import */ var _Services_AutoComplete_Response_model_AutoCompleteResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51); +/* harmony import */ var _Services_AutoComplete_Response_model_SuggestedLocation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(52); +/* harmony import */ var _Services_ProcessIsoCurve_Response_model_ProcessIsoCurveResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64); +/* harmony import */ var _Services_Route_Response_model_RouteResponse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58); +/* harmony import */ var _Services_Route_Response_model_RouteInstruction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(59); +/* harmony import */ var _Services_Config_Config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3); +/* harmony import */ var _Protocols_XHR__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(10); +/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(22); +/* harmony import */ var _Utils_Helper__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(8); +/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(23); +var _package_json__WEBPACK_IMPORTED_MODULE_13___namespace = /*#__PURE__*/__webpack_require__.t(23, 1); +/** +* Global variable Gp. +* +* @module Gp +* @alias Gp +* @description +* +* This is the global variable that is exposed in the browser environment. +* Content is composed of constructor, functions and properties... +* +* > {@link Gp.Error Error()} +* - .TYPE_SRVERR : "SERVICE_ERROR" +* - .TYPE_UNKERR : "UNKNOWN_ERROR" +* - .TYPE_USEERR : "USAGE_ERROR" +* +* > {@link module:Helper Helper} +* - .indent() +* - .normalyzeParameters() +* - .normalyzeUrl() +* +* > {@link module:XHR Protocols.XHR} +* - .call() +* +* > {@link module:Services Services (objects)} +* - .Alti +* - {@link Gp.Services.Alti.Elevation .Elevation()} +* - {@link Gp.Services.AltiResponse .AltiResponse()} +* - .AutoComplete +* - {@link Gp.Services.AutoComplete.SuggestedLocation .SuggestedLocation()} +* - {@link Gp.Services.AutoCompleteResponse .AutoCompleteResponse()} +* - {@link Gp.Services.Config .Config()} +* - {@link Gp.Services.DefaultUrl .DefaultUrl()} +* - {@link Gp.Services.GeocodeResponse .GeocodeResponse()} +* - {@link Gp.Services.GetConfigResponse .GetConfigResponse()} +* - {@link Gp.Services.IsoCurveResponse .IsoCurveResponse()} +* - .Route +* - {@link Gp.Services.Route.RouteInstruction .RouteInstruction()} +* - {@link Gp.Services.RouteResponse .RouteResponse()} +* +* > Services (factory) +* - {@link module:Services~autoComplete .autoComplete()} +* - {@link module:Services~geocode .geocode()} +* - {@link module:Services~getAltitude .getAltitude()} +* - {@link module:Services~getConfig .getConfig()} +* - {@link module:Services~isoCurve .isoCurve()} +* - {@link module:Services~reverseGeocode .reverseGeocode()} +* - {@link module:Services~route .route()} +* +* > servicesDate : "YYYY-MM-DD" +* +* > servicesVersion : "X.X.X" +* +*/ + + + + + + + + + + + + + + + + +/** Version */ +var servicesVersion = _package_json__WEBPACK_IMPORTED_MODULE_13__.version; +/** Publication date */ +var servicesDate = _package_json__WEBPACK_IMPORTED_MODULE_13__.date; + +// on declare les ns dans root global +var Gp = {}; +Gp.servicesVersion = servicesVersion; +Gp.servicesDate = servicesDate; + +// Export Protocols +Gp.Protocols = {}; +Gp.Protocols.XHR = _Protocols_XHR__WEBPACK_IMPORTED_MODULE_10__["default"]; +// Export services +Gp.Services = _Services_Services__WEBPACK_IMPORTED_MODULE_0__["default"]; +// Export DefaultUrls +Gp.Services.DefaultUrl = _Services_DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__["default"]; +// Export Alti +Gp.Services.AltiResponse = _Services_Alti_Response_model_AltiResponse__WEBPACK_IMPORTED_MODULE_2__["default"]; +Gp.Services.Alti = {}; +Gp.Services.Alti.Elevation = _Services_Alti_Response_model_Elevation__WEBPACK_IMPORTED_MODULE_3__["default"]; +// Export Autocomplete +Gp.Services.AutoCompleteResponse = _Services_AutoComplete_Response_model_AutoCompleteResponse__WEBPACK_IMPORTED_MODULE_4__["default"]; +Gp.Services.AutoComplete = {}; +Gp.Services.AutoComplete.SuggestedLocation = _Services_AutoComplete_Response_model_SuggestedLocation__WEBPACK_IMPORTED_MODULE_5__["default"]; +// Export Config +Gp.Services.Config = _Services_Config_Config__WEBPACK_IMPORTED_MODULE_9__["default"]; +// Export IsoCurve +Gp.Services.IsoCurveResponse = _Services_ProcessIsoCurve_Response_model_ProcessIsoCurveResponse__WEBPACK_IMPORTED_MODULE_6__["default"]; +// Export Route +Gp.Services.RouteResponse = _Services_Route_Response_model_RouteResponse__WEBPACK_IMPORTED_MODULE_7__["default"]; +Gp.Services.Route = {}; +Gp.Services.Route.RouteInstruction = _Services_Route_Response_model_RouteInstruction__WEBPACK_IMPORTED_MODULE_8__["default"]; +// Export Erreurs et Outils +Gp.Error = _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_11__["default"]; +Gp.Helper = _Utils_Helper__WEBPACK_IMPORTED_MODULE_12__["default"]; +/* harmony default export */ __webpack_exports__["default"] = (Gp); + +/***/ }), +/* 2 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Config_Config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3); +/* harmony import */ var _Alti_Alti__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26); +/* harmony import */ var _Geocode_Geocode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(40); +/* harmony import */ var _Geocode_ReverseGeocode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48); +/* harmony import */ var _AutoComplete_AutoComplete__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49); +/* harmony import */ var _Route_Route__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53); +/* harmony import */ var _ProcessIsoCurve_ProcessIsoCurve__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(60); +/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "point|circle|bbox" }] */ + +/** +* Geoportal web services invocation namespace. +* +* @module Services +* @alias Gp.Services +*/ + + + + + + + +var Services = { + /** + * Access to Geoportal resources metadata availables with one ore several keys + * + * @method getConfig + * @param {Object} options - Options for function call. + * @param {String} [options.apiKey] - Access key(s) ("," as separator, no spaces) to Geoportal platform, obtained [here]{@link https://geoservices.ign.fr/services-web} + * @param {String} [options.customConfigFile] - path to a local config file. Overload the apiKey parameter + * @param {Function} options.onSuccess - Callback function for getting successful service response. Takes a {@link Gp.Services.GetConfigResponse} object as a parameter except if "rawResponse" parameter is set to true : a String will be returned. + * @param {Function} [options.onFailure] - Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a {@link Gp.Error} object as parameter. + * @param {Number} [options.timeOut=0] - Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled. + */ + getConfig: function getConfig(options) { + var configService = new _Config_Config__WEBPACK_IMPORTED_MODULE_0__["default"](options); + configService.call(); + }, + /** + * Getting elevations in or along of one or several points on french territories using the [elevation services of the Geoportal Platform]{@link https://geoservices.ign.fr/documentation/geoservices/alti.html}.
+ * Two use cases are availables :
+ * 1. getting elevations of the given points : don't use the options.sampling parameter ;
+ * 2. getting a regular set of elevations along the given points : use the options.sampling parameter. + * + * @method getAltitude + * @param {Object} options - Options for function call. + * @param {String} options.apiKey - Access key to Geoportal platform, obtained [here]{@link https://geoservices.ign.fr/services-web}. + * @param {Array.} options.positions - Array of positions ({lon:float, lat:float}) expressed in CRS:84 coordinates system, where to get elevations. 50 positions maximum may be given. 2 positions minimum are required if you use the options.sampling parameter. + * @param {Number} [options.sampling] - Number of points to use (between 2 and 5000) in order to compute an elevation path. The points given with the options.positions parameter are used to fix the planimetric path along which the elevations will be computed.
+ * If not used, only elevations of these positions will be returned. + * @param {Boolean} [options.zonly=false] - Set this parameter to true if you only want to have elevations returned without corresponding coordinates. + * @param {Function} options.onSuccess - Callback function for getting successful service response. Takes a {@link Gp.Services.AltiResponse} object as a parameter, except if "rawResponse" is set to true. + * @param {Function} [options.onFailure] - Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a {@link Gp.Error} object as parameter. + * @param {Number} [options.timeOut=0] - Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled. + * @param {String} [options.serverUrl=https://data.geopf.fr/altimetrie/1.0/calcul/alti/rest/elevation.json] - Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing. + * @param {Boolean} [options.ssl = true] - Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true). + * @param {String} [options.protocol=XHR] - Protocol used to handle dialog with web service. Possible values are 'JSONP' ({@link https://en.wikipedia.org/wiki/JSONP}) and 'XHR' ({@link https://en.wikipedia.org/wiki/XMLHttpRequest}). Only XHR protocol is supported in a NodeJS environment. Only use if you know what you're doing. + * @param {String} [options.proxyURL] - Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing. + * @param {String} [options.callbackSuffix] - Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing. + * @param {String} [options.httpMethod=GET] - HTTP method to use when requesting underlying web service in case of a XHR protocol use (see above). Possible values are 'GET' and 'POST'. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing. + * @param {String} [options.contentType="application/xml"] - Content-Type to use when requesting underlying web service in case of a XHR protocol use (see above) and if method HTTP is POST. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing. + * @param {Boolean} [options.rawResponse=false] - Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing. + * @param {Function} [options.onBeforeParse] - Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing. + * @param {String} [options.api='REST'] - What API to use for interacting with underlying web service : 'REST'. Only use if you know what you are doing. + * @param {String} [options.outputFormat='xml'] - Output format for underlying web service response : 'xml' or 'json'. Only use if you know what you are doing. + */ + getAltitude: function getAltitude(options) { + var altiService = new _Alti_Alti__WEBPACK_IMPORTED_MODULE_1__["default"](options); + altiService.call(); + }, + /** + * Getting positon of a geographic identifier (places names, address, cadastral parcel, other...) using the [geocoding web service of the Geoportal Platform]{@link https://geoservices.ign.fr/documentation/geoservices/geocodage.html}. + * + * @example + * Gp.Services.geocode ({ + * apiKey : "carte", + * location : "73 avenue de Paris, Saint-Mandé", + * // traitement des resultats + * onSuccess : function (result) { + * console.log("found (x:"+result.position.x+", y:"+result.position.y+")") ; + * } + * }) ; + * + * + * @method geocode + * @param {Object} options - Options for function call. + * @param {String} options.apiKey - Access key to Geoportal platform, obtained [here]{@link https://geoservices.ign.fr/services-web}. + * @param {String} [options.index="StreetAddress"] - Geographical identifier type to search. Values currently availables are : "PositionOfInterest" for place names, "StreetAddress" for address search, "CadastralParcel" for Cadastral parcels search, "location" for a multi-index search on "StreetAddress" and "PositionOfInterest". Default is "StreetAddress". + * @param {String} options.query - Geographic identifier to locate. + * @param {Object} [options.filters] - Additional filters to apply to search. The following properties may be given. + * @param {String} [options.filters.[prop]] - Additionnal properties to filter search. Properties depends on options.index, and values type should be "String". + *

+ * Properties availables for address search :
+ * "postalCode", "inseeCode" and "city". + *

+ * Properties availables for place names search :
+ * "postalCode", "inseeCode" and "type". + *

+ * Properties availables for cadastral parcels search :
+ * "codeDepartement", "codeCommune", "nomCommune", "codeCommuneAbs", "codeArrondissement", "section", "numero", "feuille". + * @param {Number} [options.maximumResponses=20] - Maximum number of responses. Default underlying service value applies (20) if not provided. + * @param {Boolean} [options.returnTrueGeometry=false] - Set this parameter to true if you wish to have the true geometrie returned. + * @param {Function} options.onSuccess - Callback function for getting successful service response. Takes a {@link Gp.Services.GeocodeResponse} object as a parameter except if "rawResponse" is set to true. + * @param {Function} [options.onFailure] - Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a {@link Gp.Error} object as parameter. + * @param {Number} [options.timeOut=0] - Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled. + * @param {String} [options.serverUrl=http (s)://data.geopf.fr/geocodage/search] - Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing. + * @param {Boolean} [options.ssl = true] - Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true). + * @param {String} [options.proxyURL] - Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing. + * @param {String} [options.callbackSuffix] - Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing. + * @param {Boolean} [options.rawResponse=false] - Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing. + * @param {Function} [options.onBeforeParse] - Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing. + */ + geocode: function geocode(options) { + var geocodeService = new _Geocode_Geocode__WEBPACK_IMPORTED_MODULE_2__["default"](options); + geocodeService.call(); + }, + /** + * Retrieving geographical identifiers (place names, address, cadastral parcels, ...) near a given position, using the [reverse geocoding web service of the Geoportal Platform]{@link https://geoservices.ign.fr/documentation/geoservices/geocodage-inverse.html}. + * + * @method reverseGeocode + * @param {Object} options - Options for function call. + * @param {String} options.apiKey - Access key to Geoportal platform, obtained [here]{@link https://geoservices.ign.fr/services-web}. + * @param {String} [options.index="StreetAddress"] - Geographical identifier type to search. Values currently availables are : "PositionOfInterest" for place names, "StreetAddress" for address search, "CadastralParcel" for Cadastral parcels search, "location" for a multi-index search on "StreetAddress" and "PositionOfInterest". Default is "StreetAddress". + * @param {Object} options.position - Reference position where to search geographical identifiers. + * @param {Float} options.position.lon - Longitude + * @param {Float} options.position.lat - Latitude + * @param {Object} [options.filters] - Additional filters to apply to search. The following properties may be given. + * @param {String} [options.filters.[prop]] - Additionnal properties to filter search. Properties depends on options.index, and values type should be "String". + *

+ * Properties availables for address search :
+ * "postalCode", "inseeCode" and "city". + *

+ * Properties availables for place names search :
+ * "postalCode", "inseeCode" and "type". + *

+ * Properties availables for cadastral parcels search :
+ * "codeDepartement", "codeCommune", "nomCommune", "codeCommuneAbs", "codeArrondissement", "section", "numero", "feuille". + * @param {Object} [options.searchGeometry] - Location where to perform the search. + * @param {String} options.searchGeometry.type - Geometry type (Point|Circle|Linestring|Polygon) + * @param {Array.|Array.Array.} options.searchGeometry.coordinates - Coordinates + * @param {Float} [options.searchGeometry.radius] - Radius (only for type 'Circle') + * @param {Number} [options.maximumResponses=20] - Maximum number of responses. Default underlying service value applies (20) if not provided. + * @param {Function} options.onSuccess - Callback function for getting successful service response. Takes a {@link Gp.Services.GeocodeResponse} object as a parameter except if "rawResponse" is set to true. + * @param {Function} [options.onFailure] - Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a {@link Gp.Error} object as parameter. + * @param {Number} [options.timeOut=0] - Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled. + * @param {String} [options.serverUrl=https://data.geopf.fr/geocodage/reverse] - Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing. + * @param {Boolean} [options.ssl = true] - Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true). + * @param {String} [options.proxyURL] - Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing. + * @param {String} [options.callbackSuffix] - Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing. + * @param {Boolean} [options.rawResponse=false] - Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing. + * @param {Function} [options.onBeforeParse] - Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing. + */ + reverseGeocode: function reverseGeocode(options) { + var reverseGeocodeService = new _Geocode_ReverseGeocode__WEBPACK_IMPORTED_MODULE_3__["default"](options); + reverseGeocodeService.call(); + }, + /** + * Getting suggestions of probable places names or address based on uncomplete texts, using the [autocompletion service of the Geoportal Platform]{@link https://geoservices.ign.fr/documentation/geoservices/autocompletion.html} + * + * @method autoComplete + * @param {Object} options - Options for function call. + * @param {String} options.apiKey - Access key to Geoportal platform, obtained [here]{@link https://geoservices.ign.fr/services-web}. + * @param {String} options.text - Text input to complete. + * @param {Array.} [options.filterOptions.type = "StreetAddress"] - Suggestion types to provide : address ("StreetAddress") and/or place name ("PositionOfInterest"). + * @param {Array.} [options.filterOptions.territory] - Places where to limit the search of suggestions : "METROPOLE" (Corsica and metropolitan France), "DOMTOM" (French overseas departments and territories), or an INSEE code of a department. No limitation by default. For instance : ['METROPOLE', '31'] + * @param {Number} [options.maximumResponses = 10] - Maximum number of responses. + * @param {Function} options.onSuccess - Callback function for getting successful service response. Takes a {@link Gp.Services.AutoCompleteResponse} object as a parameter except if "rawResponse" is set to true. + * @param {Function} [options.onFailure] - Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a {@link Gp.Error} object as parameter. + * @param {Number} [options.timeOut=0] - Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled. + * @param {String} [options.serverUrl=https://data.geopf.fr/geocodage/completion] - Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing. + * @param {Boolean} [options.ssl = true] - Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true). + * @param {String} [options.protocol=XHR] - Protocol used to handle dialog with web service. Possible values are 'JSONP' ({@link https://en.wikipedia.org/wiki/JSONP}) and 'XHR' ({@link https://en.wikipedia.org/wiki/XMLHttpRequest}). Only XHR protocol is supported in a NodeJS environment. Only use if you know what you're doing. + * @param {String} [options.proxyURL] - Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing. + * @param {String} [options.callbackSuffix] - Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing. + * @param {String} [options.httpMethod=GET] - HTTP method to use when requesting underlying web service in case of a XHR protocol use (see above). Possible values are 'GET' and 'POST'. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing. + * @param {String} [options.contentType="application/xml"] - Content-Type to use when requesting underlying web service in case of a XHR protocol use (see above) and if method HTTP is POST. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing. + * @param {Boolean} [options.rawResponse=false] - Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing. + * @param {Function} [options.onBeforeParse] - Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing. + */ + autoComplete: function autoComplete(options) { + var autoCompleteService = new _AutoComplete_AutoComplete__WEBPACK_IMPORTED_MODULE_4__["default"](options); + autoCompleteService.call(); + }, + /** + * Getting a route from one point to another using the [route service of the Geoportal Platform]{@link https://geoservices.ign.fr/documentation/geoservices/itineraires.html}. + * + * @method route + * @param {Object} options - Options for function call. + * @param {String} options.resource - Resource used to compute the route. Available values are in the GetCapabilities. + * @param {String} options.apiKey - Access key to Geoportal platform, obtained [here]{@link https://geoservices.ign.fr/services-web}. + * @param {String} [options.routePreference = "fastest"] - Indicates the way to compute the route : "fastest" (time optimisation) or "shortest" (distance optimisation). Available values are in the GetCapabilities. + * @param {Gp.Point} options.startPoint - Start point of the route. Expressed in CRS:84 coordinates system (startPoint.x corresponds to longitude, startPoint.y corresponds to latitude). Available bbox are in the GetCapabilities. + * @param {Gp.Point} options.endPoint - End point of the route. Expressed in CRS:84 coordinates system (endPoint.x corresponds to longitude, endPoint.y corresponds to latitude). Available bbox are in the GetCapabilities. + * @param {Array.} [options.viaPoints] - Ordered via Points of the route. Expressed in CRS:84 coordinates system (viaPoints[i].x corresponds to longitude, viaPoints[i].y corresponds to latitude). Available bbox are in the GetCapabilities. + * @param {String} [options.graph = "Voiture"] - User profile to use to compute the route : "Voiture" (using a vehicule) or "Pieton" (pedestrian). Has an influence on the kind of roads the route may use and the average speed. Available bbox are in the GetCapabilities. + * @param {Array.} [options.exclusions] - DEPRECATED: use options.constraints. Indicates if route has to avoid some features ("toll", "bridge" or "tunnel"). + * @param {Boolean} [options.geometryInInstructions = false] - Indicates if route geometry has to be also returned with route instructions. + * @param {Boolean} [options.provideBoundingBox = true] - Indicates if route instructions has to be localised with a BBOX in the response. + * @param {String} [options.distanceUnit = "m"] - The unit used to provide distances in the response ("meter" or "kilometer"). + * @param {String} [options.timeUnit = "second"] - The unit used to provide duration in the response ("standard", "second", "minute", "hour"). + * @param {Array.} [options.waysAttributes] - Way Attributes to add in the response. Available values are in the GetCapabilities. + * @param {Array.} [options.constraints] - Constraints used ({'constraintType':'banned','key':'ways_type','operator':'=','value':'autoroute'}). Available values are in the GetCapabilities. + * @param {Function} options.onSuccess - Callback function for getting successful service response. Takes a {@link Gp.Services.RouteResponse} object as a parameter except if "rawResponse" is set to true. + * @param {Function} [options.onFailure] - Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a {@link Gp.Error} object as parameter. + * @param {Number} [options.timeOut=0] - Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled. + * @param {String} [options.outputFormat='json'] - Output format ("json" or "xml") to use for underlying webService. Only use if you know what you are doing. + * @param {String} [options.serverUrl=https://data.geopf.fr/navigation/itineraire] - Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing. + * @param {Boolean} [options.ssl = true] - Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true). + * @param {String} [options.protocol=XHR] - Protocol used to handle dialog with web service. Possible values are 'JSONP' ({@link https://en.wikipedia.org/wiki/JSONP}) and 'XHR' ({@link https://en.wikipedia.org/wiki/XMLHttpRequest}). Only XHR protocol is supported in a NodeJS environment. Only use if you know what you're doing. + * @param {String} [options.proxyURL] - Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing. + * @param {String} [options.callbackSuffix] - Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing. + * @param {String} [options.httpMethod=GET] - HTTP method to use when requesting underlying web service in case of a XHR protocol use (see above). Possible values are 'GET' and 'POST'. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing. + * @param {String} [options.contentType="application/xml"] - Content-Type to use when requesting underlying web service in case of a XHR protocol use (see above) and if method HTTP is POST. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing. + * @param {Boolean} [options.rawResponse=false] - Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing. + * @param {Function} [options.onBeforeParse] - Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing. + */ + route: function route(options) { + var routeService = new _Route_Route__WEBPACK_IMPORTED_MODULE_5__["default"](options); + routeService.call(); + }, + /** + * Computing a set of places (curve) reachable from a given point (or from where to start to reach a given point) within a time or distance constraint using the [isochrone service of the Geoportal Platform]{@link https://geoservices.ign.fr/documentation/geoservices/isochrones.html}. + * + * @method isoCurve + * @param {Object} options - Options for function call. + * @param {String} options.apiKey - Access key to Geoportal platform, obtained [here]{@link https://geoservices.ign.fr/services-web}. + * @param {String} options.resource - Resource used to compute the route. Available values are in the GetCapabilities. + * @param {Gp.Point} options.position - Start or Arrival (options.reverse===true) Point for the computing. Expressed in CRS:84 coordinates system (position.x corresponds to longitude, position.y corresponds to latitude). + * @param {String} [options.graph = "Voiture"] - User profile to use to compute the isoCurve : "Voiture" (using a vehicule) or "Pieton" (pedestrian). Has an influence on the kind of roads to use and the average speed. Available values are in the GetCapabilities. + * @param {Array.} [options.exclusions] - DEPRECATED: use options.constraints. Indicates if route has to avoid some features ("toll", "bridge" or "tunnel"). + * @param {Array.} [options.constraints] - Constraints used ({'constraintType':'banned','key':'ways_type','operator':'=','value':'autoroute'}). Available values are in the GetCapabilities. + * @param {String} [options.method = "time"] - Computing method to use : "time" (using a duration as a constraint) or "distance" (using a distance as a constraint). Available values are in the GetCapabilities. + * @param {Float} options.time - Maximum duration (expressed in seconds) to use when options.method is set to "time". + * @param {Float} options.distance - Maximum distance (expressed in meters) to use when options.method is set to "distance". + * @param {Boolean} [options.reverse = false] - Set this parameter to true if you want options.position to be the destination (instead of departure) for the computing. + * @param {String} [options.distanceUnit = "km"] - The unit used to provide distances in the response ("m" or "km"). + * @param {String} [options.timeUnit = "second"] - The unit used to provide duration in the response ("standard", "second", "minute", "hour"). + * @param {Boolean} [options.smoothing = false] - DEPRECATED: Set this parameter to true if you want the resulting geometry to be smoothed. + * @param {Boolean} [options.holes = false] - DEPRECATED: Set this parameter to true if you want the resulting geometry (polygon) to have holes if pertinent. + * @param {Function} options.onSuccess - Callback function for getting successful service response. Takes a {@link Gp.Services.IsoCurveResponse} object as a parameter except if "rawResponse" is set to true. + * @param {Function} [options.onFailure] - Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a {@link Gp.Error} object as parameter. + * @param {Number} [options.timeOut=0] - Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled. + * @param {String} [options.outputFormat='json'] - Output format ("json") to use for underlying webService. Only use if you know what you are doing. + * @param {String} [options.serverUrl=https://data.geopf.fr/navigation/isochrone] - Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing. + * @param {Boolean} [options.ssl = true] - Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true). + * @param {String} [options.protocol=XHR] - Protocol used to handle dialog with web service. Possible values are 'JSONP' ({@link https://en.wikipedia.org/wiki/JSONP}) and 'XHR' ({@link https://en.wikipedia.org/wiki/XMLHttpRequest}). Only XHR protocol is supported in a NodeJS environment. Only use if you know what you're doing. + * @param {String} [options.proxyURL] - Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing. + * @param {String} [options.callbackSuffix] - Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing. + * @param {String} [options.httpMethod=GET] - HTTP method to use when requesting underlying web service in case of a XHR protocol use (see above). Possible values are 'GET' and 'POST'. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing. + * @param {String} [options.contentType="application/xml"] - Content-Type to use when requesting underlying web service in case of a XHR protocol use (see above) and if method HTTP is POST. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing. + * @param {Boolean} [options.rawResponse=false] - Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing. + * @param {Function} [options.onBeforeParse] - Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing. + */ + isoCurve: function isoCurve(options) { + var processIsoCurveService = new _ProcessIsoCurve_ProcessIsoCurve__WEBPACK_IMPORTED_MODULE_6__["default"](options); + processIsoCurveService.call(); + } +}; + +/** + * Point object. + * + * @namespace + * @alias Gp.Point + * + * @property {Float} x - Point abscissa + * @property {Float} y - Point ordinate + */ +var point = {}; + +/** + * Circle object. + * + * @namespace + * @alias Gp.Circle + * + * @property {Float} x - Circle center abscissa. + * @property {Float} y - Circle center ordinate. + * @property {Float} radius - Circle radius. + */ +var circle = {}; + +/** + * Bounding box object, expressed with four coordinates. + * + * @namespace + * @alias Gp.BBox + * + * @property {Float} left - minimum abscissa + * @property {Float} right - maximum abscissa + * @property {Float} bottom - minimum ordinate + * @property {Float} top - maximum ordinate + */ +var bbox = {}; +/* harmony default export */ __webpack_exports__["default"] = (Services); + +/***/ }), +/* 3 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _CommonService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7); +/* harmony import */ var _DefaultUrlService__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24); +/* harmony import */ var _ConfigInterface__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25); +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } +function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } + + + + + + +/** + * @classdesc + * + * Recupération de la configuration de clés Géoportail sous forme de JSON + * + * @constructor + * @extends {Gp.Services.CommonService} + * @alias Gp.Services.Config + * @param {Object} options - options spécifiques au service (+ les options heritées) + * @param {Sting} options.apiKey - clé(s) dont on veut obtenir la configuration. Si plusieurs clés, séparer chacune par une virgule + * @param {Boolean} [options.sync=false] - force le mode synchrone + * @param {String} options.customConfigFile - chemin vers un fichier de configuration personnalisé. Surcharge le paramètre apiKey. + * @see Gp.Services.GetConfigInterface + * + * @example + * var options = { + * apiKey : "cartes,ortho", + * sync : false, + * onSuccess : function (response) {}, + * onFailure : function (error) {}, + * }; + * + */ +function Config(options) { + if (!(this instanceof Config)) { + throw new TypeError(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("CLASS_CONSTRUCTOR", "Config")); + } + + /** + * Nom de la classe (heritage) + */ + this.CLASSNAME = "Config"; + this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("Gp.Config"); + this.logger.trace("[Constructeur Config (options)]"); + + // ##################### + // analyse des options + // ##################### + + // gestion du callback onSuccess + var bOnSuccess = !!(options.onSuccess !== null && typeof options.onSuccess === "function"); + if (!bOnSuccess) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_MISSING", "onSuccess()")); + } + if (!options.apiKey && !options.customConfigFile) { + // si pas de thème spécifié, on récupère toutes les ressources possibles dans l'objet Config + options.apiKey = "full"; + } + this.options = {}; + this.options.onSuccess = options.onSuccess; + this.options.onFailure = options.onFailure; + + // mode sync + this.options.sync = options.sync || false; + + // gestion d'un tableau d'url des fichiers de configuration + this.options.listConfigUrls = options.customConfigFile ? [options.customConfigFile] : !Array.isArray(options.apiKey) ? _DefaultUrlService__WEBPACK_IMPORTED_MODULE_3__["default"].Config.url(options.apiKey.split(",")) : _DefaultUrlService__WEBPACK_IMPORTED_MODULE_3__["default"].Config.url(options.apiKey); +} + +/** + * @lends module:Config# + */ +Config.prototype = Object.create(_CommonService__WEBPACK_IMPORTED_MODULE_2__["default"].prototype, { + // todo + // getter/setter +}); + +/** + * Constructeur (alias) + */ +Config.prototype.constructor = Config; + +/** + * Création de la requête + * + * @param {Function} error - callback des erreurs + * @param {Function} success - callback + * @overload + */ +Config.prototype.buildRequest = function (error, success) { + // liste des urls des fichiers de configuration en JSON + this.listConfigUrls = this.options.listConfigUrls; + if (!this.listConfigUrls) { + error.call(this, new Error("url by default not found !")); + return; + } + + // INFO : + // il n'y a pas de construction de requête, + // on passe directement à l'appel des requêtes + success.call(this, this.listConfigUrls); +}; + +/** + * Récupération des configuration + * + * @param {Function} error - callback des erreurs + * @param {Function} success - callback + * @overload + */ +Config.prototype.callService = function (error, success) { + if (this.options.sync) { + __callServiceSync.call(this, error, success); + } else { + __callService.call(this, error, success); + } +}; + +/** + * Requêtes en mode asynchrone + * + * @param {*} error + * @param {*} success + * @private + */ +var __callService = function __callService(error, success) { + var _this = this; + // liste des resultats au format JSON + this.listConfigResults = []; + + // test on env. nodejs or browser + var Fetch = null; + if (typeof window === "undefined") { + var nodefetch = __webpack_require__(14); + Fetch = nodefetch; + } else { + Fetch = window.fetch; + } + + // the factory of fetch ! + var fetchFactory = function fetchFactory(url) { + return Fetch(url, { + credentials: "same-origin" + }).then(function (response) { + if (response.ok) { + return response.json().then(function (json) { + // TODO : + // tester le contenu ! + return json; + })["catch"](function (error) { + throw new Error("Exception Json : " + error); + }); + } else { + throw new Error("Exception HTTP : " + response.status + " (status code) !"); + } + })["catch"](function (error) { + return new Promise(function (resolve, reject) { + // eslint-disable-line no-unused-vars + reject(error); + }); + }); + }; + + // construction des promises fetch + var promises = []; + for (var index = 0; index < this.listConfigUrls.length; index++) { + var url = this.listConfigUrls[index]; + promises.push(fetchFactory(url)); + } + Promise.all(promises).then(function (results) { + if (!results) { + throw new Error("results config empty !?"); + } + results.forEach(function (result) { + // TODO : + // verification des resultats + _this.listConfigResults.push(result); + }); + }).then(function () { + success.call(_this, _this.listConfigResults); + })["catch"](function (e) { + // TODO : + // construction d'un message + error.call(_this, e); + }); +}; + +/** + * Requêtes en mode synchrone + * + * @param {*} error + * @param {*} success + * @private + */ +var __callServiceSync = function __callServiceSync(error, success) { + // liste des resultats au format JSON + this.listConfigResults = []; + + // FIXME : + // boucle synchrone ! + for (var i = 0; i < this.listConfigUrls.length; i++) { + var url = this.listConfigUrls[i]; + // TODO : + // prévoir le CORS, headers, ... + var request = new XMLHttpRequest(); + request.open("GET", url, false); + request.send(null); + if (request.status === 200) { + // TODO : + // tester la reponse ! + var response = JSON.parse(request.responseText); + this.listConfigResults.push(response); + } + } + // callback + if (this.listConfigResults.length !== 0) { + success.call(this, this.listConfigResults); + } else { + error.call(this, new Error("...")); + } +}; + +/** + * Analyse et mise en forme de la réponse en fusionnant les configurations + * + * @param {Function} error - callback des erreurs + * @param {Function} success - callback + * @overload + */ +Config.prototype.analyzeResponse = function (error, success) { + // fonction de merge des objects JSON + var mergeConfig = function mergeConfig(objects) { + // objet fusion des couches + var allLayersConfig = {}; + // objet fusion des clés + var allKeysConfig = {}; + // objet fusion des TMS + var allTMSConfig = {}; + + // on fusionne les résultat + for (var i = 0; i < objects.length; i++) { + if (!objects[i].generalOptions || !objects[i].layers) { + return; + } + allKeysConfig = _objectSpread(_objectSpread({}, allKeysConfig), objects[i].generalOptions.apiKeys); + allLayersConfig = _objectSpread(_objectSpread({}, allLayersConfig), objects[i].layers); + allTMSConfig = _objectSpread(_objectSpread({}, allTMSConfig), objects[i].tileMatrixSets); + } + var mergedConfig = { + generalOptions: { + apiKeys: allKeysConfig + }, + layers: allLayersConfig, + tileMatrixSets: allTMSConfig + }; + return mergedConfig; + }; + + // fusion des configurations JSON + var ConfigJSON = mergeConfig(this.listConfigResults); + if (!ConfigJSON) { + error.call(this, new Error("configuration structure not conforme !")); + return; + } + + // creation des interfaces + var IConfig = new _ConfigInterface__WEBPACK_IMPORTED_MODULE_4__["default"](); + // ajout des interfaces avec la configuration JSON + Object.assign(IConfig, ConfigJSON); + + // définition de la variable globale Gp.Config + var scope = typeof window !== "undefined" ? window : {}; + if (!scope.Gp) { + scope.Gp = {}; + } + + // enregistrement + if (scope.Gp.Config) { + Object.assign(scope.Gp.Config, IConfig); + // dans le doute..., ceinture et bretelles ! + for (var property in IConfig) { + scope.Gp.Config[property] = IConfig[property]; + } + } else { + scope.Gp.Config = IConfig; + } + + // INFO : + // il n'y a pas d'analyse des résultats, + // on passe directement à l'appel de la callback utilisateur + success.call(this, scope.Gp.Config); +}; +/* harmony default export */ __webpack_exports__["default"] = (Config); + +/***/ }), +/* 4 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var loglevel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); +/* harmony import */ var loglevel__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(loglevel__WEBPACK_IMPORTED_MODULE_0__); + +var LoggerByDefault = { + /** + * logger statique + * + * @static + * @param {String} name - nom du logger + * @returns {Object} retourne un logger + */ + getLogger: function getLogger(name) { + // Substitute global constants configured at compile time + // cf. webpack.config.js + // on définit process si non défini dans l'environnement + // eslint-disable-next-line no-use-before-define + if (typeof process === "undefined") { + var process = {}; + process.env = { + VERBOSE: false + }; + } + process.env.VERBOSE ? loglevel__WEBPACK_IMPORTED_MODULE_0__["enableAll"]() : loglevel__WEBPACK_IMPORTED_MODULE_0__["disableAll"](); + var logname = name || "default"; + return loglevel__WEBPACK_IMPORTED_MODULE_0__["getLogger"](logname); + } +}; +/* harmony default export */ __webpack_exports__["default"] = (LoggerByDefault); + +/***/ }), +/* 5 */ +/***/ (function(module, exports, __webpack_require__) { + +var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/* +* loglevel - https://github.com/pimterry/loglevel +* +* Copyright (c) 2013 Tim Perry +* Licensed under the MIT license. +*/ +(function (root, definition) { + "use strict"; + if (true) { + !(__WEBPACK_AMD_DEFINE_FACTORY__ = (definition), + __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? + (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : + __WEBPACK_AMD_DEFINE_FACTORY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else {} +}(this, function () { + "use strict"; + + // Slightly dubious tricks to cut down minimized file size + var noop = function() {}; + var undefinedType = "undefined"; + var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && ( + /Trident\/|MSIE /.test(window.navigator.userAgent) + ); + + var logMethods = [ + "trace", + "debug", + "info", + "warn", + "error" + ]; + + var _loggersByName = {}; + var defaultLogger = null; + + // Cross-browser bind equivalent that works at least back to IE6 + function bindMethod(obj, methodName) { + var method = obj[methodName]; + if (typeof method.bind === 'function') { + return method.bind(obj); + } else { + try { + return Function.prototype.bind.call(method, obj); + } catch (e) { + // Missing bind shim or IE8 + Modernizr, fallback to wrapping + return function() { + return Function.prototype.apply.apply(method, [obj, arguments]); + }; + } + } + } + + // Trace() doesn't print the message in IE, so for that case we need to wrap it + function traceForIE() { + if (console.log) { + if (console.log.apply) { + console.log.apply(console, arguments); + } else { + // In old IE, native console methods themselves don't have apply(). + Function.prototype.apply.apply(console.log, [console, arguments]); + } + } + if (console.trace) console.trace(); + } + + // Build the best logging method possible for this env + // Wherever possible we want to bind, not wrap, to preserve stack traces + function realMethod(methodName) { + if (methodName === 'debug') { + methodName = 'log'; + } + + if (typeof console === undefinedType) { + return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives + } else if (methodName === 'trace' && isIE) { + return traceForIE; + } else if (console[methodName] !== undefined) { + return bindMethod(console, methodName); + } else if (console.log !== undefined) { + return bindMethod(console, 'log'); + } else { + return noop; + } + } + + // These private functions always need `this` to be set properly + + function replaceLoggingMethods() { + /*jshint validthis:true */ + var level = this.getLevel(); + + // Replace the actual methods. + for (var i = 0; i < logMethods.length; i++) { + var methodName = logMethods[i]; + this[methodName] = (i < level) ? + noop : + this.methodFactory(methodName, level, this.name); + } + + // Define log.log as an alias for log.debug + this.log = this.debug; + + // Return any important warnings. + if (typeof console === undefinedType && level < this.levels.SILENT) { + return "No console available for logging"; + } + } + + // In old IE versions, the console isn't present until you first open it. + // We build realMethod() replacements here that regenerate logging methods + function enableLoggingWhenConsoleArrives(methodName) { + return function () { + if (typeof console !== undefinedType) { + replaceLoggingMethods.call(this); + this[methodName].apply(this, arguments); + } + }; + } + + // By default, we use closely bound real methods wherever possible, and + // otherwise we wait for a console to appear, and then try again. + function defaultMethodFactory(methodName, _level, _loggerName) { + /*jshint validthis:true */ + return realMethod(methodName) || + enableLoggingWhenConsoleArrives.apply(this, arguments); + } + + function Logger(name, factory) { + // Private instance variables. + var self = this; + /** + * The level inherited from a parent logger (or a global default). We + * cache this here rather than delegating to the parent so that it stays + * in sync with the actual logging methods that we have installed (the + * parent could change levels but we might not have rebuilt the loggers + * in this child yet). + * @type {number} + */ + var inheritedLevel; + /** + * The default level for this logger, if any. If set, this overrides + * `inheritedLevel`. + * @type {number|null} + */ + var defaultLevel; + /** + * A user-specific level for this logger. If set, this overrides + * `defaultLevel`. + * @type {number|null} + */ + var userLevel; + + var storageKey = "loglevel"; + if (typeof name === "string") { + storageKey += ":" + name; + } else if (typeof name === "symbol") { + storageKey = undefined; + } + + function persistLevelIfPossible(levelNum) { + var levelName = (logMethods[levelNum] || 'silent').toUpperCase(); + + if (typeof window === undefinedType || !storageKey) return; + + // Use localStorage if available + try { + window.localStorage[storageKey] = levelName; + return; + } catch (ignore) {} + + // Use session cookie as fallback + try { + window.document.cookie = + encodeURIComponent(storageKey) + "=" + levelName + ";"; + } catch (ignore) {} + } + + function getPersistedLevel() { + var storedLevel; + + if (typeof window === undefinedType || !storageKey) return; + + try { + storedLevel = window.localStorage[storageKey]; + } catch (ignore) {} + + // Fallback to cookies if local storage gives us nothing + if (typeof storedLevel === undefinedType) { + try { + var cookie = window.document.cookie; + var cookieName = encodeURIComponent(storageKey); + var location = cookie.indexOf(cookieName + "="); + if (location !== -1) { + storedLevel = /^([^;]+)/.exec( + cookie.slice(location + cookieName.length + 1) + )[1]; + } + } catch (ignore) {} + } + + // If the stored level is not valid, treat it as if nothing was stored. + if (self.levels[storedLevel] === undefined) { + storedLevel = undefined; + } + + return storedLevel; + } + + function clearPersistedLevel() { + if (typeof window === undefinedType || !storageKey) return; + + // Use localStorage if available + try { + window.localStorage.removeItem(storageKey); + } catch (ignore) {} + + // Use session cookie as fallback + try { + window.document.cookie = + encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC"; + } catch (ignore) {} + } + + function normalizeLevel(input) { + var level = input; + if (typeof level === "string" && self.levels[level.toUpperCase()] !== undefined) { + level = self.levels[level.toUpperCase()]; + } + if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) { + return level; + } else { + throw new TypeError("log.setLevel() called with invalid level: " + input); + } + } + + /* + * + * Public logger API - see https://github.com/pimterry/loglevel for details + * + */ + + self.name = name; + + self.levels = { "TRACE": 0, "DEBUG": 1, "INFO": 2, "WARN": 3, + "ERROR": 4, "SILENT": 5}; + + self.methodFactory = factory || defaultMethodFactory; + + self.getLevel = function () { + if (userLevel != null) { + return userLevel; + } else if (defaultLevel != null) { + return defaultLevel; + } else { + return inheritedLevel; + } + }; + + self.setLevel = function (level, persist) { + userLevel = normalizeLevel(level); + if (persist !== false) { // defaults to true + persistLevelIfPossible(userLevel); + } + + // NOTE: in v2, this should call rebuild(), which updates children. + return replaceLoggingMethods.call(self); + }; + + self.setDefaultLevel = function (level) { + defaultLevel = normalizeLevel(level); + if (!getPersistedLevel()) { + self.setLevel(level, false); + } + }; + + self.resetLevel = function () { + userLevel = null; + clearPersistedLevel(); + replaceLoggingMethods.call(self); + }; + + self.enableAll = function(persist) { + self.setLevel(self.levels.TRACE, persist); + }; + + self.disableAll = function(persist) { + self.setLevel(self.levels.SILENT, persist); + }; + + self.rebuild = function () { + if (defaultLogger !== self) { + inheritedLevel = normalizeLevel(defaultLogger.getLevel()); + } + replaceLoggingMethods.call(self); + + if (defaultLogger === self) { + for (var childName in _loggersByName) { + _loggersByName[childName].rebuild(); + } + } + }; + + // Initialize all the internal levels. + inheritedLevel = normalizeLevel( + defaultLogger ? defaultLogger.getLevel() : "WARN" + ); + var initialLevel = getPersistedLevel(); + if (initialLevel != null) { + userLevel = normalizeLevel(initialLevel); + } + replaceLoggingMethods.call(self); + } + + /* + * + * Top-level API + * + */ + + defaultLogger = new Logger(); + + defaultLogger.getLogger = function getLogger(name) { + if ((typeof name !== "symbol" && typeof name !== "string") || name === "") { + throw new TypeError("You must supply a name when creating a logger."); + } + + var logger = _loggersByName[name]; + if (!logger) { + logger = _loggersByName[name] = new Logger( + name, + defaultLogger.methodFactory + ); + } + return logger; + }; + + // Grab the current global log variable in case of overwrite + var _log = (typeof window !== undefinedType) ? window.log : undefined; + defaultLogger.noConflict = function() { + if (typeof window !== undefinedType && + window.log === defaultLogger) { + window.log = _log; + } + + return defaultLogger; + }; + + defaultLogger.getLoggers = function getLoggers() { + return _loggersByName; + }; + + // ES6 default export, for compatibility + defaultLogger['default'] = defaultLogger; + + return defaultLogger; +})); + + +/***/ }), +/* 6 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/** + * Classe de gestion des erreurs qui permer d'associer un message d'erreur à l'exception lancée. + * + * @example + * MessagesResources.getMessage("ERROR_PARAM_MISSING", "x", "y", "z"))); + * // --> output : Parameter(s) 'x - y - z' missing + * + * @module MessagesResources + * @alias Gp.Utils.MessagesResources + * @private + */ +var MessagesResources = { + // Paramètres + PARAM_MISSING: "Parameter(s) '%var%' missing", + PARAM_EMPTY: "Parameter(s) '%var%' empty", + PARAM_TYPE: "Wrong type(s) for parameter(s) '%var%'", + PARAM_FORMAT: "Parameter(s) '%var%' not correctly formatted", + PARAM_NOT_SUPPORT: "Value(s) for parameter(s) '%var%' not supported", + PARAM_NOT_SUPPORT_NODEJS: "Value(s) for parameter(s) '%var%' not supported to NodeJS", + PARAM_UNKNOWN: "Value(s) for parameter(s) '%var%' unknown", + // Services + // Requête + SERVICE_REQUEST_BUILD: "An error occurred during the request building of the service", + SERVICE_REQUEST_EMPTY: "The request sent to the service is empty", + // Réponse + SERVICE_RESPONSE_EXCEPTION: "The service returned an exception : '%var%'", + SERVICE_RESPONSE_EXCEPTION_2: "The service returned an exception", + SERVICE_RESPONSE_ANALYSE: "An error occurred while parsing the response '%var%' of the service", + SERVICE_RESPONSE_ANALYSE_2: "An unknown error occurred while parsing the response", + SERVICE_RESPONSE_EMPTY: "The response of the service is empty", + SERVICE_RESPONSE_EMPTY_2: "The response from the service could not be analyzed or is empty", + SERVICE_RESPONSE_FORMAT: "The format of the service response is not supported (handled format(s) : '%var%')", + SERVICE_RESPONSE_FORMAT_2: "The format of the service response is not supported", + SERVICE_RESPONSE_FORMAT_3: "No suggestion matching the search", + // Classes + CLASS_CONSTRUCTOR: "'%var%' constructor cannot be called as a function.", + /** + * Fonction qui va retourner le message d'erreur associé à la clé donnée + * + * @method getMessage + * @param {String} clef - Clef de l'erreur (ex : ERROR_PARAM) + * @param {String[]} parametres - Paramètres/variables concernés par le message d'erreur associé à la clef donnée + * @return {String} message - String contenant le message de l'exception + */ + getMessage: function getMessage(clef, parametres) { + // param de la fonction uniquement pour la documentation... + + if (Object.keys(arguments).length === 0) { + return "Message indefined !"; + } + var params = Array.prototype.slice.call(arguments); + var key = params.shift(); + var args = params; + var message = this[key]; + try { + if (Array.isArray(args) && args.length > 0) { + message = message.replace("%var%", args.join(" - ")); + } else { + message = message.replace("%var%", "%var% (not specified)"); + } + } catch (e) { + // error de string.replace() + } + return message; + } +}; +/* harmony default export */ __webpack_exports__["default"] = (MessagesResources); + +/***/ }), +/* 7 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _Utils_Helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8); +/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6); +/* harmony import */ var _Protocols_Protocol__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9); +/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22); +/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23); +var _package_json__WEBPACK_IMPORTED_MODULE_5___namespace = /*#__PURE__*/__webpack_require__.t(23, 1); + + + + + +// import DefaultUrlService from "./DefaultUrlService"; +// package.json (extract version) + + +/** + * @classdesc + * Composant Service + * + * @constructor + * @alias Gp.Services.CommonService + * @param {Object} options - options communes à tous les services + * + * @param {String} [options.serverUrl] - URL d'accès au service. Par défaut "https://data.geopf.fr/SERVICE/". + * Permet de forcer l'utilisation d'un service équivalent déployé derrière une éventuelle autre URL d'accès. + * Si ce paramètre est renseigné alors, le paramètre par défaut est ignoré. + * + * @param {String} [options.protocol] - Le protocole à utiliser pour récupérer les informations du service : + * peut valoir 'JSONP' ou 'XHR'. + * Par défaut, c'est le protocole XHR qui sera utilisé. + * Attention, le protocole JSONP n'est pas valide dans un environnement NodeJS (Utilisation du mode XHR). + * + * @param {Boolean} [options.ssl] - Indique si l'on souhaite intérroger les services en https. + * Ce paramètre ne fonctionne que pour une utilisation hors navigateur (ex. NodeJS). + * Sur un navigateur, le protocole est automatiquement extrait de l'url du site... + * Par défaut, on utilise le protocole http (ssl=false). + * + * @param {String} [options.proxyURL] - Le proxy à utiliser pour pallier au problème de cross-domain dans le cas d'une requête XHR. + * Utile si le paramètre 'protocol' vaut 'XHR', il ne sera pas pris en compte si protocol vaut JSONP. + * + * @param {String} [options.callbackSuffix] - Suffixe de la fonction de callback à utiliser, dans le cas du protocole JSONP. + * Par défaut, la fonction de callback portera un nom du type "callback"+ID, où ID est soit un identifiant unique généré à chaque requête, + * soit le paramètre callbackSuffix s'il est spécifié. Par exemple, si callbackSuffix="_2", la fonction sera "callback_2 ()". + * Utile pour utiliser une réponse déjà encapsulée dans une fonction de callback, dont le nom est connu + * Utile seulement si le paramètre 'protocol' vaut 'JSONP', il ne sera pas pris en compte si protocol vaut 'XHR'. + * + * @param {String} [options.httpMethod] - La méthode HTTP + * à utiliser dans le cas d'une requête XHR : peut valoir 'GET' ou 'POST'. + * Non pris en compte si 'protocol' vaut JSONP qui fonctionne obligatoirement en GET. + * Par défaut, c'est la méthode GET qui est utilisée. + * + * @param {String} [options.contentType] - Content-Type de la requete + * à utiliser dans le cas d'une requête XHR en mode POST. + * Non pris en compte si 'protocol' vaut JSONP et/ou la méthode HTTP vaut GET. + * Par défaut, c'est la méthode GET qui est utilisée donc on n'utilise pas de Content-Type. + * + * @param {Number} [options.timeOut] - Délai d'attente maximal (en ms) de la réponse du service (à partir de l'envoi de la requête). + * Par défaut, aucun timeOut n'est pris en compte (timeoutDelay= 0). + * + * @param {Boolean} [options.rawResponse] - Indique si l'on souhaite que la réponse du service ne soit pas parsée par l'API avant d'être restituée. + * (Cf. paramètre « onSuccess » pour plus de détails). + * + * @param {Function} [options.onSuccess] - Fonction appelée lorsque le service répond correctement à la requête + * (code HTTP 200, sans message d'erreur). + * Cette fonction prend en paramètre la réponse du service, + * soit sous la forme d'un Object Javascript formaté par le parseur dédié à la syntaxe du service (comportement par défaut) ; + * soit brute au format String non prétraité si le paramètre « rawResponse » a été précisé avec la valeur « true ». + * + * @param {Function} [options.onFailure] - Fonction appelée lorsque le service ne répond pas correctement + * (code HTTP de retour différent de 200 ou pas de réponse). + * + * @param {Function} [options.onBeforeParse] - Fonction appelée avant le parsing de la réponse + * Permet de modifier la réponse avant parsing et la fonction doit retourner une String. + * Cette fonction prend en paramètre la réponse telle que renvoyée par le service + * (cad au format json ou xml). + * Pour le JSONP, si le paramètre "rawResponse" a été précisé avec la valeur "true", + * la fonction prend en paramètre un Object JavaScript contenant la réponse XML. + * + * @example + * var options = { + * serverUrl : 'http://localhost/service/', + * protocol : 'JSONP', // JSONP|XHR + * ssl : false, + * proxyURL : null, + * callbackName : null, + * httpMethod : 'GET', // GET|POST + * timeOut : 10000, // ms + * rawResponse : false, // true|false + * scope : null, // this + * onSuccess : function (response) {}, + * onFailure : function (error) {}, + * onBeforeParse : function (rawResponse) {} + * }; + */ +function CommonService(options) { + if (!(this instanceof CommonService)) { + throw new TypeError(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_2__["default"].getMessage("CLASS_CONSTRUCTOR")); + } + this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("CommonService"); + this.logger.trace("[Constructeur CommonService (options)]"); + + // ##################### + // récupération des options par défaut pour les paramètres optionnels + // ##################### + + /** + * Options du service + * @type {Object} + */ + this.options = { + // protocol : "JSONP", + protocol: "XHR", + ssl: true, + proxyURL: "", + // callbackName : "", + callbackSuffix: null, + httpMethod: "GET", + timeOut: 0, + rawResponse: false, + scope: this, + /** + * callback par defaut pour la reponse + * @param {Object} response - response + * @private + */ + onSuccess: function onSuccess(response) { + console.log("onSuccess - la reponse est la suivante : ", response); + }, + /** + * callback par defaut pour les erreurs + * @param {Object} error - error + * @private + */ + onFailure: function onFailure(error) { + if (error.status === 200 || !error.status) { + console.log("onFailure : ", error.message); + } else { + console.log("onFailure - Erreur (", error.status, ") : ", error.message); + } + } + }; + + // et on ajoute les options en paramètre aux options par défaut + for (var opt in options) { + if (options.hasOwnProperty(opt)) { + this.options[opt] = options[opt]; + } + } + + // ##################### + // analyse des options + // ##################### + + // modification de la fonction de callback onSuccess dans le cas où la réponse brute est demandée + if (this.options.rawResponse && !this.options.onSuccess) { + /** + * callback par defaut pour la reponse + * @param {Object} response - response + * @private + */ + this.options.onSuccess = function (response) { + console.log("onSuccess - la réponse brute du service est la suivante : ", response); + }; + } + + // gestion du callback onSuccess + var bOnSuccess = !!(this.options.onSuccess !== null && typeof this.options.onSuccess === "function"); + if (!bOnSuccess) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_2__["default"].getMessage("PARAM_MISSING", "onSuccess()")); + } + + // gestion de la methode HTTP + this.options.httpMethod = typeof options.httpMethod === "string" ? options.httpMethod.toUpperCase() : "GET"; + switch (this.options.httpMethod) { + case "POST": + case "GET": + break; + case "PUT": + case "DELETE": + case "HEAD": + case "OPTIONS": + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_2__["default"].getMessage("PARAM_NOT_SUPPORT", "httpMethod")); + default: + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_2__["default"].getMessage("PARAM_UNKNOWN", "httpMethod")); + } + + // gestion du protocole + // this.options.protocol = (typeof options.protocol === "string" ) ? options.protocol.toUpperCase() : "JSONP"; + this.options.protocol = typeof options.protocol === "string" ? options.protocol.toUpperCase() : "XHR"; + switch (this.options.protocol) { + case "JSONP": + case "XHR": + break; + default: + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_2__["default"].getMessage("PARAM_UNKNOWN", "protocol")); + } + + // on determine l'environnement d'execution : browser ou non ? + // et on lance une exception sur l'utilisation du protocole JSONP pour nodeJS... + if (typeof window === "undefined" && this.options.protocol === "JSONP") { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_2__["default"].getMessage("PARAM_NOT_SUPPORT_NODEJS", "protocol=JSONP (instead use XHR)")); + } + + // le protocole JSONP ne fonctionne qu'en GET. + if (this.options.protocol === "JSONP") { + this.options.httpMethod = "GET"; + } + + // gestion du cache + this.options.nocache = options.nocache || false; + + // ##################### + // attributs d'instances + // ##################### + + /** + * Format de réponse du service + */ + this.options.outputFormat = null; + /** + * Requête envoyée au service + */ + this.request = null; + /** + * Reponse du service + */ + this.response = null; +} + +/** + * @lends module:CommonService + */ +CommonService.prototype = { + /* + * Constructeur (alias) + */ + constructor: CommonService, + /** + * Appel du service Géoportail + */ + call: function call() { + /* jshint validthis : true */ + this.logger.trace("CommonService::call ()"); + var context = this; + /** fonction d'execution */ + function run() { + this.logger.trace("CommonService::run ()"); + this.buildRequest.call(context, onError, onBuildRequest); + } + run.call(context); + + // callback de fin de construction de la requête + function onBuildRequest(result) { + this.logger.trace("CommonService::onBuildRequest : ", result); + this.callService.call(context, onError, onCallService); + } + + // callback de fin d'appel au service + function onCallService(result) { + this.logger.trace("CommonService::onCallService : ", result); + this.analyzeResponse.call(context, onError, onAnalyzeResponse); + } + + // callback de fin de lecture de la reponse + function onAnalyzeResponse(result) { + this.logger.trace("CommonService::onAnalyzeResponse : ", result); + if (result) { + this.options.onSuccess.call(this, result); + } else { + return onError.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__["default"]("Analyse de la reponse en échec !?")); + } + } + + // callback de gestion des erreurs : renvoit un objet de type ErrorService + function onError(error) { + this.logger.trace("CommonService::onError()"); + // error : l'objet est du type ErrorService ou Error + var e = error; + if (!(e instanceof _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__["default"])) { + e = new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__["default"](error.message); + } + this.options.onFailure.call(this, e); + } + }, + /** + * Création de la requête + * @param {Function} error - callback + * @param {Function} success - callback + */ + buildRequest: function buildRequest(error, success) { + // INFO + this.logger.error("overwritten method !"); + // retourne l'objet 'this.request' + if (error) { + error.call(this, "This method must be overwritten !"); + } + success.call(this, "This method must be overwritten !"); + }, + /** + * Appel du service + * @param {Function} error - callback + * @param {Function} success - callback + */ + callService: function callService(error, success) { + // INFO + // retourne l'objet 'this.response' + + // NOTES + // Pour le mode XHR, on recupère une reponse sous forme d'un json ou xml (#document). + // Pour le mode JSONP, on a toujours un objet JSON mais sous 2 formes : + // - natif + // - XML encapsulé : + // {http : {status:200, error:null},xml :'réponse du service'} + // {http : {status:400, error:'reponse du service'},xml :null} + // En XHR, la reponse est directement sauvegardée dans 'this.response'. + // Par contre, en JSONP, on doit analyser la reponse (status ou non vide), + // et ne renvoyer que le contenu (xml ou l'objet) + + // gestion de la proxification du service + var strUrlProxified = null; + var strData = this.request; + + // a t on mis en place un proxy ? + // la proxyfication est valable uniquement en mode XHR ! + var bUrlProxified = !!(this.options.proxyURL && this.options.protocol === "XHR"); + + // rajout de l'option gpbibaccess + // INFO : acces au numero de version de package.conf aprés compilation ! + var requestMetaOptions = { + "gp-access-lib": _package_json__WEBPACK_IMPORTED_MODULE_5__.version + }; + if (this.options.apiKey) { + requestMetaOptions.apiKey = this.options.apiKey; + } + this.options.serverUrl = _Utils_Helper__WEBPACK_IMPORTED_MODULE_1__["default"].normalyzeUrl(this.options.serverUrl, requestMetaOptions, false); + + // si le proxy est renseigné, on proxifie l'url du service + if (bUrlProxified) { + if (this.options.httpMethod === "GET") { + strUrlProxified = this.options.proxyURL + _Utils_Helper__WEBPACK_IMPORTED_MODULE_1__["default"].normalyzeUrl(this.options.serverUrl, this.request, true); + strData = null; + } + if (this.options.httpMethod === "POST") { + strUrlProxified = this.options.proxyURL + _Utils_Helper__WEBPACK_IMPORTED_MODULE_1__["default"].normalyzeUrl(this.options.serverUrl, null, true); + strData = this.request; + } + } + + // contexte du composant spécifique ! + var self = this; + var options = { + url: strUrlProxified || this.options.serverUrl, + method: this.options.httpMethod, + protocol: this.options.protocol, + timeOut: this.options.timeOut || 0, + format: this.options.outputFormat, + // ceci declenche le parsing de la reponse du service, mais on souhaite toujours une reponse brute (string) ! + nocache: this.options.nocache || false, + // ceci permet d'ajouter un timestamp dans la requête + wrap: this.options.protocol !== "XHR", + // ceci declenche l'encapsulation de la reponse XML du service dans du JSON, mais pas en mode XHR ! + callbackSuffix: this.options.callbackSuffix, + // callbackName : this.options.callbackName || null, + data: strData, + headers: null, + // TODO... + content: this.options.contentType || "application/xml", + scope: this.options.scope || this, + // callback de reponse + onResponse: function onResponse(response) { + self.logger.trace("callService::onResponse()"); + + // le contenu de la reponse à renvoyer ! + var content = null; + + // XHR : on renvoie toujours la reponse brute du service (json ou xml) + // au parser du composant... + if (self.options.protocol === "XHR") { + self.logger.trace("Response XHR", response); + content = response; // par defaut, la reponse du service ! + } + + // JSONP : on pre-analyse la reponse brute du service (encapsuler ou pas) + // avant de l'envoyer au parser du composant... + if (self.options.protocol === "JSONP") { + self.logger.trace("Response JSON", response); + if (response) { + if (response.http) { + // reponse encapsulée : + // ex. reponse du service en xml + // > {http : {status:200, error:null},xml :'réponse du service'} + if (response.http.status !== 200) { + error.call(self, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__["default"]({ + status: response.http.status, + message: response.http.error, + type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__["default"].TYPE_SRVERR + })); + return; + } else { + content = response.xml; // par defaut ! + if (self.options.rawResponse) { + content = response; + } + } + } else { + // reponse non encapsulée : + // ex. reponse du service en json ou xml + content = response; + } + } else { + error.call(self, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__["default"]("Le contenu de la reponse est vide !?")); + return; + } + } + + // si on souhaite parser la reponse du service + if (typeof self.options.onBeforeParse === "function") { + var newResponse = self.options.onBeforeParse(content); + if (typeof newResponse === "string") { + // la reponse parsée par l'utilisateur est retournée sous + // forme de string ! + content = newResponse; + } + } + // sauvegarde de la reponse dans l'objet parent (CommonService) + self.response = content; + // on renvoie la reponse... + success.call(self, content); + }, + // callback des erreurs + onFailure: function onFailure(e) { + self.logger.trace("callService::onFailure()"); + // on est forcement sur une erreur levée par un service ! + e.type = _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__["default"].TYPE_SRVERR; + error.call(self, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__["default"](e)); + }, + // callback de timeOut + onTimeOut: function onTimeOut() { + self.logger.trace("callService::onTimeOut()"); + error.call(self, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_4__["default"]("TimeOut!")); + } + }; + _Protocols_Protocol__WEBPACK_IMPORTED_MODULE_3__["default"].send(options); + }, + /** + * Analyse de la réponse + * @param {Function} error - callback + * @param {Function} success - callback + */ + analyzeResponse: function analyzeResponse(error, success) { + // INFO + this.logger.error("overwritten method !"); + // retourne l'objet spécifique au type de composant (json) + if (error) { + error.call(this, "This method must be overwritten !"); + } + success.call(this, "This method must be overwritten !"); + } +}; +/* harmony default export */ __webpack_exports__["default"] = (CommonService); + +/***/ }), +/* 8 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/** + * Classe utilitaire + * + * @module Helper + * @alias Gp.Helper + */ +var Helper = { + /** + * concatenation des parametres key/value dans les urls + * + * @method normalyzeParameters + * @static + * @param {Object} params - tableau de clef/valeur + * + * @example + * Gp.Utils.Helper.normalyzeParameters ({ + * key1:value1, + * key2:value2, + * key3:value3 + * }); + * // out : "key1=value1&key2=value2&key3=value3" + * + * @returns {String} retourne les paramètres concaténés + */ + normalyzeParameters: function normalyzeParameters(params) { + var myParams = null; + if (params) { + var tabParams = []; + for (var key in params) { + if (params.hasOwnProperty(key)) { + var value = params[key]; + if (!value) { + value = ""; + } + tabParams.push(key + "=" + value); + } + } + myParams = tabParams.join("&"); + } + return myParams; + }, + /** + * Concaténation et encodage des urls. + * + * @method normalyzeUrl + * @static + * @param {String} url - url + * @param {Object|String} params - tableau de clef/valeur ou string + * @param {Boolean} encode - true|false, false par defaut + * + * @example + * Gp.Utils.Helper.normalyzeUrl (url, { + * key1:value1, + * key2=:value2, + * key3:value3 + * }); + * // out : "url?key1=value1&key2=value2&key3=value3" + * + * @returns {String} retourne une url normalisée + */ + normalyzeUrl: function normalyzeUrl(url, params, encode) { + var myUrl = url; + if (url) { + if (url.split("?").length - 1 >= 2) { + // S'il y a plusieurs "?" dans l'URL, on garde le premier et on remplace les autres par des & + var firstOccuranceIndex = url.search(/\?/) + 1; + myUrl = url.substring(0, firstOccuranceIndex) + url.slice(firstOccuranceIndex).replace(/\?/g, "&"); + } + var k = url.indexOf("?"); + if (k === -1) { + // pas de ? et KVP + myUrl += "?"; + } + if (k !== -1 && k !== url.length - 1) { + // KVP + myUrl += "&"; + } + } + if (params) { + if (typeof params === "string") { + params = params.replace("?", ""); + myUrl += params; + } else { + myUrl += this.normalyzeParameters(params); + } + } + if (encode) { + // FIXME bonne idée ? + myUrl = encodeURIComponent(myUrl); + } + return myUrl; + }, + /** + * Indentation d'une chaine + * + * @method indent + * @static + * @param {Number} n - nombre de tabulation + * @param {String} msg - chaine + * + * @example + * Gp.Utils.Helper.indent (2, "message à indenter") + * // out + * // ........message à indenter + * + * @returns {String} retourne une chaine indentée + */ + indent: function indent(n, msg) { + var num = n || 0; + return new Array(num + 1).join("\t") + msg; + } +}; +/* harmony default export */ __webpack_exports__["default"] = (Helper); + +/***/ }), +/* 9 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_Helper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _XHR__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); +/* harmony import */ var _JSONP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21); +/** + * Interface de dialogue avec les webservices + * + * @module Protocols + * @private + * @alias Gp.Protocols + */ + + + +var Protocol = { + /** + * Interface unique d"envoi d"une requête. + * + * @method send + * @static + * @param {Object} options - options generales + * @param {String} options.url - url du service + * @param {String} options.method - GET, POST, PUT, DELETE + * @param {String} options.protocol - XHR | JSONP + * @param {String} options.format - format de la reponse du service : json, xml ou null (brute)... + * @param {String} options.wrap - encapsuler la reponse du service dans du JSON : true|false (true par defaut sur le protocole JSONP) + * @param {String} options.callbackSuffix - suffixe de la fonction de callback (JSONP uniquement) (ex: si callbackSuffix="", la fonction s'appellera "callback") + * @param {String} options.timeOut - 0 ms + * @param {Boolean} options.nocache - true|false + * @param {Object|String} options.data - content (post) ou param (get) + * @param {Object|String} options.headers - (post) ex. referer + * @param {Object|String} options.content - (post) ex. "application/json" + * @param {String} options.scope - this (TODO) + * @param {Function} options.onResponse - callback + * @param {Function} options.onFailure - callback + * @param {Function} options.onTimeOut - callback + * @param {String} options.proxyUrl - (TODO) + */ + send: function send(options) { + // INFO + // "output" - param est interne à la classe "Protocol" (parametrable via "wrap"), et à ajouter à l"url + // ce param est independant du service car il est géré par le filtre LUA : + // ex. json|xml (json par defaut). + // Ce param. permet d"encapsuler du XML dans du JSON : + // {http : {status:200, error:null},xml :"réponse du service"} + // Utile pour les services qui ne repondent que du XML (ex. Geocodage) + // + // |-------------------------------------------------| + // | \service | | | | + // | output\ format| json | xml | remarques | + // |--------\------|------|-----|--------------------| + // | json | json | json| json/xml encapsulé | + // | xml | json | xml | param inactif | + // |-------------------------------------------------| + // ex. le service demande une reponse native au "format" json et avec un "output" json. + // on a donc une reponse json encapsulé dans un json : ce qu'on ne souhaite pas ! + // dans ce cas on ne renseigne pas output=json + + // INFO + // "wrap" - choix d"encapsuler ou non les reponses dans du JSON. + // Par defaut, on encapsule uniquement les reponses sur le protocole JSONP (et qui sont en xml) ! + + // INFO + // "callback" - param est interne à la classe "Protocol" (non parametrable), et à ajouter à l"url + // ce param est independant du service car il est géré aussi par le filtre LUA : + // ex. callback|null + // Ce param. permet de renvoyer une reponse javascript : + // callback ({http : {status:200, error:null},xml :"réponse du service"}) + // Ce param. est non renseigné par defaut car pour du JSONP, on utilise le + // le protocol JSONP, et ce dernier implemente déjà le callback ! + + // settings par defaut + var settings = options || { + method: "GET", + // protocol : "JSONP", + protocol: "XHR", + timeOut: 0, + format: null, + wrap: true, + nocache: true, + output: "json", + callback: null, + callbackSuffix: null + }; + + // on determine l'environnement d'execution : browser ou non ? + // et on stoppe pour nodeJS... sur un protocole JSONP ! + if (typeof window === "undefined" && options.protocol === "JSONP") { + console.log("Value (s) for parameter (s) 'protocol=JSONP (instead use XHR)' not supported to NodeJS"); + return; + } + if (options.protocol === "XHR" || options.format === "json") { + settings.wrap = false; + } else if (options.protocol === "JSONP" && options.format === "xml") { + settings.wrap = true; + } + settings.callback = null; // FIXME non géré !? + settings.output = settings.wrap ? "json" : null; + + // on encapsule les reponses dans un objet JSON + if (settings.wrap) { + var params = {}; + params.output = settings.output; + params.callback = settings.callback; + delete params.callback; // FIXME non géré !? + settings.url = _Utils_Helper__WEBPACK_IMPORTED_MODULE_0__["default"].normalyzeUrl(options.url, params); + } + + // choix de l"implementation : + // XHR ou JSONP + switch (settings.protocol) { + case "XHR": + // on normalise l'url (gestion du cache) + if (options.method === "GET" && options.nocache) { + settings.url = _Utils_Helper__WEBPACK_IMPORTED_MODULE_0__["default"].normalyzeUrl(settings.url, { + t: new Date().getTime() + }); + } + // appel du service en XHR + _XHR__WEBPACK_IMPORTED_MODULE_1__["default"].call(settings); + break; + case "JSONP": + // on normalise l'url si les params. sont renseignés dans la string|object "data" + if (settings.data) { + settings.url = _Utils_Helper__WEBPACK_IMPORTED_MODULE_0__["default"].normalyzeUrl(settings.url, settings.data); + } + + // appel du service en JSONP + _JSONP__WEBPACK_IMPORTED_MODULE_2__["default"].call(settings); + break; + default: + throw new Error("protocol not supported (XHR|JSONP) !"); + } + } +}; +/* harmony default export */ __webpack_exports__["default"] = (Protocol); + +/***/ }), +/* 10 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _Utils_Helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8); +/* harmony import */ var es6_promise__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11); +/* harmony import */ var es6_promise__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(es6_promise__WEBPACK_IMPORTED_MODULE_2__); +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +/* global Promise, require, XDomainRequest */ + + + + +// import __request from "request"; +// import __xmldom from "xmldom"; + +/** + * Ajax Request (use of Promises) + * + * @module XHR + * @alias Gp.Protocols.XHR + * @see dependance 'es6-promise' + */ + +// cf. https://xhr.spec.whatwg.org/ +// cf. https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest + +var XHR = { + /** + * Interface unique d'envoi d'une requête. + * + * @method call + * @static + * @param {Object} settings - options generales + * @param {String} settings.url - url du service + * @param {String} settings.method - GET, POST, PUT, DELETE + * @param {String} settings.format - format de la reponse du service : json, xml ou null (brute) + * @param {String} settings.data - content (post) ou param (get) + * @param {String} settings.proxy - proxy url + * @param {Object|String} settings.headers - (post) ex. referer + * @param {Object|String} settings.content - (post) ex. 'application/json' + * @param {String} settings.timeOut - timeout = 0 par defaut + * @param {String} settings.scope - this + * @param {Function} settings.onResponse - callback + * @param {Function} settings.onFailure - callback + */ + call: function call(settings) { + // logger + var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("XHR"); + logger.trace("[XHR::call()]"); + + // FIXME + // To polyfill the global environment + es6_promise__WEBPACK_IMPORTED_MODULE_2___default.a.polyfill(); + + // test sur les settings obligatoires + if (!settings.url) { + throw new Error("missing parameter : url is not defined !"); + } + if (!settings.method) { + throw new Error("missing parameter : method is not defined !"); + } + if (!settings.format) { + settings.format = "text"; // reponse brute ! + } + var options = {}; + options.url = settings.url; + options.data = settings.data ? settings.data : null; + options.method = settings.method; + options.timeOut = settings.timeOut || 0; + options.scope = settings.scope || this; + options.proxy = settings.proxy || null; + options.content = settings.content || null; + options.headers = settings.headers || { + referer: "http://localhost" + }; + + // test sur les valeurs de 'settings.method' + switch (settings.method) { + case "DELETE": + case "GET": + break; + case "PUT": + case "POST": + // on force sur ces params spécifiques au mode POST + options.content = settings.content ? settings.content : "application/x-www-form-urlencoded"; // FIXME en attente des services : bascule en "application/xml" ou "application/json" + options.headers = settings.headers ? settings.headers : { + referer: "http://localhost" + }; // FIXME parametrable... + break; + case "HEAD": + case "OPTIONS": + throw new Error("HTTP method not yet supported !"); + default: + throw new Error("HTTP method unknown !"); + } + + // test sur les valeurs de 'settings.format' + switch (settings.format) { + case "text": + this.__call(options).then(function (response) { + logger.trace(response); + settings.onResponse.call(this, response); + })["catch"](function (error) { + settings.onFailure.call(this, error); + }); + break; + case "json": + this.__callJSON(options).then(function (response) { + logger.trace(response); + settings.onResponse.call(this, response); + })["catch"](function (error) { + settings.onFailure.call(this, error); + }); + break; + case "xml": + this.__callXML(options).then(function (response) { + logger.trace(response); + settings.onResponse.call(this, response); + })["catch"](function (error) { + settings.onFailure.call(this, error); + }); + break; + default: + throw new Error("This output Format is not yet supported !"); + } + }, + /** + * Requete + * + * @method __call + * @private + * @param {Object} options - options + * @return {Object} promise + */ + __call: function __call(options) { + var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("XHR"); + logger.trace("[XHR::__call()]"); + var promise = new Promise(function (resolve, reject) { + // traitement du corps de la requête + var corps = options.method === "POST" || options.method === "PUT" ? 1 : 0; + + // seulement si options.data n'est pas vide (peut être un objet ou une chaine de caractères) + if (options.data && (_typeof(options.data) === "object" && Object.keys(options.data).length || typeof options.data === "string" && options.data.length) && !corps) { + options.url = _Utils_Helper__WEBPACK_IMPORTED_MODULE_1__["default"].normalyzeUrl(options.url, options.data); + } + logger.trace("URL = ", options.url); + var hXHR = null; + + // test on env. nodejs or browser + if (typeof window === "undefined") { + var nodefetch = __webpack_require__(14); + var opts = { + headers: { + Referer: "https://localhost" + } + }; + if (options.data && typeof options.data === "string" && corps) { + opts = { + method: options.method, + body: options.data, + headers: { + "Content-Type": options.content, + Referer: "https://localhost" + } + }; + } + return nodefetch(options.url, opts).then(function (response) { + if (response.ok) { + // res.status >= 200 && res.status < 300 + resolve(response.text()); + } else { + var message = "Errors Occured on Http Request (status : '" + response.statusText + "' | url : '" + response.url + "')"; + var status = response.status; + reject({ + message: message, + status: status + }); + } + })["catch"](function (e) { + reject({ + message: e, + status: -1 + }); + }); + } else { + if (window.XMLHttpRequest) { + logger.trace("XMLHttpRequest"); + hXHR = new XMLHttpRequest(); + hXHR.open(options.method, options.url, true); // async + hXHR.overrideMimeType = options.content; + + // gestion du timeout + var onTimeOutTrigger = null; + if (options.timeOut > 0) { + // FIXME le timeout interne ne me permet pas de declencher le bon message... + // hXHR.timeout = options.timeOut; + logger.trace("XHR - TimeOut actif !"); + /** + * Description + * + * @method onTimeOutTrigger + * @private + */ + onTimeOutTrigger = window.setTimeout(function () { + var message = "TimeOut Occured on Http Request with XMLHttpRequest !"; + reject({ + message: message, + status: -1 + }); + }, options.timeOut); + } + if (corps) { + // headers, data, content of data + // cf. https://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#dom-xmlhttprequest-setrequestheader + logger.trace("data = ", options.data); + hXHR.setRequestHeader("Content-type", options.content); + // FIXME refused to set unsafe header content-length javascript + // hXHR.setRequestHeader ("Content-length", options.data.length); + // hXHR.setRequestHeader ("Referer", options.headers.referer); + } + + /** + * On Error + * FIXME ne se declenche pas !? + * + * @param {Object} e - Event + * @method onerror + * @private + */ + hXHR.onerror = function (e) { + console.log(e); + reject(new Error("Errors Occured on Http Request with XMLHttpRequest !")); + }; + + /** + * On Timeout + * FIXME ne se declenche pas !? + * + * @param {Object} e - Event + * @method ontimeout + * @private + */ + hXHR.ontimeout = function (e) { + console.log(e); + reject(new Error("TimeOut Occured on Http Request with XMLHttpRequest !")); + }; + + /** + * Description + * + * @method onreadystatechange + * @private + */ + hXHR.onreadystatechange = function (e) { + if (hXHR.readyState === 4) { + // DONE + if (hXHR.status === 200) { + window.clearTimeout(onTimeOutTrigger); + resolve(hXHR.response); + } else { + var message = "Errors Occured on Http Request (status : '" + e.target.statusText + "' | url : '" + e.target.responseURL + "' | response : '" + e.target.response + "')"; + var status = e.target.status; + reject({ + message: message, + status: status + }); + } + } + }; + + // gestion du content data + var data4xhr = options.data && corps ? options.data : null; + hXHR.send(data4xhr); + } else if (window.XDomainRequest) { + // worked in Internet Explorer 8–10 only ! + logger.trace("XDomainRequest"); + hXHR = new XDomainRequest(); + hXHR.open(options.method, options.url); + hXHR.overrideMimeType = options.content; + if (options.timeOut > 0) { + hXHR.timeout = options.timeout; + logger.trace("XHR - TimeOut actif !"); + } + if (corps) { + // headers, data, content of data + // cf. https://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#dom-xmlhttprequest-setrequestheader + hXHR.setRequestHeader("Content-type", options.content); + // FIXME refused to set unsafe header content-length javascript + // hXHR.setRequestHeader ("Content-length", options.data.length); + // hXHR.setRequestHeader ("Referer", options.headers.referer); + } + + /** + * Description + * + * @method onerror + * @private + */ + hXHR.onerror = function () { + reject(new Error("Errors Occured on Http Request with XMLHttpRequest !")); + }; + + /** + * Description + * + * @method ontimeout + * @private + */ + hXHR.ontimeout = function () { + reject(new Error("TimeOut Occured on Http Request with XMLHttpRequest !")); + }; + + /** + * On Load + * + * @method onload + * @private + */ + hXHR.onload = function (e) { + if (hXHR.status === 200) { + resolve(hXHR.responseText); + } else { + var message = "Errors Occured on Http Request (status : '" + e.target.statusText + "' | url : '" + e.target.responseURL + "')"; + var status = e.target.status; + reject({ + message: message, + status: status + }); + } + }; + var data4xdr = options.data && corps ? options.data : null; + hXHR.send(data4xdr); + } else { + throw new Error("CORS not supported"); + } + } + }); + return promise; + }, + /** + * Requete avec parser JSON + * + * @method __callJSON + * @private + * @param {Object} options - options + * @return {Object} promise + */ + __callJSON: function __callJSON(options) { + return this.__call(options).then(JSON.parse)["catch"](function (error) { + console.log("_callJSON failed on : ", options.url, error); + // FIXME pas d'exception, laissons le fil se derouler... + // throw error; + }); + }, + /** + * Requete avec parser XML + * + * @method __callXML + * @private + * @param {Object} options - options + * @return {Object} promise + */ + __callXML: function __callXML(options) { + return this.__call(options).then(function (response) { + var xmlDoc; + + // test on env. nodejs or browser + if (typeof window === "undefined") { + var DOMParser = __webpack_require__(15).DOMParser; // __xmldom.DOMParser + xmlDoc = new DOMParser().parseFromString(response, "text/xml"); + } else { + if (window.DOMParser) { + var parser = new window.DOMParser(); + xmlDoc = parser.parseFromString(response, "text/xml"); + } else { + // IE + xmlDoc = new window.ActiveXObject("Microsoft.XMLDOM"); + xmlDoc.async = false; + xmlDoc.loadXML(response); + } + } + return xmlDoc; + })["catch"](function (error) { + console.log("__callXML failed on : ", options.url, error); + // FIXME pas d'exception, laissons le fil se derouler... + // throw error; + }); + } +}; +/* harmony default export */ __webpack_exports__["default"] = (XHR); + +/***/ }), +/* 11 */ +/***/ (function(module, exports, __webpack_require__) { + +/* WEBPACK VAR INJECTION */(function(process, global) {/*! + * @overview es6-promise - a tiny implementation of Promises/A+. + * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) + * @license Licensed under MIT license + * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE + * @version v4.2.8+1e68dce6 + */ + +(function (global, factory) { + true ? module.exports = factory() : + undefined; +}(this, (function () { 'use strict'; + +function objectOrFunction(x) { + var type = typeof x; + return x !== null && (type === 'object' || type === 'function'); +} + +function isFunction(x) { + return typeof x === 'function'; +} + + + +var _isArray = void 0; +if (Array.isArray) { + _isArray = Array.isArray; +} else { + _isArray = function (x) { + return Object.prototype.toString.call(x) === '[object Array]'; + }; +} + +var isArray = _isArray; + +var len = 0; +var vertxNext = void 0; +var customSchedulerFn = void 0; + +var asap = function asap(callback, arg) { + queue[len] = callback; + queue[len + 1] = arg; + len += 2; + if (len === 2) { + // If len is 2, that means that we need to schedule an async flush. + // If additional callbacks are queued before the queue is flushed, they + // will be processed by this flush that we are scheduling. + if (customSchedulerFn) { + customSchedulerFn(flush); + } else { + scheduleFlush(); + } + } +}; + +function setScheduler(scheduleFn) { + customSchedulerFn = scheduleFn; +} + +function setAsap(asapFn) { + asap = asapFn; +} + +var browserWindow = typeof window !== 'undefined' ? window : undefined; +var browserGlobal = browserWindow || {}; +var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver; +var isNode = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; + +// test for web worker but not in IE10 +var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined'; + +// node +function useNextTick() { + // node version 0.10.x displays a deprecation warning when nextTick is used recursively + // see https://github.com/cujojs/when/issues/410 for details + return function () { + return process.nextTick(flush); + }; +} + +// vertx +function useVertxTimer() { + if (typeof vertxNext !== 'undefined') { + return function () { + vertxNext(flush); + }; + } + + return useSetTimeout(); +} + +function useMutationObserver() { + var iterations = 0; + var observer = new BrowserMutationObserver(flush); + var node = document.createTextNode(''); + observer.observe(node, { characterData: true }); + + return function () { + node.data = iterations = ++iterations % 2; + }; +} + +// web worker +function useMessageChannel() { + var channel = new MessageChannel(); + channel.port1.onmessage = flush; + return function () { + return channel.port2.postMessage(0); + }; +} + +function useSetTimeout() { + // Store setTimeout reference so es6-promise will be unaffected by + // other code modifying setTimeout (like sinon.useFakeTimers()) + var globalSetTimeout = setTimeout; + return function () { + return globalSetTimeout(flush, 1); + }; +} + +var queue = new Array(1000); +function flush() { + for (var i = 0; i < len; i += 2) { + var callback = queue[i]; + var arg = queue[i + 1]; + + callback(arg); + + queue[i] = undefined; + queue[i + 1] = undefined; + } + + len = 0; +} + +function attemptVertx() { + try { + var vertx = Function('return this')().require('vertx'); + vertxNext = vertx.runOnLoop || vertx.runOnContext; + return useVertxTimer(); + } catch (e) { + return useSetTimeout(); + } +} + +var scheduleFlush = void 0; +// Decide what async method to use to triggering processing of queued callbacks: +if (isNode) { + scheduleFlush = useNextTick(); +} else if (BrowserMutationObserver) { + scheduleFlush = useMutationObserver(); +} else if (isWorker) { + scheduleFlush = useMessageChannel(); +} else if (browserWindow === undefined && "function" === 'function') { + scheduleFlush = attemptVertx(); +} else { + scheduleFlush = useSetTimeout(); +} + +function then(onFulfillment, onRejection) { + var parent = this; + + var child = new this.constructor(noop); + + if (child[PROMISE_ID] === undefined) { + makePromise(child); + } + + var _state = parent._state; + + + if (_state) { + var callback = arguments[_state - 1]; + asap(function () { + return invokeCallback(_state, child, callback, parent._result); + }); + } else { + subscribe(parent, child, onFulfillment, onRejection); + } + + return child; +} + +/** + `Promise.resolve` returns a promise that will become resolved with the + passed `value`. It is shorthand for the following: + + ```javascript + let promise = new Promise(function(resolve, reject){ + resolve(1); + }); + + promise.then(function(value){ + // value === 1 + }); + ``` + + Instead of writing the above, your code now simply becomes the following: + + ```javascript + let promise = Promise.resolve(1); + + promise.then(function(value){ + // value === 1 + }); + ``` + + @method resolve + @static + @param {Any} value value that the returned promise will be resolved with + Useful for tooling. + @return {Promise} a promise that will become fulfilled with the given + `value` +*/ +function resolve$1(object) { + /*jshint validthis:true */ + var Constructor = this; + + if (object && typeof object === 'object' && object.constructor === Constructor) { + return object; + } + + var promise = new Constructor(noop); + resolve(promise, object); + return promise; +} + +var PROMISE_ID = Math.random().toString(36).substring(2); + +function noop() {} + +var PENDING = void 0; +var FULFILLED = 1; +var REJECTED = 2; + +function selfFulfillment() { + return new TypeError("You cannot resolve a promise with itself"); +} + +function cannotReturnOwn() { + return new TypeError('A promises callback cannot return that same promise.'); +} + +function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) { + try { + then$$1.call(value, fulfillmentHandler, rejectionHandler); + } catch (e) { + return e; + } +} + +function handleForeignThenable(promise, thenable, then$$1) { + asap(function (promise) { + var sealed = false; + var error = tryThen(then$$1, thenable, function (value) { + if (sealed) { + return; + } + sealed = true; + if (thenable !== value) { + resolve(promise, value); + } else { + fulfill(promise, value); + } + }, function (reason) { + if (sealed) { + return; + } + sealed = true; + + reject(promise, reason); + }, 'Settle: ' + (promise._label || ' unknown promise')); + + if (!sealed && error) { + sealed = true; + reject(promise, error); + } + }, promise); +} + +function handleOwnThenable(promise, thenable) { + if (thenable._state === FULFILLED) { + fulfill(promise, thenable._result); + } else if (thenable._state === REJECTED) { + reject(promise, thenable._result); + } else { + subscribe(thenable, undefined, function (value) { + return resolve(promise, value); + }, function (reason) { + return reject(promise, reason); + }); + } +} + +function handleMaybeThenable(promise, maybeThenable, then$$1) { + if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) { + handleOwnThenable(promise, maybeThenable); + } else { + if (then$$1 === undefined) { + fulfill(promise, maybeThenable); + } else if (isFunction(then$$1)) { + handleForeignThenable(promise, maybeThenable, then$$1); + } else { + fulfill(promise, maybeThenable); + } + } +} + +function resolve(promise, value) { + if (promise === value) { + reject(promise, selfFulfillment()); + } else if (objectOrFunction(value)) { + var then$$1 = void 0; + try { + then$$1 = value.then; + } catch (error) { + reject(promise, error); + return; + } + handleMaybeThenable(promise, value, then$$1); + } else { + fulfill(promise, value); + } +} + +function publishRejection(promise) { + if (promise._onerror) { + promise._onerror(promise._result); + } + + publish(promise); +} + +function fulfill(promise, value) { + if (promise._state !== PENDING) { + return; + } + + promise._result = value; + promise._state = FULFILLED; + + if (promise._subscribers.length !== 0) { + asap(publish, promise); + } +} + +function reject(promise, reason) { + if (promise._state !== PENDING) { + return; + } + promise._state = REJECTED; + promise._result = reason; + + asap(publishRejection, promise); +} + +function subscribe(parent, child, onFulfillment, onRejection) { + var _subscribers = parent._subscribers; + var length = _subscribers.length; + + + parent._onerror = null; + + _subscribers[length] = child; + _subscribers[length + FULFILLED] = onFulfillment; + _subscribers[length + REJECTED] = onRejection; + + if (length === 0 && parent._state) { + asap(publish, parent); + } +} + +function publish(promise) { + var subscribers = promise._subscribers; + var settled = promise._state; + + if (subscribers.length === 0) { + return; + } + + var child = void 0, + callback = void 0, + detail = promise._result; + + for (var i = 0; i < subscribers.length; i += 3) { + child = subscribers[i]; + callback = subscribers[i + settled]; + + if (child) { + invokeCallback(settled, child, callback, detail); + } else { + callback(detail); + } + } + + promise._subscribers.length = 0; +} + +function invokeCallback(settled, promise, callback, detail) { + var hasCallback = isFunction(callback), + value = void 0, + error = void 0, + succeeded = true; + + if (hasCallback) { + try { + value = callback(detail); + } catch (e) { + succeeded = false; + error = e; + } + + if (promise === value) { + reject(promise, cannotReturnOwn()); + return; + } + } else { + value = detail; + } + + if (promise._state !== PENDING) { + // noop + } else if (hasCallback && succeeded) { + resolve(promise, value); + } else if (succeeded === false) { + reject(promise, error); + } else if (settled === FULFILLED) { + fulfill(promise, value); + } else if (settled === REJECTED) { + reject(promise, value); + } +} + +function initializePromise(promise, resolver) { + try { + resolver(function resolvePromise(value) { + resolve(promise, value); + }, function rejectPromise(reason) { + reject(promise, reason); + }); + } catch (e) { + reject(promise, e); + } +} + +var id = 0; +function nextId() { + return id++; +} + +function makePromise(promise) { + promise[PROMISE_ID] = id++; + promise._state = undefined; + promise._result = undefined; + promise._subscribers = []; +} + +function validationError() { + return new Error('Array Methods must be provided an Array'); +} + +var Enumerator = function () { + function Enumerator(Constructor, input) { + this._instanceConstructor = Constructor; + this.promise = new Constructor(noop); + + if (!this.promise[PROMISE_ID]) { + makePromise(this.promise); + } + + if (isArray(input)) { + this.length = input.length; + this._remaining = input.length; + + this._result = new Array(this.length); + + if (this.length === 0) { + fulfill(this.promise, this._result); + } else { + this.length = this.length || 0; + this._enumerate(input); + if (this._remaining === 0) { + fulfill(this.promise, this._result); + } + } + } else { + reject(this.promise, validationError()); + } + } + + Enumerator.prototype._enumerate = function _enumerate(input) { + for (var i = 0; this._state === PENDING && i < input.length; i++) { + this._eachEntry(input[i], i); + } + }; + + Enumerator.prototype._eachEntry = function _eachEntry(entry, i) { + var c = this._instanceConstructor; + var resolve$$1 = c.resolve; + + + if (resolve$$1 === resolve$1) { + var _then = void 0; + var error = void 0; + var didError = false; + try { + _then = entry.then; + } catch (e) { + didError = true; + error = e; + } + + if (_then === then && entry._state !== PENDING) { + this._settledAt(entry._state, i, entry._result); + } else if (typeof _then !== 'function') { + this._remaining--; + this._result[i] = entry; + } else if (c === Promise$1) { + var promise = new c(noop); + if (didError) { + reject(promise, error); + } else { + handleMaybeThenable(promise, entry, _then); + } + this._willSettleAt(promise, i); + } else { + this._willSettleAt(new c(function (resolve$$1) { + return resolve$$1(entry); + }), i); + } + } else { + this._willSettleAt(resolve$$1(entry), i); + } + }; + + Enumerator.prototype._settledAt = function _settledAt(state, i, value) { + var promise = this.promise; + + + if (promise._state === PENDING) { + this._remaining--; + + if (state === REJECTED) { + reject(promise, value); + } else { + this._result[i] = value; + } + } + + if (this._remaining === 0) { + fulfill(promise, this._result); + } + }; + + Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) { + var enumerator = this; + + subscribe(promise, undefined, function (value) { + return enumerator._settledAt(FULFILLED, i, value); + }, function (reason) { + return enumerator._settledAt(REJECTED, i, reason); + }); + }; + + return Enumerator; +}(); + +/** + `Promise.all` accepts an array of promises, and returns a new promise which + is fulfilled with an array of fulfillment values for the passed promises, or + rejected with the reason of the first passed promise to be rejected. It casts all + elements of the passed iterable to promises as it runs this algorithm. + + Example: + + ```javascript + let promise1 = resolve(1); + let promise2 = resolve(2); + let promise3 = resolve(3); + let promises = [ promise1, promise2, promise3 ]; + + Promise.all(promises).then(function(array){ + // The array here would be [ 1, 2, 3 ]; + }); + ``` + + If any of the `promises` given to `all` are rejected, the first promise + that is rejected will be given as an argument to the returned promises's + rejection handler. For example: + + Example: + + ```javascript + let promise1 = resolve(1); + let promise2 = reject(new Error("2")); + let promise3 = reject(new Error("3")); + let promises = [ promise1, promise2, promise3 ]; + + Promise.all(promises).then(function(array){ + // Code here never runs because there are rejected promises! + }, function(error) { + // error.message === "2" + }); + ``` + + @method all + @static + @param {Array} entries array of promises + @param {String} label optional string for labeling the promise. + Useful for tooling. + @return {Promise} promise that is fulfilled when all `promises` have been + fulfilled, or rejected if any of them become rejected. + @static +*/ +function all(entries) { + return new Enumerator(this, entries).promise; +} + +/** + `Promise.race` returns a new promise which is settled in the same way as the + first passed promise to settle. + + Example: + + ```javascript + let promise1 = new Promise(function(resolve, reject){ + setTimeout(function(){ + resolve('promise 1'); + }, 200); + }); + + let promise2 = new Promise(function(resolve, reject){ + setTimeout(function(){ + resolve('promise 2'); + }, 100); + }); + + Promise.race([promise1, promise2]).then(function(result){ + // result === 'promise 2' because it was resolved before promise1 + // was resolved. + }); + ``` + + `Promise.race` is deterministic in that only the state of the first + settled promise matters. For example, even if other promises given to the + `promises` array argument are resolved, but the first settled promise has + become rejected before the other promises became fulfilled, the returned + promise will become rejected: + + ```javascript + let promise1 = new Promise(function(resolve, reject){ + setTimeout(function(){ + resolve('promise 1'); + }, 200); + }); + + let promise2 = new Promise(function(resolve, reject){ + setTimeout(function(){ + reject(new Error('promise 2')); + }, 100); + }); + + Promise.race([promise1, promise2]).then(function(result){ + // Code here never runs + }, function(reason){ + // reason.message === 'promise 2' because promise 2 became rejected before + // promise 1 became fulfilled + }); + ``` + + An example real-world use case is implementing timeouts: + + ```javascript + Promise.race([ajax('foo.json'), timeout(5000)]) + ``` + + @method race + @static + @param {Array} promises array of promises to observe + Useful for tooling. + @return {Promise} a promise which settles in the same way as the first passed + promise to settle. +*/ +function race(entries) { + /*jshint validthis:true */ + var Constructor = this; + + if (!isArray(entries)) { + return new Constructor(function (_, reject) { + return reject(new TypeError('You must pass an array to race.')); + }); + } else { + return new Constructor(function (resolve, reject) { + var length = entries.length; + for (var i = 0; i < length; i++) { + Constructor.resolve(entries[i]).then(resolve, reject); + } + }); + } +} + +/** + `Promise.reject` returns a promise rejected with the passed `reason`. + It is shorthand for the following: + + ```javascript + let promise = new Promise(function(resolve, reject){ + reject(new Error('WHOOPS')); + }); + + promise.then(function(value){ + // Code here doesn't run because the promise is rejected! + }, function(reason){ + // reason.message === 'WHOOPS' + }); + ``` + + Instead of writing the above, your code now simply becomes the following: + + ```javascript + let promise = Promise.reject(new Error('WHOOPS')); + + promise.then(function(value){ + // Code here doesn't run because the promise is rejected! + }, function(reason){ + // reason.message === 'WHOOPS' + }); + ``` + + @method reject + @static + @param {Any} reason value that the returned promise will be rejected with. + Useful for tooling. + @return {Promise} a promise rejected with the given `reason`. +*/ +function reject$1(reason) { + /*jshint validthis:true */ + var Constructor = this; + var promise = new Constructor(noop); + reject(promise, reason); + return promise; +} + +function needsResolver() { + throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); +} + +function needsNew() { + throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); +} + +/** + Promise objects represent the eventual result of an asynchronous operation. The + primary way of interacting with a promise is through its `then` method, which + registers callbacks to receive either a promise's eventual value or the reason + why the promise cannot be fulfilled. + + Terminology + ----------- + + - `promise` is an object or function with a `then` method whose behavior conforms to this specification. + - `thenable` is an object or function that defines a `then` method. + - `value` is any legal JavaScript value (including undefined, a thenable, or a promise). + - `exception` is a value that is thrown using the throw statement. + - `reason` is a value that indicates why a promise was rejected. + - `settled` the final resting state of a promise, fulfilled or rejected. + + A promise can be in one of three states: pending, fulfilled, or rejected. + + Promises that are fulfilled have a fulfillment value and are in the fulfilled + state. Promises that are rejected have a rejection reason and are in the + rejected state. A fulfillment value is never a thenable. + + Promises can also be said to *resolve* a value. If this value is also a + promise, then the original promise's settled state will match the value's + settled state. So a promise that *resolves* a promise that rejects will + itself reject, and a promise that *resolves* a promise that fulfills will + itself fulfill. + + + Basic Usage: + ------------ + + ```js + let promise = new Promise(function(resolve, reject) { + // on success + resolve(value); + + // on failure + reject(reason); + }); + + promise.then(function(value) { + // on fulfillment + }, function(reason) { + // on rejection + }); + ``` + + Advanced Usage: + --------------- + + Promises shine when abstracting away asynchronous interactions such as + `XMLHttpRequest`s. + + ```js + function getJSON(url) { + return new Promise(function(resolve, reject){ + let xhr = new XMLHttpRequest(); + + xhr.open('GET', url); + xhr.onreadystatechange = handler; + xhr.responseType = 'json'; + xhr.setRequestHeader('Accept', 'application/json'); + xhr.send(); + + function handler() { + if (this.readyState === this.DONE) { + if (this.status === 200) { + resolve(this.response); + } else { + reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']')); + } + } + }; + }); + } + + getJSON('/posts.json').then(function(json) { + // on fulfillment + }, function(reason) { + // on rejection + }); + ``` + + Unlike callbacks, promises are great composable primitives. + + ```js + Promise.all([ + getJSON('/posts'), + getJSON('/comments') + ]).then(function(values){ + values[0] // => postsJSON + values[1] // => commentsJSON + + return values; + }); + ``` + + @class Promise + @param {Function} resolver + Useful for tooling. + @constructor +*/ + +var Promise$1 = function () { + function Promise(resolver) { + this[PROMISE_ID] = nextId(); + this._result = this._state = undefined; + this._subscribers = []; + + if (noop !== resolver) { + typeof resolver !== 'function' && needsResolver(); + this instanceof Promise ? initializePromise(this, resolver) : needsNew(); + } + } + + /** + The primary way of interacting with a promise is through its `then` method, + which registers callbacks to receive either a promise's eventual value or the + reason why the promise cannot be fulfilled. + ```js + findUser().then(function(user){ + // user is available + }, function(reason){ + // user is unavailable, and you are given the reason why + }); + ``` + Chaining + -------- + The return value of `then` is itself a promise. This second, 'downstream' + promise is resolved with the return value of the first promise's fulfillment + or rejection handler, or rejected if the handler throws an exception. + ```js + findUser().then(function (user) { + return user.name; + }, function (reason) { + return 'default name'; + }).then(function (userName) { + // If `findUser` fulfilled, `userName` will be the user's name, otherwise it + // will be `'default name'` + }); + findUser().then(function (user) { + throw new Error('Found user, but still unhappy'); + }, function (reason) { + throw new Error('`findUser` rejected and we're unhappy'); + }).then(function (value) { + // never reached + }, function (reason) { + // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'. + // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'. + }); + ``` + If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream. + ```js + findUser().then(function (user) { + throw new PedagogicalException('Upstream error'); + }).then(function (value) { + // never reached + }).then(function (value) { + // never reached + }, function (reason) { + // The `PedgagocialException` is propagated all the way down to here + }); + ``` + Assimilation + ------------ + Sometimes the value you want to propagate to a downstream promise can only be + retrieved asynchronously. This can be achieved by returning a promise in the + fulfillment or rejection handler. The downstream promise will then be pending + until the returned promise is settled. This is called *assimilation*. + ```js + findUser().then(function (user) { + return findCommentsByAuthor(user); + }).then(function (comments) { + // The user's comments are now available + }); + ``` + If the assimliated promise rejects, then the downstream promise will also reject. + ```js + findUser().then(function (user) { + return findCommentsByAuthor(user); + }).then(function (comments) { + // If `findCommentsByAuthor` fulfills, we'll have the value here + }, function (reason) { + // If `findCommentsByAuthor` rejects, we'll have the reason here + }); + ``` + Simple Example + -------------- + Synchronous Example + ```javascript + let result; + try { + result = findResult(); + // success + } catch(reason) { + // failure + } + ``` + Errback Example + ```js + findResult(function(result, err){ + if (err) { + // failure + } else { + // success + } + }); + ``` + Promise Example; + ```javascript + findResult().then(function(result){ + // success + }, function(reason){ + // failure + }); + ``` + Advanced Example + -------------- + Synchronous Example + ```javascript + let author, books; + try { + author = findAuthor(); + books = findBooksByAuthor(author); + // success + } catch(reason) { + // failure + } + ``` + Errback Example + ```js + function foundBooks(books) { + } + function failure(reason) { + } + findAuthor(function(author, err){ + if (err) { + failure(err); + // failure + } else { + try { + findBoooksByAuthor(author, function(books, err) { + if (err) { + failure(err); + } else { + try { + foundBooks(books); + } catch(reason) { + failure(reason); + } + } + }); + } catch(error) { + failure(err); + } + // success + } + }); + ``` + Promise Example; + ```javascript + findAuthor(). + then(findBooksByAuthor). + then(function(books){ + // found books + }).catch(function(reason){ + // something went wrong + }); + ``` + @method then + @param {Function} onFulfilled + @param {Function} onRejected + Useful for tooling. + @return {Promise} + */ + + /** + `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same + as the catch block of a try/catch statement. + ```js + function findAuthor(){ + throw new Error('couldn't find that author'); + } + // synchronous + try { + findAuthor(); + } catch(reason) { + // something went wrong + } + // async with promises + findAuthor().catch(function(reason){ + // something went wrong + }); + ``` + @method catch + @param {Function} onRejection + Useful for tooling. + @return {Promise} + */ + + + Promise.prototype.catch = function _catch(onRejection) { + return this.then(null, onRejection); + }; + + /** + `finally` will be invoked regardless of the promise's fate just as native + try/catch/finally behaves + + Synchronous example: + + ```js + findAuthor() { + if (Math.random() > 0.5) { + throw new Error(); + } + return new Author(); + } + + try { + return findAuthor(); // succeed or fail + } catch(error) { + return findOtherAuther(); + } finally { + // always runs + // doesn't affect the return value + } + ``` + + Asynchronous example: + + ```js + findAuthor().catch(function(reason){ + return findOtherAuther(); + }).finally(function(){ + // author was either found, or not + }); + ``` + + @method finally + @param {Function} callback + @return {Promise} + */ + + + Promise.prototype.finally = function _finally(callback) { + var promise = this; + var constructor = promise.constructor; + + if (isFunction(callback)) { + return promise.then(function (value) { + return constructor.resolve(callback()).then(function () { + return value; + }); + }, function (reason) { + return constructor.resolve(callback()).then(function () { + throw reason; + }); + }); + } + + return promise.then(callback, callback); + }; + + return Promise; +}(); + +Promise$1.prototype.then = then; +Promise$1.all = all; +Promise$1.race = race; +Promise$1.resolve = resolve$1; +Promise$1.reject = reject$1; +Promise$1._setScheduler = setScheduler; +Promise$1._setAsap = setAsap; +Promise$1._asap = asap; + +/*global self*/ +function polyfill() { + var local = void 0; + + if (typeof global !== 'undefined') { + local = global; + } else if (typeof self !== 'undefined') { + local = self; + } else { + try { + local = Function('return this')(); + } catch (e) { + throw new Error('polyfill failed because global object is unavailable in this environment'); + } + } + + var P = local.Promise; + + if (P) { + var promiseToString = null; + try { + promiseToString = Object.prototype.toString.call(P.resolve()); + } catch (e) { + // silently ignored + } + + if (promiseToString === '[object Promise]' && !P.cast) { + return; + } + } + + local.Promise = Promise$1; +} + +// Strange compat.. +Promise$1.polyfill = polyfill; +Promise$1.Promise = Promise$1; + +return Promise$1; + +}))); + + + +//# sourceMappingURL=es6-promise.map + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(12), __webpack_require__(13))) + +/***/ }), +/* 12 */ +/***/ (function(module, exports) { + +// shim for using process in browser +var process = module.exports = {}; + +// cached from whatever global is present so that test runners that stub it +// don't break things. But we need to wrap it in a try catch in case it is +// wrapped in strict mode code which doesn't define any globals. It's inside a +// function because try/catches deoptimize in certain engines. + +var cachedSetTimeout; +var cachedClearTimeout; + +function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); +} +function defaultClearTimeout () { + throw new Error('clearTimeout has not been defined'); +} +(function () { + try { + if (typeof setTimeout === 'function') { + cachedSetTimeout = setTimeout; + } else { + cachedSetTimeout = defaultSetTimout; + } + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + if (typeof clearTimeout === 'function') { + cachedClearTimeout = clearTimeout; + } else { + cachedClearTimeout = defaultClearTimeout; + } + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } +} ()) +function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) { + //normal enviroments in sane situations + return setTimeout(fun, 0); + } + // if setTimeout wasn't available but was latter defined + if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { + cachedSetTimeout = setTimeout; + return setTimeout(fun, 0); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedSetTimeout(fun, 0); + } catch(e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedSetTimeout.call(null, fun, 0); + } catch(e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error + return cachedSetTimeout.call(this, fun, 0); + } + } + + +} +function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) { + //normal enviroments in sane situations + return clearTimeout(marker); + } + // if clearTimeout wasn't available but was latter defined + if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { + cachedClearTimeout = clearTimeout; + return clearTimeout(marker); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedClearTimeout(marker); + } catch (e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedClearTimeout.call(null, marker); + } catch (e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. + // Some versions of I.E. have different rules for clearTimeout vs setTimeout + return cachedClearTimeout.call(this, marker); + } + } + + + +} +var queue = []; +var draining = false; +var currentQueue; +var queueIndex = -1; + +function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); + } else { + queueIndex = -1; + } + if (queue.length) { + drainQueue(); + } +} + +function drainQueue() { + if (draining) { + return; + } + var timeout = runTimeout(cleanUpNextTick); + draining = true; + + var len = queue.length; + while(len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = -1; + len = queue.length; + } + currentQueue = null; + draining = false; + runClearTimeout(timeout); +} + +process.nextTick = function (fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } +}; + +// v8 likes predictible objects +function Item(fun, array) { + this.fun = fun; + this.array = array; +} +Item.prototype.run = function () { + this.fun.apply(null, this.array); +}; +process.title = 'browser'; +process.browser = true; +process.env = {}; +process.argv = []; +process.version = ''; // empty string to avoid regexp issues +process.versions = {}; + +function noop() {} + +process.on = noop; +process.addListener = noop; +process.once = noop; +process.off = noop; +process.removeListener = noop; +process.removeAllListeners = noop; +process.emit = noop; +process.prependListener = noop; +process.prependOnceListener = noop; + +process.listeners = function (name) { return [] } + +process.binding = function (name) { + throw new Error('process.binding is not supported'); +}; + +process.cwd = function () { return '/' }; +process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); +}; +process.umask = function() { return 0; }; + + +/***/ }), +/* 13 */ +/***/ (function(module, exports) { + +var g; + +// This works in non-strict mode +g = (function() { + return this; +})(); + +try { + // This works if eval is allowed (see CSP) + g = g || new Function("return this")(); +} catch (e) { + // This works if the window reference is available + if (typeof window === "object") g = window; +} + +// g can still be undefined, but nothing to do about it... +// We return undefined, instead of nothing here, so it's +// easier to handle this case. if(!global) { ...} + +module.exports = g; + + +/***/ }), +/* 14 */ +/***/ (function(module, exports) { + +module.exports = __WEBPACK_EXTERNAL_MODULE__14__; + +/***/ }), +/* 15 */ +/***/ (function(module, exports, __webpack_require__) { + +var dom = __webpack_require__(16) +exports.DOMImplementation = dom.DOMImplementation +exports.XMLSerializer = dom.XMLSerializer +exports.DOMParser = __webpack_require__(18).DOMParser + + +/***/ }), +/* 16 */ +/***/ (function(module, exports, __webpack_require__) { + +var conventions = __webpack_require__(17); + +var find = conventions.find; +var NAMESPACE = conventions.NAMESPACE; + +/** + * A prerequisite for `[].filter`, to drop elements that are empty + * @param {string} input + * @returns {boolean} + */ +function notEmptyString (input) { + return input !== '' +} +/** + * @see https://infra.spec.whatwg.org/#split-on-ascii-whitespace + * @see https://infra.spec.whatwg.org/#ascii-whitespace + * + * @param {string} input + * @returns {string[]} (can be empty) + */ +function splitOnASCIIWhitespace(input) { + // U+0009 TAB, U+000A LF, U+000C FF, U+000D CR, U+0020 SPACE + return input ? input.split(/[\t\n\f\r ]+/).filter(notEmptyString) : [] +} + +/** + * Adds element as a key to current if it is not already present. + * + * @param {Record} current + * @param {string} element + * @returns {Record} + */ +function orderedSetReducer (current, element) { + if (!current.hasOwnProperty(element)) { + current[element] = true; + } + return current; +} + +/** + * @see https://infra.spec.whatwg.org/#ordered-set + * @param {string} input + * @returns {string[]} + */ +function toOrderedSet(input) { + if (!input) return []; + var list = splitOnASCIIWhitespace(input); + return Object.keys(list.reduce(orderedSetReducer, {})) +} + +/** + * Uses `list.indexOf` to implement something like `Array.prototype.includes`, + * which we can not rely on being available. + * + * @param {any[]} list + * @returns {function(any): boolean} + */ +function arrayIncludes (list) { + return function(element) { + return list && list.indexOf(element) !== -1; + } +} + +function copy(src,dest){ + for(var p in src){ + if (Object.prototype.hasOwnProperty.call(src, p)) { + dest[p] = src[p]; + } + } +} + +/** +^\w+\.prototype\.([_\w]+)\s*=\s*((?:.*\{\s*?[\r\n][\s\S]*?^})|\S.*?(?=[;\r\n]));? +^\w+\.prototype\.([_\w]+)\s*=\s*(\S.*?(?=[;\r\n]));? + */ +function _extends(Class,Super){ + var pt = Class.prototype; + if(!(pt instanceof Super)){ + function t(){}; + t.prototype = Super.prototype; + t = new t(); + copy(pt,t); + Class.prototype = pt = t; + } + if(pt.constructor != Class){ + if(typeof Class != 'function'){ + console.error("unknown Class:"+Class) + } + pt.constructor = Class + } +} + +// Node Types +var NodeType = {} +var ELEMENT_NODE = NodeType.ELEMENT_NODE = 1; +var ATTRIBUTE_NODE = NodeType.ATTRIBUTE_NODE = 2; +var TEXT_NODE = NodeType.TEXT_NODE = 3; +var CDATA_SECTION_NODE = NodeType.CDATA_SECTION_NODE = 4; +var ENTITY_REFERENCE_NODE = NodeType.ENTITY_REFERENCE_NODE = 5; +var ENTITY_NODE = NodeType.ENTITY_NODE = 6; +var PROCESSING_INSTRUCTION_NODE = NodeType.PROCESSING_INSTRUCTION_NODE = 7; +var COMMENT_NODE = NodeType.COMMENT_NODE = 8; +var DOCUMENT_NODE = NodeType.DOCUMENT_NODE = 9; +var DOCUMENT_TYPE_NODE = NodeType.DOCUMENT_TYPE_NODE = 10; +var DOCUMENT_FRAGMENT_NODE = NodeType.DOCUMENT_FRAGMENT_NODE = 11; +var NOTATION_NODE = NodeType.NOTATION_NODE = 12; + +// ExceptionCode +var ExceptionCode = {} +var ExceptionMessage = {}; +var INDEX_SIZE_ERR = ExceptionCode.INDEX_SIZE_ERR = ((ExceptionMessage[1]="Index size error"),1); +var DOMSTRING_SIZE_ERR = ExceptionCode.DOMSTRING_SIZE_ERR = ((ExceptionMessage[2]="DOMString size error"),2); +var HIERARCHY_REQUEST_ERR = ExceptionCode.HIERARCHY_REQUEST_ERR = ((ExceptionMessage[3]="Hierarchy request error"),3); +var WRONG_DOCUMENT_ERR = ExceptionCode.WRONG_DOCUMENT_ERR = ((ExceptionMessage[4]="Wrong document"),4); +var INVALID_CHARACTER_ERR = ExceptionCode.INVALID_CHARACTER_ERR = ((ExceptionMessage[5]="Invalid character"),5); +var NO_DATA_ALLOWED_ERR = ExceptionCode.NO_DATA_ALLOWED_ERR = ((ExceptionMessage[6]="No data allowed"),6); +var NO_MODIFICATION_ALLOWED_ERR = ExceptionCode.NO_MODIFICATION_ALLOWED_ERR = ((ExceptionMessage[7]="No modification allowed"),7); +var NOT_FOUND_ERR = ExceptionCode.NOT_FOUND_ERR = ((ExceptionMessage[8]="Not found"),8); +var NOT_SUPPORTED_ERR = ExceptionCode.NOT_SUPPORTED_ERR = ((ExceptionMessage[9]="Not supported"),9); +var INUSE_ATTRIBUTE_ERR = ExceptionCode.INUSE_ATTRIBUTE_ERR = ((ExceptionMessage[10]="Attribute in use"),10); +//level2 +var INVALID_STATE_ERR = ExceptionCode.INVALID_STATE_ERR = ((ExceptionMessage[11]="Invalid state"),11); +var SYNTAX_ERR = ExceptionCode.SYNTAX_ERR = ((ExceptionMessage[12]="Syntax error"),12); +var INVALID_MODIFICATION_ERR = ExceptionCode.INVALID_MODIFICATION_ERR = ((ExceptionMessage[13]="Invalid modification"),13); +var NAMESPACE_ERR = ExceptionCode.NAMESPACE_ERR = ((ExceptionMessage[14]="Invalid namespace"),14); +var INVALID_ACCESS_ERR = ExceptionCode.INVALID_ACCESS_ERR = ((ExceptionMessage[15]="Invalid access"),15); + +/** + * DOM Level 2 + * Object DOMException + * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/ecma-script-binding.html + * @see http://www.w3.org/TR/REC-DOM-Level-1/ecma-script-language-binding.html + */ +function DOMException(code, message) { + if(message instanceof Error){ + var error = message; + }else{ + error = this; + Error.call(this, ExceptionMessage[code]); + this.message = ExceptionMessage[code]; + if(Error.captureStackTrace) Error.captureStackTrace(this, DOMException); + } + error.code = code; + if(message) this.message = this.message + ": " + message; + return error; +}; +DOMException.prototype = Error.prototype; +copy(ExceptionCode,DOMException) + +/** + * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-536297177 + * The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. NodeList objects in the DOM are live. + * The items in the NodeList are accessible via an integral index, starting from 0. + */ +function NodeList() { +}; +NodeList.prototype = { + /** + * The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive. + * @standard level1 + */ + length:0, + /** + * Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null. + * @standard level1 + * @param index unsigned long + * Index into the collection. + * @return Node + * The node at the indexth position in the NodeList, or null if that is not a valid index. + */ + item: function(index) { + return index >= 0 && index < this.length ? this[index] : null; + }, + toString:function(isHTML,nodeFilter){ + for(var buf = [], i = 0;i=0){ + var lastIndex = list.length-1 + while(i0 || key == 'xmlns'){ +// return null; +// } + //console.log() + var i = this.length; + while(i--){ + var attr = this[i]; + //console.log(attr.nodeName,key) + if(attr.nodeName == key){ + return attr; + } + } + }, + setNamedItem: function(attr) { + var el = attr.ownerElement; + if(el && el!=this._ownerElement){ + throw new DOMException(INUSE_ATTRIBUTE_ERR); + } + var oldAttr = this.getNamedItem(attr.nodeName); + _addNamedNode(this._ownerElement,this,attr,oldAttr); + return oldAttr; + }, + /* returns Node */ + setNamedItemNS: function(attr) {// raises: WRONG_DOCUMENT_ERR,NO_MODIFICATION_ALLOWED_ERR,INUSE_ATTRIBUTE_ERR + var el = attr.ownerElement, oldAttr; + if(el && el!=this._ownerElement){ + throw new DOMException(INUSE_ATTRIBUTE_ERR); + } + oldAttr = this.getNamedItemNS(attr.namespaceURI,attr.localName); + _addNamedNode(this._ownerElement,this,attr,oldAttr); + return oldAttr; + }, + + /* returns Node */ + removeNamedItem: function(key) { + var attr = this.getNamedItem(key); + _removeNamedNode(this._ownerElement,this,attr); + return attr; + + + },// raises: NOT_FOUND_ERR,NO_MODIFICATION_ALLOWED_ERR + + //for level2 + removeNamedItemNS:function(namespaceURI,localName){ + var attr = this.getNamedItemNS(namespaceURI,localName); + _removeNamedNode(this._ownerElement,this,attr); + return attr; + }, + getNamedItemNS: function(namespaceURI, localName) { + var i = this.length; + while(i--){ + var node = this[i]; + if(node.localName == localName && node.namespaceURI == namespaceURI){ + return node; + } + } + return null; + } +}; + +/** + * The DOMImplementation interface represents an object providing methods + * which are not dependent on any particular document. + * Such an object is returned by the `Document.implementation` property. + * + * __The individual methods describe the differences compared to the specs.__ + * + * @constructor + * + * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation MDN + * @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-102161490 DOM Level 1 Core (Initial) + * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-102161490 DOM Level 2 Core + * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-102161490 DOM Level 3 Core + * @see https://dom.spec.whatwg.org/#domimplementation DOM Living Standard + */ +function DOMImplementation() { +} + +DOMImplementation.prototype = { + /** + * The DOMImplementation.hasFeature() method returns a Boolean flag indicating if a given feature is supported. + * The different implementations fairly diverged in what kind of features were reported. + * The latest version of the spec settled to force this method to always return true, where the functionality was accurate and in use. + * + * @deprecated It is deprecated and modern browsers return true in all cases. + * + * @param {string} feature + * @param {string} [version] + * @returns {boolean} always true + * + * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/hasFeature MDN + * @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-5CED94D7 DOM Level 1 Core + * @see https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature DOM Living Standard + */ + hasFeature: function(feature, version) { + return true; + }, + /** + * Creates an XML Document object of the specified type with its document element. + * + * __It behaves slightly different from the description in the living standard__: + * - There is no interface/class `XMLDocument`, it returns a `Document` instance. + * - `contentType`, `encoding`, `mode`, `origin`, `url` fields are currently not declared. + * - this implementation is not validating names or qualified names + * (when parsing XML strings, the SAX parser takes care of that) + * + * @param {string|null} namespaceURI + * @param {string} qualifiedName + * @param {DocumentType=null} doctype + * @returns {Document} + * + * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocument MDN + * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#Level-2-Core-DOM-createDocument DOM Level 2 Core (initial) + * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocument DOM Level 2 Core + * + * @see https://dom.spec.whatwg.org/#validate-and-extract DOM: Validate and extract + * @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names + * @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names + */ + createDocument: function(namespaceURI, qualifiedName, doctype){ + var doc = new Document(); + doc.implementation = this; + doc.childNodes = new NodeList(); + doc.doctype = doctype || null; + if (doctype){ + doc.appendChild(doctype); + } + if (qualifiedName){ + var root = doc.createElementNS(namespaceURI, qualifiedName); + doc.appendChild(root); + } + return doc; + }, + /** + * Returns a doctype, with the given `qualifiedName`, `publicId`, and `systemId`. + * + * __This behavior is slightly different from the in the specs__: + * - this implementation is not validating names or qualified names + * (when parsing XML strings, the SAX parser takes care of that) + * + * @param {string} qualifiedName + * @param {string} [publicId] + * @param {string} [systemId] + * @returns {DocumentType} which can either be used with `DOMImplementation.createDocument` upon document creation + * or can be put into the document via methods like `Node.insertBefore()` or `Node.replaceChild()` + * + * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocumentType MDN + * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#Level-2-Core-DOM-createDocType DOM Level 2 Core + * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype DOM Living Standard + * + * @see https://dom.spec.whatwg.org/#validate-and-extract DOM: Validate and extract + * @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names + * @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names + */ + createDocumentType: function(qualifiedName, publicId, systemId){ + var node = new DocumentType(); + node.name = qualifiedName; + node.nodeName = qualifiedName; + node.publicId = publicId || ''; + node.systemId = systemId || ''; + + return node; + } +}; + + +/** + * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641247 + */ + +function Node() { +}; + +Node.prototype = { + firstChild : null, + lastChild : null, + previousSibling : null, + nextSibling : null, + attributes : null, + parentNode : null, + childNodes : null, + ownerDocument : null, + nodeValue : null, + namespaceURI : null, + prefix : null, + localName : null, + // Modified in DOM Level 2: + insertBefore:function(newChild, refChild){//raises + return _insertBefore(this,newChild,refChild); + }, + replaceChild:function(newChild, oldChild){//raises + _insertBefore(this, newChild,oldChild, assertPreReplacementValidityInDocument); + if(oldChild){ + this.removeChild(oldChild); + } + }, + removeChild:function(oldChild){ + return _removeChild(this,oldChild); + }, + appendChild:function(newChild){ + return this.insertBefore(newChild,null); + }, + hasChildNodes:function(){ + return this.firstChild != null; + }, + cloneNode:function(deep){ + return cloneNode(this.ownerDocument||this,this,deep); + }, + // Modified in DOM Level 2: + normalize:function(){ + var child = this.firstChild; + while(child){ + var next = child.nextSibling; + if(next && next.nodeType == TEXT_NODE && child.nodeType == TEXT_NODE){ + this.removeChild(next); + child.appendData(next.data); + }else{ + child.normalize(); + child = next; + } + } + }, + // Introduced in DOM Level 2: + isSupported:function(feature, version){ + return this.ownerDocument.implementation.hasFeature(feature,version); + }, + // Introduced in DOM Level 2: + hasAttributes:function(){ + return this.attributes.length>0; + }, + /** + * Look up the prefix associated to the given namespace URI, starting from this node. + * **The default namespace declarations are ignored by this method.** + * See Namespace Prefix Lookup for details on the algorithm used by this method. + * + * _Note: The implementation seems to be incomplete when compared to the algorithm described in the specs._ + * + * @param {string | null} namespaceURI + * @returns {string | null} + * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespacePrefix + * @see https://www.w3.org/TR/DOM-Level-3-Core/namespaces-algorithms.html#lookupNamespacePrefixAlgo + * @see https://dom.spec.whatwg.org/#dom-node-lookupprefix + * @see https://github.com/xmldom/xmldom/issues/322 + */ + lookupPrefix:function(namespaceURI){ + var el = this; + while(el){ + var map = el._nsMap; + //console.dir(map) + if(map){ + for(var n in map){ + if (Object.prototype.hasOwnProperty.call(map, n) && map[n] === namespaceURI) { + return n; + } + } + } + el = el.nodeType == ATTRIBUTE_NODE?el.ownerDocument : el.parentNode; + } + return null; + }, + // Introduced in DOM Level 3: + lookupNamespaceURI:function(prefix){ + var el = this; + while(el){ + var map = el._nsMap; + //console.dir(map) + if(map){ + if(Object.prototype.hasOwnProperty.call(map, prefix)){ + return map[prefix] ; + } + } + el = el.nodeType == ATTRIBUTE_NODE?el.ownerDocument : el.parentNode; + } + return null; + }, + // Introduced in DOM Level 3: + isDefaultNamespace:function(namespaceURI){ + var prefix = this.lookupPrefix(namespaceURI); + return prefix == null; + } +}; + + +function _xmlEncoder(c){ + return c == '<' && '<' || + c == '>' && '>' || + c == '&' && '&' || + c == '"' && '"' || + '&#'+c.charCodeAt()+';' +} + + +copy(NodeType,Node); +copy(NodeType,Node.prototype); + +/** + * @param callback return true for continue,false for break + * @return boolean true: break visit; + */ +function _visitNode(node,callback){ + if(callback(node)){ + return true; + } + if(node = node.firstChild){ + do{ + if(_visitNode(node,callback)){return true} + }while(node=node.nextSibling) + } +} + + + +function Document(){ + this.ownerDocument = this; +} + +function _onAddAttribute(doc,el,newAttr){ + doc && doc._inc++; + var ns = newAttr.namespaceURI ; + if(ns === NAMESPACE.XMLNS){ + //update namespace + el._nsMap[newAttr.prefix?newAttr.localName:''] = newAttr.value + } +} + +function _onRemoveAttribute(doc,el,newAttr,remove){ + doc && doc._inc++; + var ns = newAttr.namespaceURI ; + if(ns === NAMESPACE.XMLNS){ + //update namespace + delete el._nsMap[newAttr.prefix?newAttr.localName:''] + } +} + +/** + * Updates `el.childNodes`, updating the indexed items and it's `length`. + * Passing `newChild` means it will be appended. + * Otherwise it's assumed that an item has been removed, + * and `el.firstNode` and it's `.nextSibling` are used + * to walk the current list of child nodes. + * + * @param {Document} doc + * @param {Node} el + * @param {Node} [newChild] + * @private + */ +function _onUpdateChild (doc, el, newChild) { + if(doc && doc._inc){ + doc._inc++; + //update childNodes + var cs = el.childNodes; + if (newChild) { + cs[cs.length++] = newChild; + } else { + var child = el.firstChild; + var i = 0; + while (child) { + cs[i++] = child; + child = child.nextSibling; + } + cs.length = i; + delete cs[cs.length]; + } + } +} + +/** + * Removes the connections between `parentNode` and `child` + * and any existing `child.previousSibling` or `child.nextSibling`. + * + * @see https://github.com/xmldom/xmldom/issues/135 + * @see https://github.com/xmldom/xmldom/issues/145 + * + * @param {Node} parentNode + * @param {Node} child + * @returns {Node} the child that was removed. + * @private + */ +function _removeChild (parentNode, child) { + var previous = child.previousSibling; + var next = child.nextSibling; + if (previous) { + previous.nextSibling = next; + } else { + parentNode.firstChild = next; + } + if (next) { + next.previousSibling = previous; + } else { + parentNode.lastChild = previous; + } + child.parentNode = null; + child.previousSibling = null; + child.nextSibling = null; + _onUpdateChild(parentNode.ownerDocument, parentNode); + return child; +} + +/** + * Returns `true` if `node` can be a parent for insertion. + * @param {Node} node + * @returns {boolean} + */ +function hasValidParentNodeType(node) { + return ( + node && + (node.nodeType === Node.DOCUMENT_NODE || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.ELEMENT_NODE) + ); +} + +/** + * Returns `true` if `node` can be inserted according to it's `nodeType`. + * @param {Node} node + * @returns {boolean} + */ +function hasInsertableNodeType(node) { + return ( + node && + (isElementNode(node) || + isTextNode(node) || + isDocTypeNode(node) || + node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || + node.nodeType === Node.COMMENT_NODE || + node.nodeType === Node.PROCESSING_INSTRUCTION_NODE) + ); +} + +/** + * Returns true if `node` is a DOCTYPE node + * @param {Node} node + * @returns {boolean} + */ +function isDocTypeNode(node) { + return node && node.nodeType === Node.DOCUMENT_TYPE_NODE; +} + +/** + * Returns true if the node is an element + * @param {Node} node + * @returns {boolean} + */ +function isElementNode(node) { + return node && node.nodeType === Node.ELEMENT_NODE; +} +/** + * Returns true if `node` is a text node + * @param {Node} node + * @returns {boolean} + */ +function isTextNode(node) { + return node && node.nodeType === Node.TEXT_NODE; +} + +/** + * Check if en element node can be inserted before `child`, or at the end if child is falsy, + * according to the presence and position of a doctype node on the same level. + * + * @param {Document} doc The document node + * @param {Node} child the node that would become the nextSibling if the element would be inserted + * @returns {boolean} `true` if an element can be inserted before child + * @private + * https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity + */ +function isElementInsertionPossible(doc, child) { + var parentChildNodes = doc.childNodes || []; + if (find(parentChildNodes, isElementNode) || isDocTypeNode(child)) { + return false; + } + var docTypeNode = find(parentChildNodes, isDocTypeNode); + return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child)); +} + +/** + * Check if en element node can be inserted before `child`, or at the end if child is falsy, + * according to the presence and position of a doctype node on the same level. + * + * @param {Node} doc The document node + * @param {Node} child the node that would become the nextSibling if the element would be inserted + * @returns {boolean} `true` if an element can be inserted before child + * @private + * https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity + */ +function isElementReplacementPossible(doc, child) { + var parentChildNodes = doc.childNodes || []; + + function hasElementChildThatIsNotChild(node) { + return isElementNode(node) && node !== child; + } + + if (find(parentChildNodes, hasElementChildThatIsNotChild)) { + return false; + } + var docTypeNode = find(parentChildNodes, isDocTypeNode); + return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child)); +} + +/** + * @private + * Steps 1-5 of the checks before inserting and before replacing a child are the same. + * + * @param {Node} parent the parent node to insert `node` into + * @param {Node} node the node to insert + * @param {Node=} child the node that should become the `nextSibling` of `node` + * @returns {Node} + * @throws DOMException for several node combinations that would create a DOM that is not well-formed. + * @throws DOMException if `child` is provided but is not a child of `parent`. + * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity + * @see https://dom.spec.whatwg.org/#concept-node-replace + */ +function assertPreInsertionValidity1to5(parent, node, child) { + // 1. If `parent` is not a Document, DocumentFragment, or Element node, then throw a "HierarchyRequestError" DOMException. + if (!hasValidParentNodeType(parent)) { + throw new DOMException(HIERARCHY_REQUEST_ERR, 'Unexpected parent node type ' + parent.nodeType); + } + // 2. If `node` is a host-including inclusive ancestor of `parent`, then throw a "HierarchyRequestError" DOMException. + // not implemented! + // 3. If `child` is non-null and its parent is not `parent`, then throw a "NotFoundError" DOMException. + if (child && child.parentNode !== parent) { + throw new DOMException(NOT_FOUND_ERR, 'child not in parent'); + } + if ( + // 4. If `node` is not a DocumentFragment, DocumentType, Element, or CharacterData node, then throw a "HierarchyRequestError" DOMException. + !hasInsertableNodeType(node) || + // 5. If either `node` is a Text node and `parent` is a document, + // the sax parser currently adds top level text nodes, this will be fixed in 0.9.0 + // || (node.nodeType === Node.TEXT_NODE && parent.nodeType === Node.DOCUMENT_NODE) + // or `node` is a doctype and `parent` is not a document, then throw a "HierarchyRequestError" DOMException. + (isDocTypeNode(node) && parent.nodeType !== Node.DOCUMENT_NODE) + ) { + throw new DOMException( + HIERARCHY_REQUEST_ERR, + 'Unexpected node type ' + node.nodeType + ' for parent node type ' + parent.nodeType + ); + } +} + +/** + * @private + * Step 6 of the checks before inserting and before replacing a child are different. + * + * @param {Document} parent the parent node to insert `node` into + * @param {Node} node the node to insert + * @param {Node | undefined} child the node that should become the `nextSibling` of `node` + * @returns {Node} + * @throws DOMException for several node combinations that would create a DOM that is not well-formed. + * @throws DOMException if `child` is provided but is not a child of `parent`. + * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity + * @see https://dom.spec.whatwg.org/#concept-node-replace + */ +function assertPreInsertionValidityInDocument(parent, node, child) { + var parentChildNodes = parent.childNodes || []; + var nodeChildNodes = node.childNodes || []; + + // DocumentFragment + if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) { + var nodeChildElements = nodeChildNodes.filter(isElementNode); + // If node has more than one element child or has a Text node child. + if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) { + throw new DOMException(HIERARCHY_REQUEST_ERR, 'More than one element or text in fragment'); + } + // Otherwise, if `node` has one element child and either `parent` has an element child, + // `child` is a doctype, or `child` is non-null and a doctype is following `child`. + if (nodeChildElements.length === 1 && !isElementInsertionPossible(parent, child)) { + throw new DOMException(HIERARCHY_REQUEST_ERR, 'Element in fragment can not be inserted before doctype'); + } + } + // Element + if (isElementNode(node)) { + // `parent` has an element child, `child` is a doctype, + // or `child` is non-null and a doctype is following `child`. + if (!isElementInsertionPossible(parent, child)) { + throw new DOMException(HIERARCHY_REQUEST_ERR, 'Only one element can be added and only after doctype'); + } + } + // DocumentType + if (isDocTypeNode(node)) { + // `parent` has a doctype child, + if (find(parentChildNodes, isDocTypeNode)) { + throw new DOMException(HIERARCHY_REQUEST_ERR, 'Only one doctype is allowed'); + } + var parentElementChild = find(parentChildNodes, isElementNode); + // `child` is non-null and an element is preceding `child`, + if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) { + throw new DOMException(HIERARCHY_REQUEST_ERR, 'Doctype can only be inserted before an element'); + } + // or `child` is null and `parent` has an element child. + if (!child && parentElementChild) { + throw new DOMException(HIERARCHY_REQUEST_ERR, 'Doctype can not be appended since element is present'); + } + } +} + +/** + * @private + * Step 6 of the checks before inserting and before replacing a child are different. + * + * @param {Document} parent the parent node to insert `node` into + * @param {Node} node the node to insert + * @param {Node | undefined} child the node that should become the `nextSibling` of `node` + * @returns {Node} + * @throws DOMException for several node combinations that would create a DOM that is not well-formed. + * @throws DOMException if `child` is provided but is not a child of `parent`. + * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity + * @see https://dom.spec.whatwg.org/#concept-node-replace + */ +function assertPreReplacementValidityInDocument(parent, node, child) { + var parentChildNodes = parent.childNodes || []; + var nodeChildNodes = node.childNodes || []; + + // DocumentFragment + if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) { + var nodeChildElements = nodeChildNodes.filter(isElementNode); + // If `node` has more than one element child or has a Text node child. + if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) { + throw new DOMException(HIERARCHY_REQUEST_ERR, 'More than one element or text in fragment'); + } + // Otherwise, if `node` has one element child and either `parent` has an element child that is not `child` or a doctype is following `child`. + if (nodeChildElements.length === 1 && !isElementReplacementPossible(parent, child)) { + throw new DOMException(HIERARCHY_REQUEST_ERR, 'Element in fragment can not be inserted before doctype'); + } + } + // Element + if (isElementNode(node)) { + // `parent` has an element child that is not `child` or a doctype is following `child`. + if (!isElementReplacementPossible(parent, child)) { + throw new DOMException(HIERARCHY_REQUEST_ERR, 'Only one element can be added and only after doctype'); + } + } + // DocumentType + if (isDocTypeNode(node)) { + function hasDoctypeChildThatIsNotChild(node) { + return isDocTypeNode(node) && node !== child; + } + + // `parent` has a doctype child that is not `child`, + if (find(parentChildNodes, hasDoctypeChildThatIsNotChild)) { + throw new DOMException(HIERARCHY_REQUEST_ERR, 'Only one doctype is allowed'); + } + var parentElementChild = find(parentChildNodes, isElementNode); + // or an element is preceding `child`. + if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) { + throw new DOMException(HIERARCHY_REQUEST_ERR, 'Doctype can only be inserted before an element'); + } + } +} + +/** + * @private + * @param {Node} parent the parent node to insert `node` into + * @param {Node} node the node to insert + * @param {Node=} child the node that should become the `nextSibling` of `node` + * @returns {Node} + * @throws DOMException for several node combinations that would create a DOM that is not well-formed. + * @throws DOMException if `child` is provided but is not a child of `parent`. + * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity + */ +function _insertBefore(parent, node, child, _inDocumentAssertion) { + // To ensure pre-insertion validity of a node into a parent before a child, run these steps: + assertPreInsertionValidity1to5(parent, node, child); + + // If parent is a document, and any of the statements below, switched on the interface node implements, + // are true, then throw a "HierarchyRequestError" DOMException. + if (parent.nodeType === Node.DOCUMENT_NODE) { + (_inDocumentAssertion || assertPreInsertionValidityInDocument)(parent, node, child); + } + + var cp = node.parentNode; + if(cp){ + cp.removeChild(node);//remove and update + } + if(node.nodeType === DOCUMENT_FRAGMENT_NODE){ + var newFirst = node.firstChild; + if (newFirst == null) { + return node; + } + var newLast = node.lastChild; + }else{ + newFirst = newLast = node; + } + var pre = child ? child.previousSibling : parent.lastChild; + + newFirst.previousSibling = pre; + newLast.nextSibling = child; + + + if(pre){ + pre.nextSibling = newFirst; + }else{ + parent.firstChild = newFirst; + } + if(child == null){ + parent.lastChild = newLast; + }else{ + child.previousSibling = newLast; + } + do{ + newFirst.parentNode = parent; + }while(newFirst !== newLast && (newFirst= newFirst.nextSibling)) + _onUpdateChild(parent.ownerDocument||parent, parent); + //console.log(parent.lastChild.nextSibling == null) + if (node.nodeType == DOCUMENT_FRAGMENT_NODE) { + node.firstChild = node.lastChild = null; + } + return node; +} + +/** + * Appends `newChild` to `parentNode`. + * If `newChild` is already connected to a `parentNode` it is first removed from it. + * + * @see https://github.com/xmldom/xmldom/issues/135 + * @see https://github.com/xmldom/xmldom/issues/145 + * @param {Node} parentNode + * @param {Node} newChild + * @returns {Node} + * @private + */ +function _appendSingleChild (parentNode, newChild) { + if (newChild.parentNode) { + newChild.parentNode.removeChild(newChild); + } + newChild.parentNode = parentNode; + newChild.previousSibling = parentNode.lastChild; + newChild.nextSibling = null; + if (newChild.previousSibling) { + newChild.previousSibling.nextSibling = newChild; + } else { + parentNode.firstChild = newChild; + } + parentNode.lastChild = newChild; + _onUpdateChild(parentNode.ownerDocument, parentNode, newChild); + return newChild; +} + +Document.prototype = { + //implementation : null, + nodeName : '#document', + nodeType : DOCUMENT_NODE, + /** + * The DocumentType node of the document. + * + * @readonly + * @type DocumentType + */ + doctype : null, + documentElement : null, + _inc : 1, + + insertBefore : function(newChild, refChild){//raises + if(newChild.nodeType == DOCUMENT_FRAGMENT_NODE){ + var child = newChild.firstChild; + while(child){ + var next = child.nextSibling; + this.insertBefore(child,refChild); + child = next; + } + return newChild; + } + _insertBefore(this, newChild, refChild); + newChild.ownerDocument = this; + if (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) { + this.documentElement = newChild; + } + + return newChild; + }, + removeChild : function(oldChild){ + if(this.documentElement == oldChild){ + this.documentElement = null; + } + return _removeChild(this,oldChild); + }, + replaceChild: function (newChild, oldChild) { + //raises + _insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument); + newChild.ownerDocument = this; + if (oldChild) { + this.removeChild(oldChild); + } + if (isElementNode(newChild)) { + this.documentElement = newChild; + } + }, + // Introduced in DOM Level 2: + importNode : function(importedNode,deep){ + return importNode(this,importedNode,deep); + }, + // Introduced in DOM Level 2: + getElementById : function(id){ + var rtv = null; + _visitNode(this.documentElement,function(node){ + if(node.nodeType == ELEMENT_NODE){ + if(node.getAttribute('id') == id){ + rtv = node; + return true; + } + } + }) + return rtv; + }, + + /** + * The `getElementsByClassName` method of `Document` interface returns an array-like object + * of all child elements which have **all** of the given class name(s). + * + * Returns an empty list if `classeNames` is an empty string or only contains HTML white space characters. + * + * + * Warning: This is a live LiveNodeList. + * Changes in the DOM will reflect in the array as the changes occur. + * If an element selected by this array no longer qualifies for the selector, + * it will automatically be removed. Be aware of this for iteration purposes. + * + * @param {string} classNames is a string representing the class name(s) to match; multiple class names are separated by (ASCII-)whitespace + * + * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName + * @see https://dom.spec.whatwg.org/#concept-getelementsbyclassname + */ + getElementsByClassName: function(classNames) { + var classNamesSet = toOrderedSet(classNames) + return new LiveNodeList(this, function(base) { + var ls = []; + if (classNamesSet.length > 0) { + _visitNode(base.documentElement, function(node) { + if(node !== base && node.nodeType === ELEMENT_NODE) { + var nodeClassNames = node.getAttribute('class') + // can be null if the attribute does not exist + if (nodeClassNames) { + // before splitting and iterating just compare them for the most common case + var matches = classNames === nodeClassNames; + if (!matches) { + var nodeClassNamesSet = toOrderedSet(nodeClassNames) + matches = classNamesSet.every(arrayIncludes(nodeClassNamesSet)) + } + if(matches) { + ls.push(node); + } + } + } + }); + } + return ls; + }); + }, + + //document factory method: + createElement : function(tagName){ + var node = new Element(); + node.ownerDocument = this; + node.nodeName = tagName; + node.tagName = tagName; + node.localName = tagName; + node.childNodes = new NodeList(); + var attrs = node.attributes = new NamedNodeMap(); + attrs._ownerElement = node; + return node; + }, + createDocumentFragment : function(){ + var node = new DocumentFragment(); + node.ownerDocument = this; + node.childNodes = new NodeList(); + return node; + }, + createTextNode : function(data){ + var node = new Text(); + node.ownerDocument = this; + node.appendData(data) + return node; + }, + createComment : function(data){ + var node = new Comment(); + node.ownerDocument = this; + node.appendData(data) + return node; + }, + createCDATASection : function(data){ + var node = new CDATASection(); + node.ownerDocument = this; + node.appendData(data) + return node; + }, + createProcessingInstruction : function(target,data){ + var node = new ProcessingInstruction(); + node.ownerDocument = this; + node.tagName = node.nodeName = node.target = target; + node.nodeValue = node.data = data; + return node; + }, + createAttribute : function(name){ + var node = new Attr(); + node.ownerDocument = this; + node.name = name; + node.nodeName = name; + node.localName = name; + node.specified = true; + return node; + }, + createEntityReference : function(name){ + var node = new EntityReference(); + node.ownerDocument = this; + node.nodeName = name; + return node; + }, + // Introduced in DOM Level 2: + createElementNS : function(namespaceURI,qualifiedName){ + var node = new Element(); + var pl = qualifiedName.split(':'); + var attrs = node.attributes = new NamedNodeMap(); + node.childNodes = new NodeList(); + node.ownerDocument = this; + node.nodeName = qualifiedName; + node.tagName = qualifiedName; + node.namespaceURI = namespaceURI; + if(pl.length == 2){ + node.prefix = pl[0]; + node.localName = pl[1]; + }else{ + //el.prefix = null; + node.localName = qualifiedName; + } + attrs._ownerElement = node; + return node; + }, + // Introduced in DOM Level 2: + createAttributeNS : function(namespaceURI,qualifiedName){ + var node = new Attr(); + var pl = qualifiedName.split(':'); + node.ownerDocument = this; + node.nodeName = qualifiedName; + node.name = qualifiedName; + node.namespaceURI = namespaceURI; + node.specified = true; + if(pl.length == 2){ + node.prefix = pl[0]; + node.localName = pl[1]; + }else{ + //el.prefix = null; + node.localName = qualifiedName; + } + return node; + } +}; +_extends(Document,Node); + + +function Element() { + this._nsMap = {}; +}; +Element.prototype = { + nodeType : ELEMENT_NODE, + hasAttribute : function(name){ + return this.getAttributeNode(name)!=null; + }, + getAttribute : function(name){ + var attr = this.getAttributeNode(name); + return attr && attr.value || ''; + }, + getAttributeNode : function(name){ + return this.attributes.getNamedItem(name); + }, + setAttribute : function(name, value){ + var attr = this.ownerDocument.createAttribute(name); + attr.value = attr.nodeValue = "" + value; + this.setAttributeNode(attr) + }, + removeAttribute : function(name){ + var attr = this.getAttributeNode(name) + attr && this.removeAttributeNode(attr); + }, + + //four real opeartion method + appendChild:function(newChild){ + if(newChild.nodeType === DOCUMENT_FRAGMENT_NODE){ + return this.insertBefore(newChild,null); + }else{ + return _appendSingleChild(this,newChild); + } + }, + setAttributeNode : function(newAttr){ + return this.attributes.setNamedItem(newAttr); + }, + setAttributeNodeNS : function(newAttr){ + return this.attributes.setNamedItemNS(newAttr); + }, + removeAttributeNode : function(oldAttr){ + //console.log(this == oldAttr.ownerElement) + return this.attributes.removeNamedItem(oldAttr.nodeName); + }, + //get real attribute name,and remove it by removeAttributeNode + removeAttributeNS : function(namespaceURI, localName){ + var old = this.getAttributeNodeNS(namespaceURI, localName); + old && this.removeAttributeNode(old); + }, + + hasAttributeNS : function(namespaceURI, localName){ + return this.getAttributeNodeNS(namespaceURI, localName)!=null; + }, + getAttributeNS : function(namespaceURI, localName){ + var attr = this.getAttributeNodeNS(namespaceURI, localName); + return attr && attr.value || ''; + }, + setAttributeNS : function(namespaceURI, qualifiedName, value){ + var attr = this.ownerDocument.createAttributeNS(namespaceURI, qualifiedName); + attr.value = attr.nodeValue = "" + value; + this.setAttributeNode(attr) + }, + getAttributeNodeNS : function(namespaceURI, localName){ + return this.attributes.getNamedItemNS(namespaceURI, localName); + }, + + getElementsByTagName : function(tagName){ + return new LiveNodeList(this,function(base){ + var ls = []; + _visitNode(base,function(node){ + if(node !== base && node.nodeType == ELEMENT_NODE && (tagName === '*' || node.tagName == tagName)){ + ls.push(node); + } + }); + return ls; + }); + }, + getElementsByTagNameNS : function(namespaceURI, localName){ + return new LiveNodeList(this,function(base){ + var ls = []; + _visitNode(base,function(node){ + if(node !== base && node.nodeType === ELEMENT_NODE && (namespaceURI === '*' || node.namespaceURI === namespaceURI) && (localName === '*' || node.localName == localName)){ + ls.push(node); + } + }); + return ls; + + }); + } +}; +Document.prototype.getElementsByTagName = Element.prototype.getElementsByTagName; +Document.prototype.getElementsByTagNameNS = Element.prototype.getElementsByTagNameNS; + + +_extends(Element,Node); +function Attr() { +}; +Attr.prototype.nodeType = ATTRIBUTE_NODE; +_extends(Attr,Node); + + +function CharacterData() { +}; +CharacterData.prototype = { + data : '', + substringData : function(offset, count) { + return this.data.substring(offset, offset+count); + }, + appendData: function(text) { + text = this.data+text; + this.nodeValue = this.data = text; + this.length = text.length; + }, + insertData: function(offset,text) { + this.replaceData(offset,0,text); + + }, + appendChild:function(newChild){ + throw new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR]) + }, + deleteData: function(offset, count) { + this.replaceData(offset,count,""); + }, + replaceData: function(offset, count, text) { + var start = this.data.substring(0,offset); + var end = this.data.substring(offset+count); + text = start + text + end; + this.nodeValue = this.data = text; + this.length = text.length; + } +} +_extends(CharacterData,Node); +function Text() { +}; +Text.prototype = { + nodeName : "#text", + nodeType : TEXT_NODE, + splitText : function(offset) { + var text = this.data; + var newText = text.substring(offset); + text = text.substring(0, offset); + this.data = this.nodeValue = text; + this.length = text.length; + var newNode = this.ownerDocument.createTextNode(newText); + if(this.parentNode){ + this.parentNode.insertBefore(newNode, this.nextSibling); + } + return newNode; + } +} +_extends(Text,CharacterData); +function Comment() { +}; +Comment.prototype = { + nodeName : "#comment", + nodeType : COMMENT_NODE +} +_extends(Comment,CharacterData); + +function CDATASection() { +}; +CDATASection.prototype = { + nodeName : "#cdata-section", + nodeType : CDATA_SECTION_NODE +} +_extends(CDATASection,CharacterData); + + +function DocumentType() { +}; +DocumentType.prototype.nodeType = DOCUMENT_TYPE_NODE; +_extends(DocumentType,Node); + +function Notation() { +}; +Notation.prototype.nodeType = NOTATION_NODE; +_extends(Notation,Node); + +function Entity() { +}; +Entity.prototype.nodeType = ENTITY_NODE; +_extends(Entity,Node); + +function EntityReference() { +}; +EntityReference.prototype.nodeType = ENTITY_REFERENCE_NODE; +_extends(EntityReference,Node); + +function DocumentFragment() { +}; +DocumentFragment.prototype.nodeName = "#document-fragment"; +DocumentFragment.prototype.nodeType = DOCUMENT_FRAGMENT_NODE; +_extends(DocumentFragment,Node); + + +function ProcessingInstruction() { +} +ProcessingInstruction.prototype.nodeType = PROCESSING_INSTRUCTION_NODE; +_extends(ProcessingInstruction,Node); +function XMLSerializer(){} +XMLSerializer.prototype.serializeToString = function(node,isHtml,nodeFilter){ + return nodeSerializeToString.call(node,isHtml,nodeFilter); +} +Node.prototype.toString = nodeSerializeToString; +function nodeSerializeToString(isHtml,nodeFilter){ + var buf = []; + var refNode = this.nodeType == 9 && this.documentElement || this; + var prefix = refNode.prefix; + var uri = refNode.namespaceURI; + + if(uri && prefix == null){ + //console.log(prefix) + var prefix = refNode.lookupPrefix(uri); + if(prefix == null){ + //isHTML = true; + var visibleNamespaces=[ + {namespace:uri,prefix:null} + //{namespace:uri,prefix:''} + ] + } + } + serializeToString(this,buf,isHtml,nodeFilter,visibleNamespaces); + //console.log('###',this.nodeType,uri,prefix,buf.join('')) + return buf.join(''); +} + +function needNamespaceDefine(node, isHTML, visibleNamespaces) { + var prefix = node.prefix || ''; + var uri = node.namespaceURI; + // According to [Namespaces in XML 1.0](https://www.w3.org/TR/REC-xml-names/#ns-using) , + // and more specifically https://www.w3.org/TR/REC-xml-names/#nsc-NoPrefixUndecl : + // > In a namespace declaration for a prefix [...], the attribute value MUST NOT be empty. + // in a similar manner [Namespaces in XML 1.1](https://www.w3.org/TR/xml-names11/#ns-using) + // and more specifically https://www.w3.org/TR/xml-names11/#nsc-NSDeclared : + // > [...] Furthermore, the attribute value [...] must not be an empty string. + // so serializing empty namespace value like xmlns:ds="" would produce an invalid XML document. + if (!uri) { + return false; + } + if (prefix === "xml" && uri === NAMESPACE.XML || uri === NAMESPACE.XMLNS) { + return false; + } + + var i = visibleNamespaces.length + while (i--) { + var ns = visibleNamespaces[i]; + // get namespace prefix + if (ns.prefix === prefix) { + return ns.namespace !== uri; + } + } + return true; +} +/** + * Well-formed constraint: No < in Attribute Values + * > The replacement text of any entity referred to directly or indirectly + * > in an attribute value must not contain a <. + * @see https://www.w3.org/TR/xml11/#CleanAttrVals + * @see https://www.w3.org/TR/xml11/#NT-AttValue + * + * Literal whitespace other than space that appear in attribute values + * are serialized as their entity references, so they will be preserved. + * (In contrast to whitespace literals in the input which are normalized to spaces) + * @see https://www.w3.org/TR/xml11/#AVNormalize + * @see https://w3c.github.io/DOM-Parsing/#serializing-an-element-s-attributes + */ +function addSerializedAttribute(buf, qualifiedName, value) { + buf.push(' ', qualifiedName, '="', value.replace(/[<>&"\t\n\r]/g, _xmlEncoder), '"') +} + +function serializeToString(node,buf,isHTML,nodeFilter,visibleNamespaces){ + if (!visibleNamespaces) { + visibleNamespaces = []; + } + + if(nodeFilter){ + node = nodeFilter(node); + if(node){ + if(typeof node == 'string'){ + buf.push(node); + return; + } + }else{ + return; + } + //buf.sort.apply(attrs, attributeSorter); + } + + switch(node.nodeType){ + case ELEMENT_NODE: + var attrs = node.attributes; + var len = attrs.length; + var child = node.firstChild; + var nodeName = node.tagName; + + isHTML = NAMESPACE.isHTML(node.namespaceURI) || isHTML + + var prefixedNodeName = nodeName + if (!isHTML && !node.prefix && node.namespaceURI) { + var defaultNS + // lookup current default ns from `xmlns` attribute + for (var ai = 0; ai < attrs.length; ai++) { + if (attrs.item(ai).name === 'xmlns') { + defaultNS = attrs.item(ai).value + break + } + } + if (!defaultNS) { + // lookup current default ns in visibleNamespaces + for (var nsi = visibleNamespaces.length - 1; nsi >= 0; nsi--) { + var namespace = visibleNamespaces[nsi] + if (namespace.prefix === '' && namespace.namespace === node.namespaceURI) { + defaultNS = namespace.namespace + break + } + } + } + if (defaultNS !== node.namespaceURI) { + for (var nsi = visibleNamespaces.length - 1; nsi >= 0; nsi--) { + var namespace = visibleNamespaces[nsi] + if (namespace.namespace === node.namespaceURI) { + if (namespace.prefix) { + prefixedNodeName = namespace.prefix + ':' + nodeName + } + break + } + } + } + } + + buf.push('<', prefixedNodeName); + + for(var i=0;i'); + //if is cdata child node + if(isHTML && /^script$/i.test(nodeName)){ + while(child){ + if(child.data){ + buf.push(child.data); + }else{ + serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice()); + } + child = child.nextSibling; + } + }else + { + while(child){ + serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice()); + child = child.nextSibling; + } + } + buf.push(''); + }else{ + buf.push('/>'); + } + // remove added visible namespaces + //visibleNamespaces.length = startVisibleNamespaces; + return; + case DOCUMENT_NODE: + case DOCUMENT_FRAGMENT_NODE: + var child = node.firstChild; + while(child){ + serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice()); + child = child.nextSibling; + } + return; + case ATTRIBUTE_NODE: + return addSerializedAttribute(buf, node.name, node.value); + case TEXT_NODE: + /** + * The ampersand character (&) and the left angle bracket (<) must not appear in their literal form, + * except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section. + * If they are needed elsewhere, they must be escaped using either numeric character references or the strings + * `&` and `<` respectively. + * The right angle bracket (>) may be represented using the string " > ", and must, for compatibility, + * be escaped using either `>` or a character reference when it appears in the string `]]>` in content, + * when that string is not marking the end of a CDATA section. + * + * In the content of elements, character data is any string of characters + * which does not contain the start-delimiter of any markup + * and does not include the CDATA-section-close delimiter, `]]>`. + * + * @see https://www.w3.org/TR/xml/#NT-CharData + * @see https://w3c.github.io/DOM-Parsing/#xml-serializing-a-text-node + */ + return buf.push(node.data + .replace(/[<&>]/g,_xmlEncoder) + ); + case CDATA_SECTION_NODE: + return buf.push( ''); + case COMMENT_NODE: + return buf.push( ""); + case DOCUMENT_TYPE_NODE: + var pubid = node.publicId; + var sysid = node.systemId; + buf.push(''); + }else if(sysid && sysid!='.'){ + buf.push(' SYSTEM ', sysid, '>'); + }else{ + var sub = node.internalSubset; + if(sub){ + buf.push(" [",sub,"]"); + } + buf.push(">"); + } + return; + case PROCESSING_INSTRUCTION_NODE: + return buf.push( ""); + case ENTITY_REFERENCE_NODE: + return buf.push( '&',node.nodeName,';'); + //case ENTITY_NODE: + //case NOTATION_NODE: + default: + buf.push('??',node.nodeName); + } +} +function importNode(doc,node,deep){ + var node2; + switch (node.nodeType) { + case ELEMENT_NODE: + node2 = node.cloneNode(false); + node2.ownerDocument = doc; + //var attrs = node2.attributes; + //var len = attrs.length; + //for(var i=0;i | ({length:number, [number]: T})} list + * @param {function (item: T, index: number, list:Array | ({length:number, [number]: T})):boolean} predicate + * @param {Partial>?} ac `Array.prototype` by default, + * allows injecting a custom implementation in tests + * @returns {T | undefined} + * + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find + * @see https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.find + */ +function find(list, predicate, ac) { + if (ac === undefined) { + ac = Array.prototype; + } + if (list && typeof ac.find === 'function') { + return ac.find.call(list, predicate); + } + for (var i = 0; i < list.length; i++) { + if (Object.prototype.hasOwnProperty.call(list, i)) { + var item = list[i]; + if (predicate.call(undefined, item, i, list)) { + return item; + } + } + } +} + +/** + * "Shallow freezes" an object to render it immutable. + * Uses `Object.freeze` if available, + * otherwise the immutability is only in the type. + * + * Is used to create "enum like" objects. + * + * @template T + * @param {T} object the object to freeze + * @param {Pick = Object} oc `Object` by default, + * allows to inject custom object constructor for tests + * @returns {Readonly} + * + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze + */ +function freeze(object, oc) { + if (oc === undefined) { + oc = Object + } + return oc && typeof oc.freeze === 'function' ? oc.freeze(object) : object +} + +/** + * Since we can not rely on `Object.assign` we provide a simplified version + * that is sufficient for our needs. + * + * @param {Object} target + * @param {Object | null | undefined} source + * + * @returns {Object} target + * @throws TypeError if target is not an object + * + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign + * @see https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.assign + */ +function assign(target, source) { + if (target === null || typeof target !== 'object') { + throw new TypeError('target is not an object') + } + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key] + } + } + return target +} + +/** + * All mime types that are allowed as input to `DOMParser.parseFromString` + * + * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString#Argument02 MDN + * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparsersupportedtype WHATWG HTML Spec + * @see DOMParser.prototype.parseFromString + */ +var MIME_TYPE = freeze({ + /** + * `text/html`, the only mime type that triggers treating an XML document as HTML. + * + * @see DOMParser.SupportedType.isHTML + * @see https://www.iana.org/assignments/media-types/text/html IANA MimeType registration + * @see https://en.wikipedia.org/wiki/HTML Wikipedia + * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN + * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring WHATWG HTML Spec + */ + HTML: 'text/html', + + /** + * Helper method to check a mime type if it indicates an HTML document + * + * @param {string} [value] + * @returns {boolean} + * + * @see https://www.iana.org/assignments/media-types/text/html IANA MimeType registration + * @see https://en.wikipedia.org/wiki/HTML Wikipedia + * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN + * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring */ + isHTML: function (value) { + return value === MIME_TYPE.HTML + }, + + /** + * `application/xml`, the standard mime type for XML documents. + * + * @see https://www.iana.org/assignments/media-types/application/xml IANA MimeType registration + * @see https://tools.ietf.org/html/rfc7303#section-9.1 RFC 7303 + * @see https://en.wikipedia.org/wiki/XML_and_MIME Wikipedia + */ + XML_APPLICATION: 'application/xml', + + /** + * `text/html`, an alias for `application/xml`. + * + * @see https://tools.ietf.org/html/rfc7303#section-9.2 RFC 7303 + * @see https://www.iana.org/assignments/media-types/text/xml IANA MimeType registration + * @see https://en.wikipedia.org/wiki/XML_and_MIME Wikipedia + */ + XML_TEXT: 'text/xml', + + /** + * `application/xhtml+xml`, indicates an XML document that has the default HTML namespace, + * but is parsed as an XML document. + * + * @see https://www.iana.org/assignments/media-types/application/xhtml+xml IANA MimeType registration + * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocument WHATWG DOM Spec + * @see https://en.wikipedia.org/wiki/XHTML Wikipedia + */ + XML_XHTML_APPLICATION: 'application/xhtml+xml', + + /** + * `image/svg+xml`, + * + * @see https://www.iana.org/assignments/media-types/image/svg+xml IANA MimeType registration + * @see https://www.w3.org/TR/SVG11/ W3C SVG 1.1 + * @see https://en.wikipedia.org/wiki/Scalable_Vector_Graphics Wikipedia + */ + XML_SVG_IMAGE: 'image/svg+xml', +}) + +/** + * Namespaces that are used in this code base. + * + * @see http://www.w3.org/TR/REC-xml-names + */ +var NAMESPACE = freeze({ + /** + * The XHTML namespace. + * + * @see http://www.w3.org/1999/xhtml + */ + HTML: 'http://www.w3.org/1999/xhtml', + + /** + * Checks if `uri` equals `NAMESPACE.HTML`. + * + * @param {string} [uri] + * + * @see NAMESPACE.HTML + */ + isHTML: function (uri) { + return uri === NAMESPACE.HTML + }, + + /** + * The SVG namespace. + * + * @see http://www.w3.org/2000/svg + */ + SVG: 'http://www.w3.org/2000/svg', + + /** + * The `xml:` namespace. + * + * @see http://www.w3.org/XML/1998/namespace + */ + XML: 'http://www.w3.org/XML/1998/namespace', + + /** + * The `xmlns:` namespace + * + * @see https://www.w3.org/2000/xmlns/ + */ + XMLNS: 'http://www.w3.org/2000/xmlns/', +}) + +exports.assign = assign; +exports.find = find; +exports.freeze = freeze; +exports.MIME_TYPE = MIME_TYPE; +exports.NAMESPACE = NAMESPACE; + + +/***/ }), +/* 18 */ +/***/ (function(module, exports, __webpack_require__) { + +var conventions = __webpack_require__(17); +var dom = __webpack_require__(16) +var entities = __webpack_require__(19); +var sax = __webpack_require__(20); + +var DOMImplementation = dom.DOMImplementation; + +var NAMESPACE = conventions.NAMESPACE; + +var ParseError = sax.ParseError; +var XMLReader = sax.XMLReader; + +/** + * Normalizes line ending according to https://www.w3.org/TR/xml11/#sec-line-ends: + * + * > XML parsed entities are often stored in computer files which, + * > for editing convenience, are organized into lines. + * > These lines are typically separated by some combination + * > of the characters CARRIAGE RETURN (#xD) and LINE FEED (#xA). + * > + * > To simplify the tasks of applications, the XML processor must behave + * > as if it normalized all line breaks in external parsed entities (including the document entity) + * > on input, before parsing, by translating all of the following to a single #xA character: + * > + * > 1. the two-character sequence #xD #xA + * > 2. the two-character sequence #xD #x85 + * > 3. the single character #x85 + * > 4. the single character #x2028 + * > 5. any #xD character that is not immediately followed by #xA or #x85. + * + * @param {string} input + * @returns {string} + */ +function normalizeLineEndings(input) { + return input + .replace(/\r[\n\u0085]/g, '\n') + .replace(/[\r\u0085\u2028]/g, '\n') +} + +/** + * @typedef Locator + * @property {number} [columnNumber] + * @property {number} [lineNumber] + */ + +/** + * @typedef DOMParserOptions + * @property {DOMHandler} [domBuilder] + * @property {Function} [errorHandler] + * @property {(string) => string} [normalizeLineEndings] used to replace line endings before parsing + * defaults to `normalizeLineEndings` + * @property {Locator} [locator] + * @property {Record} [xmlns] + * + * @see normalizeLineEndings + */ + +/** + * The DOMParser interface provides the ability to parse XML or HTML source code + * from a string into a DOM `Document`. + * + * _xmldom is different from the spec in that it allows an `options` parameter, + * to override the default behavior._ + * + * @param {DOMParserOptions} [options] + * @constructor + * + * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser + * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-parsing-and-serialization + */ +function DOMParser(options){ + this.options = options ||{locator:{}}; +} + +DOMParser.prototype.parseFromString = function(source,mimeType){ + var options = this.options; + var sax = new XMLReader(); + var domBuilder = options.domBuilder || new DOMHandler();//contentHandler and LexicalHandler + var errorHandler = options.errorHandler; + var locator = options.locator; + var defaultNSMap = options.xmlns||{}; + var isHTML = /\/x?html?$/.test(mimeType);//mimeType.toLowerCase().indexOf('html') > -1; + var entityMap = isHTML ? entities.HTML_ENTITIES : entities.XML_ENTITIES; + if(locator){ + domBuilder.setDocumentLocator(locator) + } + + sax.errorHandler = buildErrorHandler(errorHandler,domBuilder,locator); + sax.domBuilder = options.domBuilder || domBuilder; + if(isHTML){ + defaultNSMap[''] = NAMESPACE.HTML; + } + defaultNSMap.xml = defaultNSMap.xml || NAMESPACE.XML; + var normalize = options.normalizeLineEndings || normalizeLineEndings; + if (source && typeof source === 'string') { + sax.parse( + normalize(source), + defaultNSMap, + entityMap + ) + } else { + sax.errorHandler.error('invalid doc source') + } + return domBuilder.doc; +} +function buildErrorHandler(errorImpl,domBuilder,locator){ + if(!errorImpl){ + if(domBuilder instanceof DOMHandler){ + return domBuilder; + } + errorImpl = domBuilder ; + } + var errorHandler = {} + var isCallback = errorImpl instanceof Function; + locator = locator||{} + function build(key){ + var fn = errorImpl[key]; + if(!fn && isCallback){ + fn = errorImpl.length == 2?function(msg){errorImpl(key,msg)}:errorImpl; + } + errorHandler[key] = fn && function(msg){ + fn('[xmldom '+key+']\t'+msg+_locator(locator)); + }||function(){}; + } + build('warning'); + build('error'); + build('fatalError'); + return errorHandler; +} + +//console.log('#\n\n\n\n\n\n\n####') +/** + * +ContentHandler+ErrorHandler + * +LexicalHandler+EntityResolver2 + * -DeclHandler-DTDHandler + * + * DefaultHandler:EntityResolver, DTDHandler, ContentHandler, ErrorHandler + * DefaultHandler2:DefaultHandler,LexicalHandler, DeclHandler, EntityResolver2 + * @link http://www.saxproject.org/apidoc/org/xml/sax/helpers/DefaultHandler.html + */ +function DOMHandler() { + this.cdata = false; +} +function position(locator,node){ + node.lineNumber = locator.lineNumber; + node.columnNumber = locator.columnNumber; +} +/** + * @see org.xml.sax.ContentHandler#startDocument + * @link http://www.saxproject.org/apidoc/org/xml/sax/ContentHandler.html + */ +DOMHandler.prototype = { + startDocument : function() { + this.doc = new DOMImplementation().createDocument(null, null, null); + if (this.locator) { + this.doc.documentURI = this.locator.systemId; + } + }, + startElement:function(namespaceURI, localName, qName, attrs) { + var doc = this.doc; + var el = doc.createElementNS(namespaceURI, qName||localName); + var len = attrs.length; + appendElement(this, el); + this.currentElement = el; + + this.locator && position(this.locator,el) + for (var i = 0 ; i < len; i++) { + var namespaceURI = attrs.getURI(i); + var value = attrs.getValue(i); + var qName = attrs.getQName(i); + var attr = doc.createAttributeNS(namespaceURI, qName); + this.locator &&position(attrs.getLocator(i),attr); + attr.value = attr.nodeValue = value; + el.setAttributeNode(attr) + } + }, + endElement:function(namespaceURI, localName, qName) { + var current = this.currentElement + var tagName = current.tagName; + this.currentElement = current.parentNode; + }, + startPrefixMapping:function(prefix, uri) { + }, + endPrefixMapping:function(prefix) { + }, + processingInstruction:function(target, data) { + var ins = this.doc.createProcessingInstruction(target, data); + this.locator && position(this.locator,ins) + appendElement(this, ins); + }, + ignorableWhitespace:function(ch, start, length) { + }, + characters:function(chars, start, length) { + chars = _toString.apply(this,arguments) + //console.log(chars) + if(chars){ + if (this.cdata) { + var charNode = this.doc.createCDATASection(chars); + } else { + var charNode = this.doc.createTextNode(chars); + } + if(this.currentElement){ + this.currentElement.appendChild(charNode); + }else if(/^\s*$/.test(chars)){ + this.doc.appendChild(charNode); + //process xml + } + this.locator && position(this.locator,charNode) + } + }, + skippedEntity:function(name) { + }, + endDocument:function() { + this.doc.normalize(); + }, + setDocumentLocator:function (locator) { + if(this.locator = locator){// && !('lineNumber' in locator)){ + locator.lineNumber = 0; + } + }, + //LexicalHandler + comment:function(chars, start, length) { + chars = _toString.apply(this,arguments) + var comm = this.doc.createComment(chars); + this.locator && position(this.locator,comm) + appendElement(this, comm); + }, + + startCDATA:function() { + //used in characters() methods + this.cdata = true; + }, + endCDATA:function() { + this.cdata = false; + }, + + startDTD:function(name, publicId, systemId) { + var impl = this.doc.implementation; + if (impl && impl.createDocumentType) { + var dt = impl.createDocumentType(name, publicId, systemId); + this.locator && position(this.locator,dt) + appendElement(this, dt); + this.doc.doctype = dt; + } + }, + /** + * @see org.xml.sax.ErrorHandler + * @link http://www.saxproject.org/apidoc/org/xml/sax/ErrorHandler.html + */ + warning:function(error) { + console.warn('[xmldom warning]\t'+error,_locator(this.locator)); + }, + error:function(error) { + console.error('[xmldom error]\t'+error,_locator(this.locator)); + }, + fatalError:function(error) { + throw new ParseError(error, this.locator); + } +} +function _locator(l){ + if(l){ + return '\n@'+(l.systemId ||'')+'#[line:'+l.lineNumber+',col:'+l.columnNumber+']' + } +} +function _toString(chars,start,length){ + if(typeof chars == 'string'){ + return chars.substr(start,length) + }else{//java sax connect width xmldom on rhino(what about: "? && !(chars instanceof String)") + if(chars.length >= start+length || start){ + return new java.lang.String(chars,start,length)+''; + } + return chars; + } +} + +/* + * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/LexicalHandler.html + * used method of org.xml.sax.ext.LexicalHandler: + * #comment(chars, start, length) + * #startCDATA() + * #endCDATA() + * #startDTD(name, publicId, systemId) + * + * + * IGNORED method of org.xml.sax.ext.LexicalHandler: + * #endDTD() + * #startEntity(name) + * #endEntity(name) + * + * + * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/DeclHandler.html + * IGNORED method of org.xml.sax.ext.DeclHandler + * #attributeDecl(eName, aName, type, mode, value) + * #elementDecl(name, model) + * #externalEntityDecl(name, publicId, systemId) + * #internalEntityDecl(name, value) + * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/EntityResolver2.html + * IGNORED method of org.xml.sax.EntityResolver2 + * #resolveEntity(String name,String publicId,String baseURI,String systemId) + * #resolveEntity(publicId, systemId) + * #getExternalSubset(name, baseURI) + * @link http://www.saxproject.org/apidoc/org/xml/sax/DTDHandler.html + * IGNORED method of org.xml.sax.DTDHandler + * #notationDecl(name, publicId, systemId) {}; + * #unparsedEntityDecl(name, publicId, systemId, notationName) {}; + */ +"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(key){ + DOMHandler.prototype[key] = function(){return null} +}) + +/* Private static helpers treated below as private instance methods, so don't need to add these to the public API; we might use a Relator to also get rid of non-standard public properties */ +function appendElement (hander,node) { + if (!hander.currentElement) { + hander.doc.appendChild(node); + } else { + hander.currentElement.appendChild(node); + } +}//appendChild and setAttributeNS are preformance key + +exports.__DOMHandler = DOMHandler; +exports.normalizeLineEndings = normalizeLineEndings; +exports.DOMParser = DOMParser; + + +/***/ }), +/* 19 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var freeze = __webpack_require__(17).freeze; + +/** + * The entities that are predefined in every XML document. + * + * @see https://www.w3.org/TR/2006/REC-xml11-20060816/#sec-predefined-ent W3C XML 1.1 + * @see https://www.w3.org/TR/2008/REC-xml-20081126/#sec-predefined-ent W3C XML 1.0 + * @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML Wikipedia + */ +exports.XML_ENTITIES = freeze({ + amp: '&', + apos: "'", + gt: '>', + lt: '<', + quot: '"', +}); + +/** + * A map of all entities that are detected in an HTML document. + * They contain all entries from `XML_ENTITIES`. + * + * @see XML_ENTITIES + * @see DOMParser.parseFromString + * @see DOMImplementation.prototype.createHTMLDocument + * @see https://html.spec.whatwg.org/#named-character-references WHATWG HTML(5) Spec + * @see https://html.spec.whatwg.org/entities.json JSON + * @see https://www.w3.org/TR/xml-entity-names/ W3C XML Entity Names + * @see https://www.w3.org/TR/html4/sgml/entities.html W3C HTML4/SGML + * @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Character_entity_references_in_HTML Wikipedia (HTML) + * @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Entities_representing_special_characters_in_XHTML Wikpedia (XHTML) + */ +exports.HTML_ENTITIES = freeze({ + Aacute: '\u00C1', + aacute: '\u00E1', + Abreve: '\u0102', + abreve: '\u0103', + ac: '\u223E', + acd: '\u223F', + acE: '\u223E\u0333', + Acirc: '\u00C2', + acirc: '\u00E2', + acute: '\u00B4', + Acy: '\u0410', + acy: '\u0430', + AElig: '\u00C6', + aelig: '\u00E6', + af: '\u2061', + Afr: '\uD835\uDD04', + afr: '\uD835\uDD1E', + Agrave: '\u00C0', + agrave: '\u00E0', + alefsym: '\u2135', + aleph: '\u2135', + Alpha: '\u0391', + alpha: '\u03B1', + Amacr: '\u0100', + amacr: '\u0101', + amalg: '\u2A3F', + AMP: '\u0026', + amp: '\u0026', + And: '\u2A53', + and: '\u2227', + andand: '\u2A55', + andd: '\u2A5C', + andslope: '\u2A58', + andv: '\u2A5A', + ang: '\u2220', + ange: '\u29A4', + angle: '\u2220', + angmsd: '\u2221', + angmsdaa: '\u29A8', + angmsdab: '\u29A9', + angmsdac: '\u29AA', + angmsdad: '\u29AB', + angmsdae: '\u29AC', + angmsdaf: '\u29AD', + angmsdag: '\u29AE', + angmsdah: '\u29AF', + angrt: '\u221F', + angrtvb: '\u22BE', + angrtvbd: '\u299D', + angsph: '\u2222', + angst: '\u00C5', + angzarr: '\u237C', + Aogon: '\u0104', + aogon: '\u0105', + Aopf: '\uD835\uDD38', + aopf: '\uD835\uDD52', + ap: '\u2248', + apacir: '\u2A6F', + apE: '\u2A70', + ape: '\u224A', + apid: '\u224B', + apos: '\u0027', + ApplyFunction: '\u2061', + approx: '\u2248', + approxeq: '\u224A', + Aring: '\u00C5', + aring: '\u00E5', + Ascr: '\uD835\uDC9C', + ascr: '\uD835\uDCB6', + Assign: '\u2254', + ast: '\u002A', + asymp: '\u2248', + asympeq: '\u224D', + Atilde: '\u00C3', + atilde: '\u00E3', + Auml: '\u00C4', + auml: '\u00E4', + awconint: '\u2233', + awint: '\u2A11', + backcong: '\u224C', + backepsilon: '\u03F6', + backprime: '\u2035', + backsim: '\u223D', + backsimeq: '\u22CD', + Backslash: '\u2216', + Barv: '\u2AE7', + barvee: '\u22BD', + Barwed: '\u2306', + barwed: '\u2305', + barwedge: '\u2305', + bbrk: '\u23B5', + bbrktbrk: '\u23B6', + bcong: '\u224C', + Bcy: '\u0411', + bcy: '\u0431', + bdquo: '\u201E', + becaus: '\u2235', + Because: '\u2235', + because: '\u2235', + bemptyv: '\u29B0', + bepsi: '\u03F6', + bernou: '\u212C', + Bernoullis: '\u212C', + Beta: '\u0392', + beta: '\u03B2', + beth: '\u2136', + between: '\u226C', + Bfr: '\uD835\uDD05', + bfr: '\uD835\uDD1F', + bigcap: '\u22C2', + bigcirc: '\u25EF', + bigcup: '\u22C3', + bigodot: '\u2A00', + bigoplus: '\u2A01', + bigotimes: '\u2A02', + bigsqcup: '\u2A06', + bigstar: '\u2605', + bigtriangledown: '\u25BD', + bigtriangleup: '\u25B3', + biguplus: '\u2A04', + bigvee: '\u22C1', + bigwedge: '\u22C0', + bkarow: '\u290D', + blacklozenge: '\u29EB', + blacksquare: '\u25AA', + blacktriangle: '\u25B4', + blacktriangledown: '\u25BE', + blacktriangleleft: '\u25C2', + blacktriangleright: '\u25B8', + blank: '\u2423', + blk12: '\u2592', + blk14: '\u2591', + blk34: '\u2593', + block: '\u2588', + bne: '\u003D\u20E5', + bnequiv: '\u2261\u20E5', + bNot: '\u2AED', + bnot: '\u2310', + Bopf: '\uD835\uDD39', + bopf: '\uD835\uDD53', + bot: '\u22A5', + bottom: '\u22A5', + bowtie: '\u22C8', + boxbox: '\u29C9', + boxDL: '\u2557', + boxDl: '\u2556', + boxdL: '\u2555', + boxdl: '\u2510', + boxDR: '\u2554', + boxDr: '\u2553', + boxdR: '\u2552', + boxdr: '\u250C', + boxH: '\u2550', + boxh: '\u2500', + boxHD: '\u2566', + boxHd: '\u2564', + boxhD: '\u2565', + boxhd: '\u252C', + boxHU: '\u2569', + boxHu: '\u2567', + boxhU: '\u2568', + boxhu: '\u2534', + boxminus: '\u229F', + boxplus: '\u229E', + boxtimes: '\u22A0', + boxUL: '\u255D', + boxUl: '\u255C', + boxuL: '\u255B', + boxul: '\u2518', + boxUR: '\u255A', + boxUr: '\u2559', + boxuR: '\u2558', + boxur: '\u2514', + boxV: '\u2551', + boxv: '\u2502', + boxVH: '\u256C', + boxVh: '\u256B', + boxvH: '\u256A', + boxvh: '\u253C', + boxVL: '\u2563', + boxVl: '\u2562', + boxvL: '\u2561', + boxvl: '\u2524', + boxVR: '\u2560', + boxVr: '\u255F', + boxvR: '\u255E', + boxvr: '\u251C', + bprime: '\u2035', + Breve: '\u02D8', + breve: '\u02D8', + brvbar: '\u00A6', + Bscr: '\u212C', + bscr: '\uD835\uDCB7', + bsemi: '\u204F', + bsim: '\u223D', + bsime: '\u22CD', + bsol: '\u005C', + bsolb: '\u29C5', + bsolhsub: '\u27C8', + bull: '\u2022', + bullet: '\u2022', + bump: '\u224E', + bumpE: '\u2AAE', + bumpe: '\u224F', + Bumpeq: '\u224E', + bumpeq: '\u224F', + Cacute: '\u0106', + cacute: '\u0107', + Cap: '\u22D2', + cap: '\u2229', + capand: '\u2A44', + capbrcup: '\u2A49', + capcap: '\u2A4B', + capcup: '\u2A47', + capdot: '\u2A40', + CapitalDifferentialD: '\u2145', + caps: '\u2229\uFE00', + caret: '\u2041', + caron: '\u02C7', + Cayleys: '\u212D', + ccaps: '\u2A4D', + Ccaron: '\u010C', + ccaron: '\u010D', + Ccedil: '\u00C7', + ccedil: '\u00E7', + Ccirc: '\u0108', + ccirc: '\u0109', + Cconint: '\u2230', + ccups: '\u2A4C', + ccupssm: '\u2A50', + Cdot: '\u010A', + cdot: '\u010B', + cedil: '\u00B8', + Cedilla: '\u00B8', + cemptyv: '\u29B2', + cent: '\u00A2', + CenterDot: '\u00B7', + centerdot: '\u00B7', + Cfr: '\u212D', + cfr: '\uD835\uDD20', + CHcy: '\u0427', + chcy: '\u0447', + check: '\u2713', + checkmark: '\u2713', + Chi: '\u03A7', + chi: '\u03C7', + cir: '\u25CB', + circ: '\u02C6', + circeq: '\u2257', + circlearrowleft: '\u21BA', + circlearrowright: '\u21BB', + circledast: '\u229B', + circledcirc: '\u229A', + circleddash: '\u229D', + CircleDot: '\u2299', + circledR: '\u00AE', + circledS: '\u24C8', + CircleMinus: '\u2296', + CirclePlus: '\u2295', + CircleTimes: '\u2297', + cirE: '\u29C3', + cire: '\u2257', + cirfnint: '\u2A10', + cirmid: '\u2AEF', + cirscir: '\u29C2', + ClockwiseContourIntegral: '\u2232', + CloseCurlyDoubleQuote: '\u201D', + CloseCurlyQuote: '\u2019', + clubs: '\u2663', + clubsuit: '\u2663', + Colon: '\u2237', + colon: '\u003A', + Colone: '\u2A74', + colone: '\u2254', + coloneq: '\u2254', + comma: '\u002C', + commat: '\u0040', + comp: '\u2201', + compfn: '\u2218', + complement: '\u2201', + complexes: '\u2102', + cong: '\u2245', + congdot: '\u2A6D', + Congruent: '\u2261', + Conint: '\u222F', + conint: '\u222E', + ContourIntegral: '\u222E', + Copf: '\u2102', + copf: '\uD835\uDD54', + coprod: '\u2210', + Coproduct: '\u2210', + COPY: '\u00A9', + copy: '\u00A9', + copysr: '\u2117', + CounterClockwiseContourIntegral: '\u2233', + crarr: '\u21B5', + Cross: '\u2A2F', + cross: '\u2717', + Cscr: '\uD835\uDC9E', + cscr: '\uD835\uDCB8', + csub: '\u2ACF', + csube: '\u2AD1', + csup: '\u2AD0', + csupe: '\u2AD2', + ctdot: '\u22EF', + cudarrl: '\u2938', + cudarrr: '\u2935', + cuepr: '\u22DE', + cuesc: '\u22DF', + cularr: '\u21B6', + cularrp: '\u293D', + Cup: '\u22D3', + cup: '\u222A', + cupbrcap: '\u2A48', + CupCap: '\u224D', + cupcap: '\u2A46', + cupcup: '\u2A4A', + cupdot: '\u228D', + cupor: '\u2A45', + cups: '\u222A\uFE00', + curarr: '\u21B7', + curarrm: '\u293C', + curlyeqprec: '\u22DE', + curlyeqsucc: '\u22DF', + curlyvee: '\u22CE', + curlywedge: '\u22CF', + curren: '\u00A4', + curvearrowleft: '\u21B6', + curvearrowright: '\u21B7', + cuvee: '\u22CE', + cuwed: '\u22CF', + cwconint: '\u2232', + cwint: '\u2231', + cylcty: '\u232D', + Dagger: '\u2021', + dagger: '\u2020', + daleth: '\u2138', + Darr: '\u21A1', + dArr: '\u21D3', + darr: '\u2193', + dash: '\u2010', + Dashv: '\u2AE4', + dashv: '\u22A3', + dbkarow: '\u290F', + dblac: '\u02DD', + Dcaron: '\u010E', + dcaron: '\u010F', + Dcy: '\u0414', + dcy: '\u0434', + DD: '\u2145', + dd: '\u2146', + ddagger: '\u2021', + ddarr: '\u21CA', + DDotrahd: '\u2911', + ddotseq: '\u2A77', + deg: '\u00B0', + Del: '\u2207', + Delta: '\u0394', + delta: '\u03B4', + demptyv: '\u29B1', + dfisht: '\u297F', + Dfr: '\uD835\uDD07', + dfr: '\uD835\uDD21', + dHar: '\u2965', + dharl: '\u21C3', + dharr: '\u21C2', + DiacriticalAcute: '\u00B4', + DiacriticalDot: '\u02D9', + DiacriticalDoubleAcute: '\u02DD', + DiacriticalGrave: '\u0060', + DiacriticalTilde: '\u02DC', + diam: '\u22C4', + Diamond: '\u22C4', + diamond: '\u22C4', + diamondsuit: '\u2666', + diams: '\u2666', + die: '\u00A8', + DifferentialD: '\u2146', + digamma: '\u03DD', + disin: '\u22F2', + div: '\u00F7', + divide: '\u00F7', + divideontimes: '\u22C7', + divonx: '\u22C7', + DJcy: '\u0402', + djcy: '\u0452', + dlcorn: '\u231E', + dlcrop: '\u230D', + dollar: '\u0024', + Dopf: '\uD835\uDD3B', + dopf: '\uD835\uDD55', + Dot: '\u00A8', + dot: '\u02D9', + DotDot: '\u20DC', + doteq: '\u2250', + doteqdot: '\u2251', + DotEqual: '\u2250', + dotminus: '\u2238', + dotplus: '\u2214', + dotsquare: '\u22A1', + doublebarwedge: '\u2306', + DoubleContourIntegral: '\u222F', + DoubleDot: '\u00A8', + DoubleDownArrow: '\u21D3', + DoubleLeftArrow: '\u21D0', + DoubleLeftRightArrow: '\u21D4', + DoubleLeftTee: '\u2AE4', + DoubleLongLeftArrow: '\u27F8', + DoubleLongLeftRightArrow: '\u27FA', + DoubleLongRightArrow: '\u27F9', + DoubleRightArrow: '\u21D2', + DoubleRightTee: '\u22A8', + DoubleUpArrow: '\u21D1', + DoubleUpDownArrow: '\u21D5', + DoubleVerticalBar: '\u2225', + DownArrow: '\u2193', + Downarrow: '\u21D3', + downarrow: '\u2193', + DownArrowBar: '\u2913', + DownArrowUpArrow: '\u21F5', + DownBreve: '\u0311', + downdownarrows: '\u21CA', + downharpoonleft: '\u21C3', + downharpoonright: '\u21C2', + DownLeftRightVector: '\u2950', + DownLeftTeeVector: '\u295E', + DownLeftVector: '\u21BD', + DownLeftVectorBar: '\u2956', + DownRightTeeVector: '\u295F', + DownRightVector: '\u21C1', + DownRightVectorBar: '\u2957', + DownTee: '\u22A4', + DownTeeArrow: '\u21A7', + drbkarow: '\u2910', + drcorn: '\u231F', + drcrop: '\u230C', + Dscr: '\uD835\uDC9F', + dscr: '\uD835\uDCB9', + DScy: '\u0405', + dscy: '\u0455', + dsol: '\u29F6', + Dstrok: '\u0110', + dstrok: '\u0111', + dtdot: '\u22F1', + dtri: '\u25BF', + dtrif: '\u25BE', + duarr: '\u21F5', + duhar: '\u296F', + dwangle: '\u29A6', + DZcy: '\u040F', + dzcy: '\u045F', + dzigrarr: '\u27FF', + Eacute: '\u00C9', + eacute: '\u00E9', + easter: '\u2A6E', + Ecaron: '\u011A', + ecaron: '\u011B', + ecir: '\u2256', + Ecirc: '\u00CA', + ecirc: '\u00EA', + ecolon: '\u2255', + Ecy: '\u042D', + ecy: '\u044D', + eDDot: '\u2A77', + Edot: '\u0116', + eDot: '\u2251', + edot: '\u0117', + ee: '\u2147', + efDot: '\u2252', + Efr: '\uD835\uDD08', + efr: '\uD835\uDD22', + eg: '\u2A9A', + Egrave: '\u00C8', + egrave: '\u00E8', + egs: '\u2A96', + egsdot: '\u2A98', + el: '\u2A99', + Element: '\u2208', + elinters: '\u23E7', + ell: '\u2113', + els: '\u2A95', + elsdot: '\u2A97', + Emacr: '\u0112', + emacr: '\u0113', + empty: '\u2205', + emptyset: '\u2205', + EmptySmallSquare: '\u25FB', + emptyv: '\u2205', + EmptyVerySmallSquare: '\u25AB', + emsp: '\u2003', + emsp13: '\u2004', + emsp14: '\u2005', + ENG: '\u014A', + eng: '\u014B', + ensp: '\u2002', + Eogon: '\u0118', + eogon: '\u0119', + Eopf: '\uD835\uDD3C', + eopf: '\uD835\uDD56', + epar: '\u22D5', + eparsl: '\u29E3', + eplus: '\u2A71', + epsi: '\u03B5', + Epsilon: '\u0395', + epsilon: '\u03B5', + epsiv: '\u03F5', + eqcirc: '\u2256', + eqcolon: '\u2255', + eqsim: '\u2242', + eqslantgtr: '\u2A96', + eqslantless: '\u2A95', + Equal: '\u2A75', + equals: '\u003D', + EqualTilde: '\u2242', + equest: '\u225F', + Equilibrium: '\u21CC', + equiv: '\u2261', + equivDD: '\u2A78', + eqvparsl: '\u29E5', + erarr: '\u2971', + erDot: '\u2253', + Escr: '\u2130', + escr: '\u212F', + esdot: '\u2250', + Esim: '\u2A73', + esim: '\u2242', + Eta: '\u0397', + eta: '\u03B7', + ETH: '\u00D0', + eth: '\u00F0', + Euml: '\u00CB', + euml: '\u00EB', + euro: '\u20AC', + excl: '\u0021', + exist: '\u2203', + Exists: '\u2203', + expectation: '\u2130', + ExponentialE: '\u2147', + exponentiale: '\u2147', + fallingdotseq: '\u2252', + Fcy: '\u0424', + fcy: '\u0444', + female: '\u2640', + ffilig: '\uFB03', + fflig: '\uFB00', + ffllig: '\uFB04', + Ffr: '\uD835\uDD09', + ffr: '\uD835\uDD23', + filig: '\uFB01', + FilledSmallSquare: '\u25FC', + FilledVerySmallSquare: '\u25AA', + fjlig: '\u0066\u006A', + flat: '\u266D', + fllig: '\uFB02', + fltns: '\u25B1', + fnof: '\u0192', + Fopf: '\uD835\uDD3D', + fopf: '\uD835\uDD57', + ForAll: '\u2200', + forall: '\u2200', + fork: '\u22D4', + forkv: '\u2AD9', + Fouriertrf: '\u2131', + fpartint: '\u2A0D', + frac12: '\u00BD', + frac13: '\u2153', + frac14: '\u00BC', + frac15: '\u2155', + frac16: '\u2159', + frac18: '\u215B', + frac23: '\u2154', + frac25: '\u2156', + frac34: '\u00BE', + frac35: '\u2157', + frac38: '\u215C', + frac45: '\u2158', + frac56: '\u215A', + frac58: '\u215D', + frac78: '\u215E', + frasl: '\u2044', + frown: '\u2322', + Fscr: '\u2131', + fscr: '\uD835\uDCBB', + gacute: '\u01F5', + Gamma: '\u0393', + gamma: '\u03B3', + Gammad: '\u03DC', + gammad: '\u03DD', + gap: '\u2A86', + Gbreve: '\u011E', + gbreve: '\u011F', + Gcedil: '\u0122', + Gcirc: '\u011C', + gcirc: '\u011D', + Gcy: '\u0413', + gcy: '\u0433', + Gdot: '\u0120', + gdot: '\u0121', + gE: '\u2267', + ge: '\u2265', + gEl: '\u2A8C', + gel: '\u22DB', + geq: '\u2265', + geqq: '\u2267', + geqslant: '\u2A7E', + ges: '\u2A7E', + gescc: '\u2AA9', + gesdot: '\u2A80', + gesdoto: '\u2A82', + gesdotol: '\u2A84', + gesl: '\u22DB\uFE00', + gesles: '\u2A94', + Gfr: '\uD835\uDD0A', + gfr: '\uD835\uDD24', + Gg: '\u22D9', + gg: '\u226B', + ggg: '\u22D9', + gimel: '\u2137', + GJcy: '\u0403', + gjcy: '\u0453', + gl: '\u2277', + gla: '\u2AA5', + glE: '\u2A92', + glj: '\u2AA4', + gnap: '\u2A8A', + gnapprox: '\u2A8A', + gnE: '\u2269', + gne: '\u2A88', + gneq: '\u2A88', + gneqq: '\u2269', + gnsim: '\u22E7', + Gopf: '\uD835\uDD3E', + gopf: '\uD835\uDD58', + grave: '\u0060', + GreaterEqual: '\u2265', + GreaterEqualLess: '\u22DB', + GreaterFullEqual: '\u2267', + GreaterGreater: '\u2AA2', + GreaterLess: '\u2277', + GreaterSlantEqual: '\u2A7E', + GreaterTilde: '\u2273', + Gscr: '\uD835\uDCA2', + gscr: '\u210A', + gsim: '\u2273', + gsime: '\u2A8E', + gsiml: '\u2A90', + Gt: '\u226B', + GT: '\u003E', + gt: '\u003E', + gtcc: '\u2AA7', + gtcir: '\u2A7A', + gtdot: '\u22D7', + gtlPar: '\u2995', + gtquest: '\u2A7C', + gtrapprox: '\u2A86', + gtrarr: '\u2978', + gtrdot: '\u22D7', + gtreqless: '\u22DB', + gtreqqless: '\u2A8C', + gtrless: '\u2277', + gtrsim: '\u2273', + gvertneqq: '\u2269\uFE00', + gvnE: '\u2269\uFE00', + Hacek: '\u02C7', + hairsp: '\u200A', + half: '\u00BD', + hamilt: '\u210B', + HARDcy: '\u042A', + hardcy: '\u044A', + hArr: '\u21D4', + harr: '\u2194', + harrcir: '\u2948', + harrw: '\u21AD', + Hat: '\u005E', + hbar: '\u210F', + Hcirc: '\u0124', + hcirc: '\u0125', + hearts: '\u2665', + heartsuit: '\u2665', + hellip: '\u2026', + hercon: '\u22B9', + Hfr: '\u210C', + hfr: '\uD835\uDD25', + HilbertSpace: '\u210B', + hksearow: '\u2925', + hkswarow: '\u2926', + hoarr: '\u21FF', + homtht: '\u223B', + hookleftarrow: '\u21A9', + hookrightarrow: '\u21AA', + Hopf: '\u210D', + hopf: '\uD835\uDD59', + horbar: '\u2015', + HorizontalLine: '\u2500', + Hscr: '\u210B', + hscr: '\uD835\uDCBD', + hslash: '\u210F', + Hstrok: '\u0126', + hstrok: '\u0127', + HumpDownHump: '\u224E', + HumpEqual: '\u224F', + hybull: '\u2043', + hyphen: '\u2010', + Iacute: '\u00CD', + iacute: '\u00ED', + ic: '\u2063', + Icirc: '\u00CE', + icirc: '\u00EE', + Icy: '\u0418', + icy: '\u0438', + Idot: '\u0130', + IEcy: '\u0415', + iecy: '\u0435', + iexcl: '\u00A1', + iff: '\u21D4', + Ifr: '\u2111', + ifr: '\uD835\uDD26', + Igrave: '\u00CC', + igrave: '\u00EC', + ii: '\u2148', + iiiint: '\u2A0C', + iiint: '\u222D', + iinfin: '\u29DC', + iiota: '\u2129', + IJlig: '\u0132', + ijlig: '\u0133', + Im: '\u2111', + Imacr: '\u012A', + imacr: '\u012B', + image: '\u2111', + ImaginaryI: '\u2148', + imagline: '\u2110', + imagpart: '\u2111', + imath: '\u0131', + imof: '\u22B7', + imped: '\u01B5', + Implies: '\u21D2', + in: '\u2208', + incare: '\u2105', + infin: '\u221E', + infintie: '\u29DD', + inodot: '\u0131', + Int: '\u222C', + int: '\u222B', + intcal: '\u22BA', + integers: '\u2124', + Integral: '\u222B', + intercal: '\u22BA', + Intersection: '\u22C2', + intlarhk: '\u2A17', + intprod: '\u2A3C', + InvisibleComma: '\u2063', + InvisibleTimes: '\u2062', + IOcy: '\u0401', + iocy: '\u0451', + Iogon: '\u012E', + iogon: '\u012F', + Iopf: '\uD835\uDD40', + iopf: '\uD835\uDD5A', + Iota: '\u0399', + iota: '\u03B9', + iprod: '\u2A3C', + iquest: '\u00BF', + Iscr: '\u2110', + iscr: '\uD835\uDCBE', + isin: '\u2208', + isindot: '\u22F5', + isinE: '\u22F9', + isins: '\u22F4', + isinsv: '\u22F3', + isinv: '\u2208', + it: '\u2062', + Itilde: '\u0128', + itilde: '\u0129', + Iukcy: '\u0406', + iukcy: '\u0456', + Iuml: '\u00CF', + iuml: '\u00EF', + Jcirc: '\u0134', + jcirc: '\u0135', + Jcy: '\u0419', + jcy: '\u0439', + Jfr: '\uD835\uDD0D', + jfr: '\uD835\uDD27', + jmath: '\u0237', + Jopf: '\uD835\uDD41', + jopf: '\uD835\uDD5B', + Jscr: '\uD835\uDCA5', + jscr: '\uD835\uDCBF', + Jsercy: '\u0408', + jsercy: '\u0458', + Jukcy: '\u0404', + jukcy: '\u0454', + Kappa: '\u039A', + kappa: '\u03BA', + kappav: '\u03F0', + Kcedil: '\u0136', + kcedil: '\u0137', + Kcy: '\u041A', + kcy: '\u043A', + Kfr: '\uD835\uDD0E', + kfr: '\uD835\uDD28', + kgreen: '\u0138', + KHcy: '\u0425', + khcy: '\u0445', + KJcy: '\u040C', + kjcy: '\u045C', + Kopf: '\uD835\uDD42', + kopf: '\uD835\uDD5C', + Kscr: '\uD835\uDCA6', + kscr: '\uD835\uDCC0', + lAarr: '\u21DA', + Lacute: '\u0139', + lacute: '\u013A', + laemptyv: '\u29B4', + lagran: '\u2112', + Lambda: '\u039B', + lambda: '\u03BB', + Lang: '\u27EA', + lang: '\u27E8', + langd: '\u2991', + langle: '\u27E8', + lap: '\u2A85', + Laplacetrf: '\u2112', + laquo: '\u00AB', + Larr: '\u219E', + lArr: '\u21D0', + larr: '\u2190', + larrb: '\u21E4', + larrbfs: '\u291F', + larrfs: '\u291D', + larrhk: '\u21A9', + larrlp: '\u21AB', + larrpl: '\u2939', + larrsim: '\u2973', + larrtl: '\u21A2', + lat: '\u2AAB', + lAtail: '\u291B', + latail: '\u2919', + late: '\u2AAD', + lates: '\u2AAD\uFE00', + lBarr: '\u290E', + lbarr: '\u290C', + lbbrk: '\u2772', + lbrace: '\u007B', + lbrack: '\u005B', + lbrke: '\u298B', + lbrksld: '\u298F', + lbrkslu: '\u298D', + Lcaron: '\u013D', + lcaron: '\u013E', + Lcedil: '\u013B', + lcedil: '\u013C', + lceil: '\u2308', + lcub: '\u007B', + Lcy: '\u041B', + lcy: '\u043B', + ldca: '\u2936', + ldquo: '\u201C', + ldquor: '\u201E', + ldrdhar: '\u2967', + ldrushar: '\u294B', + ldsh: '\u21B2', + lE: '\u2266', + le: '\u2264', + LeftAngleBracket: '\u27E8', + LeftArrow: '\u2190', + Leftarrow: '\u21D0', + leftarrow: '\u2190', + LeftArrowBar: '\u21E4', + LeftArrowRightArrow: '\u21C6', + leftarrowtail: '\u21A2', + LeftCeiling: '\u2308', + LeftDoubleBracket: '\u27E6', + LeftDownTeeVector: '\u2961', + LeftDownVector: '\u21C3', + LeftDownVectorBar: '\u2959', + LeftFloor: '\u230A', + leftharpoondown: '\u21BD', + leftharpoonup: '\u21BC', + leftleftarrows: '\u21C7', + LeftRightArrow: '\u2194', + Leftrightarrow: '\u21D4', + leftrightarrow: '\u2194', + leftrightarrows: '\u21C6', + leftrightharpoons: '\u21CB', + leftrightsquigarrow: '\u21AD', + LeftRightVector: '\u294E', + LeftTee: '\u22A3', + LeftTeeArrow: '\u21A4', + LeftTeeVector: '\u295A', + leftthreetimes: '\u22CB', + LeftTriangle: '\u22B2', + LeftTriangleBar: '\u29CF', + LeftTriangleEqual: '\u22B4', + LeftUpDownVector: '\u2951', + LeftUpTeeVector: '\u2960', + LeftUpVector: '\u21BF', + LeftUpVectorBar: '\u2958', + LeftVector: '\u21BC', + LeftVectorBar: '\u2952', + lEg: '\u2A8B', + leg: '\u22DA', + leq: '\u2264', + leqq: '\u2266', + leqslant: '\u2A7D', + les: '\u2A7D', + lescc: '\u2AA8', + lesdot: '\u2A7F', + lesdoto: '\u2A81', + lesdotor: '\u2A83', + lesg: '\u22DA\uFE00', + lesges: '\u2A93', + lessapprox: '\u2A85', + lessdot: '\u22D6', + lesseqgtr: '\u22DA', + lesseqqgtr: '\u2A8B', + LessEqualGreater: '\u22DA', + LessFullEqual: '\u2266', + LessGreater: '\u2276', + lessgtr: '\u2276', + LessLess: '\u2AA1', + lesssim: '\u2272', + LessSlantEqual: '\u2A7D', + LessTilde: '\u2272', + lfisht: '\u297C', + lfloor: '\u230A', + Lfr: '\uD835\uDD0F', + lfr: '\uD835\uDD29', + lg: '\u2276', + lgE: '\u2A91', + lHar: '\u2962', + lhard: '\u21BD', + lharu: '\u21BC', + lharul: '\u296A', + lhblk: '\u2584', + LJcy: '\u0409', + ljcy: '\u0459', + Ll: '\u22D8', + ll: '\u226A', + llarr: '\u21C7', + llcorner: '\u231E', + Lleftarrow: '\u21DA', + llhard: '\u296B', + lltri: '\u25FA', + Lmidot: '\u013F', + lmidot: '\u0140', + lmoust: '\u23B0', + lmoustache: '\u23B0', + lnap: '\u2A89', + lnapprox: '\u2A89', + lnE: '\u2268', + lne: '\u2A87', + lneq: '\u2A87', + lneqq: '\u2268', + lnsim: '\u22E6', + loang: '\u27EC', + loarr: '\u21FD', + lobrk: '\u27E6', + LongLeftArrow: '\u27F5', + Longleftarrow: '\u27F8', + longleftarrow: '\u27F5', + LongLeftRightArrow: '\u27F7', + Longleftrightarrow: '\u27FA', + longleftrightarrow: '\u27F7', + longmapsto: '\u27FC', + LongRightArrow: '\u27F6', + Longrightarrow: '\u27F9', + longrightarrow: '\u27F6', + looparrowleft: '\u21AB', + looparrowright: '\u21AC', + lopar: '\u2985', + Lopf: '\uD835\uDD43', + lopf: '\uD835\uDD5D', + loplus: '\u2A2D', + lotimes: '\u2A34', + lowast: '\u2217', + lowbar: '\u005F', + LowerLeftArrow: '\u2199', + LowerRightArrow: '\u2198', + loz: '\u25CA', + lozenge: '\u25CA', + lozf: '\u29EB', + lpar: '\u0028', + lparlt: '\u2993', + lrarr: '\u21C6', + lrcorner: '\u231F', + lrhar: '\u21CB', + lrhard: '\u296D', + lrm: '\u200E', + lrtri: '\u22BF', + lsaquo: '\u2039', + Lscr: '\u2112', + lscr: '\uD835\uDCC1', + Lsh: '\u21B0', + lsh: '\u21B0', + lsim: '\u2272', + lsime: '\u2A8D', + lsimg: '\u2A8F', + lsqb: '\u005B', + lsquo: '\u2018', + lsquor: '\u201A', + Lstrok: '\u0141', + lstrok: '\u0142', + Lt: '\u226A', + LT: '\u003C', + lt: '\u003C', + ltcc: '\u2AA6', + ltcir: '\u2A79', + ltdot: '\u22D6', + lthree: '\u22CB', + ltimes: '\u22C9', + ltlarr: '\u2976', + ltquest: '\u2A7B', + ltri: '\u25C3', + ltrie: '\u22B4', + ltrif: '\u25C2', + ltrPar: '\u2996', + lurdshar: '\u294A', + luruhar: '\u2966', + lvertneqq: '\u2268\uFE00', + lvnE: '\u2268\uFE00', + macr: '\u00AF', + male: '\u2642', + malt: '\u2720', + maltese: '\u2720', + Map: '\u2905', + map: '\u21A6', + mapsto: '\u21A6', + mapstodown: '\u21A7', + mapstoleft: '\u21A4', + mapstoup: '\u21A5', + marker: '\u25AE', + mcomma: '\u2A29', + Mcy: '\u041C', + mcy: '\u043C', + mdash: '\u2014', + mDDot: '\u223A', + measuredangle: '\u2221', + MediumSpace: '\u205F', + Mellintrf: '\u2133', + Mfr: '\uD835\uDD10', + mfr: '\uD835\uDD2A', + mho: '\u2127', + micro: '\u00B5', + mid: '\u2223', + midast: '\u002A', + midcir: '\u2AF0', + middot: '\u00B7', + minus: '\u2212', + minusb: '\u229F', + minusd: '\u2238', + minusdu: '\u2A2A', + MinusPlus: '\u2213', + mlcp: '\u2ADB', + mldr: '\u2026', + mnplus: '\u2213', + models: '\u22A7', + Mopf: '\uD835\uDD44', + mopf: '\uD835\uDD5E', + mp: '\u2213', + Mscr: '\u2133', + mscr: '\uD835\uDCC2', + mstpos: '\u223E', + Mu: '\u039C', + mu: '\u03BC', + multimap: '\u22B8', + mumap: '\u22B8', + nabla: '\u2207', + Nacute: '\u0143', + nacute: '\u0144', + nang: '\u2220\u20D2', + nap: '\u2249', + napE: '\u2A70\u0338', + napid: '\u224B\u0338', + napos: '\u0149', + napprox: '\u2249', + natur: '\u266E', + natural: '\u266E', + naturals: '\u2115', + nbsp: '\u00A0', + nbump: '\u224E\u0338', + nbumpe: '\u224F\u0338', + ncap: '\u2A43', + Ncaron: '\u0147', + ncaron: '\u0148', + Ncedil: '\u0145', + ncedil: '\u0146', + ncong: '\u2247', + ncongdot: '\u2A6D\u0338', + ncup: '\u2A42', + Ncy: '\u041D', + ncy: '\u043D', + ndash: '\u2013', + ne: '\u2260', + nearhk: '\u2924', + neArr: '\u21D7', + nearr: '\u2197', + nearrow: '\u2197', + nedot: '\u2250\u0338', + NegativeMediumSpace: '\u200B', + NegativeThickSpace: '\u200B', + NegativeThinSpace: '\u200B', + NegativeVeryThinSpace: '\u200B', + nequiv: '\u2262', + nesear: '\u2928', + nesim: '\u2242\u0338', + NestedGreaterGreater: '\u226B', + NestedLessLess: '\u226A', + NewLine: '\u000A', + nexist: '\u2204', + nexists: '\u2204', + Nfr: '\uD835\uDD11', + nfr: '\uD835\uDD2B', + ngE: '\u2267\u0338', + nge: '\u2271', + ngeq: '\u2271', + ngeqq: '\u2267\u0338', + ngeqslant: '\u2A7E\u0338', + nges: '\u2A7E\u0338', + nGg: '\u22D9\u0338', + ngsim: '\u2275', + nGt: '\u226B\u20D2', + ngt: '\u226F', + ngtr: '\u226F', + nGtv: '\u226B\u0338', + nhArr: '\u21CE', + nharr: '\u21AE', + nhpar: '\u2AF2', + ni: '\u220B', + nis: '\u22FC', + nisd: '\u22FA', + niv: '\u220B', + NJcy: '\u040A', + njcy: '\u045A', + nlArr: '\u21CD', + nlarr: '\u219A', + nldr: '\u2025', + nlE: '\u2266\u0338', + nle: '\u2270', + nLeftarrow: '\u21CD', + nleftarrow: '\u219A', + nLeftrightarrow: '\u21CE', + nleftrightarrow: '\u21AE', + nleq: '\u2270', + nleqq: '\u2266\u0338', + nleqslant: '\u2A7D\u0338', + nles: '\u2A7D\u0338', + nless: '\u226E', + nLl: '\u22D8\u0338', + nlsim: '\u2274', + nLt: '\u226A\u20D2', + nlt: '\u226E', + nltri: '\u22EA', + nltrie: '\u22EC', + nLtv: '\u226A\u0338', + nmid: '\u2224', + NoBreak: '\u2060', + NonBreakingSpace: '\u00A0', + Nopf: '\u2115', + nopf: '\uD835\uDD5F', + Not: '\u2AEC', + not: '\u00AC', + NotCongruent: '\u2262', + NotCupCap: '\u226D', + NotDoubleVerticalBar: '\u2226', + NotElement: '\u2209', + NotEqual: '\u2260', + NotEqualTilde: '\u2242\u0338', + NotExists: '\u2204', + NotGreater: '\u226F', + NotGreaterEqual: '\u2271', + NotGreaterFullEqual: '\u2267\u0338', + NotGreaterGreater: '\u226B\u0338', + NotGreaterLess: '\u2279', + NotGreaterSlantEqual: '\u2A7E\u0338', + NotGreaterTilde: '\u2275', + NotHumpDownHump: '\u224E\u0338', + NotHumpEqual: '\u224F\u0338', + notin: '\u2209', + notindot: '\u22F5\u0338', + notinE: '\u22F9\u0338', + notinva: '\u2209', + notinvb: '\u22F7', + notinvc: '\u22F6', + NotLeftTriangle: '\u22EA', + NotLeftTriangleBar: '\u29CF\u0338', + NotLeftTriangleEqual: '\u22EC', + NotLess: '\u226E', + NotLessEqual: '\u2270', + NotLessGreater: '\u2278', + NotLessLess: '\u226A\u0338', + NotLessSlantEqual: '\u2A7D\u0338', + NotLessTilde: '\u2274', + NotNestedGreaterGreater: '\u2AA2\u0338', + NotNestedLessLess: '\u2AA1\u0338', + notni: '\u220C', + notniva: '\u220C', + notnivb: '\u22FE', + notnivc: '\u22FD', + NotPrecedes: '\u2280', + NotPrecedesEqual: '\u2AAF\u0338', + NotPrecedesSlantEqual: '\u22E0', + NotReverseElement: '\u220C', + NotRightTriangle: '\u22EB', + NotRightTriangleBar: '\u29D0\u0338', + NotRightTriangleEqual: '\u22ED', + NotSquareSubset: '\u228F\u0338', + NotSquareSubsetEqual: '\u22E2', + NotSquareSuperset: '\u2290\u0338', + NotSquareSupersetEqual: '\u22E3', + NotSubset: '\u2282\u20D2', + NotSubsetEqual: '\u2288', + NotSucceeds: '\u2281', + NotSucceedsEqual: '\u2AB0\u0338', + NotSucceedsSlantEqual: '\u22E1', + NotSucceedsTilde: '\u227F\u0338', + NotSuperset: '\u2283\u20D2', + NotSupersetEqual: '\u2289', + NotTilde: '\u2241', + NotTildeEqual: '\u2244', + NotTildeFullEqual: '\u2247', + NotTildeTilde: '\u2249', + NotVerticalBar: '\u2224', + npar: '\u2226', + nparallel: '\u2226', + nparsl: '\u2AFD\u20E5', + npart: '\u2202\u0338', + npolint: '\u2A14', + npr: '\u2280', + nprcue: '\u22E0', + npre: '\u2AAF\u0338', + nprec: '\u2280', + npreceq: '\u2AAF\u0338', + nrArr: '\u21CF', + nrarr: '\u219B', + nrarrc: '\u2933\u0338', + nrarrw: '\u219D\u0338', + nRightarrow: '\u21CF', + nrightarrow: '\u219B', + nrtri: '\u22EB', + nrtrie: '\u22ED', + nsc: '\u2281', + nsccue: '\u22E1', + nsce: '\u2AB0\u0338', + Nscr: '\uD835\uDCA9', + nscr: '\uD835\uDCC3', + nshortmid: '\u2224', + nshortparallel: '\u2226', + nsim: '\u2241', + nsime: '\u2244', + nsimeq: '\u2244', + nsmid: '\u2224', + nspar: '\u2226', + nsqsube: '\u22E2', + nsqsupe: '\u22E3', + nsub: '\u2284', + nsubE: '\u2AC5\u0338', + nsube: '\u2288', + nsubset: '\u2282\u20D2', + nsubseteq: '\u2288', + nsubseteqq: '\u2AC5\u0338', + nsucc: '\u2281', + nsucceq: '\u2AB0\u0338', + nsup: '\u2285', + nsupE: '\u2AC6\u0338', + nsupe: '\u2289', + nsupset: '\u2283\u20D2', + nsupseteq: '\u2289', + nsupseteqq: '\u2AC6\u0338', + ntgl: '\u2279', + Ntilde: '\u00D1', + ntilde: '\u00F1', + ntlg: '\u2278', + ntriangleleft: '\u22EA', + ntrianglelefteq: '\u22EC', + ntriangleright: '\u22EB', + ntrianglerighteq: '\u22ED', + Nu: '\u039D', + nu: '\u03BD', + num: '\u0023', + numero: '\u2116', + numsp: '\u2007', + nvap: '\u224D\u20D2', + nVDash: '\u22AF', + nVdash: '\u22AE', + nvDash: '\u22AD', + nvdash: '\u22AC', + nvge: '\u2265\u20D2', + nvgt: '\u003E\u20D2', + nvHarr: '\u2904', + nvinfin: '\u29DE', + nvlArr: '\u2902', + nvle: '\u2264\u20D2', + nvlt: '\u003C\u20D2', + nvltrie: '\u22B4\u20D2', + nvrArr: '\u2903', + nvrtrie: '\u22B5\u20D2', + nvsim: '\u223C\u20D2', + nwarhk: '\u2923', + nwArr: '\u21D6', + nwarr: '\u2196', + nwarrow: '\u2196', + nwnear: '\u2927', + Oacute: '\u00D3', + oacute: '\u00F3', + oast: '\u229B', + ocir: '\u229A', + Ocirc: '\u00D4', + ocirc: '\u00F4', + Ocy: '\u041E', + ocy: '\u043E', + odash: '\u229D', + Odblac: '\u0150', + odblac: '\u0151', + odiv: '\u2A38', + odot: '\u2299', + odsold: '\u29BC', + OElig: '\u0152', + oelig: '\u0153', + ofcir: '\u29BF', + Ofr: '\uD835\uDD12', + ofr: '\uD835\uDD2C', + ogon: '\u02DB', + Ograve: '\u00D2', + ograve: '\u00F2', + ogt: '\u29C1', + ohbar: '\u29B5', + ohm: '\u03A9', + oint: '\u222E', + olarr: '\u21BA', + olcir: '\u29BE', + olcross: '\u29BB', + oline: '\u203E', + olt: '\u29C0', + Omacr: '\u014C', + omacr: '\u014D', + Omega: '\u03A9', + omega: '\u03C9', + Omicron: '\u039F', + omicron: '\u03BF', + omid: '\u29B6', + ominus: '\u2296', + Oopf: '\uD835\uDD46', + oopf: '\uD835\uDD60', + opar: '\u29B7', + OpenCurlyDoubleQuote: '\u201C', + OpenCurlyQuote: '\u2018', + operp: '\u29B9', + oplus: '\u2295', + Or: '\u2A54', + or: '\u2228', + orarr: '\u21BB', + ord: '\u2A5D', + order: '\u2134', + orderof: '\u2134', + ordf: '\u00AA', + ordm: '\u00BA', + origof: '\u22B6', + oror: '\u2A56', + orslope: '\u2A57', + orv: '\u2A5B', + oS: '\u24C8', + Oscr: '\uD835\uDCAA', + oscr: '\u2134', + Oslash: '\u00D8', + oslash: '\u00F8', + osol: '\u2298', + Otilde: '\u00D5', + otilde: '\u00F5', + Otimes: '\u2A37', + otimes: '\u2297', + otimesas: '\u2A36', + Ouml: '\u00D6', + ouml: '\u00F6', + ovbar: '\u233D', + OverBar: '\u203E', + OverBrace: '\u23DE', + OverBracket: '\u23B4', + OverParenthesis: '\u23DC', + par: '\u2225', + para: '\u00B6', + parallel: '\u2225', + parsim: '\u2AF3', + parsl: '\u2AFD', + part: '\u2202', + PartialD: '\u2202', + Pcy: '\u041F', + pcy: '\u043F', + percnt: '\u0025', + period: '\u002E', + permil: '\u2030', + perp: '\u22A5', + pertenk: '\u2031', + Pfr: '\uD835\uDD13', + pfr: '\uD835\uDD2D', + Phi: '\u03A6', + phi: '\u03C6', + phiv: '\u03D5', + phmmat: '\u2133', + phone: '\u260E', + Pi: '\u03A0', + pi: '\u03C0', + pitchfork: '\u22D4', + piv: '\u03D6', + planck: '\u210F', + planckh: '\u210E', + plankv: '\u210F', + plus: '\u002B', + plusacir: '\u2A23', + plusb: '\u229E', + pluscir: '\u2A22', + plusdo: '\u2214', + plusdu: '\u2A25', + pluse: '\u2A72', + PlusMinus: '\u00B1', + plusmn: '\u00B1', + plussim: '\u2A26', + plustwo: '\u2A27', + pm: '\u00B1', + Poincareplane: '\u210C', + pointint: '\u2A15', + Popf: '\u2119', + popf: '\uD835\uDD61', + pound: '\u00A3', + Pr: '\u2ABB', + pr: '\u227A', + prap: '\u2AB7', + prcue: '\u227C', + prE: '\u2AB3', + pre: '\u2AAF', + prec: '\u227A', + precapprox: '\u2AB7', + preccurlyeq: '\u227C', + Precedes: '\u227A', + PrecedesEqual: '\u2AAF', + PrecedesSlantEqual: '\u227C', + PrecedesTilde: '\u227E', + preceq: '\u2AAF', + precnapprox: '\u2AB9', + precneqq: '\u2AB5', + precnsim: '\u22E8', + precsim: '\u227E', + Prime: '\u2033', + prime: '\u2032', + primes: '\u2119', + prnap: '\u2AB9', + prnE: '\u2AB5', + prnsim: '\u22E8', + prod: '\u220F', + Product: '\u220F', + profalar: '\u232E', + profline: '\u2312', + profsurf: '\u2313', + prop: '\u221D', + Proportion: '\u2237', + Proportional: '\u221D', + propto: '\u221D', + prsim: '\u227E', + prurel: '\u22B0', + Pscr: '\uD835\uDCAB', + pscr: '\uD835\uDCC5', + Psi: '\u03A8', + psi: '\u03C8', + puncsp: '\u2008', + Qfr: '\uD835\uDD14', + qfr: '\uD835\uDD2E', + qint: '\u2A0C', + Qopf: '\u211A', + qopf: '\uD835\uDD62', + qprime: '\u2057', + Qscr: '\uD835\uDCAC', + qscr: '\uD835\uDCC6', + quaternions: '\u210D', + quatint: '\u2A16', + quest: '\u003F', + questeq: '\u225F', + QUOT: '\u0022', + quot: '\u0022', + rAarr: '\u21DB', + race: '\u223D\u0331', + Racute: '\u0154', + racute: '\u0155', + radic: '\u221A', + raemptyv: '\u29B3', + Rang: '\u27EB', + rang: '\u27E9', + rangd: '\u2992', + range: '\u29A5', + rangle: '\u27E9', + raquo: '\u00BB', + Rarr: '\u21A0', + rArr: '\u21D2', + rarr: '\u2192', + rarrap: '\u2975', + rarrb: '\u21E5', + rarrbfs: '\u2920', + rarrc: '\u2933', + rarrfs: '\u291E', + rarrhk: '\u21AA', + rarrlp: '\u21AC', + rarrpl: '\u2945', + rarrsim: '\u2974', + Rarrtl: '\u2916', + rarrtl: '\u21A3', + rarrw: '\u219D', + rAtail: '\u291C', + ratail: '\u291A', + ratio: '\u2236', + rationals: '\u211A', + RBarr: '\u2910', + rBarr: '\u290F', + rbarr: '\u290D', + rbbrk: '\u2773', + rbrace: '\u007D', + rbrack: '\u005D', + rbrke: '\u298C', + rbrksld: '\u298E', + rbrkslu: '\u2990', + Rcaron: '\u0158', + rcaron: '\u0159', + Rcedil: '\u0156', + rcedil: '\u0157', + rceil: '\u2309', + rcub: '\u007D', + Rcy: '\u0420', + rcy: '\u0440', + rdca: '\u2937', + rdldhar: '\u2969', + rdquo: '\u201D', + rdquor: '\u201D', + rdsh: '\u21B3', + Re: '\u211C', + real: '\u211C', + realine: '\u211B', + realpart: '\u211C', + reals: '\u211D', + rect: '\u25AD', + REG: '\u00AE', + reg: '\u00AE', + ReverseElement: '\u220B', + ReverseEquilibrium: '\u21CB', + ReverseUpEquilibrium: '\u296F', + rfisht: '\u297D', + rfloor: '\u230B', + Rfr: '\u211C', + rfr: '\uD835\uDD2F', + rHar: '\u2964', + rhard: '\u21C1', + rharu: '\u21C0', + rharul: '\u296C', + Rho: '\u03A1', + rho: '\u03C1', + rhov: '\u03F1', + RightAngleBracket: '\u27E9', + RightArrow: '\u2192', + Rightarrow: '\u21D2', + rightarrow: '\u2192', + RightArrowBar: '\u21E5', + RightArrowLeftArrow: '\u21C4', + rightarrowtail: '\u21A3', + RightCeiling: '\u2309', + RightDoubleBracket: '\u27E7', + RightDownTeeVector: '\u295D', + RightDownVector: '\u21C2', + RightDownVectorBar: '\u2955', + RightFloor: '\u230B', + rightharpoondown: '\u21C1', + rightharpoonup: '\u21C0', + rightleftarrows: '\u21C4', + rightleftharpoons: '\u21CC', + rightrightarrows: '\u21C9', + rightsquigarrow: '\u219D', + RightTee: '\u22A2', + RightTeeArrow: '\u21A6', + RightTeeVector: '\u295B', + rightthreetimes: '\u22CC', + RightTriangle: '\u22B3', + RightTriangleBar: '\u29D0', + RightTriangleEqual: '\u22B5', + RightUpDownVector: '\u294F', + RightUpTeeVector: '\u295C', + RightUpVector: '\u21BE', + RightUpVectorBar: '\u2954', + RightVector: '\u21C0', + RightVectorBar: '\u2953', + ring: '\u02DA', + risingdotseq: '\u2253', + rlarr: '\u21C4', + rlhar: '\u21CC', + rlm: '\u200F', + rmoust: '\u23B1', + rmoustache: '\u23B1', + rnmid: '\u2AEE', + roang: '\u27ED', + roarr: '\u21FE', + robrk: '\u27E7', + ropar: '\u2986', + Ropf: '\u211D', + ropf: '\uD835\uDD63', + roplus: '\u2A2E', + rotimes: '\u2A35', + RoundImplies: '\u2970', + rpar: '\u0029', + rpargt: '\u2994', + rppolint: '\u2A12', + rrarr: '\u21C9', + Rrightarrow: '\u21DB', + rsaquo: '\u203A', + Rscr: '\u211B', + rscr: '\uD835\uDCC7', + Rsh: '\u21B1', + rsh: '\u21B1', + rsqb: '\u005D', + rsquo: '\u2019', + rsquor: '\u2019', + rthree: '\u22CC', + rtimes: '\u22CA', + rtri: '\u25B9', + rtrie: '\u22B5', + rtrif: '\u25B8', + rtriltri: '\u29CE', + RuleDelayed: '\u29F4', + ruluhar: '\u2968', + rx: '\u211E', + Sacute: '\u015A', + sacute: '\u015B', + sbquo: '\u201A', + Sc: '\u2ABC', + sc: '\u227B', + scap: '\u2AB8', + Scaron: '\u0160', + scaron: '\u0161', + sccue: '\u227D', + scE: '\u2AB4', + sce: '\u2AB0', + Scedil: '\u015E', + scedil: '\u015F', + Scirc: '\u015C', + scirc: '\u015D', + scnap: '\u2ABA', + scnE: '\u2AB6', + scnsim: '\u22E9', + scpolint: '\u2A13', + scsim: '\u227F', + Scy: '\u0421', + scy: '\u0441', + sdot: '\u22C5', + sdotb: '\u22A1', + sdote: '\u2A66', + searhk: '\u2925', + seArr: '\u21D8', + searr: '\u2198', + searrow: '\u2198', + sect: '\u00A7', + semi: '\u003B', + seswar: '\u2929', + setminus: '\u2216', + setmn: '\u2216', + sext: '\u2736', + Sfr: '\uD835\uDD16', + sfr: '\uD835\uDD30', + sfrown: '\u2322', + sharp: '\u266F', + SHCHcy: '\u0429', + shchcy: '\u0449', + SHcy: '\u0428', + shcy: '\u0448', + ShortDownArrow: '\u2193', + ShortLeftArrow: '\u2190', + shortmid: '\u2223', + shortparallel: '\u2225', + ShortRightArrow: '\u2192', + ShortUpArrow: '\u2191', + shy: '\u00AD', + Sigma: '\u03A3', + sigma: '\u03C3', + sigmaf: '\u03C2', + sigmav: '\u03C2', + sim: '\u223C', + simdot: '\u2A6A', + sime: '\u2243', + simeq: '\u2243', + simg: '\u2A9E', + simgE: '\u2AA0', + siml: '\u2A9D', + simlE: '\u2A9F', + simne: '\u2246', + simplus: '\u2A24', + simrarr: '\u2972', + slarr: '\u2190', + SmallCircle: '\u2218', + smallsetminus: '\u2216', + smashp: '\u2A33', + smeparsl: '\u29E4', + smid: '\u2223', + smile: '\u2323', + smt: '\u2AAA', + smte: '\u2AAC', + smtes: '\u2AAC\uFE00', + SOFTcy: '\u042C', + softcy: '\u044C', + sol: '\u002F', + solb: '\u29C4', + solbar: '\u233F', + Sopf: '\uD835\uDD4A', + sopf: '\uD835\uDD64', + spades: '\u2660', + spadesuit: '\u2660', + spar: '\u2225', + sqcap: '\u2293', + sqcaps: '\u2293\uFE00', + sqcup: '\u2294', + sqcups: '\u2294\uFE00', + Sqrt: '\u221A', + sqsub: '\u228F', + sqsube: '\u2291', + sqsubset: '\u228F', + sqsubseteq: '\u2291', + sqsup: '\u2290', + sqsupe: '\u2292', + sqsupset: '\u2290', + sqsupseteq: '\u2292', + squ: '\u25A1', + Square: '\u25A1', + square: '\u25A1', + SquareIntersection: '\u2293', + SquareSubset: '\u228F', + SquareSubsetEqual: '\u2291', + SquareSuperset: '\u2290', + SquareSupersetEqual: '\u2292', + SquareUnion: '\u2294', + squarf: '\u25AA', + squf: '\u25AA', + srarr: '\u2192', + Sscr: '\uD835\uDCAE', + sscr: '\uD835\uDCC8', + ssetmn: '\u2216', + ssmile: '\u2323', + sstarf: '\u22C6', + Star: '\u22C6', + star: '\u2606', + starf: '\u2605', + straightepsilon: '\u03F5', + straightphi: '\u03D5', + strns: '\u00AF', + Sub: '\u22D0', + sub: '\u2282', + subdot: '\u2ABD', + subE: '\u2AC5', + sube: '\u2286', + subedot: '\u2AC3', + submult: '\u2AC1', + subnE: '\u2ACB', + subne: '\u228A', + subplus: '\u2ABF', + subrarr: '\u2979', + Subset: '\u22D0', + subset: '\u2282', + subseteq: '\u2286', + subseteqq: '\u2AC5', + SubsetEqual: '\u2286', + subsetneq: '\u228A', + subsetneqq: '\u2ACB', + subsim: '\u2AC7', + subsub: '\u2AD5', + subsup: '\u2AD3', + succ: '\u227B', + succapprox: '\u2AB8', + succcurlyeq: '\u227D', + Succeeds: '\u227B', + SucceedsEqual: '\u2AB0', + SucceedsSlantEqual: '\u227D', + SucceedsTilde: '\u227F', + succeq: '\u2AB0', + succnapprox: '\u2ABA', + succneqq: '\u2AB6', + succnsim: '\u22E9', + succsim: '\u227F', + SuchThat: '\u220B', + Sum: '\u2211', + sum: '\u2211', + sung: '\u266A', + Sup: '\u22D1', + sup: '\u2283', + sup1: '\u00B9', + sup2: '\u00B2', + sup3: '\u00B3', + supdot: '\u2ABE', + supdsub: '\u2AD8', + supE: '\u2AC6', + supe: '\u2287', + supedot: '\u2AC4', + Superset: '\u2283', + SupersetEqual: '\u2287', + suphsol: '\u27C9', + suphsub: '\u2AD7', + suplarr: '\u297B', + supmult: '\u2AC2', + supnE: '\u2ACC', + supne: '\u228B', + supplus: '\u2AC0', + Supset: '\u22D1', + supset: '\u2283', + supseteq: '\u2287', + supseteqq: '\u2AC6', + supsetneq: '\u228B', + supsetneqq: '\u2ACC', + supsim: '\u2AC8', + supsub: '\u2AD4', + supsup: '\u2AD6', + swarhk: '\u2926', + swArr: '\u21D9', + swarr: '\u2199', + swarrow: '\u2199', + swnwar: '\u292A', + szlig: '\u00DF', + Tab: '\u0009', + target: '\u2316', + Tau: '\u03A4', + tau: '\u03C4', + tbrk: '\u23B4', + Tcaron: '\u0164', + tcaron: '\u0165', + Tcedil: '\u0162', + tcedil: '\u0163', + Tcy: '\u0422', + tcy: '\u0442', + tdot: '\u20DB', + telrec: '\u2315', + Tfr: '\uD835\uDD17', + tfr: '\uD835\uDD31', + there4: '\u2234', + Therefore: '\u2234', + therefore: '\u2234', + Theta: '\u0398', + theta: '\u03B8', + thetasym: '\u03D1', + thetav: '\u03D1', + thickapprox: '\u2248', + thicksim: '\u223C', + ThickSpace: '\u205F\u200A', + thinsp: '\u2009', + ThinSpace: '\u2009', + thkap: '\u2248', + thksim: '\u223C', + THORN: '\u00DE', + thorn: '\u00FE', + Tilde: '\u223C', + tilde: '\u02DC', + TildeEqual: '\u2243', + TildeFullEqual: '\u2245', + TildeTilde: '\u2248', + times: '\u00D7', + timesb: '\u22A0', + timesbar: '\u2A31', + timesd: '\u2A30', + tint: '\u222D', + toea: '\u2928', + top: '\u22A4', + topbot: '\u2336', + topcir: '\u2AF1', + Topf: '\uD835\uDD4B', + topf: '\uD835\uDD65', + topfork: '\u2ADA', + tosa: '\u2929', + tprime: '\u2034', + TRADE: '\u2122', + trade: '\u2122', + triangle: '\u25B5', + triangledown: '\u25BF', + triangleleft: '\u25C3', + trianglelefteq: '\u22B4', + triangleq: '\u225C', + triangleright: '\u25B9', + trianglerighteq: '\u22B5', + tridot: '\u25EC', + trie: '\u225C', + triminus: '\u2A3A', + TripleDot: '\u20DB', + triplus: '\u2A39', + trisb: '\u29CD', + tritime: '\u2A3B', + trpezium: '\u23E2', + Tscr: '\uD835\uDCAF', + tscr: '\uD835\uDCC9', + TScy: '\u0426', + tscy: '\u0446', + TSHcy: '\u040B', + tshcy: '\u045B', + Tstrok: '\u0166', + tstrok: '\u0167', + twixt: '\u226C', + twoheadleftarrow: '\u219E', + twoheadrightarrow: '\u21A0', + Uacute: '\u00DA', + uacute: '\u00FA', + Uarr: '\u219F', + uArr: '\u21D1', + uarr: '\u2191', + Uarrocir: '\u2949', + Ubrcy: '\u040E', + ubrcy: '\u045E', + Ubreve: '\u016C', + ubreve: '\u016D', + Ucirc: '\u00DB', + ucirc: '\u00FB', + Ucy: '\u0423', + ucy: '\u0443', + udarr: '\u21C5', + Udblac: '\u0170', + udblac: '\u0171', + udhar: '\u296E', + ufisht: '\u297E', + Ufr: '\uD835\uDD18', + ufr: '\uD835\uDD32', + Ugrave: '\u00D9', + ugrave: '\u00F9', + uHar: '\u2963', + uharl: '\u21BF', + uharr: '\u21BE', + uhblk: '\u2580', + ulcorn: '\u231C', + ulcorner: '\u231C', + ulcrop: '\u230F', + ultri: '\u25F8', + Umacr: '\u016A', + umacr: '\u016B', + uml: '\u00A8', + UnderBar: '\u005F', + UnderBrace: '\u23DF', + UnderBracket: '\u23B5', + UnderParenthesis: '\u23DD', + Union: '\u22C3', + UnionPlus: '\u228E', + Uogon: '\u0172', + uogon: '\u0173', + Uopf: '\uD835\uDD4C', + uopf: '\uD835\uDD66', + UpArrow: '\u2191', + Uparrow: '\u21D1', + uparrow: '\u2191', + UpArrowBar: '\u2912', + UpArrowDownArrow: '\u21C5', + UpDownArrow: '\u2195', + Updownarrow: '\u21D5', + updownarrow: '\u2195', + UpEquilibrium: '\u296E', + upharpoonleft: '\u21BF', + upharpoonright: '\u21BE', + uplus: '\u228E', + UpperLeftArrow: '\u2196', + UpperRightArrow: '\u2197', + Upsi: '\u03D2', + upsi: '\u03C5', + upsih: '\u03D2', + Upsilon: '\u03A5', + upsilon: '\u03C5', + UpTee: '\u22A5', + UpTeeArrow: '\u21A5', + upuparrows: '\u21C8', + urcorn: '\u231D', + urcorner: '\u231D', + urcrop: '\u230E', + Uring: '\u016E', + uring: '\u016F', + urtri: '\u25F9', + Uscr: '\uD835\uDCB0', + uscr: '\uD835\uDCCA', + utdot: '\u22F0', + Utilde: '\u0168', + utilde: '\u0169', + utri: '\u25B5', + utrif: '\u25B4', + uuarr: '\u21C8', + Uuml: '\u00DC', + uuml: '\u00FC', + uwangle: '\u29A7', + vangrt: '\u299C', + varepsilon: '\u03F5', + varkappa: '\u03F0', + varnothing: '\u2205', + varphi: '\u03D5', + varpi: '\u03D6', + varpropto: '\u221D', + vArr: '\u21D5', + varr: '\u2195', + varrho: '\u03F1', + varsigma: '\u03C2', + varsubsetneq: '\u228A\uFE00', + varsubsetneqq: '\u2ACB\uFE00', + varsupsetneq: '\u228B\uFE00', + varsupsetneqq: '\u2ACC\uFE00', + vartheta: '\u03D1', + vartriangleleft: '\u22B2', + vartriangleright: '\u22B3', + Vbar: '\u2AEB', + vBar: '\u2AE8', + vBarv: '\u2AE9', + Vcy: '\u0412', + vcy: '\u0432', + VDash: '\u22AB', + Vdash: '\u22A9', + vDash: '\u22A8', + vdash: '\u22A2', + Vdashl: '\u2AE6', + Vee: '\u22C1', + vee: '\u2228', + veebar: '\u22BB', + veeeq: '\u225A', + vellip: '\u22EE', + Verbar: '\u2016', + verbar: '\u007C', + Vert: '\u2016', + vert: '\u007C', + VerticalBar: '\u2223', + VerticalLine: '\u007C', + VerticalSeparator: '\u2758', + VerticalTilde: '\u2240', + VeryThinSpace: '\u200A', + Vfr: '\uD835\uDD19', + vfr: '\uD835\uDD33', + vltri: '\u22B2', + vnsub: '\u2282\u20D2', + vnsup: '\u2283\u20D2', + Vopf: '\uD835\uDD4D', + vopf: '\uD835\uDD67', + vprop: '\u221D', + vrtri: '\u22B3', + Vscr: '\uD835\uDCB1', + vscr: '\uD835\uDCCB', + vsubnE: '\u2ACB\uFE00', + vsubne: '\u228A\uFE00', + vsupnE: '\u2ACC\uFE00', + vsupne: '\u228B\uFE00', + Vvdash: '\u22AA', + vzigzag: '\u299A', + Wcirc: '\u0174', + wcirc: '\u0175', + wedbar: '\u2A5F', + Wedge: '\u22C0', + wedge: '\u2227', + wedgeq: '\u2259', + weierp: '\u2118', + Wfr: '\uD835\uDD1A', + wfr: '\uD835\uDD34', + Wopf: '\uD835\uDD4E', + wopf: '\uD835\uDD68', + wp: '\u2118', + wr: '\u2240', + wreath: '\u2240', + Wscr: '\uD835\uDCB2', + wscr: '\uD835\uDCCC', + xcap: '\u22C2', + xcirc: '\u25EF', + xcup: '\u22C3', + xdtri: '\u25BD', + Xfr: '\uD835\uDD1B', + xfr: '\uD835\uDD35', + xhArr: '\u27FA', + xharr: '\u27F7', + Xi: '\u039E', + xi: '\u03BE', + xlArr: '\u27F8', + xlarr: '\u27F5', + xmap: '\u27FC', + xnis: '\u22FB', + xodot: '\u2A00', + Xopf: '\uD835\uDD4F', + xopf: '\uD835\uDD69', + xoplus: '\u2A01', + xotime: '\u2A02', + xrArr: '\u27F9', + xrarr: '\u27F6', + Xscr: '\uD835\uDCB3', + xscr: '\uD835\uDCCD', + xsqcup: '\u2A06', + xuplus: '\u2A04', + xutri: '\u25B3', + xvee: '\u22C1', + xwedge: '\u22C0', + Yacute: '\u00DD', + yacute: '\u00FD', + YAcy: '\u042F', + yacy: '\u044F', + Ycirc: '\u0176', + ycirc: '\u0177', + Ycy: '\u042B', + ycy: '\u044B', + yen: '\u00A5', + Yfr: '\uD835\uDD1C', + yfr: '\uD835\uDD36', + YIcy: '\u0407', + yicy: '\u0457', + Yopf: '\uD835\uDD50', + yopf: '\uD835\uDD6A', + Yscr: '\uD835\uDCB4', + yscr: '\uD835\uDCCE', + YUcy: '\u042E', + yucy: '\u044E', + Yuml: '\u0178', + yuml: '\u00FF', + Zacute: '\u0179', + zacute: '\u017A', + Zcaron: '\u017D', + zcaron: '\u017E', + Zcy: '\u0417', + zcy: '\u0437', + Zdot: '\u017B', + zdot: '\u017C', + zeetrf: '\u2128', + ZeroWidthSpace: '\u200B', + Zeta: '\u0396', + zeta: '\u03B6', + Zfr: '\u2128', + zfr: '\uD835\uDD37', + ZHcy: '\u0416', + zhcy: '\u0436', + zigrarr: '\u21DD', + Zopf: '\u2124', + zopf: '\uD835\uDD6B', + Zscr: '\uD835\uDCB5', + zscr: '\uD835\uDCCF', + zwj: '\u200D', + zwnj: '\u200C', +}); + +/** + * @deprecated use `HTML_ENTITIES` instead + * @see HTML_ENTITIES + */ +exports.entityMap = exports.HTML_ENTITIES; + + +/***/ }), +/* 20 */ +/***/ (function(module, exports, __webpack_require__) { + +var NAMESPACE = __webpack_require__(17).NAMESPACE; + +//[4] NameStartChar ::= ":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF] +//[4a] NameChar ::= NameStartChar | "-" | "." | [0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040] +//[5] Name ::= NameStartChar (NameChar)* +var nameStartChar = /[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]///\u10000-\uEFFFF +var nameChar = new RegExp("[\\-\\.0-9"+nameStartChar.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"); +var tagNamePattern = new RegExp('^'+nameStartChar.source+nameChar.source+'*(?:\:'+nameStartChar.source+nameChar.source+'*)?$'); +//var tagNamePattern = /^[a-zA-Z_][\w\-\.]*(?:\:[a-zA-Z_][\w\-\.]*)?$/ +//var handlers = 'resolveEntity,getExternalSubset,characters,endDocument,endElement,endPrefixMapping,ignorableWhitespace,processingInstruction,setDocumentLocator,skippedEntity,startDocument,startElement,startPrefixMapping,notationDecl,unparsedEntityDecl,error,fatalError,warning,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,comment,endCDATA,endDTD,endEntity,startCDATA,startDTD,startEntity'.split(',') + +//S_TAG, S_ATTR, S_EQ, S_ATTR_NOQUOT_VALUE +//S_ATTR_SPACE, S_ATTR_END, S_TAG_SPACE, S_TAG_CLOSE +var S_TAG = 0;//tag name offerring +var S_ATTR = 1;//attr name offerring +var S_ATTR_SPACE=2;//attr name end and space offer +var S_EQ = 3;//=space? +var S_ATTR_NOQUOT_VALUE = 4;//attr value(no quot value only) +var S_ATTR_END = 5;//attr value end and no space(quot end) +var S_TAG_SPACE = 6;//(attr value end || tag end ) && (space offer) +var S_TAG_CLOSE = 7;//closed el + +/** + * Creates an error that will not be caught by XMLReader aka the SAX parser. + * + * @param {string} message + * @param {any?} locator Optional, can provide details about the location in the source + * @constructor + */ +function ParseError(message, locator) { + this.message = message + this.locator = locator + if(Error.captureStackTrace) Error.captureStackTrace(this, ParseError); +} +ParseError.prototype = new Error(); +ParseError.prototype.name = ParseError.name + +function XMLReader(){ + +} + +XMLReader.prototype = { + parse:function(source,defaultNSMap,entityMap){ + var domBuilder = this.domBuilder; + domBuilder.startDocument(); + _copy(defaultNSMap ,defaultNSMap = {}) + parse(source,defaultNSMap,entityMap, + domBuilder,this.errorHandler); + domBuilder.endDocument(); + } +} +function parse(source,defaultNSMapCopy,entityMap,domBuilder,errorHandler){ + function fixedFromCharCode(code) { + // String.prototype.fromCharCode does not supports + // > 2 bytes unicode chars directly + if (code > 0xffff) { + code -= 0x10000; + var surrogate1 = 0xd800 + (code >> 10) + , surrogate2 = 0xdc00 + (code & 0x3ff); + + return String.fromCharCode(surrogate1, surrogate2); + } else { + return String.fromCharCode(code); + } + } + function entityReplacer(a){ + var k = a.slice(1,-1); + if (Object.hasOwnProperty.call(entityMap, k)) { + return entityMap[k]; + }else if(k.charAt(0) === '#'){ + return fixedFromCharCode(parseInt(k.substr(1).replace('x','0x'))) + }else{ + errorHandler.error('entity not found:'+a); + return a; + } + } + function appendText(end){//has some bugs + if(end>start){ + var xt = source.substring(start,end).replace(/&#?\w+;/g,entityReplacer); + locator&&position(start); + domBuilder.characters(xt,0,end-start); + start = end + } + } + function position(p,m){ + while(p>=lineEnd && (m = linePattern.exec(source))){ + lineStart = m.index; + lineEnd = lineStart + m[0].length; + locator.lineNumber++; + //console.log('line++:',locator,startPos,endPos) + } + locator.columnNumber = p-lineStart+1; + } + var lineStart = 0; + var lineEnd = 0; + var linePattern = /.*(?:\r\n?|\n)|.*$/g + var locator = domBuilder.locator; + + var parseStack = [{currentNSMap:defaultNSMapCopy}] + var closeMap = {}; + var start = 0; + while(true){ + try{ + var tagStart = source.indexOf('<',start); + if(tagStart<0){ + if(!source.substr(start).match(/^\s*$/)){ + var doc = domBuilder.doc; + var text = doc.createTextNode(source.substr(start)); + doc.appendChild(text); + domBuilder.currentElement = text; + } + return; + } + if(tagStart>start){ + appendText(tagStart); + } + switch(source.charAt(tagStart+1)){ + case '/': + var end = source.indexOf('>',tagStart+3); + var tagName = source.substring(tagStart + 2, end).replace(/[ \t\n\r]+$/g, ''); + var config = parseStack.pop(); + if(end<0){ + + tagName = source.substring(tagStart+2).replace(/[\s<].*/,''); + errorHandler.error("end tag name: "+tagName+' is not complete:'+config.tagName); + end = tagStart+1+tagName.length; + }else if(tagName.match(/\s + locator&&position(tagStart); + end = parseInstruction(source,tagStart,domBuilder); + break; + case '!':// start){ + start = end; + }else{ + //TODO: 这里有可能sax回退,有位置错误风险 + appendText(Math.max(tagStart,start)+1); + } + } +} +function copyLocator(f,t){ + t.lineNumber = f.lineNumber; + t.columnNumber = f.columnNumber; + return t; +} + +/** + * @see #appendElement(source,elStartEnd,el,selfClosed,entityReplacer,domBuilder,parseStack); + * @return end of the elementStartPart(end of elementEndPart for selfClosed el) + */ +function parseElementStartPart(source,start,el,currentNSMap,entityReplacer,errorHandler){ + + /** + * @param {string} qname + * @param {string} value + * @param {number} startIndex + */ + function addAttribute(qname, value, startIndex) { + if (el.attributeNames.hasOwnProperty(qname)) { + errorHandler.fatalError('Attribute ' + qname + ' redefined') + } + el.addValue( + qname, + // @see https://www.w3.org/TR/xml/#AVNormalize + // since the xmldom sax parser does not "interpret" DTD the following is not implemented: + // - recursive replacement of (DTD) entity references + // - trimming and collapsing multiple spaces into a single one for attributes that are not of type CDATA + value.replace(/[\t\n\r]/g, ' ').replace(/&#?\w+;/g, entityReplacer), + startIndex + ) + } + var attrName; + var value; + var p = ++start; + var s = S_TAG;//status + while(true){ + var c = source.charAt(p); + switch(c){ + case '=': + if(s === S_ATTR){//attrName + attrName = source.slice(start,p); + s = S_EQ; + }else if(s === S_ATTR_SPACE){ + s = S_EQ; + }else{ + //fatalError: equal must after attrName or space after attrName + throw new Error('attribute equal must after attrName'); // No known test case + } + break; + case '\'': + case '"': + if(s === S_EQ || s === S_ATTR //|| s == S_ATTR_SPACE + ){//equal + if(s === S_ATTR){ + errorHandler.warning('attribute value must after "="') + attrName = source.slice(start,p) + } + start = p+1; + p = source.indexOf(c,start) + if(p>0){ + value = source.slice(start, p); + addAttribute(attrName, value, start-1); + s = S_ATTR_END; + }else{ + //fatalError: no end quot match + throw new Error('attribute value no end \''+c+'\' match'); + } + }else if(s == S_ATTR_NOQUOT_VALUE){ + value = source.slice(start, p); + addAttribute(attrName, value, start); + errorHandler.warning('attribute "'+attrName+'" missed start quot('+c+')!!'); + start = p+1; + s = S_ATTR_END + }else{ + //fatalError: no equal before + throw new Error('attribute value must after "="'); // No known test case + } + break; + case '/': + switch(s){ + case S_TAG: + el.setTagName(source.slice(start,p)); + case S_ATTR_END: + case S_TAG_SPACE: + case S_TAG_CLOSE: + s =S_TAG_CLOSE; + el.closed = true; + case S_ATTR_NOQUOT_VALUE: + case S_ATTR: + break; + case S_ATTR_SPACE: + el.closed = true; + break; + //case S_EQ: + default: + throw new Error("attribute invalid close char('/')") // No known test case + } + break; + case ''://end document + errorHandler.error('unexpected end of input'); + if(s == S_TAG){ + el.setTagName(source.slice(start,p)); + } + return p; + case '>': + switch(s){ + case S_TAG: + el.setTagName(source.slice(start,p)); + case S_ATTR_END: + case S_TAG_SPACE: + case S_TAG_CLOSE: + break;//normal + case S_ATTR_NOQUOT_VALUE://Compatible state + case S_ATTR: + value = source.slice(start,p); + if(value.slice(-1) === '/'){ + el.closed = true; + value = value.slice(0,-1) + } + case S_ATTR_SPACE: + if(s === S_ATTR_SPACE){ + value = attrName; + } + if(s == S_ATTR_NOQUOT_VALUE){ + errorHandler.warning('attribute "'+value+'" missed quot(")!'); + addAttribute(attrName, value, start) + }else{ + if(!NAMESPACE.isHTML(currentNSMap['']) || !value.match(/^(?:disabled|checked|selected)$/i)){ + errorHandler.warning('attribute "'+value+'" missed value!! "'+value+'" instead!!') + } + addAttribute(value, value, start) + } + break; + case S_EQ: + throw new Error('attribute value missed!!'); + } +// console.log(tagName,tagNamePattern,tagNamePattern.test(tagName)) + return p; + /*xml space '\x20' | #x9 | #xD | #xA; */ + case '\u0080': + c = ' '; + default: + if(c<= ' '){//space + switch(s){ + case S_TAG: + el.setTagName(source.slice(start,p));//tagName + s = S_TAG_SPACE; + break; + case S_ATTR: + attrName = source.slice(start,p) + s = S_ATTR_SPACE; + break; + case S_ATTR_NOQUOT_VALUE: + var value = source.slice(start, p); + errorHandler.warning('attribute "'+value+'" missed quot(")!!'); + addAttribute(attrName, value, start) + case S_ATTR_END: + s = S_TAG_SPACE; + break; + //case S_TAG_SPACE: + //case S_EQ: + //case S_ATTR_SPACE: + // void();break; + //case S_TAG_CLOSE: + //ignore warning + } + }else{//not space +//S_TAG, S_ATTR, S_EQ, S_ATTR_NOQUOT_VALUE +//S_ATTR_SPACE, S_ATTR_END, S_TAG_SPACE, S_TAG_CLOSE + switch(s){ + //case S_TAG:void();break; + //case S_ATTR:void();break; + //case S_ATTR_NOQUOT_VALUE:void();break; + case S_ATTR_SPACE: + var tagName = el.tagName; + if (!NAMESPACE.isHTML(currentNSMap['']) || !attrName.match(/^(?:disabled|checked|selected)$/i)) { + errorHandler.warning('attribute "'+attrName+'" missed value!! "'+attrName+'" instead2!!') + } + addAttribute(attrName, attrName, start); + start = p; + s = S_ATTR; + break; + case S_ATTR_END: + errorHandler.warning('attribute space is required"'+attrName+'"!!') + case S_TAG_SPACE: + s = S_ATTR; + start = p; + break; + case S_EQ: + s = S_ATTR_NOQUOT_VALUE; + start = p; + break; + case S_TAG_CLOSE: + throw new Error("elements closed character '/' and '>' must be connected to"); + } + } + }//end outer switch + //console.log('p++',p) + p++; + } +} +/** + * @return true if has new namespace define + */ +function appendElement(el,domBuilder,currentNSMap){ + var tagName = el.tagName; + var localNSMap = null; + //var currentNSMap = parseStack[parseStack.length-1].currentNSMap; + var i = el.length; + while(i--){ + var a = el[i]; + var qName = a.qName; + var value = a.value; + var nsp = qName.indexOf(':'); + if(nsp>0){ + var prefix = a.prefix = qName.slice(0,nsp); + var localName = qName.slice(nsp+1); + var nsPrefix = prefix === 'xmlns' && localName + }else{ + localName = qName; + prefix = null + nsPrefix = qName === 'xmlns' && '' + } + //can not set prefix,because prefix !== '' + a.localName = localName ; + //prefix == null for no ns prefix attribute + if(nsPrefix !== false){//hack!! + if(localNSMap == null){ + localNSMap = {} + //console.log(currentNSMap,0) + _copy(currentNSMap,currentNSMap={}) + //console.log(currentNSMap,1) + } + currentNSMap[nsPrefix] = localNSMap[nsPrefix] = value; + a.uri = NAMESPACE.XMLNS + domBuilder.startPrefixMapping(nsPrefix, value) + } + } + var i = el.length; + while(i--){ + a = el[i]; + var prefix = a.prefix; + if(prefix){//no prefix attribute has no namespace + if(prefix === 'xml'){ + a.uri = NAMESPACE.XML; + }if(prefix !== 'xmlns'){ + a.uri = currentNSMap[prefix || ''] + + //{console.log('###'+a.qName,domBuilder.locator.systemId+'',currentNSMap,a.uri)} + } + } + } + var nsp = tagName.indexOf(':'); + if(nsp>0){ + prefix = el.prefix = tagName.slice(0,nsp); + localName = el.localName = tagName.slice(nsp+1); + }else{ + prefix = null;//important!! + localName = el.localName = tagName; + } + //no prefix element has default namespace + var ns = el.uri = currentNSMap[prefix || '']; + domBuilder.startElement(ns,localName,tagName,el); + //endPrefixMapping and startPrefixMapping have not any help for dom builder + //localNSMap = null + if(el.closed){ + domBuilder.endElement(ns,localName,tagName); + if(localNSMap){ + for (prefix in localNSMap) { + if (Object.prototype.hasOwnProperty.call(localNSMap, prefix)) { + domBuilder.endPrefixMapping(prefix); + } + } + } + }else{ + el.currentNSMap = currentNSMap; + el.localNSMap = localNSMap; + //parseStack.push(el); + return true; + } +} +function parseHtmlSpecialContent(source,elStartEnd,tagName,entityReplacer,domBuilder){ + if(/^(?:script|textarea)$/i.test(tagName)){ + var elEndStart = source.indexOf('',elStartEnd); + var text = source.substring(elStartEnd+1,elEndStart); + if(/[&<]/.test(text)){ + if(/^script$/i.test(tagName)){ + //if(!/\]\]>/.test(text)){ + //lexHandler.startCDATA(); + domBuilder.characters(text,0,text.length); + //lexHandler.endCDATA(); + return elEndStart; + //} + }//}else{//text area + text = text.replace(/&#?\w+;/g,entityReplacer); + domBuilder.characters(text,0,text.length); + return elEndStart; + //} + + } + } + return elStartEnd+1; +} +function fixSelfClosed(source,elStartEnd,tagName,closeMap){ + //if(tagName in closeMap){ + var pos = closeMap[tagName]; + if(pos == null){ + //console.log(tagName) + pos = source.lastIndexOf('') + if(pos',start+4); + //append comment source.substring(4,end)//", + input: "__KEY__=__DATA__" + }, + post: { + value: "" + "" + "__IDENTIFIER__" + "" + "" + "" + "" + "" + "__RAWDATAOUTPUT__" + "" + "" + "", + input: "" + "__KEY__" + "" + "__DATA__" + "" + "" + } + }, + /** + * Namespace par defaut de la requete POST. + * + * @returns {String} namespace + */ + namespaceByDefault: function namespaceByDefault() { + var ns = ["xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"", "xmlns=\"http://www.opengis.net/wps/1.0.0\"", "xmlns:wfs=\"http://www.opengis.net/wfs\"", "xmlns:wps=\"http://www.opengis.net/wps/1.0.0\"", "xmlns:ows=\"http://www.opengis.net/ows/1.1\"", "xmlns:gml=\"http://www.opengis.net/gml\"", "xmlns:ogc=\"http://www.opengis.net/ogc\"", "xmlns:wcs=\"http://www.opengis.net/wcs/1.1.1\"", "xmlns:xlink=\"http://www.w3.org/1999/xlink\""]; + return ns.join(" "); + }, + /** + * Schemalocation par defaut. + * + * @returns {String} schemaLocation + */ + schemaLocationByDefault: function schemaLocationByDefault() { + return "xsi:schemaLocation=\"http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd\""; + }, + /** + * Construction de la requête. + * + * @example + * // GET out : + * // service=__SERVICE__ + * // &version=__VERSION__ + * // &rawdataoutput=__RAWDATAOUTPUT__ + * // &identifier=__IDENTIFIER__ + * // &request=__REQUEST__ + * // &datainputs="__DATAINPUTS__" + * // avec __DATAINPUTS__ = __KEY__=__DATA__;... + * + * // POST out : + * // + * // + * // __IDENTIFIER__ + * // + * // + * // + * // + * // + * // __RAWDATAOUTPUT__ + * // + * // + * // ", + * // avec __DATAINPUTS__ + * // + * // __KEY__ + * // + * // __DATA__ + * // + * // + * + * @returns {Boolean} validation de la construction de la requete + */ + processRequestString: function processRequestString() { + this.logger.trace("WPS::processRequestString ()"); + var template = ""; + if (this.method === "POST") { + template = this.template.post.value; + } else if (this.method === "GET") { + template = this.template.get.value; + } else { + this.logger.error("No other method supported by the service !"); + return false; + } + template = template.replace(/__SERVICE__/g, this.paramservice); + template = template.replace(/__VERSION__/g, this.paramversion); + template = template.replace(/__RAWDATAOUTPUT__/g, this.paramrawdataoutput); + template = template.replace(/__IDENTIFIER__/g, this.paramidentifier); + template = template.replace(/__REQUEST__/g, this.paramrequest); + + // ajout + + if (this.method === "POST") { + template = template.replace(/__NAMESPACE__/g, this.namespaceByDefault); + template = template.replace(/__SCHEMALOCATION__/g, this.schemaLocationByDefault); + } + + // ajout des datainputs + template = template.replace(//g, this.__addDataInputs()); + if (!template) { + this.logger.warn("traduction tmpl : empty request !?"); + return false; + } + this.requestString = template; + this.logger.trace("traduction tmpl", template); + return true; + }, + /** + * Ajout des données + * + * @returns {String} Données concaténées dans une chaine + */ + __addDataInputs: function __addDataInputs() { + this.logger.trace("WPS::__addDataInputs ()"); + + // c'est un peu grossier... + var tmpl = this.method === "GET" ? this.template.get.input : this.template.post.input; + var sep = this.method === "GET" ? ";" : ""; + var result = ""; + var that = this; + var map = this.DataObject.getData(); + for (var i = 0; i < map.length; i++) { + // FIXME closure ? + (function (j) { + if (sep) { + sep = j === map.length - 1 ? "" : ";"; + } + result = result.concat(that.__addDataInput(tmpl, map[j].k, map[j].v), sep); + })(i); + } + return result; + }, + /** + * Ajout d'une donnée. + * + * @param {String} tmpl - template + * @param {String} key - clef + * @param {String} data - valeur + * @returns {String} chaine avec les substitutions clef/valeur + */ + __addDataInput: function __addDataInput(tmpl, key, data) { + var tmp = tmpl; + tmp = tmp.replace(/__KEY__/g, key); + tmp = tmp.replace(/__DATA__/g, data); + return tmp; + }, + /** + * Definir le mode de requête + * + * @param {String} method - GET|POST + */ + setMethod: function setMethod(method) { + if (method === "GET" || method === "POST") { + this.method = method; + } else { + this.logger.warn("support only GET and POST method !"); + } + }, + /** + * Retourne le mode de requete (GET|POST). + * + * @returns {AltiRequest.options.mode|String} methode (GET|POST) + */ + getMethod: function getMethod() { + return this.method; + } +}; +/* harmony default export */ __webpack_exports__["default"] = (WPS); + +/***/ }), +/* 34 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22); +/* harmony import */ var _Formats_XML__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35); +/* harmony import */ var _Formats_AltiResponseReader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36); +/* harmony import */ var _model_AltiResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(37); +/* harmony import */ var _model_Elevation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38); +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +/** + * Factory pour générer une reponse JSON à partir d'un XML ou d'un JSON + * (Factory) + * + * @module AltiResponseFactory + * @private + * @alias Gp.Services.Alti.Response.AltiResponseFactory + */ + + + + + + + +var AltiResponseFactory = { + /** + * interface unique + * + * @method build + * @static + * @param {Object} options - options definies dans le composant Alti + * + * @example + * var options = { + * response : + * outputFormat : + * rawResponse : + * scope : + * onSuccess : + * onError : + * }; + * + */ + build: function build(options) { + // logger + var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("AltiResponseFactory"); + logger.trace(["AltiResponseFactory::build()"]); + var data = null; + if (options.response) { + if (options.rawResponse) { + logger.trace("analyze response : raw"); + data = options.response; + } else { + switch (options.outputFormat) { + case "xml": + logger.trace("analyze response : xml"); + try { + var p = new _Formats_XML__WEBPACK_IMPORTED_MODULE_3__["default"]({ + reader: _Formats_AltiResponseReader__WEBPACK_IMPORTED_MODULE_4__["default"] + }); + if (typeof options.response === "string") { + p.setXMLString(options.response); + } else { + p.setXMLDoc(options.response); + } + data = p.parse(); + if (!data) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EXCEPTION_2")); + } + } catch (e) { + var message = e.message; + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"]({ + message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EXCEPTION", message), + status: 200, + type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"].TYPE_SRVERR + })); + return; + } + break; + case "json": + logger.trace("analyze response : json"); + logger.trace("analyze response : ", _typeof(options.response)); + var JSONResponse = null; + if (typeof options.response === "string") { + JSONResponse = JSON.parse(options.response); + } else { + JSONResponse = options.response; + } + + // le service renvoie t il une erreur ? + if (JSONResponse && JSONResponse.error) { + // ex. {"error": {"code": "BAD_PARAMETER","description": "The values () cannot be parsed as a valid longitude (double value such as -180 < lat < 180)."}} + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"]({ + message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EXCEPTION", JSONResponse.error.description), + status: 200, + type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"].TYPE_SRVERR + })); + return; + } + + // analyse de la reponse + if (JSONResponse) { + var elevations = JSONResponse.elevations; + var altiResponse = new _model_AltiResponse__WEBPACK_IMPORTED_MODULE_5__["default"](); + var elevation; + if (Array.isArray(elevations) && elevations.length) { + for (var i = 0; i < elevations.length; i++) { + elevation = new _model_Elevation__WEBPACK_IMPORTED_MODULE_6__["default"](); + if (_typeof(elevations[i]) === "object") { + // elevations[i] est un objet elevation + if (elevations[i].lon) { + elevation.lon = elevations[i].lon; + } + if (elevations[i].lat) { + elevation.lat = elevations[i].lat; + } + if (elevations[i].z) { + elevation.z = elevations[i].z; + } + if (elevations[i].acc) { + elevation.acc = elevations[i].acc; + } + if (elevations[i].measures) { + elevation.measures = elevations[i].measures; + } + } else if (typeof elevations[i] === "number") { + // elevations[i] est un nombre, dans le cas de zonly=true notamment + elevation.z = elevations[i]; + } + if (Array.isArray(altiResponse.elevations)) { + altiResponse.elevations.push(elevation); + } + } + } + data = altiResponse; + } + if (!data) { + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"]({ + message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_ANALYSE_2"), + type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"].TYPE_UNKERR, + status: -1 + })); + return; + } + break; + default: + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"]({ + message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_FORMAT_2"), + type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"].TYPE_UNKERR, + status: -1 + })); + return; + } + + // Si la réponse contenait une exception renvoyée par le service + if (data.exceptionReport) { + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"]({ + message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EXCEPTION", data.exceptionReport), + type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"].TYPE_SRVERR, + status: 200 + })); + return; + } else if (data.error) { + var errorMess = data.error.description; + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"]({ + message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EXCEPTION", errorMess), + type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"].TYPE_SRVERR, + status: 200 + })); + return; + } + } + } else { + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EMPTY"))); + return; + } + options.onSuccess.call(options.scope, data); + } +}; +/* harmony default export */ __webpack_exports__["default"] = (AltiResponseFactory); + +/***/ }), +/* 35 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* global require */ + + +// import __xmldom from "xmldom"; + +/** + * @classdesc + * + * Classe permettant d'écrire ou de lire du XML, sous forme de document DOM, + * éventuellement selon des clés de lecture (readers) ou d'écriture (writers) spécifiques. + * + * @constructor + * @alias Gp.Formats.XML + * + * @param {Object} [options] - options du format XML + * + * @param {Object} [options.reader] - Instance d'un Reader de service (AltiResponseReader, GeocodeRequestReader, etc.) + * utile pour interpréter le XML lorsque sa structure est connue. + * Ce reader doit comporter au moins une fonction statique read (root) permettant d'initialiser la lecture. + * + * @param {Object} [options.writers] - writers + * + * @param {String} [options.xmlString] - chaîne de caractère contenant du XML à interpréter. + * + * @private + */ +function XML(options) { + if (!(this instanceof XML)) { + throw new TypeError("XML constructor cannot be called as a function."); + } + + // FIXME : notion de singleton + + this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger(); + this.logger.trace("[Constructeur XML ()]"); + + /** + * Chaîne de caractères contenant le texte XML + * @type {String} + */ + this.xmlString = null; + + /** + * DOM Element correspondant à la structure du XML. + * @type {DOMElement} + */ + this.xmlDoc = null; + + /** + * Objet contenant des fonctions de lecture des différentes balises XML. + * @type {Object} + */ + this.reader = null; + + // traitement des paramètres d'options s'il y en a + if (options) { + if (options.xmlString && typeof options.xmlString === "string") { + this.xmlString = options.xmlString; + // Si une chaine de caractère a été passée en entrée : on la transforme aussi en XML document + this.xmlDoc = __getXMLDOC(options.xmlString); + } + if (options.reader) { + this.setReader(options.reader); + } + } +} +XML.prototype = { + /** + * @lends module:XML + */ + + /* + * Constructeur (alias) + */ + constructor: XML, + /** + * Méthode permettant de récupérer la chaîne de caractères associée au format XML + * + * @returns {String} xmlString - la chaîne de caractères correspondant au format XML + */ + getXMLString: function getXMLString() { + return this.xmlString; + }, + /** + * Méthode permettant d'attribuer une chaîne de caractères au format XML (attribut xmlString). + * La méthode va aussi transformer cette chaîne de caractères en document XML, + * afin de remplir l'attribut xmlDoc. + * + * @param {String} xmlString - la chaîne de caractères correspondant au format XML + */ + setXMLString: function setXMLString(xmlString) { + if (xmlString && typeof xmlString === "string") { + this.xmlString = xmlString; + this.xmlDoc = __getXMLDOC(xmlString); + } + }, + /** + * Méthode permettant de récupérer les readers associés au format XML, s'ils ont été définis + * + * @return {Object} readers - les readers associés au format XML, s'ils existent, + * sous forme d'une collection de fonctions + */ + getReader: function getReader() { + return this.reader; + }, + /** + * Méthode permettant d'attribuer des readers, sous la forme d'un objet de fonctions (node, data), + * lorsqu'ils n'ont pas été définis lors de l'instanciation par exemple (new XML (options)). + * + * @param {Object} reader - Instance d'un Reader de service (AltiResponseReader, GeocodeRequestReader, etc.) + * utile pour interpréter le XML lorsque sa structure est connue. + * Ce reader doit comporter au moins une fonction statique read (root) permettant d'initialiser la lecture. + */ + setReader: function setReader(reader) { + if (reader && reader.read && typeof reader.read === "function") { + this.reader = reader; + } + }, + /** + * Méthode permettant de récupérer le document XML associé au format, s'il existe. + * + * @return {DOMElement} xmlDoc - le document XML (DOM document node) s'il existe + */ + getXMLDoc: function getXMLDoc() { + return this.xmlDoc; + }, + /** + * Setter + */ + setXMLDoc: function setXMLDoc(doc) { + this.xmlDoc = doc; + }, + /** + * Méthode initialisant la lecture du XML, à partir d'un XML Document : + * création d'un objet JavaScript contenant les informations du XML, + * sauf dans le cas où il n'existe pas de XML Document à interpréter (retourne un objet vide). + * + * @return {Object} [parserOutput] - un objet JavaScript contenant les informations du XML : + * - soit toutes les informations si aucun reader n'a été spécifié à la création du format + * - soit les informations spécifiées dans le reader. + */ + parse: function parse() { + // build xml document from xmlString + if (!this.xmlDoc && this.xmlString) { + this.xmlDoc = __getXMLDOC(this.xmlString); + } + if (this.xmlDoc) { + var root = __getRootNode(this.xmlDoc); + if (root) { + var parserOutput; + // call reader if exists + if (this.reader && this.reader.read) { + parserOutput = this.reader.read(root); + } else { + parserOutput = {}; + parserOutput[root.nodeName] = __readDefault(root); + } + return parserOutput; + } else { + return {}; + } + } + } +}; + +/** + * Méthode de la classe (privée) permettant de créer un XML Document à partir d'une chaîne de caractères XML, + * en utilisant DOMParser () lorsque c'est possible. + * For more information, see: https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#the-domparser-interface + * + * @private + * @memberof XML + * @method __getXMLDOC + * @param {String} xmlString - xml string to be converted into DOM element + * @return {DOMElement} - the corresponding XML Document + */ +function __getXMLDOC(xmlString) { + if (typeof window === "undefined") { + // env. nodejs + var DOMParser = __webpack_require__(15).DOMParser; // __xmldom.DOMParser; + return new DOMParser().parseFromString(xmlString, "text/xml"); + } else { + // env. browser + + var parser; + var xmlDoc; + var errorMsg = "Erreur lors du parsing de la réponse du service : XML non conforme"; + if (window.ActiveXObject) { + // Internet Explorer < 9 + xmlDoc = new window.ActiveXObject("Microsoft.XMLDOM"); + xmlDoc.async = false; + xmlDoc.loadXML(xmlString); + var parseError = xmlDoc.parseError; + if (parseError.errorCode) { + if (parseError.line && parseError.linepos) { + errorMsg += "( ligne " + parseError.line + ", colonne " + parseError.linepos; + } + if (parseError.reason) { + errorMsg += ": " + parseError.reason + ")"; + } + throw new Error(errorMsg); + } + return xmlDoc; + } else if (window.DOMParser) { + // les autres (Chrome, Mozilla, IE >= 9) + parser = new window.DOMParser(); + try { + xmlDoc = parser.parseFromString(xmlString, "text/xml"); + } catch (e) { + // Internet Explorer browser raises exception if xmlString is not valid XML + if (e.message === "SyntaxError") { + throw new Error(errorMsg); + } else { + throw new Error("Erreur lors du parsing de la réponse du service : " + e.message); + } + } + // look for parsing error in case no exception was raised + if (xmlDoc.getElementsByTagName("parsererror").length > 0) { + var parsererror = xmlDoc.getElementsByTagName("parsererror"); + for (var i = 0; i < parsererror.length; i++) { + var content = parsererror[i].innerHTML; + // except in case parsererror is just because of huge xml, but parsing is done. + if (content.indexOf("Huge input lookup") === -1) { + errorMsg += "(" + content + ")"; + throw new Error(errorMsg); + } + } + } else if (!xmlDoc.documentElement) { + // may happen in chrome browser + throw new Error(errorMsg); + } + return xmlDoc; + } else { + // FIXME + throw new Error("Incompatible DOM Parser pour ce navigateur !"); + } + } +} + +/** + * Méthode de la classe (privée) permettant de récupérer le noeud racine du document, + * à partir d'un document node (nodeType=9), puis lecture de ce noeud (readNode) + * + * @private + * @memberof XML + * @method __getRootNode + * @param {DOMElement} [xmlDoc] - a Document Node + * @return {DOMElement} root - the document root node + */ +function __getRootNode(xmlDoc) { + var root; + if (xmlDoc.nodeType === 9) { + // INFO : nodeType 9 represents the entire document (the root-node of the DOM tree) + root = xmlDoc.documentElement; + } else if (xmlDoc.nodeType === 1) { + root = xmlDoc; + } + return root; +} + +/** + * Méthode de la classe (privée) permettant de lire automatiquement un noeud XML, + * lorsqu'aucun reader spécifique n'a été spécifié (parser brut) + * + * @private + * @memberof XML + * @method readDefault + * @param {DOMElement} node - a DOM element node + * @example final data object looks like : + * data = { + * attributeName: attributeValue, + * childName: { + * attributeName: attributeValue, + * attributeName: attributeValue, + * childName: { + * "textContent": textContent + * }, + * childName: { + * childName: { + * attributeName:attributeValue + * } + * } + * } + * } + */ +function __readDefault(node) { + var data = {}; + + // if element node has attributes, set their values to data + if (node.attributes.length > 0) { + var dataAttributes = __getAttributes(node); + data["attributes"] = dataAttributes; + } + + // if element node has childNodes, read them and set them to data + if (node.hasChildNodes()) { + var childData = {}; + var child; + var children = node.childNodes; + for (var i = 0; i < children.length; i++) { + child = children[i]; + if (child.nodeType === 3) { + // TEXT_NODE + data["textContent"] = child.nodeValue; + } else if (child.nodeType === 1) { + childData = __readDefault(child); + if (!data[child.nodeName]) { + // store childData in an object + data[child.nodeName] = childData; + } else { + // in case several childNodes has the same name : store them in an array. + // if data[nodeName] already exists but is not an array + if (!Array.isArray(data[child.nodeName])) { + var old = data[child.nodeName]; + data[child.nodeName] = []; + data[child.nodeName].push(old); + } + data[child.nodeName].push(childData); + } + } + // TODO : manage other node types (4=CDATA, etc) + } + } + return data; +} + +/** + * Méthode de la classe (privée) permettant de récupérer les attributs d'un noeud élément + * + * @private + * @memberof XML + * @method __getAttributes + * @param {DOMElement} node - noeud contenant l'attribut recherché + * @return {Object} nodeAttributes - objet contenant les noms et valeurs des différents attributs + */ +function __getAttributes(node) { + if (node.attributes.length > 0) { + var nodeAttributes = {}; + var attributes = node.attributes; + for (var i = 0; i < attributes.length; i++) { + var attribute = attributes[i]; + nodeAttributes[attribute.nodeName] = attribute.nodeValue; + } + return nodeAttributes; + } +} +/* harmony default export */ __webpack_exports__["default"] = (XML); + +/***/ }), +/* 36 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Response_model_AltiResponse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(37); +/* harmony import */ var _Response_model_Elevation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38); +/* harmony import */ var _Response_model_Measure__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39); +/** + * Fonction retournant un objet contenant des clés de lecture (readers) + * qui permettent de parser des réponses XML du service Altimétrique du Géoportail + * (calcul altimétrique simple ou profil altimétrique d'une courbe), + * lorsque le paramètre output = xml, + * afin de récupérer les élévations retournées. + * + * @module AltiResponseReader + * @alias Gp.Services.Alti.Formats.AltiResponseReader + * @private + */ + +// import Logger from "../../../Utils/LoggerByDefault"; + + + + +/** + * + * Objet AltiResponseReader + * + * @member {Object} AltiResponseReader + * + * @property {Object} AltiResponseReader.READERS - Objet contenant des fonctions de lecture, appelées "readers" + * dont chaque clé correspond au nom d'un tag du XML que l'on souhaite lire + * et la valeur associée est une fonction (node, data) + * où node est un noeud du document DOM + * et data est un objet où l'on stocke les informations lues dans le XML. + * + * @property {Method} AltiResponseReader.READERS.elevations - Lecture d'un noeud "elevations" de la réponse XML + * du service alti, correspondant logiquement à la racine du document + * (contient un ou plusieurs childNodes correspondant chacun à une élévation retournée) + * + * @property {Method} AltiResponseReader.READERS.elevation - Lecture d'un noeud "elevation" de la réponse xml du service alti. + * (contient un ou 4 childNode (s) correspondant à l'altitude (z) et éventuellement lat, lon, et acc) + * + * @property {Method} AltiResponseReader.READERS.lat - Lecture d'un noeud "lat" de la réponse xml du service alti. + * (contient une valeur de latitude, qui est un flottant) + * + * @property {Method} AltiResponseReader.READERS.lon - Lecture d'un noeud "lon" de la réponse xml du service alti. + * (contient une valeur de longitude, qui est un flottant) + * + * @property {Method} AltiResponseReader.READERS.z - Lecture d'un noeud "z" de la réponse xml du service alti. + * (contient une valeur d'altitude, qui est un flottant) + * + * @property {Method} AltiResponseReader.READERS.acc - Lecture d'un noeud "acc" de la réponse xml du service alti. + * (contient une valeur de précision, qui est un flottant) + * + * @property {Method} AltiResponseReader.READERS.measures - Lecture d'un noeud "measures" de la réponse xml du service alti. + * (contient une valeur de précision, qui est un flottant) + * + * @property {Method} AltiResponseReader.READERS.source_name - Lecture d'un noeud "source_name" de la réponse xml du service alti. + * (pour remplir l'éventuel objet measure) + * + * @property {Method} AltiResponseReader.READERS.source_mesure - Lecture d'un noeud "source_mesure" de la réponse xml du service alti. + * (pour remplir l'éventuel objet measure) + * + * @property {Method} AltiResponseReader.READERS.exceptionreport - Lecture d'un noeud "ExceptionReport" de la réponse xml du service alti. + * + * @property {Method} AltiResponseReader.READERS.exception - Lecture d'un noeud "Exception" de la réponse xml du service alti. + * + * @property {Method} AltiResponseReader.read - Méthode permettant de lancer la lecture d'une réponse XML du service altimétrique, + * à l'aide des readers de la classe. + * + */ +var AltiResponseReader = {}; +AltiResponseReader.READERS = { + /** + * Lecture d'un noeud "elevations" de la réponse XML du service alti, correspondant logiquement à la racine du document + * (contient un ou plusieurs childNodes correspondant chacun à une élévation retournée) + * + * @param {DOMElement} root - racine de la réponse XML + * @static + * @memberof AltiResponseReader + * @returns {Object} Retourne un objet de type AltiResponse + */ + elevations: function elevations(root) { + // INFO : on passe en paramètre l'objet en entrée elevations, vide, à remplir. + var altiResponse = new _Response_model_AltiResponse__WEBPACK_IMPORTED_MODULE_0__["default"](); + if (root.hasChildNodes()) { + var children = root.childNodes; + var child; + var elevation; + for (var i = 0; i < children.length; i++) { + child = children[i]; + if (AltiResponseReader.READERS[child.nodeName]) { + elevation = AltiResponseReader.READERS[child.nodeName](child); + altiResponse.elevations.push(elevation); + } + } + } + return altiResponse; + }, + /** + * Lecture d'un noeud "elevation" de la réponse xml du service alti. + * (contient un ou 5 childNode (s) correspondant à l'altitude (z) et éventuellement lat, lon, acc et measures) + * + * @param {DOMElement} node - noeud elevation à lire pour récupérer les informations de l'élévation retournée (z [, lon, lat, acc, measures]) + * @return {Array} elevationResponse - format de la réponse en sortie, instance de AltiResponse + * @static + * @memberof AltiResponseReader + */ + elevation: function elevation(node) { + var elevation = new _Response_model_Elevation__WEBPACK_IMPORTED_MODULE_1__["default"](); + if (node.hasChildNodes()) { + var children = node.childNodes; + var child; + for (var i = 0; i < children.length; i++) { + child = children[i]; + if (AltiResponseReader.READERS[child.nodeName]) { + // INFO : on passe en paramètre l'objet en entrée elevation, vide, à remplir. + AltiResponseReader.READERS[child.nodeName](child, elevation); + } + } + } + return elevation; + }, + /** + * Lecture d'un noeud "lat" de la réponse xml du service alti. + * (contient une valeur de latitude, qui est un flottant) + * + * @param {DOMElement} node - noeud à lire pour récupérer la latitude + * @param {Object} elevation - objet dans lequel stocker la latitude retournée + * @static + * @memberof AltiResponseReader + */ + lat: function lat(node, elevation) { + var textNode = node.firstChild; + if (textNode && textNode.nodeType === 3) { + // 3 === node.TEXT_NODE + elevation.lat = parseFloat(textNode.nodeValue); + } else { + throw new Error("Erreur dans la lecture de la réponse du service : latitude attendue mais absente"); + } + }, + /** + * Lecture d'un noeud "lon" de la réponse xml du service alti. + * (contient une valeur de longitude, qui est un flottant) + * + * @param {DOMElement} node - noeud à lire pour récupérer la longitude + * @param {Object} elevation - objet dans lequel stocker la longitude retournée + * @static + * @memberof AltiResponseReader + */ + lon: function lon(node, elevation) { + var textNode = node.firstChild; + if (textNode && textNode.nodeType === 3) { + // 3 === node.TEXT_NODE + elevation.lon = parseFloat(textNode.nodeValue); + } else { + throw new Error("Erreur dans la lecture de la réponse du service : longitude attendue mais absente"); + } + }, + /** + * Lecture d'un noeud "z" de la réponse xml du service alti. + * (contient une valeur d'altitude, qui est un flottant) + * + * @param {DOMElement} node - noeud à lire pour récupérer l'altitude + * @param {Object} elevationObject - objet dans lequel stocker l'altitude retournée : elevation ou measure + * @static + * @memberof AltiResponseReader + */ + z: function z(node, elevationObject) { + var textNode = node.firstChild; + if (textNode && textNode.nodeType === 3) { + // 3 === node.TEXT_NODE + if (elevationObject) { + elevationObject.z = parseFloat(textNode.nodeValue); + } else { + elevationObject = new _Response_model_Elevation__WEBPACK_IMPORTED_MODULE_1__["default"](); + elevationObject.z = parseFloat(textNode.nodeValue); + return elevationObject; + } + } else { + throw new Error("Erreur dans la lecture de la réponse du service : altitude attendue mais absente"); + } + }, + /** + * Lecture d'un noeud "acc" de la réponse xml du service alti. + * (contient une valeur de précision, qui est un flottant) + * + * @param {DOMElement} node - noeud à lire pour récupérer la précision + * @param {Object} elevationObject - objet dans lequel stocker la précision retournée : elevation ou measure + * @static + * @memberof AltiResponseReader + */ + acc: function acc(node, elevationObject) { + var textNode = node.firstChild; + if (textNode && textNode.nodeType === 3) { + // 3 === node.TEXT_NODE + elevationObject.acc = parseFloat(textNode.nodeValue); + } else { + throw new Error("Erreur dans la lecture de la réponse du service : précision (acc) attendue mais absente"); + } + }, + /** + * Lecture d'un noeud "source_name" de la réponse xml du service alti. + * (contient le nom de la source, qui est un string) + * + * @param {DOMElement} node - noeud à lire pour récupérer la précision + * @param {Object} measure - objet dans lequel stocker le nom de la source retourné + * @static + * @memberof AltiResponseReader + */ + source_name: function source_name(node, measure) { + var textNode = node.firstChild; + if (textNode && textNode.nodeType === 3) { + // 3 === node.TEXT_NODE + measure.source_name = textNode.nodeValue; + } else { + throw new Error("Erreur dans la lecture de la réponse du service : source_name attendue mais absente"); + } + }, + /** + * Lecture d'un noeud "source_measure" de la réponse xml du service alti. + * (contient le nom de la mesure, qui est un string) + * + * @param {DOMElement} node - noeud à lire pour récupérer la précision + * @param {Object} measure - objet dans lequel stocker le nom de la source retourné + * @static + * @memberof AltiResponseReader + */ + source_measure: function source_measure(node, measure) { + var textNode = node.firstChild; + if (textNode && textNode.nodeType === 3) { + // 3 === node.TEXT_NODE + measure.source_measure = textNode.nodeValue; + } else { + throw new Error("Erreur dans la lecture de la réponse du service : source_measure attendue mais absente"); + } + }, + /** + * Lecture d'un noeud "measures" et de ses enfants "measure" de la réponse xml du service alti. + * (contient une valeur de précision, qui est un flottant) + * + * @param {DOMElement} node - noeud à lire pour récupérer la précision + * @param {Object} elevation - objet dans lequel stocker la précision retournée + * @static + * @memberof AltiResponseReader + */ + measures: function measures(node, elevation) { + elevation.measures = []; + var measure; + if (node.hasChildNodes()) { + var children = node.childNodes; + var measureNode; + var measureChildren; + for (var i = 0; i < children.length; i++) { + measure = new _Response_model_Measure__WEBPACK_IMPORTED_MODULE_2__["default"](); + measureNode = children[i]; + measureChildren = measureNode.childNodes; + for (var j = 0; j < measureChildren.length; j++) { + if (AltiResponseReader.READERS[measureChildren[j].nodeName]) { + // INFO : on passe en paramètre l'objet en entrée elevation, vide, à remplir. + AltiResponseReader.READERS[measureChildren[j].nodeName](measureChildren[j], measure); + } else { + throw new Error("Erreur dans la lecture de la réponse du service : measures attendues mais absentes"); + } + } + elevation.measures.push(measure); + } + } + }, + /** + * Lecture d'un noeud "ExceptionReport" de la réponse xml du service alti. + * + * @param {DOMElement} node - noeud à lire pour récupérer l'exception + * @return {Object} exceptionReport - objet contenant l'exception + * @static + * @memberof AltiResponseReader + */ + exceptionreport: function exceptionreport(node) { + var response = {}; + if (node.hasChildNodes()) { + var children = node.childNodes; + var child; + for (var i = 0; i < children.length; i++) { + child = children[i]; + if (child.nodeName === "Exception") { + response.exceptionReport = AltiResponseReader.READERS.exception(child); + } + } + } + return response; + }, + /** + * Lecture d'un noeud "Exception" de la réponse xml du service alti. + * + * @param {DOMElement} node - noeud à lire pour récupérer l'exception + * @return {Object} exceptionReport - objet contenant l'exception, avec deux attributs : + * {String} exceptionReport.exceptionCode - qui contient l'identifiant du code de l'exception + * {String} exceptionReport.exception - qui contient le message de l'exception + * @static + * @memberof AltiResponseReader + */ + exception: function exception(node) { + var exceptionReport = {}; + + // get exception code + var exceptionCode = node.getAttribute("exceptionCode"); + if (exceptionCode) { + exceptionReport.exceptionCode = exceptionCode; + } + + // get exception message + var textNode = node.firstChild; + if (textNode && textNode.nodeType === 3) { + // 3 === node.TEXT_NODE + exceptionReport.exception = textNode.nodeValue; + } + return exceptionReport; + }, + /** + * Lecture d'un noeud "Error" de la réponse xml du service alti. + * + * @param {DOMElement} node - noeud à lire pour récupérer l'exception + * @return {Object} error - objet contenant l'exception + * @static + */ + error: function error(node) { + var response = { + error: {} + }; + // get error code and description + if (node.hasChildNodes()) { + var children = node.childNodes; + var child; + for (var i = 0; i < children.length; i++) { + child = children[i]; + var textNode; + // get error code + if (child.nodeType === 1 && child.nodeName === "code") { + // 1 === node.ELEMENT_NODE + textNode = child.firstChild; + if (textNode && textNode.nodeType === 3) { + // 3 === node.TEXT_NODE + response.error.code = textNode.nodeValue; + } + } + // get error description + if (child.nodeType === 1 && child.nodeName === "description") { + // 1 === node.ELEMENT_NODE + textNode = child.firstChild; + if (textNode && textNode.nodeType === 3) { + // 3 === node.TEXT_NODE + response.error.description = textNode.nodeValue; + } + } + } + } + return response; + } +}; + +/** + * Méthode permettant de lancer la lecture d'une réponse XML du service altimétrique, + * à l'aide des readers de la classe. + * + * @method AltiResponseReader.read + * @param {DOMElement} root - racine de la réponse XML à lire + * @static + * @memberof AltiResponseReader + */ +AltiResponseReader.read = function (root) { + if (root.nodeName === "elevations") { + var altiResponse = AltiResponseReader.READERS.elevations(root); + return altiResponse; + } else if (root.nodeName === "ExceptionReport") { + var exceptionReport = AltiResponseReader.READERS.exceptionreport(root); + return exceptionReport; + } else if (root.nodeName === "error") { + var error = AltiResponseReader.READERS.error(root); + return error; + } else { + throw new Error("Erreur lors de la lecture de la réponse : elle n'est pas au format attendu."); + } +}; +/* harmony default export */ __webpack_exports__["default"] = (AltiResponseReader); + +/***/ }), +/* 37 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/** + * Response object for {@link module:Services~getAltitude Gp.Services.getAltitude ()} invocation when successful. Received as the argument of onSuccess callback function. + * + * @property {Array.} elevations - Elevations array. + * + * @namespace + * @alias Gp.Services.AltiResponse + */ +function AltiResponse() { + if (!(this instanceof AltiResponse)) { + throw new TypeError("AltiResponse constructor cannot be called as a function."); + } + this.elevations = []; +} +AltiResponse.prototype = { + constructor: AltiResponse +}; +/* harmony default export */ __webpack_exports__["default"] = (AltiResponse); + +/***/ }), +/* 38 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/** + * Single elevation object returned by underlying web service. Contains at least, one elevation (z). May also contain point coordinates and elevation accuracy if "zonly" parameter wasn't set to true. + * + * @property {Float} lat - Point latitude. (only if zonly=false) + * @property {Float} lon - Point longitude. (only if zonly=false) + * @property {Float} z - Point elevation. + * @property {Float} acc - Accuracy of elevation for this point. (only if zonly=false) + * + * @namespace + * @alias Gp.Services.Alti.Elevation + */ +function Elevation() { + if (!(this instanceof Elevation)) { + throw new TypeError("Elevation constructor cannot be called as a function."); + } + this.z = null; +} +Elevation.prototype = { + constructor: Elevation +}; +/* harmony default export */ __webpack_exports__["default"] = (Elevation); + +/***/ }), +/* 39 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/** + * Single measure object returned by underlying web service if measures = true and zonly = false + * + * @property {String} source_name - Name of the source + * @property {String} source_measure - Name of the measure + * @property {Float} z - Point elevation. + * @property {Float} acc - Accuracy of elevation for this point. (only if zonly=false) + * + * @namespace + * @alias Gp.Services.Alti.Measure + */ +function Measure() { + if (!(this instanceof Measure)) { + throw new TypeError("Measure constructor cannot be called as a function."); + } + this.source_name = null; + this.source_measure = null; + this.z = null; + this.acc = null; +} +Measure.prototype = { + constructor: Measure +}; +/* harmony default export */ __webpack_exports__["default"] = (Measure); + +/***/ }), +/* 40 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22); +/* harmony import */ var _CommonService__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7); +/* harmony import */ var _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24); +/* harmony import */ var _Request_GeocodeRequestFactory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41); +/* harmony import */ var _Response_GeocodeResponseFactory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(44); +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } + + + + + + + + +/** + * @classdesc + * Appel du service de géocodage direct du Géoportail : + * envoi de la requête construite selon les paramètres en options, + * éventuellement parsing et analyse de la réponse, + * retour d'une réponse en paramètre de la fonction onSuccess. + * + * + * @constructor + * @extends {Gp.Services.CommonService} + * @alias Gp.Services.Geocode + * + * @param {Object} options - options spécifiques au service (+ les options heritées) + * + * @param {String|Object} options.query - Nom de l'adresse, du toponyme, de l'unité administrative ou de la parcelle cadastrale recherchée. + * + * @param {Object} [options.filters] - Les propriétés possibles de cet objet sont décrites ci-après. + * @param {String} [options.filters.[prop]] - Critère supplémentaire pour filtrer la recherche sous la forme + * d'un couple clé/valeur à définir selon les possibilités du serveur ajouté à la requête. + * Le service de géocodage du Géoportail permet de filtrer les adresses postales avec les propriétés : + * "postalCode", "inseeCode", "city". + * Il permet également de filtrer les toponymes avec les propriétés : + * "postalCode", "inseeCode", "type". + * Enfin, il permet de filtrer les parcelles cadastrales avec les propriétés : + * "codeDepartement", "codeCommune", "nomCommune", "codeCommuneAbs", "codeArrondissement", "section", "numero", "feuille". + * + * @param {String} [options.index = "StreetAddress"] - Type de l'objet recherché. + * Le service de géocodage du Géoportail permet de rechercher des 'PositionOfInterest' pour des toponymes, des 'StreetAddress' + * pour des adresses postales ou des 'CadastralParcel' pour des parcelles cadastrales. + * L'index 'location' regroupe les indexes 'StreetAddress' et 'PositionOfInterest'. + * D'autres types pourront être rajoutés selon l'évolution du service. + * Par défaut, index = 'StreetAddress'. + * + * @param {Object} options.position - Position du point de référence pour le calcul de proximité exprimée dans le système de référence spécifié par le srs. + * @param {Float} options.position.lon - Longitude du point de référence pour le calcul de proximité. + * @param {Float} options.position.lat - Latitude du point de référence pour le calcul de proximité. + * + * @param {Number} [options.maximumResponses] - Nombre de réponses maximal que l'on souhaite recevoir. + * Pas de valeur par défaut. + * Si le serveur consulté est celui du Géoportail, la valeur par défaut sera donc celle du service : 20. + * + * @param {Boolean} [options.returnTrueGeometry = false] - Booléen indiquant si l'on souhaite récupérer la géométrie vraie des objects géolocalisés. + * false par défaut. + * + * + * @example + * var options = { + * apiKey : null, + * serverUrl : 'http://localhost/service/', + * proxyURL : null, + * timeOut : 10000, // ms + * rawResponse : false, // true|false + * scope : null, // this + * onSuccess : function (response) {}, + * onFailure : function (error) {}, + * // spécifique au service + * position : {lon:, lat:}, + * index : 'StreetAddress', + * query : '10 rue du pont Machin-ville' + * (...) + * }; + */ +function Geocode(options_) { + if (!(this instanceof Geocode)) { + throw new TypeError(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("CLASS_CONSTRUCTOR", "Geocode")); + } + + /** + * Nom de la classe (heritage) + * FIXME instance ou classe ? + */ + this.CLASSNAME = "Geocode"; + this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("Gp.Services.Geocode"); + this.logger.trace("[Constructeur Geocode (options)]"); + var options = this.patchOptionConvertor(options_); + if (!options.serverUrl) { + options.serverUrl = _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__["default"].Geocode.newUrl(); + } + + // appel du constructeur par heritage + _CommonService__WEBPACK_IMPORTED_MODULE_3__["default"].apply(this, [options]); + if (!options.hasOwnProperty("query")) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_MISSING", "query")); + } + + // ajout des options spécifiques au service + this.options.query = options.query; + + // on definit l'index par defaut + if (!options.index) { + this.options.index = options.index = "StreetAddress"; + } + if (options.filters) { + var filter = Object.keys(options.filters); + for (var i = 0; i < filter.length; i++) { + var key = filter[i]; + // on supprime les filtres vides + if (typeof options.filters[key] === "undefined" || _typeof(options.filters[key]) === "object" && Object.keys(options.filters[key]).length === 0 || typeof options.filters[key] === "string" && options.filters[key].length === 0 || Array.isArray(options.filters[key]) && options.filters[key].length === 0) { + delete this.options.filters[key]; + } + } + } + this.options.index = options.index || "StreetAddress"; + this.options.maximumResponses = options.maximumResponses || 20; +} + +/** + * @lends module:Geocode# + */ +Geocode.prototype = Object.create(_CommonService__WEBPACK_IMPORTED_MODULE_3__["default"].prototype, { + // todo + // getter/setter +}); + +/* + * Constructeur (alias) + */ +Geocode.prototype.constructor = Geocode; + +/** + * Patch pour la convertion des options vers le nouveau formalisme. + * + * @param {Object} options_ - options du service + * @return {Object} - options + */ +Geocode.prototype.patchOptionConvertor = function (options_) { + var options = options_; + if (options.hasOwnProperty("location")) { + this.logger.warn("The parameter 'location' is deprecated"); + if (!options.query) { + options.query = options.location; + } + delete options.location; + } + if (options.filterOptions) { + this.logger.warn("The parameter 'filterOptions' is deprecated"); + if (!options.filters) { + options.filters = options.filterOptions; + if (options.filters.type) { + this.logger.warn("The parameter 'filterOptions.type' is deprecated"); + if (!options.index) { + if (Array.isArray(options.filters.type) && options.filters.type.length > 0) { + options.index = options.filters.type[0]; + } else { + options.index = options.filters.type; + } + } + delete options.filters.type; + } + if (options.filters.bbox) { + this.logger.warn("The parameter 'filterOptions.bbox' is deprecated"); + delete options.filters.bbox; + } + } + delete options.filterOptions; + } + if (options.position) { + if (options.position.x) { + this.logger.warn("The parameter 'position.x' is deprecated"); + if (!options.position.lon) { + options.position.lon = options.position.x; + } + delete options.position.x; + } + if (options.position.y) { + this.logger.warn("The parameter 'position.y' is deprecated"); + if (!options.position.lat) { + options.position.lat = options.position.y; + } + delete options.position.y; + } + } + if (options.returnFreeForm) { + this.logger.warn("The parameter 'returnFreeForm' is deprecated"); + delete options.returnFreeForm; + } + if (options.srs) { + this.logger.warn("The parameter 'srs' is deprecated"); + delete options.srs; + } + return options; +}; + +/** + * Création de la requête (overwrite) + * + * @param {Function} error - callback des erreurs + * @param {Function} success - callback + */ +Geocode.prototype.buildRequest = function (error, success) { + var options = { + httpMethod: this.options.httpMethod, + // options specifiques du service + geocodeMethod: "search", + query: this.options.query, + index: this.options.index, + returnTrueGeometry: this.options.returnTrueGeometry, + position: this.options.position, + maxResp: this.options.maximumResponses, + filters: this.options.filters + }; + this.request = _Request_GeocodeRequestFactory__WEBPACK_IMPORTED_MODULE_5__["default"].build(options); + + // on teste si la requete a bien été construite ! + !this.request ? error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_REQUEST_BUILD"))) : success.call(this, this.request); +}; + +/** + * Analyse de la reponse (overwrite) + * + * @param {Function} error - callback des erreurs + * @param {Function} success - callback + */ +Geocode.prototype.analyzeResponse = function (error, success) { + /* INFO : + Etape 1 : Création de la requête (URL) + -> stockage de la requête dans this.request + Etape 2 : Envoi de la requête + -> appel du protocol XHR, et envoi (par ex send ()) + -> récupération de la réponse JSON dans la fonction onSuccess () (this.response) + -> si code HTTP 200 et pas de message d'erreur : etape 3 + -> si code HTTP != 200 : lancement de la fonction de callback onFailure avec le message d'erreur + Etape 3 : Analyse de la réponse JSON (si rawResponse === false ) + -> appel du parser pour récupérer le document + Etape 4 : Lancement de la fonction de callback onSuccess avec la réponse : + -> JSON (si rawResponse === true) + -> ou geocodedLocations + */ + + if (this.response) { + var options = { + response: this.response, + rawResponse: this.options.rawResponse, + onError: error, + onSuccess: success, + scope: this + }; + _Response_GeocodeResponseFactory__WEBPACK_IMPORTED_MODULE_6__["default"].build(options); + } else { + error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EMPTY"))); + } +}; +/* harmony default export */ __webpack_exports__["default"] = (Geocode); + +/***/ }), +/* 41 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _GeocodeRequestREST__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(42); + + + +/** + * Creation d'une requête + * (Factory) + * + * @module GeocodeRequestFactory + * @alias Gp.Services.Geocode.Request.GeocodeRequestFactory + * @private + */ +var GeocodeRequestFactory = { + /** + * interface unique + * + * @method build + * @static + * @param {Object} options - options definies dans le composant Geocode + * + * @example + * var options = { + * // options specifiques du service + * geocodeMethod: + * query: + * filters: + * maximumResponses: + * }; + * var result = GeocodeRequestFactory.build(options); + * if (!result) { + * // error... + * } + * @returns {String} request + */ + build: function build(options) { + // logger + var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("GeocodeRequestFactory"); + logger.trace(["GeocodeRequestFactory::build()"]); + var settings = options || {}; + var myReq = new _GeocodeRequestREST__WEBPACK_IMPORTED_MODULE_1__["default"](settings); + if (!myReq.processRequestString()) { + throw new Error("Error process request (rest) !"); + } + var request = myReq.requestString; + logger.trace(request); + return request; + } +}; +/* harmony default export */ __webpack_exports__["default"] = (GeocodeRequestFactory); + +/***/ }), +/* 42 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _model_GeocodeParamREST__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(43); + + + + +/** + * @classdesc + * Classe de gestion des requêtes de type REST sur le service de calcul d'itineraire + * (uniquement en GET) + * + * @constructor + * @alias Gp.Services.Geocode.Request.GeocodeRequestREST + * @param {Object} options - options definies dans le composant Route + * + * @example + * var options = { + * (...) + * }; + * + * @private + */ +function GeocodeRequestREST(options) { + this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("GeocodeRequestREST"); + this.logger.trace("[Constructeur GeocodeRequestREST ()]"); + if (!(this instanceof GeocodeRequestREST)) { + throw new TypeError("GeocodeRequestREST constructor cannot be called as a function."); + } + + // existance des options + if (!options) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_EMPTY", "options")); + } + + /** liste des options */ + this.settings = options; +} +GeocodeRequestREST.prototype = { + /** + * @lends module:GeocodeRequestREST# + */ + + /** + * request + * @type {String} + */ + requestString: null, + /** + * Constructeur (alias) + */ + constructor: GeocodeRequestREST, + /** + * Construction de la requête. + * + * @returns {String} request + */ + processRequestString: function processRequestString() { + var request = ""; + + // Mapping des options avec le service de l'API REST + var oParams = new _model_GeocodeParamREST__WEBPACK_IMPORTED_MODULE_2__["default"](this.settings); + var params = oParams.getParams(); + for (var i = 0; i < params.length; i++) { + var o = params[i]; + if (request) { + request += "&"; + } + request += o.k + "=" + o.v; + } + if (!this.settings.geocodeMethod || this.settings.geocodeMethod !== "search" && this.settings.geocodeMethod !== "reverse") { + throw new Error("Error geocodeMethod not valid"); + } + this.requestString = "?" + request; + this.logger.trace(this.requestString); + return this.requestString; + } +}; +/* harmony default export */ __webpack_exports__["default"] = (GeocodeRequestREST); + +/***/ }), +/* 43 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); + + +/** + * @classdesc + * Classe de gestion des param. des requêtes du service de calcul d'itineraire (REST). + * Permet le mapping avec les options du service. + * @constructor + * @alias Gp.Services.Route.Request.RouteParamREST + * @param {Object} options - options + * + * @private + */ +function GeocodeParamREST(options) { + if (!(this instanceof GeocodeParamREST)) { + throw new TypeError("GeocodeParamREST constructor cannot be called as a function."); + } + this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger(); + this.logger.trace("[Constructeur GeocodeParamREST ()]"); + + /** + * Options en paramêtres du constructeur. + */ + this.options = options || {}; + + // methode de geocodage + if (!this.options.geocodeMethod || this.options.geocodeMethod !== "search" && this.options.geocodeMethod !== "reverse") { + throw new Error("Error geocodeMethod not valid"); + } + this.geocodeMethod = this.options.geocodeMethod; + + // mapping des options avec l'API REST + this.query = typeof this.options !== "undefined" ? this.options.query : null; + this.searchGeometry = this.options.searchGeometry || null; + this.index = this.options.index || null; + this.lon = this.options.position && this.options.position.lon ? this.options.position.lon : null; + this.lat = this.options.position && this.options.position.lat ? this.options.position.lat : null; + this.maxResp = this.options.maxResp || null; + this.returnTrueGeometry = this.options.returnTrueGeometry || null; + this.filters = this.options.filters || {}; +} + +/** + * CLASSNAME + */ +GeocodeParamREST.CLASSNAME = "GeocodeParamREST"; +GeocodeParamREST.prototype = { + /** + * @lends module:GeocodeParamREST# + */ + + /** + * Constructeur (alias) + */ + constructor: GeocodeParamREST, + /** + * Retourne les filtres + * @returns {String} les filtres + */ + getFilters: function getFilters() { + var filters = {}; + for (var prop in this.filters) { + if (this.filters.hasOwnProperty(prop)) { + filters[prop] = this.filters[prop]; + } + } + return filters; + }, + /** + * Retourne l'index + * @returns {String} l'index + */ + getIndex: function getIndex() { + if (this.index === undefined) { + return null; + } + if (this.index === "StreetAddress") { + return "address"; + } else if (this.index === "CadastralParcel") { + return "parcel"; + } else if (this.index === "PositionOfInterest") { + return "poi"; + } else if (this.index === "location") { + return "location"; + } + return this.index; + }, + /** + * Retourne la géométrie de recherche + * @returns {String} la géométrie de recherche au format json + */ + getSearchGeometry: function getSearchGeometry() { + return JSON.stringify(this.searchGeometry); + } +}; + +/** + * Tableau de clefs/valeurs pour param. + * + * @returns {Array} liste de paramêtres + */ +GeocodeParamREST.prototype.getParams = function () { + var map = []; + if (this.geocodeMethod === "search") { + map.push({ + k: "q", + v: this.query + }); + } + if (this.index) { + map.push({ + k: "index", + v: this.getIndex() + }); + } + if (this.geocodeMethod === "reverse" && this.searchGeometry) { + map.push({ + k: "searchgeom", + v: this.getSearchGeometry() + }); + } + if (this.lon && this.lat) { + map.push({ + k: "lon", + v: this.lon + }); + map.push({ + k: "lat", + v: this.lat + }); + } + if (this.maxResp) { + map.push({ + k: "limit", + v: this.maxResp + }); + } + if (this.returnTrueGeometry) { + map.push({ + k: "returntruegeometry", + v: this.returnTrueGeometry + }); + } + var filters = this.getFilters(); + for (var key in filters) { + map.push({ + k: key, + v: filters[key] + }); + } + return map; +}; +/* harmony default export */ __webpack_exports__["default"] = (GeocodeParamREST); + +/***/ }), +/* 44 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22); +/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _Formats_GeocodeResponseParser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(45); +/** + * Factory pour générer une reponse JSON à partir d'un XML + * (Factory) + * + * @module GeocodeResponseFactory + * @alias Gp.Services.Geocode.Response.GeocodeResponseFactory + * @private + */ +// import Logger from "../../../Utils/LoggerByDefault"; + + + +var GeocodeReponseFactory = { + /** + * interface unique + * + * @method build + * @static + * @param {Object} options - options definies dans le composant Geocode + * + * @example + * var options = { + * response : + * rawResponse : + * scope : + * onSuccess : + * onError : + * }; + * + */ + build: function build(options) { + // data de type GeocodeResponse + var data = null; + if (options.response) { + if (options.rawResponse) { + data = options.response; + } else { + try { + var parser = new _Formats_GeocodeResponseParser__WEBPACK_IMPORTED_MODULE_2__["default"](); + data = parser.parse(options.response); + if (!data) { + throw new Error("L'analyse de la réponse du service !?"); + } + } catch (e) { + var message = e.message; + if (typeof options.response === "string") { + message += "('" + options.response + "')"; + } else { + message += "('" + options.response.documentElement.innerHTML + "')"; + } + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_0__["default"]({ + message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_ANALYSE", message), + type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_0__["default"].TYPE_UNKERR, + status: -1 + })); + return; + } + + // Si la réponse contenait une exception renvoyée par le service + if (data.exceptionReport) { + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_0__["default"]({ + message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EXCEPTION", data.exceptionReport), + type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_0__["default"].TYPE_SRVERR, + status: 200 // FIXME : 200 ? + })); + return; + } + } + } else { + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_0__["default"]({ + message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EMPTY"), + type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_0__["default"].TYPE_SRVERR, + status: -1 // FIXME : status response + })); + return; + } + options.onSuccess.call(options.scope, data); + } +}; +/* harmony default export */ __webpack_exports__["default"] = (GeocodeReponseFactory); + +/***/ }), +/* 45 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6); +/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22); +/* harmony import */ var _Response_model_GeocodeResponse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46); +/* harmony import */ var _Response_model_GeocodedLocation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(47); +// import Logger from "../../../Utils/LoggerByDefault"; + + + + + +/** + * Fonction retournant un objet contenant des clés de lecture (readers) + * qui permettent de parser des réponses XML du service de géocodage direct du Géoportail + * afin de récupérer les résultats retournés. + * @module GeocodeResponseParser + * @alias Gp.Services.Geocode.Formats.GeocodeResponseParser + * @private + */ + +/** + * @classdesc + * + * Classe permettant de parser une réponse GeoJSON + * + * @constructor + * @alias Gp.Formats.GeocodeResponseParser + * + * @private + */ +function GeocodeResponseParser() { + if (!(this instanceof GeocodeResponseParser)) { + throw new TypeError("GeocodeResponseParser constructor cannot be called as a function."); + } +} +GeocodeResponseParser.prototype = { + /** + * @lends module:GeocodeResponseParser + */ + + /* + * Constructeur (alias) + */ + constructor: GeocodeResponseParser, + /** + * Méthode permettant de lancer la lecture d'une réponse GeoJSON, + * + * @param {String} json - réponse au format GeoJSON + * @return {Object} geocodeResponse|exceptionReport : l'objet contenant les informations de la réponse GeoJSON, + * sous la forme d'un objet GeocodeResponse, ou un objet littéral exceptionReport si le service a renvoyé une exception. + */ + parse: function parse(json) { + var geocodeResponse = new _Response_model_GeocodeResponse__WEBPACK_IMPORTED_MODULE_2__["default"](); + var obj = JSON.parse(json); + if (obj.type === "FeatureCollection") { + for (var i = 0; i < obj.features.length; ++i) { + _parseFeature(obj.features[i], geocodeResponse); + } + } else if (obj.type === "Feature") { + _parseFeature(obj, geocodeResponse); + } else if (obj.type === "SERVICE_ERROR") { + return _parseError(obj); + } else { + var mess = _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_0__["default"].getMessage("SERVICE_RESPONSE_ANALYSE", obj.type); + throw new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_1__["default"]({ + message: mess, + type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_1__["default"].TYPE_UNKERR, + status: 200 + }); + } + return geocodeResponse; + } +}; + +/** + * Méthode permettant de parser un feature + * + * @private + * + * @param {Object} feature + * @param {Object} geocodeResponse + * + * @memberof GeocodeResponseParser + * @return {Object} objet GeocodedLocation + */ +function _parseFeature(feature, geocodeResponse) { + var location = new _Response_model_GeocodedLocation__WEBPACK_IMPORTED_MODULE_3__["default"](); + if (feature.geometry && feature.geometry.type === "Point") { + location.position = { + lon: feature.geometry.coordinates[0], + lat: feature.geometry.coordinates[1] + }; + } + if (feature.properties) { + for (var prop in feature.properties) { + if (prop === "score") { + location.accuracy = feature.properties[prop]; + } else if (prop === "_type") { + if (feature.properties[prop] === "address") { + location.type = "StreetAddress"; + } else if (feature.properties[prop] === "poi") { + location.type = "PositionOfInterest"; + } else if (feature.properties[prop] === "parcel" || feature.properties[prop] === "cadastral") { + location.type = "CadastralParcel"; + } + } else { + location.placeAttributes[prop] = feature.properties[prop]; + } + } + if (feature.properties._type === "address") { + location.matchType = feature.properties.number !== undefined && feature.properties.number !== null ? "street number" : "street"; + } + } + geocodeResponse.locations.push(location); +} + +/** + * Méthode permettant de parser une erreur + * + * @private + * + * @param {Object} error + * + * @memberof GeocodeResponseParser + * @return {Object} + */ +function _parseError(error) { + return { + exceptionReport: error + }; +} +/* harmony default export */ __webpack_exports__["default"] = (GeocodeResponseParser); + +/***/ }), +/* 46 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/** + * Response object for {@link module:Services~geocode Gp.Services.geocode ()} or {@link module:Services~reverseGeocode Gp.Services.reverseGeocode ()} invocation when successful. Received as the argument of onSuccess callback function. + * + * @property {Array.} locations - locations array. + * + * @namespace + * @alias Gp.Services.GeocodeResponse + */ +function GeocodeResponse() { + if (!(this instanceof GeocodeResponse)) { + throw new TypeError("GeocodeResponse constructor cannot be called as a function."); + } + this.locations = []; +} +GeocodeResponse.prototype = { + constructor: GeocodeResponse +}; +/* harmony default export */ __webpack_exports__["default"] = (GeocodeResponse); + +/***/ }), +/* 47 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/** + * Single location object returned by the underlying geocoding web service. + * + * @property {Gp.Point} position - Position of the location given in the requested coordinates system. + * @property {String} type - location type "StreetAddress" (for an address), "PositionOfInterest" (for a place name) or "CadastralParcel" (for cadastral parcel). + * @property {String} matchType - how geocoding is performed : "street number" (exact address), "street enhanced" (street number calculated by interpolation), "street" (only the street), "city" (only the city). + * @property {Float} accuracy - Accuracy of the response towards the requested location between 0 (unaccurate) and 1 (exact match). + * @property {Object} placeAttributes - Associative array matching the following attributes with their values given by the underlying web service : + * + * *Common attributes : * + * + * - **trueGeometry** - the 'real life' geometry if different from 'Point' type. + * + * *if type === "StreetAddress" :* + * + * - **number** - Street number. + * - **postalCode** - PostCode + * - **street** - Street name + * - **city** - City + * - **houseNumberInfos** - additional street number information + * - **inseeCode** - INSEE Code + * + * + * *if type === "PositionOfInterest" :* + * + * - **type** - Place name type + * - **postalCode** - PostCode + * - **toponyme** - Toponyme + * - **extraFields** - additional place name properties + * - **inseeCode** - INSEE Code + * + * + * *si type = "CadastralParcel" :* + * + * - **codeCommuneAbs** - when a parcel comes from a city that was absorbed by another, code of that old city. "000" otherwise. + * - **codeArrondissement** - arrondissement + * - **identifiant** - cadastral parcel code + * - **feuille** - Parcel Sheet (eg. "1"). + * - **numero** - Parcel Number (eg. "0041") + * - **section** - Parcel Section (eg. "0D"). + * - **nomCommune** - Parcel municipality name. + * - **codeCommune** - Parcel municipality. + * - **codeDepartement** - Parcel Department. + * + * @namespace + * @alias Gp.Services.Geocode.GeocodedLocation + */ +function GeocodedLocation() { + if (!(this instanceof GeocodedLocation)) { + throw new TypeError("GeocodedLocation constructor cannot be called as a function."); + } + this.position = null; + this.matchType = null; + this.placeAttributes = {}; + this.type = null; + this.accuracy = null; + + /** + * Nom de la classe : "GeocodedLocation" + * @type {String} + */ + this.CLASSNAME = "GeocodedLocation"; +} +GeocodedLocation.prototype = { + constructor: GeocodedLocation +}; +/* harmony default export */ __webpack_exports__["default"] = (GeocodedLocation); + +/***/ }), +/* 48 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22); +/* harmony import */ var _CommonService__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7); +/* harmony import */ var _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24); +/* harmony import */ var _Request_GeocodeRequestFactory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41); +/* harmony import */ var _Response_GeocodeResponseFactory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(44); +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } + + + + + + + + +/** + * @classdesc + * Appel du service de géocodage inverse du Géoportail : + * envoi de la requête construite selon les paramètres en options, + * éventuellement parsing et analyse de la réponse, + * retour d'une réponse en paramètre de la fonction onSuccess. + * @constructor + * @extends {Gp.Services.CommonService} + * @alias Gp.Services.ReverseGeocode + * + * @param {Object} options - options spécifiques au service (+ les options heritées) + * + * @param {Object} options.position - Position du point de référence pour le calcul de proximité exprimée dans le système de référence spécifié par le srs. + * @param {Float} options.position.lon - Longitude du point de référence pour le calcul de proximité. + * @param {Float} options.position.lat - Latitude du point de référence pour le calcul de proximité. + * + * @param {Object} [options.filters] - Les propriétés possibles de cet objet. + * @param {String} [options.filters.[proprietes du filtre]] - Critère supplémentaire pour filtrer la recherche sous la forme + * d'un couple clé/valeur à définir selon les possibilités du serveur ajouté à la requête. + * Le service de géocodage du Géoportail permet de filtrer les adresses postales avec les propriétés : + * "postalCode", "inseeCode", "city". + * Il permet également de filtrer les toponymes avec les propriétés : + * "postalCode", "inseeCode", "type". + * Enfin, il permet de filtrer les parcelles cadastrales avec les propriétés : + * "codeDepartement", "codeCommune", "nomCommune", "codeCommuneAbs", "codeArrondissement", "section", "numero", "feuille". + * + * @param {Object} [options.searchGeometry] - Emprise dans laquelle on souhaite effectuer la recherche. + * Les propriétés possibles de cet objet sont décrites ci-après. + * @param {String} options.searchGeometry.type - Type de géometrie (Point|Circle|Linestring|Polygon) + * @param {Array.|Array.Array.} options.searchGeometry.coordinates - Coordonnées des points constituant la géométrie. + * @param {Float} options.searchGeometry.radius - Rayon. Paramètre applicable uniquement pour le type 'Circle'. + * + * @param {String} [options.index = "StreetAddress"] - Type de l'objet recherché. + * Le service de géocodage du Géoportail permet de rechercher des 'PositionOfInterest' pour des toponymes, des 'StreetAddress' + * pour des adresses postales ou des 'CadastralParcel' pour des parcelles cadastrales. L'index 'location' permet une recherche + * multi-indexes en regroupant les indexes 'PositionOfInterest' et 'StreetAddress'. + * D'autres types pourront être rajoutés selon l'évolution du service. + * Par défaut, index = 'StreetAddress'. + * + * @param {Number} [options.maximumResponses] - Nombre de réponses maximal que l'on souhaite recevoir. + * Pas de valeur par défaut. Si le serveur consulté est celui du Géoportail, la valeur par défaut sera donc celle du service : 20s. + * + * @param {Boolean} [options.returnTrueGeometry] - Booléen indiquant si l'on souhaite récupérer la géométrie vraie des objects géolocalisés. + * false par défaut. + * + * @example + * var options = { + * apiKey : null, + * serverUrl : 'http://localhost/service/', + * proxyURL : null, + * timeOut : 10000, // ms + * rawResponse : false, // true|false + * scope : null, // this + * onSuccess : function (response) {}, + * onFailure : function (error) {}, + * // spécifique au service + * index : 'StreetAddress', + * searchGeometry : { + * type : Circle, + * coordinates : [48, 2], + * radius : 100 + * }, + * position : {lon:2 , lat:48.5}, + * maximumResponses : 25, + * }; + * + */ +function ReverseGeocode(options_) { + if (!(this instanceof ReverseGeocode)) { + throw new TypeError(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("CLASS_CONSTRUCTOR", "ReverseGeocode")); + } + + /** + * Nom de la classe (heritage) + * FIXME instance ou classe ? + */ + this.CLASSNAME = "ReverseGeocode"; + this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("Gp.Services.ReverseGeocode"); + this.logger.trace("[Constructeur ReverseGeocode (options)]"); + var options = this.patchOptionConvertor(options_); + if (!options.serverUrl) { + options.serverUrl = _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__["default"].ReverseGeocode.newUrl(); + } + + // appel du constructeur par heritage + _CommonService__WEBPACK_IMPORTED_MODULE_3__["default"].apply(this, [options]); + if (!options.searchGeometry) { + if (!options.position) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_MISSING", "searchGeometry")); + } + } else { + this.options.searchGeometry = options.searchGeometry; + } + + // on definit l'index par defaut + if (!options.index) { + this.options.index = options.index = "StreetAddress"; + } + if (options.filters) { + var filter = Object.keys(options.filters); + for (var i = 0; i < filter.length; i++) { + var key = filter[i]; + // on supprime les filtres vides + if (typeof options.filters[key] === "undefined" || _typeof(options.filters[key]) === "object" && Object.keys(options.filters[key]).length === 0 || typeof options.filters[key] === "string" && options.filters[key].length === 0 || Array.isArray(options.filters[key]) && options.filters[key].length === 0) { + delete this.options.filters[key]; + } + } + } + this.options.position = options.position; + this.options.index = options.index || "StreetAddress"; + this.options.maximumResponses = options.maximumResponses || 20; +} + +/** + * @lends module:ReverseGeocode# + */ +ReverseGeocode.prototype = Object.create(_CommonService__WEBPACK_IMPORTED_MODULE_3__["default"].prototype, { + // todo + // getter/setter +}); + +/* + * Constructeur (alias) + */ +ReverseGeocode.prototype.constructor = ReverseGeocode; + +/** + * Patch pour la convertion des options vers le nouveau formalisme. + * + * @param {Object} options_ - options du service + * @return {Object} - options + */ +ReverseGeocode.prototype.patchOptionConvertor = function (options_) { + var options = options_; + if (options.filterOptions) { + this.logger.warn("The parameter 'filterOptions' is deprecated"); + if (options.filterOptions.type) { + this.logger.warn("The parameter 'filterOptions.type' is deprecated"); + if (!options.index) { + if (Array.isArray(options.filterOptions.type) && options.filterOptions.type.length > 0) { + options.index = options.filterOptions.type[0]; + } else { + options.index = options.filterOptions.type; + } + } + delete options.filterOptions.type; + } + if (options.filterOptions.bbox) { + this.logger.warn("The parameter 'filterOptions.bbox' is deprecated"); + if (!options.searchGeometry) { + // convertir la geometrie + options.searchGeometry = this.bbox2Json(options.filterOptions.bbox); + } + delete options.filterOptions.bbox; + } + if (options.filterOptions.circle) { + this.logger.warn("The parameter 'filterOptions.circle' is deprecated"); + if (!options.searchGeometry) { + // convertir la geometrie + options.searchGeometry = this.circle2Json(options.filterOptions.circle); + } + delete options.filterOptions.circle; + } + if (options.filterOptions.polygon) { + this.logger.warn("The parameter 'filterOptions.polygon' is deprecated"); + if (!options.searchGeometry) { + // convertir la geometrie + options.searchGeometry = this.polygon2Json(options.filterOptions.polygon); + } + delete options.filterOptions.polygon; + } + if (!options.filters && Object.keys(options.filterOptions).length > 0) { + options.filters = options.filterOptions; + } + delete options.filterOptions; + } + if (options.position) { + if (options.position.x) { + this.logger.warn("The parameter 'position.x' is deprecated"); + if (!options.position.lon) { + options.position.lon = options.position.x; + } + delete options.position.x; + } + if (options.position.y) { + this.logger.warn("The parameter 'position.y' is deprecated"); + if (!options.position.lat) { + options.position.lat = options.position.y; + } + delete options.position.y; + } + } + if (options.srs) { + this.logger.warn("The parameter 'srs' is deprecated"); + delete options.srs; + } + return options; +}; + +/** + * (overwrite) + * Création de la requête + * + * @param {Function} error - callback des erreurs + * @param {Function} success - callback + */ +ReverseGeocode.prototype.buildRequest = function (error, success) { + var options = { + httpMethod: this.options.httpMethod, + // options specifiques du service + geocodeMethod: "reverse", + searchGeometry: this.options.searchGeometry, + index: this.options.index, + position: this.options.position, + returnTrueGeometry: this.options.returnTrueGeometry, + maxResp: this.options.maximumResponses, + filters: this.options.filters + }; + this.request = _Request_GeocodeRequestFactory__WEBPACK_IMPORTED_MODULE_5__["default"].build(options); + + // on teste si la requete a bien été construite ! + !this.request ? error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_REQUEST_BUILD"))) : success.call(this, this.request); +}; + +/** + * (overwrite) + * Analyse de la reponse + * + * @param {Function} error - callback des erreurs + * @param {Function} success - callback + */ +ReverseGeocode.prototype.analyzeResponse = function (error, success) { + if (this.response) { + var options = { + response: this.response, + rawResponse: this.options.rawResponse, + onError: error, + onSuccess: success, + scope: this + }; + _Response_GeocodeResponseFactory__WEBPACK_IMPORTED_MODULE_6__["default"].build(options); + } else { + error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EMPTY"))); + } +}; + +/** + * Patch pour la convertion des options vers le nouveau formalisme. + * + * @param {Array} bbox - bbox + * @return {Object} - geometrie au format json + */ +ReverseGeocode.prototype.bbox2Json = function (bbox) { + return { + type: "Polygon", + coordinates: [[[bbox.left, bbox.top], [bbox.right, bbox.top], [bbox.right, bbox.bottom], [bbox.left, bbox.bottom], [bbox.left, bbox.top]]] + }; +}; + +/** + * Patch pour la convertion des options vers le nouveau formalisme. + * + * @param {Object} circle - circle + * @return {Object} - geometrie au format json + */ +ReverseGeocode.prototype.circle2Json = function (circle) { + return { + type: "Circle", + radius: circle.radius, + coordinates: [circle.x, circle.y] + }; +}; + +/** + * Patch pour la convertion des options vers le nouveau formalisme. + * + * @param {Array} polygon - polygon + * @return {Object} - geometrie au format json + */ +ReverseGeocode.prototype.polygon2Json = function (polygon) { + var jsonGeom = { + type: "Polygon", + coordinates: [[]] + }; + for (var i = 0; i < polygon.length; ++i) { + jsonGeom.coordinates[0].push([polygon[i].x, polygon[i].y]); + } + return jsonGeom; +}; + +/** + * Codes EPSG géographiques (lat/lon). Utiles car les coordonnées doivent être inversées. + */ +ReverseGeocode.geoEPSG = ["EPSG:4326"]; +/* harmony default export */ __webpack_exports__["default"] = (ReverseGeocode); + +/***/ }), +/* 49 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _CommonService__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7); +/* harmony import */ var _DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24); +/* harmony import */ var _Response_AutoCompleteResponseFactory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4); +/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6); +/* harmony import */ var _Utils_Helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8); +/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(22); + + + + + + + + +/** + * @classdesc + * Appel du service d'autocomplétion du Géoportail : + * envoi de la requête construite selon les paramètres en options, + * éventuellement parsing et analyse de la réponse, + * retour d'une réponse en paramètre de la fonction onSuccess. + * @constructor + * @extends {Gp.Services.CommonService} + * @alias Gp.Services.AutoComplete + * + * @param {Object} options - options spécifiques au service (+ les options heritées) + * + * @param {String} options.text - La chaîne de caractère à compléter. + * Cette chaîne n'est pas "URL encodée". + * C'est l'API qui s'occupe de l'encoder pour l'inclure dans la requête. + * + * @param {Array.} [options.type = ["StreetAddress"]] - Type de l'objet recherché. + * Le service d'autocomplétion du Géoportail permet de rechercher des toponymes 'PositionOfInterest' et/ou des adresses postales 'StreetAddress'. + * D'autres types pourront être rajoutés selon l'évolution du service. + * Par défaut, type = ['StreetAddress']. + * + * @param {String} [options.territory] - Limitation de la zone de recherche de localisants. + * Le service d'autocomplétion du Géoportail permet de limiter la recherche à la métropole et la Corse : options.territory = 'METROPOLE', + * DOMS TOMS : options.territory = 'DOMTOM', ou à un département : options.territory = '31' + * Pas de valeur par défaut. + * La valeur par défaut est donc celle du service. + * Le service d'autocomplétion du Géoportail renvoie toutes les informations quand aucun territoire n'est spécifié. + * + * @param {Number} [options.maximumResponses = 10] - Nombre de réponses maximal que l'on souhaite recevoir. + * Pas de valeur par défaut. + * La valeur par défaut sera donc celle du service : 10. + * + * @example + * var options = { + * // options communes aux services + * apiKey : null, + * serverUrl : 'http://localhost/service/', + * protocol : 'JSONP', // JSONP|XHR + * proxyURL : null, + * httpMethod : 'GET', // GET|POST + * timeOut : 10000, // ms + * rawResponse : false, // true|false + * scope : null, // this + * onSuccess : function (response) {}, + * onFailure : function (error) {}, + * // spécifique au service + * text : "", + * type : "StreetAddress", + * territory : 'METROPOLE', + * maximumResponses : 10 + * }; + */ +function AutoComplete(options_) { + if (!(this instanceof AutoComplete)) { + throw new TypeError(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_4__["default"].getMessage("CLASS_CONSTRUCTOR", "AutoComplete")); + } + + /** + * Nom de la classe (heritage) + * FIXME instance ou classe ? + */ + this.CLASSNAME = "AutoComplete"; + this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_3__["default"].getLogger("Gp.Services.AutoComplete"); + this.logger.trace("[Constructeur AutoComplete (options)]"); + var options = this.patchOptionConvertor(options_); + if (!options.serverUrl) { + options.serverUrl = _DefaultUrlService__WEBPACK_IMPORTED_MODULE_1__["default"].AutoComplete.newUrl(); + } + + // appel du constructeur par heritage + _CommonService__WEBPACK_IMPORTED_MODULE_0__["default"].apply(this, arguments); + if (!options.text) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_4__["default"].getMessage("PARAM_MISSING", "text")); + } + + // ajout des options spécifiques au service + this.options.text = options.text; + + // on definit des parametres par defaut + if (!options.type) { + options.type = ["StreetAddress,PositionOfInterest"]; + } + this.options.type = options.type; + this.options.territory = options.terr || ""; + this.options.maximumResponses = options.maximumResponses || 10; + + // INFO + // le service ne repond pas en mode POST (405 Method Not Allowed) + if (this.options.protocol === "XHR" && this.options.httpMethod === "POST") { + this.logger.warn("Le service ne gére pas le mode d'interrogation en POST, on bascule sur du GET !"); + this.options.httpMethod = "GET"; // on surcharge ! + } + + // attributs d'instances + + /** + * Format forcé de la réponse du service : "json" + * sauf si l'on souhaite une reponse brute (options.rawResponse) + */ + this.options.outputFormat = this.options.rawResponse ? "" : "json"; +} + +/** + * @lends module:AutoComplete# + */ + +AutoComplete.prototype = Object.create(_CommonService__WEBPACK_IMPORTED_MODULE_0__["default"].prototype, { + // todo + // getter/setter +}); + +/* + * Constructeur (alias) + */ +AutoComplete.prototype.constructor = AutoComplete; + +/** + * Patch pour la convertion des options vers le nouveau formalisme. + * + * @param {Object} options_ - options du service + * @return {Object} - options + */ +AutoComplete.prototype.patchOptionConvertor = function (options_) { + var options = options_; + if (options.filterOptions) { + this.logger.warn("The parameter 'filterOptions' is deprecated"); + if (options.filterOptions.type) { + this.logger.warn("The parameter 'filterOptions.type' is deprecated"); + if (!options.type) { + options.type = options.filterOptions.type; + } + } + if (options.filterOptions.territory) { + this.logger.warn("The parameter 'filterOptions.territory' is deprecated"); + if (!options.terr) { + options.terr = options.filterOptions.territory; + } + } + delete options.filterOptions; + } + return options; +}; + +/** + * (overwrite) + * Création de la requête + * + * @param {Function} error - callback des erreurs + * @param {Function} success - callback + */ +AutoComplete.prototype.buildRequest = function (error, success) { + // ex. + // http://wxs.ign.fr/CLEF/ols/apis/completion? + // text=Brie-Comt& + // type=StreetAddress,PositionOfInterest& + // territory=METROPOLE& + // maximumResponses=10 + + // traitement des param KPV sous forme de tableau + var territory = ""; + if (this.options.territory) { + territory = this.options.territory; + } + var type = ""; + if (this.options.type) { + type = this.options.type.join(","); + } + + // normalisation de la requete avec param KPV + this.request = _Utils_Helper__WEBPACK_IMPORTED_MODULE_5__["default"].normalyzeParameters({ + text: encodeURIComponent(this.options.text), + type: type, + terr: territory, + maximumResponses: this.options.maximumResponses + }); + !this.request ? error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_6__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_4__["default"].getMessage("SERVICE_REQUEST_BUILD"))) : success.call(this, this.request); +}; + +/** + * (overwrite) + * Analyse de la reponse + * + * @param {Function} error - callback des erreurs + * @param {Function} success - callback de succès de l'analyse de la réponse + */ +AutoComplete.prototype.analyzeResponse = function (error, success) { + if (this.response) { + var options = { + response: this.response, + rawResponse: this.options.rawResponse, + onSuccess: success, + onError: error, + scope: this + }; + _Response_AutoCompleteResponseFactory__WEBPACK_IMPORTED_MODULE_2__["default"].build(options); + } else { + error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_6__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_4__["default"].getMessage("SERVICE_RESPONSE_EMPTY"))); + } +}; +/* harmony default export */ __webpack_exports__["default"] = (AutoComplete); + +/***/ }), +/* 50 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22); +/* harmony import */ var _model_AutoCompleteResponse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(51); +/* harmony import */ var _model_SuggestedLocation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52); +/** + * Factory pour générer une reponse JSON à partir d'un XML ou d'un JSON + * (Factory) + * + * @module AutoCompleteResponseFactory + * @private + * @alias Gp.Services.AutoComplete.Response.AutoCompleteResponseFactory + */ + + + + + +var AutoCompleteResponseFactory = { + /** + * interface unique + * + * @method build + * @static + * @param {Object} options - options definies dans le composant Alti + * + * @example + * var options = { + * response : + * outputFormat : + * rawResponse : + * scope : + * onSuccess : + * onError : + * }; + * + */ + build: function build(options) { + // logger + var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("AutoCompleteResponseFactory"); + logger.trace(["AutoCompleteResponseFactory::build()"]); + var data = null; + if (options.response) { + if (options.rawResponse) { + logger.trace("analyze response : raw"); + data = options.response; + } else { + var JSONResponse = null; + if (typeof options.response === "string") { + JSONResponse = JSON.parse(options.response); + } else { + JSONResponse = options.response; + } + + // analyse de la réponse + if (JSONResponse) { + // le service renvoie t il une erreur ? + if (JSONResponse.error) { + // ex. ? + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"]({ + message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EXCEPTION", JSONResponse.error.description), + status: JSONResponse.error.code, + type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"].TYPE_SRVERR + })); + return; + } + + // création de l'objet réponse + data = new _model_AutoCompleteResponse__WEBPACK_IMPORTED_MODULE_3__["default"](); + + // boucle sur les résultats de l'autocomplétion + if (JSONResponse.results && Array.isArray(JSONResponse.results)) { + var suggestedLocation = null; + for (var i = 0; i < JSONResponse.results.length; i++) { + var result = JSONResponse.results[i]; + suggestedLocation = new _model_SuggestedLocation__WEBPACK_IMPORTED_MODULE_4__["default"](); + if (result) { + if (result.country === "StreetAddress") { + suggestedLocation.street = result.street; + suggestedLocation.type = "StreetAddress"; + } else if (result.country === "PositionOfInterest") { + suggestedLocation.poi = result.street; + suggestedLocation.type = "PositionOfInterest"; + suggestedLocation.poiType = result.poiType; + } + if (suggestedLocation.position) { + suggestedLocation.position.x = result.x; + suggestedLocation.position.y = result.y; + } + suggestedLocation.kind = result.kind; + suggestedLocation.commune = result.city; + suggestedLocation.fullText = result.fulltext; + suggestedLocation.postalCode = result.zipcode; + suggestedLocation.classification = result.classification; + } + // Ajout du résultat au tableau reverseGeocodedLocations de geocodedLocation + data.suggestedLocations.push(suggestedLocation); + } + } else { + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_FORMAT_3"))); + return; + } + if (!data.suggestedLocations.length) { + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_FORMAT_3"))); + return; + } + } + if (!data) { + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"]({ + message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_ANALYSE_2"), + type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"].TYPE_UNKERR, + status: -1 + })); + return; + } + + // Si la réponse contenait une exception renvoyée par le service + if (data.exceptionReport) { + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"]({ + message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EXCEPTION", data.exceptionReport), + type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"].TYPE_SRVERR, + status: 200 + })); + return; + } + } + } else { + // si la réponse (xmlString) est vide, on appelle le callback d'erreur + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EMPTY"))); + return; + } + + // si tout s'est bien passé, on appelle le callback de succès + options.onSuccess.call(options.scope, data); + } +}; +/* harmony default export */ __webpack_exports__["default"] = (AutoCompleteResponseFactory); + +/***/ }), +/* 51 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/** + * Response object for {@link module:Services~autoComplete Gp.Services.autoComplete ()} invocation when successful. Received as the argument of onSuccess callback function. + * + * @property {Array.} suggestedLocations - SuggestedLocations array. + * + * @namespace + * @alias Gp.Services.AutoCompleteResponse + */ +function AutoCompleteResponse() { + if (!(this instanceof AutoCompleteResponse)) { + throw new TypeError("AutoCompleteResponse constructor cannot be called as a function."); + } + this.suggestedLocations = []; +} +AutoCompleteResponse.prototype = { + constructor: AutoCompleteResponse +}; +/* harmony default export */ __webpack_exports__["default"] = (AutoCompleteResponse); + +/***/ }), +/* 52 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/** + * Single SuggestedLocation Object returned by underlying web service. + * Each suggested location represents a street address ("StreetAddress") or a place name ("PositionOfInterest"). + * + * @property {String} type - Suggested location type : "StreetAddress" ou "PositionOfInterest" + * @property {Gp.Point} position - Position of the suggested location given in requested coordinates system. + * @property {String} commune - Suggested municipality + * @property {String} fullText - Full text representation of the suggested location. + * @property {String} postalCode - Suggested location postcode + * @property {Integer} classification - Number used to classify the importance of the place where is the suggested location from 1 (most important) to 7 (less important). + * @property {String} street - Street name of the suggested location ("StreetAddress" only). + * @property {String} kind - Nature of the suggested location : "prefecture", "monument", "commune", ... for instance ("PositionOfInterest" only). + * + * @namespace + * @alias Gp.Services.AutoComplete.SuggestedLocation + */ +function SuggestedLocation() { + if (!(this instanceof SuggestedLocation)) { + throw new TypeError("SuggestedLocation constructor cannot be called as a function."); + } + + /* REPONSE : + { + "status" : "OK", + "results" : [ + { + "country":"PositionOfInterest", + "x":-1.559185, + "y":47.952603, + "city":"Brie", + "zipcode":"35150", + "street":"corbe", + "kind":"Lieu-dit habité", + "fulltext":"corbe, 35150 Brie", + "classification":6 + }, + { + "country":"StreetAddress", + "x":1.538295, + "y":43.19646, + "city":"Brie", + "zipcode":"09700", + "street":"courreste", + "kind":"", + "fulltext":"courreste, 09700 Brie", + "classification":7 + } + ] + } + */ + + /* REPONSE EN ERREUR + { + status : "ERROR", + results : [ ] + } + */ + + /** + * Suggested location type : "StreetAddress" ou "PositionOfInterest" + * @type {String} + */ + this.type = null; + + /** + * Position of the suggested location given in requested coordinates system. + * @type {Gp.Point} + */ + this.position = { + x: null, + y: null + }; + + /** + * Suggested municipality + * @type {String} + */ + this.commune = null; + + /** + * Full text representation of the suggested location. + * @type {String} + */ + this.fullText = null; + + /** + * Suggested location postcode + * @type {Number} + */ + this.postalCode = null; + + /** + * Number used to classify the importance of the place where is the suggested location from 1 (most important) to 7 (less important). + * @type {Integer} + */ + this.classification = null; + + /** + * Street name of the suggested location ("StreetAddress" only). + * @type {String} + */ + this.street = null; + + /** + * Place name of the suggested location ("PositionOfInterest" only). + * @type {String} + */ + this.poi = null; + + /** + * Nature of the suggested location : "prefecture", "monument", "commune", ... for instance ("PositionOfInterest" only). + * @type {String} + */ + this.kind = null; +} +SuggestedLocation.prototype = { + constructor: SuggestedLocation +}; +/* harmony default export */ __webpack_exports__["default"] = (SuggestedLocation); + +/***/ }), +/* 53 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22); +/* harmony import */ var _CommonService__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7); +/* harmony import */ var _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24); +/* harmony import */ var _Request_RouteRequestFactory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(54); +/* harmony import */ var _Response_RouteResponseFactory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(57); + + + + + + + + +/** + * @classdesc + * Appel du service d'itinéraire du Géoportail : + * envoi de la requête construite selon les paramètres en options, + * éventuellement parsing et analyse de la réponse, + * retour d'une réponse en paramètre de la fonction onSuccess. + * + * @alias Gp.Services.Route + * @constructor + * @extends {Gp.Services.CommonService} + * @param {Object} options - options spécifiques au service (+ les options heritées) + * + * @param {String} options.resource - La ressource utilisée pour le calcul. Ce paramètre devrait être obligatoire car il l'est dans l'appel au service. Mais il ne l'est pas pour des raisons de rétrocompatibilité. + * + * @param {String} options.outputFormat - Le format de la réponse du service itineraire : 'json' uniquement et par défaut. + * + * @param {String} [options.routePreference = "fastest"] - Mode de calcul à utiliser : + * - le plus rapide « fastest » + * - le plus court « shortest » + * Par défaut : « fastest ». + * + * @param {Object} options.startPoint - Point de départ du calcul. Coordonnées exprimées en longitudes, latitudes (EPSG:4326) + * @param {Float} options.startPoint.x - Abcisse du point de départ du calcul d'itinéraire. + * @param {Float} options.startPoint.y - Ordonnée du point de départ du calcul d'itinéraire. + * + * @param {Object} options.endPoint - Point d'arrivée du calcul. Coordonnées exprimées en longitudes, latitudes (EPSG:4326) + * @param {Float} options.endPoint.x - Abcisse du point d'arrivée du calcul d'itinéraire. + * @param {Float} options.endPoint.y - Ordonnée du point d'arrivée du calcul d'itinéraire. + * + * @param {Object[]} [options.viaPoints] - Liste de point ({x:Float,y:Float}) intermédaires que l'itinéraire doit emprunter dans l'ordre du tableau. + * Coordonnées exprimées en longitudes, latitudes (EPSG:4326) :{x:float, y:float} + * + * @param {String} [options.graph = "voiture"] - Type de graphe utilisé : "Voiture" ou "Pieton". + * Détermine le profil de vitesses utilisé pour le calcul ainsi que les tronçons autorisés ou non. + * Par défaut, c'est la valeur "Voiture" qui sera utilisée. + * + * @param {String[]} [options.exclusions] - DEPRECATED: Critères d'exclusions à appliquer pour le calcul. (correspond au paramètre "avoidFeature" d'OpenLS) + * On précise ici le type de tronçons que l'on ne veut pas que l'itinéraire emprunte + * (valeurs possibles : « toll » (éviter les péages), « bridge », « tunnel »). + * Ce paramètre est conservé pour une rétrocompatibilité de l'api. Le nouveau paramètre à utiliser est options.constraints + * + * @param {Object[]} [options.constraints] - Critères de contraintes à appliquer sur un itinéraire. Les valeurs disponibles dépendent de la ressource utilisée. Il est donc utile de regarder le getCapabilities. + * @param {String} [options.constraints.constraintType] - Type de la contrainte. Généralement "banned". + * @param {String} [options.constraints.key] - Clé de la contrainte. Généralement "wayType". + * @param {String} [options.constraints.operator] - Opérateur de la contrainte. Généralement "=". + * @param {String} [options.constraints.value] - Valeur de la contrainte. Généralement "autoroute". + * + * @param {Boolean} [options.geometryInInstructions = false] - Indique si la géométrie de l'itinéraire doit être reprise morceau par morceau dans les instructions. + * (correspond au paramètre "provideGeometry" d'OpenLS) Par défaut : false. + * + * @param {Boolean} [options.provideBbox = true] - Indique si les instructions doivent être localisées par une bbox dans la réponse. + * Par défaut : true. + * + * @param {String} [options.distanceUnit = "m"] - Indique si la distance doit être exprimée en km ou m dans la réponse. + * Par défaut : m. + * @param {String} [options.timeUnit = "second"] - Indique si la durée doit être exprimée en seconde, minute ou heure dans la réponse. Il peut-être formatté hh:mm::ss avec la valeur standard. + * Les valeurs possibles sont "standard", "second", "minute" ou "hour". + * Par défaut : "standard". + * + * @param {String} [options.srs] - Système de coordonnées dans lequel les paramètres géographiques en entrée et la réponse du service sont exprimés. + * Pas de valeur par défaut. Si le serveur consulté est celui du Géoportail, la valeur par défaut sera donc celle du service : 'EPSG:4326'. + * + * @param {String[]} [options.waysAttributes] - Nom des attributs des voies. Les valeurs disponibles dépendent de la ressource utilisée. Il est donc utile de regarder le getCapabilities. + * + * @example + * var options = { + * // options communes aux services + * apiKey : null, + * serverUrl : 'http://localhost/service/', + * protocol : 'XHR', + * proxyURL : null, + * httpMethod : 'GET', // GET|POST + * timeOut : 10000, // ms + * rawResponse : false, // true|false + * scope : null, // this + * onSuccess : function (response) {}, + * onFailure : function (error) {}, + * // spécifique au service + * resource : 'bdtopo' + * outputFormat : 'json', + * startPoint : { + * x : 42.1121, + * y : 1.5557 + * }, + * endPoint : { + * x : 42.1121, + * y : 1.5557 + * }, + * provideBbox : true, + * exclusions : ["Bridge", "Tunnel", "Toll"], + * distanceUnit : "km", + * graph : "Voiture", + * geometryInInstructions : true, + * routePreference : "fastest" + * }; + * + */ +function Route(options) { + if (!(this instanceof Route)) { + throw new TypeError(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("CLASS_CONSTRUCTOR", "Route")); + } + + /** + * Nom de la classe (heritage) + */ + this.CLASSNAME = "Route"; + + // appel du constructeur par heritage + _CommonService__WEBPACK_IMPORTED_MODULE_3__["default"].apply(this, arguments); + this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("Gp.Services.Route"); + this.logger.trace("[Constructeur Route (options)]"); + if (!options.startPoint) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_MISSING", "startPoint")); + } + + // on lance une exception afin d'eviter au service de le faire... + if (options.startPoint.x === null) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_MISSING", "startPoint.x")); + } + if (options.startPoint.y === null) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_MISSING", "startPoint.y")); + } + if (!options.endPoint) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_MISSING", "endPoint")); + } + + // on lance une exception afin d'eviter au service de le faire... + if (options.endPoint.x === null) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_MISSING", "endPoint.x")); + } + if (options.endPoint.y === null) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_MISSING", "endPoint.y")); + } + + // options par defaut + + // on passe l'option outputFormat en minuscules afin d'éviter des exceptions. + if (options.outputFormat && options.outputFormat !== "json") { + this.logger.warn("options.outputFormat could only be json"); + } + this.options.outputFormat = "json"; + this.options.resource = options.resource || "bdtopo-osrm"; + this.options.startPoint = options.startPoint; + this.options.endPoint = options.endPoint; + this.options.viaPoints = options.viaPoints || []; + this.options.routePreference = options.routePreference || "fastest"; + /** Gestion des anciennes valeurs de graph */ + if (options.graph) { + if (options.graph === "Voiture") { + this.options.graph = "car"; + } + if (options.graph === "Pieton") { + this.options.graph = "pedestrian"; + } + } else { + this.options.graph = "car"; + } + this.options.constraints = []; + if (options.constraints) { + if (Array.isArray(options.constraints)) { + for (var k = 0; k < options.constraints.length; k++) { + this.options.constraints.push(options.constraints[k]); + } + } else { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_TYPE", "constraints")); + } + } + + /** Gestion de l'ancien paramètre exclusion */ + var constraintTunnel = {}; + var constraintPont = {}; + var constraintAutoroute = {}; + if (options.exclusions) { + if (options.exclusions.length !== 0) { + this.logger.warn("options.exclusions is DEPRECATED !!"); + for (var c = 0; c < options.exclusions.length; c++) { + if (typeof options.exclusions[c] === "string") { + options.exclusions[c] = options.exclusions[c].toLowerCase(); + } else { + // on ne crée pas une erreur pour rétro-compatibilité avec les anciennes versions + continue; + } + if (options.exclusions[c] === "toll") { + constraintAutoroute.constraintType = "banned"; + constraintAutoroute.key = "wayType"; + constraintAutoroute.operator = "="; + constraintAutoroute.value = "autoroute"; + this.options.constraints.push(constraintAutoroute); + } + if (options.exclusions[c] === "tunnel") { + constraintTunnel.constraintType = "banned"; + constraintTunnel.key = "wayType"; + constraintTunnel.operator = "="; + constraintTunnel.value = "tunnel"; + this.options.constraints.push(constraintTunnel); + } + if (options.exclusions[c] === "bridge") { + constraintPont.constraintType = "banned"; + constraintPont.key = "wayType"; + constraintPont.operator = "="; + constraintPont.value = "pont"; + this.options.constraints.push(constraintPont); + } + } + } + } + this.options.geometryInInstructions = options.geometryInInstructions || false; + this.options.provideBbox = options.provideBbox || true; + this.options.distanceUnit = options.distanceUnit || "m"; + this.options.timeUnit = options.timeUnit || "second"; + this.options.expectedStartTime = null; // FIXME not yet implemented ! + this.options.srs = options.srs || "EPSG:4326"; + this.options.waysAttributes = options.waysAttributes || []; + + // gestion de l'url du service par defaut + // si l'url n'est pas renseignée, il faut utiliser les urls par defaut + if (!this.options.serverUrl) { + var UrlByDefault = _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__["default"].Route.newUrl(); + if (!UrlByDefault) { + throw new Error("Url by default not found !"); + } + this.options.serverUrl = UrlByDefault; + this.logger.trace("Serveur URL par defaut : " + this.options.serverUrl); + } +} + +/** + * @lends module:Route# + */ +Route.prototype = Object.create(_CommonService__WEBPACK_IMPORTED_MODULE_3__["default"].prototype, { + // todo + // getter/setter +}); + +/* + * Constructeur (alias) + */ +Route.prototype.constructor = Route; + +/** + * (overwrite) + * Création de la requête + * + * @param {Function} error - callback des erreurs + * @param {Function} success - callback + */ +Route.prototype.buildRequest = function (error, success) { + var options = { + // spécifique au service + resource: this.options.resource, + startPoint: this.options.startPoint, + endPoint: this.options.endPoint, + viaPoints: this.options.viaPoints, + provideBbox: this.options.provideBbox, + constraints: this.options.constraints, + distanceUnit: this.options.distanceUnit, + timeUnit: this.options.timeUnit, + graph: this.options.graph, + geometryInInstructions: this.options.geometryInInstructions, + routePreference: this.options.routePreference, + srs: this.options.srs, + waysAttributes: this.options.waysAttributes + }; + this.request = _Request_RouteRequestFactory__WEBPACK_IMPORTED_MODULE_5__["default"].build(options); + + // on teste si la requete a bien été construite ! + if (!this.request) { + error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_REQUEST_BUILD"))); + } else { + success.call(this, this.request); + } +}; + +/** + * (overwrite) + * Analyse de la reponse + * + * @param {Function} error - callback des erreurs + * @param {Function} success - callback + */ +Route.prototype.analyzeResponse = function (error, success) { + // INFO + // Factory pour masquer la complexité du retour du service + + if (this.response) { + var options = { + distanceUnit: this.options.distanceUnit, + timeUnit: this.options.timeUnit, + response: this.response, + outputFormat: this.options.outputFormat, + // utile pour parser la string en mode XHR : JSON ou XML ! + rawResponse: this.options.rawResponse, + onError: error, + onSuccess: success, + scope: this, + geometryInInstructions: this.options.geometryInInstructions + }; + _Response_RouteResponseFactory__WEBPACK_IMPORTED_MODULE_6__["default"].build(options); + } else { + error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EMPTY"))); + } +}; +/* harmony default export */ __webpack_exports__["default"] = (Route); + +/***/ }), +/* 54 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22); +/* harmony import */ var _RouteRequestREST__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55); + + + + +/** + * Creation d'une requête REST en mode POST ou GET + * (Factory) + * + * @module RouteRequestFactory + * @alias Gp.Services.Route.Request.RouteRequestFactory + * @private + */ +var RouteRequestFactory = { + /** + * interface unique + * + * @method build + * @static + * @param {Object} options - options definies dans le composant Route + * + * @example + * // utilisation avec les callback + * var options = { + * (...) + * onSuccess : function (response) {}, + * onError : function (error) {}, + * // spécifique au service + * startPoint : { + * x : 42.1121, + * y : 1.5557 + * }, + * endPoint : { + * x : 42.1121, + * y : 1.5557 + * }, + * provideBbox : false, + * exclusions : ["bridge", "tunnel", "toll"], + * distanceUnit : "km", + * graph : "Voiture", + * geometryInInstructions : false, + * routePreference : "fastest" + * }; + * RouteRequestFactory.build(options); + * + * // utilisation sans callback + * var options = {...}; + * try { + * var result = RouteRequestFactory.build(options); + * if (! result) { throw new Error("..."):} + * } catch (e) { + * // todo + * } + * @returns {String} request + */ + build: function build(options) { + // logger + var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("RouteRequestFactory"); + logger.trace(["RouteRequestFactory::build()"]); + var request = null; + var settings = options || {}; + + // gestion des callback + var bOnError = !!(options.onError !== null && typeof options.onError === "function"); + var message = null; + + // FIXME les exceptions ne sont pas 'catchées' sur le constructeur ! + var myReq = new _RouteRequestREST__WEBPACK_IMPORTED_MODULE_2__["default"](settings); + if (!myReq.processRequestString()) { + message = "Error process request (rest) !"; + if (bOnError) { + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_1__["default"](message)); + return; + } + throw new Error(message); + } + request = myReq.requestString; + return request; + } +}; +/* harmony default export */ __webpack_exports__["default"] = (RouteRequestFactory); + +/***/ }), +/* 55 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _model_RouteParamREST__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(56); + + + + +/** + * @classdesc + * Classe de gestion des requêtes de type REST sur le service de calcul d'itineraire + * (uniquement en GET) + * + * @constructor + * @alias Gp.Services.Route.Request.RouteRequestREST + * @param {Object} options - options definies dans le composant Route + * + * @example + * var options = { + * (...) + * }; + * + * @private + */ +function RouteRequestREST(options) { + this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("RouteRequestREST"); + this.logger.trace("[Constructeur RouteRequestREST ()]"); + if (!(this instanceof RouteRequestREST)) { + throw new TypeError("RouteRequestREST constructor cannot be called as a function."); + } + + // existance des options + if (!options) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_EMPTY", "options")); + } + + /** liste des options */ + this.settings = options; +} +RouteRequestREST.prototype = { + /** + * @lends module:RouteRequestREST# + */ + + /** + * request + * @type {String} + */ + requestString: null, + /** + * Constructeur (alias) + */ + constructor: RouteRequestREST, + /** + * Construction de la requête. + * + * @example + * // GET out : origin=2.416907353809513,48.8465772142297&destination=2.4248037771493673,48.84591353161838 + * // POST out : Not yet supported method POST ! + * @returns {String} request + */ + processRequestString: function processRequestString() { + // INFO + // construction simple sans template..., + // mais en attendant que les services soient fixés, on taggue ce composant en mode PROTOTYPE ! + this.logger.warn(" PROTOTYPE !"); + + // Mapping des options avec le service de l'API REST + var oParams = new _model_RouteParamREST__WEBPACK_IMPORTED_MODULE_2__["default"](this.settings); + var params = oParams.getParams(); + var request = ""; + for (var i = 0; i < params.length; i++) { + var o = params[i]; + if (request) { + request += "&"; + } + request += o.k + "=" + o.v; + } + + // Exemple : + // http://wxs.ign.fr/KEY/itineraire/rest/route.json? + // origin=& + // destination=& + // waypoints=& + // method=DISTANCE& + // graph=Pieton& + // graphName=Pieton& + // exclusions=& + // tolerance=10& + // srs= + + this.logger.trace(request); + this.requestString = request; + return this.requestString; + } +}; +/* harmony default export */ __webpack_exports__["default"] = (RouteRequestREST); + +/***/ }), +/* 56 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); + + +/** + * @classdesc + * Classe de gestion des param. des requêtes du service de calcul d'itineraire (REST). + * Permet le mapping avec les options du service. + * @constructor + * @alias Gp.Services.Route.Request.RouteParamREST + * @param {Object} options - options + * + * @private + */ +function RouteParamREST(options) { + if (!(this instanceof RouteParamREST)) { + throw new TypeError("RouteParamREST constructor cannot be called as a function."); + } + this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger(); + this.logger.trace("[Constructeur RouteParamREST ()]"); + /** + * Options en paramêtres du constructeur. + */ + this.options = options || {}; + + // mapping des options avec l'API REST + + /** Ressource utilisée */ + this.resource = this.options.resource; + + /** Coordonnées du point de départ. */ + this.start = this.options.startPoint.x + "," + this.options.startPoint.y; + + /** Coordonnées du point d’arrivée. */ + this.end = this.options.endPoint.x + "," + this.options.endPoint.y; + + /** Coordonnées des étapes point de départ. */ + this.intermediates = this.options.viaPoints; + + /** Nom du profile à utiliser */ + this.profile = this.options.graph; + + /** projection (code EPSG comme epsg:4326 ou wgs84) */ + this.crs = this.options.srs; + + /** Liste des contraintes */ + this.constraints = this.options.constraints; + + /** Nom de l'optimisation à utiliser */ + this.optimization = this.options.routePreference; + + /** Format de sortie (résumé de l’itinéraire) */ + this.getSteps = this.options.geometryInInstructions ? "true" : "false"; + + /** Unité des distances */ + this.distanceUnit = this.options.distanceUnit; + + /** Unité des durées */ + this.timeUnit = this.options.timeUnit; + + /** Attributs des voies */ + this.waysAttributes = this.options.waysAttributes; +} + +/** + * CLASSNAME + */ +RouteParamREST.CLASSNAME = "RouteParamREST"; +RouteParamREST.prototype = { + /** + * @lends module:RouteParamREST# + */ + + /** + * Constructeur (alias) + */ + constructor: RouteParamREST, + /** + * Retourne une liste de points + * @returns {String} une liste de points (sep '|') + */ + getIntermediates: function getIntermediates() { + var array = []; + if (this.intermediates.length !== 0) { + for (var i = 0; i < this.intermediates.length; i++) { + var obj = this.intermediates[i]; + array.push(obj.x + "," + obj.y); + } + } + return array.join("|"); + }, + /** + * Retourne une liste d'attributs + * @returns {String} une liste d'attributs (sep '|') + */ + getWaysAttributes: function getWaysAttributes() { + return this.waysAttributes.join("|"); + }, + /** + * Retourne un profile + * @returns {String} profile + */ + getProfile: function getProfile() { + return this.profile; + }, + /** + * Retourne un distanceUnit + * @returns {String} distanceUnit + */ + getDistanceUnit: function getDistanceUnit() { + if (this.distanceUnit === "m") { + return "meter"; + } + if (this.distanceUnit === "km") { + return "kilometer"; + } + return ""; + }, + /** + * Retourne une optimisation + * @returns {String} optimization + */ + getOptimization: function getOptimization() { + if (this.optimization) { + return this.optimization; + } else { + return ""; + } + }, + /** + * Retourne la liste des constraints + * @returns {String} une liste des constraints (sep '|') + */ + getConstraints: function getConstraints() { + var constraintArray = []; + if (this.constraints.length !== 0) { + for (var k = 0; k < this.constraints.length; k++) { + constraintArray.push(JSON.stringify(this.constraints[k])); + } + } + return constraintArray.join("|"); + } +}; + +/** + * Tableau de clefs/valeurs pour param. + * + * @returns {Array} liste de paramêtres + */ +RouteParamREST.prototype.getParams = function () { + var map = []; + map.push({ + k: "resource", + v: this.resource + }); + map.push({ + k: "start", + v: this.start + }); + map.push({ + k: "end", + v: this.end + }); + map.push({ + k: "geometryFormat", + v: "geojson" + }); + if (this.optimization) { + map.push({ + k: "optimization", + v: this.getOptimization() + }); + } + if (this.intermediates) { + map.push({ + k: "intermediates", + v: this.getIntermediates() + }); + } + if (this.profile) { + map.push({ + k: "profile", + v: this.getProfile() + }); + } + if (this.constraints) { + map.push({ + k: "constraints", + v: this.getConstraints() + }); + } + if (this.crs) { + map.push({ + k: "crs", + v: this.crs + }); + } + if (this.distanceUnit) { + map.push({ + k: "distanceUnit", + v: this.getDistanceUnit() + }); + } + if (this.timeUnit) { + map.push({ + k: "timeUnit", + v: this.timeUnit + }); + } + if (this.waysAttributes) { + map.push({ + k: "waysAttributes", + v: this.getWaysAttributes() + }); + } + return map; +}; +/* harmony default export */ __webpack_exports__["default"] = (RouteParamREST); + +/***/ }), +/* 57 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22); +/* harmony import */ var _model_RouteResponse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58); +/* harmony import */ var _model_RouteInstruction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(59); + + + + + + +/** + * Factory pour générer une reponse JSON à partir d'un XML ou d'un JSON + * (Factory) + * + * @module RouteResponseFactory + * @alias Gp.Services.Route.Response.RouteResponseFactory + * @private + */ +var RouteResponseFactory = { + /** + * interface unique + * + * @method build + * @static + * @param {Object} options - options definies dans le composant Route + * + * @example + * var options = { + * response : + * outputFormat : + * rawResponse : + * scope : + * onSuccess : + * onError : + * }; + * + */ + build: function build(options) { + // logger + var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("RouteResponseFactory"); + logger.trace("RouteResponseFactory::build()"); + var data = null; + if (options.response) { + if (options.rawResponse) { + logger.trace("analyze response : raw"); + data = options.response; + } else { + logger.trace("analyze response : json"); + var JSONResponse; + if (typeof options.response === "string") { + JSONResponse = JSON.parse(options.response); + } else { + JSONResponse = options.response; + } + + // construction de l'objet réponse JSON + if (JSONResponse) { + // le service renvoie t il une erreur ? + if (JSONResponse.message) { + // ex. {"message":"message not null", "status":"ERROR"} + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EXCEPTION", JSONResponse.message))); + return; + } + var legs = []; + var legSteps = []; + var steps = []; + data = new _model_RouteResponse__WEBPACK_IMPORTED_MODULE_3__["default"](); + if (data.hasOwnProperty("totalTime")) { + data.totalTime = parseFloat(JSONResponse.duration); + } + if (data.hasOwnProperty("totalDistance")) { + data.totalDistance = parseFloat(JSONResponse.distance); + } + if (data.hasOwnProperty("bbox")) { + data.bbox.left = parseFloat(JSONResponse.bbox[0]); + data.bbox.bottom = parseFloat(JSONResponse.bbox[1]); + data.bbox.right = parseFloat(JSONResponse.bbox[2]); + data.bbox.top = parseFloat(JSONResponse.bbox[3]); + } + if (data.hasOwnProperty("routeGeometry") && !options.geometryInInstructions) { + data.routeGeometry = JSONResponse.geometry; + } + if (data.hasOwnProperty("routeInstructions") && options.geometryInInstructions) { + var legList = JSONResponse.portions; + var i; + if (Array.isArray(legList) && legList.length) { + for (i = 0; i < legList.length; i++) { + legs.push(legList[i]); + } + } + if (legs.length) { + for (i = 0; i < legs.length; i++) { + legSteps.push(legs[i].steps); + } + } + if (legSteps.length) { + for (i = 0; i < legSteps.length; i++) { + steps = steps.concat(legSteps[i]); + } + } + steps.forEach(function (step) { + data.routeInstructions.push(new _model_RouteInstruction__WEBPACK_IMPORTED_MODULE_4__["default"]()); + data.routeInstructions[data.routeInstructions.length - 1].duration = step.duration; + data.routeInstructions[data.routeInstructions.length - 1].distance = step.distance; + data.routeInstructions[data.routeInstructions.length - 1].code = ""; + data.routeInstructions[data.routeInstructions.length - 1].instruction = ""; + data.routeInstructions[data.routeInstructions.length - 1].geometry = step.geometry; + + // on ne souhaite pas de ce type de valeur... + if (step.name === "Valeur non renseignée") { + step.name = ""; + } + switch (step.instruction.type) { + case "turn": + data.routeInstructions[data.routeInstructions.length - 1].instruction += "Tourner"; + break; + case "new name": + data.routeInstructions[data.routeInstructions.length - 1].instruction += "Continuer tout droit"; + break; + case "depart": + data.routeInstructions[data.routeInstructions.length - 1].instruction += "Départ"; + break; + case "arrive": + data.routeInstructions[data.routeInstructions.length - 1].instruction += "Arrivée"; + break; + case "merge": + data.routeInstructions[data.routeInstructions.length - 1].instruction += "Rejoindre"; + break; + case "ramp": + data.routeInstructions[data.routeInstructions.length - 1].instruction += "Prendre la bretelle"; + break; + case "on ramp": + data.routeInstructions[data.routeInstructions.length - 1].instruction += "Prendre la bretelle"; + break; + case "off ramp": + data.routeInstructions[data.routeInstructions.length - 1].instruction += "Prendre la sortie"; + break; + case "fork": + data.routeInstructions[data.routeInstructions.length - 1].instruction += "Sur la bifurcation, prendre"; + break; + case "end of road": + data.routeInstructions[data.routeInstructions.length - 1].instruction += "À la fin de la route, prendre"; + break; + case "use lane": + data.routeInstructions[data.routeInstructions.length - 1].instruction += "Utiliser la file"; + break; + case "continue": + data.routeInstructions[data.routeInstructions.length - 1].instruction += "Continuer"; + break; + case "roundabout": + data.routeInstructions[data.routeInstructions.length - 1].instruction += "Au rond-point"; + break; + case "rotary": + data.routeInstructions[data.routeInstructions.length - 1].instruction += "Au rond-point"; + break; + case "roundabout turn": + data.routeInstructions[data.routeInstructions.length - 1].instruction += "Au rond point, tourner"; + break; + case "notification": + data.routeInstructions[data.routeInstructions.length - 1].instruction += ""; + break; + default: + data.routeInstructions[data.routeInstructions.length - 1].instruction += "?" + step.instruction.type + "?"; + break; + } + if (step.instruction.modifier) { + switch (step.instruction.modifier) { + case "uturn": + data.routeInstructions[data.routeInstructions.length - 1].instruction = "Faire demi-tour"; + break; + case "sharp right": + data.routeInstructions[data.routeInstructions.length - 1].instruction += " complètement à droite"; + break; + case "right": + data.routeInstructions[data.routeInstructions.length - 1].instruction += " à droite"; + break; + case "slight right": + data.routeInstructions[data.routeInstructions.length - 1].instruction += " légèrement à droite"; + break; + case "straight": + data.routeInstructions[data.routeInstructions.length - 1].instruction = "Continuer tout droit"; + break; + case "slight left": + data.routeInstructions[data.routeInstructions.length - 1].instruction += " lègèrement à gauche"; + break; + case "left": + data.routeInstructions[data.routeInstructions.length - 1].instruction += " à gauche"; + break; + case "sharp left": + data.routeInstructions[data.routeInstructions.length - 1].instruction += " complètement à gauche"; + break; + default: + data.routeInstructions[data.routeInstructions.length - 1].instruction += " ?" + step.instruction.modifier + "?"; + break; + } + } + if (step.instruction.exit) { + data.routeInstructions[data.routeInstructions.length - 1].instruction += "".concat(step.instruction.exit, "e sortie"); + } + if (step.attributes.name) { + if (step.attributes.name.nom_1_droite || step.attributes.name.toponyme) { + data.routeInstructions[data.routeInstructions.length - 1].instruction += " sur"; + } + if (step.attributes.name.nom_1_droite) { + data.routeInstructions[data.routeInstructions.length - 1].instruction += " ".concat(step.attributes.name.nom_1_droite); + } + if (step.attributes.name.toponyme) { + data.routeInstructions[data.routeInstructions.length - 1].instruction += " ".concat(step.attributes.name.toponyme); + } + } + }); + } + } + if (!data) { + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_ANALYSE", "json"))); + return; + } + + // Si la réponse contenait une exception renvoyée par le service + if (data.exceptionReport) { + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EXCEPTION_2"))); + return; + } + } + } else { + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EMPTY"))); + return; + } + options.onSuccess.call(options.scope, data); + } +}; +/* harmony default export */ __webpack_exports__["default"] = (RouteResponseFactory); + +/***/ }), +/* 58 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/** + * Response object for {@link module:Services~route Gp.Services.route ()} invocation when successful. Received as the argument of onSuccess callback function. + * + * @property {Gp.BBox} bbox - Bounding Box of the route. Given when provideBBox parameter is used in function call. + * @property {Object} routeGeometry - Geometry (expressed in [GeoJSON]{@link http://geojson.org/}) of the route. + * @property {Array.} routeInstructions - Instructions of the route. + * @property {String} totalDistance - Length of the route. If distanceUnit parameter was set to "km" (default), totalDistance is a string containing the total distance expressed in kilometers, followed by " Km" (e.g. : "19.6 Km"). If distanceUnit parameter was set to "m", totalDistance is a string containing the total distance expressed in meters (e.g. : "19599.14"). + * @property {Float} totalTime - Route duration in seconds. + * + * @namespace + * @alias Gp.Services.RouteResponse + */ +function RouteResponse() { + if (!(this instanceof RouteResponse)) { + throw new TypeError("RouteResponse constructor cannot be called as a function."); + } + this.totalTime = null; + this.totalDistance = null; + this.bbox = { + left: null, + right: null, + top: null, + bottom: null + }; + this.routeGeometry = null; // FIXME can be null if option 'geometryInInstructions' is true ! + + this.routeInstructions = []; +} +RouteResponse.prototype = { + constructor: RouteResponse +}; +/* harmony default export */ __webpack_exports__["default"] = (RouteResponse); + +/***/ }), +/* 59 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/** + * Single Route Instruction object. + * + * @property {String} code - Instruction code : + * + * - "F" : Straight forward + * - "B" : U-turn + * - "L" : turn left + * - "R" : turn right + * - "BL" : turn left strongly + * - "BR" : turn right strongly + * - "FL" : turn lightly to the left + * - "FR" : turn lightly to the right + * - "round_about_entry" : round about entry + * - "round_about_exit" : round about exit + * + * @property {String} instruction - Instruction text : translated code + street name + * @property {Object} geometry - Geometry (expressed in [GeoJSON]{@link http://geojson.org/}) of the street. + * @property {Float} distance - Length of the instruction. Expressed in km or m, depending on distanceUnit parameter. + * @property {Float} duration - Instruction duration in seconds. + * + * @namespace + * @alias Gp.Services.Route.RouteInstruction + */ +function RouteInstruction() { + if (!(this instanceof RouteInstruction)) { + throw new TypeError("RouteInstruction constructor cannot be called as a function."); + } + this.duration = null; + this.distance = null; + this.code = null; + this.instruction = null; + this.geometry = null; // FIXME can be null if option 'geometryInInstructions' is false ! +} +RouteInstruction.prototype = { + constructor: RouteInstruction +}; +/* harmony default export */ __webpack_exports__["default"] = (RouteInstruction); + +/***/ }), +/* 60 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22); +/* harmony import */ var _CommonService__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7); +/* harmony import */ var _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24); +/* harmony import */ var _Request_ProcessIsoCurveRequest__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(61); +/* harmony import */ var _Response_ProcessIsoCurveResponseFactory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63); + + + + + + + + +/** + * @classdesc + * Appel du service d'isochrone/distance du Géoportail : + * envoi de la requête construite selon les paramètres en options, + * éventuellement parsing et analyse de la réponse, + * retour d'une réponse en paramètre de la fonction onSuccess. + * @constructor + * @extends {Gp.Services.CommonService} + * @alias Gp.Services.ProcessIsoCurve + * @param {Object} options - options spécifiques au service (+ les options heritées) + * + * @param {String} options.resource - La ressource utilisée pour le calcul : bdtopo-valhalla (par défaut) ou bdtopo-pgr. + * + * @param {String} options.outputFormat - Le format de la réponse du service iso : 'json' uniquement et par défaut. + * + * @param {Object} options.position - Point de départ du calcul. + * Coordonnées exprimées en longitudes, latitudes (EPSG:4326) + * @param {Float} options.position.x - Abcisse du point de départ du calcul d'isochrone/distance. + * @param {Float} options.position.y - Ordonnée du point de départ du calcul d'isochrone/distance. + * + * @param {String} options.srs - Projection. + * Système de coordonnées dans lequel les coordonnées du point « location » sont exprimées et + * dans lequel la géométrie de la courbe résultante sera exprimée. + * Par défaut, le système de coordonnées utilisé sera « EPSG:4326 ». + * + * @param {String} [options.graph = "voiture"] - Nom du graphe à utiliser pour le calcul (« Pieton » ou « Voiture »). + * La valeur par défaut est : «voiture» + * + * @param {Array.} [options.exclusions] - DEPRECATED: Ce paramètre est conservé pour une rétrocompatibilité de l'api. Le nouveau paramètre à utiliser est options.constraints. + * Critères d'exclusions à appliquer pour le calcul. + * On précise ici le type de tronçons que l'on ne veut pas que l'isochrone/distance emprunte + * (valeurs possibles : « toll » (éviter les péages), « bridge », « tunnel »). + * + * @param {Object[]} [options.constraints] - Critères de contraintes à appliquer sur un itinéraire. Les valeurs disponibles dépendent de la ressource utilisée. Il est donc utile de regarder le getCapabilities. + * @param {String} [options.constraints.constraintType] - Type de la contrainte. Généralement "banned". + * @param {String} [options.constraints.key] - Clé de la contrainte. Généralement "wayType". + * @param {String} [options.constraints.operator] - Opérateur de la contrainte. Généralement "=". + * @param {String} [options.constraints.value] - Valeur de la contrainte. Généralement "autoroute". + * + * @param {String} [options.method = "time"] - Méthode utilisée pour le calcul de la courbe iso. + * Les valeurs possible sont "time" pour un calcul d'isochrone, "distance" pour un calcul d'isodistance. + * Pas de valeur spécifié équivaut à un calcul d'isochrone. + * + * @param {String} [options.distanceUnit = "m"] - Indique si la distance doit être exprimée en km ou m dans la réponse ("m" or "km"). + * + * @param {String} [options.timeUnit = "second"] - Indique si la durée doit être exprimée en seconde, minute ou heure dans la réponse ("standard", "second", "minute", "hour"). Il peut-être formatté hh:mm::ss avec la valeur standard. + * + * @param {Float} options.time - Durée maximum (exprimée en secondes) à utiliser pour le calcul de la courbe à partir du ou jusqu'au point « location ». + * Ce paramètre doit être renseigné si l'option "méthod" a la valeur "time". + * Si l'option method n'est pas renseignée, ce paramètre doit être renseigné. + * + * @param {Float} options.distance - Distance maximum (exprimée en metres) à utiliser pour le calcul de la courbe à partir du ou j'usqu'au point « location ». + * Ce paramètre doit être renseigné si l'option "méthod" a la valeur "DISTANCE". + * Si l'option "method" n'est pas renseignée, ce paramètre sera ignoré. + * + * @param {Boolean} [options.reverse = false] - Indique si la géométrie résultante doit être lissée (« true ») pour ne pas avoir d'effet d'escalier. + * Par défaut, la valeur « false » est appliquée. + * + * @param {Boolean} [options.smoothing = false] - Indique si la géométrie résultante doit être lissée (« true ») pour ne pas avoir d'effet d'escalier. + * Par défaut, la valeur « false » est appliquée. + * + * @param {Boolean} [options.holes = false] - Indique si la géométrie résultante (surface) doit être retournée avec des trous (« true »). + * Par défaut, la valeur « false » est appliquée. + * + * @example + * var options = { + * // options communes aux services + * apiKey : null, + * serverUrl : 'http://localhost/service/', + * protocol : 'JSONP', // JSONP|XHR + * proxyURL : null, + * httpMethod : 'GET', // GET|POST + * timeOut : 10000, // ms + * rawResponse : false, // true|false + * scope : null, // this + * onSuccess : function (response) {}, + * onFailure : function (error) {}, + * // spécifique au service + * position : { + * x : 2.3242664298058053, + * y : 48.86118017324745 + * }, + * resource : bdtopo-valhalla, + * distance : 200, + * [time : ] + * method : "distance", + * graph : "voiture", + * reverse : false + * }; + */ + +function ProcessIsoCurve(options) { + if (!(this instanceof ProcessIsoCurve)) { + throw new TypeError(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("CLASS_CONSTRUCTOR", "ProcessIsoCurve")); + } + + /** + * Nom de la classe (heritage) + * FIXME instance ou classe ? + */ + this.CLASSNAME = "ProcessIsoCurve"; + + // appel du constructeur par heritage + _CommonService__WEBPACK_IMPORTED_MODULE_3__["default"].apply(this, arguments); + this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("Gp.Services.ProcessIsoCurve"); + this.logger.trace("[Constructeur ProcessIsoCurve (options)]"); + if (!options.position) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_MISSING", "position")); + } + + // on lance une exception afin d'eviter au service de le faire... + if (options.position.x === null) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_MISSING", "position.x")); + } + if (options.position.y === null) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_MISSING", "position.y")); + } + if (!options.time && !options.distance) { + throw new Error("Parameter (s) 'distance' missing. Parameter time to calculate an isochrone, parameter distance for an isodistance"); + } + + // si on a que le paramètre "distance" en entrée, on calcule une isodistance. + // Le paramètre "méthode" doit pour avoir une réponse du service, être passé à "distance" + if (!options.time && options.distance) { + this.options.method = "distance"; + // on supprime l'éventuel attribut time, résidu d'un appel antérieur + if (this.options.time) { + delete this.options.time; + } + } + + // si on a que le paramètre "time" en entrée, on calcule une isochrone. + // Le paramètre "méthode" doit pour avoir une réponse du service, être passé à "time" + if (options.time && !options.distance) { + this.options.method = "time"; + // on supprime l'éventuel attribut time, résidu d'un appel antérieur + if (this.options.distance) { + delete this.options.distance; + } + } + + // au cas où on a ni l'un, ni l'autre... + this.options.method = this.options.method || "time"; + + // options par defaut du service + // TODO: modifier la ressource lors de la mise en production du service + this.options.resource = options.resource || "bdtopo-valhalla"; + this.options.exclusions = options.exclusions || []; + this.options.reverse = options.reverse || false; + this.options.srs = options.srs || "EPSG:4326"; + this.options.distanceUnit = options.distanceUnit || "m"; + this.options.timeUnit = options.timeUnit || "second"; + + // options depreciees + if (options.smoothing) { + this.logger.warn("options.smoothing is DEPRECATED"); + } + this.options.smoothing = false; + if (options.holes) { + this.logger.warn("options.holes is DEPRECATED"); + } + this.options.holes = false; + + // Gestion du graphe + if (options.graph) { + if (options.graph === "Voiture") { + this.options.graph = "car"; + } + if (options.graph === "Pieton") { + this.options.graph = "pedestrian"; + } + } else { + this.options.graph = "car"; + } + + // Gestions des contraintes + this.options.constraints = []; + if (options.constraints) { + if (Array.isArray(options.constraints)) { + for (var k = 0; k < options.constraints.length; k++) { + this.options.constraints.push(options.constraints[k]); + } + } else { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_TYPE", "constraints")); + } + } + + // Gestion de l'ancien paramètre exclusions + var constraintTunnel = {}; + var constraintPont = {}; + var constraintAutoroute = {}; + if (options.exclusions) { + if (options.exclusions.length !== 0) { + this.logger.warn("options.exclusions is DEPRECATED !!"); + for (var c = 0; c < options.exclusions.length; c++) { + if (typeof options.exclusions[c] === "string") { + options.exclusions[c] = options.exclusions[c].toLowerCase(); + } else { + // on ne crée pas une erreur pour rétro-compatibilité avec les anciennes versions + continue; + } + if (options.exclusions[c] === "toll") { + constraintAutoroute.constraintType = "banned"; + constraintAutoroute.key = "wayType"; + constraintAutoroute.operator = "="; + constraintAutoroute.value = "autoroute"; + this.options.constraints.push(constraintAutoroute); + } + if (options.exclusions[c] === "tunnel") { + constraintTunnel.constraintType = "banned"; + constraintTunnel.key = "wayType"; + constraintTunnel.operator = "="; + constraintTunnel.value = "tunnel"; + this.options.constraints.push(constraintTunnel); + } + if (options.exclusions[c] === "bridge") { + constraintPont.constraintType = "banned"; + constraintPont.key = "wayType"; + constraintPont.operator = "="; + constraintPont.value = "pont"; + this.options.constraints.push(constraintPont); + } + } + } + } + + // on passe l'option outputFormat en minuscules afin d'éviter des exceptions. + this.options.outputFormat = typeof options.outputFormat === "string" ? options.outputFormat.toLowerCase() : "json"; + if (options.outputFormat && options.outputFormat !== "json") { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_NOT_SUPPORT", "outputFormat")); + } + this.options.outputFormat = "json"; + + // gestion de l'url du service par defaut + // si l'url n'est pas renseignée, il faut utiliser les urls par defaut + if (!this.options.serverUrl) { + var urlFound = _DefaultUrlService__WEBPACK_IMPORTED_MODULE_4__["default"].ProcessIsoCurve.newUrl(); + if (!urlFound) { + throw new Error("Url by default not found !"); + } + this.options.serverUrl = urlFound; + this.logger.trace("Serveur URL par defaut : " + this.options.serverUrl); + } +} + +/** + * @lends module:ProcessIsoCurve# + */ +ProcessIsoCurve.prototype = Object.create(_CommonService__WEBPACK_IMPORTED_MODULE_3__["default"].prototype, { + // todo + // getter/setter +}); + +/* + * Constructeur (alias) + */ +ProcessIsoCurve.prototype.constructor = ProcessIsoCurve; + +/** + * Création de la requête (overwrite) + * + * @param {Function} error - callback des erreurs + * @param {Function} success - callback + */ +ProcessIsoCurve.prototype.buildRequest = function (error, success) { + try { + var oIsoCurve = new _Request_ProcessIsoCurveRequest__WEBPACK_IMPORTED_MODULE_5__["default"](this.options); + if (!oIsoCurve.processRequestString()) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_REQUEST_BUILD")); + } + this.request = oIsoCurve.requestString; + } catch (e) { + error.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](e.message)); + return; + } + success.call(this, this.request); +}; + +/** + * (overwrite) + * Analyse de la reponse + * + * @param {Function} onError - callback des erreurs + * @param {Function} onSuccess - callback de succès de l'analyse de la réponse + */ +ProcessIsoCurve.prototype.analyzeResponse = function (onError, onSuccess) { + if (this.response) { + var options = { + response: this.response, + outputFormat: this.options.outputFormat, + rawResponse: this.options.rawResponse, + onSuccess: onSuccess, + onError: onError, + scope: this + }; + _Response_ProcessIsoCurveResponseFactory__WEBPACK_IMPORTED_MODULE_6__["default"].build(options); + } else { + onError.call(this, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EMPTY"))); + } +}; +/* harmony default export */ __webpack_exports__["default"] = (ProcessIsoCurve); + +/***/ }), +/* 61 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _model_ProcessIsoCurveParam__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(62); + + + + +/** + * @classdesc + * Classe de gestion des requêtes sur le service de calcul d'isoschrone/isodistance. + * Les requêtes peuvent être en mode GET ou POST, + * et le format de sorti est en JSON. + * + * @constructor + * @alias Gp.Services.ProcessIsoCurve.Request.ProcessIsoCurveRequest + * @param {Object} options - options + * + * @example + * var options = { + * httpMethod : 'GET', // GET|POST + * // spécifique au service + * position : { + * x : 2.3242664298058053, + * y : 48.86118017324745 + * }, + * graph : "car", + * method : 'time', + * time : 1000, //distance : 200 + * reverse : false, + * srs : 'EPSG:4326' + * }; + * + * try { + * + * var oIsoCurve = new ProcessIsoCurveRequest (options); + * if (!oIsoCurve.processRequestString ()) { + * // error + * } + * + * var request = oIsoCurve.requestString; + * + * } catch (e) { + * // error + * } + * @private + */ +function ProcessIsoCurveRequest(options) { + this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("ProcessIsoCurveRequest"); + this.logger.trace("[Constructeur ProcessIsoCurveRequest ()]"); + if (!(this instanceof ProcessIsoCurveRequest)) { + throw new TypeError("ProcessIsoCurveRequest constructor cannot be called as a function."); + } + + // existance des options + if (!options) { + throw new Error(_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("PARAM_EMPTY", "options")); + } + + /** + * Liste des options + */ + this.settings = options; + + /** + * Mode HTPP. + * Par defaut, "GET". + * @type {String} + */ + this.mode = this.settings.httpMethod || "GET"; +} +ProcessIsoCurveRequest.prototype = { + /** + * @lends module:ProcessIsoCurveRequest# + */ + + /** + * Requête + * @type {String} + */ + requestString: null, + /** + * Constructeur (alias) + */ + constructor: ProcessIsoCurveRequest, + /** + * Construction de la requête. + * + * @example + * // GET out : + * // (http://wxs.ign.fr/KEY/isochrone?) + * // resource=& + * // point=& + * // costValue=& + * // costType=& + * // profile=& + * // constraints=& + * // direction=& + * // crs= + * + * // POST out : + * { + * resource: "bduni-idf-pgr", + * point: "2.337306,48.849319", + * costValue: 100, + * costType: "time", + * profile: "car", + * constraints: [{ + * constraintType: "banned", + * key: "ways_type", + * operator: "=", + * value: "autoroute" + * }] + * } + * + * @returns {String} request + */ + processRequestString: function processRequestString() { + var request = ""; + var i = 0; + switch (this.mode) { + case "GET": + this.logger.trace("Process GET Request"); + + // Mapping des options avec le service de l'API REST + var oParams = new _model_ProcessIsoCurveParam__WEBPACK_IMPORTED_MODULE_2__["default"](this.settings); + var params = oParams.getParams(); + for (i = 0; i < params.length; i++) { + var o = params[i]; + if (request) { + request += "&"; + } + request += o.k + "=" + o.v; + } + break; + case "POST": + this.logger.trace("Process POST Request"); + // creation du JSON + var postRequest = {}; + postRequest.resource = this.settings.resource; + postRequest.point = this.settings.position.x + "," + this.settings.position.y; + if (this.settings.method === "distance") { + postRequest.costType = "distance"; + postRequest.costValue = this.settings.distance; + } else { + postRequest.costType = "time"; + postRequest.costValue = this.settings.time; + } + postRequest.profile = this.settings.graph; + if (this.settings.reverse) { + postRequest.direction = "arrival"; + } else { + postRequest.direction = "departure"; + } + postRequest.constraints = this.settings.constraints; + postRequest.distanceUnit = this.settings.distanceUnit; + postRequest.timeUnit = this.settings.timeUnit; + postRequest.crs = this.settings.srs; + + // conversion en chaîne de caractères + request = JSON.stringify(postRequest); + break; + default: + this.logger.error("No other HTTP method supported by the service !"); + } + this.logger.trace(request); + this.requestString = request; + return this.requestString; + } +}; +/* harmony default export */ __webpack_exports__["default"] = (ProcessIsoCurveRequest); + +/***/ }), +/* 62 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); + + +/** + * @classdesc + * + * Classe de gestion des param. des requêtes du service de calcul des iso. + * Permet le mapping avec les options du service. + * + * @constructor + * @alias Gp.Services.ProcessIsoCurve.Request.ProcessIsoCurveParam + * @param {Object} options - options + * @private + * + */ +function ProcessIsoCurveParam(options) { + if (!(this instanceof ProcessIsoCurveParam)) { + throw new TypeError("ProcessIsoCurveParam constructor cannot be called as a function."); + } + this.logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger(); + this.logger.trace("[Constructeur ProcessIsoCurveParam ()]"); + + /** + * Options en paramêtres du constructeur. + */ + this.options = options || {}; + + // mapping des options avec l'API REST + + /** Identifiant de l’isochrone */ + this.id = this.options.id; + + /** Resource */ + this.resource = this.options.resource; + + /** Coordonnées de départ (ou arrivée si le reverse est à true). */ + this.point = this.options.position; + + /** projection (code EPSG comme epsg:4326 ou wgs84) */ + this.crs = this.options.srs; + + /** + * Profil de véhicule à utiliser pour le calcul. + * Voiture ou Pieton + */ + this.profile = this.options.graph; + + /** Liste des règles de restrictions à utiliser */ + this.constraints = this.options.constraints; + this.reverse = this.options.reverse; + this.timeUnit = this.options.timeUnit; + this.distanceUnit = this.options.distanceUnit; + + /** + * "time" pour isochrone ou "distance" for isodistance. + * Par defaut, time... + */ + if (this.options.method === "distance") { + this.costType = "distance"; + this.costValue = this.options.distance; + if (this.distanceUnit === "m" && this.costValue >= 50000) { + this.distanceUnit = "km"; + this.costValue /= 1000; + } + } else { + this.costType = "time"; + this.costValue = this.options.time; + } +} + +/** + * CLASSNAME + */ +ProcessIsoCurveParam.CLASSNAME = "ProcessIsoCurveParam"; +ProcessIsoCurveParam.prototype = { + /** + * @lends module:ProcessIsoCurveParam# + */ + + /** + * Constructeur (alias) + */ + constructor: ProcessIsoCurveParam, + /** + * Retourne le point + * @returns {String} x,y + */ + getLocation: function getLocation() { + return this.point.x + "," + this.point.y; + }, + /** + * Retourne l'unité de la distance + * @returns {String} + */ + getDistanceUnit: function getDistanceUnit() { + if (this.distanceUnit === "m") { + return "meter"; + } + if (this.distanceUnit === "km") { + return "kilometer"; + } + return ""; + }, + /** + * Retourne la liste des contraintes + * @returns {String} + */ + getConstraints: function getConstraints() { + var constraintArray = []; + if (this.constraints.length !== 0) { + for (var k = 0; k < this.constraints.length; k++) { + constraintArray.push(JSON.stringify(this.constraints[k])); + } + } + return constraintArray.join("|"); + }, + /** + * Retourne la direction + * @returns {String} + */ + getDirection: function getDirection() { + if (this.reverse) { + return "arrival"; + } else { + return "departure"; + } + } +}; + +/** + * Tableau de clefs/valeurs pour param. + * + * @returns {Object[]} KVP + */ +ProcessIsoCurveParam.prototype.getParams = function () { + var map = []; + map.push({ + k: "resource", + v: this.resource + }); + map.push({ + k: "point", + v: this.getLocation() + }); + map.push({ + k: "direction", + v: this.getDirection() + }); + map.push({ + k: "costType", + v: this.costType + }); + map.push({ + k: "costValue", + v: this.costValue + }); + map.push({ + k: "profile", + v: this.profile + }); + map.push({ + k: "timeUnit", + v: this.timeUnit + }); + map.push({ + k: "distanceUnit", + v: this.getDistanceUnit() + }); + if (this.crs) { + map.push({ + k: "crs", + v: this.crs + }); + } + if (this.constraints) { + map.push({ + k: "constraints", + v: this.getConstraints() + }); + } + return map; +}; +/* harmony default export */ __webpack_exports__["default"] = (ProcessIsoCurveParam); + +/***/ }), +/* 63 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22); +/* harmony import */ var _model_ProcessIsoCurveResponse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(64); + + + + + +/** + * Factory pour générer une reponse JSON à partir d'un JSON + * (Factory) + * + * @module ProcessIsoCurveResponseFactory + * @alias Gp.Services.ProcessIsoCurve.Response.ProcessIsoCurveResponseFactory + * @private + */ +var ProcessIsoCurveResponseFactory = { + /** + * interface unique + * + * @method build + * @static + * @param {Object} options - options definies dans le composant ProcessIsoCurve + * + * @example + * var options = { + * response : + * outputFormat : + * rawResponse : + * scope : + * onSuccess : + * onError : + * }; + * + */ + build: function build(options) { + // logger + var logger = _Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_0__["default"].getLogger("ProcessIsoCurveResponseFactory"); + logger.trace(["ProcessIsoCurveResponseFactory::build()"]); + var data = null; + if (options.response) { + if (options.rawResponse) { + logger.trace("analyze response : raw"); + data = options.response; + } else { + logger.trace("analyze response : json"); + var JSONResponse; + if (typeof options.response === "string") { + JSONResponse = JSON.parse(options.response); + } else { + JSONResponse = options.response; + } + + // analyse de la reponse + // création de l'objet de réponse + data = new _model_ProcessIsoCurveResponse__WEBPACK_IMPORTED_MODULE_3__["default"](); + + // remplissage de l'objet créé avec les attribtuts de la réponse du service + if (JSONResponse) { + if (JSONResponse.costType === "distance") { + data.time = ""; + data.distance = JSONResponse.costValue; + } else { + data.time = JSONResponse.costValue; + data.distance = ""; + } + data.message = ""; + data.id = ""; + data.srs = JSONResponse.crs; + data.geometry = JSONResponse.geometry; + var coords = JSONResponse.point.split(","); + if (data.location) { + data.location.x = coords[0]; + data.location.y = coords[1]; + } + } else { + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_ANALYSE", options.response))); + return; + } + + // info : en cas de problèmes de droits (clé invalide ou autre), la réponse est au format XML !! + // ex. Key does not exist or has expired + // mais le statut est 403, l'erreur est donc remontée plus tôt. + if (data.exceptionReport) { + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"]({ + message: _Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EXCEPTION", data.exceptionReport), + type: _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"].TYPE_SRVERR, + status: 200 + })); + return; + } + } + } else { + // si la réponse est vide, on appelle le callback d'erreur + options.onError.call(options.scope, new _Exceptions_ErrorService__WEBPACK_IMPORTED_MODULE_2__["default"](_Utils_MessagesResources__WEBPACK_IMPORTED_MODULE_1__["default"].getMessage("SERVICE_RESPONSE_EMPTY"))); + return; + } + + // si tout s'est bien passé, on appelle le callback de succès + options.onSuccess.call(options.scope, data); + } +}; +/* harmony default export */ __webpack_exports__["default"] = (ProcessIsoCurveResponseFactory); + +/***/ }), +/* 64 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/** + * Response object for {@link module:Services~isoCurve Gp.Services.isoCurve ()} invocation when successful. Received as the argument of onSuccess callback function. + * + * @property {Float} distance - distance (expressed in meters) used for the request. + * @property {Float} time - time (expressed in seconds) used for the request. + * @property {Object} geometry - Geometry (expressed in [GeoJSON]{@link http://geojson.org/}) of the isocurve. + * @property {String} id - request id (used by underlying webservice). + * @property {Gp.Point} location - Position of the start or end point used for the request (expressed in "srs" coordinates system). + * @property {String} message - message + * @property {String} srs - Identifier of the coordinates system used for the isocurve. + * + * @namespace + * @alias Gp.Services.IsoCurveResponse + * + */ +function ProcessIsoCurveResponse() { + if (!(this instanceof ProcessIsoCurveResponse)) { + throw new TypeError("ProcessIsoCurveResponse constructor cannot be called as a function."); + } + this.message = null; + this.id = null; + this.location = {}; + this.location.x = null; + this.location.y = null; + this.srs = null; + this.geometry = null; + this.time = null; + this.distance = null; +} +ProcessIsoCurveResponse.prototype = { + constructor: ProcessIsoCurveResponse +}; +/* harmony default export */ __webpack_exports__["default"] = (ProcessIsoCurveResponse); + +/***/ }) +/******/ ])["default"]; +}); \ No newline at end of file diff --git a/v3.4.4/dist/GpServices.js b/v3.4.4/dist/GpServices.js new file mode 100644 index 00000000..75472c23 --- /dev/null +++ b/v3.4.4/dist/GpServices.js @@ -0,0 +1,30 @@ +/*! + * @brief Geoportal resources access library + * + * This software is released under the licence CeCILL-B (Free BSD compatible) + * @see http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt + * @see http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.txt + * @see http://www.cecill.info/ + * + * copyright CeCILL-B + * copyright IGN + * @author IGN + * @version 3.4.4 + * @date 17/11/2024 + * + */ +/*! + * @overview es6-promise - a tiny implementation of Promises/A+. + * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) + * @license Licensed under MIT license + * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE + * @version v4.2.4 + */ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("node-fetch")):"function"==typeof define&&define.amd?define("Gp",["require"],t):"object"==typeof exports?exports.Gp=t(require("node-fetch")):e.Gp=t(e[void 0])}(this,(function(e){return function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=7)}([function(e){e.exports=JSON.parse('{"name":"geoportal-access-lib","version":"3.4.4","date":"17/11/2024","description":"French Geoportal resources access library","module":"src/Gp.js","main":"dist/GpServices-src.js","homepage":"https://github.com/IGNF/geoportal-access-lib#readme","scripts":{"clean":"echo \\"Warning: no yet implemented!\\" && exit 0","setup":"npm install","cover":"nyc --reporter=lcov --reporter=text npm run test","eslint":"eslint src/","build":"webpack --mode=none","build:prod":"webpack --mode=production","build:dev":"webpack --mode=development","test":"mocha-webpack --reporter mochawesome --reporter-options reportDir=test-report,reportFilename=index --webpack-config ./test/webpack/webpack.test.js --glob \\"test_*.js\\" test/spec/","test:serve":"webpack-dev-server --hot --config ./test/webpack/webpack.test.serve.js","test:serve:docker":"webpack-dev-server --hot --config ./test/webpack/webpack.test.serve.docker.js","test:end-to-end:serve":"webpack-dev-server --hot --config ./test/webpack/webpack.end-to-end.serve.js","test:end-to-end:serve:docker":"webpack-dev-server --hot --config ./test/webpack/webpack.end-to-end.serve.docker.js","sample":"npm run sample:serve","sample:serve":"webpack-dev-server --mode=none --open-page samples/index-src.html --https --content-base . --output-public-path \'/dist/\' --port 9001 --open","sample:serve:prod":"webpack-dev-server --mode=production --open-page samples/index-prod.html --content-base . --output-public-path \'/dist/\' --port 9001 --open","sample:serve:dev":"webpack-dev-server --mode=development --open-page samples/index-map.html --content-base . --output-public-path \'/dist/\' --port 9001 --open","doc":"npm run doc:serve","doc:serve":"webpack-dev-server --content-base jsdoc --port 9001 --open"},"engines":{"node":"<=16"},"nyc":{"include":["src/**/*.js"],"instrument":false,"sourceMap":false},"repository":{"type":"git","url":"https://github.com/IGNF/geoportal-access-lib.git"},"keywords":["geoplateforme","geoportail","webservice","javascript","es6"],"author":"IGNF","license":"CECILL-B","dependencies":{"es6-promise":"^4.2.4","node-fetch":"^2.6.1","@xmldom/xmldom":"^0.8.10"},"devDependencies":{"@babel/core":"^7.12.10","@babel/plugin-transform-template-literals":"^7.12.1","@babel/preset-env":"^7.12.11","babel-loader":"^8.2.2","chai":"^4.1.2","clean-webpack-plugin":"^3.0.0","copy-webpack-plugin":"^5.1.2","eslint":"^7.18.0","eslint-config-standard":"^16.0.2","eslint-loader":"^4.0.2","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^5.0.0","glob":"^7.1.2","handlebars-layouts":"^3.1.4","handlebars-webpack-plugin":"^1.4.1","html-webpack-plugin":"^4.5.1","istanbul-instrumenter-loader":"^3.0.1","jsdoc-webpack-plugin":"^0.3.0","loglevel":"^1.6.1","mocha":"^7.2.0","mocha-loader":"^5.1.5","mocha-webpack":"^2.0.0-beta.0","mochawesome":"^6.2.1","nyc":"^15.1.0","path":"^0.12.7","replace-bundle-webpack-plugin":"^1.0.0","sinon":"^9.2.4","sinon-es6":"0.0.3","speed-measure-webpack-plugin":"^1.4.2","string-template":"^1.0.0","terser-webpack-plugin":"^2.3.8","webpack":"^4.46.0","webpack-cli":"^3.3.12","webpack-dev-server":"^3.11.2","webpack-node-externals":"^2.5.2","webpack-shell-plugin":"^0.5.0"},"bundledDependencies":[],"peerDependencies":{},"optionalDependencies":{}}')},function(e,t,r){"use strict";function o(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var n=o({HTML:"text/html",isHTML:function(e){return e===n.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),s=o({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===s.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t.find=function(e,t,r){if(void 0===r&&(r=Array.prototype),e&&"function"==typeof r.find)return r.find.call(e,t);for(var o=0;o=0&&t<=l.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),l.name=e,l.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},l.methodFactory=t||u,l.getLevel=function(){return null!=a?a:null!=i?i:s},l.setLevel=function(e,t){return a=f(e),!1!==t&&function(e){var t=(r[e]||"silent").toUpperCase();if("undefined"!=typeof window&&p){try{return void(window.localStorage[p]=t)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+t+";"}catch(e){}}}(a),c.call(l)},l.setDefaultLevel=function(e){i=f(e),h()||l.setLevel(e,!1)},l.resetLevel=function(){a=null,function(){if("undefined"!=typeof window&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),c.call(l)},l.enableAll=function(e){l.setLevel(l.levels.TRACE,e)},l.disableAll=function(e){l.setLevel(l.levels.SILENT,e)},l.rebuild=function(){if(n!==l&&(s=f(n.getLevel())),c.call(l),n===l)for(var e in o)o[e].rebuild()},s=f(n?n.getLevel():"WARN");var d=h();null!=d&&(a=f(d)),c.call(l)}(n=new p).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new p(e,n.methodFactory)),t};var h="undefined"!=typeof window?window.log:void 0;return n.noConflict=function(){return"undefined"!=typeof window&&window.log===n&&(window.log=h),n},n.getLoggers=function(){return o},n.default=n,n})?o.call(t,r,t,e):o)||(e.exports=n)}()},function(t,r){t.exports=e},function(e,t,r){var o=r(5);t.DOMImplementation=o.DOMImplementation,t.XMLSerializer=o.XMLSerializer,t.DOMParser=r(10).DOMParser},function(e,t,r){var o=r(1),n=o.find,s=o.NAMESPACE;function i(e){return""!==e}function a(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function c(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(i):[]}(e);return Object.keys(t.reduce(a,{}))}function l(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function u(e,t){var r=e.prototype;if(!(r instanceof t)){function o(){}o.prototype=t.prototype,l(r,o=new o),e.prototype=r=o}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e)}var p={},h=p.ELEMENT_NODE=1,f=p.ATTRIBUTE_NODE=2,d=p.TEXT_NODE=3,g=p.CDATA_SECTION_NODE=4,m=p.ENTITY_REFERENCE_NODE=5,v=p.ENTITY_NODE=6,y=p.PROCESSING_INSTRUCTION_NODE=7,w=p.COMMENT_NODE=8,E=p.DOCUMENT_NODE=9,b=p.DOCUMENT_TYPE_NODE=10,S=p.DOCUMENT_FRAGMENT_NODE=11,R=p.NOTATION_NODE=12,T={},_={},N=(T.INDEX_SIZE_ERR=(_[1]="Index size error",1),T.DOMSTRING_SIZE_ERR=(_[2]="DOMString size error",2),T.HIERARCHY_REQUEST_ERR=(_[3]="Hierarchy request error",3)),A=(T.WRONG_DOCUMENT_ERR=(_[4]="Wrong document",4),T.INVALID_CHARACTER_ERR=(_[5]="Invalid character",5),T.NO_DATA_ALLOWED_ERR=(_[6]="No data allowed",6),T.NO_MODIFICATION_ALLOWED_ERR=(_[7]="No modification allowed",7),T.NOT_FOUND_ERR=(_[8]="Not found",8)),x=(T.NOT_SUPPORTED_ERR=(_[9]="Not supported",9),T.INUSE_ATTRIBUTE_ERR=(_[10]="Attribute in use",10));T.INVALID_STATE_ERR=(_[11]="Invalid state",11),T.SYNTAX_ERR=(_[12]="Syntax error",12),T.INVALID_MODIFICATION_ERR=(_[13]="Invalid modification",13),T.NAMESPACE_ERR=(_[14]="Invalid namespace",14),T.INVALID_ACCESS_ERR=(_[15]="Invalid access",15);function O(e,t){if(t instanceof Error)var r=t;else r=this,Error.call(this,_[e]),this.message=_[e],Error.captureStackTrace&&Error.captureStackTrace(this,O);return r.code=e,t&&(this.message=this.message+": "+t),r}function C(){}function P(e,t){this._node=e,this._refresh=t,I(this)}function I(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(ve(e,"length",r.length),!e.$$length||r.length=0))throw new O(A,new Error(e.tagName+"@"+r));for(var n=t.length-1;o"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function j(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(j(e,t))return!0}while(e=e.nextSibling)}function V(){this.ownerDocument=this}function F(e,t,r,o){e&&e._inc++,r.namespaceURI===s.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function H(e,t,r){if(e&&e._inc){e._inc++;var o=t.childNodes;if(r)o[o.length++]=r;else{for(var n=t.firstChild,s=0;n;)o[s++]=n,n=n.nextSibling;o.length=s,delete o[o.length]}}}function z(e,t){var r=t.previousSibling,o=t.nextSibling;return r?r.nextSibling=o:e.firstChild=o,o?o.previousSibling=r:e.lastChild=r,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,H(e.ownerDocument,e),t}function B(e){return e&&e.nodeType===U.DOCUMENT_TYPE_NODE}function X(e){return e&&e.nodeType===U.ELEMENT_NODE}function Y(e){return e&&e.nodeType===U.TEXT_NODE}function J(e,t){var r=e.childNodes||[];if(n(r,X)||B(t))return!1;var o=n(r,B);return!(t&&o&&r.indexOf(o)>r.indexOf(t))}function K(e,t){var r=e.childNodes||[];if(n(r,(function(e){return X(e)&&e!==t})))return!1;var o=n(r,B);return!(t&&o&&r.indexOf(o)>r.indexOf(t))}function W(e,t,r){if(!function(e){return e&&(e.nodeType===U.DOCUMENT_NODE||e.nodeType===U.DOCUMENT_FRAGMENT_NODE||e.nodeType===U.ELEMENT_NODE)}(e))throw new O(N,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new O(A,"child not in parent");if(!function(e){return e&&(X(e)||Y(e)||B(e)||e.nodeType===U.DOCUMENT_FRAGMENT_NODE||e.nodeType===U.COMMENT_NODE||e.nodeType===U.PROCESSING_INSTRUCTION_NODE)}(t)||B(t)&&e.nodeType!==U.DOCUMENT_NODE)throw new O(N,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function $(e,t,r){var o=e.childNodes||[],s=t.childNodes||[];if(t.nodeType===U.DOCUMENT_FRAGMENT_NODE){var i=s.filter(X);if(i.length>1||n(s,Y))throw new O(N,"More than one element or text in fragment");if(1===i.length&&!J(e,r))throw new O(N,"Element in fragment can not be inserted before doctype")}if(X(t)&&!J(e,r))throw new O(N,"Only one element can be added and only after doctype");if(B(t)){if(n(o,B))throw new O(N,"Only one doctype is allowed");var a=n(o,X);if(r&&o.indexOf(a)1||n(s,Y))throw new O(N,"More than one element or text in fragment");if(1===i.length&&!K(e,r))throw new O(N,"Element in fragment can not be inserted before doctype")}if(X(t)&&!K(e,r))throw new O(N,"Only one element can be added and only after doctype");if(B(t)){if(n(o,(function(e){return B(e)&&e!==r})))throw new O(N,"Only one doctype is allowed");var a=n(o,X);if(r&&o.indexOf(a)=0;R--){if(""===(T=n[R]).prefix&&T.namespace===e.namespaceURI){p=T.namespace;break}}if(p!==e.namespaceURI)for(R=n.length-1;R>=0;R--){var T;if((T=n[R]).namespace===e.namespaceURI){T.prefix&&(u=T.prefix+":"+l);break}}}t.push("<",u);for(var _=0;_"),r&&/^script$/i.test(l))for(;c;)c.data?t.push(c.data):me(c,t,r,o,n.slice()),c=c.nextSibling;else for(;c;)me(c,t,r,o,n.slice()),c=c.nextSibling;t.push("")}else t.push("/>");return;case E:case S:for(c=e.firstChild;c;)me(c,t,r,o,n.slice()),c=c.nextSibling;return;case f:return ge(t,e.name,e.value);case d:return t.push(e.data.replace(/[<&>]/g,G));case g:return t.push("");case w:return t.push("\x3c!--",e.data,"--\x3e");case b:var O=e.publicId,C=e.systemId;if(t.push("");else if(C&&"."!=C)t.push(" SYSTEM ",C,">");else{var P=e.internalSubset;P&&t.push(" [",P,"]"),t.push(">")}return;case y:return t.push("");case m:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ve(e,t,r){e[t]=r}O.prototype=Error.prototype,l(T,O),C.prototype={length:0,item:function(e){return e>=0&&e0},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r)for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&r[o]===e)return o;t=t.nodeType==f?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];t=t.nodeType==f?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},l(p,U),l(p,U.prototype),V.prototype={nodeName:"#document",nodeType:E,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==S){for(var r=e.firstChild;r;){var o=r.nextSibling;this.insertBefore(r,t),r=o}return e}return Z(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===h&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),z(this,e)},replaceChild:function(e,t){Z(this,e,t,Q),e.ownerDocument=this,t&&this.removeChild(t),X(e)&&(this.documentElement=e)},importNode:function(e,t){return function e(t,r,o){var n;switch(r.nodeType){case h:(n=r.cloneNode(!1)).ownerDocument=t;case S:break;case f:o=!0}n||(n=r.cloneNode(!1));if(n.ownerDocument=t,n.parentNode=null,o)for(var s=r.firstChild;s;)n.appendChild(e(t,s,o)),s=s.nextSibling;return n}(this,e,t)},getElementById:function(e){var t=null;return j(this.documentElement,(function(r){if(r.nodeType==h&&r.getAttribute("id")==e)return t=r,!0})),t},getElementsByClassName:function(e){var t=c(e);return new P(this,(function(r){var o=[];return t.length>0&&j(r.documentElement,(function(n){if(n!==r&&n.nodeType===h){var s=n.getAttribute("class");if(s){var i=e===s;if(!i){var a=c(s);i=t.every((l=a,function(e){return l&&-1!==l.indexOf(e)}))}i&&o.push(n)}}var l})),o}))},createElement:function(e){var t=new ee;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new C,(t.attributes=new M)._ownerElement=t,t},createDocumentFragment:function(){var e=new ue;return e.ownerDocument=this,e.childNodes=new C,e},createTextNode:function(e){var t=new oe;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ne;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new se;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new pe;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){var t=new te;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new le;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var r=new ee,o=t.split(":"),n=r.attributes=new M;return r.childNodes=new C,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,2==o.length?(r.prefix=o[0],r.localName=o[1]):r.localName=t,n._ownerElement=r,r},createAttributeNS:function(e,t){var r=new te,o=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,2==o.length?(r.prefix=o[0],r.localName=o[1]):r.localName=t,r}},u(V,U),ee.prototype={nodeType:h,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===S?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,H(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||""},setAttributeNS:function(e,t,r){var o=this.ownerDocument.createAttributeNS(e,t);o.value=o.nodeValue=""+r,this.setAttributeNode(o)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new P(this,(function(t){var r=[];return j(t,(function(o){o===t||o.nodeType!=h||"*"!==e&&o.tagName!=e||r.push(o)})),r}))},getElementsByTagNameNS:function(e,t){return new P(this,(function(r){var o=[];return j(r,(function(n){n===r||n.nodeType!==h||"*"!==e&&n.namespaceURI!==e||"*"!==t&&n.localName!=t||o.push(n)})),o}))}},V.prototype.getElementsByTagName=ee.prototype.getElementsByTagName,V.prototype.getElementsByTagNameNS=ee.prototype.getElementsByTagNameNS,u(ee,U),te.prototype.nodeType=f,u(te,U),re.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(_[N])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length}},u(re,U),oe.prototype={nodeName:"#text",nodeType:d,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var o=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(o,this.nextSibling),o}},u(oe,re),ne.prototype={nodeName:"#comment",nodeType:w},u(ne,re),se.prototype={nodeName:"#cdata-section",nodeType:g},u(se,re),ie.prototype.nodeType=b,u(ie,U),ae.prototype.nodeType=R,u(ae,U),ce.prototype.nodeType=v,u(ce,U),le.prototype.nodeType=m,u(le,U),ue.prototype.nodeName="#document-fragment",ue.prototype.nodeType=S,u(ue,U),pe.prototype.nodeType=y,u(pe,U),he.prototype.serializeToString=function(e,t,r){return fe.call(e,t,r)},U.prototype.toString=fe;try{if(Object.defineProperty){Object.defineProperty(P.prototype,"length",{get:function(){return I(this),this.$$length}}),Object.defineProperty(U.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case h:case S:var r=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&r.push(e(t)),t=t.nextSibling;return r.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case h:case S:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ve=function(e,t,r){e["$$"+t]=r}}}catch(e){}t.DocumentType=ie,t.DOMException=O,t.DOMImplementation=L,t.Element=ee,t.Node=U,t.NodeList=C,t.XMLSerializer=he},function(e,t,r){(function(t,r){ +/*! + * @overview es6-promise - a tiny implementation of Promises/A+. + * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) + * @license Licensed under MIT license + * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE + * @version v4.2.8+1e68dce6 + */var o;o=function(){"use strict";function e(e){return"function"==typeof e}var o=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},n=0,s=void 0,i=void 0,a=function(e,t){d[n]=e,d[n+1]=t,2===(n+=2)&&(i?i(g):E())},c="undefined"!=typeof window?window:void 0,l=c||{},u=l.MutationObserver||l.WebKitMutationObserver,p="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var e=setTimeout;return function(){return e(g,1)}}var d=new Array(1e3);function g(){for(var e=0;e1)for(var r=1;r=t+r||t?new java.lang.String(e,t,r)+"":e}function v(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}h.prototype.parseFromString=function(e,t){var r=this.options,o=new u,n=r.domBuilder||new f,i=r.errorHandler,a=r.locator,l=r.xmlns||{},h=/\/x?html?$/.test(t),d=h?s.HTML_ENTITIES:s.XML_ENTITIES;a&&n.setDocumentLocator(a),o.errorHandler=function(e,t,r){if(!e){if(t instanceof f)return t;e=t}var o={},n=e instanceof Function;function s(t){var s=e[t];!s&&n&&(s=2==e.length?function(r){e(t,r)}:e),o[t]=s&&function(e){s("[xmldom "+t+"]\t"+e+g(r))}||function(){}}return r=r||{},s("warning"),s("error"),s("fatalError"),o}(i,n,a),o.domBuilder=r.domBuilder||n,h&&(l[""]=c.HTML),l.xml=l.xml||c.XML;var m=r.normalizeLineEndings||p;return e&&"string"==typeof e?o.parse(m(e),l,d):o.errorHandler.error("invalid doc source"),n.doc},f.prototype={startDocument:function(){this.doc=(new a).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,r,o){var n=this.doc,s=n.createElementNS(e,r||t),i=o.length;v(this,s),this.currentElement=s,this.locator&&d(this.locator,s);for(var a=0;a",lt:"<",quot:'"'}),t.HTML_ENTITIES=o({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),t.entityMap=t.HTML_ENTITIES},function(e,t,r){var o=r(1).NAMESPACE,n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+n.source+s.source+"*(?::"+n.source+s.source+"*)?$");function a(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,a)}function c(){}function l(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function u(e,t,r,n,s,i){function a(e,t,o){r.attributeNames.hasOwnProperty(e)&&i.fatalError("Attribute "+e+" redefined"),r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,s),o)}for(var c,l=++t,u=0;;){var p=e.charAt(l);switch(p){case"=":if(1===u)c=e.slice(t,l),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(i.warning('attribute value must after "="'),c=e.slice(t,l)),t=l+1,!((l=e.indexOf(p,t))>0))throw new Error("attribute value no end '"+p+"' match");a(c,h=e.slice(t,l),t-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');a(c,h=e.slice(t,l),t),i.warning('attribute "'+c+'" missed start quot('+p+")!!"),t=l+1,u=5}break;case"/":switch(u){case 0:r.setTagName(e.slice(t,l));case 5:case 6:case 7:u=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),0==u&&r.setTagName(e.slice(t,l)),l;case">":switch(u){case 0:r.setTagName(e.slice(t,l));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=e.slice(t,l)).slice(-1)&&(r.closed=!0,h=h.slice(0,-1));case 2:2===u&&(h=c),4==u?(i.warning('attribute "'+h+'" missed quot(")!'),a(c,h,t)):(o.isHTML(n[""])&&h.match(/^(?:disabled|checked|selected)$/i)||i.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),a(h,h,t));break;case 3:throw new Error("attribute value missed!!")}return l;case"€":p=" ";default:if(p<=" ")switch(u){case 0:r.setTagName(e.slice(t,l)),u=6;break;case 1:c=e.slice(t,l),u=2;break;case 4:var h=e.slice(t,l);i.warning('attribute "'+h+'" missed quot(")!!'),a(c,h,t);case 5:u=6}else switch(u){case 2:r.tagName;o.isHTML(n[""])&&c.match(/^(?:disabled|checked|selected)$/i)||i.warning('attribute "'+c+'" missed value!! "'+c+'" instead2!!'),a(c,c,t),t=l,u=1;break;case 5:i.warning('attribute space is required"'+c+'"!!');case 6:u=1,t=l;break;case 3:u=4,t=l;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}l++}}function p(e,t,r){for(var n=e.tagName,s=null,i=e.length;i--;){var a=e[i],c=a.qName,l=a.value;if((f=c.indexOf(":"))>0)var u=a.prefix=c.slice(0,f),p=c.slice(f+1),h="xmlns"===u&&p;else p=c,u=null,h="xmlns"===c&&"";a.localName=p,!1!==h&&(null==s&&(s={},d(r,r={})),r[h]=s[h]=l,a.uri=o.XMLNS,t.startPrefixMapping(h,l))}for(i=e.length;i--;){(u=(a=e[i]).prefix)&&("xml"===u&&(a.uri=o.XML),"xmlns"!==u&&(a.uri=r[u||""]))}var f;(f=n.indexOf(":"))>0?(u=e.prefix=n.slice(0,f),p=e.localName=n.slice(f+1)):(u=null,p=e.localName=n);var g=e.uri=r[u||""];if(t.startElement(g,p,n,e),!e.closed)return e.currentNSMap=r,e.localNSMap=s,!0;if(t.endElement(g,p,n),s)for(u in s)Object.prototype.hasOwnProperty.call(s,u)&&t.endPrefixMapping(u)}function h(e,t,r,o,n){if(/^(?:script|textarea)$/i.test(r)){var s=e.indexOf("",t),i=e.substring(t+1,s);if(/[&<]/.test(i))return/^script$/i.test(r)?(n.characters(i,0,i.length),s):(i=i.replace(/&#?\w+;/g,o),n.characters(i,0,i.length),s)}return t+1}function f(e,t,r,o){var n=o[r];return null==n&&((n=e.lastIndexOf(""))t?(r.comment(e,t+4,n-t-4),n+3):(o.error("Unclosed comment"),-1):-1;default:if("CDATA["==e.substr(t+3,6)){var n=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,n-t-9),r.endCDATA(),n+3}var s=function(e,t){var r,o=[],n=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;n.lastIndex=t,n.exec(e);for(;r=n.exec(e);)if(o.push(r),r[1])return o}(e,t),i=s.length;if(i>1&&/!doctype/i.test(s[0][0])){var a=s[1][0],c=!1,l=!1;i>3&&(/^public$/i.test(s[2][0])?(c=s[3][0],l=i>4&&s[4][0]):/^system$/i.test(s[2][0])&&(l=s[3][0]));var u=s[i-1];return r.startDTD(a,c,l),r.endDTD(),u.index+u[0].length}}return-1}function m(e,t,r){var o=e.indexOf("?>",t);if(o){var n=e.substring(t,o).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(n){n[0].length;return r.processingInstruction(n[1],n[2]),o+2}return-1}return-1}function v(){this.attributeNames={}}a.prototype=new Error,a.prototype.name=a.name,c.prototype={parse:function(e,t,r){var n=this.domBuilder;n.startDocument(),d(t,t={}),function(e,t,r,n,s){function i(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(r,t)?r[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(s.error("entity not found:"+e),e)}function c(t){if(t>T){var r=e.substring(T,t).replace(/&#?\w+;/g,i);b&&d(T),n.characters(r,0,t-T),T=t}}function d(t,r){for(;t>=w&&(r=E.exec(e));)y=r.index,w=y+r[0].length,b.lineNumber++;b.columnNumber=t-y+1}var y=0,w=0,E=/.*(?:\r\n?|\n)|.*$/g,b=n.locator,S=[{currentNSMap:t}],R={},T=0;for(;;){try{var _=e.indexOf("<",T);if(_<0){if(!e.substr(T).match(/^\s*$/)){var N=n.doc,A=N.createTextNode(e.substr(T));N.appendChild(A),n.currentElement=A}return}switch(_>T&&c(_),e.charAt(_+1)){case"/":var x=e.indexOf(">",_+3),O=e.substring(_+2,x).replace(/[ \t\n\r]+$/g,""),C=S.pop();x<0?(O=e.substring(_+2).replace(/[\s<].*/,""),s.error("end tag name: "+O+" is not complete:"+C.tagName),x=_+1+O.length):O.match(/\sT?T=x:c(Math.max(_,T)+1)}}(e,t,r,n,this.errorHandler),n.endDocument()}},v.prototype={setTagName:function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!i.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=c,t.ParseError=a},function(e,t,r){"use strict";r.r(t),r.d(t,"servicesVersion",(function(){return Qe})),r.d(t,"servicesDate",(function(){return Ze}));var o=r(2),n={getLogger:function(e){if(void 0===t)var t={env:{VERBOSE:!1}};t.env.VERBOSE?o.enableAll():o.disableAll();var r=e||"default";return o.getLogger(r)}},s={PARAM_MISSING:"Parameter(s) '%var%' missing",PARAM_EMPTY:"Parameter(s) '%var%' empty",PARAM_TYPE:"Wrong type(s) for parameter(s) '%var%'",PARAM_FORMAT:"Parameter(s) '%var%' not correctly formatted",PARAM_NOT_SUPPORT:"Value(s) for parameter(s) '%var%' not supported",PARAM_NOT_SUPPORT_NODEJS:"Value(s) for parameter(s) '%var%' not supported to NodeJS",PARAM_UNKNOWN:"Value(s) for parameter(s) '%var%' unknown",SERVICE_REQUEST_BUILD:"An error occurred during the request building of the service",SERVICE_REQUEST_EMPTY:"The request sent to the service is empty",SERVICE_RESPONSE_EXCEPTION:"The service returned an exception : '%var%'",SERVICE_RESPONSE_EXCEPTION_2:"The service returned an exception",SERVICE_RESPONSE_ANALYSE:"An error occurred while parsing the response '%var%' of the service",SERVICE_RESPONSE_ANALYSE_2:"An unknown error occurred while parsing the response",SERVICE_RESPONSE_EMPTY:"The response of the service is empty",SERVICE_RESPONSE_EMPTY_2:"The response from the service could not be analyzed or is empty",SERVICE_RESPONSE_FORMAT:"The format of the service response is not supported (handled format(s) : '%var%')",SERVICE_RESPONSE_FORMAT_2:"The format of the service response is not supported",SERVICE_RESPONSE_FORMAT_3:"No suggestion matching the search",CLASS_CONSTRUCTOR:"'%var%' constructor cannot be called as a function.",getMessage:function(e,t){if(0===Object.keys(arguments).length)return"Message indefined !";var r=Array.prototype.slice.call(arguments),o=r.shift(),n=r,s=this[o];try{s=Array.isArray(n)&&n.length>0?s.replace("%var%",n.join(" - ")):s.replace("%var%","%var% (not specified)")}catch(e){}return s}},i={normalyzeParameters:function(e){var t=null;if(e){var r=[];for(var o in e)if(e.hasOwnProperty(o)){var n=e[o];n||(n=""),r.push(o+"="+n)}t=r.join("&")}return t},normalyzeUrl:function(e,t,r){var o=e;if(e){if(e.split("?").length-1>=2){var n=e.search(/\?/)+1;o=e.substring(0,n)+e.slice(n).replace(/\?/g,"&")}var s=e.indexOf("?");-1===s&&(o+="?"),-1!==s&&s!==e.length-1&&(o+="&")}return t&&(o+="string"==typeof t?t=t.replace("?",""):this.normalyzeParameters(t)),r&&(o=encodeURIComponent(o)),o},indent:function(e,t){return new Array((e||0)+1).join("\t")+t}},a=r(6),c=r.n(a);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u,p={call:function(e){var t=n.getLogger("XHR");if(t.trace("[XHR::call()]"),c.a.polyfill(),!e.url)throw new Error("missing parameter : url is not defined !");if(!e.method)throw new Error("missing parameter : method is not defined !");e.format||(e.format="text");var r={};switch(r.url=e.url,r.data=e.data?e.data:null,r.method=e.method,r.timeOut=e.timeOut||0,r.scope=e.scope||this,r.proxy=e.proxy||null,r.content=e.content||null,r.headers=e.headers||{referer:"http://localhost"},e.method){case"DELETE":case"GET":break;case"PUT":case"POST":r.content=e.content?e.content:"application/x-www-form-urlencoded",r.headers=e.headers?e.headers:{referer:"http://localhost"};break;case"HEAD":case"OPTIONS":throw new Error("HTTP method not yet supported !");default:throw new Error("HTTP method unknown !")}switch(e.format){case"text":this.__call(r).then((function(r){t.trace(r),e.onResponse.call(this,r)})).catch((function(t){e.onFailure.call(this,t)}));break;case"json":this.__callJSON(r).then((function(r){t.trace(r),e.onResponse.call(this,r)})).catch((function(t){e.onFailure.call(this,t)}));break;case"xml":this.__callXML(r).then((function(r){t.trace(r),e.onResponse.call(this,r)})).catch((function(t){e.onFailure.call(this,t)}));break;default:throw new Error("This output Format is not yet supported !")}},__call:function(e){var t=n.getLogger("XHR");return t.trace("[XHR::__call()]"),new Promise((function(o,n){var s="POST"===e.method||"PUT"===e.method?1:0;e.data&&("object"===l(e.data)&&Object.keys(e.data).length||"string"==typeof e.data&&e.data.length)&&!s&&(e.url=i.normalyzeUrl(e.url,e.data)),t.trace("URL = ",e.url);var a=null;if("undefined"==typeof window){var c=r(3),u={headers:{Referer:"https://localhost"}};return e.data&&"string"==typeof e.data&&s&&(u={method:e.method,body:e.data,headers:{"Content-Type":e.content,Referer:"https://localhost"}}),c(e.url,u).then((function(e){if(e.ok)o(e.text());else{var t="Errors Occured on Http Request (status : '"+e.statusText+"' | url : '"+e.url+"')",r=e.status;n({message:t,status:r})}})).catch((function(e){n({message:e,status:-1})}))}if(window.XMLHttpRequest){t.trace("XMLHttpRequest"),(a=new XMLHttpRequest).open(e.method,e.url,!0),a.overrideMimeType=e.content;var p=null;e.timeOut>0&&(t.trace("XHR - TimeOut actif !"),p=window.setTimeout((function(){n({message:"TimeOut Occured on Http Request with XMLHttpRequest !",status:-1})}),e.timeOut)),s&&(t.trace("data = ",e.data),a.setRequestHeader("Content-type",e.content)),a.onerror=function(e){console.log(e),n(new Error("Errors Occured on Http Request with XMLHttpRequest !"))},a.ontimeout=function(e){console.log(e),n(new Error("TimeOut Occured on Http Request with XMLHttpRequest !"))},a.onreadystatechange=function(e){if(4===a.readyState)if(200===a.status)window.clearTimeout(p),o(a.response);else{var t="Errors Occured on Http Request (status : '"+e.target.statusText+"' | url : '"+e.target.responseURL+"' | response : '"+e.target.response+"')",r=e.target.status;n({message:t,status:r})}};var h=e.data&&s?e.data:null;a.send(h)}else{if(!window.XDomainRequest)throw new Error("CORS not supported");t.trace("XDomainRequest"),(a=new XDomainRequest).open(e.method,e.url),a.overrideMimeType=e.content,e.timeOut>0&&(a.timeout=e.timeout,t.trace("XHR - TimeOut actif !")),s&&a.setRequestHeader("Content-type",e.content),a.onerror=function(){n(new Error("Errors Occured on Http Request with XMLHttpRequest !"))},a.ontimeout=function(){n(new Error("TimeOut Occured on Http Request with XMLHttpRequest !"))},a.onload=function(e){if(200===a.status)o(a.responseText);else{var t="Errors Occured on Http Request (status : '"+e.target.statusText+"' | url : '"+e.target.responseURL+"')",r=e.target.status;n({message:t,status:r})}};var f=e.data&&s?e.data:null;a.send(f)}}))},__callJSON:function(e){return this.__call(e).then(JSON.parse).catch((function(t){console.log("_callJSON failed on : ",e.url,t)}))},__callXML:function(e){return this.__call(e).then((function(e){var t;"undefined"==typeof window?t=(new(0,r(4).DOMParser)).parseFromString(e,"text/xml"):window.DOMParser?t=(new window.DOMParser).parseFromString(e,"text/xml"):((t=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,t.loadXML(e));return t})).catch((function(t){console.log("__callXML failed on : ",e.url,t)}))}},h={uuid:(u=Math.floor(Date.now()),function(){return u++}),call:function(e){var t=n.getLogger("JSONP");if(t.trace("[JSONP::call ()]"),!e)throw t.error("missing parameter : options !"),new Error("missing parameter : options !");if(!e.url)throw t.error("missing parameter : options.url !"),new Error("missing parameter : options.url !");if(e.timeOut||(t.info("setting 'options.timeOut' default value"),e.timeOut=0),!e.onResponse)throw t.error("missing parameter : options.onResponse !"),new Error("missing parameter : options.onResponse !");var r="string"==typeof e.callbackSuffix?e.callbackSuffix:this.uuid(),o=!1,s=!1,i=e.url.indexOf("callback=");if(-1!==i){o=!0;var a=e.url.indexOf("&",i);-1===a&&(a=e.url.length);var c=e.url.substring(i+9,a);c&&(s=!0,e.callbackName=c,t.info("setting 'options.callbackName' value ("+e.callbackName+") from 'options.url' parameter"))}if(!o){var l=e.url.indexOf("?");-1===l?e.url=e.url+"?callback=":l===e.url.length?e.url=e.url+"callback=":e.url=e.url+"&callback=",t.info("setting callback default key in 'options.url' : "+e.url)}var u=!!e.callbackName||s;if(s||(e.callbackName||(t.info("setting 'options.callbackName' default value"),e.callbackName="callback",(r||""===r)&&(e.callbackName+=r)),e.url=e.url.replace("callback=","callback="+e.callbackName),t.info("setting callback function name in 'options.url' : "+e.url)),e.onTimeOut||(t.info("setting 'options.onTimeOut' default value"),e.onTimeOut=function(){console.log("TimeOut while invoking url : "+e.url)}),!u){var p=this,h=null;e.timeOut>0&&(h=window.setTimeout((function(){window[e.callbackName]=function(){},e.onTimeOut(),p._deleteScript(r)}),e.timeOut)),window[e.callbackName]=function(t){window.clearTimeout(h),e.onResponse(t),p._deleteScript(r)}}this._createScript(r,e.url)},_createScript:function(e,t){var r,o=document.getElementById("results"+e);(r=document.createElement("script")).setAttribute("type","text/javascript"),r.setAttribute("src",t),r.setAttribute("charset","UTF-8"),r.setAttribute("id","results"+e),r.setAttribute("async","true");var n=document.documentElement||document.getElementsByTagName("head")[0];null===o?n.appendChild(r):n.replaceChild(r,o)},_deleteScript:function(e){var t=document.getElementById("results"+e);if(t){var r=t.parentNode||document.documentElement;if(!r)return;r.removeChild(t)}}},f={send:function(e){var t=e||{method:"GET",protocol:"XHR",timeOut:0,format:null,wrap:!0,nocache:!0,output:"json",callback:null,callbackSuffix:null};if("undefined"!=typeof window||"JSONP"!==e.protocol){if("XHR"===e.protocol||"json"===e.format?t.wrap=!1:"JSONP"===e.protocol&&"xml"===e.format&&(t.wrap=!0),t.callback=null,t.output=t.wrap?"json":null,t.wrap){var r={};r.output=t.output,r.callback=t.callback,delete r.callback,t.url=i.normalyzeUrl(e.url,r)}switch(t.protocol){case"XHR":"GET"===e.method&&e.nocache&&(t.url=i.normalyzeUrl(t.url,{t:(new Date).getTime()})),p.call(t);break;case"JSONP":t.data&&(t.url=i.normalyzeUrl(t.url,t.data)),h.call(t);break;default:throw new Error("protocol not supported (XHR|JSONP) !")}}else console.log("Value (s) for parameter (s) 'protocol=JSONP (instead use XHR)' not supported to NodeJS")}};function d(e){if(!(this instanceof d))throw new TypeError("ErrorService constructor cannot be called as a function.");var t=e;"string"==typeof e||e instanceof String?(this.message=e,this.status=-1,this.type=d.TYPE_UNKERR):(this.message=t.message||"undefined!?",this.type=t.type,this.status=t.status||-1),this.name="ErrorService",this.stack=(new Error).stack}d.TYPE_SRVERR="SERVICE_ERROR",d.TYPE_USEERR="USAGE_ERROR",d.TYPE_UNKERR="UNKNOWN_ERROR",d.prototype=Object.create(Error.prototype,{constructor:{value:d,writable:!0,configurable:!0}});var g=d,m=r(0);function v(e){if(!(this instanceof v))throw new TypeError(s.getMessage("CLASS_CONSTRUCTOR"));for(var t in this.logger=n.getLogger("CommonService"),this.logger.trace("[Constructeur CommonService (options)]"),this.options={protocol:"XHR",ssl:!0,proxyURL:"",callbackSuffix:null,httpMethod:"GET",timeOut:0,rawResponse:!1,scope:this,onSuccess:function(e){console.log("onSuccess - la reponse est la suivante : ",e)},onFailure:function(e){200!==e.status&&e.status?console.log("onFailure - Erreur (",e.status,") : ",e.message):console.log("onFailure : ",e.message)}},e)e.hasOwnProperty(t)&&(this.options[t]=e[t]);if(this.options.rawResponse&&!this.options.onSuccess&&(this.options.onSuccess=function(e){console.log("onSuccess - la réponse brute du service est la suivante : ",e)}),!!(null===this.options.onSuccess||"function"!=typeof this.options.onSuccess))throw new Error(s.getMessage("PARAM_MISSING","onSuccess()"));switch(this.options.httpMethod="string"==typeof e.httpMethod?e.httpMethod.toUpperCase():"GET",this.options.httpMethod){case"POST":case"GET":break;case"PUT":case"DELETE":case"HEAD":case"OPTIONS":throw new Error(s.getMessage("PARAM_NOT_SUPPORT","httpMethod"));default:throw new Error(s.getMessage("PARAM_UNKNOWN","httpMethod"))}switch(this.options.protocol="string"==typeof e.protocol?e.protocol.toUpperCase():"XHR",this.options.protocol){case"JSONP":case"XHR":break;default:throw new Error(s.getMessage("PARAM_UNKNOWN","protocol"))}if("undefined"==typeof window&&"JSONP"===this.options.protocol)throw new Error(s.getMessage("PARAM_NOT_SUPPORT_NODEJS","protocol=JSONP (instead use XHR)"));"JSONP"===this.options.protocol&&(this.options.httpMethod="GET"),this.options.nocache=e.nocache||!1,this.options.outputFormat=null,this.request=null,this.response=null}v.prototype={constructor:v,call:function(){this.logger.trace("CommonService::call ()");var e=this;function t(t){this.logger.trace("CommonService::onBuildRequest : ",t),this.callService.call(e,n,r)}function r(t){this.logger.trace("CommonService::onCallService : ",t),this.analyzeResponse.call(e,n,o)}function o(e){if(this.logger.trace("CommonService::onAnalyzeResponse : ",e),!e)return n.call(this,new g("Analyse de la reponse en échec !?"));this.options.onSuccess.call(this,e)}function n(e){this.logger.trace("CommonService::onError()");var t=e;t instanceof g||(t=new g(e.message)),this.options.onFailure.call(this,t)}(function(){this.logger.trace("CommonService::run ()"),this.buildRequest.call(e,n,t)}).call(e)},buildRequest:function(e,t){this.logger.error("overwritten method !"),e&&e.call(this,"This method must be overwritten !"),t.call(this,"This method must be overwritten !")},callService:function(e,t){var r=null,o=this.request,n=!(!this.options.proxyURL||"XHR"!==this.options.protocol),s={"gp-access-lib":m.version};this.options.apiKey&&(s.apiKey=this.options.apiKey),this.options.serverUrl=i.normalyzeUrl(this.options.serverUrl,s,!1),n&&("GET"===this.options.httpMethod&&(r=this.options.proxyURL+i.normalyzeUrl(this.options.serverUrl,this.request,!0),o=null),"POST"===this.options.httpMethod&&(r=this.options.proxyURL+i.normalyzeUrl(this.options.serverUrl,null,!0),o=this.request));var a=this,c={url:r||this.options.serverUrl,method:this.options.httpMethod,protocol:this.options.protocol,timeOut:this.options.timeOut||0,format:this.options.outputFormat,nocache:this.options.nocache||!1,wrap:"XHR"!==this.options.protocol,callbackSuffix:this.options.callbackSuffix,data:o,headers:null,content:this.options.contentType||"application/xml",scope:this.options.scope||this,onResponse:function(r){a.logger.trace("callService::onResponse()");var o=null;if("XHR"===a.options.protocol&&(a.logger.trace("Response XHR",r),o=r),"JSONP"===a.options.protocol){if(a.logger.trace("Response JSON",r),!r)return void e.call(a,new g("Le contenu de la reponse est vide !?"));if(r.http){if(200!==r.http.status)return void e.call(a,new g({status:r.http.status,message:r.http.error,type:g.TYPE_SRVERR}));o=r.xml,a.options.rawResponse&&(o=r)}else o=r}if("function"==typeof a.options.onBeforeParse){var n=a.options.onBeforeParse(o);"string"==typeof n&&(o=n)}a.response=o,t.call(a,o)},onFailure:function(t){a.logger.trace("callService::onFailure()"),t.type=g.TYPE_SRVERR,e.call(a,new g(t))},onTimeOut:function(){a.logger.trace("callService::onTimeOut()"),e.call(a,new g("TimeOut!"))}};f.send(c)},analyzeResponse:function(e,t){this.logger.error("overwritten method !"),e&&e.call(this,"This method must be overwritten !"),t.call(this,"This method must be overwritten !")}};var y=v,w={ssl:!0,newUrl:function(e){return(!1===w.ssl?"http://":"https://")+"data.geopf.fr"+e},Alti:{new_key:{"elevation-json":"/altimetrie/1.0/calcul/alti/rest/elevation.json","elevation-xml":"/altimetrie/1.0/calcul/alti/rest/elevation.xml","profil-json":"/altimetrie/1.0/calcul/alti/rest/elevationLine.json","profil-xml":"/altimetrie/1.0/calcul/alti/rest/elevationLine.xml"},newUrl:function(){return{"elevation-json":w.newUrl(this.new_key["elevation-json"]),"elevation-xml":w.newUrl(this.new_key["elevation-xml"]),"profil-json":w.newUrl(this.new_key["profil-json"]),"profil-xml":w.newUrl(this.new_key["profil-xml"])}}},ProcessIsoCurve:{new_key:"/navigation/isochrone",newUrl:function(){return w.newUrl(this.new_key)}},Config:{_key:"https://raw.githubusercontent.com/IGNF/geoportal-configuration/new-url/dist/",url:function(e){Array.isArray(e)||(e=e.split(","));for(var t=[],r=0;rt||e__IDENTIFIER__\x3c!-- __DATAINPUTS__ --\x3e__RAWDATAOUTPUT__',input:"__KEY____DATA__"}},namespaceByDefault:function(){return['xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"','xmlns="http://www.opengis.net/wps/1.0.0"','xmlns:wfs="http://www.opengis.net/wfs"','xmlns:wps="http://www.opengis.net/wps/1.0.0"','xmlns:ows="http://www.opengis.net/ows/1.1"','xmlns:gml="http://www.opengis.net/gml"','xmlns:ogc="http://www.opengis.net/ogc"','xmlns:wcs="http://www.opengis.net/wcs/1.1.1"','xmlns:xlink="http://www.w3.org/1999/xlink"'].join(" ")},schemaLocationByDefault:function(){return'xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd"'},processRequestString:function(){this.logger.trace("WPS::processRequestString ()");var e="";if("POST"===this.method)e=this.template.post.value;else{if("GET"!==this.method)return this.logger.error("No other method supported by the service !"),!1;e=this.template.get.value}return e=(e=(e=(e=(e=e.replace(/__SERVICE__/g,this.paramservice)).replace(/__VERSION__/g,this.paramversion)).replace(/__RAWDATAOUTPUT__/g,this.paramrawdataoutput)).replace(/__IDENTIFIER__/g,this.paramidentifier)).replace(/__REQUEST__/g,this.paramrequest),"POST"===this.method&&(e=(e=e.replace(/__NAMESPACE__/g,this.namespaceByDefault)).replace(/__SCHEMALOCATION__/g,this.schemaLocationByDefault)),(e=e.replace(//g,this.__addDataInputs()))?(this.requestString=e,this.logger.trace("traduction tmpl",e),!0):(this.logger.warn("traduction tmpl : empty request !?"),!1)},__addDataInputs:function(){this.logger.trace("WPS::__addDataInputs ()");for(var e,t="GET"===this.method?this.template.get.input:this.template.post.input,r="GET"===this.method?";":"",o="",n=this,s=this.DataObject.getData(),i=0;i0)for(var i=o.getElementsByTagName("parsererror"),a=0;a0){var o=function(e){if(e.attributes.length>0){for(var t={},r=e.attributes,o=0;o0?t.index=t.filters.type[0]:t.index=t.filters.type),delete t.filters.type),t.filters.bbox&&(this.logger.warn("The parameter 'filterOptions.bbox' is deprecated"),delete t.filters.bbox)),delete t.filterOptions),t.position&&(t.position.x&&(this.logger.warn("The parameter 'position.x' is deprecated"),t.position.lon||(t.position.lon=t.position.x),delete t.position.x),t.position.y&&(this.logger.warn("The parameter 'position.y' is deprecated"),t.position.lat||(t.position.lat=t.position.y),delete t.position.y)),t.returnFreeForm&&(this.logger.warn("The parameter 'returnFreeForm' is deprecated"),delete t.returnFreeForm),t.srs&&(this.logger.warn("The parameter 'srs' is deprecated"),delete t.srs),t},ye.prototype.buildRequest=function(e,t){var r={httpMethod:this.options.httpMethod,geocodeMethod:"search",query:this.options.query,index:this.options.index,returnTrueGeometry:this.options.returnTrueGeometry,position:this.options.position,maxResp:this.options.maximumResponses,filters:this.options.filters};this.request=ce.build(r),this.request?t.call(this,this.request):e.call(this,new g(s.getMessage("SERVICE_REQUEST_BUILD")))},ye.prototype.analyzeResponse=function(e,t){if(this.response){var r={response:this.response,rawResponse:this.options.rawResponse,onError:e,onSuccess:t,scope:this};me.build(r)}else e.call(this,new g(s.getMessage("SERVICE_RESPONSE_EMPTY")))};var we=ye;function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(e){if(!(this instanceof be))throw new TypeError(s.getMessage("CLASS_CONSTRUCTOR","ReverseGeocode"));this.CLASSNAME="ReverseGeocode",this.logger=n.getLogger("Gp.Services.ReverseGeocode"),this.logger.trace("[Constructeur ReverseGeocode (options)]");var t=this.patchOptionConvertor(e);if(t.serverUrl||(t.serverUrl=E.ReverseGeocode.newUrl()),y.apply(this,[t]),t.searchGeometry)this.options.searchGeometry=t.searchGeometry;else if(!t.position)throw new Error(s.getMessage("PARAM_MISSING","searchGeometry"));if(t.index||(this.options.index=t.index="StreetAddress"),t.filters)for(var r=Object.keys(t.filters),o=0;o0?t.index=t.filterOptions.type[0]:t.index=t.filterOptions.type),delete t.filterOptions.type),t.filterOptions.bbox&&(this.logger.warn("The parameter 'filterOptions.bbox' is deprecated"),t.searchGeometry||(t.searchGeometry=this.bbox2Json(t.filterOptions.bbox)),delete t.filterOptions.bbox),t.filterOptions.circle&&(this.logger.warn("The parameter 'filterOptions.circle' is deprecated"),t.searchGeometry||(t.searchGeometry=this.circle2Json(t.filterOptions.circle)),delete t.filterOptions.circle),t.filterOptions.polygon&&(this.logger.warn("The parameter 'filterOptions.polygon' is deprecated"),t.searchGeometry||(t.searchGeometry=this.polygon2Json(t.filterOptions.polygon)),delete t.filterOptions.polygon),!t.filters&&Object.keys(t.filterOptions).length>0&&(t.filters=t.filterOptions),delete t.filterOptions),t.position&&(t.position.x&&(this.logger.warn("The parameter 'position.x' is deprecated"),t.position.lon||(t.position.lon=t.position.x),delete t.position.x),t.position.y&&(this.logger.warn("The parameter 'position.y' is deprecated"),t.position.lat||(t.position.lat=t.position.y),delete t.position.y)),t.srs&&(this.logger.warn("The parameter 'srs' is deprecated"),delete t.srs),t},be.prototype.buildRequest=function(e,t){var r={httpMethod:this.options.httpMethod,geocodeMethod:"reverse",searchGeometry:this.options.searchGeometry,index:this.options.index,position:this.options.position,returnTrueGeometry:this.options.returnTrueGeometry,maxResp:this.options.maximumResponses,filters:this.options.filters};this.request=ce.build(r),this.request?t.call(this,this.request):e.call(this,new g(s.getMessage("SERVICE_REQUEST_BUILD")))},be.prototype.analyzeResponse=function(e,t){if(this.response){var r={response:this.response,rawResponse:this.options.rawResponse,onError:e,onSuccess:t,scope:this};me.build(r)}else e.call(this,new g(s.getMessage("SERVICE_RESPONSE_EMPTY")))},be.prototype.bbox2Json=function(e){return{type:"Polygon",coordinates:[[[e.left,e.top],[e.right,e.top],[e.right,e.bottom],[e.left,e.bottom],[e.left,e.top]]]}},be.prototype.circle2Json=function(e){return{type:"Circle",radius:e.radius,coordinates:[e.x,e.y]}},be.prototype.polygon2Json=function(e){for(var t={type:"Polygon",coordinates:[[]]},r=0;r=5e4&&(this.distanceUnit="km",this.costValue/=1e3)):(this.costType="time",this.costValue=this.options.time)}Fe.CLASSNAME="ProcessIsoCurveParam",Fe.prototype={constructor:Fe,getLocation:function(){return this.point.x+","+this.point.y},getDistanceUnit:function(){return"m"===this.distanceUnit?"meter":"km"===this.distanceUnit?"kilometer":""},getConstraints:function(){var e=[];if(0!==this.constraints.length)for(var t=0;t + + + + + + + + + + + + Namespace: BBox + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: BBox

+ + + + +
+ + +

+ Gp.BBox +

+ + + + +
+
+ + + + +

Bounding box object, expressed with four coordinates.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
left + + +Float + + + +

minimum abscissa

right + + +Float + + + +

maximum abscissa

bottom + + +Float + + + +

minimum ordinate

top + + +Float + + + +

maximum ordinate

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Circle.html b/v3.4.4/jsdoc/Gp.Circle.html new file mode 100644 index 00000000..b04fbeb3 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Circle.html @@ -0,0 +1,2825 @@ + + + + + + + + + + + + + Namespace: Circle + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: Circle

+ + + + +
+ + +

+ Gp.Circle +

+ + + + +
+
+ + + + +

Circle object.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +Float + + + +

Circle center abscissa.

y + + +Float + + + +

Circle center ordinate.

radius + + +Float + + + +

Circle radius.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Error.html b/v3.4.4/jsdoc/Gp.Error.html new file mode 100644 index 00000000..914a7d2f --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Error.html @@ -0,0 +1,2964 @@ + + + + + + + + + + + + + Namespace: Error + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: Error

+ + + + +
+ + +

+ Gp.Error +

+ + + + +
+
+ + + + +

Errors raised by API for one among three reasons : wrong API usage, underlying service error or unknown reason.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
message + + +String + + + +

Error message

status + + +Number + + + +

Error status : when Gp.Error.TYPE_SRVERR, gives the HTTP status of the underlying web service response ; -1 otherwise.

type + + +String + + + +

Error type (Gp.Error.TYPE_SRVERR, Gp.Error.TYPE_USEERR or Gp.Error.TYPE_UNKERR).

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + +

Members

+ +
+ +
+
+

static,constantGp.Error.TYPE_SRVERRString

+
+ + +
+
+ +
+

Error raised when underlying geoportal service answers on error.

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

static,constantGp.Error.TYPE_UNKERRString

+
+ + +
+
+ +
+

Error raised when API can't perform the job for a reason other than the two other ones.

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

static,constantGp.Error.TYPE_USEERRString

+
+ + +
+
+ +
+

Error raised when funcion use is inappropriate

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Point.html b/v3.4.4/jsdoc/Gp.Point.html new file mode 100644 index 00000000..99f96174 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Point.html @@ -0,0 +1,2802 @@ + + + + + + + + + + + + + Namespace: Point + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: Point

+ + + + +
+ + +

+ Gp.Point +

+ + + + +
+
+ + + + +

Point object.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +Float + + + +

Point abscissa

y + + +Float + + + +

Point ordinate

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Alti.Elevation.html b/v3.4.4/jsdoc/Gp.Services.Alti.Elevation.html new file mode 100644 index 00000000..947f20b5 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Alti.Elevation.html @@ -0,0 +1,2850 @@ + + + + + + + + + + + + + Namespace: Elevation + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: Elevation

+ + + + +
+ + +

+ Gp.Services.Alti.Elevation +

+ +

.Alti.

+ + + + +
+
+ + + + +

Single elevation object returned by underlying web service. Contains at least, one elevation (z). May also contain point coordinates and elevation accuracy if "zonly" parameter wasn't set to true.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
lat + + +Float + + + +

Point latitude. (only if zonly=false)

lon + + +Float + + + +

Point longitude. (only if zonly=false)

z + + +Float + + + +

Point elevation.

acc + + +Float + + + +

Accuracy of elevation for this point. (only if zonly=false)

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Alti.Measure.html b/v3.4.4/jsdoc/Gp.Services.Alti.Measure.html new file mode 100644 index 00000000..e7b196f8 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Alti.Measure.html @@ -0,0 +1,2850 @@ + + + + + + + + + + + + + Namespace: Measure + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: Measure

+ + + + +
+ + +

+ Gp.Services.Alti.Measure +

+ +

.Alti.

+ + + + +
+
+ + + + +

Single measure object returned by underlying web service if measures = true and zonly = false

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
source_name + + +String + + + +

Name of the source

source_measure + + +String + + + +

Name of the measure

z + + +Float + + + +

Point elevation.

acc + + +Float + + + +

Accuracy of elevation for this point. (only if zonly=false)

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Alti.html b/v3.4.4/jsdoc/Gp.Services.Alti.html new file mode 100644 index 00000000..288c3953 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Alti.html @@ -0,0 +1,3593 @@ + + + + + + + + + + + + + Class: Alti + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Class: Alti

+ + + + +
+ + +

+ Gp.Services.Alti +

+ + +

Appel du service d'altimétrie du Géoportail

+ + + +
+
+ + + + +
+
+

+ + new Alti(options) +

+ + +
+ Services/Alti/Alti.js, line 75 +
+ +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + + +

options spécifiques au service (+ les options heritées)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
positions + + +Array.<Object> + + + + + + + + + + +

Tableau ({lon:float,lat:float}) contenant les coordonnées des points (CRS:84)
+dont on veut connaître les altitudes (ou à partir desquelles on va calculer le profil).
+Chaque élément du tableau est un objet JavaScript avec deux attributs : lon et lat, qui sont des flottants.
+Minimum 2 éléments si on souhaite calculer un profil altimétrique (ElevationLine).
+Maximum 50 éléments.

outputFormat + + +String + + + + + + + + + + +

Le format de la réponse du service alti : 'xml' ou 'json'.
+Ce paramètre déterminera l'extension '.xml' ou '.json' du service dans le cas de l'API REST,
+ou la valeur du paramètre 'format' dans le cas de la norme WPS.
+Nécessaire si serverUrl est renseigné, et qu'on souhaite passer par l'API REST,
+pour connaître le format dans lequel sera fournie la réponse (pour son traitement).
+Non nécessaire pour la norme WPS. Par défaut, ce paramètre vaut 'json'.

sampling + + +Number + + + + + + + optional + + + + + +

Nombre de points à utiliser pour déterminer le tracé d'un profil altimétrique, compris entre 2 et 5000.
+A spécifier lorsqu'on souhaite accéder à cette fonctionnalité.
+Dans ce cas, les points fournis en entrée (au minimum de deux) servent à déterminer l'axe planimétrique
+le long duquel le profil doit être calculé.
+Si le paramètre sampling n'est pas spécifié ou moins de deux points sont fournis,
+c'est le service Elevation qui sera interrogé (altitudes simples calculées pour les points fournis).
+Une valeur de sampling strictement inférieure à 2 déclenchera un échantillonnage avec la valeur par défaut du service (3 points).

api + + +String + + + + + + + optional + + + + + +

Manière d'accéder au service : 'REST' (via l'API REST) ou 'WPS' (via la norme WPS).
+Par défaut, on utilise l'API REST.

zonly + + +Boolean + + + + + + + optional + + + + + +

Permet de ne récupérer que les altitudes en sortie s'il vaut 'true'.
+Vaut 'false' par défaut.

resource + + +String + + + + + + + optional + + + + + +

Resource utilisée pour réaliser le calcul.

+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
TODO
+
+
    +
  • gestion du parma. output et callback
  • + +
  • outputFormat (REST) et format (WPS)
  • + +
  • La reponse JSON peut encapsuler un XML !
  • +
+
+ +
+ + + + + + + + + + + + + +
Example
+ + + +
var options = {
+     apiKey : null,
+     serverUrl : 'http://localhost/service/',
+     protocol : 'JSONP', // JSONP|XHR
+     proxyURL : null,
+     httpMethod : 'GET', // GET|POST
+     timeOut : 10000, // ms
+     rawResponse : false, // true|false
+     scope : null, // this
+     onSuccess : function (response) {},
+     onFailure : function (error) {},
+     // spécifique au service
+     positions : [{lon:, lat:}, {lon:, lat:}],
+     outputFormat : 'json' // json|xml
+     sampling : 3,
+     api : 'REST', // REST|WPS
+     zonly : false // false|true,
+     resource : "resource-par-defaut"
+  };
+ + + +
+ + +
+ + +

Extends

+ + + + + + + + + + + +

Namespaces

+ +
+
Elevation
+
+ +
Measure
+
+
+ + + +

Members

+ +
+ +
+
+

CLASSNAME

+
+ + +
+
+ +
+

Nom de la classe (heritage)
+FIXME instance ou classe ?

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

constructor

+
+ + +
+
+ +
+

Constructeur (alias)

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

optionsObject

+
+ + +
+
+ +
+

Options du service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

request

+
+ + +
+
+ +
+

Requête envoyée au service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

response

+
+ + +
+
+ +
+

Reponse du service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ + + +

Methods

+ +
+ +
+
+

+ + analyzeResponse(error, success) +

+ + +
+ Services/Alti/Alti.js, line 225 +
+ +
+ + +
+
+ + +
+

Analyse de la reponse (overwrite)

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
error + + +function + + + + + +

callback des erreurs

success + + +function + + + + + +

callback

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + buildRequest(error, success) +

+ + +
+ Services/Alti/Alti.js, line 194 +
+ +
+ + +
+
+ + +
+

Création de la requête (overwrite)

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
error + + +function + + + + + +

callback des erreurs

success + + +function + + + + + +

callback

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.AltiResponse.html b/v3.4.4/jsdoc/Gp.Services.AltiResponse.html new file mode 100644 index 00000000..18fdafc4 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.AltiResponse.html @@ -0,0 +1,2779 @@ + + + + + + + + + + + + + Namespace: AltiResponse + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: AltiResponse

+ + + + +
+ + +

+ Gp.Services.AltiResponse +

+ + + + +
+
+ + + + +

Response object for Gp.Services.getAltitude () invocation when successful. Received as the argument of onSuccess callback function.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
elevations + + +Array.<Gp.Services.Alti.Elevation> + + + +

Elevations array.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.AutoComplete.SuggestedLocation.html b/v3.4.4/jsdoc/Gp.Services.AutoComplete.SuggestedLocation.html new file mode 100644 index 00000000..c7dfd7c0 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.AutoComplete.SuggestedLocation.html @@ -0,0 +1,2943 @@ + + + + + + + + + + + + + Namespace: SuggestedLocation + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: SuggestedLocation

+ + + + +
+ + +

+ Gp.Services.AutoComplete.SuggestedLocation +

+ +

.AutoComplete.

+ + + + +
+
+ + + + +

Single SuggestedLocation Object returned by underlying web service.
+Each suggested location represents a street address ("StreetAddress") or a place name ("PositionOfInterest").

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
type + + +String + + + +

Suggested location type : "StreetAddress" ou "PositionOfInterest"

position + + +Gp.Point + + + +

Position of the suggested location given in requested coordinates system.

commune + + +String + + + +

Suggested municipality

fullText + + +String + + + +

Full text representation of the suggested location.

postalCode + + +String + + + +

Suggested location postcode

classification + + +Integer + + + +

Number used to classify the importance of the place where is the suggested location from 1 (most important) to 7 (less important).

street + + +String + + + +

Street name of the suggested location ("StreetAddress" only).

kind + + +String + + + +

Nature of the suggested location : "prefecture", "monument", "commune", ... for instance ("PositionOfInterest" only).

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.AutoComplete.html b/v3.4.4/jsdoc/Gp.Services.AutoComplete.html new file mode 100644 index 00000000..19056d0c --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.AutoComplete.html @@ -0,0 +1,3620 @@ + + + + + + + + + + + + + Class: AutoComplete + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Class: AutoComplete

+ + + + +
+ + +

+ Gp.Services.AutoComplete +

+ + +

Appel du service d'autocomplétion du Géoportail :
+envoi de la requête construite selon les paramètres en options,
+éventuellement parsing et analyse de la réponse,
+retour d'une réponse en paramètre de la fonction onSuccess.

+ + + +
+
+ + + + +
+
+

+ + new AutoComplete(options) +

+ + +
+ Services/AutoComplete/AutoComplete.js, line 61 +
+ +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + + +

options spécifiques au service (+ les options heritées)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDefaultDescription
text + + +String + + + + + + + + + + + + +

La chaîne de caractère à compléter.
+Cette chaîne n'est pas "URL encodée".
+C'est l'API qui s'occupe de l'encoder pour l'inclure dans la requête.

type + + +Array.<String> + + + + + + ["StreetAddress"] + + + + + optional + + + + + +

Type de l'objet recherché.
+Le service d'autocomplétion du Géoportail permet de rechercher des toponymes 'PositionOfInterest' et/ou des adresses postales 'StreetAddress'.
+D'autres types pourront être rajoutés selon l'évolution du service.
+Par défaut, type = ['StreetAddress'].

territory + + +String + + + + + + + + + optional + + + + + +

Limitation de la zone de recherche de localisants.
+Le service d'autocomplétion du Géoportail permet de limiter la recherche à la métropole et la Corse : options.territory = 'METROPOLE',
+DOMS TOMS : options.territory = 'DOMTOM', ou à un département : options.territory = '31'
+Pas de valeur par défaut.
+La valeur par défaut est donc celle du service.
+Le service d'autocomplétion du Géoportail renvoie toutes les informations quand aucun territoire n'est spécifié.

maximumResponses + + +Number + + + + + + 10 + + + + + optional + + + + + +

Nombre de réponses maximal que l'on souhaite recevoir.
+Pas de valeur par défaut.
+La valeur par défaut sera donc celle du service : 10.

+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Example
+ + + +
var options = {
+     // options communes aux services
+     apiKey : null,
+     serverUrl : 'http://localhost/service/',
+     protocol : 'JSONP', // JSONP|XHR
+     proxyURL : null,
+     httpMethod : 'GET', // GET|POST
+     timeOut : 10000, // ms
+     rawResponse : false, // true|false
+     scope : null, // this
+     onSuccess : function (response) {},
+     onFailure : function (error) {},
+     // spécifique au service
+     text : "",
+     type : "StreetAddress",
+     territory : 'METROPOLE',
+     maximumResponses : 10
+  };
+ + + +
+ + +
+ + +

Extends

+ + + + + + + + + + + +

Namespaces

+ +
+
SuggestedLocation
+
+
+ + + +

Members

+ +
+ +
+
+

CLASSNAME

+
+ + +
+
+ +
+

Nom de la classe (heritage)
+FIXME instance ou classe ?

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

optionsObject

+
+ + +
+
+ +
+

Options du service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

request

+
+ + +
+
+ +
+

Requête envoyée au service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

response

+
+ + +
+
+ +
+

Reponse du service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ + + +

Methods

+ +
+ +
+
+

+ + analyzeResponse(error, success) +

+ + +
+ Services/AutoComplete/AutoComplete.js, line 208 +
+ +
+ + +
+
+ + +
+

(overwrite)
+Analyse de la reponse

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
error + + +function + + + + + +

callback des erreurs

success + + +function + + + + + +

callback de succès de l'analyse de la réponse

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + buildRequest(error, success) +

+ + +
+ Services/AutoComplete/AutoComplete.js, line 169 +
+ +
+ + +
+
+ + +
+

(overwrite)
+Création de la requête

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
error + + +function + + + + + +

callback des erreurs

success + + +function + + + + + +

callback

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + patchOptionConvertor(options_){Object} +

+ + +
+ Services/AutoComplete/AutoComplete.js, line 136 +
+ +
+ + +
+
+ + +
+

Patch pour la convertion des options vers le nouveau formalisme.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options_ + + +Object + + + + + +

options du service

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.AutoCompleteResponse.html b/v3.4.4/jsdoc/Gp.Services.AutoCompleteResponse.html new file mode 100644 index 00000000..f137de0a --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.AutoCompleteResponse.html @@ -0,0 +1,2779 @@ + + + + + + + + + + + + + Namespace: AutoCompleteResponse + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: AutoCompleteResponse

+ + + + +
+ + +

+ Gp.Services.AutoCompleteResponse +

+ + + + +
+
+ + + + +

Response object for Gp.Services.autoComplete () invocation when successful. Received as the argument of onSuccess callback function.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
suggestedLocations + + +Array.<Gp.Services.AutoComplete.SuggestedLocation> + + + +

SuggestedLocations array.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.CommonService.html b/v3.4.4/jsdoc/Gp.Services.CommonService.html new file mode 100644 index 00000000..6c27e84d --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.CommonService.html @@ -0,0 +1,3384 @@ + + + + + + + + + + + + + Class: CommonService + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Class: CommonService

+ + + + +
+ + +

+ Gp.Services.CommonService +

+ + +

Composant Service

+ + + +
+
+ + + + +
+
+

+ + new CommonService(options) +

+ + +
+ Services/CommonService.js, line 89 +
+ +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + + +

options communes à tous les services

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
serverUrl + + +String + + + + + + + optional + + + + + +

URL d'accès au service. Par défaut "https://data.geopf.fr/SERVICE/".
+Permet de forcer l'utilisation d'un service équivalent déployé derrière une éventuelle autre URL d'accès.
+Si ce paramètre est renseigné alors, le paramètre par défaut est ignoré.

protocol + + +String + + + + + + + optional + + + + + +

Le protocole à utiliser pour récupérer les informations du service :
+peut valoir 'JSONP' ou 'XHR'.
+Par défaut, c'est le protocole XHR qui sera utilisé.
+Attention, le protocole JSONP n'est pas valide dans un environnement NodeJS (Utilisation du mode XHR).

ssl + + +Boolean + + + + + + + optional + + + + + +

Indique si l'on souhaite intérroger les services en https.
+Ce paramètre ne fonctionne que pour une utilisation hors navigateur (ex. NodeJS).
+Sur un navigateur, le protocole est automatiquement extrait de l'url du site...
+Par défaut, on utilise le protocole http (ssl=false).

proxyURL + + +String + + + + + + + optional + + + + + +

Le proxy à utiliser pour pallier au problème de cross-domain dans le cas d'une requête XHR.
+Utile si le paramètre 'protocol' vaut 'XHR', il ne sera pas pris en compte si protocol vaut JSONP.

callbackSuffix + + +String + + + + + + + optional + + + + + +

Suffixe de la fonction de callback à utiliser, dans le cas du protocole JSONP.
+Par défaut, la fonction de callback portera un nom du type "callback"+ID, où ID est soit un identifiant unique généré à chaque requête,
+soit le paramètre callbackSuffix s'il est spécifié. Par exemple, si callbackSuffix="_2", la fonction sera "callback_2 ()".
+Utile pour utiliser une réponse déjà encapsulée dans une fonction de callback, dont le nom est connu
+Utile seulement si le paramètre 'protocol' vaut 'JSONP', il ne sera pas pris en compte si protocol vaut 'XHR'.

httpMethod + + +String + + + + + + + optional + + + + + +

La méthode HTTP
+à utiliser dans le cas d'une requête XHR : peut valoir 'GET' ou 'POST'.
+Non pris en compte si 'protocol' vaut JSONP qui fonctionne obligatoirement en GET.
+Par défaut, c'est la méthode GET qui est utilisée.

contentType + + +String + + + + + + + optional + + + + + +

Content-Type de la requete
+à utiliser dans le cas d'une requête XHR en mode POST.
+Non pris en compte si 'protocol' vaut JSONP et/ou la méthode HTTP vaut GET.
+Par défaut, c'est la méthode GET qui est utilisée donc on n'utilise pas de Content-Type.

timeOut + + +Number + + + + + + + optional + + + + + +

Délai d'attente maximal (en ms) de la réponse du service (à partir de l'envoi de la requête).
+Par défaut, aucun timeOut n'est pris en compte (timeoutDelay= 0).

rawResponse + + +Boolean + + + + + + + optional + + + + + +

Indique si l'on souhaite que la réponse du service ne soit pas parsée par l'API avant d'être restituée.
+(Cf. paramètre « onSuccess » pour plus de détails).

onSuccess + + +function + + + + + + + optional + + + + + +

Fonction appelée lorsque le service répond correctement à la requête
+(code HTTP 200, sans message d'erreur).
+Cette fonction prend en paramètre la réponse du service,
+soit sous la forme d'un Object Javascript formaté par le parseur dédié à la syntaxe du service (comportement par défaut) ;
+soit brute au format String non prétraité si le paramètre « rawResponse » a été précisé avec la valeur « true ».

onFailure + + +function + + + + + + + optional + + + + + +

Fonction appelée lorsque le service ne répond pas correctement
+(code HTTP de retour différent de 200 ou pas de réponse).

onBeforeParse + + +function + + + + + + + optional + + + + + +

Fonction appelée avant le parsing de la réponse
+Permet de modifier la réponse avant parsing et la fonction doit retourner une String.
+Cette fonction prend en paramètre la réponse telle que renvoyée par le service
+(cad au format json ou xml).
+Pour le JSONP, si le paramètre "rawResponse" a été précisé avec la valeur "true",
+la fonction prend en paramètre un Object JavaScript contenant la réponse XML.

+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Example
+ + + +
var options = {
+     serverUrl : 'http://localhost/service/',
+     protocol : 'JSONP', // JSONP|XHR
+     ssl : false,
+     proxyURL : null,
+     callbackName : null,
+     httpMethod : 'GET', // GET|POST
+     timeOut : 10000, // ms
+     rawResponse : false, // true|false
+     scope : null, // this
+     onSuccess : function (response) {},
+     onFailure : function (error) {},
+     onBeforeParse : function (rawResponse) {}
+  };
+ + + +
+ + +
+ + + + + + + + + + + + +

Members

+ +
+ +
+
+

optionsObject

+
+ + +
+
+ +
+

Options du service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

request

+
+ + +
+
+ +
+

Requête envoyée au service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

response

+
+ + +
+
+ +
+

Reponse du service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Config.Base.html b/v3.4.4/jsdoc/Gp.Services.Config.Base.html new file mode 100644 index 00000000..35f225e7 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Config.Base.html @@ -0,0 +1,2730 @@ + + + + + + + + + + + + + Namespace: Base + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: Base

+ + + + +
+ + +

+ Gp.Services.Config.Base +

+ +

.Config.

+ + + + +
+
+ + + + +

A base layer

+

type {Boolean}

+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Config.Constraint.html b/v3.4.4/jsdoc/Gp.Services.Config.Constraint.html new file mode 100644 index 00000000..81f4ccdc --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Config.Constraint.html @@ -0,0 +1,2873 @@ + + + + + + + + + + + + + Namespace: Constraint + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: Constraint

+ + + + +
+ + +

+ Gp.Services.Config.Constraint +

+ +

.Config.

+ + + + +
+
+ + + + +

Object used to express a geographical (BBOX, scale) and temporal constraint.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
crs + + +String + + + +

Coordinates System ID used to express coordinates contraints.

bbox + + +Gp.BBox + + + +

Constraint Bounding Box.

minScaleDenominator + + +Number + + + +

Minimum scale denominator where constraint applies.

maxScaleDenominator + + +Number + + + +

Maximum scale denominator where constraint applies.

temporalExtent + + +Array.<String> + + + +

Array expressing the time interval of the constraint [minT, maxT]. Dates are expressed in the ISO-8601 way.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Config.Format.html b/v3.4.4/jsdoc/Gp.Services.Config.Format.html new file mode 100644 index 00000000..8cf87802 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Config.Format.html @@ -0,0 +1,2804 @@ + + + + + + + + + + + + + Namespace: Format + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: Format

+ + + + +
+ + +

+ Gp.Services.Config.Format +

+ +

.Config.

+ + + + +
+
+ + + + +

Object used to describe a format to use with Geoportal resources.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
current + + +Boolean + + + +

If true, then this format is used by default.

name + + +String + + + +

Format mime-type.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Config.Layer.html b/v3.4.4/jsdoc/Gp.Services.Config.Layer.html new file mode 100644 index 00000000..ae968a80 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Config.Layer.html @@ -0,0 +1,3592 @@ + + + + + + + + + + + + + Namespace: Layer + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: Layer

+ + + + +
+ + +

+ Gp.Services.Config.Layer +

+ +

.Config.

+ + + + +
+
+ + + + +

Object used to describe geoportal resource (WMTS, WMS, WFS layers, geocoding resources or elevation service) parameters. Properties may be used or not depending on the resource type.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + +String + + + +

name of the resource to use with the webservice that serves it (eg : "GEOGRAPHICALGRIDSYSTEMS.MAPS").

title + + +String + + + +

Human readable name for the resource.

description + + +String + + + +

Resource description.

layerId + + +String + + + +

Unique resource Identifier (eg : "GEOGRAPHICALGRIDSYSTEMS.MAPS$GEOPORTAIL:OGC:WMTS")

quicklookUrl + + +String + + + +

Image URL for the resource.

serviceParams + + +Object + + + +

Informations about the webservice that serves the resource (OpenLS, WFS, WMTS)

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + +

Web Service identifier ("OGC:WMTS", "OGC:OPENLS;ReverseGeocode", etc...)

serverUrl + + +Object + + + +

Associative array mapping geoportal access key (keys) with their properties (URLs of the web service, with the geoportal access key).

version + + +String + + + +

webservice version.

+ +
defaultProjection + + +String + + + +

coordinates system ID used by default for the resource (WMS or WFS layer) or of the TileMatrixSet used by the WMTS layer.

additionalProjections + + +Array.<String> + + + +

additional coordinates systems IDs availables for the resource, others than the default one (see defaultProjection) (WMS and WFS layers only).

formats + + +Array.<Gp.Services.Config.Format> + + + +

Formats availables for the resource.

legends + + +Array.<Gp.Services.Config.Legend> + + + +

Informations about legends associated to the resource.

metadata + + +Array.<Gp.Services.Config.Metadata> + + + +

Informations about metadata associated to the resource.

styles + + +Array.<Gp.Services.Config.Style> + + + +

Informations about styles availables for the resources (WMS, WFS and WMTS only).

thematics + + +Array.<Gp.Services.Config.Thematic> + + + +

Informations about thematics associated to the resource.

globalConstraint + + +Gp.Services.Config.Constraint + + + +

geographical constraint for the resource.

constraints + + +Array.<Gp.Services.Config.Constraint> + + + +

additionnal geographical constraints for the resource.

originators + + +Array.<Gp.Services.Config.Originator> + + + +

Informations about originator of the resource.

wmtsOptions + + +Object + + + +

Informations associated to WMTS resources.

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
tileMatrixSetLink + + +String + + + +

TileMatrixSet identifier used by the resource (see Gp.Services.Config.TileMatrixSet)

tileMatrixSetLimits + + +Gp.Services.Config.TileMatrixLimit + + + +

limits of the resource for that TileMAtrixSet.

+ +
queryable + + +Boolean + + + +

true if a getFeatureInfo request may be done for the resource (WMS or WMTS only).

hidden + + +Boolean + + + +

true if the resource is not visible.

isAggregate + + +Boolean + + + +

true if the resource is an aggregate of other resources (@see aggregatedLayers).

aggregatedLayers + + +Array.<String> + + + +

Layers IDs composing the being described aggregated layer.

apiKeys + + +Array.<String> + + + +

Array of access keys that grant access to that resource.

dimensions + + +Object + + + +

Dimensions informations associated with the resource.

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
type + + +String + + + +
visibilityRange + + +String + + + +
visibilityMode + + +String + + + +
noDataValue + + +String + + + +
geometricType + + +String + + + +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Config.Legend.html b/v3.4.4/jsdoc/Gp.Services.Config.Legend.html new file mode 100644 index 00000000..bc5ea025 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Config.Legend.html @@ -0,0 +1,2827 @@ + + + + + + + + + + + + + Namespace: Legend + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: Legend

+ + + + +
+ + +

+ Gp.Services.Config.Legend +

+ +

.Config.

+ + + + +
+
+ + + + +

Object used to describe a legend file associated with a geoportal resource (WMTS, WMS, WFS layers).

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
format + + +String + + + +

mime-type of the legend file.

url + + +String + + + +

legend file URL

minScaleDenominator + + +Number + + + +

minimum scale denominator where this legend applies.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Config.Metadata.html b/v3.4.4/jsdoc/Gp.Services.Config.Metadata.html new file mode 100644 index 00000000..5e63bc90 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Config.Metadata.html @@ -0,0 +1,2804 @@ + + + + + + + + + + + + + Namespace: Metadata + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: Metadata

+ + + + +
+ + +

+ Gp.Services.Config.Metadata +

+ +

.Config.

+ + + + +
+
+ + + + +

Object used to describe a metadata file associated with a geoportal resource.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
format + + +String + + + +

mime-type of the metadata file.

url + + +String + + + +

metadata file URL

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Config.Originator.html b/v3.4.4/jsdoc/Gp.Services.Config.Originator.html new file mode 100644 index 00000000..b83a546e --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Config.Originator.html @@ -0,0 +1,2873 @@ + + + + + + + + + + + + + Namespace: Originator + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: Originator

+ + + + +
+ + +

+ Gp.Services.Config.Originator +

+ +

.Config.

+ + + + +
+
+ + + + +

Object used to describe an Originator of geoportal resource.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + +String + + + +

originator name

attribution + + +String + + + +

originator full name

logo + + +String + + + +

originator logo file URL

url + + +String + + + +

originator web site URL

constraints + + +Array.<Gp.Services.Config.Constraint> + + + +

where and when the originator applies for the ressource.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Config.Service.html b/v3.4.4/jsdoc/Gp.Services.Config.Service.html new file mode 100644 index 00000000..0293af40 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Config.Service.html @@ -0,0 +1,2827 @@ + + + + + + + + + + + + + Namespace: Service + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: Service

+ + + + +
+ + +

+ Gp.Services.Config.Service +

+ +

.Config.

+ + + + +
+
+ + + + +

Object used to describe a web service of the geoportal platform.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
title + + +String + + + +

Web service name

serverUrl + + +Object + + + +

Associative array mapping geoportal access key (keys) with their properties (URLs of the web service, with the geoportal access key).

version + + +String + + + +

web service version.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Config.Style.html b/v3.4.4/jsdoc/Gp.Services.Config.Style.html new file mode 100644 index 00000000..d36823e3 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Config.Style.html @@ -0,0 +1,2850 @@ + + + + + + + + + + + + + Namespace: Style + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: Style

+ + + + +
+ + +

+ Gp.Services.Config.Style +

+ +

.Config.

+ + + + +
+
+ + + + +

Object used to describe a style that may be used for a geoportal resource.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + +String + + + +

Style identifier (eg : "normal", "bdparcellaire", ...)

title + + +String + + + +

human readable name of the style.

current + + +Boolean + + + +

true if this is the default style.

url + + +String + + + +

Url Style (eg: vectortile).

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Config.Territory.html b/v3.4.4/jsdoc/Gp.Services.Config.Territory.html new file mode 100644 index 00000000..5f3fdf99 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Config.Territory.html @@ -0,0 +1,3084 @@ + + + + + + + + + + + + + Namespace: Territory + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: Territory

+ + + + +
+ + +

+ Gp.Services.Config.Territory +

+ +

.Config.

+ + + + +
+
+ + + + +

Object used to describe properties of a french territory covered by geoportal resources.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
isDefault + + +Boolean + + + +

if this territory is to use by default.

defaultCRS + + +String + + + +

Identifier of the coordinates system to use by default for that territory.

additionalCRS + + +Array.<String> + + + +

Identifiers of additional coordinates systems availables for that territory.

defaultLayers + + +Array.<String> + + + +

Identifiers of layers to load by default for that territory.

defaultOptions + + +Object + + + +

options to use by default for that territory.

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
resolution + + +Number + + + +

resolution to use by default for that territory (in meter per pixel).

minScaleDenominator + + +Number + + + +

minimum scaleDenominator accessible for that territory.

maxScaleDenominator + + +Number + + + +

maximum scaleDenominator accessible for that territory.

+ +
geoBBox + + +Gp.BBox + + + +

Bounding Box of the territory (expressed in geographical coordinates)

geoCenter + + +Object + + + +

center of the territory (expressed in geographical coordinates)

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
lon + + +Float + + + +

center longitude

lat + + +Float + + + +

center latitude

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Config.Thematic.html b/v3.4.4/jsdoc/Gp.Services.Config.Thematic.html new file mode 100644 index 00000000..b105d769 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Config.Thematic.html @@ -0,0 +1,2730 @@ + + + + + + + + + + + + + Namespace: Thematic + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: Thematic

+ + + + +
+ + +

+ Gp.Services.Config.Thematic +

+ +

.Config.

+ + + + +
+
+ + + + +

A thematic name

+

type {String}

+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Config.TileMatrix.html b/v3.4.4/jsdoc/Gp.Services.Config.TileMatrix.html new file mode 100644 index 00000000..77b69707 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Config.TileMatrix.html @@ -0,0 +1,2919 @@ + + + + + + + + + + + + + Namespace: TileMatrix + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: TileMatrix

+ + + + +
+ + +

+ Gp.Services.Config.TileMatrix +

+ +

.Config.

+ + + + +
+
+ + + + +

Object used to describe a TileMatrix.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
matrixId + + +String + + + +

matrix Identifier

matrixHeight + + +Number + + + +

Number of tiles from the top to the bottom of the matrix.

matrixWidth + + +Number + + + +

Number of tiles from the left to the right of the matrix.

scaleDenominator + + +Number + + + +

Scale denominator associated to that matrix.

tileHeight + + +Number + + + +

tile height in number of pixels

tileWidth + + +Number + + + +

tile width in number of pixels

topLeftCorner + + +Gp.Point + + + +

Top Left Corner Point of the matrix expressed in the tileMatrixSet coordinates system.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Config.TileMatrixLimit.html b/v3.4.4/jsdoc/Gp.Services.Config.TileMatrixLimit.html new file mode 100644 index 00000000..8af71937 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Config.TileMatrixLimit.html @@ -0,0 +1,2850 @@ + + + + + + + + + + + + + Namespace: TileMatrixLimit + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: TileMatrixLimit

+ + + + +
+ + +

+ Gp.Services.Config.TileMatrixLimit +

+ +

.Config.

+ + + + +
+
+ + + + +

Object used to describe a layer extent on a Tile Matrix.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
minTileCol + + +Number + + + +

minimum column index where tile can be found on the Tile matrix.

maxTileCol + + +Number + + + +

maximum column index where tile can be found on the Tile matrix.

minTileRow + + +Number + + + +

minimum row index where tile can be found on the Tile matrix.

maxTileCol + + +Number + + + +

maximum row index where tile can be found on the Tile matrix.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Config.TileMatrixSet.html b/v3.4.4/jsdoc/Gp.Services.Config.TileMatrixSet.html new file mode 100644 index 00000000..d87e3cc1 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Config.TileMatrixSet.html @@ -0,0 +1,2850 @@ + + + + + + + + + + + + + Namespace: TileMatrixSet + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: TileMatrixSet

+ + + + +
+ + +

+ Gp.Services.Config.TileMatrixSet +

+ +

.Config.

+ + + + +
+
+ + + + +

Object used to describe a TileMatrix set (for WMTS use).

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
matrixIds + + +Array.<String> + + + +

Array of IDs for each TileMatrix of the set.

tileMatrices + + +Array.<Gp.Services.Config.TileMatrix> + + + +

Array of TileMatrix descriptions.

nativeResolutions + + +Array.<Float> + + + +

Array of resolutions (in meter per pixel) applying for each TileMatrix of the set.

projection + + +String + + + +

Identifier of the Cordinates System used for the tileMatrixSet.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Config.html b/v3.4.4/jsdoc/Gp.Services.Config.html new file mode 100644 index 00000000..d159b30b --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Config.html @@ -0,0 +1,3660 @@ + + + + + + + + + + + + + Class: Config + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Class: Config

+ + + + +
+ + +

+ Gp.Services.Config +

+ + +

Recupération de la configuration de clés Géoportail sous forme de JSON

+ + + +
+
+ + + + +
+
+

+ + new Config(options) +

+ + +
+ Services/Config/Config.js, line 30 +
+ +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + + +

options spécifiques au service (+ les options heritées)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDefaultDescription
apiKey + + +Sting + + + + + + + + + + + + +

clé(s) dont on veut obtenir la configuration. Si plusieurs clés, séparer chacune par une virgule

sync + + +Boolean + + + + + + false + + + + + optional + + + + + +

force le mode synchrone

customConfigFile + + +String + + + + + + + + + + + + +

chemin vers un fichier de configuration personnalisé. Surcharge le paramètre apiKey.

+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + +
See:
+
+ +
+ + + +
+ + + + + + + + + + + + + +
Example
+ + + +
var options = {
+     apiKey : "cartes,ortho",
+     sync : false,
+     onSuccess : function (response) {},
+     onFailure : function (error) {},
+  };
+ + + +
+ + +
+ + +

Extends

+ + + + + + + + + + + +

Namespaces

+ +
+
Base
+
+ +
Constraint
+
+ +
Format
+
+ +
Layer
+
+ +
Legend
+
+ +
Metadata
+
+ +
Originator
+
+ +
Service
+
+ +
Style
+
+ +
Territory
+
+ +
Thematic
+
+ +
TileMatrix
+
+ +
TileMatrixLimit
+
+ +
TileMatrixSet
+
+
+ + + +

Members

+ +
+ +
+
+

CLASSNAME

+
+ + +
+
+ +
+

Nom de la classe (heritage)

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

constructor

+
+ + +
+
+ +
+

Constructeur (alias)

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

optionsObject

+
+ + +
+
+ +
+

Options du service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

request

+
+ + +
+
+ +
+

Requête envoyée au service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

response

+
+ + +
+
+ +
+

Reponse du service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ + + +

Methods

+ +
+ +
+
+

+ + analyzeResponse(error, success) +

+ + +
+ Services/Config/Config.js, line 237 +
+ +
+ + +
+
+ + +
+

Analyse et mise en forme de la réponse en fusionnant les configurations

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
error + + +function + + + + + +

callback des erreurs

success + + +function + + + + + +

callback

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + buildRequest(error, success) +

+ + +
+ Services/Config/Config.js, line 91 +
+ +
+ + +
+
+ + +
+

Création de la requête

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
error + + +function + + + + + +

callback des erreurs

success + + +function + + + + + +

callback

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + callService(error, success) +

+ + +
+ Services/Config/Config.js, line 113 +
+ +
+ + +
+
+ + +
+

Récupération des configuration

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
error + + +function + + + + + +

callback des erreurs

success + + +function + + + + + +

callback

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.DefaultUrl.html b/v3.4.4/jsdoc/Gp.Services.DefaultUrl.html new file mode 100644 index 00000000..c95944c0 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.DefaultUrl.html @@ -0,0 +1,3582 @@ + + + + + + + + + + + + + Namespace: DefaultUrl + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: DefaultUrl

+ + + + +
+ + +

+ Gp.Services.DefaultUrl +

+ + + + +
+
+ + + + +

Default Geoportal web services URLs access.

+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + +

Members

+ +
+ +
+
+

staticGp.Services.DefaultUrl.AltiObject

+
+ + +
+
+ +
+

Elevation web service access

+
+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
url + + +function + + + +

(key) - Returns elevation service default urls with or without geoportal access key given as a parameter. The result is a javascript object with different urls given used protocols ("elevation-json", "elevation-xml", "profil-json" or "profil-xml").

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

staticGp.Services.DefaultUrl.AutoCompleteObject

+
+ + +
+
+ +
+

Autocompletion web service access

+
+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
url + + +function + + + +

(key) - Returns autocomplete service default urls with or without geoportal access key given as a parameter. The result is a String.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

staticGp.Services.DefaultUrl.ConfigObject

+
+ + +
+
+ +
+

Config web service access

+
+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
url + + +function + + + +

(key) - Returns config service default urls with or without geoportal access key given as a parameter.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

staticGp.Services.DefaultUrl.GeocodeObject

+
+ + +
+
+ +
+

Geocoding web service access

+
+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
url + + +function + + + +

(key) - Returns geocoding service default urls with or without geoportal access key given as a parameter. The result is a String.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

staticGp.Services.DefaultUrl.ProcessIsoCurveObject

+
+ + +
+
+ +
+

IsoCurve web service access

+
+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
url + + +function + + + +

(key) - Returns isocurve service default urls with or without geoportal access key given as a parameter. The result is a javascript object with different urls given used protocols ("iso-json" or "iso-xml").

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

staticGp.Services.DefaultUrl.ReverseGeocodeObject

+
+ + +
+
+ +
+

Reverse geocoding web service access

+
+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
url + + +function + + + +

(key) - Returns reverse geocoding service default urls with or without geoportal access key given as a parameter. The result is a String.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

staticGp.Services.DefaultUrl.RouteObject

+
+ + +
+
+ +
+

Routing web service access

+
+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
url + + +function + + + +

(key) - Returns routing service default urls with or without geoportal access key given as a parameter. The result is a javascript object with different urls given used protocols.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

staticGp.Services.DefaultUrl.ssl

+
+ + +
+
+ +
+

if set true, require the use of https protocol

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ + + +

Methods

+ +
+ +
+
+

+ + staticnewUrl(path){String} +

+ + +
+ Services/DefaultUrlService.js, line 49 +
+ +
+ + +
+
+ + +
+

base new-url of geoplateforme services (ssl protocol management)

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
path + + +String + + + + + +

path

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Geocode.GeocodedLocation.html b/v3.4.4/jsdoc/Gp.Services.Geocode.GeocodedLocation.html new file mode 100644 index 00000000..0a74660d --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Geocode.GeocodedLocation.html @@ -0,0 +1,2906 @@ + + + + + + + + + + + + + Namespace: GeocodedLocation + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: GeocodedLocation

+ + + + +
+ + +

+ Gp.Services.Geocode.GeocodedLocation +

+ +

.Geocode.

+ + + + +
+
+ + + + +

Single location object returned by the underlying geocoding web service.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
position + + +Gp.Point + + + +

Position of the location given in the requested coordinates system.

type + + +String + + + +

location type "StreetAddress" (for an address), "PositionOfInterest" (for a place name) or "CadastralParcel" (for cadastral parcel).

matchType + + +String + + + +

how geocoding is performed : "street number" (exact address), "street enhanced" (street number calculated by interpolation), "street" (only the street), "city" (only the city).

accuracy + + +Float + + + +

Accuracy of the response towards the requested location between 0 (unaccurate) and 1 (exact match).

placeAttributes + + +Object + + + +

Associative array matching the following attributes with their values given by the underlying web service :

+

*Common attributes : *

+
    +
  • trueGeometry - the 'real life' geometry if different from 'Point' type.
  • +
+

if type === "StreetAddress" :

+
    +
  • number - Street number.
  • +
  • postalCode - PostCode
  • +
  • street - Street name
  • +
  • city - City
  • +
  • houseNumberInfos - additional street number information
  • +
  • inseeCode - INSEE Code
  • +
+

if type === "PositionOfInterest" :

+
    +
  • type - Place name type
  • +
  • postalCode - PostCode
  • +
  • toponyme - Toponyme
  • +
  • extraFields - additional place name properties
  • +
  • inseeCode - INSEE Code
  • +
+

si type = "CadastralParcel" :

+
    +
  • codeCommuneAbs - when a parcel comes from a city that was absorbed by another, code of that old city. "000" otherwise.
  • +
  • codeArrondissement - arrondissement
  • +
  • identifiant - cadastral parcel code
  • +
  • feuille - Parcel Sheet (eg. "1").
  • +
  • numero - Parcel Number (eg. "0041")
  • +
  • section - Parcel Section (eg. "0D").
  • +
  • nomCommune - Parcel municipality name.
  • +
  • codeCommune - Parcel municipality.
  • +
  • codeDepartement - Parcel Department.
  • +
+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Geocode.html b/v3.4.4/jsdoc/Gp.Services.Geocode.html new file mode 100644 index 00000000..e517d8da --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Geocode.html @@ -0,0 +1,3809 @@ + + + + + + + + + + + + + Class: Geocode + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Class: Geocode

+ + + + +
+ + +

+ Gp.Services.Geocode +

+ + +

Appel du service de géocodage direct du Géoportail :
+envoi de la requête construite selon les paramètres en options,
+éventuellement parsing et analyse de la réponse,
+retour d'une réponse en paramètre de la fonction onSuccess.

+ + + +
+
+ + + + +
+
+

+ + new Geocode(options) +

+ + +
+ Services/Geocode/Geocode.js, line 71 +
+ +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + + +

options spécifiques au service (+ les options heritées)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDefaultDescription
query + + +String +| + +Object + + + + + + + + + + + + +

Nom de l'adresse, du toponyme, de l'unité administrative ou de la parcelle cadastrale recherchée.

filters + + +Object + + + + + + + + + optional + + + + + +

Les propriétés possibles de cet objet sont décrites ci-après.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
[prop] + + +String + + + + + + + optional + + + + + +

Critère supplémentaire pour filtrer la recherche sous la forme
+d'un couple clé/valeur à définir selon les possibilités du serveur ajouté à la requête.
+Le service de géocodage du Géoportail permet de filtrer les adresses postales avec les propriétés :
+"postalCode", "inseeCode", "city".
+Il permet également de filtrer les toponymes avec les propriétés :
+"postalCode", "inseeCode", "type".
+Enfin, il permet de filtrer les parcelles cadastrales avec les propriétés :
+"codeDepartement", "codeCommune", "nomCommune", "codeCommuneAbs", "codeArrondissement", "section", "numero", "feuille".

+ +
index + + +String + + + + + + "StreetAddress" + + + + + optional + + + + + +

Type de l'objet recherché.
+Le service de géocodage du Géoportail permet de rechercher des 'PositionOfInterest' pour des toponymes, des 'StreetAddress'
+pour des adresses postales ou des 'CadastralParcel' pour des parcelles cadastrales.
+L'index 'location' regroupe les indexes 'StreetAddress' et 'PositionOfInterest'.
+D'autres types pourront être rajoutés selon l'évolution du service.
+Par défaut, index = 'StreetAddress'.

position + + +Object + + + + + + + + + + + + +

Position du point de référence pour le calcul de proximité exprimée dans le système de référence spécifié par le srs.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
lon + + +Float + + + + + +

Longitude du point de référence pour le calcul de proximité.

lat + + +Float + + + + + +

Latitude du point de référence pour le calcul de proximité.

+ +
maximumResponses + + +Number + + + + + + + + + optional + + + + + +

Nombre de réponses maximal que l'on souhaite recevoir.
+Pas de valeur par défaut.
+Si le serveur consulté est celui du Géoportail, la valeur par défaut sera donc celle du service : 20.

returnTrueGeometry + + +Boolean + + + + + + false + + + + + optional + + + + + +

Booléen indiquant si l'on souhaite récupérer la géométrie vraie des objects géolocalisés.
+false par défaut.

+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Example
+ + + +
var options = {
+     apiKey : null,
+     serverUrl : 'http://localhost/service/',
+     proxyURL : null,
+     timeOut : 10000, // ms
+     rawResponse : false, // true|false
+     scope : null, // this
+     onSuccess : function (response) {},
+     onFailure : function (error) {},
+     // spécifique au service
+     position : {lon:, lat:},
+     index : 'StreetAddress',
+     query : '10 rue du pont Machin-ville'
+     (...)
+  };
+ + + +
+ + +
+ + +

Extends

+ + + + + + + + + + + +

Namespaces

+ +
+
GeocodedLocation
+
+
+ + + +

Members

+ +
+ +
+
+

CLASSNAME

+
+ + +
+
+ +
+

Nom de la classe (heritage)
+FIXME instance ou classe ?

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

optionsObject

+
+ + +
+
+ +
+

Options du service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

request

+
+ + +
+
+ +
+

Requête envoyée au service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

response

+
+ + +
+
+ +
+

Reponse du service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ + + +

Methods

+ +
+ +
+
+

+ + analyzeResponse(error, success) +

+ + +
+ Services/Geocode/Geocode.js, line 247 +
+ +
+ + +
+
+ + +
+

Analyse de la reponse (overwrite)

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
error + + +function + + + + + +

callback des erreurs

success + + +function + + + + + +

callback

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + buildRequest(error, success) +

+ + +
+ Services/Geocode/Geocode.js, line 220 +
+ +
+ + +
+
+ + +
+

Création de la requête (overwrite)

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
error + + +function + + + + + +

callback des erreurs

success + + +function + + + + + +

callback

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + patchOptionConvertor(options_){Object} +

+ + +
+ Services/Geocode/Geocode.js, line 143 +
+ +
+ + +
+
+ + +
+

Patch pour la convertion des options vers le nouveau formalisme.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options_ + + +Object + + + + + +

options du service

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.GeocodeResponse.html b/v3.4.4/jsdoc/Gp.Services.GeocodeResponse.html new file mode 100644 index 00000000..21ddb4bd --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.GeocodeResponse.html @@ -0,0 +1,2779 @@ + + + + + + + + + + + + + Namespace: GeocodeResponse + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: GeocodeResponse

+ + + + +
+ + +

+ Gp.Services.GeocodeResponse +

+ + + + +
+
+ + + + +

Response object for Gp.Services.geocode () or Gp.Services.reverseGeocode () invocation when successful. Received as the argument of onSuccess callback function.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
locations + + +Array.<Gp.Services.Geocode.GeocodedLocation> + + + +

locations array.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.GetConfigInterface.html b/v3.4.4/jsdoc/Gp.Services.GetConfigInterface.html new file mode 100644 index 00000000..7c3b612e --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.GetConfigInterface.html @@ -0,0 +1,4579 @@ + + + + + + + + + + + + + Namespace: GetConfigInterface + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: GetConfigInterface

+ + + + +
+ + +

+ Gp.Services.GetConfigInterface +

+ + + + +
+
+ + + + +

Response object for Gp.Services.getConfig () invocation when successful. Received as the argument of onSuccess callback function.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
generalOptions + + +Object + + + +

General properties for default map configuration resources.

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
apiKeys + + +Object + + + +

Object that associates apiKey (s) with an array of resources IDs availables with that key.

title + + +String + + + +

Underlying web service Title.

defaultGMLGFIStyle + + +String + + + +

XSL URL used by default to translate an XML GetFeatureInfo response into an HTML array.

theme + + +String + + + +

default theme (FIXME : for what ?)

wgs84Resolutions + + +Array.<Float> + + + +

geographical resolutions Array for each zoom level of the Geoportal platform from 0 to 21. Expressed in degrees/pixel.

+ +
layers + + +Object + + + +

Associative array mapping resources availables IDs (keys) with their properties (values given as Gp.Services.Config.Layer).

tileMatrixSets + + +Object + + + +

Associative Array mapping TileMatrixSets IDs (keys) availables with their properties (values given as Gp.Services.Config.TileMatrixSet).

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + +

Methods

+ +
+ +
+
+

+ + getGlobalConstraints(layerId){Object} +

+ + +
+ Services/Config/ConfigInterface.js, line 306 +
+ +
+ + +
+
+ + +
+

Get global constraints for a given Layer : extent, minScale, maxScale, projection

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
layerId + + +String + + + + + +

Geoportal layer identifier (e.g. "GEOGRAPHICALGRIDSYSTEMS.MAPS$GEOPORTAIL:OGC:WMTS")

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Returns:
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + + Object + + + - layer constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
projection + + String + + + - default layer projection
minScale + + Number + + + - layer min scale denominator
maxScale + + Number + + + - layer max scale denominator
extent + + Gp.BBox + + + - layer extent expressed in the layer projection
+ + +
+ + + + + +
+ + + +
+
+

+ + getLayerConf(layerId){Object} +

+ + +
+ Services/Config/ConfigInterface.js, line 144 +
+ +
+ + +
+
+ + +
+

Returns a geoportal layer configuration, given its identifier

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
layerId + + +String + + + + + +

Geoportal layer identifier (e.g. "GEOGRAPHICALGRIDSYSTEMS.MAPS$GEOPORTAIL:OGC:WMTS")

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
See:
+
+ +
+ + + +
+ + + + + + + + + + + + + + + +
Returns:
+- Layer configuration +
+ + + + + +
+ + + +
+
+

+ + getLayerId(layerName, service){String} +

+ + +
+ Services/Config/ConfigInterface.js, line 75 +
+ +
+ + +
+
+ + +
+

Returns the id of a Geoportal layer with its name and its service.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
layerName + + +String + + + + + +

name of the layer (ex. "ORTHOIMAGERY.ORTHOPHOTOS")

service + + +String + + + + + +

name of the service (ex. "WMS" ou "WMTS")

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+of the layer (ex. "ORTHOIMAGERY.ORTHOPHOTOS$GEOPORTAIL:OGC:WMTS") +
+ + + + + +
+ + + +
+
+

+ + getLayerKey(layerId){Array} +

+ + +
+ Services/Config/ConfigInterface.js, line 256 +
+ +
+ + +
+
+ + +
+

Get the contract key(s) associated to a given layer.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
layerId + + +String + + + + + +

Geoportal layer identifier (e.g. "GEOGRAPHICALGRIDSYSTEMS.MAPS$GEOPORTAIL:OGC:WMTS")

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+- array of key(s) associated to the given layer +
+ + + + + +
+ + + +
+
+

+ + getLayerParams(layerName, service, apiKey){Object} +

+ + +
+ Services/Config/ConfigInterface.js, line 174 +
+ +
+ + +
+
+ + +
+

Get all parameters needed to display a WFS, WMS or WMTS layer given its name, its service and its key

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
layerName + + +String + + + + + + + + + + +

name of the layer (ex. "ORTHOIMAGERY.ORTHOPHOTOS")

service + + +String + + + + + + + + + + +

name of the service (ex. "WMS" ou "WMTS")

apiKey + + +String + + + + + + + optional + + + + + +

Contract API key

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Returns:
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + + Object + + + - params of the service (WFS, WMS or WMTS) for the given layer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
url + + String + + + - Url of the service to reach to display the layer
version + + String + + + - Version of the service
styles + + String + + + - Default style of the layer
format + + String + + + - Default format of the layer
projection + + String + + + - Default projection of the layer
minScale + + Number + + + - Min scale denominator of the layer
maxScale + + Number + + + - Max scale denominator of the layer
extent + + Gp.BBox + + + - Extent of the layer, in the projection of the layer
legends + + Array + + + - Array of legends associated to the layer
title + + Array + + + - Name of the layer, readable by a human
description + + Array + + + - Description of the layer
[TMSLink] + + String + + + - Id of the Tile Matrix Set (TMS), in the case of WMTS layer
[matrixOrigin] + + Gp.Point + + + - Originof the tile matrix (top left corner), in the case of WMTS layer
[nativeResolutions] + + Array + + + - Array with the resolution of each level of the tile matrix set, in the case of WMTS layer
[matrixIds] + + Array + + + - Array with the ID of each level of the tile matrix set, in the case of WMTS layer
+ + +
+ + + + + +
+ + + +
+
+

+ + getLayersConf(apiKey){Object} +

+ + +
+ Services/Config/ConfigInterface.js, line 125 +
+ +
+ + +
+
+ + +
+

Returns an associative array of Geoportal layers configurations, corresponding to an API contract key.
+If no key is specified, all layers from configuration are returned.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
apiKey + + +String + + + + + +

Access key to Geoportal platform

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+- Object which properties are layers identifiers. +
+ + + + + +
+ + + +
+
+

+ + getLayersId(apiKey){Array} +

+ + +
+ Services/Config/ConfigInterface.js, line 64 +
+ +
+ + +
+
+ + +
+

Returns an array of Geoportal layers identifiers, corresponding to an API contract key.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
apiKey + + +String + + + + + +

Access key to Geoportal platform

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+- Array of geoportal layers identifiers +
+ + + + + +
+ + + +
+
+

+ + getTileMatrixSets(){Object} +

+ + +
+ Services/Config/ConfigInterface.js, line 278 +
+ +
+ + +
+
+ + +
+

Returns an associative array of Tile Matrix Sets configurations.

+
+ + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+- Object which properties are TMS identifiers +
+ + + + + +
+ + + +
+
+

+ + getTMSConf(tmsID){Object} +

+ + +
+ Services/Config/ConfigInterface.js, line 289 +
+ +
+ + +
+
+ + +
+

Returns a Tile Matrix Sets configuration, given its identifier.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
tmsID + + +String + + + + + +

Tile Matrix Set identifier (e.g. : "PM")

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
See:
+
+ +
+ + + +
+ + + + + + + + + + + + + + + +
Returns:
+- Tile Matrix Set configuration +
+ + + + + +
+ + + +
+
+

+ + isKeyConfLoaded(apiKey){Boolean} +

+ + +
+ Services/Config/ConfigInterface.js, line 48 +
+ +
+ + +
+
+ + +
+

Check if config is loaded for a given key

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
apiKey + + +String + + + + + +

Access key to Geoportal platform

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+- true if config of the key is already loaded, false otherwise +
+ + + + + +
+ +
+ + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.IsoCurveResponse.html b/v3.4.4/jsdoc/Gp.Services.IsoCurveResponse.html new file mode 100644 index 00000000..3e0324da --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.IsoCurveResponse.html @@ -0,0 +1,2917 @@ + + + + + + + + + + + + + Namespace: IsoCurveResponse + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: IsoCurveResponse

+ + + + +
+ + +

+ Gp.Services.IsoCurveResponse +

+ + + + +
+
+ + + + +

Response object for Gp.Services.isoCurve () invocation when successful. Received as the argument of onSuccess callback function.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
distance + + +Float + + + +

distance (expressed in meters) used for the request.

time + + +Float + + + +

time (expressed in seconds) used for the request.

geometry + + +Object + + + +

Geometry (expressed in GeoJSON) of the isocurve.

id + + +String + + + +

request id (used by underlying webservice).

location + + +Gp.Point + + + +

Position of the start or end point used for the request (expressed in "srs" coordinates system).

message + + +String + + + +

message

srs + + +String + + + +

Identifier of the coordinates system used for the isocurve.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.ProcessIsoCurve.html b/v3.4.4/jsdoc/Gp.Services.ProcessIsoCurve.html new file mode 100644 index 00000000..47508dd5 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.ProcessIsoCurve.html @@ -0,0 +1,4086 @@ + + + + + + + + + + + + + Class: ProcessIsoCurve + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Class: ProcessIsoCurve

+ + + + +
+ + +

+ Gp.Services.ProcessIsoCurve +

+ + +

Appel du service d'isochrone/distance du Géoportail :
+envoi de la requête construite selon les paramètres en options,
+éventuellement parsing et analyse de la réponse,
+retour d'une réponse en paramètre de la fonction onSuccess.

+ + + +
+
+ + + + +
+
+

+ + new ProcessIsoCurve(options) +

+ + +
+ Services/ProcessIsoCurve/ProcessIsoCurve.js, line 101 +
+ +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + + +

options spécifiques au service (+ les options heritées)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDefaultDescription
resource + + +String + + + + + + + + + + + + +

La ressource utilisée pour le calcul : bdtopo-valhalla (par défaut) ou bdtopo-pgr.

outputFormat + + +String + + + + + + + + + + + + +

Le format de la réponse du service iso : 'json' uniquement et par défaut.

position + + +Object + + + + + + + + + + + + +

Point de départ du calcul.
+Coordonnées exprimées en longitudes, latitudes (EPSG:4326)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +Float + + + + + +

Abcisse du point de départ du calcul d'isochrone/distance.

y + + +Float + + + + + +

Ordonnée du point de départ du calcul d'isochrone/distance.

+ +
srs + + +String + + + + + + + + + + + + +

Projection.
+Système de coordonnées dans lequel les coordonnées du point « location » sont exprimées et
+dans lequel la géométrie de la courbe résultante sera exprimée.
+Par défaut, le système de coordonnées utilisé sera « EPSG:4326 ».

graph + + +String + + + + + + "voiture" + + + + + optional + + + + + +

Nom du graphe à utiliser pour le calcul (« Pieton » ou « Voiture »).
+La valeur par défaut est : «voiture»

exclusions + + +Array.<String> + + + + + + + + + optional + + + + + +

DEPRECATED: Ce paramètre est conservé pour une rétrocompatibilité de l'api. Le nouveau paramètre à utiliser est options.constraints.
+Critères d'exclusions à appliquer pour le calcul.
+On précise ici le type de tronçons que l'on ne veut pas que l'isochrone/distance emprunte
+(valeurs possibles : « toll » (éviter les péages), « bridge », « tunnel »).

constraints + + +Array.<Object> + + + + + + + + + optional + + + + + +

Critères de contraintes à appliquer sur un itinéraire. Les valeurs disponibles dépendent de la ressource utilisée. Il est donc utile de regarder le getCapabilities.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
constraintType + + +String + + + + + + + optional + + + + + +

Type de la contrainte. Généralement "banned".

key + + +String + + + + + + + optional + + + + + +

Clé de la contrainte. Généralement "wayType".

operator + + +String + + + + + + + optional + + + + + +

Opérateur de la contrainte. Généralement "=".

value + + +String + + + + + + + optional + + + + + +

Valeur de la contrainte. Généralement "autoroute".

+ +
method + + +String + + + + + + "time" + + + + + optional + + + + + +

Méthode utilisée pour le calcul de la courbe iso.
+Les valeurs possible sont "time" pour un calcul d'isochrone, "distance" pour un calcul d'isodistance.
+Pas de valeur spécifié équivaut à un calcul d'isochrone.

distanceUnit + + +String + + + + + + "m" + + + + + optional + + + + + +

Indique si la distance doit être exprimée en km ou m dans la réponse ("m" or "km").

timeUnit + + +String + + + + + + "second" + + + + + optional + + + + + +

Indique si la durée doit être exprimée en seconde, minute ou heure dans la réponse ("standard", "second", "minute", "hour"). Il peut-être formatté hh:mm::ss avec la valeur standard.

time + + +Float + + + + + + + + + + + + +

Durée maximum (exprimée en secondes) à utiliser pour le calcul de la courbe à partir du ou jusqu'au point « location ».
+Ce paramètre doit être renseigné si l'option "méthod" a la valeur "time".
+Si l'option method n'est pas renseignée, ce paramètre doit être renseigné.

distance + + +Float + + + + + + + + + + + + +

Distance maximum (exprimée en metres) à utiliser pour le calcul de la courbe à partir du ou j'usqu'au point « location ».
+Ce paramètre doit être renseigné si l'option "méthod" a la valeur "DISTANCE".
+Si l'option "method" n'est pas renseignée, ce paramètre sera ignoré.

reverse + + +Boolean + + + + + + false + + + + + optional + + + + + +

Indique si la géométrie résultante doit être lissée (« true ») pour ne pas avoir d'effet d'escalier.
+Par défaut, la valeur « false » est appliquée.

smoothing + + +Boolean + + + + + + false + + + + + optional + + + + + +

Indique si la géométrie résultante doit être lissée (« true ») pour ne pas avoir d'effet d'escalier.
+Par défaut, la valeur « false » est appliquée.

holes + + +Boolean + + + + + + false + + + + + optional + + + + + +

Indique si la géométrie résultante (surface) doit être retournée avec des trous (« true »).
+Par défaut, la valeur « false » est appliquée.

+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Example
+ + + +
var options = {
+     // options communes aux services
+     apiKey : null,
+     serverUrl : 'http://localhost/service/',
+     protocol : 'JSONP', // JSONP|XHR
+     proxyURL : null,
+     httpMethod : 'GET', // GET|POST
+     timeOut : 10000, // ms
+     rawResponse : false, // true|false
+     scope : null, // this
+     onSuccess : function (response) {},
+     onFailure : function (error) {},
+     // spécifique au service
+     position : {
+          x : 2.3242664298058053,
+          y : 48.86118017324745
+     },
+     resource : bdtopo-valhalla,
+     distance : 200,
+     [time : ]
+     method : "distance",
+     graph : "voiture",
+     reverse : false
+ };
+ + + +
+ + +
+ + +

Extends

+ + + + + + + + + + + + + +

Members

+ +
+ +
+
+

CLASSNAME

+
+ + +
+
+ +
+

Nom de la classe (heritage)
+FIXME instance ou classe ?

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

optionsObject

+
+ + +
+
+ +
+

Options du service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

request

+
+ + +
+
+ +
+

Requête envoyée au service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

response

+
+ + +
+
+ +
+

Reponse du service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ + + +

Methods

+ +
+ +
+
+

+ + analyzeResponse(onError, onSuccess) +

+ + +
+ Services/ProcessIsoCurve/ProcessIsoCurve.js, line 301 +
+ +
+ + +
+
+ + +
+

(overwrite)
+Analyse de la reponse

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
onError + + +function + + + + + +

callback des erreurs

onSuccess + + +function + + + + + +

callback de succès de l'analyse de la réponse

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + buildRequest(error, success) +

+ + +
+ Services/ProcessIsoCurve/ProcessIsoCurve.js, line 278 +
+ +
+ + +
+
+ + +
+

Création de la requête (overwrite)

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
error + + +function + + + + + +

callback des erreurs

success + + +function + + + + + +

callback

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.ReverseGeocode.html b/v3.4.4/jsdoc/Gp.Services.ReverseGeocode.html new file mode 100644 index 00000000..fce9ba98 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.ReverseGeocode.html @@ -0,0 +1,4329 @@ + + + + + + + + + + + + + Class: ReverseGeocode + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Class: ReverseGeocode

+ + + + +
+ + +

+ Gp.Services.ReverseGeocode +

+ + +

Appel du service de géocodage inverse du Géoportail :
+envoi de la requête construite selon les paramètres en options,
+éventuellement parsing et analyse de la réponse,
+retour d'une réponse en paramètre de la fonction onSuccess.

+ + + +
+
+ + + + +
+
+

+ + new ReverseGeocode(options) +

+ + +
+ Services/Geocode/ReverseGeocode.js, line 76 +
+ +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + + +

options spécifiques au service (+ les options heritées)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDefaultDescription
position + + +Object + + + + + + + + + + + + +

Position du point de référence pour le calcul de proximité exprimée dans le système de référence spécifié par le srs.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
lon + + +Float + + + + + +

Longitude du point de référence pour le calcul de proximité.

lat + + +Float + + + + + +

Latitude du point de référence pour le calcul de proximité.

+ +
filters + + +Object + + + + + + + + + optional + + + + + +

Les propriétés possibles de cet objet.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
[proprietes du filtre] + + +String + + + + + + + optional + + + + + +

Critère supplémentaire pour filtrer la recherche sous la forme
+d'un couple clé/valeur à définir selon les possibilités du serveur ajouté à la requête.
+Le service de géocodage du Géoportail permet de filtrer les adresses postales avec les propriétés :
+"postalCode", "inseeCode", "city".
+Il permet également de filtrer les toponymes avec les propriétés :
+"postalCode", "inseeCode", "type".
+Enfin, il permet de filtrer les parcelles cadastrales avec les propriétés :
+"codeDepartement", "codeCommune", "nomCommune", "codeCommuneAbs", "codeArrondissement", "section", "numero", "feuille".

+ +
searchGeometry + + +Object + + + + + + + + + optional + + + + + +

Emprise dans laquelle on souhaite effectuer la recherche.
+Les propriétés possibles de cet objet sont décrites ci-après.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
type + + +String + + + + + +

Type de géometrie (Point|Circle|Linestring|Polygon)

coordinates + + +Array.<Float> +| + +Array.Array.<Float> + + + + + +

Coordonnées des points constituant la géométrie.

radius + + +Float + + + + + +

Rayon. Paramètre applicable uniquement pour le type 'Circle'.

+ +
index + + +String + + + + + + "StreetAddress" + + + + + optional + + + + + +

Type de l'objet recherché.
+Le service de géocodage du Géoportail permet de rechercher des 'PositionOfInterest' pour des toponymes, des 'StreetAddress'
+pour des adresses postales ou des 'CadastralParcel' pour des parcelles cadastrales. L'index 'location' permet une recherche
+multi-indexes en regroupant les indexes 'PositionOfInterest' et 'StreetAddress'.
+D'autres types pourront être rajoutés selon l'évolution du service.
+Par défaut, index = 'StreetAddress'.

maximumResponses + + +Number + + + + + + + + + optional + + + + + +

Nombre de réponses maximal que l'on souhaite recevoir.
+Pas de valeur par défaut. Si le serveur consulté est celui du Géoportail, la valeur par défaut sera donc celle du service : 20s.

returnTrueGeometry + + +Boolean + + + + + + + + + optional + + + + + +

Booléen indiquant si l'on souhaite récupérer la géométrie vraie des objects géolocalisés.
+false par défaut.

+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Example
+ + + +
var options = {
+     apiKey : null,
+     serverUrl : 'http://localhost/service/',
+     proxyURL : null,
+     timeOut : 10000, // ms
+     rawResponse : false, // true|false
+     scope : null, // this
+     onSuccess : function (response) {},
+     onFailure : function (error) {},
+     // spécifique au service
+     index : 'StreetAddress',
+     searchGeometry : {
+         type : Circle,
+         coordinates : [48, 2],
+         radius : 100
+     },
+     position : {lon:2 , lat:48.5},
+     maximumResponses : 25,
+  };
+ + + +
+ + +
+ + +

Extends

+ + + + + + + + + + + + + +

Members

+ +
+ +
+
+

staticGp.Services.ReverseGeocode.geoEPSG

+
+ + +
+
+ +
+

Codes EPSG géographiques (lat/lon). Utiles car les coordonnées doivent être inversées.

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

CLASSNAME

+
+ + +
+
+ +
+

Nom de la classe (heritage)
+FIXME instance ou classe ?

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

optionsObject

+
+ + +
+
+ +
+

Options du service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

request

+
+ + +
+
+ +
+

Requête envoyée au service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

response

+
+ + +
+
+ +
+

Reponse du service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ + + +

Methods

+ +
+ +
+
+

+ + analyzeResponse(error, success) +

+ + +
+ Services/Geocode/ReverseGeocode.js, line 265 +
+ +
+ + +
+
+ + +
+

(overwrite)
+Analyse de la reponse

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
error + + +function + + + + + +

callback des erreurs

success + + +function + + + + + +

callback

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + bbox2Json(bbox){Object} +

+ + +
+ Services/Geocode/ReverseGeocode.js, line 287 +
+ +
+ + +
+
+ + +
+

Patch pour la convertion des options vers le nouveau formalisme.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
bbox + + +Array + + + + + +

bbox

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+au format json + +
+ + + + + +
+ + + +
+
+

+ + buildRequest(error, success) +

+ + +
+ Services/Geocode/ReverseGeocode.js, line 237 +
+ +
+ + +
+
+ + +
+

(overwrite)
+Création de la requête

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
error + + +function + + + + + +

callback des erreurs

success + + +function + + + + + +

callback

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + circle2Json(circle){Object} +

+ + +
+ Services/Geocode/ReverseGeocode.js, line 306 +
+ +
+ + +
+
+ + +
+

Patch pour la convertion des options vers le nouveau formalisme.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
circle + + +Object + + + + + +

circle

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+au format json + +
+ + + + + +
+ + + +
+
+

+ + patchOptionConvertor(options_){Object} +

+ + +
+ Services/Geocode/ReverseGeocode.js, line 150 +
+ +
+ + +
+
+ + +
+

Patch pour la convertion des options vers le nouveau formalisme.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options_ + + +Object + + + + + +

options du service

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + +
+
+

+ + polygon2Json(polygon){Object} +

+ + +
+ Services/Geocode/ReverseGeocode.js, line 320 +
+ +
+ + +
+
+ + +
+

Patch pour la convertion des options vers le nouveau formalisme.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
polygon + + +Array + + + + + +

polygon

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+au format json + +
+ + + + + +
+ +
+ + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Route.RouteInstruction.html b/v3.4.4/jsdoc/Gp.Services.Route.RouteInstruction.html new file mode 100644 index 00000000..5ac1e9d8 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Route.RouteInstruction.html @@ -0,0 +1,2885 @@ + + + + + + + + + + + + + Namespace: RouteInstruction + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: RouteInstruction

+ + + + +
+ + +

+ Gp.Services.Route.RouteInstruction +

+ +

.Route.

+ + + + +
+
+ + + + +

Single Route Instruction object.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
code + + +String + + + +

Instruction code :

+
    +
  • "F" : Straight forward
  • +
  • "B" : U-turn
  • +
  • "L" : turn left
  • +
  • "R" : turn right
  • +
  • "BL" : turn left strongly
  • +
  • "BR" : turn right strongly
  • +
  • "FL" : turn lightly to the left
  • +
  • "FR" : turn lightly to the right
  • +
  • "round_about_entry" : round about entry
  • +
  • "round_about_exit" : round about exit
  • +
instruction + + +String + + + +

Instruction text : translated code + street name

geometry + + +Object + + + +

Geometry (expressed in GeoJSON) of the street.

distance + + +Float + + + +

Length of the instruction. Expressed in km or m, depending on distanceUnit parameter.

duration + + +Float + + + +

Instruction duration in seconds.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.Route.html b/v3.4.4/jsdoc/Gp.Services.Route.html new file mode 100644 index 00000000..dc8abe1e --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.Route.html @@ -0,0 +1,4215 @@ + + + + + + + + + + + + + Class: Route + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Class: Route

+ + + + +
+ + +

+ Gp.Services.Route +

+ + +

Appel du service d'itinéraire du Géoportail :
+envoi de la requête construite selon les paramètres en options,
+éventuellement parsing et analyse de la réponse,
+retour d'une réponse en paramètre de la fonction onSuccess.

+ + + +
+
+ + + + +
+
+

+ + new Route(options) +

+ + +
+ Services/Route/Route.js, line 107 +
+ +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + + +

options spécifiques au service (+ les options heritées)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDefaultDescription
resource + + +String + + + + + + + + + + + + +

La ressource utilisée pour le calcul. Ce paramètre devrait être obligatoire car il l'est dans l'appel au service. Mais il ne l'est pas pour des raisons de rétrocompatibilité.

outputFormat + + +String + + + + + + + + + + + + +

Le format de la réponse du service itineraire : 'json' uniquement et par défaut.

routePreference + + +String + + + + + + "fastest" + + + + + optional + + + + + +

Mode de calcul à utiliser :

+
    +
  • le plus rapide « fastest »
  • +
  • le plus court « shortest »
    +Par défaut : « fastest ».
  • +
startPoint + + +Object + + + + + + + + + + + + +

Point de départ du calcul. Coordonnées exprimées en longitudes, latitudes (EPSG:4326)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +Float + + + + + +

Abcisse du point de départ du calcul d'itinéraire.

y + + +Float + + + + + +

Ordonnée du point de départ du calcul d'itinéraire.

+ +
endPoint + + +Object + + + + + + + + + + + + +

Point d'arrivée du calcul. Coordonnées exprimées en longitudes, latitudes (EPSG:4326)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +Float + + + + + +

Abcisse du point d'arrivée du calcul d'itinéraire.

y + + +Float + + + + + +

Ordonnée du point d'arrivée du calcul d'itinéraire.

+ +
viaPoints + + +Array.<Object> + + + + + + + + + optional + + + + + +

Liste de point ({x:Float,y:Float}) intermédaires que l'itinéraire doit emprunter dans l'ordre du tableau.
+Coordonnées exprimées en longitudes, latitudes (EPSG:4326) :{x:float, y:float}

graph + + +String + + + + + + "voiture" + + + + + optional + + + + + +

Type de graphe utilisé : "Voiture" ou "Pieton".
+Détermine le profil de vitesses utilisé pour le calcul ainsi que les tronçons autorisés ou non.
+Par défaut, c'est la valeur "Voiture" qui sera utilisée.

exclusions + + +Array.<String> + + + + + + + + + optional + + + + + +

DEPRECATED: Critères d'exclusions à appliquer pour le calcul. (correspond au paramètre "avoidFeature" d'OpenLS)
+On précise ici le type de tronçons que l'on ne veut pas que l'itinéraire emprunte
+(valeurs possibles : « toll » (éviter les péages), « bridge », « tunnel »).
+Ce paramètre est conservé pour une rétrocompatibilité de l'api. Le nouveau paramètre à utiliser est options.constraints

constraints + + +Array.<Object> + + + + + + + + + optional + + + + + +

Critères de contraintes à appliquer sur un itinéraire. Les valeurs disponibles dépendent de la ressource utilisée. Il est donc utile de regarder le getCapabilities.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
constraintType + + +String + + + + + + + optional + + + + + +

Type de la contrainte. Généralement "banned".

key + + +String + + + + + + + optional + + + + + +

Clé de la contrainte. Généralement "wayType".

operator + + +String + + + + + + + optional + + + + + +

Opérateur de la contrainte. Généralement "=".

value + + +String + + + + + + + optional + + + + + +

Valeur de la contrainte. Généralement "autoroute".

+ +
geometryInInstructions + + +Boolean + + + + + + false + + + + + optional + + + + + +

Indique si la géométrie de l'itinéraire doit être reprise morceau par morceau dans les instructions.
+(correspond au paramètre "provideGeometry" d'OpenLS) Par défaut : false.

provideBbox + + +Boolean + + + + + + true + + + + + optional + + + + + +

Indique si les instructions doivent être localisées par une bbox dans la réponse.
+Par défaut : true.

distanceUnit + + +String + + + + + + "m" + + + + + optional + + + + + +

Indique si la distance doit être exprimée en km ou m dans la réponse.
+Par défaut : m.

timeUnit + + +String + + + + + + "second" + + + + + optional + + + + + +

Indique si la durée doit être exprimée en seconde, minute ou heure dans la réponse. Il peut-être formatté hh:mm::ss avec la valeur standard.
+Les valeurs possibles sont "standard", "second", "minute" ou "hour".
+Par défaut : "standard".

srs + + +String + + + + + + + + + optional + + + + + +

Système de coordonnées dans lequel les paramètres géographiques en entrée et la réponse du service sont exprimés.
+Pas de valeur par défaut. Si le serveur consulté est celui du Géoportail, la valeur par défaut sera donc celle du service : 'EPSG:4326'.

waysAttributes + + +Array.<String> + + + + + + + + + optional + + + + + +

Nom des attributs des voies. Les valeurs disponibles dépendent de la ressource utilisée. Il est donc utile de regarder le getCapabilities.

+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Example
+ + + +
var options = {
+     // options communes aux services
+     apiKey : null,
+     serverUrl : 'http://localhost/service/',
+     protocol : 'XHR',
+     proxyURL : null,
+     httpMethod : 'GET', // GET|POST
+     timeOut : 10000, // ms
+     rawResponse : false, // true|false
+     scope : null, // this
+     onSuccess : function (response) {},
+     onFailure : function (error) {},
+     // spécifique au service
+     resource : 'bdtopo'
+     outputFormat : 'json',
+     startPoint : {
+         x : 42.1121,
+         y : 1.5557
+     },
+     endPoint : {
+         x : 42.1121,
+         y : 1.5557
+     },
+     provideBbox : true,
+     exclusions : ["Bridge", "Tunnel", "Toll"],
+     distanceUnit : "km",
+     graph : "Voiture",
+     geometryInInstructions : true,
+     routePreference : "fastest"
+ };
+ + + +
+ + +
+ + +

Extends

+ + + + + + + + + + + +

Namespaces

+ +
+
RouteInstruction
+
+
+ + + +

Members

+ +
+ +
+
+

CLASSNAME

+
+ + +
+
+ +
+

Nom de la classe (heritage)

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

optionsObject

+
+ + +
+
+ +
+

Options du service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

request

+
+ + +
+
+ +
+

Requête envoyée au service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

response

+
+ + +
+
+ +
+

Reponse du service

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

innerconstraintTunnel

+
+ + +
+
+ +
+

Gestion de l'ancien paramètre exclusion

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ + + +

Methods

+ +
+ +
+
+

+ + analyzeResponse(error, success) +

+ + +
+ Services/Route/Route.js, line 299 +
+ +
+ + +
+
+ + +
+

(overwrite)
+Analyse de la reponse

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
error + + +function + + + + + +

callback des erreurs

success + + +function + + + + + +

callback

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + buildRequest(error, success) +

+ + +
+ Services/Route/Route.js, line 264 +
+ +
+ + +
+
+ + +
+

(overwrite)
+Création de la requête

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
error + + +function + + + + + +

callback des erreurs

success + + +function + + + + + +

callback

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/Gp.Services.RouteResponse.html b/v3.4.4/jsdoc/Gp.Services.RouteResponse.html new file mode 100644 index 00000000..a465c9c0 --- /dev/null +++ b/v3.4.4/jsdoc/Gp.Services.RouteResponse.html @@ -0,0 +1,2871 @@ + + + + + + + + + + + + + Namespace: RouteResponse + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Namespace: RouteResponse

+ + + + +
+ + +

+ Gp.Services.RouteResponse +

+ + + + +
+
+ + + + +

Response object for Gp.Services.route () invocation when successful. Received as the argument of onSuccess callback function.

+ + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
bbox + + +Gp.BBox + + + +

Bounding Box of the route. Given when provideBBox parameter is used in function call.

routeGeometry + + +Object + + + +

Geometry (expressed in GeoJSON) of the route.

routeInstructions + + +Array.<Gp.Services.Route.RouteInstruction> + + + +

Instructions of the route.

totalDistance + + +String + + + +

Length of the route. If distanceUnit parameter was set to "km" (default), totalDistance is a string containing the total distance expressed in kilometers, followed by " Km" (e.g. : "19.6 Km"). If distanceUnit parameter was set to "m", totalDistance is a string containing the total distance expressed in meters (e.g. : "19599.14").

totalTime + + +Float + + + +

Route duration in seconds.

+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/fonts/glyphicons-halflings-regular.eot b/v3.4.4/jsdoc/fonts/glyphicons-halflings-regular.eot new file mode 100644 index 0000000000000000000000000000000000000000..423bd5d3a20b804f596e04e5cd02fb4f16cfcbc1 GIT binary patch literal 20290 zcma%iWl&r}+vUIvFu1!7?(XjH8r_pdkt+yM3f?|%^(0BwNn zKil^oY6VY{-1dR0Ma@N z|IbPR0e+! zN}8*7O64;}N}#)+k#j6FO>isk@k@Bh*}4HIZ8cU{OIG{HQ=j2X*xT%?IOBQpvTZW7IXToOwNzo|ejHaAwCN3nOc7m7e{ub?Y8i z9p3wwJ(%iCu~2*Rb;zUJG0b8esX)Om9*+v4m=T(1qO&}%tozG*k;kT*-plt){q_5c z=|<3=s%J;+5^v+e03X6T{0`e9cT7ovP0397X+n!3SBptlDu2Z(nI^J_Nr|Uj5|0C( zsH7C}(vTj#)-rQv+n%XGE}df=E4Dq-Cn{|U=>@EJ_c| zjH;t!H%Vd##NLSe`rbIC2J`CayTWN>e+qGMY?nW2xD$T@W0o1?#bj;oT(4;Ir)pP{ z^zn;2#~F`ftb9z2k;^GdMPH0idXNQqUSan~vmdnPn3s3%SN@Uig6OL<*X8N9PDVh8 zE=aXkd(#~a3H9B82wp6U3u8FGYoX^x7PGE#+vn}?O~tkn>Tv{iedtIfP8&bwnH1VV zHel!dgTT%?xmK)jRE{TF1YFcv8fD@y@1r@D1{la@9zHJ7`jjIgzd=oiWYa9mwK%B} zy|CkRB)J0JQ?mos6ANjD$3j}@!PdiZfx7c_qb7yN=?6t6lXA%0bSJe!ZLD>cF8{8S z%zc;TkETPxDAFe72-on^9wD-?{q;2aQ7EWrbl0Amd#3unxvqn|JC@Kd#!m zD3%q9>q$Qjsg=pC8dMY`_9rchB1o3(Wil)(sF~w)ACOx!9kcmc~KuZIkS}MR3@?*tjUUD*Kz; zVJRtiRB@p=gjxTAV`+L&^tE^C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6p^#i&)ZZ0zP0p}Z_RDL^9prc~0GfL@6{*z_S74P5?%7%ZEv!Fr9l9IujWbor^03<*96 zAJoN(_*>^(p6pryJrf{I{JiX#5g;o3z%*4KB9x>vWZ`v97zCk>`mTLF$@&ykCVT9S z40MWog=mf0ua%LAYr;x!YV6R&{uH)t2L!GQ$wq!N!KUav8jGu_jJI~Ao&K4^2j*QU z)eV}I{0d{zwaAC&d{I&CXe+8pk2r*&4zuSOulgI;GIh|XM%z|9cE__{B3s+!fZjqK8geB? z2FSP-hhQgcNogs?*w6<)_E}2-dV0V=HAPPBzfILJzO*y8ySTW6iT}z);GiB+;BW#%K$yXBB*%F1cD1bK6 z%R<#9LAsBp5Cn#;GSd+l)FpZbNj0!!w1N*=vwD={iWZOcw0g+>Fe#|b(J?L%SwkwB z3Y^*v3m#v9SjgZKtA#eneGzqzfAvUHab0^)1_i5}nknOPaqxDYgg+GqL8i88fVjJa zfMqx;Zo(2oi-Oy`3-Mdy69M7DqzKULf%x8<`PcIV)evWBM&^28&P=reWqnZq!`ij{hj+Qi^Y+m=7!!_#8K>SM=KFv3W7ql zf(#Y2qjjqJ1}neA@`sHs&2M^dIqd_ryiggPpNk(o6U zAr8RmCUVDv`Y}`Jg>IC1SOU-Um>OebWQ-U@3$^cX=a@PC2Xv#N*nMxuX%Z3MWyuc# zdht5);{lFmrJ1<}Iy6|#V&>ImK&0FtPvMUeVryH|Phak|%DKE%dX> zirfwG5c!54259+46CiR#=|i3r7UF{sL`dk2*)qpNS260^ID=lnH~a+n!=_*!c1KO+ zeLEYFMJ|vSr(yT8f6=T(q!R$-b@!krct(RK>41BP1dYm&R02naKL>yiG0(rirp^g- z-T4DY6?#NE=pvG@7CEg_HoL-_q>XR4Uc+8m&^&1K!X2|7p^}(d-9M + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/fonts/glyphicons-halflings-regular.ttf b/v3.4.4/jsdoc/fonts/glyphicons-halflings-regular.ttf new file mode 100644 index 0000000000000000000000000000000000000000..a498ef4e7c8b556fc36f580c5ff524025bb11c84 GIT binary patch literal 41236 zcmc${34B}Cl|TOOdr!M8>1nlW%aSZh@-ADltvHKgvhN959SD$s!WNdWGz16%Qr5Hq zLm`wxhZF|Lu$1?dP}&a6w6rkl;x0@`ftk{z3q#8?Eo6ReL;Ujlp8MoA3AF$DeLjCD zlHMl0d(S=h+;hHXc>)szLBX3Wc;?Jmx%k3A|K_)Xz-n-`X6~%nbC?xp1U3o#v85|A z*$bXrcnkLXvA_PjOE+x(^}IzP?0-`b#EZ|{a&=5-kZ#A1)#JSN{LL3!x?+FkN$j`a z{KgA5T(ud;J%V7qkIr9k$+hP<{q(UrvH!3j+*x_y#tj7~Z^HK7`*FVeLL9JXWjFTU z$A0~VmtMW~yZ@@(EeHen4e`h&m!G#Gd;iMo1mR26#&2G_Ve4j5W_twTz87(Q?6M7) zZanZW4}OgO{}cpi+vdx!y86eb4XhS~FQfg|TQ*<0akKhSvtJPQ;Jnaw&Bk-j-=Htg z3&Pi&*f--v)DeC>?a`mo=TFXRd%*bg-oVeeuvbY(1QGj8cndGI1beuhd@~ymOoA*q z#h+pS4C9miqmUIrEdi%a{ep`JtY53N14 z{?J8-u03?;p$87z4u=mn9_~3j=kWZ)YY$&^_}asF9=`wZgTEGzAIGm5zt@D{6DItg zaL9DXb0~JG{ZQYbW%#{w4{bhl)1iUG?6Bu>>~Q!asH*G5-F7f0ttPmA`|67~Nd|1t2u@Q*SYReFv6!$}$f<4-=-kPct) z|MMp?^teB8{@?g_x6mN|MHO09!M9Ldw5(rUuw|_(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+ +
+ + + + + + + +
+ +

Global

+ + + + +
+ + +

+ +

+ + + + +
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + +

Members

+ +
+ +
+
+

classificationInteger

+
+ + +
+
+ +
+

Number used to classify the importance of the place where is the suggested location from 1 (most important) to 7 (less important).

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

CLASSNAMEString

+
+ + +
+
+ +
+

Nom de la classe : "GeocodedLocation"

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

communeString

+
+ + +
+
+ +
+

Suggested municipality

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

fullTextString

+
+ + +
+
+ +
+

Full text representation of the suggested location.

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

kindString

+
+ + +
+
+ +
+

Nature of the suggested location : "prefecture", "monument", "commune", ... for instance ("PositionOfInterest" only).

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

poiString

+
+ + +
+
+ +
+

Place name of the suggested location ("PositionOfInterest" only).

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

positionGp.Point

+
+ + +
+
+ +
+

Position of the suggested location given in requested coordinates system.

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

postalCodeNumber

+
+ + +
+
+ +
+

Suggested location postcode

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

sampling

+
+ + +
+
+ +
+

Setter/getter pour "sampling"

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

streetString

+
+ + +
+
+ +
+

Street name of the suggested location ("StreetAddress" only).

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

typeString

+
+ + +
+
+ +
+

Suggested location type : "StreetAddress" ou "PositionOfInterest"

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

zonly

+
+ + +
+
+ +
+

Setter/getter pour "zonly"

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/images/entete.png b/v3.4.4/jsdoc/images/entete.png new file mode 100644 index 0000000000000000000000000000000000000000..785651104951086de41c354e8ce645034279da22 GIT binary patch literal 119357 zcmXtg2{_d4_r5JlF_MyH>_v-RmN5(>T4c%limVw-mLW!C9YU`qgGBZ*l|tF~>|`1H zkir=IU=(A`zRdsQ`@8;Kml{{ics|c_o^$SV-}foT)Yy>gtl(J&1_rKscl94JFt8Q? zul?Csf#02XyU4&FEU4S}{$U4x1+zOv1K)EzziWkJU|@4R{bE!POh5fc0={=Fea*dG zeEpvKI5YV9`N_F@x})GvpF7KW`5-b^H3b;B`PwbJ+-ElGIm;?DT;iq1>O z-9M;5e-E3V_`SH-6T|D$e%x9w43*JRcz*Y@@w=jqI~StYhbC4kS|>C2DaiUs&m7l` zF%MNmeojYqumQPxfj;!?qGnPzz6vRXBzHO}L{}rB_&fS5==$hreooef#wY0|x(|oj z0~_OMXrZ;~=7jxVk*$5r++kNv)(A_vRPTTQf%-`~biJ)B+p$N6RAk%JTMv23wCcaJ zb8`~aWTZ@L@3(K?qGz959{jrXFt4y0`5+*oRZLD!u19?hT|eeo^SPnb;r#Np2Jji2 zQEdZTz{ibO$887NF1Arf)yUuS$SE57^ydI?K7qdT10xPg6 z_%}+elj4og+9_(Rd6J~kgVGR;JG)kzvP2iR)3vMB?1YT!iKb_c{xKw1D}q6kxw(%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D%z?1OO**+LD2SL+%X7>&l{v#4WQC3Z+MhY1EKS-^8q5uE@ literal 0 HcmV?d00001 diff --git a/v3.4.4/jsdoc/images/logoIGNsmall.png b/v3.4.4/jsdoc/images/logoIGNsmall.png new file mode 100644 index 0000000000000000000000000000000000000000..9b33003c3f7ea16300118bb3b7f58a8608b6d73f GIT binary patch literal 1010 zcmVX1^@s6oR$`P0000PbVXQnQ*UN; zcVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBU#lu1NERCwCFm|I9yK@^7fG4s|%O1pRo zOT?}cM3Gq3Q;KL5lyrZ}qR4LaQuNeA5(W`yWnq_>f--#YL5d71$_|xXO+^YT0!vGd z1({lB_fPyMcEdh<&+H@p@S%I0GiR+?Yu2o-&os?A!!V+O34CA}3>s>R0kgp(Fdt0h zct3as{NNS%<+4s8mWTvKv{~q<0cUDJ2WaEZN?^E<2=;;&Fl2_;AZP~L!5D}2 z_JANLR`~7^+2A>7r`XJ;vyV3`+C z_?|RS%X8GFwOt5LgA}goHX+RfJvOOx5@a}}LKdjv+z%i*%)D(jYd>{B{N@EwmDGkF;gPq(29jyT8 z6zx=+Q~<_Xp1*C(ciAsoL9&ak4Xs0}1brTi%P!iwrC&0>gEAEo=Dz`+rr zY&t9=TBMPZn;2oMs=ykr&iE`Bn%!sm8I|`624;aeo&h(F1&u5krj$vScmemzwz)Yo z{HKBYSEj7&1}s;M(0Ops#?h-hqu+I%kq_@on|Uv2;0f?q!N^>V!(U-j z&BQsb1_`>=%+I#OYDl(CMeAeLsRYF!kExZw9!j((kJ;O`YgRK6og}c;GM4D&p1ENY z=KT)y-}0btq~j$tqMW^1riapO^8D0AdTHL{i7h>QO6=#dFv1u#sHAS6^}2&0yzn z3`{phR=rH!PA~0Ds7u}frrA`YTq2^-%~C#&2R4!obW#_a-v*HGWnodRR)d=ktxq~5 zk>rxLBcYdI0~_DJ&Lr5RPdI%7tH2>fK}S!)?l8U8Xbl_W;4H}>` g0ptHE{kH%E00FAFfHR!#!2kdN07*qoM6N<$fmq*#ibJVQ8upoSx*1IXtr@Q5r1 zs=p4xj7}P}D}aKMC9V-A!TD(=<%vb94CUqJdYO6I#mR{Use1WE>9gP2NHH)l7JIrl zhD5Z!ovQ2M94OMT|M#~$Ea?H$#JBLI1RgiwRAOt+GfEL_W|Qa1krHtgCw$pvDE&k5-&hNr=59JDg;D^f!7XH-DdHJsU z8Sbbm8>LMa-sM%`e{?H*5tD}5yY?WtYTcjrrKPVWY_jYfx8-f39X!X?{3bCaO$v + + + + + + + + + + + + Index + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Index

+ + + + + + + + + + + + + + + + + + + + + +
+

Geoportal Resources Access API Reference

+

The Geoportal Resources Access Library provides functions to simply handle geoportal web services usage.

+

Usage pattern : For each web service usage, invoque the corresponding function and get response data with onSuccess callback param.

+

Example :

+
Gp.Services.getConfig({
+    apiKey : "e4iu7ff4ot440oj40byfkciw",
+    onSuccess : function(response) {
+        // response is a Gp.Services.GetConfigResponse object
+        ...
+    }
+}) ;
+
+
+

Geoportal access key management

+

Access to Geoportal resources metadata availables with one ore several keys, using the Geoportal Configuration project.

+ + + + + + + + + + + + + +
Function to invoqueResponse Object (onSuccess callback param)
Gp.Services.getConfig()Gp.Services.GetConfigResponse
+

Elevation web service usage

+

Getting elevations in or along of one or several points on french territories using the elevation services of the Geoportal Platform.

+ + + + + + + + + + + + + +
Function to invoqueResponse Object (onSuccess callback param)
Gp.Services.getAltitude()Gp.Services.AltiResponse
+

Geocoding web service usage

+

Getting positon of a geographic identifier (places names, address, cadastral parcel, other...) using the geocoding web service of the Geoportal Platform.

+ + + + + + + + + + + + + +
Function to invoqueResponse Object (onSuccess callback param)
Gp.Services.geocode()Gp.Services.GeocodeResponse
+

Reverse Geocoding web service usage

+

Retrieving geographical identifiers (place names, address, cadastral parcels, ...) near a given position, using the reverse geocoding web service of the Geoportal Platform.

+ + + + + + + + + + + + + +
Function to invoqueResponse Object (onSuccess callback param)
Gp.Services.reverseGeocode()Gp.Services.GeocodeResponse
+

Autocompletion web service usage

+

Getting suggestions of probable places names or address based on uncomplete texts, using the autocompletion service of the Geoportal Platform

+ + + + + + + + + + + + + +
Function to invoqueResponse Object (onSuccess callback param)
Gp.Services.autoComplete()Gp.Services.AutoCompleteResponse
+

Routing web service usage

+

Getting a route from one point to another using the route service of the Geoportal Platform.

+ + + + + + + + + + + + + +
Function to invoqueResponse Object (onSuccess callback param)
Gp.Services.route()Gp.Services.RouteResponse
+

IsoCurve web service usage

+

Computing a set of places (curve) reachable from a given point (or from where to start to reach a given point) within a time or distance constraint using isucurve service of the Geoportal Platform.

+ + + + + + + + + + + + + +
Function to invoqueResponse Object (onSuccess callback param)
Gp.Services.isoCurve()Gp.Services.IsoCurveResponse
+
+ + + + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/module-Gp.html b/v3.4.4/jsdoc/module-Gp.html new file mode 100644 index 00000000..0f03edf4 --- /dev/null +++ b/v3.4.4/jsdoc/module-Gp.html @@ -0,0 +1,2871 @@ + + + + + + + + + + + + + Module: Gp + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Module: Gp

+ + + + +
+ + +

+ Gp +

+ + + + +
+
+ + + + +

This is the global variable that is exposed in the browser environment.
+Content is composed of constructor, functions and properties...

+
+

Error()
+- .TYPE_SRVERR : "SERVICE_ERROR"
+- .TYPE_UNKERR : "UNKNOWN_ERROR"
+- .TYPE_USEERR : "USAGE_ERROR"

+
+
+

Helper
+- .indent()
+- .normalyzeParameters()
+- .normalyzeUrl()

+
+
+

Protocols.XHR
+- .call()

+
+
+

Services (objects)
+- .Alti
+- .Elevation()
+- .AltiResponse()
+- .AutoComplete
+- .SuggestedLocation()
+- .AutoCompleteResponse()
+- .Config()
+- .DefaultUrl()
+- .GeocodeResponse()
+- .GetConfigResponse()
+- .IsoCurveResponse()
+- .Route
+- .RouteInstruction()
+- .RouteResponse()

+
+
+

Services (factory)
+- .autoComplete()
+- .geocode()
+- .getAltitude()
+- .getConfig()
+- .isoCurve()
+- .reverseGeocode()
+- .route()

+
+
+

servicesDate : "YYYY-MM-DD"

+
+
+

servicesVersion : "X.X.X"

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + +

Members

+ +
+ +
+
+

static,constantmodule:Gp.servicesDate

+
+ + +
+
+ +
+

Publication date

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+

static,constantmodule:Gp.servicesVersion

+
+ + +
+
+ +
+

Version

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/module-Helper.html b/v3.4.4/jsdoc/module-Helper.html new file mode 100644 index 00000000..4191399a --- /dev/null +++ b/v3.4.4/jsdoc/module-Helper.html @@ -0,0 +1,3220 @@ + + + + + + + + + + + + + Module: Helper + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Module: Helper

+ + + + +
+ + +

+ Gp.Helper +

+ + + + +
+
+ + + + +

Classe utilitaire

+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + +

Methods

+ +
+ +
+
+

+ + staticindent(n, msg){String} +

+ + +
+ Utils/Helper.js, line 103 +
+ +
+ + +
+
+ + +
+

Indentation d'une chaine

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
n + + +Number + + + + + +

nombre de tabulation

msg + + +String + + + + + +

chaine

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+une chaine indentée +
+ + + + + +
Example
+ + + +
Gp.Utils.Helper.indent (2, "message à indenter")
+// out
+// ........message à indenter
+ + + +
+ + + +
+
+

+ + staticnormalyzeParameters(params){String} +

+ + +
+ Utils/Helper.js, line 9 +
+ +
+ + +
+
+ + +
+

concatenation des parametres key/value dans les urls

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + + +Object + + + + + +

tableau de clef/valeur

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+les paramètres concaténés +
+ + + + + +
Example
+ + + +
Gp.Utils.Helper.normalyzeParameters ({
+        key1:value1,
+        key2:value2,
+        key3:value3
+ });
+ // out : "key1=value1&key2=value2&key3=value3"
+ + + +
+ + + +
+
+

+ + staticnormalyzeUrl(url, params, encode){String} +

+ + +
+ Utils/Helper.js, line 47 +
+ +
+ + +
+
+ + +
+

Concaténation et encodage des urls.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
url + + +String + + + + + +

url

params + + +Object +| + +String + + + + + +

tableau de clef/valeur ou string

encode + + +Boolean + + + + + +

true|false, false par defaut

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+une url normalisée +
+ + + + + +
Example
+ + + +
Gp.Utils.Helper.normalyzeUrl (url, {
+        key1:value1,
+        key2=:value2,
+        key3:value3
+ });
+ // out : "url?key1=value1&key2=value2&key3=value3"
+ + + +
+ +
+ + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/module-Services.html b/v3.4.4/jsdoc/module-Services.html new file mode 100644 index 00000000..bebc6355 --- /dev/null +++ b/v3.4.4/jsdoc/module-Services.html @@ -0,0 +1,8343 @@ + + + + + + + + + + + + + Module: Services + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Module: Services

+ + + + +
+ + +

+ Gp.Services +

+ + + + +
+
+ + + + +

Geoportal web services invocation namespace.

+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + +

Methods

+ +
+ +
+
+

+ + innerautoComplete(options) +

+ + +
+ Services/Services.js, line 151 +
+ +
+ + +
+
+ + +
+

Getting suggestions of probable places names or address based on uncomplete texts, using the autocompletion service of the Geoportal Platform

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + + +

Options for function call.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDefaultDescription
apiKey + + +String + + + + + + + + + + + + +

Access key to Geoportal platform, obtained here.

text + + +String + + + + + + + + + + + + +

Text input to complete.

filterOptions.type + + +Array.<String> + + + + + + "StreetAddress" + + + + + optional + + + + + +

Suggestion types to provide : address ("StreetAddress") and/or place name ("PositionOfInterest").

filterOptions.territory + + +Array.<String> + + + + + + + + + optional + + + + + +

Places where to limit the search of suggestions : "METROPOLE" (Corsica and metropolitan France), "DOMTOM" (French overseas departments and territories), or an INSEE code of a department. No limitation by default. For instance : ['METROPOLE', '31']

maximumResponses + + +Number + + + + + + 10 + + + + + optional + + + + + +

Maximum number of responses.

onSuccess + + +function + + + + + + + + + + + + +

Callback function for getting successful service response. Takes a Gp.Services.AutoCompleteResponse object as a parameter except if "rawResponse" is set to true.

onFailure + + +function + + + + + + + + + optional + + + + + +

Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a Gp.Error object as parameter.

timeOut + + +Number + + + + + + 0 + + + + + optional + + + + + +

Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled.

serverUrl + + +String + + + + + + https://data.geopf.fr/geocodage/completion + + + + + optional + + + + + +

Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing.

ssl + + +Boolean + + + + + + true + + + + + optional + + + + + +

Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true).

protocol + + +String + + + + + + XHR + + + + + optional + + + + + +

Protocol used to handle dialog with web service. Possible values are 'JSONP' (https://en.wikipedia.org/wiki/JSONP) and 'XHR' (https://en.wikipedia.org/wiki/XMLHttpRequest). Only XHR protocol is supported in a NodeJS environment. Only use if you know what you're doing.

proxyURL + + +String + + + + + + + + + optional + + + + + +

Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing.

callbackSuffix + + +String + + + + + + + + + optional + + + + + +

Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing.

httpMethod + + +String + + + + + + GET + + + + + optional + + + + + +

HTTP method to use when requesting underlying web service in case of a XHR protocol use (see above). Possible values are 'GET' and 'POST'. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing.

contentType + + +String + + + + + + "application/xml" + + + + + optional + + + + + +

Content-Type to use when requesting underlying web service in case of a XHR protocol use (see above) and if method HTTP is POST. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing.

rawResponse + + +Boolean + + + + + + false + + + + + optional + + + + + +

Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing.

onBeforeParse + + +function + + + + + + + + + optional + + + + + +

Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing.

+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + innergeocode(options) +

+ + +
+ Services/Services.js, line 65 +
+ +
+ + +
+
+ + +
+

Getting positon of a geographic identifier (places names, address, cadastral parcel, other...) using the geocoding web service of the Geoportal Platform.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + + +

Options for function call.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDefaultDescription
apiKey + + +String + + + + + + + + + + + + +

Access key to Geoportal platform, obtained here.

index + + +String + + + + + + "StreetAddress" + + + + + optional + + + + + +

Geographical identifier type to search. Values currently availables are : "PositionOfInterest" for place names, "StreetAddress" for address search, "CadastralParcel" for Cadastral parcels search, "location" for a multi-index search on "StreetAddress" and "PositionOfInterest". Default is "StreetAddress".

query + + +String + + + + + + + + + + + + +

Geographic identifier to locate.

filters + + +Object + + + + + + + + + optional + + + + + +

Additional filters to apply to search. The following properties may be given.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
[prop] + + +String + + + + + + + optional + + + + + +

Additionnal properties to filter search. Properties depends on options.index, and values type should be "String".
+


+Properties availables for address search :

+"postalCode", "inseeCode" and "city".
+


+Properties availables for place names search :

+"postalCode", "inseeCode" and "type".
+


+Properties availables for cadastral parcels search :

+"codeDepartement", "codeCommune", "nomCommune", "codeCommuneAbs", "codeArrondissement", "section", "numero", "feuille".

+ +
maximumResponses + + +Number + + + + + + 20 + + + + + optional + + + + + +

Maximum number of responses. Default underlying service value applies (20) if not provided.

returnTrueGeometry + + +Boolean + + + + + + false + + + + + optional + + + + + +

Set this parameter to true if you wish to have the true geometrie returned.

onSuccess + + +function + + + + + + + + + + + + +

Callback function for getting successful service response. Takes a Gp.Services.GeocodeResponse object as a parameter except if "rawResponse" is set to true.

onFailure + + +function + + + + + + + + + optional + + + + + +

Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a Gp.Error object as parameter.

timeOut + + +Number + + + + + + 0 + + + + + optional + + + + + +

Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled.

serverUrl + + +String + + + + + + http (s)://data.geopf.fr/geocodage/search + + + + + optional + + + + + +

Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing.

ssl + + +Boolean + + + + + + true + + + + + optional + + + + + +

Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true).

proxyURL + + +String + + + + + + + + + optional + + + + + +

Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing.

callbackSuffix + + +String + + + + + + + + + optional + + + + + +

Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing.

rawResponse + + +Boolean + + + + + + false + + + + + optional + + + + + +

Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing.

onBeforeParse + + +function + + + + + + + + + optional + + + + + +

Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing.

+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Example
+ + + +
Gp.Services.geocode ({
+    apiKey : "carte",
+    location : "73 avenue de Paris, Saint-Mandé",
+    // traitement des resultats
+    onSuccess  : function (result) {
+        console.log("found (x:"+result.position.x+", y:"+result.position.y+")") ;
+    }
+}) ;
+ + + +
+ + + +
+
+

+ + innergetAltitude(options) +

+ + +
+ Services/Services.js, line 33 +
+ +
+ + +
+
+ + +
+

Getting elevations in or along of one or several points on french territories using the elevation services of the Geoportal Platform.

+Two use cases are availables :

+
    +
  1. getting elevations of the given points : don't use the options.sampling parameter ;
  2. +
  3. getting a regular set of elevations along the given points : use the options.sampling parameter.
  4. +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + + +

Options for function call.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDefaultDescription
apiKey + + +String + + + + + + + + + + + + +

Access key to Geoportal platform, obtained here.

positions + + +Array.<Object> + + + + + + + + + + + + +

Array of positions ({lon:float, lat:float}) expressed in CRS:84 coordinates system, where to get elevations. 50 positions maximum may be given. 2 positions minimum are required if you use the options.sampling parameter.

sampling + + +Number + + + + + + + + + optional + + + + + +

Number of points to use (between 2 and 5000) in order to compute an elevation path. The points given with the options.positions parameter are used to fix the planimetric path along which the elevations will be computed.

+If not used, only elevations of these positions will be returned.

zonly + + +Boolean + + + + + + false + + + + + optional + + + + + +

Set this parameter to true if you only want to have elevations returned without corresponding coordinates.

onSuccess + + +function + + + + + + + + + + + + +

Callback function for getting successful service response. Takes a Gp.Services.AltiResponse object as a parameter, except if "rawResponse" is set to true.

onFailure + + +function + + + + + + + + + optional + + + + + +

Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a Gp.Error object as parameter.

timeOut + + +Number + + + + + + 0 + + + + + optional + + + + + +

Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled.

serverUrl + + +String + + + + + + https://data.geopf.fr/altimetrie/1.0/calcul/alti/rest/elevation.json + + + + + optional + + + + + +

Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing.

ssl + + +Boolean + + + + + + true + + + + + optional + + + + + +

Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true).

protocol + + +String + + + + + + XHR + + + + + optional + + + + + +

Protocol used to handle dialog with web service. Possible values are 'JSONP' (https://en.wikipedia.org/wiki/JSONP) and 'XHR' (https://en.wikipedia.org/wiki/XMLHttpRequest). Only XHR protocol is supported in a NodeJS environment. Only use if you know what you're doing.

proxyURL + + +String + + + + + + + + + optional + + + + + +

Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing.

callbackSuffix + + +String + + + + + + + + + optional + + + + + +

Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing.

httpMethod + + +String + + + + + + GET + + + + + optional + + + + + +

HTTP method to use when requesting underlying web service in case of a XHR protocol use (see above). Possible values are 'GET' and 'POST'. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing.

contentType + + +String + + + + + + "application/xml" + + + + + optional + + + + + +

Content-Type to use when requesting underlying web service in case of a XHR protocol use (see above) and if method HTTP is POST. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing.

rawResponse + + +Boolean + + + + + + false + + + + + optional + + + + + +

Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing.

onBeforeParse + + +function + + + + + + + + + optional + + + + + +

Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing.

api + + +String + + + + + + 'REST' + + + + + optional + + + + + +

What API to use for interacting with underlying web service : 'REST'. Only use if you know what you are doing.

outputFormat + + +String + + + + + + 'xml' + + + + + optional + + + + + +

Output format for underlying web service response : 'xml' or 'json'. Only use if you know what you are doing.

+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + innergetConfig(options) +

+ + +
+ Services/Services.js, line 18 +
+ +
+ + +
+
+ + +
+

Access to Geoportal resources metadata availables with one ore several keys

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + + +

Options for function call.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDefaultDescription
apiKey + + +String + + + + + + + + + optional + + + + + +

Access key(s) ("," as separator, no spaces) to Geoportal platform, obtained here

customConfigFile + + +String + + + + + + + + + optional + + + + + +

path to a local config file. Overload the apiKey parameter

onSuccess + + +function + + + + + + + + + + + + +

Callback function for getting successful service response. Takes a Gp.Services.GetConfigResponse object as a parameter except if "rawResponse" parameter is set to true : a String will be returned.

onFailure + + +function + + + + + + + + + optional + + + + + +

Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a Gp.Error object as parameter.

timeOut + + +Number + + + + + + 0 + + + + + optional + + + + + +

Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled.

+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + innerisoCurve(options) +

+ + +
+ Services/Services.js, line 215 +
+ +
+ + +
+
+ + +
+

Computing a set of places (curve) reachable from a given point (or from where to start to reach a given point) within a time or distance constraint using the isochrone service of the Geoportal Platform.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + + +

Options for function call.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDefaultDescription
apiKey + + +String + + + + + + + + + + + + +

Access key to Geoportal platform, obtained here.

resource + + +String + + + + + + + + + + + + +

Resource used to compute the route. Available values are in the GetCapabilities.

position + + +Gp.Point + + + + + + + + + + + + +

Start or Arrival (options.reverse===true) Point for the computing. Expressed in CRS:84 coordinates system (position.x corresponds to longitude, position.y corresponds to latitude).

graph + + +String + + + + + + "Voiture" + + + + + optional + + + + + +

User profile to use to compute the isoCurve : "Voiture" (using a vehicule) or "Pieton" (pedestrian). Has an influence on the kind of roads to use and the average speed. Available values are in the GetCapabilities.

exclusions + + +Array.<String> + + + + + + + + + optional + + + + + +

DEPRECATED: use options.constraints. Indicates if route has to avoid some features ("toll", "bridge" or "tunnel").

constraints + + +Array.<Object> + + + + + + + + + optional + + + + + +

Constraints used ({'constraintType':'banned','key':'ways_type','operator':'=','value':'autoroute'}). Available values are in the GetCapabilities.

method + + +String + + + + + + "time" + + + + + optional + + + + + +

Computing method to use : "time" (using a duration as a constraint) or "distance" (using a distance as a constraint). Available values are in the GetCapabilities.

time + + +Float + + + + + + + + + + + + +

Maximum duration (expressed in seconds) to use when options.method is set to "time".

distance + + +Float + + + + + + + + + + + + +

Maximum distance (expressed in meters) to use when options.method is set to "distance".

reverse + + +Boolean + + + + + + false + + + + + optional + + + + + +

Set this parameter to true if you want options.position to be the destination (instead of departure) for the computing.

distanceUnit + + +String + + + + + + "km" + + + + + optional + + + + + +

The unit used to provide distances in the response ("m" or "km").

timeUnit + + +String + + + + + + "second" + + + + + optional + + + + + +

The unit used to provide duration in the response ("standard", "second", "minute", "hour").

smoothing + + +Boolean + + + + + + false + + + + + optional + + + + + +

DEPRECATED: Set this parameter to true if you want the resulting geometry to be smoothed.

holes + + +Boolean + + + + + + false + + + + + optional + + + + + +

DEPRECATED: Set this parameter to true if you want the resulting geometry (polygon) to have holes if pertinent.

onSuccess + + +function + + + + + + + + + + + + +

Callback function for getting successful service response. Takes a Gp.Services.IsoCurveResponse object as a parameter except if "rawResponse" is set to true.

onFailure + + +function + + + + + + + + + optional + + + + + +

Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a Gp.Error object as parameter.

timeOut + + +Number + + + + + + 0 + + + + + optional + + + + + +

Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled.

outputFormat + + +String + + + + + + 'json' + + + + + optional + + + + + +

Output format ("json") to use for underlying webService. Only use if you know what you are doing.

serverUrl + + +String + + + + + + https://data.geopf.fr/navigation/isochrone + + + + + optional + + + + + +

Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing.

ssl + + +Boolean + + + + + + true + + + + + optional + + + + + +

Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true).

protocol + + +String + + + + + + XHR + + + + + optional + + + + + +

Protocol used to handle dialog with web service. Possible values are 'JSONP' (https://en.wikipedia.org/wiki/JSONP) and 'XHR' (https://en.wikipedia.org/wiki/XMLHttpRequest). Only XHR protocol is supported in a NodeJS environment. Only use if you know what you're doing.

proxyURL + + +String + + + + + + + + + optional + + + + + +

Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing.

callbackSuffix + + +String + + + + + + + + + optional + + + + + +

Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing.

httpMethod + + +String + + + + + + GET + + + + + optional + + + + + +

HTTP method to use when requesting underlying web service in case of a XHR protocol use (see above). Possible values are 'GET' and 'POST'. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing.

contentType + + +String + + + + + + "application/xml" + + + + + optional + + + + + +

Content-Type to use when requesting underlying web service in case of a XHR protocol use (see above) and if method HTTP is POST. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing.

rawResponse + + +Boolean + + + + + + false + + + + + optional + + + + + +

Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing.

onBeforeParse + + +function + + + + + + + + + optional + + + + + +

Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing.

+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + innerreverseGeocode(options) +

+ + +
+ Services/Services.js, line 111 +
+ +
+ + +
+
+ + +
+

Retrieving geographical identifiers (place names, address, cadastral parcels, ...) near a given position, using the reverse geocoding web service of the Geoportal Platform.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + + +

Options for function call.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDefaultDescription
apiKey + + +String + + + + + + + + + + + + +

Access key to Geoportal platform, obtained here.

index + + +String + + + + + + "StreetAddress" + + + + + optional + + + + + +

Geographical identifier type to search. Values currently availables are : "PositionOfInterest" for place names, "StreetAddress" for address search, "CadastralParcel" for Cadastral parcels search, "location" for a multi-index search on "StreetAddress" and "PositionOfInterest". Default is "StreetAddress".

position + + +Object + + + + + + + + + + + + +

Reference position where to search geographical identifiers.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
lon + + +Float + + + + + +

Longitude

lat + + +Float + + + + + +

Latitude

+ +
filters + + +Object + + + + + + + + + optional + + + + + +

Additional filters to apply to search. The following properties may be given.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
[prop] + + +String + + + + + + + optional + + + + + +

Additionnal properties to filter search. Properties depends on options.index, and values type should be "String".
+


+Properties availables for address search :

+"postalCode", "inseeCode" and "city".
+


+Properties availables for place names search :

+"postalCode", "inseeCode" and "type".
+


+Properties availables for cadastral parcels search :

+"codeDepartement", "codeCommune", "nomCommune", "codeCommuneAbs", "codeArrondissement", "section", "numero", "feuille".

+ +
searchGeometry + + +Object + + + + + + + + + optional + + + + + +

Location where to perform the search.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
type + + +String + + + + + + + + + + +

Geometry type (Point|Circle|Linestring|Polygon)

coordinates + + +Array.<Float> +| + +Array.Array.<Float> + + + + + + + + + + +

Coordinates

radius + + +Float + + + + + + + optional + + + + + +

Radius (only for type 'Circle')

+ +
maximumResponses + + +Number + + + + + + 20 + + + + + optional + + + + + +

Maximum number of responses. Default underlying service value applies (20) if not provided.

onSuccess + + +function + + + + + + + + + + + + +

Callback function for getting successful service response. Takes a Gp.Services.GeocodeResponse object as a parameter except if "rawResponse" is set to true.

onFailure + + +function + + + + + + + + + optional + + + + + +

Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a Gp.Error object as parameter.

timeOut + + +Number + + + + + + 0 + + + + + optional + + + + + +

Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled.

serverUrl + + +String + + + + + + https://data.geopf.fr/geocodage/reverse + + + + + optional + + + + + +

Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing.

ssl + + +Boolean + + + + + + true + + + + + optional + + + + + +

Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true).

proxyURL + + +String + + + + + + + + + optional + + + + + +

Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing.

callbackSuffix + + +String + + + + + + + + + optional + + + + + +

Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing.

rawResponse + + +Boolean + + + + + + false + + + + + optional + + + + + +

Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing.

onBeforeParse + + +function + + + + + + + + + optional + + + + + +

Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing.

+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + innerroute(options) +

+ + +
+ Services/Services.js, line 178 +
+ +
+ + +
+
+ + +
+

Getting a route from one point to another using the route service of the Geoportal Platform.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + + + +

Options for function call.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDefaultDescription
resource + + +String + + + + + + + + + + + + +

Resource used to compute the route. Available values are in the GetCapabilities.

apiKey + + +String + + + + + + + + + + + + +

Access key to Geoportal platform, obtained here.

routePreference + + +String + + + + + + "fastest" + + + + + optional + + + + + +

Indicates the way to compute the route : "fastest" (time optimisation) or "shortest" (distance optimisation). Available values are in the GetCapabilities.

startPoint + + +Gp.Point + + + + + + + + + + + + +

Start point of the route. Expressed in CRS:84 coordinates system (startPoint.x corresponds to longitude, startPoint.y corresponds to latitude). Available bbox are in the GetCapabilities.

endPoint + + +Gp.Point + + + + + + + + + + + + +

End point of the route. Expressed in CRS:84 coordinates system (endPoint.x corresponds to longitude, endPoint.y corresponds to latitude). Available bbox are in the GetCapabilities.

viaPoints + + +Array.<Gp.Point> + + + + + + + + + optional + + + + + +

Ordered via Points of the route. Expressed in CRS:84 coordinates system (viaPoints[i].x corresponds to longitude, viaPoints[i].y corresponds to latitude). Available bbox are in the GetCapabilities.

graph + + +String + + + + + + "Voiture" + + + + + optional + + + + + +

User profile to use to compute the route : "Voiture" (using a vehicule) or "Pieton" (pedestrian). Has an influence on the kind of roads the route may use and the average speed. Available bbox are in the GetCapabilities.

exclusions + + +Array.<String> + + + + + + + + + optional + + + + + +

DEPRECATED: use options.constraints. Indicates if route has to avoid some features ("toll", "bridge" or "tunnel").

geometryInInstructions + + +Boolean + + + + + + false + + + + + optional + + + + + +

Indicates if route geometry has to be also returned with route instructions.

provideBoundingBox + + +Boolean + + + + + + true + + + + + optional + + + + + +

Indicates if route instructions has to be localised with a BBOX in the response.

distanceUnit + + +String + + + + + + "m" + + + + + optional + + + + + +

The unit used to provide distances in the response ("meter" or "kilometer").

timeUnit + + +String + + + + + + "second" + + + + + optional + + + + + +

The unit used to provide duration in the response ("standard", "second", "minute", "hour").

waysAttributes + + +Array.<String> + + + + + + + + + optional + + + + + +

Way Attributes to add in the response. Available values are in the GetCapabilities.

constraints + + +Array.<Object> + + + + + + + + + optional + + + + + +

Constraints used ({'constraintType':'banned','key':'ways_type','operator':'=','value':'autoroute'}). Available values are in the GetCapabilities.

onSuccess + + +function + + + + + + + + + + + + +

Callback function for getting successful service response. Takes a Gp.Services.RouteResponse object as a parameter except if "rawResponse" is set to true.

onFailure + + +function + + + + + + + + + optional + + + + + +

Callback function for handling unsuccessful service responses (timeOut, missing rights, ...). Takes a Gp.Error object as parameter.

timeOut + + +Number + + + + + + 0 + + + + + optional + + + + + +

Number of milliseconds above which a timeOut response will be returned with onFailure callback (see above). Default value is 0 which means timeOut will not be handled.

outputFormat + + +String + + + + + + 'json' + + + + + optional + + + + + +

Output format ("json" or "xml") to use for underlying webService. Only use if you know what you are doing.

serverUrl + + +String + + + + + + https://data.geopf.fr/navigation/itineraire + + + + + optional + + + + + +

Web service URL. If used, options.apiKey parameter is ignored. Only use if you know what you're doing.

ssl + + +Boolean + + + + + + true + + + + + optional + + + + + +

Use of HTTPS or HTTP protocol to request the services. HTTPS by default (ssl=true).

protocol + + +String + + + + + + XHR + + + + + optional + + + + + +

Protocol used to handle dialog with web service. Possible values are 'JSONP' (https://en.wikipedia.org/wiki/JSONP) and 'XHR' (https://en.wikipedia.org/wiki/XMLHttpRequest). Only XHR protocol is supported in a NodeJS environment. Only use if you know what you're doing.

proxyURL + + +String + + + + + + + + + optional + + + + + +

Proxy URL to use when requesting underlying web service. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you're doing.

callbackSuffix + + +String + + + + + + + + + optional + + + + + +

Callback function name suffix to use in case of a JSONP protocol use (see above), to set your own suffix instead of auto-increment. Ignored when options.protocol is set to 'XHR' value. Only use if you know what you're doing.

httpMethod + + +String + + + + + + GET + + + + + optional + + + + + +

HTTP method to use when requesting underlying web service in case of a XHR protocol use (see above). Possible values are 'GET' and 'POST'. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing.

contentType + + +String + + + + + + "application/xml" + + + + + optional + + + + + +

Content-Type to use when requesting underlying web service in case of a XHR protocol use (see above) and if method HTTP is POST. Ignored when options.protocol is set to 'JSONP' value. Only use if you know what you are doing.

rawResponse + + +Boolean + + + + + + false + + + + + optional + + + + + +

Setting this parameter to true implies you want to handle the service response by yourself : it will be returned as an unparsed String in onSuccess callback parameter. Only use if you know what you are doing.

onBeforeParse + + +function + + + + + + + + + optional + + + + + +

Callback function for handling service response before parsing (as an unparsed String). Takes a String as a parameter (the raw service response). Returns a String that will be parsed as the service response. Only use if you know what you are doing.

+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/module-XHR.html b/v3.4.4/jsdoc/module-XHR.html new file mode 100644 index 00000000..13e0ff3e --- /dev/null +++ b/v3.4.4/jsdoc/module-XHR.html @@ -0,0 +1,3137 @@ + + + + + + + + + + + + + Module: XHR + + + + + + + + + + + + + + + + + + + + + + +
+
+

+

Geoportal Resources Access API Reference

+
+
+ + +
+ + + + + + + +
+ +

Module: XHR

+ + + + +
+ + +

+ Gp.Protocols.XHR +

+ + + + +
+
+ + + + +

Ajax Request (use of Promises)

+ + + +
+ + + + + + + + + + + + + + + + + + + +
See:
+
+
    +
  • dependance 'es6-promise'
  • +
+
+ + + +
+ + + + +
+ + + + + + + + + + + + + + +

Methods

+ +
+ +
+
+

+ + staticcall(settings) +

+ + +
+ Protocols/XHR.js, line 22 +
+ +
+ + +
+
+ + +
+

Interface unique d'envoi d'une requête.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
settings + + +Object + + + + + +

options generales

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
url + + +String + + + + + +

url du service

method + + +String + + + + + +

GET, POST, PUT, DELETE

format + + +String + + + + + +

format de la reponse du service : json, xml ou null (brute)

data + + +String + + + + + +

content (post) ou param (get)

proxy + + +String + + + + + +

proxy url

headers + + +Object +| + +String + + + + + +

(post) ex. referer

content + + +Object +| + +String + + + + + +

(post) ex. 'application/json'

timeOut + + +String + + + + + +

timeout = 0 par defaut

scope + + +String + + + + + +

this

onResponse + + +function + + + + + +

callback

onFailure + + +function + + + + + +

callback

+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ + + + + +
+ +
+ + + + + + + +
+
+ +
+ Copyright (c) IGN, released under the CECILL-B license - Geoportal Resources Access - version 2.0.0 +
+ Documentation generated by JSDoc 3.6.11 on Sun Nov 17 2024 00:36:16 GMT+0000 (Coordinated Universal Time) +
+ + + + + + + \ No newline at end of file diff --git a/v3.4.4/jsdoc/scripts/bootstrap.min.js b/v3.4.4/jsdoc/scripts/bootstrap.min.js new file mode 100644 index 00000000..1a6258ef --- /dev/null +++ b/v3.4.4/jsdoc/scripts/bootstrap.min.js @@ -0,0 +1,7 @@ +/*! + * Bootstrap v3.0.3 (http://getbootstrap.com) + * Copyright 2013 Twitter, Inc. + * Licensed under http://www.apache.org/licenses/LICENSE-2.0 + */ + +if("undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]}}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(jQuery),+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){f.trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d)};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(a){var b="disabled",c=this.$element,d=c.is("input")?"val":"html",e=c.data();a+="Text",e.resetText||c.data("resetText",c[d]()),c[d](e[a]||this.options[a]),setTimeout(function(){"loadingText"==a?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.closest('[data-toggle="buttons"]'),b=!0;if(a.length){var c=this.$element.find("input");"radio"===c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?b=!1:a.find(".active").removeClass("active")),b&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}b&&this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof c&&c;e||d.data("bs.button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition.end&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){return this.sliding?void 0:this.slide("next")},b.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}this.sliding=!0,f&&this.pause();var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});if(!e.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")})),a.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(j),j.isDefaultPrevented())return;e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(j),j.isDefaultPrevented())return;d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")}return f&&this.cycle(),this}};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c),g="string"==typeof c?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),"number"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c,d=a(this),e=a(d.attr("data-target")||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),d.data()),g=d.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=d.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b=a.Event("show.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find("> .panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?(this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350),void 0):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);e||d.data("bs.collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":d.data(),i=d.attr("data-parent"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(d).addClass("collapsed"),d[f.hasClass("in")?"addClass":"removeClass"]("collapsed")),f.collapse(h)})}(jQuery),+function(a){"use strict";function b(){a(d).remove(),a(e).each(function(b){var d=c(a(this));d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown")),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown"))})}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}var d=".dropdown-backdrop",e="[data-toggle=dropdown]",f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){if("ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(''}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"html":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof c&&c;e||d.data("bs.popover",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(jQuery),+function(a){"use strict";function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(c).is("body")?a(window):a(c),this.$body=a("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?"offset":"position";this.offsets=a([]),this.targets=a([]);var c=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#\w/.test(e)&&a(e);return f&&f.length&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,d=c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(b>=d)return g!=(a=f.last()[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parents(".active").removeClass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})}}},b.prototype.activate=function(b,c,d){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),g?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasClass("fade");g?f.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),f.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),"string"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(jQuery),+function(a){"use strict";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=null,this.checkPosition()};b.RESET="affix affix-top affix-bottom",b.DEFAULTS={offset:0},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(this.$element.is(":visible")){var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;"object"!=typeof f&&(h=g=f),"function"==typeof g&&(g=f.top()),"function"==typeof h&&(h=f.bottom());var i=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=h&&e.top+this.$element.height()>=c-h?"bottom":null!=g&&g>=d?"top":!1;this.affixed!==i&&(this.unpin&&this.$element.css("top",""),this.affixed=i,this.unpin="bottom"==i?e.top-d:null,this.$element.removeClass(b.RESET).addClass("affix"+(i?"-"+i:"")),"bottom"==i&&this.$element.offset({top:document.body.offsetHeight-h-this.$element.height()}))}};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof c&&c;e||d.data("bs.affix",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(jQuery); \ No newline at end of file diff --git a/v3.4.4/jsdoc/scripts/jquery.min.js b/v3.4.4/jsdoc/scripts/jquery.min.js new file mode 100644 index 00000000..9a85bd34 --- /dev/null +++ b/v3.4.4/jsdoc/scripts/jquery.min.js @@ -0,0 +1,6 @@ +/*! jQuery v2.0.3 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license +//@ sourceMappingURL=jquery.min.map +*/ +(function(e,undefined){var t,n,r=typeof undefined,i=e.location,o=e.document,s=o.documentElement,a=e.jQuery,u=e.$,l={},c=[],p="2.0.3",f=c.concat,h=c.push,d=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,x=function(e,n){return new x.fn.init(e,n,t)},b=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^-ms-/,N=/-([\da-z])/gi,E=function(e,t){return t.toUpperCase()},S=function(){o.removeEventListener("DOMContentLoaded",S,!1),e.removeEventListener("load",S,!1),x.ready()};x.fn=x.prototype={jquery:p,constructor:x,init:function(e,t,n){var r,i;if(!e)return this;if("string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:T.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),C.test(r[1])&&x.isPlainObject(t))for(r in t)x.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=o.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?n.ready(e):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return d.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[1]||{},a=2),"object"==typeof s||x.isFunction(s)||(s={}),u===a&&(s=this,--a);u>a;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(l&&r&&(x.isPlainObject(r)||(i=x.isArray(r)))?(i?(i=!1,o=n&&x.isArray(n)?n:[]):o=n&&x.isPlainObject(n)?n:{},s[t]=x.extend(l,o,r)):r!==undefined&&(s[t]=r));return s},x.extend({expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=a),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){(e===!0?--x.readyWait:x.isReady)||(x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(o,[x]),x.fn.trigger&&x(o).trigger("ready").off("ready")))},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if("object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(r){t=undefined}return(!t||t.getElementsByTagName("parsererror").length)&&x.error("Invalid XML: "+e),t},noop:function(){},globalEval:function(e){var t,n=eval;e=x.trim(e),e&&(1===e.indexOf("use strict")?(t=o.createElement("script"),t.text=e,o.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(k,"ms-").replace(N,E)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,s=j(e);if(n){if(s){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(s){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:function(e){return null==e?"":v.call(e)},makeArray:function(e,t){var n=t||[];return null!=e&&(j(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:g.call(t,e,n)},merge:function(e,t){var n=t.length,r=e.length,i=0;if("number"==typeof n)for(;n>i;i++)e[r++]=t[i];else while(t[i]!==undefined)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){var r,i=[],o=0,s=e.length;for(n=!!n;s>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,s=j(e),a=[];if(s)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(a[a.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(a[a.length]=r);return f.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),x.isFunction(e)?(r=d.call(arguments,2),i=function(){return e.apply(t||this,r.concat(d.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):undefined},access:function(e,t,n,r,i,o,s){var a=0,u=e.length,l=null==n;if("object"===x.type(n)){i=!0;for(a in n)x.access(e,t,a,n[a],!0,o,s)}else if(r!==undefined&&(i=!0,x.isFunction(r)||(s=!0),l&&(s?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(x(e),n)})),t))for(;u>a;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:l?t.call(e):u?t(e[0],n):o},now:Date.now,swap:function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i}}),x.ready.promise=function(t){return n||(n=x.Deferred(),"complete"===o.readyState?setTimeout(x.ready):(o.addEventListener("DOMContentLoaded",S,!1),e.addEventListener("load",S,!1))),n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function j(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}t=x(o),function(e,undefined){var t,n,r,i,o,s,a,u,l,c,p,f,h,d,g,m,y,v="sizzle"+-new Date,b=e.document,w=0,T=0,C=st(),k=st(),N=st(),E=!1,S=function(e,t){return e===t?(E=!0,0):0},j=typeof undefined,D=1<<31,A={}.hasOwnProperty,L=[],q=L.pop,H=L.push,O=L.push,F=L.slice,P=L.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",W="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",$=W.replace("w","w#"),B="\\["+M+"*("+W+")"+M+"*(?:([*^$|!~]?=)"+M+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+$+")|)|)"+M+"*\\]",I=":("+W+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+B.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=RegExp("^"+M+"*,"+M+"*"),X=RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=RegExp(M+"*[+~]"),Y=RegExp("="+M+"*([^\\]'\"]*)"+M+"*\\]","g"),V=RegExp(I),G=RegExp("^"+$+"$"),J={ID:RegExp("^#("+W+")"),CLASS:RegExp("^\\.("+W+")"),TAG:RegExp("^("+W.replace("w","w*")+")"),ATTR:RegExp("^"+B),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:RegExp("^(?:"+R+")$","i"),needsContext:RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Q=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/^(?:input|select|textarea|button)$/i,et=/^h\d$/i,tt=/'|\\/g,nt=RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),rt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{O.apply(L=F.call(b.childNodes),b.childNodes),L[b.childNodes.length].nodeType}catch(it){O={apply:L.length?function(e,t){H.apply(e,F.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function ot(e,t,r,i){var o,s,a,u,l,f,g,m,x,w;if((t?t.ownerDocument||t:b)!==p&&c(t),t=t||p,r=r||[],!e||"string"!=typeof e)return r;if(1!==(u=t.nodeType)&&9!==u)return[];if(h&&!i){if(o=K.exec(e))if(a=o[1]){if(9===u){if(s=t.getElementById(a),!s||!s.parentNode)return r;if(s.id===a)return r.push(s),r}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(a))&&y(t,s)&&s.id===a)return r.push(s),r}else{if(o[2])return O.apply(r,t.getElementsByTagName(e)),r;if((a=o[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&(!d||!d.test(e))){if(m=g=v,x=t,w=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){f=gt(e),(g=t.getAttribute("id"))?m=g.replace(tt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",l=f.length;while(l--)f[l]=m+mt(f[l]);x=U.test(e)&&t.parentNode||t,w=f.join(",")}if(w)try{return O.apply(r,x.querySelectorAll(w)),r}catch(T){}finally{g||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,r,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>i.cacheLength&&delete t[e.shift()],t[n]=r}return t}function at(e){return e[v]=!0,e}function ut(e){var t=p.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function lt(e,t){var n=e.split("|"),r=e.length;while(r--)i.attrHandle[n[r]]=t}function ct(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function pt(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return at(function(t){return t=+t,at(function(n,r){var i,o=e([],n.length,t),s=o.length;while(s--)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}s=ot.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},n=ot.support={},c=ot.setDocument=function(e){var t=e?e.ownerDocument||e:b,r=t.defaultView;return t!==p&&9===t.nodeType&&t.documentElement?(p=t,f=t.documentElement,h=!s(t),r&&r.attachEvent&&r!==r.top&&r.attachEvent("onbeforeunload",function(){c()}),n.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ut(function(e){return e.appendChild(t.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=ut(function(e){return e.innerHTML="
",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),n.getById=ut(function(e){return f.appendChild(e).id=v,!t.getElementsByName||!t.getElementsByName(v).length}),n.getById?(i.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){return e.getAttribute("id")===t}}):(delete i.find.ID,i.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=n.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==j?t.getElementsByTagName(e):undefined}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==j&&h?t.getElementsByClassName(e):undefined},g=[],d=[],(n.qsa=Q.test(t.querySelectorAll))&&(ut(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||d.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll(":checked").length||d.push(":checked")}),ut(function(e){var n=t.createElement("input");n.setAttribute("type","hidden"),e.appendChild(n).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&d.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||d.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),d.push(",.*:")})),(n.matchesSelector=Q.test(m=f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ut(function(e){n.disconnectedMatch=m.call(e,"div"),m.call(e,"[s!='']:x"),g.push("!=",I)}),d=d.length&&RegExp(d.join("|")),g=g.length&&RegExp(g.join("|")),y=Q.test(f.contains)||f.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},S=f.compareDocumentPosition?function(e,r){if(e===r)return E=!0,0;var i=r.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(r);return i?1&i||!n.sortDetached&&r.compareDocumentPosition(e)===i?e===t||y(b,e)?-1:r===t||y(b,r)?1:l?P.call(l,e)-P.call(l,r):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,n){var r,i=0,o=e.parentNode,s=n.parentNode,a=[e],u=[n];if(e===n)return E=!0,0;if(!o||!s)return e===t?-1:n===t?1:o?-1:s?1:l?P.call(l,e)-P.call(l,n):0;if(o===s)return ct(e,n);r=e;while(r=r.parentNode)a.unshift(r);r=n;while(r=r.parentNode)u.unshift(r);while(a[i]===u[i])i++;return i?ct(a[i],u[i]):a[i]===b?-1:u[i]===b?1:0},t):p},ot.matches=function(e,t){return ot(e,null,null,t)},ot.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&c(e),t=t.replace(Y,"='$1']"),!(!n.matchesSelector||!h||g&&g.test(t)||d&&d.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return ot(t,p,null,[e]).length>0},ot.contains=function(e,t){return(e.ownerDocument||e)!==p&&c(e),y(e,t)},ot.attr=function(e,t){(e.ownerDocument||e)!==p&&c(e);var r=i.attrHandle[t.toLowerCase()],o=r&&A.call(i.attrHandle,t.toLowerCase())?r(e,t,!h):undefined;return o===undefined?n.attributes||!h?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null:o},ot.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},ot.uniqueSort=function(e){var t,r=[],i=0,o=0;if(E=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(S),E){while(t=e[o++])t===e[o]&&(i=r.push(o));while(i--)e.splice(r[i],1)}return e},o=ot.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(t);return n},i=ot.selectors={cacheLength:50,createPseudo:at,match:J,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(nt,rt),e[3]=(e[4]||e[5]||"").replace(nt,rt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ot.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ot.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return J.CHILD.test(e[0])?null:(e[3]&&e[4]!==undefined?e[2]=e[4]:n&&V.test(n)&&(t=gt(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(nt,rt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&C(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ot.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,p,f,h,d,g=o!==s?"nextSibling":"previousSibling",m=t.parentNode,y=a&&t.nodeName.toLowerCase(),x=!u&&!a;if(m){if(o){while(g){p=t;while(p=p[g])if(a?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&x){c=m[v]||(m[v]={}),l=c[e]||[],h=l[0]===w&&l[1],f=l[0]===w&&l[2],p=h&&m.childNodes[h];while(p=++h&&p&&p[g]||(f=h=0)||d.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[w,h,f];break}}else if(x&&(l=(t[v]||(t[v]={}))[e])&&l[0]===w)f=l[1];else while(p=++h&&p&&p[g]||(f=h=0)||d.pop())if((a?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(x&&((p[v]||(p[v]={}))[e]=[w,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ot.error("unsupported pseudo: "+e);return r[v]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?at(function(e,n){var i,o=r(e,t),s=o.length;while(s--)i=P.call(e,o[s]),e[i]=!(n[i]=o[s])}):function(e){return r(e,0,n)}):r}},pseudos:{not:at(function(e){var t=[],n=[],r=a(e.replace(z,"$1"));return r[v]?at(function(e,t,n,i){var o,s=r(e,null,i,[]),a=e.length;while(a--)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:at(function(e){return function(t){return ot(e,t).length>0}}),contains:at(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:at(function(e){return G.test(e||"")||ot.error("unsupported lang: "+e),e=e.replace(nt,rt).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return et.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},i.pseudos.nth=i.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=pt(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=ft(t);function dt(){}dt.prototype=i.filters=i.pseudos,i.setFilters=new dt;function gt(e,t){var n,r,o,s,a,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);a=e,u=[],l=i.preFilter;while(a){(!n||(r=_.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=X.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(z," ")}),a=a.slice(n.length));for(s in i.filter)!(r=J[s].exec(a))||l[s]&&!(r=l[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ot.error(e):k(e,u).slice(0)}function mt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function yt(e,t,n){var i=t.dir,o=n&&"parentNode"===i,s=T++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,a){var u,l,c,p=w+" "+s;if(a){while(t=t[i])if((1===t.nodeType||o)&&e(t,n,a))return!0}else while(t=t[i])if(1===t.nodeType||o)if(c=t[v]||(t[v]={}),(l=c[i])&&l[0]===p){if((u=l[1])===!0||u===r)return u===!0}else if(l=c[i]=[p],l[1]=e(t,n,a)||r,l[1]===!0)return!0}}function vt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,s=[],a=0,u=e.length,l=null!=t;for(;u>a;a++)(o=e[a])&&(!n||n(o,r,i))&&(s.push(o),l&&t.push(a));return s}function bt(e,t,n,r,i,o){return r&&!r[v]&&(r=bt(r)),i&&!i[v]&&(i=bt(i,o)),at(function(o,s,a,u){var l,c,p,f=[],h=[],d=s.length,g=o||Ct(t||"*",a.nodeType?[a]:a,[]),m=!e||!o&&t?g:xt(g,f,e,a,u),y=n?i||(o?e:d||r)?[]:s:m;if(n&&n(m,y,a,u),r){l=xt(y,h),r(l,[],a,u),c=l.length;while(c--)(p=l[c])&&(y[h[c]]=!(m[h[c]]=p))}if(o){if(i||e){if(i){l=[],c=y.length;while(c--)(p=y[c])&&l.push(m[c]=p);i(null,y=[],l,u)}c=y.length;while(c--)(p=y[c])&&(l=i?P.call(o,p):f[c])>-1&&(o[l]=!(s[l]=p))}}else y=xt(y===s?y.splice(d,y.length):y),i?i(null,s,y,u):O.apply(s,y)})}function wt(e){var t,n,r,o=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,c=yt(function(e){return e===t},a,!0),p=yt(function(e){return P.call(t,e)>-1},a,!0),f=[function(e,n,r){return!s&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;o>l;l++)if(n=i.relative[e[l].type])f=[yt(vt(f),n)];else{if(n=i.filter[e[l].type].apply(null,e[l].matches),n[v]){for(r=++l;o>r;r++)if(i.relative[e[r].type])break;return bt(l>1&&vt(f),l>1&&mt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&wt(e.slice(l,r)),o>r&&wt(e=e.slice(r)),o>r&&mt(e))}f.push(n)}return vt(f)}function Tt(e,t){var n=0,o=t.length>0,s=e.length>0,a=function(a,l,c,f,h){var d,g,m,y=[],v=0,x="0",b=a&&[],T=null!=h,C=u,k=a||s&&i.find.TAG("*",h&&l.parentNode||l),N=w+=null==C?1:Math.random()||.1;for(T&&(u=l!==p&&l,r=n);null!=(d=k[x]);x++){if(s&&d){g=0;while(m=e[g++])if(m(d,l,c)){f.push(d);break}T&&(w=N,r=++n)}o&&((d=!m&&d)&&v--,a&&b.push(d))}if(v+=x,o&&x!==v){g=0;while(m=t[g++])m(b,y,l,c);if(a){if(v>0)while(x--)b[x]||y[x]||(y[x]=q.call(f));y=xt(y)}O.apply(f,y),T&&!a&&y.length>0&&v+t.length>1&&ot.uniqueSort(f)}return T&&(w=N,u=C),b};return o?at(a):a}a=ot.compile=function(e,t){var n,r=[],i=[],o=N[e+" "];if(!o){t||(t=gt(e)),n=t.length;while(n--)o=wt(t[n]),o[v]?r.push(o):i.push(o);o=N(e,Tt(i,r))}return o};function Ct(e,t,n){var r=0,i=t.length;for(;i>r;r++)ot(e,t[r],n);return n}function kt(e,t,r,o){var s,u,l,c,p,f=gt(e);if(!o&&1===f.length){if(u=f[0]=f[0].slice(0),u.length>2&&"ID"===(l=u[0]).type&&n.getById&&9===t.nodeType&&h&&i.relative[u[1].type]){if(t=(i.find.ID(l.matches[0].replace(nt,rt),t)||[])[0],!t)return r;e=e.slice(u.shift().value.length)}s=J.needsContext.test(e)?0:u.length;while(s--){if(l=u[s],i.relative[c=l.type])break;if((p=i.find[c])&&(o=p(l.matches[0].replace(nt,rt),U.test(u[0].type)&&t.parentNode||t))){if(u.splice(s,1),e=o.length&&mt(u),!e)return O.apply(r,o),r;break}}}return a(e,f)(o,t,!h,r,U.test(e)),r}n.sortStable=v.split("").sort(S).join("")===v,n.detectDuplicates=E,c(),n.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),ut(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||lt("type|href|height|width",function(e,t,n){return n?undefined:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ut(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||lt("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?undefined:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||lt(R,function(e,t,n){var r;return n?undefined:(r=e.getAttributeNode(t))&&r.specified?r.value:e[t]===!0?t.toLowerCase():null}),x.find=ot,x.expr=ot.selectors,x.expr[":"]=x.expr.pseudos,x.unique=ot.uniqueSort,x.text=ot.getText,x.isXMLDoc=ot.isXML,x.contains=ot.contains}(e);var D={};function A(e){var t=D[e]={};return x.each(e.match(w)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?D[e]||A(e):x.extend({},e);var t,n,r,i,o,s,a=[],u=!e.once&&[],l=function(p){for(t=e.memory&&p,n=!0,s=i||0,i=0,o=a.length,r=!0;a&&o>s;s++)if(a[s].apply(p[0],p[1])===!1&&e.stopOnFalse){t=!1;break}r=!1,a&&(u?u.length&&l(u.shift()):t?a=[]:c.disable())},c={add:function(){if(a){var n=a.length;(function s(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&c.has(n)||a.push(n):n&&n.length&&"string"!==r&&s(n)})})(arguments),r?o=a.length:t&&(i=n,l(t))}return this},remove:function(){return a&&x.each(arguments,function(e,t){var n;while((n=x.inArray(t,a,n))>-1)a.splice(n,1),r&&(o>=n&&o--,s>=n&&s--)}),this},has:function(e){return e?x.inArray(e,a)>-1:!(!a||!a.length)},empty:function(){return a=[],o=0,this},disable:function(){return a=u=t=undefined,this},disabled:function(){return!a},lock:function(){return u=undefined,t||c.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!a||n&&!u||(t=t||[],t=[e,t.slice?t.slice():t],r?u.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var s=o[0],a=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=d.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),s=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?d.call(arguments):r,n===a?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},a,u,l;if(r>1)for(a=Array(r),u=Array(r),l=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(s(t,l,n)).fail(o.reject).progress(s(t,u,a)):--i;return i||o.resolveWith(l,n),o.promise()}}),x.support=function(t){var n=o.createElement("input"),r=o.createDocumentFragment(),i=o.createElement("div"),s=o.createElement("select"),a=s.appendChild(o.createElement("option"));return n.type?(n.type="checkbox",t.checkOn=""!==n.value,t.optSelected=a.selected,t.reliableMarginRight=!0,t.boxSizingReliable=!0,t.pixelPosition=!1,n.checked=!0,t.noCloneChecked=n.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!a.disabled,n=o.createElement("input"),n.value="t",n.type="radio",t.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),r.appendChild(n),t.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,t.focusinBubbles="onfocusin"in e,i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===i.style.backgroundClip,x(function(){var n,r,s="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",a=o.getElementsByTagName("body")[0];a&&(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(n).appendChild(i),i.innerHTML="",i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",x.swap(a,null!=a.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===i.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(i,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(i,null)||{width:"4px"}).width,r=i.appendChild(o.createElement("div")),r.style.cssText=i.style.cssText=s,r.style.marginRight=r.style.width="0",i.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),a.removeChild(n))}),t):t}({});var L,q,H=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,O=/([A-Z])/g;function F(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=x.expando+Math.random()}F.uid=1,F.accepts=function(e){return e.nodeType?1===e.nodeType||9===e.nodeType:!0},F.prototype={key:function(e){if(!F.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=F.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,x.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),o=this.cache[i];if("string"==typeof t)o[t]=n;else if(x.isEmptyObject(o))x.extend(this.cache[i],t);else for(r in t)o[r]=t[r];return o},get:function(e,t){var n=this.cache[this.key(e)];return t===undefined?n:n[t]},access:function(e,t,n){var r;return t===undefined||t&&"string"==typeof t&&n===undefined?(r=this.get(e,t),r!==undefined?r:this.get(e,x.camelCase(t))):(this.set(e,t,n),n!==undefined?n:t)},remove:function(e,t){var n,r,i,o=this.key(e),s=this.cache[o];if(t===undefined)this.cache[o]={};else{x.isArray(t)?r=t.concat(t.map(x.camelCase)):(i=x.camelCase(t),t in s?r=[t,i]:(r=i,r=r in s?[r]:r.match(w)||[])),n=r.length;while(n--)delete s[r[n]]}},hasData:function(e){return!x.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}},L=new F,q=new F,x.extend({acceptData:F.accepts,hasData:function(e){return L.hasData(e)||q.hasData(e)},data:function(e,t,n){return L.access(e,t,n)},removeData:function(e,t){L.remove(e,t)},_data:function(e,t,n){return q.access(e,t,n)},_removeData:function(e,t){q.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,r,i=this[0],o=0,s=null;if(e===undefined){if(this.length&&(s=L.get(i),1===i.nodeType&&!q.get(i,"hasDataAttrs"))){for(n=i.attributes;n.length>o;o++)r=n[o].name,0===r.indexOf("data-")&&(r=x.camelCase(r.slice(5)),P(i,r,s[r]));q.set(i,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each(function(){L.set(this,e)}):x.access(this,function(t){var n,r=x.camelCase(e);if(i&&t===undefined){if(n=L.get(i,e),n!==undefined)return n;if(n=L.get(i,r),n!==undefined)return n;if(n=P(i,r,undefined),n!==undefined)return n}else this.each(function(){var n=L.get(this,r);L.set(this,r,t),-1!==e.indexOf("-")&&n!==undefined&&L.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){L.remove(this,e)})}});function P(e,t,n){var r;if(n===undefined&&1===e.nodeType)if(r="data-"+t.replace(O,"-$1").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:H.test(n)?JSON.parse(n):n}catch(i){}L.set(e,t,n)}else n=undefined;return n}x.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=q.get(e,t),n&&(!r||x.isArray(n)?r=q.access(e,t,x.makeArray(n)):r.push(n)),r||[]):undefined},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),s=function(){x.dequeue(e,t) +};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return q.get(e,n)||q.access(e,n,{empty:x.Callbacks("once memory").add(function(){q.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),n>arguments.length?x.queue(this[0],e):t===undefined?this:this.each(function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=x.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=undefined),e=e||"fx";while(s--)n=q.get(o[s],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var R,M,W=/[\t\r\n\f]/g,$=/\r/g,B=/^(?:input|select|textarea|button)$/i;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})},addClass:function(e){var t,n,r,i,o,s=0,a=this.length,u="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(W," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,s=0,a=this.length,u=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(W," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,i=0,o=x(this),s=e.match(w)||[];while(t=s[i++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===r||"boolean"===n)&&(this.className&&q.set(this,"__className__",this.className),this.className=this.className||e===!1?"":q.get(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(W," ").indexOf(t)>=0)return!0;return!1},val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=x.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,x(this).val()):e,null==i?i="":"number"==typeof i?i+="":x.isArray(i)&&(i=x.map(i,function(e){return null==e?"":e+""})),t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,i,"value")!==undefined||(this.value=i))});if(i)return t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(i,"value"))!==undefined?n:(n=i.value,"string"==typeof n?n.replace($,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,s=o?null:[],a=o?i+1:r.length,u=0>i?a:o?i:0;for(;a>u;u++)if(n=r[u],!(!n.selected&&u!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),s=i.length;while(s--)r=i[s],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,t,n){var i,o,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===r?x.prop(e,t,n):(1===s&&x.isXMLDoc(e)||(t=t.toLowerCase(),i=x.attrHooks[t]||(x.expr.match.bool.test(t)?M:R)),n===undefined?i&&"get"in i&&null!==(o=i.get(e,t))?o:(o=x.find.attr(e,t),null==o?undefined:o):null!==n?i&&"set"in i&&(o=i.set(e,n,t))!==undefined?o:(e.setAttribute(t,n+""),n):(x.removeAttr(e,t),undefined))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(w);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,o,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return o=1!==s||!x.isXMLDoc(e),o&&(t=x.propFix[t]||t,i=x.propHooks[t]),n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||B.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),M={set:function(e,t,n){return t===!1?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var n=x.expr.attrHandle[t]||x.find.attr;x.expr.attrHandle[t]=function(e,t,r){var i=x.expr.attrHandle[t],o=r?undefined:(x.expr.attrHandle[t]=undefined)!=n(e,t,r)?t.toLowerCase():null;return x.expr.attrHandle[t]=i,o}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){return x.isArray(t)?e.checked=x.inArray(x(e).val(),t)>=0:undefined}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var I=/^key/,z=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,X=/^([^.]*)(?:\.(.+)|)$/;function U(){return!0}function Y(){return!1}function V(){try{return o.activeElement}catch(e){}}x.event={global:{},add:function(e,t,n,i,o){var s,a,u,l,c,p,f,h,d,g,m,y=q.get(e);if(y){n.handler&&(s=n,n=s.handler,o=s.selector),n.guid||(n.guid=x.guid++),(l=y.events)||(l=y.events={}),(a=y.handle)||(a=y.handle=function(e){return typeof x===r||e&&x.event.triggered===e.type?undefined:x.event.dispatch.apply(a.elem,arguments)},a.elem=e),t=(t||"").match(w)||[""],c=t.length;while(c--)u=X.exec(t[c])||[],d=m=u[1],g=(u[2]||"").split(".").sort(),d&&(f=x.event.special[d]||{},d=(o?f.delegateType:f.bindType)||d,f=x.event.special[d]||{},p=x.extend({type:d,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:g.join(".")},s),(h=l[d])||(h=l[d]=[],h.delegateCount=0,f.setup&&f.setup.call(e,i,g,a)!==!1||e.addEventListener&&e.addEventListener(d,a,!1)),f.add&&(f.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,p):h.push(p),x.event.global[d]=!0);e=null}},remove:function(e,t,n,r,i){var o,s,a,u,l,c,p,f,h,d,g,m=q.hasData(e)&&q.get(e);if(m&&(u=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(a=X.exec(t[l])||[],h=g=a[1],d=(a[2]||"").split(".").sort(),h){p=x.event.special[h]||{},h=(r?p.delegateType:p.bindType)||h,f=u[h]||[],a=a[2]&&RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;while(o--)c=f[o],!i&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,p.remove&&p.remove.call(e,c));s&&!f.length&&(p.teardown&&p.teardown.call(e,d,m.handle)!==!1||x.removeEvent(e,h,m.handle),delete u[h])}else for(h in u)x.event.remove(e,h+t[l],n,r,!0);x.isEmptyObject(u)&&(delete m.handle,q.remove(e,"events"))}},trigger:function(t,n,r,i){var s,a,u,l,c,p,f,h=[r||o],d=y.call(t,"type")?t.type:t,g=y.call(t,"namespace")?t.namespace.split("."):[];if(a=u=r=r||o,3!==r.nodeType&&8!==r.nodeType&&!_.test(d+x.event.triggered)&&(d.indexOf(".")>=0&&(g=d.split("."),d=g.shift(),g.sort()),c=0>d.indexOf(":")&&"on"+d,t=t[x.expando]?t:new x.Event(d,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.namespace_re=t.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=r),n=null==n?[t]:x.makeArray(n,[t]),f=x.event.special[d]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!x.isWindow(r)){for(l=f.delegateType||d,_.test(l+d)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(r.ownerDocument||o)&&h.push(u.defaultView||u.parentWindow||e)}s=0;while((a=h[s++])&&!t.isPropagationStopped())t.type=s>1?l:f.bindType||d,p=(q.get(a,"events")||{})[t.type]&&q.get(a,"handle"),p&&p.apply(a,n),p=c&&a[c],p&&x.acceptData(a)&&p.apply&&p.apply(a,n)===!1&&t.preventDefault();return t.type=d,i||t.isDefaultPrevented()||f._default&&f._default.apply(h.pop(),n)!==!1||!x.acceptData(r)||c&&x.isFunction(r[d])&&!x.isWindow(r)&&(u=r[c],u&&(r[c]=null),x.event.triggered=d,r[d](),x.event.triggered=undefined,u&&(r[c]=u)),t.result}},dispatch:function(e){e=x.event.fix(e);var t,n,r,i,o,s=[],a=d.call(arguments),u=(q.get(this,"events")||{})[e.type]||[],l=x.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),t=0;while((i=s[t++])&&!e.isPropagationStopped()){e.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(o.namespace))&&(e.handleObj=o,e.data=o.data,r=((x.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a),r!==undefined&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,s=[],a=t.delegateCount,u=e.target;if(a&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==e.type){for(r=[],n=0;a>n;n++)o=t[n],i=o.selector+" ",r[i]===undefined&&(r[i]=o.needsContext?x(i,this).index(u)>=0:x.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return t.length>a&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,s=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||o,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||s===undefined||(e.which=1&s?1:2&s?3:4&s?2:0),e}},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,s=e,a=this.fixHooks[i];a||(this.fixHooks[i]=a=z.test(i)?this.mouseHooks:I.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new x.Event(s),t=r.length;while(t--)n=r[t],e[n]=s[n];return e.target||(e.target=o),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,s):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==V()&&this.focus?(this.focus(),!1):undefined},delegateType:"focusin"},blur:{trigger:function(){return this===V()&&this.blur?(this.blur(),!1):undefined},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&x.nodeName(this,"input")?(this.click(),!1):undefined},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},x.Event=function(e,t){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.getPreventDefault&&e.getPreventDefault()?U:Y):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,undefined):new x.Event(e,t)},x.Event.prototype={isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=U,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=U,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=U,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&o.addEventListener(e,r,!0)},teardown:function(){0===--n&&o.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,t,n,r,i){var o,s;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=undefined);for(s in e)this.on(s,t,n,e[s],i);return this}if(null==n&&null==r?(r=t,n=t=undefined):null==r&&("string"==typeof t?(r=n,n=undefined):(r=n,n=t,t=undefined)),r===!1)r=Y;else if(!r)return this;return 1===i&&(o=r,r=function(e){return x().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=x.guid++)),this.each(function(){x.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=undefined),n===!1&&(n=Y),this.each(function(){x.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?x.event.trigger(e,t,n,!0):undefined}});var G=/^.[^:#\[\.,]*$/,J=/^(?:parents|prev(?:Until|All))/,Q=x.expr.match.needsContext,K={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){var e=0;for(;n>e;e++)if(x.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(et(this,e||[],!0))},filter:function(e){return this.pushStack(et(this,e||[],!1))},is:function(e){return!!et(this,"string"==typeof e&&Q.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],s=Q.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(s?s.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?g.call(x(e),this[0]):g.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function Z(e,t){while((e=e[t])&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return Z(e,"nextSibling")},prev:function(e){return Z(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return e.contentDocument||x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(K[e]||x.unique(i),J.test(e)&&i.reverse()),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,t,n){var r=[],i=n!==undefined;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&x(e).is(n))break;r.push(e)}return r},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function et(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(G.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return g.call(t,e)>=0!==n})}var tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,nt=/<([\w:]+)/,rt=/<|&#?\w+;/,it=/<(?:script|style|link)/i,ot=/^(?:checkbox|radio)$/i,st=/checked\s*(?:[^=]|=\s*.checked.)/i,at=/^$|\/(?:java|ecma)script/i,ut=/^true\/(.*)/,lt=/^\s*\s*$/g,ct={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ct.optgroup=ct.option,ct.tbody=ct.tfoot=ct.colgroup=ct.caption=ct.thead,ct.th=ct.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===undefined?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(mt(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&dt(mt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(mt(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!it.test(e)&&!ct[(nt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(tt,"<$1>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(x.cleanData(mt(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=f.apply([],e);var r,i,o,s,a,u,l=0,c=this.length,p=this,h=c-1,d=e[0],g=x.isFunction(d);if(g||!(1>=c||"string"!=typeof d||x.support.checkClone)&&st.test(d))return this.each(function(r){var i=p.eq(r);g&&(e[0]=d.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(r=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),i=r.firstChild,1===r.childNodes.length&&(r=i),i)){for(o=x.map(mt(r,"script"),ft),s=o.length;c>l;l++)a=r,l!==h&&(a=x.clone(a,!0,!0),s&&x.merge(o,mt(a,"script"))),t.call(this[l],a,l);if(s)for(u=o[o.length-1].ownerDocument,x.map(o,ht),l=0;s>l;l++)a=o[l],at.test(a.type||"")&&!q.access(a,"globalEval")&&x.contains(u,a)&&(a.src?x._evalUrl(a.src):x.globalEval(a.textContent.replace(lt,"")))}return this}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=[],i=x(e),o=i.length-1,s=0;for(;o>=s;s++)n=s===o?this:this.clone(!0),x(i[s])[t](n),h.apply(r,n.get());return this.pushStack(r)}}),x.extend({clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=x.contains(e.ownerDocument,e);if(!(x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(s=mt(a),o=mt(e),r=0,i=o.length;i>r;r++)yt(o[r],s[r]);if(t)if(n)for(o=o||mt(e),s=s||mt(a),r=0,i=o.length;i>r;r++)gt(o[r],s[r]);else gt(e,a);return s=mt(a,"script"),s.length>0&&dt(s,!u&&mt(e,"script")),a},buildFragment:function(e,t,n,r){var i,o,s,a,u,l,c=0,p=e.length,f=t.createDocumentFragment(),h=[];for(;p>c;c++)if(i=e[c],i||0===i)if("object"===x.type(i))x.merge(h,i.nodeType?[i]:i);else if(rt.test(i)){o=o||f.appendChild(t.createElement("div")),s=(nt.exec(i)||["",""])[1].toLowerCase(),a=ct[s]||ct._default,o.innerHTML=a[1]+i.replace(tt,"<$1>")+a[2],l=a[0];while(l--)o=o.lastChild;x.merge(h,o.childNodes),o=f.firstChild,o.textContent=""}else h.push(t.createTextNode(i));f.textContent="",c=0;while(i=h[c++])if((!r||-1===x.inArray(i,r))&&(u=x.contains(i.ownerDocument,i),o=mt(f.appendChild(i),"script"),u&&dt(o),n)){l=0;while(i=o[l++])at.test(i.type||"")&&n.push(i)}return f},cleanData:function(e){var t,n,r,i,o,s,a=x.event.special,u=0;for(;(n=e[u])!==undefined;u++){if(F.accepts(n)&&(o=n[q.expando],o&&(t=q.cache[o]))){if(r=Object.keys(t.events||{}),r.length)for(s=0;(i=r[s])!==undefined;s++)a[i]?x.event.remove(n,i):x.removeEvent(n,i,t.handle);q.cache[o]&&delete q.cache[o]}delete L.cache[n[L.expando]]}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}});function pt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ft(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ht(e){var t=ut.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function dt(e,t){var n=e.length,r=0;for(;n>r;r++)q.set(e[r],"globalEval",!t||q.get(t[r],"globalEval"))}function gt(e,t){var n,r,i,o,s,a,u,l;if(1===t.nodeType){if(q.hasData(e)&&(o=q.access(e),s=q.set(t,o),l=o.events)){delete s.handle,s.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)x.event.add(t,i,l[i][n])}L.hasData(e)&&(a=L.access(e),u=x.extend({},a),L.set(t,u))}}function mt(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return t===undefined||t&&x.nodeName(e,t)?x.merge([e],n):n}function yt(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ot.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}x.fn.extend({wrapAll:function(e){var t;return x.isFunction(e)?this.each(function(t){x(this).wrapAll(e.call(this,t))}):(this[0]&&(t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var vt,xt,bt=/^(none|table(?!-c[ea]).+)/,wt=/^margin/,Tt=RegExp("^("+b+")(.*)$","i"),Ct=RegExp("^("+b+")(?!px)[a-z%]+$","i"),kt=RegExp("^([+-])=("+b+")","i"),Nt={BODY:"block"},Et={position:"absolute",visibility:"hidden",display:"block"},St={letterSpacing:0,fontWeight:400},jt=["Top","Right","Bottom","Left"],Dt=["Webkit","O","Moz","ms"];function At(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Dt.length;while(i--)if(t=Dt[i]+n,t in e)return t;return r}function Lt(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function qt(t){return e.getComputedStyle(t,null)}function Ht(e,t){var n,r,i,o=[],s=0,a=e.length;for(;a>s;s++)r=e[s],r.style&&(o[s]=q.get(r,"olddisplay"),n=r.style.display,t?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&Lt(r)&&(o[s]=q.access(r,"olddisplay",Rt(r.nodeName)))):o[s]||(i=Lt(r),(n&&"none"!==n||!i)&&q.set(r,"olddisplay",i?n:x.css(r,"display"))));for(s=0;a>s;s++)r=e[s],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[s]||"":"none"));return e}x.fn.extend({css:function(e,t){return x.access(this,function(e,t,n){var r,i,o={},s=0;if(x.isArray(t)){for(r=qt(e),i=t.length;i>s;s++)o[t[s]]=x.css(e,t[s],!1,r);return o}return n!==undefined?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)},show:function(){return Ht(this,!0)},hide:function(){return Ht(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Lt(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=vt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=x.camelCase(t),u=e.style;return t=x.cssProps[a]||(x.cssProps[a]=At(u,a)),s=x.cssHooks[t]||x.cssHooks[a],n===undefined?s&&"get"in s&&(i=s.get(e,!1,r))!==undefined?i:u[t]:(o=typeof n,"string"===o&&(i=kt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(x.css(e,t)),o="number"),null==n||"number"===o&&isNaN(n)||("number"!==o||x.cssNumber[a]||(n+="px"),x.support.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&(n=s.set(e,n,r))===undefined||(u[t]=n)),undefined)}},css:function(e,t,n,r){var i,o,s,a=x.camelCase(t);return t=x.cssProps[a]||(x.cssProps[a]=At(e.style,a)),s=x.cssHooks[t]||x.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),i===undefined&&(i=vt(e,t,r)),"normal"===i&&t in St&&(i=St[t]),""===n||n?(o=parseFloat(i),n===!0||x.isNumeric(o)?o||0:i):i}}),vt=function(e,t,n){var r,i,o,s=n||qt(e),a=s?s.getPropertyValue(t)||s[t]:undefined,u=e.style;return s&&(""!==a||x.contains(e.ownerDocument,e)||(a=x.style(e,t)),Ct.test(a)&&wt.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=s.width,u.width=r,u.minWidth=i,u.maxWidth=o)),a};function Ot(e,t,n){var r=Tt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function Ft(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,s=0;for(;4>o;o+=2)"margin"===n&&(s+=x.css(e,n+jt[o],!0,i)),r?("content"===n&&(s-=x.css(e,"padding"+jt[o],!0,i)),"margin"!==n&&(s-=x.css(e,"border"+jt[o]+"Width",!0,i))):(s+=x.css(e,"padding"+jt[o],!0,i),"padding"!==n&&(s+=x.css(e,"border"+jt[o]+"Width",!0,i)));return s}function Pt(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=qt(e),s=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=vt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Ct.test(i))return i;r=s&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+Ft(e,t,n||(s?"border":"content"),r,o)+"px"}function Rt(e){var t=o,n=Nt[e];return n||(n=Mt(e,t),"none"!==n&&n||(xt=(xt||x("