openlayermap
Version:
openlayer Map Component for Vue 2.0
1 lines • 1.05 MB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.opengis=e():t.opengis=e()}(this,function(){return function(t){function e(i){if(o[i])return o[i].exports;var n=o[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var o={};return e.m=t,e.c=o,e.i=function(t){return t},e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=96)}([function(t,e,o){var i,n,r;!function(o,a){n=[e],i=a,void 0!==(r="function"==typeof i?i.apply(e,n):i)&&(t.exports=r)}(0,function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SuperMap=window.SuperMap=window.SuperMap||{}})},function(t,e){t.exports=function(t,e,o,i){var n,r=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(n=t,r=t.default);var s="function"==typeof r?r.options:r;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),o&&(s._scopeId=o),i){var p=s.computed||(s.computed={});Object.keys(i).forEach(function(t){var e=i[t];p[t]=function(){return e}})}return{esModule:n,exports:r,options:s}}},function(t,e,o){var i,n,r;!function(o,a){n=[e],i=a,void 0!==(r="function"==typeof i?i.apply(e,n):i)&&(t.exports=r)}(0,function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o={control:{unload:"removeControl"},layer:{unload:"removeLayer"},overlay:{unload:"removeOverlay"},interaction:{unload:"removeInteraction"}},i=function t(e){return e.abstract||e.$el===e.$children[0].$el?t(e.$parent):e},n=function t(n){e(this,t),this.methods={ready:function(){this.ol=this.$rootComponent.ol,this.map=this.$rootComponent.olmap,this.load()},transmitEvent:function(t){this.$emit(t.type.replace(/^on/,""),t)},reload:function(){var t=this;this&&this.ol&&this.$nextTick(function(){t.unload(),t.$nextTick(t.load)})},unload:function(){var t=this.map,e=this.originInstance;t[o[n.type].unload](e)}},this.computed={renderByParent:function(){return this.$parent.preventChildrenRender}},this.mounted=function(){var t=this;this.$rootComponent=i(this.$parent);var e=this.$rootComponent.olmap,o=this.ready;e?o():this.$rootComponent.$on("ready",function(e){t.ol=e.ol,t.map=e.map,t.load()})},this.beforeDestroy=function(){var t=this.unload,e=this.renderByParent,o=this.$parent;e&&o.reload(),t()}};t.default=function(t){return new n({type:t})}})},function(t,e,o){var i,n,r;!function(a,s){n=[e,o(0),o(29)],i=s,void 0!==(r="function"==typeof i?i.apply(e,n):i)&&(t.exports=r)}(0,function(t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Util=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.Util=e.SuperMap.Util=e.SuperMap.Util||{};e.SuperMap.Util.extend=function(t,e){if(t=t||{},e){for(var o in e){var i=e[o];void 0!==i&&(t[o]=i)}!("function"==typeof window.Event&&e instanceof window.Event)&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&(t.toString=e.toString)}return t},e.SuperMap.Util.copy=function(t,e){t=t||{};var o;if(e)for(var i in t)void 0!==(o=e[i])&&(t[i]=o)},e.SuperMap.Util.reset=function(t){t=t||{};for(var e in t)if(t.hasOwnProperty(e)){if("object"===o(t[e])&&t[e]instanceof Array){for(var i in t[e])t[e][i].destroy&&t[e][i].destroy();t[e].length=0}else"object"===o(t[e])&&t[e]instanceof Object&&t[e].destroy&&t[e].destroy();t[e]=null}},e.SuperMap.Util.getElement=function(){for(var t=[],e=0,o=arguments.length;e<o;e++){var i=arguments[e];if("string"==typeof i&&(i=document.getElementById(i)),1===arguments.length)return i;t.push(i)}return t},e.SuperMap.Util.isElement=function(t){return!(!t||1!==t.nodeType)},e.SuperMap.Util.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},e.SuperMap.Util.removeItem=function(t,e){for(var o=t.length-1;o>=0;o--)t[o]===e&&t.splice(o,1);return t},e.SuperMap.Util.indexOf=function(t,e){if(null==t)return-1;if("function"==typeof t.indexOf)return t.indexOf(e);for(var o=0,i=t.length;o<i;o++)if(t[o]===e)return o;return-1},e.SuperMap.Util.modifyDOMElement=function(t,e,o,i,n,r,a,s){e&&(t.id=e),o&&(t.style.left=o.x+"px",t.style.top=o.y+"px"),i&&(t.style.width=i.w+"px",t.style.height=i.h+"px"),n&&(t.style.position=n),r&&(t.style.border=r),a&&(t.style.overflow=a),parseFloat(s)>=0&&parseFloat(s)<1?(t.style.filter="alpha(opacity="+100*s+")",t.style.opacity=s):1===parseFloat(s)&&(t.style.filter="",t.style.opacity="")},e.SuperMap.Util.applyDefaults=function(t,e){t=t||{};var o="function"==typeof window.Event&&e instanceof window.Event;for(var i in e)(void 0===t[i]||!o&&e.hasOwnProperty&&e.hasOwnProperty(i)&&!t.hasOwnProperty(i))&&(t[i]=e[i]);return!o&&e&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&!t.hasOwnProperty("toString")&&(t.toString=e.toString),t},e.SuperMap.Util.getParameterString=function(t){var e=[];for(var i in t){var n=t[i];if(null!=n&&"function"!=typeof n){var r;if("object"===(void 0===n?"undefined":o(n))&&n.constructor===Array){for(var a,s=[],p=0,l=n.length;p<l;p++)a=n[p],s.push(encodeURIComponent(null===a||void 0===a?"":a));r=s.join(",")}else r=encodeURIComponent(n);e.push(encodeURIComponent(i)+"="+r)}}return e.join("&")},e.SuperMap.Util.urlAppend=function(t,e){var o=t;if(e){var i=(t+" ").split(/[?&]/);o+=" "===i.pop()?e:i.length?"&"+e:"?"+e}return o},e.SuperMap.Util.DEFAULT_PRECISION=14,e.SuperMap.Util.toFloat=function(t,o){return null==o&&(o=e.SuperMap.Util.DEFAULT_PRECISION),"number"!=typeof t&&(t=parseFloat(t)),0===o?t:parseFloat(t.toPrecision(o))},e.SuperMap.Util.rad=function(t){return t*Math.PI/180},e.SuperMap.Util.getParameters=function(t){t=null===t||void 0===t?window.location.href:t;var o="";if(e.SuperMap.String.contains(t,"?")){var i=t.indexOf("?")+1,n=e.SuperMap.String.contains(t,"#")?t.indexOf("#"):t.length;o=t.substring(i,n)}for(var r={},a=o.split(/[&]/),s=0,p=a.length;s<p;++s){var l=a[s].split("=");if(l[0]){var u=l[0];try{u=decodeURIComponent(u)}catch(t){u=unescape(u)}var c=(l[1]||"").replace(/\+/g," ");try{c=decodeURIComponent(c)}catch(t){c=unescape(c)}c=c.split(","),1===c.length&&(c=c[0]),r[u]=c}}return r},e.SuperMap.Util.lastSeqID=0,e.SuperMap.Util.createUniqueID=function(t){return null==t&&(t="id_"),e.SuperMap.Util.lastSeqID+=1,t+e.SuperMap.Util.lastSeqID},e.SuperMap.INCHES_PER_UNIT={inches:1,ft:12,mi:63360,m:39.3701,km:39370.1,dd:4374754,yd:36},e.SuperMap.INCHES_PER_UNIT.in=e.SuperMap.INCHES_PER_UNIT.inches,e.SuperMap.INCHES_PER_UNIT.degrees=e.SuperMap.INCHES_PER_UNIT.dd,e.SuperMap.INCHES_PER_UNIT.nmi=1852*e.SuperMap.INCHES_PER_UNIT.m,e.SuperMap.METERS_PER_INCH=.0254000508001016,e.SuperMap.Util.extend(e.SuperMap.INCHES_PER_UNIT,{Inch:e.SuperMap.INCHES_PER_UNIT.inches,Meter:1/e.SuperMap.METERS_PER_INCH,Foot:.3048006096012192/e.SuperMap.METERS_PER_INCH,IFoot:.3048/e.SuperMap.METERS_PER_INCH,ClarkeFoot:.3047972651151/e.SuperMap.METERS_PER_INCH,SearsFoot:.30479947153867626/e.SuperMap.METERS_PER_INCH,GoldCoastFoot:.3047997101815088/e.SuperMap.METERS_PER_INCH,IInch:.0254/e.SuperMap.METERS_PER_INCH,MicroInch:254e-7/e.SuperMap.METERS_PER_INCH,Mil:2.54e-8/e.SuperMap.METERS_PER_INCH,Centimeter:.01/e.SuperMap.METERS_PER_INCH,Kilometer:1e3/e.SuperMap.METERS_PER_INCH,Yard:.9144018288036576/e.SuperMap.METERS_PER_INCH,SearsYard:.914398414616029/e.SuperMap.METERS_PER_INCH,IndianYard:.9143985307444408/e.SuperMap.METERS_PER_INCH,IndianYd37:.91439523/e.SuperMap.METERS_PER_INCH,IndianYd62:.9143988/e.SuperMap.METERS_PER_INCH,IndianYd75:.9143985/e.SuperMap.METERS_PER_INCH,IndianFoot:.30479951/e.SuperMap.METERS_PER_INCH,IndianFt37:.30479841/e.SuperMap.METERS_PER_INCH,IndianFt62:.3047996/e.SuperMap.METERS_PER_INCH,IndianFt75:.3047995/e.SuperMap.METERS_PER_INCH,Mile:1609.3472186944373/e.SuperMap.METERS_PER_INCH,IYard:.9144/e.SuperMap.METERS_PER_INCH,IMile:1609.344/e.SuperMap.METERS_PER_INCH,NautM:1852/e.SuperMap.METERS_PER_INCH,"Lat-66":110943.31648893273/e.SuperMap.METERS_PER_INCH,"Lat-83":110946.25736872235/e.SuperMap.METERS_PER_INCH,Decimeter:.1/e.SuperMap.METERS_PER_INCH,Millimeter:.001/e.SuperMap.METERS_PER_INCH,Dekameter:10/e.SuperMap.METERS_PER_INCH,Decameter:10/e.SuperMap.METERS_PER_INCH,Hectometer:100/e.SuperMap.METERS_PER_INCH,GermanMeter:1.0000135965/e.SuperMap.METERS_PER_INCH,CaGrid:.999738/e.SuperMap.METERS_PER_INCH,ClarkeChain:20.1166194976/e.SuperMap.METERS_PER_INCH,GunterChain:20.11684023368047/e.SuperMap.METERS_PER_INCH,BenoitChain:20.116782494375872/e.SuperMap.METERS_PER_INCH,SearsChain:20.11676512155/e.SuperMap.METERS_PER_INCH,ClarkeLink:.201166194976/e.SuperMap.METERS_PER_INCH,GunterLink:.2011684023368047/e.SuperMap.METERS_PER_INCH,BenoitLink:.20116782494375873/e.SuperMap.METERS_PER_INCH,SearsLink:.2011676512155/e.SuperMap.METERS_PER_INCH,Rod:5.02921005842012/e.SuperMap.METERS_PER_INCH,IntnlChain:20.1168/e.SuperMap.METERS_PER_INCH,IntnlLink:.201168/e.SuperMap.METERS_PER_INCH,Perch:5.02921005842012/e.SuperMap.METERS_PER_INCH,Pole:5.02921005842012/e.SuperMap.METERS_PER_INCH,Furlong:201.1684023368046/e.SuperMap.METERS_PER_INCH,Rood:3.778266898/e.SuperMap.METERS_PER_INCH,CapeFoot:.3047972615/e.SuperMap.METERS_PER_INCH,Brealey:375/e.SuperMap.METERS_PER_INCH,ModAmFt:.304812252984506/e.SuperMap.METERS_PER_INCH,Fathom:1.8288/e.SuperMap.METERS_PER_INCH,"NautM-UK":1853.184/e.SuperMap.METERS_PER_INCH,"50kilometers":5e4/e.SuperMap.METERS_PER_INCH,"150kilometers":15e4/e.SuperMap.METERS_PER_INCH}),e.SuperMap.Util.extend(e.SuperMap.INCHES_PER_UNIT,{mm:e.SuperMap.INCHES_PER_UNIT.Meter/1e3,cm:e.SuperMap.INCHES_PER_UNIT.Meter/100,dm:100*e.SuperMap.INCHES_PER_UNIT.Meter,km:1e3*e.SuperMap.INCHES_PER_UNIT.Meter,kmi:e.SuperMap.INCHES_PER_UNIT.nmi,fath:e.SuperMap.INCHES_PER_UNIT.Fathom,ch:e.SuperMap.INCHES_PER_UNIT.IntnlChain,link:e.SuperMap.INCHES_PER_UNIT.IntnlLink,"us-in":e.SuperMap.INCHES_PER_UNIT.inches,"us-ft":e.SuperMap.INCHES_PER_UNIT.Foot,"us-yd":e.SuperMap.INCHES_PER_UNIT.Yard,"us-ch":e.SuperMap.INCHES_PER_UNIT.GunterChain,"us-mi":e.SuperMap.INCHES_PER_UNIT.Mile,"ind-yd":e.SuperMap.INCHES_PER_UNIT.IndianYd37,"ind-ft":e.SuperMap.INCHES_PER_UNIT.IndianFt37,"ind-ch":20.11669506/e.SuperMap.METERS_PER_INCH}),e.SuperMap.DOTS_PER_INCH=96,e.SuperMap.Util.normalizeScale=function(t){return t>1?1/t:t},e.SuperMap.Util.getResolutionFromScale=function(t,o){var i;if(t){null==o&&(o="degrees");i=1/(e.SuperMap.Util.normalizeScale(t)*e.SuperMap.INCHES_PER_UNIT[o]*e.SuperMap.DOTS_PER_INCH)}return i},e.SuperMap.Util.getScaleFromResolution=function(t,o){return null==o&&(o="degrees"),t*e.SuperMap.INCHES_PER_UNIT[o]*e.SuperMap.DOTS_PER_INCH},e.SuperMap.IS_GECKO=function(){var t=navigator.userAgent.toLowerCase();return-1===t.indexOf("webkit")&&-1!==t.indexOf("gecko")}(),e.SuperMap.Browser=function(){var t,e="",o="",i="pc",n=navigator.userAgent.toLowerCase();return n.indexOf("msie")>-1||n.indexOf("trident")>-1&&n.indexOf("rv")>-1?(e="msie",t=n.match(/msie ([\d.]+)/)||n.match(/rv:([\d.]+)/)):n.indexOf("chrome")>-1?(e="chrome",t=n.match(/chrome\/([\d.]+)/)):n.indexOf("firefox")>-1?(e="firefox",t=n.match(/firefox\/([\d.]+)/)):n.indexOf("opera")>-1?(e="opera",t=n.match(/version\/([\d.]+)/)):n.indexOf("safari")>-1&&(e="safari",t=n.match(/version\/([\d.]+)/)),o=t?t[1]:"",n.indexOf("ipad")>-1||n.indexOf("ipod")>-1||n.indexOf("iphone")>-1?i="apple":n.indexOf("android")>-1&&(t=n.match(/version\/([\d.]+)/),o=t?t[1]:"",i="android"),{name:e,version:o,device:i}}(),e.SuperMap.Util.getBrowser=function(){return e.SuperMap.Browser},e.SuperMap.Util.isSupportCanvas=function(){var t=!0,o=e.SuperMap.Util.getBrowser();return document.createElement("canvas").getContext?("firefox"===o.name&&parseFloat(o.version)<5&&(t=!1),"safari"===o.name&&parseFloat(o.version)<4&&(t=!1),"opera"===o.name&&parseFloat(o.version)<10&&(t=!1),"msie"===o.name&&parseFloat(o.version)<9&&(t=!1)):t=!1,t}(),e.SuperMap.Util.supportCanvas=function(){return e.SuperMap.Util.isSupportCanvas},e.SuperMap.INCHES_PER_UNIT.degree=e.SuperMap.INCHES_PER_UNIT.dd,e.SuperMap.INCHES_PER_UNIT.meter=e.SuperMap.INCHES_PER_UNIT.m,e.SuperMap.INCHES_PER_UNIT.foot=e.SuperMap.INCHES_PER_UNIT.ft,e.SuperMap.INCHES_PER_UNIT.inch=e.SuperMap.INCHES_PER_UNIT.inches,e.SuperMap.INCHES_PER_UNIT.mile=e.SuperMap.INCHES_PER_UNIT.mi,e.SuperMap.INCHES_PER_UNIT.kilometer=e.SuperMap.INCHES_PER_UNIT.km,e.SuperMap.INCHES_PER_UNIT.yard=e.SuperMap.INCHES_PER_UNIT.yd,e.SuperMap.Util.isInTheSameDomain=function(t){if(!t)return!0;var e=t.indexOf("//"),o=document.location.toString(),i=o.indexOf("//");if(-1===e)return!0;var n,r=n=t.substring(0,e),a=o.substring(i+2);i=a.indexOf("/");var s=a.indexOf(":"),p=a.substring(0,i),l=document.location.protocol;if(-1!==s||(p+=":"+("http:"===l.toLowerCase()?80:443)),l.toLowerCase()!==r.toLowerCase())return!1;r=t.substring(e+2);var u=r.indexOf(":");e=r.indexOf("/");var c,h=r.substring(0,e);return-1!==u?c=r.substring(0,u):(c=r.substring(0,e),h+=":"+("http:"===n.toLowerCase()?80:443)),c===document.domain&&h===p},e.SuperMap.Util.calculateDpi=function(t,e,o,i,n){if(t&&e&&o){var r=t.getWidth(),a=t.getHeight(),s=e.w,p=e.h;n=n||6378137,i=i||"degrees";var l;if("degree"===i.toLowerCase()||"degrees"===i.toLowerCase()||"dd"===i.toLowerCase()){var u=r/s,c=a/p;l=254/(u>c?u:c)/o/(2*Math.PI*n/360)/1e4}else{l=254/(r/s)/o/1e4}return l}},e.SuperMap.Util.toJSON=function(t){var i=t;if(null==i)return null;switch(i.constructor){case String:return i='"'+i.replace(/(["\\])/g,"\\$1")+'"',i=i.replace(/\n/g,"\\n"),i=i.replace(/\r/g,"\\r"),i=i.replace("<","<"),i=i.replace(">",">"),i=i.replace(/%/g,"%25"),i=i.replace(/&/g,"%26");case Array:for(var n=[],r=0,a=i.length;r<a;r++)n.push(e.SuperMap.Util.toJSON(i[r]));return"["+n.join(",")+"]";case Number:return isFinite(i)?String(i):null;case Boolean:return String(i);case Date:return"{'__type':\"System.DateTime\",'Year':"+i.getFullYear()+",'Month':"+(i.getMonth()+1)+",'Day':"+i.getDate()+",'Hour':"+i.getHours()+",'Minute':"+i.getMinutes()+",'Second':"+i.getSeconds()+",'Millisecond':"+i.getMilliseconds()+",'TimezoneOffset':"+i.getTimezoneOffset()+"}";default:if(null!=i.toJSON&&"function"==typeof i.toJSON)return i.toJSON();if("object"===(void 0===i?"undefined":o(i))){if(i.length){for(var s=[],p=0,l=i.length;p<l;p++)s.push(e.SuperMap.Util.toJSON(i[p]));return"["+s.join(",")+"]"}var u=[];for(var c in i)"function"!=typeof i[c]&&"CLASS_NAME"!==c&&"parent"!==c&&u.push("'"+c+"':"+e.SuperMap.Util.toJSON(i[c]));return u.length>0?"{"+u.join(",")+"}":"{}"}return i.toString()}},e.SuperMap.Util.getResolutionFromScaleDpi=function(t,o,i,n){return n=n||6378137,i=i||"",t>0&&o>0?(t=e.SuperMap.Util.normalizeScale(t),"degree"===i.toLowerCase()||"degrees"===i.toLowerCase()||"dd"===i.toLowerCase()?254/o/t/(2*Math.PI*n/360)/1e4:254/o/t/1e4):-1},e.SuperMap.Util.getScaleFromResolutionDpi=function(t,e,o,i){return i=i||6378137,o=o||"",t>0&&e>0?"degree"===o.toLowerCase()||"degrees"===o.toLowerCase()||"dd"===o.toLowerCase()?254/e/t/(2*Math.PI*i/360)/1e4:254/e/t/1e4:-1},e.SuperMap.Util.transformResult=function(t){return t.responseText&&"string"==typeof t.responseText&&(t=JSON.parse(t.responseText)),t},e.SuperMap.Util.copyAttributes=function(t,e){if(t=t||{},e)for(var o in e){var i=e[o];void 0!==i&&"CLASS_NAME"!==o&&"function"!=typeof i&&(t[o]=i)}return t},e.SuperMap.Util.copyAttributesWithClip=function(t,e,o){if(t=t||{},e)for(var i in e){var n=!1;if(o&&o.length)for(var r=0,a=o.length;r<a;r++)if(i===o[r]){n=!0;break}if(!0!==n){var s=e[i];void 0!==s&&"CLASS_NAME"!==i&&"function"!=typeof s&&(t[i]=s)}}return t},e.SuperMap.Util.cloneObject=function(t){if(null===t||"object"!==(void 0===t?"undefined":o(t)))return t;if(t instanceof Date){var i=new Date;return i.setTime(t.getTime()),i}if(t instanceof Array){return t.slice(0)}if(t instanceof Object){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=e.SuperMap.Util.cloneObject(t[r]));return n}throw new Error("Unable to copy obj! Its type isn't supported.")},e.SuperMap.Util.lineIntersection=function(t,o,i,n){var r,a,s=null,p=(n.x-i.x)*(t.y-i.y)-(n.y-i.y)*(t.x-i.x),l=(o.x-t.x)*(t.y-i.y)-(o.y-t.y)*(t.x-i.x),u=(n.y-i.y)*(o.x-t.x)-(n.x-i.x)*(o.y-t.y);if(0!==u)r=p/u,a=l/u,s=r>=0&&a<=1&&r<=1&&a>=0?new e.SuperMap.Geometry.Point(t.x+r*(o.x-t.x),t.y+r*(o.y-t.y)):"No Intersection";else if(0===p&&0===l){var c=Math.max(t.y,o.y),h=Math.min(t.y,o.y),f=Math.max(t.x,o.x),y=Math.min(t.x,o.x);s=(i.y>=h&&i.y<=c||n.y>=h&&n.y<=c)&&i.x>=y&&i.x<=f||n.x>=y&&n.x<=f?"Coincident":"Parallel"}else s="Parallel";return s},e.SuperMap.Util.getTextBounds=function(t,e,o){document.body.appendChild(o),o.style.width="auto",o.style.height="auto",t.fontSize&&(o.style.fontSize=t.fontSize),t.fontFamily&&(o.style.fontFamily=t.fontFamily),t.fontWeight&&(o.style.fontWeight=t.fontWeight),o.style.position="relative",o.style.visibility="hidden",o.style.display="inline-block",o.innerHTML=e;var i=o.clientWidth,n=o.clientHeight;return document.body.removeChild(o),{textWidth:i,textHeight:n}}})},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var o=this[e];o[2]?t.push("@media "+o[2]+"{"+o[1]+"}"):t.push(o[1])}return t.join("")},t.i=function(e,o){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},n=0;n<this.length;n++){var r=this[n][0];"number"==typeof r&&(i[r]=!0)}for(n=0;n<e.length;n++){var a=e[n];"number"==typeof a[0]&&i[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),t.push(a))}},t}},function(t,e,o){!function(e,o){t.exports=o()}(0,function(){function t(t,e){var o=Gv;t=t.split("."),o=o||Bv,t[0]in o||!o.execScript||o.execScript("var "+t[0]);for(var i;t.length&&(i=t.shift());)t.length||void 0===e?o=o[i]&&o[i]!==Object.prototype[i]?o[i]:o[i]={}:o[i]=e}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function o(){}function i(t){return t.xp||(t.xp=++_v)}function n(t){this.message="Assertion failed. See https://openlayers.org/en/v4.6.4/doc/errors/#"+t+" for details.",this.code=t,this.name="AssertionError"}function r(t,e,o,i){this.fa=t,this.la=e,this.ea=o,this.ka=i}function a(t,e,o,i,n){return void 0!==n?(n.fa=t,n.la=e,n.ea=o,n.ka=i,n):new r(t,e,o,i)}function s(t,e,o){return t.fa<=e&&e<=t.la&&t.ea<=o&&o<=t.ka}function p(t,e){return t.fa==e.fa&&t.ea==e.ea&&t.la==e.la&&t.ka==e.ka}function l(t,e){if(!t)throw new n(e)}function u(t,e,o){return Math.min(Math.max(t,e),o)}function c(t){return l(0<t,29),Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function h(t,e,o,i,n,r){var a=n-o,s=r-i;if(0!==a||0!==s){var p=((t-o)*a+(e-i)*s)/(a*a+s*s);1<p?(o=n,i=r):0<p&&(o+=a*p,i+=s*p)}return f(t,e,o,i)}function f(t,e,o,i){return t=o-t,e=i-e,t*t+e*e}function y(t){return t*Math.PI/180}function d(t,e){return t%=e,0>t*e?t+e:t}function v(t,e,o){return t+o*(e-t)}function g(t,e,o){return void 0===o&&(o=[0,0]),o[0]=t[0]+2*e,o[1]=t[1]+2*e,o}function m(t,e,o){return void 0===o&&(o=[0,0]),o[0]=t[0]*e+.5|0,o[1]=t[1]*e+.5|0,o}function b(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}function w(t){for(var e=P(),o=0,i=t.length;o<i;++o)j(e,t[o]);return e}function x(t,e,o){return o?(o[0]=t[0]-e,o[1]=t[1]-e,o[2]=t[2]+e,o[3]=t[3]+e,o):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function S(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function E(t,e,o){return e=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,t=o<t[1]?t[1]-o:t[3]<o?o-t[3]:0,e*e+t*t}function A(t,e){return T(t,e[0],e[1])}function M(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function T(t,e,o){return t[0]<=e&&e<=t[2]&&t[1]<=o&&o<=t[3]}function C(t,e){var o=t[1],i=t[2],n=t[3],r=e[0];e=e[1];var a=0;return r<t[0]?a|=16:r>i&&(a|=4),e<o?a|=8:e>n&&(a|=2),0===a&&(a=1),a}function P(){return[1/0,1/0,-1/0,-1/0]}function I(t,e,o,i,n){return n?(n[0]=t,n[1]=e,n[2]=o,n[3]=i,n):[t,e,o,i]}function O(t){return I(1/0,1/0,-1/0,-1/0,t)}function L(t,e){var o=t[0];return t=t[1],I(o,t,o,t,e)}function N(t,e,o,i,n){return n=O(n),U(n,t,e,o,i)}function R(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function k(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function j(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function U(t,e,o,i,n){for(;o<i;o+=n){var r=t,a=e[o],s=e[o+1];r[0]=Math.min(r[0],a),r[1]=Math.min(r[1],s),r[2]=Math.max(r[2],a),r[3]=Math.max(r[3],s)}return t}function D(t,e,o){var i;return(i=e.call(o,G(t)))||(i=e.call(o,B(t)))||(i=e.call(o,W(t)))?i:!!(i=e.call(o,Y(t)))&&i}function F(t){var e=0;return J(t)||(e=Z(t)*H(t)),e}function G(t){return[t[0],t[1]]}function B(t){return[t[2],t[1]]}function _(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function V(t,e,o,i,n){var r=e*i[0]/2;i=e*i[1]/2,e=Math.cos(o);var a=Math.sin(o);o=r*e,r*=a,e*=i;var s=i*a,p=t[0],l=t[1];t=p-o+s,i=p-o-s,a=p+o-s,o=p+o+s,s=l-r-e,p=l-r+e;var u=l+r+e;return r=l+r-e,I(Math.min(t,i,a,o),Math.min(s,p,u,r),Math.max(t,i,a,o),Math.max(s,p,u,r),n)}function H(t){return t[3]-t[1]}function z(t,e,o){return o=o||P(),X(t,e)&&(o[0]=t[0]>e[0]?t[0]:e[0],o[1]=t[1]>e[1]?t[1]:e[1],o[2]=t[2]<e[2]?t[2]:e[2],o[3]=t[3]<e[3]?t[3]:e[3]),o}function Y(t){return[t[0],t[3]]}function W(t){return[t[2],t[3]]}function Z(t){return t[2]-t[0]}function X(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function J(t){return t[2]<t[0]||t[3]<t[1]}function K(t,e){var o=(t[2]-t[0])/2*(e-1);e=(t[3]-t[1])/2*(e-1),t[0]-=o,t[2]+=o,t[1]-=e,t[3]+=e}function q(t,e,o){t=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]],e(t,t,2);var i=[t[0],t[2],t[4],t[6]],n=[t[1],t[3],t[5],t[7]];return e=Math.min.apply(null,i),t=Math.min.apply(null,n),i=Math.max.apply(null,i),n=Math.max.apply(null,n),I(e,t,i,n,o)}function Q(t){for(var e in t)delete t[e]}function $(t){var e,o=[];for(e in t)o.push(t[e]);return o}function tt(t){for(var e in t)return!1;return!e}function et(t){this.radius=t}function ot(t,e){var o=e||{},i=o.radius||6371008.8;o=o.projection||"EPSG:3857",t=t.clone().mb(o,"EPSG:4326");var n=t.S();o=0;var r;switch(n){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":e=t.W(),o=it(e,i);break;case"MultiLineString":case"Polygon":for(e=t.W(),t=0,n=e.length;t<n;++t)o+=it(e[t],i);break;case"MultiPolygon":for(e=t.W(),t=0,n=e.length;t<n;++t){var a=e[t],s=0;for(r=a.length;s<r;++s)o+=it(a[s],i)}break;case"GeometryCollection":for(i=t.vd(),t=0,n=i.length;t<n;++t)o+=ot(i[t],e);break;default:throw Error("Unsupported geometry type: "+n)}return o}function it(t,e){for(var o=0,i=0,n=t.length;i<n-1;++i)o+=nt(t[i],t[i+1],e);return o}function nt(t,e,o){var i=y(t[1]),n=y(e[1]),r=(n-i)/2;return t=y(e[0]-t[0])/2,i=Math.sin(r)*Math.sin(r)+Math.sin(t)*Math.sin(t)*Math.cos(i)*Math.cos(n),2*o*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))}function rt(t,e){var o=e||{},i=o.radius||6371008.8;o=o.projection||"EPSG:3857",t=t.clone().mb(o,"EPSG:4326");var n=t.S();o=0;var r;switch(n){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"LinearRing":break;case"Polygon":for(e=t.W(),o=Math.abs(at(e[0],i)),t=1,n=e.length;t<n;++t)o-=Math.abs(at(e[t],i));break;case"MultiPolygon":for(e=t.W(),t=0,n=e.length;t<n;++t){var a=e[t];o+=Math.abs(at(a[0],i));var s=1;for(r=a.length;s<r;++s)o-=Math.abs(at(a[s],i))}break;case"GeometryCollection":for(i=t.vd(),t=0,n=i.length;t<n;++t)o+=rt(i[t],e);break;default:throw Error("Unsupported geometry type: "+n)}return o}function at(t,e){for(var o=0,i=t.length,n=t[i-1][0],r=t[i-1][1],a=0;a<i;a++){var s=t[a][0],p=t[a][1];o+=y(s-n)*(2+Math.sin(y(r))+Math.sin(y(p))),n=s,r=p}return o*e*e/2}function st(t){this.wb=t.code,this.a=t.units,this.i=void 0!==t.extent?t.extent:null,this.oe=void 0!==t.worldExtent?t.worldExtent:null,this.b=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.c=void 0!==t.global&&t.global,this.g=!(!this.c||!this.i),this.j=t.getPointResolution,this.f=null,this.l=t.metersPerUnit;var e=t.code,o=Yv||window.proj4;"function"==typeof o&&void 0!==(e=o.defs(e))&&(void 0!==e.axis&&void 0===t.axisOrientation&&(this.b=e.axis),void 0===t.metersPerUnit&&(this.l=e.to_meter),void 0===t.units&&(this.a=e.units))}function pt(t){st.call(this,{code:t,units:"m",extent:Zv,global:!0,worldExtent:Xv,getPointResolution:function(t,e){return t/Vv(e[1]/6378137)}})}function lt(t,e,o){var i=t.length;o=1<o?o:2,void 0===e&&(e=2<o?t.slice():Array(i));for(var n=0;n<i;n+=o){e[n]=Wv*t[n]/180;var r=6378137*Math.log(Math.tan(Math.PI*(t[n+1]+90)/360));r>Wv?r=Wv:r<-Wv&&(r=-Wv),e[n+1]=r}return e}function ut(t,e,o){var i=t.length;o=1<o?o:2,void 0===e&&(e=2<o?t.slice():Array(i));for(var n=0;n<i;n+=o)e[n]=180*t[n]/Wv,e[n+1]=360*Math.atan(Math.exp(t[n+1]/6378137))/Math.PI-90;return e}function ct(t,e){st.call(this,{code:t,units:"degrees",extent:Kv,axisOrientation:e,global:!0,metersPerUnit:qv,worldExtent:Kv})}function ht(t,e,o){t=t.wb,e=e.wb,t in tg||(tg[t]={}),tg[t][e]=o}function ft(t,e){var o;return t in tg&&e in tg[t]&&(o=tg[t][e]),o}function yt(t,e,o,i){t=xt(t);var n=t.j;return n?e=n(e,o):"degrees"==t.a&&!i||"degrees"==i||(n=At(t,xt("EPSG:4326")),e=[o[0]-e/2,o[1],o[0]+e/2,o[1],o[0],o[1]-e/2,o[0],o[1]+e/2],e=n(e,e,2),e=(eg.b(e.slice(0,2),e.slice(2,4))+eg.b(e.slice(4,6),e.slice(6,8)))/2,void 0!==(t=i?zv[i]:t.Bc())&&(e/=t)),e}function dt(t){t.forEach(gt),t.forEach(function(e){t.forEach(function(t){e!==t&&ht(e,t,Tt)})})}function vt(){Qv.forEach(function(t){Jv.forEach(function(e){ht(t,e,lt),ht(e,t,ut)})})}function gt(t){$v[t.wb]=t,ht(t,t,Tt)}function mt(t){return t?"string"==typeof t?xt(t):t:xt("EPSG:3857")}function bt(t,e,o,i){t=xt(t),e=xt(e),ht(t,e,wt(o)),ht(e,t,wt(i))}function wt(t){return function(e,o,i){var n=e.length;i=void 0!==i?i:2,o=void 0!==o?o:Array(n);var r;for(r=0;r<n;r+=i){var a=t([e[r],e[r+1]]);for(o[r]=a[0],o[r+1]=a[1],a=i-1;2<=a;--a)o[r+a]=e[r+a]}return o}}function xt(t){var e=null;if(t instanceof st)e=t;else if("string"==typeof t&&!(e=$v[t]||null)){var o=Yv||window.proj4;"function"==typeof o&&void 0!==o.defs(t)&&(e=new st({code:t}),gt(e))}return e}function St(t,e){if(t===e)return!0;var o=t.a===e.a;return t.wb===e.wb?o:At(t,e)===Tt&&o}function Et(t,e){return t=xt(t),e=xt(e),At(t,e)}function At(t,e){var o=t.wb,i=e.wb,n=ft(o,i);if(!n){var r=Yv||window.proj4;if("function"==typeof r){var a=r.defs(o),s=r.defs(i);void 0!==a&&void 0!==s&&(a===s?dt([e,t]):(n=r(i,o),bt(e,t,n.forward,n.inverse)),n=ft(o,i))}}return n||(n=Mt),n}function Mt(t,e){if(void 0!==e&&t!==e){for(var o=0,i=t.length;o<i;++o)e[o]=t[o];t=e}return t}function Tt(t,e){if(void 0!==e){for(var o=0,i=t.length;o<i;++o)e[o]=t[o];t=e}else t=t.slice();return t}function Ct(t,e,o){return Et(e,o)(t,void 0,t.length)}function Pt(t,e,o){return e=Et(e,o),q(t,e)}function It(){dt(Jv),dt(Qv),vt()}function Ot(t,e){return t>e?1:t<e?-1:0}function Lt(t,e){return 0<=t.indexOf(e)}function Nt(t,e,o){var i=t.length;if(t[0]<=e)return 0;if(!(e<=t[i-1]))if(0<o){for(o=1;o<i;++o)if(t[o]<e)return o-1}else if(0>o){for(o=1;o<i;++o)if(t[o]<=e)return o}else for(o=1;o<i;++o){if(t[o]==e)return o;if(t[o]<e)return t[o-1]-e<e-t[o]?o-1:o}return i-1}function Rt(t,e){var o=Array.isArray(e)?e:[e],i=o.length;for(e=0;e<i;e++)t[t.length]=o[e]}function kt(t,e){for(var o,i=t.length>>>0,n=0;n<i;n++)if(o=t[n],e(o,n,t))return o;return null}function jt(t,e){var o=t.length;if(o!==e.length)return!1;for(var i=0;i<o;i++)if(t[i]!==e[i])return!1;return!0}function Ut(t){var e,o=na,i=t.length,n=Array(t.length);for(e=0;e<i;e++)n[e]={index:e,value:t[e]};for(n.sort(function(t,e){return o(t.value,e.value)||t.index-e.index}),e=0;e<t.length;e++)t[e]=n[e].value}function Dt(t,e){var o;return t.every(function(i,n){return o=n,!e(i,n,t)})?-1:o}function Ft(t,e){var o=e||Ot;return t.every(function(e,i){return 0===i||!(0<(e=o(t[i-1],e))||0===e)})}function Gt(t,e,o,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=o,i):[t,e,o]}function Bt(t){var e,o=t[0],i=Array(o),n=1<<o-1;for(e=0;e<o;++e){var r=48;t[1]&n&&(r+=1),t[2]&n&&(r+=2),i[e]=String.fromCharCode(r),n>>=1}return i.join("")}function _t(t){if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.b=t.resolutions,l(Ft(this.b,function(t,e){return e-t}),17),!t.origins)for(var e=0,o=this.b.length-1;e<o;++e)if(i){if(this.b[e]/this.b[e+1]!==i){i=void 0;break}}else var i=this.b[e]/this.b[e+1];this.l=i,this.maxZoom=this.b.length-1,this.g=void 0!==t.origin?t.origin:null,this.c=null,void 0!==t.origins&&(this.c=t.origins,l(this.c.length==this.b.length,20)),i=t.extent,void 0===i||this.g||this.c||(this.g=Y(i)),l(!this.g&&this.c||this.g&&!this.c,18),this.i=null,void 0!==t.tileSizes&&(this.i=t.tileSizes,l(this.i.length==this.b.length,19)),this.j=void 0!==t.tileSize?t.tileSize:this.i?null:256,l(!this.j&&this.i||this.j&&!this.i,22),this.o=void 0!==i?i:null,this.a=null,this.f=[0,0],void 0!==t.sizes?this.a=t.sizes.map(function(t){return new r(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1))},this):i&&Xt(this,i)}function Vt(t,e,o,i,n){var r=null,s=e[0]-1;if(2===t.l)var p=e[1],l=e[2];else r=t.Ma(e,n);for(;s>=t.minZoom;){if(2===t.l?(p=Math.floor(p/2),l=Math.floor(l/2),e=a(p,p,l,l,i)):e=Yt(t,r,s,i),o.call(null,s,e))return!0;--s}return!1}function Ht(t,e,o,i){return e[0]<t.maxZoom?2===t.l?(t=2*e[1],e=2*e[2],a(t,t+1,e,e+1,o)):(i=t.Ma(e,i),Yt(t,i,e[0]+1,o)):null}function zt(t,e,o){var i=t.Ic(e),n=t.Ta(e);return t=b(t.Za(e),t.f),I(i[0]+o.fa*t[0]*n,i[1]+o.ea*t[1]*n,i[0]+(o.la+1)*t[0]*n,i[1]+(o.ka+1)*t[1]*n,void 0)}function Yt(t,e,o,i){Zt(t,e[0],e[1],o,!1,og);var n=og[1],r=og[2];return Zt(t,e[2],e[3],o,!0,og),a(n,og[1],r,og[2],i)}function Wt(t,e){var o=t.Ic(e[0]),i=t.Ta(e[0]);return t=b(t.Za(e[0]),t.f),[o[0]+(e[1]+.5)*t[0]*i,o[1]+(e[2]+.5)*t[1]*i]}function Zt(t,e,o,i,n,r){var a=t.Ic(i),s=t.Ta(i);return t=b(t.Za(i),t.f),e=Math.floor((e-a[0])/s+(n?.5:0))/t[0],o=Math.floor((o-a[1])/s+(n?0:.5))/t[1],n?(e=Math.ceil(e)-1,o=Math.ceil(o)-1):(e=Math.floor(e),o=Math.floor(o)),Gt(i,e,o,r)}function Xt(t,e){for(var o=t.b.length,i=Array(o),n=t.minZoom;n<o;++n)i[n]=Yt(t,e,n);t.a=i}function Jt(t){var e=t.f;return e||(e=Qt(t),t.f=e),e}function Kt(t){var e={};return Hv(e,void 0!==t?t:{}),void 0===e.extent&&(e.extent=xt("EPSG:3857").G()),e.resolutions=qt(e.extent,e.maxZoom,e.tileSize),delete e.maxZoom,new _t(e)}function qt(t,e,o){e=void 0!==e?e:42;var i=H(t);for(t=Z(t),o=b(void 0!==o?o:256),o=Math.max(t/o[0],i/o[1]),e+=1,i=Array(e),t=0;t<e;++t)i[t]=o/Math.pow(2,t);return i}function Qt(t,e,o){return t=$t(t),e=qt(t,e,o),new _t({extent:t,origin:Y(t),resolutions:e,tileSize:o})}function $t(t){t=xt(t);var e=t.G();return e||(t=180*zv.degrees/t.Bc(),e=I(-t,-t,t,t)),e}function te(t){this.og=t.html}function ee(t){function e(e){var o=t.listener,i=t.Ch||t.target;return t.Eh&&le(t),o.call(i,e)}return t.Dh=e}function oe(t,e,o,i){for(var n,r=0,a=t.length;r<a;++r)if(n=t[r],n.listener===e&&n.Ch===o)return i&&(n.deleteIndex=r),n}function ie(t,e){return(t=t.ab)?t[e]:void 0}function ne(t){var e=t.ab;return e||(e=t.ab={}),e}function re(t,e){var o=ie(t,e);if(o){for(var i=0,n=o.length;i<n;++i)t.removeEventListener(e,o[i].Dh),Q(o[i]);o.length=0,(o=t.ab)&&(delete o[e],0===Object.keys(o).length&&delete t.ab)}}function ae(t,e,o,i,n){var r=ne(t),a=r[e];return a||(a=r[e]=[]),(r=oe(a,o,i,!1))?n||(r.Eh=!1):(r={Ch:i,Eh:!!n,listener:o,target:t,type:e},t.addEventListener(e,ee(r)),a.push(r)),r}function se(t,e,o,i){return ae(t,e,o,i,!0)}function pe(t,e,o,i){(t=ie(t,e))&&(o=oe(t,o,i,!0))&&le(o)}function le(t){if(t&&t.target){t.target.removeEventListener(t.type,t.Dh);var e=ie(t.target,t.type);if(e){var o="deleteIndex"in t?t.deleteIndex:e.indexOf(t);-1!==o&&e.splice(o,1),0===e.length&&re(t.target,t.type)}Q(t)}}function ue(t){var e,o=ne(t);for(e in o)re(t,e)}function ce(){}function he(t){t.Ub||(t.Ub=!0,t.ia())}function fe(t){this.type=t,this.target=null}function ye(t){t.stopPropagation()}function de(){this.Wa={},this.qa={},this.oa={}}function ve(t,e){return e?e in t.oa:0<Object.keys(t.oa).length}function ge(){de.call(this),this.g=0}function me(t){ge.call(this),i(this),this.N={},void 0!==t&&this.H(t)}function be(t){return ig.hasOwnProperty(t)?ig[t]:ig[t]="change:"+t}function we(t,e,o){var i=be(e);t.b(new xe(i,e,o)),t.b(new xe("propertychange",e,o))}function xe(t,e,o){fe.call(this,t),this.key=e,this.oldValue=o}function Se(t,e){if(me.call(this),this.c=!!(e||{}).unique,this.a=t||[],this.c)for(t=0,e=this.a.length;t<e;++t)Ae(this,this.a[t],t);Ee(this)}function Ee(t){t.set(ng,t.a.length)}function Ae(t,e,o){for(var i=0,r=t.a.length;i<r;++i)if(t.a[i]===e&&i!==o)throw new n(58)}function Me(t,e){fe.call(this,t),this.element=e}function Te(t,e,o){fe.call(this,t),this.map=e,this.frameState=void 0!==o?o:null}function Ce(t,e,o,i,n){Te.call(this,t,e,n),this.originalEvent=o,this.pixel=e.ud(o),this.coordinate=e.Ra(this.pixel),this.dragging=void 0!==i&&i}function Pe(t,e){var o,i,n=sg.length;for(i=0;i<n;++i)try{if(o=t.getContext(sg[i],e))return o}catch(t){}return null}function Ie(t,e,o,i,n){Ce.call(this,t,e,o.b,i,n),this.b=o}function Oe(t,e){this.b=t,this.i=e}function Le(t){Oe.call(this,t,{mousedown:this.Jm,mousemove:this.Km,mouseup:this.Nm,mouseover:this.Mm,mouseout:this.Lm}),this.a=t.g,this.g=[]}function Ne(t,e){t=t.g;var o=e.clientX;e=e.clientY;for(var i,n=0,r=t.length;n<r&&(i=t[n]);n++){var a=Math.abs(e-i[1]);if(25>=Math.abs(o-i[0])&&25>=a)return!0}return!1}function Re(t){var e=Xe(t,t),o=e.preventDefault;return e.preventDefault=function(){t.preventDefault(),o()},e.pointerId=1,e.isPrimary=!0,e.pointerType="mouse",e}function ke(t){Oe.call(this,t,{MSPointerDown:this.Sm,MSPointerMove:this.Tm,MSPointerUp:this.Wm,MSPointerOut:this.Um,MSPointerOver:this.Vm,MSPointerCancel:this.Rm,MSGotPointerCapture:this.Pm,MSLostPointerCapture:this.Qm}),this.a=t.g,this.g=["","unavailable","touch","pen","mouse"]}function je(t,e){var o=e;return"number"==typeof e.pointerType&&(o=Xe(e,e),o.pointerType=t.g[e.pointerType]),o}function Ue(t){Oe.call(this,t,{pointerdown:this.Kp,pointermove:this.Lp,pointerup:this.Op,pointerout:this.Mp,pointerover:this.Np,pointercancel:this.Jp,gotpointercapture:this.Wl,lostpointercapture:this.Hm})}function De(t,e,o){fe.call(this,t),this.b=e,t=o||{},this.buttons=Fe(t),this.pressure=Ge(t,this.buttons),this.bubbles="bubbles"in t&&t.bubbles,this.cancelable="cancelable"in t&&t.cancelable,this.view="view"in t?t.view:null,this.detail="detail"in t?t.detail:null,this.screenX="screenX"in t?t.screenX:0,this.screenY="screenY"in t?t.screenY:0,this.clientX="clientX"in t?t.clientX:0,this.clientY="clientY"in t?t.clientY:0,this.ctrlKey="ctrlKey"in t&&t.ctrlKey,this.altKey="altKey"in t&&t.altKey,this.shiftKey="shiftKey"in t&&t.shiftKey,this.metaKey="metaKey"in t&&t.metaKey,this.button="button"in t?t.button:0,this.relatedTarget="relatedTarget"in t?t.relatedTarget:null,this.pointerId="pointerId"in t?t.pointerId:0,this.width="width"in t?t.width:0,this.height="height"in t?t.height:0,this.tiltX="tiltX"in t?t.tiltX:0,this.tiltY="tiltY"in t?t.tiltY:0,this.pointerType="pointerType"in t?t.pointerType:"",this.isPrimary="isPrimary"in t&&t.isPrimary,e.preventDefault&&(this.preventDefault=function(){e.preventDefault()})}function Fe(t){if(t.buttons||Mg)t=t.buttons;else switch(t.which){case 1:t=1;break;case 2:t=4;break;case 3:t=2;break;default:t=0}return t}function Ge(t,e){return t.pressure?t.pressure:e?.5:0}function Be(t,e){Oe.call(this,t,{touchstart:this.Qq,touchmove:this.Pq,touchend:this.Oq,touchcancel:this.Nq}),this.a=t.g,this.j=e,this.g=void 0,this.f=0,this.c=void 0}function _e(t,e,o){return e=Xe(e,o),e.pointerId=o.identifier+2,e.bubbles=!0,e.cancelable=!0,e.detail=t.f,e.button=0,e.buttons=1,e.width=o.webkitRadiusX||o.radiusX||0,e.height=o.webkitRadiusY||o.radiusY||0,e.pressure=o.webkitForce||o.force||.5,e.isPrimary=t.g===o.identifier,e.pointerType="touch",e.clientX=o.clientX,e.clientY=o.clientY,e.screenX=o.screenX,e.screenY=o.screenY,e}function Ve(t,e,o){function i(){e.preventDefault()}var n,r=Array.prototype.slice.call(e.changedTouches),a=r.length;for(n=0;n<a;++n){var s=_e(t,e,r[n]);s.preventDefault=i,o.call(t,e,s)}}function He(t,e){var o=t.j.g;if(e=e.changedTouches[0],t.g===e.identifier){var i=[e.clientX,e.clientY];o.push(i),setTimeout(function(){var t=o.indexOf(i);-1<t&&o.splice(t,1)},2500)}}function ze(t){de.call(this),this.f=t,this.g={},this.i={},this.a=[],bg?Ye(this,new Ue(this)):wg?Ye(this,new ke(this)):(t=new Le(this),Ye(this,t),mg&&Ye(this,new Be(this,t))),t=this.a.length;for(var e,o=0;o<t;o++)e=this.a[o],We(this,Object.keys(e.i))}function Ye(t,e){var o=Object.keys(e.i);o&&(o.forEach(function(t){var o=e.i[t];o&&(this.i[t]=o.bind(e))},t),t.a.push(e))}function We(t,e){e.forEach(function(t){ae(this.f,t,this.c,this)},t)}function Ze(t,e){e.forEach(function(t){pe(this.f,t,this.c,this)},t)}function Xe(t,e){for(var o,i={},n=0,r=Tg.length;n<r;n++)o=Tg[n][0],i[o]=t[o]||e[o]||Tg[n][1];return i}function Je(t,e,o){e.bubbles=!1,Qe(t,"pointerleave",e,o)}function Ke(t,e,o){t.out(e,o);var i=e.target,n=e.relatedTarget;i&&n&&i.contains(n)||Je(t,e,o)}function qe(t,e,o){e.bubbles=!0,Qe(t,"pointerover",e,o);var i=e.target,n=e.relatedTarget;i&&n&&i.contains(n)||(e.bubbles=!1,Qe(t,"pointerenter",e,o))}function Qe(t,e,o,i){t.b(new De(e,i,o))}function $e(t,e){t.b(new De(e.type,e,e))}function to(t,e){de.call(this),this.g=t,this.j=0,this.l=!1,this.i=[],this.D=e?e*fg:fg,this.c=null,t=this.g.a,this.N=0,this.o={},this.f=new ze(t),this.a=null,this.s=ae(this.f,"pointerdown",this.pm,this),this.v=ae(this.f,"pointermove",this.mq,this)}function eo(t,e){var o=new Ie("click",t.g,e);t.b(o),0!==t.j?(clearTimeout(t.j),t.j=0,o=new Ie("dblclick",t.g,e),t.b(o)):t.j=setTimeout(function(){this.j=0;var t=new Ie("singleclick",this.g,e);this.b(t)}.bind(t),250)}function oo(t,e){"pointerup"==e.type||"pointercancel"==e.type?delete t.o[e.pointerId]:"pointerdown"==e.type&&(t.o[e.pointerId]=!0),t.N=Object.keys(t.o).length}function io(t,e){return Math.abs(e.clientX-t.c.clientX)>t.D||Math.abs(e.clientY-t.c.clientY)>t.D}function no(t,e){this.s=t,this.c=e,this.b=[],this.g=[],this.a={}}function ro(t){var e=t.b,o=t.g,i=e[0];return 1==e.length?(e.length=0,o.length=0):(e[0]=e.pop(),o[0]=o.pop(),ao(t,0)),e=t.c(i),delete t.a[e],i}function ao(t,e){for(var o=t.b,i=t.g,n=o.length,r=o[e],a=i[e],s=e;e<n>>1;){var p=2*e+1,l=2*e+2;p=l<n&&i[l]<i[p]?l:p,o[e]=o[p],i[e]=i[p],e=p}o[e]=r,i[e]=a,so(t,s,e)}function so(t,e,o){var i=t.b;t=t.g;for(var n=i[o],r=t[o];o>e;){var a=o-1>>1;if(!(t[a]>r))break;i[o]=i[a],t[o]=t[a],o=a}i[o]=n,t[o]=r}function po(t){var e,o=t.s,i=t.b,n=t.g,r=0,a=i.length;for(e=0;e<a;++e){var s=i[e],p=o(s);1/0==p?delete t.a[t.c(s)]:(n[r]=p,i[r++]=s)}for(i.length=r,n.length=r,o=(t.b.length>>1)-1;0<=o;o--)ao(t,o)}function lo(t,e){no.call(this,function(e){return t.apply(null,e)},function(t){return t[0].lb()}),this.v=e,this.j=0,this.f={}}function uo(t,e,o){for(var i,n,r,a=0,s=!1;t.j<e&&a<o&&0<t.b.length;)n=ro(t)[0],r=n.lb(),i=n.getState(),5===i?s=!0:0!==i||r in t.f||(t.f[r]=!0,++t.j,++a,n.load());0===a&&s&&t.v()}function co(t){return function(e){if(e)return[u(e[0],t[0],t[2]),u(e[1],t[1],t[3])]}}function ho(t){return t}function fo(t){return function(e,o,i){if(void 0!==e)return e=Nt(t,e,i),e=u(e+o,0,t.length-1),o=Math.floor(e),e!=o&&o<t.length-1?t[o]/Math.pow(t[o]/t[o+1],e-o):t[o]}}function yo(t,e,o){return function(i,n,r){if(void 0!==i)return i=Math.max(Math.floor(Math.log(e/i)/Math.log(t)+(-r/2+.5))+n,0),void 0!==o&&(i=Math.min(i,o)),e/Math.pow(t,i)}}function vo(t){if(void 0!==t)return 0}function go(t,e){if(void 0!==t)return t+e}function mo(t){var e=2*Math.PI/t;return function(t,o){if(void 0!==t)return t=Math.floor((t+o)/e+.5)*e}}function bo(){var t=y(5);return function(e,o){if(void 0!==e)return Math.abs(e+o)<=t?0:e+o}}function wo(t,e){return t=void 0!==e?t.toFixed(e):""+t,e=t.indexOf("."),e=-1===e?t.length:e,2<e?t:Array(3-e).join("0")+t}function xo(t){t=(""+t).split(".");for(var e=["1","3"],o=0;o<Math.max(t.length,e.length);o++){var i=parseInt(t[o]||"0",10),n=parseInt(e[o]||"0",10);if(i>n)return 1;if(n>i)return-1}return 0}function So(t,e){return t[0]+=e[0],t[1]+=e[1],t}function Eo(t,e){var o=e.Bd(),i=e.xa();e=i[0],i=i[1];var n=t[0]-e;t=t[1]-i,0===n&&0===t&&(n=1);var r=Math.sqrt(n*n+t*t);return[e+o*n/r,i+o*t/r]}function Ao(t,e){var o=t[0];t=t[1];var i=e[0],n=e[1];e=i[0],i=i[1];var r=n[0];n=n[1];var a=r-e,s=n-i;return o=0===a&&0===s?0:(a*(o-e)+s*(t-i))/(a*a+s*s||0),0>=o?(t=e,o=i):1<=o?(t=r,o=n):(t=e+o*a,o=i+o*s),[t,o]}function Mo(t,e,o){e=d(e+180,360)-180;var i=Math.abs(3600*e);o=o||0;var n=Math.pow(10,o),r=Math.floor(i/3600),a=Math.floor((i-3600*r)/60);return i=Math.ceil((i-3600*r-60*a)*n)/n,60<=i&&(i=0,a+=1),60<=a&&(a=0,r+=1),r+"° "+wo(a)+"′ "+wo(i,o)+"″"+(0==e?"":" "+t.charAt(0>e?1:0))}function To(t,e,o){return t?e.replace("{x}",t[0].toFixed(o)).replace("{y}",t[1].toFixed(o)):""}function Co(t,e){for(var o=!0,i=t.length-1;0<=i;--i)if(t[i]!=e[i]){o=!1;break}return o}function Po(t,e){var o=Math.cos(e);e=Math.sin(e);var i=t[1]*o+t[0]*e;return t[0]=t[0]*o-t[1]*e,t[1]=i,t}function Io(t,e){t[0]*=e,t[1]*=e}function Oo(t,e){var o=t[0]-e[0];return t=t[1]-e[1],o*o+t*t}function Lo(t,e){return Math.sqrt(Oo(t,e))}function No(t,e){return Oo(t,Ao(t,e))}function Ro(t,e){return To(t,"{x}, {y}",e)}function ko(t){return Math.pow(t,3)}function jo(t){return 1-ko(1-t)}function Uo(t){return 3*t*t-2*t*t*t}function Do(t){return t}function Fo(){return!0}function Go(){return!1}function Bo(t,e,o,i,n,r){for(var a=r||[],s=0;e<o;e+=i){var p=t[e],l=t[e+1];a[s++]=n[0]*p+n[2]*l+n[4],a[s++]=n[1]*p+n[3]*l+n[5]}return r&&a.length!=s&&(a.length=s),a}function _o(t,e,o,i,n,r,a){for(var s,p=a||[],l=0;e<o;e+=i)for(p[l++]=t[e]+n,p[l++]=t[e+1]+r,s=e+2;s<e+i;++s)p[l++]=t[s];return a&&p.length!=l&&(p.length=l),p}function Vo(){return[1,0,0,1,0,0]}function Ho(t){return Yo(t,1,0,0,1,0,0)}function zo(t,e){var o=t[0],i=t[1],n=t[2],r=t[3],a=t[4],s=t[5],p=e[0],l=e[1],u=e[2],c=e[3],h=e[4];return e=e[5],t[0]=o*p+n*l,t[1]=i*p+r*l,t[2]=o*u+n*c,t[3]=i*u+r*c,t[4]=o*h+n*e+a,t[5]=i*h+r*e+s,t}function Yo(t,e,o,i,n,r,a){return t[0]=e,t[1]=o,t[2]=i,t[3]=n,t[4]=r,t[5]=a,t}function Wo(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Zo(t,e){var o=e[0],i=e[1];return e[0]=t[0]*o+t[2]*i+t[4],e[1]=t[1]*o+t[3]*i+t[5],e}function Xo(t,e){var o=Math.cos(e);e=Math.sin(e),zo(t,Yo(Cg,o,e,-e,o,0,0))}function Jo(t,e,o){return zo(t,Yo(Cg,e,0,0,o,0,0))}function Ko(t,e,o){zo(t,Yo(Cg,1,0,0,1,e,o))}function qo(t,e,o,i,n,r,a,s){var p=Math.sin(r);return r=Math.cos(r),t[0]=i*r,t[1]=n*p,t[2]=-i*p,t[3]=n*r,t[4]=a*i*r-s*i*p+e,t[5]=a*n*p+s*n*r+o,t}function Qo(t){var e=t[0]*t[3]-t[1]*t[2];l(0!==e,32);var o=t[0],i=t[1],n=t[2],r=t[3],a=t[4],s=t[5];return t[0]=r/e,t[1]=-i/e,t[2]=-n/e,t[3]=o/e,t[4]=(n*s-r*a)/e,t[5]=-(o*s-i*a)/e,t}function $o(){me.call(this),this.s=P(),this.v=-1,this.i={},this.l=this.f=0,this.O=Vo()}function ti(){$o.call(this),this.ja="XY",this.a=2,this.A=null}function ei(t){var e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function oi(t,e,o){t.a=ei(e),t.ja=e,t.A=o}function ii(t,e,o,i){if(e)o=ei(e);else{for(e=0;e<i;++e){if(0===o.length)return t.ja="XY",void(t.a=2);o=o[0]}o=o.length;var n;2==o?n="XY":3==o?n="XYZ":4==o&&(n="XYZM"),e=n}t.ja=e,t.a=o}function ni(t,e,o,i){for(var n=0,r=t[o-i],a=t[o-i+1];e<o;e+=i){var s=t[e],p=t[e+1];n+=a*s-r*p,r=s,a=p}return n/2}function ri(t,e,o,i){var n,r=0,a=0;for(n=o.length;a<n;++a){var s=o[a];r+=ni(t,e,s,i),e=s}return r}function ai(t,e,o,i,n,r,a){var s=t[e],p=t[e+1],l=t[o]-s,u=t[o+1]-p;if(0!==l||0!==u)if(1<(r=((n-s)*l+(r-p)*u)/(l*l+u*u)))e=o;else if(0<r){for(n=0;n<i;++n)a[n]=v(t[e+n],t[o+n],r);return void(a.length=i)}for(n=0;n<i;++n)a[n]=t[e+n];a.length=i}function si(t,e,o,i,n){var r=t[e],a=t[e+1];for(e+=i;e<o;e+=i){var s=t[e],p=t[e+1];r=f(r,a,s,p),r>n&&(n=r),r=s,a=p}return n}function pi(t,e,o,i,n){var r,a=0;for(r=o.length;a<r;++a){var s=o[a];n=si(t,e,s,i,n),e=s}return n}function li(t,e,o,i,n,r,a,s,p,l,u){if(e==o)return l;if(0===n){var c=f(a,s,t[e],t[e+1]);if(c<l){for(u=0;u<i;++u)p[u]=t[e+u];return p.length=i,c}return l}for(var h=u||[NaN,NaN],y=e+i;y<o;)if(ai(t,y-i,y,i,a,s,h),(c=f(a,s,h[0],h[1]))<l){for(l=c,u=0;u<i;++u)p[u]=h[u];p.length=i,y+=i}else y+=i*Math.max((Math.sqrt(c)-Math.sqrt(l))/n|0,1);if(r&&(ai(t,o-i,e,i,a,s,h),(c=f(a,s,h[0],h[1]))<l)){for(l=c,u=0;u<i;++u)p[u]=h[u];p.length=i}return l}function ui(t,e,o,i,n,r,a,s,p,l,u){u=u||[NaN,NaN];var c,h=0;for(c=o.length;h<c;++h){var f=o[h];l=li(t,e,f,i,n,r,a,s,p,l,u),e=f}return l}function ci(t,e){var o,i=0,n=0;for(o=e.length;n<o;++n)t[i++]=e[n];return i}function hi(t,e,o,i){var n,r=0;for(n=o.length;r<n;++r){var a,s=o[r];for(a=0;a<i;++a)t[e++]=s[a]}return e}function fi(t,e,o,i,n){n=n||[];var r,a=0,s=0;for(r=o.length;s<r;++s)e=hi(t,e,o[s],i),n[a++]=e;return n.length=a,n}function yi(t,e,o,i,n){n=void 0!==n?n:[];for(var r=0;e<o;e+=i)n[r++]=t.slice(e,e+i);return n.length=r,n}function di(t,e,o,i,n){n=void 0!==n?n:[];var r,a=0,s=0;for(r=o.length;s<r;++s){var p=o[s];n[a++]=yi(t,e,p,i,n[a]),e=p}return n.length=a,n}function vi(t,e,o,i,n){n=void 0!==n?n:[];var r,a=0,s=0;for(r=o.length;s<r;++s){var p=o[s];n[a++]=di(t,e,p,i,n[a]),e=p[p.length-1]}return n.length=a,n}function gi(t,e,o,i,n,r,a){var s=(o-e)/i;if(3>s){for(;e<o;e+=i)r[a++]=t[e],r[a++]=t[e+1];return a}var p=Array(s);p[0]=1,p[s-1]=1,o=[e,o-i];for(var l,u=0;0<o.length;){var c=o.pop(),f=o.pop(),y=0,d=t[f],v=t[f+1],g=t[c],m=t[c+1];for(l=f+i;l<c;l+=i){var b=h(t[l],t[l+1],d,v,g,m);b>y&&(u=l,y=b)}y>n&&(p[(u-e)/i]=1,f+i<u&&o.push(f,u),u+i<c&&o.push(u,c))}for(l=0;l<s;++l)p[l]&&(r[a++]=t[e+l*i],r[a++]=t[e+l*i+1]);return a}function mi(t,e,o,i,n,r,a,s){var p,l=0;for(p=o.length;l<p;++l){var u=o[l];t:{var c=t,h=u,f=i,y=n,d=r,v=a;if(e!=h){var g=y*Math.round(c[e]/y),m=y*Math.round(c[e+1]/y);e+=f,d[v++]=g,d[v++]=m;do{var b=y*Math.round(c[e]/y);if(a=y*Math.round(c[e+1]/y),(e+=f)==h){d[v++]=b,d[v++]=a,a=v;break t}}while(b==g&&a==m);for(;e<h;){var w=y*Math.round(c[e]/y),x=y*Math.round(c[e+1]/y);if(e+=f,w!=b||x!=a){var S=b-g,E=a-m,A=w-g,M=x-m;S*M==E*A&&(0>S&&A<S||S==A||0<S&&A>S)&&(0>E&&M<E||E==M||0<E&&M>E)||(d[v++]=b,d[v++]=a,g=b,m=a),b=w,a=x}}d[v++]=b,d[v++]=a}a=v}s.push(a),e=u}return a}function bi(t,e){ti.call(this),this.c=this.j=-1,this.na(t,e)}function wi(t,e,o){oi(t,e,o),t.u()}function xi(t,e){ti.call(this),this.na(t,e)}function Si(t,e,o,i,n){return!D(n,function(n){return!Ei(t,e,o,i,n[0],n[1])})}function Ei(t,e,o,i,n,r){for(var a=0,s=t[o-i],p=t[o-i+1];e<o;e+=i){var l=t[e],u=t[e+1];p<=r?u>r&&0<(l-s)*(r-p)-(n-s)*(u-p)&&a++:u<=r&&0>(l-s)*(r-p)-(n-s)*(u-p)&&a--,s=l,p=u}return 0!==a}function Ai(t,e,o,i,n,r){if(0===o.length||!Ei(t,e,o[0],i,n,r))return!1;var a;for(e=1,a=o.length;e<a;++e)if(Ei(t,o[e-1],o[e],i,n,r))return!1;return!0}function Mi(t,e,o,i,n,r,a){for(var s,p,l,u,c,h=n[r+1],f=[],y=0,d=o.length;y<d;++y){var v=o[y];for(l=t[v-i],c=t[v-i+1],s=e;s<v;s+=i)u=t[s],p=t[s+1],(h<=c&&p<=h||c<=h&&h<=p)&&(l=(h-c)/(p-c)*(u-l)+l,f.push(l)),l=u,c=p}for(y=NaN,d=-1/0,f.sort(Ot),l=f[0],s=1,p=f.length;s<p;++s)u=f[s],v=Math.abs(u-l),v>d&&(l=(l+u)/2,Ai(t,e,o,i,l,h)&&(y=l,d=v)),l=u;return isNaN(y)&&(y=n[r]),a?(a.push(y,h,d),a):[y,h,d]}function Ti(t,e,o,i,n,r){for(var a,s=[t[e],t[e+1]],p=[];e+i<o;e+=i){if(p[0]=t[e+i],p[1]=t[e+i+1],a=n.call(r,s,p))return a;s[0]=p[0],s[1]=p[1]}return!1}function Ci(t,e,o,i,n){var r=U(P(),t,e,o,i);return!!X(n,r)&&(!!(M(n,r)||r[0]>=n[0]&&r[2]<=n[2]||r[1]>=n[1]&&r[3]<=n[3])||Ti(t,e,o,i,function(t,e){var o=!1,i=C(n,t),r=C(n,e);if(1===i||1===r)o=!0;else{var a=n[0],s=n[1],p=n[2],l=n[3],u=e[0];e=e[1],t=(e-t[1])/(u-t[0]),2&r&&!(2&i)&&(o=u-(e-l)/t,o=o>=a&&o<=p),o||!(4&r)||4&i||(o=e-(u-p)*t,o=o>=s&&o<=l),o||!(8&r)||8&i||(o=u-(e-s)/t,o=o>=a&&o<=p),o||!(16&r)||16&i||(o=e-(u-a)*t,o=o>=s&&o<=l)}return o}))}function Pi(t,e,o,i,n){var r=o[0];if(!(Ci(t,e,r,i,n)||Ei(t,e,r,i,n[0],n[1])||Ei(t,e,r,i,n[0],n[3])||Ei(t,e,r,i,n[2],n[1])||Ei(t,e,r,i,n[2],n[3])))return!1;if(1===o.length)return!0;for(e=1,r=o.length;e<r;++e)if(Si(t,o[e-1],o[e],i,n))return!1;return!0}function Ii(t,e,o,i){for(var n=0,r=t[o-i],a=t[o-i+1];e<o;e+=i){var s=t[e],p=t[e+1];n+=(s-r)*(p+a),r=s,a=p}return 0<n}function Oi(t,e,o,i){var n=0;i=void 0!==i&&i;var r,a=0;for(r=e.length;a<r;++a){var s=e[a];if(n=Ii(t,n,s,o),0===a){if(i&&n||!i&&!n)return!1}else if(i&&!n||!i&&n)return!1;n=s}return!0}function Li(t,e,o,i,n){n=void 0!==n&&n;var r,a=0;for(r=o.length;a<r;++a){var s=o[a],p=Ii(t,e,s,i);if(0===a?n&&p||!n&&!p:n&&!p||!n&&p){p=t;for(var l=s,u=i;e<l-u;){var c;for(c=0;c<u;++c){var h=p[e+c];p[e+c]=p[l-u+c],p[l-u+c]=h}e+=u,l-=u}}e=s}return e}function Ni(t,e,o,i){var n,r=0,a=0;for(n=e.length;a<n;++a)r=Li(t,r,e[a],o,i);return r}function Ri(t,e){ti.call(this),this.c=[],this.o=-1,this.D=null,this.T=this.C=this.B=-1,this.j=null,this.na(t,e)}function ki(t,e,o,i){var n=i||32;i=[];var r;for(r=0;r<n;++r)Rt(i,t.offset(e,o,2*Math.PI*r/n));return i.push(i[0],i[1]),t=new Ri(null),t.ba("XY",i,[i.length]),t}function ji(t){var e=t[0],o=t[1],i=t[2];return t=t[3],e=[e,o,e,t,i,t,i,o,e,o],o=new Ri(null),o.ba("XY",e,[e.length]),o}function Ui(t,e,o){var i=e||32,n=t.pa();e=t.ja;var r=new Ri(null,e);i=n*(i+1),n=Array(i);for(var a=0;a<i;a++)n[a]=0;return r.ba(e,n,[n.length]),Di(r,t.xa(),t.Bd(),o),r}function Di(t,e,o,i){var n=t.da(),r=t.ja,a=t.pa(),s=t.pb(),p=n.length/a-1;i=i||0;for(var l,u,c=0;c<=p;++c)u=c*a,l=i+2*d(c,p)*Math.PI/p,n[u]=e[0]+o*Math.cos(l),n[u+1]=e[1]+o*Math.sin(l);t.ba(r,n,s)}function Fi(t){me.call(this),t=Hv({},t),this.f=[0,0],this.c=[],this.Ff=this.Ff.bind(this),this.v=mt(t.projection),Gi(this,t)}function Gi(t,e){var o={};o.center=void 0!==e.center?e.center:null;var i=void 0!==e.minZoom?e.minZoom:0,n=void 0!==e.maxZoom?e.maxZoom:28,r=void 0!==e.zoomFactor?e.zoomFactor:2;if(void 0!==e.resolutions){var a=e.resolutions,s=a[i],p=void 0!==a[n]?a[n]:a[a.length-1];n=fo(a)}else{s=mt(e.projection),p=s.G(),a=(p?Math.max(Z(p),H(p)):360*zv.degrees/s.Bc())/256/Math.pow(2,0);var l=a/Math.pow(2,28);s=e.maxResolution,void 0!==s?i=0:s=a/Math.pow(r,i),p=e.minResolution,void 0===p&&(p=void 0!==e.maxZoom?void 0!==e.maxResolution?s/Math.pow(r,n):a/Math.pow(r,n):l),n=i+Math.floor(Math.log(s/p)/Math.log(r)),p=s/Math.pow(r,n-i),n=yo(r,s,n-i)}t.a=s,t.i=p,t.D=r,t.j=e.resolutions,t.s=i,(void 0!==e.enableRotation?e.enableRotation:1)?(i=e.constrainRotation,i=void 0===i||!0===i?bo():!1===i?go:"number"==typeof i