/*! For license information please see LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[120],[function(t,e,n){"use strict";n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return f})),n.d(e,"e",(function(){return d})),n.d(e,"f",(function(){return v})),n.d(e,"g",(function(){return m})),n.d(e,"h",(function(){return y})),n.d(e,"i",(function(){return _})),n.d(e,"j",(function(){return x})),n.d(e,"k",(function(){return O})),n.d(e,"l",(function(){return w})),n.d(e,"m",(function(){return j})),n.d(e,"n",(function(){return S})),n.d(e,"o",(function(){return E})),n.d(e,"p",(function(){return C})),n.d(e,"q",(function(){return T})),n.d(e,"r",(function(){return R})),n.d(e,"s",(function(){return P})),n.d(e,"t",(function(){return L})),n.d(e,"u",(function(){return A})),n.d(e,"v",(function(){return M})),n.d(e,"w",(function(){return k})),n.d(e,"x",(function(){return D})),n.d(e,"y",(function(){return N})),n.d(e,"z",(function(){return $})),n.d(e,"A",(function(){return G})),n.d(e,"B",(function(){return z})),n.d(e,"C",(function(){return B})),n.d(e,"D",(function(){return V})),n.d(e,"E",(function(){return U})),n.d(e,"F",(function(){return W})),n.d(e,"H",(function(){return Y})),n.d(e,"I",(function(){return X})),n.d(e,"J",(function(){return H})),n.d(e,"G",(function(){return K})),n.d(e,"a",(function(){return Z}));var r=n(25),o=n(229),c=n(85);function h(t){for(var e=x(),i=0,n=t.length;io&&(d|=c.a.RIGHT),fh&&(d|=c.a.ABOVE),d===c.a.UNKNOWN&&(d=c.a.INTERSECTING),d}function x(){return[1/0,1/0,-1/0,-1/0]}function O(t,e,n,r,o){return o?(o[0]=t,o[1]=e,o[2]=n,o[3]=r,o):[t,e,n,r]}function w(t){return O(1/0,1/0,-1/0,-1/0,t)}function j(t,e){var n=t[0],r=t[1];return O(n,r,n,r,e)}function S(t,e){return I(w(e),t)}function E(t,e,n,r,o){return P(w(o),t,e,n,r)}function C(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function T(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function R(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function I(t,e){for(var i=0,n=e.length;ie[0]?r[0]=t[0]:r[0]=e[0],t[1]>e[1]?r[1]=t[1]:r[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function Y(t){return t[2]=d&&l<=m),r||!(h&c.a.RIGHT)||o&c.a.RIGHT||(r=(f=j-(w-m)*S)>=v&&f<=y),r||!(h&c.a.BELOW)||o&c.a.BELOW||(r=(l=w-(j-v)/S)>=d&&l<=m),r||!(h&c.a.LEFT)||o&c.a.LEFT||(r=(f=j-(w-d)*S)>=v&&f<=y)}return r}function Z(t,e,n){var r=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]];return e(r,r,2),function(t,e,n){return O(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),n)}([r[0],r[2],r[4],r[6]],[r[1],r[3],r[5],r[7]],n)}},function(t,e,n){"use strict";(function(t){n.d(e,"w",(function(){return z})),n.d(e,"d",(function(){return B})),n.d(e,"C",(function(){return V})),n.d(e,"D",(function(){return U})),n.d(e,"i",(function(){return W})),n.d(e,"o",(function(){return Y})),n.d(e,"r",(function(){return X})),n.d(e,"j",(function(){return H})),n.d(e,"m",(function(){return Z})),n.d(e,"n",(function(){return J})),n.d(e,"p",(function(){return Q})),n.d(e,"q",(function(){return et})),n.d(e,"c",(function(){return it})),n.d(e,"y",(function(){return nt})),n.d(e,"B",(function(){return ot})),n.d(e,"l",(function(){return st})),n.d(e,"k",(function(){return at})),n.d(e,"s",(function(){return ut})),n.d(e,"g",(function(){return ht})),n.d(e,"A",(function(){return lt})),n.d(e,"u",(function(){return map})),n.d(e,"v",(function(){return ft})),n.d(e,"f",(function(){return pt})),n.d(e,"x",(function(){return gt})),n.d(e,"E",(function(){return vt})),n.d(e,"t",(function(){return mt})),n.d(e,"z",(function(){return yt})),n.d(e,"h",(function(){return _t})),n.d(e,"e",(function(){return bt})),n.d(e,"b",(function(){return xt})),n.d(e,"a",(function(){return Ot}));var r,o=n(97),c=n(37),h=n.n(c),l=(n(364),n(570)),f=n.n(l),d=n(128),v=n.n(d),m=n(24),y=n.n(m),_=n(19),x=n.n(_),O=n(42),w=n.n(O),j=(n(154),n(26)),S=n.n(j),E=n(64),C=n.n(E),T=n(28),R=n.n(T),I=h.a.mark(yt),P=(void 0!==t?t:"undefined"!=typeof window?window:{}).isFinite||z,F=Object.prototype,L=Object.prototype,A=F.toString,M=L.toString,k=(r={},A).call(r),D=(r=0,A).call(r),N=(r="",A).call(r),$=(r=!0,A).call(r),G=M.call(Object);function z(){}function B(t){return function(){return t}}function V(){return[]}function U(){return Object.create(null)}function W(t){return t}function Y(t){return A.call(t)===D}function X(t){return A.call(t)===N}function H(t){return Array.isArray(t)}function K(t){return tt(t)&&t.hasOwnProperty("length")}function Z(t){return"number"==typeof t&&P(t)}function J(t){return"function"==typeof t}function Q(t){return!isNaN(parseFloat(t))&&P(t)}function tt(t){return null!=t&&"object"===Object(o.a)(t)}function et(t){if(!tt(t)||A.call(t)!==k)return!1;var e=f()(t);if(null==e)return!0;var n=e.constructor;return"function"==typeof n&&n instanceof n&&M.call(n)===G}function it(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:ct;return lt(t,(function(t,n,r){return e(n,r)&&(H(t)?t.push(n):t[r]=n),t}),H(t)?[]:{})}function map(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W;return lt(t,(function(t,n,r){return t[r]=e(n,r),t}),H(t)?[]:{})}function ft(object){return map(object,arguments.length>1&&void 0!==arguments[1]?arguments[1]:W)}function pt(object){if(K(object))return object[0]}function gt(object,t){for(var e=arguments.length,n=new Array(e>2?e-2:0),r=2;r2&&void 0!==r[2]?r[2]:1,i=t;case 2:if(!(i2&&void 0!==arguments[2]?arguments[2]:st;return filter(t,(function(t){return!function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st;return filter(t,(function(t){return n(t,e)})).shift()}(e,t,n)}))}function xt(t){return t.replace(/([-_]\w)/g,(function(t){return t[1].toUpperCase()}))}function Ot(t){return function(t){return function(e){return H(e)&&e.length===t}}}}).call(this,n(149))},function(t,e,n){"use strict";function r(){return function(){throw new Error("Unimplemented abstract method.")}()}n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return h}));var o=0;function c(t){return t.ol_uid||(t.ol_uid=String(++o))}var h="5.3.3"},function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return v})),n.d(e,"e",(function(){return m})),n.d(e,"d",(function(){return y}));var r=n(15);function o(t,e,n,r){for(var o,i=0,c=t.length;i>3)?n.readString():2===t?n.readFloat():3===t?n.readDouble():4===t?n.readVarint64():5===t?n.readVarint():6===t?n.readSVarint():7===t?n.readBoolean():null;e.values.push(r)}}function oe(t,e,n){if(1==t)e.id=n.readVarint();else if(2==t)for(var r=n.readVarint()+n.pos;n.pos>3}h--,1===c||2===c?(l+=t.readSVarint(),f+=t.readSVarint(),1===c&&d>v&&(r.push(d),v=d),n.push(l,f),d+=2):7===c?d>v&&(n.push(n[v],n[v+1]),d+=2):Object(yt.a)(!1,59)}d>v&&(r.push(d),v=d)},e.prototype.createFeature_=function(t,e,n){var r,o=e.type;if(0===o)return null;var c=e.id,h=e.properties;h[this.layerName_]=e.layer.name;var l=[],f=[];this.readRawGeometry_(t,e,l,f);var d=function(t,e){var n;1===t?n=1===e?It.a.POINT:It.a.MULTI_POINT:2===t?n=1===e?It.a.LINE_STRING:It.a.MULTI_LINE_STRING:3===t&&(n=It.a.POLYGON);return n}(o,f.length);if(this.featureClass_===ie)r=new this.featureClass_(d,l,f,h,c);else{var v;if(d==It.a.POLYGON){for(var m=[],y=0,_=0,i=0,x=f.length;i1?new Dt.a(l,Wt.a.XY,m):new $t.b(l,Wt.a.XY,f)}else v=d===It.a.POINT?new Nt.a(l,Wt.a.XY):d===It.a.LINE_STRING?new At.a(l,Wt.a.XY):d===It.a.POLYGON?new $t.b(l,Wt.a.XY,f):d===It.a.MULTI_POINT?new kt.a(l,Wt.a.XY):d===It.a.MULTI_LINE_STRING?new Mt.a(l,Wt.a.XY,f):null;r=new(0,this.featureClass_),this.geometryName_&&r.setGeometryName(this.geometryName_);var w=wt(v,!1,this.adaptOptions(n));r.setGeometry(w),r.setId(c),r.setProperties(h)}return r},e.prototype.getLastExtent=function(){return this.extent_},e.prototype.getType=function(){return jt.a.ARRAY_BUFFER},e.prototype.readFeatures=function(source,t){var e=this.layers_,n=new Ut.a(source),r=n.readFields(ne,{}),o=[];for(var c in r)if(!e||-1!=e.indexOf(c)){for(var h=r[c],i=0,l=h.length;it[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]=2&&void 0===t[0].length&&void 0===t[1].length)return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}var Fe=function(t,e,n){if(!ye(n=n||{}))throw new Error("options is invalid");var r=n.units,o=Pe(t),c=Pe(e),h=ve(c[1]-o[1]),l=ve(c[0]-o[0]),f=ve(o[1]),d=ve(c[1]),a=Math.pow(Math.sin(h/2),2)+Math.pow(Math.sin(l/2),2)*Math.cos(f)*Math.cos(d);return ge(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)),r)};var Le=function(t,e){if(!t)throw new Error("targetPoint is required");if(!e)throw new Error("points is required");var n,r=1/0;return Oe(e,(function(e,o){var c=Fe(t,e);ct[1]!=f>t[1]&&t[0]<(l-c)*(t[1]-h)/(f-h)+c&&(r=!r)}return r}var Me=function(t,polygon,e){if("object"!=typeof(e=e||{}))throw new Error("options is invalid");var n=e.ignoreBoundary;if(!t)throw new Error("point is required");if(!polygon)throw new Error("polygon is required");var r=Pe(t),o=function(t){if(!t)throw new Error("coords is required");if("Feature"===t.type&&null!==t.geometry)return t.geometry.coordinates;if(t.coordinates)return t.coordinates;if(Array.isArray(t))return t;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}(polygon),c=polygon.geometry?polygon.geometry.type:polygon.type,h=polygon.bbox;if(h&&!1===function(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}(r,h))return!1;"Polygon"===c&&(o=[o]);for(var i=0,l=!1;i1&&void 0!==arguments[1]?arguments[1]:c;return Object(P.j)(t,e)}function ni(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return Object(P.d)(t,e)}function ri(t,e,n){return Object(P.k)(t,e,n)}function oi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return ei()(t).call(t,(function(t){return ii(t,e)}))}function si(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return ei()(t).call(t,(function(t){return ni(t,e)}))}function ai(t,e,n){return ei()(t).call(t,(function(t){return Object(P.k)(t,e,n)}))}function ci(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return ei()(t).call(t,(function(line){return oi(line,e)}))}function ui(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return ei()(t).call(t,(function(line){return si(line,e)}))}function hi(t,e,n){return ei()(t).call(t,(function(line){return ai(line,e,n)}))}function fi(t,e,n){return ei()(t).call(t,(function(t){return ri(t,e,n)}))}function di(t,e,n){return ei()(t).call(t,(function(line){return ai(line,e,n)}))}function pi(t,e,n){return ei()(t).call(t,(function(polygon){return hi(polygon,e,n)}))}var gi=(Qe={},Object(U.a)(Qe,x.POINT,{toLonLat:ii,fromLonLat:ni,transform:ri}),Object(U.a)(Qe,x.LINE_STRING,{toLonLat:oi,fromLonLat:si,transform:ai}),Object(U.a)(Qe,x.POLYGON,{toLonLat:ci,fromLonLat:ui,transform:hi}),Object(U.a)(Qe,x.MULTI_POINT,{toLonLat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return ei()(t).call(t,(function(t){return ii(t,e)}))},fromLonLat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return ei()(t).call(t,(function(t){return ni(t,e)}))},transform:fi}),Object(U.a)(Qe,x.MULTI_LINE_STRING,{toLonLat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return ei()(t).call(t,(function(line){return oi(line,e)}))},fromLonLat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return ei()(t).call(t,(function(line){return si(line,e)}))},transform:di}),Object(U.a)(Qe,x.MULTI_POLYGON,{toLonLat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return ei()(t).call(t,(function(polygon){return ci(polygon,e)}))},fromLonLat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return ei()(t).call(t,(function(polygon){return ui(polygon,e)}))},transform:pi}),Qe);function vi(object){return Object(bt.c)(object)}function mi(t,e){return Object(K.A)(t,(function(t,n,r){return r=r.toUpperCase(),ue()(e).call(e,r)||(t[r]=n),t}),{})}var yi=n(218);function _i(t){var e=function(){if("undefined"==typeof Reflect||!nt.a)return!1;if(nt.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(nt()(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(pt.a)(t);if(e){var o=Object(pt.a)(this).constructor;n=nt()(r,arguments,o)}else n=r.apply(this,arguments);return Object(mt.a)(this,n)}}function bi(t){return new Oi(t)}function xi(t){return new ae(t)}var Oi=function(t){Object(vt.a)(n,t);var e=_i(n);function n(){return Object(ot.a)(this,n),e.apply(this,arguments)}return Object(st.a)(n,[{key:"writeGeometryObject",value:function(t,e){if(l=t,Object(K.n)(l.getCenter)&&Object(K.n)(l.getRadius)){var r=t.getCenter(),c=[r[0]+t.getRadius(),r[1]],h=Object(yi.b)(new At.a([r,c]),e.featureProjection||this.defaultFeatureProjection);t=Ye(ri(t.getCenter(),e.featureProjection||this.defaultFeatureProjection,o),h),e.featureProjection=o}var l;return gt(Object(pt.a)(n.prototype),"writeGeometryObject",this).call(this,t,e)}},{key:"writeFeatureObject",value:function(t,e){var object={type:"Feature"},n=t.getId();void 0!==n&&(object.id=n);var r=t.getGeometry();object.geometry=r?this.writeGeometryObject(r,e):null;var o=t.getProperties();return delete o[t.getGeometryName()],Object(K.k)(o)?object.properties=null:object.properties=o,object}}]),n}(Bt),wi=bi();function ji(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,h=wi.writeFeatureObject(t,{featureProjection:n,dataProjection:r});Array.isArray(Object(K.h)(h,"properties.features"))&&(h.properties.features=ei()(e=h.properties.features).call(e,(function(t){return t instanceof W.a?ji(t,n,r):t})));return h}function Si(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,h=wi.readFeature(t,{featureProjection:n,dataProjection:r});Array.isArray(h.get("features"))&&h.set("features",ei()(e=h.get("features")).call(e,(function(t){return Object(K.q)(t)?Si(t,n,r):t})));return h}function Ei(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;return wi.writeGeometryObject(t,{featureProjection:e,dataProjection:n})}function Ci(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;return e=t,n=h,h=wi.readProjection(e)||n,wi.readGeometry(t,{featureProjection:r,dataProjection:h})}var Ti=n(45);function Ri(t){if(t instanceof H.a)return t.id;if(t instanceof Ti.a)return t.get("id");throw new Error("Illegal interaction argument")}function Ii(t,e){if(t instanceof H.a)return t.id=e,t;if(t instanceof Ti.a)return t.set("id",e),t;throw new Error("Illegal interaction argument")}function Pi(t){if(t instanceof H.a)return t.priority;if(t instanceof Ti.a)return t.get("priority");throw new Error("Illegal interaction argument")}function Fi(t,e){if(t instanceof H.a)return t.id=e,t;if(t instanceof Ti.a)return t.set("priority",e),t;throw new Error("Illegal interaction argument")}function Li(t,e,n){return null==Ri(t)&&Ii(t,e||X()()),null==Pi(t)&&Fi(t,n||0),t}var Ai=n(172);function Mi(t){if(t instanceof H.a)return t.id;if(t instanceof Ai.a)return t.get("id");throw new Error("Illegal layer argument")}function ki(t,e){if(t instanceof H.a)return t.id=e,t;if(t instanceof Ai.a)return t.set("id",e),t;throw new Error("Illegal layer argument")}function Di(t,e){return null==Mi(t)&&ki(t,e||X()()),t}var Ni=n(217),$i=n(178);function Gi(map){if(map instanceof H.a)return map.id;if(map instanceof $i.a)return map.get("id");throw new Error("Illegal map argument")}function zi(map,t){if(map instanceof H.a)return map.id=t,map;if(map instanceof $i.a)return map.set("id",t),map;throw new Error("Illegal map argument")}function Bi(map){if(map instanceof H.a)return map.dataProjection;if(map instanceof $i.a)return map.get("dataProjection");throw new Error("Illegal map argument")}function Vi(map,t){if(map instanceof H.a)return map.dataProjection=t,map;if(map instanceof $i.a)return map.set("dataProjection",t),map;throw new Error("Illegal map argument")}var Ui=n(228);function Wi(t){if(t instanceof H.a)return t.id;if(t instanceof Ui.a)return t.get("id");throw new Error("Illegal overlay argument")}function Yi(t,e){if(t instanceof H.a&&t)return t.id=e,t;if(t instanceof Ui.a)return t.set("id",e),t;throw new Error("Illegal overlay argument")}function Xi(t,e){return null==Wi(t)&&Yi(t,e||X()()),t}var Hi=n(173);function Ki(source){if(source instanceof H.a)return source.id;if(source instanceof Hi.a)return source.get("id");throw new Error("Illegal source argument")}function qi(source,t){if(source instanceof H.a)return source.id=t,source;if(source instanceof Hi.a)return source.set("id",t),source;throw new Error("Illegal source argument")}function Zi(source,t){return null==Ki(source)&&qi(source,t||X()()),source}var Ji=n(26),Qi=n.n(Ji),tn=n(14),en=n.n(tn),nn=n(225),rn=n(107),on=n(265),sn=n(199),an=n(260),cn=n(99),un=n(101),hn=n(159),ln=n(573),fn=n.n(ln);function dn(object,t){var e=k()(object);if(N.a){var n=N()(object);t&&(n=$()(n).call(n,(function(t){return z()(object,t).enumerable}))),e.push.apply(e,n)}return e}function pn(t){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:""),r=ei()(e=["fillColor"]).call(e,n),o=n("fill");if(t[o]instanceof rn.a)return t[o];var c=Object(K.A)(t,(function(style,t,e){return!1===ue()(r).call(r,e)||("color"===(e=Object(K.t)(e.replace(new RegExp(n("fill")),"")))&&(t=On(t)),style[e]=t),style}),{});return _n(c)?void 0:new rn.a(c)}function jn(t){var e,n=xn(arguments.length>1&&void 0!==arguments[1]?arguments[1]:""),r=ei()(e=["strokeColor","strokeWidth","strokeMiterLimit","strokeCap","strokeJoin","strokeDash","strokeDashOffset"]).call(e,n),o=n("stroke");if(t[o]instanceof cn.a)return t[o];var c=Object(K.A)(t,(function(style,t,e){if(!1===ue()(r).call(r,e))return style;switch(e){case n("strokeColor"):case n("strokeWidth"):case n("strokeMiterLimit"):e=Object(K.t)(e.replace(new RegExp(n("stroke")),""));break;case n("strokeCap"):case n("strokeJoin"):case n("strokeDash"):case n("strokeDashOffset"):e="line"+e.replace(new RegExp(n("stroke")),"")}return"color"===e&&(t=On(t)),style[e]=t,style}),{});return _n(c)?void 0:new cn.a(c)}function Sn(t){var e,n;if(!(_n(t.imageSrc)&&_n(t.image)&&_n(t.imagePoints))||Object(K.p)(t.imageRadius))return t.image instanceof sn.a?t.image:(_n(t.imageSrc)&&_n(t.image)?null!=t.imagePoints?(n=an.a,e=pn(pn({},t),{},{points:t.imagePoints,radius:t.imageRadius,radius1:t.imageRadius1,radius2:t.imageRadius2,angle:t.imageAngle,rotation:t.imageRotation})):(n=nn.a,e=pn(pn({},t),{},{radius:t.imageRadius})):(n=on.a,e=pn(pn({},t),{},{anchor:t.imageAnchor,anchorOrigin:t.imageAnchorOrigin,color:t.imageColor,offset:t.imageOffset,offsetOrigin:t.imageOffsetOrigin,opacity:t.imageOpacity,scale:t.imageScale,rotation:t.imageRotation,size:t.imageSize,img:t.image,imgSize:t.imageImgSize,src:t.imageSrc,crossOrigin:t.imageCrossOrigin})),e=pn(pn({},e),{},{fill:wn(t,"image")||wn(t),stroke:jn(t,"image")||jn(t),snapToPixel:!0}),_n(e)?void 0:new n(e))}function En(t){var e;if(null!=t.text){if(t.text instanceof hn.a)return t.text;var n={text:t.text},r="10px";t.textFontSize&&(r=Object(K.o)(t.textFontSize)?t.textFontSize+"px":t.textFontSize);var o=t.textFont||"sans-serif",c=$()(e=[t.textFontWeight,r,o]).call(e,(function(t){return!!t})).join(" ");return en()(n,Object(K.x)(t,["textAlign","textBaseline"]),{font:c,fill:wn(t,"text")||wn(t),stroke:jn(t,"text")||jn(t),scale:t.textScale,rotation:t.textRotation,offsetX:t.textOffsetX,offsetY:t.textOffsetY,rotateWithView:t.textRotateWithView,padding:t.textPadding,maxAngle:t.textMaxAngle,overflow:t.textOverflow,placement:t.textPlacement,backgroundFill:wn(t,"textBackground"),backgroundStroke:jn(t,"textBackground")}),_n(n)?void 0:new hn.a(n)}}function Cn(t){return Object(K.n)(t.geom)?function(e){return t.geom(e,r)}:t.geom}var Tn=n(61),Rn=n(79);n(226);function In(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;n=Object(Tn.d)(n);for(var r=Object(I.A)(t),o=Object(I.E)(t),c=Math.max(o/n[0],r/n[1]),l=e+1,d=new Array(l),v=0;v1?e:2,output=t;void 0===output&&(output=r>2?input.slice():new Array(n));for(var o=d,i=0;io?c=o:c<-o&&(c=-o),output[i+1]=c}return output}function O(input,t,e){var n=input.length,r=e>1?e:2,output=t;void 0===output&&(output=r>2?input.slice():new Array(n));for(var i=0;i180)&&(n[0]=Object(c.d)(r+180,360)-180),n}function B(t,e){if(t===e)return!0;var n=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||V(t,e)===L)&&n}function V(t,e){var n=function(t,e){var n;return t in P&&e in P[t]&&(n=P[t][e]),n}(t.getCode(),e.getCode());return n||(n=A),n}function U(source,t){return V(k(source),k(t))}function W(t,source,e){return U(source,e)(t,void 0,t.length)}function Y(t,source,e){var n=U(source,e);return Object(o.a)(t,n)}N(_),N(E),T=_,R=x,I=O,E.forEach((function(t){T.forEach((function(e){F(t,e,R),F(e,t,I)}))}))},function(t,e,n){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4,ABORT:5}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"e",(function(){return h})),n.d(e,"h",(function(){return l})),n.d(e,"g",(function(){return f})),n.d(e,"f",(function(){return d})),n.d(e,"i",(function(){return v})),n.d(e,"j",(function(){return m})),n.d(e,"d",(function(){return y})),n.d(e,"c",(function(){return _}));var r=n(25);function o(t,e,n){return Math.min(Math.max(t,e),n)}var c="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2};function h(t){return Object(r.a)(01?(n=o,r=c):d>0&&(n+=h*d,r+=l*d)}return f(t,e,n,r)}function f(t,e,n,r){var o=n-t,c=r-e;return o*o+c*c}function d(t){for(var e=t.length,i=0;ir&&(r=c,n=o)}if(0===r)return null;var h=t[n];t[n]=t[i],t[i]=h;for(var l=i+1;l=0;m--){v[m]=t[m][e]/t[m][m];for(var y=m-1;y>=0;y--)t[y][e]-=t[y][m]*v[m]}return v}function v(t){return 180*t/Math.PI}function m(t){return t*Math.PI/180}function y(a,b){var t=a%b;return t*b<0?t+b:t}function _(a,b,t){return a+t*(b-a)}},function(t,e,n){"use strict";n.d(e,"k",(function(){return _})),n.d(e,"m",(function(){return x})),n.d(e,"l",(function(){return O})),n.d(e,"e",(function(){return w})),n.d(e,"b",(function(){return j})),n.d(e,"s",(function(){return S})),n.d(e,"g",(function(){return E})),n.d(e,"h",(function(){return C})),n.d(e,"d",(function(){return T})),n.d(e,"r",(function(){return R})),n.d(e,"j",(function(){return I})),n.d(e,"t",(function(){return F})),n.d(e,"o",(function(){return A})),n.d(e,"q",(function(){return M})),n.d(e,"f",(function(){return k})),n.d(e,"c",(function(){return D})),n.d(e,"i",(function(){return N})),n.d(e,"p",(function(){return $})),n.d(e,"a",(function(){return Y})),n.d(e,"v",(function(){return X})),n.d(e,"n",(function(){return H})),n.d(e,"u",(function(){return K}));n(231),n(122),n(204),n(205),n(162),n(130),n(163);var r=n(106),o=n(86),c=n(43),h=n(129),l=(n(271),n(56),n(139),n(646),n(203),n(148),n(243),n(93),n(164),n(165),n(230),n(140),n(232),n(503),n(504),n(650),n(183),n(448),n(652),n(284),n(325),n(7)),f=n(179);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,h=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){h=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(h)throw o}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i1&&void 0!==arguments[1]?arguments[1]:[],r=m(t.$children||[]);try{for(r.s();!(e=r.n()).done;){var o=e.value;o.$fetch&&n.push(o),o.$children&&w(o,n)}}catch(t){r.e(t)}finally{r.f()}return n}function j(t,e){if(e||!t.options.__hasNuxtData){var n=t.options._originDataFn||t.options.data||function(){return{}};t.options._originDataFn=n,t.options.data=function(){var data=n.call(this,this);return this.$ssrContext&&(e=this.$ssrContext.asyncData[t.cid]),v(v({},data),e)},t.options.__hasNuxtData=!0,t._Ctor&&t._Ctor.options&&(t._Ctor.options.data=t.options.data)}}function S(t){return t.options&&t._Ctor===t||(t.options?(t._Ctor=t,t.extendOptions=t.options):(t=l.a.extend(t))._Ctor=t,!t.options.name&&t.options.__file&&(t.options.name=t.options.__file)),t}function E(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],t.matched.map((function(t,r){return Object.keys(t[n]).map((function(o){return e&&e.push(r),t[n][o]}))})))}function C(t){return E(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1],"instances")}function T(t,e){return Array.prototype.concat.apply([],t.matched.map((function(t,n){return Object.keys(t.components).reduce((function(r,o){return t.components[o]?r.push(e(t.components[o],t.instances[o],t,o,n)):delete t.components[o],r}),[])})))}function R(t,e){return Promise.all(T(t,function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(n,r,o,c){var h,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof n||n.options){t.next=11;break}return t.prev=1,t.next=4,n();case 4:n=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t.catch(1),t.t0&&"ChunkLoadError"===t.t0.name&&"undefined"!=typeof window&&window.sessionStorage&&(h=Date.now(),(!(l=parseInt(window.sessionStorage.getItem("nuxt-reload")))||l+6e4>1)],e))<0?l=r+1:(f=r,d=!c);return d?l:~l}function o(a,b){return a>b?1:a=0}function h(t,e,n){var i,r=t.length;if(t[0]<=e)return 0;if(e<=t[r-1])return r-1;if(n>0){for(i=1;i-1;return n&&t.splice(i,1),n}function v(t,e){for(var n,r=t.length>>>0,i=0;i0||n&&0===c)}))}n.d(e,"a",(function(){return r})),n.d(e,"i",(function(){return o})),n.d(e,"f",(function(){return c})),n.d(e,"h",(function(){return h})),n.d(e,"k",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"j",(function(){return d})),n.d(e,"d",(function(){return v})),n.d(e,"b",(function(){return m})),n.d(e,"l",(function(){return y})),n.d(e,"e",(function(){return _})),n.d(e,"g",(function(){return x}))},function(t,e,n){"use strict";var r=n(81),o=n(285),c=n(408),h=n(65),l=n(208).f,f=n(521),path=n(76),d=n(109),v=n(150),m=n(92),y=function(t){var e=function(a,b,n){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(a);case 2:return new t(a,b)}return new t(a,b,n)}return o(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,source){var e,n,o,_,x,O,w,j,S,E=t.target,C=t.global,T=t.stat,R=t.proto,I=C?r:T?r[E]:(r[E]||{}).prototype,P=C?path:path[E]||v(path,E,{})[E],F=P.prototype;for(_ in source)n=!(e=f(C?_:E+(T?".":"#")+_,t.forced))&&I&&m(I,_),O=P[_],n&&(w=t.dontCallGetSet?(S=l(I,_))&&S.value:I[_]),x=n&&w?w:source[_],n&&typeof O==typeof x||(j=t.bind&&n?d(x,r):t.wrap&&n?y(x):R&&h(x)?c(x):x,(t.sham||x&&x.sham||O&&O.sham)&&v(j,"sham",!0),v(P,_,j),R&&(m(path,o=E+"Prototype")||v(path,o,{}),v(path[o],_,x),t.real&&F&&(e||!F[_])&&v(F,_,x)))}},function(t,e,n){t.exports=n(875)},function(t,e,n){t.exports=n(712)},function(t,e,n){t.exports=n(532)},function(t,e,n){t.exports=n(733)},,function(t,e,n){t.exports=n(790)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(361);function o(t,e){if(!t)throw new r.a(e)}},function(t,e,n){t.exports=n(892)},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(191),o=n.n(r),c=n(381);function h(t,e,n){return(e=Object(c.a)(e))in t?o()(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){t.exports=n(727)},function(t,e,n){"use strict";function r(t,e){var canvas=document.createElement("canvas");return t&&(canvas.width=t),e&&(canvas.height=e),canvas.getContext("2d")}function o(element){var t=element.offsetWidth,style=getComputedStyle(element);return t+=parseInt(style.marginLeft,10)+parseInt(style.marginRight,10)}function c(element){var t=element.offsetHeight,style=getComputedStyle(element);return t+=parseInt(style.marginTop,10)+parseInt(style.marginBottom,10)}function h(t,e){var n=e.parentNode;n&&n.replaceChild(t,e)}function l(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function f(t){for(;t.lastChild;)t.removeChild(t.lastChild)}n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"f",(function(){return h})),n.d(e,"e",(function(){return l})),n.d(e,"d",(function(){return f}))},function(t,e,n){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3}},function(t,e,n){"use strict";function r(){return!0}function o(){return!1}function c(){}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return c}))},function(t,e,n){"use strict";e.a={ANIMATING:0,INTERACTING:1}},function(t,e,n){"use strict";var r=n(8);e.a={SINGLECLICK:"singleclick",CLICK:r.a.CLICK,DBLCLICK:r.a.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},function(t,e,n){"use strict";n.d(e,"b",(function(){return m}));var r=n(2),o=n(156),c=n(365),h=n(52),l=n(15),f=function(t){function e(e,n,r){t.call(this,e),this.key=n,this.oldValue=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(h.a),d=function(t){function e(e){t.call(this),Object(r.c)(this),this.values_={},void 0!==e&&this.setProperties(e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,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(l.a)({},this.values_)},e.prototype.notify=function(t,e){var n;n=m(t),this.dispatchEvent(new f(n,t,e)),n=o.a.PROPERTYCHANGE,this.dispatchEvent(new f(n,t,e))},e.prototype.set=function(t,e,n){if(n)this.values_[t]=e;else{var r=this.values_[t];this.values_[t]=e,r!==e&&this.notify(t,r)}},e.prototype.setProperties=function(t,e){for(var n in t)this.set(n,t[n],e)},e.prototype.unset=function(t,e){if(t in this.values_){var n=this.values_[t];delete this.values_[t],e||this.notify(t,n)}},e}(c.a),v={};function m(t){return v.hasOwnProperty(t)?v[t]:v[t]="change:"+t}e.a=d},function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return f})),n.d(e,"f",(function(){return d})),n.d(e,"g",(function(){return v})),n.d(e,"h",(function(){return m})),n.d(e,"i",(function(){return y})),n.d(e,"e",(function(){return _})),n.d(e,"j",(function(){return x}));var r=n(12),o=n(223);function c(t,e){return t[0]+=e[0],t[1]+=e[1],t}function h(t,circle){var e=circle.getRadius(),n=circle.getCenter(),r=n[0],o=n[1],c=t[0]-r,h=t[1]-o;0===c&&0===h&&(c=1);var l=Math.sqrt(c*c+h*h);return[r+e*c/l,o+e*h/l]}function l(t,e){var n,r,o=t[0],c=t[1],h=e[0],l=e[1],f=h[0],d=h[1],v=l[0],m=l[1],y=v-f,_=m-d,x=0===y&&0===_?0:(y*(o-f)+_*(c-d))/(y*y+_*_||0);return x<=0?(n=f,r=d):x>=1?(n=v,r=m):(n=f+x*y,r=d+x*_),[n,r]}function f(t,e,n){var c=Object(r.d)(e+180,360)-180,h=Math.abs(3600*c),l=n||0,f=Math.pow(10,l),d=Math.floor(h/3600),v=Math.floor((h-3600*d)/60),m=h-3600*d-60*v;return(m=Math.ceil(m*f)/f)>=60&&(m=0,v+=1),v>=60&&(v=0,d+=1),d+"° "+Object(o.b)(v,2)+"′ "+Object(o.b)(m,2,l)+"″"+(0==c?"":" "+t.charAt(c<0?1:0))}function d(t,e){for(var n=!0,i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function v(t,e){var n=Math.cos(e),r=Math.sin(e),o=t[0]*n-t[1]*r,c=t[1]*n+t[0]*r;return t[0]=o,t[1]=c,t}function m(t,e){return t[0]*=e,t[1]*=e,t}function y(t,e){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function _(t,e){return Math.sqrt(y(t,e))}function x(t,e){return y(t,l(t,e))}},,function(t,e,n){var r=n(795)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){"use strict";var r=n(97),o=n(64),c=n.n(o),h=n(576),l=n.n(h);e.a=function(){for(var t,e=arguments.length,n=new Array(e),o=0;o0?view.animate({rotation:t,anchor:e,duration:n,easing:o.b}):view.rotate(t,e)}}function m(view,t,e,n,r){t=view.constrainResolution(t,0,r),_(view,t,e,n)}function y(view,t,e,n){var r=view.getResolution(),o=view.constrainResolution(r,t,0);if(void 0!==o){var c=view.getResolutions();o=Object(h.a)(o,view.getMinResolution()||c[c.length-1],view.getMaxResolution()||c[0])}if(e&&void 0!==o&&o!==r){var l=view.getCenter(),f=view.calculateCenterZoom(o,e);f=view.constrainCenter(f),e=[(o*l[0]-r*f[0])/(o-r),(o*l[1]-r*f[1])/(o-r)]}_(view,o,e,n)}function _(view,t,e,n){if(t){var r=view.getResolution(),c=view.getCenter();if(void 0!==r&&c&&t!==r&&n)view.animate({resolution:t,anchor:e,duration:n,easing:o.b});else{if(e){var h=view.calculateCenterZoom(t,e);view.setCenter(h)}view.setResolution(t)}}}e.a=l},function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r=n(40),o=n(227),c=n(268),h=n(137),l=n(303),f=n(121),d=n(177),v=function(t){function e(n,r,o){var h=t.call(this)||this;switch(h.syncErrorValue=null,h.syncErrorThrown=!1,h.syncErrorThrowable=!1,h.isStopped=!1,arguments.length){case 0:h.destination=c.a;break;case 1:if(!n){h.destination=c.a;break}if("object"==typeof n){n instanceof e?(h.syncErrorThrowable=n.syncErrorThrowable,h.destination=n,n.add(h)):(h.syncErrorThrowable=!0,h.destination=new m(h,n));break}default:h.syncErrorThrowable=!0,h.destination=new m(h,n,r,o)}return h}return r.a(e,t),e.prototype[l.a]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(h.a),m=function(t){function e(e,n,r,h){var l,f=t.call(this)||this;f._parentSubscriber=e;var d=f;return Object(o.a)(n)?l=n:n&&(l=n.next,r=n.error,h=n.complete,n!==c.a&&(d=Object.create(n),Object(o.a)(d.unsubscribe)&&f.add(d.unsubscribe.bind(d)),d.unsubscribe=f.unsubscribe.bind(f))),f._context=d,f._next=l,f._error=r,f._complete=h,f}return r.a(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;f.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=f.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(d.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(d.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};f.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),f.a.useDeprecatedSynchronousErrorHandling)throw t;Object(d.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!f.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return f.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(d.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(v)},,function(t,e,n){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";var r=n(361),o=n(63),c=n(34),h=n(52),l="length",f=function(t){function e(e,n){t.call(this,e),this.element=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(h.a),d=function(t){function e(e,n){t.call(this);var r=n||{};if(this.unique_=!!r.unique,this.array_=e||[],this.unique_)for(var i=0,o=this.array_.length;i0;)this.pop()},e.prototype.extend=function(t){for(var i=0,e=t.length;i0&&t[1]>0}function c(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function h(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return h}))},function(t,e,n){"use strict";function r(t,e,n,r,o,c){for(var h=c||[],i=0,l=e;l>=1;return r.join("")}function d(t,e){var n=t[0],r=t[1],o=t[2];if(e.getMinZoom()>n||n>e.getMaxZoom())return!1;var c,h=e.getExtent();return!(c=h?e.getTileRangeForExtentAndZ(h,n):e.getFullTileRange(n))||c.containsXY(r,o)}n.d(e,"a",(function(){return r})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return h})),n.d(e,"e",(function(){return l})),n.d(e,"f",(function(){return f})),n.d(e,"g",(function(){return d}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(363),o=n.n(r);function c(t,e,n,r,c,h,l){try{var f=t[h](l),d=f.value}catch(t){return void n(t)}f.done?e(d):o.a.resolve(d).then(r,c)}function h(t){return function(){var e=this,n=arguments;return new o.a((function(r,o){var h=t.apply(e,n);function l(t){c(h,r,o,l,f,"next",t)}function f(t){c(h,r,o,l,f,"throw",t)}l(void 0)}))}}},function(t,e,n){"use strict";e.a={POSTCOMPOSE:"postcompose",PRECOMPOSE:"precompose",RENDER:"render",RENDERCOMPLETE:"rendercomplete"}},,function(t,e,n){"use strict";var r=n(286),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},o={};o[r.DEGREES]=2*Math.PI*6370997/360,o[r.FEET]=.3048,o[r.METERS]=1,o[r.USFEET]=1200/3937,e.b=r},function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return h})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return f})),n.d(e,"f",(function(){return d}));var style,r,o="ol-hidden",c="ol-selectable",h="ol-unselectable",l="ol-control",f="ol-collapsed",d=(r={},function(t){if(style||(style=document.createElement("div").style),!(t in r)){style.font=t;var e=style.fontFamily;if(style.font="",!e)return null;r[t]=e.split(/,\s?/)}return r[t]})},,function(t,e,n){"use strict";t.exports={}},function(t,e,n){"use strict";var path=n(76),r=n(92),o=n(334),c=n(125).f;t.exports=function(t){var e=path.Symbol||(path.Symbol={});r(e,t)||c(e,t,{value:o.f(t)})}},function(t,e,n){"use strict";var r=n(17),o=n(0),c=n(39),h=n(6),l=n(96),f=n(112),d=n(104),v=n(105),m=n(175),y=n(194),_=n(370),x=n(369),O=n(134),w=function(t){function e(e,n){t.call(this),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===n||Array.isArray(e[0])?this.setCoordinates(e,n):this.setFlatCoordinates(n,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.appendCoordinate=function(t){this.flatCoordinates?Object(r.c)(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,n,r){return r=1024){var i=0;for(var e in f)0==(3&i++)&&(delete f[e],--d)}t=function(s){var t,g,b,a,e;if(h.exec(s)&&(s=function(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var n=getComputedStyle(e).color;return document.body.removeChild(e),n}return""}(s)),c.exec(s)){var n,o=s.length-1;n=o<=4?1:2;var l=4===o||8===o;t=parseInt(s.substr(1+0*n,n),16),g=parseInt(s.substr(1+1*n,n),16),b=parseInt(s.substr(1+2*n,n),16),a=l?parseInt(s.substr(1+3*n,n),16):255,1==n&&(t=(t<<4)+t,g=(g<<4)+g,b=(b<<4)+b,l&&(a=(a<<4)+a)),e=[t,g,b,a/255]}else 0==s.indexOf("rgba(")?y(e=s.slice(5,-1).split(",").map(Number)):0==s.indexOf("rgb(")?((e=s.slice(4,-1).split(",").map(Number)).push(1),y(e)):Object(r.a)(!1,14);return e}(s),f[s]=t,++d}return t});function m(t){return Array.isArray(t)?t:v(t)}function y(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 _(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var g=t[1];g!=(0|g)&&(g=g+.5|0);var b=t[2];return b!=(0|b)&&(b=b+.5|0),"rgba("+e+","+g+","+b+","+(void 0===t[3]?1:t[3])+")"}},function(t,e,n){"use strict";function r(t){return Math.pow(t,3)}function o(t){return 1-r(1-t)}function c(t){return 3*t*t-2*t*t*t}function h(t){return t}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return h}))},function(t,e,n){t.exports=n(543)},function(t,e,n){"use strict";e.a={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},,,,function(t,e,n){"use strict";var r=n(48);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){"use strict";var r=n(65),o=n(518),c=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===c}:function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){"use strict";var r=n(59);t.exports=r({}.isPrototypeOf)},function(t,e,n){"use strict";var r=n(59),o=n(133),c=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return c(o(t),e)}},,,function(t,e,n){"use strict";var r=n(65),o=n(212),c=TypeError;t.exports=function(t){if(r(t))return t;throw new c(o(t)+" is not a function")}},function(t,e,n){"use strict";n.d(e,"b",(function(){return m}));var r=n(2),o=n(0),c=n(219),h=n(39),l=n(62),f=n(15),d=function(t){function e(){t.call(this),this.layout=h.a.XY,this.stride=2,this.flatCoordinates=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.computeExtent=function(t){return Object(o.o)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return Object(r.b)()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!=this.getRevision()&&(Object(f.b)(this.simplifiedGeometryCache),this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=t.toString();if(this.simplifiedGeometryCache.hasOwnProperty(e))return this.simplifiedGeometryCache[e];var n=this.getSimplifiedGeometryInternal(t);return n.getFlatCoordinates().length0}function c(t,e,n,r,c){for(var h=void 0!==c&&c,i=0,l=n.length;i1)f=n;else{if(_>0){for(var i=0;ic&&(c=v),h=f,l=d}return c}function h(t,e,n,r,o){for(var i=0,h=n.length;i0},e.prototype.removeEventListener=function(t,e){var n=this.listeners_[t];if(n){var r=n.indexOf(e);t in this.pendingRemovals_?(n[r]=c.c,++this.pendingRemovals_[t]):(n.splice(r,1),0===n.length&&delete this.listeners_[t])}},e}(r.a);e.a=l},function(t,e,n){"use strict";var r=n(17),o=n(0),c=n(6),h=n(67),l=n(96),f=n(104),d=n(105),v=n(12),m=function(t){function e(e,n){t.call(this),n&&!Array.isArray(e[0])?this.setFlatCoordinates(n,e):this.setCoordinates(e,n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.appendPoint=function(t){this.flatCoordinates?Object(r.c)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,n,r){if(rc&&(d-l)*(c-f)-(o-l)*(v-f)>0&&h++:v<=c&&(d-l)*(c-f)-(o-l)*(v-f)<0&&h--,l=d,f=v}return 0!==h}function h(t,e,n,r,o,h){if(0===n.length)return!1;if(!c(t,e,n[0],r,o,h))return!1;for(var i=1,l=n.length;i1&&void 0!==arguments[1]?arguments[1]:c.w,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.w,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c.w;n=function(t){n(t)};var o=t.subscribe(e,n,r);return this._rxSubs.push(o),o},unsubscribe:function(t){var e,n=this._rxSubs.indexOf(t);-1!==n&&(t.unsubscribe(),o()(e=this._rxSubs).call(e,n,1))}},beforeCreate:function(){this._rxSubs=[]},destroyed:function(){this.unsubscribeAll()}};e.a=h},function(t,e,n){"use strict";var r=n(26),o=n.n(r),filter=n(28),c=n.n(filter),h=n(7),l=n(193),f=n(258),d=n(27),v=n(24),m=n.n(v),y=function(){function t(){Object(l.a)(this,t),Object(d.a)(this,"_pools",Object.create(null))}return Object(f.a)(t,[{key:"_preparePool",value:function(t){this._pools[t]||(this._pools[t]=Object.create(null))}},{key:"set",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";null!=e&&(this._preparePool(n),this._pools[n][t]={value:e,refs:1})}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";this._preparePool(e);var n=this._pools[e][t];if(n&&null!=n.value)return n.refs++,this._pools[e][t]=n,n.value}},{key:"unset",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";this._preparePool(e);var n=this._pools[e][t];n&&null!=n.value&&(n.refs--,0===n.refs&&delete this._pools[e][t])}},{key:"has",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return this._preparePool(e),!!this._pools[e][t]}},{key:"ids",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return this._preparePool(t),m()(this._pools[t])}},{key:"refs",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return this._preparePool(e),this.has(t,e)?this._pools[e][t].refs:void 0}}]),t}(),_=y,x=n(1),O="instances",w={INSTANCES_POOL:O,props:{ident:[String,Number]},data:function(){return{idents:Object(x.D)()}},computed:{selfIdent:function(){return this.makeSelfIdent()}},watch:{ident:function(t,e){e&&this.$identityMap.has(e)&&this.$identityMap.unset(e),t&&!this.$identityMap.has(t)&&this.$identityMap.set(t)}},beforeCreate:function(){!function(){var t=new _;"$identityMap"in h.a||Object.defineProperties(h.a,{$identityMap:{enumerable:!0,get:function(){return t}}});"$identityMap"in h.a.prototype||Object.defineProperties(h.a.prototype,{$identityMap:{enumerable:!0,get:function(){return t}}})}()},destroyed:function(){this.unsetInstances()},methods:{makeSelfIdent:function(){var t;if(this.ident){for(var e=arguments.length,n=new Array(e),r=0;r0;){for(var y=v.pop(),_=v.pop(),x=0,O=t[_],w=t[_+1],j=t[y],S=t[y+1],i=_+o;ix&&(m=i,x=T)}x>c&&(d[(m-e)/o]=1,_+o0&&w>x)&&(O<0&&j0&&j>O)?(f=y,d=_):(c[l++]=f,c[l++]=d,v=f,m=d,f=y,d=_)}}return c[l++]=f,c[l++]=d,l}function f(t,e,n,r,o,c,h,f){for(var i=0,d=n.length;i=2;return function(source){return source.pipe(t?function(t,e){return function(source){return source.lift(new h(t,e))}}((function(e,i){return t(e,i,source)})):j.a,(c=1,function(source){return 0===c?Object(d.a)():source.lift(new v(c))}),n?function(t){return void 0===t&&(t=null),function(source){return source.lift(new y(t))}}(e):(void 0===(o=function(){return new r})&&(o=w),function(source){return source.lift(new x(o))}));var o,c}}},,,,,function(t,e,n){"use strict";var r=n(409),o=n(287);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";t.exports=!0},function(t,e,n){"use strict";var r=n(109),o=n(72),c=n(110),h=n(212),l=n(545),f=n(151),d=n(91),v=n(546),m=n(337),y=n(547),_=TypeError,x=function(t,e){this.stopped=t,this.result=e},O=x.prototype;t.exports=function(t,e,n){var w,j,S,E,C,T,R,I=n&&n.that,P=!(!n||!n.AS_ENTRIES),F=!(!n||!n.IS_RECORD),L=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),M=r(e,I),k=function(t){return w&&y(w,"normal",t),new x(!0,t)},D=function(t){return P?(c(t),A?M(t[0],t[1],k):M(t[0],t[1])):A?M(t,k):M(t)};if(F)w=t.iterator;else if(L)w=t;else{if(!(j=m(t)))throw new _(h(t)+" is not iterable");if(l(j)){for(S=0,E=f(t);E>S;S++)if((C=D(t[S]))&&d(O,C))return C;return new x(!1)}w=v(t,j)}for(T=F?t.next:w.next;!(R=o(T,w)).done;){try{C=D(R.value)}catch(t){y(w,"throw",t)}if("object"==typeof C&&C&&d(O,C))return C}return new x(!1)}},function(t,e,n){"use strict";t.exports=n(736)},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(257),o=n.n(r),c=n(171),h=n.n(c),l=n(362),f=n.n(l);function d(t){var e;return d=o.a?h()(e=f.a).call(e):function(t){return t.__proto__||f()(t)},d(t)}},,,function(t,e,n){"use strict";var r=n(89),o=n(125),c=n(209);t.exports=r?function(object,t,e){return o.f(object,t,c(1,e))}:function(object,t,e){return object[t]=e,object}},function(t,e,n){"use strict";var r=n(719);t.exports=function(t){return r(t.length)}},function(t,e,n){"use strict";var r=n(946);t.exports=function(map,t,e){return e?r(map.entries(),(function(e){return t(e[1],e[0])}),!0):map.forEach(t)}},function(t,e,n){"use strict";var r=n(73),o=function(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};o.prototype.canWrapX=function(){return this.canWrapX_},o.prototype.getCode=function(){return this.code_},o.prototype.getExtent=function(){return this.extent_},o.prototype.getUnits=function(){return this.units_},o.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||r.a[this.units_]},o.prototype.getWorldExtent=function(){return this.worldExtent_},o.prototype.getAxisOrientation=function(){return this.axisOrientation_},o.prototype.isGlobal=function(){return this.global_},o.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},o.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},o.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},o.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},o.prototype.setWorldExtent=function(t){this.worldExtent_=t},o.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},o.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},e.a=o},function(t,e,n){t.exports=n(888)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},function(t,e,n){"use strict";e.a={PROPERTYCHANGE:"propertychange"}},function(t,e,n){"use strict";e.a={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"}},function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return c})),n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return l}));var r=n(12);function o(t,e){return void 0!==t?0:void 0}function c(t,e){return void 0!==t?t+e:void 0}function h(t){var e=2*Math.PI/t;return function(t,n){return void 0!==t?t=Math.floor((t+n)/e+.5)*e:void 0}}function l(t){var e=t||Object(r.j)(5);return function(t,n){return void 0!==t?Math.abs(t+n)<=e?0:t+n:void 0}}},function(t,e,n){"use strict";var r=n(107),o=n(374),c=function(t){var e=t||{};this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.text_=e.text,this.textAlign_=e.textAlign,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new r.a({color:"#333"}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:o.a.POINT,this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding};c.prototype.clone=function(){return new c({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:this.getScale(),text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0})},c.prototype.getOverflow=function(){return this.overflow_},c.prototype.getFont=function(){return this.font_},c.prototype.getMaxAngle=function(){return this.maxAngle_},c.prototype.getPlacement=function(){return this.placement_},c.prototype.getOffsetX=function(){return this.offsetX_},c.prototype.getOffsetY=function(){return this.offsetY_},c.prototype.getFill=function(){return this.fill_},c.prototype.getRotateWithView=function(){return this.rotateWithView_},c.prototype.getRotation=function(){return this.rotation_},c.prototype.getScale=function(){return this.scale_},c.prototype.getStroke=function(){return this.stroke_},c.prototype.getText=function(){return this.text_},c.prototype.getTextAlign=function(){return this.textAlign_},c.prototype.getTextBaseline=function(){return this.textBaseline_},c.prototype.getBackgroundFill=function(){return this.backgroundFill_},c.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},c.prototype.getPadding=function(){return this.padding_},c.prototype.setOverflow=function(t){this.overflow_=t},c.prototype.setFont=function(t){this.font_=t},c.prototype.setMaxAngle=function(t){this.maxAngle_=t},c.prototype.setOffsetX=function(t){this.offsetX_=t},c.prototype.setOffsetY=function(t){this.offsetY_=t},c.prototype.setPlacement=function(t){this.placement_=t},c.prototype.setFill=function(t){this.fill_=t},c.prototype.setRotation=function(t){this.rotation_=t},c.prototype.setScale=function(t){this.scale_=t},c.prototype.setStroke=function(t){this.stroke_=t},c.prototype.setText=function(text){this.text_=text},c.prototype.setTextAlign=function(t){this.textAlign_=t},c.prototype.setTextBaseline=function(t){this.textBaseline_=t},c.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},c.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},c.prototype.setPadding=function(t){this.padding_=t},e.a=c},function(t,e,n){t.exports=n(560)},function(t,e,n){"use strict";var r=function(t){function e(e,map,n,r,o){t.call(this,e,map,n.originalEvent,r,o),this.pointerEvent=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(n(372).a);e.a=r},,,,,,,function(t,e,n){"use strict";var r=n(59),o=r({}.toString),c=r("".slice);t.exports=function(t){return c(o(t),8,-1)}},function(t,e,n){"use strict";var r=n(95),o=TypeError,c=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new o("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new c(t)}},function(t,e,n){"use strict";var r=n(100),o=n(938),c=r("Map");t.exports={Map:c,set:o("set",2),get:o("get",1),has:o("has",1),remove:o("delete",1),proto:c.prototype}},function(t,e,n){"use strict";t.exports=n(897)},function(t,e,n){"use strict";var r=n(2),o=n(34),c=n(80),h=n(12),l=n(15),f=function(t){function e(e){t.call(this);var n=Object(l.a)({},e);n[c.a.OPACITY]=void 0!==e.opacity?e.opacity:1,n[c.a.VISIBLE]=void 0===e.visible||e.visible,n[c.a.Z_INDEX]=e.zIndex,n[c.a.MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,n[c.a.MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,this.setProperties(n),this.state_=null,this.type}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getType=function(){return this.type},e.prototype.getLayerState=function(){var t=this.state_||{layer:this,managed:!0};return t.opacity=Object(h.a)(this.getOpacity(),0,1),t.sourceState=this.getSourceState(),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=this.getZIndex()||0,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),this.state_=t,t},e.prototype.getLayersArray=function(t){return Object(r.b)()},e.prototype.getLayerStatesArray=function(t){return Object(r.b)()},e.prototype.getExtent=function(){return this.get(c.a.EXTENT)},e.prototype.getMaxResolution=function(){return this.get(c.a.MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(c.a.MIN_RESOLUTION)},e.prototype.getOpacity=function(){return this.get(c.a.OPACITY)},e.prototype.getSourceState=function(){return Object(r.b)()},e.prototype.getVisible=function(){return this.get(c.a.VISIBLE)},e.prototype.getZIndex=function(){return this.get(c.a.Z_INDEX)},e.prototype.setExtent=function(t){this.set(c.a.EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(c.a.MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(c.a.MIN_RESOLUTION,t)},e.prototype.setOpacity=function(t){this.set(c.a.OPACITY,t)},e.prototype.setVisible=function(t){this.set(c.a.VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(c.a.Z_INDEX,t)},e}(o.a);e.a=f},function(t,e,n){"use strict";var r=n(2),o=n(34),c=n(10),h=n(98),l=function(t){function e(e){t.call(this),this.projection_=Object(c.e)(e.projection),this.attributions_=f(e.attributions),this.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,this.loading=!1,this.state_=void 0!==e.state?e.state:h.a.READY,this.wrapX_=void 0!==e.wrapX&&e.wrapX}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,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(r.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_=f(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(o.a);function f(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,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(40),o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.a(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.a(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(137).a)),c=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),h=new(function(t){function e(n,r){void 0===r&&(r=c.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.a(e,t),e.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,o):t.prototype.schedule.call(this,n,r,o)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(c))(o)},function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return l}));var r=n(17),o=n(12);function c(t,e,n,c,h,l){var f=NaN,d=NaN,v=(n-e)/c;if(1===v)f=t[e],d=t[e+1];else if(2==v)f=(1-h)*t[e]+h*t[e+c],d=(1-h)*t[e+1]+h*t[e+c+1];else if(0!==v){for(var m=t[e],y=t[e+1],_=0,x=[0],i=e+c;i>1;cthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)},r.prototype.getHeight=function(){return this.maxY-this.minY+1},r.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},r.prototype.getWidth=function(){return this.maxX-this.minX+1},r.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},e.b=r},function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(2),o=n(49),c=n(63),h=n(372),l=n(51),f=n(33),d=n(161),v=n(3),m=n(117),y="pointermove",_="pointerdown",x="pointerup",O="pointerover",w="pointerout",j="pointerenter",S="pointerleave",E="pointercancel",C=n(197),T=n(196),R=["","unavailable","touch","pen","mouse"];function I(t){this.pointerMap[t.pointerId.toString()]=t;var e=this.prepareEvent_(t);this.dispatcher.down(e,t)}function P(t){var e=this.prepareEvent_(t);this.dispatcher.move(e,t)}function F(t){var e=this.prepareEvent_(t);this.dispatcher.up(e,t),this.cleanup(t.pointerId)}function L(t){var e=this.prepareEvent_(t);this.dispatcher.leaveOut(e,t)}function A(t){var e=this.prepareEvent_(t);this.dispatcher.enterOver(e,t)}function M(t){var e=this.prepareEvent_(t);this.dispatcher.cancel(e,t),this.cleanup(t.pointerId)}function k(t){var e=this.dispatcher.makeEvent("lostpointercapture",t,t);this.dispatcher.dispatchEvent(e)}function D(t){var e=this.dispatcher.makeEvent("gotpointercapture",t,t);this.dispatcher.dispatchEvent(e)}var N=function(t){function e(e){var n={MSPointerDown:I,MSPointerMove:P,MSPointerUp:F,MSPointerOut:L,MSPointerOver:A,MSPointerCancel:M,MSGotPointerCapture:D,MSLostPointerCapture:k};t.call(this,e,n),this.pointerMap=e.pointerMap}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.prepareEvent_=function(t){var e=t;return"number"==typeof t.pointerType&&((e=this.dispatcher.cloneEvent(t,t)).pointerType=R[t.pointerType]),e},e.prototype.cleanup=function(t){delete this.pointerMap[t.toString()]},e}(T.a);function $(t){this.dispatcher.fireNativeEvent(t)}function G(t){this.dispatcher.fireNativeEvent(t)}function z(t){this.dispatcher.fireNativeEvent(t)}function B(t){this.dispatcher.fireNativeEvent(t)}function V(t){this.dispatcher.fireNativeEvent(t)}function U(t){this.dispatcher.fireNativeEvent(t)}function W(t){this.dispatcher.fireNativeEvent(t)}function Y(t){this.dispatcher.fireNativeEvent(t)}var X=function(t){function e(e){var n={pointerdown:$,pointermove:G,pointerup:z,pointerout:B,pointerover:V,pointercancel:U,gotpointercapture:Y,lostpointercapture:W};t.call(this,e,n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(T.a),H=n(52),K=!1,Z=function(t){function e(e,n,r){t.call(this,e),this.originalEvent=n;var o=r||{};this.buttons=function(t){var e;if(t.buttons||K)e=t.buttons;else switch(t.which){case 1:e=1;break;case 2:e=4;break;case 3:e=2;break;default:e=0}return e}(o),this.pressure=function(t,e){var n=0;n=t.pressure?t.pressure:e?.5:0;return n}(o,this.buttons),this.bubbles="bubbles"in o&&o.bubbles,this.cancelable="cancelable"in o&&o.cancelable,this.view="view"in o?o.view:null,this.detail="detail"in o?o.detail:null,this.screenX="screenX"in o?o.screenX:0,this.screenY="screenY"in o?o.screenY:0,this.clientX="clientX"in o?o.clientX:0,this.clientY="clientY"in o?o.clientY:0,this.ctrlKey="ctrlKey"in o&&o.ctrlKey,this.altKey="altKey"in o&&o.altKey,this.shiftKey="shiftKey"in o&&o.shiftKey,this.metaKey="metaKey"in o&&o.metaKey,this.button="button"in o?o.button:0,this.relatedTarget="relatedTarget"in o?o.relatedTarget:null,this.pointerId="pointerId"in o?o.pointerId:0,this.width="width"in o?o.width:0,this.height="height"in o?o.height:0,this.tiltX="tiltX"in o?o.tiltX:0,this.tiltY="tiltY"in o?o.tiltY:0,this.pointerType="pointerType"in o?o.pointerType:"",this.hwTimestamp="hwTimestamp"in o?o.hwTimestamp:0,this.isPrimary="isPrimary"in o&&o.isPrimary,n.preventDefault&&(this.preventDefault=function(){n.preventDefault()})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(H.a);!function(){try{var t=new MouseEvent("click",{buttons:1});K=1===t.buttons}catch(t){}}();var J=Z,Q=n(17);function tt(t){this.vacuumTouches_(t),this.setPrimaryTouch_(t.changedTouches[0]),this.dedupSynthMouse_(t),this.clickCount_++,this.processTouches_(t,this.overDown_)}function et(t){this.processTouches_(t,this.moveOverOut_)}function it(t){this.dedupSynthMouse_(t),this.processTouches_(t,this.upOut_)}function nt(t){this.processTouches_(t,this.cancelOut_)}var ot=function(t){function e(e,n){var r={touchstart:tt,touchmove:et,touchend:it,touchcancel:nt};t.call(this,e,r),this.pointerMap=e.pointerMap,this.mouseSource=n,this.firstTouchId_=void 0,this.clickCount_=0,this.resetId_,this.dedupTimeout_=2500}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isPrimaryTouch_=function(t){return this.firstTouchId_===t.identifier},e.prototype.setPrimaryTouch_=function(t){var e=Object.keys(this.pointerMap).length;(0===e||1===e&&C.a.toString()in this.pointerMap)&&(this.firstTouchId_=t.identifier,this.cancelResetClickCount_())},e.prototype.removePrimaryPointer_=function(t){t.isPrimary&&(this.firstTouchId_=void 0,this.resetClickCount_())},e.prototype.resetClickCount_=function(){this.resetId_=setTimeout(this.resetClickCountHandler_.bind(this),200)},e.prototype.resetClickCountHandler_=function(){this.clickCount_=0,this.resetId_=void 0},e.prototype.cancelResetClickCount_=function(){void 0!==this.resetId_&&clearTimeout(this.resetId_)},e.prototype.touchToPointer_=function(t,e){var n=this.dispatcher.cloneEvent(t,e);return n.pointerId=e.identifier+2,n.bubbles=!0,n.cancelable=!0,n.detail=this.clickCount_,n.button=0,n.buttons=1,n.width=e.radiusX||0,n.height=e.radiusY||0,n.pressure=e.force||.5,n.isPrimary=this.isPrimaryTouch_(e),n.pointerType="touch",n.clientX=e.clientX,n.clientY=e.clientY,n.screenX=e.screenX,n.screenY=e.screenY,n},e.prototype.processTouches_=function(t,e){var n=Array.prototype.slice.call(t.changedTouches),r=n.length;function o(){t.preventDefault()}for(var i=0;i=e.length){for(var o=[],i=0;ithis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(v.e)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.pointerdownListenerKey_&&(Object(v.e)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(v.e),this.dragListenerKeys_.length=0,this.documentPointerEventHandler_&&(this.documentPointerEventHandler_.dispose(),this.documentPointerEventHandler_=null),this.pointerEventHandler_&&(this.pointerEventHandler_.dispose(),this.pointerEventHandler_=null),t.prototype.disposeInternal.call(this)},e}(m.a),ut=n(266),ht=n(198),lt="layergroup",ft="size",pt="target",gt="view",vt=n(70),mt=n(34),yt=n(156),_t=n(11),bt=n(8),xt=n(222),Ot=function(t){function e(e,n){t.call(this,(function(element){return e.apply(null,element)}),(function(element){return element[0].getKey()})),this.tileChangeCallback_=n,this.tilesLoading_=0,this.tilesLoadingKeys_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.enqueue=function(element){var e=t.prototype.enqueue.call(this,element);if(e){var n=element[0];Object(v.a)(n,bt.a.CHANGE,this.handleTileChange,this)}return e},e.prototype.getTilesLoading=function(){return this.tilesLoading_},e.prototype.handleTileChange=function(t){var e=t.target,n=e.getState();if(n===_t.a.LOADED||n===_t.a.ERROR||n===_t.a.EMPTY||n===_t.a.ABORT){Object(v.c)(e,bt.a.CHANGE,this.handleTileChange,this);var r=e.getKey();r in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[r],--this.tilesLoading_),this.tileChangeCallback_()}},e.prototype.loadMoreTiles=function(t,e){for(var n,r,o,c=0,h=!1;this.tilesLoading_0;)o=(r=this.dequeue()[0]).getKey(),(n=r.getState())===_t.a.ABORT?h=!0:n!==_t.a.IDLE||o in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[o]=!0,++this.tilesLoading_,++c,r.load());0===c&&h&&this.tileChangeCallback_()},e}(xt.b),wt=n(269),jt=n(32),St=n(25),Et=n(29),Ct=n(0),Tt=n(31),Rt=n(373),It=n(61),Pt=n(9),Ft=function(t){function e(e){t.call(this);var n=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var n,r,c,h={},l=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new Rt.a({layers:t.layers});h[lt]=l,h[pt]=t.target,h[gt]=void 0!==t.view?t.view:new wt.a,void 0!==t.controls&&(Array.isArray(t.controls)?n=new o.a(t.controls.slice()):(Object(St.a)("function"==typeof t.controls.getArray,47),n=t.controls));void 0!==t.interactions&&(Array.isArray(t.interactions)?r=new o.a(t.interactions.slice()):(Object(St.a)("function"==typeof t.interactions.getArray,48),r=t.interactions));void 0!==t.overlays?Array.isArray(t.overlays)?c=new o.a(t.overlays.slice()):(Object(St.a)("function"==typeof t.overlays.getArray,49),c=t.overlays):c=new o.a;return{controls:n,interactions:r,keyboardEventTarget:e,overlays:c,values:h}}(e);this.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,this.loadTilesWhileAnimating_=void 0!==e.loadTilesWhileAnimating&&e.loadTilesWhileAnimating,this.loadTilesWhileInteracting_=void 0!==e.loadTilesWhileInteracting&&e.loadTilesWhileInteracting,this.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:l.b,this.animationDelayKey_,this.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_.call(this,Date.now())}.bind(this),this.coordinateToPixelTransform_=Object(Pt.c)(),this.pixelToCoordinateTransform_=Object(Pt.c)(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+(l.i?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.viewport_.style.msTouchAction="none",this.viewport_.style.touchAction="none",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent";for(var r=[bt.a.CLICK,bt.a.DBLCLICK,bt.a.MOUSEDOWN,bt.a.TOUCHSTART,bt.a.MSPOINTERDOWN,f.a.POINTERDOWN,bt.a.MOUSEWHEEL,bt.a.WHEEL],i=0,h=r.length;i=0;i--){var n=e[i];if(n.getActive())if(!n.handleEvent(t))break}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var n=this.maxTilesLoading_,r=n;if(t){var o=t.viewHints;o[jt.a.ANIMATING]&&(n=this.loadTilesWhileAnimating_?8:0,r=2),o[jt.a.INTERACTING]&&(n=this.loadTilesWhileInteracting_?8:0,r=2)}e.getTilesLoading()1&&void 0!==arguments[1]?arguments[1]:S,n=arguments.length>2?arguments[2]:void 0;return r.call(this,t,e,n)};var o=n.resolve.bind(n);return n.resolve=function(t,e,n){return"string"==typeof t&&(t=Object(x.c)(t)),o(t,e,n)},n}var T={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(t,e){var n=e.parent,data=e.data,r=e.props,o=n.$createElement;data.nuxtChild=!0;for(var c=n,h=n.$nuxt.nuxt.transitions,l=n.$nuxt.nuxt.defaultTransition,f=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&f++,n=n.$parent;data.nuxtChildDepth=f;var d=h[f]||l,v={};R.forEach((function(t){void 0!==d[t]&&(v[t]=d[t])}));var m={};I.forEach((function(t){"function"==typeof d[t]&&(m[t]=d[t].bind(c))}));var y=m.beforeEnter;if(m.beforeEnter=function(t){if(window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),y)return y.call(c,t)},!1===d.css){var _=m.leave;(!_||_.length<2)&&(m.leave=function(t,e){_&&_.call(c,t),c.$nextTick(e)})}var x=o("routerView",data);return r.keepAlive&&(x=o("keep-alive",{props:r.keepAliveProps},[x])),o("transition",{props:v,on:m},[x])}},R=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],I=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],P={name:"NuxtError",props:{error:{type:Object,default:null}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}},head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0"}]}}},F=(n(664),n(23)),L=Object(F.a)(P,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"__nuxt-error-page"},[e("div",{staticClass:"error"},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[e("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t._v(" "),e("div",{staticClass:"title"},[t._v(t._s(t.message))]),t._v(" "),404===t.statusCode?e("p",{staticClass:"description"},[void 0===t.$route?e("a",{staticClass:"error-link",attrs:{href:"/"}}):e("NuxtLink",{staticClass:"error-link",attrs:{to:"/"}},[t._v("Back to the home page")])],1):t._e(),t._v(" "),t._m(0)])])}),[function(){var t=this._self._c;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt")])])}],!1,null,null,null).exports,A=n(129),M=(n(183),{name:"Nuxt",components:{NuxtChild:T,NuxtError:L},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(t){this.displayingNuxtError&&(this.errorFromNuxtError=t,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(O.c)(this.$route.matched[0].path)(this.$route.params);var t=Object(A.a)(this.$route.matched,1)[0];if(!t)return this.$route.path;var e=t.components.default;if(e&&e.options){var n=e.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(t.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){h.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(t){var e=this;return this.nuxt.err?this.errorFromNuxtError?(this.$nextTick((function(){return e.errorFromNuxtError=!1})),t("div",{},[t("h2","An error occurred while showing the error page"),t("p","Unfortunately an error occurred and while showing the error page another error occurred"),t("p","Error details: ".concat(this.errorFromNuxtError.toString())),t("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick((function(){return e.displayingNuxtError=!1})),t(L,{props:{error:this.nuxt.err}})):t("NuxtChild",{key:this.routerViewKey,props:this.$props})}}),k=(n(230),n(231),n(204),n(205),n(304),{name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),clearTimeout(this._hide),this._timer=null},start:function(){var t=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout((function(){return t.startTimer()}),this.throttle):this.startTimer(),this},set:function(t){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(t))),this},get:function(){return this.percent},increase:function(t){return this.percent=Math.min(100,Math.floor(this.percent+t)),this},decrease:function(t){return this.percent=Math.max(0,Math.floor(this.percent-t)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var t=this;return this.clear(),this._hide=setTimeout((function(){t.show=!1,t.$nextTick((function(){t.percent=0,t.reversed=!1}))}),500),this},fail:function(t){return this.canSucceed=!1,this},startTimer:function(){var t=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval((function(){t.skipTimerCount>0?t.skipTimerCount--:(t.reversed?t.decrease(t._cut):t.increase(t._cut),t.continuous&&(t.percent>=100||t.percent<=0)&&(t.skipTimerCount=1,t.reversed=!t.reversed))}),100)}},render:function(t){var e=t(!1);return this.show&&(e=t("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),e}}),D=(n(666),Object(F.a)(k,undefined,undefined,!1,null,null,null).exports),N=(n(668),n(670),n(672),n(451),n(581)),$=n(582),G=n(583),z=n(584),B=n(585);function V(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return U(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,h=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){h=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(h)throw o}}}}function U(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0},isPreview:function(){return Boolean(this.$options.previewData)}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=Object(O.h)(t.$route)).length){e.next=3;break}return e.abrupt("return");case 3:return t.$loading.start(),r=n.map(function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(n){var p,r,o,component;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p=[],n.$options.fetch&&n.$options.fetch.length&&p.push(Object(O.q)(n.$options.fetch,t.context)),n.$options.asyncData&&p.push(Object(O.q)(n.$options.asyncData,t.context).then((function(t){for(var e in t)h.a.set(n.$data,e,t[e])}))),e.next=5,Promise.all(p);case 5:p=[],n.$fetch&&p.push(n.$fetch()),r=V(Object(O.e)(n.$vnode.componentInstance));try{for(r.s();!(o=r.n()).done;)component=o.value,p.push(component.$fetch())}catch(t){r.e(t)}finally{r.f()}return e.abrupt("return",Promise.all(p));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.prev=5,e.next=8,Promise.all(r);case 8:e.next=15;break;case 10:e.prev=10,e.t0=e.catch(5),t.$loading.fail(e.t0),Object(O.k)(e.t0),t.error(e.t0);case 15:t.$loading.finish();case 16:case"end":return e.stop()}}),e,null,[[5,10]])})))()},errorChanged:function(){if(this.nuxt.err){this.$loading&&(this.$loading.fail&&this.$loading.fail(this.nuxt.err),this.$loading.finish&&this.$loading.finish());var t=(L.options||L).layout;"function"==typeof t&&(t=t(this.context)),this.setLayout(t)}},setLayout:function(t){return t&&W["_"+t]||(t="default"),this.layoutName=t,this.layout=W["_"+t],this.layout},loadLayout:function(t){return t&&W["_"+t]||(t="default"),Promise.resolve(W["_"+t])}},components:{NuxtLoading:D}};n(284);h.a.use(l.a);var X=["state","getters","actions","mutations"],H={};(H=function(t,e){if((t=t.default||t).commit)throw new Error("[nuxt] ".concat(e," should export a method that returns a Vuex instance."));return"function"!=typeof t&&(t=Object.assign({},t)),Z(t,e)}(n(696),"store/index.js")).modules=H.modules||{},J(n(697),"nav.js"),J(n(698),"registration.js"),J(n(699),"service/index.js"),J(n(700),"registration/index.js"),J(n(701),"nav/index.js"),J(n(702),"login/index.js"),J(n(703),"geocode/index.js"),J(n(704),"admin/service.js"),J(n(705),"admin/users.js"),J(n(706),"login/recovery.js"),J(n(707),"admin/cityinfo/index.js");var K=H instanceof Function?H:function(){return new l.a.Store(Object.assign({strict:!1},H))};function Z(t,e){if(t.state&&"function"!=typeof t.state){console.warn("'state' should be a method that returns an object in ".concat(e));var n=Object.assign({},t.state);t=Object.assign({},t,{state:function(){return n}})}return t}function J(t,e){t=t.default||t;var n=e.replace(/\.(js|mjs)$/,"").split("/"),r=n[n.length-1],o="store/".concat(e);if(t="state"===r?function(t,e){if("function"!=typeof t){console.warn("".concat(e," should export a method that returns an object"));var n=Object.assign({},t);return function(){return n}}return Z(t,e)}(t,o):Z(t,o),X.includes(r)){var c=r;tt(Q(H,n,{isProperty:!0}),t,c)}else{"index"===r&&(n.pop(),r=n[n.length-1]);for(var h=Q(H,n),l=0,f=X;l2&&void 0!==arguments[2]?arguments[2]:{}).isProperty,r=void 0!==n&&n;if(!e.length||r&&1===e.length)return t;var o=e.shift();return t.modules[o]=t.modules[o]||{},t.modules[o].namespaced=!0,t.modules[o].modules=t.modules[o].modules||{},Q(t.modules[o],e,{isProperty:r})}function tt(t,e,n){e&&("state"===n?t.state=e||t.state:t[n]=Object.assign({},t[n],e))}n(325);var et=function(){return n.e(50).then(n.bind(null,1169)).then((function(t){return Ne(t.default||t)}))},it=function(){return n.e(66).then(n.bind(null,1170)).then((function(t){return Ne(t.default||t)}))},nt=function(){return n.e(10).then(n.bind(null,1024)).then((function(t){return Ne(t.default||t)}))},ot=function(){return n.e(41).then(n.bind(null,1001)).then((function(t){return Ne(t.default||t)}))},st=function(){return Promise.resolve().then(n.bind(null,426)).then((function(t){return Ne(t.default||t)}))},at=function(){return Promise.resolve().then(n.bind(null,427)).then((function(t){return Ne(t.default||t)}))},ct=function(){return Promise.resolve().then(n.bind(null,428)).then((function(t){return Ne(t.default||t)}))},ut=function(){return Promise.all([n.e(3),n.e(51)]).then(n.bind(null,1018)).then((function(t){return Ne(t.default||t)}))},ht=function(){return n.e(59).then(n.bind(null,1047)).then((function(t){return Ne(t.default||t)}))},lt=function(){return n.e(65).then(n.bind(null,1011)).then((function(t){return Ne(t.default||t)}))},ft=function(){return Promise.all([n.e(3),n.e(0),n.e(7)]).then(n.bind(null,1093)).then((function(t){return Ne(t.default||t)}))},pt=function(){return n.e(8).then(n.bind(null,1025)).then((function(t){return Ne(t.default||t)}))},gt=function(){return n.e(9).then(n.bind(null,1171)).then((function(t){return Ne(t.default||t)}))},vt=function(){return n.e(12).then(n.bind(null,1073)).then((function(t){return Ne(t.default||t)}))},mt=function(){return Promise.all([n.e(3),n.e(0),n.e(1),n.e(2),n.e(40)]).then(n.bind(null,1094)).then((function(t){return Ne(t.default||t)}))},yt=function(){return n.e(45).then(n.bind(null,1005)).then((function(t){return Ne(t.default||t)}))},_t=function(){return n.e(52).then(n.bind(null,1057)).then((function(t){return Ne(t.default||t)}))},bt=function(){return n.e(53).then(n.bind(null,1072)).then((function(t){return Ne(t.default||t)}))},xt=function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(68)]).then(n.bind(null,1066)).then((function(t){return Ne(t.default||t)}))},Ot=function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(69)]).then(n.bind(null,1166)).then((function(t){return Ne(t.default||t)}))},wt=function(){return Promise.all([n.e(3),n.e(0),n.e(1),n.e(2),n.e(67)]).then(n.bind(null,1043)).then((function(t){return Ne(t.default||t)}))},jt=function(){return n.e(11).then(n.bind(null,1167)).then((function(t){return Ne(t.default||t)}))},St=function(){return Promise.resolve().then(n.bind(null,452)).then((function(t){return Ne(t.default||t)}))},Et=function(){return Promise.resolve().then(n.bind(null,385)).then((function(t){return Ne(t.default||t)}))},Ct=function(){return Promise.resolve().then(n.bind(null,695)).then((function(t){return Ne(t.default||t)}))},Tt=function(){return n.e(21).then(n.bind(null,1052)).then((function(t){return Ne(t.default||t)}))},Rt=function(){return Promise.resolve().then(n.bind(null,386)).then((function(t){return Ne(t.default||t)}))},It=function(){return n.e(24).then(n.bind(null,1033)).then((function(t){return Ne(t.default||t)}))},Pt=function(){return n.e(27).then(n.bind(null,1019)).then((function(t){return Ne(t.default||t)}))},Ft=function(){return Promise.resolve().then(n.bind(null,458)).then((function(t){return Ne(t.default||t)}))},Lt=function(){return Promise.resolve().then(n.bind(null,449)).then((function(t){return Ne(t.default||t)}))},At=function(){return n.e(33).then(n.bind(null,1086)).then((function(t){return Ne(t.default||t)}))},Mt=function(){return Promise.resolve().then(n.bind(null,457)).then((function(t){return Ne(t.default||t)}))},kt=function(){return Promise.resolve().then(n.bind(null,456)).then((function(t){return Ne(t.default||t)}))},Dt=function(){return n.e(13).then(n.bind(null,1045)).then((function(t){return Ne(t.default||t)}))},Nt=function(){return n.e(14).then(n.bind(null,1098)).then((function(t){return Ne(t.default||t)}))},$t=function(){return n.e(15).then(n.bind(null,1028)).then((function(t){return Ne(t.default||t)}))},Gt=function(){return n.e(16).then(n.bind(null,1007)).then((function(t){return Ne(t.default||t)}))},zt=function(){return Promise.resolve().then(n.bind(null,994)).then((function(t){return Ne(t.default||t)}))},Bt=function(){return n.e(17).then(n.bind(null,1027)).then((function(t){return Ne(t.default||t)}))},Vt=function(){return n.e(18).then(n.bind(null,1036)).then((function(t){return Ne(t.default||t)}))},Ut=function(){return Promise.resolve().then(n.bind(null,586)).then((function(t){return Ne(t.default||t)}))},Wt=function(){return n.e(19).then(n.bind(null,1053)).then((function(t){return Ne(t.default||t)}))},Yt=function(){return n.e(20).then(n.bind(null,1022)).then((function(t){return Ne(t.default||t)}))},Xt=function(){return n.e(22).then(n.bind(null,1051)).then((function(t){return Ne(t.default||t)}))},Ht=function(){return n.e(25).then(n.bind(null,1068)).then((function(t){return Ne(t.default||t)}))},Kt=function(){return Promise.resolve().then(n.bind(null,997)).then((function(t){return Ne(t.default||t)}))},qt=function(){return n.e(26).then(n.bind(null,1172)).then((function(t){return Ne(t.default||t)}))},Zt=function(){return n.e(29).then(n.bind(null,1012)).then((function(t){return Ne(t.default||t)}))},Jt=function(){return Promise.resolve().then(n.bind(null,998)).then((function(t){return Ne(t.default||t)}))},Qt=function(){return Promise.resolve().then(n.bind(null,1e3)).then((function(t){return Ne(t.default||t)}))},te=function(){return n.e(30).then(n.bind(null,1034)).then((function(t){return Ne(t.default||t)}))},ee=function(){return Promise.resolve().then(n.bind(null,993)).then((function(t){return Ne(t.default||t)}))},ie=function(){return n.e(31).then(n.bind(null,1035)).then((function(t){return Ne(t.default||t)}))},ne=function(){return n.e(32).then(n.bind(null,1037)).then((function(t){return Ne(t.default||t)}))},re=function(){return n.e(36).then(n.bind(null,1050)).then((function(t){return Ne(t.default||t)}))},oe=function(){return n.e(37).then(n.bind(null,1026)).then((function(t){return Ne(t.default||t)}))},se=function(){return n.e(38).then(n.bind(null,1049)).then((function(t){return Ne(t.default||t)}))},ae=function(){return Promise.resolve().then(n.bind(null,996)).then((function(t){return Ne(t.default||t)}))},ce=function(){return Promise.resolve().then(n.bind(null,999)).then((function(t){return Ne(t.default||t)}))},ue=function(){return Promise.resolve().then(n.bind(null,995)).then((function(t){return Ne(t.default||t)}))},he=function(){return n.e(39).then(n.bind(null,1006)).then((function(t){return Ne(t.default||t)}))},le=function(){return n.e(42).then(n.bind(null,1023)).then((function(t){return Ne(t.default||t)}))},fe=function(){return n.e(43).then(n.bind(null,1065)).then((function(t){return Ne(t.default||t)}))},de=function(){return n.e(44).then(n.bind(null,1016)).then((function(t){return Ne(t.default||t)}))},pe=function(){return Promise.resolve().then(n.bind(null,991)).then((function(t){return Ne(t.default||t)}))},ge=function(){return n.e(46).then(n.bind(null,1092)).then((function(t){return Ne(t.default||t)}))},ve=function(){return n.e(47).then(n.bind(null,1095)).then((function(t){return Ne(t.default||t)}))},me=function(){return n.e(4).then(n.bind(null,1116)).then((function(t){return Ne(t.default||t)}))},ye=function(){return Promise.resolve().then(n.bind(null,425)).then((function(t){return Ne(t.default||t)}))},_e=function(){return n.e(60).then(n.bind(null,1048)).then((function(t){return Ne(t.default||t)}))},be=function(){return n.e(61).then(n.bind(null,1168)).then((function(t){return Ne(t.default||t)}))},xe=function(){return n.e(62).then(n.bind(null,1055)).then((function(t){return Ne(t.default||t)}))},Oe=function(){return n.e(64).then(n.bind(null,1173)).then((function(t){return Ne(t.default||t)}))},we=function(){return Promise.all([n.e(0),n.e(1),n.e(121),n.e(54)]).then(n.bind(null,1077)).then((function(t){return Ne(t.default||t)}))},je=function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(55)]).then(n.bind(null,1078)).then((function(t){return Ne(t.default||t)}))},Se=function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(56)]).then(n.bind(null,1079)).then((function(t){return Ne(t.default||t)}))},Ee=function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(57)]).then(n.bind(null,1080)).then((function(t){return Ne(t.default||t)}))},Ce=function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(58)]).then(n.bind(null,1081)).then((function(t){return Ne(t.default||t)}))},Te=function(){return n.e(70).then(n.bind(null,1118)).then((function(t){return Ne(t.default||t)}))},Re=function(){return n.e(28).then(n.bind(null,1082)).then((function(t){return Ne(t.default||t)}))},Ie=function(){return n.e(34).then(n.bind(null,1067)).then((function(t){return Ne(t.default||t)}))},Pe=function(){return n.e(35).then(n.bind(null,1056)).then((function(t){return Ne(t.default||t)}))},Fe=function(){return Promise.resolve().then(n.bind(null,992)).then((function(t){return Ne(t.default||t)}))},Le=function(){return n.e(23).then(n.bind(null,1099)).then((function(t){return Ne(t.default||t)}))},Ae=function(){return n.e(48).then(n.bind(null,1096)).then((function(t){return Ne(t.default||t)}))},Me=function(){return n.e(49).then(n.bind(null,1097)).then((function(t){return Ne(t.default||t)}))},ke=function(){return n.e(63).then(n.bind(null,1071)).then((function(t){return Ne(t.default||t)}))},De=function(){return Promise.resolve().then(n.bind(null,590)).then((function(t){return Ne(t.default||t)}))};function Ne(t){if(!t||!t.functional)return t;var e=Array.isArray(t.props)?t.props:Object.keys(t.props||{});return{render:function(n){var r={},o={};for(var c in this.$attrs)e.includes(c)?o[c]=this.$attrs[c]:r[c]=this.$attrs[c];return n(t,{on:this.$listeners,attrs:r,props:o,scopedSlots:this.$scopedSlots},this.$slots.default)}}}for(var $e in r)h.a.component($e,r[$e]),h.a.component("Lazy"+$e,r[$e]);var Ge=n(36),ze=n.n(Ge),Be=n(106),Ve=n(438);n(148),n(708),n(709),n(710),n(711);function Ue(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3?arguments[3]:void 0;if(!We(e))return Ue(t,{},n,r);var object=Object.assign({},e);for(var o in t)if("__proto__"!==o&&"constructor"!==o){var c=t[o];null!=c&&(r&&r(object,o,c,n)||(Array.isArray(c)&&Array.isArray(object[o])?object[o]=[].concat(Object(Ve.a)(c),Object(Ve.a)(object[o])):We(c)&&We(object[o])?object[o]=Ue(c,object[o],(n?"".concat(n,"."):"")+o.toString(),r):object[o]=c))}return object}function We(t){if(null===t||"object"!==Object(Be.a)(t))return!1;var e=Object.getPrototypeOf(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)}function Ye(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,h=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){h=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(h)throw o}}}}function Ze(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2&&void 0!==arguments[2]?arguments[2]:"common",o=qe(Array.isArray(r)?r:[r]);try{for(o.s();!(n=o.n()).done;){var c=n.value;e?this.defaults.headers[c][t]=e:delete this.defaults.headers[c][t]}}catch(t){o.e(t)}finally{o.f()}},setToken:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=t?(e?e+" ":"")+t:null;this.setHeader("Authorization",r,n)},onRequest:function(t){this.interceptors.request.use((function(e){return t(e)||e}))},onResponse:function(t){this.interceptors.response.use((function(e){return t(e)||e}))},onRequestError:function(t){this.interceptors.request.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onResponseError:function(t){this.interceptors.response.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onError:function(t){this.onRequestError(t),this.onResponseError(t)},create:function(t){return ii(Xe(t,this.defaults))}},Qe=function(){var t=ei[ti];Je["$"+t]=function(){return this[t].apply(this,arguments).then((function(t){return t&&t.data}))}},ti=0,ei=["request","delete","get","head","options","post","put","patch"];ti has been deprecated and will be removed in Nuxt 3, please use instead")),y.a.render(t,e)}})),h.a.component(T.name,T),h.a.component("NChild",T),h.a.component(M.name,M),Object.defineProperty(h.a.prototype,"$nuxt",{get:function(){var t=this.$root?this.$root.$options.$nuxt:null;return t||"undefined"==typeof window?t:window.$nuxt},configurable:!0}),h.a.use(f.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var ui={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"};l.a.Store.prototype.registerModule;function hi(t){return fi.apply(this,arguments)}function fi(){return fi=Object(o.a)(regeneratorRuntime.mark((function t(e){var n,r,c,l,f,d,path,v,m=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=function(t,e){if(!t)throw new Error("inject(key, value) has no key provided");if(void 0===e)throw new Error("inject('".concat(t,"', value) has no value provided"));l[t="$"+t]=e,l.context[t]||(l.context[t]=e),r[t]=l[t];var n="__nuxt_"+t+"_installed__";h.a[n]||(h.a[n]=!0,h.a.use((function(){Object.prototype.hasOwnProperty.call(h.a.prototype,t)||Object.defineProperty(h.a.prototype,t,{get:function(){return this.$root.$options[t]}})})))},n=m.length>1&&void 0!==m[1]?m[1]:{},r=K(e),t.next=5,C(0,n);case 5:return c=t.sent,r.$router=c,l=ci({head:{title:"tour.kurganobl.ru",htmlAttrs:{lang:"en"},meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:""},{name:"format-detection",content:"telephone=no"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"}],style:[],script:[]},store:r,router:c,nuxt:{defaultTransition:ui,transitions:[ui],setTransitions:function(t){return Array.isArray(t)||(t=[t]),t=t.map((function(t){return t=t?"string"==typeof t?Object.assign({},ui,{name:t}):Object.assign({},ui,t):ui})),this.$options.nuxt.transitions=t,t},err:null,dateErr:null,error:function(t){t=t||null,l.context._errored=Boolean(t),t=t?Object(O.p)(t):null;var n=l.nuxt;return this&&(n=this.nuxt||this.$options.nuxt),n.dateErr=Date.now(),n.err=t,e&&(e.nuxt.error=t),t}}},Y),r.app=l,f=e?e.next:function(t){return l.router.push(t)},e?d=c.resolve(e.url).route:(path=Object(O.f)(c.options.base,c.options.mode),d=c.resolve(path).route),t.next=13,Object(O.t)(l,{store:r,route:d,next:f,error:l.nuxt.error.bind(l),payload:e?e.payload:void 0,req:e?e.req:void 0,res:e?e.res:void 0,beforeRenderFns:e?e.beforeRenderFns:void 0,beforeSerializeFns:e?e.beforeSerializeFns:void 0,ssrContext:e});case 13:v("config",n),window.__NUXT__&&window.__NUXT__.state&&r.replaceState(window.__NUXT__.state),l.context.enablePreview=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l.previewData=Object.assign({},t),v("preview",t)},t.next=19;break;case 19:if("function"!=typeof ri){t.next=22;break}return t.next=22,ri(l.context,v);case 22:if("function"!=typeof oi.default){t.next=25;break}return t.next=25,Object(oi.default)(l.context,v);case 25:if("function"!=typeof si.default){t.next=28;break}return t.next=28,Object(si.default)(l.context,v);case 28:return l.context.enablePreview=function(){console.warn("You cannot call enablePreview() outside a plugin.")},t.next=31,new Promise((function(t,e){if(!c.resolve(l.context.route.fullPath).route.matched.length)return t();c.replace(l.context.route.fullPath,t,(function(n){if(!n._isRouter)return e(n);if(2!==n.type)return t();var r=c.afterEach(function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(n,o){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(O.j)(n);case 3:l.context.route=e.sent,l.context.params=n.params||{},l.context.query=n.query||{},r(),t();case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}))}));case 31:return t.abrupt("return",{store:r,app:l,router:c});case 32:case"end":return t.stop()}}),t)}))),fi.apply(this,arguments)}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var content=t(e);return e[2]?"@media ".concat(e[2]," {").concat(content,"}"):content})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;ie.parts.length&&(n.parts.length=e.parts.length)}else{var o=[];for(r=0;r=h[0]&&l[2]<=h[2]||(l[1]>=h[1]&&l[3]<=h[3]||Object(c.a)(t,e,n,o,(function(t,e){return Object(r.G)(h,t,e)})))))}function l(t,e,n,r,o){for(var i=0,c=n.length;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=void 0,o=void 0,c=void 0,h=[];return function(){var f=function(t){return"function"==typeof t?t():t}(e),d=(new Date).getTime(),v=!r||d-r>f;r=d;for(var m=arguments.length,y=Array(m),_=0;_=0)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=o.a),new r.a((function(n){return n.add(e.schedule(l,t,{subscriber:n,counter:0,period:t})),n}))}function l(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}},,,,,,function(t,e,n){"use strict";var r=n(89),o=n(72),c=n(326),h=n(209),l=n(143),f=n(327),d=n(92),v=n(520),m=Object.getOwnPropertyDescriptor;e.f=r?m:function(t,e){if(t=l(t),e=f(e),v)try{return m(t,e)}catch(t){}if(d(t,e))return h(!o(c.f,t,e),t[e])}},function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";t.exports=function(t){return null==t}},function(t,e,n){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(t,e,n){"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){"use strict";var r=n(413),o=n(65),c=n(168),h=n(66)("toStringTag"),l=Object,f="Arguments"===c(function(){return arguments}());t.exports=r?c:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=l(t),h))?n:f?c(e):"Object"===(r=c(e))&&o(e.callee)?"Arguments":r}},function(t,e,n){"use strict";var r,o=n(110),c=n(523),h=n(415),l=n(291),html=n(525),f=n(412),d=n(331),v="prototype",m="script",y=d("IE_PROTO"),_=function(){},x=function(content){return"<"+m+">"+content+""},O=function(t){t.write(x("")),t.close();var e=t.parentWindow.Object;return t=null,e},w=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,iframe,e;w="undefined"!=typeof document?document.domain&&r?O(r):(iframe=f("iframe"),e="java"+m+":",iframe.style.display="none",html.appendChild(iframe),iframe.src=String(e),(t=iframe.contentWindow.document).open(),t.write(x("document.F=Object")),t.close(),t.F):O(r);for(var n=h.length;n--;)delete w[v][h[n]];return w()};l[y]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(_[v]=o(t),n=new _,_[v]=null,n[y]=t):n=w(),void 0===e?n:c.f(n,e)}},function(t,e,n){"use strict";var r=n(413),o=n(125).f,c=n(150),h=n(92),l=n(720),f=n(66)("toStringTag");t.exports=function(t,e,n,d){if(t){var v=n?t:t.prototype;h(v,f)||o(v,f,{configurable:!0,value:e}),d&&!r&&c(v,"toString",l)}}},function(t,e,n){"use strict";var r=n(168);t.exports=Array.isArray||function(t){return"Array"===r(t)}},function(t,e,n){"use strict";function r(t,e){return[[-1/0,-1/0,1/0,1/0]]}function o(t,e){return[t]}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return d}));var r=n(12),o=n(6),c=6371008.8;function h(t,e,n){var o=n||c,h=Object(r.j)(t[1]),l=Object(r.j)(e[1]),f=(l-h)/2,d=Object(r.j)(e[0]-t[0])/2,a=Math.sin(f)*Math.sin(f)+Math.sin(d)*Math.sin(d)*Math.cos(h)*Math.cos(l);return 2*o*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}function l(t,e){for(var n=0,i=0,r=t.length;iT&&(v=(m+y)/2,Object(o.c)(t,e,n,c,v,O)&&(C=v,T=R)),m=y}return isNaN(C)&&(C=h[l]),f?(f.push(C,O,T),f):[C,O,T]}function h(t,e,n,r,o){for(var h=[],i=0,l=n.length;i=n[0]||(t[1]<=n[1]&&t[3]>=n[1]||Object(r.t)(t,this.intersectsCoordinate,this))}return!1},e.prototype.setCenter=function(t){var e=this.stride,n=this.flatCoordinates[e]-this.flatCoordinates[0],r=t.slice();r[e]=r[0]+n;for(var i=1;i>1},h.prototype.heapify_=function(){var i;for(i=(this.elements_.length>>1)-1;i>=0;i--)this.siftUp_(i)},h.prototype.isEmpty=function(){return 0===this.elements_.length},h.prototype.isKeyQueued=function(t){return t in this.queuedElements_},h.prototype.isQueued=function(element){return this.isKeyQueued(this.keyFunction_(element))},h.prototype.siftUp_=function(t){for(var e=this.elements_,n=this.priorities_,r=e.length,element=e[t],o=n[t],c=t;t>1;){var h=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),f=lt;){var c=this.getParentIndex_(e);if(!(r[c]>o))break;n[e]=n[c],r[e]=r[c],e=c}n[e]=element,r[e]=o},h.prototype.reprioritize=function(){var element,i,t,e=this.priorityFunction_,n=this.elements_,r=this.priorities_,o=0,h=n.length;for(i=0;ie?r:new Array(1+e-o).join("0")+r}function o(t,e){for(var n=(""+t).split("."),r=(""+e).split("."),i=0;ic)return 1;if(c>o)return-1}return 0}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=42,o=256},function(t,e,n){"use strict";var r=function(t){function e(e){var n=e||{};t.call(this,{points:1/0,fill:n.fill,radius:n.radius,stroke:n.stroke,atlasManager:n.atlasManager})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var style=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),atlasManager:this.atlasManager_});return style.setOpacity(this.getOpacity()),style.setScale(this.getScale()),style},e.prototype.setRadius=function(t){this.radius_=t,this.render_(this.atlasManager_)},e}(n(260).a);e.a=r},function(t,e,n){"use strict";var r=n(224),o=n(25),c=n(176),h=n(17),l=n(0),f=n(12),d=n(61),v=n(68),m=[0,0,0],y=function(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Object(o.a)(Object(h.g)(this.resolutions_,(function(a,b){return b-a}),!0),17),!t.origins)for(var i=0,n=this.resolutions_.length-1;i=this.minZoom;){if(2===this.zoomFactor_?(l=Math.floor(l/2),f=Math.floor(f/2),h=Object(c.a)(l,l,f,f,r)):h=this.getTileRangeForExtentAndZ(d,v,r),e.call(n,v,h))return!0;--v}return!1},y.prototype.getExtent=function(){return this.extent_},y.prototype.getMaxZoom=function(){return this.maxZoom},y.prototype.getMinZoom=function(){return this.minZoom},y.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},y.prototype.getResolution=function(t){return this.resolutions_[t]},y.prototype.getResolutions=function(){return this.resolutions_},y.prototype.getTileCoordChildTileRange=function(t,e,n){if(t[0]P;P++)if((_||P in T)&&(E=R(S=T[P],P,C),t))if(e)L[P]=E;else if(E)switch(t){case 3:return!0;case 5:return S;case 6:return P;case 2:d(L,S)}else switch(t){case 4:return!1;case 7:d(L,S)}return m?-1:o||v?v:L}};t.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6),filterReject:v(7)}},function(t,e,n){"use strict";n(250);var r=n(759),o=n(81),c=n(213),h=n(150),l=n(251),f=n(66)("toStringTag");for(var d in r){var v=o[d],m=v&&v.prototype;m&&c(m)!==f&&h(m,f,d),l[d]=l.Array}},function(t,e,n){"use strict";var r=n(143),o=n(419),c=n(251),h=n(247),l=n(125).f,f=n(420),d=n(421),v=n(144),m=n(89),y="Array Iterator",_=h.set,x=h.getterFor(y);t.exports=f(Array,"Array",(function(t,e){_(this,{type:y,target:r(t),index:0,kind:e})}),(function(){var t=x(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,d(void 0,!0);switch(t.kind){case"keys":return d(n,!1);case"values":return d(e[n],!1)}return d([n,e[n]],!1)}),"values");var O=c.Arguments=c.Array;if(o("keys"),o("values"),o("entries"),!v&&m&&"values"!==O.name)try{l(O,"name",{value:"values"})}catch(t){}},function(t,e,n){"use strict";t.exports={}},function(t,e,n){"use strict";var r=n(92),o=n(65),c=n(133),h=n(331),l=n(538),f=h("IE_PROTO"),d=Object,v=d.prototype;t.exports=l?d.getPrototypeOf:function(t){var object=c(t);if(r(object,f))return object[f];var e=object.constructor;return o(e)&&object instanceof e?e.prototype:object instanceof d?v:null}},function(t,e,n){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){"use strict";var r=n(81);t.exports=r.Promise},function(t,e,n){"use strict";var r=n(27),o=n(38),c="services",h={inject:{$services:c},provide:function(){return Object(r.a)({},c,this.getServices())},methods:{getServices:function(){return Object(o.a)({},this.$services||{})}},beforeCreate:function(){for(var source=this.$parent;source&&(null==source._provided||null==source._provided[c]);)source=source.$parent;null!=source&&null!=source._provided[c]||delete this.$options.inject.$services}};e.a=h},,function(t,e,n){"use strict";t.exports=n(821)},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(191),o=n.n(r),c=n(381);function h(t,e){for(var i=0;ithis.highWaterMark},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null,this.dispatchEvent(c.a.CLEAR)},e.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},e.prototype.forEach=function(t,e){for(var n=this.oldest_;n;)t.call(e,n.value_,n.key_,this),n=n.newer},e.prototype.get=function(t){var e=this.entries_[t];return Object(r.a)(void 0!==e,15),e===this.newest_||(e===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(e.newer.older=e.older,e.older.newer=e.newer),e.newer=null,e.older=this.newest_,this.newest_.newer=e,this.newest_=e),e.value_},e.prototype.remove=function(t){var e=this.entries_[t];return Object(r.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_},e.prototype.getCount=function(){return this.count_},e.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},e.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},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.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_},e.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},e.prototype.set=function(t,e){Object(r.a)(!(t in this.entries_),16);var n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_},e.prototype.setSize=function(t){this.highWaterMark=t},e.prototype.prune=function(){for(;this.canExpireCache();)this.pop()},e}(o.a);e.a=h},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";t.exports=o,t.exports.default=o;var r=n(988);function o(t,e){if(!(this instanceof o))return new o(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function c(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i=a.minX&&b.maxY>=a.minY}function j(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function S(t,e,n,o,c){for(var h,l=[e,n];l.length;)(n=l.pop())-(e=l.pop())<=o||(h=e+Math.ceil((n-e)/o/2)*o,r(t,h,e,n,c),l.push(e,h,h,n))}o.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,n=[],r=this.toBBox;if(!w(t,e))return n;for(var i,o,c,h,l=[];e;){for(i=0,o=e.children.length;i=0&&c[e].children.length>this._maxEntries;)this._split(c,e),e--;this._adjustParentBBoxes(o,c,e)},_split:function(t,e){var n=t[e],r=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,r);var c=this._chooseSplitIndex(n,o,r),l=j(n.children.splice(c,n.children.length-c));l.height=n.height,l.leaf=n.leaf,h(n,this.toBBox),h(l,this.toBBox),e?t[e-1].children.push(l):this._splitRoot(n,l)},_splitRoot:function(t,e){this.data=j([t,e]),this.data.height=t.height+1,this.data.leaf=!1,h(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,n){var i,r,o,c,area,h,f,d;for(h=f=1/0,i=e;i<=n-e;i++)c=x(r=l(t,0,i,this.toBBox),o=l(t,i,n,this.toBBox)),area=m(r)+m(o),c=e;i--)o=t.children[i],f(d,t.leaf?c(o):o),v+=y(d);return v},_adjustParentBBoxes:function(t,path,e){for(var i=e;i>=0;i--)f(path[i],t)},_condense:function(path){for(var t,i=path.length-1;i>=0;i--)0===path[i].children.length?i>0?(t=path[i-1].children).splice(t.indexOf(path[i]),1):this.clear():h(path[i],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},function(t,e,n){"use strict";var r=n(2),o=n(30),c=n(25),h=n(82),l=n(3),f=n(8),d="fraction",v=n(29),m=n(117),y=n(302),_=function(t){function e(image,e,n,r,o,c){t.call(this),this.hitDetectionImage_=null,this.image_=image||new Image,null!==r&&(this.image_.crossOrigin=r),this.canvas_=c?document.createElement("canvas"):null,this.color_=c,this.imageListenerKeys_=null,this.imageState_=o,this.size_=n,this.src_=e,this.tainted_}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===o.a.LOADED){this.tainted_=!1;var t=Object(v.a)(1,1);try{t.drawImage(this.image_,0,0),t.getImageData(0,0,1,1)}catch(t){this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(f.a.CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=o.a.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=o.a.LOADED,this.size_&&(this.image_.width=this.size_[0],this.image_.height=this.size_[1]),this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.replaceColor_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.canvas_?this.canvas_:this.image_},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(t){if(!this.hitDetectionImage_)if(this.isTainted_()){var e=this.size_[0],n=this.size_[1],r=Object(v.a)(e,n);r.fillRect(0,0,e,n),this.hitDetectionImage_=r.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==o.a.IDLE){this.imageState_=o.a.LOADING,this.imageListenerKeys_=[Object(l.b)(this.image_,f.a.ERROR,this.handleImageError_,this),Object(l.b)(this.image_,f.a.LOAD,this.handleImageLoad_,this)];try{this.image_.src=this.src_}catch(t){this.handleImageError_()}}},e.prototype.replaceColor_=function(){if(this.color_&&!this.isTainted_()){this.canvas_.width=this.image_.width,this.canvas_.height=this.image_.height;var t=this.canvas_.getContext("2d");t.drawImage(this.image_,0,0);for(var e=t.getImageData(0,0,this.image_.width,this.image_.height),data=e.data,n=this.color_[0]/255,g=this.color_[1]/255,b=this.color_[2]/255,i=0,r=data.length;i0,6);var j=void 0!==n.src?o.a.IDLE:o.a.LOADED;this.color_=void 0!==n.color?Object(h.a)(n.color):null,this.iconImage_=function(image,t,e,n,r,o){var c=y.a.get(t,n,o);return c||(c=new _(image,t,e,n,r,o),y.a.set(t,n,o,c)),c}(image,O,x,this.crossOrigin_,j,this.color_),this.offset_=void 0!==n.offset?n.offset:[0,0],this.offsetOrigin_=void 0!==n.offsetOrigin?n.offsetOrigin:w,this.origin_=null,this.size_=void 0!==n.size?n.size:null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,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_==d||this.anchorYUnits_==d){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==d&&(t[0]*=e[0]),this.anchorYUnits_==d&&(t[1]*=e[1])}if(this.anchorOrigin_!=w){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=j&&this.anchorOrigin_!=O||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=x&&this.anchorOrigin_!=O||(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_;if(this.offsetOrigin_!=w){var e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),this.offsetOrigin_!=j&&this.offsetOrigin_!=O||(t[0]=n[0]-e[0]-t[0]),this.offsetOrigin_!=x&&this.offsetOrigin_!=O||(t[1]=n[1]-e[1]-t[1])}return 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,e){return Object(l.a)(this.iconImage_,f.a.CHANGE,t,e)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t,e){Object(l.c)(this.iconImage_,f.a.CHANGE,t,e)},e}(n(199).a);e.a=S},function(t,e,n){"use strict";var r=function(t){function e(e,map,n){t.call(this,e),this.map=map,this.frameState=void 0!==n?n:null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(n(52).a);e.a=r},function(t,e,n){"use strict";t.exports=n(923)},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(121),o=n(177),c={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(o.a)(t)},complete:function(){}}},function(t,e,n){"use strict";var r=n(224),o=n(2),c=n(31),h=n(12);function l(t){return t}var f=n(34),d=n(17);var v=n(158),m=n(32),y="center",_="resolution",x="rotation",O=n(25),w=n(35),j=n(83),S=n(0),E=n(6),C=n(55),T=n(15),R=n(10),I=n(73),P=function(t){function e(e){t.call(this);var n=Object(T.a)({},e);this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.updateAnimations_=this.updateAnimations_.bind(this),this.projection_=Object(R.b)(n.projection,"EPSG:3857"),this.applyOptions_(n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.applyOptions_=function(t){var e={};e[y]=void 0!==t.center?t.center:null;var n=function(t){var e,n,o,c=28,l=2,f=void 0!==t.minZoom?t.minZoom:0,v=void 0!==t.maxZoom?t.maxZoom:c,m=void 0!==t.zoomFactor?t.zoomFactor:l;if(void 0!==t.resolutions){var y=t.resolutions;n=y[f],o=void 0!==y[v]?y[v]:y[y.length-1],e=function(t){return function(e,n,r){if(void 0!==e){var o=Object(d.h)(t,e,r);o=Object(h.a)(o+n,0,t.length-1);var c=Math.floor(o);if(o!=c&&c1&&"function"==typeof arguments[r-1]&&(e=arguments[r-1],--r),!this.isDef()){var o=arguments[r-1];return o.center&&this.setCenter(o.center),void 0!==o.zoom&&this.setZoom(o.zoom),void 0!==o.rotation&&this.setRotation(o.rotation),void(e&&F(e,!0))}for(var c=Date.now(),l=this.getCenter().slice(),f=this.getResolution(),d=this.getRotation(),v=[],i=0;i0},e.prototype.getInteracting=function(){return this.hints_[m.a.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(m.a.ANIMATING,-this.hints_[m.a.ANIMATING]);for(var i=0,t=this.animations_.length;i=0;--i){for(var n=this.animations_[i],r=!0,o=0,c=n.length;o0?f/l.duration:1;d>=1?(l.complete=!0,d=1):r=!1;var progress=l.easing(d);if(l.sourceCenter){var v=l.sourceCenter[0],O=l.sourceCenter[1],w=v+progress*(l.targetCenter[0]-v),j=O+progress*(l.targetCenter[1]-O);this.set(y,[w,j])}if(l.sourceResolution&&l.targetResolution){var S=1===progress?l.targetResolution:l.sourceResolution+progress*(l.targetResolution-l.sourceResolution);l.anchor&&this.set(y,this.calculateCenterZoom(S,l.anchor)),this.set(_,S)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var E=1===progress?Object(h.d)(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+progress*(l.targetRotation-l.sourceRotation);l.anchor&&this.set(y,this.calculateCenterRotate(E,l.anchor)),this.set(x,E)}if(e=!0,!l.complete)break}}if(r){this.animations_[i]=null,this.setHint(m.a.ANIMATING,-1);var C=n[0].callback;C&&F(C,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_))}},e.prototype.calculateCenterRotate=function(t,e){var n,r=this.getCenter();return void 0!==r&&(n=[r[0]-e[0],r[1]-e[1]],Object(w.g)(n,t-this.getRotation()),Object(w.a)(n,e)),n},e.prototype.calculateCenterZoom=function(t,e){var n,r=this.getCenter(),o=this.getResolution();void 0!==r&&void 0!==o&&(n=[e[0]-t*(e[0]-r[0])/o,e[1]-t*(e[1]-r[1])/o]);return n},e.prototype.getSizeFromViewport_=function(){var t=[100,100],e='.ol-viewport[data-view="'+Object(o.c)(this)+'"]',element=document.querySelector(e);if(element){var n=getComputedStyle(element);t[0]=parseInt(n.width,10),t[1]=parseInt(n.height,10)}return t},e.prototype.constrainCenter=function(t){return this.constraints_.center(t)},e.prototype.constrainResolution=function(t,e,n){var r=e||0,o=n||0;return this.constraints_.resolution(t,r,o)},e.prototype.constrainRotation=function(t,e){var n=e||0;return this.constraints_.rotation(t,n)},e.prototype.getCenter=function(){return this.get(y)},e.prototype.getConstraints=function(){return this.constraints_},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=t||this.getSizeFromViewport_(),n=this.getCenter();Object(O.a)(n,1);var r=this.getResolution();Object(O.a)(void 0!==r,2);var o=this.getRotation();return Object(O.a)(void 0!==o,3),Object(S.z)(n,r,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.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(_)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){var n=e||this.getSizeFromViewport_(),r=Object(S.E)(t)/n[0],o=Object(S.A)(t)/n[1];return Math.max(r,o)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.maxResolution_,r=this.minResolution_,o=Math.log(n/r)/Math.log(e);return function(t){return n/Math.pow(e,t*o)}},e.prototype.getRotation=function(){return this.get(x)},e.prototype.getValueForResolutionFunction=function(t){var e=t||2,n=this.maxResolution_,r=this.minResolution_,o=Math.log(n/r)/Math.log(e);return function(t){return Math.log(n/t)/Math.log(e)/o}},e.prototype.getState=function(t){var e=this.getCenter(),n=this.getProjection(),r=this.getResolution(),o=r/t,c=this.getRotation();return{center:[Math.round(e[0]/o)*o,Math.round(e[1]/o)*o],projection:void 0!==n?n:null,resolution:r,rotation:c,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,n,r=this.minZoom_||0;if(this.resolutions_){var o=Object(d.h)(this.resolutions_,t,1);r=o,e=this.resolutions_[o],n=o==this.resolutions_.length-1?2:e/this.resolutions_[o+1]}else e=this.maxResolution_,n=this.zoomFactor_;return r+Math.log(e/t)/Math.log(n)},e.prototype.getResolutionForZoom=function(t){return this.constrainResolution(this.maxResolution_,t-this.minZoom_,0)},e.prototype.fit=function(t,e){var n,r=e||{},o=r.size;o||(o=this.getSizeFromViewport_()),Object(O.a)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)?(Object(O.a)(!Object(S.H)(t),25),n=Object(C.d)(t)):t.getType()===E.a.CIRCLE?(t=t.getExtent(),(n=Object(C.d)(t)).rotate(this.getRotation(),Object(S.x)(t))):n=t;var h,l=void 0!==r.padding?r.padding:[0,0,0,0],f=void 0===r.constrainResolution||r.constrainResolution,d=void 0!==r.nearest&&r.nearest;h=void 0!==r.minResolution?r.minResolution:void 0!==r.maxZoom?this.constrainResolution(this.maxResolution_,r.maxZoom-this.minZoom_,0):0;for(var v=n.getFlatCoordinates(),m=this.getRotation(),y=Math.cos(-m),_=Math.sin(-m),x=1/0,w=1/0,j=-1/0,T=-1/0,R=n.getStride(),i=0,I=v.length;i0?h.map((function(){return t(!1)})):t(!1))}};t.exports=r},,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(286),o=Function.prototype,c=o.apply,h=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?h.bind(c):function(){return h.apply(c,arguments)})},function(t,e,n){"use strict";var r=n(48);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},function(t,e,n){"use strict";var r=n(210),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},function(t,e,n){"use strict";var r=n(100),o=n(65),c=n(91),h=n(519),l=Object;t.exports=h?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&c(e.prototype,l(t))}},function(t,e,n){"use strict";var r,o,c=n(81),h=n(211),l=c.process,f=c.Deno,d=l&&l.versions||f&&f.version,v=d&&d.v8;v&&(o=(r=v.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&h&&(!(r=h.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=h.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},function(t,e,n){"use strict";var r=n(524),o=n(415);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){"use strict";t.exports={}},function(t,e,n){"use strict";var r=n(59);t.exports=r([].slice)},function(t,e,n){"use strict";var r=n(48),o=n(66),c=n(289),h=o("species");t.exports=function(t){return c>=51||!r((function(){var e=[];return(e.constructor={})[h]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e){},function(t,e,n){"use strict";var r=n(777).charAt,o=n(189),c=n(247),h=n(420),l=n(421),f="String Iterator",d=c.set,v=c.getterFor(f);h(String,"String",(function(t){d(this,{type:f,string:o(t),index:0})}),(function(){var t,e=v(this),n=e.string,o=e.index;return o>=n.length?l(void 0,!0):(t=r(n,o),e.index+=t.length,l(t,!1))}))},function(t,e,n){"use strict";var r=n(81),o=n(254),c=n(65),h=n(521),l=n(529),f=n(66),d=n(843),v=n(553),m=n(144),y=n(289),_=o&&o.prototype,x=f("species"),O=!1,w=c(r.PromiseRejectionEvent),j=h("Promise",(function(){var t=l(o),e=t!==String(o);if(!e&&66===y)return!0;if(m&&(!_.catch||!_.finally))return!0;if(!y||y<51||!/native code/.test(t)){var n=new o((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[x]=r,!(O=n.then((function(){}))instanceof r))return!0}return!e&&(d||v)&&!w}));t.exports={CONSTRUCTOR:j,REJECTION_EVENT:w,SUBCLASSING:O}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(26),o=n.n(r);function c(){for(var t,e,n=arguments.length,r=new Array(n),c=0;cthis.maxCacheSize_){var i=0;for(var t in this.cache_){var e=this.cache_[t];0!=(3&i++)||e.hasListener()||(delete this.cache_[t],--this.cacheSize_)}}},o.prototype.get=function(t,e,n){var r=c(t,e,n);return r in this.cache_?this.cache_[r]:null},o.prototype.set=function(t,e,n,r){var o=c(t,e,n);this.cache_[o]=r,++this.cacheSize_},o.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()};var h=new o},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,c=o&&!r.call({1:2},1);e.f=c?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){"use strict";var r=n(715),o=n(288);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},function(t,e,n){"use strict";var r=n(59),o=0,c=Math.random(),h=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+h(++o+c,36)}},function(t,e,n){"use strict";var r=n(330),o=Math.max,c=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):c(n,e)}},function(t,e,n){"use strict";var r=n(718);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},function(t,e,n){"use strict";var r=n(245),o=n(328),c=r("keys");t.exports=function(t){return c[t]||(c[t]=o(t))}},function(t,e,n){"use strict";var r=n(524),o=n(415).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(66);e.f=r},function(t,e,n){"use strict";var r=n(59),o=n(48),c=n(65),h=n(213),l=n(100),f=n(529),d=function(){},v=[],m=l("Reflect","construct"),y=/^\s*(?:class|function)\b/,_=r(y.exec),x=!y.test(d),O=function(t){if(!c(t))return!1;try{return m(d,v,t),!0}catch(t){return!1}},w=function(t){if(!c(t))return!1;switch(h(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return x||!!_(y,f(t))}catch(t){return!0}};w.sham=!0,t.exports=!m||o((function(){var t;return O(O.call)||!O(Object)||!O((function(){t=!0}))||t}))?w:O},function(t,e,n){"use strict";var r=n(757),o=n(110),c=n(758);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),c(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){"use strict";var r=n(213),o=n(410),c=n(210),h=n(251),l=n(66)("iterator");t.exports=function(t){if(!c(t))return o(t,l)||o(t,"@@iterator")||h[r(t)]}},function(t,e,n){"use strict";var r=n(81),o=n(168);t.exports="process"===o(r.process)},function(t,e,n){"use strict";var r=n(254),o=n(554),c=n(296).CONSTRUCTOR;t.exports=c||!o((function(t){r.all(t).then(void 0,(function(){}))}))},,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(2),o=function(t){function e(code){var e="Assertion failed. See https://openlayers.org/en/"+("latest"===r.a?r.a:"v"+r.a.split("-")[0])+"/doc/errors/#"+code+" for details.";t.call(this,e),this.code=code,this.name="AssertionError",this.message=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error);e.a=o},function(t,e,n){"use strict";t.exports=n(802)},function(t,e,n){"use strict";t.exports=n(826)},function(t,e,n){t.exports=n(559)},function(t,e,n){"use strict";var r=n(3),o=n(117),c=n(8),h=function(t){function e(){t.call(this),this.revision_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(){++this.revision_,this.dispatchEvent(c.a.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.on=function(t,e){if(Array.isArray(t)){for(var n=t.length,o=new Array(n),i=0;i=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,h=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return h=t.done,t},e:function(t){l=!0,o=t},f:function(){try{h||null==n.return||n.return()}finally{if(l)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0},canPrefetch:function(){var t=navigator.connection;return!(this.$nuxt.isOffline||t&&((t.effectiveType||"").includes("2g")||t.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map((function(t){return t.components.default})).filter((function(t){return"function"==typeof t&&!t.options&&!t.__prefetched}))},prefetchLink:function(){if(this.canPrefetch()){f.unobserve(this.$el);var t,e=o(this.getPrefetchComponents());try{for(e.s();!(t=e.n()).done;){var n=t.value,r=n();r instanceof Promise&&r.catch((function(){})),n.__prefetched=!0}}catch(t){e.e(t)}finally{e.f()}}}}}},,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(168),o=n(59);t.exports=function(t){if("Function"===r(t))return o(t)}},function(t,e,n){"use strict";var r=n(59),o=n(48),c=n(168),h=Object,l=r("".split);t.exports=o((function(){return!h("z").propertyIsEnumerable(0)}))?function(t){return"String"===c(t)?l(t,""):h(t)}:h},function(t,e,n){"use strict";var r=n(95),o=n(210);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},function(t,e,n){"use strict";var r=n(81),o=n(717),c="__core-js_shared__",h=r[c]||o(c,{});t.exports=h},function(t,e,n){"use strict";var r=n(81),o=n(90),c=r.document,h=o(c)&&o(c.createElement);t.exports=function(t){return h?c.createElement(t):{}}},function(t,e,n){"use strict";var r={};r[n(66)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){"use strict";var r=n(143),o=n(329),c=n(151),h=function(t){return function(e,n,h){var l,f=r(e),d=c(f),v=o(h,d);if(t&&n!=n){for(;d>v;)if((l=f[v++])!=l)return!0}else for(;d>v;v++)if((t||v in f)&&f[v]===n)return t||v||0;return!t&&-1}};t.exports={includes:h(!0),indexOf:h(!1)}},function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){"use strict";var r=n(125);t.exports=function(t,e,n){return r.f(t,e,n)}},function(t,e,n){"use strict";var r=n(722);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){"use strict";var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},function(t,e,n){"use strict";t.exports=function(){}},function(t,e,n){"use strict";var r=n(18),o=n(72),c=n(144),h=n(755),l=n(65),f=n(756),d=n(252),v=n(336),m=n(215),y=n(150),_=n(190),x=n(66),O=n(251),w=n(537),j=h.PROPER,S=h.CONFIGURABLE,E=w.IteratorPrototype,C=w.BUGGY_SAFARI_ITERATORS,T=x("iterator"),R="keys",I="values",P="entries",F=function(){return this};t.exports=function(t,e,n,h,x,w,L){f(n,e,h);var A,M,k,D=function(t){if(t===x&&B)return B;if(!C&&t&&t in G)return G[t];switch(t){case R:case I:case P:return function(){return new n(this,t)}}return function(){return new n(this)}},N=e+" Iterator",$=!1,G=t.prototype,z=G[T]||G["@@iterator"]||x&&G[x],B=!C&&z||D(x),V="Array"===e&&G.entries||z;if(V&&(A=d(V.call(new t)))!==Object.prototype&&A.next&&(c||d(A)===E||(v?v(A,E):l(A[T])||_(A,T,F)),m(A,N,!0,!0),c&&(O[N]=F)),j&&x===I&&z&&z.name!==I&&(!c&&S?y(G,"name",I):($=!0,B=function(){return o(z,this)})),x)if(M={values:D(I),keys:w?B:D(R),entries:D(P)},L)for(k in M)(C||$||!(k in G))&&_(G,k,M[k]);else r({target:e,proto:!0,forced:C||$},M);return c&&!L||G[T]===B||_(G,T,B,{name:x}),O[e]=B,M}},function(t,e,n){"use strict";t.exports=function(t,e){return{value:t,done:e}}},function(t,e,n){"use strict";var r=n(48);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},function(t,e,n){"use strict";var r=n(91),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new o("Incorrect invocation")}},function(t,e,n){"use strict";var r=n(335),o=n(212),c=TypeError;t.exports=function(t){if(r(t))return t;throw new c(o(t)+" is not a constructor")}},,,,,function(t,e,n){"use strict";t.exports=n(773)},function(t,e,n){"use strict";t.exports=n(862)},function(t,e,n){"use strict";var r={};r.ADMIN=n(641),r.ADMIN=r.ADMIN.default||r.ADMIN,r.auth=n(642),r.auth=r.auth.default||r.auth,r.BUSINESS=n(643),r.BUSINESS=r.BUSINESS.default||r.BUSINESS,r.dashboard=n(644),r.dashboard=r.dashboard.default||r.dashboard,r.MODERATOR=n(645),r.MODERATOR=r.MODERATOR.default||r.MODERATOR,e.a=r},function(t,e,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,c=r(),h=c.default;void 0===h&&(h=[]);var l=c.placeholder;return n._isMounted?h:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||l)?t(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||l):h.length>0?h.map((function(){return t(!1)})):t(!1))}};t.exports=r},,,function(t,e,n){"use strict";t.exports=n(903)},function(t,e,n){"use strict";t.exports=n(925)},,,,,,,,,,,,,,,function(t,e,n){var content=n(674);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(182).default)("2cb17a2e",content,!0,{sourceMap:!1})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var content=n(665);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(182).default)("1dd7f70c",content,!0,{sourceMap:!1})},function(t,e,n){var content=n(667);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(182).default)("49569972",content,!0,{sourceMap:!1})},,,,,,,,,,function(t,e,n){"use strict";n(714),n(723),n(724),n(531),n(726)},function(t,e,n){"use strict";var r="object"==typeof document&&document.all,o=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:o}},function(t,e,n){"use strict";var r=n(244);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){"use strict";var r=n(89),o=n(48),c=n(412);t.exports=!r&&!o((function(){return 7!==Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";var r=n(48),o=n(65),c=/#|\.prototype\./,h=function(t,e){var n=data[l(t)];return n===d||n!==f&&(o(e)?r(e):!!e)},l=h.normalize=function(t){return String(t).replace(c,".").toLowerCase()},data=h.data={},f=h.NATIVE="N",d=h.POLYFILL="P";t.exports=h},function(t,e,n){"use strict";var r=n(89),o=n(48);t.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(t,e,n){"use strict";var r=n(89),o=n(522),c=n(125),h=n(110),l=n(143),f=n(290);e.f=r&&!o?Object.defineProperties:function(t,e){h(t);for(var n,r=l(e),o=f(e),d=o.length,v=0;d>v;)c.f(t,n=o[v++],r[n]);return t}},function(t,e,n){"use strict";var r=n(59),o=n(92),c=n(143),h=n(414).indexOf,l=n(291),f=r([].push);t.exports=function(object,t){var e,n=c(object),i=0,r=[];for(e in n)!o(l,e)&&o(n,e)&&f(r,e);for(;t.length>i;)o(n,e=t[i++])&&(~h(r,e)||f(r,e));return r}},function(t,e,n){"use strict";var r=n(100);t.exports=r("document","documentElement")},function(t,e,n){"use strict";var r=n(168),o=n(143),c=n(332).f,h=n(527),l="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return l&&"Window"===r(t)?function(t){try{return c(t)}catch(t){return h(l)}}(t):c(o(t))}},function(t,e,n){"use strict";var r=n(329),o=n(151),c=n(246),h=Array,l=Math.max;t.exports=function(t,e,n){for(var f=o(t),d=r(e,f),v=r(void 0===n?f:n,f),m=h(l(v-d,0)),y=0;d=51||!o((function(){var t=[];return t[O]=!1,t.concat()[0]!==t})),j=function(t){if(!h(t))return!1;var e=t[O];return void 0!==e?!!e:c(t)};r({target:"Array",proto:!0,arity:1,forced:!w||!y("concat")},{concat:function(t){var i,e,n,r,o,c=l(this),h=m(c,0),y=0;for(i=-1,n=arguments.length;i2?arguments[2]:void 0;if(!c(e)&&!c(m))throw new l("At least one callback required");return r(d,map,t)?(n=r(f,map,t),c(e)&&(n=e(n),r(v,map,t,n))):c(m)&&(n=m(),r(v,map,t,n)),n}},function(t,e,n){"use strict";var r=n(212),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw new o("Cannot delete property "+r(e)+" of "+r(t))}},function(t,e,n){"use strict";function r(t,e){return e=e||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u={},a=function t(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:t,headers:{keys:function(){return o},entries:function(){return o.map((function(t){return[t,s.getResponseHeader(t)]}))},get:function(t){return s.getResponseHeader(t)},has:function(t){return null!=s.getResponseHeader(t)}}}};for(var i in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,(function(t,e){u[e]||o.push(u[e]=e)})),n(a())},s.onerror=r,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(i,e.headers[i]);s.send(e.body||null)}))}n.d(e,"a",(function(){return r}))},,function(t,e,n){"use strict";var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(t,e){return!1!==e.clone&&e.isMergeableObject(t)?v((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function h(t,source,e){return t.concat(source).map((function(element){return c(element,e)}))}function l(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(symbol){return Object.propertyIsEnumerable.call(t,symbol)})):[]}(t))}function f(object,t){try{return t in object}catch(t){return!1}}function d(t,source,e){var n={};return e.isMergeableObject(t)&&l(t).forEach((function(r){n[r]=c(t[r],e)})),l(source).forEach((function(r){(function(t,e){return f(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(f(t,r)&&e.isMergeableObject(source[r])?n[r]=function(t,e){if(!e.customMerge)return v;var n=e.customMerge(t);return"function"==typeof n?n:v}(r,e)(t[r],source[r],e):n[r]=c(source[r],e))})),n}function v(t,source,e){(e=e||{}).arrayMerge=e.arrayMerge||h,e.isMergeableObject=e.isMergeableObject||r,e.cloneUnlessOtherwiseSpecified=c;var n=Array.isArray(source);return n===Array.isArray(t)?n?e.arrayMerge(t,source,e):d(t,source,e):c(source,e)}v.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return v(t,n,e)}),{})};var m=v;t.exports=m},function(t,e,n){"use strict";t.exports=n(778)},function(t,e,n){t.exports=n(788)},function(t,e,n){t.exports=n(541)},function(t,e,n){"use strict";t.exports=n(909)},function(t,e,n){"use strict";t.exports=o;var r=n(596);function o(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}o.Varint=0,o.Fixed64=1,o.Bytes=2,o.Fixed32=5;var c=4294967296,h=1/c;function l(t){return t.type===o.Bytes?t.readVarint()+t.pos:t.pos+1}function f(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function d(t,e,n){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.ceil(Math.log(e)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=t;i--)n.buf[i+r]=n.buf[i]}function v(t,e){for(var i=0;i>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function T(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}o.prototype={destroy:function(){this.buf=null},readFields:function(t,e,n){for(n=n||this.length;this.pos>3,c=this.pos;this.type=7&r,t(o,e,this),this.pos===c&&this.skip(r)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=E(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=T(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=E(this.buf,this.pos)+E(this.buf,this.pos+4)*c;return this.pos+=8,t},readSFixed64:function(){var t=E(this.buf,this.pos)+T(this.buf,this.pos+4)*c;return this.pos+=8,t},readFloat:function(){var t=r.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=r.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,b,n=this.buf;return e=127&(b=n[this.pos++]),b<128?e:(e|=(127&(b=n[this.pos++]))<<7,b<128?e:(e|=(127&(b=n[this.pos++]))<<14,b<128?e:(e|=(127&(b=n[this.pos++]))<<21,b<128?e:function(t,s,p){var e,b,n=p.buf;if(b=n[p.pos++],e=(112&b)>>4,b<128)return f(t,e,s);if(b=n[p.pos++],e|=(127&b)<<3,b<128)return f(t,e,s);if(b=n[p.pos++],e|=(127&b)<<10,b<128)return f(t,e,s);if(b=n[p.pos++],e|=(127&b)<<17,b<128)return f(t,e,s);if(b=n[p.pos++],e|=(127&b)<<24,b<128)return f(t,e,s);if(b=n[p.pos++],e|=(1&b)<<31,b<128)return f(t,e,s);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(b=n[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=function(t,e,n){var r="",i=e;for(;i239?4:l>223?3:l>191?2:1;if(i+d>n)break;1===d?l<128&&(f=l):2===d?128==(192&(o=t[i+1]))&&(f=(31&l)<<6|63&o)<=127&&(f=null):3===d?(o=t[i+1],c=t[i+2],128==(192&o)&&128==(192&c)&&((f=(15&l)<<12|(63&o)<<6|63&c)<=2047||f>=55296&&f<=57343)&&(f=null)):4===d&&(o=t[i+1],c=t[i+2],h=t[i+3],128==(192&o)&&128==(192&c)&&128==(192&h)&&((f=(15&l)<<18|(63&o)<<12|(63&c)<<6|63&h)<=65535||f>=1114112)&&(f=null)),null===f?(f=65533,d=1):f>65535&&(f-=65536,r+=String.fromCharCode(f>>>10&1023|55296),f=56320|1023&f),r+=String.fromCharCode(f),i+=d}return r}(this.buf,this.pos,t);return this.pos=t,e},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){var n=l(this);for(t=t||[];this.pos127;);else if(e===o.Bytes)this.pos=this.readVarint()+this.pos;else if(e===o.Fixed32)this.pos+=4;else{if(e!==o.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e268435455||t<0?function(t,e){var n,r;t>=0?(n=t%4294967296|0,r=t/4294967296|0):(r=~(-t/4294967296),4294967295^(n=~(-t%4294967296))?n=n+1|0:(n=0,r=r+1|0));if(t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,n){n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos]=127&t}(n,0,e),function(t,e){var n=(7&t)<<4;if(e.buf[e.pos++]|=n|((t>>>=3)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;e.buf[e.pos++]=127&t}(r,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,n){for(var r,o,i=0;i55295&&r<57344){if(!o){r>56319||i+1===e.length?(t[n++]=239,t[n++]=191,t[n++]=189):o=r;continue}if(r<56320){t[n++]=239,t[n++]=191,t[n++]=189,o=r;continue}r=o-55296<<10|r-56320|65536,o=null}else o&&(t[n++]=239,t[n++]=191,t[n++]=189,o=null);r<128?t[n++]=r:(r<2048?t[n++]=r>>6|192:(r<65536?t[n++]=r>>12|224:(t[n++]=r>>18|240,t[n++]=r>>12&63|128),t[n++]=r>>6&63|128),t[n++]=63&r|128)}return n}(this.buf,t,this.pos);var n=this.pos-e;n>=128&&d(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),r.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),r.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var i=0;i=128&&d(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(t,e,n){this.writeTag(t,o.Bytes),this.writeRawMessage(e,n)},writePackedVarint:function(t,e){this.writeMessage(t,v,e)},writePackedSVarint:function(t,e){this.writeMessage(t,m,e)},writePackedBoolean:function(t,e){this.writeMessage(t,x,e)},writePackedFloat:function(t,e){this.writeMessage(t,y,e)},writePackedDouble:function(t,e){this.writeMessage(t,_,e)},writePackedFixed32:function(t,e){this.writeMessage(t,O,e)},writePackedSFixed32:function(t,e){this.writeMessage(t,w,e)},writePackedFixed64:function(t,e){this.writeMessage(t,j,e)},writePackedSFixed64:function(t,e){this.writeMessage(t,S,e)},writeBytesField:function(t,e){this.writeTag(t,o.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,o.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,o.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,o.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,o.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,o.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,o.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,o.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,o.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,o.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}},function(t,e,n){var r=n(915);t.exports=function(t){var e,n,o,c;if(e=/^((?:rgb|hs[lv]|cmyk|xyz|lab)a?)\s*\(([^\)]*)\)/.exec(t)){var h=e[1],l="cmyk"===(base=h.replace(/a$/,""))?4:3;n=r[base],o=e[2].replace(/^\s+|\s+$/g,"").split(/\s*,\s*/).map((function(t,i){return/%$/.test(t)&&i===l?parseFloat(t)/100:(/%$/.test(t),parseFloat(t))})),h===base&&o.push(1),c=void 0===o[l]?1:o[l],o=o.slice(0,l),n[base]=function(){return o}}else if(/^#[A-Fa-f0-9]+$/.test(t)){var base;l=(base=t.replace(/^#/,"")).length;n=r.rgb,o=(o=base.split(3===l?/(.)/:/(..)/)).filter(Boolean).map((function(t){return 3===l?parseInt(t+t,16):parseInt(t,16)})),c=1,n.rgb=function(){return o},o[0]||(o[0]=0),o[1]||(o[1]=0),o[2]||(o[2]=0)}else(n=r.keyword).keyword=function(){return t},o=t,c=1;var f={rgb:void 0,hsl:void 0,hsv:void 0,cmyk:void 0,keyword:void 0,hex:void 0};try{f.rgb=n.rgb(o)}catch(t){}try{f.hsl=n.hsl(o)}catch(t){}try{f.hsv=n.hsv(o)}catch(t){}try{f.cmyk=n.cmyk(o)}catch(t){}try{f.keyword=n.keyword(o)}catch(t){}return f.rgb&&(f.hex="#"+f.rgb.map((function(t){var s=t.toString(16);return 1===s.length?"0"+s:s})).join("")),f.rgb&&(f.rgba=f.rgb.concat(c)),f.hsl&&(f.hsla=f.hsl.concat(c)),f.hsv&&(f.hsva=f.hsv.concat(c)),f.cmyk&&(f.cmyka=f.cmyk.concat(c)),f}},function(t,e,n){"use strict";t.exports=n(917)},function(t,e,n){t.exports=n(962)},function(t,e,n){"use strict";t.exports=function(t,e,n){if(!t)throw new TypeError("argument dest is required");if(!e)throw new TypeError("argument src is required");void 0===n&&(n=!0);return Object.getOwnPropertyNames(e).forEach((function(o){if(n||!r.call(t,o)){var c=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,c)}})),t};var r=Object.prototype.hasOwnProperty},function(t,e,n){t.exports=n(977)},function(t,e,n){"use strict";n.d(e,"a",(function(){return Zt}));var r=n(7);function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function i(t){for(var i=1;it.length)&&(e=t.length);for(var i=0,n=new Array(e);i=0?n=setTimeout(c,e-h):(n=null,i||(a=t.apply(r,s),r=s=null))}null==e&&(e=100);var h=function(){r=this,s=arguments,o=Date.now();var h=i&&!n;return n||(n=setTimeout(c,e)),h&&(a=t.apply(r,s),r=s=null),a};return h.clear=function(){n&&(clearTimeout(n),n=null)},h.flush=function(){n&&(a=t.apply(r,s),r=s=null,clearTimeout(n),n=null)},h}u.debounce=u;var m=u,y=function(){return y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0?i.left=n.left:n.right&&n.right>0&&(i.left=-n.right),n.top&&n.top>0?i.top=n.top:n.bottom&&n.bottom>0&&(i.top=-n.bottom),i}function it(t,e){var i;return e.minimum&&te.maximum&&(i=e.maximum),i}function nt(t,e){var i=Q(t),n=Q(e);return e.width<1/0&&e.height<1/0?i>n?{width:e.width,height:e.width/i}:{width:e.height*i,height:e.height}:e.width<1/0?{width:e.width,height:e.width/i}:e.height<1/0?{width:e.height*i,height:e.height}:t}function ot(t,e){var i=e*Math.PI/180;return{width:Math.abs(t.width*Math.cos(i))+Math.abs(t.height*Math.sin(i)),height:Math.abs(t.width*Math.sin(i))+Math.abs(t.height*Math.cos(i))}}function st(t,e){var i=e*Math.PI/180;return{left:t.left*Math.cos(i)-t.top*Math.sin(i),top:t.left*Math.sin(i)+t.top*Math.cos(i)}}function at(t,e){var i=H(ct(t,e),e);return i.left+i.right+i.top+i.bottom?i.left+i.right>i.top+i.bottom?Math.min((t.width+i.left+i.right)/t.width,tt(t,e)):Math.min((t.height+i.top+i.bottom)/t.height,tt(t,e)):1}function ct(t,e,i){void 0===i&&(i=!1);var n=et(t,e);return q(t,i?Z(n):n)}function rt(t){return{width:void 0!==t.right&&void 0!==t.left?t.right-t.left:1/0,height:void 0!==t.bottom&&void 0!==t.top?t.bottom-t.top:1/0}}function ut(t,e,i){void 0===i&&(i=!0);var n={};return N.forEach((function(s){var r=t[s],o=e[s];void 0!==r&&void 0!==o?n[s]="left"===s||"top"===s?i?Math.max(r,o):Math.min(r,o):i?Math.min(r,o):Math.max(r,o):void 0!==o?n[s]=o:void 0!==r&&(n[s]=r)})),n}function ht(t,e){return ut(t,e,!0)}function lt(t){var e=t.size,i=t.aspectRatio,n=t.ignoreMinimum,s=t.sizeRestrictions;return Boolean((e.correctRatio||Q(e)>=i.minimum&&Q(e)<=i.maximum)&&e.height<=s.maxHeight&&e.width<=s.maxWidth&&e.width&&e.height&&(n||e.height>=s.minHeight&&e.width>=s.minWidth))}function dt(t,e){return Math.pow(t.width-e.width,2)+Math.pow(t.height-e.height,2)}function ft(t){var e=t.width,i=t.height,n=t.sizeRestrictions,s={minimum:t.aspectRatio&&t.aspectRatio.minimum||0,maximum:t.aspectRatio&&t.aspectRatio.maximum||1/0},r={width:Math.max(n.minWidth,Math.min(n.maxWidth,e)),height:Math.max(n.minHeight,Math.min(n.maxHeight,i))};function o(t,r){return void 0===r&&(r=!1),t.reduce((function(t,o){return lt({size:o,aspectRatio:s,sizeRestrictions:n,ignoreMinimum:r})&&(!t||dt(o,{width:e,height:i})1-l)||(f=y(y({},f),ft({sizeRestrictions:o,width:f.width,height:f.height,aspectRatio:{minimum:Q(d),maximum:Q(d)}})));var p=at(u=J(u,f.width*i.width/(u.width*d.width)),e({visibleArea:u,type:"resize"}));return 1!==p&&(u=J(u,p),f=J(f,p)),u=ct(u=q(u,Y(X(f),X(u))),e({visibleArea:u,type:"move"})),{coordinates:f=ct(f,ht(W(u),a)),visibleArea:u}}function vt(t){var e=t.event,i=t.getAreaRestrictions,n=t.boundaries,s=t.coordinates,r=t.visibleArea;t.aspectRatio,t.stencilSize,t.sizeRestrictions;var o=t.positionRestrictions;t.stencilReference;var a=y({},s),c=y({},r);if(s&&r&&"manipulateImage"!==e.type){var h={width:0,height:0};c.width,n.width,Q(n)>Q(a)?(h.height=.8*n.height,h.width=h.height*Q(a)):(h.width=.8*n.width,h.height=h.width*Q(a));var l=at(c=J(c,a.width*n.width/(c.width*h.width)),i({visibleArea:c,type:"resize"}));c=J(c,l),1!==l&&(h.height/=l,h.width/=l),c=ct(c=q(c,Y(X(a),X(c))),i({visibleArea:c,type:"move"})),a=ct(a,ht(W(c),o))}return{coordinates:a,visibleArea:c}}function mt(t){var e=t.event,i=t.coordinates,n=t.visibleArea,s=t.getAreaRestrictions,r=y({},n),o=y({},i);if("setCoordinates"===e.type){var a=Math.max(0,o.width-r.width),c=Math.max(0,o.height-r.height);a>c?r=J(r,Math.min(o.width/r.width,tt(r,s({visibleArea:r,type:"resize"})))):c>a&&(r=J(r,Math.min(o.height/r.height,tt(r,s({visibleArea:r,type:"resize"}))))),r=ct(r=q(r,Z(et(o,W(r)))),s({visibleArea:r,type:"move"}))}return{visibleArea:r,coordinates:o}}function yt(t){var e=t.imageSize,i=t.visibleArea,n=t.aspectRatio,s=t.sizeRestrictions,r=i||e,o=Math.min(n.maximum||1/0,Math.max(n.minimum||0,Q(r))),a=r.widthQ(r)?i=(e=c.height*h.height/r.height)*Q(c):e=(i=c.width*h.width/r.width)/Q(c),ft({width:i,height:e,aspectRatio:o,sizeRestrictions:a})}function bt(t,e){return ut(t,W(e))}function xt(t){var e=t.directions,i=t.coordinates,n=t.positionRestrictions,s=void 0===n?{}:n,r=t.sizeRestrictions,o=t.preserveRatio,a=t.compensate,c=y({},e),h=K(i,c).width,l=K(i,c).height;h<0&&(c.left<0&&c.right<0?(c.left=-(i.width-r.minWidth)/(c.left/c.right),c.right=-(i.width-r.minWidth)/(c.right/c.left)):c.left<0?c.left=-(i.width-r.minWidth):c.right<0&&(c.right=-(i.width-r.minWidth))),l<0&&(c.top<0&&c.bottom<0?(c.top=-(i.height-r.minHeight)/(c.top/c.bottom),c.bottom=-(i.height-r.minHeight)/(c.bottom/c.top)):c.top<0?c.top=-(i.height-r.minHeight):c.bottom<0&&(c.bottom=-(i.height-r.minHeight)));var f=H(K(i,c),s);a&&(f.left&&f.left>0&&0===f.right?(c.right+=f.left,c.left-=f.left):f.right&&f.right>0&&0===f.left&&(c.left+=f.right,c.right-=f.right),f.top&&f.top>0&&0===f.bottom?(c.bottom+=f.top,c.top-=f.top):f.bottom&&f.bottom>0&&0===f.top&&(c.top+=f.bottom,c.bottom-=f.bottom),f=H(K(i,c),s));var u={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(N.forEach((function(t){var e=f[t];e&&c[t]&&(u[t]=Math.max(0,1-e/c[t]))})),o){var d=Math.min.apply(null,N.map((function(t){return u[t]})));d!==1/0&&N.forEach((function(t){c[t]*=d}))}else N.forEach((function(t){u[t]!==1/0&&(c[t]*=u[t])}));if(h=K(i,c).width,l=K(i,c).height,c.right+c.left&&(h>r.maxWidth?u.width=(r.maxWidth-i.width)/(c.right+c.left):hr.maxHeight?u.height=(r.maxHeight-i.height)/(c.bottom+c.top):l=1&&(this.touchStarted?(this.processMove(t,t.touches),t.preventDefault(),t.stopPropagation()):C({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:t.touches[0].clientX,y:t.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(t){if(this.movable&&0===t.button){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.cancelable&&t.preventDefault(),t.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.container.getBoundingClientRect(),i=e.left,n=e.top;this.anchor={x:t.clientX-i,y:t.clientY-n}},processMove:function(t,e){var i=h(e);if(this.touches.length){var n=this.$refs.container.getBoundingClientRect(),s=n.left,r=n.top;1===this.touches.length&&1===i.length&&this.$emit("move",new I({left:i[0].clientX-(s+this.anchor.x),top:i[0].clientY-(r+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}}},void 0,!1,void 0,!1,void 0,void 0,void 0);function Mt(t){var e,i;return{rotate:t.rotate||0,flip:{horizontal:(null===(e=null==t?void 0:t.flip)||void 0===e?void 0:e.horizontal)||!1,vertical:(null===(i=null==t?void 0:t.flip)||void 0===i?void 0:i.vertical)||!1}}}function kt(t){var e=t.rotate,i=t.flip,n=t.scaleX,s=t.scaleY,r="";return r+=" rotate("+e+"deg) ",(r+=" scaleX("+n*(i.horizontal?-1:1)+") ")+" scaleY("+s*(i.vertical?-1:1)+") "}var Dt=v("vue-preview-result");F({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.classes.root},[i("div",{ref:"wrapper",class:t.classes.wrapper,style:t.wrapperStyle},[i("img",{ref:"image",class:t.classes.image,style:t.imageStyle,attrs:{src:t.image.src}})])])},staticRenderFns:[]},void 0,{name:"PreviewResult",props:{image:{type:Object},transitions:{type:Object},stencilCoordinates:{type:Object,default:function(){return{width:0,height:0,left:0,top:0}}},imageClass:{type:String}},computed:{classes:function(){return{root:Dt(),wrapper:Dt("wrapper"),imageWrapper:Dt("image-wrapper"),image:d(Dt("image"),this.imageClass)}},wrapperStyle:function(){var t={width:"".concat(this.stencilCoordinates.width,"px"),height:"".concat(this.stencilCoordinates.height,"px"),left:"calc(50% - ".concat(this.stencilCoordinates.width/2,"px)"),top:"calc(50% - ".concat(this.stencilCoordinates.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},imageStyle:function(){var t=this.image.transforms,e=ot({width:this.image.width,height:this.image.height},t.rotate),i={width:"".concat(this.image.width,"px"),height:"".concat(this.image.height,"px"),left:"0px",top:"0px"},n=(this.image.width-e.width)*t.scaleX/2,r=(this.image.height-e.height)*t.scaleY/2,o=(1-t.scaleX)*this.image.width/2,c=(1-t.scaleY)*this.image.height/2;return i.transform="translate(\n\t\t\t\t".concat(-this.stencilCoordinates.left-t.translateX-n-o,"px,").concat(-this.stencilCoordinates.top-t.translateY-r-c,"px) ")+kt(t),this.transitions&&this.transitions.enabled&&(i.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),i}}},void 0,!1,void 0,!1,void 0,void 0,void 0);function Nt(t,e){var i=e.getBoundingClientRect(),n=i.left,s=i.top,r={left:0,top:0},o=0;return t.forEach((function(e){r.left+=(e.clientX-n)/t.length,r.top+=(e.clientY-s)/t.length})),t.forEach((function(t){o+=C({x:r.left,y:r.top},{x:t.clientX-n,y:t.clientY-s})})),{centerMass:r,spread:o,count:t.length}}var $t=F({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"container",on:{touchstart:t.onTouchStart,mousedown:t.onMouseDown,wheel:t.onWheel}},[t._t("default")],2)},staticRenderFns:[]},void 0,{props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0},eventsFilter:{type:Function,required:!1}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeDestroy:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},created:function(){this.transforming=!1,this.debouncedProcessEnd=m(this.processEnd),this.touches=[]},methods:{processMove:function(t,e){if(this.touches.length){if(1===this.touches.length&&1===e.length)this.$emit("move",new T({left:this.touches[0].clientX-e[0].clientX,top:this.touches[0].clientY-e[0].clientY}));else if(this.touches.length>1&&this.touchResize){var i=Nt(e,this.$refs.container),n=this.oldGeometricProperties;n.count===i.count&&n.count>1&&this.$emit("resize",new T({left:n.centerMass.left-i.centerMass.left,top:n.centerMass.top-i.centerMass.top},{factor:n.spread/i.spread,center:i.centerMass})),this.oldGeometricProperties=i}this.touches=e}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(t){return this.eventsFilter?!1!==this.eventsFilter(t,this.transforming):(t.preventDefault(),t.stopPropagation(),!0)},onTouchStart:function(t){if(t.cancelable&&(this.touchMove||this.touchResize&&t.touches.length>1)&&this.processEvent(t)){var e=this.$refs.container,i=e.getBoundingClientRect(),n=i.left,s=i.top,r=i.bottom,a=i.right;this.touches=h(t.touches).filter((function(t){return t.clientX>n&&t.clientXs&&t.clientY0?1:-1),r={left:t.clientX-i,top:t.clientY-n};this.$emit("resize",new T({},{factor:s,center:r})),this.touches.length||this.debouncedProcessEnd()}var a}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Gt=F({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("transformable-image",{attrs:{"touch-move":t.touchMove,"touch-resize":t.touchResize,"mouse-move":t.mouseMove,"wheel-resize":t.wheelResize},on:{move:function(e){return t.$emit("move",e)},resize:function(e){return t.$emit("resize",e)}}},[t._t("default")],2)},staticRenderFns:[]},void 0,{components:{TransformableImage:$t},props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0}}},void 0,!1,void 0,!1,void 0,void 0,void 0),zt=v("vue-preview"),Bt=F({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"root",class:t.classes.root,style:t.style},[i("div",{ref:"wrapper",class:t.classes.wrapper,style:t.wrapperStyle},[i("img",{directives:[{name:"show",rawName:"v-show",value:t.image&&t.image.src,expression:"image && image.src"}],ref:"image",class:t.classes.image,style:t.imageStyle,attrs:{src:t.image&&t.image.src}})])])},staticRenderFns:[]},void 0,{props:{coordinates:{type:Object},transitions:{type:Object},image:{type:Object,default:function(){return{}}},imageClass:{type:String},width:{type:Number},height:{type:Number},fill:{type:Boolean}},data:function(){return{calculatedImageSize:{width:0,height:0},calculatedSize:{width:0,height:0}}},computed:{classes:function(){return{root:zt({fill:this.fill}),wrapper:zt("wrapper"),imageWrapper:zt("image-wrapper"),image:d(zt("image"),this.imageClass)}},style:function(){if(this.fill)return{};var t={};return this.width&&(t.width="".concat(this.size.width,"px")),this.height&&(t.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},wrapperStyle:function(){var t={width:"".concat(this.size.width,"px"),height:"".concat(this.size.height,"px"),left:"calc(50% - ".concat(this.size.width/2,"px)"),top:"calc(50% - ".concat(this.size.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},imageStyle:function(){if(this.coordinates&&this.image){var t=this.coordinates.width/this.size.width,e=i(i({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/t,scaleY:1/t}),n=this.imageSize.width,s=this.imageSize.height,r=ot({width:n,height:s},e.rotate),o={width:"".concat(n,"px"),height:"".concat(s,"px"),left:"0px",top:"0px"},a={rotate:{left:(n-r.width)*e.scaleX/2,top:(s-r.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*n/2,top:(1-e.scaleY)*s/2}};return o.transform="translate(\n\t\t\t\t".concat(-this.coordinates.left/t-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/t-a.rotate.top-a.scale.top,"px) ")+kt(e),this.transitions&&this.transitions.enabled&&(o.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),o}return{}},size:function(){return{width:this.width||this.calculatedSize.width,height:this.height||this.calculatedSize.height}},imageSize:function(){return{width:this.image.width||this.calculatedImageSize.width,height:this.image.height||this.calculatedImageSize.height}}},watch:{image:function(t){(t.width||t.height)&&this.onChangeImage()}},mounted:function(){var t=this;this.onChangeImage(),this.$refs.image.addEventListener("load",(function(){t.refreshImage()})),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},destroyed:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh)},methods:{refreshImage:function(){var t=this.$refs.image;this.calculatedImageSize.height=t.naturalHeight,this.calculatedImageSize.width=t.naturalWidth},refresh:function(){var t=this.$refs.root;this.width||(this.calculatedSize.width=t.clientWidth),this.height||(this.calculatedSize.height=t.clientHeight)},onChangeImage:function(){var t=this.$refs.image;t&&t.complete&&this.refreshImage(),this.refresh()}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Vt=F({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("preview",t._b({attrs:{fill:!0}},"preview",t.$attrs,!1))},staticRenderFns:[]},void 0,{components:{Preview:Bt},inheritAttrs:!1},void 0,!1,void 0,!1,void 0,void 0,void 0),Ut=v("vue-rectangle-stencil"),Wt=F({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.classes.stencil,style:t.style},[i("bounding-box",{class:t.classes.boundingBox,attrs:{width:t.stencilCoordinates.width,height:t.stencilCoordinates.height,transitions:t.transitions,handlers:t.handlers,"handlers-component":t.handlersComponent,"handlers-classes":t.handlersClasses,"handlers-wrappers-classes":t.handlersWrappersClasses,lines:t.lines,"lines-component":t.linesComponent,"lines-classes":t.linesClasses,"lines-wrappers-classes":t.linesWrappersClasses,resizable:t.resizable},on:{resize:t.onResize,"resize-end":t.onResizeEnd}},[i("draggable-area",{attrs:{movable:t.movable},on:{move:t.onMove,"move-end":t.onMoveEnd}},[i("stencil-preview",{class:t.classes.preview,attrs:{image:t.image,coordinates:t.coordinates,width:t.stencilCoordinates.width,height:t.stencilCoordinates.height,transitions:t.transitions}})],1)],1)],1)},staticRenderFns:[]},void 0,{name:"RectangleStencil",components:{StencilPreview:Vt,BoundingBox:Ft,DraggableArea:At},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return St}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return Tt}},aspectRatio:{type:[Number,String]},minAspectRatio:{type:[Number,String]},maxAspectRatio:{type:[Number,String]},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:d(Ut({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:d(Ut("preview"),this.previewClass),boundingBox:d(Ut("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,i=t.width,n=t.left,s=t.top,r={width:"".concat(i,"px"),height:"".concat(e,"px"),transform:"translate(".concat(n,"px, ").concat(s,"px)")};return this.transitions&&this.transitions.enabled&&(r.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),r}},methods:{onMove:function(t){this.$emit("move",t),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(t){this.$emit("resize",t),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:this.aspectRatio||this.minAspectRatio,maximum:this.aspectRatio||this.maxAspectRatio}}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Yt=v("vue-circle-stencil"),Xt=F({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.classes.stencil,style:t.style},[i("bounding-box",{class:t.classes.boundingBox,attrs:{width:t.stencilCoordinates.width,height:t.stencilCoordinates.height,transitions:t.transitions,handlers:t.handlers,"handlers-component":t.handlersComponent,"handlers-classes":t.handlersClasses,"handlers-wrappers-classes":t.handlersWrappersClasses,lines:t.lines,"lines-component":t.linesComponent,"lines-classes":t.linesClasses,"lines-wrappers-classes":t.linesWrappersClasses,resizable:t.resizable},on:{resize:t.onResize,"resize-end":t.onResizeEnd}},[i("draggable-area",{attrs:{movable:t.movable},on:{move:t.onMove,"move-end":t.onMoveEnd}},[i("stencil-preview",{class:t.classes.preview,attrs:{image:t.image,coordinates:t.coordinates,width:t.stencilCoordinates.width,height:t.stencilCoordinates.height,transitions:t.transitions}})],1)],1)],1)},staticRenderFns:[]},void 0,{components:{StencilPreview:Vt,BoundingBox:Ft,DraggableArea:At},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,westNorth:!0,westSouth:!0,eastSouth:!0}}},handlersComponent:{type:[Object,String],default:function(){return St}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return Tt}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:d(Yt({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:d(Yt("preview"),this.previewClass),boundingBox:d(Yt("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,i=t.width,n=t.left,s=t.top,r={width:"".concat(i,"px"),height:"".concat(e,"px"),transform:"translate(".concat(n,"px, ").concat(s,"px)")};return this.transitions&&this.transitions.enabled&&(r.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),r}},methods:{onMove:function(t){this.$emit("move",t),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(t){this.$emit("resize",t),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:1,maximum:1}}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Ht=["transitions"],Kt=v("vue-advanced-cropper"),qt={name:"Cropper",components:{BackgroundWrapper:Gt},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return Wt}},backgroundWrapperComponent:{type:[Object,String],default:function(){return Gt}},stencilProps:{type:Object,default:function(){return{}}},autoZoom:{type:Boolean,default:!1},imageClass:{type:String},boundariesClass:{type:String},backgroundClass:{type:String},foregroundClass:{type:String},minWidth:{type:[Number,String]},minHeight:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},debounce:{type:[Boolean,Number],default:500},transitions:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},canvas:{type:[Object,Boolean],default:!0},crossOrigin:{type:[Boolean,String],default:void 0},transitionTime:{type:Number,default:300},imageRestriction:{type:String,default:"fit-area",validator:function(t){return-1!==B.indexOf(t)}},roundResult:{type:Boolean,default:!0},defaultSize:{type:[Function,Object]},defaultPosition:{type:[Function,Object],default:function(t){var e=t.imageSize,i=t.visibleArea,n=t.coordinates,s=i||e;return{left:(i?i.left:0)+s.width/2-n.width/2,top:(i?i.top:0)+s.height/2-n.height/2}}},defaultVisibleArea:{type:[Function,Object],default:function(t){var e=t.getAreaRestrictions,i=t.coordinates,n=t.imageSize,s=Q(t.boundaries);if(i){var r={height:Math.max(i.height,n.height),width:Math.max(i.width,n.width)},o=nt({width:Q(r)>s?r.width:r.height*s,height:Q(r)>s?r.width/s:r.height},rt(e())),a={left:i.left+i.width/2-o.width/2,top:i.top+i.height/2-o.height/2,width:o.width,height:o.height},c=H(i,W(y({left:0,top:0},n))),h={};return!c.left&&!c.right&&a.width<=n.width&&(h.left=0,h.right=n.width),!c.top&&!c.bottom&&a.height<=n.height&&(h.top=0,h.bottom=n.height),ct(a,h)}var l=Q(n);return o={height:l>s?n.height:n.width/s,width:l>s?n.height*s:n.width},{left:n.width/2-o.width/2,top:n.height/2-o.height/2,width:o.width,height:o.height}}},defaultTransforms:{type:[Function,Object]},defaultBoundaries:{type:[Function,String],validator:function(t){return!("string"==typeof t&&"fill"!==t&&"fit"!==t)}},priority:{type:String,default:"coordinates"},stencilSize:{type:[Object,Function]},resizeImage:{type:[Boolean,Object],default:!0},moveImage:{type:[Boolean,Object],default:!0},autoZoomAlgorithm:{type:Function},resizeAlgorithm:{type:Function,default:function(t){var e=t.event,i=t.coordinates,n=t.aspectRatio,s=t.positionRestrictions,r=t.sizeRestrictions,o=y(y({},i),{right:i.left+i.width,bottom:i.top+i.height}),a=e.params||{},c=y({},e.directions),h=a.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};r.widthFrozen&&(c.left=0,c.right=0),r.heightFrozen&&(c.top=0,c.bottom=0),N.forEach((function(t){h[t]||(c[t]=0)}));var l=K(o,c=xt({coordinates:o,directions:c,sizeRestrictions:r,positionRestrictions:s})).width,f=K(o,c).height,u=a.preserveRatio?Q(o):it(l/f,n);if(u){var d=a.respectDirection;if(d||(d=o.width>=o.height||1===u?"width":"height"),"width"===d){var p=l/u-o.height;if(h.top&&h.bottom){var g=c.top,v=c.bottom;c.bottom=Ot(p,v,g),c.top=Ot(p,g,v)}else h.bottom?c.bottom=p:h.top?c.top=p:h.right?c.right=0:h.left&&(c.left=0)}else if("height"===d){var b=o.width-f*u;if(h.left&&h.right){var m=c.left,_=c.right;c.left=-Ot(b,m,_),c.right=-Ot(b,_,m)}else h.left?c.left=-b:h.right?c.right=-b:h.top?c.top=0:h.bottom&&(c.bottom=0)}c=xt({directions:c,coordinates:o,sizeRestrictions:r,positionRestrictions:s,preserveRatio:!0,compensate:a.compensate})}return l=K(o,c).width,f=K(o,c).height,(u=a.preserveRatio?Q(o):it(l/f,n))&&Math.abs(u-l/f)>.001&&N.forEach((function(t){h[t]||(c[t]=0)})),pt({event:new I({left:-c.left,top:-c.top}),coordinates:{width:i.width+c.right+c.left,height:i.height+c.top+c.bottom,left:i.left,top:i.top},positionRestrictions:s})}},moveAlgorithm:{type:Function,default:pt},initStretcher:{type:Function,default:function(t){var e=t.stretcher,i=t.imageSize,n=Q(i);e.style.width=i.width+"px",e.style.height=e.clientWidth/n+"px",e.style.width=e.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(t){var e=t.visibleArea,i=t.coordinates,n=t.aspectRatio,s=t.sizeRestrictions,r=t.positionRestrictions,o=y(y({},i),ft({width:i.width,height:i.height,aspectRatio:n,sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minHeight:Math.min(e.height,s.minHeight),minWidth:Math.min(e.width,s.minWidth)}}));return ct(o=q(o,Y(X(i),X(o))),ht(W(e),r))}},fitVisibleArea:{type:Function,default:function(t){var e=t.visibleArea,i=t.boundaries,n=t.getAreaRestrictions,s=t.coordinates,r=y({},e);r.height=r.width/Q(i),r.top+=(e.height-r.height)/2,(s.height-r.height>0||s.width-r.width>0)&&(r=J(r,Math.max(s.height/r.height,s.width/r.width)));var o=Z(et(s,W(r=J(r,at(r,n({visibleArea:r,type:"resize"}))))));return r.widthQ(n)?(o={top:0,bottom:n.height},e&&"move"===r&&(e.width>n.width?(o.left=-(e.width-n.width)/2,o.right=n.width-o.left):(o.left=0,o.right=n.width))):(o={left:0,right:n.width},e&&"move"===r&&(e.height>n.height?(o.top=-(e.height-n.height)/2,o.bottom=n.height-o.top):(o.top=0,o.bottom=n.height)))),o}},sizeRestrictionsAlgorithm:{type:Function,default:function(t){return{minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.imageSize,i={};return"none"!==t.imageRestriction&&(i={left:0,top:0,right:e.width,bottom:e.height}),i}}},data:function(){return{transitionsActive:!1,imageLoaded:!1,imageAttributes:{width:null,height:null,crossOrigin:!1,src:null},defaultImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},appliedImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},boundaries:{width:0,height:0},visibleArea:null,coordinates:i({},V)}},computed:{image:function(){return{src:this.imageAttributes.src,width:this.imageAttributes.width,height:this.imageAttributes.height,transforms:this.imageTransforms}},imageTransforms:function(){return{rotate:this.appliedImageTransforms.rotate,flip:{horizontal:this.appliedImageTransforms.flip.horizontal,vertical:this.appliedImageTransforms.flip.vertical},translateX:this.visibleArea?this.visibleArea.left/this.coefficient:0,translateY:this.visibleArea?this.visibleArea.top/this.coefficient:0,scaleX:1/this.coefficient,scaleY:1/this.coefficient}},imageSize:function(){var t=function(t){return t*Math.PI/180}(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(t))+Math.abs(this.imageAttributes.height*Math.sin(t)),height:Math.abs(this.imageAttributes.width*Math.sin(t))+Math.abs(this.imageAttributes.height*Math.cos(t))}},initialized:function(){return Boolean(this.visibleArea&&this.imageLoaded)},settings:function(){var t=w(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:w(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:t}},coefficient:function(){return this.visibleArea?this.visibleArea.width/this.boundaries.width:0},areaRestrictions:function(){return this.imageLoaded?this.areaRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction,boundaries:this.boundaries}):{}},transitionsOptions:function(){return{enabled:this.transitionsActive,timingFunction:"ease-in-out",time:350}},sizeRestrictions:function(){if(this.boundaries.width&&this.boundaries.height&&this.imageSize.width&&this.imageSize.height){var t=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:x(this.minWidth)?0:j(this.minWidth),minHeight:x(this.minHeight)?0:j(this.minHeight),maxWidth:x(this.maxWidth)?1/0:j(this.maxWidth),maxHeight:x(this.maxHeight)?1/0:j(this.maxHeight)});if(t=function(t){var e=t.areaRestrictions,i=t.sizeRestrictions,n=t.boundaries,s=t.positionRestrictions,r=y(y({},i),{minWidth:void 0!==i.minWidth?i.minWidth:0,minHeight:void 0!==i.minHeight?i.minHeight:0,maxWidth:void 0!==i.maxWidth?i.maxWidth:1/0,maxHeight:void 0!==i.maxHeight?i.maxHeight:1/0});void 0!==s.left&&void 0!==s.right&&(r.maxWidth=Math.min(r.maxWidth,s.right-s.left)),void 0!==s.bottom&&void 0!==s.top&&(r.maxHeight=Math.min(r.maxHeight,s.bottom-s.top));var o=rt(e),a=nt(n,o);return o.width<1/0&&(!r.maxWidth||r.maxWidth>a.width)&&(r.maxWidth=Math.min(r.maxWidth,a.width)),o.height<1/0&&(!r.maxHeight||r.maxHeight>a.height)&&(r.maxHeight=Math.min(r.maxHeight,a.height)),r.minWidth>r.maxWidth&&(r.minWidth=r.maxWidth,r.widthFrozen=!0),r.minHeight>r.maxHeight&&(r.minHeight=r.maxHeight,r.heightFrozen=!0),r}({sizeRestrictions:t,areaRestrictions:this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}),imageSize:this.imageSize,boundaries:this.boundaries,positionRestrictions:this.positionRestrictions,imageRestriction:this.imageRestriction,visibleArea:this.visibleArea,stencilSize:this.getStencilSize()}),this.visibleArea&&this.stencilSize){var e=this.getStencilSize(),i=rt(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));t.maxWidth=Math.min(t.maxWidth,i.width*e.width/this.boundaries.width),t.maxHeight=Math.min(t.maxHeight,i.height*e.height/this.boundaries.height),t.maxWidththis.imageAttributes.height?{width:Math.min(1024,this.imageAttributes.width),height:Math.min(1024,this.imageAttributes.width)/(this.imageAttributes.width/this.imageAttributes.height)}:{height:Math.min(1024,this.imageAttributes.height),width:Math.min(1024,this.imageAttributes.height)*(this.imageAttributes.width/this.imageAttributes.height)},e=(t.width-this.imageSize.width)/(2*this.coefficient),n=(t.height-this.imageSize.height)/(2*this.coefficient),r=(1-1/this.coefficient)*t.width/2,o=(1-1/this.coefficient)*t.height/2,s=i(i({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/t.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/t.height)}),c={width:"".concat(t.width,"px"),height:"".concat(t.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-e-r-this.imageTransforms.translateX,"px, ").concat(-n-o-this.imageTransforms.translateY,"px)")+kt(s)};return this.transitionsOptions.enabled&&(c.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),c}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var t=this;this.$nextTick((function(){t.resetCoordinates(),t.runAutoZoom("setCoordinates"),t.onChange()}))},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(t,e){["aspectRatio","minAspectRatio","maxAspectRatio"].find((function(i){return t[i]!==e[i]}))&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=m(this.update,this.debounce),this.debouncedDisableTransitions=m(this.disableTransitions,this.transitionsOptions.time),this.awaiting=!1},mounted:function(){this.$refs.image.addEventListener("load",this.onSuccessLoadImage),this.$refs.image.addEventListener("error",this.onFailLoadImage),this.onChangeImage(),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},destroyed:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh),this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.debouncedUpdate.clear(),this.debouncedDisableTransitions.clear()},methods:{getResult:function(){var t=this.initialized?this.prepareResult(i({},this.coordinates)):this.defaultCoordinates(),e={rotate:this.imageTransforms.rotate%360,flip:i({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var n=this;return{image:this.image,coordinates:t,visibleArea:this.visibleArea?i({},this.visibleArea):null,imageTransforms:e,get canvas(){return n.canvas?n.getCanvas():void 0}}}return{image:this.image,coordinates:t,visibleArea:this.visibleArea?i({},this.visibleArea):null,canvas:void 0,imageTransforms:e}},zoom:function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).transitions,s=void 0===n||n;this.onManipulateImage(new T({},{factor:1/t,center:e}),{normalize:!1,transitions:s})},move:function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).transitions,s=void 0===n||n;this.onManipulateImage(new T({left:t||0,top:e||0}),{normalize:!1,transitions:s})},setCoordinates:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.autoZoom,s=void 0===n||n,r=i.transitions,o=void 0===r||r;this.$nextTick((function(){e.imageLoaded?(e.transitionsActive||(o&&e.enableTransitions(),e.coordinates=e.applyTransform(t),s&&e.runAutoZoom("setCoordinates"),o&&e.debouncedDisableTransitions()),e.onChange()):e.delayedTransforms=t}))},refresh:function(){var t=this,e=this.$refs.image;if(this.src&&e)return this.initialized?this.updateVisibleArea().then((function(){t.onChange()})):this.resetVisibleArea().then((function(){t.onChange()}))},reset:function(){var t=this;return this.resetVisibleArea().then((function(){t.onChange(!1)}))},awaitRender:function(t){var e=this;this.awaiting||(this.awaiting=!0,this.$nextTick((function(){t(),e.awaiting=!1})))},prepareResult:function(t){return this.roundResult?function(t){var e=t.coordinates,i=t.sizeRestrictions,n=t.positionRestrictions,s={width:Math.round(e.width),height:Math.round(e.height),left:Math.round(e.left),top:Math.round(e.top)};return s.width>i.maxWidth?s.width=Math.floor(e.width):s.widthi.maxHeight?s.height=Math.floor(e.height):s.height1&&void 0!==arguments[1]?arguments[1]:{},i=e.transitions,n=void 0!==i&&i,r=function(t,e){if(null==t)return{};var i,n,s=function(t,e){if(null==t)return{};var i,n,s={},r=Object.keys(t);for(n=0;n=0||(s[i]=t[i]);return s}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(s[i]=t[i])}return s}(e,Ht),o=this.processAutoZoom(t,this.visibleArea,this.coordinates,r),a=o.visibleArea,c=o.coordinates,h=o.changed;n&&h&&this.enableTransitions(),this.visibleArea=a,this.coordinates=c,n&&h&&this.debouncedDisableTransitions()},normalizeEvent:function(t){return function(t){var e=t.event,i=t.visibleArea,n=t.coefficient;if("manipulateImage"===e.type)return y(y({},e),{move:{left:e.move&&e.move.left?n*e.move.left:0,top:e.move&&e.move.top?n*e.move.top:0},scale:{factor:e.scale&&e.scale.factor?e.scale.factor:1,center:e.scale&&e.scale.center?{left:e.scale.center.left*n+i.left,top:e.scale.center.top*n+i.top}:null}});if("resize"===e.type){var s=y(y({},e),{directions:y({},e.directions)});return N.forEach((function(t){s.directions[t]*=n})),s}if("move"===e.type){var r=y(y({},e),{directions:y({},e.directions)});return z.forEach((function(t){r.directions[t]*=n})),r}return e}(i(i({},this.getPublicProperties()),{},{event:t}))},getCanvas:function(){if(this.$refs.canvas){var t=this.$refs.canvas,e=this.$refs.image,n=0!==this.imageTransforms.rotate||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?function(t,e,i){var n=i.rotate,s=i.flip,r={width:e.naturalWidth,height:e.naturalHeight},o=ot(r,n),a=t.getContext("2d");t.height=o.height,t.width=o.width,a.save();var c=st(X(y({left:0,top:0},r)),n);return a.translate(-(c.left-o.width/2),-(c.top-o.height/2)),a.rotate(n*Math.PI/180),a.translate(s.horizontal?r.width:0,s.vertical?r.height:0),a.scale(s.horizontal?-1:1,s.vertical?-1:1),a.drawImage(e,0,0,r.width,r.height),a.restore(),t}(this.$refs.sourceCanvas,e,this.imageTransforms):e,s=i({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),r=function(t){return t.find((function(t){return e=t,!Number.isNaN(parseFloat(e))&&isFinite(e);var e}))},o=ft({sizeRestrictions:{minWidth:r([s.width,s.minWidth])||0,minHeight:r([s.height,s.minHeight])||0,maxWidth:r([s.width,s.maxWidth])||1/0,maxHeight:r([s.height,s.maxHeight])||1/0},width:this.coordinates.width,height:this.coordinates.height,aspectRatio:{minimum:this.coordinates.width/this.coordinates.height,maximum:this.coordinates.width/this.coordinates.height}});if(s.maxArea&&o.width*o.height>s.maxArea){var a=Math.sqrt(s.maxArea/(o.width*o.height));o={width:Math.round(a*o.width),height:Math.round(a*o.height)}}return function(t,e,i,n,s){t.width=n?n.width:i.width,t.height=n?n.height:i.height;var r=t.getContext("2d");r.clearRect(0,0,t.width,t.height),s&&(s.imageSmoothingEnabled&&(r.imageSmoothingEnabled=s.imageSmoothingEnabled),s.imageSmoothingQuality&&(r.imageSmoothingQuality=s.imageSmoothingQuality),s.fillColor&&(r.fillStyle=s.fillColor,r.fillRect(0,0,t.width,t.height),r.save()));var o=i.left<0?-i.left:0,a=i.top<0?-i.top:0;r.drawImage(e,i.left+o,i.top+a,i.width,i.height,o,a,t.width,t.height)}(t,n,this.coordinates,o,s),t}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.visibleArea&&e?function(t,e){return y(y({},t),{minWidth:Math.min(e.width,t.minWidth),minHeight:Math.min(e.height,t.minHeight),maxWidth:Math.min(e.width,t.maxWidth),maxHeight:Math.min(e.height,t.maxHeight)})}(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,n=this.visibleArea&&e?bt(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return function(t){var e=t.coordinates,i=t.transform,n=t.imageSize,s=t.sizeRestrictions,r=t.positionRestrictions,o=t.aspectRatio,a=t.visibleArea,c=function(t,e){return pt({coordinates:t,positionRestrictions:r,event:new I({left:e.left-t.left,top:e.top-t.top})})},h=y({},e);return(Array.isArray(i)?i:[i]).forEach((function(t){var e;x((e="function"==typeof t?t({coordinates:h,imageSize:n,visibleArea:a}):t).width)&&x(e.height)||(h=function(t,e){var i=y(y(y({},t),ft({width:e.width,height:e.height,sizeRestrictions:s,aspectRatio:o})),{left:0,top:0});return c(i,{left:t.left,top:t.top})}(h,y(y({},h),e))),x(e.left)&&x(e.top)||(h=c(h,y(y({},h),e)))})),h}({transform:t,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:i,positionRestrictions:n,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var t=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var e=this.defaultSize;e||(e=this.stencilSize?_t:yt);var n=this.sizeRestrictions;n.minWidth,n.minHeight,n.maxWidth,n.maxHeight;var s=[b(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,function(e){var n=e.coordinates;return i({},b(t.defaultPosition)?t.defaultPosition({coordinates:n,imageSize:t.imageSize,visibleArea:t.visibleArea}):t.defaultPosition)}];this.delayedTransforms&&s.push.apply(s,h(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(s,!0),this.delayedTransforms=null}},clearImage:function(){var t=this;this.imageLoaded=!1,setTimeout((function(){var e=t.$refs.stretcher;e&&(e.style.height="auto",e.style.width="auto"),t.coordinates=t.defaultCoordinates(),t.boundaries={width:0,height:0}}),this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var t=this,e=this.$refs.stretcher,i=this.$refs.cropper;return this.initStretcher({cropper:i,stretcher:e,imageSize:this.imageSize}),this.$nextTick().then((function(){var e={cropper:i,imageSize:t.imageSize};if(b(t.defaultBoundaries)?t.boundaries=t.defaultBoundaries(e):"fit"===t.defaultBoundaries?t.boundaries=function(t){var e=t.cropper,i=t.imageSize,n=e.clientHeight,s=e.clientWidth,r=n,o=i.width*n/i.height;return o>s&&(o=s,r=i.height*s/i.width),{width:o,height:r}}(e):t.boundaries=function(t){var e=t.cropper;return{width:e.clientWidth,height:e.clientHeight}}(e),!t.boundaries.width||!t.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")}))},resetVisibleArea:function(){var t=this;return this.appliedImageTransforms=i(i({},this.defaultImageTransforms),{},{flip:i({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then((function(){var e,n,s,r,o;"visible-area"!==t.priority&&(t.visibleArea=null,t.resetCoordinates()),t.visibleArea=b(t.defaultVisibleArea)?t.defaultVisibleArea({imageSize:t.imageSize,boundaries:t.boundaries,coordinates:"visible-area"!==t.priority?t.coordinates:null,getAreaRestrictions:t.getAreaRestrictions,stencilSize:t.getStencilSize()}):t.defaultVisibleArea,t.visibleArea=(n=(e={visibleArea:t.visibleArea,boundaries:t.boundaries,getAreaRestrictions:t.getAreaRestrictions}).boundaries,s=e.getAreaRestrictions,r=y({},e.visibleArea),o=Q(n),r.width/r.height!==o&&(r.height=r.width/o),ct(r,s({visibleArea:r,type:"move"}))),"visible-area"===t.priority?t.resetCoordinates():t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("resetVisibleArea")})).catch((function(){t.visibleArea=null}))},updateVisibleArea:function(){var t=this;return this.updateBoundaries().then((function(){t.visibleArea=t.fitVisibleArea({imageSize:t.imageSize,boundaries:t.boundaries,visibleArea:t.visibleArea,coordinates:t.coordinates,getAreaRestrictions:t.getAreaRestrictions}),t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("updateVisibleArea")})).catch((function(){t.visibleArea=null}))},onChange:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$listeners&&this.$listeners.change&&(t&&this.debounce?this.debouncedUpdate():this.update())},onChangeImage:function(){var t,e=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if(function(t){if(_(t))return!1;var e=window.location,i=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(t)||[],n={protocol:i[1]||"",host:i[2]||"",port:i[3]||""},s=function(t){return t.port||("http"===(t.protocol||e.protocol)?80:433)};return!(!n.protocol&&!n.host&&!n.port||Boolean(n.protocol&&n.protocol==e.protocol&&n.host&&n.host==e.host&&n.host&&s(n)==s(e)))}(this.src)){var i=x(this.crossOrigin)?this.canvas:this.crossOrigin;!0===i&&(i="anonymous"),this.imageAttributes.crossOrigin=i}if(this.checkOrientation){var n=(t=this.src,new Promise((function(e){(function(t){return new Promise((function(e,i){try{if(t)if(/^data:/i.test(t))e(function(t){t=t.replace(/^data:([^;]+);base64,/gim,"");for(var e=atob(t),i=e.length,n=new ArrayBuffer(i),s=new Uint8Array(n),r=0;r=8&&(o=n+l)}}if(o)for(var f=i.getUint16(o,s),u=0;u1?g(n)||!_(n)?(this.imageAttributes.src=URL.createObjectURL(new Blob([s])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(t){for(var e=[],i=new Uint8Array(t);i.length>0;){var n=i.subarray(0,8192);e.push(String.fromCharCode.apply(null,Array.from?Array.from(n):n.slice())),i=i.subarray(8192)}return"data:image/jpeg;base64,"+btoa(e.join(""))}(s):this.imageAttributes.src=n,b(this.defaultTransforms)?this.appliedImageTransforms=Mt(this.defaultTransforms()):O(this.defaultTransforms)?this.appliedImageTransforms=Mt(this.defaultTransforms):this.appliedImageTransforms=function(t){var e=Mt({});if(t)switch(t){case 2:e.flip.horizontal=!0;break;case 3:e.rotate=-180;break;case 4:e.flip.vertical=!0;break;case 5:e.rotate=90,e.flip.vertical=!0;break;case 6:e.rotate=90;break;case 7:e.rotate=90,e.flip.horizontal=!0;break;case 8:e.rotate=-90}return e}(r),this.defaultImageTransforms=i(i({},this.appliedImageTransforms),{},{flip:i({},this.appliedImageTransforms.flip)}),this.$nextTick((function(){var t=e.$refs.image;t&&t.complete&&(function(t){return Boolean(t.naturalWidth)}(t)?e.onSuccessLoadImage():e.onFailLoadImage())}))},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(t){var e=this;this.transitionsOptions.enabled||this.awaitRender((function(){e.coordinates=e.moveAlgorithm(i(i({},e.getPublicProperties()),{},{positionRestrictions:bt(e.positionRestrictions,e.visibleArea),coordinates:e.coordinates,event:e.normalizeEvent(t)})),e.onChange()}))},onResize:function(t){var e=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender((function(){var n=e.sizeRestrictions,s=Math.min(e.coordinates.width,e.coordinates.height,20*e.coefficient);e.coordinates=e.resizeAlgorithm(i(i({},e.getPublicProperties()),{},{positionRestrictions:bt(e.positionRestrictions,e.visibleArea),sizeRestrictions:{maxWidth:Math.min(n.maxWidth,e.visibleArea.width),maxHeight:Math.min(n.maxHeight,e.visibleArea.height),minWidth:Math.max(n.minWidth,s),minHeight:Math.max(n.minHeight,s)},event:e.normalizeEvent(t)})),e.onChange(),e.ticking=!1}))},onManipulateImage:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.transitionsOptions.enabled){var n=e.transitions,s=void 0!==n&&n,r=e.normalize,o=void 0===r||r;s&&this.enableTransitions();var a=function(t){var e=t.event,i=t.coordinates,n=t.visibleArea,s=t.sizeRestrictions,r=t.getAreaRestrictions,o=t.positionRestrictions,a=t.adjustStencil,c=e.scale,h=e.move,l=y({},n),f=y({},i),u=1,d=1,p=c.factor&&Math.abs(c.factor-1)>.001;l=q(l,{left:h.left||0,top:h.top||0});var g={stencil:{minimum:Math.max(s.minWidth?s.minWidth/f.width:0,s.minHeight?s.minHeight/f.height:0),maximum:Math.min(s.maxWidth?s.maxWidth/f.width:1/0,s.maxHeight?s.maxHeight/f.height:1/0,tt(f,o))},area:{maximum:tt(l,r({visibleArea:l,type:"resize"}))}};c.factor&&p&&(c.factor<1?(d=Math.max(c.factor,g.stencil.minimum))>1&&(d=1):c.factor>1&&(d=Math.min(c.factor,Math.min(g.area.maximum,g.stencil.maximum)))<1&&(d=1)),d&&(l=J(l,d,c.center));var v=i.left-n.left,b=n.width+n.left-(i.width+i.left),m=i.top-n.top,_=n.height+n.top-(i.height+i.top);return l=ct(l=q(l,et(l,{left:void 0!==o.left?o.left-v*d:void 0,top:void 0!==o.top?o.top-m*d:void 0,bottom:void 0!==o.bottom?o.bottom+_*d:void 0,right:void 0!==o.right?o.right+b*d:void 0})),r({visibleArea:l,type:"move"})),f.width=f.width*d,f.height=f.height*d,f.left=l.left+v*d,f.top=l.top+m*d,f=ct(f,ht(W(l),o)),c.factor&&p&&a&&(c.factor>1?u=Math.min(g.area.maximum,c.factor)/d:c.factor<1&&(u=Math.max(f.height/l.height,f.width/l.width,c.factor/d)),1!==u&&(l=q(l=ct(l=J(l,u,c.factor>1?c.center:X(f)),r({visibleArea:l,type:"move"})),Z(et(f,W(l)))))),{coordinates:f,visibleArea:l}}(i(i({},this.getPublicProperties()),{},{event:o?this.normalizeEvent(t):t,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),c=a.visibleArea,h=a.coordinates;this.visibleArea=c,this.coordinates=h,this.runAutoZoom("manipulateImage"),this.onChange(),s&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.visibleArea,i=t.type,n=void 0===i?"move":i;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:e,type:n})},getAspectRatio:function(t){var e,i,n=this.stencilProps,s=n.aspectRatio,r=n.minAspectRatio,o=n.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var a=this.$refs.stencil.aspectRatios();e=a.minimum,i=a.maximum}if(x(e)&&(e=x(s)?r:s),x(i)&&(i=x(s)?o:s),!t&&(x(e)||x(i))){var c=this.getStencilSize(),h=c?Q(c):null;x(e)&&(e=S(h)?h:void 0),x(i)&&(i=S(h)?h:void 0)}return{minimum:e,maximum:i}},getStencilSize:function(){if(this.stencilSize)return e=(t={currentStencilSize:{width:this.stencilCoordinates.width,height:this.stencilCoordinates.height},stencilSize:this.stencilSize,boundaries:this.boundaries,coefficient:this.coefficient,coordinates:this.coordinates,aspectRatio:this.getAspectRatio(!0)}).boundaries,n=t.aspectRatio,it(Q(s=b(i=t.stencilSize)?i({boundaries:e,aspectRatio:n}):i),n)&&(s=ft({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:s.width,height:s.height,aspectRatio:{minimum:n.minimum,maximum:n.maximum}})),(s.width>e.width||s.height>e.height)&&(s=ft({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:s.width,height:s.height,aspectRatio:{minimum:Q(s),maximum:Q(s)}})),s;var t,e,i,n,s},getPublicProperties:function(){return{coefficient:this.coefficient,visibleArea:this.visibleArea,coordinates:this.coordinates,boundaries:this.boundaries,sizeRestrictions:this.sizeRestrictions,positionRestrictions:this.positionRestrictions,aspectRatio:this.getAspectRatio(),imageRestriction:this.imageRestriction}},defaultCoordinates:function(){return i({},V)},flip:function(t,e){var s=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).transitions,n=void 0===s||s;if(!this.transitionsActive){n&&this.enableTransitions();var r=i({},this.imageTransforms.flip),a=function(t){var e=t.flip,i=t.previousFlip,n=t.rotate;t.aspectRatio;var s=t.getAreaRestrictions,r=t.coordinates,o=t.visibleArea,a=t.imageSize,c=y({},r),h=y({},o),l=i.horizontal!==e.horizontal,f=i.vertical!==e.vertical;if(l||f){var u=st({left:a.width/2,top:a.height/2},-n),d=st(X(c),-n),p=st({left:l?u.left-(d.left-u.left):d.left,top:f?u.top-(d.top-u.top):d.top},n);c=q(c,Y(p,X(c))),d=st(X(h),-n),h=ct(h=q(h,Y(p=st({left:l?u.left-(d.left-u.left):d.left,top:f?u.top-(d.top-u.top):d.top},n),X(h))),s({visibleArea:h,type:"move"}))}return{coordinates:c,visibleArea:h}}({flip:{horizontal:t?!r.horizontal:r.horizontal,vertical:e?!r.vertical:r.vertical},previousFlip:r,rotate:this.imageTransforms.rotate,visibleArea:this.visibleArea,coordinates:this.coordinates,imageSize:this.imageSize,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),o=a.visibleArea,c=a.coordinates;t&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),e&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=o,this.coordinates=c,this.onChange(),n&&this.debouncedDisableTransitions()}},rotate:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).transitions,s=void 0===e||e;if(!this.transitionsActive){s&&this.enableTransitions();var n=i({},this.imageSize);this.appliedImageTransforms.rotate+=t;var r=function(t){var e=t.aspectRatio,i=t.getAreaRestrictions,n=t.coordinates,s=t.visibleArea,r=t.sizeRestrictions,o=t.positionRestrictions,a=t.imageSize,c=t.previousImageSize,h=t.angle,l=y({},n),f=y({},s),u=st(X(y({left:0,top:0},c)),h);return(l=y(y({},ft({sizeRestrictions:r,aspectRatio:e,width:l.width,height:l.height})),st(X(l),h))).left-=u.left-a.width/2+l.width/2,l.top-=u.top-a.height/2+l.height/2,f=J(f,at(f,i({visibleArea:f,type:"resize"}))),{coordinates:l=ct(l,o),visibleArea:f=ct(f=q(f,Y(X(l),X(n))),i({visibleArea:f,type:"move"}))}}({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:n,imageSize:this.imageSize,angle:t,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=r.visibleArea,o=r.coordinates,c=this.processAutoZoom("rotateImage",a,o);a=c.visibleArea,o=c.coordinates,this.visibleArea=a,this.coordinates=o,this.onChange(),s&&this.debouncedDisableTransitions()}}}},Zt=F({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"cropper",class:t.classes.cropper},[i("div",{ref:"stretcher",class:t.classes.stretcher}),t._v(" "),i("div",{class:t.classes.boundaries,style:t.boundariesStyle},[i(t.backgroundWrapperComponent,{tag:"component",class:t.classes.cropperWrapper,attrs:{"wheel-resize":t.settings.resizeImage.wheel,"touch-resize":t.settings.resizeImage.touch,"touch-move":t.settings.moveImage.touch,"mouse-move":t.settings.moveImage.mouse},on:{move:t.onManipulateImage,resize:t.onManipulateImage}},[i("div",{class:t.classes.background,style:t.boundariesStyle}),t._v(" "),i("div",{class:t.classes.imageWrapper},[i("img",{ref:"image",class:t.classes.image,style:t.imageStyle,attrs:{crossorigin:t.imageAttributes.crossOrigin,src:t.imageAttributes.src},on:{mousedown:function(t){t.preventDefault()}}})]),t._v(" "),i("div",{class:t.classes.foreground,style:t.boundariesStyle}),t._v(" "),i(t.stencilComponent,t._b({directives:[{name:"show",rawName:"v-show",value:t.imageLoaded,expression:"imageLoaded"}],ref:"stencil",tag:"component",attrs:{image:t.image,coordinates:t.coordinates,"stencil-coordinates":t.stencilCoordinates,transitions:t.transitionsOptions},on:{resize:t.onResize,"resize-end":t.onResizeEnd,move:t.onMove,"move-end":t.onMoveEnd}},"component",t.stencilProps,!1)),t._v(" "),t.canvas?i("canvas",{ref:"canvas",style:{display:"none"}}):t._e(),t._v(" "),t.canvas?i("canvas",{ref:"sourceCanvas",style:{display:"none"}}):t._e()],1)],1)])},staticRenderFns:[]},void 0,qt,void 0,!1,void 0,!1,void 0,void 0,void 0);r.a.component("cropper",Zt),r.a.component("rectangle-stencil",Wt),r.a.component("circle-stencil",Xt),r.a.component("simple-handler",St),r.a.component("simple-line",Tt)},function(t,e,n){"use strict";var r=n(86),o=(n(271),n(56),n(304),n(7)),c=n(13),h=window.__NUXT__;function l(){if(!this._hydrated)return this.$fetch()}function f(){if((t=this).$vnode&&t.$vnode.elm&&t.$vnode.elm.dataset&&t.$vnode.elm.dataset.fetchKey){var t;this._hydrated=!0,this._fetchKey=this.$vnode.elm.dataset.fetchKey;var data=h.fetch[this._fetchKey];if(data&&data._error)this.$fetchState.error=data._error;else for(var e in data)o.a.set(this.$data,e,data[e])}}function d(){var t=this;return this._fetchPromise||(this._fetchPromise=v.call(this).then((function(){delete t._fetchPromise}))),this._fetchPromise}function v(){return m.apply(this,arguments)}function m(){return(m=Object(r.a)(regeneratorRuntime.mark((function t(){var e,n,r,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.$nuxt.nbFetching++,this.$fetchState.pending=!0,this.$fetchState.error=null,this._hydrated=!1,e=null,n=Date.now(),t.prev=6,t.next=9,this.$options.fetch.call(this);case 9:t.next=15;break;case 11:t.prev=11,t.t0=t.catch(6),e=Object(c.p)(t.t0);case 15:if(!((r=this._fetchDelay-(Date.now()-n))>0)){t.next=19;break}return t.next=19,new Promise((function(t){return setTimeout(t,r)}));case 19:this.$fetchState.error=e,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick((function(){return o.$nuxt.nbFetching--}));case 23:case"end":return t.stop()}}),t,this,[[6,11]])})))).apply(this,arguments)}e.a={beforeCreate:function(){Object(c.l)(this)&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,o.a.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=d.bind(this),Object(c.a)(this,"created",f),Object(c.a)(this,"beforeMount",l))}}},function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"default",(function(){return ao})),n.d(r,"Source",(function(){return oo})),n.d(r,"install",(function(){return so}));var o={};n.r(o),n.d(o,"default",(function(){return go})),n.d(o,"Source",(function(){return fo})),n.d(o,"install",(function(){return po}));var c={};n.r(c),n.d(c,"default",(function(){return _o})),n.d(c,"Geom",(function(){return mo})),n.d(c,"install",(function(){return yo}));var h={};n.r(h),n.d(h,"default",(function(){return jo})),n.d(h,"Style",(function(){return Oo})),n.d(h,"install",(function(){return wo}));var l={};n.r(l),n.d(l,"default",(function(){return es})),n.d(l,"Source",(function(){return Qo})),n.d(l,"install",(function(){return ts}));var f={};n.r(f),n.d(f,"default",(function(){return fa})),n.d(f,"Interaction",(function(){return ha})),n.d(f,"install",(function(){return la}));var d={};n.r(d),n.d(d,"default",(function(){return _a})),n.d(d,"Feature",(function(){return ma})),n.d(d,"install",(function(){return ya}));var v={};n.r(v),n.d(v,"default",(function(){return wa})),n.d(v,"Style",(function(){return xa})),n.d(v,"install",(function(){return Oa}));var m={};n.r(m),n.d(m,"default",(function(){return Ga})),n.d(m,"Geoloc",(function(){return Na})),n.d(m,"install",(function(){return $a}));var y={};n.r(y),n.d(y,"default",(function(){return ec})),n.d(y,"Graticule",(function(){return Qa})),n.d(y,"install",(function(){return tc}));var _={};n.r(_),n.d(_,"default",(function(){return oc})),n.d(_,"Layer",(function(){return nc})),n.d(_,"install",(function(){return rc}));var x={};n.r(x),n.d(x,"default",(function(){return vc})),n.d(x,"Layer",(function(){return pc})),n.d(x,"install",(function(){return gc}));var O={};n.r(O),n.d(O,"default",(function(){return xc})),n.d(O,"Style",(function(){return _c})),n.d(O,"install",(function(){return bc}));var w={};n.r(w),n.d(w,"default",(function(){return Ec})),n.d(w,"Layer",(function(){return jc})),n.d(w,"install",(function(){return Sc}));var j={};n.r(j),n.d(j,"default",(function(){return zc})),n.d(j,"Source",(function(){return $c})),n.d(j,"install",(function(){return Gc}));var S={};n.r(S),n.d(S,"default",(function(){return Kc})),n.d(S,"Source",(function(){return Xc})),n.d(S,"install",(function(){return Hc}));var E={};n.r(E),n.d(E,"default",(function(){return Jc})),n.d(E,"Geom",(function(){return qc})),n.d(E,"install",(function(){return Zc}));var C={};n.r(C),n.d(C,"default",(function(){return Xf})),n.d(C,"Map",(function(){return $f})),n.d(C,"View",(function(){return Wf})),n.d(C,"install",(function(){return Yf}));var T={};n.r(T),n.d(T,"default",(function(){return Zf})),n.d(T,"Source",(function(){return Kf})),n.d(T,"install",(function(){return qf}));var R={};n.r(R),n.d(R,"default",(function(){return fd})),n.d(R,"Interaction",(function(){return hd})),n.d(R,"install",(function(){return ld}));var I={};n.r(I),n.d(I,"default",(function(){return vd})),n.d(I,"Geom",(function(){return pd})),n.d(I,"install",(function(){return gd}));var P={};n.r(P),n.d(P,"default",(function(){return _d})),n.d(P,"Geom",(function(){return md})),n.d(P,"install",(function(){return yd}));var F={};n.r(F),n.d(F,"default",(function(){return Od})),n.d(F,"Geom",(function(){return bd})),n.d(F,"install",(function(){return xd}));var L={};n.r(L),n.d(L,"default",(function(){return Cd})),n.d(L,"Source",(function(){return Sd})),n.d(L,"install",(function(){return Ed}));var A={};n.r(A),n.d(A,"default",(function(){return Md})),n.d(A,"Overlay",(function(){return Ld})),n.d(A,"install",(function(){return Ad}));var M={};n.r(M),n.d(M,"default",(function(){return Nd})),n.d(M,"Geom",(function(){return kd})),n.d(M,"install",(function(){return Dd}));var k={};n.r(k),n.d(k,"default",(function(){return zd})),n.d(k,"Geom",(function(){return $d})),n.d(k,"install",(function(){return Gd}));var D={};n.r(D),n.d(D,"default",(function(){return Xd})),n.d(D,"Style",(function(){return Wd})),n.d(D,"install",(function(){return Yd}));var N={};n.r(N),n.d(N,"default",(function(){return op})),n.d(N,"Interaction",(function(){return ip})),n.d(N,"install",(function(){return np}));var $={};n.r($),n.d($,"default",(function(){return dp})),n.d($,"Interaction",(function(){return lp})),n.d($,"install",(function(){return fp}));var G={};n.r(G),n.d(G,"default",(function(){return mp})),n.d(G,"Source",(function(){return gp})),n.d(G,"install",(function(){return vp}));var z={};n.r(z),n.d(z,"default",(function(){return jp})),n.d(z,"Source",(function(){return Op})),n.d(z,"install",(function(){return wp}));var B={};n.r(B),n.d(B,"default",(function(){return Cp})),n.d(B,"Style",(function(){return Sp})),n.d(B,"install",(function(){return Ep}));var V={};n.r(V),n.d(V,"default",(function(){return Fp})),n.d(V,"Style",(function(){return Ip})),n.d(V,"install",(function(){return Pp}));var U={};n.r(U),n.d(U,"default",(function(){return Mp})),n.d(U,"Style",(function(){return Lp})),n.d(U,"install",(function(){return Ap}));var W={};n.r(W),n.d(W,"default",(function(){return Gp})),n.d(W,"Style",(function(){return Np})),n.d(W,"install",(function(){return $p}));var Y={};n.r(Y),n.d(Y,"default",(function(){return Xp})),n.d(Y,"Layer",(function(){return Wp})),n.d(Y,"install",(function(){return Yp}));var X={};n.r(X),n.d(X,"default",(function(){return Zp})),n.d(X,"Layer",(function(){return Kp})),n.d(X,"install",(function(){return qp}));var H={};n.r(H),n.d(H,"default",(function(){return og})),n.d(H,"Source",(function(){return ng})),n.d(H,"install",(function(){return rg}));var K={};n.r(K),n.d(K,"default",(function(){return lg})),n.d(K,"Layer",(function(){return ug})),n.d(K,"install",(function(){return hg}));var Z={};n.r(Z),n.d(Z,"default",(function(){return bg})),n.d(Z,"Source",(function(){return yg})),n.d(Z,"install",(function(){return _g}));var J={};n.r(J),n.d(J,"default",(function(){return Cg})),n.d(J,"Source",(function(){return Sg})),n.d(J,"install",(function(){return Eg}));var Q={};n.r(Q),n.d(Q,"default",(function(){return $g})),n.d(Q,"Source",(function(){return Dg})),n.d(Q,"install",(function(){return Ng}));var tt={};n.r(tt),n.d(tt,"default",(function(){return Bg})),n.d(tt,"Source",(function(){return Gg})),n.d(tt,"install",(function(){return zg}));var et=n(0),it=n(12),nt=n(15),ot=n(61),st=n(2),at=n(11),ct=n(83),ut=n(117),ht=n(8),lt=function(t){function e(e,n,r){t.call(this);var o=r||{};this.tileCoord=e,this.state=n,this.interimTile=null,this.key="",this.transition_=void 0===o.transition?250:o.transition,this.transitionStarts_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(){this.dispatchEvent(ht.a.CHANGE)},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==at.a.LOADED)return t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==at.a.LOADED){t.interimTile=null;break}t.getState()==at.a.LOADING?e=t:t.getState()==at.a.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){this.state=t,this.changed()},e.prototype.load=function(){},e.prototype.getAlpha=function(t,time){if(!this.transition_)return 1;var e=this.transitionStarts_[t];if(e){if(-1===e)return 1}else e=time,this.transitionStarts_[t]=e;var n=time-e+1e3/60;return n>=this.transition_?1:Object(ct.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}(ut.a),ft=n(29),pt=n(3);function gt(){var t=Object(ft.a)(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}var vt=function(t){function e(e,n,r,o,c,h){t.call(this,e,n,h),this.crossOrigin_=o,this.src_=r,this.image_=new Image,null!==o&&(this.image_.crossOrigin=o),this.imageListenerKeys_=null,this.tileLoadFunction_=c}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state==at.a.LOADING&&(this.unlistenImage_(),this.image_=gt()),this.interimTile&&this.interimTile.dispose(),this.state=at.a.ABORT,this.changed(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.image_},e.prototype.getKey=function(){return this.src_},e.prototype.handleImageError_=function(){this.state=at.a.ERROR,this.unlistenImage_(),this.image_=gt(),this.changed()},e.prototype.handleImageLoad_=function(){var image=this.image_;image.naturalWidth&&image.naturalHeight?this.state=at.a.LOADED:this.state=at.a.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==at.a.ERROR&&(this.state=at.a.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==at.a.IDLE&&(this.state=at.a.LOADING,this.changed(),this.imageListenerKeys_=[Object(pt.b)(this.image_,ht.a.ERROR,this.handleImageError_,this),Object(pt.b)(this.image_,ht.a.LOAD,this.handleImageLoad_,this)],this.tileLoadFunction_(this,this.src_))},e.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(pt.e),this.imageListenerKeys_=null},e}(lt),mt=n(261),yt=n(68),_t=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expireCache=function(t){for(;this.canExpireCache();){var e=this.peekLast(),n=e.tileCoord[0].toString();if(n in t&&t[n].contains(e.tileCoord))break;this.pop().dispose()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=this.peekFirstKey(),e=Object(yt.b)(t)[0];this.forEach((function(t){t.tileCoord[0]!==e&&(this.remove(Object(yt.c)(t.tileCoord)),t.dispose())}),this)}},e}(mt.a),bt=n(10);function xt(t,e,n,r){var o=Object(bt.k)(n,e,t),c=Object(bt.f)(e,r,n),h=e.getMetersPerUnit();void 0!==h&&(c*=h);var l=t.getMetersPerUnit();void 0!==l&&(c/=l);var f=t.getExtent();if(!f||Object(et.f)(f,o)){var d=Object(bt.f)(t,c,o)/c;isFinite(d)&&d>0&&(c/=d)}return c}function Ot(t,e,n,r){var o=n-t,c=r-e,h=Math.sqrt(o*o+c*c);return[Math.round(n+o/h),Math.round(r+c/h)]}function wt(t,e,n,r,o,c,h,l,f,d,v){var m=Object(ft.a)(Math.round(n*t),Math.round(n*e));if(0===f.length)return m.canvas;m.scale(n,n);var y=Object(et.j)();f.forEach((function(t,i,e){Object(et.q)(y,t.extent)}));var _=Object(et.E)(y),x=Object(et.A)(y),O=Object(ft.a)(Math.round(n*_/r),Math.round(n*x/r)),w=n/r;f.forEach((function(t,i,e){var n=t.extent[0]-y[0],r=-(t.extent[3]-y[3]),o=Object(et.E)(t.extent),c=Object(et.A)(t.extent);O.drawImage(t.image,d,d,t.image.width-2*d,t.image.height-2*d,n*w,r*w,o*w,c*w)}));var j=Object(et.C)(h);return l.getTriangles().forEach((function(t,i,e){var source=t.source,o=t.target,h=source[0][0],l=source[0][1],f=source[1][0],d=source[1][1],v=source[2][0],_=source[2][1],x=(o[0][0]-j[0])/c,w=-(o[0][1]-j[1])/c,S=(o[1][0]-j[0])/c,E=-(o[1][1]-j[1])/c,C=(o[2][0]-j[0])/c,T=-(o[2][1]-j[1])/c,R=h,I=l;h=0,l=0;var P=[[f-=R,d-=I,0,0,S-x],[v-=R,_-=I,0,0,C-x],[0,0,f,d,E-w],[0,0,v,_,T-w]],F=Object(it.f)(P);if(F){m.save(),m.beginPath();var L=(x+S+C)/3,A=(w+E+T)/3,M=Ot(L,A,x,w),k=Ot(L,A,S,E),D=Ot(L,A,C,T);m.moveTo(k[0],k[1]),m.lineTo(M[0],M[1]),m.lineTo(D[0],D[1]),m.clip(),m.transform(F[0],F[2],F[1],F[3],x,w),m.translate(y[0]-R,y[3]-I),m.scale(r/n,-r/n),m.drawImage(O.canvas,0,0),m.restore()}})),v&&(m.save(),m.strokeStyle="black",m.lineWidth=1,l.getTriangles().forEach((function(t,i,e){var n=t.target,r=(n[0][0]-j[0])/c,o=-(n[0][1]-j[1])/c,h=(n[1][0]-j[0])/c,l=-(n[1][1]-j[1])/c,f=(n[2][0]-j[0])/c,d=-(n[2][1]-j[1])/c;m.beginPath(),m.moveTo(h,l),m.lineTo(r,o),m.lineTo(f,d),m.closePath(),m.stroke()})),m.restore()),m.canvas}var jt=function(t,e,n,r,o){this.sourceProj_=t,this.targetProj_=e;var c={},h=Object(bt.g)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return c[e]||(c[e]=h(t)),c[e]},this.maxSourceExtent_=r,this.errorThresholdSquared_=o*o,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&Object(et.E)(r)==Object(et.E)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(et.E)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(et.E)(this.targetProj_.getExtent()):null;var l=Object(et.C)(n),f=Object(et.D)(n),d=Object(et.w)(n),v=Object(et.v)(n),m=this.transformInv_(l),y=this.transformInv_(f),_=this.transformInv_(d),x=this.transformInv_(v);if(this.addQuad_(l,f,d,v,m,y,_,x,10),this.wrapsXInSource_){var O=1/0;this.triangles_.forEach((function(t,i,e){O=Math.min(O,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])-O>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]-O>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-O>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-O>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-n.5&&f<1,m=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var y=Object(et.b)([a,b,t,e]);m=Object(et.E)(y)/this.targetWorldWidth_>.25||m}!v&&this.sourceProj_.isGlobal()&&f&&(m=f>.25||m)}if(m||!this.maxSourceExtent_||Object(et.F)(l,this.maxSourceExtent_)){if(!(m||isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(c[0])&&isFinite(c[1]))){if(!(h>0))return;m=!0}if(h>0){if(!m){var _,x=[(a[0]+t[0])/2,(a[1]+t[1])/2],O=this.transformInv_(x);if(v)_=(Object(it.d)(n[0],d)+Object(it.d)(o[0],d))/2-Object(it.d)(O[0],d);else _=(n[0]+o[0])/2-O[0];var w=(n[1]+o[1])/2-O[1];m=_*_+w*w>this.errorThresholdSquared_}if(m){if(Math.abs(a[0]-t[0])<=Math.abs(a[1]-t[1])){var j=[(b[0]+t[0])/2,(b[1]+t[1])/2],S=this.transformInv_(j),E=[(e[0]+a[0])/2,(e[1]+a[1])/2],C=this.transformInv_(E);this.addQuad_(a,b,j,E,n,r,S,C,h-1),this.addQuad_(E,j,t,e,C,S,o,c,h-1)}else{var T=[(a[0]+b[0])/2,(a[1]+b[1])/2],R=this.transformInv_(T),I=[(t[0]+e[0])/2,(t[1]+e[1])/2],P=this.transformInv_(I);this.addQuad_(a,T,I,e,n,R,P,c,h-1),this.addQuad_(T,b,t,I,R,r,o,P,h-1)}return}}if(v){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(a,t,e,n,o,c),this.addTriangle_(a,b,t,n,r,o)}},jt.prototype.calculateSourceExtent=function(){var t=Object(et.j)();return this.triangles_.forEach((function(e,i,n){var r=e.source;Object(et.r)(t,r[0]),Object(et.r)(t,r[1]),Object(et.r)(t,r[2])})),t},jt.prototype.getTriangles=function(){return this.triangles_};var St=jt,Et=function(t){function e(e,n,r,o,c,h,l,f,d,v,m){t.call(this,c,at.a.IDLE),this.renderEdges_=void 0!==m&&m,this.pixelRatio_=l,this.gutter_=f,this.canvas_=null,this.sourceTileGrid_=n,this.targetTileGrid_=o,this.wrappedTileCoord_=h||c,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;var y=o.getTileCoordExtent(this.wrappedTileCoord_),_=this.targetTileGrid_.getExtent(),x=this.sourceTileGrid_.getExtent(),O=_?Object(et.B)(y,_):y;if(0!==Object(et.u)(O)){var w=e.getExtent();w&&(x=x?Object(et.B)(x,w):w);var j=o.getResolution(this.wrappedTileCoord_[0]),S=xt(e,r,Object(et.x)(O),j);if(!isFinite(S)||S<=0)this.state=at.a.EMPTY;else{var E=void 0!==v?v:.5;if(this.triangulation_=new St(e,r,O,x,S*E),0!==this.triangulation_.getTriangles().length){this.sourceZ_=n.getZForResolution(S);var C=this.triangulation_.calculateSourceExtent();if(x&&(e.canWrapX()?(C[1]=Object(it.a)(C[1],x[1],x[3]),C[3]=Object(it.a)(C[3],x[1],x[3])):C=Object(et.B)(C,x)),Object(et.u)(C)){for(var T=n.getTileRangeForExtentAndZ(C,this.sourceZ_),R=T.minX;R<=T.maxX;R++)for(var I=T.minY;I<=T.maxY;I++){var P=d(this.sourceZ_,R,I,l);P&&this.sourceTiles_.push(P)}0===this.sourceTiles_.length&&(this.state=at.a.EMPTY)}else this.state=at.a.EMPTY}else this.state=at.a.EMPTY}}else this.state=at.a.EMPTY}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state==at.a.LOADING&&this.unlistenSources_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,i,n){e&&e.getState()==at.a.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=at.a.ERROR;else{var e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),r="number"==typeof n?n:n[0],o="number"==typeof n?n:n[1],c=this.targetTileGrid_.getResolution(e),h=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=wt(r,o,this.pixelRatio_,h,this.sourceTileGrid_.getExtent(),c,l,this.triangulation_,t,this.gutter_,this.renderEdges_),this.state=at.a.LOADED}this.changed()},e.prototype.load=function(){if(this.state==at.a.IDLE){this.state=at.a.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,i,n){var r=e.getState();if(r==at.a.IDLE||r==at.a.LOADING){t++;var o=Object(pt.a)(e,ht.a.CHANGE,(function(n){var r=e.getState();r!=at.a.LOADED&&r!=at.a.ERROR&&r!=at.a.EMPTY||(Object(pt.e)(o),0===--t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(o)}}.bind(this)),this.sourceTiles_.forEach((function(t,i,e){t.getState()==at.a.IDLE&&t.load()})),0===t&&setTimeout(this.reproject_.bind(this),0)}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(pt.e),this.sourcesListenerKeys_=null},e}(lt),Ct=n(25);function Tt(template,t){var e=/\{z\}/g,n=/\{x\}/g,r=/\{y\}/g,o=/\{-y\}/g;return function(c,h,l){return c?template.replace(e,c[0].toString()).replace(n,c[1].toString()).replace(r,(function(){return(-c[2]-1).toString()})).replace(o,(function(){var e=c[0],n=t.getFullTileRange(e);return Object(Ct.a)(n,55),(n.getHeight()+c[2]).toString()})):void 0}}function Rt(t){return 1===t.length?t[0]:function(e,n,r){if(e){var o=Object(yt.e)(e),c=Object(it.d)(o,t.length);return t[c](e,n,r)}}}function It(t,e,n){}function Pt(t){var e=[],n=/\{([a-z])-([a-z])\}/.exec(t);if(n){var r,o=n[1].charCodeAt(0),c=n[2].charCodeAt(0);for(r=o;r<=c;++r)e.push(t.replace(n[0],String.fromCharCode(r)));return e}if(n=n=/\{(\d+)-(\d+)\}/.exec(t)){for(var h=parseInt(n[2],10),i=parseInt(n[1],10);i<=h;i++)e.push(t.replace(n[0],i.toString()));return e}return e.push(t),e}var Ft=n(52),Lt=n(173),At=n(79),Mt=function(t){function e(e){t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX}),this.opaque_=void 0!==e.opaque&&e.opaque,this.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,this.tileGrid=void 0!==e.tileGrid?e.tileGrid:null,this.tileCache=new _t(e.cacheSize),this.tmpSize=[0,0],this.key_=e.key||"",this.tileOptions={transition:e.transition}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},e.prototype.expireCache=function(t,e){var n=this.getTileCacheForProjection(t);n&&n.expireCache(e)},e.prototype.forEachLoadedTile=function(t,e,n,r){var o=this.getTileCacheForProjection(t);if(!o)return!1;for(var c,h,l,f=!0,d=n.minX;d<=n.maxX;++d)for(var v=n.minY;v<=n.maxY;++v)h=Object(yt.d)(e,d,v),l=!1,o.containsKey(h)&&(l=(c=o.get(h)).getState()===at.a.LOADED)&&(l=!1!==r(c)),l||(f=!1);return f},e.prototype.getGutterForProjection=function(t){return 0},e.prototype.getKey=function(){return this.key_},e.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},e.prototype.getOpaque=function(t){return this.opaque_},e.prototype.getResolutions=function(){return this.tileGrid.getResolutions()},e.prototype.getTile=function(t,e,n,r,o){return Object(st.b)()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:Object(At.d)(t)},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();return e&&!Object(bt.c)(e,t)?null:this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,n){var r=this.getTileGridForProjection(n),o=this.getTilePixelRatio(e),c=Object(ot.d)(r.getTileSize(t),this.tmpSize);return 1==o?c:Object(ot.c)(c,o,this.tmpSize)},e.prototype.getTileCoordForTileUrlFunction=function(t,e){var n=void 0!==e?e:this.getProjection(),r=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(t=Object(At.e)(r,t,n)),Object(yt.g)(t,r)?t:null},e.prototype.refresh=function(){this.tileCache.clear(),this.changed()},e.prototype.useTile=function(t,e,n,r){},e}(Lt.a),kt=function(t){function e(e,n){t.call(this,e),this.tile=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ft.a),Dt=Mt,Nt="tileloadstart",$t="tileloadend",Gt="tileloaderror",zt=function(t){function e(e){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}),this.generateTileUrlFunction_=!e.tileUrlFunction,this.tileLoadFunction=e.tileLoadFunction,this.tileUrlFunction=e.tileUrlFunction?e.tileUrlFunction.bind(this):It,this.urls=null,e.urls?this.setUrls(e.urls):e.url&&this.setUrl(e.url),e.tileUrlFunction&&this.setTileUrlFunction(e.tileUrlFunction,this.key_),this.tileLoadingKeys_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,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,n=t.target,r=Object(st.c)(n),o=n.getState();o==at.a.LOADING?(this.tileLoadingKeys_[r]=!0,e=Nt):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],e=o==at.a.ERROR?Gt:o==at.a.LOADED||o==at.a.ABORT?$t:void 0),null!=e&&this.dispatchEvent(new kt(e,n))},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=this.urls=Pt(t);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 n=t.length,r=new Array(n),i=0;i0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Xe),Je=n(263);function Qe(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Ke(Je.a,t)}function ti(input,t){return t?Ue(input,t):new Ce.a(Ae(input))}function ei(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof Ce.a?t[0]:Qe(n)(ti(t,r))}var ii=n(174);function ni(t,e){return void 0===e&&(e=ii.a),function(source){return source.lift(new ri(t,e))}}var ri=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,source){return source.subscribe(new oi(t,this.dueTime,this.scheduler))},t}(),oi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.dueTime=n,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return Re.a(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(si,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(Ie.a);function si(t){t.debouncedNext()}var ai=n(160),ci=n.n(ai),ui=n(193),hi=n(368),fi=n(366),di=n(367),pi=n(147),gi=n(436),vi=n.n(gi),mi=n(298),yi=n.n(mi),_i=n(259),bi=n(574),xi=n.n(bi);var Oi=n(171),wi=n.n(Oi),ji=n(267),Si=n.n(ji),Ei=n(299),Ci=n.n(Ei);function Ti(t,e,n){var r;(function(){if("undefined"==typeof Reflect||!Si.a)return!1;if(Si.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Si()(Boolean,[],(function(){}))),!0}catch(t){return!1}})()?Ti=wi()(r=Si.a).call(r):Ti=function(t,e,n){var a=[null];Ci()(a).apply(a,e);var r=new(wi()(Function).apply(t,a));return n&&Object(_i.a)(r,n.prototype),r};return Ti.apply(null,arguments)}function Ri(t){var e="function"==typeof vi.a?new vi.a:void 0;return Ri=function(t){if(null===t||!function(t){try{var e;return-1!==xi()(e=Function.toString.call(t)).call(e,"[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return Ti(t,arguments,Object(pi.a)(this).constructor)}return n.prototype=yi()(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Object(_i.a)(n,t)},Ri(t)}function Ii(t){var e=function(){if("undefined"==typeof Reflect||!ci.a)return!1;if(ci.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ci()(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(pi.a)(t);if(e){var o=Object(pi.a)(this).constructor;n=ci()(r,arguments,o)}else n=r.apply(this,arguments);return Object(di.a)(this,n)}}var Pi=function(t){Object(fi.a)(n,t);var e=Ii(n);function n(t){var r;return Object(ui.a)(this,n),(r=e.call(this,t)).name=r.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(Object(hi.a)(r),r.constructor):r.stack=new Error(t).stack,r}return n}(Ri(Error));function Fi(t,e){if(!t)throw new Pi(e||"Assertion failed")}function Li(t,e,n){Fi(t instanceof e,n||"value is an instance of ".concat(e.name))}function Ai(t){Fi(t.$map,'component has "$map" property')}function Mi(t){Fi(t.$view,'component has "$view" property')}function ki(t){Fi(t.$geolocation,'component has "$geolocation" property')}function Di(t){Fi(t.$layer,'component has "$layer" property')}function Ni(t){Fi(t.$source,'component has "$source" property')}function $i(t){Fi(t.$geometry,'component has "$geometry" property')}function Gi(t){Fi(t.$interaction,'component has "$interaction" property')}function zi(t){Fi(t.$overlay,'component has "$overlay" property')}function Bi(t){Fi(t.$graticule,'component has "$graticule" property')}var Vi={computed:{viewProjection:function(){return this.rev&&this.$view?this.$view.getProjection().getCode():this.projection||ae.c},resolvedDataProjection:function(){return Object(ce.c)(this.dataProjection,this.projection,this.$map&&Object(ae.H)(this.$map),this.$options.dataProjection,this.viewProjection)}},methods:{pointToViewProj:function(t){return Object(ae.qb)(t,this.resolvedDataProjection,this.viewProjection)},pointToDataProj:function(t){return Object(ae.qb)(t,this.viewProjection,this.resolvedDataProjection)},lineToViewProj:function(line){return Object(ae.mb)(line,this.resolvedDataProjection,this.viewProjection)},lineToDataProj:function(line){return Object(ae.mb)(line,this.viewProjection,this.resolvedDataProjection)},polygonToViewProj:function(polygon){return Object(ae.rb)(polygon,this.resolvedDataProjection,this.viewProjection)},polygonToDataProj:function(polygon){return Object(ae.rb)(polygon,this.viewProjection,this.resolvedDataProjection)},multiPointToViewProj:function(t){return Object(ae.ob)(t,this.resolvedDataProjection,this.viewProjection)},multiPointToDataProj:function(t){return Object(ae.ob)(t,this.viewProjection,this.resolvedDataProjection)},multiLineToViewProj:function(t){return Object(ae.nb)(t,this.resolvedDataProjection,this.viewProjection)},multiLineToDataProj:function(t){return Object(ae.nb)(t,this.viewProjection,this.resolvedDataProjection)},multiPolygonToViewProj:function(t){return Object(ae.pb)(t,this.resolvedDataProjection,this.viewProjection)},multiPolygonToDataProj:function(t){return Object(ae.pb)(t,this.viewProjection,this.resolvedDataProjection)},extentToViewProj:function(t){return Object(ae.lb)(t,this.resolvedDataProjection,this.viewProjection)},extentToDataProj:function(t){return Object(ae.lb)(t,this.viewProjection,this.resolvedDataProjection)},writeGeometryInDataProj:function(t){return Object(ae.ub)(t,this.viewProjection,this.resolvedDataProjection)},writeGeometryInViewProj:function(t){return Object(ae.ub)(t)},readGeometryInDataProj:function(t){return Object(ae.Y)(t,this.viewProjection,this.resolvedDataProjection)},writeFeatureInDataProj:function(t){return Object(ae.tb)(t,this.viewProjection,this.resolvedDataProjection)},writeFeatureInViewProj:function(t){return Object(ae.tb)(t)},readFeatureInDataProj:function(t){return Object(ae.X)(t,this.viewProjection,this.resolvedDataProjection)}}},Ui=n(126),Wi=n(127),Yi=n(375),Xi=n.n(Yi);function Hi(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i1&&void 0!==arguments[1]?arguments[1]:[];return se()(t).reduce((function(n,r){return e.length&&!he()(e).call(e,r)||(n=fe()(n).call(n,t[r])),n}),[])}(this.$slots,n.slots);var data={attrs:"function"==typeof n.attrs?n.attrs.call(this):n.attrs,style:{display:"none !important"}};return t(n.tag||"i",data,e)}},Cn={mixins:[En,Sn.a],methods:{init:function(){return Sn.a.methods.init.call(this)},deinit:function(){return Sn.a.methods.deinit.call(this)},createOlObject:function(){throw new Error("Not implemented method")},mount:function(){return Sn.a.methods.mount.call(this)},unmount:function(){return Sn.a.methods.unmount.call(this)},getServices:function(){return Sn.a.methods.getServices.call(this)},refresh:function(){return Sn.a.methods.refresh.call(this)},remount:function(){return Sn.a.methods.remount.call(this)},recreate:function(){return Sn.a.methods.recreate.call(this)},subscribeAll:function(){Sn.a.methods.subscribeAll.call(this)}},stubVNode:{attrs:function(){return{id:this.vmId,class:this.cmpName}}}},Tn=n(84),Rn=n.n(Tn),In=n(202),Pn=n(138),Fn=n(201),Ln={methods:{beforeInit:function(){var t=this;return Object(In.a)(100).pipe(Object(Fn.a)((function(){return!t.$map})),Object(Pn.a)(),Pe((function(){return t}))).toPromise(Rn.a)}}};function An(){var t=this;Object.defineProperties(this,{$geometry:{enumerable:!0,get:function(){return t.$olObject}},$map:{enumerable:!0,get:function(){return t.$services&&_e()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}},$geometryContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.geometryContainer}}})}function Mn(){var t=this;$i(this);var e=ln(this.$geometry,"change",(function(){return{coordinates:t.getCoordinates(),extent:t.extent}})).pipe(bn(1e3/60),on(kn),Pe((function(t){return{prop:"coordinates",value:t.coordinates}})));this.subscribeTo(e,(function(e){var n=e.prop,r=e.value;++t.rev,t.$nextTick((function(){t.$emit("update:".concat(n),r)}))}))}function kn(a,b){return!!Object(ce.l)(a.extent,b.extent)&&Object(ce.l)(a.coordinates,b.coordinates)}var Dn={mixins:[Cn,Ln,Vi],props:{coordinates:{type:Array,required:!0,validator:function(t){return t.length}}},computed:{type:function(){throw new Error("Not implemented computed property")},extent:function(){if(this.extentViewProj&&this.resolvedDataProjection)return this.extentToDataProj(this.extentViewProj)},extentViewProj:function(){if(this.rev&&this.$geometry)return this.$geometry.getExtent()},point:function(){if(this.pointViewProj&&this.resolvedDataProjection)return this.pointToDataProj(this.pointViewProj)},pointViewProj:function(){if(this.rev&&this.$geometry)return Object(ae.A)(this.$geometry)},coordinatesViewProj:function(){if(this.rev&&this.$geometry)return this.$geometry.getCoordinates()}},methods:{createOlObject:function(){var t=this;return Object(vn.a)(yn.a.mark((function e(){var n;return yn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.createGeometry();case 2:return n=e.sent,Object(ae.O)(n,t.id),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})))()},createGeometry:function(){throw new Error("Not implemented method")},getCoordinates:function(){return $i(this),this.toDataProj(this.$geometry.getCoordinates())},setCoordinates:function(t){$i(this),this.$geometry.setCoordinates(this.toViewProj(t))},init:function(){return this.setupTransformFunctions(),Cn.methods.init.call(this)},setupTransformFunctions:function(){var t=this,e=ae.sb[this.type].transform;this.toDataProj=function(n){return e(n,t.viewProjection,t.resolvedDataProjection)},this.toViewProj=function(n){return e(n,t.resolvedDataProjection,t.viewProjection)}},deinit:function(){return Cn.methods.deinit.call(this)},refresh:function(){return Cn.methods.refresh.call(this)},getServices:function(){var t=this;return Object(jn.a)(Cn.methods.getServices.call(this),{get geometry(){return t.$geometry}})},mount:function(){this.$geometryContainer&&this.$geometryContainer.setGeometry(this),this.subscribeAll()},unmount:function(){this.unsubscribeAll(),this.$geometryContainer&&this.$geometryContainer.setGeometry(void 0)},subscribeAll:function(){Mn.call(this)}},watch:{id:function(t){this.$geometry&&t!==Object(ae.D)(this.$geometry)&&Object(ae.bb)(this.$geometry,t)},coordinates:function(t){this.$geometry&&this.$view&&(kn({coordinates:t,extent:Object(ae.r)(t)},{coordinates:this.getCoordinates(),extent:this.extent})||this.setCoordinates(t))},resolvedDataProjection:function(){this.$geometry&&(this.setupTransformFunctions(),this.setCoordinates(this.coordinates))}},stubVNode:{empty:function(){return this.vmId}},created:function(){An.call(this)}},Nn={mixins:[Vi],methods:{getGeometryTarget:function(){throw new Error("Not implemented method")},getGeometry:function(){return this._geometry},getServices:function(){var t=this;return{get geometryContainer(){return t}}},setGeometry:function(t){t instanceof Ee.a?t=t.$geometry:Object(ce.q)(t)&&(t=this.readGeometryInDataProj(t)),t!==this._geometry&&(this._geometry=t);var e=this.getGeometryTarget();e&&t!==e.getGeometry()&&e.setGeometry(t)}}};function $n(){var t=this;Object.defineProperties(this,{$source:{enumerable:!0,get:function(){return t.$olObject}},$map:{enumerable:!0,get:function(){return t.$services&&_e()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}},$sourceContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.sourceContainer}}})}var Gn={mixins:[Cn,Ln],props:{attributions:{type:[String,Array],validator:function(t){return Object(ce.r)(t)||Object(ce.j)(t)&&t.every(ce.r)}},attributionsCollapsible:{type:Boolean,default:!0},projection:String,wrapX:{type:Boolean,default:!0}},computed:{state:function(){if(this.rev&&this.$source)return this.$source.getState()}},methods:{createOlObject:function(){var t=this;return Object(vn.a)(yn.a.mark((function e(){var source;return yn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.createSource();case 2:return source=e.sent,Object(ae.S)(source,t.id),e.abrupt("return",source);case 5:case"end":return e.stop()}}),e)})))()},createSource:function(){throw new Error("Not implemented method")},init:function(){return Cn.methods.init.call(this)},deinit:function(){return Cn.methods.deinit.call(this)},getServices:function(){var t=this;return Object(jn.a)(Cn.methods.getServices.call(this),{get source(){return t.$source}})},mount:function(){return this.$sourceContainer&&this.$sourceContainer.setSource(this),Cn.methods.mount.call(this)},unmount:function(){return this.$sourceContainer&&this.$sourceContainer.setSource(void 0),Cn.methods.unmount.call(this)},refresh:function(){var t=this;return this.$source?new Rn.a((function(e){t.$source?(t.$source.once("change",(function(){return e})),t.$source.refresh()):e()})):Rn.a.resolve()},remount:function(){return Cn.methods.remount.call(this)},recreate:function(){return Cn.methods.recreate.call(this)},subscribeAll:function(){Cn.methods.subscribeAll.call(this)}},watch:{id:function(t){this.$source&&t!==Object(ae.L)(this.$source)&&Object(ae.ib)(this.$source,t)},attributions:function(t){this.$source&&!Object(ce.l)(t,this.$source.getAttributions())&&this.$source.setAttributions(t)},attributionsCollapsible:function(t){this.$source&&t!==this.$source.getAttributionsCollapsible()&&this.scheduleRecreate()},projection:function(t){!this.$source||this.$source.getProjection()&&t===this.$source.getProjection().getCode()||this.scheduleRecreate()},wrapX:function(t){this.$source&&t!==this.$source.getWrapX()&&this.scheduleRecreate()}},stubVNode:{empty:function(){return this.vmId}},created:function(){$n.call(this)}};function zn(object,t){var e=se()(object);if(Ht.a){var n=Ht()(object);t&&(n=qt()(n).call(n,(function(t){return Jt()(object,t).enumerable}))),e.push.apply(e,n)}return e}var Bn={mixins:[Gn],props:{crossOrigin:String,projection:{type:String,default:ae.c}},methods:{init:function(){return Gn.methods.init.call(this)},deinit:function(){return Gn.methods.deinit.call(this)},mount:function(){Gn.methods.mount.call(this)},unmount:function(){Gn.methods.unmount.call(this)},subscribeAll:function(){Gn.methods.subscribeAll.call(this),Vn.call(this)}},watch:function(t){for(var i=1;i0&&n,10)).join("0")+t).toString().slice(-e)}var Or=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var e=[],n=!0,r=!1,o=void 0;try{for(var c,h=t[Symbol.iterator]();!(n=(c=h.next()).done)&&(e.push(c.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&h.return&&h.return()}finally{if(r)throw o}}return e}(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function wr(t,e,n,r,o){var c,h=t.getZForResolution(r),l=r/t.getResolution(h),f=t.getOrigin(h),d=t.getTileSize(h);c=d,"[object Array]"!==Object.prototype.toString.call(c)&&(d=[d,d]);var v=o?.5:0,m=o?0:.5,y=Math.floor((e-f[0])/r+v),_=Math.floor((n-f[1])/r+m),x=l*y/d[0],O=l*_/d[1];return o?(x=Math.ceil(x)-1,O=Math.ceil(O)-1):(x=Math.floor(x),O=Math.floor(O)),[x,O]}var jr=/{z}/g,Sr=/{0z}/g,Er=/{x\d?}/g,Cr=/{y\d?}/g,Tr=/{-y\d?}/g,Rr=[-20037508.342789244,-20037508.342789244,20037508.342789244,20037508.342789244];function Ir(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(At.b)(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Rr;return Fr(function(t){var e=[],n=/{(\d)-(\d)}/.exec(t)||/{([a-z])-([a-z])}/.exec(t);if(n)for(var r=n[1].charCodeAt(0),o=n[2].charCodeAt(0),c=r;c<=o;++c)e.push(t.replace(n[0],String.fromCharCode(c)));else e.push(t);return e}(t),e,n)}function Pr(template){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(At.b)(),e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Rr;return function(n){if(null!=n)return template.replace(jr,Lr(n[0])).replace(Sr,Lr(n[0],!0)).replace(Er,Ar(n[1])).replace(Cr,(function(t){return Ar(-n[2]-1)(t)})).replace(Tr,(function(r){var o,c=n[0],h=function(t,e,n){var r=t.getResolution(n),o=wr(t,e[0],e[1],r,!1),c=Or(o,2),h=c[0],l=c[1],f=wr(t,e[2],e[3],r,!0),d=Or(f,2);return{minX:h,minY:l,maxX:d[0],maxY:d[1]}}(t,e,c);return Ar((o=h).maxY-o.minY+1+n[2])(r)}))}}function Fr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(At.b)(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Rr;return function(t){if(1===t.length)return t[0];return function(e,n,r){if(null!=e){var o=function(a,b){var t=a%b;return t*b<0?t+b:t}((e[1]<3&&void 0!==arguments[3]?arguments[3]:{};return Mi(this),Ni(this),e||(e=this.$view.getResolution()),n||(n=this.projection),r=Hr(Hr({},this.allParams),r),this.$source.getGetFeatureInfoUrl(t,e,n,r)}},Zr={props:{extParams:Object,layers:{type:String,required:!0},styles:String,version:{type:String,default:ae.m},transparent:{type:Boolean,default:!0},format:{type:String,default:"image/png"},bgColor:String,time:String},computed:{cleanExtParams:function(){return this.extParams?Kr(this.extParams):void 0},allParams:function(){return Hr(Hr({},this.cleanExtParams),{},{LAYERS:this.layers,STYLES:this.styles,VERSION:this.version,FORMAT:this.format,TRANSPARENT:this.transparent,BGCOLOR:this.bgColor,TIME:this.time})}},methods:qr,watch:Hr(Hr({},de(["layers","version","styles","transparent","format","bgColor","time"],(function(t){return function(e){t=t.toUpperCase(),this.$source&&this.$source.updateParams(Object(ee.a)({},t,e))}}))),{},{extParams:function(t){this.$source&&this.$source.updateParams(t?Kr(t):void 0)}})},Jr=function(t){function e(e){var n=e||{},r=void 0!==n.projection?n.projection:"EPSG:3857",o=void 0!==n.tileGrid?n.tileGrid:Object(At.b)({extent:Object(At.c)(r),maxZoom:n.maxZoom,minZoom:n.minZoom,tileSize:n.tileSize});t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,opaque:n.opaque,projection:r,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:n.tileLoadFunction,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,attributionsCollapsible:n.attributionsCollapsible})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Vt),Qr={mixins:[$r],methods:{createSource:function(){return new Jr({attributions:this.attributions,attributionsCollapsible:this.attributionsCollapsible,cacheSize:this.cacheSize,crossOrigin:this.crossOrigin,maxZoom:this.maxZoom,minZoom:this.minZoom,opaque:this.opaque,projection:this.projection,reprojectionErrorThreshold:this.reprojectionErrorThreshold,tileGrid:this._tileGrid,tilePixelRatio:this.tilePixelRatio,tileUrlFunction:this.urlFunc,tileLoadFunction:this.tileLoadFunction,wrapX:this.wrapX,transition:this.transition})}}},to=n(14),eo=n.n(to);var template,io,no,ro,component,oo=(template={},no=void 0,ro=void 0,(component=("function"==typeof(io={name:"vl-source-arcgis-rest",mixins:[$r,me],props:{url:{type:String,required:!0,validator:function(t){return!!t.length}}},methods:{createSource:function(){return new Yt({attributions:this.attributions,cacheSize:this.cacheSize,crossOrigin:this.crossOrigin,params:this.allParams,tileGrid:this._tileGrid,projection:this.projection,reprojectionErrorThreshold:this.reprojectionErrorThreshold,tileLoadFunction:this.tileLoadFunction,url:this.urlTmpl,wrapX:this.wrapX,transition:this.transition})},onUrlFuncChange:function(){}},watch:{urlTmpl:function(t){this.$source&&this.$source.setUrl(t)}}})?io.options:io)||{}).__file="source.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,ro&&(component.functional=!0)),component._scopeId=no,component);function so(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};so.installed||(so.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(oo,e),t.component(oo.name,oo))}var ao=so;var co=n(98),uo=function(t){function e(e){var n=void 0!==e.hidpi&&e.hidpi;t.call(this,{cacheSize:e.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:Object(bt.e)("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:co.a.LOADING,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:n?2:1,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition}),this.hidpi_=n,this.culture_=void 0!==e.culture?e.culture:"en-us",this.maxZoom_=void 0!==e.maxZoom?e.maxZoom:-1,this.apiKey_=e.key,this.imagerySet_=e.imagerySet,function(t,e,n,r){var script=document.createElement("script"),o="olc_"+Object(st.c)(e);function c(){delete window[o],script.parentNode.removeChild(script)}script.async=!0,script.src=t+(-1==t.indexOf("?")?"?":"&")+(r||"callback")+"="+o;var h=setTimeout((function(){c(),n&&n()}),1e4);window[o]=function(data){clearTimeout(h),c(),e(data)},document.getElementsByTagName("head")[0].appendChild(script)}("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+this.apiKey_+"&c="+this.culture_,this.handleImageryMetadataResponse.bind(this),void 0,"jsonp")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getApiKey=function(){return this.apiKey_},e.prototype.getImagerySet=function(){return this.imagerySet_},e.prototype.handleImageryMetadataResponse=function(t){if(200==t.statusCode&&"OK"==t.statusDescription&&"ValidCredentials"==t.authenticationResultCode&&1==t.resourceSets.length&&1==t.resourceSets[0].resources.length){var e=t.resourceSets[0].resources[0],n=-1==this.maxZoom_?e.zoomMax:this.maxZoom_,r=this.getProjection(),o=Object(At.c)(r),c=this.hidpi_?2:1,h=e.imageWidth==e.imageHeight?e.imageWidth/c:[e.imageWidth/c,e.imageHeight/c],l=Object(At.b)({extent:o,minZoom:e.zoomMin,maxZoom:n,tileSize:h});this.tileGrid=l;var f=this.culture_,d=this.hidpi_;if(this.tileUrlFunction=Rt(e.imageUrlSubdomains.map((function(t){var n=[0,0,0],r=e.imageUrl.replace("{subdomain}",t).replace("{culture}",f);return function(t,e,o){if(t){Object(yt.a)(t[0],t[1],-t[2]-1,n);var c=r;return d&&(c+="&dpi=d1&device=mobile"),c.replace("{quadkey}",Object(yt.f)(n))}}}))),e.imageryProviders){var v=Object(bt.h)(Object(bt.e)("EPSG:4326"),this.getProjection());this.setAttributions(function(t){var n=[],r=t.viewState,o=this.getTileGrid().getTileCoordForCoordAndResolution(r.center,r.resolution)[0];return e.imageryProviders.map((function(e){for(var r=!1,c=e.coverageAreas,i=0,h=c.length;i=l.zoomMin&&o<=l.zoomMax){var f=l.bbox,d=[f[1],f[0],f[3],f[2]],m=Object(et.a)(d,v);if(Object(et.F)(m,t.extent)){r=!0;break}}}r&&n.push(e.attribution)})),n.push('Terms of Use'),n}.bind(this))}this.setState(co.a.READY)}else this.setState(co.a.ERROR)},e}(Vt);function ho(object,t){var e=se()(object);if(Ht.a){var n=Ht()(object);t&&(n=qt()(n).call(n,(function(t){return Jt()(object,t).enumerable}))),e.push.apply(e,n)}return e}var lo={name:"vl-source-bingmaps",mixins:[$r],props:{hidpi:{type:Boolean,default:!1},culture:{type:String,default:"en-us"},apiKey:{type:String,required:!0},imagerySet:{type:String,required:!0},maxZoom:{type:Number,default:21},url:String},methods:{createSource:function(){return new uo({cacheSize:this.cacheSize,hidpi:this.hidpi,culture:this.culture,key:this.apiKey,imagerySet:this.imagerySet,maxZoom:this.maxZoom,reprojectionErrorThreshold:this.reprojectionErrorThreshold,wrapX:this.wrapX,transition:this.transition,tileLoadFunction:this.tileLoadFunction})},onUrlFuncChange:function(){}},watch:function(t){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:{};po.installed||(po.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(fo,e),t.component(fo.name,fo))}var go=po,vo=n(221);var mo=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="geom.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-geom-circle",mixins:[Dn],props:{coordinates:{type:Array,required:!0,validator:function(t){return 2===t.length}},radius:{type:Number,default:0}},computed:{type:Object(ce.d)(ae.e.POINT),coordinatesViewProj:function(){if(this.rev&&this.$geometry)return this.$geometry.getCenter()}},methods:{createGeometry:function(){return new vo.a(this.toViewProj(this.coordinates),this.radius)},getCoordinates:function(){return $i(this),this.toDataProj(this.$geometry.getCenter())},setCoordinates:function(t){$i(this),this.$geometry.setCenter(this.toViewProj(t))}},watch:{radius:function(t){this.$geometry&&t!==this.$geometry.getRadius()&&this.$geometry.setRadius(t)}}},undefined,undefined);function yo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};yo.installed||(yo.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(mo,e),t.component(mo.name,mo))}var _o=yo,bo=n(225),xo={createStyle:function(){return new bo.a({radius:this.radius,fill:this._fill,stroke:this._stroke})},getServices:function(){var t=this;return Object(jn.a)(Xn.methods.getServices.call(this),{get stylesContainer(){return t}})},setFill:function(t){(t=t instanceof Ee.a?t.$style:t)!==this._fill&&(this._fill=t,this.scheduleRefresh())},setStroke:function(t){(t=t instanceof Ee.a?t.$style:t)!==this._stroke&&(this._stroke=t,this.scheduleRefresh())}};var Oo=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="style.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-style-circle",mixins:[Xn,Yr],props:{radius:{type:Number,default:5}},methods:xo,watch:{radius:function(t){this.$style&&!Object(ce.l)(t,this.$style.getRadius())&&this.scheduleRefresh()}}},undefined,undefined);function wo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};wo.installed||(wo.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Oo,e),t.component(Oo.name,Oo))}var jo=wo,So=n(258),Eo=n(382),Co=n.n(Eo),To=n(6),Ro=n(35),Io=n(67),Po=n(63),Fo=n(156),Lo=n(17),Ao=n(31),Mo=n(157);function ko(t,e,n,r){return function(o,c,h){var l=new XMLHttpRequest;l.open("GET","function"==typeof t?t(o,c,h):t,!0),e.getType()==Mo.a.ARRAY_BUFFER&&(l.responseType="arraybuffer"),l.onload=function(t){if(!l.status||l.status>=200&&l.status<300){var source,o=e.getType();o==Mo.a.JSON||o==Mo.a.TEXT?source=l.responseText:o==Mo.a.XML?(source=l.responseXML)||(source=(new DOMParser).parseFromString(l.responseText,"application/xml")):o==Mo.a.ARRAY_BUFFER&&(source=l.response),source?n.call(this,e.readFeatures(source,{featureProjection:h}),e.readProjection(source),e.getLastExtent()):r.call(this)}else r.call(this)}.bind(this),l.onerror=function(){r.call(this)}.bind(this),l.send()}}var Do=n(217),No="addfeature",$o="changefeature",Go="clear",zo="removefeature",Bo=n(264),Vo=n.n(Bo),Uo=function(t){this.rbush_=Vo()(t,void 0),this.items_={}};Uo.prototype.insert=function(t,e){var n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[Object(st.c)(e)]=n},Uo.prototype.load=function(t,e){for(var n=new Array(e.length),i=0,r=e.length;i=0;--i){var n=this.geometryFunction(t[i]);n?Object(Ro.a)(e,n.getCoordinates()):t.splice(i,1)}Object(Ro.h)(e,1/t.length);var r=new Se.a(new Io.a(e));return r.set("features",t),r},e}(Xo),Ko=function(){function t(){Object(ui.a)(this,t)}return Object(So.a)(t,[{key:"getSource",value:function(){return this.source}},{key:"setSource",value:function(t){return this.source=t,this}},{key:"setAttributions",value:function(t){return this.attributions=t,this}},{key:"setDistance",value:function(t){return this.distance=t,this}},{key:"setGeometryFunction",value:function(t){return this.geometryFunction=t,this}},{key:"setLogo",value:function(t){return this.logo=t,this}},{key:"setProjection",value:function(t){return this.projection=t,this}},{key:"setWrapX",value:function(t){return this.wrapX=t,this}},{key:"set",value:function(t,e){Co()(this)||(this.values={}),Co()(this)[t]=e}},{key:"build",value:function(){Fi(this.source,"source is provided");var source=new Ho({attributions:this.attributions,distance:this.distance,geometryFunction:this.geometryFunction,logo:this.logo,projection:this.projection,source:this.source,wrapX:this.wrapX});return source.setProperties(Co()(this)),source}},{key:"promise",value:function(){var t=this;return Object(In.a)(100).pipe(Object(Fn.a)((function(){return!t.source})),Object(Pn.a)(),Pe(this.build.bind(this))).toPromise(Rn.a)}}]),t}();function qo(object,t){var e=se()(object);if(Ht.a){var n=Ht()(object);t&&(n=qt()(n).call(n,(function(t){return Jt()(object,t).enumerable}))),e.push.apply(e,n)}return e}var Zo={name:"vl-source-cluster",mixins:[Wr,nr],props:{distance:{type:Number,default:20},geomFuncFactory:{type:Function,default:function(){return function(t){var e=t.getGeometry();if(e){var n=Object(ae.A)(e);return n?Object(ae.w)(n):void 0}}}}},computed:{geomFunc:function(){return this.geomFuncFactory()}},methods:{createSource:function(){return this._sourceBuilder.setAttributions(this.attributions).setDistance(this.distance).setGeometryFunction(this.geomFunc).setLogo(this.logo).setProjection(this.projection).setWrapX(this.wrapX),this._sourceBuilder.promise()},getServices:function(){return Object(jn.a)(Wr.methods.getServices.call(this),nr.methods.getServices.call(this))},getSourceTarget:function(){return this._sourceBuilder},subscribeAll:function(){Wr.methods.subscribeAll.call(this),Jo.call(this)}},watch:function(t){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:{};ts.installed||(ts.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Qo,e),t.component(Qo.name,Qo))}var es=ts,is=n(154),ns=n.n(is),rs=n(33),os=n(51),ss=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},as=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},cs=function(t){return t.target.getTargetElement()===document.activeElement},us=Ao.b,hs=function(t){var e=t.originalEvent;return 0==e.button&&!(os.j&&os.e&&e.ctrlKey)},ls=Ao.a,fs=function(t){return t.type==rs.a.SINGLECLICK},ds=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},ps=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},gs=function(t){var e=t.originalEvent.target.tagName;return"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e},vs=function(t){var e=t.pointerEvent;return Object(Ct.a)(void 0!==e,56),"mouse"==e.pointerType},ms=function(t){var e=t.pointerEvent;return Object(Ct.a)(void 0!==e,56),e.isPrimary&&0===e.button},ys=n(161),_s=n(34),bs=n(78),xs=n(135),Os=n(118),ws=n(136),js=n(197),Ss=n(55);function Es(t){for(var e=t.length,n=0,r=0,i=0;i0}}else if(t.type==rs.a.POINTERDOWN){var r=this.handleDownEvent(t);r&&t.preventDefault(),this.handlingDownUpSequence=r,e=this.stopDown(r)}else t.type==rs.a.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===rs.a.POINTERDOWN||e===rs.a.POINTERDRAG||e===rs.a.POINTERUP}(t)){var e=t.pointerEvent,n=e.pointerId.toString();t.type==rs.a.POINTERUP?delete this.trackedPointers_[n]:(t.type==rs.a.POINTERDOWN||n in this.trackedPointers_)&&(this.trackedPointers_[n]=e),this.targetPointers=Object(nt.c)(this.trackedPointers_)}},e}(Jn.a),Ts=n(301),Rs="IMAGE",Is="TILE",Ps="VECTOR_TILE",Fs="VECTOR",Ls=n(80),As=n(70);function Ms(t,e){return t.visible&&e>=t.minResolution&&e=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0));return this.freehand_&&e.type===rs.a.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e),r=!1):this.freehand_&&e.type===rs.a.POINTERDOWN?r=!1:n?(r=e.type===rs.a.POINTERMOVE)&&this.freehand_?r=this.handlePointerMove_(e):(e.pointerEvent.pointerType==js.b||e.type===rs.a.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e):e.type===rs.a.DBLCLICK&&(r=!1),t.prototype.handleEvent.call(this,e)&&r},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t),!0):!!this.condition_(t)&&(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new ys.a(rs.a.POINTERMOVE,t.map,t.pointerEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0)},e.prototype.handleUpEvent=function(t){var e=!0;this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t);var n=this.mode_===Ws;return this.shouldHandle_?(this.finishCoordinate_?this.freehand_||n?this.finishDrawing():this.atFinish_(t)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t):(this.startDrawing_(t),this.mode_===Bs&&this.finishDrawing()),e=!1):this.freehand_&&(this.finishCoordinate_=null,this.abortDrawing_()),!e&&this.stopClick_&&t.stopPropagation(),e},e.prototype.handlePointerMove_=function(t){if(this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var e=this.downPx_,n=t.pixel,r=e[0]-n[0],o=e[1]-n[1],c=r*r+o*o;if(this.shouldHandle_=this.freehand_?c>this.squaredClickTolerance_:c<=this.squaredClickTolerance_,!this.shouldHandle_)return!0}return this.finishCoordinate_?this.modifyDrawing_(t):this.createOrUpdateSketchPoint_(t),!0},e.prototype.atFinish_=function(t){var e=!1;if(this.sketchFeature_){var n=!1,r=[this.finishCoordinate_];if(this.mode_===Vs)n=this.sketchCoords_.length>this.minPoints_;else if(this.mode_===Us){var o=this.sketchCoords_;n=o[0].length>this.minPoints_,r=[o[0][0],o[0][o[0].length-2]]}if(n)for(var map=t.map,i=0,c=r.length;i=this.maxPoints_&&(this.freehand_?n.pop():e=!0),n.push(r.slice()),this.geometryFunction_(n,o)):this.mode_===Us&&((n=this.sketchCoords_[0]).length>=this.maxPoints_&&(this.freehand_?n.pop():e=!0),n.push(r.slice()),e&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,o)),this.updateSketchFeatures_(),e&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t,e=this.sketchFeature_.getGeometry();this.mode_===Vs?((t=this.sketchCoords_).splice(-2,1),this.geometryFunction_(t,e),t.length>=2&&(this.finishCoordinate_=t[t.length-2].slice())):this.mode_===Us&&((t=this.sketchCoords_[0]).splice(-2,1),this.sketchLine_.getGeometry().setCoordinates(t),this.geometryFunction_(this.sketchCoords_,e)),0===t.length&&(this.finishCoordinate_=null),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var e=this.sketchCoords_,n=t.getGeometry();this.mode_===Vs?(e.pop(),this.geometryFunction_(e,n)):this.mode_===Us&&(e[0].pop(),this.geometryFunction_(e,n),e=n.getCoordinates()),this.type_===To.a.MULTI_POINT?t.setGeometry(new Os.a([e])):this.type_===To.a.MULTI_LINE_STRING?t.setGeometry(new xs.a([e])):this.type_===To.a.MULTI_POLYGON&&t.setGeometry(new ws.a([e])),this.dispatchEvent(new Hs(Xs,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return t&&(this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0)),t},e.prototype.extend=function(t){var e=t.getGeometry();this.sketchFeature_=t,this.sketchCoords_=e.getCoordinates();var n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.updateSketchFeatures_(),this.dispatchEvent(new Hs(Ys,this.sketchFeature_))},e.prototype.updateSketchFeatures_=function(){var t=[];this.sketchFeature_&&t.push(this.sketchFeature_),this.sketchLine_&&t.push(this.sketchLine_),this.sketchPoint_&&t.push(this.sketchPoint_);var e=this.overlay_.getSource();e.clear(!0),e.addFeatures(t)},e.prototype.updateState_=function(){var map=this.getMap(),t=this.getActive();map&&t||this.abortDrawing_(),this.overlay_.setMap(t?map:null)},e}(Cs);var qs,Zs=n(379);function Js(t){var e=t.error;t.subscriber.error(e)}qs||(qs={});var Qs=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t,e;switch(this.kind){case"N":return function(){for(var t=[],e=0;e0&&e[0].time-n.now()<=0;)e.shift().notification.observe(r);if(e.length>0){var o=Math.max(0,e[0].time-n.now());this.schedule(t,o)}else this.unsubscribe(),source.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new na(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(Qs.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(Qs.createComplete()),this.unsubscribe()},e}(Ie.a),na=function(){return function(time,t){this.time=time,this.notification=t}}();var ra=function(){function t(t){this.value=t}return t.prototype.call=function(t,source){return source.subscribe(new oa(t,this.value))},t}(),oa=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return Re.a(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(Ie.a);function sa(object,t){var e=se()(object);if(Ht.a){var n=Ht()(object);t&&(n=qt()(n).call(n,(function(t){return Jt()(object,t).enumerable}))),e.push.apply(e,n)}return e}var aa=function(t){return Object(ce.E)(Object(ce.b)(t))},ca={name:"vl-interaction-draw",mixins:[Kn,_r],stubVNode:{empty:!1,attrs:function(){return{id:this.vmId,class:this.cmpName}}},props:{source:{type:String,required:!0},clickTolerance:{type:Number,default:6},snapTolerance:{type:Number,default:12},type:{type:String,required:!0,validator:function(t){var e;return he()(e=ns()(ae.e)).call(e,aa(t))}},stopClick:{type:Boolean,default:!1},maxPoints:Number,minPoints:Number,finishCondition:Function,geometryFunction:Function,geometryName:{type:String,default:"geometry"},condition:{type:Function,default:ds},freehand:{type:Boolean,default:!1},freehandCondition:{type:Function,default:ps},wrapX:{type:Boolean,default:!1}},methods:{createInteraction:function(){var t=this;return Object(vn.a)(yn.a.mark((function e(){var source,n;return yn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getInstance(t.source);case 2:return Fi(!!(source=t._source=e.sent),'Source "'.concat(t.source,'" not found in identity map.')),source instanceof Xo||(Object(ce.n)(source.getFeaturesCollection)?n=source.getFeaturesCollection():Object(ce.n)(source.getFeatures)&&(n=source.getFeatures()),Li(n,je.a,'Source "'.concat(t.source,"\" doesn't provide features collection.")),source=null),e.abrupt("return",new Ks({source:source,features:n,clickTolerance:t.clickTolerance,snapTolerance:t.snapTolerance,type:aa(t.type),stopClick:t.stopClick,maxPoints:t.maxPoints,minPoints:t.minPoints,finishCondition:t.finishCondition,style:t.createStyleFunc(),geometryFunction:t.geometryFunction,geometryName:t.geometryName,condition:t.condition,freehand:t.freehand,freehandCondition:t.freehandCondition,wrapX:t.wrapX}));case 6:case"end":return e.stop()}}),e)})))()},getDefaultStyles:function(){var t=Object(ce.v)(Object(ae.z)(),(function(t){return _e()(t).call(t,ae.x)}));return function(e){if(e.getGeometry())return t[e.getGeometry().getType()]}},getServices:function(){return Object(jn.a)(Kn.methods.getServices.call(this),_r.methods.getServices.call(this))},getStyleTarget:function(){return this.$interaction},mount:function(){Kn.methods.mount.call(this)},unmount:function(){Kn.methods.unmount.call(this)},setStyle:function(t){t!==this._styles&&(this._styles=t,this.scheduleRecreate())},subscribeAll:function(){Kn.methods.subscribeAll.call(this),ua.call(this)}},watch:function(t){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:{};la.installed||(la.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(ha,e),t.component(ha.name,ha))}var fa=la;function da(object,t){var e=se()(object);if(Ht.a){var n=Ht()(object);t&&(n=qt()(n).call(n,(function(t){return Jt()(object,t).enumerable}))),e.push.apply(e,n)}return e}function pa(t){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:{};ya.installed||(ya.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(ma,e),t.component(ma.name,ma))}var _a=ya,ba=n(107);var xa=function(template,t,e,n,r,o,c,h){var component=("function"==typeof e?e.options:e)||{};return component.__file="style.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,r&&(component.functional=!0)),component._scopeId=n,component}({},0,{name:"vl-style-fill",mixins:[Yn],props:{color:[String,Array]},methods:{createStyle:function(){return new ba.a({color:this.color})},mount:function(){this.$stylesContainer&&this.$stylesContainer.setFill(this)},unmount:function(){this.$stylesContainer&&this.$stylesContainer.setFill(void 0)}},watch:{color:function(t){this.$style&&!Object(ce.l)(t,this.$style.getColor())&&(this.$style.setColor(t),this.scheduleRefresh())}}},undefined,undefined);function Oa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Oa.installed||(Oa.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(xa,e),t.component(xa.name,xa))}var wa=Oa,ja="accuracy",Sa="accuracyGeometry",Ea="altitude",Ca="altitudeAccuracy",Ta="heading",Ra="position",Ia="projection",Pa="speed",Fa="tracking",La="trackingOptions",Aa=function(t){function e(e){t.call(this,ht.a.ERROR),this.code=e.code,this.message=e.message}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ft.a),Ma=function(t){function e(e){t.call(this);var n=e||{};this.position_=null,this.transform_=bt.i,this.watchId_=void 0,Object(pt.a)(this,Object(_s.b)(Ia),this.handleProjectionChanged_,this),Object(pt.a)(this,Object(_s.b)(Fa),this.handleTrackingChanged_,this),void 0!==n.projection&&this.setProjection(n.projection),void 0!==n.trackingOptions&&this.setTrackingOptions(n.trackingOptions),this.setTracking(void 0!==n.tracking&&n.tracking)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.setTracking(!1),t.prototype.disposeInternal.call(this)},e.prototype.handleProjectionChanged_=function(){var t=this.getProjection();t&&(this.transform_=Object(bt.h)(Object(bt.e)("EPSG:4326"),t),this.position_&&this.set(Ra,this.transform_(this.position_)))},e.prototype.handleTrackingChanged_=function(){if(os.d){var t=this.getTracking();t&&void 0===this.watchId_?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):t||void 0===this.watchId_||(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}},e.prototype.positionChange_=function(t){var e=t.coords;this.set(ja,e.accuracy),this.set(Ea,null===e.altitude?void 0:e.altitude),this.set(Ca,null===e.altitudeAccuracy?void 0:e.altitudeAccuracy),this.set(Ta,null===e.heading?void 0:Object(it.j)(e.heading)),this.position_?(this.position_[0]=e.longitude,this.position_[1]=e.latitude):this.position_=[e.longitude,e.latitude];var n=this.transform_(this.position_);this.set(Ra,n),this.set(Pa,null===e.speed?void 0:e.speed);var r=Object(Ss.a)(this.position_,e.accuracy);r.applyTransform(this.transform_),this.set(Sa,r),this.changed()},e.prototype.positionError_=function(t){this.setTracking(!1),this.dispatchEvent(new Aa(t))},e.prototype.getAccuracy=function(){return this.get(ja)},e.prototype.getAccuracyGeometry=function(){return this.get(Sa)||null},e.prototype.getAltitude=function(){return this.get(Ea)},e.prototype.getAltitudeAccuracy=function(){return this.get(Ca)},e.prototype.getHeading=function(){return this.get(Ta)},e.prototype.getPosition=function(){return this.get(Ra)},e.prototype.getProjection=function(){return this.get(Ia)},e.prototype.getSpeed=function(){return this.get(Pa)},e.prototype.getTracking=function(){return this.get(Fa)},e.prototype.getTrackingOptions=function(){return this.get(La)},e.prototype.setProjection=function(t){this.set(Ia,Object(bt.e)(t))},e.prototype.setTracking=function(t){this.set(Fa,t)},e.prototype.setTrackingOptions=function(t){this.set(La,t)},e}(_s.a);function ka(){var t=this;Object.defineProperties(this,{$geolocation:{enumerable:!0,get:function(){return t.$olObject}},$map:{enumerable:!0,get:function(){return t.$services&&_e()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}}})}function Da(){var t=this;ki(this);var e=1e3/60,n=ei(fn(this.$geolocation,["accuracy","altitude","altitudeaccuracy","heading","speed"],!0,e),fn(this.$geolocation,"position",!0,e));this.subscribeTo(n,(function(e){var n=e.prop,r=e.value;++t.rev,t.$nextTick((function(){t.$emit("update:".concat(n),r)}))}))}var Na=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="geoloc.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("i",{class:t.cmpName,staticStyle:{display:"none !important"},attrs:{id:t.vmId}},[t._t("default",null,{accuracy:t.accuracy,altitude:t.altitude,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,position:t.position,speed:t.speed})],2)},staticRenderFns:[]},0,{name:"vl-geoloc",mixins:[Sn.a,Ln,Vi],props:{tracking:{type:Boolean,default:!0},trackingOptions:Object,projection:String},computed:{accuracy:function(){if(this.rev&&this.$geolocation)return this.$geolocation.getAccuracy()},altitude:function(){if(this.rev&&this.$geolocation)return this.$geolocation.getAltitude()},altitudeAccuracy:function(){if(this.rev&&this.$geolocation)return this.$geolocation.getAltitudeAccuracy()},heading:function(){if(this.rev&&this.$geolocation)return this.$geolocation.getHeading()},speed:function(){if(this.rev&&this.$geolocation)return this.$geolocation.getSpeed()},position:function(){if(this.rev&&this.$geolocation)return this.$geolocation.getPosition()},positionViewProj:function(){if(this.position&&this.viewProjection)return this.pointToViewProj(this.position)}},methods:{createOlObject:function(){var t=new Ma({tracking:this.tracking,trackingOptions:this.trackingOptions,projection:this.resolvedDataProjection});return t.set("id",this.id),t},mount:function(){this.subscribeAll()},unmount:function(){ki(this),this.unsubscribeAll(),this.$geolocation.setTracking(!1)},subscribeAll:function(){Da.call(this)}},watch:{id:function(t){this.$geolocation&&t!==this.geolocation.get("id")&&this.$geolocation.set("id",t)},tracking:function(t){(this.$geolocation||t!==this.$geolocation.getTracking())&&this.$geolocation.setTracking(t)},tracingOptions:function(t,e){!Object(ce.l)(t,e)&&this.$geolocation&&this.$geolocation.setTrackingOptions(t)},resolvedDataProjection:function(t){this.$geolocation&&this.$geolocation.setProjection(t)}},stubVNode:{empty:function(){return this.vmId}},created:function(){ka.call(this)}},undefined,!1);function $a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$a.installed||($a.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Na,e),t.component(Na.name,Na))}var Ga=$a,za=n(39);function Ba(t,e,n){for(var r,o,c,h,l,f,d=[],v=t(0),m=t(1),a=e(v),b=e(m),y=[m,v],_=[b,a],x=[1,0],O={},w=1e5;--w>0&&x.length>0;)c=x.pop(),v=y.pop(),a=_.pop(),(f=c.toString())in O||(d.push(a[0],a[1]),O[f]=!0),h=x.pop(),m=y.pop(),b=_.pop(),o=e(r=t(l=(c+h)/2)),Object(it.h)(o[0],o[1],a[0],a[1],b[0],b[1])1&&void 0!==arguments[1]?arguments[1]:{};tc.installed||(tc.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Qa,e),t.component(Qa.name,Qa))}var ec=tc,ic=n(373);var nc=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="layer.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-layer-group",mixins:[cr,dr],methods:{createLayer:function(){return new ic.a({id:this.id,minResolution:this.minResolution,maxResolution:this.maxResolution,opacity:this.opacity,visible:this.visible,extent:this.extent,zIndex:this.zIndex,layers:this._layersCollection})},getServices:function(){return Object(jn.a)(cr.methods.getServices.call(this),dr.methods.getServices.call(this))}}},undefined,undefined);function rc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rc.installed||(rc.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(nc,e),t.component(nc.name,nc))}var oc=rc,sc=n(265),ac="blur",cc="gradient",uc="radius",hc=["#00f","#0ff","#0f0","#ff0","#f00"];var lc=function(t){function e(e){var n=e||{},r=Object(nt.a)({},n);delete r.gradient,delete r.radius,delete r.blur,delete r.shadow,delete r.weight,t.call(this,r),this.gradient_=null,this.shadow_=void 0!==n.shadow?n.shadow:250,this.circleImage_=void 0,this.styleCache_=null,Object(pt.a)(this,Object(_s.b)(cc),this.handleGradientChanged_,this),this.setGradient(n.gradient?n.gradient:hc),this.setBlur(void 0!==n.blur?n.blur:15),this.setRadius(void 0!==n.radius?n.radius:8),Object(pt.a)(this,Object(_s.b)(ac),this.handleStyleChanged_,this),Object(pt.a)(this,Object(_s.b)(uc),this.handleStyleChanged_,this),this.handleStyleChanged_();var o,c=n.weight?n.weight:"weight";o="string"==typeof c?function(t){return t.get(c)}:c,this.setStyle(function(t,e){var n=o(t),r=void 0!==n?Object(it.a)(n,0,1):1,c=255*r|0,style=this.styleCache_[c];return style||(style=[new yr.c({image:new sc.a({opacity:r,src:this.circleImage_})})],this.styleCache_[c]=style),style}.bind(this)),this.setRenderOrder(null),Object(pt.a)(this,As.a.RENDER,this.handleRender_,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createCircle_=function(){var t=this.getRadius(),e=this.getBlur(),n=t+e+1,r=2*n,o=Object(ft.a)(r,r);o.shadowOffsetX=o.shadowOffsetY=this.shadow_,o.shadowBlur=e,o.shadowColor="#000",o.beginPath();var c=n-this.shadow_;return o.arc(c,c,t,0,2*Math.PI,!0),o.fill(),o.canvas.toDataURL()},e.prototype.getBlur=function(){return this.get(ac)},e.prototype.getGradient=function(){return this.get(cc)},e.prototype.getRadius=function(){return this.get(uc)},e.prototype.handleGradientChanged_=function(){this.gradient_=function(t){for(var e=1,n=256,r=Object(ft.a)(e,n),o=r.createLinearGradient(0,0,e,n),c=1/(t.length-1),i=0,h=t.length;i1&&void 0!==arguments[1]?arguments[1]:{};gc.installed||(gc.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(pc,e),t.component(pc.name,pc))}var vc=gc;function mc(object,t){var e=se()(object);if(Ht.a){var n=Ht()(object);t&&(n=qt()(n).call(n,(function(t){return Jt()(object,t).enumerable}))),e.push.apply(e,n)}return e}var yc={name:"vl-style-icon",mixins:[Xn],props:{src:String,size:{type:Array,validator:Object(ce.a)(2)},img:Image,imgSize:{type:Array,validator:Object(ce.a)(2)},anchor:{type:Array,default:function(){return[.5,.5]},validator:Object(ce.a)(2)},anchorOrigin:{type:String,default:"top-left"},anchorXUnits:{type:String,default:"fraction"},anchorYUnits:{type:String,default:"fraction"},color:[Array,String],crossOrigin:String,offset:{type:Array,default:function(){return[0,0]},validator:Object(ce.a)(2)},offsetOrigin:{type:String,default:"top-left"},opacity:{type:Number,default:1},scale:{type:Number,default:1},rotateWithView:{type:Boolean,default:!1},rotation:{type:Number,default:0}},methods:{createStyle:function(){return Fi(this.src&&!this.img||!this.src&&this.img,"vl-style-icon one of 'image' or 'src' prop must be provided."),Fi(!this.img||this.img&&!Object(ce.k)(this.imgSize),"vl-style-icon 'imgSize' must be set when image is provided."),new sc.a({anchor:this.anchor,anchorOrigin:this.anchorOrigin,anchorXUnits:this.anchorXUnits,anchorYUnits:this.anchorYUnits,color:this.color,crossOrigin:this.crossOrigin,offset:this.offset,offsetOrigin:this.offsetOrigin,opacity:this.opacity,scale:this.scale,rotateWithView:this.rotateWithView,rotation:this.rotation,size:this.size,src:this.src,img:this.img,imgSize:this.imgSize})}},watch:function(t){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:{};bc.installed||(bc.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(_c,e),t.component(_c.name,_c))}var xc=bc,Oc=function(t){function e(e){var n=e||{};t.call(this,n),this.type=Rs}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(ks);Oc.prototype.getSource;var wc=Oc;var jc=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="layer.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-layer-image",mixins:[cr],props:{},methods:{createLayer:function(){return new wc({id:this.id,minResolution:this.minResolution,maxResolution:this.maxResolution,opacity:this.opacity,visible:this.visible,extent:this.extent,zIndex:this.zIndex,source:this._source})}}},undefined,undefined);function Sc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Sc.installed||(Sc.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(jc,e),t.component(jc.name,jc))}var Ec=Sc,Cc=function(t){function e(e,n,r,o){t.call(this),this.extent=e,this.pixelRatio_=r,this.resolution=n,this.state=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(){this.dispatchEvent(ht.a.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return Object(st.b)()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){Object(st.b)()},e}(ut.a),Tc=n(30),Rc=function(t){function e(e,n,r,o,c,h){t.call(this,e,n,r,Tc.a.IDLE),this.src_=o,this.image_=new Image,null!==c&&(this.image_.crossOrigin=c),this.imageListenerKeys_=null,this.state=Tc.a.IDLE,this.imageLoadFunction_=h}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=Tc.a.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Object(et.A)(this.extent)/this.image_.height),this.state=Tc.a.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=Tc.a.IDLE&&this.state!=Tc.a.ERROR||(this.state=Tc.a.LOADING,this.changed(),this.imageListenerKeys_=[Object(pt.b)(this.image_,ht.a.ERROR,this.handleImageError_,this),Object(pt.b)(this.image_,ht.a.LOAD,this.handleImageLoad_,this)],this.imageLoadFunction_(this,this.src_))},e.prototype.setImage=function(image){this.image_=image},e.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(pt.e),this.imageListenerKeys_=null},e}(Cc),Ic=function(t){function e(e,n,r,o,c,h){var l=e.getExtent(),f=n.getExtent(),d=f?Object(et.B)(r,f):r,v=xt(e,n,Object(et.x)(d),o),m=new St(e,n,d,l,.5*v),y=h(m.calculateSourceExtent(),v,c),_=Tc.a.LOADED;y&&(_=Tc.a.IDLE);var x=y?y.getPixelRatio():1;t.call(this,r,o,x,_),this.targetProj_=n,this.maxSourceExtent_=l,this.triangulation_=m,this.targetResolution_=o,this.targetExtent_=r,this.sourceImage_=y,this.sourcePixelRatio_=x,this.canvas_=null,this.sourceListenerKey_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state==Tc.a.LOADING&&this.unlistenSource_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.getProjection=function(){return this.targetProj_},e.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==Tc.a.LOADED){var e=Object(et.E)(this.targetExtent_)/this.targetResolution_,n=Object(et.A)(this.targetExtent_)/this.targetResolution_;this.canvas_=wt(e,n,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0)}this.state=t,this.changed()},e.prototype.load=function(){if(this.state==Tc.a.IDLE){this.state=Tc.a.LOADING,this.changed();var t=this.sourceImage_.getState();t==Tc.a.LOADED||t==Tc.a.ERROR?this.reproject_():(this.sourceListenerKey_=Object(pt.a)(this.sourceImage_,ht.a.CHANGE,(function(t){var e=this.sourceImage_.getState();e!=Tc.a.LOADED&&e!=Tc.a.ERROR||(this.unlistenSource_(),this.reproject_())}),this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){Object(pt.e)(this.sourceListenerKey_),this.sourceListenerKey_=null},e}(Cc),Pc="imageloadstart",Fc="imageloadend",Lc="imageloaderror",Ac=function(t){function e(e,image){t.call(this,e),this.image=image}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ft.a);function Mc(image,t){image.getImage().src=t}var kc=function(t){function e(e){t.call(this,{attributions:e.attributions,projection:e.projection,state:e.state}),this.resolutions_=void 0!==e.resolutions?e.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var e=Object(Lo.h)(this.resolutions_,t,0);t=this.resolutions_[e]}return t},e.prototype.getImage=function(t,e,n,r){var o=this.getProjection();if(o&&r&&!Object(bt.c)(o,r)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Object(bt.c)(this.reprojectedImage_.getProjection(),r)&&this.reprojectedImage_.getResolution()==e&&Object(et.p)(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new Ic(o,r,t,e,n,function(t,e,n){return this.getImageInternal(t,e,n,o)}.bind(this)),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return o&&(r=o),this.getImageInternal(t,e,n,r)},e.prototype.getImageInternal=function(t,e,n,r){return Object(st.b)()},e.prototype.handleImageChange=function(t){var image=t.target;switch(image.getState()){case Tc.a.LOADING:this.loading=!0,this.dispatchEvent(new Ac(Pc,image));break;case Tc.a.LOADED:this.loading=!1,this.dispatchEvent(new Ac(Fc,image));break;case Tc.a.ERROR:this.loading=!1,this.dispatchEvent(new Ac(Lc,image))}},e}(Lt.a),Dc=function(t){function e(e){var n=void 0!==e.crossOrigin?e.crossOrigin:null,r=void 0!==e.imageLoadFunction?e.imageLoadFunction:Mc;t.call(this,{attributions:e.attributions,projection:Object(bt.e)(e.projection)}),this.url_=e.url,this.imageExtent_=e.imageExtent,this.image_=new Rc(this.imageExtent_,void 0,1,this.url_,n,r),this.imageSize_=e.imageSize?e.imageSize:null,Object(pt.a)(this.image_,ht.a.CHANGE,this.handleImageChange,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,e,n,r){return Object(et.F)(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(e){if(this.image_.getState()==Tc.a.LOADED){var n,r,o=this.image_.getExtent(),image=this.image_.getImage();this.imageSize_?(n=this.imageSize_[0],r=this.imageSize_[1]):(n=image.width,r=image.height);var c=Object(et.A)(o)/r,h=Math.ceil(Object(et.E)(o)/c);if(h!=n){var l=Object(ft.a)(h,r),canvas=l.canvas;l.drawImage(image,0,0,n,r,0,0,canvas.width,canvas.height),this.image_.setImage(canvas)}}t.prototype.handleImageChange.call(this,e)},e}(kc),Nc={extent:{type:Array,required:!0,validator:function(t){return 4===t.length}},loadFunc:Function,size:{type:Array,validator:function(t){return 2===t.length}},url:{type:String,required:!0,validator:function(t){return!!t.length}}};var $c=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="source.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-source-image-static",mixins:[Un,Mr],props:Nc,methods:{createSource:function(){return new Dc({attributions:this.attributions,crossOrigin:this.crossOrigin,imageExtent:this.extent,imageLoadFunction:this.loadFunc,logo:this.logo,projection:this.projection,imageSize:this.size,url:this.urlTmpl})}},watch:de(se()(Nc),(function(){return function(){this.scheduleRecreate()}}))},undefined,undefined);function Gc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gc.installed||(Gc.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()($c,e),t.component($c.name,$c))}var zc=Gc,Bc="1.3.0",Vc={CARMENTA_SERVER:"carmentaserver",GEOSERVER:"geoserver",MAPSERVER:"mapserver",QGIS:"qgis"},Uc=n(223),Wc=[101,101],Yc=function(t){function e(e){var n=e||{};t.call(this,{attributions:n.attributions,projection:n.projection,resolutions:n.resolutions}),this.crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null,this.url_=n.url,this.imageLoadFunction_=void 0!==n.imageLoadFunction?n.imageLoadFunction:Mc,this.params_=n.params||{},this.v13_=!0,this.updateV13_(),this.serverType_=n.serverType,this.hidpi_=void 0===n.hidpi||n.hidpi,this.image_=null,this.imageSize_=[0,0],this.renderedRevision_=0,this.ratio_=void 0!==n.ratio?n.ratio:1.5}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getGetFeatureInfoUrl=function(t,e,n,r){if(void 0!==this.url_){var o=Object(bt.e)(n),c=this.getProjection();c&&c!==o&&(e=xt(c,o,t,e),t=Object(bt.k)(t,o,c));var h=Object(et.z)(t,e,0,Wc),l={SERVICE:"WMS",VERSION:Bc,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};Object(nt.a)(l,this.params_,r);var f=Math.floor((t[0]-h[0])/e),d=Math.floor((h[3]-t[1])/e);return l[this.v13_?"I":"X"]=f,l[this.v13_?"J":"Y"]=d,this.getRequestUrl_(h,Wc,1,c||o,l)}},e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,e,n,r){if(void 0===this.url_)return null;e=this.findNearestResolution(e),1==n||this.hidpi_&&void 0!==this.serverType_||(n=1);var o=e/n,c=Object(et.x)(t),h=Math.ceil(Object(et.E)(t)/o),l=Math.ceil(Object(et.A)(t)/o),f=Object(et.z)(c,o,0,[h,l]),d=Math.ceil(this.ratio_*Object(et.E)(t)/o),v=Math.ceil(this.ratio_*Object(et.A)(t)/o),m=Object(et.z)(c,o,0,[d,v]),image=this.image_;if(image&&this.renderedRevision_==this.getRevision()&&image.getResolution()==e&&image.getPixelRatio()==n&&Object(et.g)(image.getExtent(),f))return image;var y={SERVICE:"WMS",VERSION:Bc,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Object(nt.a)(y,this.params_),this.imageSize_[0]=Math.round(Object(et.E)(m)/o),this.imageSize_[1]=Math.round(Object(et.A)(m)/o);var _=this.getRequestUrl_(m,this.imageSize_,n,r,y);return this.image_=new Rc(m,e,n,_,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),Object(pt.a)(this.image_,ht.a.CHANGE,this.handleImageChange,this),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,e,n,r,o){if(Object(Ct.a)(void 0!==this.url_,9),o[this.v13_?"CRS":"SRS"]=r.getCode(),"STYLES"in this.params_||(o.STYLES=""),1!=n)switch(this.serverType_){case Vc.GEOSERVER:var c=90*n+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+c:o.FORMAT_OPTIONS="dpi:"+c;break;case Vc.MAPSERVER:o.MAP_RESOLUTION=90*n;break;case Vc.CARMENTA_SERVER:case Vc.QGIS:o.DPI=90*n;break;default:Object(Ct.a)(!1,8)}o.WIDTH=e[0],o.HEIGHT=e[1];var h,l=r.getAxisOrientation();return h=this.v13_&&"ne"==l.substr(0,2)?[t[1],t[0],t[3],t[2]]:t,o.BBOX=h.join(","),Ut(this.url_,o)},e.prototype.getUrl=function(){return this.url_},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},e.prototype.updateParams=function(t){Object(nt.a)(this.params_,t),this.updateV13_(),this.image_=null,this.changed()},e.prototype.updateV13_=function(){var t=this.params_.VERSION||Bc;this.v13_=Object(Uc.a)(t,"1.3")>=0},e}(kc);var Xc=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="source.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-source-image-wms",mixins:[Un,Mr,Zr],props:{hidpi:{type:Boolean,default:!0},serverType:{type:String,validator:function(t){var e;return!t||he()(e=ns()(Vc)).call(e,t)}},imageLoadFunction:Function,ratio:{type:Number,default:1.5},resolutions:Array,url:{type:String,required:!0,validator:function(t){return!!t.length}}},methods:{createOlObject:function(){return new Yc({attributions:this.attributions,crossOrigin:this.crossOrigin,hidpi:this.hidpi,serverType:this.serverType,imageLoadFunction:this.imageLoadFunction,params:this.allParams,projection:this.projection,ratio:this.ratio,resolutions:this.resolutions,url:this.urlTmpl})}}},undefined,undefined);function Hc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Hc.installed||(Hc.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Xc,e),t.component(Xc.name,Xc))}var Kc=Hc;var qc=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="geom.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-geom-line-string",mixins:[Dn],props:{},computed:{type:Object(ce.d)(ae.e.LINE_STRING)},methods:{createGeometry:function(){return new bs.a(this.toViewProj(this.coordinates))}}},undefined,undefined);function Zc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Zc.installed||(Zc.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(qc,e),t.component(qc.name,qc))}var Jc=Zc,Qc=n(198),tu=function(t){function e(e){t.call(this),this.element=e.element?e.element:null,this.target_=null,this.map_=null,this.listenerKeys=[],this.render=e.render?e.render:Ao.c,e.target&&this.setTarget(e.target)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){Object(ft.e)(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(map){this.map_&&Object(ft.e)(this.element);for(var i=0,t=this.listenerKeys.length;i0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!Object(Lo.b)(e,this.renderedAttributions_)){Object(ft.d)(this.ulElement_);for(var i=0,r=e.length;i0?view.animate({rotation:0,duration:this.duration_,easing:ct.b}):view.setRotation(0))},e}(tu),su=function(t){function e(e){var n=e||{};t.call(this,{element:document.createElement("div"),target:n.target});var r=void 0!==n.className?n.className:"ol-zoom",o=void 0!==n.delta?n.delta:1,c=void 0!==n.zoomInLabel?n.zoomInLabel:"+",h=void 0!==n.zoomOutLabel?n.zoomOutLabel:"−",l=void 0!==n.zoomInTipLabel?n.zoomInTipLabel:"Zoom in",f=void 0!==n.zoomOutTipLabel?n.zoomOutTipLabel:"Zoom out",d=document.createElement("button");d.className=r+"-in",d.setAttribute("type","button"),d.title=l,d.appendChild("string"==typeof c?document.createTextNode(c):c),Object(pt.a)(d,ht.a.CLICK,this.handleClick_.bind(this,o));var v=document.createElement("button");v.className=r+"-out",v.setAttribute("type","button"),v.title=f,v.appendChild("string"==typeof h?document.createTextNode(h):h),Object(pt.a)(v,ht.a.CLICK,this.handleClick_.bind(this,-o));var m=r+" "+eu.e+" "+eu.b,element=this.element;element.className=m,element.appendChild(d),element.appendChild(v),this.duration_=void 0!==n.duration?n.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var view=this.getMap().getView();if(view){var e=view.getResolution();if(e){var n=view.constrainResolution(e,t);this.duration_>0?(view.getAnimating()&&view.cancelAnimations(),view.animate({resolution:n,duration:this.duration_,easing:ct.b})):view.setResolution(n)}}},e}(tu);function au(t){var e=t||{},n=new je.a;return(void 0===e.zoom||e.zoom)&&n.push(new su(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&n.push(new ou(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&n.push(new nu(e.attributionOptions)),n}var cu=function(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0};cu.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},cu.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},cu.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]0&&this.points_[n+2]>t;)n-=3;var r=this.points_[e+2]-this.points_[n+2];if(r<1e3/60)return!1;var o=this.points_[e]-this.points_[n],c=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(c,o),this.initialVelocity_=Math.sqrt(o*o+c*c)/r,this.initialVelocity_>this.minVelocity_},cu.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},cu.prototype.getAngle=function(){return this.angle_};var uu=cu;function hu(t){var e=!1;if(t.type==rs.a.DBLCLICK){var n=t.originalEvent,map=t.map,r=t.coordinate,o=n.shiftKey?-this.delta_:this.delta_,view=map.getView();Object(Jn.f)(view,o,r,this.duration_),t.preventDefault(),e=!0}return!e}var lu=function(t){function e(e){t.call(this,{handleEvent:hu});var n=e||{};this.delta_=n.delta?n.delta:1,this.duration_=void 0!==n.duration?n.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Jn.a),fu=n(32),du=function(t){function e(e){t.call(this,{stopDown:Ao.a});var n=e||{};this.kinetic_=n.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1,this.condition_=n.condition?n.condition:ds,this.noKinetic_=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().setHint(fu.a.INTERACTING,1));var e=this.targetPointers,n=Es(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var r=this.lastCentroid[0]-n[0],o=n[1]-this.lastCentroid[1],view=t.map.getView(),c=[r,o];Object(Ro.h)(c,view.getResolution()),Object(Ro.g)(c,view.getRotation()),Object(Ro.a)(c,view.getCenter()),c=view.constrainCenter(c),view.setCenter(c)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=e.length},e.prototype.handleUpEvent=function(t){var map=t.map,view=map.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var e=this.kinetic_.getDistance(),n=this.kinetic_.getAngle(),r=view.getCenter(),o=map.getPixelFromCoordinate(r),c=map.getCoordinateFromPixel([o[0]-e*Math.cos(n),o[1]-e*Math.sin(n)]);view.animate({center:view.constrainCenter(c),duration:500,easing:ct.b})}return this.panning_&&(this.panning_=!1,view.setHint(fu.a.INTERACTING,-1)),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var view=t.map.getView();return this.lastCentroid=null,view.getAnimating()&&view.setCenter(t.frameState.viewState.center),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(Cs),pu=n(158),gu=function(t){function e(e){var n=e||{};t.call(this,{stopDown:Ao.a}),this.condition_=n.condition?n.condition:as,this.lastAngle_=void 0,this.duration_=void 0!==n.duration?n.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){if(vs(t)){var map=t.map,view=map.getView();if(view.getConstraints().rotation!==pu.c){var e=map.getSize(),n=t.pixel,r=Math.atan2(e[1]/2-n[1],n[0]-e[0]/2);if(void 0!==this.lastAngle_){var o=r-this.lastAngle_,c=view.getRotation();Object(Jn.d)(view,c-o)}this.lastAngle_=r}}},e.prototype.handleUpEvent=function(t){if(!vs(t))return!0;var view=t.map.getView();view.setHint(fu.a.INTERACTING,-1);var e=view.getRotation();return Object(Jn.c)(view,e,void 0,this.duration_),!1},e.prototype.handleDownEvent=function(t){return!!vs(t)&&(!(!hs(t)||!this.condition_(t))&&(t.map.getView().setHint(fu.a.INTERACTING,1),this.lastAngle_=void 0,!0))},e}(Cs),vu=n(192),mu=function(t){function e(e){t.call(this),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,n="px",style=this.element_.style;style.left=Math.min(t[0],e[0])+n,style.top=Math.min(t[1],e[1])+n,style.width=Math.abs(e[0]-t[0])+n,style.height=Math.abs(e[1]-t[1])+n},e.prototype.setMap=function(map){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var style=this.element_.style;style.left=style.top=style.width=style.height="inherit"}this.map_=map,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_,n=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixel,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new Ss.b([n])},e.prototype.getGeometry=function(){return this.geometry_},e}(vu.a),yu="boxstart",_u="boxdrag",bu="boxend",xu=function(t){function e(e,n,r){t.call(this,e),this.coordinate=n,this.mapBrowserEvent=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ft.a);function Ou(){var map=this.getMap(),view=map.getView(),t=map.getSize(),e=this.getGeometry().getExtent();if(this.out_){var n=view.calculateExtent(t),r=Object(et.n)([map.getPixelFromCoordinate(Object(et.v)(e)),map.getPixelFromCoordinate(Object(et.D)(e))]),o=view.getResolutionForExtent(r,t);Object(et.J)(n,1/o),e=n}var c=view.constrainResolution(view.getResolutionForExtent(e,t)),h=Object(et.x)(e);h=view.constrainCenter(h),view.animate({resolution:c,center:h,duration:this.duration_,easing:ct.b})}var wu=function(t){function e(e){var n=e||{},r=n.condition?n.condition:ps;t.call(this,{condition:r,className:n.className||"ol-dragzoom",onBoxEnd:Ou}),this.duration_=void 0!==n.duration?n.duration:200,this.out_=void 0!==n.out&&n.out}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(function(t){function e(e){t.call(this);var n=e||{};this.box_=new mu(n.className||"ol-dragbox"),this.minArea_=void 0!==n.minArea?n.minArea:64,this.onBoxEnd_=n.onBoxEnd?n.onBoxEnd:Ao.c,this.startPixel_=null,this.condition_=n.condition?n.condition:us,this.boxEndCondition_=n.boxEndCondition?n.boxEndCondition:this.defaultBoxEndCondition}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.defaultBoxEndCondition=function(t,e,n){var r=n[0]-e[0],o=n[1]-e[1];return r*r+o*o>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){vs(t)&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new xu(_u,t.coordinate,t)))},e.prototype.handleUpEvent=function(t){return!vs(t)||(this.box_.setMap(null),this.boxEndCondition_(t,this.startPixel_,t.pixel)&&(this.onBoxEnd_(t),this.dispatchEvent(new xu(bu,t.coordinate,t))),!1)},e.prototype.handleDownEvent=function(t){return!!vs(t)&&(!(!hs(t)||!this.condition_(t))&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new xu(yu,t.coordinate,t)),!0))},e}(Cs)),ju=37,Su=38,Eu=39,Cu=40;function Tu(t){var e=!1;if(t.type==ht.a.KEYDOWN){var n=t.originalEvent.keyCode;if(this.condition_(t)&&(n==Cu||n==ju||n==Eu||n==Su)){var view=t.map.getView(),r=view.getResolution()*this.pixelDelta_,o=0,c=0;n==Cu?c=-r:n==ju?o=-r:n==Eu?o=r:c=r;var h=[o,c];Object(Ro.g)(h,view.getRotation()),Object(Jn.b)(view,h,this.duration_),t.preventDefault(),e=!0}}return!e}var Ru=function(t){function e(e){t.call(this,{handleEvent:Tu});var n=e||{};this.defaultCondition_=function(t){return ds(t)&&gs(t)},this.condition_=void 0!==n.condition?n.condition:this.defaultCondition_,this.duration_=void 0!==n.duration?n.duration:100,this.pixelDelta_=void 0!==n.pixelDelta?n.pixelDelta:128}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Jn.a);function Iu(t){var e=!1;if(t.type==ht.a.KEYDOWN||t.type==ht.a.KEYPRESS){var n=t.originalEvent.charCode;if(this.condition_(t)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){var map=t.map,r=n=="+".charCodeAt(0)?this.delta_:-this.delta_,view=map.getView();Object(Jn.f)(view,r,void 0,this.duration_),t.preventDefault(),e=!0}}return!e}var Pu=function(t){function e(e){t.call(this,{handleEvent:Iu});var n=e||{};this.condition_=n.condition?n.condition:gs,this.delta_=n.delta?n.delta:1,this.duration_=void 0!==n.duration?n.duration:100}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Jn.a),Fu="trackpad",Lu="wheel",Au=function(t){function e(e){var n=e||{};t.call(this,n),this.delta_=0,this.duration_=void 0!==n.duration?n.duration:250,this.timeout_=void 0!==n.timeout?n.timeout:80,this.useAnchor_=void 0===n.useAnchor||n.useAnchor,this.constrainResolution_=n.constrainResolution||!1,this.condition_=n.condition?n.condition:us,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.trackpadDeltaPerZoom_=300,this.trackpadZoomBuffer_=1.5}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.decrementInteractingHint_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().setHint(fu.a.INTERACTING,-1)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=t.type;if(e!==ht.a.WHEEL&&e!==ht.a.MOUSEWHEEL)return!0;t.preventDefault();var n,map=t.map,r=t.originalEvent;if(this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==ht.a.WHEEL?(n=r.deltaY,os.c&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=os.b),r.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)):t.type==ht.a.MOUSEWHEEL&&(n=-r.wheelDeltaY,os.h&&(n/=3)),0===n)return!1;var o=Date.now();if(void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?Fu:Lu),this.mode_===Fu){var view=map.getView();this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):view.setHint(fu.a.INTERACTING,1),this.trackpadTimeoutId_=setTimeout(this.decrementInteractingHint_.bind(this),this.trackpadEventGap_);var c=view.getResolution()*Math.pow(2,n/this.trackpadDeltaPerZoom_),h=view.getMinResolution(),l=view.getMaxResolution(),f=0;if(cl&&(c=Math.min(c,l*this.trackpadZoomBuffer_),f=-1),this.lastAnchor_){var d=view.calculateCenterZoom(c,this.lastAnchor_);view.setCenter(view.constrainCenter(d))}return view.setResolution(c),0===f&&this.constrainResolution_&&view.animate({resolution:view.constrainResolution(c,n>0?-1:1),easing:ct.b,anchor:this.lastAnchor_,duration:this.duration_}),f>0?view.animate({resolution:h,easing:ct.b,anchor:this.lastAnchor_,duration:500}):f<0&&view.animate({resolution:l,easing:ct.b,anchor:this.lastAnchor_,duration:500}),this.startTime_=o,!1}this.delta_+=n;var v=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,map),v),!1},e.prototype.handleWheelZoom_=function(map){var view=map.getView();view.getAnimating()&&view.cancelAnimations();var t=Object(it.a)(this.delta_,-1,1);Object(Jn.f)(view,-t,this.lastAnchor_,this.duration_),this.mode_=void 0,this.delta_=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}(Jn.a),Mu=function(t){function e(e){var n=e||{},r=n;r.stopDown||(r.stopDown=Ao.a),t.call(this,r),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==n.threshold?n.threshold:.3,this.duration_=void 0!==n.duration?n.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){var e=0,n=this.targetPointers[0],r=this.targetPointers[1],o=Math.atan2(r.clientY-n.clientY,r.clientX-n.clientX);if(void 0!==this.lastAngle_){var c=o-this.lastAngle_;this.rotationDelta_+=c,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=c}this.lastAngle_=o;var map=t.map,view=map.getView();if(view.getConstraints().rotation!==pu.c){var h=map.getViewport().getBoundingClientRect(),l=Es(this.targetPointers);if(l[0]-=h.left,l[1]-=h.top,this.anchor_=map.getCoordinateFromPixel(l),this.rotating_){var f=view.getRotation();map.render(),Object(Jn.d)(view,f+e,this.anchor_)}}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var view=t.map.getView();if(view.setHint(fu.a.INTERACTING,-1),this.rotating_){var e=view.getRotation();Object(Jn.c)(view,e,this.anchor_,this.duration_)}return!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var map=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||map.getView().setHint(fu.a.INTERACTING,1),!0}return!1},e}(Cs),ku=function(t){function e(e){var n=e||{},r=n;r.stopDown||(r.stopDown=Ao.a),t.call(this,r),this.constrainResolution_=n.constrainResolution||!1,this.anchor_=null,this.duration_=void 0!==n.duration?n.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){var e=1,n=this.targetPointers[0],r=this.targetPointers[1],o=n.clientX-r.clientX,c=n.clientY-r.clientY,h=Math.sqrt(o*o+c*c);void 0!==this.lastDistance_&&(e=this.lastDistance_/h),this.lastDistance_=h;var map=t.map,view=map.getView(),l=view.getResolution(),f=view.getMaxResolution(),d=view.getMinResolution(),v=l*e;v>f?(e=f/l,v=f):vview.getMaxResolution()){var n=this.lastScaleDelta_-1;Object(Jn.e)(view,e,this.anchor_,this.duration_,n)}return!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var map=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||map.getView().setHint(fu.a.INTERACTING,1),!0}return!1},e}(Cs);function Du(t){var e=t||{},n=new je.a,r=new uu(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&n.push(new gu),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&n.push(new lu({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&n.push(new du({condition:e.onFocusOnly?cs:void 0,kinetic:r})),(void 0===e.pinchRotate||e.pinchRotate)&&n.push(new Mu),(void 0===e.pinchZoom||e.pinchZoom)&&n.push(new ku({constrainResolution:e.constrainResolution,duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(n.push(new Ru),n.push(new Pu({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&n.push(new Au({condition:e.onFocusOnly?cs:void 0,constrainResolution:e.constrainResolution,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&n.push(new wu({duration:e.zoomDuration})),n}var Nu=n(178),$u=function(t){function e(e,n,r,canvas,o){var c=void 0!==o?Tc.a.IDLE:Tc.a.LOADED;t.call(this,e,n,r,c),this.loader_=void 0!==o?o:null,this.canvas_=canvas,this.error_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getError=function(){return this.error_},e.prototype.handleLoad_=function(t){t?(this.error_=t,this.state=Tc.a.ERROR):this.state=Tc.a.LOADED,this.changed()},e.prototype.load=function(){this.state==Tc.a.IDLE&&(this.state=Tc.a.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))},e.prototype.getImage=function(){return this.canvas_},e}(Cc),Gu=n(9),zu=function(t){function e(e,n,r,o,c){t.call(this,e),this.vectorContext=n,this.frameState=r,this.context=o,this.glContext=c}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ft.a),Bu=n(16),Vu=n(102),Uu=n(96),Wu=n(62),Yu=function(){};Yu.prototype.drawCustom=function(t,e,n){},Yu.prototype.drawGeometry=function(t){},Yu.prototype.setStyle=function(style){},Yu.prototype.drawCircle=function(t,e){},Yu.prototype.drawFeature=function(t,style){},Yu.prototype.drawGeometryCollection=function(t,e){},Yu.prototype.drawLineString=function(t,e){},Yu.prototype.drawMultiLineString=function(t,e){},Yu.prototype.drawMultiPoint=function(t,e){},Yu.prototype.drawMultiPolygon=function(t,e){},Yu.prototype.drawPoint=function(t,e){},Yu.prototype.drawPolygon=function(t,e){},Yu.prototype.drawText=function(t,e){},Yu.prototype.setFillStrokeStyle=function(t,e){},Yu.prototype.setImageStyle=function(t,e){},Yu.prototype.setTextStyle=function(t,e){};var Xu=Yu,Hu=function(t){function e(e,n,r,o,c){t.call(this),this.context_=e,this.pixelRatio_=n,this.extent_=r,this.transform_=o,this.viewRotation_=c,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=0,this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=0,this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=Object(Gu.c)()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawImages_=function(t,e,n,r){if(this.image_){var o=Object(Wu.c)(t,e,n,2,this.transform_,this.pixelCoordinates_),c=this.context_,h=this.tmpLocalTransform_,l=c.globalAlpha;1!=this.imageOpacity_&&(c.globalAlpha=l*this.imageOpacity_);var f=this.imageRotation_;this.imageRotateWithView_&&(f+=this.viewRotation_);for(var i=0,d=o.length;i_[2])y=[O+x*Math.ceil((_[0]-O)/x),t[1]]}var i,w=e.layerStatesArray;for(i=w.length-1;i>=0;--i){var j=w[i],S=j.layer;if(Ms(j,d)&&c.call(h,S)){var E=this.getLayerRenderer(S),source=S.getSource();if(source&&(l=E.forEachFeatureAtCoordinate(source.getWrapX()?y:t,e,n,v)),l)return l}}},e.prototype.forEachLayerAtPixel=function(t,e,n,r,o,c,h){return Object(st.b)()},e.prototype.hasFeatureAtCoordinate=function(t,e,n,r,o){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,Ao.b,this,r,o)},e.prototype.getLayerRenderer=function(t){var e=Object(st.c)(t);if(e in this.layerRenderers_)return this.layerRenderers_[e];for(var n,i=0,r=this.layerRendererConstructors_.length;i=0;--i){var y=d[i],_=y.layer;if(Ms(y,f)&&c.call(h,_))if(l=this.getLayerRenderer(_).forEachLayerAtCoordinate(m,e,n,r,o))return l}},e.prototype.registerLayerRenderers=function(e){t.prototype.registerLayerRenderers.call(this,e);for(var i=0,n=e.length;i=.5&&v>=.5&&n.drawImage(image,0,0,+image.width,+image.height,Math.round(l),Math.round(f),Math.round(d),Math.round(v)),n.globalAlpha=h,o&&n.restore()}this.postCompose(n,t,e)},e.prototype.getImage=function(){return Object(st.b)()},e.prototype.getImageTransform=function(){return Object(st.b)()},e.prototype.forEachLayerAtCoordinate=function(t,e,n,r,o){if(this.getImage()){var c=Object(Gu.a)(this.coordinateToCanvasPixelTransform,t.slice());Object(Ro.h)(c,e.viewState.resolution/this.renderedResolution),this.hitCanvasContext_||(this.hitCanvasContext_=Object(ft.a)(1,1)),this.hitCanvasContext_.clearRect(0,0,1,1),this.hitCanvasContext_.drawImage(this.getImage(),c[0],c[1],1,1,0,0,1,1);var h=this.hitCanvasContext_.getImageData(0,0,1,1).data;return h[3]>0?r.call(o,this.getLayer(),h):void 0}},e}(nh),oh=function(t){function e(n){if(t.call(this,n),this.image_=null,this.imageTransform_=Object(Gu.c)(),this.skippedFeatures_=[],this.vectorRenderer_=null,n.getType()===Fs)for(var i=0,r=Qu.length;i0&&(this.newTiles_=!0):h.setState(at.a.LOADED)),this.isDrawableTile_(h)||(h=h.getInterimTile()),h},e.prototype.prepareFrame=function(t,e){var n=t.pixelRatio,r=t.size,o=t.viewState,c=o.projection,h=o.resolution,l=o.center,f=this.getLayer(),d=f.getSource(),v=d.getRevision(),m=d.getTileGridForProjection(c),y=m.getZForResolution(h,this.zDirection),_=m.getResolution(y),x=Math.round(h/_)||1,O=t.extent;if(void 0!==e.extent&&(O=Object(et.B)(O,e.extent)),Object(et.H)(O))return!1;var w=m.getTileRangeForExtentAndZ(O,y),j=m.getTileRangeExtent(y,w),S=d.getTilePixelRatio(n),E={};E[y]={};var C,T,R,I=this.createLoadedTileFinder(d,c,E),P=t.viewHints,F=P[fu.a.ANIMATING]||P[fu.a.INTERACTING],L=this.tmpExtent,A=this.tmpTileRange_;for(this.newTiles_=!1,T=w.minX;T<=w.maxX;++T)for(R=w.minY;R<=w.maxY;++R)if(!(Date.now()-t.time>16&&F)){if(C=this.getTile(y,T,R,n,c),this.isDrawableTile_(C)){var M=Object(st.c)(this);if(C.getState()==at.a.LOADED){E[y][C.tileCoord.toString()]=C;var k=C.inTransition(M);this.newTiles_||!k&&-1!==this.renderedTiles.indexOf(C)||(this.newTiles_=!0)}if(1===C.getAlpha(M,t.time))continue}var D=m.getTileCoordChildTileRange(C.tileCoord,A,L),N=!1;D&&(N=I(y+1,D)),N||m.forEachTileCoordParentTileRange(C.tileCoord,I,null,A,L)}var $=_*n/S*x;if(!(this.renderedResolution&&Date.now()-t.time>16&&F)&&(this.newTiles_||!this.renderedExtent_||!Object(et.g)(this.renderedExtent_,O)||this.renderedRevision!=v||x!=this.oversampling_||!F&&$!=this.renderedResolution)){var G=this.context;if(G){var z=d.getTilePixelSize(y,n,c),B=Math.round(w.getWidth()*z[0]/x),V=Math.round(w.getHeight()*z[1]/x),canvas=G.canvas;canvas.width!=B||canvas.height!=V?(this.oversampling_=x,canvas.width=B,canvas.height=V):((this.renderedExtent_&&!Object(et.p)(j,this.renderedExtent_)||this.renderedRevision!=v)&&G.clearRect(0,0,B,V),x=this.oversampling_)}this.renderedTiles.length=0;var U,W,Y,i,X,H,K,Z,J,Q,tt=Object.keys(E).map(Number);for(tt.sort((function(a,b){return a===y?1:b===y?-1:a>b?1:a0},e.prototype.drawTileImage=function(t,e,n,r,o,c,h,l,f){var image=this.getTileImage(t);if(image){var d=Object(st.c)(this),v=f?t.getAlpha(d,e.time):1,m=this.getLayer().getSource();1!==v||m.getOpaque(e.viewState.projection)||this.context.clearRect(r,o,c,h);var y=v!==this.context.globalAlpha;y&&(this.context.save(),this.context.globalAlpha=v),this.context.drawImage(image,l,l,image.width-2*l,image.height-2*l,r,o,c,h),y&&this.context.restore(),1!==v?e.animate=!0:f&&t.endTransition(d)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getImageTransform=function(){return this.imageTransform_},e.prototype.getTileImage=function(t){return t.getImage()},e}(rh);ch.handles=function(t){return t.getType()===Is},ch.create=function(t,e){return new ch(e)},ch.prototype.getLayer;var uh=ch,hh=function(){};hh.prototype.getReplay=function(t,e){return Object(st.b)()},hh.prototype.isEmpty=function(){return Object(st.b)()},hh.prototype.addDeclutter=function(t){return Object(st.b)()};var lh=hh,fh={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"},dh=n(85),ph=n(105),gh=n(370);function vh(t,e,n,r,text,o,c,h){for(var data,l,f,d=[],v=t[e]>t[n-r],m=text.length,y=t[e],_=t[e+1],x=t[e+=r],O=t[e+1],w=0,j=Math.sqrt(Math.pow(x-y,2)+Math.pow(O-_,2)),S="",E=0,i=0;i0?-Math.PI:Math.PI),void 0!==f){var F=P-f;if(F+=F>Math.PI?-2*Math.PI:F<-Math.PI?2*Math.PI:0,Math.abs(F)>h)return null}var L=I/j,A=Object(it.c)(y,x,L),M=Object(it.c)(_,O,L);f==P?(v&&(data[0]=A,data[1]=M,data[2]=T/2),data[4]=S):(E=T,data=[A,M,T/2,P,S=C],v?d.unshift(data):d.push(data),f=P),c+=T}return d}var mh={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},yh=[mh.FILL],_h=[mh.STROKE],bh=[mh.BEGIN_PATH],xh=[mh.CLOSE_PATH],Oh=mh,wh=[fh.POLYGON,fh.CIRCLE,fh.LINE_STRING,fh.IMAGE,fh.TEXT,fh.DEFAULT],jh={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},Sh=Object(et.j)(),Eh=Object(Gu.c)(),Ch=function(t){function e(e,n,r,o,c,h){t.call(this),this.declutterTree=h,this.tolerance=e,this.maxExtent=n,this.overlaps=c,this.pixelRatio=o,this.maxLineWidth=0,this.resolution=r,this.alignFill_,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.coordinateCache_={},this.renderedTransform_=Object(Gu.c)(),this.hitDetectionInstructions=[],this.pixelCoordinates_=null,this.state={},this.viewRotation_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.replayTextBackground_=function(t,e,n,r,o,c,h){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,r),t.lineTo.apply(t,o),t.lineTo.apply(t,e),c&&(this.alignFill_=c[2],this.fill_(t)),h&&(this.setStrokeStyle_(t,h),t.stroke())},e.prototype.replayImage_=function(t,e,n,image,r,o,c,h,l,f,d,v,m,y,_,x,O,w){var j=O||w;e-=r*=m,n-=o*=m;var S,E,C,T,R=_+f>image.width?image.width-f:_,I=h+d>image.height?image.height-d:h,P=x[3]+R*m+x[1],F=x[0]+I*m+x[2],L=e-x[3],A=n-x[0];(j||0!==v)&&(S=[L,A],E=[L+P,A],C=[L+P,A+F],T=[L,A+F]);var M=null;if(0!==v){var k=e+r,D=n+o;M=Object(Gu.b)(Eh,k,D,1,1,v,-k,-D),Object(et.l)(Sh),Object(et.r)(Sh,Object(Gu.a)(Eh,S)),Object(et.r)(Sh,Object(Gu.a)(Eh,E)),Object(et.r)(Sh,Object(Gu.a)(Eh,C)),Object(et.r)(Sh,Object(Gu.a)(Eh,T))}else Object(et.k)(L,A,L+P,A+F,Sh);var canvas=t.canvas,N=w?w[2]*m/2:0,$=Sh[0]-N<=canvas.width&&Sh[2]+N>=0&&Sh[1]-N<=canvas.height&&Sh[3]+N>=0;if(y&&(e=Math.round(e),n=Math.round(n)),c){if(!$&&1==c[4])return;Object(et.q)(c,Sh);var G=$?[t,M?M.slice(0):null,l,image,f,d,R,I,e,n,m]:null;G&&j&&G.push(O,w,S,E,C,T),c.push(G)}else $&&(j&&this.replayTextBackground_(t,S,E,C,T,O,w),Object(Bu.n)(t,M,l,image,f,d,R,I,e,n,m))},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,n,r,o,c){var h=this.coordinates.length,l=this.getBufferedMaxExtent();c&&(e+=r);var i,f,d,v=[t[e],t[e+1]],m=[NaN,NaN],y=!0;for(i=e+r;i5){var n=t[4];if(1==n||n==t.length-5){var r={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};if(!this.declutterTree.collides(r)){this.declutterTree.insert(r);for(var o=5,c=t.length;o11&&this.replayTextBackground_(h[0],h[13],h[14],h[15],h[16],h[11],h[12]),Bu.n.apply(void 0,h))}}t.length=5,Object(et.l)(t)}}},e.prototype.replay_=function(t,e,n,r,o,c,h){var l;this.pixelCoordinates_&&Object(Lo.b)(e,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=Object(Wu.c)(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),Object(Gu.i)(this.renderedTransform_,e));for(var dd,f,d,v,m,y,_,x,image,O,w,j,S=!Object(nt.d)(n),i=0,E=r.length,C=0,T=0,R=0,I=null,P=null,F=this.coordinateCache_,L=this.viewRotation_,A={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:L},M=this.instructions!=r||this.overlaps?0:200;iM&&(this.fill_(t),T=0),R>M&&(t.stroke(),R=0),T||R||(t.beginPath(),v=m=NaN),++i;break;case Oh.CIRCLE:var D=l[C=k[1]],N=l[C+1],$=l[C+2]-D,G=l[C+3]-N,z=Math.sqrt($*$+G*G);t.moveTo(D+z,N),t.arc(D,N,z,0,2*Math.PI,!0),++i;break;case Oh.CLOSE_PATH:t.closePath(),++i;break;case Oh.CUSTOM:C=k[1],dd=k[2];var B=k[3],V=k[4],U=6==k.length?k[5]:void 0;A.geometry=B,A.feature=O,i in F||(F[i]=[]);var W=F[i];U?U(l,C,dd,2,W):(W[0]=l[C],W[1]=l[C+1],W.length=2),V(W,A),++i;break;case Oh.DRAW_IMAGE:C=k[1],dd=k[2],image=k[3],f=k[4],d=k[5],x=c?null:k[6];var Y=k[7],X=k[8],H=k[9],K=k[10],Z=k[11],J=k[12],Q=k[13],tt=k[14],it=void 0,ot=void 0,at=void 0;for(k.length>16?(it=k[15],ot=k[16],at=k[17]):(it=Bu.j,ot=at=!1),Z&&(J+=L);Cthis.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},e.prototype.createFill=function(t,e){var n=t.fillStyle,r=[Oh.SET_FILL_STYLE,n];return"string"!=typeof n&&r.push(!0),r},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[Oh.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,n){var r=t.fillStyle;"string"==typeof r&&t.currentFillStyle==r||(void 0!==r&&this.instructions.push(e.call(this,t,n)),t.currentFillStyle=r)},e.prototype.updateStrokeStyle=function(t,e){var n=t.strokeStyle,r=t.lineCap,o=t.lineDash,c=t.lineDashOffset,h=t.lineJoin,l=t.lineWidth,f=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=r||o!=t.currentLineDash&&!Object(Lo.b)(t.currentLineDash,o)||t.currentLineDashOffset!=c||t.currentLineJoin!=h||t.currentLineWidth!=l||t.currentMiterLimit!=f)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=r,t.currentLineDash=o,t.currentLineDashOffset=c,t.currentLineJoin=h,t.currentLineWidth=l,t.currentMiterLimit=f)},e.prototype.endGeometry=function(t,e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var n=[Oh.END_GEOMETRY,e];this.instructions.push(n),this.hitDetectionInstructions.push(n)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(et.d)(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Object(et.c)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(Xu),Th=function(t){function e(e,n,r,o,c,h){t.call(this,e,n,r,o,c,h),this.declutterGroup_=null,this.hitDetectionImage_=null,this.image_=null,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawCoordinates_=function(t,e,n,r){return this.appendFlatCoordinates(t,e,n,r,!1,!1)},e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),r=t.getStride(),o=this.coordinates.length,c=this.drawCoordinates_(n,0,n.length,r);this.instructions.push([Oh.DRAW_IMAGE,o,c,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([Oh.DRAW_IMAGE,o,c,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t,e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),r=t.getStride(),o=this.coordinates.length,c=this.drawCoordinates_(n,0,n.length,r);this.instructions.push([Oh.DRAW_IMAGE,o,c,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([Oh.DRAW_IMAGE,o,c,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t,e)}},e.prototype.finish=function(){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},e.prototype.setImageStyle=function(t,e){var n=t.getAnchor(),r=t.getSize(),o=t.getHitDetectionImage(1),image=t.getImage(1),c=t.getOrigin();this.anchorX_=n[0],this.anchorY_=n[1],this.declutterGroup_=e,this.hitDetectionImage_=o,this.image_=image,this.height_=r[1],this.opacity_=t.getOpacity(),this.originX_=c[0],this.originY_=c[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScale(),this.width_=r[0]},e}(Ch),Rh=function(t){function e(e,n,r,o,c,h){t.call(this,e,n,r,o,c,h)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawFlatCoordinates_=function(t,e,n,r){var o=this.coordinates.length,c=this.appendFlatCoordinates(t,e,n,r,!1,!1),h=[Oh.MOVE_TO_LINE_TO,o,c];return this.instructions.push(h),this.hitDetectionInstructions.push(h),n},e.prototype.drawLineString=function(t,e){var n=this.state,r=n.strokeStyle,o=n.lineWidth;if(void 0!==r&&void 0!==o){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([Oh.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],bh);var c=t.getFlatCoordinates(),h=t.getStride();this.drawFlatCoordinates_(c,0,c.length,h),this.hitDetectionInstructions.push(_h),this.endGeometry(t,e)}},e.prototype.drawMultiLineString=function(t,e){var n=this.state,r=n.strokeStyle,o=n.lineWidth;if(void 0!==r&&void 0!==o){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([Oh.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],bh);for(var c=t.getEnds(),h=t.getFlatCoordinates(),l=t.getStride(),f=0,i=0,d=c.length;it&&(w>O&&(O=w,_=j,x=i),w=0,j=i-o)),c=h,d=m,v=y),l=S,f=E}return(w+=h)>O?[j,i]:[_,x]}var Ah=n(374);var Mh={Circle:Fh,Default:Ch,Image:Th,LineString:Rh,Polygon:Fh,Text:function(t){function e(e,n,r,o,c,h){t.call(this,e,n,r,o,c,h),this.declutterGroup_,this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.widths_={},Bu.o.prune()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawText=function(t,e){var n=this.textFillState_,r=this.textStrokeState_,o=this.textState_;if(""!==this.text_&&o&&(n||r)){var i,c,h=this.coordinates.length,l=t.getType(),f=null,d=2,v=2;if(o.placement===Ah.a.LINE){if(!Object(et.F)(this.getBufferedMaxExtent(),t.getExtent()))return;var m;if(f=t.getFlatCoordinates(),v=t.getStride(),l==To.a.LINE_STRING)m=[f.length];else if(l==To.a.MULTI_LINE_STRING)m=t.getEnds();else if(l==To.a.POLYGON)m=t.getEnds().slice(0,1);else if(l==To.a.MULTI_POLYGON){var y=t.getEndss();for(m=[],i=0,c=y.length;i=E)&&f.push(C[i],C[i+1]);if(0==(d=f.length))return}d=this.appendFlatCoordinates(f,0,d,v,!1,!1),(o.backgroundFill||o.backgroundStroke)&&(this.setFillStrokeStyle(o.backgroundFill,o.backgroundStroke),o.backgroundFill&&(this.updateFillStyle(this.state,this.createFill,t),this.hitDetectionInstructions.push(this.createFill(this.state,t))),o.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e),this.drawTextImage_(label,h,d),this.endGeometry(t,e)}}},e.prototype.getImage=function(text,t,e,n){var label,r=n+t+text+e+this.pixelRatio;if(!Bu.o.containsKey(r)){var o=n?this.strokeStates[n]||this.textStrokeState_:null,c=e?this.fillStates[e]||this.textFillState_:null,h=this.textStates[t]||this.textState_,l=this.pixelRatio,f=h.scale*l,d=jh[h.textAlign||Bu.l],v=n&&o.lineWidth?o.lineWidth:0,m=text.split("\n"),y=m.length,_=[],x=function(t,e,n){for(var r=e.length,o=0,i=0;i=o;)Nh(n,t+r,t+o),Nh(n,t+o,t+r),Nh(n,t-o,t+r),Nh(n,t-r,t+o),Nh(n,t-r,t-o),Nh(n,t-o,t-r),Nh(n,t+o,t-r),Nh(n,t+r,t-o),2*((c+=1+2*++o)-r)+1>0&&(c+=1-2*(r-=1));return Dh[t]=n,n}(r);function _(t){for(var e=v.getImageData(0,0,f,f).data,i=0;i0){var r=void 0;return(!m||y!=fh.IMAGE&&y!=fh.TEXT||-1!==m.indexOf(t))&&(r=c(t)),r||void v.clearRect(0,0,f,f)}}this.declutterTree_&&(m=this.declutterTree_.all().map((function(t){return t.value})));var i,x,O,w,j,S=Object.keys(this.replaysByZIndex_).map(Number);for(S.sort(Lo.i),i=S.length-1;i>=0;--i){var E=S[i].toString();for(O=this.replaysByZIndex_[E],x=wh.length-1;x>=0;--x)if(void 0!==(w=O[y=wh[x]]))if(!h||y!=fh.IMAGE&&y!=fh.TEXT){if(j=w.replayHitDetection(v,d,n,o,_,l))return j}else{var C=h[E];C?C.push(w,d.slice(0)):h[E]=[w,d.slice(0)]}}},e.prototype.getClipCoords=function(t){var e=this.maxExtent_,n=e[0],r=e[1],o=e[2],c=e[3],h=[n,r,n,c,o,c,o,r];return Object(Wu.c)(h,0,8,2,t,h),h},e.prototype.getReplay=function(t,e){var n=void 0!==t?t.toString():"0",r=this.replaysByZIndex_[n];void 0===r&&(r={},this.replaysByZIndex_[n]=r);var o=r[e];void 0===o&&(o=new(0,Mh[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_,this.overlaps_,this.declutterTree_),r[e]=o);return o},e.prototype.getReplays=function(){return this.replaysByZIndex_},e.prototype.isEmpty=function(){return Object(nt.d)(this.replaysByZIndex_)},e.prototype.replay=function(t,e,n,r,o,c,h){var l=Object.keys(this.replaysByZIndex_).map(Number);l.sort(Lo.i),t.save(),this.clip(t,e);var i,f,d,v,m,y,_=c||wh;for(i=0,f=l.length;i=r)for(i=r;id[2];)k=N*++$,m=this.getTransform(e,k),x.replay(O,m,f,c,L),D-=N}if(Object(Bu.s)(O,f,A/2,M/2),C&&this.dispatchRenderEvent(O,e,m),O!=t){if(E){var G=t.globalAlpha;t.globalAlpha=n.opacity,t.drawImage(O.canvas,-j,-S),t.globalAlpha=G}else t.drawImage(O.canvas,-j,-S);O.translate(-j,-S)}E||(O.globalAlpha=P)}_&&t.restore()},e.prototype.composeFrame=function(t,e,n){var r=this.getTransform(t,0);this.preCompose(n,t,r),this.compose(n,t,e),this.postCompose(n,t,e,r)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,r,o){if(this.replayGroup_){var c=e.viewState.resolution,h=e.viewState.rotation,l=this.getLayer(),f={};return this.replayGroup_.forEachFeatureAtCoordinate(t,c,h,n,{},(function(t){var e=Object(st.c)(t);if(!(e in f))return f[e]=!0,r.call(o,t,l)}),null)}},e.prototype.handleFontsChanged_=function(t){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t,e){var n=this.getLayer(),r=n.getSource(),o=t.viewHints[fu.a.ANIMATING],c=t.viewHints[fu.a.INTERACTING],h=n.getUpdateWhileAnimating(),l=n.getUpdateWhileInteracting();if(!this.dirty_&&!h&&o||!l&&c)return!0;var f=t.extent,d=t.viewState,v=d.projection,m=d.resolution,y=t.pixelRatio,_=n.getRevision(),x=n.getRenderBuffer(),O=n.getRenderOrder();void 0===O&&(O=Bh);var w=Object(et.c)(f,x*m),j=d.projection.getExtent();if(r.getWrapX()&&d.projection.canWrapX()&&!Object(et.g)(j,t.extent)){var S=Object(et.E)(j),E=Math.max(Object(et.E)(w)/2,S);w[0]=j[0]-E,w[2]=j[2]+E}if(!this.dirty_&&this.renderedResolution_==m&&this.renderedRevision_==_&&this.renderedRenderOrder_==O&&Object(et.g)(this.renderedExtent_,w))return this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var C=new $h(Uh(m,y),w,m,y,r.getOverlaps(),this.declutterTree_,n.getRenderBuffer());r.loadFeatures(w,m,v);var T=function(t){var e,r=t.getStyleFunction()||n.getStyleFunction();if(r&&(e=r(t,m)),e){var o=this.renderFeature(t,m,y,e,C);this.dirty_=this.dirty_||o}}.bind(this);if(O){var R=[];r.forEachFeatureInExtent(w,(function(t){R.push(t)})),R.sort(O);for(var i=0,I=R.length;i=0;--i){var E=O[i];if(E.getState()!=at.a.ABORT)for(var C=E.tileCoord,T=w.getTileCoordExtent(C,this.tmpExtent)[0]-E.extent[0],R=void 0,I=0,P=E.tileKeys.length;I radius + v_halfWidth) {\n if (u_strokeColor.a == 0.0) {\n gl_FragColor = u_fillColor;\n } else {\n gl_FragColor = u_strokeColor;\n }\n gl_FragColor.a = gl_FragColor.a - (dist - (radius + v_halfWidth));\n } else if (u_fillColor.a == 0.0) {\n // Hooray, no fill, just stroke. We can use real antialiasing.\n gl_FragColor = u_strokeColor;\n if (dist < radius - v_halfWidth) {\n gl_FragColor.a = gl_FragColor.a - (radius - v_halfWidth - dist);\n }\n } else {\n gl_FragColor = u_fillColor;\n float strokeDist = radius - v_halfWidth;\n float antialias = 2.0 * v_pixelRatio;\n if (dist > strokeDist) {\n gl_FragColor = u_strokeColor;\n } else if (dist >= strokeDist - antialias) {\n float step = smoothstep(strokeDist - antialias, strokeDist, dist);\n gl_FragColor = mix(u_fillColor, u_strokeColor, step);\n }\n }\n gl_FragColor.a = gl_FragColor.a * u_opacity;\n if (gl_FragColor.a <= 0.0) {\n discard;\n }\n}\n":"precision mediump float;varying vec2 a;varying vec2 b;varying float c;varying float d;uniform float m;uniform vec4 n;uniform vec4 o;uniform vec2 p;void main(void){vec2 windowCenter=vec2((a.x+1.0)/2.0*p.x*d,(a.y+1.0)/2.0*p.y*d);vec2 windowOffset=vec2((b.x+1.0)/2.0*p.x*d,(b.y+1.0)/2.0*p.y*d);float radius=length(windowCenter-windowOffset);float dist=length(windowCenter-gl_FragCoord.xy);if(dist>radius+c){if(o.a==0.0){gl_FragColor=n;}else{gl_FragColor=o;}gl_FragColor.a=gl_FragColor.a-(dist-(radius+c));}else if(n.a==0.0){gl_FragColor=o;if(diststrokeDist){gl_FragColor=o;}else if(dist>=strokeDist-antialias){float step=smoothstep(strokeDist-antialias,strokeDist,dist);gl_FragColor=mix(n,o,step);}} gl_FragColor.a=gl_FragColor.a*m;if(gl_FragColor.a<=0.0){discard;}}"),pl=new ll(sl.g?"varying vec2 v_center;\nvarying vec2 v_offset;\nvarying float v_halfWidth;\nvarying float v_pixelRatio;\n\n\nattribute vec2 a_position;\nattribute float a_instruction;\nattribute float a_radius;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\nuniform float u_lineWidth;\nuniform float u_pixelRatio;\n\nvoid main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix * u_offsetRotateMatrix;\n v_center = vec4(u_projectionMatrix * vec4(a_position, 0.0, 1.0)).xy;\n v_pixelRatio = u_pixelRatio;\n float lineWidth = u_lineWidth * u_pixelRatio;\n v_halfWidth = lineWidth / 2.0;\n if (lineWidth == 0.0) {\n lineWidth = 2.0 * u_pixelRatio;\n }\n vec2 offset;\n // Radius with anitaliasing (roughly).\n float radius = a_radius + 3.0 * u_pixelRatio;\n // Until we get gl_VertexID in WebGL, we store an instruction.\n if (a_instruction == 0.0) {\n // Offsetting the edges of the triangle by lineWidth / 2 is necessary, however\n // we should also leave some space for the antialiasing, thus we offset by lineWidth.\n offset = vec2(-1.0, 1.0);\n } else if (a_instruction == 1.0) {\n offset = vec2(-1.0, -1.0);\n } else if (a_instruction == 2.0) {\n offset = vec2(1.0, -1.0);\n } else {\n offset = vec2(1.0, 1.0);\n }\n\n gl_Position = u_projectionMatrix * vec4(a_position + offset * radius, 0.0, 1.0) +\n offsetMatrix * vec4(offset * lineWidth, 0.0, 0.0);\n v_offset = vec4(u_projectionMatrix * vec4(a_position.x + a_radius, a_position.y,\n 0.0, 1.0)).xy;\n\n if (distance(v_center, v_offset) > 20000.0) {\n gl_Position = vec4(v_center, 0.0, 1.0);\n }\n}\n\n\n":"varying vec2 a;varying vec2 b;varying float c;varying float d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;void main(void){mat4 offsetMatrix=i*j;a=vec4(h*vec4(e,0.0,1.0)).xy;d=l;float lineWidth=k*l;c=lineWidth/2.0;if(lineWidth==0.0){lineWidth=2.0*l;}vec2 offset;float radius=g+3.0*l;if(f==0.0){offset=vec2(-1.0,1.0);}else if(f==1.0){offset=vec2(-1.0,-1.0);}else if(f==2.0){offset=vec2(1.0,-1.0);}else{offset=vec2(1.0,1.0);}gl_Position=h*vec4(e+offset*radius,0.0,1.0)+offsetMatrix*vec4(offset*lineWidth,0.0,0.0);b=vec4(h*vec4(e.x+g,e.y,0.0,1.0)).xy;if(distance(a,b)>20000.0){gl_Position=vec4(a,0.0,1.0);}}"),gl=function(t,e){this.u_projectionMatrix=t.getUniformLocation(e,sl.g?"u_projectionMatrix":"h"),this.u_offsetScaleMatrix=t.getUniformLocation(e,sl.g?"u_offsetScaleMatrix":"i"),this.u_offsetRotateMatrix=t.getUniformLocation(e,sl.g?"u_offsetRotateMatrix":"j"),this.u_lineWidth=t.getUniformLocation(e,sl.g?"u_lineWidth":"k"),this.u_pixelRatio=t.getUniformLocation(e,sl.g?"u_pixelRatio":"l"),this.u_opacity=t.getUniformLocation(e,sl.g?"u_opacity":"m"),this.u_fillColor=t.getUniformLocation(e,sl.g?"u_fillColor":"n"),this.u_strokeColor=t.getUniformLocation(e,sl.g?"u_strokeColor":"o"),this.u_size=t.getUniformLocation(e,sl.g?"u_size":"p"),this.a_position=t.getAttribLocation(e,sl.g?"a_position":"e"),this.a_instruction=t.getAttribLocation(e,sl.g?"a_instruction":"f"),this.a_radius=t.getAttribLocation(e,sl.g?"a_radius":"g")};function vl(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}var ml=function(t){function e(e,n){t.call(this),this.tolerance=e,this.maxExtent=n,this.origin=Object(et.x)(n),this.projectionMatrix_=Object(Gu.c)(),this.offsetRotateMatrix_=Object(Gu.c)(),this.offsetScaleMatrix_=Object(Gu.c)(),this.tmpMat4_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],this.indices=[],this.indicesBuffer=null,this.startIndices=[],this.startIndicesFeature=[],this.vertices=[],this.verticesBuffer=null,this.lineStringReplay=void 0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDeleteResourcesFunction=function(t){return Object(st.b)()},e.prototype.finish=function(t){Object(st.b)()},e.prototype.setUpProgram=function(t,e,n,r){return Object(st.b)()},e.prototype.shutDownProgram=function(t,e){Object(st.b)()},e.prototype.drawReplay=function(t,e,n,r){Object(st.b)()},e.prototype.drawHitDetectionReplayOneByOne=function(t,e,n,r,o){return Object(st.b)()},e.prototype.drawHitDetectionReplay=function(t,e,n,r,o,c){return o?this.drawHitDetectionReplayOneByOne(t,e,n,r,c):this.drawHitDetectionReplayAll(t,e,n,r)},e.prototype.drawHitDetectionReplayAll=function(t,e,n,r){t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),this.drawReplay(t,e,n,!0);var o=r(null);return o||void 0},e.prototype.replay=function(t,e,n,r,o,c,h,l,f,d,v){var m,y,_,x,O,w,j,S,E=t.getGL();this.lineStringReplay&&(m=E.isEnabled(E.STENCIL_TEST),y=E.getParameter(E.STENCIL_FUNC),_=E.getParameter(E.STENCIL_VALUE_MASK),x=E.getParameter(E.STENCIL_REF),O=E.getParameter(E.STENCIL_WRITEMASK),w=E.getParameter(E.STENCIL_FAIL),j=E.getParameter(E.STENCIL_PASS_DEPTH_PASS),S=E.getParameter(E.STENCIL_PASS_DEPTH_FAIL),E.enable(E.STENCIL_TEST),E.clear(E.STENCIL_BUFFER_BIT),E.stencilMask(255),E.stencilFunc(E.ALWAYS,1,255),E.stencilOp(E.KEEP,E.KEEP,E.REPLACE),this.lineStringReplay.replay(t,e,n,r,o,c,h,l,f,d,v),E.stencilMask(0),E.stencilFunc(E.NOTEQUAL,1,255)),t.bindBuffer(sl.a,this.verticesBuffer),t.bindBuffer(sl.j,this.indicesBuffer);var C=this.setUpProgram(E,t,o,c),T=Object(Gu.f)(this.projectionMatrix_);Object(Gu.h)(T,2/(n*o[0]),2/(n*o[1])),Object(Gu.g)(T,-r),Object(Gu.j)(T,-(e[0]-this.origin[0]),-(e[1]-this.origin[1]));var R=Object(Gu.f)(this.offsetScaleMatrix_);Object(Gu.h)(R,2/o[0],2/o[1]);var I,P=Object(Gu.f)(this.offsetRotateMatrix_);return 0!==r&&Object(Gu.g)(P,-r),E.uniformMatrix4fv(C.u_projectionMatrix,!1,vl(this.tmpMat4_,T)),E.uniformMatrix4fv(C.u_offsetScaleMatrix,!1,vl(this.tmpMat4_,R)),E.uniformMatrix4fv(C.u_offsetRotateMatrix,!1,vl(this.tmpMat4_,P)),E.uniform1f(C.u_opacity,h),void 0===f?this.drawReplay(E,t,l,!1):I=this.drawHitDetectionReplay(E,t,l,f,d,v),this.shutDownProgram(E,C),this.lineStringReplay&&(m||E.disable(E.STENCIL_TEST),E.clear(E.STENCIL_BUFFER_BIT),E.stencilFunc(y,x,_),E.stencilMask(O),E.stencilOp(w,S,j)),I},e.prototype.drawElements=function(t,e,n,r){var o=e.hasOESElementIndexUint?sl.H:sl.I,c=r-n,h=n*(e.hasOESElementIndexUint?4:2);t.drawElements(sl.E,c,o,h)},e}(Xu),yl=[0,0,0,1],_l="round",bl=[],xl="round",Ol=[0,0,0,1],wl=Number.EPSILON||2220446049250313e-31,jl=function(t,e,n,r,o,c){var area=(n-t)*(c-e)-(o-t)*(r-e);return area<=wl&&area>=-wl?void 0:area>0},Sl={STATIC_DRAW:sl.v,STREAM_DRAW:sl.x,DYNAMIC_DRAW:sl.i},El=function(t,e){this.arr_=void 0!==t?t:[],this.usage_=void 0!==e?e:Sl.STATIC_DRAW};El.prototype.getArray=function(){return this.arr_},El.prototype.getUsage=function(){return this.usage_};var Cl=El,Tl=function(t){function e(e,n){t.call(this,e,n),this.defaultLocations_=null,this.styles_=[],this.styleIndices_=[],this.radius_=0,this.state_={fillColor:null,strokeColor:null,lineDash:null,lineDashOffset:void 0,lineWidth:void 0,changed:!1}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawCoordinates_=function(t,e,n,r){var i,o,c=this.vertices.length,h=this.indices.length,l=c/4;for(i=e,o=n;i0&&(this.styles_=[]),this.vertices=null,this.indices=null},e.prototype.getDeleteResourcesFunction=function(t){var e=this.verticesBuffer,n=this.indicesBuffer;return function(){t.deleteBuffer(e),t.deleteBuffer(n)}},e.prototype.setUpProgram=function(t,e,n,r){var o,c=e.getProgram(fl,pl);return this.defaultLocations_?o=this.defaultLocations_:(o=new gl(t,c),this.defaultLocations_=o),e.useProgram(c),t.enableVertexAttribArray(o.a_position),t.vertexAttribPointer(o.a_position,2,sl.l,!1,16,0),t.enableVertexAttribArray(o.a_instruction),t.vertexAttribPointer(o.a_instruction,1,sl.l,!1,16,8),t.enableVertexAttribArray(o.a_radius),t.vertexAttribPointer(o.a_radius,1,sl.l,!1,16,12),t.uniform2fv(o.u_size,n),t.uniform1f(o.u_pixelRatio,r),o},e.prototype.shutDownProgram=function(t,e){t.disableVertexAttribArray(e.a_position),t.disableVertexAttribArray(e.a_instruction),t.disableVertexAttribArray(e.a_radius)},e.prototype.drawReplay=function(t,e,n,r){var i,o,c,h;if(Object(nt.d)(n))for(c=this.startIndices[this.startIndices.length-1],i=this.styleIndices_.length-1;i>=0;--i)o=this.styleIndices_[i],h=this.styles_[i],this.setFillStyle_(t,h[0]),this.setStrokeStyle_(t,h[1],h[2]),this.drawElements(t,e,o,c),c=o;else this.drawReplaySkipping_(t,e,n)},e.prototype.drawHitDetectionReplayOneByOne=function(t,e,n,r,o){var i,c,h,l,f,d,v;for(v=this.startIndices.length-2,h=this.startIndices[v+1],i=this.styleIndices_.length-1;i>=0;--i)for(l=this.styles_[i],this.setFillStyle_(t,l[0]),this.setStrokeStyle_(t,l[1],l[2]),f=this.styleIndices_[i];v>=0&&this.startIndices[v]>=f;){if(c=this.startIndices[v],d=this.startIndicesFeature[v],void 0===n[Object(st.c)(d)]&&d.getGeometry()&&(void 0===o||Object(et.F)(o,d.getGeometry().getExtent()))){t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),this.drawElements(t,e,c,h);var m=r(d);if(m)return m}v--,h=c}},e.prototype.drawReplaySkipping_=function(t,e,n){var i,r,o,c,h,l,f,d;for(f=this.startIndices.length-2,o=r=this.startIndices[f+1],i=this.styleIndices_.length-1;i>=0;--i){for(c=this.styles_[i],this.setFillStyle_(t,c[0]),this.setStrokeStyle_(t,c[1],c[2]),h=this.styleIndices_[i];f>=0&&this.startIndices[f]>=h;)d=this.startIndices[f],l=this.startIndicesFeature[f],n[Object(st.c)(l)]&&(r!==o&&this.drawElements(t,e,r,o),o=d),f--,r=d;r!==o&&this.drawElements(t,e,r,o),r=o=h}},e.prototype.setFillStyle_=function(t,e){t.uniform4fv(this.defaultLocations_.u_fillColor,e)},e.prototype.setStrokeStyle_=function(t,e,n){t.uniform4fv(this.defaultLocations_.u_strokeColor,e),t.uniform1f(this.defaultLocations_.u_lineWidth,n)},e.prototype.setFillStrokeStyle=function(t,e){var n,r;if(e){var o=e.getLineDash();this.state_.lineDash=o||bl;var c=e.getLineDashOffset();this.state_.lineDashOffset=c||0,n=(n=e.getColor())instanceof CanvasGradient||n instanceof CanvasPattern?Ol:Object(Ih.a)(n).map((function(t,i){return 3!=i?t/255:t}))||Ol,r=void 0!==(r=e.getWidth())?r:1}else n=[0,0,0,0],r=0;var h=t?t.getColor():[0,0,0,0];h=h instanceof CanvasGradient||h instanceof CanvasPattern?yl:Object(Ih.a)(h).map((function(t,i){return 3!=i?t/255:t}))||yl,this.state_.strokeColor&&Object(Lo.b)(this.state_.strokeColor,n)&&this.state_.fillColor&&Object(Lo.b)(this.state_.fillColor,h)&&this.state_.lineWidth===r||(this.state_.changed=!0,this.state_.fillColor=h,this.state_.strokeColor=n,this.state_.lineWidth=r,this.styles_.push([h,n,r]))},e}(ml),Rl=new hl(sl.g?"precision mediump float;\nvarying vec2 v_texCoord;\nvarying float v_opacity;\n\nuniform float u_opacity;\nuniform sampler2D u_image;\n\nvoid main(void) {\n vec4 texColor = texture2D(u_image, v_texCoord);\n gl_FragColor.rgb = texColor.rgb;\n float alpha = texColor.a * v_opacity * u_opacity;\n if (alpha == 0.0) {\n discard;\n }\n gl_FragColor.a = alpha;\n}\n":"precision mediump float;varying vec2 a;varying float b;uniform float k;uniform sampler2D l;void main(void){vec4 texColor=texture2D(l,a);gl_FragColor.rgb=texColor.rgb;float alpha=texColor.a*b*k;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"),Il=new ll(sl.g?"varying vec2 v_texCoord;\nvarying float v_opacity;\n\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\nattribute vec2 a_offsets;\nattribute float a_opacity;\nattribute float a_rotateWithView;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\n\nvoid main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix;\n if (a_rotateWithView == 1.0) {\n offsetMatrix = u_offsetScaleMatrix * u_offsetRotateMatrix;\n }\n vec4 offsets = offsetMatrix * vec4(a_offsets, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n v_texCoord = a_texCoord;\n v_opacity = a_opacity;\n}\n\n\n":"varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix=i;if(g==1.0){offsetMatrix=i*j;}vec4 offsets=offsetMatrix*vec4(e,0.0,0.0);gl_Position=h*vec4(c,0.0,1.0)+offsets;a=d;b=f;}"),Pl=function(t,e){this.u_projectionMatrix=t.getUniformLocation(e,sl.g?"u_projectionMatrix":"h"),this.u_offsetScaleMatrix=t.getUniformLocation(e,sl.g?"u_offsetScaleMatrix":"i"),this.u_offsetRotateMatrix=t.getUniformLocation(e,sl.g?"u_offsetRotateMatrix":"j"),this.u_opacity=t.getUniformLocation(e,sl.g?"u_opacity":"k"),this.u_image=t.getUniformLocation(e,sl.g?"u_image":"l"),this.a_position=t.getAttribLocation(e,sl.g?"a_position":"c"),this.a_texCoord=t.getAttribLocation(e,sl.g?"a_texCoord":"d"),this.a_offsets=t.getAttribLocation(e,sl.g?"a_offsets":"e"),this.a_opacity=t.getAttribLocation(e,sl.g?"a_opacity":"f"),this.a_rotateWithView=t.getAttribLocation(e,sl.g?"a_rotateWithView":"g")},Fl="webglcontextlost",Ll="webglcontextrestored";function Al(t,e,n){var r=t.createTexture();return t.bindTexture(t.TEXTURE_2D,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),void 0!==e&&t.texParameteri(sl.z,sl.C,e),void 0!==n&&t.texParameteri(sl.z,sl.D,n),r}function Ml(t,e,n,r,o){var c=Al(t,r,o);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,n,0,t.RGBA,t.UNSIGNED_BYTE,null),c}function kl(t,image,e,n){var r=Al(t,e,n);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,image),r}var Dl=function(t){function e(canvas,e){t.call(this),this.canvas_=canvas,this.gl_=e,this.bufferCache_={},this.shaderCache_={},this.programCache_={},this.currentProgram_=null,this.hitDetectionFramebuffer_=null,this.hitDetectionTexture_=null,this.hitDetectionRenderbuffer_=null,this.hasOESElementIndexUint=Object(Lo.f)(sl.k,"OES_element_index_uint"),this.hasOESElementIndexUint&&e.getExtension("OES_element_index_uint"),Object(pt.a)(this.canvas_,Fl,this.handleWebGLContextLost,this),Object(pt.a)(this.canvas_,Ll,this.handleWebGLContextRestored,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.bindBuffer=function(t,e){var n=this.getGL(),r=e.getArray(),o=Object(st.c)(e);if(o in this.bufferCache_){var c=this.bufferCache_[o];n.bindBuffer(t,c.buffer)}else{var h,l=n.createBuffer();n.bindBuffer(t,l),t==sl.a?h=new Float32Array(r):t==sl.j&&(h=this.hasOESElementIndexUint?new Uint32Array(r):new Uint16Array(r)),n.bufferData(t,h,e.getUsage()),this.bufferCache_[o]={buf:e,buffer:l}}},e.prototype.deleteBuffer=function(t){var e=this.getGL(),n=Object(st.c)(t),r=this.bufferCache_[n];e.isContextLost()||e.deleteBuffer(r.buffer),delete this.bufferCache_[n]},e.prototype.disposeInternal=function(){Object(pt.d)(this.canvas_);var t=this.getGL();if(!t.isContextLost()){for(var e in this.bufferCache_)t.deleteBuffer(this.bufferCache_[e].buffer);for(var n in this.programCache_)t.deleteProgram(this.programCache_[n]);for(var r in this.shaderCache_)t.deleteShader(this.shaderCache_[r]);t.deleteFramebuffer(this.hitDetectionFramebuffer_),t.deleteRenderbuffer(this.hitDetectionRenderbuffer_),t.deleteTexture(this.hitDetectionTexture_)}},e.prototype.getCanvas=function(){return this.canvas_},e.prototype.getGL=function(){return this.gl_},e.prototype.getHitDetectionFramebuffer=function(){return this.hitDetectionFramebuffer_||this.initHitDetectionFramebuffer_(),this.hitDetectionFramebuffer_},e.prototype.getShader=function(t){var e=Object(st.c)(t);if(e in this.shaderCache_)return this.shaderCache_[e];var n=this.getGL(),r=n.createShader(t.getType());return n.shaderSource(r,t.getSource()),n.compileShader(r),this.shaderCache_[e]=r,r},e.prototype.getProgram=function(t,e){var n=Object(st.c)(t)+"/"+Object(st.c)(e);if(n in this.programCache_)return this.programCache_[n];var r=this.getGL(),o=r.createProgram();return r.attachShader(o,this.getShader(t)),r.attachShader(o,this.getShader(e)),r.linkProgram(o),this.programCache_[n]=o,o},e.prototype.handleWebGLContextLost=function(){Object(nt.b)(this.bufferCache_),Object(nt.b)(this.shaderCache_),Object(nt.b)(this.programCache_),this.currentProgram_=null,this.hitDetectionFramebuffer_=null,this.hitDetectionTexture_=null,this.hitDetectionRenderbuffer_=null},e.prototype.handleWebGLContextRestored=function(){},e.prototype.initHitDetectionFramebuffer_=function(){var t=this.gl_,e=t.createFramebuffer();t.bindFramebuffer(t.FRAMEBUFFER,e);var n=Ml(t,1,1),r=t.createRenderbuffer();t.bindRenderbuffer(t.RENDERBUFFER,r),t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_COMPONENT16,1,1),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,n,0),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,r),t.bindTexture(t.TEXTURE_2D,null),t.bindRenderbuffer(t.RENDERBUFFER,null),t.bindFramebuffer(t.FRAMEBUFFER,null),this.hitDetectionFramebuffer_=e,this.hitDetectionTexture_=n,this.hitDetectionRenderbuffer_=r},e.prototype.useProgram=function(t){return t!=this.currentProgram_&&(this.getGL().useProgram(t),this.currentProgram_=t,!0)},e}(vu.a),Nl=function(t){function e(e,n){t.call(this,e,n),this.anchorX=void 0,this.anchorY=void 0,this.groupIndices=[],this.hitDetectionGroupIndices=[],this.height=void 0,this.imageHeight=void 0,this.imageWidth=void 0,this.defaultLocations=null,this.opacity=void 0,this.originX=void 0,this.originY=void 0,this.rotateWithView=void 0,this.rotation=void 0,this.scale=void 0,this.width=void 0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDeleteResourcesFunction=function(t){var e=this.verticesBuffer,n=this.indicesBuffer,r=this.getTextures(!0),o=t.getGL();return function(){var i,c;if(!o.isContextLost())for(i=0,c=r.length;i0?o[i-1]:0,f=o[i],d=l,v=l;h=0;--i)for(t.bindTexture(sl.z,v[i]),c=i>0?this.hitDetectionGroupIndices[i-1]:0,l=this.hitDetectionGroupIndices[i];d>=0&&this.startIndices[d]>=c;){if(h=this.startIndices[d],f=this.startIndicesFeature[d],void 0===n[Object(st.c)(f)]&&f.getGeometry()&&(void 0===o||Object(et.F)(o,f.getGeometry().getExtent()))){t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),this.drawElements(t,e,h,l);var m=r(f);if(m)return m}l=h,d--}},e.prototype.finish=function(t){this.anchorX=void 0,this.anchorY=void 0,this.height=void 0,this.imageHeight=void 0,this.imageWidth=void 0,this.indices=null,this.opacity=void 0,this.originX=void 0,this.originY=void 0,this.rotateWithView=void 0,this.rotation=void 0,this.scale=void 0,this.vertices=null,this.width=void 0},e.prototype.getTextures=function(t){return Object(st.b)()},e.prototype.getHitDetectionTextures=function(){return Object(st.b)()},e}(ml),$l=function(t){function e(e,n){t.call(this,e,n),this.images_=[],this.hitDetectionImages_=[],this.textures_=[],this.hitDetectionTextures_=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawMultiPoint=function(t,e){this.startIndices.push(this.indices.length),this.startIndicesFeature.push(e);var n=t.getFlatCoordinates(),r=t.getStride();this.drawCoordinates(n,0,n.length,r)},e.prototype.drawPoint=function(t,e){this.startIndices.push(this.indices.length),this.startIndicesFeature.push(e);var n=t.getFlatCoordinates(),r=t.getStride();this.drawCoordinates(n,0,n.length,r)},e.prototype.finish=function(e){var n=e.getGL();this.groupIndices.push(this.indices.length),this.hitDetectionGroupIndices.push(this.indices.length),this.verticesBuffer=new Cl(this.vertices);var r=this.indices;this.indicesBuffer=new Cl(r);var o={};this.createTextures(this.textures_,this.images_,o,n),this.createTextures(this.hitDetectionTextures_,this.hitDetectionImages_,o,n),this.images_=null,this.hitDetectionImages_=null,t.prototype.finish.call(this,e)},e.prototype.setImageStyle=function(t){var e,n=t.getAnchor(),image=t.getImage(1),r=t.getImageSize(),o=t.getHitDetectionImage(1),c=t.getOpacity(),h=t.getOrigin(),l=t.getRotateWithView(),f=t.getRotation(),d=t.getSize(),v=t.getScale();0===this.images_.length?this.images_.push(image):(e=this.images_[this.images_.length-1],Object(st.c)(e)!=Object(st.c)(image)&&(this.groupIndices.push(this.indices.length),this.images_.push(image))),0===this.hitDetectionImages_.length?this.hitDetectionImages_.push(o):(e=this.hitDetectionImages_[this.hitDetectionImages_.length-1],Object(st.c)(e)!=Object(st.c)(o)&&(this.hitDetectionGroupIndices.push(this.indices.length),this.hitDetectionImages_.push(o))),this.anchorX=n[0],this.anchorY=n[1],this.height=d[1],this.imageHeight=r[1],this.imageWidth=r[0],this.opacity=c,this.originX=h[0],this.originY=h[1],this.rotation=f,this.rotateWithView=l,this.scale=v,this.width=d[0]},e.prototype.getTextures=function(t){return t?this.textures_.concat(this.hitDetectionTextures_):this.textures_},e.prototype.getHitDetectionTextures=function(){return this.hitDetectionTextures_},e}(Nl),Gl=n(108),zl=n(195);function Bl(t,e,n,r){var o=n-r;return t[e]===t[o]&&t[e+1]===t[o+1]&&(n-e)/r>3&&!!Object(zl.a)(t,e,n,r)}var Vl=new hl(sl.g?"precision mediump float;\nvarying float v_round;\nvarying vec2 v_roundVertex;\nvarying float v_halfWidth;\n\n\n\nuniform float u_opacity;\nuniform vec4 u_color;\nuniform vec2 u_size;\nuniform float u_pixelRatio;\n\nvoid main(void) {\n if (v_round > 0.0) {\n vec2 windowCoords = vec2((v_roundVertex.x + 1.0) / 2.0 * u_size.x * u_pixelRatio,\n (v_roundVertex.y + 1.0) / 2.0 * u_size.y * u_pixelRatio);\n if (length(windowCoords - gl_FragCoord.xy) > v_halfWidth * u_pixelRatio) {\n discard;\n }\n }\n gl_FragColor = u_color;\n float alpha = u_color.a * u_opacity;\n if (alpha == 0.0) {\n discard;\n }\n gl_FragColor.a = alpha;\n}\n":"precision mediump float;varying float a;varying vec2 aVertex;varying float c;uniform float m;uniform vec4 n;uniform vec2 o;uniform float p;void main(void){if(a>0.0){vec2 windowCoords=vec2((aVertex.x+1.0)/2.0*o.x*p,(aVertex.y+1.0)/2.0*o.y*p);if(length(windowCoords-gl_FragCoord.xy)>c*p){discard;}} gl_FragColor=n;float alpha=n.a*m;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"),Ul=new ll(sl.g?"varying float v_round;\nvarying vec2 v_roundVertex;\nvarying float v_halfWidth;\n\n\nattribute vec2 a_lastPos;\nattribute vec2 a_position;\nattribute vec2 a_nextPos;\nattribute float a_direction;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\nuniform float u_lineWidth;\nuniform float u_miterLimit;\n\nbool nearlyEquals(in float value, in float ref) {\n float epsilon = 0.000000000001;\n return value >= ref - epsilon && value <= ref + epsilon;\n}\n\nvoid alongNormal(out vec2 offset, in vec2 nextP, in float turnDir, in float direction) {\n vec2 dirVect = nextP - a_position;\n vec2 normal = normalize(vec2(-turnDir * dirVect.y, turnDir * dirVect.x));\n offset = u_lineWidth / 2.0 * normal * direction;\n}\n\nvoid miterUp(out vec2 offset, out float round, in bool isRound, in float direction) {\n float halfWidth = u_lineWidth / 2.0;\n vec2 tangent = normalize(normalize(a_nextPos - a_position) + normalize(a_position - a_lastPos));\n vec2 normal = vec2(-tangent.y, tangent.x);\n vec2 dirVect = a_nextPos - a_position;\n vec2 tmpNormal = normalize(vec2(-dirVect.y, dirVect.x));\n float miterLength = abs(halfWidth / dot(normal, tmpNormal));\n offset = normal * direction * miterLength;\n round = 0.0;\n if (isRound) {\n round = 1.0;\n } else if (miterLength > u_miterLimit + u_lineWidth) {\n offset = halfWidth * tmpNormal * direction;\n }\n}\n\nbool miterDown(out vec2 offset, in vec4 projPos, in mat4 offsetMatrix, in float direction) {\n bool degenerate = false;\n vec2 tangent = normalize(normalize(a_nextPos - a_position) + normalize(a_position - a_lastPos));\n vec2 normal = vec2(-tangent.y, tangent.x);\n vec2 dirVect = a_lastPos - a_position;\n vec2 tmpNormal = normalize(vec2(-dirVect.y, dirVect.x));\n vec2 longOffset, shortOffset, longVertex;\n vec4 shortProjVertex;\n float halfWidth = u_lineWidth / 2.0;\n if (length(a_nextPos - a_position) > length(a_lastPos - a_position)) {\n longOffset = tmpNormal * direction * halfWidth;\n shortOffset = normalize(vec2(dirVect.y, -dirVect.x)) * direction * halfWidth;\n longVertex = a_nextPos;\n shortProjVertex = u_projectionMatrix * vec4(a_lastPos, 0.0, 1.0);\n } else {\n shortOffset = tmpNormal * direction * halfWidth;\n longOffset = normalize(vec2(dirVect.y, -dirVect.x)) * direction * halfWidth;\n longVertex = a_lastPos;\n shortProjVertex = u_projectionMatrix * vec4(a_nextPos, 0.0, 1.0);\n }\n //Intersection algorithm based on theory by Paul Bourke (http://paulbourke.net/geometry/pointlineplane/).\n vec4 p1 = u_projectionMatrix * vec4(longVertex, 0.0, 1.0) + offsetMatrix * vec4(longOffset, 0.0, 0.0);\n vec4 p2 = projPos + offsetMatrix * vec4(longOffset, 0.0, 0.0);\n vec4 p3 = shortProjVertex + offsetMatrix * vec4(-shortOffset, 0.0, 0.0);\n vec4 p4 = shortProjVertex + offsetMatrix * vec4(shortOffset, 0.0, 0.0);\n float denom = (p4.y - p3.y) * (p2.x - p1.x) - (p4.x - p3.x) * (p2.y - p1.y);\n float firstU = ((p4.x - p3.x) * (p1.y - p3.y) - (p4.y - p3.y) * (p1.x - p3.x)) / denom;\n float secondU = ((p2.x - p1.x) * (p1.y - p3.y) - (p2.y - p1.y) * (p1.x - p3.x)) / denom;\n float epsilon = 0.000000000001;\n if (firstU > epsilon && firstU < 1.0 - epsilon && secondU > epsilon && secondU < 1.0 - epsilon) {\n shortProjVertex.x = p1.x + firstU * (p2.x - p1.x);\n shortProjVertex.y = p1.y + firstU * (p2.y - p1.y);\n offset = shortProjVertex.xy;\n degenerate = true;\n } else {\n float miterLength = abs(halfWidth / dot(normal, tmpNormal));\n offset = normal * direction * miterLength;\n }\n return degenerate;\n}\n\nvoid squareCap(out vec2 offset, out float round, in bool isRound, in vec2 nextP,\n in float turnDir, in float direction) {\n round = 0.0;\n vec2 dirVect = a_position - nextP;\n vec2 firstNormal = normalize(dirVect);\n vec2 secondNormal = vec2(turnDir * firstNormal.y * direction, -turnDir * firstNormal.x * direction);\n vec2 hypotenuse = normalize(firstNormal - secondNormal);\n vec2 normal = vec2(turnDir * hypotenuse.y * direction, -turnDir * hypotenuse.x * direction);\n float length = sqrt(v_halfWidth * v_halfWidth * 2.0);\n offset = normal * length;\n if (isRound) {\n round = 1.0;\n }\n}\n\nvoid main(void) {\n bool degenerate = false;\n float direction = float(sign(a_direction));\n mat4 offsetMatrix = u_offsetScaleMatrix * u_offsetRotateMatrix;\n vec2 offset;\n vec4 projPos = u_projectionMatrix * vec4(a_position, 0.0, 1.0);\n bool round = nearlyEquals(mod(a_direction, 2.0), 0.0);\n\n v_round = 0.0;\n v_halfWidth = u_lineWidth / 2.0;\n v_roundVertex = projPos.xy;\n\n if (nearlyEquals(mod(a_direction, 3.0), 0.0) || nearlyEquals(mod(a_direction, 17.0), 0.0)) {\n alongNormal(offset, a_nextPos, 1.0, direction);\n } else if (nearlyEquals(mod(a_direction, 5.0), 0.0) || nearlyEquals(mod(a_direction, 13.0), 0.0)) {\n alongNormal(offset, a_lastPos, -1.0, direction);\n } else if (nearlyEquals(mod(a_direction, 23.0), 0.0)) {\n miterUp(offset, v_round, round, direction);\n } else if (nearlyEquals(mod(a_direction, 19.0), 0.0)) {\n degenerate = miterDown(offset, projPos, offsetMatrix, direction);\n } else if (nearlyEquals(mod(a_direction, 7.0), 0.0)) {\n squareCap(offset, v_round, round, a_nextPos, 1.0, direction);\n } else if (nearlyEquals(mod(a_direction, 11.0), 0.0)) {\n squareCap(offset, v_round, round, a_lastPos, -1.0, direction);\n }\n if (!degenerate) {\n vec4 offsets = offsetMatrix * vec4(offset, 0.0, 0.0);\n gl_Position = projPos + offsets;\n } else {\n gl_Position = vec4(offset, 0.0, 1.0);\n }\n}\n\n\n":"varying float a;varying vec2 aVertex;varying float c;attribute vec2 d;attribute vec2 e;attribute vec2 f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;bool nearlyEquals(in float value,in float ref){float epsilon=0.000000000001;return value>=ref-epsilon&&value<=ref+epsilon;}void alongNormal(out vec2 offset,in vec2 nextP,in float turnDir,in float direction){vec2 dirVect=nextP-e;vec2 normal=normalize(vec2(-turnDir*dirVect.y,turnDir*dirVect.x));offset=k/2.0*normal*direction;}void miterUp(out vec2 offset,out float round,in bool isRound,in float direction){float halfWidth=k/2.0;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=f-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;round=0.0;if(isRound){round=1.0;}else if(miterLength>l+k){offset=halfWidth*tmpNormal*direction;}} bool miterDown(out vec2 offset,in vec4 projPos,in mat4 offsetMatrix,in float direction){bool degenerate=false;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=d-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));vec2 longOffset,shortOffset,longVertex;vec4 shortProjVertex;float halfWidth=k/2.0;if(length(f-e)>length(d-e)){longOffset=tmpNormal*direction*halfWidth;shortOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=f;shortProjVertex=h*vec4(d,0.0,1.0);}else{shortOffset=tmpNormal*direction*halfWidth;longOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=d;shortProjVertex=h*vec4(f,0.0,1.0);}vec4 p1=h*vec4(longVertex,0.0,1.0)+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p2=projPos+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p3=shortProjVertex+offsetMatrix*vec4(-shortOffset,0.0,0.0);vec4 p4=shortProjVertex+offsetMatrix*vec4(shortOffset,0.0,0.0);float denom=(p4.y-p3.y)*(p2.x-p1.x)-(p4.x-p3.x)*(p2.y-p1.y);float firstU=((p4.x-p3.x)*(p1.y-p3.y)-(p4.y-p3.y)*(p1.x-p3.x))/denom;float secondU=((p2.x-p1.x)*(p1.y-p3.y)-(p2.y-p1.y)*(p1.x-p3.x))/denom;float epsilon=0.000000000001;if(firstU>epsilon&&firstU<1.0-epsilon&&secondU>epsilon&&secondU<1.0-epsilon){shortProjVertex.x=p1.x+firstU*(p2.x-p1.x);shortProjVertex.y=p1.y+firstU*(p2.y-p1.y);offset=shortProjVertex.xy;degenerate=true;}else{float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;}return degenerate;}void squareCap(out vec2 offset,out float round,in bool isRound,in vec2 nextP,in float turnDir,in float direction){round=0.0;vec2 dirVect=e-nextP;vec2 firstNormal=normalize(dirVect);vec2 secondNormal=vec2(turnDir*firstNormal.y*direction,-turnDir*firstNormal.x*direction);vec2 hypotenuse=normalize(firstNormal-secondNormal);vec2 normal=vec2(turnDir*hypotenuse.y*direction,-turnDir*hypotenuse.x*direction);float length=sqrt(c*c*2.0);offset=normal*length;if(isRound){round=1.0;}} void main(void){bool degenerate=false;float direction=float(sign(g));mat4 offsetMatrix=i*j;vec2 offset;vec4 projPos=h*vec4(e,0.0,1.0);bool round=nearlyEquals(mod(g,2.0),0.0);a=0.0;c=k/2.0;aVertex=projPos.xy;if(nearlyEquals(mod(g,3.0),0.0)||nearlyEquals(mod(g,17.0),0.0)){alongNormal(offset,f,1.0,direction);}else if(nearlyEquals(mod(g,5.0),0.0)||nearlyEquals(mod(g,13.0),0.0)){alongNormal(offset,d,-1.0,direction);}else if(nearlyEquals(mod(g,23.0),0.0)){miterUp(offset,a,round,direction);}else if(nearlyEquals(mod(g,19.0),0.0)){degenerate=miterDown(offset,projPos,offsetMatrix,direction);}else if(nearlyEquals(mod(g,7.0),0.0)){squareCap(offset,a,round,f,1.0,direction);}else if(nearlyEquals(mod(g,11.0),0.0)){squareCap(offset,a,round,d,-1.0,direction);}if(!degenerate){vec4 offsets=offsetMatrix*vec4(offset,0.0,0.0);gl_Position=projPos+offsets;}else{gl_Position=vec4(offset,0.0,1.0);}}"),Wl=function(t,e){this.u_projectionMatrix=t.getUniformLocation(e,sl.g?"u_projectionMatrix":"h"),this.u_offsetScaleMatrix=t.getUniformLocation(e,sl.g?"u_offsetScaleMatrix":"i"),this.u_offsetRotateMatrix=t.getUniformLocation(e,sl.g?"u_offsetRotateMatrix":"j"),this.u_lineWidth=t.getUniformLocation(e,sl.g?"u_lineWidth":"k"),this.u_miterLimit=t.getUniformLocation(e,sl.g?"u_miterLimit":"l"),this.u_opacity=t.getUniformLocation(e,sl.g?"u_opacity":"m"),this.u_color=t.getUniformLocation(e,sl.g?"u_color":"n"),this.u_size=t.getUniformLocation(e,sl.g?"u_size":"o"),this.u_pixelRatio=t.getUniformLocation(e,sl.g?"u_pixelRatio":"p"),this.a_lastPos=t.getAttribLocation(e,sl.g?"a_lastPos":"d"),this.a_position=t.getAttribLocation(e,sl.g?"a_position":"e"),this.a_nextPos=t.getAttribLocation(e,sl.g?"a_nextPos":"f"),this.a_direction=t.getAttribLocation(e,sl.g?"a_direction":"g")},Yl=3,Xl=5,Hl=7,Kl=11,ql=13,Zl=17,Jl=19,Ql=23,tf=function(t){function e(e,n){t.call(this,e,n),this.defaultLocations_=null,this.styles_=[],this.styleIndices_=[],this.state_={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0,changed:!1}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawCoordinates_=function(t,e,n,r){var i,o,c,h,l,f,d,v,m=this.vertices.length,y=this.indices.length,_="bevel"===this.state_.lineJoin?0:"miter"===this.state_.lineJoin?1:2,x="butt"===this.state_.lineCap?0:"square"===this.state_.lineCap?1:2,O=Bl(t,e,n,r),w=y,j=1;for(i=e,o=n;ie&&(this.indices[y++]=l,this.indices[y++]=w-1,this.indices[y++]=w,this.indices[y++]=l+2,this.indices[y++]=l,this.indices[y++]=j*h>0?w:w-1),this.indices[y++]=l,this.indices[y++]=l+2,this.indices[y++]=l+1,w=l+2,j=h,_&&(m=this.addVertices_(f,d,v,h*Ql*_,m),this.indices[y++]=l+1,this.indices[y++]=l+3,this.indices[y++]=l)}O&&(l=l||m/7,h=Object(Gl.a)([f[0],f[1],d[0],d[1],v[0],v[1]],0,6,2)?1:-1,m=this.addVertices_(f,d,v,h*ql*(_||1),m),m=this.addVertices_(f,d,v,-h*Jl*(_||1),m),this.indices[y++]=l,this.indices[y++]=w-1,this.indices[y++]=w,this.indices[y++]=l+1,this.indices[y++]=l,this.indices[y++]=j*h>0?w:w-1)},e.prototype.addVertices_=function(t,e,n,r,o){return this.vertices[o++]=t[0],this.vertices[o++]=t[1],this.vertices[o++]=e[0],this.vertices[o++]=e[1],this.vertices[o++]=n[0],this.vertices[o++]=n[1],this.vertices[o++]=r,o},e.prototype.isValid_=function(t,e,n,r){var o=n-e;if(o<2*r)return!1;if(o===2*r){var c=[t[e],t[e+1]],h=[t[e+r],t[e+r+1]];return!Object(Lo.b)(c,h)}return!0},e.prototype.drawLineString=function(t,e){var n=t.getFlatCoordinates(),r=t.getStride();this.isValid_(n,0,n.length,r)&&(n=Object(Wu.d)(n,0,n.length,r,-this.origin[0],-this.origin[1]),this.state_.changed&&(this.styleIndices_.push(this.indices.length),this.state_.changed=!1),this.startIndices.push(this.indices.length),this.startIndicesFeature.push(e),this.drawCoordinates_(n,0,n.length,r))},e.prototype.drawMultiLineString=function(t,e){var n=this.indices.length,r=t.getEnds();r.unshift(0);var i,o,c=t.getFlatCoordinates(),h=t.getStride();if(r.length>1)for(i=1,o=r.length;in&&(this.startIndices.push(n),this.startIndicesFeature.push(e),this.state_.changed&&(this.styleIndices_.push(n),this.state_.changed=!1))},e.prototype.drawPolygonCoordinates=function(t,e,n){var i,r;if(Bl(t,0,t.length,n)||(t.push(t[0]),t.push(t[1])),this.drawCoordinates_(t,0,t.length,n),e.length)for(i=0,r=e.length;i0&&(this.styles_=[]),this.vertices=null,this.indices=null},e.prototype.getDeleteResourcesFunction=function(t){var e=this.verticesBuffer,n=this.indicesBuffer;return function(){t.deleteBuffer(e),t.deleteBuffer(n)}},e.prototype.setUpProgram=function(t,e,n,r){var o,c=e.getProgram(Vl,Ul);return this.defaultLocations_?o=this.defaultLocations_:(o=new Wl(t,c),this.defaultLocations_=o),e.useProgram(c),t.enableVertexAttribArray(o.a_lastPos),t.vertexAttribPointer(o.a_lastPos,2,sl.l,!1,28,0),t.enableVertexAttribArray(o.a_position),t.vertexAttribPointer(o.a_position,2,sl.l,!1,28,8),t.enableVertexAttribArray(o.a_nextPos),t.vertexAttribPointer(o.a_nextPos,2,sl.l,!1,28,16),t.enableVertexAttribArray(o.a_direction),t.vertexAttribPointer(o.a_direction,1,sl.l,!1,28,24),t.uniform2fv(o.u_size,n),t.uniform1f(o.u_pixelRatio,r),o},e.prototype.shutDownProgram=function(t,e){t.disableVertexAttribArray(e.a_lastPos),t.disableVertexAttribArray(e.a_position),t.disableVertexAttribArray(e.a_nextPos),t.disableVertexAttribArray(e.a_direction)},e.prototype.drawReplay=function(t,e,n,r){var i,o,c,h,l=t.getParameter(t.DEPTH_FUNC),f=t.getParameter(t.DEPTH_WRITEMASK);if(r||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),Object(nt.d)(n))for(c=this.startIndices[this.startIndices.length-1],i=this.styleIndices_.length-1;i>=0;--i)o=this.styleIndices_[i],h=this.styles_[i],this.setStrokeStyle_(t,h[0],h[1],h[2]),this.drawElements(t,e,o,c),t.clear(t.DEPTH_BUFFER_BIT),c=o;else this.drawReplaySkipping_(t,e,n);r||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(f),t.depthFunc(l))},e.prototype.drawReplaySkipping_=function(t,e,n){var i,r,o,c,h,l,f,d;for(f=this.startIndices.length-2,o=r=this.startIndices[f+1],i=this.styleIndices_.length-1;i>=0;--i){for(c=this.styles_[i],this.setStrokeStyle_(t,c[0],c[1],c[2]),h=this.styleIndices_[i];f>=0&&this.startIndices[f]>=h;)d=this.startIndices[f],l=this.startIndicesFeature[f],n[Object(st.c)(l)]&&(r!==o&&(this.drawElements(t,e,r,o),t.clear(t.DEPTH_BUFFER_BIT)),o=d),f--,r=d;r!==o&&(this.drawElements(t,e,r,o),t.clear(t.DEPTH_BUFFER_BIT)),r=o=h}},e.prototype.drawHitDetectionReplayOneByOne=function(t,e,n,r,o){var i,c,h,l,f,d,v;for(v=this.startIndices.length-2,h=this.startIndices[v+1],i=this.styleIndices_.length-1;i>=0;--i)for(l=this.styles_[i],this.setStrokeStyle_(t,l[0],l[1],l[2]),f=this.styleIndices_[i];v>=0&&this.startIndices[v]>=f;){if(c=this.startIndices[v],d=this.startIndicesFeature[v],void 0===n[Object(st.c)(d)]&&d.getGeometry()&&(void 0===o||Object(et.F)(o,d.getGeometry().getExtent()))){t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),this.drawElements(t,e,c,h);var m=r(d);if(m)return m}v--,h=c}},e.prototype.setStrokeStyle_=function(t,e,n,r){t.uniform4fv(this.defaultLocations_.u_color,e),t.uniform1f(this.defaultLocations_.u_lineWidth,n),t.uniform1f(this.defaultLocations_.u_miterLimit,r)},e.prototype.setFillStrokeStyle=function(t,e){var n=e.getLineCap();this.state_.lineCap=void 0!==n?n:_l;var r=e.getLineDash();this.state_.lineDash=r||bl;var o=e.getLineDashOffset();this.state_.lineDashOffset=o||0;var c=e.getLineJoin();this.state_.lineJoin=void 0!==c?c:xl;var h=e.getColor();h=h instanceof CanvasGradient||h instanceof CanvasPattern?Ol:Object(Ih.a)(h).map((function(t,i){return 3!=i?t/255:t}))||Ol;var l=e.getWidth();l=void 0!==l?l:1;var f=e.getMiterLimit();f=void 0!==f?f:10,this.state_.strokeColor&&Object(Lo.b)(this.state_.strokeColor,h)&&this.state_.lineWidth===l&&this.state_.miterLimit===f||(this.state_.changed=!0,this.state_.strokeColor=h,this.state_.lineWidth=l,this.state_.miterLimit=f,this.styles_.push([h,l,f]))},e}(ml),ef=n(119),nf=new hl(sl.g?"precision mediump float;\n\n\n\nuniform vec4 u_color;\nuniform float u_opacity;\n\nvoid main(void) {\n gl_FragColor = u_color;\n float alpha = u_color.a * u_opacity;\n if (alpha == 0.0) {\n discard;\n }\n gl_FragColor.a = alpha;\n}\n":"precision mediump float;uniform vec4 e;uniform float f;void main(void){gl_FragColor=e;float alpha=e.a*f;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"),rf=new ll(sl.g?"\n\nattribute vec2 a_position;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\n\nvoid main(void) {\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0);\n}\n\n\n":"attribute vec2 a;uniform mat4 b;uniform mat4 c;uniform mat4 d;void main(void){gl_Position=b*vec4(a,0.0,1.0);}"),of=function(t,e){this.u_projectionMatrix=t.getUniformLocation(e,sl.g?"u_projectionMatrix":"b"),this.u_offsetScaleMatrix=t.getUniformLocation(e,sl.g?"u_offsetScaleMatrix":"c"),this.u_offsetRotateMatrix=t.getUniformLocation(e,sl.g?"u_offsetRotateMatrix":"d"),this.u_color=t.getUniformLocation(e,sl.g?"u_color":"e"),this.u_opacity=t.getUniformLocation(e,sl.g?"u_opacity":"f"),this.a_position=t.getAttribLocation(e,sl.g?"a_position":"a")},sf=function(t){this.first_,this.last_,this.head_,this.circular_=void 0===t||t,this.length_=0};sf.prototype.insertItem=function(data){var t={prev:void 0,next:void 0,data:data},head=this.head_;if(head){var e=head.next;t.prev=head,t.next=e,head.next=t,e&&(e.prev=t),head===this.last_&&(this.last_=t)}else this.first_=t,this.last_=t,this.circular_&&(t.next=t,t.prev=t);this.head_=t,this.length_++},sf.prototype.removeItem=function(){var head=this.head_;if(head){var t=head.next,e=head.prev;t&&(t.prev=e),e&&(e.next=t),this.head_=t||e,this.first_===this.last_?(this.head_=void 0,this.first_=void 0,this.last_=void 0):this.first_===head?this.first_=this.head_:this.last_===head&&(this.last_=e?this.head_.prev:this.head_),this.length_--}},sf.prototype.firstItem=function(){if(this.head_=this.first_,this.head_)return this.head_.data},sf.prototype.lastItem=function(){if(this.head_=this.last_,this.head_)return this.head_.data},sf.prototype.nextItem=function(){if(this.head_&&this.head_.next)return this.head_=this.head_.next,this.head_.data},sf.prototype.getNextItem=function(){if(this.head_&&this.head_.next)return this.head_.next.data},sf.prototype.prevItem=function(){if(this.head_&&this.head_.prev)return this.head_=this.head_.prev,this.head_.data},sf.prototype.getPrevItem=function(){if(this.head_&&this.head_.prev)return this.head_.prev.data},sf.prototype.getCurrItem=function(){if(this.head_)return this.head_.data},sf.prototype.setFirstItem=function(){this.circular_&&this.head_&&(this.first_=this.head_,this.last_=this.head_.prev)},sf.prototype.concat=function(t){if(t.head_){if(this.head_){var e=this.head_.next;this.head_.next=t.first_,t.first_.prev=this.head_,e.prev=t.last_,t.last_.next=e,this.length_+=t.length_}else this.head_=t.head_,this.first_=t.first_,this.last_=t.last_,this.length_=t.length_;t.head_=void 0,t.first_=void 0,t.last_=void 0,t.length_=0}},sf.prototype.getLength=function(){return this.length_};var af=sf,cf=function(t){function e(e,n){t.call(this,e,n),this.lineStringReplay=new tf(e,n),this.defaultLocations_=null,this.styles_=[],this.styleIndices_=[],this.state_={fillColor:null,changed:!1}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawCoordinates_=function(t,e,n){var r=new af,o=new Wo;this.processFlatCoordinates_(t,n,r,o,!0);var c=this.getMaxCoords_(r);if(e.length){var i,h,l=[];for(i=0,h=e.length;i=c;i-=e)f=this.createPoint_(t[i],t[i+1],v++),y.push(this.insertItem_(l,f,n)),m.push([Math.min(l.x,f.x),Math.min(l.y,f.y),Math.max(l.x,f.x),Math.max(l.y,f.y)]),l=f;y.push(this.insertItem_(f,h,n)),m.push([Math.min(l.x,f.x),Math.min(l.y,f.y),Math.max(l.x,f.x),Math.max(l.y,f.y)])}r.load(m,y)},e.prototype.getMaxCoords_=function(t){var e=t.firstItem(),n=e,r=[n.p0.x,n.p0.y];do{(n=t.nextItem()).p0.x>r[0]&&(r=[n.p0.x,n.p0.y])}while(n!==e);return r},e.prototype.classifyPoints_=function(t,e,n){var r=t.firstItem(),o=r,c=t.nextItem(),h=!1;do{var l=n?jl(c.p1.x,c.p1.y,o.p1.x,o.p1.y,o.p0.x,o.p0.y):jl(o.p0.x,o.p0.y,o.p1.x,o.p1.y,c.p1.x,c.p1.y);void 0===l?(this.removeItem_(o,c,t,e),h=!0,c===r&&(r=t.getNextItem()),c=o,t.prevItem()):o.p1.reflex!==l&&(o.p1.reflex=l,h=!0),o=c,c=t.nextItem()}while(o!==r);return h},e.prototype.bridgeHole_=function(t,e,n,r,o){for(var c=t.firstItem();c.p1.x!==e;)c=t.nextItem();var i,h,l,f,d=c.p1,v={x:r,y:d.y,i:-1},m=1/0,y=this.getIntersections_({p0:d,p1:v},o,!0);for(i=0,h=y.length;i0){var w=this.getPointsInTriangle_(d,f,c.p1,o);if(w.length){var j=1/0;for(i=0,h=w.length;i3;)if(r){if(!this.clipEars_(t,e,r,n)&&!this.classifyPoints_(t,e,n)&&!this.resolveSelfIntersections_(t,e,!0))break}else if(!this.clipEars_(t,e,r,n)&&!this.classifyPoints_(t,e,n)&&!this.resolveSelfIntersections_(t,e)){if(!(r=this.isSimple_(t,e))){this.splitPolygon_(t,e);break}n=!this.isClockwise_(t),this.classifyPoints_(t,e,n)}if(3===t.getLength()){var o=this.indices.length;this.indices[o++]=t.getPrevItem().p0.i,this.indices[o++]=t.getCurrItem().p0.i,this.indices[o++]=t.getNextItem().p0.i}},e.prototype.clipEars_=function(t,e,n,r){var o,c,h,l=this.indices.length,f=t.firstItem(),d=t.getPrevItem(),v=f,m=t.nextItem(),y=t.getNextItem(),_=!1;do{if(o=v.p0,c=v.p1,h=m.p1,!1===c.reflex){var x=void 0;x=n?0===this.getPointsInTriangle_(o,c,h,e,!0).length:r?this.diagonalIsInside_(y.p1,h,c,o,d.p0):this.diagonalIsInside_(d.p0,o,c,h,y.p1),(n||0===this.getIntersections_({p0:o,p1:h},e).length)&&x&&(n||!1===o.reflex||!1===h.reflex||Object(Gl.a)([d.p0.x,d.p0.y,o.x,o.y,c.x,c.y,h.x,h.y,y.p1.x,y.p1.y],0,10,2)===!r)&&(this.indices[l++]=o.i,this.indices[l++]=c.i,this.indices[l++]=h.i,this.removeItem_(v,m,t,e),m===f&&(f=y),_=!0)}d=t.getPrevItem(),v=t.getCurrItem(),m=t.nextItem(),y=t.getNextItem()}while(v!==f&&t.getLength()>3);return _},e.prototype.resolveSelfIntersections_=function(t,e,n){var r=t.firstItem();t.nextItem();var o=r,c=t.nextItem(),h=!1;do{var l=this.calculateIntersection_(o.p0,o.p1,c.p0,c.p1,n);if(l){var f=!1,d=this.vertices.length,v=this.indices.length,m=d/2,y=t.prevItem();t.removeItem(),e.remove(y),f=y===r;var p=void 0;if(n?(l[0]===o.p0.x&&l[1]===o.p0.y?(t.prevItem(),p=o.p0,c.p0=p,e.remove(o),f=f||o===r):(p=c.p1,o.p1=p,e.remove(c),f=f||c===r),t.removeItem()):(p=this.createPoint_(l[0],l[1],m),o.p1=p,c.p0=p,e.update([Math.min(o.p0.x,o.p1.x),Math.min(o.p0.y,o.p1.y),Math.max(o.p0.x,o.p1.x),Math.max(o.p0.y,o.p1.y)],o),e.update([Math.min(c.p0.x,c.p1.x),Math.min(c.p0.y,c.p1.y),Math.max(c.p0.x,c.p1.x),Math.max(c.p0.y,c.p1.y)],c)),this.indices[v++]=y.p0.i,this.indices[v++]=y.p1.i,this.indices[v++]=p.i,h=!0,f)break}o=t.getPrevItem(),c=t.nextItem()}while(o!==r);return h},e.prototype.isSimple_=function(t,e){var n=t.firstItem(),r=n;do{if(this.getIntersections_(r,e).length)return!1;r=t.nextItem()}while(r!==n);return!0},e.prototype.isClockwise_=function(t){var e=2*t.getLength(),n=new Array(e),r=t.firstItem(),o=r,i=0;do{n[i++]=o.p0.x,n[i++]=o.p0.y,o=t.nextItem()}while(o!==r);return Object(Gl.a)(n,0,e,2)},e.prototype.splitPolygon_=function(t,e){var n=t.firstItem(),r=n;do{var o=this.getIntersections_(r,e);if(o.length){var c=o[0],h=this.vertices.length/2,l=this.calculateIntersection_(r.p0,r.p1,c.p0,c.p1),p=this.createPoint_(l[0],l[1],h),f=new af,d=new Wo;this.insertItem_(p,r.p1,f,d),r.p1=p,e.update([Math.min(r.p0.x,p.x),Math.min(r.p0.y,p.y),Math.max(r.p0.x,p.x),Math.max(r.p0.y,p.y)],r);for(var v=t.nextItem();v!==c;)this.insertItem_(v.p0,v.p1,f,d),e.remove(v),t.removeItem(),v=t.getCurrItem();this.insertItem_(c.p0,p,f,d),c.p0=p,e.update([Math.min(c.p1.x,p.x),Math.min(c.p1.y,p.y),Math.max(c.p1.x,p.x),Math.max(c.p1.y,p.y)],c),this.classifyPoints_(t,e,!1),this.triangulate_(t,e),this.classifyPoints_(f,d,!1),this.triangulate_(f,d);break}r=t.nextItem()}while(r!==n)},e.prototype.createPoint_=function(t,e,i){var n=this.vertices.length;return this.vertices[n++]=t,this.vertices[n++]=e,{x:t,y:e,i:i,reflex:void 0}},e.prototype.insertItem_=function(t,e,n,r){var o={p0:t,p1:e};return n.insertItem(o),r&&r.insert([Math.min(t.x,e.x),Math.min(t.y,e.y),Math.max(t.x,e.x),Math.max(t.y,e.y)],o),o},e.prototype.removeItem_=function(t,e,n,r){n.getCurrItem()===e&&(n.removeItem(),t.p1=e.p1,r.remove(e),r.update([Math.min(t.p0.x,t.p1.x),Math.min(t.p0.y,t.p1.y),Math.max(t.p0.x,t.p1.x),Math.max(t.p0.y,t.p1.y)],t))},e.prototype.getPointsInTriangle_=function(t,e,n,r,o){for(var c=[],h=r.getInExtent([Math.min(t.x,e.x,n.x),Math.min(t.y,e.y,n.y),Math.max(t.x,e.x,n.x),Math.max(t.y,e.y,n.y)]),i=0,l=h.length;iwl&&h<1-wl&&l>wl&&l<1-wl||o&&h>=0&&h<=1&&l>=0&&l<=1)return[t.x+h*(e.x-t.x),t.y+h*(e.y-t.y)]}},e.prototype.diagonalIsInside_=function(t,e,n,r,o){if(void 0===e.reflex||void 0===r.reflex)return!1;var c=(n.x-r.x)*(e.y-r.y)>(n.y-r.y)*(e.x-r.x),h=(o.x-r.x)*(e.y-r.y)<(o.y-r.y)*(e.x-r.x),l=(t.x-e.x)*(r.y-e.y)>(t.y-e.y)*(r.x-e.x),f=(n.x-e.x)*(r.y-e.y)<(n.y-e.y)*(r.x-e.x),d=r.reflex?h||c:h&&c,v=e.reflex?f||l:f&&l;return d&&v},e.prototype.drawMultiPolygon=function(t,e){var i,n,r,o,c=t.getEndss(),h=t.getStride(),l=this.indices.length,f=this.lineStringReplay.getCurrentIndex(),d=t.getFlatCoordinates(),v=0;for(i=0,n=c.length;i0){var y=Object(Wu.d)(d,v,m[0],h,-this.origin[0],-this.origin[1]);if(y.length){var _=[],x=void 0;for(r=1,o=m.length;rl&&(this.startIndices.push(l),this.startIndicesFeature.push(e),this.state_.changed&&(this.styleIndices_.push(l),this.state_.changed=!1)),this.lineStringReplay.getCurrentIndex()>f&&this.lineStringReplay.setPolygonStyle(e,f)},e.prototype.drawPolygon=function(t,e){var n=t.getEnds(),r=t.getStride();if(n.length>0){var o=t.getFlatCoordinates().map(Number),c=Object(Wu.d)(o,0,n[0],r,-this.origin[0],-this.origin[1]);if(c.length){var i,h,l,f=[];for(i=1,h=n.length;i0&&(this.styles_=[]),this.vertices=null,this.indices=null},e.prototype.getDeleteResourcesFunction=function(t){var e=this.verticesBuffer,n=this.indicesBuffer,r=this.lineStringReplay.getDeleteResourcesFunction(t);return function(){t.deleteBuffer(e),t.deleteBuffer(n),r()}},e.prototype.setUpProgram=function(t,e,n,r){var o,c=e.getProgram(nf,rf);return this.defaultLocations_?o=this.defaultLocations_:(o=new of(t,c),this.defaultLocations_=o),e.useProgram(c),t.enableVertexAttribArray(o.a_position),t.vertexAttribPointer(o.a_position,2,sl.l,!1,8,0),o},e.prototype.shutDownProgram=function(t,e){t.disableVertexAttribArray(e.a_position)},e.prototype.drawReplay=function(t,e,n,r){var i,o,c,h,l=t.getParameter(t.DEPTH_FUNC),f=t.getParameter(t.DEPTH_WRITEMASK);if(r||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),Object(nt.d)(n))for(c=this.startIndices[this.startIndices.length-1],i=this.styleIndices_.length-1;i>=0;--i)o=this.styleIndices_[i],h=this.styles_[i],this.setFillStyle_(t,h),this.drawElements(t,e,o,c),c=o;else this.drawReplaySkipping_(t,e,n);r||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(f),t.depthFunc(l))},e.prototype.drawHitDetectionReplayOneByOne=function(t,e,n,r,o){var i,c,h,l,f,d,v;for(v=this.startIndices.length-2,h=this.startIndices[v+1],i=this.styleIndices_.length-1;i>=0;--i)for(l=this.styles_[i],this.setFillStyle_(t,l),f=this.styleIndices_[i];v>=0&&this.startIndices[v]>=f;){if(c=this.startIndices[v],d=this.startIndicesFeature[v],void 0===n[Object(st.c)(d)]&&d.getGeometry()&&(void 0===o||Object(et.F)(o,d.getGeometry().getExtent()))){t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),this.drawElements(t,e,c,h);var m=r(d);if(m)return m}v--,h=c}},e.prototype.drawReplaySkipping_=function(t,e,n){var i,r,o,c,h,l,f,d;for(f=this.startIndices.length-2,o=r=this.startIndices[f+1],i=this.styleIndices_.length-1;i>=0;--i){for(c=this.styles_[i],this.setFillStyle_(t,c),h=this.styleIndices_[i];f>=0&&this.startIndices[f]>=h;)d=this.startIndices[f],l=this.startIndicesFeature[f],n[Object(st.c)(l)]&&(r!==o&&(this.drawElements(t,e,r,o),t.clear(t.DEPTH_BUFFER_BIT)),o=d),f--,r=d;r!==o&&(this.drawElements(t,e,r,o),t.clear(t.DEPTH_BUFFER_BIT)),r=o=h}},e.prototype.setFillStyle_=function(t,e){t.uniform4fv(this.defaultLocations_.u_color,e)},e.prototype.setFillStrokeStyle=function(t,e){var n=t?t.getColor():[0,0,0,0];if(n=n instanceof CanvasGradient||n instanceof CanvasPattern?yl:Object(Ih.a)(n).map((function(t,i){return 3!=i?t/255:t}))||yl,this.state_.fillColor&&Object(Lo.b)(n,this.state_.fillColor)||(this.state_.fillColor=n,this.state_.changed=!0,this.styles_.push(n)),e)this.lineStringReplay.setFillStrokeStyle(null,e);else{var r=new Va.a({color:[0,0,0,0],width:0});this.lineStringReplay.setFillStrokeStyle(null,r)}},e}(ml),uf=function(t,e){this.space_=e,this.emptyBlocks_=[{x:0,y:0,width:t,height:t}],this.entries_={},this.context_=Object(ft.a)(t,t),this.canvas_=this.context_.canvas};uf.prototype.get=function(t){return this.entries_[t]||null},uf.prototype.add=function(t,e,n,r,o){for(var i=0,c=this.emptyBlocks_.length;i=e+this.space_&&h.height>=n+this.space_){var l={offsetX:h.x+this.space_,offsetY:h.y+this.space_,image:this.canvas_};return this.entries_[t]=l,r.call(o,this.context_,h.x+this.space_,h.y+this.space_),this.split_(i,h,e+this.space_,n+this.space_),l}}return null},uf.prototype.split_=function(t,e,n,r){var o,c;e.width-n>e.height-r?(o={x:e.x+n,y:e.y,width:e.width-n,height:e.height},c={x:e.x,y:e.y+r,width:n,height:e.height-r},this.updateBlocks_(t,o,c)):(o={x:e.x+n,y:e.y,width:e.width-n,height:r},c={x:e.x,y:e.y+r,width:e.width,height:e.height-r},this.updateBlocks_(t,o,c))},uf.prototype.updateBlocks_=function(t,e,n){var r=[t,1];e.width>0&&e.height>0&&r.push(e),n.width>0&&n.height>0&&r.push(n),this.emptyBlocks_.splice.apply(this.emptyBlocks_,r)};var hf=uf,lf=function(t){var e=t||{};this.currentSize_=void 0!==e.initialSize?e.initialSize:256,this.maxSize_=void 0!==e.maxSize?e.maxSize:void 0!==sl.p?sl.p:2048,this.space_=void 0!==e.space?e.space:1,this.atlases_=[new hf(this.currentSize_,this.space_)],this.currentHitSize_=this.currentSize_,this.hitAtlases_=[new hf(this.currentHitSize_,this.space_)]};lf.prototype.getInfo=function(t){var e=this.getInfo_(this.atlases_,t);if(!e)return null;var n=this.getInfo_(this.hitAtlases_,t);return this.mergeInfos_(e,n)},lf.prototype.getInfo_=function(t,e){for(var i=0,n=t.length;ithis.maxSize_||n+this.space_>this.maxSize_)return null;var h=this.add_(!1,t,e,n,r,c);if(!h)return null;var l=void 0!==o?o:Ao.c,f=this.add_(!0,t,e,n,l,c);return this.mergeInfos_(h,f)},lf.prototype.add_=function(t,e,n,r,o,c){var h,l,i,f,d=t?this.hitAtlases_:this.atlases_;for(i=0,f=d.length;i=0;--y)if(void 0!==(x=_[wh[y]])&&(O=x.replay(t,e,n,r,o,c,h,l,f,d,v)))return O},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,r,o,c,h,l,f,d){var v,m=e.getGL();return m.bindFramebuffer(m.FRAMEBUFFER,e.getHitDetectionFramebuffer()),void 0!==this.renderBuffer_&&(v=Object(et.c)(Object(et.m)(t),r*this.renderBuffer_)),this.replayHitDetection_(e,t,r,o,df,h,l,f,(function(t){var e=new Uint8Array(4);if(m.readPixels(0,0,1,1,m.RGBA,m.UNSIGNED_BYTE,e),e[3]>0){var n=d(t);if(n)return n}}),!0,v)},e.prototype.hasFeatureAtCoordinate=function(t,e,n,r,o,c,h,l,f){var d=e.getGL();return d.bindFramebuffer(d.FRAMEBUFFER,e.getHitDetectionFramebuffer()),void 0!==this.replayHitDetection_(e,t,r,o,df,h,l,f,(function(t){var e=new Uint8Array(4);return d.readPixels(0,0,1,1,d.RGBA,d.UNSIGNED_BYTE,e),e[3]>0}),!1)},e}(lh),vf=gf,mf=function(t){function e(e,n,r,o,c,h,l){t.call(this),this.context_=e,this.center_=n,this.extent_=h,this.pixelRatio_=l,this.size_=c,this.rotation_=o,this.resolution_=r,this.imageStyle_=null,this.fillStyle_=null,this.strokeStyle_=null,this.textStyle_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawText_=function(t,e){var n=this.context_,r=t.getReplay(0,fh.TEXT);r.setTextStyle(this.textStyle_),r.drawText(e,null),r.finish(n);r.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,{},undefined,!1),r.getDeleteResourcesFunction(n)()},e.prototype.setStyle=function(style){this.setFillStrokeStyle(style.getFill(),style.getStroke()),this.setImageStyle(style.getImage()),this.setTextStyle(style.getText())},e.prototype.drawGeometry=function(t){switch(t.getType()){case To.a.POINT:this.drawPoint(t,null);break;case To.a.LINE_STRING:this.drawLineString(t,null);break;case To.a.POLYGON:this.drawPolygon(t,null);break;case To.a.MULTI_POINT:this.drawMultiPoint(t,null);break;case To.a.MULTI_LINE_STRING:this.drawMultiLineString(t,null);break;case To.a.MULTI_POLYGON:this.drawMultiPolygon(t,null);break;case To.a.GEOMETRY_COLLECTION:this.drawGeometryCollection(t,null);break;case To.a.CIRCLE:this.drawCircle(t,null)}},e.prototype.drawFeature=function(t,style){var e=style.getGeometryFunction()(t);e&&Object(et.F)(this.extent_,e.getExtent())&&(this.setStyle(style),this.drawGeometry(e))},e.prototype.drawGeometryCollection=function(t,data){var i,e,n=t.getGeometriesArray();for(i=0,e=n.length;io[0]||c[1]<0||c[1]>o[1])){this.hitCanvasContext_||(this.hitCanvasContext_=Object(ft.a)(1,1)),this.hitCanvasContext_.clearRect(0,0,1,1),this.hitCanvasContext_.drawImage(this.image_.getImage(),c[0],c[1],1,1,0,0,1,1);var h=this.hitCanvasContext_.getImageData(0,0,1,1).data;return h[3]>0?n.call(r,this.getLayer(),h):void 0}}},e.prototype.getHitTransformationMatrix_=function(t,e){var n=Object(Gu.c)();Object(Gu.j)(n,-1,-1),Object(Gu.h)(n,2/t[0],2/t[1]),Object(Gu.j)(n,0,t[1]),Object(Gu.h)(n,1,-1);var r=Object(Gu.d)(this.projectionMatrix.slice()),o=Object(Gu.c)();return Object(Gu.j)(o,0,e[1]),Object(Gu.h)(o,1,-1),Object(Gu.h)(o,e[0]/2,e[1]/2),Object(Gu.j)(o,1,1),Object(Gu.e)(o,r),Object(Gu.e)(o,n),o},e}(xf);Of.handles=function(t){return t.getType()===Rs},Of.create=function(t,e){return new Of(t,e)};var wf=Of,jf=n(222),Sf=function(t){function e(map){t.call(this,map);var e=map.getViewport();this.canvas_=document.createElement("canvas"),this.canvas_.style.width="100%",this.canvas_.style.height="100%",this.canvas_.style.display="block",this.canvas_.className=eu.e,e.insertBefore(this.canvas_,e.childNodes[0]||null),this.clipTileCanvasWidth_=0,this.clipTileCanvasHeight_=0,this.clipTileContext_=Object(ft.a)(),this.renderedVisible_=!0,this.gl_=Object(sl.K)(this.canvas_,{antialias:!0,depth:!0,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!1,stencil:!0}),this.context_=new Dl(this.canvas_,this.gl_),Object(pt.a)(this.canvas_,Fl,this.handleWebGLContextLost,this),Object(pt.a)(this.canvas_,Ll,this.handleWebGLContextRestored,this),this.textureCache_=new mt.a,this.focus_=null,this.tileTextureQueue_=new jf.b(function(element){var t=element[1],e=element[2],n=t[0]-this.focus_[0],r=t[1]-this.focus_[1];return 65536*Math.log(e)+Math.sqrt(n*n+r*r)/e}.bind(this),(function(element){return element[0].getKey()})),this.loadNextTileTexture_=function(map,t){if(!this.tileTextureQueue_.isEmpty()){this.tileTextureQueue_.reprioritize();var element=this.tileTextureQueue_.dequeue(),e=element[0],n=element[3],r=element[4];this.bindTileTexture(e,n,r,sl.o,sl.o)}return!1}.bind(this),this.textureCacheFrameMarkerCount_=0,this.initializeGL_()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.bindTileTexture=function(t,e,n,r,o){var c=this.getGL(),h=t.getKey();if(this.textureCache_.containsKey(h)){var l=this.textureCache_.get(h);c.bindTexture(sl.z,l.texture),l.magFilter!=r&&(c.texParameteri(sl.z,sl.A,r),l.magFilter=r),l.minFilter!=o&&(c.texParameteri(sl.z,sl.B,o),l.minFilter=o)}else{var f=c.createTexture(),d=t;if(c.bindTexture(sl.z,f),n>0){var v=this.clipTileContext_.canvas,m=this.clipTileContext_;this.clipTileCanvasWidth_!==e[0]||this.clipTileCanvasHeight_!==e[1]?(v.width=e[0],v.height=e[1],this.clipTileCanvasWidth_=e[0],this.clipTileCanvasHeight_=e[1]):m.clearRect(0,0,e[0],e[1]),m.drawImage(d.getImage(),n,n,e[0],e[1],0,0,e[0],e[1]),c.texImage2D(sl.z,0,sl.s,sl.s,sl.G,v)}else c.texImage2D(sl.z,0,sl.s,sl.s,sl.G,d.getImage());c.texParameteri(sl.z,sl.A,r),c.texParameteri(sl.z,sl.B,o),c.texParameteri(sl.z,sl.C,sl.c),c.texParameteri(sl.z,sl.D,sl.c),this.textureCache_.set(h,{texture:f,magFilter:r,minFilter:o})}},e.prototype.dispatchRenderEvent=function(t,e){var map=this.getMap();if(map.hasListener(t)){var n=this.context_,r=e.extent,o=e.size,c=e.viewState,h=e.pixelRatio,l=c.resolution,f=c.center,d=c.rotation,v=new mf(n,f,l,d,o,r,h),m=new zu(t,v,e,null,n);map.dispatchEvent(m)}},e.prototype.disposeInternal=function(){var e=this.getGL();e.isContextLost()||this.textureCache_.forEach((function(t){t&&e.deleteTexture(t.texture)})),this.context_.dispose(),t.prototype.disposeInternal.call(this)},e.prototype.expireCache_=function(map,t){for(var e,n=this.getGL();this.textureCache_.getCount()-this.textureCacheFrameMarkerCount_>1024;){if(e=this.textureCache_.peekLast())n.deleteTexture(e.texture);else{if(+this.textureCache_.peekLastKey()==t.index)break;--this.textureCacheFrameMarkerCount_}this.textureCache_.pop()}},e.prototype.getContext=function(){return this.context_},e.prototype.getGL=function(){return this.gl_},e.prototype.getTileTextureQueue=function(){return this.tileTextureQueue_},e.prototype.handleWebGLContextLost=function(t){t.preventDefault(),this.textureCache_.clear(),this.textureCacheFrameMarkerCount_=0;var e=this.getLayerRenderers();for(var n in e){e[n].handleWebGLContextLost()}},e.prototype.handleWebGLContextRestored=function(){this.initializeGL_(),this.getMap().render()},e.prototype.initializeGL_=function(){var t=this.gl_;t.activeTexture(sl.y),t.blendFuncSeparate(sl.u,sl.r,sl.q,sl.r),t.disable(sl.f),t.disable(sl.h),t.disable(sl.t),t.disable(sl.w)},e.prototype.isTileTextureLoaded=function(t){return this.textureCache_.containsKey(t.getKey())},e.prototype.renderFrame=function(t){var e=this.getContext(),n=this.getGL();if(n.isContextLost())return!1;if(!t)return this.renderedVisible_&&(this.canvas_.style.display="none",this.renderedVisible_=!1),!1;this.focus_=t.focus,this.textureCache_.set((-t.index).toString(),null),++this.textureCacheFrameMarkerCount_,this.dispatchRenderEvent(As.a.PRECOMPOSE,t);var r=[],o=t.layerStatesArray;Object(Lo.l)(o,Zu);var i,c,h=t.viewState.resolution;for(i=0,c=o.length;i1024&&t.postRenderFunctions.push(this.expireCache_.bind(this)),this.tileTextureQueue_.isEmpty()||(t.postRenderFunctions.push(this.loadNextTileTexture_),t.animate=!0),this.dispatchRenderEvent(As.a.POSTCOMPOSE,t),this.scheduleRemoveUnusedLayerRenderers(t),this.scheduleExpireIconCache(t)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,r,o,c,h){var l;if(this.getGL().isContextLost())return!1;var i,f=e.viewState,d=e.layerStatesArray;for(i=d.length-1;i>=0;--i){var v=d[i],m=v.layer;if(Ms(v,f.resolution)&&c.call(h,m))if(l=this.getLayerRenderer(m).forEachFeatureAtCoordinate(t,e,n,r))return l}},e.prototype.hasFeatureAtCoordinate=function(t,e,n,r,o){var c=!1;if(this.getGL().isContextLost())return!1;var i,h=e.viewState,l=e.layerStatesArray;for(i=l.length-1;i>=0;--i){var f=l[i],d=f.layer;if(Ms(f,h.resolution)&&r.call(o,d))if(c=this.getLayerRenderer(d).hasFeatureAtCoordinate(t,e))return!0}return c},e.prototype.forEachLayerAtPixel=function(t,e,n,r,o,c,h){if(this.getGL().isContextLost())return!1;var l,i,f=e.viewState,d=e.layerStatesArray;for(i=d.length-1;i>=0;--i){var v=d[i],m=v.layer;if(Ms(v,f.resolution)&&c.call(o,m))if(l=this.getLayerRenderer(m).forEachLayerAtPixel(t,e,r,o))return l}},e}(Ju),Ef=new hl(sl.g?"precision mediump float;\nvarying vec2 v_texCoord;\n\n\nuniform sampler2D u_texture;\n\nvoid main(void) {\n gl_FragColor = texture2D(u_texture, v_texCoord);\n}\n":"precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor=texture2D(e,a);}"),Cf=new ll(sl.g?"varying vec2 v_texCoord;\n\n\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\nuniform vec4 u_tileOffset;\n\nvoid main(void) {\n gl_Position = vec4(a_position * u_tileOffset.xy + u_tileOffset.zw, 0., 1.);\n v_texCoord = a_texCoord;\n}\n\n\n":"varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position=vec4(b*d.xy+d.zw,0.,1.);a=c;}"),Tf=function(t,e){this.u_tileOffset=t.getUniformLocation(e,sl.g?"u_tileOffset":"d"),this.u_texture=t.getUniformLocation(e,sl.g?"u_texture":"e"),this.a_position=t.getAttribLocation(e,sl.g?"a_position":"b"),this.a_texCoord=t.getAttribLocation(e,sl.g?"a_texCoord":"c")},Rf=function(t){function e(e,n){t.call(this,e,n),this.fragmentShader_=Ef,this.vertexShader_=Cf,this.locations_=null,this.renderArrayBuffer_=new Cl([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),this.renderedTileRange_=null,this.renderedFramebufferExtent_=null,this.renderedRevision_=-1,this.tmpSize_=[0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.mapRenderer.getContext().deleteBuffer(this.renderArrayBuffer_),t.prototype.disposeInternal.call(this)},e.prototype.createLoadedTileFinder=function(source,t,e){var n=this.mapRenderer;return function(r,o){return source.forEachLoadedTile(t,r,o,(function(t){var o=n.isTileTextureLoaded(t);return o&&(e[r]||(e[r]={}),e[r][t.tileCoord.toString()]=t),o}))}},e.prototype.handleWebGLContextLost=function(){t.prototype.handleWebGLContextLost.call(this),this.locations_=null},e.prototype.prepareFrame=function(t,e,n){var r=this.mapRenderer,o=n.getGL(),c=t.viewState,h=c.projection,l=this.getLayer(),f=l.getSource();if(!(f instanceof Dt))return!0;var d,v=f.getTileGridForProjection(h),m=v.getZForResolution(c.resolution),y=v.getResolution(m),_=f.getTilePixelSize(m,t.pixelRatio,h),x=_[0]/Object(ot.d)(v.getTileSize(m),this.tmpSize_)[0],O=y/x,w=f.getTilePixelRatio(x)*f.getGutterForProjection(h),j=c.center,S=t.extent,E=v.getTileRangeForExtentAndZ(S,m);if(this.renderedTileRange_&&this.renderedTileRange_.equals(E)&&this.renderedRevision_==f.getRevision())d=this.renderedFramebufferExtent_;else{var C=E.getSize(),T=Math.max(C[0]*_[0],C[1]*_[1]),R=Object(it.e)(T),I=O*R,P=v.getOrigin(m),F=P[0]+E.minX*_[0]*O,L=P[1]+E.minY*_[1]*O;d=[F,L,F+I,L+I],this.bindFramebuffer(t,R),o.viewport(0,0,R,R),o.clearColor(0,0,0,0),o.clear(sl.e),o.disable(sl.b);var A=n.getProgram(this.fragmentShader_,this.vertexShader_);n.useProgram(A),this.locations_||(this.locations_=new Tf(o,A)),n.bindBuffer(sl.a,this.renderArrayBuffer_),o.enableVertexAttribArray(this.locations_.a_position),o.vertexAttribPointer(this.locations_.a_position,2,sl.l,!1,16,0),o.enableVertexAttribArray(this.locations_.a_texCoord),o.vertexAttribPointer(this.locations_.a_texCoord,2,sl.l,!1,16,8),o.uniform1i(this.locations_.u_texture,0);var M={};M[m]={};var k,D,N,$,G,z,B=this.createLoadedTileFinder(f,h,M),V=l.getUseInterimTilesOnError(),U=!0,W=Object(et.j)(),Y=new ah.b(0,0,0,0);for($=E.minX;$<=E.maxX;++$)for(G=E.minY;G<=E.maxY;++G)if(D=f.getTile(m,$,G,x,h),void 0===e.extent||(z=v.getTileCoordExtent(D.tileCoord,W),Object(et.F)(z,e.extent))){if((N=D.getState())==at.a.LOADED||N==at.a.EMPTY||N==at.a.ERROR&&!V||(D=D.getInterimTile()),(N=D.getState())==at.a.LOADED){if(r.isTileTextureLoaded(D)){M[m][D.tileCoord.toString()]=D;continue}}else if(N==at.a.EMPTY||N==at.a.ERROR&&!V)continue;U=!1,v.forEachTileCoordParentTileRange(D.tileCoord,B,null,Y,W)||(k=v.getTileCoordChildTileRange(D.tileCoord,Y,W))&&B(m+1,k)}var X=Object.keys(M).map(Number);X.sort(Lo.i);for(var H=new Float32Array(4),i=0,K=X.length;i0?n.call(r,this.getLayer(),f):void 0}},e}(xf);Rf.handles=function(t){return t.getType()===Is},Rf.create=function(t,e){return new Rf(t,e)};var If=Rf,Pf=function(t){function e(e,n){t.call(this,e,n),this.dirty_=!1,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=Object(et.j)(),this.renderedRenderOrder_=null,this.replayGroup_=null,this.layerState_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.composeFrame=function(t,e,n){this.layerState_=e;var r=t.viewState,o=this.replayGroup_,c=t.size,h=t.pixelRatio,l=this.mapRenderer.getGL();o&&!o.isEmpty()&&(l.enable(l.SCISSOR_TEST),l.scissor(0,0,c[0]*h,c[1]*h),o.replay(n,r.center,r.resolution,r.rotation,c,h,e.opacity,e.managed?t.skippedFeatureUids:{}),l.disable(l.SCISSOR_TEST))},e.prototype.disposeInternal=function(){var e=this.replayGroup_;if(e){var n=this.mapRenderer.getContext();e.getDeleteResourcesFunction(n)(),this.replayGroup_=null}t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,r,o){if(this.replayGroup_&&this.layerState_){var c=this.mapRenderer.getContext(),h=e.viewState,l=this.getLayer(),f=this.layerState_,d={};return this.replayGroup_.forEachFeatureAtCoordinate(t,c,h.center,h.resolution,h.rotation,e.size,e.pixelRatio,f.opacity,{},(function(t){var e=Object(st.c)(t);if(!(e in d))return d[e]=!0,r.call(o,t,l)}))}},e.prototype.hasFeatureAtCoordinate=function(t,e){if(this.replayGroup_&&this.layerState_){var n=this.mapRenderer.getContext(),r=e.viewState,o=this.layerState_;return this.replayGroup_.hasFeatureAtCoordinate(t,n,r.center,r.resolution,r.rotation,e.size,e.pixelRatio,o.opacity,e.skippedFeatureUids)}return!1},e.prototype.forEachLayerAtPixel=function(t,e,n,r){var o=Object(Gu.a)(e.pixelToCoordinateTransform,t.slice());return this.hasFeatureAtCoordinate(o,e)?n.call(r,this.getLayer(),null):void 0},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t,e,n){var r=this.getLayer(),o=r.getSource(),c=t.viewHints[fu.a.ANIMATING],h=t.viewHints[fu.a.INTERACTING],l=r.getUpdateWhileAnimating(),f=r.getUpdateWhileInteracting();if(!this.dirty_&&!l&&c||!f&&h)return!0;var d=t.extent,v=t.viewState,m=v.projection,y=v.resolution,_=t.pixelRatio,x=r.getRevision(),O=r.getRenderBuffer(),w=r.getRenderOrder();void 0===w&&(w=Bh);var j=Object(et.c)(d,O*y);if(!this.dirty_&&this.renderedResolution_==y&&this.renderedRevision_==x&&this.renderedRenderOrder_==w&&Object(et.g)(this.renderedExtent_,j))return!0;this.replayGroup_&&t.postRenderFunctions.push(this.replayGroup_.getDeleteResourcesFunction(n)),this.dirty_=!1;var S=new vf(Uh(y,_),j,r.getRenderBuffer());o.loadFeatures(j,y,m);var E=function(t){var e,n=t.getStyleFunction()||r.getStyleFunction();if(n&&(e=n(t,y)),e){var o=this.renderFeature(t,y,_,e,S);this.dirty_=this.dirty_||o}}.bind(this);if(w){var C=[];o.forEachFeatureInExtent(j,(function(t){C.push(t)})),C.sort(w),C.forEach(E.bind(this))}else o.forEachFeatureInExtent(j,E);return S.finish(n),this.renderedResolution_=y,this.renderedRevision_=x,this.renderedRenderOrder_=w,this.renderedExtent_=j,this.replayGroup_=S,!0},e.prototype.renderFeature=function(t,e,n,r,o){if(!r)return!1;var c=!1;if(Array.isArray(r))for(var i=r.length-1;i>=0;--i)c=Wh(o,t,r[i],Vh(e,n),this.handleStyleImageChange_,this)||c;else c=Wh(o,t,r,Vh(e,n),this.handleStyleImageChange_,this)||c;return c},e}(xf);Pf.handles=function(t){return t.getType()===Fs},Pf.create=function(t,e){return new Pf(t,e)};var Ff=Pf,Lf=function(t){function e(e){(e=Object(nt.a)({},e)).controls||(e.controls=au()),e.interactions||(e.interactions=Du()),t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRenderer=function(){var t=new Sf(this);return t.registerLayerRenderers([wf,If,Ff]),t},e}(Nu.a);function Af(object,t){var e=se()(object);if(Ht.a){var n=Ht()(object);t&&(n=qt()(n).call(n,(function(t){return Jt()(object,t).enumerable}))),e.push.apply(e,n)}return e}function Mf(t){for(var i=1;i2&&void 0!==arguments[2]?arguments[2]:{};return Ai(this),this.$map.forEachFeatureAtPixel(t,e,n)},forEachLayerAtPixel:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ai(this),this.$map.forEachLayerAtPixel(t,e,n)},getFeaturesAtPixel:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ai(this),this.$map.getFeaturesAtPixel(t,e)},refresh:function(){var t=this;return this.updateSize(),this.render().then((function(){return Sn.a.methods.refresh.call(t)}))},render:function(){var t=this;return new Rn.a((function(e){Ai(t),t.$map.once("postrender",(function(){return e()})),t.$map.render()}))},updateSize:function(){Ai(this),this.$map.updateSize()},setView:function(view){(view=view instanceof Ee.a?view.$view:view)||(view=new rl.a),view!==this._view&&(this._view=view),this.$map&&view!==this.$map.getView()&&this.$map.setView(view)},getView:function(){return this._view},mount:function(){Ai(this),this.$map.setTarget(this.$el),this.$nextTick(this.updateSize.bind(this)),this.subscribeAll()},unmount:function(){Ai(this),this.unsubscribeAll(),this.$map.setTarget(null)},subscribeAll:function(){Nf.call(this)},getServices:function(){var t=this;return Object(jn.a)(Sn.a.methods.getServices.call(this),dr.methods.getServices.call(this),ir.methods.getServices.call(this),mr.methods.getServices.call(this),gn.methods.getServices.call(this),{get map(){return t.$map},get view(){return t.$view},get viewContainer(){return t}})}},watch:Mf(Mf({},de(["keyboardEventTarget","loadTilesWhileAnimating","loadTilesWhileInteracting","moveTolerance","pixelRatio","renderer","maxTilesLoading"],(function(){return function(){this.scheduleRecreate()}}))),{},{id:function(t){this.$map&&t!==Object(ae.I)(this.$map)&&Object(ae.gb)(this.$map,t)},defaultControls:{deep:!0,handler:function(t){var e,n,r=this;we()(e=this._controlsCollection.getArray()).call(e).forEach((function(t){t.get("vl_default")&&r._controlsCollection.remove(t)})),!1!==t&&(t="object"===Object(ie.a)(t)?t:void 0,this._controlsCollection.extend(_e()(n=au(t).getArray()).call(n,(function(t){return t.set("vl_default",!0),t}))))}},defaultInteractions:{deep:!0,handler:function(t){var e,n,r,o=this;we()(e=this._interactionsCollection.getArray()).call(e).forEach((function(t){t.get("vl_default")&&o._interactionsCollection.remove(t)})),!1!==t&&(t="object"===Object(ie.a)(t)?t:void 0,this._interactionsCollection.extend(_e()(n=Du(t).getArray()).call(n,(function(t){return t.set("vl_default",!0),t}))),console.log(we()(r=this._interactionsCollection.getArray()).call(r)))}},wrapX:function(t){null!=this._featuresOverlay&&this._featuresOverlay.setSource(new Xo({features:this.$featuresCollection,wrapX:t}))},dataProjection:function(t){this.$map&&(Object(ae.fb)(this.$map,t),this.scheduleRefresh())}}),created:function(){this._view=new rl.a({center:[0,0],zoom:0}),this._controlsCollection=this.instanceFactoryCall(this.controlsCollectionIdent,(function(){return new je.a})),this.defaultControls instanceof je.a?this._controlsCollection=this.defaultControls:!1!==this.defaultControls&&(this._controlsCollection=au(Object(ce.q)(this.defaultControls)?this.defaultControls:void 0)),this._controlsCollection.forEach((function(t){t.set("vl_default",!0)})),this.defaultInteractions instanceof je.a?this._interactionsCollection=this.defaultInteractions:!1!==this.defaultInteractions&&(this._interactionsCollection=Du(Object(ce.q)(this.defaultInteractions)?this.defaultInteractions:void 0)),this._interactionsCollection.forEach((function(t){(t=Object(ae.P)(t)).set("vl_default",!0)})),this._featuresOverlay=new zs({source:new Xo({features:this.$featuresCollection,wrapX:this.wrapX})}),Df.call(this)}};function Df(){var t=this;Object.defineProperties(this,{$map:{enumerable:!0,get:function(){return t.$olObject}},$view:{enumerable:!0,get:this.getView}})}function Nf(){var t=this;Ai(this),Mi(this);var e=ei(ln(this.$map,["click","dblclick","singleclick"]),ln(this.$map,["pointerdrag","pointermove"]).pipe(on((function(a,b){return Object(ce.l)({t:a.type,c:a.coordinate},{t:b.type,c:b.coordinate})})))).pipe(Pe((function(e){return Mf(Mf({},e),{},{coordinate:t.pointToDataProj(e.coordinate)})}))),n=ei(e,ln(this.$map,["movestart","moveend","postrender","rendercomplete","precompose","postcompose","rendercomplete"]));this.subscribeTo(n,(function(e){t.$emit(e.type,e)}))}var $f=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="map.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:t.cmpName,attrs:{id:t.vmId,tabindex:t.tabindex}},[t._t("default")],2)},staticRenderFns:[]},0,kf,undefined,!1);function Gf(object,t){var e=se()(object);if(Ht.a){var n=Ht()(object);t&&(n=qt()(n).call(n,(function(t){return Jt()(object,t).enumerable}))),e.push.apply(e,n)}return e}function zf(t){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:{};Mi(this),Object(ce.q)(t)?t=this.readGeometryInDataProj(t):t instanceof Ee.a&&(t=t.$geometry);var r=n.callback||ce.w;return new Rn.a((function(o){e.$view.fit(t,zf(zf({},n),{},{callback:function(t){r(t),o(t)}}))}))},mount:function(){this.$viewContainer&&this.$viewContainer.setView(this),this.subscribeAll()},unmount:function(){this.unsubscribeAll(),this.$viewContainer&&this.$viewContainer.setView(void 0)},subscribeAll:function(){Uf.call(this)}},watch:zf({id:function(t){this.$view&&t!==this.$view.get("id")&&this.$view.set("id",t)},center:function(t){this.$view&&!this.$view.getAnimating()&&(t=this.pointToViewProj(t),Object(ce.l)(t,this.currentCenterViewProj)||this.$view.setCenter(t))},resolution:function(t){this.$view&&!this.$view.getAnimating()&&t!==this.currentResolution&&this.$view.setResolution(t)},zoom:function(t){this.$view&&!this.$view.getAnimating()&&t!==this.currentZoom&&this.$view.setZoom(t)},rotation:function(t){this.$view&&!this.$view.getAnimating()&&t!==this.currentRotation&&this.$view.setRotation(t)},minZoom:function(t){this.$view&&t!==this.$view.getMinZoom()&&this.$view.setMinZoom(t)},maxZoom:function(t){this.$view&&t!==this.$view.getMaxZoom()&&this.$view.setMaxZoom(t)}},de(["resolvedDataProjection","constrainRotation","enableRotation","extent","maxResolution","minResolution","projection","resolutions","zoomFactor"],(function(){return function(){this.scheduleRecreate()}}))),stubVNode:{empty:function(){return this.vmId}},created:function(){Vf.call(this)}};function Vf(){var t=this;Object.defineProperties(this,{$view:{enumerable:!0,get:function(){return t.$olObject}},$viewContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.viewContainer}}})}function Uf(){var t=this;Mi(this);var e,n,r=1e3/60,o=fn(this.$view,"resolution",!0,r),c=o.pipe(Pe((function(){return{prop:"zoom",value:t.$view.getZoom()}})),(e="value",on((function(t,r){return n?n(t[e],r[e]):t[e]===r[e]})))),h=ei(fn(this.$view,"center",!0,r,(function(){return t.pointToDataProj(t.$view.getCenter())})),fn(this.$view,"rotation",!0,r),o,c);this.subscribeTo(h,(function(e){var n=e.prop,r=e.value;++t.rev,t.$nextTick((function(){t.$emit("update:".concat(n),r)}))}))}var Wf=function(template,style,script,t,e,n,r,o){var component=("function"==typeof script?script.options:script)||{};return component.__file="view.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,e&&(component.functional=!0)),component._scopeId=t,component}({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("i",{class:t.cmpName,staticStyle:{display:"none !important"},attrs:{id:t.vmId}},[t._t("default",null,{center:t.currentCenter,zoom:t.currentZoom,resolution:t.currentResolution,rotation:t.currentRotation})],2)},staticRenderFns:[]},0,Bf,undefined,!1);function Yf(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Yf.installed||(Yf.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()($f,e),eo()(Wf,e),t.component($f.name,$f),t.component(Wf.name,Wf))}var Xf=Yf,Hf='© MapBox, '+(new Date).getFullYear();var Kf=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="source.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-source-mapbox",mixins:[Qr],props:{accessToken:{type:String,required:!0},attributions:{type:[String,Array],default:Hf},mapId:{type:String,required:!0},projection:{type:String,default:ae.c},tileFormat:{type:String,default:ae.k},url:{type:String,default:"https://{a-c}.tiles.mapbox.com/v4/{mapId}/{z}/{x}/{y}{tileNameSuffix}.{tileFormat}?access_token={accessToken}",required:!1}},computed:{tileNameSuffix:function(){return(t=function(t){return(t=Object(ce.c)(t,1))>1?2:1}(t=this.tilePixelRatio))>1?["@",t,"x"].join(""):"";var t},urlTokens:function(){return["mapId","accessToken","tileNameSuffix","tileFormat"]}}},undefined,undefined);function qf(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qf.installed||(qf.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Kf,e),t.component(Kf.name,Kf))}var Zf=qf,Jf="modifystart",Qf="modifyend",ed=function(t){function e(e,n,r){t.call(this,e),this.features=n,this.mapBrowserEvent=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ft.a),id=function(t){function e(e){var style,n;if(t.call(this,e),this.condition_=e.condition?e.condition:ms,this.defaultDeleteCondition_=function(t){return ss(t)&&fs(t)},this.deleteCondition_=e.deleteCondition?e.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:us,this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.modified_=!1,this.rBush_=new Wo,this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new zs({source:new Xo({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:(style=Object(yr.b)(),function(t,e){return style[To.a.POINT]}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_,LineString:this.writeLineStringGeometry_,LinearRing:this.writeLineStringGeometry_,Polygon:this.writePolygonGeometry_,MultiPoint:this.writeMultiPointGeometry_,MultiLineString:this.writeMultiLineStringGeometry_,MultiPolygon:this.writeMultiPolygonGeometry_,Circle:this.writeCircleGeometry_,GeometryCollection:this.writeGeometryCollectionGeometry_},this.source_=null,e.source?(this.source_=e.source,n=new je.a(this.source_.getFeatures()),Object(pt.a)(this.source_,No,this.handleSourceAdd_,this),Object(pt.a)(this.source_,zo,this.handleSourceRemove_,this)):n=e.features,!n)throw new Error("The modify interaction requires features or a source");this.features_=n,this.features_.forEach(this.addFeature_.bind(this)),Object(pt.a)(this.features_,Po.a.ADD,this.handleFeatureAdd_,this),Object(pt.a)(this.features_,Po.a.REMOVE,this.handleFeatureRemove_,this),this.lastPointerEvent_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addFeature_=function(t){var e=t.getGeometry();e&&e.getType()in this.SEGMENT_WRITERS_&&this.SEGMENT_WRITERS_[e.getType()].call(this,t,e);var map=this.getMap();map&&map.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,map),Object(pt.a)(t,ht.a.CHANGE,this.handleFeatureChange_,this)},e.prototype.willModifyFeatures_=function(t){this.modified_||(this.modified_=!0,this.dispatchEvent(new ed(Jf,this.features_,t)))},e.prototype.removeFeature_=function(t){this.removeFeatureSegmentData_(t),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),Object(pt.c)(t,ht.a.CHANGE,this.handleFeatureChange_,this)},e.prototype.removeFeatureSegmentData_=function(t){var e=this.rBush_,n=[];e.forEach((function(e){t===e.feature&&n.push(e)}));for(var i=n.length-1;i>=0;--i)e.remove(n[i])},e.prototype.setActive=function(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.prototype.setActive.call(this,e)},e.prototype.setMap=function(map){this.overlay_.setMap(map),t.prototype.setMap.call(this,map)},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleSourceAdd_=function(t){t.feature&&this.features_.push(t.feature)},e.prototype.handleSourceRemove_=function(t){t.feature&&this.features_.remove(t.feature)},e.prototype.handleFeatureAdd_=function(t){this.addFeature_(t.element)},e.prototype.handleFeatureChange_=function(t){if(!this.changingFeature_){var e=t.target;this.removeFeature_(e),this.addFeature_(e)}},e.prototype.handleFeatureRemove_=function(t){var e=t.element;this.removeFeature_(e)},e.prototype.writePointGeometry_=function(t,e){var n=e.getCoordinates(),r={feature:t,geometry:e,segment:[n,n]};this.rBush_.insert(e.getExtent(),r)},e.prototype.writeMultiPointGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i=0;--x)this.insertVertex_.apply(this,r[x])}return!!this.vertexFeature_},e.prototype.handleUpEvent=function(t){for(var i=this.dragSegments_.length-1;i>=0;--i){var e=this.dragSegments_[i][0],n=e.geometry;if(n.getType()===To.a.CIRCLE){var r=n.getCenter(),o=e.featureSegments[0],c=e.featureSegments[1];o.segment[0]=o.segment[1]=r,c.segment[0]=c.segment[1]=r,this.rBush_.update(Object(et.m)(r),o),this.rBush_.update(n.getExtent(),c)}else this.rBush_.update(Object(et.b)(e.segment),e)}return this.modified_&&(this.dispatchEvent(new ed(Qf,this.features_,t)),this.modified_=!1),!1},e.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map)},e.prototype.handlePointerAtPixel_=function(t,map){var e=map.getCoordinateFromPixel(t),n=Object(et.c)(Object(et.m)(e),map.getView().getResolution()*this.pixelTolerance_),r=this.rBush_.getInExtent(n);if(r.length>0){r.sort((function(a,b){return rd(e,a)-rd(e,b)}));var o=r[0],c=o.segment,h=od(e,o),l=map.getPixelFromCoordinate(h),f=Object(Ro.e)(t,l);if(f<=this.pixelTolerance_){var d={};if(o.geometry.getType()===To.a.CIRCLE&&1===o.index)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(h);else{var v=map.getPixelFromCoordinate(c[0]),m=map.getPixelFromCoordinate(c[1]),y=Object(Ro.i)(l,v),_=Object(Ro.i)(l,m);f=Math.sqrt(Math.min(y,_)),this.snappedToVertex_=f<=this.pixelTolerance_,this.snappedToVertex_&&(h=y>_?c[1]:c[0]),this.createOrUpdateVertexFeature_(h);for(var i=1,x=r.length;i=0;--i)l=(e=d[i])[0],f=Object(st.c)(l.feature),l.depth&&(f+="-"+l.depth.join("-")),f in v||(v[f]={}),0===e[1]?(v[f].right=l,v[f].index=l.index):1==e[1]&&(v[f].left=l,v[f].index=l.index+1);for(f in v){switch(h=v[f].right,o=v[f].left,(c=(r=v[f].index)-1)<0&&(c=0),component=t=(n=(l=void 0!==o?o:h).geometry).getCoordinates(),m=!1,n.getType()){case To.a.MULTI_LINE_STRING:t[l.depth[0]].length>2&&(t[l.depth[0]].splice(r,1),m=!0);break;case To.a.LINE_STRING:t.length>2&&(t.splice(r,1),m=!0);break;case To.a.MULTI_POLYGON:component=component[l.depth[1]];case To.a.POLYGON:(component=component[l.depth[0]]).length>4&&(r==component.length-1&&(r=0),component.splice(r,1),m=!0,0===r&&(component.pop(),component.push(component[0]),c=component.length-1))}if(m){this.setGeometryCoordinates_(n,t);var y=[];if(void 0!==o&&(this.rBush_.remove(o),y.push(o.segment[0])),void 0!==h&&(this.rBush_.remove(h),y.push(h.segment[1])),void 0!==o&&void 0!==h){var _={depth:l.depth,feature:l.feature,geometry:l.geometry,index:c,segment:y};this.rBush_.insert(Object(et.b)(_.segment),_)}this.updateSegmentIndices_(n,r,l.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),d.length=0}}return m},e.prototype.setGeometryCoordinates_=function(t,e){this.changingFeature_=!0,t.setCoordinates(e),this.changingFeature_=!1},e.prototype.updateSegmentIndices_=function(t,e,n,r){this.rBush_.forEachInExtent(t.getExtent(),(function(o){o.geometry===t&&(void 0===n||void 0===o.depth||Object(Lo.b)(o.depth,n))&&o.index>e&&(o.index+=r)}))},e}(Cs);function nd(a,b){return a.index-b.index}function rd(t,e){var n=e.geometry;if(n.getType()===To.a.CIRCLE){var r=n;if(1===e.index){var o=Object(Ro.i)(r.getCenter(),t),c=Math.sqrt(o)-r.getRadius();return c*c}}return Object(Ro.j)(t,e.segment)}function od(t,e){var n=e.geometry;return n.getType()===To.a.CIRCLE&&1===e.index?n.getClosestPoint(t):Object(Ro.c)(t,e.segment)}var sd=id;function ad(object,t){var e=se()(object);if(Ht.a){var n=Ht()(object);t&&(n=qt()(n).call(n,(function(t){return Jt()(object,t).enumerable}))),e.push.apply(e,n)}return e}var cd={name:"vl-interaction-modify",mixins:[Kn,_r],stubVNode:{empty:!1,attrs:function(){return{id:this.vmId,class:this.cmpName}}},props:{source:{type:String,required:!0},condition:{type:Function,default:ms},deleteCondition:{type:Function,default:ss},insertVertexCondition:{type:Function,default:us},pixelTolerance:{type:Number,default:10},wrapX:{type:Boolean,default:!1}},methods:{createInteraction:function(){var t=this;return Object(vn.a)(yn.a.mark((function e(){var source,n;return yn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getInstance(t.source);case 2:return Fi(!!(source=e.sent),'Source "'.concat(t.source,'" not found in identity map.')),source instanceof Xo?(n=source.getFeaturesCollection())&&(Li(n,je.a,'Source "'.concat(t.source,"\" doesn't provide features collection.")),source=null):(Object(ce.n)(source.getFeaturesCollection)?n=source.getFeaturesCollection():Object(ce.n)(source.getFeatures)&&(n=source.getFeatures()),Li(n,je.a,'Source "'.concat(t.source,"\" doesn't provide features collection.")),source=null),e.abrupt("return",new sd({source:source,features:n,deleteCondition:t.deleteCondition,insertVertexCondition:t.insertVertexCondition,pixelTolerance:t.pixelTolerance,style:t.createStyleFunc(),wrapX:t.wrapX}));case 6:case"end":return e.stop()}}),e)})))()},getDefaultStyles:function(){var t=Object(ce.v)(Object(ae.z)(),(function(t){return _e()(t).call(t,ae.x)}));return function(e){if(e.getGeometry())return t[e.getGeometry().getType()]}},getServices:function(){return Object(jn.a)(Kn.methods.getServices.call(this),_r.methods.getServices.call(this))},getStyleTarget:function(){return this.$interaction},mount:function(){Kn.methods.mount.call(this)},unmount:function(){Kn.methods.unmount.call(this)},setStyle:function(t){t!==this._styles&&(this._styles=t,this.scheduleRecreate())},subscribeAll:function(){Kn.methods.subscribeAll.call(this),ud.call(this)}},watch:function(t){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:{};ld.installed||(ld.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(hd,e),t.component(hd.name,hd))}var fd=ld;var pd=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="geom.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-geom-multi-line-string",mixins:[Dn],props:{},computed:{type:Object(ce.d)(ae.e.MULTI_LINE_STRING)},methods:{createGeometry:function(){return new xs.a(this.toViewProj(this.coordinates))}}},undefined,undefined);function gd(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};gd.installed||(gd.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(pd,e),t.component(pd.name,pd))}var vd=gd;var md=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="geom.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-geom-multi-point",mixins:[Dn],props:{},computed:{type:Object(ce.d)(ae.e.MULTI_POINT)},methods:{createGeometry:function(){return new Os.a(this.toViewProj(this.coordinates))}}},undefined,undefined);function yd(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};yd.installed||(yd.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(md,e),t.component(md.name,md))}var _d=yd;var bd=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="geom.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-geom-multi-polygon",mixins:[Dn],props:{},computed:{type:Object(ce.d)(ae.e.MULTI_POLYGON)},methods:{createGeometry:function(){return new ws.a(this.toViewProj(this.coordinates))}}},undefined,undefined);function xd(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};xd.installed||(xd.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(bd,e),t.component(bd.name,bd))}var Od=xd,wd='© OpenStreetMap contributors.',jd=function(t){function e(e){var n,r=e||{};n=void 0!==r.attributions?r.attributions:[wd];var o=void 0!==r.crossOrigin?r.crossOrigin:"anonymous",c=void 0!==r.url?r.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";t.call(this,{attributions:n,cacheSize:r.cacheSize,crossOrigin:o,opaque:void 0===r.opaque||r.opaque,maxZoom:void 0!==r.maxZoom?r.maxZoom:19,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileLoadFunction:r.tileLoadFunction,url:c,wrapX:r.wrapX,attributionsCollapsible:!1})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Jr);var Sd=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="source.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-source-osm",mixins:[Qr],props:{attributions:{type:[String,Array],default:'© OpenStreetMap contributors.'},maxZoom:{type:Number,default:19},url:{type:String,default:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",required:!1}},methods:{createSource:function(){return new jd({url:this.urlTmpl,attributions:this.attributions,crossOrigin:this.crossOrigin,maxZoom:this.maxZoom,cacheSize:this.cacheSize,opaque:this.opaque,reprojectionErrorThreshold:this.reprojectionErrorThreshold,wrapX:this.wrapX,transition:this.transition})}}},undefined,undefined);function Ed(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ed.installed||(Ed.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Sd,e),t.component(Sd.name,Sd))}var Cd=Ed,Td={offset:{type:Array,default:function(){return[0,0]},validator:function(t){return 2===t.length}},position:{type:Array,validator:function(t){return 2===t.length},required:!0},positioning:{type:String,default:ae.h.TOP_LEFT,validator:function(t){var e;return he()(e=ns()(ae.h)).call(e,t)}},stopEvent:{type:Boolean,default:!0},insertFirst:{type:Boolean,default:!0},autoPan:{type:Boolean,default:!1},autoPanMargin:{type:Number,default:20},autoPanAnimation:Object,className:String},Rd={positionViewProj:function(){if(this.rev&&this.$overlay)return this.$overlay.getPosition()},positionDataProj:function(){if(this.rev&&this.$overlay)return this.pointToDataProj(this.$overlay.getPosition())},classes:function(){var t;return qt()(t=[this.cmpName,this.visible?"visible":void 0]).call(t,ce.i)}},Id={createOlObject:function(){var t=new pr.a({id:this.id,offset:this.offset,position:this.pointToViewProj(this.position),positioning:this.positioning,stopEvent:this.stopEvent,insertFirst:this.insertFirst,autoPan:this.autoPan,autoPanMargin:this.autoPanMargin,autoPanAnimation:this.autoPanAnimation,className:this.className});return Object(ae.R)(t,this.id),t},mount:function(){var t=this;zi(this),this.$overlay.setElement(this.$el),this.$overlaysContainer&&this.$overlaysContainer.addOverlay(this.$overlay),this.$nextTick((function(){var e;t.$overlay.setPosition(we()(e=t.positionViewProj).call(e)),t.visible=!0})),this.subscribeAll()},unmount:function(){zi(this),this.unsubscribeAll(),this.$overlay.setElement(void 0),this.$overlaysContainer&&this.$overlaysContainer.removeOverlay(this.$overlay),this.visible=!1},subscribeAll:function(){Fd.call(this)}},Pd={id:function(t){this.$overlay&&t!==Object(ae.K)(this.$overlay)&&Object(ae.hb)(this.$overlay,t)},offset:function(t){this.$overlay&&!Object(ce.l)(t,this.$overlay.getOffset())&&this.$overlay.setOffset(t)},position:function(t){t=this.pointToViewProj(t),this.$overlay&&!Object(ce.l)(t,this.$overlay.getPosition())&&this.$overlay.setPosition(t)},positioning:function(t){this.$overlay&&t!==this.$overlay.getPositioning()&&this.$overlay.setPositioning(t)},resolvedDataProjection:function(){this.$overlay&&this.$overlay.setPosition(this.pointToViewProj(this.position))}};function Fd(){var t=this;zi(this);var e=ei(fn(this.$overlay,"position",!0,void 0,(function(){return t.pointToDataProj(t.$overlay.getPosition())})),fn(this.$overlay,["offset","positioning"],!0));this.subscribeTo(e,(function(e){var n=e.prop,r=e.value;++t.rev,t.$nextTick((function(){t.$emit("update:".concat(n),r)}))}))}var Ld=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="overlay.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:t.classes,attrs:{id:t.vmId}},[t._t("default",null,{id:t.id,position:t.position,offset:t.offset,positioning:t.positioning})],2)},staticRenderFns:[]},0,{name:"vl-overlay",mixins:[Sn.a,Ln,Vi],props:Td,computed:Rd,methods:Id,watch:Pd,created:function(){var t=this;Object.defineProperties(this,{$overlay:{enumerable:!0,get:function(){return t.$olObject}},$map:{enumerable:!0,get:function(){return t.$services&&_e()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}},$overlaysContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.overlaysContainer}}})},data:function(){return{visible:!1}}},undefined,!1);function Ad(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ad.installed||(Ad.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Ld,e),t.component(Ld.name,Ld))}var Md=Ad;var kd=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="geom.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-geom-point",mixins:[Dn],props:{coordinates:{type:Array,required:!0,validator:function(t){return t.length>=2}}},computed:{type:Object(ce.d)(ae.e.POINT)},methods:{createGeometry:function(){return new Io.a(this.toViewProj(this.coordinates))}}},undefined,undefined);function Dd(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Dd.installed||(Dd.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(kd,e),t.component(kd.name,kd))}var Nd=Dd;var $d=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="geom.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-geom-polygon",mixins:[Dn],props:{},computed:{type:Object(ce.d)(ae.e.POLYGON)},methods:{createGeometry:function(){return new Ss.b(this.toViewProj(this.coordinates))}}},undefined,undefined);function Gd(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gd.installed||(Gd.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()($d,e),t.component($d.name,$d))}var zd=Gd,Bd=n(260),Vd={points:{type:Number,required:!0},radius:Number,radius1:Number,radius2:Number,angle:{type:Number,default:0},rotation:{type:Number,default:0},rotateWithView:{type:Boolean,default:!1}},Ud={createStyle:function(){return new Bd.a({points:this.points,radius:this.radius,radius1:this.radius1,radius2:this.radius2,angle:this.angle,rotation:this.rotation,rotateWithView:this.rotateWithView,fill:this._fill,stroke:this._stroke})},getServices:function(){var t=this;return Object(jn.a)(Xn.methods.getServices.call(this),{get stylesContainer(){return t}})},setFill:function(t){(t=t instanceof Ee.a?t.$style:t)!==this._fill&&(this._fill=t,this.scheduleRefresh())},setStroke:function(t){(t=t instanceof Ee.a?t.$style:t)!==this._stroke&&(this._stroke=t,this.scheduleRefresh())}};var Wd=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="style.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-style-reg-shape",mixins:[Xn,Yr],props:Vd,methods:Ud,watch:{points:function(t){this.$style&&!Object(ce.l)(t,this.$style.getPoints())&&this.scheduleRefresh()},radius:function(t){this.$style&&!Object(ce.l)(t,this.$style.getRadius())&&this.scheduleRefresh()},radius1:function(t){this.$style&&!Object(ce.l)(t,this.$style.getRadius())&&this.scheduleRefresh()},radius2:function(t){this.$style&&!Object(ce.l)(t,this.$style.getRadius2())&&this.scheduleRefresh()},angle:function(t){this.$style&&!Object(ce.l)(t,this.$style.getAngle())&&this.scheduleRefresh()},rotation:function(t){this.$style&&!Object(ce.l)(t,this.$style.getRotation())&&this.scheduleRefresh()},rotateWithView:function(t){this.$style&&!Object(ce.l)(t,this.$style.getRotateWithView())&&this.scheduleRefresh()}}},undefined,undefined);function Yd(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Yd.installed||(Yd.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Wd,e),t.component(Wd.name,Wd))}var Xd=Yd,Hd="select",Kd=function(t){function e(e,n,r,o){t.call(this,e),this.selected=n,this.deselected=r,this.mapBrowserEvent=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ft.a);function qd(t){if(!this.condition_(t))return!0;var e=this.addCondition_(t),n=this.removeCondition_(t),r=this.toggleCondition_(t),o=!e&&!n&&!r,map=t.map,c=this.getFeatures(),h=[],l=[];if(o){Object(nt.b)(this.featureLayerAssociation_),map.forEachFeatureAtPixel(t.pixel,function(t,e){if(this.filter_(t,e))return l.push(t),this.addFeatureLayerAssociation_(t,e),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var i=c.getLength()-1;i>=0;--i){var f=c.item(i),d=l.indexOf(f);d>-1?l.splice(d,1):(c.remove(f),h.push(f))}0!==l.length&&c.extend(l)}else{map.forEachFeatureAtPixel(t.pixel,function(t,o){if(this.filter_(t,o))return!e&&!r||Object(Lo.f)(c.getArray(),t)?(n||r)&&Object(Lo.f)(c.getArray(),t)&&(h.push(t),this.removeFeatureLayerAssociation_(t)):(l.push(t),this.addFeatureLayerAssociation_(t,o)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var v=h.length-1;v>=0;--v)c.remove(h[v]);c.extend(l)}return(l.length>0||h.length>0)&&this.dispatchEvent(new Kd(Hd,l,h,t)),function(t){return"pointermove"==t.type}(t)}function Zd(){var t=Object(yr.b)();return Object(Lo.c)(t[To.a.POLYGON],t[To.a.LINE_STRING]),Object(Lo.c)(t[To.a.GEOMETRY_COLLECTION],t[To.a.LINE_STRING]),function(e,n){return e.getGeometry()?t[e.getGeometry().getType()]:null}}var Jd=function(t){function e(e){t.call(this,{handleEvent:qd});var n=e||{};this.condition_=n.condition?n.condition:fs,this.addCondition_=n.addCondition?n.addCondition:ls,this.removeCondition_=n.removeCondition?n.removeCondition:ls,this.toggleCondition_=n.toggleCondition?n.toggleCondition:ps,this.multi_=!!n.multi&&n.multi,this.filter_=n.filter?n.filter:Ao.b,this.hitTolerance_=n.hitTolerance?n.hitTolerance:0;var r,o=new zs({source:new Xo({useSpatialIndex:!1,features:n.features,wrapX:n.wrapX}),style:n.style?n.style:Zd(),updateWhileAnimating:!0,updateWhileInteracting:!0});if(this.featureOverlay_=o,n.layers)if("function"==typeof n.layers)r=n.layers;else{var c=n.layers;r=function(t){return Object(Lo.f)(c,t)}}else r=Ao.b;this.layerFilter_=r,this.featureLayerAssociation_={};var h=this.getFeatures();Object(pt.a)(h,Po.a.ADD,this.addFeature_,this),Object(pt.a)(h,Po.a.REMOVE,this.removeFeature_,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addFeatureLayerAssociation_=function(t,e){this.featureLayerAssociation_[Object(st.c)(t)]=e},e.prototype.getFeatures=function(){return this.featureOverlay_.getSource().getFeaturesCollection()},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.getLayer=function(t){return this.featureLayerAssociation_[Object(st.c)(t)]},e.prototype.getOverlay=function(){return this.featureOverlay_},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(map){var e=this.getMap(),n=this.getFeatures();e&&n.forEach(e.unskipFeature.bind(e)),t.prototype.setMap.call(this,map),this.featureOverlay_.setMap(map),map&&n.forEach(map.skipFeature.bind(map))},e.prototype.addFeature_=function(t){var map=this.getMap();map&&map.skipFeature(t.element)},e.prototype.removeFeature_=function(t){var map=this.getMap();map&&map.unskipFeature(t.element)},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[Object(st.c)(t)]},e}(Jn.a);function Qd(object,t){var e=se()(object);if(Ht.a){var n=Ht()(object);t&&(n=qt()(n).call(n,(function(t){return Jt()(object,t).enumerable}))),e.push.apply(e,n)}return e}function tp(t){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:{};np.installed||(np.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(ip,e),t.component(ip.name,ip))}var op=np;function sp(t){return t.feature?t.feature:t.element?t.element:void 0}function ap(a,b){return Object(Ro.j)(this.pixelCoordinate_,a.segment)-Object(Ro.j)(this.pixelCoordinate_,b.segment)}var cp=function(t){function e(e){var n=e||{},r=n;r.handleDownEvent||(r.handleDownEvent=Ao.b),r.stopDown||(r.stopDown=Ao.a),t.call(this,r),this.source_=n.source?n.source:null,this.vertex_=void 0===n.vertex||n.vertex,this.edge_=void 0===n.edge||n.edge,this.features_=n.features?n.features:null,this.featuresListenerKeys_=[],this.featureChangeListenerKeys_={},this.indexedFeaturesExtents_={},this.pendingFeatures_={},this.pixelCoordinate_=null,this.pixelTolerance_=void 0!==n.pixelTolerance?n.pixelTolerance:10,this.sortByDistance_=ap.bind(this),this.rBush_=new Wo,this.SEGMENT_WRITERS_={Point:this.writePointGeometry_,LineString:this.writeLineStringGeometry_,LinearRing:this.writeLineStringGeometry_,Polygon:this.writePolygonGeometry_,MultiPoint:this.writeMultiPointGeometry_,MultiLineString:this.writeMultiLineStringGeometry_,MultiPolygon:this.writeMultiPolygonGeometry_,GeometryCollection:this.writeGeometryCollectionGeometry_,Circle:this.writeCircleGeometry_}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addFeature=function(t,e){var n=void 0===e||e,r=Object(st.c)(t),o=t.getGeometry();if(o){var c=this.SEGMENT_WRITERS_[o.getType()];c&&(this.indexedFeaturesExtents_[r]=o.getExtent(Object(et.j)()),c.call(this,t,o))}n&&(this.featureChangeListenerKeys_[r]=Object(pt.a)(t,ht.a.CHANGE,this.handleFeatureChange_,this))},e.prototype.forEachFeatureAdd_=function(t){this.addFeature(t)},e.prototype.forEachFeatureRemove_=function(t){this.removeFeature(t)},e.prototype.getFeatures_=function(){var t;return this.features_?t=this.features_:this.source_&&(t=this.source_.getFeatures()),t},e.prototype.handleEvent=function(e){var n=this.snapTo(e.pixel,e.coordinate,e.map);return n.snapped&&(e.coordinate=n.vertex.slice(0,2),e.pixel=n.vertexPixel),t.prototype.handleEvent.call(this,e)},e.prototype.handleFeatureAdd_=function(t){var e=sp(t);this.addFeature(e)},e.prototype.handleFeatureRemove_=function(t){var e=sp(t);this.removeFeature(e)},e.prototype.handleFeatureChange_=function(t){var e=t.target;if(this.handlingDownUpSequence){var n=Object(st.c)(e);n in this.pendingFeatures_||(this.pendingFeatures_[n]=e)}else this.updateFeature_(e)},e.prototype.handleUpEvent=function(t){var e=Object(nt.c)(this.pendingFeatures_);return e.length&&(e.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},e.prototype.removeFeature=function(t,e){var n=void 0===e||e,r=Object(st.c)(t),o=this.indexedFeaturesExtents_[r];if(o){var c=this.rBush_,h=[];c.forEachInExtent(o,(function(e){t===e.feature&&h.push(e)}));for(var i=h.length-1;i>=0;--i)c.remove(h[i])}n&&(Object(pt.e)(this.featureChangeListenerKeys_[r]),delete this.featureChangeListenerKeys_[r])},e.prototype.setMap=function(map){var e=this.getMap(),n=this.featuresListenerKeys_,r=this.getFeatures_();e&&(n.forEach(pt.e),n.length=0,r.forEach(this.forEachFeatureRemove_.bind(this))),t.prototype.setMap.call(this,map),map&&(this.features_?n.push(Object(pt.a)(this.features_,Po.a.ADD,this.handleFeatureAdd_,this),Object(pt.a)(this.features_,Po.a.REMOVE,this.handleFeatureRemove_,this)):this.source_&&n.push(Object(pt.a)(this.source_,No,this.handleFeatureAdd_,this),Object(pt.a)(this.source_,zo,this.handleFeatureRemove_,this)),r.forEach(this.forEachFeatureAdd_.bind(this)))},e.prototype.snapTo=function(t,e,map){var n=map.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),r=map.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_]),o=Object(et.b)([n,r]),c=this.rBush_.getInExtent(o);this.vertex_&&!this.edge_&&(c=c.filter((function(t){return t.feature.getGeometry().getType()!==To.a.CIRCLE})));var h,l,f,d,v=!1,m=null,y=null;if(c.length>0){this.pixelCoordinate_=e,c.sort(this.sortByDistance_);var _=c[0].segment,x=c[0].feature.getGeometry().getType()===To.a.CIRCLE;this.vertex_&&!this.edge_?(h=map.getPixelFromCoordinate(_[0]),l=map.getPixelFromCoordinate(_[1]),f=Object(Ro.i)(t,h),d=Object(Ro.i)(t,l),Math.sqrt(Math.min(f,d))<=this.pixelTolerance_&&(v=!0,m=f>d?_[1]:_[0],y=map.getPixelFromCoordinate(m))):this.edge_&&(m=x?Object(Ro.b)(e,c[0].feature.getGeometry()):Object(Ro.c)(e,_),y=map.getPixelFromCoordinate(m),Object(Ro.e)(t,y)<=this.pixelTolerance_&&(v=!0,this.vertex_&&!x&&(h=map.getPixelFromCoordinate(_[0]),l=map.getPixelFromCoordinate(_[1]),f=Object(Ro.i)(y,h),d=Object(Ro.i)(y,l),Math.sqrt(Math.min(f,d))<=this.pixelTolerance_&&(m=f>d?_[1]:_[0],y=map.getPixelFromCoordinate(m))))),v&&(y=[Math.round(y[0]),Math.round(y[1])])}return{snapped:v,vertex:m,vertexPixel:y}},e.prototype.updateFeature_=function(t){this.removeFeature(t,!1),this.addFeature(t,!1)},e.prototype.writeCircleGeometry_=function(t,e){for(var n=Object(Ss.c)(e).getCoordinates()[0],i=0,r=n.length-1;i1&&void 0!==arguments[1]?arguments[1]:{};fp.installed||(fp.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(lp,e),t.component(lp.name,lp))}var dp=fp,pp='Спутник © Ростелеком, '+(new Date).getFullYear();var gp=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="source.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-source-sputnik",mixins:[Qr],props:{url:{type:String,default:"http://tiles.maps.sputnik.ru/{z}/{x}/{y}.png?apikey={apikey}"},apiKey:{type:String},attributions:{type:String,default:pp}},computed:{urlTokens:function(){return["apiKey"]}}},undefined,undefined);function vp(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};vp.installed||(vp.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(gp,e),t.component(gp.name,gp))}var mp=vp,yp=['Map tiles by Stamen Design, under CC BY 3.0.',wd],_p={terrain:{extension:"jpg",opaque:!0},"terrain-background":{extension:"jpg",opaque:!0},"terrain-labels":{extension:"png",opaque:!1},"terrain-lines":{extension:"png",opaque:!1},"toner-background":{extension:"png",opaque:!0},toner:{extension:"png",opaque:!0},"toner-hybrid":{extension:"png",opaque:!1},"toner-labels":{extension:"png",opaque:!1},"toner-lines":{extension:"png",opaque:!1},"toner-lite":{extension:"png",opaque:!0},watercolor:{extension:"jpg",opaque:!0}},bp={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:1,maxZoom:16}},xp=function(t){function e(e){var i=e.layer.indexOf("-"),n=-1==i?e.layer:e.layer.slice(0,i),r=bp[n],o=_p[e.layer],c=void 0!==e.url?e.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+e.layer+"/{z}/{x}/{y}."+o.extension;t.call(this,{attributions:yp,cacheSize:e.cacheSize,crossOrigin:"anonymous",maxZoom:null!=e.maxZoom?e.maxZoom:r.maxZoom,minZoom:null!=e.minZoom?e.minZoom:r.minZoom,opaque:o.opaque,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,url:c,wrapX:e.wrapX})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Jr);var Op=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="source.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-source-stamen",mixins:[Qr],props:{layer:{type:String,required:!0},url:String},methods:{createSource:function(){return new xp({cacheSize:this.cacheSize,layer:this.layer,minZoom:this.minZoom,maxZoom:this.maxZoom,opaque:this.opaque,reprojectionErrorThreshold:this.reprojectionErrorThreshold,tileLoadFunction:this.tileLoadFunction,url:this.urlTmpl||void 0,wrapX:this.wrapX})},onUrlFuncChange:function(){}},watch:{urlTmpl:function(t){this.$source&&this.$source.setUrl(t)}}},undefined,undefined);function wp(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};wp.installed||(wp.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Op,e),t.component(Op.name,Op))}var jp=wp;var Sp=function(template,t,e,n,r,o,c,h){var component=("function"==typeof e?e.options:e)||{};return component.__file="style.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,r&&(component.functional=!0)),component._scopeId=n,component}({},0,{name:"vl-style-stroke",mixins:[Yn],props:{color:[Array,String],lineCap:{type:String,default:"round"},lineJoin:{type:String,default:"round"},lineDash:Array,lineDashOffset:{type:Number,default:0},miterLimit:{type:Number,default:10},width:{type:Number,default:1.25}},watch:{color:function(t){this.$style&&!Object(ce.l)(t,this.$style.getColor())&&(this.$style.setColor(t),this.scheduleRefresh())},lineCap:function(t){this.$style&&!Object(ce.l)(t,this.$style.getLineCap())&&(this.$style.setLineCap(t),this.scheduleRefresh())},lineDash:function(t){this.$style&&!Object(ce.l)(t,this.$style.getLineDash())&&(this.$style.setLineDash(t),this.scheduleRefresh())},lineJoin:function(t){this.$style&&!Object(ce.l)(t,this.$style.getLineJoin())&&(this.$style.setLineJoin(t),this.scheduleRefresh())},width:function(t){this.$style&&!Object(ce.l)(t,this.$style.getWidth())&&(this.$style.setWidth(t),this.scheduleRefresh())}},methods:{createStyle:function(){return new Va.a({color:this.color,lineCap:this.lineCap,lineJoin:this.lineJoin,lineDash:this.lineDash,lineDashOffset:this.lineDashOffset,miterLimit:this.miterLimit,width:this.width})},mount:function(){this.$stylesContainer&&this.$stylesContainer.setStroke(this)},unmount:function(){this.$stylesContainer&&this.$stylesContainer.setStroke(void 0)}}},undefined,undefined);function Ep(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ep.installed||(Ep.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Sp,e),t.component(Sp.name,Sp))}var Cp=Ep,Tp={zIndex:{type:Number,default:0},condition:{type:[Function,Boolean],default:!0}},Rp={createStyle:function(){return new yr.c({zIndex:this.zIndex,image:this._image,stroke:this._stroke,fill:this._fill,text:this._text,geometry:this._geometry})},getServices:function(){var t=this;return Object(jn.a)(Yn.methods.getServices.call(this),{get stylesContainer(){return t}})},mount:function(){this.$stylesContainer&&this.$stylesContainer.addStyle(this)},unmount:function(){this.$stylesContainer&&this.$stylesContainer.removeStyle(this)},setImage:function(image){(image=image instanceof Ee.a?image.$style:image)!==this._image&&(this._image=image),this.$style&&image!==this.$style.getImage()&&(this.$style.setImage(image),this.scheduleRefresh())},setGeometry:function(t){(t=t instanceof Ee.a?t.$geometry:t)!==this._geometry&&(this._geometry=t),this.$style&&t!==this.$style.getGeometry()&&(this.$style.setGeometry(t),this.scheduleRefresh())},setText:function(text){(text=text instanceof Ee.a?text.$style:text)!==this._text&&(this._text=text),this.$style&&text!==this.$style.getText()&&(this.$style.setText(text),this.scheduleRefresh())}};var Ip=function(template,t,e,n,r,o,c,h){var component=("function"==typeof e?e.options:e)||{};return component.__file="style.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,r&&(component.functional=!0)),component._scopeId=n,component}({},0,{name:"vl-style-box",mixins:[Yn,Yr],props:Tp,methods:Rp,watch:{zIndex:function(t){this.$style&&!Object(ce.l)(t,this.$style.getZIndex())&&(this.$style.setZIndex(t),this.scheduleRefresh())}}},undefined,undefined);function Pp(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pp.installed||(Pp.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Ip,e),t.component(Ip.name,Ip))}var Fp=Pp;var Lp=function(template,t,e,n,r,o,c,h){var component=("function"==typeof e?e.options:e)||{};return component.__file="style.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,r&&(component.functional=!0)),component._scopeId=n,component}({},0,{name:"vl-style-func",mixins:[Yn,_r],stubVNode:{empty:!1,attrs:function(){return{id:this.vmId,class:this.cmpName}}},props:{factory:{type:Function,required:!0}},computed:{styleFunc:function(){var t=this.factory();return Object(ce.n)(t)||(t=ce.w),t}},methods:{createStyle:function(){Ai(this);var t=this.styleFunc,e=this.createStyleFunc();return function(n,r){var o=t(n,r);return null===o||Array.isArray(o)&&o.length||o instanceof yr.c?o:e(n,r)}},mount:function(){this.$stylesContainer&&this.$stylesContainer.addStyle(this)},unmount:function(){this.$stylesContainer&&this.$stylesContainer.removeStyle(this)},getServices:function(){var t=this;return Object(jn.a)(Yn.methods.getServices.call(this),{get stylesContainer(){return t}})},setStyle:function(t){t!==this._styles&&(this._styles=t,this.scheduleRefresh())},refresh:function(){return this.recreate()}},watch:{factory:function(){this.scheduleRefresh()}}},undefined,undefined);function Ap(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ap.installed||(Ap.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Lp,e),t.component(Lp.name,Lp))}var Mp=Ap,kp={font:{type:String,default:"10px sans-serif"},maxAngle:Number,placement:String,offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},overflow:Boolean,rotateWithView:{type:Boolean,default:!1},rotation:{type:Number,default:0},scale:{type:Number,default:1},text:String,textAlign:String,textBaseline:String,padding:{type:Array,default:function(){return[0,0,0,0]},validate:function(t){return t.length&&4===t.length}}},Dp={createStyle:function(){return new Ua.a({font:this.font,maxAngle:this.maxAngle,placement:this.placement,offsetX:this.offsetX,offsetY:this.offsetY,overflow:this.overflow,rotateWithView:this.rotateWithView,rotation:this.rotation,scale:this.scale,text:this.text,textAlign:this.textAlign,textBaseline:this.textBaseline,fill:this._fill,stroke:this._stroke,padding:this.padding})},mount:function(){this.$stylesContainer&&this.$stylesContainer.setText(this)},unmount:function(){this.$stylesContainer&&this.$stylesContainer.setText(void 0)},getServices:function(){var t=this;return Object(jn.a)(Yn.methods.getServices.call(this),{get stylesContainer(){return t}})},setFill:function(t){var e;t instanceof Ee.a||Yr.methods.setFill.call(this,t),xe()(e=this.$slots.background||[]).call(e,(function(e){return e.componentInstance&&e.componentInstance===t}))?(t=t.$style,this.$style&&t!==this.$style.getBackgroundFill()&&(this.$style.setBackgroundFill(t),this.scheduleRefresh())):Yr.methods.setFill.call(this,t)},setStroke:function(t){var e;t instanceof Ee.a||Yr.methods.setStroke.call(this,t),xe()(e=this.$slots.background||[]).call(e,(function(e){return e.componentInstance&&e.componentInstance===t}))?(t=t.$style,this.$style&&t!==this.$style.getBackgroundStroke()&&(this.$style.setBackgroundStroke(t),this.scheduleRefresh())):Yr.methods.setStroke.call(this,t)}};var Np=function(template,t,e,n,r,o,c,h){var component=("function"==typeof e?e.options:e)||{};return component.__file="style.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,r&&(component.functional=!0)),component._scopeId=n,component}({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("i",{class:t.cmpName,staticStyle:{display:"none !important"},attrs:{id:t.vmId}},[t._t("default"),t._v(" "),t._t("background")],2)},staticRenderFns:[]},0,{name:"vl-style-text",mixins:[Yn,Yr],props:kp,methods:Dp,watch:{font:function(t){this.$style&&!Object(ce.l)(t,this.$style.getFont())&&(this.$style.setFont(t),this.scheduleRefresh())},maxAngle:function(t){this.$style&&!Object(ce.l)(t,this.$style.getMaxAngle())&&(this.$style.setMaxAngle(t),this.scheduleRefresh())},placement:function(t){this.$style&&!Object(ce.l)(t,this.$style.getPlacement())&&(this.$style.setFont(t),this.scheduleRefresh())},offsetX:function(t){this.$style&&!Object(ce.l)(t,this.$style.getOffsetX())&&(this.$style.setOffsetX(t),this.scheduleRefresh())},offsetY:function(t){this.$style&&!Object(ce.l)(t,this.$style.getOffsetY())&&(this.$style.setOffsetY(t),this.scheduleRefresh())},overflow:function(t){this.$style&&!Object(ce.l)(t,this.$style.getOverflow())&&(this.$style.setOverflow(t),this.scheduleRefresh())},rotation:function(t){this.$style&&!Object(ce.l)(t,this.$style.getRotation())&&(this.$style.setRotation(t),this.scheduleRefresh())},rotateWithView:function(t){this.$style&&!Object(ce.l)(t,this.$style.getRotateWithView())&&(this.$style.setRotation(t),this.scheduleRefresh())},scale:function(t){this.$style&&!Object(ce.l)(t,this.$style.getScale())&&(this.$style.setScale(t),this.scheduleRefresh())},text:function(t){this.$style&&!Object(ce.l)(t,this.$style.getText())&&(this.$style.setText(t),this.scheduleRefresh())},textAlign:function(t){this.$style&&!Object(ce.l)(t,this.$style.getTextAlign())&&(this.$style.setTextAlign(t),this.scheduleRefresh())},textBaseline:function(t){this.$style&&!Object(ce.l)(t,this.$style.getTextBaseline())&&(this.$style.setTextBaseline(t),this.scheduleRefresh())},padding:function(t){this.$style&&!Object(ce.l)(t,this.$style.getPadding())&&(this.$style.setPadding(t),this.scheduleRefresh())}},stubVNode:{empty:!1,attrs:function(){return{id:this.vmId,class:this.cmpName}}}},undefined,!1);function $p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$p.installed||($p.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Np,e),t.component(Np.name,Np))}var Gp=$p,zp="preload",Bp="useInterimTilesOnError",Vp=function(t){function e(e){var n=e||{},r=Object(nt.a)({},n);delete r.preload,delete r.useInterimTilesOnError,t.call(this,r),this.setPreload(void 0!==n.preload?n.preload:0),this.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),this.type=Is}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getPreload=function(){return this.get(zp)},e.prototype.setPreload=function(t){this.set(zp,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(Bp)},e.prototype.setUseInterimTilesOnError=function(t){this.set(Bp,t)},e}(ks);Vp.prototype.getSource;var Up=Vp;var Wp=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="layer.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-layer-tile",mixins:[cr],props:{preload:{type:Number,default:0}},methods:{createLayer:function(){return new Up({id:this.id,minResolution:this.minResolution,maxResolution:this.maxResolution,opacity:this.opacity,visible:this.visible,preload:this.preload,extent:this.extent,zIndex:this.zIndex,source:this._source})}}},undefined,undefined);function Yp(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Yp.installed||(Yp.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Wp,e),t.component(Wp.name,Wp))}var Xp=Yp,Hp=["vector","image"];var Kp=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="layer.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-layer-vector",mixins:[Gr],props:{renderMode:{type:String,default:"vector",validator:function(t){return he()(Hp).call(Hp,t)}}},methods:{createLayer:function(){return new zs({id:this.id,minResolution:this.minResolution,maxResolution:this.maxResolution,opacity:this.opacity,visible:this.visible,extent:this.extent,zIndex:this.zIndex,updateWhileAnimating:this.updateWhileAnimating,updateWhileInteracting:this.updateWhileInteracting,source:this._source,renderMode:this.renderMode,renderBuffer:this.renderBuffer,renderOrder:this.renderOrder,declutter:this.declutter})}}},undefined,undefined);function qp(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qp.installed||(qp.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Kp,e),t.component(Kp.name,Kp))}var Zp=qp;function Jp(t,i){return function(t){if(Xi()(t))return t}(t)||function(t,e){var n=null==t?null:void 0!==Ki.a&&Zi()(t)||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,h=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(Ci()(a).call(a,r.value),a.length!==e);c=!0);}catch(t){h=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw o}}return a}}(t,i)||nn(t,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qp(object,t){var e=se()(object);if(Ht.a){var n=Ht()(object);t&&(n=qt()(n).call(n,(function(t){return Jt()(object,t).enumerable}))),e.push.apply(e,n)}return e}function tg(t){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:{};rg.installed||(rg.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(ng,e),t.component(ng.name,ng))}var og=rg,sg=function(t){function e(e){var n=e||{},r=n.renderMode||qh;Object(Ct.a)(null==r||r==Kh||r==qh||r==Zh,28),n.declutter&&r==Kh&&(r=qh),n.renderMode=r;var o=Object(nt.a)({},n);delete o.preload,delete o.useInterimTilesOnError,t.call(this,o),this.setPreload(n.preload?n.preload:0),this.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),this.type=Ps}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getPreload=function(){return this.get(zp)},e.prototype.getUseInterimTilesOnError=function(){return this.get(Bp)},e.prototype.setPreload=function(t){this.set(zp,t)},e.prototype.setUseInterimTilesOnError=function(t){this.set(Bp,t)},e}(zs);sg.prototype.getSource;var ag=sg,cg=["vector","image","hybrid"];var ug=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="layer.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-layer-vector-tile",mixins:[Gr],props:{renderMode:{type:String,default:"hybrid",validator:function(t){return he()(cg).call(cg,t)}},preload:{type:Number,default:0}},methods:{createLayer:function(){return new ag({id:this.id,minResolution:this.minResolution,maxResolution:this.maxResolution,opacity:this.opacity,visible:this.visible,preload:this.preload,extent:this.extent,zIndex:this.zIndex,updateWhileAnimating:this.updateWhileAnimating,updateWhileInteracting:this.updateWhileInteracting,source:this._source,renderMode:this.renderMode,renderBuffer:this.renderBuffer,renderOrder:this.renderOrder,declutter:this.declutter})}}},undefined,undefined);function hg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};hg.installed||(hg.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(ug,e),t.component(ug.name,ug))}var lg=hg,fg=function(t){function e(n,r,o,c,h,l,f,d,v,m,y,_,x,O,w){if(t.call(this,n,r,{transition:0}),this.context_={},this.loader_,this.replayState_={},this.sourceTiles_=m,this.tileKeys=[],this.extent=null,this.sourceRevision_=o,this.wrappedTileCoord=l,this.loadListenerKeys_=[],this.sourceTileListenerKeys_=[],l){var j=this.extent=v.getTileCoordExtent(l),S=v.getResolution(w),E=d.getZForResolution(S),C=w!=n[0],T=0;if(d.forEachTileCoord(j,E,function(t){var e=Object(et.B)(j,d.getTileCoordExtent(t)),n=d.getExtent();if(n&&(e=Object(et.B)(e,n,e)),Object(et.E)(e)/S>=.5&&Object(et.A)(e)/S>=.5){++T;var r=t.toString(),o=m[r];if(!o&&!C){var l=f(t,y,_);o=m[r]=new x(t,null==l?at.a.EMPTY:at.a.IDLE,null==l?"":l,c,h),this.sourceTileListenerKeys_.push(Object(pt.a)(o,ht.a.CHANGE,O))}!o||C&&o.getState()!=at.a.LOADED||(o.consumers++,this.tileKeys.push(r))}}.bind(this)),C&&T==this.tileKeys.length&&this.finishLoading_(),w<=n[0]&&this.state!=at.a.LOADED)for(;w>v.getMinZoom();){var R=new e(n,r,o,c,h,l,f,d,v,m,y,_,x,Ao.c,--w);if(R.state==at.a.LOADED){this.interimTile=R;break}}}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state=at.a.ABORT,this.changed(),this.interimTile&&this.interimTile.dispose();for(var i=0,e=this.tileKeys.length;i=0;--i){var n=this.getTile(this.tileKeys[i]).getState();n!=at.a.LOADED&&--t,n==at.a.EMPTY&&++e}t==this.tileKeys.length?(this.loadListenerKeys_.forEach(pt.e),this.loadListenerKeys_.length=0,this.setState(at.a.LOADED)):this.setState(e==this.tileKeys.length?at.a.EMPTY:at.a.ERROR)},e}(lt);function dg(t,e){var n=ko(e,t.getFormat(),t.onLoad.bind(t),t.onError.bind(t));t.setLoader(n)}var pg=[0,0,4096,4096],gg=function(t){function e(e,n,r,o,c,h){t.call(this,e,n,h),this.consumers=0,this.extent_=null,this.format_=o,this.features_=null,this.loader_,this.projection_=null,this.replayGroups_={},this.tileLoadFunction_=c,this.url_=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.features_=null,this.replayGroups_={},this.state=at.a.ABORT,this.changed(),t.prototype.disposeInternal.call(this)},e.prototype.getExtent=function(){return this.extent_||pg},e.prototype.getFormat=function(){return this.format_},e.prototype.getFeatures=function(){return this.features_},e.prototype.getKey=function(){return this.url_},e.prototype.getProjection=function(){return this.projection_},e.prototype.getReplayGroup=function(t,e){return this.replayGroups_[Object(st.c)(t)+","+e]},e.prototype.load=function(){this.state==at.a.IDLE&&(this.setState(at.a.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_(null,NaN,null))},e.prototype.onLoad=function(t,e,n){this.setProjection(e),this.setFeatures(t),this.setExtent(n)},e.prototype.onError=function(){this.setState(at.a.ERROR)},e.prototype.setExtent=function(t){this.extent_=t},e.prototype.setFeatures=function(t){this.features_=t,this.setState(at.a.LOADED)},e.prototype.setProjection=function(t){this.projection_=t},e.prototype.setReplayGroup=function(t,e,n){this.replayGroups_[Object(st.c)(t)+","+e]=n},e.prototype.setLoader=function(t){this.loader_=t},e}(lt),vg=function(t){function e(e){var n=e.projection||"EPSG:3857",r=e.extent||Object(At.c)(n),o=e.tileGrid||Object(At.b)({extent:r,maxZoom:e.maxZoom||22,minZoom:e.minZoom,tileSize:e.tileSize||512});t.call(this,{attributions:e.attributions,cacheSize:void 0!==e.cacheSize?e.cacheSize:128,opaque:!1,projection:n,state:e.state,tileGrid:o,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:dg,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition}),this.format_=e.format?e.format:null,this.sourceTiles_={},this.overlaps_=null==e.overlaps||e.overlaps,this.tileClass=e.tileClass?e.tileClass:gg,this.tileGrids_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.clear=function(){this.tileCache.clear(),this.sourceTiles_={}},e.prototype.getTile=function(t,e,n,r,o){var c=Object(yt.d)(t,e,n);if(this.tileCache.containsKey(c))return this.tileCache.get(c);var h=[t,e,n],l=this.getTileCoordForTileUrlFunction(h,o),f=new fg(h,null!==l?at.a.IDLE:at.a.EMPTY,this.getRevision(),this.format_,this.tileLoadFunction,l,this.tileUrlFunction,this.tileGrid,this.getTileGridForProjection(o),this.sourceTiles_,r,o,this.tileClass,this.handleTileChange.bind(this),h[0]);return this.tileCache.set(c,f),f},e.prototype.getTileGridForProjection=function(t){var code=t.getCode(),e=this.tileGrids_[code];if(!e){var n=this.tileGrid;e=this.tileGrids_[code]=Object(At.a)(t,void 0,n?n.getTileSize(n.getMinZoom()):void 0)}return e},e.prototype.getTilePixelRatio=function(t){return t},e.prototype.getTilePixelSize=function(t,e,n){var r=this.getTileGridForProjection(n),o=Object(ot.d)(r.getTileSize(t),this.tmpSize);return[Math.round(o[0]*e),Math.round(o[1]*e)]},e}(zt);function mg(){Ni(this),this.subscribeTo(ln(this.$source,"tileloadend"),(function(t){t.tile&&Object(ce.g)(t.tile.getFeatures(),(function(t){t instanceof Se.a&&Object(ae.N)(t)}))}))}var yg=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="source.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-source-vector-tile",mixins:[$r],props:{cacheSize:{type:Number,default:128},formatFactory:{type:Function,default:function(){return Object(ae.v)()}},overlaps:{type:Boolean,default:!0}},computed:{dataFormat:function(){return this.formatFactory()}},methods:{createSource:function(){return new vg({attributions:this.attributions,cacheSize:this.cacheSize,format:this.dataFormat,logo:this.logo,overlaps:this.overlaps,projection:this.projection,tileGrid:this._tileGrid,tileLoadFunction:this.tileLoadFunction,tileUrlFunction:this.urlFunc,wrapX:this.wrapX,transition:this.transition})},subscribeAll:function(){$r.methods.subscribeAll.call(this),mg.call(this)}}},undefined,undefined);function _g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_g.installed||(_g.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(yg,e),t.component(yg.name,yg))}var bg=_g;function xg(t,e,n){var r=this.getTileGrid();if(r||(r=this.getTileGridForProjection(n)),!(r.getResolutions().length<=t[0])){1==e||this.hidpi_&&void 0!==this.serverType_||(e=1);var o=r.getResolution(t[0]),c=r.getTileCoordExtent(t,this.tmpExtent_),h=Object(ot.d)(r.getTileSize(t[0]),this.tmpSize),l=this.gutter_;0!==l&&(h=Object(ot.a)(h,l,this.tmpSize),c=Object(et.c)(c,o*l,c)),1!=e&&(h=Object(ot.c)(h,e,this.tmpSize));var f={SERVICE:"WMS",VERSION:Bc,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return Object(nt.a)(f,this.params_),this.getRequestUrl_(t,h,c,e,n,f)}}var Og=function(t){function e(e){var n=e||{},r=n.params||{},o=!("TRANSPARENT"in r)||r.TRANSPARENT;t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,opaque:!o,projection:n.projection,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileClass:n.tileClass,tileGrid:n.tileGrid,tileLoadFunction:n.tileLoadFunction,tileUrlFunction:xg,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition}),this.gutter_=void 0!==n.gutter?n.gutter:0,this.params_=r,this.v13_=!0,this.serverType_=n.serverType,this.hidpi_=void 0===n.hidpi||n.hidpi,this.tmpExtent_=Object(et.j)(),this.updateV13_(),this.setKey(this.getKeyForParams_())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getGetFeatureInfoUrl=function(t,e,n,r){var o=Object(bt.e)(n),c=this.getProjection(),h=this.getTileGrid();h||(h=this.getTileGridForProjection(o));var l=h.getTileCoordForCoordAndResolution(t,e);if(!(h.getResolutions().length<=l[0])){var f=h.getResolution(l[0]),d=h.getTileCoordExtent(l,this.tmpExtent_),v=Object(ot.d)(h.getTileSize(l[0]),this.tmpSize),m=this.gutter_;0!==m&&(v=Object(ot.a)(v,m,this.tmpSize),d=Object(et.c)(d,f*m,d)),c&&c!==o&&(f=xt(c,o,t,f),d=Object(bt.l)(d,o,c),t=Object(bt.k)(t,o,c));var y={SERVICE:"WMS",VERSION:Bc,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};Object(nt.a)(y,this.params_,r);var _=Math.floor((t[0]-d[0])/f),x=Math.floor((d[3]-t[1])/f);return y[this.v13_?"I":"X"]=_,y[this.v13_?"J":"Y"]=x,this.getRequestUrl_(l,v,d,1,c||o,y)}},e.prototype.getGutter=function(){return this.gutter_},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,e,n,r,o,c){var h=this.urls;if(h){if(c.WIDTH=e[0],c.HEIGHT=e[1],c[this.v13_?"CRS":"SRS"]=o.getCode(),"STYLES"in this.params_||(c.STYLES=""),1!=r)switch(this.serverType_){case Vc.GEOSERVER:var l=90*r+.5|0;"FORMAT_OPTIONS"in c?c.FORMAT_OPTIONS+=";dpi:"+l:c.FORMAT_OPTIONS="dpi:"+l;break;case Vc.MAPSERVER:c.MAP_RESOLUTION=90*r;break;case Vc.CARMENTA_SERVER:case Vc.QGIS:c.DPI=90*r;break;default:Object(Ct.a)(!1,52)}var f,d,v=o.getAxisOrientation(),m=n;if(this.v13_&&"ne"==v.substr(0,2))f=n[0],m[0]=n[1],m[1]=f,f=n[2],m[2]=n[3],m[3]=f;if(c.BBOX=m.join(","),1==h.length)d=h[0];else d=h[Object(it.d)(Object(yt.e)(t),h.length)];return Ut(d,c)}},e.prototype.getTilePixelRatio=function(t){return this.hidpi_&&void 0!==this.serverType_?t:1},e.prototype.getKeyForParams_=function(){var i=0,t=[];for(var e in this.params_)t[i++]=e+"-"+this.params_[e];return t.join("/")},e.prototype.updateParams=function(t){Object(nt.a)(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},e.prototype.updateV13_=function(){var t=this.params_.VERSION||Bc;this.v13_=Object(Uc.a)(t,"1.3")>=0},e}(Vt);function wg(object,t){var e=se()(object);if(Ht.a){var n=Ht()(object);t&&(n=qt()(n).call(n,(function(t){return Jt()(object,t).enumerable}))),e.push.apply(e,n)}return e}var jg={name:"vl-source-wms",mixins:[$r,Zr],props:{gutter:Number,hidpi:{type:Boolean,default:!0},serverType:{type:String,validator:function(t){var e;return!t||he()(e=ns()(Vc)).call(e,t)}},url:{type:String,required:!0,validator:function(t){return!!t.length}}},methods:{createSource:function(){return new Og({attributions:this.attributions,cacheSize:this.cacheSize,params:this.allParams,crossOrigin:this.crossOrigin,gutter:this.gutter,hidpi:this.hidpi,logo:this.logo,tileGrid:this._tileGrid,projection:this.projection,reprojectionErrorThreshold:this.reprojectionErrorThreshold,serverType:this.serverType,wrapX:this.wrapX,url:this.urlTmpl,transition:this.transition,tileLoadFunction:this.tileLoadFunction})},onUrlFuncChange:function(){}},watch:function(t){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:{};Eg.installed||(Eg.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Sg,e),t.component(Sg.name,Sg))}var Cg=Eg,Tg=n(364),Rg=n.n(Tg),Ig="KVP",Pg=function(t){function e(e){t.call(this,{extent:e.extent,origin:e.origin,origins:e.origins,resolutions:e.resolutions,tileSize:e.tileSize,tileSizes:e.tileSizes,sizes:e.sizes}),this.matrixIds_=e.matrixIds}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getMatrixId=function(t){return this.matrixIds_[t]},e.prototype.getMatrixIds=function(){return this.matrixIds_},e}(n(226).a),Fg=Pg;var Lg=function(t){function e(e){var n=void 0!==e.requestEncoding?e.requestEncoding:Ig,r=e.tileGrid,o=e.urls;void 0===o&&void 0!==e.url&&(o=Pt(e.url)),t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:r,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:It,urls:o,wrapX:void 0!==e.wrapX&&e.wrapX,transition:e.transition}),this.version_=void 0!==e.version?e.version:"1.0.0",this.format_=void 0!==e.format?e.format:"image/jpeg",this.dimensions_=void 0!==e.dimensions?e.dimensions:{},this.layer_=e.layer,this.matrixSet_=e.matrixSet,this.style_=e.style,this.requestEncoding_=n,this.setKey(this.getKeyForDimensions_()),o&&o.length>0&&(this.tileUrlFunction=Rt(o.map(Ag.bind(this))))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.setTileUrlFunction(Rt(t.map(Ag.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 i=0,t=[];for(var e in this.dimensions_)t[i++]=e+"-"+this.dimensions_[e];return t.join("/")},e.prototype.updateDimensions=function(t){Object(nt.a)(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e}(Vt);function Ag(template){var t=this.requestEncoding_,e={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};t==Ig&&Object(nt.a)(e,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),template=t==Ig?Ut(template,e):template.replace(/\{(\w+?)\}/g,(function(t,p){return p.toLowerCase()in e?e[p.toLowerCase()]:t}));var n=this.tileGrid,r=this.dimensions_;return function(e,o,c){if(e){var h={TileMatrix:n.getMatrixId(e[0]),TileCol:e[1],TileRow:-e[2]-1};Object(nt.a)(h,r);var l=template;return l=t==Ig?Ut(l,h):l.replace(/\{(\w+?)\}/g,(function(t,p){return h[p]}))}}}function Mg(object,t){var e=se()(object);if(Ht.a){var n=Ht()(object);t&&(n=qt()(n).call(n,(function(t){return Jt()(object,t).enumerable}))),e.push.apply(e,n)}return e}var kg={name:"vl-source-wmts",mixins:[$r],props:{dimensions:Object,format:{type:String,default:ae.n},layerName:{type:String,required:!0},matrixSet:{type:String,required:!0},matrixIds:{type:Array},requestEncoding:{type:String,default:ae.o},styleName:{type:String,required:!0},version:{type:String,default:ae.p},url:{type:String,required:!0},origin:{type:Array},resolutions:{type:Array}},methods:{createSource:function(){return new Lg({attributions:this.attributions,cacheSize:this.cacheSize,crossOrigin:this.crossOrigin,dimensions:this.dimensions,format:this.format,layer:this.layerName,logo:this.logo,matrixSet:this.matrixSet,origin:this.origin,projection:this.projection,reprojectionErrorThreshold:this.reprojectionErrorThreshold,requestEncoding:this.requestEncoding,resolutions:this.resolutions,tileGrid:this._tileGrid,tilePixelRatio:this.tilePixelRatio,style:this.styleName,version:this.version,url:this.urlTmpl,wrapX:this.wrapX,transition:this.transition,tileLoadFunction:this.tileLoadFunction})},createTileGrid:function(){var t=Object(ae.t)(this.projection),e=this.resolutions?this.resolutions:Object(ae.Z)(t,this.maxZoom,this.tileSize),n=this.origin?this.origin:Object(ae.B)(t,ae.d.TOP_LEFT),r=this.matrixIds||Rg()(Object(ce.z)(this.minZoom,e.length));return new Fg({extent:t,origin:n,resolutions:e,tileSize:this.tileSize,minZoom:this.minZoom,matrixIds:r})},onUrlFuncChange:function(){}},watch:function(t){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:{};Ng.installed||(Ng.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Dg,e),t.component(Dg.name,Dg))}var $g=Ng;var Gg=function(template,style,t,e,n,r,o,c){var component=("function"==typeof t?t.options:t)||{};return component.__file="source.vue",component.render||(component.render=template.render,component.staticRenderFns=template.staticRenderFns,component._compiled=!0,n&&(component.functional=!0)),component._scopeId=e,component}({},0,{name:"vl-source-xyz",mixins:[Qr]},undefined,undefined);function zg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zg.installed||(zg.installed=!0,e=Object(ce.x)(e,"dataProjection"),eo()(Gg,e),t.component(Gg.name,Gg))}var Bg=zg;e.a=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.installed||(t.installed=!0,e.use(r,n),e.use(o,n),e.use(c,n),e.use(h,n),e.use(l,n),e.use(f,n),e.use(d,n),e.use(v,n),e.use(m,n),e.use(y,n),e.use(_,n),e.use(x,n),e.use(O,n),e.use(w,n),e.use(j,n),e.use(S,n),e.use(E,n),e.use(C,n),e.use(T,n),e.use(R,n),e.use(I,n),e.use(P,n),e.use(F,n),e.use(L,n),e.use(A,n),e.use(M,n),e.use(k,n),e.use(D,n),e.use(N,n),e.use($,n),e.use(G,n),e.use(z,n),e.use(B,n),e.use(V,n),e.use(U,n),e.use(W,n),e.use(Y,n),e.use(X,n),e.use(H,n),e.use(K,n),e.use(Z,n),e.use(J,n),e.use(Q,n),e.use(tt,n))}},,,,,,,,,,,,,,,,function(t,e){e.read=function(t,e,n,r,o){var c,h,l=8*o-r-1,f=(1<>1,v=-7,i=n?o-1:0,m=n?-1:1,s=t[e+i];for(i+=m,c=s&(1<<-v)-1,s>>=-v,v+=l;v>0;c=256*c+t[e+i],i+=m,v-=8);for(h=c&(1<<-v)-1,c>>=-v,v+=r;v>0;h=256*h+t[e+i],i+=m,v-=8);if(0===c)c=1-d;else{if(c===f)return h?NaN:1/0*(s?-1:1);h+=Math.pow(2,r),c-=d}return(s?-1:1)*h*Math.pow(2,c-r)},e.write=function(t,e,n,r,o,c){var h,l,f,d=8*c-o-1,v=(1<>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=r?0:c-1,y=r?1:-1,s=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,h=v):(h=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-h))<1&&(h--,f*=2),(e+=h+m>=1?rt/f:rt*Math.pow(2,1-m))*f>=2&&(h++,f/=2),h+m>=v?(l=0,h=v):h+m>=1?(l=(e*f-1)*Math.pow(2,o),h+=m):(l=e*Math.pow(2,m-1)*Math.pow(2,o),h=0));o>=8;t[n+i]=255&l,i+=y,l/=256,o-=8);for(h=h<0;t[n+i]=255&h,i+=y,h/=256,d-=8);t[n+i-y]|=128*s}},,,,,,,,function(t,e,n){(function(t){t.installComponents=function(component,t){var n="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(n.components=component.exports.options.components),n.components=n.components||{},t)n.components[i]=n.components[i]||t[i];n.functional&&function(component,t){if(component.exports[e])return;component.exports[e]=!0;var n=component.exports.render;component.exports.render=function(e,r){return n(e,Object.assign({},r,{_c:function(e,a,b){return r._c(t[e]||e,a,b)}}))}}(component,n.components)};var e="_functionalComponents"}).call(this,n(149))},function(t,e,n){"use strict";n.r(e),function(t){n(230),n(183),n(231),n(122),n(204),n(205);var e=n(106),r=n(86),o=(n(397),n(621),n(634),n(635),n(271),n(203),n(56),n(130),n(139),n(93),n(284),n(325),n(148),n(243),n(140),n(164),n(165),n(304),n(7)),c=n(565),h=n(431),l=n(13),f=n(180),d=n(579),v=n(383);function m(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,h=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){h=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(h)throw o}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2?e-2:0),r=2;r0?o:r)(e)}},function(t,e,n){"use strict";var r=n(330),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){"use strict";var r=n(413),o=n(213);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){"use strict";var r=n(81),o=n(65),c=r.WeakMap;t.exports=o(c)&&/native code/.test(String(c))},function(t,e,n){"use strict";var r=n(216),o=n(335),c=n(90),h=n(66)("species"),l=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(o(e)&&(e===l||r(e.prototype))||c(e)&&null===(e=e[h]))&&(e=void 0)),void 0===e?l:e}},function(t,e,n){"use strict";var r=n(18),o=n(100),c=n(92),h=n(189),l=n(245),f=n(530),d=l("string-to-symbol-registry"),v=l("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!f},{for:function(t){var e=h(t);if(c(d,e))return d[e];var symbol=o("Symbol")(e);return d[e]=symbol,v[symbol]=e,symbol}})},function(t,e,n){"use strict";var r=n(18),o=n(92),c=n(288),h=n(212),l=n(245),f=n(530),d=l("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!f},{keyFor:function(t){if(!c(t))throw new TypeError(h(t)+" is not a symbol");if(o(d,t))return d[t]}})},function(t,e,n){"use strict";var r=n(59),o=n(216),c=n(65),h=n(168),l=n(189),f=r([].push);t.exports=function(t){if(c(t))return t;if(o(t)){for(var e=t.length,n=[],i=0;i1?arguments[1]:void 0)}})},function(t,e,n){"use strict";n(732);var r=n(76).Object,o=t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)};r.getOwnPropertyDescriptor.sham&&(o.sham=!0)},function(t,e,n){"use strict";var r=n(18),o=n(48),c=n(143),h=n(208).f,l=n(89);r({target:"Object",stat:!0,forced:!l||o((function(){h(1)})),sham:!l},{getOwnPropertyDescriptor:function(t,e){return h(c(t),e)}})},function(t,e,n){"use strict";var r=n(734);t.exports=r},function(t,e,n){"use strict";n(735);var path=n(76);t.exports=path.Object.getOwnPropertyDescriptors},function(t,e,n){"use strict";var r=n(18),o=n(89),c=n(533),h=n(143),l=n(208),f=n(246);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(object){for(var t,e,n=h(object),r=l.f,o=c(n),d={},v=0;o.length>v;)void 0!==(e=r(n,t=o[v++]))&&f(d,t,e);return d}})},function(t,e,n){"use strict";var r=n(737);n(764),n(765),n(766),n(767),n(768),n(769),n(770),n(771),n(772),t.exports=r},function(t,e,n){"use strict";var r=n(738);n(760),n(761),n(762),n(763),t.exports=r},function(t,e,n){"use strict";var r=n(739);n(249),t.exports=r},function(t,e,n){"use strict";n(534),n(294),n(517),n(740),n(741),n(742),n(743),n(535),n(744),n(745),n(746),n(747),n(748),n(749),n(536),n(750),n(751),n(752),n(753),n(754);var path=n(76);t.exports=path.Symbol},function(t,e,n){"use strict";n(77)("asyncIterator")},function(t,e){},function(t,e,n){"use strict";n(77)("hasInstance")},function(t,e,n){"use strict";n(77)("isConcatSpreadable")},function(t,e,n){"use strict";n(77)("match")},function(t,e,n){"use strict";n(77)("matchAll")},function(t,e,n){"use strict";n(77)("replace")},function(t,e,n){"use strict";n(77)("search")},function(t,e,n){"use strict";n(77)("species")},function(t,e,n){"use strict";n(77)("split")},function(t,e,n){"use strict";var r=n(100),o=n(77),c=n(215);o("toStringTag"),c(r("Symbol"),"Symbol")},function(t,e,n){"use strict";n(77)("unscopables")},function(t,e,n){"use strict";var r=n(81);n(215)(r.JSON,"JSON",!0)},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(89),o=n(92),c=Function.prototype,h=r&&Object.getOwnPropertyDescriptor,l=o(c,"name"),f=l&&"something"===function(){}.name,d=l&&(!r||r&&h(c,"name").configurable);t.exports={EXISTS:l,PROPER:f,CONFIGURABLE:d}},function(t,e,n){"use strict";var r=n(537).IteratorPrototype,o=n(214),c=n(209),h=n(215),l=n(251),f=function(){return this};t.exports=function(t,e,n,d){var v=e+" Iterator";return t.prototype=o(r,{next:c(+!d,n)}),h(t,v,!1,!0),l[v]=f,t}},function(t,e,n){"use strict";var r=n(59),o=n(95);t.exports=function(object,t,e){try{return r(o(Object.getOwnPropertyDescriptor(object,t)[e]))}catch(t){}}},function(t,e,n){"use strict";var r=n(65),o=String,c=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw new c("Can't set "+o(t)+" as a prototype")}},function(t,e,n){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){"use strict";var r=n(66),o=n(125).f,c=r("metadata"),h=Function.prototype;void 0===h[c]&&o(h,c,{value:null})},function(t,e,n){"use strict";n(77)("asyncDispose")},function(t,e,n){"use strict";n(77)("dispose")},function(t,e,n){"use strict";n(77)("metadata")},function(t,e,n){"use strict";n(18)({target:"Symbol",stat:!0},{isRegisteredSymbol:n(539)})},function(t,e,n){"use strict";n(18)({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:n(540)})},function(t,e,n){"use strict";n(77)("matcher")},function(t,e,n){"use strict";n(77)("observable")},function(t,e,n){"use strict";n(18)({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:n(539)})},function(t,e,n){"use strict";n(18)({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:n(540)})},function(t,e,n){"use strict";n(77)("metadataKey")},function(t,e,n){"use strict";n(77)("patternMatch")},function(t,e,n){"use strict";n(77)("replaceAll")},function(t,e,n){"use strict";var r=n(774);t.exports=r},function(t,e,n){"use strict";var r=n(775);t.exports=r},function(t,e,n){"use strict";var r=n(776);n(249),t.exports=r},function(t,e,n){"use strict";n(250),n(294),n(295),n(535);var r=n(334);t.exports=r.f("iterator")},function(t,e,n){"use strict";var r=n(59),o=n(330),c=n(189),h=n(287),l=r("".charAt),f=r("".charCodeAt),d=r("".slice),v=function(t){return function(e,n){var r,v,m=c(h(e)),y=o(n),_=m.length;return y<0||y>=_?t?"":void 0:(r=f(m,y))<55296||r>56319||y+1===_||(v=f(m,y+1))<56320||v>57343?t?l(m,y):r:t?d(m,y,y+2):v-56320+(r-55296<<10)+65536}};t.exports={codeAt:v(!1),charAt:v(!0)}},function(t,e,n){"use strict";var r=n(779);t.exports=r},function(t,e,n){"use strict";var r=n(780);t.exports=r},function(t,e,n){"use strict";var r=n(781);t.exports=r},function(t,e,n){"use strict";n(782),n(536);var r=n(334);t.exports=r.f("toPrimitive")},function(t,e){},function(t,e,n){"use strict";var r=n(784);t.exports=r},function(t,e,n){"use strict";var r=n(785);t.exports=r},function(t,e,n){"use strict";var r=n(786);t.exports=r},function(t,e,n){"use strict";n(787);var r=n(76).Object,o=t.exports=function(t,e,desc){return r.defineProperty(t,e,desc)};r.defineProperty.sham&&(o.sham=!0)},function(t,e,n){"use strict";var r=n(18),o=n(89),c=n(125).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==c,sham:!o},{defineProperty:c})},function(t,e,n){"use strict";var r=n(789);t.exports=r},function(t,e,n){"use strict";n(531);var path=n(76),r=n(285);path.JSON||(path.JSON={stringify:JSON.stringify}),t.exports=function(t,e,n){return r(path.JSON.stringify,null,arguments)}},function(t,e,n){"use strict";var r=n(791);t.exports=r},function(t,e,n){"use strict";n(792);var path=n(76);t.exports=path.Object.keys},function(t,e,n){"use strict";var r=n(18),o=n(133),c=n(290);r({target:"Object",stat:!0,forced:n(48)((function(){c(1)}))},{keys:function(t){return c(o(t))}})},function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var o=new Array(16);t.exports=function(){for(var t,i=0;i<16;i++)0==(3&i)&&(t=4294967296*Math.random()),o[i]=t>>>((3&i)<<3)&255;return o}}},function(t,e){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);t.exports=function(t,e){var i=e||0,r=n;return[r[t[i++]],r[t[i++]],r[t[i++]],r[t[i++]],"-",r[t[i++]],r[t[i++]],"-",r[t[i++]],r[t[i++]],"-",r[t[i++]],r[t[i++]],"-",r[t[i++]],r[t[i++]],r[t[i++]],r[t[i++]],r[t[i++]],r[t[i++]]].join("")}},function(t,e,n){var r=n(796).default,o=n(191),c=n(146),h=n(298),l=n(362),f=n(806),d=n(299),v=n(257),m=n(363),y=n(855),_=n(430);function x(){"use strict";t.exports=x=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var e,n={},O=Object.prototype,w=O.hasOwnProperty,j=o||function(t,e,n){t[e]=n.value},i="function"==typeof c?c:{},a=i.iterator||"@@iterator",S=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function E(t,e,n){return o(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{E({},"")}catch(e){E=function(t,e,n){return t[e]=n}}function C(t,e,n,r){var i=e&&e.prototype instanceof L?e:L,a=h(i.prototype),o=new V(r||[]);return j(a,"_invoke",{value:$(t,n,o)}),a}function T(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=C;var R="suspendedStart",I="suspendedYield",P="executing",s="completed",F={};function L(){}function A(){}function M(){}var p={};E(p,a,(function(){return this}));var k=l&&l(l(U([])));k&&k!==O&&w.call(k,a)&&(p=k);var g=M.prototype=L.prototype=h(p);function D(t){var e;f(e=["next","throw","return"]).call(e,(function(e){E(t,e,(function(t){return this._invoke(e,t)}))}))}function N(t,e){function n(o,c,i,a){var h=T(t[o],t,c);if("throw"!==h.type){var u=h.arg,l=u.value;return l&&"object"==r(l)&&w.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,i,a)}),(function(t){n("throw",t,i,a)})):e.resolve(l).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,a)}))}a(h.arg)}var o;j(this,"_invoke",{value:function(t,r){function c(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(c,c):c()}})}function $(t,n,r){var o=R;return function(i,a){if(o===P)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=G(c,r);if(u){if(u===F)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===R)throw o=s,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=P;var p=T(t,n,r);if("normal"===p.type){if(o=r.done?s:I,p.arg===F)continue;return{value:p.arg,done:r.done}}"throw"===p.type&&(o=s,r.method="throw",r.arg=p.arg)}}}function G(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,G(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),F;var i=T(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,F;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,F):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,F)}function z(t){var e,n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),d(e=this.tryEntries).call(e,n)}function B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function V(t){this.tryEntries=[{tryLoc:"root"}],f(t).call(t,z,this),this.reset(!0)}function U(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=w.call(i,"catchLoc"),u=w.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&w.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),B(n),F}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;B(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:U(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),F}},n}t.exports=x,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(146),o=n(429);function c(e){return t.exports=c="function"==typeof r&&"symbol"==typeof o?function(t){return typeof t}:function(t){return t&&"function"==typeof r&&t.constructor===r&&t!==r.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,c(e)}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var r=n(798);t.exports=r},function(t,e,n){"use strict";var r=n(799);t.exports=r},function(t,e,n){"use strict";var r=n(800);t.exports=r},function(t,e,n){"use strict";n(801);var r=n(76).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){"use strict";n(18)({target:"Object",stat:!0,sham:!n(89)},{create:n(214)})},function(t,e,n){"use strict";var r=n(803);t.exports=r},function(t,e,n){"use strict";var r=n(541);t.exports=r},function(t,e,n){"use strict";n(805);var path=n(76);t.exports=path.Object.getPrototypeOf},function(t,e,n){"use strict";var r=n(18),o=n(48),c=n(133),h=n(252),l=n(538);r({target:"Object",stat:!0,forced:o((function(){h(1)})),sham:!l},{getPrototypeOf:function(t){return h(c(t))}})},function(t,e,n){"use strict";t.exports=n(807)},function(t,e,n){"use strict";var r=n(808);t.exports=r},function(t,e,n){"use strict";var r=n(809);t.exports=r},function(t,e,n){"use strict";var r=n(213),o=n(92),c=n(91),h=n(810);n(814);var l=Array.prototype,f={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===l||c(l,t)&&e===l.forEach||o(f,r(t))?h:e}},function(t,e,n){"use strict";var r=n(811);t.exports=r},function(t,e,n){"use strict";n(812);var r=n(111);t.exports=r("Array","forEach")},function(t,e,n){"use strict";var r=n(18),o=n(813);r({target:"Array",proto:!0,forced:[].forEach!==o},{forEach:o})},function(t,e,n){"use strict";var r=n(248).forEach,o=n(422)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e){},function(t,e,n){"use strict";var r=n(816);t.exports=r},function(t,e,n){"use strict";var r=n(817);t.exports=r},function(t,e,n){"use strict";var r=n(818);t.exports=r},function(t,e,n){"use strict";var r=n(91),o=n(819),c=Array.prototype;t.exports=function(t){var e=t.push;return t===c||r(c,t)&&e===c.push?o:e}},function(t,e,n){"use strict";n(820);var r=n(111);t.exports=r("Array","push")},function(t,e,n){"use strict";var r=n(18),o=n(133),c=n(151),h=n(542),l=n(418);r({target:"Array",proto:!0,arity:1,forced:n(48)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=o(this),n=c(e),r=arguments.length;l(n+r);for(var i=0;i2&&m(n,arguments[2]);var l=[];return _(t,j,{that:l}),d(n,"errors",l),n};h?h(S,w):l(S,w,{name:!0});var E=S.prototype=f(w.prototype,{constructor:v(1,S),message:v(1,""),name:v(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:S})},function(t,e,n){"use strict";var r=n(92),o=n(533),c=n(208),h=n(125);t.exports=function(t,source,e){for(var n=o(source),l=h.f,f=c.f,i=0;i1?arguments[1]:void 0,w=void 0!==O;w&&(O=r(O,x>2?arguments[2]:void 0));var j,S,E,C,T,R,I=y(e),P=0;if(!I||this===_&&l(I))for(j=d(e),S=n?new this(j):_(j);j>P;P++)R=w?O(e[P],P):e[P],v(S,P,R);else for(T=(C=m(e,I)).next,S=n?new this:[];!(E=o(T,C)).done;P++)R=w?h(C,O,[E.value,P],!0):E.value,v(S,P,R);return S.length=P,S}},function(t,e,n){"use strict";var r=n(110),o=n(547);t.exports=function(t,e,n,c){try{return c?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},function(t,e,n){"use strict";var r=n(872);t.exports=r},function(t,e,n){"use strict";var r=n(91),o=n(873),c=Array.prototype;t.exports=function(t){var e=t.find;return t===c||r(c,t)&&e===c.find?o:e}},function(t,e,n){"use strict";n(874);var r=n(111);t.exports=r("Array","find")},function(t,e,n){"use strict";var r=n(18),o=n(248).find,c=n(419),h="find",l=!0;h in[]&&Array(1)[h]((function(){l=!1})),r({target:"Array",proto:!0,forced:l},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),c(h)},function(t,e,n){"use strict";var r=n(876);t.exports=r},function(t,e,n){"use strict";var r=n(91),o=n(877),c=Array.prototype;t.exports=function(t){var e=t.map;return t===c||r(c,t)&&e===c.map?o:e}},function(t,e,n){"use strict";n(878);var r=n(111);t.exports=r("Array","map")},function(t,e,n){"use strict";var r=n(18),o=n(248).map;r({target:"Array",proto:!0,forced:!n(293)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(880);t.exports=r},function(t,e,n){"use strict";var r=n(91),o=n(881),c=n(883),h=Array.prototype,l=String.prototype;t.exports=function(t){var e=t.includes;return t===h||r(h,t)&&e===h.includes?o:"string"==typeof t||t===l||r(l,t)&&e===l.includes?c:e}},function(t,e,n){"use strict";n(882);var r=n(111);t.exports=r("Array","includes")},function(t,e,n){"use strict";var r=n(18),o=n(414).includes,c=n(48),h=n(419);r({target:"Array",proto:!0,forced:c((function(){return!Array(1).includes()}))},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),h("includes")},function(t,e,n){"use strict";n(884);var r=n(111);t.exports=r("String","includes")},function(t,e,n){"use strict";var r=n(18),o=n(59),c=n(885),h=n(287),l=n(189),f=n(887),d=o("".indexOf);r({target:"String",proto:!0,forced:!f("includes")},{includes:function(t){return!!~d(l(h(this)),l(c(t)),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(886),o=TypeError;t.exports=function(t){if(r(t))throw new o("The method doesn't accept regular expressions");return t}},function(t,e,n){"use strict";var r=n(90),o=n(168),c=n(66)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[c])?!!e:"RegExp"===o(t))}},function(t,e,n){"use strict";var r=n(66)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,n){"use strict";var r=n(889);t.exports=r},function(t,e,n){"use strict";n(890);var path=n(76);t.exports=path.Object.values},function(t,e,n){"use strict";var r=n(18),o=n(891).values;r({target:"Object",stat:!0},{values:function(t){return o(t)}})},function(t,e,n){"use strict";var r=n(89),o=n(48),c=n(59),h=n(252),l=n(290),f=n(143),d=c(n(326).f),v=c([].push),m=r&&o((function(){var t=Object.create(null);return t[2]=2,!d(t,2)})),y=function(t){return function(e){for(var n,o=f(e),c=l(o),y=m&&null===h(o),_=c.length,i=0,x=[];_>i;)n=c[i++],r&&!(y?n in o:d(o,n))||v(x,t?[n,o[n]]:o[n]);return x}};t.exports={entries:y(!0),values:y(!1)}},function(t,e,n){"use strict";var r=n(893);t.exports=r},function(t,e,n){"use strict";var r=n(91),o=n(894),c=Array.prototype;t.exports=function(t){var e=t.concat;return t===c||r(c,t)&&e===c.concat?o:e}},function(t,e,n){"use strict";n(534);var r=n(111);t.exports=r("Array","concat")},function(t,e,n){"use strict";n(896);var path=n(76);t.exports=path.Reflect.construct},function(t,e,n){"use strict";var r=n(18),o=n(100),c=n(285),h=n(561),l=n(424),f=n(110),d=n(90),v=n(214),m=n(48),y=o("Reflect","construct"),_=Object.prototype,x=[].push,O=m((function(){function t(){}return!(y((function(){}),[],t)instanceof t)})),w=!m((function(){y((function(){}))})),j=O||w;r({target:"Reflect",stat:!0,forced:j,sham:j},{construct:function(t,e){l(t),f(e);var n=arguments.length<3?t:l(arguments[2]);if(w&&!O)return y(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return c(x,r,e),new(c(h,t,r))}var o=n.prototype,m=v(d(o)?o:_),j=c(t,m,e);return d(j)?j:m}})},function(t,e,n){"use strict";var r=n(898);t.exports=r},function(t,e,n){"use strict";var r=n(899);t.exports=r},function(t,e,n){"use strict";var r=n(900);t.exports=r},function(t,e,n){"use strict";var r=n(91),o=n(901),c=Function.prototype;t.exports=function(t){var e=t.bind;return t===c||r(c,t)&&e===c.bind?o:e}},function(t,e,n){"use strict";n(902);var r=n(111);t.exports=r("Function","bind")},function(t,e,n){"use strict";var r=n(18),o=n(561);r({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},function(t,e,n){"use strict";var r=n(904);t.exports=r},function(t,e,n){"use strict";var r=n(905);t.exports=r},function(t,e,n){"use strict";var r=n(906);t.exports=r},function(t,e,n){"use strict";n(907);var path=n(76);t.exports=path.Reflect.get},function(t,e,n){"use strict";var r=n(18),o=n(72),c=n(90),h=n(110),l=n(908),f=n(208),d=n(252);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,v,m=arguments.length<3?e:arguments[2];return h(e)===m?e[n]:(r=f.f(e,n))?l(r)?r.value:void 0===r.get?void 0:o(r.get,m):c(v=d(e))?t(v,n,m):void 0}})},function(t,e,n){"use strict";var r=n(92);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},function(t,e,n){"use strict";var r=n(910);t.exports=r},function(t,e,n){"use strict";var r=n(532);t.exports=r},function(t,e,n){"use strict";var r=n(912);t.exports=r},function(t,e,n){"use strict";n(913);var path=n(76);t.exports=path.Object.assign},function(t,e,n){"use strict";var r=n(18),o=n(914);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},function(t,e,n){"use strict";var r=n(89),o=n(59),c=n(72),h=n(48),l=n(290),f=n(333),d=n(326),v=n(133),m=n(409),y=Object.assign,_=Object.defineProperty,x=o([].concat);t.exports=!y||h((function(){if(r&&1!==y({b:1},y(_({},"a",{enumerable:!0,get:function(){_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},symbol=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[symbol]=7,n.split("").forEach((function(t){e[t]=t})),7!==y({},t)[symbol]||l(y({},e)).join("")!==n}))?function(t,source){for(var e=v(t),n=arguments.length,o=1,h=f.f,y=d.f;n>o;)for(var _,O=m(arguments[o++]),w=h?x(l(O),h(O)):l(O),j=w.length,S=0;j>S;)_=w[S++],r&&!c(y,O,_)||(e[_]=O[_]);return e}:y},function(t,e,n){var r=n(916),o=function(){return new d};for(var c in r){o[c+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),r[t](e)}}(c);var h=/(\w+)2(\w+)/.exec(c),l=h[1],f=h[2];(o[l]=o[l]||{})[f]=o[c]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=r[t](e);if("string"==typeof n||void 0===n)return n;for(var i=0;i.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(g=g>.04045?Math.pow((g+.055)/1.055,2.4):g/12.92)+.1805*(b=b>.04045?Math.pow((b+.055)/1.055,2.4):b/12.92)),100*(.2126*e+.7152*g+.0722*b),100*(.0193*e+.1192*g+.9505*b)]}function d(t){var e=f(t),n=e[0],r=e[1],o=e[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]}function v(t){var e,n,r,o,c,h=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return[c=255*l,c,c];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),o=[0,0,0];for(var i=0;i<3;i++)(r=h+1/3*-(i-1))<0&&r++,r>1&&r--,c=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,o[i]=255*c;return o}function m(t){var e=t[0]/60,s=t[1]/100,n=t[2]/100,r=Math.floor(e)%6,o=e-Math.floor(e),p=255*n*(1-s),q=255*n*(1-s*o),c=255*n*(1-s*(1-o));n*=255;switch(r){case 0:return[n,c,p];case 1:return[q,n,p];case 2:return[p,n,c];case 3:return[p,q,n];case 4:return[c,p,n];case 5:return[n,p,q]}}function y(t){var i,e,n,o,c=t[0]/360,h=t[1]/100,l=t[2]/100,f=h+l;switch(f>1&&(h/=f,l/=f),n=6*c-(i=Math.floor(6*c)),0!=(1&i)&&(n=1-n),o=h+n*((e=1-l)-h),i){default:case 6:case 0:r=e,g=o,b=h;break;case 1:r=o,g=e,b=h;break;case 2:r=h,g=e,b=o;break;case 3:r=h,g=o,b=e;break;case 4:r=o,g=h,b=e;break;case 5:r=e,g=h,b=o}return[255*r,255*g,255*b]}function _(t){var e=t[0]/100,n=t[1]/100,r=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]}function x(t){var e,g,b,n=t[0]/100,r=t[1]/100,o=t[2]/100;return g=-.9689*n+1.8758*r+.0415*o,b=.0557*n+-.204*r+1.057*o,e=(e=3.2406*n+-1.5372*r+-.4986*o)>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,g=g>.0031308?1.055*Math.pow(g,1/2.4)-.055:g*=12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(g=Math.min(Math.max(0,g),1)),255*(b=Math.min(Math.max(0,b),1))]}function O(t){var e=t[0],n=t[1],r=t[2];return n/=100,r/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function w(t){var e,n,r,o,c=t[0],a=t[1],b=t[2];return c<=8?o=(n=100*c/903.3)/100*7.787+16/116:(n=100*Math.pow((c+16)/116,3),o=Math.pow(n/100,1/3)),[e=e/95.047<=.008856?e=95.047*(a/500+o-16/116)/7.787:95.047*Math.pow(a/500+o,3),n,r=r/108.883<=.008859?r=108.883*(o-b/200-16/116)/7.787:108.883*Math.pow(o-b/200,3)]}function j(t){var e,n=t[0],a=t[1],b=t[2];return(e=360*Math.atan2(b,a)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(a*a+b*b),e]}function S(t){return x(w(t))}function E(t){var hr,e=t[0],n=t[1];return hr=t[2]/360*2*Math.PI,[e,n*Math.cos(hr),n*Math.sin(hr)]}function C(t){return T[t]}t.exports={rgb2hsl:n,rgb2hsv:o,rgb2hwb:c,rgb2cmyk:h,rgb2keyword:l,rgb2xyz:f,rgb2lab:d,rgb2lch:function(t){return j(d(t))},hsl2rgb:v,hsl2hsv:function(t){var e=t[0],s=t[1]/100,n=t[2]/100;if(0===n)return[0,0,0];return[e,100*(2*(s*=(n*=2)<=1?n:2-n)/(n+s)),100*((n+s)/2)]},hsl2hwb:function(t){return c(v(t))},hsl2cmyk:function(t){return h(v(t))},hsl2keyword:function(t){return l(v(t))},hsv2rgb:m,hsv2hsl:function(t){var e,n,r=t[0],s=t[1]/100,o=t[2]/100;return e=s*o,[r,100*(e=(e/=(n=(2-s)*o)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return c(m(t))},hsv2cmyk:function(t){return h(m(t))},hsv2keyword:function(t){return l(m(t))},hwb2rgb:y,hwb2hsl:function(t){return n(y(t))},hwb2hsv:function(t){return o(y(t))},hwb2cmyk:function(t){return h(y(t))},hwb2keyword:function(t){return l(y(t))},cmyk2rgb:_,cmyk2hsl:function(t){return n(_(t))},cmyk2hsv:function(t){return o(_(t))},cmyk2hwb:function(t){return c(_(t))},cmyk2keyword:function(t){return l(_(t))},keyword2rgb:C,keyword2hsl:function(t){return n(C(t))},keyword2hsv:function(t){return o(C(t))},keyword2hwb:function(t){return c(C(t))},keyword2cmyk:function(t){return h(C(t))},keyword2lab:function(t){return d(C(t))},keyword2xyz:function(t){return f(C(t))},xyz2rgb:x,xyz2lab:O,xyz2lch:function(t){return j(O(t))},lab2xyz:w,lab2rgb:S,lab2lch:j,lch2lab:E,lch2xyz:function(t){return w(E(t))},lch2rgb:function(t){return S(E(t))}};var T={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},R={};for(var I in T)R[JSON.stringify(T[I])]=I},function(t,e,n){"use strict";var r=n(918);t.exports=r},function(t,e,n){"use strict";var r=n(919);t.exports=r},function(t,e,n){"use strict";var r=n(920);t.exports=r},function(t,e,n){"use strict";var r=n(91),o=n(921),c=Array.prototype;t.exports=function(t){var e=t.indexOf;return t===c||r(c,t)&&e===c.indexOf?o:e}},function(t,e,n){"use strict";n(922);var r=n(111);t.exports=r("Array","indexOf")},function(t,e,n){"use strict";var r=n(18),o=n(408),c=n(414).indexOf,h=n(422),l=o([].indexOf),f=!!l&&1/l([1],1,-0)<0;r({target:"Array",proto:!0,forced:f||!h("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return f?l(this,t,e)||0:c(this,t,e)}})},function(t,e,n){"use strict";var r=n(924);t.exports=r},function(t,e,n){"use strict";var r=n(560);t.exports=r},function(t,e,n){"use strict";var r=n(926);n(939),n(941),n(943),n(944),n(945),n(947),n(948),n(949),n(950),n(952),n(953),n(954),n(955),n(956),n(957),n(958),n(959),n(960),n(961),t.exports=r},function(t,e,n){"use strict";var r=n(927);n(937),t.exports=r},function(t,e,n){"use strict";var r=n(928);n(249),t.exports=r},function(t,e,n){"use strict";n(250),n(929),n(294),n(295);var path=n(76);t.exports=path.Map},function(t,e,n){"use strict";n(930)},function(t,e,n){"use strict";n(931)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(935))},function(t,e,n){"use strict";var r=n(18),o=n(81),c=n(562),h=n(48),l=n(150),f=n(145),d=n(423),v=n(65),m=n(90),y=n(210),_=n(215),x=n(125).f,O=n(248).forEach,w=n(89),j=n(247),S=j.set,E=j.getterFor;t.exports=function(t,e,n){var j,C=-1!==t.indexOf("Map"),T=-1!==t.indexOf("Weak"),R=C?"set":"add",I=o[t],P=I&&I.prototype,F={};if(w&&v(I)&&(T||P.forEach&&!h((function(){(new I).entries().next()})))){var L=(j=e((function(e,n){S(d(e,L),{type:t,collection:new I}),y(n)||f(n,e[R],{that:e,AS_ENTRIES:C})}))).prototype,A=E(t);O(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"===t||"set"===t;!(t in P)||T&&"clear"===t||l(L,t,(function(a,b){var n=A(this).collection;if(!e&&T&&!m(a))return"get"===t&&void 0;var r=n[t](0===a?0:a,b);return e?this:r}))})),T||x(L,"size",{configurable:!0,get:function(){return A(this).collection.size}})}else j=n.getConstructor(e,t,C,R),c.enable();return _(j,t,!1,!0),F[t]=j,r({global:!0,forced:!0},F),T||n.setStrong(j,t,C),j}},function(t,e,n){"use strict";var r=n(48),o=n(90),c=n(168),h=n(933),l=Object.isExtensible,f=r((function(){l(1)}));t.exports=f||h?function(t){return!!o(t)&&((!h||"ArrayBuffer"!==c(t))&&(!l||l(t)))}:l},function(t,e,n){"use strict";var r=n(48);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,n){"use strict";var r=n(48);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){"use strict";var r=n(214),o=n(416),c=n(936),h=n(109),l=n(423),f=n(210),d=n(145),v=n(420),m=n(421),y=n(548),_=n(89),x=n(562).fastKey,O=n(247),w=O.set,j=O.getterFor;t.exports={getConstructor:function(t,e,n,v){var m=t((function(t,o){l(t,y),w(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),_||(t.size=0),f(o)||d(o,t[v],{that:t,AS_ENTRIES:n})})),y=m.prototype,O=j(e),S=function(t,e,n){var r,o,c=O(t),h=E(t,e);return h?h.value=n:(c.last=h={index:o=x(e,!0),key:e,value:n,previous:r=c.last,next:void 0,removed:!1},c.first||(c.first=h),r&&(r.next=h),_?c.size++:t.size++,"F"!==o&&(c.index[o]=h)),t},E=function(t,e){var n,r=O(t),o=x(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===e)return n};return c(y,{clear:function(){for(var t=O(this),data=t.index,e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),delete data[e.index],e=e.next;t.first=t.last=void 0,_?t.size=0:this.size=0},delete:function(t){var e=this,n=O(e),r=E(e,t);if(r){var o=r.next,c=r.previous;delete n.index[r.index],r.removed=!0,c&&(c.next=o),o&&(o.previous=c),n.first===r&&(n.first=o),n.last===r&&(n.last=c),_?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=O(this),r=h(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!E(this,t)}}),c(y,n?{get:function(t){var e=E(this,t);return e&&e.value},set:function(t,e){return S(this,0===t?0:t,e)}}:{add:function(t){return S(this,t=0===t?0:t,t)}}),_&&o(y,"size",{configurable:!0,get:function(){return O(this).size}}),m},setStrong:function(t,e,n){var r=e+" Iterator",o=j(e),c=j(r);v(t,e,(function(t,e){w(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=c(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?m("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,m(void 0,!0))}),n?"entries":"values",!n,!0),y(e)}}},function(t,e,n){"use strict";var r=n(190);t.exports=function(t,e,n){for(var o in e)n&&n.unsafe&&t[o]?t[o]=e[o]:r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(18),o=n(59),c=n(95),h=n(287),l=n(145),f=n(170),d=n(144),v=f.Map,m=f.has,y=f.get,_=f.set,x=o([].push);r({target:"Map",stat:!0,forced:d},{groupBy:function(t,e){h(t),c(e);var map=new v,n=0;return l(t,(function(t){var r=e(t,n++);m(map,r)?x(y(map,r),t):_(map,r,[t])})),map}})},function(t,e,n){"use strict";t.exports=function(t,e){return 1===e?function(object,e){return object[t](e)}:function(object,e,n){return object[t](e,n)}}},function(t,e,n){"use strict";n(18)({target:"Map",stat:!0,forced:!0},{from:n(940)})},function(t,e,n){"use strict";var r=n(109),o=n(72),c=n(95),h=n(424),l=n(210),f=n(145),d=[].push;t.exports=function(source){var t,e,n,v,m=arguments.length,y=m>1?arguments[1]:void 0;return h(this),(t=void 0!==y)&&c(y),l(source)?new this:(e=[],t?(n=0,v=r(y,m>2?arguments[2]:void 0),f(source,(function(t){o(d,e,v(t,n++))}))):f(source,d,{that:e}),new this(e))}},function(t,e,n){"use strict";n(18)({target:"Map",stat:!0,forced:!0},{of:n(942)})},function(t,e,n){"use strict";var r=n(292);t.exports=function(){return new this(r(arguments))}},function(t,e,n){"use strict";var r=n(18),o=n(116),c=n(170).remove;r({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=o(this),n=!0,r=0,h=arguments.length;r1?arguments[1]:void 0);return!1!==h(map,(function(t,n){if(!e(t,n,map))return!1}),!0)}})},function(t,e,n){"use strict";var r=n(72);t.exports=function(t,e,n){for(var o,c,h=n?t:t.iterator,l=t.next;!(o=r(l,h)).done;)if(void 0!==(c=e(o.value)))return c}},function(t,e,n){"use strict";var r=n(18),o=n(109),c=n(116),h=n(170),l=n(152),f=h.Map,d=h.set;r({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var map=c(this),e=o(t,arguments.length>1?arguments[1]:void 0),n=new f;return l(map,(function(t,r){e(t,r,map)&&d(n,r,t)})),n}})},function(t,e,n){"use strict";var r=n(18),o=n(109),c=n(116),h=n(152);r({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var map=c(this),e=o(t,arguments.length>1?arguments[1]:void 0),n=h(map,(function(t,n){if(e(t,n,map))return{value:t}}),!0);return n&&n.value}})},function(t,e,n){"use strict";var r=n(18),o=n(109),c=n(116),h=n(152);r({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var map=c(this),e=o(t,arguments.length>1?arguments[1]:void 0),n=h(map,(function(t,n){if(e(t,n,map))return{key:n}}),!0);return n&&n.key}})},function(t,e,n){"use strict";var r=n(18),o=n(951),c=n(116),h=n(152);r({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return!0===h(c(this),(function(e){if(o(e,t))return!0}),!0)}})},function(t,e,n){"use strict";t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(18),o=n(72),c=n(145),h=n(65),l=n(95),f=n(170).Map;r({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var n=new(h(this)?this:f);l(e);var r=l(n.set);return c(t,(function(element){o(r,n,e(element),element)})),n}})},function(t,e,n){"use strict";var r=n(18),o=n(116),c=n(152);r({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){var e=c(o(this),(function(e,n){if(e===t)return{key:n}}),!0);return e&&e.key}})},function(t,e,n){"use strict";var r=n(18),o=n(109),c=n(116),h=n(170),l=n(152),f=h.Map,d=h.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var map=c(this),e=o(t,arguments.length>1?arguments[1]:void 0),n=new f;return l(map,(function(t,r){d(n,e(t,r,map),t)})),n}})},function(t,e,n){"use strict";var r=n(18),o=n(109),c=n(116),h=n(170),l=n(152),f=h.Map,d=h.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var map=c(this),e=o(t,arguments.length>1?arguments[1]:void 0),n=new f;return l(map,(function(t,r){d(n,r,e(t,r,map))})),n}})},function(t,e,n){"use strict";var r=n(18),o=n(116),c=n(145),h=n(170).set;r({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var map=o(this),e=arguments.length,i=0;i1?arguments[1]:void 0);return!0===h(map,(function(t,n){if(e(t,n,map))return!0}),!0)}})},function(t,e,n){"use strict";var r=n(18),o=n(95),c=n(116),h=n(170),l=TypeError,f=h.get,d=h.has,v=h.set;r({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var map=c(this),n=arguments.length;o(e);var r=d(map,t);if(!r&&n<3)throw new l("Updating absent value");var h=r?f(map,t):o(n>2?arguments[2]:void 0)(t,map);return v(map,t,e(h,t,map)),map}})},function(t,e,n){"use strict";n(18)({target:"Map",proto:!0,real:!0,forced:!0},{upsert:n(563)})},function(t,e,n){"use strict";n(18)({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:n(563)})},function(t,e,n){"use strict";var r=n(963);t.exports=r},function(t,e,n){"use strict";var r=n(91),o=n(964),c=Array.prototype;t.exports=function(t){var e=t.splice;return t===c||r(c,t)&&e===c.splice?o:e}},function(t,e,n){"use strict";n(965);var r=n(111);t.exports=r("Array","splice")},function(t,e,n){"use strict";var r=n(18),o=n(133),c=n(329),h=n(330),l=n(151),f=n(542),d=n(418),v=n(417),m=n(246),y=n(564),_=n(293)("splice"),x=Math.max,O=Math.min;r({target:"Array",proto:!0,forced:!_},{splice:function(t,e){var n,r,_,w,j,S,E=o(this),C=l(E),T=c(t,C),R=arguments.length;for(0===R?n=r=0:1===R?(n=0,r=C-T):(n=R-2,r=O(x(h(e),0),C-T)),d(C+n-r),_=v(E,r),w=0;wC-r+n;w--)y(E,w-1)}else if(n>r)for(w=C-r;w>T;w--)S=w+n-1,(j=w+r-1)in E?E[S]=E[j]:y(E,S);for(w=0;w3)){if(x)return!0;if(w)return w<603;var code,t,e,n,r="";for(code=65;code<76;code++){switch(t=String.fromCharCode(code),code){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(n=0;n<47;n++)j.push({k:t+n,v:e})}for(j.sort((function(a,b){return b.v-a.v})),n=0;nd(n)?1:-1}}(t)),n=l(o),r=0;r0;)t[n]=t[--n];n!==i++&&(t[n]=element)}return t},l=function(t,e,n,r){for(var o=e.length,c=n.length,h=0,l=0;ho;){if(c-o>600){var l=c-o+1,f=r-o+1,d=Math.log(l),s=.5*Math.exp(2*d/3),v=.5*Math.sqrt(d*s*(l-s)/l)*(f-l/2<0?-1:1);e(t,r,Math.max(o,Math.floor(r-f*s/l+v)),Math.min(c,Math.floor(r+(l-f)*s/l+v)),h)}var m=t[r],i=o,y=c;for(n(t,o,r),h(t[c],m)>0&&n(t,o,c);i0;)y--}0===h(t[o],m)?n(t,o,y):n(t,++y,c),y<=r&&(o=y+1),r<=y&&(c=y-1)}}function n(t,i,e){var n=t[i];t[i]=t[e],t[e]=n}function r(a,b){return ab?1:0}return t}()},function(t,e,n){var content=n(990);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(182).default)("685ef19c",content,!0,{sourceMap:!1})},function(t,e,n){var r=n(181)((function(i){return i[1]}));r.push([t.i,".vue-advanced-cropper{direction:ltr;max-height:100%;max-width:100%;position:relative;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-advanced-cropper__stretcher{max-height:100%;max-width:100%;pointer-events:none;position:relative}.vue-advanced-cropper__image{max-width:none!important;position:absolute;transform-origin:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{background:#000;left:50%;opacity:1;position:absolute;top:50%;transform:translate(-50%,-50%)}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{left:50%;opacity:1;position:absolute;top:50%;transform:translate(-50%,-50%)}.vue-advanced-cropper__cropper-wrapper{height:100%;width:100%}.vue-advanced-cropper__image-wrapper{height:100%;overflow:hidden;position:absolute;width:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-rectangle-stencil{box-sizing:border-box}.vue-rectangle-stencil,.vue-rectangle-stencil__preview{height:100%;position:absolute;width:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-preview{box-sizing:border-box;overflow:hidden;position:relative}.vue-preview--fill,.vue-preview__wrapper{height:100%;position:absolute;width:100%}.vue-preview__image{max-width:none!important;pointer-events:none;position:absolute;transform-origin:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-circle-stencil{box-sizing:content-box;cursor:move;height:100%;position:absolute;width:100%}.vue-circle-stencil__preview{border-radius:50%;height:100%;position:absolute;width:100%}.vue-circle-stencil--movable{cursor:move}.vue-simple-handler{background:#fff;display:block;height:10px;width:10px}.vue-line-wrapper{align-items:center;background:0 0;display:flex;justify-content:center;position:absolute}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;left:0;transform:translateY(-50%);width:100%}.vue-line-wrapper--north{cursor:n-resize;top:0}.vue-line-wrapper--south{cursor:s-resize;top:100%}.vue-line-wrapper--east,.vue-line-wrapper--west{height:100%;top:0;transform:translateX(-50%);width:12px}.vue-line-wrapper--east{cursor:e-resize;left:100%}.vue-line-wrapper--west{cursor:w-resize;left:0}.vue-line-wrapper--disabled{cursor:auto}.vue-handler-wrapper{height:30px;position:absolute;transform:translate(-50%,-50%);width:30px}.vue-handler-wrapper__draggable{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-draggable-area{position:relative}.vue-bounding-box{height:100%;position:relative;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-preview-result{box-sizing:border-box;height:100%;overflow:hidden;position:absolute;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{max-width:none!important;pointer-events:none;position:relative;transform-origin:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-simple-line{background:0 0;border:0 solid hsla(0,0%,100%,.3);transition:border .5s}.vue-simple-line--north,.vue-simple-line--south{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{border-color:#fff;opacity:1}",""]),r.locals={},t.exports=r}]]);