!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jQuery")):"function"==typeof define&&define.amd?define(["jQuery"],e):"object"==typeof exports?exports.adressService=e(require("jQuery")):(t.ntt=t.ntt||{},t.ntt.smartit=t.ntt.smartit||{},t.ntt.smartit.adressService=e(t.jQuery))}(window,function(__WEBPACK_EXTERNAL_MODULE__50__){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="NTTDATA/modules/adressService/",i(i.s=105)}([function(t,e,i){"use strict";i.d(e,"b",function(){return s}),i.d(e,"c",function(){return a}),i.d(e,"d",function(){return h}),i.d(e,"e",function(){return l}),i.d(e,"f",function(){return c}),i.d(e,"g",function(){return u}),i.d(e,"h",function(){return p}),i.d(e,"i",function(){return d}),i.d(e,"j",function(){return f}),i.d(e,"k",function(){return _}),i.d(e,"l",function(){return g}),i.d(e,"m",function(){return m}),i.d(e,"n",function(){return v}),i.d(e,"o",function(){return y}),i.d(e,"p",function(){return b}),i.d(e,"q",function(){return x}),i.d(e,"r",function(){return O}),i.d(e,"s",function(){return T}),i.d(e,"t",function(){return S}),i.d(e,"u",function(){return C}),i.d(e,"v",function(){return P}),i.d(e,"w",function(){return I}),i.d(e,"x",function(){return L}),i.d(e,"y",function(){return R}),i.d(e,"z",function(){return M}),i.d(e,"A",function(){return j}),i.d(e,"B",function(){return k}),i.d(e,"C",function(){return A}),i.d(e,"D",function(){return D}),i.d(e,"E",function(){return F}),i.d(e,"F",function(){return N}),i.d(e,"H",function(){return z}),i.d(e,"I",function(){return B}),i.d(e,"J",function(){return G}),i.d(e,"G",function(){return Z}),i.d(e,"a",function(){return W}),i.d(e,"K",function(){return Y});var n=i(10),o=i(52),r=i(22);function s(t){for(var e=f(),i=0,n=t.length;io&&(l|=r.a.RIGHT),hs&&(l|=r.a.ABOVE),l===r.a.UNKNOWN&&(l=r.a.INTERSECTING),l}function f(){return[1/0,1/0,-1/0,-1/0]}function _(t,e,i,n,o){return o?(o[0]=t,o[1]=e,o[2]=i,o[3]=n,o):[t,e,i,n]}function g(t){return _(1/0,1/0,-1/0,-1/0,t)}function m(t,e){var i=t[0],n=t[1];return _(i,n,i,n,e)}function v(t,e){return w(g(e),t)}function y(t,e,i,n,o){return T(g(o),t,e,i,n)}function b(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function x(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function O(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function w(t,e){for(var i=0,n=e.length;ie[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function z(t){return t[2]=a&&m<=l),n||!(s&r.a.RIGHT)||o&r.a.RIGHT||(n=(v=_-(f-l)*g)>=h&&v<=c),n||!(s&r.a.BELOW)||o&r.a.BELOW||(n=(m=f-(_-h)/g)>=a&&m<=l),n||!(s&r.a.LEFT)||o&r.a.LEFT||(n=(v=_-(f-a)*g)>=h&&v<=c)}return n}function W(t,e,i,n){var o=[];if(n>1)for(var r=t[2]-t[0],s=t[3]-t[1],a=0;a=i[2])){var o=F(i),r=Math.floor((n[0]-i[0])/o)*o;t[0]-=r,t[2]-=r}return t}},function(t,e,i){"use strict";function n(){return function(){throw new Error("Unimplemented abstract method.")}()}i.d(e,"b",function(){return n}),i.d(e,"c",function(){return r}),i.d(e,"a",function(){return s});var o=0;function r(t){return t.ol_uid||(t.ol_uid=String(++o))}var s="6.3.1"},function(t,e,i){"use strict";var n,o=i(61),r=i(0),s=i(5),a=i(23),h=function(){function t(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}return t.prototype.canWrapX=function(){return this.canWrapX_},t.prototype.getCode=function(){return this.code_},t.prototype.getExtent=function(){return this.extent_},t.prototype.getUnits=function(){return this.units_},t.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||a.a[this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}(),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=6378137,u=Math.PI*c,p=[-u,-u,u,u],d=[-180,-85,180,85],f=function(t){function e(e){return t.call(this,{code:e,units:a.b.METERS,extent:p,global:!0,worldExtent:d,getPointResolution:function(t,e){return t/Object(s.b)(e[1]/c)}})||this}return l(e,t),e}(h),_=[new f("EPSG:3857"),new f("EPSG:102100"),new f("EPSG:102113"),new f("EPSG:900913"),new f("urn:ogc:def:crs:EPSG:6.18:3:3857"),new f("urn:ogc:def:crs:EPSG::3857"),new f("http://www.opengis.net/gml/srs/epsg.xml#3857")];function g(t,e,i){var n=t.length,o=i>1?i:2,r=e;void 0===r&&(r=o>2?t.slice():new Array(n));for(var s=u,a=0;as?h=s:h<-s&&(h=-s),r[a+1]=h}return r}function m(t,e,i){var n=t.length,o=i>1?i:2,r=e;void 0===r&&(r=o>2?t.slice():new Array(n));for(var s=0;s1?(i=o,n=r):l>0&&(i+=a*l,n+=h*l)}return s(t,e,i,n)}function s(t,e,i,n){var o=i-t,r=n-e;return o*o+r*r}function a(t){for(var e=t.length,i=0;io&&(o=s,n=r)}if(0===o)return null;var a=t[n];t[n]=t[i],t[i]=a;for(var h=i+1;h=0;p--){u[p]=t[p][e]/t[p][p];for(var d=p-1;d>=0;d--)t[d][e]-=t[d][p]*u[p]}return u}function h(t){return 180*t/Math.PI}function l(t){return t*Math.PI/180}function c(t,e){var i=t%e;return i*e<0?i+e:i}function u(t,e,i){return t+i*(e-t)}},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return r}),i.d(e,"c",function(){return s});var n=i(11);function o(t,e,i,n,o){if(n&&n!==t&&(i=i.bind(n)),o){var r=i;i=function(){t.removeEventListener(e,i),r.apply(this,arguments)}}var s={target:t,type:e,listener:i};return t.addEventListener(e,i),s}function r(t,e,i,n){return o(t,e,i,n,!0)}function s(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),Object(n.b)(t))}},function(t,e,i){"use strict";e.a={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},function(t,e,i){"use strict";i.d(e,"c",function(){return r}),i.d(e,"f",function(){return s}),i.d(e,"h",function(){return h}),i.d(e,"a",function(){return l}),i.d(e,"g",function(){return c}),i.d(e,"e",function(){return u}),i.d(e,"b",function(){return p}),i.d(e,"d",function(){return d}),i.d(e,"i",function(){return f});var n=i(10),o=new Array(6);function r(){return[1,0,0,1,0,0]}function s(t,e){var i=t[0],n=t[1],o=t[2],r=t[3],s=t[4],a=t[5],h=e[0],l=e[1],c=e[2],u=e[3],p=e[4],d=e[5];return t[0]=i*h+o*l,t[1]=n*h+r*l,t[2]=i*c+o*u,t[3]=n*c+r*u,t[4]=i*p+o*d+s,t[5]=n*p+r*d+a,t}function a(t,e,i,n,o,r,s){return t[0]=e,t[1]=i,t[2]=n,t[3]=o,t[4]=r,t[5]=s,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function l(t,e){var i=e[0],n=e[1];return e[0]=t[0]*i+t[2]*n+t[4],e[1]=t[1]*i+t[3]*n+t[5],e}function c(t,e,i){return s(t,a(o,e,0,0,i,0,0))}function u(t,e,i){return a(t,e,0,0,i,0,0)}function p(t,e,i,n,o,r,s,a){var h=Math.sin(r),l=Math.cos(r);return t[0]=n*l,t[1]=o*h,t[2]=-n*h,t[3]=o*l,t[4]=s*n*l-a*n*h+e,t[5]=s*o*h+a*o*l+i,t}function d(t,e){var i,o=(i=e)[0]*i[3]-i[1]*i[2];Object(n.a)(0!==o,32);var r=e[0],s=e[1],a=e[2],h=e[3],l=e[4],c=e[5];return t[0]=h/o,t[1]=-s/o,t[2]=-a/o,t[3]=r/o,t[4]=(a*c-h*l)/o,t[5]=-(r*c-s*l)/o,t}function f(t){return"matrix("+t.join(", ")+")"}},function(t,e,i){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i(66);function o(t,e){if(!t)throw new n.a(e)}},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return r}),i.d(e,"d",function(){return s});var n="function"==typeof Object.assign?Object.assign:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),n=1,o=arguments.length;ne?1:t=0}function r(t,e,i){var n=t.length;if(t[0]<=e)return 0;if(e<=t[n-1])return n-1;var o=void 0;if(i>0){for(o=1;o>>0,o=0;o0||i&&0===r)})}i.d(e,"h",function(){return n}),i.d(e,"e",function(){return o}),i.d(e,"g",function(){return r}),i.d(e,"i",function(){return s}),i.d(e,"b",function(){return a}),i.d(e,"c",function(){return h}),i.d(e,"a",function(){return l}),i.d(e,"d",function(){return c}),i.d(e,"f",function(){return u})},function(t,e,i){"use strict";i.d(e,"b",function(){return d});var n,o=i(1),r=i(37),s=i(65),a=i(29),h=i(11),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=function(t){function e(e,i,n){var o=t.call(this,e)||this;return o.key=i,o.oldValue=n,o}return l(e,t),e}(a.a),u=function(t){function e(e){var i=t.call(this)||this;return Object(o.c)(i),i.values_={},void 0!==e&&i.setProperties(e),i}return l(e,t),e.prototype.get=function(t){var e;return this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return Object.keys(this.values_)},e.prototype.getProperties=function(){return Object(h.a)({},this.values_)},e.prototype.notify=function(t,e){var i;i=d(t),this.dispatchEvent(new c(i,t,e)),i=r.a.PROPERTYCHANGE,this.dispatchEvent(new c(i,t,e))},e.prototype.set=function(t,e,i){if(i)this.values_[t]=e;else{var n=this.values_[t];this.values_[t]=e,n!==e&&this.notify(t,n)}},e.prototype.setProperties=function(t,e){for(var i in t)this.set(i,t[i],e)},e.prototype.unset=function(t,e){if(t in this.values_){var i=this.values_[t];delete this.values_[t],e||this.notify(t,i)}},e}(s.a),p={};function d(t){return p.hasOwnProperty(t)?p[t]:p[t]="change:"+t}e.a=u},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"c",function(){return r}),i.d(e,"b",function(){return s}),i.d(e,"g",function(){return a}),i.d(e,"e",function(){return h}),i.d(e,"d",function(){return l}),i.d(e,"f",function(){return c});var n=i(18);function o(t,e,i){var o=i&&i.length?i.shift():n.g?new OffscreenCanvas(t||300,e||300):document.createElement("canvas");return t&&(o.width=t),e&&(o.height=e),o.getContext("2d")}function r(t){var e=t.offsetWidth,i=getComputedStyle(t);return e+=parseInt(i.marginLeft,10)+parseInt(i.marginRight,10)}function s(t){var e=t.offsetHeight,i=getComputedStyle(t);return e+=parseInt(i.marginTop,10)+parseInt(i.marginBottom,10)}function a(t,e){var i=e.parentNode;i&&i.replaceChild(t,e)}function h(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function l(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function c(t,e){for(var i=t.childNodes,n=0;;++n){var o=i[n],r=e[n];if(!o&&!r)break;o!==r&&(o?r?t.insertBefore(r,o):(t.removeChild(o),--n):t.appendChild(r))}}},function(t,e,i){"use strict";i.d(e,"b",function(){return o}),i.d(e,"a",function(){return r}),i.d(e,"c",function(){return s}),i.d(e,"d",function(){return a});var n=i(12);function o(){return!0}function r(){return!1}function s(){}function a(t){var e,i,o,r=!1;return function(){var s=Array.prototype.slice.call(arguments);return r&&this===o&&Object(n.a)(s,i)||(r=!0,o=this,i=s,e=t.apply(this,arguments)),e}}},function(t,e,i){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},function(t,e,i){"use strict";e.a={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source"}},function(t,e,i){"use strict";i.d(e,"b",function(){return o}),i.d(e,"f",function(){return r}),i.d(e,"d",function(){return s}),i.d(e,"a",function(){return a}),i.d(e,"g",function(){return h}),i.d(e,"c",function(){return l}),i.d(e,"e",function(){return c});var n="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",o=-1!==n.indexOf("firefox"),r=(-1!==n.indexOf("safari")&&n.indexOf("chrom"),-1!==n.indexOf("webkit")&&-1==n.indexOf("edge")),s=-1!==n.indexOf("macintosh"),a="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,h="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,l="undefined"!=typeof Image&&Image.prototype.decode,c=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(t){}return t}()},function(t,e,i){"use strict";e.a={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"}},function(t,e,i){"use strict";i.d(e,"c",function(){return n}),i.d(e,"d",function(){return o}),i.d(e,"e",function(){return r}),i.d(e,"b",function(){return s}),i.d(e,"a",function(){return a}),i.d(e,"f",function(){return c});var n="ol-hidden",o="ol-selectable",r="ol-unselectable",s="ol-control",a="ol-collapsed",h=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),l=["style","variant","weight","size","lineHeight","family"],c=function(t){var e=t.match(h);if(!e)return null;for(var i={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},n=0,o=l.length;n=0;--n)if(t[n]!=e[n]){i=!1;break}return i}function s(t,e){var i=Math.cos(e),n=Math.sin(e),o=t[0]*i-t[1]*n,r=t[1]*i+t[0]*n;return t[0]=o,t[1]=r,t}function a(t,e){return t[0]*=e,t[1]*=e,t}function h(t,e){var i=e.getExtent();if(e.canWrapX()&&(t[0]=i[2])){var o=Object(n.E)(i),r=Math.floor((t[0]-i[0])/o);t[0]-=r*o}return t}},function(t,e,i){"use strict";e.a={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},function(t,e,i){"use strict";var n=function(){function t(t){this.propagationStopped,this.type=t,this.target=null}return t.prototype.preventDefault=function(){this.propagationStopped=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}();e.a=n},function(t,e,i){"use strict";var n,o=i(66),r=i(25),s=i(13),a=i(29),h=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l="length",c=function(t){function e(e,i,n){var o=t.call(this,e)||this;return o.element=i,o.index=n,o}return h(e,t),e}(a.a),u=function(t){function e(e,i){var n=t.call(this)||this,o=i||{};if(n.unique_=!!o.unique,n.array_=e||[],n.unique_)for(var r=0,s=n.array_.length;r0;)this.pop()},e.prototype.extend=function(t){for(var e=0,i=t.length;e=1024){var i=0;for(var o in l)0==(3&i++)&&(delete l[o],--c)}e=function(t){var e,i,o,a,l;if(s.exec(t)&&(t=h(t)),r.exec(t)){var c=t.length-1,u=void 0;u=c<=4?1:2;var p=4===c||8===c;e=parseInt(t.substr(1+0*u,u),16),i=parseInt(t.substr(1+1*u,u),16),o=parseInt(t.substr(1+2*u,u),16),a=p?parseInt(t.substr(1+3*u,u),16):255,1==u&&(e=(e<<4)+e,i=(i<<4)+i,o=(o<<4)+o,p&&(a=(a<<4)+a)),l=[e,i,o,a/255]}else 0==t.indexOf("rgba(")?d(l=t.slice(5,-1).split(",").map(Number)):0==t.indexOf("rgb(")?((l=t.slice(4,-1).split(",").map(Number)).push(1),d(l)):Object(n.a)(!1,14);return l}(t),l[t]=e,++c}return e});function p(t){return Array.isArray(t)?t:u(t)}function d(t){return t[0]=Object(o.a)(t[0]+.5|0,0,255),t[1]=Object(o.a)(t[1]+.5|0,0,255),t[2]=Object(o.a)(t[2]+.5|0,0,255),t[3]=Object(o.a)(t[3],0,1),t}function f(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var i=t[1];i!=(0|i)&&(i=i+.5|0);var n=t[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+e+","+i+","+n+","+(void 0===t[3]?1:t[3])+")"}},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i(31);function o(t){return Array.isArray(t)?Object(n.c)(t):t}},function(t,e,i){"use strict";var n=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0})},t.prototype.getColor=function(){return this.color_},t.prototype.setColor=function(t){this.color_=t},t}();e.a=n},function(t,e,i){"use strict";function n(t){return t[0]>0&&t[1]>0}function o(t,e,i){return void 0===i&&(i=[0,0]),i[0]=t[0]*e+.5|0,i[1]=t[1]*e+.5|0,i}function r(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return r})},function(t,e,i){"use strict";e.a={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"}},function(t,e,i){"use strict";var n,o=i(54),r=i(15),s=i(29),a=i(11),h=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=function(t){function e(e){var i=t.call(this)||this;return i.eventTarget_=e,i.pendingRemovals_={},i.dispatching_={},i.listeners_={},i}return h(e,t),e.prototype.addEventListener=function(t,e){if(t&&e){var i=this.listeners_[t];i||(i=[],this.listeners_[t]=i),-1===i.indexOf(e)&&i.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"==typeof t?new s.a(t):t,i=e.type;e.target||(e.target=this.eventTarget_||this);var n,o=this.listeners_[i];if(o){i in this.dispatching_||(this.dispatching_[i]=0,this.pendingRemovals_[i]=0),++this.dispatching_[i];for(var a=0,h=o.length;a0},e.prototype.removeEventListener=function(t,e){var i=this.listeners_[t];if(i){var n=i.indexOf(e);-1!==n&&(t in this.pendingRemovals_?(i[n]=r.c,++this.pendingRemovals_[t]):(i.splice(n,1),0===i.length&&delete this.listeners_[t]))}},e}(o.a);e.a=l},function(t,e,i){"use strict";e.a={PROPERTYCHANGE:"propertychange"}},function(t,e,i){"use strict";i.d(e,"b",function(){return _});var n,o=i(6),r=i(7),s=i(13),a=i(67),h=i(17),l=i(11),c=i(39),u=i(35),p=i(10),d=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),f=function(t){function e(e){var i=this,n=Object(l.a)({},e);delete n.source,(i=t.call(this,n)||this).mapPrecomposeKey_=null,i.mapRenderKey_=null,i.sourceChangeKey_=null,i.renderer_=null,e.render&&(i.render=e.render),e.map&&i.setMap(e.map),i.addEventListener(Object(s.b)(h.a.SOURCE),i.handleSourcePropertyChange_);var o=e.source?e.source:null;return i.setSource(o),i}return d(e,t),e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){return this.get(h.a.SOURCE)||null},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():u.a.UNDEFINED},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(o.c)(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=Object(o.a)(t,r.a.CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_.getFeatures(t)},e.prototype.render=function(t,e){var i=this.getRenderer();if(i.prepareFrame(t))return i.renderFrame(t,e)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Object(o.c)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Object(o.c)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Object(o.a)(t,c.a.PRECOMPOSE,function(t){var e=t.frameState.layerStatesArray,i=this.getLayerState(!1);Object(p.a)(!e.some(function(t){return t.layer===i.layer}),67),e.push(i)},this),this.mapRenderKey_=Object(o.a)(this,r.a.CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(h.a.SOURCE,t)},e.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},e.prototype.hasRenderer=function(){return!!this.renderer_},e.prototype.createRenderer=function(){return null},e.prototype.disposeInternal=function(){this.setSource(null),t.prototype.disposeInternal.call(this)},e}(a.a);function _(t,e){if(!t.visible)return!1;var i=e.resolution;if(i=t.maxResolution)return!1;var n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}e.a=f},function(t,e,i){"use strict";e.a={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},function(t,e,i){"use strict";var n,o=i(15),r=i(47),s=i(13),a=i(14),h=i(6),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=function(t){function e(e){var i=t.call(this)||this;return i.element=e.element?e.element:null,i.target_=null,i.map_=null,i.listenerKeys=[],i.render_=e.render?e.render:o.c,e.target&&i.setTarget(e.target),i}return l(e,t),e.prototype.disposeInternal=function(){Object(a.e)(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&Object(a.e)(this.element);for(var e=0,i=this.listenerKeys.length;ee?n:new Array(1+e-o).join("0")+n}i.d(e,"a",function(){return n})},function(t,e,i){"use strict";function n(t,e,i,n){for(var o=0,r=i.length;othis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function o(t,e,i,o,r){return void 0!==r?(r.minX=t,r.maxX=e,r.minY=i,r.maxY=o,r):new n(t,e,i,o)}e.b=n},function(t,e,i){"use strict";var n=function(){function t(){this.disposed_=!1}return t.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){},t}();e.a=n},function(t,e,i){"use strict";var n=i(1),o=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.displacement_=t.displacement}return t.prototype.clone=function(){return new t({opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getDisplacement=function(){return this.displacement_},t.prototype.getAnchor=function(){return Object(n.b)()},t.prototype.getImage=function(t){return Object(n.b)()},t.prototype.getHitDetectionImage=function(t){return Object(n.b)()},t.prototype.getImageState=function(){return Object(n.b)()},t.prototype.getImageSize=function(){return Object(n.b)()},t.prototype.getHitDetectionImageSize=function(){return Object(n.b)()},t.prototype.getOrigin=function(){return Object(n.b)()},t.prototype.getSize=function(){return Object(n.b)()},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t},t.prototype.listenImageChange=function(t){Object(n.b)()},t.prototype.load=function(){Object(n.b)()},t.prototype.unlistenImageChange=function(t){Object(n.b)()},t}();e.a=o},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"c",function(){return r}),i.d(e,"b",function(){return a});var n=i(5);function o(t,e,i,o,r,s,a){var h=(i-e)/o;if(h<3){for(;e0;){for(var p=c.pop(),d=c.pop(),f=0,_=t[d],g=t[d+1],m=t[p],v=t[p+1],y=d+o;yf&&(u=y,f=O)}f>r&&(l[(u-e)/o]=1,d+o0&&g>f)&&(_<0&&m<_||_==m||_>0&&m>_)?(h=p,l=d):(s[a++]=h,s[a++]=l,c=h,u=l,h=p,l=d)}}return s[a++]=h,s[a++]=l,a}function a(t,e,i,n,o,r,a,h){for(var l=0,c=i.length;l1)a=i;else{if(d>0){for(var f=0;fo&&(o=l),r=a,s=h}return o}function d(t,e,i,n,o){for(var r=0,s=i.length;rr&&(l-a)*(r-h)-(o-a)*(c-h)>0&&s++:c<=r&&(l-a)*(r-h)-(o-a)*(c-h)<0&&s--,a=l,h=c}return 0!==s}function E(t,e,i,n,o,r){if(0===i.length)return!1;if(!T(t,e,i[0],n,o,r))return!1;for(var s=1,a=i.length;sx&&E(t,e,i,o,c=(u+p)/2,_)&&(b=c,x=O),u=p}return isNaN(b)&&(b=r[s]),a?(a.push(b,_,x),a):[b,_,x]}function C(t,e,i,n,r){var s=Object(o.s)(Object(o.j)(),t,e,i,n);return!!Object(o.F)(r,s)&&(!!Object(o.g)(r,s)||(s[0]>=r[0]&&s[2]<=r[2]||(s[1]>=r[1]&&s[3]<=r[3]||function(t,e,i,n,o){for(var r,s=[t[e],t[e+1]],a=[];e+n0}function R(t,e,i,n,o){for(var r=void 0!==o&&o,s=0,a=i.length;sthis.maxCacheSize_},t.prototype.expire=function(){if(this.canExpireCache()){var t=0;for(var e in this.cache_){var i=this.cache_[e];0!=(3&t++)||i.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,i){var n=r(t,e,i);return n in this.cache_?this.cache_[n]:null},t.prototype.set=function(t,e,i,n){var o=r(t,e,i);this.cache_[o]=n,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}();function r(t,e,i){return e+":"+t+":"+(i?Object(n.b)(i):"null")}var s=new o},function(t,e,i){"use strict";var n,o=i(10),r=(i(3),i(46)),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=function(t){function e(e){var i=e||{};return t.call(this,{points:1/0,fill:i.fill,radius:i.radius,stroke:i.stroke,displacement:void 0!==i.displacement?i.displacement:[0,0]})||this}return s(e,t),e.prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),displacement:this.getDisplacement().slice()});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(r.a),h=i(33),l=i(43);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}i.d(e,"c",function(){return p}),i.d(e,"a",function(){return f});var u=function(){function t(t){var e=t||{};this.geometry_=null,this.geometryFunction_=_,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}return t.prototype.clone=function(){var e=this.getGeometry();return e&&"object"===c(e)&&(e=e.clone()),new t({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.setRenderer=function(t){this.renderer_=t},t.prototype.getGeometry=function(){return this.geometry_},t.prototype.getGeometryFunction=function(){return this.geometryFunction_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(t){this.fill_=t},t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(t){this.image_=t},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.getText=function(){return this.text_},t.prototype.setText=function(t){this.text_=t},t.prototype.getZIndex=function(){return this.zIndex_},t.prototype.setGeometry=function(t){"function"==typeof t?this.geometryFunction_=t:"string"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=_,this.geometry_=t},t.prototype.setZIndex=function(t){this.zIndex_=t},t}();function p(t){var e;if("function"==typeof t)e=t;else{var i;if(Array.isArray(t))i=t;else Object(o.a)("function"==typeof t.getZIndex,41),i=[t];e=function(){return i}}return e}var d=null;function f(t,e){if(!d){var i=new h.a({color:"rgba(255,255,255,0.4)"}),n=new l.a({color:"#3399CC",width:1.25});d=[new u({image:new a({fill:i,stroke:n,radius:5}),fill:i,stroke:n})]}return d}function _(t){return t.getGeometry()}e.b=u},function(t,e,i){"use strict";var n,o=i(7),r=i(40),s=i(20),a=i(26),h=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=function(t){function e(e){var i=this,n=e||{};i=t.call(this,{element:document.createElement("div"),target:n.target})||this;var r=void 0!==n.className?n.className:"ol-zoom",a=void 0!==n.delta?n.delta:1,h=void 0!==n.zoomInLabel?n.zoomInLabel:"+",l=void 0!==n.zoomOutLabel?n.zoomOutLabel:"−",c=void 0!==n.zoomInTipLabel?n.zoomInTipLabel:"Zoom in",u=void 0!==n.zoomOutTipLabel?n.zoomOutTipLabel:"Zoom out",p=document.createElement("button");p.className=r+"-in",p.setAttribute("type","button"),p.title=c,p.appendChild("string"==typeof h?document.createTextNode(h):h),p.addEventListener(o.a.CLICK,i.handleClick_.bind(i,a),!1);var d=document.createElement("button");d.className=r+"-out",d.setAttribute("type","button"),d.title=u,d.appendChild("string"==typeof l?document.createTextNode(l):l),d.addEventListener(o.a.CLICK,i.handleClick_.bind(i,-a),!1);var f=r+" "+s.e+" "+s.b,_=i.element;return _.className=f,_.appendChild(p),_.appendChild(d),i.duration_=void 0!==n.duration?n.duration:250,i}return h(e,t),e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var i=e.getZoom();if(void 0!==i){var n=e.getConstrainedZoom(i+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:n,duration:this.duration_,easing:a.b})):e.setZoom(n)}}},e}(r.a);e.a=l},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return s});var n=i(5),o=(i(3),6371008.8);function r(t,e,i){var r=i||o,s=Object(n.i)(t[1]),a=Object(n.i)(e[1]),h=(a-s)/2,l=Object(n.i)(e[0]-t[0])/2,c=Math.sin(h)*Math.sin(h)+Math.sin(l)*Math.sin(l)*Math.cos(s)*Math.cos(a);return 2*r*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}function s(t,e,i,r){var s=r||o,a=Object(n.i)(t[1]),h=Object(n.i)(t[0]),l=e/s,c=Math.asin(Math.sin(a)*Math.cos(l)+Math.cos(a)*Math.sin(l)*Math.cos(i)),u=h+Math.atan2(Math.sin(i)*Math.sin(l)*Math.cos(a),Math.cos(l)-Math.sin(a)*Math.sin(c));return[Object(n.h)(u),Object(n.h)(c)]}},function(t,e,i){"use strict";var n,o=i(12),r=i(32),s=i(0),a=i(3),h=i(41),l=i(24),c=i(70),u=i(4),p=i(8),d=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),f=function(t){function e(e,i,n,o,r,s,a){var h=t.call(this)||this;return h.context_=e,h.pixelRatio_=i,h.extent_=n,h.transform_=o,h.viewRotation_=r,h.squaredTolerance_=s,h.userTransform_=a,h.contextFillState_=null,h.contextStrokeState_=null,h.contextTextState_=null,h.fillState_=null,h.strokeState_=null,h.image_=null,h.imageAnchorX_=0,h.imageAnchorY_=0,h.imageHeight_=0,h.imageOpacity_=0,h.imageOriginX_=0,h.imageOriginY_=0,h.imageRotateWithView_=!1,h.imageRotation_=0,h.imageScale_=0,h.imageWidth_=0,h.text_="",h.textOffsetX_=0,h.textOffsetY_=0,h.textRotateWithView_=!1,h.textRotation_=0,h.textScale_=0,h.textFillState_=null,h.textStrokeState_=null,h.textState_=null,h.pixelCoordinates_=[],h.tmpLocalTransform_=Object(p.c)(),h}return d(e,t),e.prototype.drawImages_=function(t,e,i,n){if(this.image_){var o=Object(l.c)(t,e,i,2,this.transform_,this.pixelCoordinates_),r=this.context_,s=this.tmpLocalTransform_,a=r.globalAlpha;1!=this.imageOpacity_&&(r.globalAlpha=a*this.imageOpacity_);var h=this.imageRotation_;this.imageRotateWithView_&&(h+=this.viewRotation_);for(var c=0,u=o.length;co;){if(r-o>600){var a=r-o+1,h=n-o+1,l=Math.log(a),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(a-c)/a)*(h-a/2<0?-1:1),p=Math.max(o,Math.floor(n-h*c/a+u)),d=Math.min(r,Math.floor(n+(a-h)*c/a+u));t(i,n,p,d,s)}var f=i[n],_=o,g=r;for(e(i,o,n),s(i[r],f)>0&&e(i,o,r);_0;)g--}0===s(i[o],f)?e(i,o,g):e(i,++g,r),g<=n&&(o=g+1),n<=g&&(r=g-1)}}(t,n,o||0,r||t.length-1,s||i)}function e(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function i(t,e){return te?1:0}var n=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function o(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n=t.minX&&e.maxY>=t.minY}function f(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function _(e,i,n,o,r){for(var s=[i,n];s.length;)if(!((n=s.pop())-(i=s.pop())<=o)){var a=i+Math.ceil((n-i)/o/2)*o;t(e,a,i,n,r),s.push(i,a,a,n)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(t){var e=this.data,i=[];if(!d(t,e))return i;for(var n=this.toBBox,o=[];e;){for(var r=0;r=0&&o[e].children.length>this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(n,o,e)},n.prototype._split=function(t,e){var i=t[e],n=i.children.length,o=this._minEntries;this._chooseSplitAxis(i,o,n);var s=this._chooseSplitIndex(i,o,n),a=f(i.children.splice(s,i.children.length-s));a.height=i.height,a.leaf=i.leaf,r(i,this.toBBox),r(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},n.prototype._splitRoot=function(t,e){this.data=f([t,e]),this.data.height=t.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(t,e,i){for(var n,o,r,a,h,l,u,p=1/0,d=1/0,f=e;f<=i-e;f++){var _=s(t,0,f,this.toBBox),g=s(t,f,i,this.toBBox),m=(o=_,r=g,a=void 0,h=void 0,l=void 0,u=void 0,a=Math.max(o.minX,r.minX),h=Math.max(o.minY,r.minY),l=Math.min(o.maxX,r.maxX),u=Math.min(o.maxY,r.maxY),Math.max(0,l-a)*Math.max(0,u-h)),v=c(_)+c(g);m=e;d--){var f=t.children[d];a(h,t.leaf?o(f):f),l+=u(h)}return l},n.prototype._adjustParentBBoxes=function(t,e,i){for(var n=i;n>=0;n--)a(e[n],t)},n.prototype._condense=function(t){for(var e=t.length-1,i=void 0;e>=0;e--)0===t[e].children.length?e>0?(i=t[e-1].children).splice(i.indexOf(t[e]),1):this.clear():r(t[e],this.toBBox)},n},"object"===s(e)&&void 0!==t?t.exports=r():void 0===(o="function"==typeof(n=r)?n.call(e,i,e,t):n)||(t.exports=o)},function(t,e,i){"use strict";var n,o=i(1),r=i(13),s=i(2),a=i(35),h=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=function(t){function e(e){var i=t.call(this)||this;return i.projection_=Object(s.g)(e.projection),i.attributions_=c(e.attributions),i.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,i.loading=!1,i.state_=void 0!==e.state?e.state:a.a.READY,i.wrapX_=void 0!==e.wrapX&&e.wrapX,i}return h(e,t),e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolutions=function(){return Object(o.b)()},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=c(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(r.a);function c(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}e.a=l},function(t,e,i){"use strict";e.a={POINT:"point",LINE:"line"}},function(t,e,i){"use strict";var n=i(51),o=i(15),r=i(5);function s(t,e,i){return function(n,o,s,a){if(n){var h=e?0:s[0]*o,l=e?0:s[1]*o,c=t[0]+h/2,u=t[2]-h/2,p=t[1]+l/2,d=t[3]-l/2;c>u&&(u=c=(u+c)/2),p>d&&(d=p=(d+p)/2);var f=Object(r.a)(n[0],c,u),_=Object(r.a)(n[1],p,d),g=30*o;return a&&i&&(f+=-g*Math.log(1+Math.max(0,c-n[0])/g)+g*Math.log(1+Math.max(0,n[0]-u)/g),_+=-g*Math.log(1+Math.max(0,p-n[1])/g)+g*Math.log(1+Math.max(0,n[1]-d)/g)),[f,_]}}}function a(t){return t}var h=i(13),l=i(12),c=i(0);function u(t,e,i,n){var o=Object(c.E)(e)/i[0],r=Object(c.A)(e)/i[1];return n?Math.min(t,Math.max(o,r)):Math.min(t,Math.min(o,r))}function p(t,e,i){var n=Math.min(t,e);return n*=Math.log(1+50*Math.max(0,t/e-1))/50+1,i&&(n=Math.max(n,i),n/=Math.log(1+50*Math.max(0,i/t-1))/50+1),Object(r.a)(n,i/2,2*e)}function d(t,e,i,n,o){return function(s,a,h,l){if(void 0!==s){var c=n?u(t,n,h,o):t;return(void 0===i||i)&&l?p(s,c,e):Object(r.a)(s,e,c)}}}var f,_=i(42),g=i(21),m="center",v="resolution",y="rotation",b=i(10),x=i(27),O=i(26),w=i(3),T=i(57),E=i(11),S=i(2),C=i(23),P=(f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),I=0,L=function(t){function e(e){var i=t.call(this)||this,n=Object(E.a)({},e);return i.hints_=[0,0],i.animations_=[],i.updateAnimationKey_,i.projection_=Object(S.b)(n.projection,"EPSG:3857"),i.viewportSize_=[100,100],i.targetCenter_=null,i.targetResolution_,i.targetRotation_,i.cancelAnchor_=void 0,n.center&&(n.center=Object(S.e)(n.center,i.projection_)),n.extent&&(n.extent=Object(S.f)(n.extent,i.projection_)),i.applyOptions_(n),i}return P(e,t),e.prototype.applyOptions_=function(t){var e=function(t){var e,i,o,s=void 0!==t.minZoom?t.minZoom:I,a=void 0!==t.maxZoom?t.maxZoom:28,h=void 0!==t.zoomFactor?t.zoomFactor:2,f=void 0!==t.multiWorld&&t.multiWorld,_=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,g=void 0!==t.showFullExtent&&t.showFullExtent,m=Object(S.b)(t.projection,"EPSG:3857"),v=m.getExtent(),y=t.constrainOnlyCenter,b=t.extent;f||b||!m.isGlobal()||(y=!1,b=v);if(void 0!==t.resolutions){var x=t.resolutions;i=x[s],o=void 0!==x[a]?x[a]:x[x.length-1],e=t.constrainResolution?function(t,e,i,n){return function(o,s,a,h){if(void 0!==o){var c=t[0],d=t[t.length-1],f=i?u(c,i,a,n):c;if(h)return void 0===e||e?p(o,f,d):Object(r.a)(o,d,f);var _=Math.min(f,o),g=Math.floor(Object(l.g)(t,_,s));return t[g]>f&&g1&&"function"==typeof arguments[i-1]&&(e=arguments[i-1],--i),!this.isDef()){var n=arguments[i-1];return n.center&&this.setCenterInternal(n.center),void 0!==n.zoom&&this.setZoom(n.zoom),void 0!==n.rotation&&this.setRotation(n.rotation),void(e&&R(e,!0))}for(var o=Date.now(),s=this.targetCenter_.slice(),a=this.targetResolution_,h=this.targetRotation_,l=[],c=0;c0},e.prototype.getInteracting=function(){return this.hints_[g.a.INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint(g.a.ANIMATING,-this.hints_[g.a.ANIMATING]);for(var e=0,i=this.animations_.length;e=0;--i){for(var n=this.animations_[i],o=!0,s=0,a=n.length;s0?l/h.duration:1;c>=1?(h.complete=!0,c=1):o=!1;var u=h.easing(c);if(h.sourceCenter){var p=h.sourceCenter[0],d=h.sourceCenter[1],f=p+u*(h.targetCenter[0]-p),_=d+u*(h.targetCenter[1]-d);this.targetCenter_=[f,_]}if(h.sourceResolution&&h.targetResolution){var m=1===u?h.targetResolution:h.sourceResolution+u*(h.targetResolution-h.sourceResolution);if(h.anchor){var v=this.getViewportSize_(this.getRotation()),y=this.constraints_.resolution(m,0,v,!0);this.targetCenter_=this.calculateCenterZoom(y,h.anchor)}this.targetResolution_=m,this.applyTargetState_(!0)}if(void 0!==h.sourceRotation&&void 0!==h.targetRotation){var b=1===u?Object(r.d)(h.targetRotation+Math.PI,2*Math.PI)-Math.PI:h.sourceRotation+u*(h.targetRotation-h.sourceRotation);if(h.anchor){var x=this.constraints_.rotation(b,!0);this.targetCenter_=this.calculateCenterRotate(x,h.anchor)}this.targetRotation_=b}if(this.applyTargetState_(!0),e=!0,!h.complete)break}}if(o){this.animations_[i]=null,this.setHint(g.a.ANIMATING,-1);var O=n[0].callback;O&&R(O,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,e){var i,n=this.getCenterInternal();return void 0!==n&&(i=[n[0]-e[0],n[1]-e[1]],Object(x.c)(i,t-this.getRotation()),Object(x.a)(i,e)),i},e.prototype.calculateCenterZoom=function(t,e){var i,n=this.getCenterInternal(),o=this.getResolution();void 0!==n&&void 0!==o&&(i=[e[0]-t*(e[0]-n[0])/o,e[1]-t*(e[1]-n[1])/o]);return i},e.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var i=e[0],n=e[1];return[Math.abs(i*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(n*Math.cos(t))]}return e},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?Object(S.l)(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(m)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.options_.constrainResolution},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=this.calculateExtentInternal(t);return Object(S.m)(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSize_(),i=this.getCenterInternal();Object(b.a)(i,1);var n=this.getResolution();Object(b.a)(void 0!==n,2);var o=this.getRotation();return Object(b.a)(void 0!==o,3),Object(c.z)(i,n,o,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(v)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal(Object(S.f)(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var i=e||this.getViewportSize_(),n=Object(c.E)(t)/i[0],o=Object(c.A)(t)/i[1];return Math.max(n,o)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,o=Math.log(i/n)/Math.log(e);return function(t){return i/Math.pow(e,t*o)}},e.prototype.getRotation=function(){return this.get(y)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,o=Math.log(i/n)/e;return function(t){return Math.log(i/t)/e/o}},e.prototype.getState=function(){var t=this.getCenterInternal(),e=this.getProjection(),i=this.getResolution(),n=this.getRotation();return{center:t.slice(0),projection:void 0!==e?e:null,resolution:i,rotation:n,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,i,n=this.minZoom_||0;if(this.resolutions_){var o=Object(l.g)(this.resolutions_,t,1);n=o,e=this.resolutions_[o],i=o==this.resolutions_.length-1?2:e/this.resolutions_[o+1]}else e=this.maxResolution_,i=this.zoomFactor_;return n+Math.log(e/t)/Math.log(i)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=Object(r.a)(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,Object(r.a)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var i,n=Object(E.a)({size:this.getViewportSize_()},e||{});if(Object(b.a)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)){Object(b.a)(!Object(c.H)(t),25);var o=Object(S.f)(t,this.getProjection());i=Object(T.b)(o)}else if(t.getType()===w.a.CIRCLE){o=Object(S.f)(t.getExtent(),this.getProjection());(i=Object(T.b)(o)).rotate(this.getRotation(),Object(c.x)(o))}else{var r=Object(S.k)();i=r?t.clone().transform(r,this.getProjection()):t}this.fitInternal(i,n)},e.prototype.fitInternal=function(t,e){var i=e||{},n=i.size;n||(n=this.getViewportSize_());var r,s=void 0!==i.padding?i.padding:[0,0,0,0],a=void 0!==i.nearest&&i.nearest;r=void 0!==i.minResolution?i.minResolution:void 0!==i.maxZoom?this.getResolutionForZoom(i.maxZoom):0;for(var h=t.getFlatCoordinates(),l=this.getRotation(),c=Math.cos(-l),u=Math.sin(-l),p=1/0,d=1/0,f=-1/0,_=-1/0,g=t.getStride(),m=0,v=h.length;m0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!Object(r.a)(e,this.renderedAttributions_)){Object(h.d)(this.ulElement_);for(var n=0,o=e.length;n0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:f.b}):t.setRotation(0))}},e}(s.a),v=i(60);function y(t){var e=t||{},i=new o.a;return(void 0===e.zoom||e.zoom)&&i.push(new v.a(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&i.push(new m(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&i.push(new d(e.attributionOptions)),i}i.d(e,"a",function(){return y})},function(t,e,i){"use strict";var n,o=i(10),r=i(6),s=i(7),a=i(13),h=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=function(t){function e(e){var i=t.call(this)||this;if(i.id_=void 0,i.geometryName_="geometry",i.style_=null,i.styleFunction_=void 0,i.geometryChangeKey_=null,i.addEventListener(Object(a.b)(i.geometryName_),i.handleGeometryChanged_),e)if("function"==typeof e.getSimplifiedGeometry){var n=e;i.setGeometry(n)}else{var o=e;i.setProperties(o)}return i}return h(e,t),e.prototype.clone=function(){var t=new e(this.getProperties());t.setGeometryName(this.getGeometryName());var i=this.getGeometry();i&&t.setGeometry(i.clone());var n=this.getStyle();return n&&t.setStyle(n),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Object(r.c)(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=Object(r.a)(t,s.a.CHANGE,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?function(t){if("function"==typeof t)return t;var e;if(Array.isArray(t))e=t;else{Object(o.a)("function"==typeof t.getZIndex,41);var i=t;e=[i]}return function(){return e}}(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeEventListener(Object(a.b)(this.geometryName_),this.handleGeometryChanged_),this.geometryName_=t,this.addEventListener(Object(a.b)(this.geometryName_),this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(a.a);e.a=l},function(t,e,i){"use strict";var n,o=i(38),r=i(11),s=i(59),a=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h="renderOrder",l=function(t){function e(e){var i=this,n=e||{},o=Object(r.a)({},n);return delete o.style,delete o.renderBuffer,delete o.updateWhileAnimating,delete o.updateWhileInteracting,(i=t.call(this,o)||this).declutter_=void 0!==n.declutter&&n.declutter,i.renderBuffer_=void 0!==n.renderBuffer?n.renderBuffer:100,i.style_=null,i.styleFunction_=void 0,i.setStyle(n.style),i.updateWhileAnimating_=void 0!==n.updateWhileAnimating&&n.updateWhileAnimating,i.updateWhileInteracting_=void 0!==n.updateWhileInteracting&&n.updateWhileInteracting,i}return a(e,t),e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(h)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.setRenderOrder=function(t){this.set(h,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:s.a,this.styleFunction_=null===t?void 0:Object(s.c)(this.style_),this.changed()},e}(o.a),c=i(1),u=i(21),p=i(0),d=i(27),f=i(2),_=i(12),g=i(32),m=i(22),v=i(3),y=i(48),b=i(70),x=i(4),O={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},w=[O.FILL],T=[O.STROKE],E=[O.BEGIN_PATH],S=[O.CLOSE_PATH],C=O,P=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),I=function(t){function e(e,i,n,o){var r=t.call(this)||this;return r.tolerance=e,r.maxExtent=i,r.pixelRatio=o,r.maxLineWidth=0,r.resolution=n,r.beginGeometryInstruction1_=null,r.beginGeometryInstruction2_=null,r.bufferedMaxExtent_=null,r.instructions=[],r.coordinates=[],r.tmpCoordinate_=[],r.hitDetectionInstructions=[],r.state={},r}return P(e,t),e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map(function(t){return t*e})},e.prototype.appendFlatCoordinates=function(t,e,i,n,o,r){var s=this.coordinates.length,a=this.getBufferedMaxExtent();r&&(e+=n);var h,l,c,u=t[e],d=t[e+1],f=this.tmpCoordinate_,_=!0;for(h=e+n;hthis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,i=[C.SET_FILL_STYLE,e];return"string"!=typeof e&&i.push(!0),i},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[C.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e){var i=t.fillStyle;"string"==typeof i&&t.currentFillStyle==i||(void 0!==i&&this.instructions.push(e.call(this,t)),t.currentFillStyle=i)},e.prototype.updateStrokeStyle=function(t,e){var i=t.strokeStyle,n=t.lineCap,o=t.lineDash,r=t.lineDashOffset,s=t.lineJoin,a=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=n||o!=t.currentLineDash&&!Object(_.a)(t.currentLineDash,o)||t.currentLineDashOffset!=r||t.currentLineJoin!=s||t.currentLineWidth!=a||t.currentMiterLimit!=h)&&(void 0!==i&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=o,t.currentLineDashOffset=r,t.currentLineJoin=s,t.currentLineWidth=a,t.currentMiterLimit=h)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[C.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(p.d)(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Object(p.c)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(b.a),L=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),R=function(t){function e(e,i,n,o){var r=t.call(this,e,i,n,o)||this;return r.declutterGroups_=null,r.hitDetectionImage_=null,r.image_=null,r.anchorX_=void 0,r.anchorY_=void 0,r.height_=void 0,r.opacity_=void 0,r.originX_=void 0,r.originY_=void 0,r.rotateWithView_=void 0,r.rotation_=void 0,r.scale_=void 0,r.width_=void 0,r}return L(e,t),e.prototype.drawCoordinates_=function(t,e,i,n){return this.appendFlatCoordinates(t,e,i,n,!1,!1)},e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),n=t.getStride(),o=this.coordinates.length,r=this.drawCoordinates_(i,0,i.length,n);this.instructions.push([C.DRAW_IMAGE,o,r,this.image_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([C.DRAW_IMAGE,o,r,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),n=t.getStride(),o=this.coordinates.length,r=this.drawCoordinates_(i,0,i.length,n);this.instructions.push([C.DRAW_IMAGE,o,r,this.image_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([C.DRAW_IMAGE,o,r,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,e){var i=t.getAnchor(),n=t.getSize(),o=t.getHitDetectionImage(1),r=t.getImage(1),s=t.getOrigin();this.anchorX_=i[0],this.anchorY_=i[1],this.declutterGroups_=e,this.hitDetectionImage_=o,this.image_=r,this.height_=n[1],this.opacity_=t.getOpacity(),this.originX_=s[0],this.originY_=s[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScale(),this.width_=n[0]},e}(I),M=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),j=function(t){function e(e,i,n,o){return t.call(this,e,i,n,o)||this}return M(e,t),e.prototype.drawFlatCoordinates_=function(t,e,i,n){var o=this.coordinates.length,r=this.appendFlatCoordinates(t,e,i,n,!1,!1),s=[C.MOVE_TO_LINE_TO,o,r];return this.instructions.push(s),this.hitDetectionInstructions.push(s),i},e.prototype.drawLineString=function(t,e){var i=this.state,n=i.strokeStyle,o=i.lineWidth;if(void 0!==n&&void 0!==o){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([C.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],E);var r=t.getFlatCoordinates(),s=t.getStride();this.drawFlatCoordinates_(r,0,r.length,s),this.hitDetectionInstructions.push(T),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var i=this.state,n=i.strokeStyle,o=i.lineWidth;if(void 0!==n&&void 0!==o){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([C.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],E);for(var r=t.getEnds(),s=t.getFlatCoordinates(),a=t.getStride(),h=0,l=0,c=r.length;lt&&(m>g&&(g=m,f=v,_=r),m=0,v=r-o)),s=a,c=p,u=d),h=y,l=b}return(m+=a)>g?[v,r]:[f,_]}var N=i(73),z=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),B={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},G={Circle:D,Default:I,Image:R,LineString:j,Polygon:D,Text:function(t){function e(e,i,n,o){var r=t.call(this,e,i,n,o)||this;return r.declutterGroups_,r.labels_=null,r.text_="",r.textOffsetX_=0,r.textOffsetY_=0,r.textRotateWithView_=void 0,r.textRotation_=0,r.textFillState_=null,r.fillStates={},r.textStrokeState_=null,r.strokeStates={},r.textState_={},r.textStates={},r.textKey_="",r.fillKey_="",r.strokeKey_="",r}return z(e,t),e.prototype.finish=function(){var e=t.prototype.finish.call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e},e.prototype.drawText=function(t,e){var i=this.textFillState_,n=this.textStrokeState_,o=this.textState_;if(""!==this.text_&&o&&(i||n)){var r,s,a=this.coordinates.length,h=t.getType(),l=null,c=2,u=2;if(o.placement===N.a.LINE){if(!Object(p.F)(this.getBufferedMaxExtent(),t.getExtent()))return;var d=void 0;if(l=t.getFlatCoordinates(),u=t.getStride(),h==v.a.LINE_STRING)d=[l.length];else if(h==v.a.MULTI_LINE_STRING)d=t.getEnds();else if(h==v.a.POLYGON)d=t.getEnds().slice(0,1);else if(h==v.a.MULTI_POLYGON){var f=t.getEndss();for(d=[],r=0,s=f.length;rt[i-n],_=o.length,g=t[e],m=t[e+1],v=t[e+=n],y=t[e+1],b=0,x=Math.sqrt(Math.pow(v-g,2)+Math.pow(y-m,2)),O=!1,w=0;w<_;++w){for(var T=o[u=f?_-w-1:w],E=a*h(l,T,c),S=r+E/2;e0?-Math.PI:Math.PI),void 0!==p){var I=P-p;if(O=O||0!==I,I+=I>Math.PI?-2*Math.PI:I<-Math.PI?2*Math.PI:0,Math.abs(I)>s)return null}p=P;var L=C/x,R=Object(K.c)(g,v,L),M=Object(K.c)(m,y,L);d[u]=[R,M,E/2,P,T],r+=E}return O?d:[[d[0][0],d[0][1],d[0][2],d[0][3],o]]}var $=i(71),q=i.n($),J=i(18),Q=Object(p.j)(),tt=Object(X.c)(),et=[],it=[],nt=[],ot=[],rt=function(){function t(t,e,i,n){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.declutterItems=[],this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=Object(X.c)(),this.hitDetectionInstructions=n.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=n.fillStates||{},this.strokeStates=n.strokeStates||{},this.textStates=n.textStates||{},this.widths_={},this.labels_={}}return t.prototype.createLabel=function(t,e,i,n){var o=t+e+i+n;if(this.labels_[o])return this.labels_[o];var r=n?this.strokeStates[n]:null,s=i?this.fillStates[i]:null,a=this.textStates[e],h=this.pixelRatio,l=a.scale*h,c=B[a.textAlign||x.m],u=n&&r.lineWidth?r.lineWidth:0,p=t.split("\n"),d=p.length,f=[],_=Object(x.r)(a.font,p,f),g=Object(x.q)(a.font),m=g*d,v=_+u,y=[],b={width:Math.ceil((v+2)*l),height:Math.ceil((m+u)*l),contextInstructions:y};(1!=l&&y.push("scale",[l,l]),y.push("font",a.font),n)&&(y.push("strokeStyle",r.strokeStyle),y.push("lineWidth",u),y.push("lineCap",r.lineCap),y.push("lineJoin",r.lineJoin),y.push("miterLimit",r.miterLimit),(J.g?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D).prototype.setLineDash&&(y.push("setLineDash",[r.lineDash]),y.push("lineDashOffset",r.lineDashOffset)));i&&y.push("fillStyle",s.fillStyle),y.push("textBaseline","middle"),y.push("textAlign","center");var O,w=.5-c,T=c*v+w*u;if(n)for(O=0;On.width?n.width-l:_,O=a+c>n.height?n.height-c:a,w=g[3]+b*d+g[1],T=g[0]+O*d+g[2],E=e-g[3],S=i-g[0];(y||0!==u)&&(et[0]=E,ot[0]=E,et[1]=S,it[1]=S,it[0]=E+w,nt[0]=it[0],nt[1]=S+T,ot[1]=nt[1]);var C=null;if(0!==u){var P=e+o,I=i+r;C=Object(X.b)(tt,P,I,1,1,u,-P,-I),Object(X.a)(tt,et),Object(X.a)(tt,it),Object(X.a)(tt,nt),Object(X.a)(tt,ot),Object(p.k)(Math.min(et[0],it[0],nt[0],ot[0]),Math.min(et[1],it[1],nt[1],ot[1]),Math.max(et[0],it[0],nt[0],ot[0]),Math.max(et[1],it[1],nt[1],ot[1]),Q)}else Object(p.k)(E,S,E+w,S+T,Q);var L=t.canvas,R=v?v[2]*d/2:0,M=Q[0]-R<=L.width&&Q[2]+R>=0&&Q[1]-R<=L.height&&Q[3]+R>=0;if(f&&(e=Math.round(e),i=Math.round(i)),s){if(!M&&1==s[4])return;Object(p.q)(s,Q);var j=M?[t,C?C.slice(0):null,h,n,l,c,b,O,e,i,d]:null;j&&(y&&j.push(m,v,et.slice(0),it.slice(0),nt.slice(0),ot.slice(0)),s.push(j))}else M&&(y&&this.replayTextBackground_(t,et,it,nt,ot,m,v),Object(x.o)(t,C,h,n,l,c,b,O,e,i,d))},t.prototype.fill_=function(t){if(this.alignFill_){var e=Object(X.a)(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(e[0]%i,e[1]%i),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},t.prototype.setStrokeStyle_=function(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},t.prototype.renderDeclutter=function(t,e,i,n){if(t&&t.length>5){var o=t[4];if(1==o||o==t.length-5){var r={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};if(n||(n=new q.a(9)),!n.collides(r)){n.insert(r);for(var s=5,a=t.length;s11&&this.replayTextBackground_(h[0],h[13],h[14],h[15],h[16],h[11],h[12]),x.o.apply(void 0,h),c!==i&&(l.globalAlpha=c)}}t.length=5,Object(p.l)(t)}}return n},t.prototype.drawLabelWithPointPlacement_=function(t,e,i,n){var o=this.textStates[e],r=this.createLabel(t,e,n,i),s=this.strokeStates[i],a=this.pixelRatio,h=B[o.textAlign||x.m],l=B[o.textBaseline||x.n],c=s&&s.lineWidth?s.lineWidth:0;return{label:r,anchorX:h*(r.width/a-2*o.scale)+2*(.5-h)*c,anchorY:l*r.height/a+2*(.5-l)*c}},t.prototype.execute_=function(t,e,i,n,o,r){var s;this.declutterItems.length=0,this.pixelCoordinates_&&Object(_.a)(e,this.renderedTransform_)?s=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),s=Object(Y.c)(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),Object(X.h)(this.renderedTransform_,e));for(var a,h,l,c,u,d,f,g,m,v,y,b,O,w,T,E,S,P=0,I=i.length,L=0,R=0,M=0,j=null,k=null,A=this.coordinateCache_,D=this.viewRotation_,F=Math.round(1e12*Math.atan2(-e[1],e[0]))/1e12,N={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:D},z=this.instructions!=i||this.overlaps?0:200;Pz&&(this.fill_(t),R=0),M>z&&(t.stroke(),M=0),R||M||(t.beginPath(),c=NaN,u=NaN),++P;break;case C.CIRCLE:var Z=s[L=G[1]],W=s[L+1],V=s[L+2]-Z,K=s[L+3]-W,$=Math.sqrt(V*V+K*K);t.moveTo(Z+$,W),t.arc(Z,W,$,0,2*Math.PI,!0),++P;break;case C.CLOSE_PATH:t.closePath(),++P;break;case C.CUSTOM:L=G[1],a=G[2];var q=G[3],J=G[4],Q=6==G.length?G[5]:void 0;N.geometry=q,N.feature=T,P in A||(A[P]=[]);var tt=A[P];Q?Q(s,L,a,2,tt):(tt[0]=s[L],tt[1]=s[L+1],tt.length=2),J(tt,N),++P;break;case C.DRAW_IMAGE:L=G[1],a=G[2],v=G[3],h=G[4],l=G[5],m=o?null:G[6];var et=G[7],it=G[8],nt=G[9],ot=G[10],rt=G[11],st=G[12],at=G[13],ht=G[14];if(!v&&G.length>=19){y=G[18],b=G[19],O=G[20],w=G[21];var lt=this.drawLabelWithPointPlacement_(y,b,O,w);v=lt.label,G[3]=v;var ct=G[22];h=(lt.anchorX-ct)*this.pixelRatio,G[4]=h;var ut=G[23];l=(lt.anchorY-ut)*this.pixelRatio,G[5]=l,et=v.height,G[7]=et,ht=v.width,G[14]=ht}var pt=void 0;G.length>24&&(pt=G[24]);var dt=void 0,ft=void 0,_t=void 0;G.length>16?(dt=G[15],ft=G[16],_t=G[17]):(dt=x.k,ft=!1,_t=!1),rt&&F?st+=D:rt||F||(st-=D);for(var gt=0,mt=0;L=r;)lt(i,t+o,t+r),lt(i,t+r,t+o),lt(i,t-r,t+o),lt(i,t-o,t+r),lt(i,t-o,t-r),lt(i,t-r,t-o),lt(i,t+r,t-o),lt(i,t+o,t-r),2*((s+=1+2*++r)-o)+1>0&&(s+=1-2*(o-=1));return ht[t]=i,i}(n);function d(t){for(var e=l.getImageData(0,0,s,s).data,i=0;i0){var a=void 0;return(!r||c!=V.a.IMAGE&&c!=V.a.TEXT||-1!==r.indexOf(t))&&(a=o(t)),a||void l.clearRect(0,0,s,s)}}var f,g,m,v,y,b=Object.keys(this.executorsByZIndex_).map(Number);for(b.sort(_.h),f=b.length-1;f>=0;--f){var x=b[f].toString();for(m=this.executorsByZIndex_[x],g=st.length-1;g>=0;--g)if(void 0!==(v=m[c=st[g]])&&(y=v.executeHitDetection(l,a,i,d,h)))return y}},t.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var i=e[0],n=e[1],o=e[2],r=e[3],s=[i,n,i,r,o,r,o,n];return Object(Y.c)(s,0,8,2,t,s),s},t.prototype.isEmpty=function(){return Object(r.d)(this.executorsByZIndex_)},t.prototype.execute=function(t,e,i,n,o,r){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(_.h),this.maxExtent_&&(t.save(),this.clip(t,e));var a,h,l,c,u,p,d=o||st;for(a=0,h=s.length;a=o)for(n=o;n0,6);var p=void 0!==n.src?ft.a.IDLE:ft.a.LOADED;return i.color_=void 0!==n.color?Object(gt.a)(n.color):null,i.iconImage_=function(t,e,i,n,o,r){var s=bt.a.get(e,n,r);return s||(s=new wt(t,e,i,n,o,r),bt.a.set(e,n,r,s)),s}(h,u,l,i.crossOrigin_,p,i.color_),i.offset_=void 0!==n.offset?n.offset:[0,0],i.offsetOrigin_=void 0!==n.offsetOrigin?n.offsetOrigin:Tt.TOP_LEFT,i.origin_=null,i.size_=void 0!==n.size?n.size:null,i}return St(e,t),e.prototype.clone=function(){return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},e.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var t=this.anchor_,e=this.getSize();if(this.anchorXUnits_==vt.FRACTION||this.anchorYUnits_==vt.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==vt.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==vt.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=Tt.TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=Tt.TOP_RIGHT&&this.anchorOrigin_!=Tt.BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=Tt.BOTTOM_LEFT&&this.anchorOrigin_!=Tt.BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}return this.normalizedAnchor_=t,this.normalizedAnchor_},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getHitDetectionImageSize=function(){return this.getImageSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(t){return this.iconImage_.getHitDetectionImage(t)},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_,e=this.getDisplacement();if(this.offsetOrigin_!=Tt.TOP_LEFT){var i=this.getSize(),n=this.iconImage_.getSize();if(!i||!n)return null;t=t.slice(),this.offsetOrigin_!=Tt.TOP_RIGHT&&this.offsetOrigin_!=Tt.BOTTOM_RIGHT||(t[0]=n[0]-i[0]-t[0]),this.offsetOrigin_!=Tt.BOTTOM_LEFT&&this.offsetOrigin_!=Tt.BOTTOM_RIGHT||(t[1]=n[1]-i[1]-t[1])}return t[0]+=e[0],t[1]+=e[1],this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(mt.a.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(mt.a.CHANGE,t)},e}(Et.a);var Pt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),It=function(t){function e(e){var i=t.call(this,e)||this;return i.boundHandleStyleImageChange_=i.handleStyleImageChange_.bind(i),i.animatingOrInteracting_,i.dirty_=!1,i.hitDetectionImageData_=null,i.renderedFeatures_=null,i.renderedRevision_=-1,i.renderedResolution_=NaN,i.renderedExtent_=Object(p.j)(),i.renderedRotation_,i.renderedCenter_=null,i.renderedProjection_=null,i.renderedRenderOrder_=null,i.replayGroup_=null,i.replayGroupChanged=!0,i}return Pt(e,t),e.prototype.useContainer=function(e,i,n){n<1&&(e=null),t.prototype.useContainer.call(this,e,i,n)},e.prototype.renderFrame=function(t,e){var i=t.pixelRatio,n=t.layerStatesArray[t.layerIndex];Object(X.e)(this.pixelTransform,1/i,1/i),Object(X.d)(this.inversePixelTransform,this.pixelTransform);var o=Object(X.i)(this.pixelTransform);this.useContainer(e,o,n.opacity);var r=this.context,s=r.canvas,a=this.replayGroup_;if(!a||a.isEmpty())return!this.containerReused&&s.width>0&&(s.width=0),this.container;var h=Math.round(t.size[0]*i),l=Math.round(t.size[1]*i);s.width!=h||s.height!=l?(s.width=h,s.height=l,s.style.transform!==o&&(s.style.transform=o)):this.containerReused||r.clearRect(0,0,h,l),this.preRender(r,t);var c=t.extent,d=t.viewState,g=d.center,m=d.resolution,v=d.projection,y=d.rotation,b=v.getExtent(),x=this.getLayer().getSource(),O=!1;if(n.extent){var w=Object(f.f)(n.extent,v);(O=!Object(p.g)(w,t.extent)&&Object(p.F)(w,t.extent))&&this.clip(r,t,w)}var T=t.viewHints,E=!(T[u.a.ANIMATING]||T[u.a.INTERACTING]),S=this.getRenderTransform(g,m,y,i,h,l,0),C=this.getLayer().getDeclutter()?{}:null;if(a.execute(r,S,y,E,void 0,C),x.getWrapX()&&v.canWrapX()&&!Object(p.g)(b,c)){for(var P=c[0],I=Object(p.E)(b),L=0,R=void 0;Pb[2];){R=I*++L;var j=this.getRenderTransform(g,m,y,i,h,l,R);a.execute(r,j,y,E,void 0,C),P-=I}}if(C){var k=t.viewHints;!function(t,e,i,n,o,r){for(var s=Object.keys(t).map(Number).sort(_.h),a=0,h=s.length;ag[2];)x=y*++b,c.push(this.getRenderTransform(o,r,s,.5,u,d,x).slice()),m-=y}this.hitDetectionImageData_=function(t,e,i,n,o,r,s){var a=t[0]/2,h=t[1]/2,l=Object(W.a)(a,h);l.imageSmoothingEnabled=!1;for(var c=l.canvas,u=new dt.a(l,.5,o,null,s),d=i.length,f=Math.floor(16777215/d),g={},m=1;m<=d;++m){var y=i[m-1],b=y.getStyleFunction()||n;if(n){var x=b(y,r);if(x){Array.isArray(x)||(x=[x]);for(var O="#"+("000000"+(m*f).toString(16)).slice(-6),w=0,T=x.length;wO[0]&&E[2]>O[2]&&x.push([E[0]-w,E[1],E[2]-w,E[3]])}if(!this.dirty_&&this.renderedResolution_==c&&this.renderedRevision_==g&&this.renderedRenderOrder_==v&&Object(p.g)(this.renderedExtent_,b))return this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var S,C=new Z(Object(pt.c)(c,_),b,c,_,e.getDeclutter()),P=Object(f.k)();if(P){for(var I=0,L=x.length;It)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){Object(m.b)()},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var i=this.transitionStarts_[t];if(i){if(-1===i)return 1}else i=e,this.transitionStarts_[t]=i;var n=e-i+1e3/60;return n>=this.transition_?1:Object(y.a)(n/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(b.a),T=i(14),E=i(75),S=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();var C=function(t){function e(e,i,n,o,r,s){var a=t.call(this,e,i,s)||this;return a.crossOrigin_=o,a.src_=n,a.image_=new Image,null!==o&&(a.image_.crossOrigin=o),a.unlisten_=null,a.tileLoadFunction_=r,a}return S(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.getKey=function(){return this.src_},e.prototype.handleImageError_=function(){var t;this.state=v.a.ERROR,this.unlistenImage_(),this.image_=((t=Object(T.a)(1,1)).fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=v.a.LOADED:this.state=v.a.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==v.a.ERROR&&(this.state=v.a.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==v.a.IDLE&&(this.state=v.a.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(E.a)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(w),P=function(){function t(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return t.prototype.canExpireCache=function(){return this.getCount()>this.highWaterMark},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},t.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},t.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},t.prototype.get=function(t,e){var i=this.entries_[t];return Object(n.a)(void 0!==i,15),i===this.newest_?i.value_:(i===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(i.newer.older=i.older,i.older.newer=i.newer),i.newer=null,i.older=this.newest_,this.newest_.newer=i,this.newest_=i,i.value_)},t.prototype.remove=function(t){var e=this.entries_[t];return Object(n.a)(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var t,e=new Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.key_;return e},t.prototype.getValues=function(){var t,e=new Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.value_;return e},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},t.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},t.prototype.set=function(t,e){Object(n.a)(!(t in this.entries_),16);var i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_},t.prototype.setSize=function(t){this.highWaterMark=t},t}(),I=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return I(e,t),e.prototype.expireCache=function(t){for(;this.canExpireCache();){if(this.peekLast().getKey()in t)break;this.pop().release()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=function(t){return t.split("/").map(Number)}(this.peekFirstKey())[0];this.forEach(function(e){e.tileCoord[0]!==t&&(this.remove(a(e.tileCoord)),e.release())}.bind(this))}},e}(P),R=i(6),M=i(0);function j(t,e,i,n){var o=i-t,r=n-e,s=Math.sqrt(o*o+r*r);return[Math.round(i+o/s),Math.round(n+r/s)]}var k=10,A=function(){function t(t,e,i,n,o,r){this.sourceProj_=t,this.targetProj_=e;var s={},a=Object(_.i)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return s[e]||(s[e]=a(t)),s[e]},this.maxSourceExtent_=n,this.errorThresholdSquared_=o*o,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!n&&!!this.sourceProj_.getExtent()&&Object(M.E)(n)==Object(M.E)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(M.E)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(M.E)(this.targetProj_.getExtent()):null;var h=Object(M.C)(i),l=Object(M.D)(i),c=Object(M.w)(i),u=Object(M.v)(i),p=this.transformInv_(h),d=this.transformInv_(l),f=this.transformInv_(c),g=this.transformInv_(u),m=k+(r?Math.max(0,Math.ceil(Math.log2(Object(M.u)(i)/(r*r*256*256)))):0);if(this.addQuad_(h,l,c,u,p,d,f,g,m),this.wrapsXInSource_){var v=1/0;this.triangles_.forEach(function(t,e,i){v=Math.min(v,t.source[0][0],t.source[1][0],t.source[2][0])}),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-v>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-v>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-v>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-v>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var i=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-i.5&&u<1,f=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var _=Object(M.b)([t,e,i,n]);f=Object(M.E)(_)/this.targetWorldWidth_>.25||f}!d&&this.sourceProj_.isGlobal()&&u&&(f=u>.25||f)}if(f||!this.maxSourceExtent_||Object(M.F)(c,this.maxSourceExtent_)){if(!(f||isFinite(r[0])&&isFinite(r[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(h[0])&&isFinite(h[1]))){if(!(l>0))return;f=!0}if(l>0){if(!f){var g=[(t[0]+i[0])/2,(t[1]+i[1])/2],m=this.transformInv_(g),v=void 0;if(d)v=(Object(o.d)(r[0],p)+Object(o.d)(a[0],p))/2-Object(o.d)(m[0],p);else v=(r[0]+a[0])/2-m[0];var y=(r[1]+a[1])/2-m[1];f=v*v+y*y>this.errorThresholdSquared_}if(f){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){var b=[(e[0]+i[0])/2,(e[1]+i[1])/2],x=this.transformInv_(b),O=[(n[0]+t[0])/2,(n[1]+t[1])/2],w=this.transformInv_(O);this.addQuad_(t,e,b,O,r,s,x,w,l-1),this.addQuad_(O,b,i,n,w,x,a,h,l-1)}else{var T=[(t[0]+e[0])/2,(t[1]+e[1])/2],E=this.transformInv_(T),S=[(i[0]+n[0])/2,(i[1]+n[1])/2],C=this.transformInv_(S);this.addQuad_(t,T,S,n,r,E,C,h,l-1),this.addQuad_(T,e,i,S,E,s,a,C,l-1)}return}}if(d){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(t,i,n,r,a,h),this.addTriangle_(t,e,i,r,s,a)}},t.prototype.calculateSourceExtent=function(){var t=Object(M.j)();return this.triangles_.forEach(function(e,i,n){var o=e.source;Object(M.r)(t,o[0]),Object(M.r)(t,o[1]),Object(M.r)(t,o[2])}),t},t.prototype.getTriangles=function(){return this.triangles_},t}(),D=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),F=function(t){function e(e,i,n,r,s,a,h,l,c,u,p){var d=t.call(this,s,v.a.IDLE)||this;d.renderEdges_=void 0!==p&&p,d.pixelRatio_=h,d.gutter_=l,d.canvas_=null,d.sourceTileGrid_=i,d.targetTileGrid_=r,d.wrappedTileCoord_=a||s,d.sourceTiles_=[],d.sourcesListenerKeys_=null,d.sourceZ_=0;var f=r.getTileCoordExtent(d.wrappedTileCoord_),m=d.targetTileGrid_.getExtent(),y=d.sourceTileGrid_.getExtent(),b=m?Object(M.B)(f,m):f;if(0===Object(M.u)(b))return d.state=v.a.EMPTY,d;var x=e.getExtent();x&&(y=y?Object(M.B)(y,x):x);var O=r.getResolution(d.wrappedTileCoord_[0]),w=function(t,e,i,n){var o=Object(_.n)(i,e,t),r=Object(_.h)(e,n,i),s=e.getMetersPerUnit();void 0!==s&&(r*=s);var a=t.getMetersPerUnit();void 0!==a&&(r/=a);var h=t.getExtent();if(!h||Object(M.f)(h,o)){var l=Object(_.h)(t,r,o)/r;isFinite(l)&&l>0&&(r/=l)}return r}(e,n,Object(M.x)(b),O);if(!isFinite(w)||w<=0)return d.state=v.a.EMPTY,d;var T=void 0!==u?u:g;if(d.triangulation_=new A(e,n,b,y,w*T,O),0===d.triangulation_.getTriangles().length)return d.state=v.a.EMPTY,d;d.sourceZ_=i.getZForResolution(w);var E=d.triangulation_.calculateSourceExtent();if(y&&(e.canWrapX()?(E[1]=Object(o.a)(E[1],y[1],y[3]),E[3]=Object(o.a)(E[3],y[1],y[3])):E=Object(M.B)(E,y)),Object(M.u)(E)){for(var S=i.getTileRangeForExtentAndZ(E,d.sourceZ_),C=S.minX;C<=S.maxX;C++)for(var P=S.minY;P<=S.maxY;P++){var I=c(d.sourceZ_,C,P,h);I&&d.sourceTiles_.push(I)}0===d.sourceTiles_.length&&(d.state=v.a.EMPTY)}else d.state=v.a.EMPTY;return d}return D(e,t),e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,i,n){e&&e.getState()==v.a.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=v.a.ERROR;else{var e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),n="number"==typeof i?i:i[0],r="number"==typeof i?i:i[1],s=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),h=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(t,e,i,n,r,s,a,h,l,c,u){var p=Object(T.a)(Math.round(i*t),Math.round(i*e));if(0===l.length)return p.canvas;p.scale(i,i);var d=Object(M.j)();l.forEach(function(t,e,i){Object(M.q)(d,t.extent)});var f=Object(M.E)(d),_=Object(M.A)(d),g=Object(T.a)(Math.round(i*f/n),Math.round(i*_/n)),m=i/n;l.forEach(function(t,e,i){var n=t.extent[0]-d[0],o=-(t.extent[3]-d[3]),r=Object(M.E)(t.extent),s=Object(M.A)(t.extent);g.drawImage(t.image,c,c,t.image.width-2*c,t.image.height-2*c,n*m,o*m,r*m,s*m)});var v=Object(M.C)(a);return h.getTriangles().forEach(function(t,e,r){var a=t.source,h=t.target,l=a[0][0],c=a[0][1],u=a[1][0],f=a[1][1],_=a[2][0],m=a[2][1],y=(h[0][0]-v[0])/s,b=-(h[0][1]-v[1])/s,x=(h[1][0]-v[0])/s,O=-(h[1][1]-v[1])/s,w=(h[2][0]-v[0])/s,T=-(h[2][1]-v[1])/s,E=l,S=c;l=0,c=0;var C=[[u-=E,f-=S,0,0,x-y],[_-=E,m-=S,0,0,w-y],[0,0,u,f,O-b],[0,0,_,m,T-b]],P=Object(o.e)(C);if(P){p.save(),p.beginPath();var I=(y+x+w)/3,L=(b+O+T)/3,R=j(I,L,y,b),M=j(I,L,x,O),k=j(I,L,w,T);p.moveTo(M[0],M[1]),p.lineTo(R[0],R[1]),p.lineTo(k[0],k[1]),p.clip(),p.transform(P[0],P[2],P[1],P[3],y,b),p.translate(d[0]-E,d[3]-S),p.scale(n/i,-n/i),p.drawImage(g.canvas,0,0),p.restore()}}),u&&(p.save(),p.strokeStyle="black",p.lineWidth=1,h.getTriangles().forEach(function(t,e,i){var n=t.target,o=(n[0][0]-v[0])/s,r=-(n[0][1]-v[1])/s,a=(n[1][0]-v[0])/s,h=-(n[1][1]-v[1])/s,l=(n[2][0]-v[0])/s,c=-(n[2][1]-v[1])/s;p.beginPath(),p.moveTo(a,h),p.lineTo(o,r),p.lineTo(l,c),p.closePath(),p.stroke()}),p.restore()),p.canvas}(n,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),s,h,this.triangulation_,t,this.gutter_,this.renderEdges_),this.state=v.a.LOADED}this.changed()},e.prototype.load=function(){if(this.state==v.a.IDLE){this.state=v.a.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,i,n){var o=e.getState();if(o==v.a.IDLE||o==v.a.LOADING){t++;var r=Object(R.a)(e,x.a.CHANGE,function(i){var n=e.getState();n!=v.a.LOADED&&n!=v.a.ERROR&&n!=v.a.EMPTY||(Object(R.c)(r),0===--t&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(r)}}.bind(this)),this.sourceTiles_.forEach(function(t,e,i){t.getState()==v.a.IDLE&&t.load()}),0===t&&setTimeout(this.reproject_.bind(this),0)}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(R.c),this.sourcesListenerKeys_=null},e}(w),N=i(29),z=i(34),B=i(72),G=i(51),Z=i(52),W=i(23),Y=i(53),V=[0,0,0],X=function(){function t(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Object(n.a)(Object(d.f)(this.resolutions_,function(t,e){return e-t},!0),17),!t.origins)for(var i=0,o=this.resolutions_.length-1;i=this.minZoom;){if(2===this.zoomFactor_?(r=Math.floor(r/2),s=Math.floor(s/2),o=Object(Y.a)(r,r,s,s,i)):o=this.getTileRangeForExtentAndZ(a,h,i),e(h,o))return!0;--h}return!1},t.prototype.getExtent=function(){return this.extent_},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.getMinZoom=function(){return this.minZoom},t.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},t.prototype.getResolution=function(t){return this.resolutions_[t]},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getTileCoordChildTileRange=function(t,e,i){if(t[0]0?n:Math.max(s/a[0],r/a[1]),l=o+1,c=new Array(l),u=0;ui||i>e.getMaxZoom())return!1;var r,s=e.getExtent();return!(r=s?e.getTileRangeForExtentAndZ(s,i):e.getFullTileRange(i))||r.containsXY(n,o)}(t,n)?t:null},e.prototype.clear=function(){this.tileCache.clear()},e.prototype.refresh=function(){this.clear(),t.prototype.refresh.call(this)},e.prototype.useTile=function(t,e,i,n){},e}(B.a),J=function(t){function e(e,i){var n=t.call(this,e)||this;return n.tile=i,n}return $(e,t),e}(N.a),Q=q,tt="tileloadstart",et="tileloadend",it="tileloaderror",nt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ot=function(t){function e(e){var i=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this;return i.generateTileUrlFunction_=!e.tileUrlFunction,i.tileLoadFunction=e.tileLoadFunction,i.tileUrlFunction=e.tileUrlFunction?e.tileUrlFunction.bind(i):c,i.urls=null,e.urls?i.setUrls(e.urls):e.url&&i.setUrl(e.url),i.tileLoadingKeys_={},i}return nt(e,t),e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,i=t.target,n=Object(m.c)(i),o=i.getState();o==v.a.LOADING?(this.tileLoadingKeys_[n]=!0,e=tt):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],e=o==v.a.ERROR?it:o==v.a.LOADED?et:void 0),null!=e&&this.dispatchEvent(new J(e,i))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=u(t);this.urls=e,this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function(t,e){for(var i=t.length,n=new Array(i),o=0;o0&&(i.tileUrlFunction=l(r.map(_t.bind(i)))),i}return pt(e,t),e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.setTileUrlFunction(l(t.map(_t.bind(this))),e)},e.prototype.getDimensions=function(){return this.dimensions_},e.prototype.getFormat=function(){return this.format_},e.prototype.getLayer=function(){return this.layer_},e.prototype.getMatrixSet=function(){return this.matrixSet_},e.prototype.getRequestEncoding=function(){return this.requestEncoding_},e.prototype.getStyle=function(){return this.style_},e.prototype.getVersion=function(){return this.version_},e.prototype.getKeyForDimensions_=function(){var t=0,e=[];for(var i in this.dimensions_)e[t++]=i+"-"+this.dimensions_[i];return e.join("/")},e.prototype.updateDimensions=function(t){Object(f.a)(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e}(at);e.a=dt;function ft(t,e){var i=t.Contents.Layer,n=Object(d.c)(i,function(t,i,n){return t.Identifier==e.layer});if(null===n)return null;var o,r=t.Contents.TileMatrixSet;(o=n.TileMatrixSetLink.length>1?"projection"in e?Object(d.d)(n.TileMatrixSetLink,function(t,i,n){var o=Object(d.c)(r,function(e){return e.Identifier==t.TileMatrixSet}).SupportedCRS,s=Object(_.g)(o.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))||Object(_.g)(o),a=Object(_.g)(e.projection);return s&&a?Object(_.c)(s,a):o==e.projection}):Object(d.d)(n.TileMatrixSetLink,function(t,i,n){return t.TileMatrixSet==e.matrixSet}):0)<0&&(o=0);var s=n.TileMatrixSetLink[o].TileMatrixSet,a=n.TileMatrixSetLink[o].TileMatrixSetLimits,h=n.Format[0];"format"in e&&(h=e.format),(o=Object(d.d)(n.Style,function(t,i,n){return"style"in e?t.Title==e.style:t.isDefault}))<0&&(o=0);var l=n.Style[o].Identifier,c={};"Dimension"in n&&n.Dimension.forEach(function(t,e,i){var n=t.Identifier,o=t.Default;void 0===o&&(o=t.Value[0]),c[n]=o});var u,p=t.Contents.TileMatrixSet,f=Object(d.c)(p,function(t,e,i){return t.Identifier==s}),g=f.SupportedCRS;if(g&&(u=Object(_.g)(g.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))||Object(_.g)(g)),"projection"in e){var m=Object(_.g)(e.projection);m&&(u&&!Object(_.c)(m,u)||(u=m))}var v=f.TileMatrix[0],y=28e-5*v.ScaleDenominator,b=u===Object(_.g)("EPSG:4326")?[v.TopLeftCorner[1],v.TopLeftCorner[0]]:v.TopLeftCorner,x=v.TileWidth*y,O=v.TileHeight*y,w=[b[0],b[1]-O*v.MatrixHeight,b[0]+x*v.MatrixWidth,b[1]];null===u.getExtent()&&u.setExtent(w);var T=function(t,e,i){var n=[],o=[],r=[],s=[],a=[],h=void 0!==i?i:[],l=t.SupportedCRS,c=Object(_.g)(l.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))||Object(_.g)(l),u=c.getMetersPerUnit(),p="ne"==c.getAxisOrientation().substr(0,2);return t.TileMatrix.sort(function(t,e){return e.ScaleDenominator-t.ScaleDenominator}),t.TileMatrix.forEach(function(e){if(!(h.length>0)||Object(d.c)(h,function(i){return e.Identifier==i.TileMatrix||-1===e.Identifier.indexOf(":")&&t.Identifier+":"+e.Identifier===i.TileMatrix})){o.push(e.Identifier);var i=28e-5*e.ScaleDenominator/u,l=e.TileWidth,c=e.TileHeight;p?r.push([e.TopLeftCorner[1],e.TopLeftCorner[0]]):r.push(e.TopLeftCorner),n.push(i),s.push(l==c?l:[l,c]),a.push([e.MatrixWidth,e.MatrixHeight])}}),new ct({extent:e,origins:r,resolutions:n,matrixIds:o,tileSizes:s,sizes:a})}(f,w,a),E=[],S=e.requestEncoding;if(S=void 0!==S?S:"","OperationsMetadata"in t&&"GetTile"in t.OperationsMetadata)for(var C=t.OperationsMetadata.GetTile.DCP.HTTP.Get,P=0,I=C.length;P=200&&a.status<300){var r=e.getType(),h=void 0;r==f.JSON||r==f.TEXT?h=a.responseText:r==f.XML?(h=a.responseXML)||(h=(new DOMParser).parseFromString(a.responseText,"application/xml")):r==f.ARRAY_BUFFER&&(h=a.response),h?i.call(this,e.readFeatures(h,{extent:o,featureProjection:s}),e.readProjection(h)):n.call(this)}else n.call(this)}.bind(this),a.onerror=function(){n.call(this)}.bind(this),a.send()}}(t,e,function(t,e){"function"==typeof this.addFeatures&&this.addFeatures(t)},d.c)}function m(t,e){return[[-1/0,-1/0,1/0,1/0]]}var v,y=i(11),b=i(72),x=i(35),O="addfeature",w="changefeature",T="clear",E="removefeature",S=i(71),C=i.n(S),P=function(){function t(t){this.rbush_=new C.a(t),this.items_={}}return t.prototype.insert=function(t,e){var i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[Object(n.c)(e)]=i},t.prototype.load=function(t,e){for(var i=new Array(e.length),o=0,r=e.length;o=0&&c.splice(e,1)}function g(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var n=function(){0;return i.nc}();n&&(t.attrs.nonce=n)}return m(e,t.attrs),f(t,e),e}function m(t,e){Object.keys(e).forEach(function(i){t.setAttribute(i,e[i])})}function v(t,e){var i,n,o,r;if(e.transform&&t.css){if(!(r="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=r}if(e.singleton){var s=l++;i=h||(h=g(e)),n=x.bind(null,i,s,!1),o=x.bind(null,i,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",m(e,t.attrs),f(t,e),e}(e),n=function(t,e,i){var n=i.css,o=i.sourceMap,r=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||r)&&(n=u(n));o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var s=new Blob([n],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}.bind(null,i,e),o=function(){_(i),i.href&&URL.revokeObjectURL(i.href)}):(i=g(e),n=function(t,e){var i=e.css,n=e.media;n&&t.setAttribute("media",n);if(t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}.bind(null,i),o=function(){_(i)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=s()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var i=d(t,e);return p(i,e),function(t){for(var n=[],o=0;o=i[0]||(t[1]<=i[1]&&t[3]>=i[1]||Object(o.t)(t,this.intersectsCoordinate.bind(this)))}return!1},e.prototype.setCenter=function(t){var e=this.stride,i=this.flatCoordinates[e]-this.flatCoordinates[0],n=t.slice();n[e]=n[0]+i;for(var o=1;othis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(g.c)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(p.a.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Object(g.c)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(g.c),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(m.a),x=i(47),O={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},w=i(39),T=i(13),E=i(37),S=i(9),C=i(10),P=i(11),I=1/0,L=function(){function t(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return t.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Object(P.b)(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,i=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var n=this.keyFunction_(i);return delete this.queuedElements_[n],i},t.prototype.enqueue=function(t){Object(C.a)(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=I&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},t.prototype.getCount=function(){return this.elements_.length},t.prototype.getLeftChildIndex_=function(t){return 2*t+1},t.prototype.getRightChildIndex_=function(t){return 2*t+2},t.prototype.getParentIndex_=function(t){return t-1>>1},t.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},t.prototype.isEmpty=function(){return 0===this.elements_.length},t.prototype.isKeyQueued=function(t){return t in this.queuedElements_},t.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},t.prototype.siftUp_=function(t){for(var e=this.elements_,i=this.priorities_,n=e.length,o=e[t],r=i[t],s=t;t>1;){var a=this.getLeftChildIndex_(t),h=this.getRightChildIndex_(t),l=ht;){var s=this.getParentIndex_(e);if(!(n[s]>r))break;i[e]=i[s],n[e]=n[s],e=s}i[e]=o,n[e]=r},t.prototype.reprioritize=function(){var t,e,i,n=this.priorityFunction_,o=this.elements_,r=this.priorities_,s=0,a=o.length;for(e=0;e0;)n=(i=this.dequeue()[0]).getKey(),i.getState()!==S.a.IDLE||n in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[n]=!0,++this.tilesLoading_,++o,i.load())},e}(L);var j=i(74),k=i(21),A=i(14),D=i(0),F=i(15),N=i(1),z=i(67),B=i(35),G=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Z={LAYERS:"layers"},W=function(t){function e(e){var i=this,n=e||{},r=Object(P.a)({},n);delete r.layers;var s=n.layers;return(i=t.call(this,r)||this).layersListenerKeys_=[],i.listenerKeys_={},i.addEventListener(Object(T.b)(Z.LAYERS),i.handleLayersChanged_),s?Array.isArray(s)?s=new o.a(s.slice(),{unique:!0}):Object(C.a)("function"==typeof s.getArray,43):s=new o.a(void 0,{unique:!0}),i.setLayers(s),i}return G(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(g.c),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push(Object(g.a)(t,r.a.ADD,this.handleLayersAdd_,this),Object(g.a)(t,r.a.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(g.c);Object(P.b)(this.listenerKeys_);for(var i=t.getArray(),n=0,o=i.length;n=0;n--){var o=i[n];if(o.getActive())if(!o.handleEvent(t))break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var i=this.maxTilesLoading_,n=i;if(t){var o=t.viewHints;if(o[k.a.ANIMATING]||o[k.a.INTERACTING]){var r=!u.c&&Date.now()-t.time>8;i=r?0:8,n=r?0:2}}e.getTilesLoading()0&&this.points_[i+2]>t;)i-=3;var n=this.points_[e+2]-this.points_[i+2];if(n<1e3/60)return!1;var o=this.points_[e]-this.points_[i],r=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(r,o),this.initialVelocity_=Math.sqrt(o*o+r*r)/n,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}(),q=i(26),J="active",Q=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function tt(t,e,i,n){var o=t.getZoom();if(void 0!==o){var r=t.getConstrainedZoom(o+e),s=t.getResolutionForZoom(r);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:s,anchor:i,duration:void 0!==n?n:250,easing:q.b})}}var et=function(t){function e(e){var i=t.call(this)||this;return e.handleEvent&&(i.handleEvent=e.handleEvent),i.map_=null,i.setActive(!0),i}return Q(e,t),e.prototype.getActive=function(){return this.get(J)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(J,t)},e.prototype.setMap=function(t){this.map_=t},e}(T.a),it=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function nt(t){var e=!1;if(t.type==d.DBLCLICK){var i=t.originalEvent,n=t.map,o=t.coordinate,r=i.shiftKey?-this.delta_:this.delta_;tt(n.getView(),r,o,this.duration_),t.preventDefault(),e=!0}return!e}var ot=function(t){function e(e){var i=t.call(this,{handleEvent:nt})||this,n=e||{};return i.delta_=n.delta?n.delta:1,i.duration_=void 0!==n.duration?n.duration:250,i}return it(e,t),e}(et),rt=i(27),st=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},at=function(t){return t.target.getTargetElement()===document.activeElement},ht=F.b,lt=function(t){var e=t.originalEvent;return 0==e.button&&!(u.f&&u.d&&e.ctrlKey)},ct=(F.a,function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey}),ut=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},pt=function(t){var e=t.originalEvent.target.tagName;return"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e},dt=function(t){var e=t.pointerEvent;return Object(C.a)(void 0!==e,56),"mouse"==e.pointerType},ft=function(t){var e=t.pointerEvent;return Object(C.a)(void 0!==e,56),e.isPrimary&&0===e.button},_t=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function gt(t){for(var e=t.length,i=0,n=0,o=0;o0}}else if(t.type==d.POINTERDOWN){var n=this.handleDownEvent(t);this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==d.POINTERMOVE&&this.handleMoveEvent(t);return!e},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){if(function(t){var e=t.type;return e===d.POINTERDOWN||e===d.POINTERDRAG||e===d.POINTERUP}(t)){var e=t.pointerEvent,i=e.pointerId.toString();t.type==d.POINTERUP?delete this.trackedPointers_[i]:t.type==d.POINTERDOWN?this.trackedPointers_[i]=e:i in this.trackedPointers_&&(this.trackedPointers_[i]=e),this.targetPointers=Object(P.c)(this.trackedPointers_)}},e}(et),vt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function yt(t){return ct(t)&&ft(t)}var bt=function(t){function e(e){var i=t.call(this,{stopDown:F.a})||this,n=e||{};return i.kinetic_=n.kinetic,i.lastCentroid=null,i.lastPointersCount_,i.panning_=!1,i.condition_=n.condition?n.condition:yt,i.noKinetic_=!1,i}return vt(e,t),e.prototype.conditionInternal_=function(t){var e=!0;return t.map.getTargetElement().hasAttribute("tabindex")&&(e=at(t)),e&&this.condition_(t)},e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,i=gt(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(i[0],i[1]),this.lastCentroid){var n=[this.lastCentroid[0]-i[0],i[1]-this.lastCentroid[1]],o=t.map.getView();Object(rt.d)(n,o.getResolution()),Object(rt.c)(n,o.getRotation()),o.adjustCenterInternal(n)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=i,this.lastPointersCount_=e.length,t.originalEvent.preventDefault()},e.prototype.handleUpEvent=function(t){var e=t.map,i=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var n=this.kinetic_.getDistance(),o=this.kinetic_.getAngle(),r=i.getCenterInternal(),s=e.getPixelFromCoordinateInternal(r),a=e.getCoordinateFromPixelInternal([s[0]-n*Math.cos(o),s[1]-n*Math.sin(o)]);i.animateInternal({center:i.getConstrainedCenter(a),duration:500,easing:q.b})}return this.panning_&&(this.panning_=!1,i.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.conditionInternal_(t)){var e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(mt),xt=i(42),Ot=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),wt=function(t){function e(e){var i=this,n=e||{};return(i=t.call(this,{stopDown:F.a})||this).condition_=n.condition?n.condition:st,i.lastAngle_=void 0,i.duration_=void 0!==n.duration?n.duration:250,i}return Ot(e,t),e.prototype.handleDragEvent=function(t){if(dt(t)){var e=t.map,i=e.getView();if(i.getConstraints().rotation!==xt.c){var n=e.getSize(),o=t.pixel,r=Math.atan2(n[1]/2-o[1],o[0]-n[0]/2);if(void 0!==this.lastAngle_){var s=r-this.lastAngle_;i.adjustRotationInternal(-s)}this.lastAngle_=r}}},e.prototype.handleUpEvent=function(t){return!dt(t)||(t.map.getView().endInteraction(this.duration_),!1)},e.prototype.handleDownEvent=function(t){return!!dt(t)&&(!(!lt(t)||!this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))},e}(mt),Tt=i(54),Et=i(57),St=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Ct=function(t){function e(e){var i=t.call(this)||this;return i.geometry_=null,i.element_=document.createElement("div"),i.element_.style.position="absolute",i.element_.className="ol-box "+e,i.map_=null,i.startPixel_=null,i.endPixel_=null,i}return St(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,i=this.element_.style;i.left=Math.min(t[0],e[0])+"px",i.top=Math.min(t[1],e[1])+"px",i.width=Math.abs(e[0]-t[0])+"px",i.height=Math.abs(e[1]-t[1])+"px"},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,i=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new Et.a([i])},e.prototype.getGeometry=function(){return this.geometry_},e}(Tt.a),Pt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),It="boxstart",Lt="boxdrag",Rt="boxend",Mt=function(t){function e(e,i,n){var o=t.call(this,e)||this;return o.coordinate=i,o.mapBrowserEvent=n,o}return Pt(e,t),e}(s.a),jt=function(t){function e(e){var i=t.call(this)||this,n=e||{};return i.box_=new Ct(n.className||"ol-dragbox"),i.minArea_=void 0!==n.minArea?n.minArea:64,i.onBoxEnd_=n.onBoxEnd?n.onBoxEnd:F.c,i.startPixel_=null,i.condition_=n.condition?n.condition:lt,i.boxEndCondition_=n.boxEndCondition?n.boxEndCondition:i.defaultBoxEndCondition,i}return Pt(e,t),e.prototype.defaultBoxEndCondition=function(t,e,i){var n=i[0]-e[0],o=i[1]-e[1];return n*n+o*o>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new Mt(Lt,t.coordinate,t))},e.prototype.handleUpEvent=function(t){return this.box_.setMap(null),this.boxEndCondition_(t,this.startPixel_,t.pixel)&&(this.onBoxEnd_(t),this.dispatchEvent(new Mt(Rt,t.coordinate,t))),!1},e.prototype.handleDownEvent=function(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new Mt(It,t.coordinate,t)),!0)},e}(mt),kt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function At(){var t=this.getMap(),e=t.getView(),i=t.getSize(),n=this.getGeometry().getExtent();if(this.out_){var o=e.calculateExtentInternal(i),r=Object(D.n)([t.getPixelFromCoordinateInternal(Object(D.v)(n)),t.getPixelFromCoordinateInternal(Object(D.D)(n))]),s=e.getResolutionForExtentInternal(r,i);Object(D.J)(o,1/s),n=o}var a=e.getConstrainedResolution(e.getResolutionForExtentInternal(n,i)),h=e.getConstrainedCenter(Object(D.x)(n),a);e.animateInternal({resolution:a,center:h,duration:this.duration_,easing:q.b})}var Dt=function(t){function e(e){var i=this,n=e||{},o=n.condition?n.condition:ut;return(i=t.call(this,{condition:o,className:n.className||"ol-dragzoom",minArea:n.minArea,onBoxEnd:At})||this).duration_=void 0!==n.duration?n.duration:200,i.out_=void 0!==n.out&&n.out,i}return kt(e,t),e}(jt),Ft={LEFT:37,UP:38,RIGHT:39,DOWN:40},Nt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function zt(t){var e=!1;if(t.type==p.a.KEYDOWN){var i=t.originalEvent.keyCode;if(this.condition_(t)&&(i==Ft.DOWN||i==Ft.LEFT||i==Ft.RIGHT||i==Ft.UP)){var n=t.map.getView(),o=n.getResolution()*this.pixelDelta_,r=0,s=0;i==Ft.DOWN?s=-o:i==Ft.LEFT?r=-o:i==Ft.RIGHT?r=o:s=o;var a=[r,s];Object(rt.c)(a,n.getRotation()),function(t,e,i){var n=t.getCenterInternal();if(n){var o=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:void 0!==i?i:250,easing:q.d,center:t.getConstrainedCenter(o)})}}(n,a,this.duration_),t.preventDefault(),e=!0}}return!e}var Bt=function(t){function e(e){var i=t.call(this,{handleEvent:zt})||this,n=e||{};return i.defaultCondition_=function(t){return ct(t)&&pt(t)},i.condition_=void 0!==n.condition?n.condition:i.defaultCondition_,i.duration_=void 0!==n.duration?n.duration:100,i.pixelDelta_=void 0!==n.pixelDelta?n.pixelDelta:128,i}return Nt(e,t),e}(et),Gt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function Zt(t){var e=!1;if(t.type==p.a.KEYDOWN||t.type==p.a.KEYPRESS){var i=t.originalEvent.charCode;if(this.condition_(t)&&(i=="+".charCodeAt(0)||i=="-".charCodeAt(0))){var n=t.map,o=i=="+".charCodeAt(0)?this.delta_:-this.delta_;tt(n.getView(),o,void 0,this.duration_),t.preventDefault(),e=!0}}return!e}var Wt=function(t){function e(e){var i=t.call(this,{handleEvent:Zt})||this,n=e||{};return i.condition_=n.condition?n.condition:pt,i.delta_=n.delta?n.delta:1,i.duration_=void 0!==n.duration?n.duration:100,i}return Gt(e,t),e}(et),Yt=i(5),Vt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Xt="trackpad",Ut="wheel",Kt=function(t){function e(e){var i=this,n=e||{};return(i=t.call(this,n)||this).totalDelta_=0,i.lastDelta_=0,i.maxDelta_=void 0!==n.maxDelta?n.maxDelta:1,i.duration_=void 0!==n.duration?n.duration:250,i.timeout_=void 0!==n.timeout?n.timeout:80,i.useAnchor_=void 0===n.useAnchor||n.useAnchor,i.condition_=n.condition?n.condition:ht,i.lastAnchor_=null,i.startTime_=void 0,i.timeoutId_,i.mode_=void 0,i.trackpadEventGap_=400,i.trackpadTimeoutId_,i.deltaPerZoom_=300,i}return Vt(e,t),e.prototype.conditionInternal_=function(t){var e=!0;return t.map.getTargetElement().hasAttribute("tabindex")&&(e=at(t)),e&&this.condition_(t)},e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.conditionInternal_(t))return!0;if(t.type!==p.a.WHEEL)return!0;t.preventDefault();var e,i=t.map,n=t.originalEvent;if(this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==p.a.WHEEL&&(e=n.deltaY,u.b&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=u.a),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)),0===e)return!1;this.lastDelta_=e;var o=Date.now();void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(e)<4?Xt:Ut);var r=i.getView();if(this.mode_===Xt&&!r.getConstrainResolution())return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(r.getAnimating()&&r.cancelAnimations(),r.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),r.adjustZoom(-e/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=o,!1;this.totalDelta_+=e;var s=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),s),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var i=-Object(Yt.a)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;e.getConstrainResolution()&&(i=i?i>0?1:-1:0),tt(e,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(et),Ht=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),$t=function(t){function e(e){var i=this,n=e||{},o=n;return o.stopDown||(o.stopDown=F.a),(i=t.call(this,o)||this).anchor_=null,i.lastAngle_=void 0,i.rotating_=!1,i.rotationDelta_=0,i.threshold_=void 0!==n.threshold?n.threshold:.3,i.duration_=void 0!==n.duration?n.duration:250,i}return Ht(e,t),e.prototype.handleDragEvent=function(t){var e=0,i=this.targetPointers[0],n=this.targetPointers[1],o=Math.atan2(n.clientY-i.clientY,n.clientX-i.clientX);if(void 0!==this.lastAngle_){var r=o-this.lastAngle_;this.rotationDelta_+=r,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=r}this.lastAngle_=o;var s=t.map,a=s.getView();if(a.getConstraints().rotation!==xt.c){var h=s.getViewport().getBoundingClientRect(),l=gt(this.targetPointers);l[0]-=h.left,l[1]-=h.top,this.anchor_=s.getCoordinateFromPixelInternal(l),this.rotating_&&(s.render(),a.adjustRotationInternal(e,this.anchor_))}},e.prototype.handleUpEvent=function(t){return!(this.targetPointers.length<2)||(t.map.getView().endInteraction(this.duration_),!1)},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(mt),qt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Jt=function(t){function e(e){var i=this,n=e||{},o=n;return o.stopDown||(o.stopDown=F.a),(i=t.call(this,o)||this).anchor_=null,i.duration_=void 0!==n.duration?n.duration:400,i.lastDistance_=void 0,i.lastScaleDelta_=1,i}return qt(e,t),e.prototype.handleDragEvent=function(t){var e=1,i=this.targetPointers[0],n=this.targetPointers[1],o=i.clientX-n.clientX,r=i.clientY-n.clientY,s=Math.sqrt(o*o+r*r);void 0!==this.lastDistance_&&(e=this.lastDistance_/s),this.lastDistance_=s;var a=t.map,h=a.getView();1!=e&&(this.lastScaleDelta_=e);var l=a.getViewport().getBoundingClientRect(),c=gt(this.targetPointers);c[0]-=l.left,c[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(c),a.render(),h.adjustResolutionInternal(e,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView(),i=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,i),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(mt);var Qt=i(20),te=i(38),ee=i(69),ie=i(58);i(62),i(49);var ne=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function oe(t,e){ie.a.expire()}var re=function(t){function e(e){var i=t.call(this)||this;return i.map_=e,i.declutterTree_=null,i}return ne(e,t),e.prototype.dispatchRenderEvent=function(t,e){Object(N.b)()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,i=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;Object(V.b)(i,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Object(V.d)(n,i)},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,o,r,s,a){var h,l=e.viewState;function c(t,e,i){return o.call(r,e,t?i:null)}var u=l.projection,p=Object(rt.e)(t.slice(),u),d=[[0,0]];if(u.canWrapX()&&n){var f=u.getExtent(),_=Object(D.E)(f);d.push([-_,0],[_,0])}var g,m=e.layerStatesArray,v=m.length;this.declutterTree_&&(g=this.declutterTree_.all().map(function(t){return t.value}));for(var y=[],b=0;b=0;--x){var O=m[x],w=O.layer;if(w.hasRenderer()&&Object(te.b)(O,l)&&s.call(a,w)){var T=w.getRenderer(),E=w.getSource();if(T&&E){var S=E.getWrapX()?p:t,C=c.bind(null,O.managed);y[0]=S[0]+d[b][0],y[1]=S[1]+d[b][1],h=T.forEachFeatureAtCoordinate(y,e,i,C,g)}if(h)return h}}},e.prototype.forEachLayerAtPixel=function(t,e,i,n,o){return Object(N.b)()},e.prototype.hasFeatureAtCoordinate=function(t,e,i,n,o,r){return void 0!==this.forEachFeatureAtCoordinate(t,e,i,n,F.b,this,o,r)},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){this.declutterTree_=function(t,e){e&&e.clear();for(var i=t.declutterItems,n=i.length-1;n>=0;--n)for(var o=i[n],r=o.items,s=0,a=r.length;s=0;--a){var h=s[a],l=h.layer;if(l.hasRenderer()&&Object(te.b)(h,r)&&o(l)){var c=l.getRenderer().getDataAtPixel(t,e,i);if(c){var u=n(l,c);if(u)return u}}}},e}(re),le=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ce=function(t){function e(e){return(e=Object(P.a)({},e)).controls||(e.controls=Object(H.a)()),e.interactions||(e.interactions=function(t){var e=t||{},i=new o.a,n=new $(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&i.push(new wt),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&i.push(new ot({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&i.push(new bt({condition:e.onFocusOnly?at:void 0,kinetic:n})),(void 0===e.pinchRotate||e.pinchRotate)&&i.push(new $t),(void 0===e.pinchZoom||e.pinchZoom)&&i.push(new Jt({duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(i.push(new Bt),i.push(new Wt({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&i.push(new Kt({condition:e.onFocusOnly?at:void 0,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&i.push(new Dt({duration:e.zoomDuration})),i}()),t.call(this,e)||this}return le(e,t),e.prototype.createRenderer=function(){return new he(this)},e}(K);e.a=ce},function(t,e,i){"use strict";var n=i(0),o="http://www.w3.org/1999/xlink";function r(t){return t.getAttributeNS(o,"href")}i(12);function s(t,e){return function t(e,i,n){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)i?n.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):n.push(e.nodeValue);else{var o=void 0;for(o=e.firstChild;o;o=o.nextSibling)t(o,i,n)}return n}(t,e,[]).join("")}function a(t,e){return function(i,n){var o=t.call(void 0!==e?e:this,i,n);void 0!==o&&n[n.length-1].push(o)}}function h(t,e,i){return function(n,o){var r=t.call(void 0!==i?i:this,n,o);if(void 0!==r){var s=o[o.length-1],a=void 0!==e?e:n.localName,h=void 0;a in s?h=s[a]:(h=[],s[a]=h),h.push(r)}}}function l(t,e,i){return function(n,o){var r=t.call(void 0!==i?i:this,n,o);void 0!==r&&(o[o.length-1][void 0!==e?e:n.localName]=r)}}function c(t,e){var i=t;return function(t,n,o){var r=n[n.length-1].node,s=i;return void 0===s&&(s=o),function(t,e){return f().createElementNS(t,e)}(void 0!==e?e:r.namespaceURI,s)}}c();function u(t,e,i){var n,o,r=void 0!==i?i:{};for(n=0,o=t.length;n0&&(this.newTiles_=!0):a.setState(d.a.LOADED)),this.isDrawableTile(a)||(a=a.getInterimTile()),a},e.prototype.loadedTileCallback=function(e,i,n){return!!this.isDrawableTile(n)&&t.prototype.loadedTileCallback.call(this,e,i,n)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var i=t.layerStatesArray[t.layerIndex],n=t.viewState,o=n.projection,r=n.resolution,s=n.center,a=n.rotation,h=t.pixelRatio,l=this.getLayer(),p=l.getSource(),_=p.getRevision(),y=p.getTileGridForProjection(o),b=y.getZForResolution(r,p.zDirection),x=y.getResolution(b),O=t.extent,w=i.extent&&Object(u.f)(i.extent,o);w&&(O=Object(f.B)(O,Object(u.f)(i.extent,o)));var T=p.getTilePixelRatio(h),E=Math.round(t.size[0]*T),S=Math.round(t.size[1]*T);if(a){var C=Math.round(Math.sqrt(E*E+S*S));E=C,S=C}var P=x*E/2/T,I=x*S/2/T,L=[s[0]-P,s[1]-I,s[0]+P,s[1]+I],R=y.getTileRangeForExtentAndZ(O,b),M={};M[b]={};var j=this.createLoadedTileFinder(p,o,M),k=this.tmpExtent,A=this.tmpTileRange_;this.newTiles_=!1;for(var D=R.minX;D<=R.maxX;++D)for(var F=R.minY;F<=R.maxY;++F){var N=this.getTile(b,D,F,t);if(this.isDrawableTile(N)){var z=Object(c.c)(this);if(N.getState()==d.a.LOADED){M[b][N.tileCoord.toString()]=N;var B=N.inTransition(z);this.newTiles_||!B&&-1!==this.renderedTiles.indexOf(N)||(this.newTiles_=!0)}if(1===N.getAlpha(z,t.time))continue}var G=y.getTileCoordChildTileRange(N.tileCoord,A,k),Z=!1;G&&(Z=j(b+1,G)),Z||y.forEachTileCoordParentTileRange(N.tileCoord,j,A,k)}var W=x/r;Object(g.b)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/T,1/T,a,-E/2,-S/2);var Y=Object(v.b)(this.pixelTransform);this.useContainer(e,Y,i.opacity);var V=this.context,X=V.canvas;Object(g.d)(this.inversePixelTransform,this.pixelTransform),Object(g.b)(this.tempTransform_,E/2,S/2,W,W,0,-E/2,-S/2),X.width!=E||X.height!=S?(X.width=E,X.height=S):this.containerReused||V.clearRect(0,0,E,S),w&&this.clipUnrotated(V,t,w),this.preRender(V,t),this.renderedTiles.length=0;var U,K,H,$=Object.keys(M).map(Number);$.sort(m.h),1!==i.opacity||this.containerReused&&!p.getOpaque(t.viewState.projection)?(U=[],K=[]):$=$.reverse();for(var q=$.length-1;q>=0;--q){var J=$[q],Q=p.getTilePixelSize(J,h,o),tt=y.getResolution(J)/x,et=Q[0]*tt*W,it=Q[1]*tt*W,nt=y.getTileCoordForCoordAndZ(Object(f.C)(L),J),ot=y.getTileCoordExtent(nt),rt=Object(g.a)(this.tempTransform_,[T*(ot[0]-L[0])/x,T*(L[3]-ot[3])/x]),st=T*p.getGutterForProjection(o),at=M[J];for(var ht in at){var lt=(N=at[ht]).tileCoord,ct=rt[0]-(nt[1]-lt[1])*et,ut=Math.round(ct+et),pt=rt[1]-(nt[2]-lt[2])*it,dt=Math.round(pt+it),ft=ut-(D=Math.round(ct)),_t=dt-(F=Math.round(pt)),gt=b===J;if(!(B=gt&&1!==N.getAlpha(Object(c.c)(this),t.time)))if(U){V.save(),H=[D,F,D+ft,F,D+ft,F+_t,D,F+_t];for(var mt=0,vt=U.length;mt'}],"views/person/create-person.html":[{id:"addStreetFieldPeopleCreate",method:"replace",mode:"partial",type:"jquery",selector:function(t){return t.find("span[field-name='site.name']").parents(".person-profile-form-item")},snippet:''}],"views/person/person-infocard-template.html":[{id:"deleteStandorInfo1",mode:"attribute",type:"jquery",attributes:{replace:{class:"person-address__column hide"}},selector:function(t){return t.find(".person-address__column")}}],"views/person/edit-person-data.html":[{id:"deleteStandorInfo2",mode:"attribute",type:"jquery",attributes:{replace:{class:"person-profile-form-item hide"}},selector:function(t){return t.find("[ng-model='person.site.name']").parents(".person-profile-form-item")}}],"views/person/person-contact-edit.html":[{id:"deleteStandorInfo3",mode:"attribute",type:"jquery",attributes:{replace:{class:"person-profile-form-item hide"}},selector:function(t){return t.find("[field-name='site.name']").parents(".person-profile-form-item")}}]}}},{key:"templates",value:function(){return[{template:"views/adress-custom-field-ntt.html"},{template:"views/adress-selector-template-ntt.html"},{template:"views/adress-action-blade.html"},{template:"views/ol-map-ntt.html"},{template:"views/ol-map-search-panel.html"},{template:"views/tickets-nearby-panel.html"},{template:"views/adress-person-create-field-ntt.html"}]}},{key:"i18nLocales",value:function(){return{de:["i18n/ntt-resources-adressSearch-locale_de.json"],en:["i18n/ntt-resources-adressSearch-locale_en.json"]}}}])&&o(i.prototype,n),h&&o(i,h),e}();ntt.smartit.api.nttSmartitModules.push(new h)},function(t,e,i){var n=i(108);"string"==typeof n&&(n=[[t.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(84)(n,o);n.locals&&(t.exports=n.locals)},function(t,e,i){(t.exports=i(83)(!1)).push([t.i,'.modal-super-large-ntt{width:75% !important}.ntt-action_blade_body{position:absolute;top:75px;right:0px;bottom:100px;left:0px;overflow:auto;z-index:1060}.ntt-action_blade_TicketPreview{position:absolute;top:75px;right:0px;left:0px;overflow:auto;z-index:1060;height:50%}.map{width:100%;height:100%;position:absolute;right:0px}.map{background:#fff}.ol-zoom-ntt{right:8px}.ntt-adress-search-tab-header{font-size:20px}.address-search-input{padding:10px;margin-top:30px}.coord-search-input{padding:10px;margin-top:10px;margin:0 auto;width:fit-content}.coord-label{float:left;width:40px}.search-result-container-ntt{margin-top:10px}.search-result-pic-column-ntt{float:left;width:38px}.search-result-content-column-ntt{float:left;width:80%}.icon-mapmaerker-result-ntt{font-size:40px;color:#666}.icon-mapmaerker-result-ntt-entered{font-size:40px;color:#f86e00}.adress-list__item_entered{background-color:#f2f2f2;border:1px solid #000;padding:16px 12px}.ntt-button-search{position:fixed}.sidepanel{position:absolute;z-index:1;background-color:#fff;overflow-x:hidden;opacity:.85;transition:.5s;top:0px;bottom:0px;width:20%;min-width:320px}.sidepanel a{padding:8px 8px 8px 32px;text-decoration:none;font-size:25px;color:#818181;display:block;transition:.3s}.sidepanel a:hover{color:#f1f1f1}.sidepanel .closebtn{position:absolute;top:0;right:25px;font-size:36px;margin-left:50px}.openbtn{font-size:20px;cursor:pointer;background-color:#111;color:#fff;padding:10px 15px;border:none}.openbtn:hover{background-color:#444}.btn-searchCoord{background-color:#f86e00;border:1px solid #f86e00;font-size:20px;padding:10px 10px;color:#fff;border-radius:2px;margin-top:10px;margin-left:10px}.ntt-btn-options_container{position:absolute;bottom:5px;width:100%;text-align:center;padding:10px}.ntt-option_button{height:35px;margin-top:5px;width:100%;position:absolute;right:0px;bottom:75px;left:0px;border-top:1px solid #d9d9d9;background:#f2f2f2;z-index:1070}.ntt-ol-control_currentAdress_outer{border:1px solid red;width:100%}.ntt-ol-control_currentAdress_inner{display:table;margin:0 auto;border:1px solid #000}.ntt-ol-control{position:absolute;background-color:rgba(255,255,255,.4);border-radius:4px;padding:2px}.ntt-ol-control button{display:none;margin:1px;padding:10px !important;color:#fff;font-size:20px !important;font-weight:bold;text-decoration:none;text-align:center;height:100% !important;width:100% !important;line-height:normal !important;background-color:rgba(0,60,136,.5);border:none;border-radius:2px}.btn-options{background-color:rgba(248,110,0,.5) !important}.activeCoordButton{text-decoration:none;background-color:rgba(0,60,136,.7) !important}#tooltip{position:absolute;background:#fff;z-Index:1000;padding:5px;border-radius:5px;border:1px solid gray}.searchPanelHeader{position:absolute;width:100%;height:30px;border-bottom:1px solid #d9d9d9;background-color:#f2f2f2}.ntt-currentItem_container{width:100%;text-align:center;position:absolute;z-index:2000;top:15px}.ntt-currentItem_container_inner{display:inline-block;margin:0 auto;padding-top:5px;padding-right:10px;padding-bottom:5px;padding-left:10px;white-space:nowrap}#adressPreviewMarker{opacity:.7}.showTickets_panel{position:absolute;bottom:75px;z-index:10051;width:100%}.headershowTickets{height:25px;border:1px solid #d9d9d9;background:#f2f2f2;font-weight:bold}.headershowTickets_active{background:#f2f2f2}.headershowTickets_disabled{color:gray;pointer-events:none}.icon-nearbyTicketHeader{padding:5px;font-size:20px}.activeShowTicketsButton{background-color:rgba(186,83,0,.7) !important}.ticketPanel_left{float:left;height:100%;width:30%}.ticketPanel_right{float:left;height:100%;overflow:auto;width:70%}.ntt-distanceTicket__filters{border-bottom:1px solid #d9d9d9;border-right:1px solid #d9d9d9;padding-top:2px;padding-left:10px;padding-right:20px;padding-bottom:2px;height:25px}.ntt-distanceTicket__filtersItem{display:inline-block;float:right;padding-left:10px}.ntt-distanceTicket__resultList{overflow:auto;border-right:1px solid #d9d9d9}.ntt-checkbox-menu li label{display:block;padding:3px 10px;clear:both;font-weight:normal;line-height:1.42857143;color:#333;white-space:nowrap;margin:0;transition:background-color .4s ease}.ntt-checkbox-menu li input{margin:0px 5px;top:2px;position:relative}.ntt-checkbox-menu li.active label{background-color:#f5f5f5;font-weight:bold}.ntt-checkbox-menu li label:hover,.ntt-checkbox-menu li label:focus{background-color:#f5f5f5}.checkbox-menu li.active label:hover,.checkbox-menu li.active label:focus{background-color:#b8b8ff}.ntt_loading-spinner-nearbyPanel-container{position:relative;top:50px}.ntt_loading-spinner-nearbyPanel{left:50%;right:50%}.ntt_nearby_ticket_row .row{margin-right:0px;margin-left:0px}.ntt_nearby-search-result-item{border-bottom:1px solid #d9d9d9}.ticketPreview{position:relative;display:inline-block;border-bottom:1px dotted #000}.ticketPreview .ticketPreviewtext{visibility:visible;width:20px;background-color:#000;color:#fff;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;margin-left:-10px;margin-top:-17px;font-size:15px}.ticketPreview .ticketPreviewtext::after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#000 transparent transparent transparent}.trigger{margin-top:-5px;width:40px;position:relative;text-align:center}.popup{position:absolute;left:0;transform:translate3d(0, -50%, 0);box-shadow:0px 0px 8px rgba(0,0,0,.5);background:none;border-radius:10px;width:100%;border-width:1px;border-style:solid;border-color:#000 #000 #000 #000}.popup:after{content:"";width:20px;height:20px;transform:rotate(-45deg);background:#fff;position:absolute;box-shadow:1px 4px 8px rgba(0,0,0,.5);z-index:-1;bottom:-3px;left:calc(50% - 10px);border-width:1px;border-style:solid;border-color:#000 #000 #000 #000}.inner{padding:10px 0;background:#fff;border-radius:10px;font-size:20px}.popup_preview,.popup_preview:after{background:#efb775 !important;color:#fff !important}.popup_selected,.popup_selected:after{background:#f86e00 !important;color:#fff !important}.activeTicket{z-index:20000 !important}.selectedTicket{z-index:10000 !important}.dot{height:10px;width:10px;background-color:#f86e00;border-radius:50%;display:inline-block;margin-top:35px}.ntt_preview_Ticket{color:#efb775}.ntt_selected_ticket{color:red}.ntt_mdtop10{margin-top:10px}',""])},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var i=e.protocol+"//"+e.host,n=i+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var o,r=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(r)?t:(o=0===r.indexOf("//")?r:0===r.indexOf("/")?i+r:n+r.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(t,e,i){(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){"use strict";var i=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};i.VERSION="3.3.5",i.TRANSITION_DURATION=150,i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,n){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),r=o.length;r--;){var s=o[r];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",h="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(h+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,n){i[t]!=n&&(e[t]=n)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState)i.hoverState="in";else{if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)}},i.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)}},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var o=this,r=this.tip(),s=this.getUID(this.type);this.setContent(),r.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&r.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,h=/\s?auto?\s?/i,l=h.test(a);l&&(a=a.replace(h,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),u=r[0].offsetWidth,p=r[0].offsetHeight;if(l){var d=a,f=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+p>f.bottom?"top":"top"==a&&c.top-pf.width?"left":"left"==a&&c.left-us.top+s.height&&(o.top=s.top+s.height-h)}else{var l=e.left-r,c=e.left+r+i;ls.right&&(o.left=s.left+s.width-c)}return o},i.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},i.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},i.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var n=t.fn.tooltip;t.fn.tooltip=function(n){return this.each(function(){var o=t(this),r=o.data("bs.tooltip"),s="object"==e(n)&&n;!r&&/destroy|hide/.test(n)||(r||o.data("bs.tooltip",r=new i(this,s)),"string"==typeof n&&r[n]())})},t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(t)}).call(this,i(50))},function(t,e,i){(function(t){!function(){"use strict";t.widget("ui.numericSpinner",t.ui.spinner,{_format:function(t){return t.toFixed(this._precision())}}),angular.module("myitsmApp").directive("adressCustomFieldNtt",["customFieldLinkFunction","$filter","events",function(e,i,n){return{restrict:"E",replace:!0,scope:{data:"=",isEditable:"=",charLimit:"=",isHideLabel:"="},templateUrl:"views/adress-custom-field-ntt.html",controller:"adressServiceController",link:function(o,r){e(o),o.status={isCollapsed:!0},"Task ID"===o.data.label&&(o.data.maxLength=15),o.$watch("data.setValueFlag",function(t){t&&"#$#"!==t&&(o.onFieldValueChange(),o.data.setValueFlag="#$#")}),t(r).attr("autocomplete","off"),o.isHideLabel&&(o.tooltipToShow=i("customFieldLabelI18n")(o.data)),o.data.maxLength>0&&r.find(".form-control").attr("maxlength",o.data.maxLength);var s=_.cloneDeep(o.data.value);o.$on(n.SAVE_CHANGES,function(){s=_.cloneDeep(o.data.value)}),o.$on(n.DISCARD_CHANGES,function(){o.data.value=_.cloneDeep(s)})}}}])}()}).call(this,i(50))},function(module,exports,__webpack_require__){(function($){var format=__webpack_require__(113);angular.module("myitsmApp").controller("adressServiceController",["$scope","$rootScope","$timeout","events","objectValueMapperService","metadataModel","nttAdressService","$modal","ModuleConfigService","personModel","systemAlertService","nttGenericService",function($scope,$rootScope,$timeout,events,objectValueMapperService,metadataModel,nttAdressService,$modal,ModuleConfigService,personModel,systemAlertService,nttGenericService){$scope.config=ModuleConfigService.getModuleConfig("adressService"),$scope.detailsCache={},$scope.$parent.createPerson=function(){var t=$scope.$parent;t.state.dataIsLoading=!0,personModel.createPerson(t.person).then(function(e){var i=[];$scope.config.mapping.forEach(function(t){t.arId&&i.push({fieldId:t.arId,value:$scope.detailsCache[t.target]})}),nttGenericService.updateArEntriesByFormAndQual({form:"CTM:People",entryId:e.id},i).$promise.then(function(){t.$close(e)}).catch(function(t){t&&t.data&&systemAlertService.error({text:"Could not save adressdata, please edit person profile! "+t.data.error,clear:!1})}).finally(function(){t.state.dataIsLoading=!1,t.$close(e)})}).catch(function(t){t&&t.data&&systemAlertService.error({text:t.data.error,clear:!1})}).finally(function(){t.state.dataIsLoading=!1})},$scope.getAdresses=function(t){return nttAdressService.getAdresses({Address:t,crs:"EPSG:4326"}).then(function(t){return t.features?t.features:[{}]})};var clearAllDetailFields=function(){$scope.useMemory?$scope.detailsCache={}:$scope.config.mapping.forEach(function(t){t.doNotClear||objectValueMapperService.getFieldByName(t.target)&&objectValueMapperService.getFieldByName(t.target).clearValue()})};$scope.updateTicketFields=function(item,detailedItem){var adressProperties={};if(item)if("Adresse"==item.properties.Kategorie||item.properties.AdressID){var tmp={};$.extend(!0,tmp,detailedItem.properties,item.properties),adressProperties=tmp}else adressProperties=item.properties,adressProperties.Location=detailedItem.properties.Location,adressProperties.PostalCode=detailedItem.properties.PostalCode,adressProperties.STRABS=detailedItem.properties.STRABS;else adressProperties=detailedItem.properties;clearAllDetailFields(),adressProperties&&$scope.config&&$scope.config.mapping.forEach(function(obj){var tmpValue=eval("adressProperties."+obj.source);obj.format&&(tmpValue=format(obj.format,tmpValue)),$scope.useMemory?tmpValue&&"undefined"!=tmpValue&&($scope.detailsCache[obj.target]=tmpValue):objectValueMapperService.getFieldByName(obj.target)&&tmpValue&&"undefined"!=tmpValue&&(objectValueMapperService.getFieldByName(obj.target).setValue(tmpValue),objectValueMapperService.getFieldByName(obj.target).value=tmpValue)}),$scope.$broadcast("nttevent_adress_changed")},$scope.selectAdress=function(t){t.properties.searchType="byString",$scope.updateAdress(t)},$scope.updateAdress=function(t){if(t)if(this.data.value=t.properties.Adresse,"byString"==t.properties.searchType){var e=t.geometry.coordinates.join(",");nttAdressService.getAdressInfoByCoord({location:e,crs:"EPSG:4326"}).then(function(e){e.features&&$scope.updateTicketFields(t,e.features[0])})}else"byCoord"==t.properties.searchType&&$scope.updateTicketFields(null,t);else this.data.value="",clearAllDetailFields()};var rootOpenDialogLsitener=$rootScope.$on("openAddressDialogNearBy",function(t,e){$scope.showAdressDialog(e)});$scope.$on("$destroy",function(){rootOpenDialogLsitener()});var hideFields=function(){$scope.config.mapping.forEach(function(t){objectValueMapperService.getFieldByName(t.target)&&(t.hideField&&(objectValueMapperService.getFieldByName(t.target).isHidden=!0),t.readOnly&&(objectValueMapperService.getFieldByName(t.target).isReadOnly=!0))})},initDetails=function(){var t={};$scope.config.mapping.forEach(function(e){e.loadFromTicket&&!$scope.useMemory?objectValueMapperService.getFieldByName(e.target)&&(t[e.source]=objectValueMapperService.getFieldByName(e.target).value):$scope.useMemory&&e.loadFromTicket&&(t[e.source]=$scope.detailsCache&&$scope.detailsCache[e.target]?$scope.detailsCache[e.target]:"")}),$scope.useMemory?$scope.detailsMemory=t:$scope.details=t};$scope.showAdressDialog=function(t){t||(t={}),initDetails(),$modal.open({templateUrl:"views/adress-action-blade.html",controller:"adressSearchDialogController",windowClass:"action-blade",keyboard:"custom",backdrop:"custom",size:"super-large-ntt",resolve:{searchParams:function(){return{data:$scope.data,details:$scope.useMemory?$scope.detailsMemory:$scope.details,ticket:$scope.$parent.ticket,options:t}}}}).result.then(function(){$scope.updateAdress($scope.data.item)},function(){})},$scope.onFieldValueChangeNTT=function(){clearAllDetailFields(),$scope.onFieldValueChange()},hideFields(),initDetails()}])}).call(this,__webpack_require__(50))},function(t,e,i){(function(e){"use strict";function i(t){var e=new Error(t);return e.name="ValueError",e}function n(t){return function(e){var n=Array.prototype.slice.call(arguments,1),o=0,r="UNDEFINED";return e.replace(/([{}])\1|[{](.*?)(?:!(.+?))?[}]/g,function(e,s,a,h){if(null!=s)return s;var l=a;if(l.length>0){if("IMPLICIT"===r)throw i("cannot switch from implicit to explicit numbering");r="EXPLICIT"}else{if("EXPLICIT"===r)throw i("cannot switch from explicit to implicit numbering");r="IMPLICIT",l=String(o),o+=1}var c=l.split("."),u=(/^\d+$/.test(c[0])?c:["0"].concat(c)).reduce(function(t,e){return t.reduce(function(t,i){return null!=i&&e in Object(i)?["function"==typeof i[e]?i[e]():i[e]]:[]},[])},[n]).reduce(function(t,e){return e},"");if(null==h)return u;if(Object.prototype.hasOwnProperty.call(t,h))return t[h](u);throw i('no transformer named "'+h+'"')})}}var o=n({});o.create=n,o.extend=function(t,i){var o=n(i);t.format=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(this),o.apply(e,t)}},t.exports=o}).call(this,this)},function(t,e,i){(function(t){i(115),angular.module("ticketModule").controller("adressSearchDialogController",["$scope","$modalInstance","$timeout","userModel","screenConfigurationModel","ticketService","searchParams","events","systemAlertService","$q","i18nService","objectValueMapperService",function(e,i,n,o,r,s,a,h,l,c,u,p){e.adressFieldIsDirty=!1,e.rendered=!1,i.rendered.then(function(){e.rendered=!0}),e.searchText=_.cloneDeep(a.data.value),e.enableNearbyTicketPanel=!(!a.ticket||"person"==a.ticket.type),e.map=null,e.showNearByTicketPanel=!!a.options.showNearByTicketPanel&&a.options.showNearByTicketPanel,e.distanceRange=a.options.distanceRange,e.selectedStatus=a.options.selectedStatus,e.ticket=a.ticket,(a.details.AdressID||a.details.GIP_NAME_ID||a.details.searchType)&&(e.adressItem={geometry:{coordinates:[a.details["Location.coordinates[0]"],a.details["Location.coordinates[1]"]]},properties:{Adresse:a.data.value,searchType:a.details.searchType}}),e.displayOnly=!!a.options.displayOnly&&a.options.displayOnly,e.adressFieldIsDirty=!1,e.enableSave=function(){return!e.displayOnly&&e.adressFieldIsDirty},e.$on("toggleShowTickets",function(t,i){e.showNearByTicketPanel?e.showNearByTicketPanel=!1:e.showNearByTicketPanel=!0,setTimeout(function(){e.$broadcast("resizeMap")},0)}),e.$on("mapSizeChanged",function(i,n){if(e.showNearByTicketPanel){var o=n+75+"px";t("#nearByTicket").css("top",o);var r=t("#nearByTicket").height()-25,s=r-25;t("#ticketPanel_container").css("height",r),t("#distanceTicketResultList").css("height",s)}else t("#nearByTicket").css("top","")}),e.$on("assignedAdressChanged",function(t,i){i!=e.adressItem&&(e.adressFieldIsDirty=!0),e.adressItem=i});e.close=function(){a.data.value=e.searchText,i.dismiss()},e.submit=function(){e.adressFieldIsDirty&&(a.data.item=e.adressItem),i.close()},e.clickAdressItem=function(){e.adressItem.properties.doNotZoomIn=!1,e.$broadcast("markAdressOnMap",e.adressItem)},e.displayOnly&&e.$on(h.MODAL_BACKDROP_CLICK,function(){e.close()})}])}).call(this,i(50))},function(t,e,i){var n,o,r,s;function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)} /* @preserve * Leaflet 1.6.0, a JS library for interactive maps. http://leafletjs.com * (c) 2010-2019 Vladimir Agafonkin, (c) 2010-2011 CloudMade */s=function(t){"use strict";var e=Object.freeze;function i(t){var e,i,n,o;for(i=1,n=arguments.length;i=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=N(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>=e.x&&n.x<=i.x,s=o.y>=e.y&&n.y<=i.y;return r&&s},overlaps:function(t){t=N(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>e.x&&n.xe.y&&n.y=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=B(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&n.lat<=i.lat,s=o.lng>=e.lng&&n.lng<=i.lng;return r&&s},overlaps:function(t){t=B(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&n.late.lng&&n.lng';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==a(e.adj)}catch(t){return!1}}();function kt(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var At=(Object.freeze||Object)({ie:it,ielt9:nt,edge:ot,webkit:rt,android:st,android23:at,androidStock:lt,opera:ct,chrome:ut,gecko:pt,safari:dt,phantom:ft,opera12:_t,win:gt,ie3d:mt,webkit3d:vt,gecko3d:yt,any3d:bt,mobile:xt,mobileWebkit:Ot,mobileWebkit3d:wt,msPointer:Tt,pointer:Et,touch:St,mobileOpera:Ct,mobileGecko:Pt,retina:It,passiveEvents:Lt,canvas:Rt,svg:Mt,vml:jt}),Dt=Tt?"MSPointerDown":"pointerdown",Ft=Tt?"MSPointerMove":"pointermove",Nt=Tt?"MSPointerUp":"pointerup",zt=Tt?"MSPointerCancel":"pointercancel",Bt=["INPUT","SELECT","OPTION"],Gt={},Zt=!1,Wt=0;function Yt(t){Gt[t.pointerId]=t,Wt++}function Vt(t){Gt[t.pointerId]&&(Gt[t.pointerId]=t)}function Xt(t){delete Gt[t.pointerId],Wt--}function Ut(t,e){for(var i in t.touches=[],Gt)t.touches.push(Gt[i]);t.changedTouches=[t],e(t)}var Kt,Ht,$t,qt,Jt,Qt=Tt?"MSPointerDown":Et?"pointerdown":"touchstart",te=Tt?"MSPointerUp":Et?"pointerup":"touchend",ee="_leaflet_",ie=ve(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ne=ve(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),oe="webkitTransition"===ne||"OTransition"===ne?ne+"End":"transitionend";function re(t){return"string"==typeof t?document.getElementById(t):t}function se(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function ae(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function he(t){var e=t.parentNode;e&&e.removeChild(t)}function le(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ce(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ue(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function pe(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=ge(t);return 0this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,B(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=D((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=D(e.paddingBottomRight||e.padding||[0,0]),o=this.getCenter(),r=this.project(o),s=this.project(t),a=this.getPixelBounds(),h=a.getSize().divideBy(2),l=N([a.min.add(i),a.max.subtract(n)]);if(!l.contains(s)){this._enforcingBounds=!0;var c=r.subtract(s),u=D(s.x+c.x,s.y+c.y);(s.xl.max.x)&&(u.x=r.x-c.x,0l.max.y)&&(u.y=r.y-c.y,0=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],o="mouseout"===e||"mouseover"===e,r=t.target||t.srcElement,s=!1;r;){if((i=this._targets[h(r)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(i)){s=!0;break}if(i&&i.listens(e,!0)){if(o&&!Ue(r,t))break;if(n.push(i),o)break}if(r===this._container)break;r=r.parentNode}return n.length||s||o||!Ue(r,t)||(n=[this]),n},_handleDOMEvent:function(t){if(this._loaded&&!Xe(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||Ee(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var o=i({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}if(!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,e))).length){var r=n[0];"contextmenu"===e&&r.listens(e,!0)&&Ne(t);var s={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var a=r.getLatLng&&(!r._radius||r._radius<=10);s.containerPoint=a?this.latLngToContainerPoint(r.getLatLng()):this.mouseEventToContainerPoint(t),s.layerPoint=this.containerPointToLayerPoint(s.containerPoint),s.latlng=a?r.getLatLng():this.layerPointToLatLng(s.layerPoint)}for(var h=0;hthis.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(o)||(C(function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)},this),0))},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,de(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&fe(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),C(function(){this._moveEnd(!0)},this))}});function qe(t){return new Je(t)}var Je=R.extend({options:{position:"topright"},initialize:function(t){_(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return de(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(he(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+h(this),n),this._layerControlInputs.push(e),e.layerId=h(t.layer),Le(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var r=document.createElement("div");return i.appendChild(r),r.appendChild(e),r.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){var t,e,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var r=i.length-1;0<=r;r--)t=i[r],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||o.push(e);for(r=0;re.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),ti=Je.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=ae("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var r=ae("a",i,n);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),Fe(r),Le(r,"click",ze),Le(r,"click",o,this),Le(r,"click",this._refocusOnMap,this),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";fe(this._zoomInButton,e),fe(this._zoomOutButton,e),!this._disabled&&t._zoom!==t.getMinZoom()||de(this._zoomOutButton,e),!this._disabled&&t._zoom!==t.getMaxZoom()||de(this._zoomInButton,e)}});$e.mergeOptions({zoomControl:!0}),$e.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ti,this.addControl(this.zoomControl))});var ei=Je.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=ae("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=ae("div",e,i)),t.imperial&&(this._iScale=ae("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,o=3.2808399*t;5280Leaflet'},initialize:function(t){_(this,t),this._attributions={}},onAdd:function(t){for(var e in(t.attributionControl=this)._container=ae("div","leaflet-control-attribution"),Fe(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(" | ")}}});$e.mergeOptions({attributionControl:!0}),$e.addInitHook(function(){this.options.attributionControl&&(new ii).addTo(this)}),Je.Layers=Qe,Je.Zoom=ti,Je.Scale=ei,Je.Attribution=ii,qe.layers=function(t,e,i){return new Qe(t,e,i)},qe.zoom=function(t){return new ti(t)},qe.scale=function(t){return new ei(t)},qe.attribution=function(t){return new ii(t)};var ni=R.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}});ni.addTo=function(t,e){return t.addHandler(e,this),this};var oi,ri={Events:M},si=St?"touchstart mousedown":"mousedown",ai={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},hi={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},li=j.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){_(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(Le(this._dragStartTarget,si,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(li._dragging===this&&this.finishDrag(),Me(this._dragStartTarget,si,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!pe(this._element,"leaflet-zoom-anim")&&!(li._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((li._dragging=this)._preventOutline&&Ee(this._element),we(),Kt(),this._moving)))){this.fire("down");var e=t.touches?t.touches[0]:t,i=Ce(this._element);this._startPoint=new k(e.clientX,e.clientY),this._parentScale=Pe(i),Le(document,hi[t.type],this._onMove,this),Le(document,ai[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&1e.max.x&&(i|=2),t.ye.max.y&&(i|=8),i}function _i(t,e,i,n){var o,r=e.x,s=e.y,a=i.x-r,h=i.y-s,l=a*a+h*h;return 0this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(l=!l);return l||Ni.prototype._containsPoint.call(this,t,!0)}}),Bi=Li.extend({initialize:function(t,e){_(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=y(t)?t:t.features;if(o){for(e=0,i=o.length;el.x&&(c=r.x+n-l.x+h.x),r.x-c-a.x<0&&(c=r.x-a.x),r.y+i+h.y>l.y&&(u=r.y+i-l.y+h.y),r.y-u-a.y<0&&(u=r.y-a.y),(c||u)&&t.fire("autopanstart").panBy([c,u])}},_onCloseButtonClick:function(t){this._close(),ze(t)},_getAnchor:function(){return D(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});$e.mergeOptions({closePopupOnClick:!0}),$e.include({openPopup:function(t,e,i){return t instanceof nn||(t=new nn(i).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Pi.include({bindPopup:function(t,e){return t instanceof nn?(_(t,e),(this._popup=t)._source=this):(this._popup&&!e||(this._popup=new nn(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(ze(t),e instanceof Ai?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var on=en.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){en.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){en.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=en.prototype.getEvents.call(this);return St&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ae("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e=this._map,i=this._container,n=e.latLngToContainerPoint(e.getCenter()),o=e.layerPointToContainerPoint(t),r=this.options.direction,s=i.offsetWidth,a=i.offsetHeight,h=D(this.options.offset),l=this._getAnchor();t="top"===r?t.add(D(-s/2+h.x,-a+h.y+l.y,!0)):"bottom"===r?t.subtract(D(s/2-h.x,-h.y,!0)):"center"===r?t.subtract(D(s/2+h.x,a/2-l.y+h.y,!0)):"right"===r||"auto"===r&&o.xthis.options.maxZoom||ithis.options.maxZoom||void 0!==this.options.minZoom&&oi.max.x)||!e.wrapLat&&(t.yi.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return B(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i);return[e.unproject(n,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new z(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new k(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(he(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){de(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=u,t.onmousemove=u,nt&&this.options.opacity<1&&me(t,this.options.opacity),st&&!at&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),r(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&C(r(this._tileReady,this,t,null,o)),be(o,i),this._tiles[n]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(me(i.el,0),P(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(de(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),nt||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new k(this._wrapX?c(t.x,this._wrapX):t.x,this._wrapY?c(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new F(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),an=sn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=_(this,e)).detectRetina&&It&&0')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),fn={_initContainer:function(){this._container=ae("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(cn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=dn("shape");de(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=dn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;he(e),t.removeInteractiveTarget(e),delete this._layers[h(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=dn("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=y(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=dn("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ce(t._container)},_bringToBack:function(t){ue(t._container)}},_n=jt?dn:Q,gn=cn.extend({getEvents:function(){var t=cn.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=_n("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=_n("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){he(this._container),Me(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){cn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),be(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=_n("path");t.options.className&&de(e,t.options.className),t.options.interactive&&de(e,"leaflet-interactive"),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){he(t._path),t.removeInteractiveTarget(t._path),delete this._layers[h(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,tt(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ce(t._path)},_bringToBack:function(t){ue(t._path)}});function mn(t){return Mt||jt?new gn(t):null}jt&&gn.include(fn),$e.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&pn(t)||mn(t)}});var vn=zi.extend({initialize:function(t,e){zi.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=B(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});gn.create=_n,gn.pointsToPath=tt,Bi.geometryToLayer=Gi,Bi.coordsToLatLng=Wi,Bi.coordsToLatLngs=Yi,Bi.latLngToCoords=Vi,Bi.latLngsToCoords=Xi,Bi.getFeature=Ui,Bi.asFeature=Ki,$e.mergeOptions({boxZoom:!0});var yn=ni.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Le(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Me(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){he(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Kt(),we(),this._startPoint=this._map.mouseEventToContainerPoint(t),Le(document,{contextmenu:ze,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ae("div","leaflet-zoom-box",this._container),de(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new F(this._point,this._startPoint),i=e.getSize();be(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(he(this._box),fe(this._container,"leaflet-crosshair")),Ht(),Te(),Me(document,{contextmenu:ze,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var e=new z(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});$e.addInitHook("addHandler","boxZoom",yn),$e.mergeOptions({doubleClickZoom:!0});var bn=ni.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});$e.addInitHook("addHandler","doubleClickZoom",bn),$e.mergeOptions({dragging:!0,inertia:!at,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var xn=ni.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new li(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}de(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){fe(this._map._container,"leaflet-grab"),fe(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=B(this._map.options.maxBounds);this._offsetLimit=N(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,r=(n+e+i)%t-e-i,s=Math.abs(o+i)e.getMaxZoom()&&11,d=i?"bmaphidpi":"geolandbasemap",x=i?2:1;w.viennaWebMercator=Object(v.d)([16.3725042,48.2083537]);var O=document.createElement("button");O.id="coordButton",O.title="Cursor Selektierung",O.className="btn-coordSearch";var L=document.createElement("span");L.className="glyphicon glyphicon-screenshot",O.appendChild(L);var R=document.createElement("button");R.id="textSearchButton",R.title="Suche per Text",R.className="btn-searchText";var M=document.createElement("span");M.className="glyphicon glyphicon-search",R.appendChild(M);var j=document.createElement("button");j.id="showTicketsButton",j.title="Zeige Tickets in der Nähe an",j.className="btn-options";var k=document.createElement("span");k.className="glyphicon icon-incident",j.appendChild(k);var A=document.createElement("button");A.id="deleteSelectionButton",A.title="Auswahl aufheben",A.className="btn-options";var D=document.createElement("span");D.className="glyphicon icon-cross_circle_o",A.appendChild(D);w.deselectAdress=function(t){w.selectedItem={}},O.addEventListener("click",function(e){t(this).tooltip("hide"),w.hideCoordLabelTooltip(),w.coordSearchActive?w.disableCoordSearch():w.enableCoordSearch()},!1),R.addEventListener("click",function(e){t(this).tooltip("hide"),w.openSearchPanel(),w.disableCoordSearch()},!1),A.addEventListener("click",w.deselectAdress,!1),j.addEventListener("click",T,!1);var F=document.createElement("div");F.className="ntt-ol-control",F.appendChild(R),F.appendChild(O),F.appendChild(j),F.appendChild(A);var N=document.createElement("div");N.id="tooltip",N.style.display="none";var z=document.createElement("div");z.id="tooltip_name",z.className="assign-list__person-field-name";var B=document.createElement("div");B.id="tooltip_bezirk",B.className="assign-list__person-field-label",N.appendChild(z),N.appendChild(B),w.searchControls=new y.a({element:F}),w.coordLabel=new y.a({element:N}),w.map=new e.a({target:"map",controls:[new b.a({className:"ol-zoom-ntt"})],view:new n.a({center:w.viennaWebMercator,zoom:13})}),w.marker=new c.a({});var G=new r.a({features:[w.marker]});w.radarFeature=new c.a({});var Z=new r.a({projection:"EPSG:4326",features:[w.radarFeature]});w.markerStyle=new s.b({text:new u.a({text:"Test text",offsetY:-85,scale:1.8,padding:[5,10,5,10],backgroundFill:new p.a({color:[255,136,0,.8]}),fill:new p.a({color:"#fff"}),stroke:new a.a({color:"#000",width:1}),backgroundStroke:new a.a({color:"#fff",width:1})}),image:new h.a({form:"marker",radius:30,offsetY:-30,gradient:!0,fontSize:1,fontStyle:"",rotation:0*Math.PI/180,rotateWithView:!1,color:"white",fill:new p.a({color:"#f86e00"}),stroke:new a.a({color:"white",width:2})}),stroke:new a.a({width:3,color:"white"}),fill:new p.a({color:[255,136,0,.6]})}),w.markerVectorLayer=new o.a({name:"marker",source:G,style:[w.markerStyle,new s.b({image:new l.a({radius:15,blur:5,offsetX:0,offsetY:0,fill:new p.a({color:"rgba(0,0,0,0.5)"})})})]}),w.radarVectorLayer=new o.a({name:"distanceRadar",source:Z,visible:!1}),fetch("./NTTDATA/modules/adressService/WMTSCapabilities.xml",{headers:{"Sec-Fetch-Site":"none","Sec-Fetch-Dest":"document"}}).then(function(t){return t.text()}).then(function(e){var i=(new f.a).read(e),n=Object(m.b)(i,{layer:d,matrixSet:"google3857",style:"normal"});n.tilePixelRatio=x,w.map.addLayer(new g.a({source:new m.a(n)})),w.map.addLayer(w.markerVectorLayer),w.map.addLayer(w.radarVectorLayer),w.map.addControl(w.searchControls),w.toggleMapControls(),t("#coordButton, #textSearchButton, #showTicketsButton").tooltip({placement:"right",container:"#map"}),w.$apply(function(){w.state.processing=!1}),w.map.showDistanceRadar=I,w.map.hideDistanceRadar=C,w.map.hideAdressMarker=E,w.map.showAdressMarker=S,w.$parent.$parent.$apply(function(){w.$parent.$parent.map=w.map}),P(function(){w.$broadcast("resizeMap")},0,!1)})}(),D()},0),window.onresize=function(){w.resizeMap()},this.$onInit=function(){console.log("init"),window.addEventListener("resize",w.resizeMap())},w.$on("$destroy",function(){console.log("destroyed")}),w.toggleMapControls=function(){w.displayOnly||(t("#textSearchButton").css({display:"block"}),t("#coordButton").css({display:"block"})),w.selectedItem.properties&&w.enableNearbyTicketPanel?(t("#showTicketsButton").css({display:"block"}),w.displayOnly||t("#deleteSelectionButton").css({display:"block"})):(t("#showTicketsButton").hide(),t("#deleteSelectionButton").hide())},w.$watch("selectedItem",function(t,e){t&&t.properties?w.markAdressOnMap(t):t!=e&&w.deleteAdressOnMap(),w.toggleMapControls()}),w.deleteAdressOnMap=function(){w.marker.setGeometry(null),w.map.getView().setCenter(w.viennaWebMercator),w.map.getView().setZoom(13),w.$emit("assignedAdressChanged",null)},w.$watch("coordSearchResultItem",function(t,e){}),w.markAdressOnMap=function(t){var e;e=null!=t.properties.Location?Object(v.d)(t.properties.Location.coordinates):Object(v.d)(t.geometry.coordinates),w.marker.setGeometry(new d.a(e)),t.properties.doNotZoomIn||(w.map.getView().setCenter(e),w.map.getView().setZoom(16)),w.markerStyle.getText().setText(t.properties.Adresse),w.$emit("assignedAdressChanged",t)};var E=function(){w.markerVectorLayer.setVisible(!1)},S=function(){w.markerVectorLayer.setVisible(!0)},C=function(){w.radarVectorLayer.setVisible(!1)},I=function(t){w.radarVectorLayer.setVisible(!0);var e=w.map.getView(),i=e.getProjection(),n=e.getResolution(),o=w.marker.getGeometry().getCoordinates(),r=n/i.getPointResolutionFunc_(n,o),s=(t=t/v.a.m*r,new x.a(o,t));w.radarFeature.setGeometry(s)},L=null,R=function(t){w.hideCoordLabelTooltip(),clearTimeout(L),L=setTimeout(function(){var e=Object(v.n)(t.coordinate,"EPSG:3857","EPSG:4326").join(",");k.getAdressInfoByCoord({location:e,crs:"EPSG:4326"}).then(function(e){e.features&&w.showCoordLabelTooltip(e.features[0],t.pixel)})},50)},M=function(t){clearTimeout(L),w.disableCoordSearch();var e=Object(v.n)(t.coordinate,"EPSG:3857","EPSG:4326").join(",");k.getAdressInfoByCoord({location:e,crs:"EPSG:4326"}).then(function(t){if(t.features){var e=t.features[0];e.properties.searchType="byCoord",e.properties.Bezirk=A(e.properties.Bezirk),e.properties.doNotZoomIn=!0,w.selectedItem=e}})},j=function(){clearTimeout(L),w.coordSearchResult=[],w.hideCoordLabelTooltip()};w.showCoordLabelTooltip=function(e,i){t("#tooltip_name").text(e.properties.Adresse),t("#tooltip_bezirk").text(A(e.properties.Bezirk)+".Bezirk");var n=t("#tooltip").width()/2-10;t("#tooltip").css({position:"absolute",left:i[0]-n,top:i[1]-80}),t("#tooltip").show()},w.hideCoordLabelTooltip=function(e,i){t("#tooltip").hide()},w.closeSearchPanel=function(){w.displaySearchPanel=!1,w.map.addControl(w.searchControls)},w.openSearchPanel=function(){w.displaySearchPanel=!0,t("#coordButton").removeClass("activeCoordButton"),w.map.removeControl(w.searchControls)},w.$watch("showNearByTicketPanel",function(e,i){e!=i&&(w.showNearByTicketPanel?t("#showTicketsButton").addClass("activeShowTicketsButton"):t("#showTicketsButton").removeClass("activeShowTicketsButton"))}),w.enableCoordSearch=function(){t("#coordButton").addClass("activeCoordButton");var e=w.map.getTarget();t("string"==typeof e?"#"+e:e).css("cursor","crosshair"),w.map.addEventListener("click",M),w.map.addEventListener("pointermove",R),w.map.getViewport().addEventListener("mouseout",j,!1),w.coordSearchActive=!0,w.map.addControl(w.coordLabel)},w.disableCoordSearch=function(){t("#coordButton").removeClass("activeCoordButton");var e=w.map.getTarget();t("string"==typeof e?"#"+e:e).css("cursor","default"),w.map.removeEventListener("click",M),w.map.removeEventListener("pointermove",R),w.map.getViewport().removeEventListener("mouseout",j,!1),w.coordSearchActive=!1,w.map.removeControl(w.coordLabel)},w.$on("markAdressOnMap",function(t,e){w.markAdressOnMap(e)}),w.selectItemCallback=function(t){w.selectedItem=t};var A=function(t){return t.replace(/^0+/,"")};w.$on("showDistanceRadius",function(){}),w.resizeMap=function(){w.map.updateSize(),w.map.getLayers().getArray()[0].getSource().changed(),w.$emit("mapSizeChanged",w.map.getSize()[1])},w.$on("resizeMap",function(){w.resizeMap()});var D=function(){w.adressItem&&(w.selectedItem=w.adressItem)}}]}}])}.call(this,i(50))},function(t,e,i){var n=i(119);"string"==typeof n&&(n=[[t.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(84)(n,o);n.locals&&(t.exports=n.locals)},function(t,e,i){(t.exports=i(83)(!1)).push([t.i,'.ol-box {\n box-sizing: border-box;\n border-radius: 2px;\n border: 2px solid blue;\n}\n\n.ol-mouse-position {\n top: 8px;\n right: 8px;\n position: absolute;\n}\n\n.ol-scale-line {\n background: rgba(0,60,136,0.3);\n border-radius: 4px;\n bottom: 8px;\n left: 8px;\n padding: 2px;\n position: absolute;\n}\n.ol-scale-line-inner {\n border: 1px solid #eee;\n border-top: none;\n color: #eee;\n font-size: 10px;\n text-align: center;\n margin: 1px;\n will-change: contents, width;\n transition: all 0.25s;\n}\n.ol-scale-bar {\n position: absolute;\n bottom: 8px;\n left: 8px;\n}\n.ol-scale-step-marker {\n width: 1px;\n height: 15px;\n background-color: #000000;\n float: right;\n z-Index: 10;\n}\n.ol-scale-step-text {\n position: absolute;\n bottom: -5px;\n font-size: 12px;\n z-Index: 11;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-text {\n position: absolute;\n font-size: 14px;\n text-align: center;\n bottom: 25px;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-singlebar {\n position: relative;\n height: 10px;\n z-Index: 9;\n border: 1px solid black;\n}\n\n.ol-unsupported {\n display: none;\n}\n.ol-viewport, .ol-unselectable {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n.ol-overlaycontainer, .ol-overlaycontainer-stopevent {\n pointer-events: none;\n}\n.ol-overlaycontainer > *, .ol-overlaycontainer-stopevent > * {\n pointer-events: auto;\n}\n.ol-selectable {\n -webkit-touch-callout: default;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n.ol-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n.ol-grab {\n cursor: move;\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n.ol-control {\n position: absolute;\n background-color: rgba(255,255,255,0.4);\n border-radius: 4px;\n padding: 2px;\n}\n.ol-control:hover {\n background-color: rgba(255,255,255,0.6);\n}\n.ol-zoom {\n top: .5em;\n left: .5em;\n}\n.ol-rotate {\n top: .5em;\n right: .5em;\n transition: opacity .25s linear, visibility 0s linear;\n}\n.ol-rotate.ol-hidden {\n opacity: 0;\n visibility: hidden;\n transition: opacity .25s linear, visibility 0s linear .25s;\n}\n.ol-zoom-extent {\n top: 4.643em;\n left: .5em;\n}\n.ol-full-screen {\n right: .5em;\n top: .5em;\n}\n\n.ol-control button {\n display: block;\n margin: 1px;\n padding: 0;\n color: white;\n font-size: 1.14em;\n font-weight: bold;\n text-decoration: none;\n text-align: center;\n height: 1.375em;\n width: 1.375em;\n line-height: .4em;\n background-color: rgba(0,60,136,0.5);\n border: none;\n border-radius: 2px;\n}\n.ol-control button::-moz-focus-inner {\n border: none;\n padding: 0;\n}\n.ol-control button span {\n pointer-events: none;\n}\n.ol-zoom-extent button {\n line-height: 1.4em;\n}\n.ol-compass {\n display: block;\n font-weight: normal;\n font-size: 1.2em;\n will-change: transform;\n}\n.ol-touch .ol-control button {\n font-size: 1.5em;\n}\n.ol-touch .ol-zoom-extent {\n top: 5.5em;\n}\n.ol-control button:hover,\n.ol-control button:focus {\n text-decoration: none;\n background-color: rgba(0,60,136,0.7);\n}\n.ol-zoom .ol-zoom-in {\n border-radius: 2px 2px 0 0;\n}\n.ol-zoom .ol-zoom-out {\n border-radius: 0 0 2px 2px;\n}\n\n\n.ol-attribution {\n text-align: right;\n bottom: .5em;\n right: .5em;\n max-width: calc(100% - 1.3em);\n}\n\n.ol-attribution ul {\n margin: 0;\n padding: 0 .5em;\n color: #000;\n text-shadow: 0 0 2px #fff;\n}\n.ol-attribution li {\n display: inline;\n list-style: none;\n}\n.ol-attribution li:not(:last-child):after {\n content: " ";\n}\n.ol-attribution img {\n max-height: 2em;\n max-width: inherit;\n vertical-align: middle;\n}\n.ol-attribution ul, .ol-attribution button {\n display: inline-block;\n}\n.ol-attribution.ol-collapsed ul {\n display: none;\n}\n.ol-attribution:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-attribution.ol-uncollapsible {\n bottom: 0;\n right: 0;\n border-radius: 4px 0 0;\n}\n.ol-attribution.ol-uncollapsible img {\n margin-top: -.2em;\n max-height: 1.6em;\n}\n.ol-attribution.ol-uncollapsible button {\n display: none;\n}\n\n.ol-zoomslider {\n top: 4.5em;\n left: .5em;\n height: 200px;\n}\n.ol-zoomslider button {\n position: relative;\n height: 10px;\n}\n\n.ol-touch .ol-zoomslider {\n top: 5.5em;\n}\n\n.ol-overviewmap {\n left: 0.5em;\n bottom: 0.5em;\n}\n.ol-overviewmap.ol-uncollapsible {\n bottom: 0;\n left: 0;\n border-radius: 0 4px 0 0;\n}\n.ol-overviewmap .ol-overviewmap-map,\n.ol-overviewmap button {\n display: inline-block;\n}\n.ol-overviewmap .ol-overviewmap-map {\n border: 1px solid #7b98bc;\n height: 150px;\n margin: 2px;\n width: 150px;\n}\n.ol-overviewmap:not(.ol-collapsed) button{\n bottom: 1px;\n left: 2px;\n position: absolute;\n}\n.ol-overviewmap.ol-collapsed .ol-overviewmap-map,\n.ol-overviewmap.ol-uncollapsible button {\n display: none;\n}\n.ol-overviewmap:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-overviewmap-box {\n border: 2px dotted rgba(0,60,136,0.7);\n}\n\n.ol-overviewmap .ol-overviewmap-box:hover {\n cursor: move;\n}\n',""])},function(t,e){var i=null,n=null;function o(t,e,i){t.addEventListener(e,function(t){var o=new MouseEvent(i,t);o.pointerId=1,o.isPrimary=!0,o.pointerType="mouse",o.width=1,o.height=1,o.tiltX=0,o.tiltY=0,"buttons"in t&&0!==t.buttons?o.pressure=.5:o.pressure=0;var r=t.target;null!==n&&(r=n,"mouseup"===e&&(n=null)),r.dispatchEvent(o),o.defaultPrevented&&t.preventDefault()})}function r(t,e,n){t.addEventListener(e,function(t){for(var o=t.changedTouches,r=o.length,s=0;s3?i.searchAdress(i.searchText):i.searchResult=[]},200)},i.$watch("selectedItem",function(t,e){t.properties}),i.clickAdressItem=function(t,e,n){e.properties.searchType="byString",-1==i.selectedIndex&&(i.originalSearchText=i.searchText),i.searchText=e.properties.Adresse,i.selectedIndex=t,i.onSelectItem({selectItem:e}),i.deletePreview(),i.closeSearchPanel()},i.processSelectedAdress=function(){if(-1!=i.selectedIndex){var t=i.searchResult[i.selectedIndex];i.clickAdressItem(i.selectedIndex,t)}},i.isCurrentItem=function(t){return void 0!==i.selectedItem&&void 0!==i.selectedItem.properties&&JSON.stringify(i.selectedItem.properties.Adresse)===JSON.stringify(t.properties.Adresse)},i.searchAdress=function(t){_.getAdresses({Address:t,crs:"EPSG:4326"}).then(function(t){t.features?i.searchResult=t.features:i.searchResult=[]})},i.clearSearchText=function(){i.searchText="",i.clearSelection()},i.clearSelection=function(){i.searchResult=[],i.selectedIndex=-1},i.closeSearchPanel=function(){i.clearSearchText(),i.onClose()},i.previewAdress=function(t){var e;(i.previewMarker.setVisible(!1),t&&!i.isCurrentItem(t))&&(e=null!=t.properties.Location?Object(o.d)(t.properties.Location.coordinates):Object(o.d)(t.geometry.coordinates),i.previewMarker.setPosition(e),i.previewMarker.setVisible(!0))},i.deletePreview=function(){i.previewMarker.setPosition(null),i.previewMarker.setVisible(!1)},i.handleKeyDown=function(t){switch(t.keyCode){case 40:-1==i.selectedIndex&&(i.originalSearchText=i.searchText),i.selectedIndex-1&&(i.selectedIndex-=1,-1==i.selectedIndex?i.searchText=i.originalSearchText:i.searchText=i.searchResult[i.selectedIndex].properties.Adresse)}}}]}}])},function(t,e,i){"use strict";i.r(e),function(t){var e=i(63),n=i(2);angular.module("ticketModule").directive("ticketsNearbyPanel",["nttTicketDistanceService","ticketModel","relationModel","userModel","$q","$filter","$modal","events","$timeout","$state","i18nService","systemAlertService","objectValueMapperService","nttevents","nttAdressService",function(i,o,r,s,a,h,l,c,u,p,d,f,g,m,v){return{restrict:"E",replace:!0,scope:{selectedItem:"=",onClose:"&",map:"=",onSelectItem:"&",showNearByTicketPanel:"=",adressItem:"=",ticket:"=",distanceRange:"=",selectedStatus:"=",enableNearbyTicketPanel:"="},templateUrl:"views/tickets-nearby-panel.html",link:function(t,e,i){},controller:["$element","$attrs","$scope",function(o,s,a){if(a.enableNearbyTicketPanel){a.currentTicketId="incident"==a.ticket.type?a.ticket.id:a.ticket.parentId;var l={itemLimit:4,isDataLoading:!1,watchersOn:!1,ticketFilterStatuses:["all","open","resolved","cancelled"],mapOptions:{showTicketsOnMap:!0,showRadiusOnMap:!0}};a.recommendedTickets=[],l.ticketFilterSelectedStatus=a.selectedStatus?a.selectedStatus:l.ticketFilterStatuses[1],a.statusFilter=function(t){return"all"===l.ticketFilterSelectedStatus||("open"===l.ticketFilterSelectedStatus?_.includes(["Assigned","In Progress","Pending"],t.status):t.status.toLowerCase()===l.ticketFilterSelectedStatus||void 0)},a.$watch("state.ticketFilterSelectedStatus",function(t,e){t!=e&&c()}),t(document).on("click",".allow-focus",function(t){t.stopPropagation()}),t(".ntt-checkbox-menu").on("change","input[type='checkbox']",function(){t(this).closest("li").toggleClass("active",this.checked)}),a.state=l,a.distanceRange=a.distanceRange?a.distanceRange:.2,a.initAdressDot=function(){if(a.addressDot=a.map.getOverlayById("adress-dot"),!a.addressDot){var t=document.createElement("span");t.className="dot",a.addressDot=new e.a({id:"adress-dot",positioning:"center-center",element:t,stopEvent:!1,offset:[0,-20],visible:!0}),a.map.addOverlay(a.addressDot)}var i=Object(n.d)(a.adressItem.properties.Location?a.adressItem.properties.Location.coordinates:a.adressItem.geometry.coordinates);a.addressDot.setPosition(i),a.addressDot.setVisible(!0)},a.removeAdressDot=function(){a.map.removeOverlay(a.addressDot)},a.previewTicket=function(t){t&&(t.preview=!0,a.ticketToShow=t,document.querySelector(".m"+t.displayId).classList.add("activeTicket"))},a.deletePreview=function(t){t&&(t.preview=!1,a.ticketToShow=a.selectedTicket,document.querySelector(".m"+t.displayId).classList.remove("activeTicket"))},a.selectTicket=function(t){if(t){if(document.querySelector(".m"+t.displayId).classList.add("selectedTicket"),a.selectedTicket){var e=document.querySelector(".m"+a.selectedTicket.displayId);e&&e.classList.remove("selectedTicket"),a.selectedTicket.isSelected=!1}t.isSelected=!0,a.selectedTicket=t,a.ticketToShow=a.selectedTicket}},a.$watch("recommendedTickets",function(t,e){a.deleteOldPreviewMarkers(e),a.initPreviewMarkers(t)}),a.deleteOldPreviewMarkers=function(t){for(var e=0;e0&&o.find(".form-control").attr("maxlength",e.data.maxLength);var r=_.cloneDeep(e.data.value);e.$on(n.SAVE_CHANGES,function(){r=_.cloneDeep(e.data.value)}),e.$on(n.DISCARD_CHANGES,function(){e.data.value=_.cloneDeep(r)})}}}])}()}).call(this,i(50))}])});