PageSourceSearch

https://topotijdreis.nl/static/js/106.f2e15242.chunk.js

js topotijdreis.nl collected 2026-10-02 06:46:26 UTC 29,816 bytes, 2 lines download raw bytes

1(this.webpackJsonptopotijdreis=this.webpackJsonptopotijdreis||[]).push([[106],{801:function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n=r(3),a=r(2),i=r(4),l=r(5),s=r(0),o=r(30),u=r(83),c=r(1),p=(r(15),r(12),r(10),r(6)),b={visible:"visibleSublayers"},f=function(e){Object(i.a)(r,e);var t=Object(l.a)(r);function r(e){var a;return Object(n.a)(this,r),(a=t.call(this,e)).scale=0,a}return Object(a.a)(r,[{key:"layer",set:function(e){var t=this;this._get("layer")!==e&&(this._set("layer",e),this.handles.remove("layer"),e&&this.handles.add([e.sublayers.on("change",(function(){return t.notifyChange("visibleSublayers")})),e.on("wms-sublayer-update",(function(e){return t.notifyChange(b[e.propertyName])}))],"layer"))}},{key:"layers",get:function(){return this.visibleSublayers.filter((function(e){return e.name})).map((function(e){return e.name})).join(",")}},{key:"version",get:function(){this.commitProperty("layers");var e=this.layer;return e&&e.commitProperty("imageTransparency"),(this._get("version")||0)+1}},{key:"visibleSublayers",get:function(){var e=this.layer,t=this.scale,r=null==e?void 0:e.sublayers,n=[];return null==r||r.forEach((function e(r){var a=r.minScale,i=r.maxScale,l=r.sublayers;r.visible&&(0===t||(0===a||t<=a)&&(0===i||t>=i))&&(l?l.forEach(e):n.unshift(r))})),n}},{key:"toJSON",value:function(){var e=this.layer,t=this.layers;return{format:e.imageFormat,request:"GetMap",service:"WMS",styles:"",transparent:e.imageTransparency,version:e.version,layers:t}}}]),r}(Object(u.b)(o.a));Object(s.a)([Object(c.b)()],f.prototype,"layer",null),Object(s.a)([Object(c.b)({readOnly:!0})],f.prototype,"layers",null),Object(s.a)([Object(c.b)({type:Number})],f.prototype,"scale",void 0),Object(s.a)([Object(c.b)({readOnly:!0})],f.prototype,"version",null),Object(s.a)([Object(c.b)({readOnly:!0})],f.prototype,"visibleSublayers",null),f=Object(s.a)([Object(p.a)("esri.layers.support.ExportWMSImageParameters")],f)},876:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return Ue}));var n,a=r(13),i=r(24),l=r(9),s=r(11),o=r(3),u=r(2),c=r(29),p=r(4),b=r(5),f=r(8),y=r.n(f),d=r(0),m=r(65),h=r(70),v=r(124),O=r(49),g=r(34),j=r(154),x=r(83),w=r(31),E=r(18),S=r(7),N=r(140),I=r(22),k=r(26),R=r(1),U=r(10),F=r(25),L=r(6),A=r(27),P=r(266),_=r(40),M=r(35),T=r(330),q=r(42),C=r(211),V=r(311),W=r(308),B=r(307),D=r(315),G=r(309),H=r(413),X=r(97),J=r(100),$=r(801),Q=r(63),Y=(r(15),r(12),r(44)),z=0,K=n=function(e){Object(p.a)(r,e);var t=Object(b.a)(r);function r(e){var n;return Object(o.a)(this,r),(n=t.call(this,e))._sublayersHandles=new Q.a,n.dimensions=null,n.fullExtents=null,n.featureInfoFormat=null,n.featureInfoUrl=null,n.legendUrl=null,n.legendEnabled=!0,n.maxScale=0,n.minScale=0,n.popupEnabled=!1,n.queryable=!1,n.spatialReferences=null,n}return Object(u.a)(r,[{key:"description",get:function(){return this._get("description")},set:function(e){this._set("description",e)}},{key:"fullExtent",get:function(){return this._get("fullExtent")}
1,set:function(e){this._set("fullExtent",e)}},{key:"readExtent",value:function(e,t){return(e=t.extent)?_.a.fromJSON(e):null}},{key:"id",get:function(){var e=this._get("id");return null==e?z++:e},set:function(e){this._set("id",e)}},{key:"readLegendUrl",value:function(e,t){return t?t.legendUrl||t.legendURL:null}},{key:"layer",set:function(e){this._set("layer",e),this.sublayers&&this.sublayers.forEach((function(t){return t.layer=e}))}},{key:"name",get:function(){return this._get("name")},set:function(e){this._set("name",e)}},{key:"sublayers",set:function(e){var t=this,r=this._get("sublayers");r&&(r.forEach((function(e){e.layer=null})),this._sublayersHandles.removeAll(),this._sublayersHandles=null),e&&(e.forEach((function(e){e.parent=t,e.layer=t.layer})),this._sublayersHandles.add([e.on("after-add",(function(e){var r=e.item;r.parent=t,r.layer=t.layer})),e.on("after-remove",(function(e){var t=e.item;t.parent=null,t.layer=null}))])),this._set("sublayers",e)}},{key:"castSublayers",value:function(e){return Object(U.m)(g.a.ofType(n),e)}},{key:"title",get:function(){return this._get("title")},set:function(e){this._set("title",e)}},{key:"visible",get:function(){return this._get("visible")},set:function(e){this._setAndNotifyLayer("visible",e)}},{key:"clone",value:function(){var e=new n;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents.map((function(e){return e.clone()}))),this.hasOwnProperty("featureInfoFormat")&&(e.featureInfoFormat=this.featureInfoFormat),this.hasOwnProperty("featureInfoUrl")&&(e.featureInfoUrl=this.featureInfoUrl),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers&&this.sublayers.map((function(e){return e.clone()}))),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences.map((function(e){return e}))),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}},{key:"_setAndNotifyLayer",value:function(e,t){var r=this.layer;this._get(e)!==t&&(this._set(e,t),r&&r.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}}]),r}(N.b);Object(d.a)([Object(R.b)()],K.prototype,"description",null),Object(d.a)([Object(R.b)({readOnly:!0})],K.prototype,"dimensions",void 0),Object(d.a)([Object(R.b)({value:null})],K.prototype,"fullExtent",null),Object(d.a)([Object(F.a)("fullExtent",["extent"])],K.prototype,"readExtent",null),Object(d.a)([Object(R.b)()],K.prototype,"fullExtents",void 0),Object(d.a)([Object(R.b)()],K.prototype,"featureInfoFormat",void 0),Object(d.a)([Object(R.b)()],K.prototype,"featureInfoUrl",void 0),Object(d.a)([Object(R.b)({type:Number,json:{write:{enabled:!1,overridePolicy:function(){return{ignoreOrigin:!0,enabled:!0}}}}})],K.prototype,"id",null),Object(d.a)([Object(R.b)({type:String,json:{origins:{"web-document":{read:{source:["legendUrl","legendURL"]},write:{target:"legendUrl",ignoreOrigin:!0}}},read:{source:"legendURL"},write:{ignoreOrigin:!0}}})],K.prototype,"legendUrl",void 0),Object(d.a)([Object(F.a)(["web-document"],"legendUrl")],K.prototype,"readLegendUrl",null),Object(d.a)([Object(R.b)({value:!0,type:Boolean,json:{read:{source:"showLegend"},write:{target:"showLegend"},origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],K.prototype,"legendEnabled",void 0),Object(d.a)([Object(R.b)({value:null})],K.prototype,"layer",null),Object(d.a)([Object(R.b)()],K.prototype,"maxScale",void 0),Object(d.a)([Object(R.b)()],K.prototype,"minScale",void 0),Object(d.a)([Object(R.b)({type:String,value:null,json:{read:{source:"name"},write:{ignoreOrigin:!0}}})],K.prototype,"name",null),Object(d.a)([Object(R.b)()],K.prototype,"parent",void 0),Object(d.a)([Object(R.b)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],K.prototype,"popupEnabled",void 0),Object(d.a)([Object(R.b)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],K.prototype,"queryable",void 0),Object(d.a)([Object(R.b)()],K.prototype,"sublayers",null),Object(d.a)([Object(Y.a)("sublayers")],K.prototype,"castSublayers",null),Object(d.a)([Object(R.b)({type:[Number],json:{read:{source:"spatialReferences"}}})],K.prototype,"spatialReferences",void 0),Object(d.a)([Object(R.b)({type:String,value:null,json:{write:{ignoreOrigin:!0}}})],K.prototype,"title",null),Object(d.a)([Object(R.b)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],K.prototype,"visible",null);var Z=K=n=Object(d.a)([Object(L.a)("esri.layers.support.WMSSublayer")],K),ee=r(23),te=r(14),re=[[4001,4999],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3416,3416],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]],ne={84:4326,83:4269,27:4267};function ae(e){if(!e)return null;var t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));var r=e.documentElement;if("ServiceExceptionReport"===r.nodeName){var n=Array.prototype.slice.call(r.childNodes).map((function(e){return e.textContent})).join("\r\n");throw new te.a("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",n)}var a=ue("Capability",r),i=ue("Service",r),l=ue("Request",a);if(!a||!i||!l)return null;var s=ue("Layer",a);if(!s)return null;var o,u,c,p="WMS_Capabilities"===r.nodeName||"WMT_MS_Capabilities"===r.nodeName?r.getAttribute("version"):"1.3.0",b=pe("Title",i,"")||pe("Name",i,""),f=pe("Acce
1ssConstraints",i,""),y=pe("Abstract",i,""),d=parseInt(pe("MaxWidth",i,"5000"),10),m=parseInt(pe("MaxHeight",i,"5000"),10),h=ye(l,"GetMap"),v=fe(l,"GetMap"),O=me(s,p,t),g=0;if(Array.prototype.slice.call(a.childNodes).forEach((function(e){"Layer"===e.nodeName&&(0===g?o=e:1===g?(O.name&&(O.name="",O.sublayers.push(me(o,p,t))),O.sublayers.push(me(e,p,t))):O.sublayers.push(me(e,p,t)),g++)})),!O)return null;var j=O.fullExtents;if((u=O.sublayers)||(u=[]),0===u.length&&u.push(O),!(c=O.extent)){var x=new _.a(u[0].extent);O.extent=x.toJSON(),c=O.extent}var w,E=O.spatialReferences.length>0?O.spatialReferences:le(O),S=fe(l,"GetFeatureInfo");if(S){var N=ye(l,"GetFeatureInfo");N.indexOf("text/html")>-1?w="text/html":N.indexOf("text/plain")>-1&&(w="text/plain")}if(!w){!function e(t){t&&(t.queryable=!1,t.sublayers&&t.sublayers.forEach((function(t){e(t)})))}(O)}var I=se(u),k=O.minScale||0,R=O.maxScale||0,U=O.dimensions,F=I.reduce((function(e,t){return e.concat(t.dimensions)}),[]),L=U.concat(F).filter(ve),A=null;if(L.length>0){var P=Number.POSITIVE_INFINITY,M=Number.NEGATIVE_INFINITY;L.forEach((function(e){var t,r=e.extent;t=r,Array.isArray(t)&&t.length>0&&t[0]instanceof Date?r.forEach((function(e){P=Math.min(P,e.getTime()),M=Math.max(M,e.getTime())})):r.forEach((function(e){P=Math.min(P,e.min.getTime()),M=Math.max(M,e.max.getTime())}))})),A={startTimeField:null,endTimeField:null,trackIdField:null,timeExtent:[P,M]}}return{copyright:f,description:y,dimensions:U,extent:c,fullExtents:j,featureInfoFormat:w,featureInfoUrl:S,mapUrl:v,maxWidth:d,maxHeight:m,maxScale:R,minScale:k,layers:I,spatialReferences:E,supportedImageFormatTypes:h,timeInfo:A,title:b,version:p}}function ie(e){return re.some((function(t){var r=Object(ee.a)(t,2),n=r[0],a=r[1];return e>=n&&e<=a}))}function le(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers){var t,r=Object(s.a)(e.sublayers);try{for(r.s();!(t=r.n()).done;){var n=le(t.value);if(n.length>0)return n}}catch(a){r.e(a)}finally{r.f()}}return[]}function se(e){var t=[];return e.forEach((function(e){t.push(e),e.sublayers&&e.sublayers.length&&(t=t.concat(se(e.sublayers)),delete e.sublayers)})),t}function oe(e,t,r){var n;return null!=(n=t.getAttribute(e))?n:r}function ue(e,t){for(var r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(he(n)&&n.nodeName===e)return n}return null}function ce(e,t){for(var r=[],n=0;n<t.childNodes.length;n++){var a=t.childNodes[n];he(a)&&a.nodeName===e&&r.push(a)}return r}function pe(e,t,r){var n=ue(e,t);return n?n.textContent:r}function be(e,t,r){if(!e)return null;var n,a,i,l,s=parseFloat(e.getAttribute("minx")),o=parseFloat(e.getAttribute("miny")),u=parseFloat(e.getAttribute("maxx")),c=parseFloat(e.getAttribute("maxy"));r?(n=isNaN(o)?-Number.MAX_VALUE:o,a=isNaN(s)?-Number.MAX_VALUE:s,i=isNaN(c)?Number.MAX_VALUE:c,l=isNaN(u)?Number.MAX_VALUE:u):(n=isNaN(s)?-Number.MAX_VALUE:s,a=isNaN(o)?-Number.MAX_VALUE:o,i=isNaN(u)?Number.MAX_VALUE:u,l=isNaN(c)?Number.MAX_VALUE:c);var p=new M.a({wkid:t});return new _.a({xmin:n,ymin:a,xmax:i,ymax:l,spatialReference:p})}function fe(e,t){var r=ue(t,e);if(r){var n=ue("DCPType",r);if(n){var a=ue("HTTP",n);if(a){var i=ue("Get",a);if(i){var l=function(e,t,r,n){var a=ue(e,r);return a?oe(t,a,n):n}("OnlineResource","xlink:href",i,null);if(l)return l.indexOf("&")===l.length-1&&(l=l.substring(0,l.length-1)),function(e,t){var r=[],n=Object(k.K)(e);for(var a in n.query)n.query.hasOwnProperty(a)&&-1===t.indexOf(a.toLowerCase())&&r.push(a+"="+n.query[a]);return n.path+(r.length?"?"+r.join("&"):"")}(l,["service","request"])}}}}return null}function ye(e,t){var r=ce("Operation",e);if(0===r.length)return ce("Format",ue(t,e)).map((function(e){return e.textContent}));var n=[];return r.forEach((function(e){e.getAttribute("name")===t&&ce("Format",e).forEach((function(e){n.push(e.textContent)}))})),n}function de(e,t,r){var n=ue(t,e);if(!n)return r;var a=n.textContent;if(null==a||""===a)return r;var i=Number(a);return isNaN(i)?r:i}function me(e,t,r){var n;if(!e)return null;var a={id:r.idCounter++,fullExtents:[],parentLayerId:null,queryable:"1"===e.getAttribute("queryable"),spatialReferences:[],sublayers:null},i=ue("LatLonBoundingBox",e),l=ue("EX_GeographicBoundingBox",e),s=null;i&&(s=be(i,4326)),l&&((s=new _.a(0,0,0,0,new M.a({wkid:4326}))).xmin=parseFloat(pe("westBoundLongitude",l,"0")),s.ymin=parseFloat(pe("southBoundLatitude",l,"0")),s.xmax=parseFloat(pe("eastBoundLongitude",l,"0")),s.ymax=parseFloat(pe("northBoundLatitude",l,"0"))),i||l||(s=new _.a(-180,-90,180,90,new M.a({wkid:4326}))),a.minScale=de(e,"MaxScaleDenominator",0),a.maxScale=de(e,"MinScaleDenominator",0);var o=["1.0.0","1.1.0","1.1.1"].indexOf(t)>-1?"SRS":"CRS";
1return Array.prototype.slice.call(e.childNodes).forEach((function(e){if("Name"===e.nodeName)a.name=e.textContent||"";else if("Title"===e.nodeName)a.title=e.textContent||"";else if("Abstract"===e.nodeName)a.description=e.textContent||"";else if("BoundingBox"===e.nodeName){var n=e.getAttribute(o);if(n&&0===n.indexOf("EPSG:")){var i=parseInt(n.substring(5),10);0===i||isNaN(i)||s||(s="1.3.0"===t?be(e,i,ie(i)):be(e,i))}var l=n&&n.indexOf(":");if(l&&l>-1){var u=parseInt(n.substring(l+1,n.length),10);0===u||isNaN(u)||(u=ne[u]?ne[u]:u);var c="1.3.0"===t?be(e,u,ie(u)):be(e,u);a.fullExtents.push(c)}}else if(e.nodeName===o)e.textContent.split(" ").forEach((function(e){var t=e.includes(":")?parseInt(e.split(":")[1],10):parseInt(e,10);if(0!==t&&!isNaN(t)){var r=ne[t]?ne[t]:t;a.spatialReferences.includes(r)||a.spatialReferences.push(r)}}));else if("Style"!==e.nodeName||a.legendURL){if("Layer"===e.nodeName){var p=me(e,t,r);p&&(p.parentLayerId=a.id,a.sublayers||(a.sublayers=[]),a.sublayers.push(p))}}else{var b=ue("LegendURL",e);if(b){var f=ue("OnlineResource",b);f&&(a.legendURL=f.getAttribute("xlink:href"))}}})),a.extent=null==(n=s)?void 0:n.toJSON(),a.dimensions=ce("Dimension",e).filter((function(e){return e.getAttribute("name")&&e.getAttribute("units")&&e.textContent})).map((function(e){var t=e.getAttribute("name"),r=e.getAttribute("units"),n=e.textContent,a=e.getAttribute("unitSymbol"),i=e.getAttribute("default"),l="0"!==oe("default",e,"0"),s="0"!==oe("nearestValue",e,"0"),o="0"!==oe("current",e,"0");return/^time$/i.test(t)&&/^ISO8601$/i.test(r)?{name:"time",units:"ISO8601",extent:je(n),default:je(i),multipleValues:l,nearestValue:s,current:o}:/^elevation$/i.test(t)?{name:"elevation",units:r,extent:Oe(n),unitSymbol:a,default:Oe(i),multipleValues:l,nearestValue:s}:{name:t,units:r,extent:ge(n),unitSymbol:a,default:ge(i),multipleValues:l,nearestValue:s}})),a}function he(e){return e.nodeType===Node.ELEMENT_NODE}function ve(e){return"time"===e.name}function Oe(e){if(!e)return null;var t=-1!==e.indexOf("/"),r=e.split(",");return t?r.map((function(e){var t=e.split("/");return t.length<2?null:{min:parseFloat(t[0]),max:parseFloat(t[1]),resolution:t.length>=3&&"0"!==t[2]?parseFloat(t[2]):void 0}})).filter((function(e){return e})):r.map((function(e){return parseFloat(e)}))}function ge(e){if(!e)return null;var t=-1!==e.indexOf("/"),r=e.split(",");return t?r.map((function(e){var t=e.split("/");return t.length<2?null:{min:t[0],max:t[1],resolution:t.length>=3&&"0"!==t[2]?t[2]:void 0}})).filter((function(e){return e})):r}function je(e){if(!e)return null;var t=-1!==e.indexOf("/"),r=e.split(",");return t?r.map((function(e){var t=e.split("/");return t.length<2?null:{min:new Date(t[0]),max:new Date(t[1]),resolution:t.length>=3&&"0"!==t[2]?xe(t[2]):void 0}})).filter((function(e){return e})):r.map((function(e){return new Date(e)}))}function xe(e){var t=e.match(/(?:p(\d+y|\d+(?:.|,)\d+y)?(\d+m|\d+(?:.|,)\d+m)?(\d+d|\d+(?:.|,)\d+d)?)?(?:t(\d+h|\d+(?:.|,)\d+h)?(\d+m|\d+(?:.|,)\d+m)?(\d+s|\d+(?:.|,)\d+s)?)?/i);return t?{years:we(t[1]),months:we(t[2]),days:we(t[3]),hours:we(t[4]),minutes:we(t[5]),seconds:we(t[6])}:null}function we(e){if(!e)return 0;var t=e.match(/(?:\d+(?:.|,)\d+|\d+)/);if(!t)return 0;var r=t[0].replace(",",".");return Number(r)}function Ee(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}var Se=new Set([102100,3857,102113,900913]),Ne=new Set([3395,54004]);var Ie=new w.a({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1}),ke=function(e){Object(p.a)(r,e);var t=Object(b.a)(r);function r(){var e;Object(o.a)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).allSublayers=new j.a({getCollections:function(){return[e.sublayers]},getChildrenFunction:function(e){return e.sublayers}}),e.customParameters=null,e.customLayerParameters=null,e.copyright=null,e.description=null,e.dimensions=null,e.fullExtent=null,e.fullExtents=null,e.featureInfoFormat=null,e.featureInfoUrl=null,e.imageFormat=null,e.imageMaxHeight=2048,e.imageMaxWidth=2048,e.imageTransparency=!0,e.legendEnabled=!0,e.mapUrl=null,e.isReference=null,e.operationalLayerType="WMS",e.spatialReference=null,e.spatialReferences=null,e.sublayers=null,e.type="wms",e.url=null,e.version=null,e.watch("sublayers",(function(t,r){if(r){var n,a=Object(s.a)(r);try{for(a.s();!(n=a.n()).done;){n.value.layer=null}}catch(u){a.e(u)}finally{a.f()}e.handles.remove("wms-sublayer")}if(t){var i,l=Object(s.a)(t);try{for(l.s();!(i=l.n()).done;){var o=i.value;o.parent=Object(c.a)(e),o.layer=Object(c.a)(e)}}catch(u){l.e(u)}finally{l.f()}e.handles.add([t.on("after-add",(function(t){var r=t.item;r.parent=Object(c.a)(e),r.layer=Object(c.a)(e)})),t.on("after-remove",(function(e){var t=e.item;t.parent=null,t.layer=null}))],"wms-sublayer")}}),!0),e}return Object(u.a)(r,[{key:"normalizeCtorArgs",value:function(e,t){return"string"==typeof e?Object(l.a)({url:e},t):e}},{key:"load",value:function(e){var t=this,r=Object(S.k)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(I.t).then((function(){return t._fetchService(r)}))),Promise.resolve(this)}},{key:"readFullExtentFromItemOrMap",value:function(e,t){var r=t.extent;return new _.a({xmin:r[0][0],ymin:r[0][1],xmax:r[1][0],ymax:r[1][1]})}}
1,{key:"writeFullExtent",value:function(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}},{key:"readImageFormat",value:function(e,t){var r=t.supportedImageFormatTypes;return r&&r.indexOf("image/png")>-1?"image/png":r&&r[0]}},{key:"readSpatialReferenceFromItemOrDocument",value:function(e,t){return new M.a(t.spatialReferences[0])}},{key:"writeSpatialReferences",value:function(e,t){var r=this.spatialReference&&this.spatialReference.wkid;e&&r?(t.spatialReferences=e.filter((function(e){return e!==r})),t.spatialReferences.unshift(r)):t.spatialReferences=e}},{key:"readSublayersFromItemOrMap",value:function(e,t,r){return Re(t.layers,r,t.visibleLayers)}},{key:"readSublayers",value:function(e,t,r){return Re(t.layers,r)}},{key:"writeSublayers",value:function(e,t,r,n){t.layers=[];var a=new Map,i=e.flatten((function(e){var t=e.sublayers;return t&&t.toArray()})).toArray();i.forEach((function(e){"number"==typeof e.parent.id&&(a.has(e.parent.id)?a.get(e.parent.id).push(e.id):a.set(e.parent.id,[e.id]))})),i.forEach((function(e){var r=Object(l.a)({sublayer:e},n),i=e.write({parentLayerId:"number"==typeof e.parent.id?e.parent.id:-1},r);if(a.has(e.id)&&(i.sublayerIds=a.get(e.id)),!e.sublayers&&e.name){var s=e.write({},r);delete s.id,t.layers.push(s)}})),t.visibleLayers=i.filter((function(e){return e.visible&&!e.sublayers})).map((function(e){return e.name}))}},{key:"createExportImageParameters",value:function(e,t,r,n){var a=n&&n.pixelRatio||1,s=Object(T.b)({extent:e,width:t})*a,o=new $.a({layer:this,scale:s}),u=e.xmin,c=e.ymin,p=e.xmax,b=e.ymax,f=function(e,t){var r=e.wkid;return Object(S.j)(t)?r:(!t.includes(r)&&e.latestWkid&&(r=e.latestWkid),Se.has(r)?t.find((function(e){return Se.has(e)}))||t.find((function(e){return Ne.has(e)}))||102100:r)}(e.spatialReference,this.spatialReferences),y="1.3.0"===this.version&&ie(f)?"".concat(c,",").concat(u,",").concat(b,",").concat(p):"".concat(u,",").concat(c,",").concat(p,",").concat(b),d=o.toJSON();return Object(l.a)(Object(i.a)({bbox:y},"1.3.0"===this.version?"crs":"srs",isNaN(f)?void 0:"EPSG:"+f),d)}},{key:"fetchImage",value:function(){var e=Object(a.a)(y.a.mark((function e(t,r,n,a){var i,s,o,u,c,p,b,f,d;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.mapUrl,(u=this.createExportImageParameters(t,r,n,a)).layers){e.next=4;break}return c=document.createElement("canvas"),e.abrupt("return",(c.width=r,c.height=n,c));case 4:return p=null==a||null==(i=a.timeExtent)?void 0:i.start,b=null==a||null==(s=a.timeExtent)?void 0:s.end,f=Object(S.k)(p)&&Object(S.k)(b)?p.getTime()===b.getTime()?Ee(p):"".concat(Ee(p),"/").concat(Ee(b)):void 0,d={responseType:"image",query:this._mixCustomParameters(Object(l.a)(Object(l.a)({width:r,height:n},u),{},{time:f},this.refreshParameters)),signal:null==a?void 0:a.signal},e.abrupt("return",Object(O.default)(o,d).then((function(e){return e.data})));case 6:case"end":return e.stop()}}),e,this)})));return function(t,r,n,a){return e.apply(this,arguments)}}()},{key:"fetchFeatureInfo",value:function(e,t,r,n,a){var i=Object(T.b)({extent:e,width:t}),s=function(e){return e.length?e.filter((function(e){return e.popupEnabled&&e.name&&e.queryable})).map((function(e){return e.name})).join(","):""}(new $.a({layer:this,scale:i}).visibleSublayers);if(!this.featureInfoUrl||!s)return null;var o="1.3.0"===this.version?{I:n,J:a}:{x:n,y:a},u=Object(l.a)({query_layers:s,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:r},o),c=Object(l.a)(Object(l.a)({},this.createExportImageParameters(e,t,r)),u),p=this._mixCustomParameters(c),b=Object(k.e)(this.featureInfoUrl,p),f=document.createElement("iframe");f.src=b,f.style.border="none",f.style.margin="0",f.style.width="100%",f.setAttribute("sandbox","");var y=new v.a({title:this.title,content:f});return new h.a({sourceLayer:this,popupTemplate:y})}},{key:"findSublayerById",value:function(e){return this.allSublayers.find((function(t){return t.id===e}))}},{key:"findSublayerByName",value:function(e){return this.allSublayers.find((function(t){return t.name===e}))}},{key:"supportsSpatialReference",value:function(e){return Object(X.e)(this.url)||this.spatialReferences.some((function(t){var r=900913===t?M.a.WebMercator:new M.a({wkid:t});return Object(q.d)(r,e)}))}},{key:"_fetchService",value:function(){var e=Object(a.a)(y.a.mark((function e(t){var r,n;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.resourceInfo){e.next=6;break}return this.parsedUrl.query&&this.parsedUrl.query.service&&(this.parsedUrl.query.SERVICE=this.parsedUrl.query.service,delete this.parsedUrl.query.service),this.parsedUrl.query&&this.parsedUrl.query.request&&(this.parsedUrl.query.REQUEST=this.parsedUrl.query.request,delete this.parsedUrl.query.request),e.next=4,Object(O.default)(this.parsedUrl.path,{query:Object(l.a)(Object(l.a)({SERVICE:"WMS",REQUEST:"GetCapabilities"},this.parsedUrl.query),this.customParameters),responseType:"xml",signal:t});case 4:r=e.sent,this.resourceInfo=ae(r.data);case 6:this.parsedUrl&&("https"!==(n=new k.a(this.parsedUrl.path)).scheme||n.port&&"443"!==n.port||-1!==m.a.request.httpsDomains.indexOf(n.host)||m.a.request.httpsDomains.push(n.host)),this.read(this.resourceInfo,{origin:"service"});case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_mixCustomParameters",value:function(e){if(!this.customLayerParameters&&!this.customParameters)return e;var t=Object(l.a)(Object(l.a)({},this.customParameters),this.customLayerParameters);for(var r in t)e[r.toLowerCase()]=t[r];return e}}]),r}(Object(x.b)(Object(V.a)(Object(H.a)(Object(D.a)(Object(G.a)(Object(W.a)(Object(B.a)(Object(N.a)(C.a)))))))));function Re(e,t,r){var n=new Map;e.every((function(e){return null==e.id}
1))&&(e=Object(E.a)(e)).forEach((function(e,t){return e.id=t}));var a,i=Object(s.a)(e);try{for(i.s();!(a=i.n()).done;){var l=a.value,o=new Z;o.read(l,t),-1===(null==r?void 0:r.indexOf(o.name))&&(o.visible=!1),n.set(o.id,o)}}catch(d){i.e(d)}finally{i.f()}var u,c=[],p=Object(s.a)(e);try{for(p.s();!(u=p.n()).done;){var b=u.value,f=n.get(b.id);if(null!=b.parentLayerId&&b.parentLayerId>=0){var y=n.get(b.parentLayerId);y.sublayers||(y.sublayers=new l),y.sublayers.unshift(f)}else c.unshift(f)}}catch(d){p.e(d)}finally{p.f()}return c}Object(d.a)([Object(R.b)({readOnly:!0})],ke.prototype,"allSublayers",void 0),Object(d.a)([Object(R.b)({json:{type:Object,write:!0}})],ke.prototype,"customParameters",void 0),Object(d.a)([Object(R.b)({json:{type:Object,write:!0}})],ke.prototype,"customLayerParameters",void 0),Object(d.a)([Object(R.b)({type:String,json:{write:!0}})],ke.prototype,"copyright",void 0),Object(d.a)([Object(R.b)()],ke.prototype,"description",void 0),Object(d.a)([Object(R.b)({readOnly:!0})],ke.prototype,"dimensions",void 0),Object(d.a)([Object(R.b)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],ke.prototype,"fullExtent",void 0),Object(d.a)([Object(F.a)(["web-document","portal-item"],"fullExtent",["extent"])],ke.prototype,"readFullExtentFromItemOrMap",null),Object(d.a)([Object(A.a)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],ke.prototype,"writeFullExtent",null),Object(d.a)([Object(R.b)()],ke.prototype,"fullExtents",void 0),Object(d.a)([Object(R.b)({type:String,json:{write:{ignoreOrigin:!0}}})],ke.prototype,"featureInfoFormat",void 0),Object(d.a)([Object(R.b)({type:String,json:{write:{ignoreOrigin:!0}}})],ke.prototype,"featureInfoUrl",void 0),Object(d.a)([Object(R.b)({type:String,json:{origins:{"web-document":{default:"image/png",type:Ie.jsonValues,read:{reader:Ie.read,source:"format"},write:{writer:Ie.write,target:"format"}}}}})],ke.prototype,"imageFormat",void 0),Object(d.a)([Object(F.a)("imageFormat",["supportedImageFormatTypes"])],ke.prototype,"readImageFormat",null),Object(d.a)([Object(R.b)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],ke.prototype,"imageMaxHeight",void 0),Object(d.a)([Object(R.b)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],ke.prototype,"imageMaxWidth",void 0),Object(d.a)([Object(R.b)()],ke.prototype,"imageTransparency",void 0),Object(d.a)([Object(R.b)(J.e)],ke.prototype,"legendEnabled",void 0),Object(d.a)([Object(R.b)({type:["show","hide","hide-children"]})],ke.prototype,"listMode",void 0),Object(d.a)([Object(R.b)({type:String,json:{write:{ignoreOrigin:!0}}})],ke.prototype,"mapUrl",void 0),Object(d.a)([Object(R.b)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:function(){return{enabled:!1}}}}})],ke.prototype,"isReference",void 0),Object(d.a)([Object(R.b)({type:["WMS"]})],ke.prototype,"operationalLayerType",void 0),Object(d.a)([Object(R.b)({type:M.a,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],ke.prototype,"spatialReference",void 0),Object(d.a)([Object(F.a)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],ke.prototype,"readSpatialReferenceFromItemOrDocument",null),Object(d.a)([Object(R.b)({type:[U.a],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],ke.prototype,"spatialReferences",void 0),Object(d.a)([Object(A.a)(["web-document","portal-item"],"spatialReferences")],ke.prototype,"writeSpatialReferences",null),Object(d.a)([Object(R.b)({type:g.a.ofType(Z),json:{write:{target:"layers",overridePolicy:function(e,t,r){if(function(e,t){return e.some((function(e){for(var r in e)if(Object(P.a)(e,r,null,t))return!0;return!1}))}(this.allSublayers,r))return{ignoreOrigin:!0}}}}})],ke.prototype,"sublayers",void 0),Object(d.a)([Object(F.a)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],ke.prototype,"readSublayersFromItemOrMap",null),Object(d.a)([Object(F.a)("service","sublayers",["layers"])],ke.prototype,"readSublayers",null),Object(d.a)([Object(A.a)("sublayers",{layers:{type:[Z]},visibleLayers:{type:[String]}})],ke.prototype,"writeSublayers",null),Object(d.a)([Object(R.b)({json:{read:!1},readOnly:!0,value:"wms"})],ke.prototype,"type",void 0),Object(d.a)([Object(R.b)(J.n)],ke.prototype,"url",void 0),Object(d.a)([Object(R.b)({type:String,json:{write:{ignoreOrigin:!0}}}
1)],ke.prototype,"version",void 0);var Ue=ke=Object(d.a)([Object(L.a)("esri.layers.WMSLayer")],ke)}}]);
2//# sourceMappingURL=106.f2e15242.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.