text: (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[4495],{52595:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=(0,r(61365).Z)(r(23885).Overlay)},16919:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(21413),o=r.n(n),i=r(72073),a=r(65539),l=r(95437),c=r(23885),s=r(38560),u={bottom:{true:"chevron-down",false:"chevron-up"},top:{true:"chevron-up",false:"chevron-down"},right:{true:"chevron-right",false:"chevron-left"},left:{true:"chevron-left",false:"chevron-right"}};const p=function(e){var t=e.position,r=void 0===t?"right":t,n=e.onClose,i=e.bsStyle,a=void 0===i?"default":i,l=e.title,p=void 0===l?"":l,f=e.fullscreen,d=void 0!==f&&f,y=e.showFullscreen,m=void 0!==y&&y,h=e.glyph,b=void 0===h?"info-sign":h,g=e.additionalRows,v=e.onFullscreen,w=void 0===v?function(){}:v,O=n?o().createElement(s.Z,{key:"ms-header-close",className:"square-button ms-close",onClick:n,bsStyle:a},o().createElement(c.Glyphicon,{glyph:"1-close"})):null,S=m?o().createElement(s.Z,{key:"ms-header-glyph",className:"square-button",bsStyle:a,onClick:function(){return w(!d)}},o().createElement(c.Glyphicon,{glyph:u[r]&&u[r][d]||"resize-full"})):o().createElement("div",{key:"ms-header-glyph",className:"square-button ".concat("bg-"+a),style:{display:"flex"}},o().createElement(c.Glyphicon,{glyph:b,className:"".concat("default"===a?"text-primary":"")})),E="left"===r?[O,S]:[S,O];return o().createElement(c.Grid,{fluid:!0,style:{width:"100%"},className:"ms-header ms-"+a},o().createElement(c.Row,null,o().createElement(c.Col,{xs:2},E[0]),o().createElement(c.Col,{xs:8},o().createElement("h4",null,p)),o().createElement(c.Col,{xs:2},E[1])),g)},f=(0,l.withState)("fullscreen","onFullscreen",!1)((function(e){var t=e.fluid,r=e.className,n=void 0===r?"":r,l=e.fullscreen,c=void 0!==l&&l,s=e.position,u=e.open,f=e.size,d=void 0===f?550:f,y=e.style,m=void 0===y?{}:y,h=e.zIndex,b=void 0===h?1030:h,g=e.onClose,v=e.bsStyle,w=e.title,O=e.showFullscreen,S=void 0!==O&&O,E=e.glyph,P=e.header,x=e.footer,j=e.children,C=e.onFullscreen,N=void 0===C?function(){}:C,T=e.fixed,k=void 0!==T&&T,I=e.resizable,R=void 0!==I&&I,A=e.hideHeader;return o().createElement("div",{className:"ms-side-panel "+(k?"":"ms-absolute-dock ")+(R?"":"react-dock-no-resize ")+n},o().createElement(i.default,{fluid:t||c,position:s,dimMode:"none",isVisible:u,size:c?1:d,dockStyle:m,zIndex:b},o().createElement(a.Z,{header:!A&&u&&o().createElement(p,{position:s,onClose:g,bsStyle:v,title:w,fullscreen:c,showFullscreen:S,glyph:E,additionalRows:P,onFullscreen:N}),footer:u&&x},u&&j)))}))},32107:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(21413),o=r.n(n),i=r(95437),a=r(65539),l=r(16919),c=r(94745),s=["children","header"];var u=(0,i.renameProps)({open:"show"})((function(e){var t=e.children,r=e.header,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,s);return o().createElement(c.Z,n,o().createElement(a.Z,{header:o().createElement("div",{className:"ms-header"},r)},t))}));const p=(0,i.branch)((function(e){return!e.dock}),(function(){return function(e){return o().createElement(u,e)}}))(l.Z)},45869:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n=r(21413),o=r.n(n),i=r(75263),a=r.n(i);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},l(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function p(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&u(e,t)}(l,e);var t,r,n,i,a=(n=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(n);if(i){var r=f(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return p(this,e)});function l(){return c(this,l),a.apply(this,arguments)}return t=l,(r=[{key:"render",value:function(){var e=this;return o().createElement("label",{className:"mapstore-switch-btn ".concat(this.props.className)},o().createElement("input",{type:"checkbox",disabled:this.props.disabled,checked:this.props.checked,onChange:function(){return e.props.onChange(!e.props.checked)}}),o().createElement("span",{onClick:function(){return e.props.onClick(!e.props.checked)},className:"m-slider"}))}}])&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o().Component);d(y,"propTypes",{disabled:a().bool,className:a().string,checked:a().bool,onChange:a().func,onClick:a().func}),d(y,"defaultProps",{className:"",checked:!1,onChange:function(){},onClick:function(){}});const m=y},12346:(e,t,r)=>{"use strict";r.d(t,{Z:()=>A});var n=r(21413),o=r.n(n),i=r(75263),a=r.n(i),l=r(23885),c=r(45869),s=r(80717),u=r(5346);function p(e){return p="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},p(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function m(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&y(e,t)}(l,e);var t,r,n,i,a=(n=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(n);if(i){var r=h(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return m(this,e)});function l(){return f(this,l),a.apply(this,arguments)}return t=l,(r=[{key:"render",value:function(){var e=this;return o().createElement(s.Z,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},btnGroupProps:{style:{margin:10}},buttons:[{glyph:this.props.checked?"chevron-down":"chevron-left",visible:!0,tooltip:this.props.checked?o().createElement(u.Z,{msgId:"collapse"}):o().createElement(u.Z,{msgId:"expand"}),onClick:function(){return e.props.onClick(!e.props.checked)}}]})}}])&&d(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o().Component);b(g,"propTypes",{checked:a().bool,onClick:a().func}),b(g,"defaultProps",{checked:!1,onClick:function(){}});const v=g;var w=r(38560),O=r(82110);function S(e){return S="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},S(e)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}function j(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return C(e)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var k=function(){return o().createElement(w.Z,{className:"square-button-sm no-border switch-error"},o().createElement(l.Glyphicon,{glyph:"exclamation-mark",className:"text-danger"}))},I=function(){return o().createElement("div",{className:"switch-loading"},o().createElement(O.Z,{size:"small"}))},R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&x(e,t)}(u,e);var t,r,n,i,a=(n=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=N(n);if(i){var r=N(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return j(this,e)});function u(){var e;E(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return T(C(e=a.call.apply(a,[this].concat(r))),"state",{}),e}return t=u,(r=[{key:"renderHeader",value:function(){var e=this,t=this.props.useToolbar?v:c.Z;return o().createElement("div",null,o().createElement("div",{className:"pull-left"},this.props.title||this.props.header),o().createElement("div",{className:"pull-right"},this.props.locked?null:o().createElement(t,{checked:this.props.expanded,onClick:function(t){e.props.onSwitch(t)}}),this.props.error?o().createElement(k,null):null,this.props.loading?o().createElement(I,null):null,this.props.buttons.length>0&&this.props.expanded&&o().createElement(s.Z,{btnDefaultProps:{className:"square-button-sm no-border"},buttons:this.props.buttons})))}},{key:"render",value:function(){return o().createElement(l.Panel,{className:"mapstore-switch-panel",collapsible:!0,expanded:this.props.expanded,defaultExpanded:this.props.defaultExpanded,header:this.renderHeader()},this.props.children)}}])&&P(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o().Component);T(R,"propTypes",{header:a().node,title:a().oneOfType([a().string,a().node]),defaultExpanded:a().string,expanded:a().bool,onSwitch:a().func,locked:a().bool,buttons:a().array,loading:a().bool,error:a().any,errorMsgId:a().string,transitionProps:a().object,useToolbar:a().bool}),T(R,"defaultProps",{title:"",expanded:!1,onSwitch:function(){},locked:!1,buttons:[],useToolbar:!1});const A=R},2576:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n=r(21413),o=r.n(n),i=r(91621),a=r.n(i),l=r(75263),c=r.n(l),s=r(23885),u=r(52595),p=r(50966);function f(e){return f="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},f(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function h(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&m(e,t)}(c,e);var t,r,n,i,l=(n=c,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(n);if(i){var r=b(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return h(this,e)});function c(){return d(this,c),l.apply(this,arguments)}return t=c,(r=[{key:"renderPopover",value:function(){return o().createElement(s.Popover,{id:this.props.id,placement:this.props.placement,positionLeft:this.props.left,positionTop:this.props.top,title:this.props.title},this.props.text)}},{key:"renderContent",value:function(){var e=this;return o().createElement(s.Glyphicon,{ref:function(t){e.target=t},className:"text-".concat(this.props.bsStyle),glyph:this.props.glyph})}},{key:"render",value:function(){var e=this,t=!0===this.props.trigger?["hover","focus"]:this.props.trigger;return o().createElement("span",{className:"mapstore-info-popover"},this.props.trigger?o().createElement(p.Z,{trigger:t,placement:this.props.placement,overlay:this.renderPopover()},this.renderContent()):[this.renderContent(),o().createElement(u.Z,{placement:this.props.placement,show:!0,target:function(){return a().findDOMNode(e.target)}},this.renderPopover())])}}])&&y(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o().Component);g(v,"propTypes",{id:c().string,title:c().string,text:c().string,glyph:c().string,bsStyle:c().string,placement:c().string,left:c().number,top:c().number,trigger:c().oneOfType([c().array,c().bool])}),g(v,"defaultProps",{id:"",title:"",text:"",placement:"right",left:200,top:50,glyph:"question-sign",bsStyle:"info",trigger:["hover","focus"]});const w=v},98678:(e,t,r)=>{"use strict";var n=r(58857);(0,(r(2822),r(95437)).setObservableConfig)(n.Z)},86850:(e,t,r)=>{"use strict";r.d(t,{Mc:()=>L,v$:()=>B,ED:()=>U});var n=r(31940),o=r.n(n),i=r(9626),a=r.n(i),l=r(82920),c=r.n(l),s=r(33716),u=r.n(s),p=r(2822),f=r.n(p),d=r(66023),y=r(60201),m=r(75875),h=r.n(m),b=r(47805),g=r(24262),v=r(10284),w=r(35268),O=["totalFeatures","features"],S=["sortOptions","propertyName"];function E(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x(e){return x="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},x(e)}function j(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var k=r.n(w)()({wfsVersion:"1.1.0"}),I=k.getFeature,R=k.query,A=k.sortBy,_=k.propertyName,M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.totalFeatures,r=e.features,n=j(e,O),o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.startIndex,a=arguments.length>2?arguments[2]:void 0;return a>t&&a===i+r.length&&t===r.length?N(N({},n),{},{features:r,totalFeatures:a}):N(N({},n),{},{features:r,totalFeatures:t})},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.pagination||!c()(t.startIndex)&&!c()(t.maxFeatures)&&{startIndex:t.startIndex,maxFeatures:t.maxFeatures}},D=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,b.getWFSFilterData)(t,r),i=o().parse(e,!0),a=u()(i.query)?i.query:{};a.service="WFS",a.outputFormat="json";var l=o().format({protocol:i.protocol,host:i.host,pathname:i.pathname,query:a});return f().Observable.defer((function(){return h().post(l,n,{timeout:6e4,headers:{Accept:"application/json","Content-Type":"application/json"}})})).let(v.oB).map((function(e){return M(e.data,F(t,r),r.totalFeatures)}))},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.search,r=void 0===t?{}:t,n=e.url,o=e.name,i=arguments.length>1?arguments[1]:void 0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=l.sortOptions,s=l.propertyName,u=j(l,S);return D(r.url||n,i&&"object"===x(i)?N(N({},i),{},{typeName:o||i.typeName}):I(R(o,[].concat(E(c?[A(c.sortBy,c.sortOrder)]:[]),E(s?[_(s)]:[]),E(i?a()(i):[]))),u),u).catch((function(e){if("OGCError"===e.name&&"NoApplicableCode"===e.code&&!c&&s&&s[0])return D(r.url||n,i&&"object"===x(i)?N(N({},i),{},{typeName:o||i.typeName}):I(R(o,[A(s[0])].concat(E(s?[_(s)]:[]),E(i?a()(i):[]))),u),u);throw e}))},B=function(e){var t=e.layer;return f().Observable.defer((function(){return h().get(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,r=e.search,n=void 0===r?{}:r,i=e.url,a=e.describeFeatureTypeURL,l=o().parse(a||n.url||i,!0);return o().format(N(N({},l),{},{search:void 0,query:N(N({},l.query),{},{service:"WFS",version:"1.1.0",typeName:t,outputFormat:"application/json",request:"DescribeFeatureType"})}))}(t))})).let(v.oB)},U=function(e){var t=e.layer;return f().Observable.defer((function(){return h().get(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,r=e.search,n=void 0===r?{}:r,i=e.url,a=(0,g.Fh)({name:t,url:n&&n.url||i}),l=o().parse(a,!0);return o().format(N(N({},l),{},{search:void 0,query:N(N({},l.query),{},{service:"WFS",version:"1.1.1",request:"GetCapabilities"})}))}(t))})).let(v.oB).switchMap((function(e){return f().Observable.bindNodeCallback((function(e,t){return(0,d.parseString)(e,{tagNameProcessors:[y.stripPrefix],explicitArray:!1,mergeAttrs:!0},t)}))(e.data)}))}},7122:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_n});var n=r(75263),o=r.n(n),i=r(74277),a=r(95437),l=r(87511),c=r(82904),s=r(90825),u=r(80416),p=r(96909),f=r(87427),d=r(21413),y=r.n(d),m=r(23885),h=r(32107),b=r(80717),g=r(15135),v=r(94745),w=r(99534),O=r(20721),S=r.n(O),E=r(33716),P=r.n(E),x=r(37153),j=r.n(x),C=r(5346);function N(){return N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},N.apply(this,arguments)}function T(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var I=(0,g.Z)(m.NavItem),R=function(e){var t=e.className,r=void 0===t?"":t,n=e.activeTab,o=void 0===n?"general":n,i=e.currentLocale,a=void 0===i?"en-US":i,l=e.currentLocaleLanguage,c=void 0===l?"en":l,s=e.width,u=void 0===s?500:s,p=e.groups,f=void 0===p?[]:p,d=e.element,g=void 0===d?{}:d,O=e.settings,E=void 0===O?{}:O,x=e.onSave,k=void 0===x?function(){}:x,R=e.onClose,A=void 0===R?function(){}:R,_=e.onHideSettings,M=void 0===_?function(){}:_,F=e.onSetTab,D=void 0===F?function(){}:F,L=e.onUpdateParams,B=void 0===L?function(){}:L,U=e.onRetrieveLayerData,q=void 0===U?function(){}:U,W=e.onShowAlertModal,z=void 0===W?function(){}:W,G=e.realtimeUpdate,Z=void 0===G||G,H=e.alertModal,V=void 0!==H&&H,$=e.dockStyle,K=void 0===$?{}:$,Y=e.dock,X=void 0===Y||Y,Q=e.showFullscreen,J=e.draggable,ee=e.position,te=void 0===ee?"left":ee,re=e.tabs,ne=void 0===re?[]:re,oe=e.tabsConfig,ie=void 0===oe?{}:oe,ae=e.isLocalizedLayerStylesEnabled,le=void 0!==ae&&ae,ce=S()(ne.filter((function(e){return e.id===o&&e.toolbarComponent})).map((function(e){return e.toolbarComponent}))),se=ne&&ne.map((function(e){return e&&e.onClose})).filter((function(e){return e}))||[],ue=[{glyph:"floppy-disk",tooltipId:"save",visible:!!k,onClick:function(){return k(se)}}].concat(T(S()(ne.filter((function(e){return e.id===o&&e.toolbar})).map((function(e){return e.toolbar})))||[]));return y().createElement("div",null,y().createElement(h.Z,{open:E.expanded,glyph:"wrench",title:g.title&&P()(g.title)&&(g.title[a]||g.title.default)||j()(g.title)&&g.title||"",className:r,onClose:function(){A?A(!1,se):(se.forEach((function(e){e()})),M())},size:u,style:K,showFullscreen:Q,dock:X,draggable:J,position:te,header:[y().createElement(m.Row,{key:"ms-toc-settings-toolbar",className:"text-center"},y().createElement(m.Col,{xs:12},ce?y().createElement(ce,{buttons:ue}):y().createElement(b.Z,{btnDefaultProps:{bsStyle:"primary",className:"square-button-md"},buttons:ue})))].concat(T(ne.length>1?[y().createElement(m.Row,{key:"ms-toc-settings-navbar",className:"ms-row-tab"},y().createElement(m.Col,{xs:12},y().createElement(m.Nav,{bsStyle:"tabs",activeKey:o,justified:!0},ne.map((function(e){return y().createElement(I,{key:"ms-tab-settings-"+e.id,tooltip:y().createElement(C.Z,{msgId:e.tooltipId}),eventKey:e.id,onClick:function(){D(e.id),e.onClick&&e.onClick()}},y().createElement(m.Glyphicon,{glyph:e.glyph}))})))))]:[]))},ne.filter((function(e){return e.id&&e.id===o})).filter((function(e){return e.Component})).map((function(t){return y().createElement(t.Component,N({},e,ie[t.id],{key:"ms-tab-settings-body-"+t.id,containerWidth:u,element:g,groups:f,nodeType:E.nodeType,settings:E,retrieveLayerData:q,onChange:function(e,t){return P()(e)?B(e,Z):B(function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},e,t),Z)},isLocalizedLayerStylesEnabled:le,currentLocaleLanguage:c}))}))),y().createElement(w.Z,null,y().createElement(v.Z,{fade:!0,show:V,title:y().createElement(C.Z,{msgId:"layerProperties.changedSettings"}),size:"xs",onClose:function(){return z(!1)},buttons:[{bsStyle:"primary",text:y().createElement(C.Z,{msgId:"close"}),onClick:function(){return A(!0,se)}},{bsStyle:"primary",text:y().createElement(C.Z,{msgId:"save"}),onClick:function(){return k(se)}}]},y().createElement("div",{className:"ms-alert"},y().createElement("div",{className:"ms-alert-center"},y().createElement(C.Z,{msgId:"layerProperties.changedSettingsAlert"}))))))};R.contextTypes={plugins:o().object,pluginsConfig:o().array,loadedPlugins:o().object};const A=R;var _=r(7147),M=r(75110),F=r(8316),D=r(38842),L=r(55105),B=r(74621),U=r(24262),q=r(22843),W=r(95671),z=r.n(W),G=r(33398),Z=r.n(G),H=r(39980),V=r(529),$=r(40562),K=r(21222),Y=r(88798),X=r(63209),Q=r(10907),J=r(37752),ee=r.n(J),te=r(50818);function re(e){return re="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},re(e)}function ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ie(e,t){return ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ie(e,t)}function ae(e,t){if(t&&("object"===re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function le(e){return le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},le(e)}var ce,se,ue,pe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&ie(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=le(n);if(o){var r=le(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return ae(this,e)});function a(){return ne(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){if(this.props.active){var e=this.props.payload;return y().createElement("div",{className:"custom-tooltip"},y().createElement("p",{className:"label"},Math.abs(e[0].value)))}return null}}])&&oe(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(y().Component);ce=pe,se="propTypes",ue={type:o().string,payload:o().array,label:o().string,active:o().bool},se in ce?Object.defineProperty(ce,se,{value:ue,enumerable:!0,configurable:!0,writable:!0}):ce[se]=ue;const fe=pe;function de(e){return de="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},de(e)}function ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function he(e,t){return he=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},he(e,t)}function be(e,t){if(t&&("object"===de(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ge(e)}function ge(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ve(e){return ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ve(e)}function we(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&he(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ve(n);if(o){var r=ve(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return be(this,e)});function a(){var e;ye(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return we(ge(e=i.call.apply(i,[this].concat(r))),"renderLineChart",(function(){return y().createElement(te.wW,{margin:e.props.chartStyle.margin,width:e.props.chartStyle.width,height:e.props.chartStyle.height,data:e.formatData(e.props.elevations.values)},y().createElement(te.Kc,{hide:!0,dataKey:"name"}),y().createElement(te.B2,{hide:!0}),y().createElement(te.u,{content:y().createElement(fe,null)}),y().createElement(te.q3,{strokeDasharray:"3 3",horizontal:!1}),y().createElement(te.x1,{isAnimationActive:e.props.animated,type:"monotone",dataKey:"value",stroke:"#82ca9d",activeDot:{r:8}}))})),we(ge(e),"formatData",(function(t){var r=[];return t.map((function(e){r.push({name:this.props.elevations.name,value:parseFloat(this.props.elevations.positive?e:-e)})}),ge(e)),r})),e}return t=a,(r=[{key:"render",value:function(){return y().createElement("div",null,this.renderLineChart())}}])&&me(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(y().Component);function Se(e){return Se="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},Se(e)}function Ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(r),!0).forEach((function(t){Ie(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ce(e,t){return Ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ce(e,t)}function Ne(e,t){if(t&&("object"===Se(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Te(e)}function Te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ke(e){return ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ke(e)}function Ie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}we(Oe,"propTypes",{elevations:o().object,chartStyle:o().object,animated:o().bool}),we(Oe,"defaultProps",{elevations:{},chartStyle:{margin:{top:5,right:5,left:5,bottom:45},width:600,height:200},animated:!1}),r(42490),r(57845);var Re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&Ce(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ke(n);if(o){var r=ke(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Ne(this,e)});function a(){var e;xe(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ie(Te(e=i.call.apply(i,[this].concat(r))),"renderElevationsChart",(function(t){return e.props.showElevationChart?y().createElement(Oe,{elevations:t,chartStyle:Pe({height:200,width:e.props.containerWidth-30},e.props.chartStyle)}):null})),Ie(Te(e),"renderElevationsSlider",(function(t){var r=t.values,n=r.length-1,o=n-0,i=parseFloat(r[0]),a=parseFloat(r[r.length-1]),l=e.props.element&&e.props.element.params&&e.props.element.params[t.name]||r[0];return y().createElement("div",{id:"mapstore-elevation"},y().createElement(ee(),{snap:!0,start:[parseFloat(l)]||0,range:e.calculateRange(r,0,n,o,i,a),behaviour:"tap",pips:{mode:"range",stepped:!0,density:10,format:{to:function(e){return parseFloat(e).toFixed(1)}}},tooltips:!e.props.showElevationChart,onChange:function(r){e.props.onChange("params",Object.assign({},Ie({},t.name,r[0])))}}))})),Ie(Te(e),"calculateRange",(function(e,t,r,n,o,i){var a=[],l="",c={min:o,max:i};return e.forEach((function(e,r){a[r]=(r-t)/n*100,l=a[r]+"%",c[l]=parseFloat(e)})),c})),e}return t=a,(r=[{key:"shouldComponentUpdate",value:function(e){return this.props.element.id!==e.element.id}},{key:"render",value:function(){var e=this.props.getDimension(this.props.element.dimensions,"elevation");return y().createElement(m.Grid,{fluid:!0,style:{paddingTop:15,paddingBottom:15}},y().createElement("label",{id:"mapstore-elevation-label",key:"elevation-label",className:"control-label",style:this.props.showElevationChart?{marginBottom:"10px"}:{marginBottom:"90px"}},this.props.elevationText,": (",e.units,")"),this.renderElevationsChart(e),y().createElement("div",null,y().createElement("div",{key:"elevation"},this.renderElevationsSlider(e))))}}])&&je(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(y().Component);Ie(Re,"propTypes",{elevationText:o().node,element:o().object,getDimension:o().func,onChange:o().func,chartStyle:o().object,showElevationChart:o().bool,containerWidth:o().number}),Ie(Re,"defaultProps",{onChange:function(){},showElevationChart:!0,containerWidth:500,elevationText:y().createElement(C.Z,{msgId:"elevation"}),getDimension:U.Fr});var Ae=r(53657),_e=r.n(Ae),Me=(r(89531),r(64887)),Fe=r.n(Me);function De(e){return De="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},De(e)}function Le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach((function(t){Xe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ue(){return Ue="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=qe(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},Ue.apply(this,arguments)}function qe(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ve(e)););return e}function We(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&ze(e,t)}function ze(e,t){return ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ze(e,t)}function Ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ve(e);if(t){var o=Ve(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ze(this,r)}}function Ze(e,t){if(t&&("object"===De(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return He(e)}function He(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ve(e){return Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ve(e)}function $e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ke(e,t,r){return t&&$e(e.prototype,t),r&&$e(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qe='<span class="glyphicon glyphicon-align-left" style="display: inline-block; margin-top: 4px;"></span>',Je='<span class="glyphicon glyphicon-align-center" style="display: inline-block; margin-top: 4px;"></span>',et='<span class="glyphicon glyphicon-align-right" style="display: inline-block; margin-top: 4px;"></span>',tt='<span class="glyphicon glyphicon-remove" style="display: inline-block; margin-top: 4px;"></span>';function rt(e){return rt="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},rt(e)}function nt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ot(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(r),!0).forEach((function(t){pt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function it(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function at(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lt(e,t){return lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lt(e,t)}function ct(e,t){if(t&&("object"===rt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return st(e)}function st(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ut(e){return ut=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ut(e)}function pt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ft=_e().Quill,dt=function(e){var t=e.import("blots/embed"),r=e.import("formats/link"),n=e.imports.parchment,o=new n.Attributor.Style("float","float"),i=new n.Attributor.Style("margin","margin"),a=new n.Attributor.Style("display","display"),l=new n.Attributor.Style("width","width"),c={iframeIcon:!0,modules:["DisplaySize","Toolbar","Resize"],overlayStyles:{position:"absolute",boxSizing:"border-box",border:"1px dashed #444"},handleStyles:{position:"absolute",height:"12px",width:"12px",backgroundColor:"white",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80"},displayStyles:{position:"absolute",font:"12px/1.0 Arial, Helvetica, sans-serif",padding:"4px 8px",textAlign:"center",backgroundColor:"white",color:"#333",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80",cursor:"default"},toolbarStyles:{position:"absolute",top:"-12px",right:"0",left:"0",height:"0",minWidth:"100px",font:"12px/1.0 Arial, Helvetica, sans-serif",textAlign:"center",color:"#333",boxSizing:"border-box",cursor:"default"},toolbarButtonStyles:{display:"inline-block",width:"24px",height:"24px",background:"white",border:"1px solid #999",verticalAlign:"middle"},toolbarButtonSvgStyles:{fill:"#444",stroke:"#444",strokeWidth:"2"}},s=Ke((function e(t){Ye(this,e),Xe(this,"onCreate",(function(){})),Xe(this,"onDestroy",(function(){})),Xe(this,"onUpdate",(function(){})),this.overlay=t.overlay,this.domNode=t.domNode,this.options=t.options,this.requestUpdate=t.onUpdate})),u=function(e){We(r,e);var t=Ge(r);function r(){var e;Ye(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return Xe(He(e=t.call.apply(t,[this].concat(o))),"onCreate",(function(){e.display=document.createElement("div"),Object.assign(e.display.style,e.options.displayStyles),e.overlay.appendChild(e.display)})),Xe(He(e),"onDestroy",(function(){})),Xe(He(e),"onUpdate",(function(){if(e.display&&e.domNode){var t=e.getCurrentSize();if(e.display.innerHTML=t.join(" &times; "),t[0]>120&&t[1]>30)Object.assign(e.display.style,{right:"4px",bottom:"4px",left:"auto"});else if("right"===e.domNode.style.float){var r=e.display.getBoundingClientRect();Object.assign(e.display.style,{right:"auto",bottom:"-".concat(r.height+4,"px"),left:"-".concat(r.width+4,"px")})}else{var n=e.display.getBoundingClientRect();Object.assign(e.display.style,{right:"-".concat(n.width+4,"px"),bottom:"-".concat(n.height+4,"px"),left:"auto"})}}})),Xe(He(e),"getCurrentSize",(function(){return"IMG"===e.domNode.tagName.toUpperCase()?[e.domNode.width,Math.round(e.domNode.width/e.domNode.naturalWidth*e.domNode.naturalHeight)]:[e.domNode.clientWidth,e.domNode.clientHeight]})),e}return Ke(r)}(s),p=function(e){We(r,e);var t=Ge(r);function r(){var e;Ye(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return Xe(He(e=t.call.apply(t,[this].concat(o))),"onCreate",(function(){e.boxes=[],e.addBox("nwse-resize"),e.addBox("nesw-resize"),e.addBox("nwse-resize"),e.addBox("nesw-resize"),e.positionBoxes()})),Xe(He(e),"onDestroy",(function(){e.setCursor("")})),Xe(He(e),"positionBoxes",(function(){var t="".concat(-parseFloat(e.options.handleStyles.width)/2,"px"),r="".concat(-parseFloat(e.options.handleStyles.height)/2,"px");[{left:t,top:r},{right:t,top:r},{right:t,bottom:r},{left:t,bottom:r}].forEach((function(t,r){Object.assign(e.boxes[r].style,t)}))})),Xe(He(e),"addBox",(function(t){var r=document.createElement("div");Object.assign(r.style,e.options.handleStyles),r.style.cursor=t,r.style.width="".concat(e.options.handleStyles.width,"px"),r.style.height="".concat(e.options.handleStyles.height,"px"),r.addEventListener("mousedown",e.handleMousedown,!1),e.overlay.appendChild(r),e.boxes.push(r)})),Xe(He(e),"handleMousedown",(function(t){e.dragBox=t.target,e.dragStartX=t.clientX,e.dragStartY=t.clientY,e.preDragWidth=e.domNode.width||e.domNode.naturalWidth||e.domNode.clientWidth,e.preDragHeight=e.domNode.height||e.domNode.naturalHeight||e.domNode.clientHeight,e.setCursor(e.dragBox.style.cursor),document.addEventListener("mousemove",e.handleDrag,!1),document.addEventListener("mouseup",e.handleMouseup,!1)})),Xe(He(e),"handleMouseup",(function(){e.setCursor(""),document.removeEventListener("mousemove",e.handleDrag),document.removeEventListener("mouseup",e.handleMouseup)})),Xe(He(e),"handleDrag",(function(t){if(e.domNode){var r=t.clientX-e.dragStartX,n=t.clientY-e.dragStartY;if(e.dragBox===e.boxes[0]||e.dragBox===e.boxes[3]){if("IMG"===e.domNode.tagName.toUpperCase())e.domNode.width=Math.round(e.preDragWidth-r);else if("ms-quill-iframe"===e.domNode.getAttribute("class")){var o=e.domNode.parentNode&&e.domNode.parentNode.children&&e.domNode.parentNode.children[0]||null;o&&(e.domNode.parentNode.parentNode.style.width=Math.round(e.preDragWidth-r)+"px",o.setAttribute("width",e.domNode.parentNode.parentNode.clientWidth),e.domNode.style.width=e.domNode.parentNode.parentNode.clientWidth+"px")}}else if("IMG"===e.domNode.tagName.toUpperCase())e.domNode.width=Math.round(e.preDragWidth+r);else if("ms-quill-iframe"===e.domNode.getAttribute("class")){var i=e.domNode.parentNode&&e.domNode.parentNode.children&&e.domNode.parentNode.children[0]||null;i&&(e.domNode.parentNode.parentNode.style.width=Math.round(e.preDragWidth+r)+"px",i.setAttribute("width",e.domNode.parentNode.parentNode.clientWidth),e.domNode.style.width=e.domNode.parentNode.parentNode.clientWidth+"px")}if("ms-quill-iframe"===e.domNode.getAttribute("class")){var a=e.domNode.parentNode&&e.domNode.parentNode.children&&e.domNode.parentNode.children[0]||null;a&&(e.domNode.parentNode.parentNode.style.height=Math.round(e.preDragHeight+n)+"px",a.setAttribute("height",e.domNode.parentNode.parentNode.clientHeight),e.domNode.style.height=e.domNode.parentNode.parentNode.clientHeight+"px")}e.requestUpdate()}})),Xe(He(e),"setCursor",(function(t){[document.body,"IMG"===e.domNode.tagName.toUpperCase()?e.domNode:e.domNode.parentNode.parentNode].forEach((function(e){e.style.cursor=t}))})),e}return Ke(r)}(s),f=function(e){We(r,e);var t=Ge(r);function r(){var e;Ye(this,r);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return Xe(He(e=t.call.apply(t,[this].concat(c))),"onCreate",(function(){e.toolbar=document.createElement("div"),Object.assign(e.toolbar.style,e.options.toolbarStyles),e.overlay.appendChild(e.toolbar),e._defineAlignments(),e._addToolbarButtons()})),Xe(He(e),"onDestroy",(function(){})),Xe(He(e),"onUpdate",(function(){})),Xe(He(e),"_defineAlignments",(function(){var t="IMG"===e.domNode.tagName.toUpperCase()?e.domNode:e.domNode.parentNode.parentNode;e.alignments=[{icon:Qe,apply:function(){a.add(t,"inline"),o.add(t,"left"),i.add(t,"0 1em 1em 0")},isApplied:function(){return"left"===o.value(t)}},{icon:Je,apply:function(){a.add(t,"block"),o.remove(t),i.add(t,"auto")},isApplied:function(){return"auto"===i.value(t)}},{icon:et,apply:function(){a.add(t,"inline"),o.add(t,"right"),i.add(t,"0 0 1em 1em")},isApplied:function(){return"right"===o.value(t)}},{icon:tt,apply:function(){if(a.add(t,"block"),o.add(t,"none"),i.add(t,"0"),l.add(t,"100%"),"ql-video"===t.getAttribute("class")){var e=t.querySelector("IFRAME")||null,r=t.querySelector(".ms-quill-iframe")||null;e&&r&&(t.style.width="100%",e.setAttribute("width","100%"),r.style.width="100%",t.style.height="200px",e.setAttribute("height",200),r.style.height="200px")}},isApplied:function(){return!1}}]})),Xe(He(e),"_addToolbarButtons",(function(){var t=[];e.alignments.forEach((function(r,n){var l=document.createElement("span");t.push(l),l.innerHTML=r.icon,l.addEventListener("click",(function(){t.forEach((function(e){e.style.filter=""})),r.isApplied()?(o.remove(e.domNode),i.remove(e.domNode),a.remove(e.domNode)):(e._selectButton(l),r.apply()),e.requestUpdate()})),Object.assign(l.style,e.options.toolbarButtonStyles),n>0&&(l.style.borderLeftWidth="0"),Object.assign(l.style,e.options.toolbarButtonSvgStyles),r.isApplied()&&e._selectButton(l),e.toolbar.appendChild(l)}))})),Xe(He(e),"_selectButton",(function(e){e.style.filter="invert(20%)"})),e}return Ke(r)}(s),d={DisplaySize:u,Toolbar:f,Resize:p},y=Ke((function t(r){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ye(this,t),Xe(this,"initializeModules",(function(){n.removeModules(),n.modules=n.moduleClasses.map((function(e){return new(d[e]||e)(n)})),n.modules.forEach((function(e){e.onCreate()})),n.onUpdate()})),Xe(this,"onUpdate",(function(){n.repositionElements(),n.modules.forEach((function(e){e.onUpdate()}))})),Xe(this,"removeModules",(function(){n.modules.forEach((function(e){e.onDestroy()})),n.modules=[]})),Xe(this,"handleClick",(function(e){if(e.target&&e.target.tagName&&"IMG"===e.target.tagName.toUpperCase()||e.target&&e.target.tagName&&"DIV"===e.target.tagName.toUpperCase()&&"ms-quill-iframe"===e.target.getAttribute("class")){if(n.domNode===e.target)return;n.domNode&&n.hide(),n.show(e.target)}else n.domNode&&n.hide()})),Xe(this,"show",(function(e){n.domNode=e,n.showOverlay(),n.initializeModules()})),Xe(this,"showOverlay",(function(){n.overlay&&n.hideOverlay(),n.quill.setSelection(null),n.setUserSelect("none"),document.addEventListener("keyup",n.checkImage,!0),n.quill.root.addEventListener("input",n.checkImage,!0);var e=n.quill.root.parentNode.querySelector(".ql-editor");if(e&&(e.style.overflow="hidden"),n.overlay=document.createElement("div"),Object.assign(n.overlay.style,n.options.overlayStyles),n.domNode&&"ms-quill-iframe"===n.domNode.getAttribute("class")){n.input=document.createElement("input"),n.input.style.position="absolute",n.input.style.left="8px",n.input.style.top="16px",n.input.style.width="calc(100% - 16px)";var t=n.domNode.parentNode&&n.domNode.parentNode.children&&n.domNode.parentNode.children[0]&&n.domNode.parentNode.children[0].getAttribute("src")||"";n.input.setAttribute("value",t),n.overlay.appendChild(n.input),n.overlay.style.backgroundColor="rgba(0, 0, 0, 0.2)"}n.quill.root.parentNode.appendChild(n.overlay),n.repositionElements()})),Xe(this,"hideOverlay",(function(){if(n.overlay){n.input&&(n.domNode.parentNode&&n.domNode.parentNode.children&&n.domNode.parentNode.children[0]&&n.domNode.parentNode.children[0]&&n.domNode.parentNode.children[0].setAttribute("src",n.input.value),n.overlay.removeChild(n.input),n.input=void 0);var e=n.quill.root.parentNode.querySelector(".ql-editor");e&&(e.style.overflow="auto"),n.quill.root.parentNode.removeChild(n.overlay),n.overlay=void 0,document.removeEventListener("keyup",n.checkImage),n.quill.root.removeEventListener("input",n.checkImage),n.setUserSelect("")}})),Xe(this,"repositionElements",(function(){if(n.overlay&&n.domNode){var e=n.quill.root.parentNode,t="IMG"===n.domNode.tagName.toUpperCase()?n.domNode.getBoundingClientRect():n.domNode.parentNode.parentNode.getBoundingClientRect(),r=e.getBoundingClientRect();Object.assign(n.overlay.style,{left:"".concat(t.left-r.left-1+e.scrollLeft,"px"),top:"".concat(t.top-r.top+e.scrollTop,"px"),width:"".concat(t.width,"px"),height:"".concat(t.height,"px")})}})),Xe(this,"hide",(function(){n.hideOverlay(),n.removeModules(),n.domNode=void 0})),Xe(this,"setUserSelect",(function(e){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach((function(t){n.quill.root.style[t]=e,document.documentElement.style[t]=e}))})),Xe(this,"checkImage",(function(t){n.domNode&&n.input!==t.target&&(46!==t.keyCode&&8!==t.keyCode||"IMG"!==n.domNode.tagName.toUpperCase()||e.find(n.domNode).deleteAt(0),n.hide())})),this.quill=r;var i=!1;if(o.modules&&(i=o.modules.slice()),this.options=Fe()({},o,c),!1!==i&&(this.options.modules=i),this.quill.theme&&this.quill.theme.modules&&this.quill.theme.modules.toolbar&&this.quill.theme.modules.toolbar.container&&this.options.iframeIcon){var a=this.quill.theme.modules.toolbar.container.querySelector(".ql-video");a&&(a.innerHTML='<svg viewbox="0 1022 18 18"><g transform="translate(0,0) scale(3.5)"><path d="m 0.20913578,292.52935 -0.0448461,0.0228 c -0.0522035,0.0266 -0.10514577,0.0764 -0.12730166,0.11985 -0.03898753,0.0764 -0.03689917898,-0.0334 -0.036985428654,1.94049 -5.91591201e-5,1.35972 0.00218847865,1.849 0.00864824865,1.87539 0.02503373,0.10227 0.09520806,0.17792 0.19668092,0.21203 0.0202072,0.007 0.54764317,0.009 2.18732434,0.008 l 2.1606966,-0.001 0.044846,-0.0228 c 0.079823,-0.0406 0.1345603,-0.10935 0.1556385,-0.19546 0.00646,-0.0264 0.00872,-0.51567 0.00866,-1.87539 -7.44e-5,-1.97386 0.002,-1.86407 -0.036985,-1.94049 -0.022155,-0.0434 -0.075113,-0.0933 -0.1273161,-0.11985 l -0.044846,-0.0228 H 2.381244 Z m 0.0798849,0.757 H 2.381244 4.4734673 v 1.57107 1.57107 H 2.381244 0.28902068 v -1.57107 z m 2.34957572,0.33607 c -0.028878,0 -0.055626,0.007 -0.080256,0.0204 -0.024631,0.0136 -0.045009,0.0323 -0.061147,0.056 -0.016138,0.0238 -0.025064,0.0501 -0.026762,0.079 -0.032275,0.14948 -0.1758133,0.82556 -0.4306147,2.02822 -0.00679,0.017 -0.010194,0.0348 -0.010194,0.0535 0,0.0306 0.00764,0.0586 0.022928,0.0841 0.015288,0.0255 0.035682,0.0459 0.061162,0.0612 0.025481,0.0153 0.053499,0.0229 0.084076,0.0229 0.022083,0 0.043319,-0.004 0.063703,-0.0127 0.020385,-0.008 0.038221,-0.0204 0.053509,-0.0357 0.015288,-0.0153 0.027184,-0.0331 0.035678,-0.0535 0.00849,-0.0204 0.013592,-0.0416 0.01529,-0.0637 l 0.4255178,-2.00274 c 0.00849,-0.0221 0.013592,-0.045 0.015291,-0.0688 0,-0.0459 -0.016566,-0.0854 -0.04969,-0.11847 -0.033125,-0.0331 -0.072626,-0.0497 -0.1184901,-0.0497 z m -0.1025608,0.30066 c 0.00234,0.002 0.00489,0.003 0.00701,0.005 0.00425,0.003 0.00892,0.006 0.014013,0.008 -0.0051,-0.002 -0.010194,-0.004 -0.01529,-0.008 -0.0017,-0.002 -0.00361,-0.003 -0.00574,-0.005 z m -0.7892346,0.20894 c -0.022083,0 -0.048417,0.008 -0.078993,0.0255 l -0.050968,0.0382 c -0.3295431,0.2599 -0.5461142,0.43063 -0.64973332,0.51217 -0.0441656,0.0187 -0.0764407,0.0514 -0.0968248,0.0981 -0.0203841,0.0467 -0.0246402,0.0947 -0.0127495,0.14398 0.0118908,0.0493 0.038225,0.0858 0.0789933,0.10956 0.057755,0.0408 0.13887122,0.10235 0.24333972,0.18473 0.1044687,0.0824 0.1643489,0.13037 0.179637,0.14396 0.022083,0.017 0.053501,0.0412 0.094269,0.0726 0.040768,0.0314 0.077299,0.0603 0.1095742,0.0866 0.032275,0.0263 0.06285,0.0514 0.091728,0.0752 0.047563,0.034 0.1006454,0.0412 0.1592497,0.0217 0.058604,-0.0195 0.097249,-0.0565 0.1159341,-0.11084 0.016987,-0.0442 0.015701,-0.0896 -0.00383,-0.13632 -0.018887,-0.0452 -0.049313,-0.0772 -0.091223,-0.0962 l -0.03489,-0.0274 c -0.018685,-0.0136 -0.029739,-0.0221 -0.033137,-0.0255 -0.056056,-0.0408 -0.1375864,-0.10108 -0.2446029,-0.18091 -0.1070166,-0.0798 -0.1843053,-0.13759 -0.2318683,-0.17327 0.030576,-0.0221 0.1108352,-0.082 0.240784,-0.17963 0.1299487,-0.0977 0.2297443,-0.17284 0.29939,-0.2255 0.057755,-0.0238 0.093001,-0.0697 0.1057405,-0.1376 0.01274,-0.0679 -0.00467,-0.12314 -0.052231,-0.16561 -0.035672,-0.0357 -0.078129,-0.0527 -0.1273908,-0.051 -0.0034,-0.002 -0.0068,-0.003 -0.010194,-0.003 z m 1.2689006,0 c -0.0034,0 -0.0068,8.5e-4 -0.010194,0.003 -0.049262,-0.002 -0.091718,0.0153 -0.1273909,0.051 -0.047563,0.0425 -0.064971,0.0977 -0.052231,0.16561 0.01274,0.0679 0.047986,0.11382 0.1057406,0.1376 0.069646,0.0527 0.1694416,0.12782 0.29939,0.2255 0.1299488,0.0977 0.210208,0.15755 0.2407841,0.17963 -0.047563,0.0357 -0.1248516,0.0934 -0.2318683,0.17327 -0.1070167,0.0798 -0.1885466,0.14014 -0.2446028,0.18091 l -0.033137,0.0255 c -0.015288,0.0102 -0.024628,0.017 -0.028025,0.0204 -0.00522,0.004 -0.00795,0.007 -0.00826,0.008 -0.041191,0.019 -0.071164,0.0509 -0.089841,0.0955 -0.019535,0.0467 -0.020806,0.0922 -0.00382,0.13632 0.018685,0.0544 0.05733,0.0913 0.1159342,0.11084 0.058604,0.0195 0.1116868,0.0123 0.1592499,-0.0217 0.028877,-0.0238 0.059453,-0.0488 0.091728,-0.0752 0.032275,-0.0263 0.068806,-0.0552 0.1095742,-0.0866 0.040768,-0.0314 0.072186,-0.0556 0.094269,-0.0726 0.032275,-0.0272 0.076018,-0.0629 0.1312245,-0.10702 0.055207,-0.0442 0.10659,-0.0845 0.1541529,-0.12103 0.047563,-0.0365 0.093434,-0.0701 0.1375999,-0.10064 0.040768,-0.0238 0.067102,-0.0603 0.078993,-0.10956 0.011891,-0.0493 0.00763,-0.0973 -0.012749,-0.14398 -0.020384,-0.0467 -0.052659,-0.0794 -0.096824,-0.0981 -0.07814,-0.0612 -0.2947259,-0.23189 -0.6497489,-0.51217 -0.045864,-0.0408 -0.089179,-0.062 -0.1299468,-0.0637 z m -1.4396219,0.15034 c -0.0017,0.008 -0.00256,0.0178 -0.00256,0.028 v -0.0102 -0.0102 z m 1.6103431,0 0.00254,0.008 v 0.0102 0.0102 c 0,-0.0102 -8.416e-4,-0.0195 -0.00254,-0.028 z m -1.6128989,0.051 0.00256,0.0178 0.00254,0.0179 0.00765,0.0178 0.00764,0.0153 h -0.00254 c -0.0017,-0.003 -0.0034,-0.008 -0.0051,-0.0153 l -0.00256,-0.003 -0.0051,-0.0153 c -0.0017,-0.008 -0.00254,-0.0145 -0.00254,-0.0179 -0.0017,-0.007 -0.00256,-0.0127 -0.00256,-0.0178 z m 1.6154252,2.3e-4 c -2.25e-5,0.005 -8.494e-4,0.0109 -0.00252,0.0176 0,0.003 -8.416e-4,0.009 -0.00254,0.0179 l -0.0051,0.0153 -0.00256,0.003 c -0.0017,0.007 -0.0034,0.0119 -0.0051,0.0153 h -0.00254 l 0.00764,-0.0153 0.00765,-0.0178 0.00254,-0.0179 z m -1.50331,0.1552 c 0.00849,0.003 0.01869,0.007 0.030581,0.0102 -0.00679,-0.002 -0.011036,-0.003 -0.012735,-0.003 -0.0051,-0.002 -0.011052,-0.004 -0.017846,-0.008 z m 1.3912246,0 c -0.00679,0.003 -0.01275,0.006 -0.017846,0.008 -0.0017,0 -0.00594,8.6e-4 -0.012735,0.003 0.011891,-0.003 0.022087,-0.007 0.030581,-0.0102 z m -0.7975265,1.2256 c 0.0051,0.002 0.00934,0.004 0.012734,0.008 -0.0051,-0.003 -0.00934,-0.006 -0.012734,-0.008 z"/></g></svg>')}this.quill.theme&&this.quill.theme.tooltip&&this.quill.theme.tooltip.root&&this.quill.theme.tooltip.root.classList&&this.quill.theme.tooltip.root.classList.add&&this.options.iframeIcon&&this.quill.theme.tooltip.root.classList.add("ms-ql-iframe-tooltip"),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]})),m=["height","width"],h=function(e){We(n,e);var t=Ge(n);function n(){return Ye(this,n),t.apply(this,arguments)}return Ke(n,[{key:"format",value:function(e,t){m.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):Ue(Ve(n.prototype),"format",this).call(this,e,t)}}],[{key:"create",value:function(e){var t="",r="100%",o=200;P()(e)?(t=e.src||t,r=e.width||r,o=e.height||o):t=e||t;var i=Ue(Ve(n),"create",this).call(this,e);i.style.position="relative",e.domNodeStyle&&Object.assign(i.style,e.domNodeStyle),i.style.width=j()(r)&&-1!==r.indexOf("%")?r:r+"px",i.style.height=j()(o)&&-1!==o.indexOf("%")?o:o+"px";var a=document.createElement("IFRAME");a.setAttribute("frameborder","0"),a.setAttribute("allowfullscreen",!0),a.setAttribute("src",this.sanitize(t)),a.setAttribute("width",r),a.setAttribute("height",o);var l=document.createElement("DIV");return l.setAttribute("class","ms-quill-iframe"),l.style.overflow="hidden",l.style.position="absolute",l.style.left="0",l.style.top="0",l.style.width=j()(r)&&-1!==r.indexOf("%")?r:r+"px",l.style.height=j()(o)&&-1!==o.indexOf("%")?o:o+"px",l.style.border="1px solid #ddd",i.appendChild(a),i.appendChild(l),i}},{key:"formats",value:function(e){return m.reduce((function(t,r){return e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t}),{})}},{key:"sanitize",value:function(e){return r.sanitize(e)}},{key:"value",value:function(e){var t=e.children&&e.children[0]&&e.children[0].children&&e.children[0].children[0];return t?{src:t.getAttribute("src"),width:t.getAttribute("width"),height:t.getAttribute("height"),domNodeStyle:Be({},e.style)}:""}}]),n}(t);return h.blotName="video",h.className="ql-video",h.tagName="DIV",{ResizeModule:y,IFrame:h,toolbarConfig:{container:[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"],["video"]]},BaseModule:s,Toolbar:f,DisplaySize:u,Resize:p}}(ft),yt=dt.ResizeModule,mt=dt.IFrame,ht=dt.toolbarConfig;ft.register({"formats/video":mt,"modules/resizeModule":yt});var bt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&lt(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ut(n);if(o){var r=ut(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return ct(this,e)});function a(){var e;it(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return pt(st(e=i.call.apply(i,[this].concat(r))),"state",{template:" "}),pt(st(e),"close",(function(){e.props.onShowEditor(!e.props.showEditor),e.props.onChange("featureInfo",ot(ot({},e.props.element&&e.props.element.featureInfo||{}),{},{template:e.state.template}))})),e}return t=a,(r=[{key:"UNSAFE_componentWillMount",value:function(){this.setState({template:this.props.element&&this.props.element.featureInfo&&this.props.element.featureInfo.template||" "})}},{key:"render",value:function(){var e=this,t=this.props,r=t.showEditor,n=t.enableIFrameModule,o=void 0===n||n;return y().createElement(w.Z,null,y().createElement(v.Z,{fade:!0,show:r,title:y().createElement(C.Z,{msgId:"layerProperties.editCustomFormat"}),size:"lg",showFullscreen:!0,clickOutEnabled:!1,onClose:function(){return e.close()},buttons:[{bsStyle:"primary",text:y().createElement(C.Z,{msgId:"close"}),onClick:function(){return e.close()}}]},y().createElement("div",{id:"ms-template-editor",className:"ms-editor"},y().createElement(_e(),{bounds:"#ms-template-editor",ref:function(t){t&&(e.quill=t)},modules:o?{resizeModule:{},toolbar:ht}:{},defaultValue:this.state.template,onChange:function(t){return e.setState({template:t})}}))))}}])&&at(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(y().Component);pt(bt,"propTypes",{showEditor:o().bool,element:o().object,onChange:o().func,onShowEditor:o().func,enableIFrameModule:o().bool}),pt(bt,"defaultProps",{showEditor:!1,element:{},enableIFrameModule:!1,onChange:function(){},onShowEditor:function(){}});const gt=bt;var vt=r(82110),wt=r(12485),Ot=r.n(wt),St=r(20135),Et=r.n(St),Pt=r(69494),xt=r.n(Pt),jt=r(73014),Ct=r(82030),Nt=r(25382),Tt=(r(98678),r(43143)),kt=r(57037),It=r(3918),Rt=r.n(It),At=r(66287);function _t(e){return _t="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},_t(e)}function Mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ft(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Dt(e,t){return Dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dt(e,t)}function Lt(e,t){if(t&&("object"===_t(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Bt(e)}function Bt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ut(e){return Ut=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ut(e)}function qt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Wt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&Dt(e,t)}(l,e);var t,n,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ut(o);if(i){var r=Ut(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Lt(this,e)});function l(){var e;Mt(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return qt(Bt(e=a.call.apply(a,[this].concat(n))),"paint",(function(t){t.save(),t.beginPath();var r=e.props.shapeStyle,n=r.color,o=r.fill;switch(t.fillStyle=o?j()(o)?o:"rgba(".concat(o.r,", ").concat(o.g,", ").concat(o.b,", ").concat(o.a,")"):null,t.strokeStyle=n?j()(n)?n:"rgba(".concat(n.r,", ").concat(n.g,", ").concat(n.b,", ").concat(n.a,")"):null,t.lineWidth=e.props.shapeStyle.width||e.props.shapeStyle.weight,e.props.shapeStyle.dashArray&&e.props.shapeStyle.dashArray.length&&t.setLineDash(e.props.shapeStyle.dashArray),e.props.geomType){case"Polygon":e.paintPolygon(t);break;case"Polyline":e.paintPolyline(t);break;case"Point":e.paintPoint(t,e.props.shapeStyle.markName);break;case"Circle":e.paintPoint(t,"circle");break;case"Marker":e.paintMarker(t);break;case"Text":e.paintText(t);break;case"Symbol":e.paintSymbol(t);break;default:return}t.restore()})),qt(Bt(e),"drawSymbol",(function(t,n){n.clearRect(0,0,600,600);var o=new Image,i=new Image;i.src=r(18845),o.src=t||e.props.shapeStyle.symbolUrl,o.onload=function(){try{n.drawImage(o,e.props.width/2-o.width/2,e.props.height/2-o.height/2)}catch(e){return}},o.onerror=function(){i.onload=function(){try{n.drawImage(i,e.props.width/2-i.width/2,e.props.height/2-i.height/2)}catch(e){return}}}})),qt(Bt(e),"paintSymbol",(function(t){(0,At.isSymbolStyle)(e.props.originalStyle)?e.props.originalStyle.symbolUrlCustomized&&e.props.originalStyle.symbolUrl?e.drawSymbol(e.props.originalStyle.symbolUrlCustomized,t):(0,At.createSvgUrl)(e.props.originalStyle,e.props.originalStyle.symbolUrlCustomized||e.props.originalStyle.symbolUrl).then((function(r){return e.drawSymbol(r,t)})):e.drawSymbol(null,t)})),qt(Bt(e),"paintText",(function(t){var r=e.props,n=r.width,o=r.height,i=e.props.shapeStyle,a=i.textAlign,l=void 0===a?"center":a,c=i.label,s=i.font,u=void 0===s?"14px Arial":s;return t.textAlign=l,t.font=u,"start"===l?(t.strokeText(c||"New",n/2.5,o/2),void t.fillText(c||"New",n/2.5,o/2)):"end"===l?(t.strokeText(c||"New",n/1.5,o/2),void t.fillText(c||"New",n/1.5,o/2)):(t.strokeText(c||"New",n/2,o/2),void t.fillText(c||"New",n/2,o/2))})),qt(Bt(e),"paintPolygon",(function(e){e.transform(1,0,0,1,-27.5,0),e.moveTo(55,8),e.lineTo(100,8),e.lineTo(117.5,40),e.lineTo(100,72),e.lineTo(55,72),e.lineTo(37.5,40),e.closePath(),e.fill(),e.stroke()})),qt(Bt(e),"paintPolyline",(function(e){e.transform(1,0,0,1,0,0),e.moveTo(10,20),e.bezierCurveTo(40,40,70,0,90,20),e.stroke()})),qt(Bt(e),"paintPoint",(function(t,r){var n=e.props.shapeStyle.radius,o=n/2;switch(r){case"square":t.rect(50-o,48.5-o,n,n);break;case"circle":t.arc(50,48.5,o,0,2*Math.PI);break;case"triangle":var i=Math.sqrt(3)*n/2/3;t.moveTo(50,48.5-2*i),t.lineTo(50+o,48.5+i),t.lineTo(50-o,48.5+i),t.closePath();break;case"star":e.paintStar(t,50,48.5,5,o,o/2);break;case"cross":e.paintCross(t,50,48.5,n,.23);break;case"x":t.translate(50,48.5),t.rotate(45*Math.PI/180),t.translate(-50,-48.5),e.paintCross(t,50,48.5,n,.23);break;default:t.arc(50,48.5,n,0,2*Math.PI)}t.fill(),t.stroke()})),qt(Bt(e),"paintMarker",(function(e){var t=new Image;t.src=Rt();try{e.drawImage(t,42.5,24)}catch(e){return}})),qt(Bt(e),"paintStar",(function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=Math.PI/2*3,l=t,c=r,s=Math.PI/n;e.moveTo(t,r-o);for(var u=0;u<n;u++)l=t+Math.cos(a)*o,c=r+Math.sin(a)*o,e.lineTo(l,c),a+=s,l=t+Math.cos(a)*i,c=r+Math.sin(a)*i,e.lineTo(l,c),a+=s;e.lineTo(t,r-o),e.closePath()})),qt(Bt(e),"paintCross",(function(e,t,r,n,o){var i=n*o/2,a=n/2;e.moveTo(t-i,r-a),e.lineTo(t+i,r-a),e.lineTo(t+i,r-i),e.lineTo(t+a,r-i),e.lineTo(t+a,r+i),e.lineTo(t+i,r+i),e.lineTo(t+i,r+a),e.lineTo(t-i,r+a),e.lineTo(t-i,r+i),e.lineTo(t-a,r+i),e.lineTo(t-a,r-i),e.lineTo(t-i,r-i),e.closePath()})),e}return t=l,(n=[{key:"componentDidMount",value:function(){var e=this.refs.styleCanvas.getContext("2d");e.clearRect(0,0,this.props.width||500,this.props.height||500),this.paint(e)}},{key:"componentDidUpdate",value:function(){var e=this.refs.styleCanvas.getContext("2d");e.clearRect(0,0,this.props.width||500,this.props.height||500),this.paint(e)}},{key:"render",value:function(){return y().createElement("canvas",{ref:"styleCanvas",style:this.props.style,width:this.props.width,height:this.props.height})}}])&&Ft(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(y().Component);qt(Wt,"propTypes",{originalStyle:o().object,style:o().object,shapeStyle:o().object,geomType:o().oneOf(["Polygon","Polyline","Point","Marker","Text","Symbol","Circle",void 0]),width:o().number,height:o().number}),qt(Wt,"defaultProps",{originalStyle:{},style:{},shapeStyle:{},geomType:"Polygon",width:100,height:80});const zt=Wt;var Gt=r(29202),Zt=r(86638);function Ht(e){return Ht="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},Ht(e)}function Vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Kt(e,t){return Kt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Kt(e,t)}function Yt(e,t){if(t&&("object"===Ht(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xt(e){return Xt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xt(e)}function Qt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&Kt(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Xt(n);if(o){var r=Xt(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Yt(this,e)});function a(){return Vt(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this;return y().createElement(Gt.DropdownList,{data:[{value:"circle",name:(0,Zt.S$)(this.context.messages,"markNameSelector.circle")||"Circle"},{value:"square",name:(0,Zt.S$)(this.context.messages,"markNameSelector.square")||"Square"},{value:"triangle",name:(0,Zt.S$)(this.context.messages,"markNameSelector.triangle")||"Triangle"},{value:"star",name:(0,Zt.S$)(this.context.messages,"markNameSelector.star")||"Star"},{value:"cross",name:(0,Zt.S$)(this.context.messages,"markNameSelector.cross")||"Cross"},{value:"x",name:(0,Zt.S$)(this.context.messages,"markNameSelector.x")||"X"}],valueField:"value",textField:"name",value:this.props.markName,onChange:function(t){return e.props.onChange("markName",t.value)}})}}])&&$t(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(y().Component);Qt(Jt,"propTypes",{markName:o().string,onChange:o().func}),Qt(Jt,"contextTypes",{messages:o().object}),Qt(Jt,"defaultProps",{markName:"circle",onChange:function(){}});const er=Jt;var tr=r(37674),rr=r.n(tr);function nr(e){return nr="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},nr(e)}function or(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ir(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ar(e,t){return ar=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ar(e,t)}function lr(e,t){if(t&&("object"===nr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function cr(e){return cr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},cr(e)}function sr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}rr()();var ur=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&ar(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=cr(n);if(o){var r=cr(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return lr(this,e)});function a(){return or(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this;return y().createElement(m.Grid,{fluid:!0},y().createElement(m.Row,null,y().createElement(m.Col,{xs:4,style:{padding:0}},y().createElement(zt,{style:{padding:0,margin:"auto",display:"block"},height:97,shapeStyle:this.props.shapeStyle,geomType:this.props.shapeStyle.marker?"Marker":"Point"})),y().createElement(m.Col,{xs:7},this.props.showMarker?y().createElement(m.Row,null,y().createElement(m.Col,{xs:1},y().createElement("input",{"aria-label":"...",type:"checkbox",defaultChecked:this.props.shapeStyle.marker,onChange:function(t){e.props.setStyleParameter("marker",t.target.checked)}})),y().createElement(m.Col,{style:{paddingLeft:0,paddingTop:1},xs:4},y().createElement("label",null,"Marker"))):null,this.props.showMarkSelector?y().createElement(m.Row,{style:{marginBottom:4}},y().createElement(m.Col,{style:{paddingTop:7},xs:4},y().createElement("label",null,"Mark")),y().createElement(m.Col,{xs:8,style:{paddingRight:0,paddingLeft:30}},y().createElement(er,{onChange:this.props.setStyleParameter,markName:this.props.shapeStyle.markName}))):null,y().createElement(m.Row,null,y().createElement(m.Col,{xs:4},y().createElement(kt.Z,{disabled:this.props.shapeStyle.marker,value:this.props.shapeStyle.color,line:!1,text:"Stroke",onChangeColor:function(t){t&&e.props.setStyleParameter("color",t)}})),y().createElement(m.Col,{xs:8,style:{paddingRight:0,paddingLeft:30}},y().createElement(Gt.NumberPicker,{disabled:this.props.shapeStyle.marker,min:1,max:15,step:1,value:this.props.shapeStyle.width,onChange:function(t){e.props.shapeStyle.width!==t&&e.props.setStyleParameter("width",t)}}))),y().createElement(m.Row,{style:{marginTop:4}},y().createElement(m.Col,{xs:4},y().createElement(kt.Z,{disabled:this.props.shapeStyle.marker,value:this.props.shapeStyle.fill,line:!1,text:"Fill",onChangeColor:function(t){t&&e.props.setStyleParameter("fill",t)}})),y().createElement(m.Col,{xs:8,style:{paddingRight:0,paddingLeft:30}},y().createElement(Gt.NumberPicker,{disabled:this.props.shapeStyle.marker,min:1,max:50,step:1,value:this.props.shapeStyle.radius,onChange:function(t){e.props.shapeStyle.radius!==t&&e.props.setStyleParameter("radius",t)}}))))))}}])&&ir(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(y().Component);sr(ur,"propTypes",{shapeStyle:o().object,setStyleParameter:o().func,showMarker:o().bool,showMarkSelector:o().bool}),sr(ur,"defaultProps",{shapeStyle:{},showMarker:!0,showMarkSelector:!1,setStyleParameter:function(){}});const pr=ur;function fr(e){return fr="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},fr(e)}function dr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mr(e,t){return mr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mr(e,t)}function hr(e,t){if(t&&("object"===fr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function br(e){return br=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},br(e)}function gr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}rr()();var vr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&mr(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=br(n);if(o){var r=br(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return hr(this,e)});function a(){return dr(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this;return y().createElement(m.Grid,{fluid:!0},y().createElement(m.Row,null,y().createElement(m.Col,{xs:4,style:{padding:0}},y().createElement(zt,{style:{padding:0,margin:"auto",display:"block"},shapeStyle:this.props.shapeStyle,geomType:"Polygon"})),y().createElement(m.Col,{xs:7},y().createElement(m.Row,{style:{marginTop:7}},y().createElement(m.Col,{xs:4},y().createElement(kt.Z,{value:this.props.shapeStyle.color,line:!1,text:"Stroke",onChangeColor:function(t){t&&e.props.setStyleParameter("color",t)}})),y().createElement(m.Col,{xs:8,style:{paddingRight:0,paddingLeft:30}},y().createElement(Gt.NumberPicker,{min:1,max:15,step:1,value:this.props.shapeStyle.width,onChange:function(t){t!==e.props.shapeStyle.width&&e.props.setStyleParameter("width",t)}}))),y().createElement(m.Row,{style:{marginTop:4}},y().createElement(m.Col,{xs:6},y().createElement(kt.Z,{value:this.props.shapeStyle.fill,line:!1,text:"Fill",onChangeColor:function(t){t&&e.props.setStyleParameter("fill",t)}}))))))}}])&&yr(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(y().Component);gr(vr,"propTypes",{shapeStyle:o().object,setStyleParameter:o().func}),gr(vr,"defaultProps",{shapeStyle:{},setStyleParameter:function(){}});const wr=vr;function Or(e){return Or="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},Or(e)}function Sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Er(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Pr(e,t){return Pr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pr(e,t)}function xr(e,t){if(t&&("object"===Or(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function jr(e){return jr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jr(e)}function Cr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}rr()();var Nr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&Pr(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=jr(n);if(o){var r=jr(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return xr(this,e)});function a(){return Sr(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this;return y().createElement(m.Grid,{fluid:!0},y().createElement(m.Row,null,y().createElement(m.Col,{xs:4,style:{padding:0}},y().createElement(zt,{style:{padding:0,margin:"auto",display:"block"},shapeStyle:this.props.shapeStyle,geomType:"Polyline",height:40})),y().createElement(m.Col,{xs:7},y().createElement(m.Row,{style:{marginTop:7}},y().createElement(m.Col,{xs:4},y().createElement(kt.Z,{value:this.props.shapeStyle.color,line:!1,text:"Stroke",onChangeColor:function(t){t&&e.props.setStyleParameter("color",t)}})),y().createElement(m.Col,{xs:8,style:{paddingRight:0,paddingLeft:30}},y().createElement(Gt.NumberPicker,{onChange:function(t){e.props.setStyleParameter("width",t)},min:1,max:15,step:1,value:this.props.shapeStyle.width}))))))}}])&&Er(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(y().Component);Cr(Nr,"propTypes",{shapeStyle:o().object,setStyleParameter:o().func}),Cr(Nr,"defaultProps",{shapeStyle:{},setStyleParameter:function(){}});const Tr=Nr;var kr=r(38848);function Ir(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ir(Object(r),!0).forEach((function(t){Ar(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ir(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ar(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _r=(0,a.compose)((0,a.withProps)((function(e){var t=e.style,r=void 0===t?{}:t,n=e.styleName,o=r.fillColor,i=r.fillOpacity,a=r.color,l=r.opacity,c=r.shapeStyle,s=r.weight,u=r.radius;return{shapeStyle:Rr(Rr({},c),{},{marker:"marker"===n,radius:u,width:s,fill:(0,Tt.qq)(o,i),color:(0,Tt.qq)(a,l)})}})),(0,a.withHandlers)({setStyleParameter:function(e){var t=e.onChange,r=void 0===t?function(){}:t,n=e.style,o=void 0===n?{}:n;return function(e,t){switch(e){case"fill":var n=t.r,i=t.g,a=t.b,l=t.a;r("style",Rr(Rr({},o),{},{fillColor:"rgb(".concat(n,", ").concat(i,", ").concat(a,")"),fillOpacity:l}));break;case"color":var c=t.r,s=t.g,u=t.b,p=t.a;r("style",Rr(Rr({},o),{},{color:"rgb(".concat(c,", ").concat(s,", ").concat(u,")"),opacity:p}));break;case"width":r("style",Rr(Rr({},o),{},{weight:t}));break;case"marker":r("styleName",t?"marker":void 0);break;default:r("style",Rr(Rr({},o),{},Ar({},e,t)))}}}})),Mr={Polygon:_r(wr),MultiPolygon:_r(wr),GeometryCollection:_r(wr),LineString:_r(Tr),MultiLineString:_r(Tr),MultiPoint:_r(pr),Point:_r(pr)},Fr=(0,a.branch)((function(e){var t=e.element;return"wfs"===(void 0===t?{}:t).type}),(0,a.mapPropsStream)((function(e){return e.combineLatest(e.map((function(e){return{layer:e.element}})).let(Nt.Z).map((function(e){var t=e.error,r=e.loading,n=e.describeFeatureType;return{error:t,loading:r,geometryType:!t&&!r&&n&&(0,kr.mI)(n)}})),(function(e,t){var r=t.geometryType,n=t.error,o=t.loading;return Rr(Rr({},e),{},{geometryType:r,error:n,loading:o})}))})),(0,a.withProps)((function(e){var t=e.element;return{geometryType:t&&t.features&&t.features[0].geometry&&t.features[0].geometry.type}})));const Dr=(0,a.compose)(Fr,(0,jt.Z)(),(0,Ct.Z)((function(e){return!e.geometryType})))((function(e){var t=e.geometryType,r=e.element,n=void 0===r?{}:r,o=e.onChange,i=void 0===o?function(){}:o,a=Mr[t];return y().createElement(y().Fragment,null,y().createElement("h4",null,"    ",y().createElement(C.Z,{msgId:"layerProperties.style"})),y().createElement(a,{styleName:n.styleName,style:n.style,onChange:i}))}));var Lr=r(827),Br=r(50392),Ur=r(76424);function qr(){return qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qr.apply(this,arguments)}const Wr=function(e){var t=e.activePanel,r=e.fillContainer,n=e.className,o=e.onSelect,i=e.panels,a=void 0===i?[]:i,l=r?"ms-fill-container ":"";return y().createElement(m.Accordion,{activeKey:t,className:"ms-accordion "+l+n},a.map((function(e,r){return y().createElement(m.Panel,{key:r,eventKey:e.id,className:t===e.id&&"HIDDEN"!==e.id?"ms-selected":"",header:e.head&&y().createElement("a",{role:"tab"},y().createElement(Ur.Z,qr({},e.head,{selected:t===e.id,onClick:function(){o(e.id)}})))||null,collapsible:!0},e.body)})))};var zr=r(54432),Gr=r.n(zr),Zr=r(62582),Hr=r.n(Zr);function Vr(e){return Vr="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},Vr(e)}function $r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Kr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$r(Object(r),!0).forEach((function(t){cn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$r(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||Qr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xr(e){return function(e){if(Array.isArray(e))return Jr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qr(e,t){if(e){if("string"==typeof e)return Jr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jr(e,t):void 0}}function Jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function en(){return en=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},en.apply(this,arguments)}function tn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function nn(e,t){return nn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nn(e,t)}function on(e,t){if(t&&("object"===Vr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return an(e)}function an(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ln(e){return ln=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ln(e)}function cn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var sn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&nn(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ln(n);if(o){var r=ln(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return on(this,e)});function a(){var e;tn(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return cn(an(e=i.call.apply(i,[this].concat(r))),"getInfoFormat",(function(t){return Object.keys(t).map((function(t){var r=e.props.formatCards[t]&&e.props.formatCards[t].body;return{id:t,head:{preview:y().createElement(m.Glyphicon,{glyph:e.props.formatCards[t]&&e.props.formatCards[t].glyph||"ext-empty"}),title:e.props.formatCards[t]&&e.props.formatCards[t].titleId&&y().createElement(C.Z,{msgId:e.props.formatCards[t].titleId})||"",description:e.props.formatCards[t]&&e.props.formatCards[t].descId&&y().createElement(C.Z,{msgId:e.props.formatCards[t].descId})||"",size:"sm"},body:r&&y().createElement(r,en({template:e.props.element.featureInfo&&e.props.element.featureInfo.template||""},e.props))||null}}))})),cn(an(e),"supportedInfoFormats",(function(){var t,r=(null===(t=e.props.element)||void 0===t?void 0:t.infoFormats)||[],n=Object.assign.apply(Object,[{}].concat(Xr(Object.entries(e.props.defaultInfoFormat).filter((function(e){var t=Yr(e,2)[1];return Gr()(r,t)})).map((function(e){var t=Yr(e,2);return cn({},t[0],t[1])})))));return Hr()(n)?e.props.defaultInfoFormat:n})),e}return t=a,r=[{key:"render",value:function(){var e=this,t=this.getInfoFormat(this.supportedInfoFormats());return y().createElement("span",null,y().createElement(Wr,{fillContainer:!0,activePanel:this.props.element.featureInfo&&this.props.element.featureInfo.format,panels:t,onSelect:function(t){var r=e.props.element.featureInfo&&e.props.element.featureInfo.format&&t===e.props.element.featureInfo.format;e.props.onChange("featureInfo",Kr(Kr({},e.props.element&&e.props.element.featureInfo||{}),{},{format:r?"":t,viewer:e.props.element.featureInfo?e.props.element.featureInfo.viewer:void 0}))}}))}}],r&&rn(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(y().Component);cn(sn,"propTypes",{element:o().object,defaultInfoFormat:o().object,onChange:o().func,formatCards:o().object}),cn(sn,"defaultProps",{element:{},defaultInfoFormat:[],onChange:function(){},formatCards:{}});var un=["template"],pn=["settings","items","loadedPlugins","onToggleStyleEditor","onUpdateParams","element"],fn=["showFeatureInfoTab","loadedPlugins","items","onToggleStyleEditor"];function dn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(r),!0).forEach((function(t){mn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function mn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bn(){return bn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bn.apply(this,arguments)}function gn(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var vn={html:Ot(),json:JSON.parse(Et()),text:xt()},wn=(0,a.defaultProps)({readOnly:!0})(Br.tM),On=(0,i.connect)((0,l.P1)([Lr.Od],(function(e){return{zoom:e.zoom,projection:e.projection}})))(Q.Z),Sn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.settings,r=void 0===t?{}:t;return"layers"===r.nodeType},En=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,r=void 0===t?{}:t;return"wfs"===r.type||"vector"===r.type&&"annotations"!==r.id},Pn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,r=void 0===t?{}:t;return"wms"===r.type},xn=function(e){return Sn(e)&&(Pn(e)||En(e))},jn={HIDDEN:{titleId:"layerProperties.hideFormatTitle",descId:"layerProperties.hideFormatDescription",glyph:"hide-marker"},TEXT:{titleId:"layerProperties.textFormatTitle",descId:"layerProperties.textFormatDescription",glyph:"ext-txt",body:function(){return y().createElement("div",null,y().createElement("div",null,y().createElement(C.Z,{msgId:"layerProperties.exampleOfResponse"})),y().createElement("br",null),y().createElement(V.Z,{response:vn.text}))}},HTML:{titleId:"layerProperties.htmlFormatTitle",descId:"layerProperties.htmlFormatDescription",glyph:"ext-html",body:function(){return y().createElement("div",null,y().createElement("div",null,y().createElement(C.Z,{msgId:"layerProperties.exampleOfResponse"})),y().createElement("br",null),y().createElement(H.Z,{response:vn.html}))}},PROPERTIES:{titleId:"layerProperties.propertiesFormatTitle",descId:"layerProperties.propertiesFormatDescription",glyph:"ext-json",body:function(){return y().createElement("div",null,y().createElement("div",null,y().createElement(C.Z,{msgId:"layerProperties.exampleOfResponse"})),y().createElement("br",null),y().createElement($.Z,{response:vn.json}))}},TEMPLATE:{titleId:"layerProperties.templateFormatTitle",descId:"layerProperties.templateFormatDescription",glyph:"ext-empty",body:function(e){var t=e.template,r=void 0===t?"":t,n=gn(e,un);return y().createElement("div",null,y().createElement("div",null,r&&"<p><br></p>"!==r?y().createElement(C.Z,{msgId:"layerProperties.templatePreview"}):null),y().createElement("br",null),y().createElement("div",null,r&&"<p><br></p>"!==r?y().createElement(K.Z,{html:r}):y().createElement("span",null,y().createElement("p",null,y().createElement(C.Z,{msgId:"layerProperties.templateFormatInfoAlert2",msgParams:{attribute:"{ }"}})),y().createElement("pre",null,y().createElement(C.Z,{msgId:"layerProperties.templateFormatInfoAlertExample",msgParams:{properties:"{ properties.id }"}})),y().createElement("p",null,y().createElement("small",null,y().createElement(C.Z,{msgId:"layerProperties.templateFormatInfoAlert1"}))," ( ",y().createElement(m.Glyphicon,{glyph:"pencil"})," )")),y().createElement(gt,bn({template:r},n))))}}},Cn=(0,a.defaultProps)({formatCards:jn,defaultInfoFormat:Object.assign({HIDDEN:"text/html"},(0,Y.eq)())})(sn),Nn={},Tn=function(e,t,r){if(e){var n=Nn[e.name];return n||(n=(0,q.KB)(e,t,r))&&n.loaded&&(Nn[e.name]=n),n}return e},kn=function(e){var t=e.settings,r=e.items,n=void 0===r?[]:r,o=e.loadedPlugins,i=e.onToggleStyleEditor,l=void 0===i?function(){}:i,c=e.onUpdateParams,s=void 0===c?function(){}:c,u=e.element,p=gn(e,pn);if(En({element:u}))return{Component:Dr};var f,d=Z()(z()((f=n,function(e){if(Array.isArray(e))return hn(e)}(f)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(f)||function(e,t){if(e){if("string"==typeof e)return hn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hn(e,t):void 0}}(f)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),{target:"style"}),["priority"]).filter((function(e){var t=e.selector;return!t||t(yn(yn({},p),{},{element:u}))})),m=S()(z()(d,{name:"ThematicLayer"}));if(m){var h=t&&t.options&&t.options.thematic,b=[{glyph:"list",tooltipId:"toc.thematic.classify",visible:p.isAdmin&&!h||!1,onClick:function(){return s({thematic:{unconfigured:!0}})}},{glyph:"trash",tooltipId:"toc.thematic.remove_thematic",visible:p.isAdmin&&h||!1,onClick:function(){return s({thematic:null})}}];return h?{Component:"style"===p.activeTab&&m.plugin&&Tn(m,o,y().createElement(vt.Z,{width:100,height:100})),toolbar:b}:{toolbar:b}}var g=S()(d);if(g&&g.plugin){var v=g.cfg||g.plugin.cfg;return{onClose:function(){return l(null,!1)},Component:Tn(yn(yn({},g),{},{cfg:yn(yn({},v||{}),{},{active:!0})}),o,y().createElement(vt.Z,{width:100,height:100})),toolbarComponent:g.ToolbarComponent&&(v&&(0,a.defaultProps)(v)(g.ToolbarComponent)||g.ToolbarComponent)}}return{}};const In=function(e){var t=e.showFeatureInfoTab,r=void 0===t||t,n=e.loadedPlugins,o=e.items,i=e.onToggleStyleEditor,a=gn(e,fn);return[{id:"general",titleId:"layerProperties.general",tooltipId:"layerProperties.general",glyph:"wrench",visible:!0,Component:X.Z},{id:"display",titleId:"layerProperties.display",tooltipId:"layerProperties.display",glyph:"eye-open",visible:Sn(a),Component:On},yn({id:"style",titleId:"layerProperties.style",tooltipId:"layerProperties.style",glyph:"dropper",visible:xn(a),Component:wn},kn(yn({items:o,loadedPlugins:n,onToggleStyleEditor:i},a))),{id:"feature",titleId:"layerProperties.featureInfo",tooltipId:"layerProperties.featureInfo",glyph:"map-marker",visible:r&&Sn(a)&&Pn(a)&&!(a.element.featureInfo&&a.element.featureInfo.viewer),Component:Cn,toolbar:[{glyph:"pencil",tooltipId:"layerProperties.editCustomFormat",visible:!a.showEditor&&a.element&&a.element.featureInfo&&"TEMPLATE"===a.element.featureInfo.format||!1,onClick:function(){return a.onShowEditor&&a.onShowEditor(!a.showEditor)}}]},{id:"elevation",titleId:"layerProperties.elevation",tooltipId:"layerProperties.elevation",glyph:"1-vector",visible:Sn(a)&&Pn(a)&&a.element.dimensions&&a.getDimension&&a.getDimension(a.element.dimensions,"elevation"),Component:Re}].filter((function(e){return e.visible}))};var Rn=(0,l.P1)([M.jN,M.l2,M.Bt,F.Pz,F.KV,function(e){return(0,L.ic)(e,{height:!0})},B.qg,_.Gd,_.tL,_.R4,M.Ci,D.wk],(function(e,t,r,n,o,i,a,l,c,s,u,p){return{settings:e,element:u,groups:r,currentLocale:n,currentLocaleLanguage:o,dockStyle:i,isAdmin:a,initialSettings:l,originalSettings:c,activeTab:s,isLocalizedLayerStylesEnabled:p}})),An=(0,a.compose)((0,i.connect)(Rn,{onHideSettings:u.sF,onUpdateSettings:u.VP,onUpdateNode:u.tV,onRetrieveLayerData:s.k,onUpdateOriginalSettings:c.Xg.bind(null,"layersettings","originalSettings"),onUpdateInitialSettings:c.Xg.bind(null,"layersettings","initialSettings"),onSetTab:c.Xg.bind(null,"layersettings","activeTab"),onUpdateParams:u.Xy,onToggleStyleEditor:p.Wv}),f.bR,(0,a.defaultProps)({getDimension:U.Fr,enableLayerNameEditFeedback:!0}),(0,a.getContext)({loadedPlugins:o().object}),(0,a.withPropsOnChange)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.items,r=void 0===t?[]:t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.items;return r!==o}),(function(e){return{tabs:In(e)}})))(A);const _n=(0,q.rx)("TOCItemsSettings",{component:An,containers:{TOC:{doNotHide:!0,name:"TOCItemsSettings"}}})},38842:(e,t,r)=>{"use strict";r.d(t,{wk:()=>p,Yf:()=>f,c3:()=>d,fY:()=>y});var n=r(37632),o=r.n(n),i=r(57546),a=r.n(i),l=r(50542),c=r.n(l),s=r(87511),u=r(8316),p=function(e){return o()(e,"localConfig.localizedLayerStyles")},f=function(e){var t=a()(e,"localConfig.plugins.dashboard",[]),r=c()(t,(function(e){return"DashboardEditor"===e.name}))||{};return a()(r,"cfg.catalog.localizedLayerStyles",!1)},d=function(e){return a()(e,"localConfig.localizedLayerStyles.name","mapstore_language")},y=(0,s.P1)(p,d,u.KV,(function(e,t,r){var n=[];return e&&n.push({name:t,value:r}),n}))},76712:(e,t,r)=>{"use strict";r.d(t,{n0:()=>Z,tW:()=>V,FJ:()=>$,F8:()=>K,ll:()=>X,eL:()=>Q,AD:()=>J,oR:()=>ee,LZ:()=>te,eX:()=>re,QQ:()=>ne,B8:()=>oe,T6:()=>ie});var n=r(37295),o=r.n(n),i=r(20721),a=r.n(i),l=r(80643),c=r.n(l),s=r(37153),u=r.n(s),p=r(9626),f=r.n(p),d=r(33716),y=r.n(d),m=r(33398),h=r.n(m),b=r(83403),g=r.n(b),v=r(54432),w=r.n(v),O=r(57546),S=r.n(O),E=r(82920),P=r.n(E),x=r(62582),j=r.n(x),C=r(31940),N=r.n(C),T=r(10525),k=r(37275),I=r(24262),R=r(86638),A=r(51559),_=r(33044),M=r(1157),F=r(88798);function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){B(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function B(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var U=function(e){return e&&e.replace(/\/csw$/,"/")},q=function(e){return y()(e)&&e._||e},W=function(e,t){return e.filter((function(r){return A.C2(t,r,e,t,null)}))},z=function(e){var t=Array.isArray(e.references)?e.references:[e.references];return a()([].filter.call(t,(function(t){return"WWW:LINK-1.0-http--image-thumbnail"===t.scheme||"thumbnail"===t.scheme||"WWW:DOWNLOAD-1.0-http--download"===t.scheme&&-1!==(t.value||"").indexOf("".concat(e.identifier||"","-thumb"))||"WWW:DOWNLOAD-REST_MAP"===t.scheme&&-1!==(t.value||"").indexOf("".concat(e.identifier||"","-thumb"))})))},G={csw:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e;return n&&n.records?n.records.map((function(e){var n,i,l,s=e.dc;if(s&&s.URI){var p=c()(s.URI)?s.URI:s.URI&&[s.URI]||[],d=a()([].filter.call(p,(function(e){return"thumbnail"===e.name})))||a()([].filter.call(p,(function(e){var t;return!e.name&&(null===(t=e.protocol)||void 0===t?void 0:t.indexOf("image/"))>-1})));n=d?d.value:null,i=a()([].filter.call(p,(function(e){return e.protocol&&(e.protocol.match(/^OGC:WMS-(.*)-http-get-map/g)||e.protocol.match(/^OGC:WMS/g))})))}if(!i&&s&&s.references&&s.references.length){var y=Array.isArray(s.references)?s.references:[s.references];if(i=a()([].filter.call(y,(function(e){return e.scheme&&(e.scheme.match(/^OGC:WMS-(.*)-http-get-map/g)||"OGC:WMS"===e.scheme)})))){var m=N().parse(i.value,!0),b=m.query&&m.query.layers||s.alternative;i=o()({},i,{name:b})}}if(!i&&s&&s.references&&s.references.length){var v=Array.isArray(s.references)?s.references:[s.references];if(l=a()([].filter.call(v,(function(e){return e.scheme&&"WWW:DOWNLOAD-REST_MAP"===e.scheme})))){var O=s.alternative;l=o()({},l,{name:O})}}if(!n&&s&&s.references){var S=z(s);S&&(n=S.value)}var E=[];if(s&&s.references&&(Array.isArray(s.references)?s.references:[s.references]).filter((function(e){return e.scheme.indexOf("http-get-capabilities")>-1})).forEach((function(e){var r=0===e.value.indexOf("http")?e.value:(t&&t.catalogURL||"")+"/"+e.value;E.push({type:e.scheme,url:r})})),i&&i.name){0===i.value.indexOf("http")||o()({},i,{value:(t&&t.catalogURL||"")+"/"+i.value});var P={type:i.protocol||i.scheme,url:i.value,SRS:[],params:{name:i.name}};E.push(P)}if(l&&l.name){var x={type:"arcgis",url:l.value,SRS:[],params:{name:l.name}};E.push(x)}n&&(0===n.indexOf("http")||(n=(U(t&&t.url)||"")+n));var j={boundingBox:e.boundingBox&&e.boundingBox.extent&&f()(e.boundingBox.extent.join(","))};if(s&&(j=L(L({},j),h()(Object.keys(s)).reduce((function(e,t){return L(L({},e),{},B({},t,g()(f()(s[t]))))}),{}))),s&&s.URI&&f()(s.URI)&&f()(s.URI).length&&(j=L(L({},j),{},{uri:["<ul>"+f()(s.URI).map((function(e){return'<li><a target="_blank" href="'.concat(e.value,'">').concat(e.name,"</a></li>")})).join("")+"</ul>"]})),s&&s.subject&&f()(s.subject)&&f()(s.subject).length&&(j=L(L({},j),{},{subject:["<ul>"+f()(s.subject).map((function(e){return"<li>".concat(e,"</li>")})).join("")+"</ul>"]})),E&&f()(E).length?j=L(L({},j),{},{references:["<ul>"+f()(E).map((function(e){return'<li><a target="_blank" href="'.concat(e.url,'">').concat(e.params&&e.params.name||e.url,"</a></li>")})).join("")+"</ul>"]}):delete j.references,s&&s.temporal){var C=s.temporal.split("; ");if(C.length){var T=C.filter((function(e){return-1!==e.indexOf("scheme=")})).map((function(e){var t=e.indexOf("=");return e.substr(t+1,e.length-1)}));T=T.length?T[0]:"W3C-DTF";var k=C.filter((function(e){return-1!==e.indexOf("start=")||-1!==e.indexOf("end=")})).map((function(e){var t=e.indexOf("="),n=e.substr(0,t),o=e.substr(t+1,e.length-1),i=e.length-t-1<=10;return w()(["start","end"],n)&&"W3C-DTF"===T&&!i?(0,R.S$)(r,"catalog.".concat(n))+new Date(o).toLocaleString():w()(["start","end"],n)?(0,R.S$)(r,"catalog.".concat(n))+o:""}));j=L(L({},j),{},{temporal:["<ul>"+k.map((function(e){return"<li>".concat(e,"</li>")})).join("")+"</ul>"]})}}return{boundingBox:e.boundingBox,description:s&&u()(s.abstract)&&s.abstract||"",layerOptions:t&&t.layerOptions||{},identifier:s&&u()(s.identifier)&&s.identifier||"",references:E,thumbnail:n,title:s&&u()(s.title)&&s.title||"",tags:s&&s.tags||"",metadata:j}})):null},wms:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&e.records?e.records.map((function(r){return{capabilities:r,credits:r.credits,boundingBox:M.ZP.getBBox(r),description:r.Abstract||r.Title||r.Name,identifier:r.Name,service:e.service,tags:"",layerOptions:L(L({},(null==t?void 0:t.layerOptions)||{}),(null==e?void 0:e.layerOptions)||{}),title:(0,I.EM)(r)||r.Name,formats:f()(r.formats||[]),dimensions:(r.Dimension&&f()(r.Dimension)||[]).map((function(e){return o()({},{values:e._&&e._.split(",")||[]},e.$||{})})).filter((function(e){return e&&"time"!==e.name})),references:[{type:"OGC:WMS",url:t&&t.url,SRS:r.SRS&&(c()(r.SRS)?r.SRS:[r.SRS])||[],params:{name:r.Name}}]}})):null},wmts:function(e,t){return e&&e.records?e.records.map((function(e){var r=f()(A.f1(e)||t&&t.url);1===r.length&&(r=r[0]);var n=A.dN(e),i=f()(e.TileMatrixSetLink||[]).reduce((function(t,r){var n,i=a()((e.TileMatrixSet&&f()(e.TileMatrixSet)||[]).filter((function(e){return e["ows:Identifier"]===r.TileMatrixSet}))),l=i&&T.default.getEPSGCode(i["ows:SupportedCRS"]),c=r.TileMatrixSetLimits&&(r.TileMatrixSetLimits.TileMatrixLimits||[]).map((function(e){return{identifier:e.TileMatrix,ranges:{cols:{min:e.MinTileCol,max:e.MaxTileCol},rows:{min:e.MinTileRow,max:e.MaxTileRow}}}}))||i.TileMatrix.map((function(e){return{identifier:e["ows:Identifier"]}}));return o()(t,(B(n={},i["ows:Identifier"],c),B(n,l,c),n))}),{}),l=function(e){var t=e["ows:WGS84BoundingBox"];return t||(t={"ows:LowerCorner":"-180.0 -90.0","ows:UpperCorner":"180.0 90.0"}),t}(e);return{title:q(e["ows:Title"]||e["ows:Identifier"]),description:q(e["ows:Abstract"]||e["ows:Title"]||e["ows:Identifier"]),identifier:q(e["ows:Identifier"]),tags:"",layerOptions:t&&t.layerOptions||{},style:e.style,capabilitiesURL:n,queryable:e.queryable,requestEncoding:e.requestEncoding,tileMatrixSet:e.TileMatrixSet,matrixIds:i,format:e.format,TileMatrixSetLink:f()(e.TileMatrixSetLink),boundingBox:{extent:[l["ows:LowerCorner"].split(" ")[0],l["ows:LowerCorner"].split(" ")[1],l["ows:UpperCorner"].split(" ")[0],l["ows:UpperCorner"].split(" ")[1]],crs:"EPSG:4326"},references:[{type:"OGC:WMTS",url:r,SRS:W(e.SRS||[],i),params:{name:e["ows:Identifier"]}}]}})):null},tms:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.records){var r=t.service&&"tms"===t.service.provider;return r?e.records.map((function(e){return{title:e.title,tileMapUrl:e.href,description:"".concat(e.srs).concat(e.format?", "+e.format:""),tmsUrl:t.tmsUrl,references:[{type:"OGC:TMS",version:"1.0.0",url:t.url}]}})):e.records.map((function(e){return{title:e.title||e.provider,url:e.url,attribution:e.attribution,options:e.options,provider:e.provider,type:"tileprovider",references:[]}}))}return null},wfs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.records;return t?t.map((function(e){return L(L({},e),{},{references:[{type:"OGC:WFS-1.1.0-http-get-capabilities",url:e.url},{type:"OGC:WFS-1.1.0-http-get-feature",url:e.url}]})})):null},backgrounds:function(e){return e&&e.records?e.records.map((function(e){return{description:e.title,title:e.title,identifier:e.name,thumbnail:e.thumbURL,references:[],background:e}})):null}},Z=function(e){return e.filter((function(e){return T.default.isSRSAllowed(e)})).reduce((function(e,t){return o()(e,B({},t,!0))}),{})},H=function(e,t){var r=e.split("?"),n={};return r.length>=2&&r[1]&&r[1].split(/[&;]/g).forEach((function(e){var r=e.split("=");-1===t.indexOf(r[0].toLowerCase())&&(n[r[0]]=r[1])})),{url:r[0],params:n}},V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.references,r=void 0===t?[]:t;return{wfs:a()(r.filter((function(e){return e.type&&("OGC:WFS"===e.type||e.type.indexOf("OGC:WFS")>-1&&e.type.indexOf("http-get-feature")>-1)}))),wms:a()(r.filter((function(e){return e.type&&("OGC:WMS"===e.type||e.type.indexOf("OGC:WMS")>-1&&e.type.indexOf("http-get-map")>-1)}))),wmts:a()(r.filter((function(e){return e.type&&("OGC:WMTS"===e.type||e.type.indexOf("OGC:WMTS")>-1&&e.type.indexOf("http-get-map")>-1)}))),tms:a()(r.filter((function(e){return e.type&&("OGC:TMS"===e.type||e.type.indexOf("OGC:TMS")>-1)})))}},$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{references:[]};return{esri:a()(e.references.filter((function(e){return e.type&&("ESRI:SERVER"===e.type||"arcgis"===e.type)})))}},K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.references,r=void 0===t?[]:t,n=a()(r.filter((function(e){return e.type&&e.type.indexOf("OGC:WMS")>-1&&e.type.indexOf("http-get-capabilities")>-1}))),o=a()(r.filter((function(e){return e.type&&e.type.indexOf("OGC:WFS")>-1&&e.type.indexOf("http-get-capabilities")>-1}))),i=a()(r.filter((function(e){return e.type&&e.type.indexOf("OGC:WMTS")>-1&&e.type.indexOf("http-get-capabilities")>-1}))),l=[];return n&&l.push({type:"WMS_GET_CAPABILITIES",url:n.url,labelId:"catalog.wmsGetCapLink"}),i&&l.push({type:"WMTS_GET_CAPABILITIES",url:i.url,labelId:"catalog.wmtsGetCapLink"}),o&&l.push({type:"WFS_GET_CAPABILITIES",url:o.url,labelId:"catalog.wfsGetCapLink"}),l},Y=function(e){return e&&!c()(e)&&-1!==e.indexOf(",")?e.split(",").map((function(e){return e.trim()})):e},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wms",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.removeParams,o=void 0===n?[]:n,i=r.format,a=r.catalogURL,l=r.url,s=r.formats,u=void 0===s?{}:s,p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=arguments.length>4?arguments[4]:void 0;if(!e||!e.references)return null;var d,y,m=V(e),h=m.wms,b=m.wmts,g=h||b,v=function(e){return H(k.ZP.cleanDuplicatedQuestionMarks(e),["request","layer","layers","service","version"].concat(o))},w=Y(g.url);if(w&&c()(w))d=w.map((function(e){return v(e)})).map((function(e){return e.url})),y=w.map((function(e){return v(e)})).map((function(e){return e.params})).reduce((function(e,t){return L(L({},e),t)}),{});else{var O=v(w||a),S=O.url,E=O.params;d=S,y=E}var x=function(e){return c()(e)&&1===e.length?e[0]:e},C=x(l||d),N=Z(g.SRS);return L(L(L({type:t,requestEncoding:e.requestEncoding,style:e.style,format:i,url:C,capabilitiesURL:e.capabilitiesURL,queryable:e.queryable,visibility:!0,dimensions:e.dimensions||[],name:g.params&&g.params.name,title:e.title||g.params&&g.params.name,matrixIds:"wmts"===t?e.matrixIds||[]:void 0,description:e.description||"",tileMatrixSet:"wmts"===t?e.tileMatrixSet||[]:void 0,credits:!k.ZP.getConfigProp("noCreditsFromCatalog")&&e.credits,bbox:{crs:e.boundingBox.crs,bounds:{minx:e.boundingBox.extent[0],miny:e.boundingBox.extent[1],maxx:e.boundingBox.extent[2],maxy:e.boundingBox.extent[3]}},links:K(e),params:y,allowedSRS:N,catalogURL:a},p),e.layerOptions),{},{localizedLayerStyles:P()(f)?void 0:f},"wms"===t&&!j()(u)&&{imageFormats:u.imageFormats,infoFormats:u.infoFormats})},Q=function(e,t,r,n){return G[e]&&G[e](t,r,n)||null},J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.references)return null;var r=$(e),n=r.esri;return L({type:n.type,url:n.url,visibility:!0,dimensions:e.dimensions||[],name:n.params&&n.params.name,bbox:{crs:e.boundingBox.crs,bounds:{minx:e.boundingBox.extent[0],miny:e.boundingBox.extent[1],maxx:e.boundingBox.extent[2],maxy:e.boundingBox.extent[3]}}},t)},ee=function(e,t,r){var n=e.tileMapUrl,o=t.TileMap,i=void 0===o?{}:o,a=r.forceDefaultTileGrid,l=i.Title,c=i.Abstract,s=i.SRS,u=i.BoundingBox,p=void 0===u?{}:u,d=i.Origin,y=i.TileFormat,m=void 0===y?{}:y,h=i.TileSets,b=i.$,g=b.version,v=b.tilemapservice,w=S()(p,"$",{}),O=w.minx,E=w.miny,P=w.maxx,x=w.maxy,j=S()(d,"$"),C=j.x,N=j.y,T=S()(m,"$",{}),k=T.width,I=T.height,R=T["mime-type"],A=T.extension,M=[parseFloat(k),parseFloat(I,10)],F=f()(S()(h,"TileSet",[]).map((function(e){return e.$}))).map((function(e){var t=e.href,r=e.order,n=e["units-per-pixel"];return{href:(0,_.cleanAuthParamsFromURL)(t),order:parseFloat(r),resolution:parseFloat(n)}})),D=S()(h,"profile");return{title:l,visibility:!0,hideErrors:!0,name:l,allowedSRS:B({},s,!0),description:c,srs:s,version:g,tileMapService:v?(0,_.cleanAuthParamsFromURL)(v):void 0,type:"tms",profile:D,tileMapUrl:n,forceDefaultTileGrid:a,bbox:p&&{crs:s,bounds:{minx:parseFloat(O),miny:parseFloat(E),maxx:parseFloat(P),maxy:parseFloat(x)}},tileSets:F,origin:{x:parseFloat(C),y:parseFloat(N)},format:R,tileSize:M,extension:A}},te=function(e){return L({type:e.type||"wfs",search:{url:e.url,type:"wfs"},url:e.url,queryable:e.queryable,visibility:!0,name:e.name,title:e.title||e.name,description:e.description||"",bbox:e.boundingBox,links:K(e),style:{weight:1,color:"rgba(0, 0, 255, 1)",opacity:1,fillColor:"rgba(0, 0, 255, 0.1)",fillOpacity:.1,radius:10}},e.layerOptions)},re=function(e){return{type:"tileprovider",visibility:!0,url:e.url,title:e.title,attribution:e.attribution,options:e.options,provider:e.provider,name:e.provider}},ne=[{label:"image/png",value:"image/png"},{label:"image/png8",value:"image/png8"},{label:"image/jpeg",value:"image/jpeg"},{label:"image/vnd.jpeg-png",value:"image/vnd.jpeg-png"},{label:"image/vnd.jpeg-png8",value:"image/vnd.jpeg-png8"},{label:"image/gif",value:"image/gif"}],oe=function(){return g()(Object.values((0,F.eq)()))},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return M.ZP.getCapabilities(e).then((function(e){var r,n,o=S()(e,"capability.request.getMap.format",[]);if(j()(o))r=ne;else{var i=ne.map((function(e){return e.value}));r=(o=o.map((function(e){var t=e.value;return{label:t,value:t}}))).filter((function(e){var t=e.value;return w()(i,t)}))||[]}if(t){var a=S()(e,"capability.request.getFeatureInfo.format",[]),l=oe();j()(a)?n=l:(a=a.map((function(e){return e.value})),n=g()(a.filter((function(e){return w()(l,e)})))||[])}return t?{imageFormats:r,infoFormats:n}:r})).catch((function(){return t?{imageFormats:ne,infoFormats:oe()}:ne}))}},66287:(e,t,r)=>{"use strict";r.r(t),r.d(t,{isAttrPresent:()=>b,isStrokeStyle:()=>g,isFillStyle:()=>v,isTextStyle:()=>w,isCircleStyle:()=>O,isMarkerStyle:()=>S,isSymbolStyle:()=>E,getStylerTitle:()=>P,geometryFunctions:()=>x,getGeometryFunction:()=>j,registerGeometryFunctions:()=>C,addOpacityToColor:()=>N,hashCode:()=>T,registerStyle:()=>I,setSymbolsStyles:()=>R,fetchStyle:()=>A,getSymbolsStyles:()=>_,hashAndStringify:()=>M,domNodeToString:()=>F,createSvgUrl:()=>D,createStylesAsync:()=>L,getStyleParser:()=>B});var n=r(82920),o=r.n(n),i=r(61868),a=r(43143),l=r(58047),c=r.n(l),s=r(26387),u=r.n(s),p=r(9138),f=r.n(p);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h={sld:new(u()),css:new(f())},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.filter((function(t){return!o()(e[t])})).length>0},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["color","opacity","dashArray","dashOffset","lineCap","lineJoin","weight"];return b(e,t)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["fillColor","fillOpacity"];return b(e,t)},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["label","font","fontFamily","fontSize","fontStyle","fontWeight","textAlign","textRotationDeg"];return b(e,t)},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["radius"];return b(e,t)},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["iconGlyph","iconShape","iconUrl"];return b(e,t)},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["symbolUrl"];return b(e,t)},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return S(e)?"Marker":E(e)?"Symbol":w(e)?"Text":O(e)||"Circle Style"===e.title?"Circle":v(e)?"Polygon":g(e)?"Polyline":""},x={centerPoint:{type:"Point",func:function(){}},lineToArc:{type:"LineString",func:function(){}},startPoint:{type:"Point",func:function(){}},endPoint:{type:"Point",func:function(){}}},j=function(e,t){return x[e]&&x[e][t]},C=function(e,t,r){if(!(e&&t&&r))throw new Error("specify all the params: functionName, func, type");x[e]={func:t,type:r}},N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#FFCC33",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2;return(0,i.t8)("a",t,e)},T=function(e){var t,r=0;if(0===e.length)return r;for(t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return r},k={},I=function(e,t){if(!e||!t)throw new Error("specify all the params: sha, style");k[e]=t},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};k=e},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"style";return k[e]&&k[e][t]},_=function(){return k},M=function(e){if(e)return T(JSON.stringify(e));throw new Error("hashAndStringify: specify mandatory params: style")},F=function(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return E(e)&&e.symbolUrl?c().get(t,{"Content-Type":"image/svg+xml;charset=utf-8"}).then((function(t){var r=window.URL||window.webkitURL||window,n=(new DOMParser).parseFromString(t.data,"image/svg+xml").firstElementChild;n.setAttribute("fill",e.fillColor||"#FFCC33"),n.setAttribute("fill-opacity",o()(e.fillOpacity)?.2:e.fillOpacity),n.setAttribute("stroke",(0,a.qq)(e.color||"#FFCC33",o()(e.opacity)?1:e.opacity)),n.setAttribute("stroke-opacity",o()(e.opacity)?1:e.opacity),n.setAttribute("stroke-width",e.weight||1),n.setAttribute("width",e.size||32),n.setAttribute("height",e.size||32),n.setAttribute("stroke-dasharray",e.dashArray||"none");var i=new Blob([F(n)],{type:"image/svg+xml;charset=utf-8"}),l=r.createObjectURL(i),c=document.createElement("canvas");c.width=e.size,c.height=e.size;var s=c.getContext("2d"),u=new Image;u.src=l;var p="",f=M(e);return u.onload=function(){try{s.drawImage(u,c.width/2-u.width/2,c.height/2-u.height/2),p=c.toDataURL("image/png"),c=null,I(f,{style:y(y({},e),{},{symbolUrlCustomized:l}),base64:p})}catch(e){return}},I(f,{style:y(y({},e),{},{symbolUrlCustomized:l}),svg:n,base64:p}),l})).catch((function(){return r(70898)})):new Promise((function(e){e(null)}))},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return E(e)&&!A(M(e))?D(e,e.symbolUrl||e.symbolUrlCustomized).then((function(t){return t?y(y({},e),{},{symbolUrlCustomized:t}):A(M(e))})).catch((function(){return y(y({},e),{},{symbolUrlCustomized:r(70898)})})):new Promise((function(t){t(E(e)?A(M(e)):e)}))}))},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"sld";return h[e]}},35268:(e,t,r)=>{function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(2245),l=r(9626),c=r(78889).wfsToGmlVersion,s=function(e){return'service="WFS" version="'+e+'" '+("1.0.0"===e?'outputFormat="GML2" ':"")+'xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs '+"http://schemas.opengis.net/wfs/".concat(e,"1.0.0"===e?'/WFS-basic.xsd"':'/wfs.xsd"')},u=function(e){return'service="WFS" version="'+e+'" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"'};e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.wfsVersion,r=void 0===t?"1.1.0":t,n=e.gmlVersion,i=e.filterNS,p=e.wfsNS,f=void 0===p?"wfs":p,d=n;!d&&r?d=c(r):d||(d="3.1.1");var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.viewParams,n=e.resultType,o=e.outputFormat,i=e.startIndex,a=e.maxFeatures,l=function(e){return 0===r.indexOf("2.")?'count="'.concat(e,'"'):'maxFeatures="'.concat(e,'"')};return(0===r.indexOf("1.")?s(r):u(r))+(n?' resultType="'.concat(n,'"'):"")+(o?' outputFormat="'.concat(o,'"'):"")+(i||0===i?' startIndex="'.concat(i,'"'):"")+(a||0===a?" ".concat(l(a)):"")+(t?' viewParams="'.concat(t,'"'):"")},m=function(e){return l(e).map((function(e){return"<".concat("2.0"===r?"fes":"ogc",":PropertyName>").concat(e,"</").concat("2.0"===r?"fes":"ogc",":PropertyName>")})).join("")};return o(o({propertyName:m},a({gmlVersion:d,wfsVersion:r,filterNS:i||"2.0"===r?"fes":"ogc"})),{},{getFeature:function(e,t){return"<".concat(f,":GetFeature ").concat(y(t),">").concat(Array.isArray(e)?e.join(""):e,"</").concat(f,":GetFeature>")},sortBy:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ASC";return"<".concat(f,":SortBy><").concat(f,":SortProperty>").concat(m(e),"<").concat(f,":SortOrder>").concat(t,"</").concat(f,":SortOrder></").concat(f,":SortProperty></").concat(f,":SortBy>")},query:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.srsName,i=void 0===o?"EPSG:4326":o;return"<".concat(f,":Query ").concat("2.0"===r?"typeNames":"typeName",'="').concat(e,'" srsName="').concat(i,'">')+"".concat(Array.isArray(t)?t.join(""):t)+"</".concat(f,":Query>")}})}},83775:(e,t,r)=>{(e.exports=r(9252)()).push([e.id,".msgapi #mapstore-elevation {\n    width: 100%;\n    /*margin-top: -46px;*/\n    height: 80px;\n    padding: 0 5px;\n}\n\n.msgapi label#mapstore-elevation-label {\n    margin-top: 10px;\n}\n\n.msgapi .custom-tooltip {\n    width: auto;\n    margin: 0;\n    line-height: 24px;\n    border: 1px solid #C1C1C1;\n    background-color: rgba(255, 255, 255, 0.8);\n    padding: 5px;\n}\n.msgapi .custom-tooltip  .label {\n  margin: 0;\n  color: #82CA9D;\n  font-weight: bold;\n  font-size: 16px;\n}\n",""])},85323:(e,t,r)=>{(e.exports=r(9252)()).push([e.id,'\n\n.msgapi .ql-snow .ms-ql-iframe-tooltip[data-mode=video]::before {\n    content: "Enter iframe url:";\n}\n\n\n',""])},70898:(e,t,r)=>{e.exports=r.p+"symbolMissing.svg"},12485:e=>{e.exports='<html>\n  <head>\n    <title>Geoserver GetFeatureInfo output</title>\n  </head>\n    <style type="text/css">\n    \ttable.featureInfo, table.featureInfo td, table.featureInfo th {\n    \t\tborder:1px solid #ddd;\n    \t\tborder-collapse:collapse;\n    \t\tmargin:0;\n    \t\tpadding:0;\n    \t\tfont-size: 90%;\n    \t\tpadding:.2em .1em;\n    \t}\n    \ttable.featureInfo th {\n    \t    padding:.2em .2em;\n    \t\tfont-weight:bold;\n    \t\tbackground:#eee;\n    \t}\n    \ttable.featureInfo td{\n    \t\tbackground:#fff;\n    \t}\n    \ttable.featureInfo tr.odd td{\n    \t\tbackground:#eee;\n    \t}\n    \ttable.featureInfo caption{\n    \t\ttext-align:left;\n    \t\tfont-size:100%;\n    \t\tfont-weight:bold;\n    \t\tpadding:.2em .2em;\n    \t}\n    </style>\n  <body>\n    <table class="featureInfo">\n      <caption class="featureInfo">states</caption>\n      <tr>\n        <th>fid</th>\n          <th >STATE_NAME</th>\n          <th >STATE_FIPS</th>\n          <th >SUB_REGION</th>\n          <th >STATE_ABBR</th>\n          <th >LAND_KM</th>\n      </tr>\n      <tr>\n        <td>states.29</td>\n        <td>Wyoming</td>\n        <td>56</td>\n        <td>Mtn</td>\n        <td>WY</td>\n        <td>251500.801</td>\n      </tr>\n    </table>\n    <br/>\n  </body>\n</html>'},20135:e=>{e.exports='{\n  "type": "FeatureCollection",\n  "totalFeatures": "unknown",\n  "features": [\n      {\n    "type": "Feature",\n    "id": "states.29",\n    "geometry": {\n      "type": "MultiPolygon",\n      "coordinates": [\n        [\n          [\n            [-1.15831389980175E7, 5115884.78673627],\n            [-1.158334883525764E7, 5095927.61163692],\n            [-1.158318319185534E7, 5069757.00399456],\n            [-1.158292671174856E7, 5012817.65726345],\n            [-1.168119588467766E7, 5011501.68893432],\n            [-1.171952218348237E7, 5011805.51696107],\n            [-1.182245230349099E7, 5012358.03633596],\n            [-1.183643948618967E7, 5012535.77548496],\n            [-1.189613934986567E7, 5012118.79424704],\n            [-1.194496385588862E7, 5012366.44384074],\n            [-1.201338092624966E7, 5012844.6510808],\n            [-1.213912753436923E7, 5012116.58180143],\n            [-1.224530617975818E7, 5011994.45558498],\n            [-1.225209889508638E7, 5012037.8190659],\n            [-1.23620611786479E7, 5011845.33978484],\n            [-1.236213086464914E7, 5050542.48847943],\n            [-1.236206540878855E7, 5098070.44035716],\n            [-1.236180135895639E7, 5160419.97558219],\n            [-1.23615872915756E7, 5236675.5279452],\n            [-1.236185657342383E7, 5315010.76063796],\n            [-1.236166543785814E7, 5355424.25785557],\n            [-1.236158395199088E7, 5390784.55533999],\n            [-1.236198815306194E7, 5462754.83859328],\n            [-1.236211728367126E7, 5538995.97145504],\n            [-1.236212318360428E7, 5568867.31982516],\n            [-1.236232444924363E7, 5620854.95417318],\n            [-1.229288824894438E7, 5620316.91583206],\n            [-1.2288781895568E7, 5621314.94100872],\n            [-1.224456390139357E7, 5621970.64383454],\n            [-1.222273014174734E7, 5621455.36603028],\n            [-1.209203215399677E7, 5621150.43241323],\n            [-1.205128866376898E7, 5621546.67495262],\n            [-1.201067341359458E7, 5621492.04691732],\n            [-1.182865814246373E7, 5620919.18090556],\n            [-1.180215653392956E7, 5621084.9446589],\n            [-1.169794913408358E7, 5621495.03806919],\n            [-1.169313957548385E7, 5621693.24344854],\n            [-1.158383374295954E7, 5621104.15015297],\n            [-1.158379210946998E7, 5554761.48947335],\n            [-1.158396710370951E7, 5493626.06569343],\n            [-1.158382183177402E7, 5488039.68771347],\n            [-1.158379377926234E7, 5442710.58976854],\n            [-1.158361967557875E7, 5388962.94229949],\n            [-1.158375815702529E7, 5385191.61647555],\n            [-1.158342865133254E7, 5312442.79715209],\n            [-1.15834303211249E7, 5253508.54391938],\n            [-1.158312797738791E7, 5160957.12459852],\n            [-1.15831389980175E7, 5115884.78673627]\n          ]\n        ]\n      ]\n    },\n    "geometry_name": "the_geom",\n    "properties": {\n      "STATE_NAME": "Wyoming",\n      "STATE_FIPS": "56",\n      "SUB_REGION": "Mtn",\n      "STATE_ABBR": "WY",\n      "LAND_KM": 251500.801,\n      "WATER_KM": 1848.149,\n      "PERSONS": 453588,\n      "FAMILIES": 119825,\n      "HOUSHOLD": 168839,\n      "MALE": 227007,\n      "FEMALE": 226581,\n      "WORKERS": 164561,\n      "DRVALONE": 153679,\n      "CARPOOL": 28109,\n      "PUBTRANS": 2963,\n      "EMPLOYED": 207868,\n      "UNEMPLOY": 13112,\n      "SERVICE": 71419,\n      "MANUAL": 29157,\n      "P_MALE": 0.5,\n      "P_FEMALE": 0.5,\n      "SAMP_POP": 83202,\n      "bbox": [-1.236232444924363E7, 5011501.68893432, -1.158292671174856E7, 5621970.64383454]\n    }\n  }],\n  "crs": {\n    "type": "name",\n    "properties": {\n      "name": "urn:ogc:def:crs:EPSG::3857"\n    }\n  },\n  "bbox": [-1.236232444924363E7, 5011501.68893432, -1.158292671174856E7, 5621970.64383454]\n}'},69494:e=>{e.exports="Results for FeatureType 'http://www.openplans.org/topp:states':\n--------------------------------------------\nthe_geom = [GEOMETRY (Polygon) with 48 points]\nSTATE_NAME = Wyoming\nSTATE_FIPS = 56\nSUB_REGION = Mtn\nSTATE_ABBR = WY\nLAND_KM = 251500.801\nWATER_KM = 1848.149\nPERSONS = 453588.0\nFAMILIES = 119825.0\nHOUSHOLD = 168839.0\nMALE = 227007.0\nFEMALE = 226581.0\nWORKERS = 164561.0\nDRVALONE = 153679.0\nCARPOOL = 28109.0\nPUBTRANS = 2963.0\nEMPLOYED = 207868.0\nUNEMPLOY = 13112.0\nSERVICE = 71419.0\nMANUAL = 29157.0\nP_MALE = 0.5\nP_FEMALE = 0.5\nSAMP_POP = 83202.0\n--------------------------------------------"},57845:(e,t,r)=>{var n=r(83775);"string"==typeof n&&(n=[[e.id,n,""]]),r(14246)(n,{}),n.locals&&(e.exports=n.locals)},89531:(e,t,r)=>{var n=r(85323);"string"==typeof n&&(n=[[e.id,n,""]]),r(14246)(n,{}),n.locals&&(e.exports=n.locals)},18845:(e,t,r)=>{e.exports=r.p+"MapStore2/web/client/components/style/vector/iconNotFound.png"}}]);