(function(){var adjustScrollTop=function(){var controlMenu;var controlMenuId;var controlMenuScroll;var errorFieldLabel;var labelScroll;errorFieldLabel=document.querySelector(".form-group.has-error .control-label");if(errorFieldLabel){labelScroll=errorFieldLabel.clientHeight||0;window.scrollBy(0,-labelScroll)}if(Liferay.ControlMenu){controlMenuId=Liferay.ControlMenu._namespace+"ControlMenu";controlMenu=document.getElementById(controlMenuId);if(controlMenu){controlMenuScroll=controlMenu.offsetHeight||
0;window.scrollBy(0,-controlMenuScroll)}}};var handleFormRegistered=function(event){if(event.form&&event.form.formValidator)AUI().Do.after(adjustScrollTop,event.form.formValidator,"focusInvalidField")};Liferay.on("form:registered",handleFormRegistered)})();
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f;}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){(function(global){if(global._babelPolyfill)throw new Error("only one instance of babel/polyfill is allowed");
global._babelPolyfill=true;require("core-js/shim");require("regenerator/runtime")}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"core-js/shim":72,"regenerator/runtime":73}],2:[function(require,module,exports){var $=require("./$");module.exports=function(IS_INCLUDES){return function(el){var O=$.toObject(this),length=$.toLength(O.length),index=$.toIndex(arguments[1],length),value;if(IS_INCLUDES&&el!=el)while(length>index){value=
O[index++];if(value!=value)return true}else for(;length>index;index++)if(IS_INCLUDES||index in O)if(O[index]===el)return IS_INCLUDES||index;return!IS_INCLUDES&&-1}}},{"./$":16}],3:[function(require,module,exports){var $=require("./$"),ctx=require("./$.ctx");module.exports=function(TYPE){var IS_MAP=TYPE==1,IS_FILTER=TYPE==2,IS_SOME=TYPE==3,IS_EVERY=TYPE==4,IS_FIND_INDEX=TYPE==6,NO_HOLES=TYPE==5||IS_FIND_INDEX;return function(callbackfn){var O=Object($.assertDefined(this)),self=$.ES5Object(O),f=ctx(callbackfn,
arguments[1],3),length=$.toLength(self.length),index=0,result=IS_MAP?Array(length):IS_FILTER?[]:undefined,val,res;for(;length>index;index++)if(NO_HOLES||index in self){val=self[index];res=f(val,index,O);if(TYPE)if(IS_MAP)result[index]=res;else if(res)switch(TYPE){case 3:return true;case 5:return val;case 6:return index;case 2:result.push(val)}else if(IS_EVERY)return false}return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:result}}},{"./$":16,"./$.ctx":10}],4:[function(require,module,exports){var $=
require("./$");function assert(condition,msg1,msg2){if(!condition)throw TypeError(msg2?msg1+msg2:msg1);}assert.def=$.assertDefined;assert.fn=function(it){if(!$.isFunction(it))throw TypeError(it+" is not a function!");return it};assert.obj=function(it){if(!$.isObject(it))throw TypeError(it+" is not an object!");return it};assert.inst=function(it,Constructor,name){if(!(it instanceof Constructor))throw TypeError(name+": use the 'new' operator!");return it};module.exports=assert},{"./$":16}],5:[function(require,
module,exports){var $=require("./$");module.exports=Object.assign||function assign(target,source){var T=Object($.assertDefined(target)),l=arguments.length,i=1;while(l>i){var S=$.ES5Object(arguments[i++]),keys=$.getKeys(S),length=keys.length,j=0,key;while(length>j)T[key=keys[j++]]=S[key]}return T}},{"./$":16}],6:[function(require,module,exports){var $=require("./$"),TAG=require("./$.wks")("toStringTag"),toString={}.toString;function cof(it){return toString.call(it).slice(8,-1)}cof.classof=function(it){var O,
T;return it==undefined?it===undefined?"Undefined":"Null":typeof(T=(O=Object(it))[TAG])=="string"?T:cof(O)};cof.set=function(it,tag,stat){if(it&&!$.has(it=stat?it:it.prototype,TAG))$.hide(it,TAG,tag)};module.exports=cof},{"./$":16,"./$.wks":27}],7:[function(require,module,exports){var $=require("./$"),ctx=require("./$.ctx"),safe=require("./$.uid").safe,assert=require("./$.assert"),$iter=require("./$.iter"),has=$.has,set=$.set,isObject=$.isObject,hide=$.hide,step=$iter.step,isFrozen=Object.isFrozen||
$.core.Object.isFrozen,ID=safe("id"),O1=safe("O1"),LAST=safe("last"),FIRST=safe("first"),ITER=safe("iter"),SIZE=$.DESC?safe("size"):"size",id=0;function fastKey(it,create){if(!isObject(it))return(typeof it=="string"?"S":"P")+it;if(isFrozen(it))return"F";if(!has(it,ID)){if(!create)return"E";hide(it,ID,++id)}return"O"+it[ID]}function getEntry(that,key){var index=fastKey(key),entry;if(index!="F")return that[O1][index];for(entry=that[FIRST];entry;entry=entry.n)if(entry.k==key)return entry}module.exports=
{getConstructor:function(NAME,IS_MAP,ADDER){function C(iterable){var that=assert.inst(this,C,NAME);set(that,O1,$.create(null));set(that,SIZE,0);set(that,LAST,undefined);set(that,FIRST,undefined);if(iterable!=undefined)$iter.forOf(iterable,IS_MAP,that[ADDER],that)}$.mix(C.prototype,{clear:function clear(){for(var that=this,data=that[O1],entry=that[FIRST];entry;entry=entry.n){entry.r=true;if(entry.p)entry.p=entry.p.n=undefined;delete data[entry.i]}that[FIRST]=that[LAST]=undefined;that[SIZE]=0},"delete":function(key){var that=
this,entry=getEntry(that,key);if(entry){var next=entry.n,prev=entry.p;delete that[O1][entry.i];entry.r=true;if(prev)prev.n=next;if(next)next.p=prev;if(that[FIRST]==entry)that[FIRST]=next;if(that[LAST]==entry)that[LAST]=prev;that[SIZE]--}return!!entry},forEach:function forEach(callbackfn){var f=ctx(callbackfn,arguments[1],3),entry;while(entry=entry?entry.n:this[FIRST]){f(entry.v,entry.k,this);while(entry&&entry.r)entry=entry.p}},has:function has(key){return!!getEntry(this,key)}});if($.DESC)$.setDesc(C.prototype,
"size",{get:function(){return assert.def(this[SIZE])}});return C},def:function(that,key,value){var entry=getEntry(that,key),prev,index;if(entry)entry.v=value;else{that[LAST]=entry={i:index=fastKey(key,true),k:key,v:value,p:prev=that[LAST],n:undefined,r:false};if(!that[FIRST])that[FIRST]=entry;if(prev)prev.n=entry;that[SIZE]++;if(index!="F")that[O1][index]=entry}return that},getEntry:getEntry,getIterConstructor:function(){return function(iterated,kind){set(this,ITER,{o:iterated,k:kind})}},next:function(){var iter=
this[ITER],kind=iter.k,entry=iter.l;while(entry&&entry.r)entry=entry.p;if(!iter.o||!(iter.l=entry=entry?entry.n:iter.o[FIRST])){iter.o=undefined;return step(1)}if(kind=="key")return step(0,entry.k);if(kind=="value")return step(0,entry.v);return step(0,[entry.k,entry.v])}}},{"./$":16,"./$.assert":4,"./$.ctx":10,"./$.iter":15,"./$.uid":25}],8:[function(require,module,exports){var $=require("./$"),safe=require("./$.uid").safe,assert=require("./$.assert"),forOf=require("./$.iter").forOf,_has=$.has,isObject=
$.isObject,hide=$.hide,isFrozen=Object.isFrozen||$.core.Object.isFrozen,id=0,ID=safe("id"),WEAK=safe("weak"),LEAK=safe("leak"),method=require("./$.array-methods"),find=method(5),findIndex=method(6);function findFrozen(store,key){return find.call(store.array,function(it){return it[0]===key})}function leakStore(that){return that[LEAK]||hide(that,LEAK,{array:[],get:function(key){var entry=findFrozen(this,key);if(entry)return entry[1]},has:function(key){return!!findFrozen(this,key)},set:function(key,
value){var entry=findFrozen(this,key);if(entry)entry[1]=value;else this.array.push([key,value])},"delete":function(key){var index=findIndex.call(this.array,function(it){return it[0]===key});if(~index)this.array.splice(index,1);return!!~index}})[LEAK]}module.exports={getConstructor:function(NAME,IS_MAP,ADDER){function C(iterable){$.set(assert.inst(this,C,NAME),ID,id++);if(iterable!=undefined)forOf(iterable,IS_MAP,this[ADDER],this)}$.mix(C.prototype,{"delete":function(key){if(!isObject(key))return false;
if(isFrozen(key))return leakStore(this)["delete"](key);return _has(key,WEAK)&&_has(key[WEAK],this[ID])&&delete key[WEAK][this[ID]]},has:function has(key){if(!isObject(key))return false;if(isFrozen(key))return leakStore(this).has(key);return _has(key,WEAK)&&_has(key[WEAK],this[ID])}});return C},def:function(that,key,value){if(isFrozen(assert.obj(key)))leakStore(that).set(key,value);else{_has(key,WEAK)||hide(key,WEAK,{});key[WEAK][that[ID]]=value}return that},leakStore:leakStore,WEAK:WEAK,ID:ID}},{"./$":16,
"./$.array-methods":3,"./$.assert":4,"./$.iter":15,"./$.uid":25}],9:[function(require,module,exports){var $=require("./$"),$def=require("./$.def"),$iter=require("./$.iter"),assertInstance=require("./$.assert").inst;module.exports=function(NAME,methods,common,IS_MAP,isWeak){var Base=$.g[NAME],C=Base,ADDER=IS_MAP?"set":"add",proto=C&&C.prototype,O={};function fixMethod(KEY,CHAIN){var method=proto[KEY];if($.FW)proto[KEY]=function(a,b){var result=method.call(this,a===0?0:a,b);return CHAIN?this:result}}
if(!$.isFunction(C)||!(isWeak||!$iter.BUGGY&&proto.forEach&&proto.entries)){C=common.getConstructor(NAME,IS_MAP,ADDER);$.mix(C.prototype,methods)}else{var inst=new C,chain=inst[ADDER](isWeak?{}:-0,1),buggyZero;if(!require("./$.iter-detect")(function(iter){new C(iter)})){C=function(iterable){assertInstance(this,C,NAME);var that=new Base;if(iterable!=undefined)$iter.forOf(iterable,IS_MAP,that[ADDER],that);return that};C.prototype=proto;if($.FW)proto.constructor=C}isWeak||inst.forEach(function(val,key){buggyZero=
1/key===-Infinity});if(buggyZero){fixMethod("delete");fixMethod("has");IS_MAP&&fixMethod("get")}if(buggyZero||chain!==inst)fixMethod(ADDER,true)}require("./$.cof").set(C,NAME);require("./$.species")(C);O[NAME]=C;$def($def.G+$def.W+$def.F*(C!=Base),O);if(!isWeak)$iter.std(C,NAME,common.getIterConstructor(),common.next,IS_MAP?"key+value":"value",!IS_MAP,true);return C}},{"./$":16,"./$.assert":4,"./$.cof":6,"./$.def":11,"./$.iter":15,"./$.iter-detect":14,"./$.species":22}],10:[function(require,module,
exports){var assertFunction=require("./$.assert").fn;module.exports=function(fn,that,length){assertFunction(fn);if(~length&&that===undefined)return fn;switch(length){case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},{"./$.assert":4}],11:[function(require,module,exports){var $=require("./$"),global=$.g,core=$.core,isFunction=$.isFunction;
function ctx(fn,that){return function(){return fn.apply(that,arguments)}}global.core=core;$def.F=1;$def.G=2;$def.S=4;$def.P=8;$def.B=16;$def.W=32;function $def(type,name,source){var key,own,out,exp,isGlobal=type&$def.G,target=isGlobal?global:type&$def.S?global[name]:(global[name]||{}).prototype,exports=isGlobal?core:core[name]||(core[name]={});if(isGlobal)source=name;for(key in source){own=!(type&$def.F)&&target&&key in target;out=(own?target:source)[key];if(type&$def.B&&own)exp=ctx(out,global);else exp=
type&$def.P&&isFunction(out)?ctx(Function.call,out):out;if(target&&!own)if(isGlobal)target[key]=out;else delete target[key]&&$.hide(target,key,out);if(exports[key]!=out)$.hide(exports,key,exp)}}module.exports=$def},{"./$":16}],12:[function(require,module,exports){module.exports=function($){$.FW=true;$.path=$.g;return $}},{}],13:[function(require,module,exports){module.exports=function(fn,args,that){var un=that===undefined;switch(args.length){case 0:return un?fn():fn.call(that);case 1:return un?fn(args[0]):
fn.call(that,args[0]);case 2:return un?fn(args[0],args[1]):fn.call(that,args[0],args[1]);case 3:return un?fn(args[0],args[1],args[2]):fn.call(that,args[0],args[1],args[2]);case 4:return un?fn(args[0],args[1],args[2],args[3]):fn.call(that,args[0],args[1],args[2],args[3]);case 5:return un?fn(args[0],args[1],args[2],args[3],args[4]):fn.call(that,args[0],args[1],args[2],args[3],args[4])}return fn.apply(that,args)}},{}],14:[function(require,module,exports){var SYMBOL_ITERATOR=require("./$.wks")("iterator"),
SAFE_CLOSING=false;try{var riter=[7][SYMBOL_ITERATOR]();riter["return"]=function(){SAFE_CLOSING=true};Array.from(riter,function(){throw 2;})}catch(e){}module.exports=function(exec){if(!SAFE_CLOSING)return false;var safe=false;try{var arr=[7],iter=arr[SYMBOL_ITERATOR]();iter.next=function(){safe=true};arr[SYMBOL_ITERATOR]=function(){return iter};exec(arr)}catch(e){}return safe}},{"./$.wks":27}],15:[function(require,module,exports){var $=require("./$"),ctx=require("./$.ctx"),cof=require("./$.cof"),
$def=require("./$.def"),assertObject=require("./$.assert").obj,SYMBOL_ITERATOR=require("./$.wks")("iterator"),FF_ITERATOR="@@iterator",Iterators={},IteratorPrototype={};var BUGGY="keys"in[]&&!("next"in[].keys());setIterator(IteratorPrototype,$.that);function setIterator(O,value){$.hide(O,SYMBOL_ITERATOR,value);if(FF_ITERATOR in[])$.hide(O,FF_ITERATOR,value)}function defineIterator(Constructor,NAME,value,DEFAULT){var proto=Constructor.prototype,iter=proto[SYMBOL_ITERATOR]||proto[FF_ITERATOR]||DEFAULT&&
proto[DEFAULT]||value;if($.FW)setIterator(proto,iter);if(iter!==value){var iterProto=$.getProto(iter.call(new Constructor));cof.set(iterProto,NAME+" Iterator",true);if($.FW)$.has(proto,FF_ITERATOR)&&setIterator(iterProto,$.that)}Iterators[NAME]=iter;Iterators[NAME+" Iterator"]=$.that;return iter}function getIterator(it){var Symbol=$.g.Symbol,ext=it[Symbol&&Symbol.iterator||FF_ITERATOR],getIter=ext||it[SYMBOL_ITERATOR]||Iterators[cof.classof(it)];return assertObject(getIter.call(it))}function closeIterator(iterator){var ret=
iterator["return"];if(ret!==undefined)assertObject(ret.call(iterator))}function stepCall(iterator,fn,value,entries){try{return entries?fn(assertObject(value)[0],value[1]):fn(value)}catch(e){closeIterator(iterator);throw e;}}var $iter=module.exports={BUGGY:BUGGY,Iterators:Iterators,prototype:IteratorPrototype,step:function(done,value){return{value:value,done:!!done}},stepCall:stepCall,close:closeIterator,is:function(it){var O=Object(it),Symbol=$.g.Symbol,SYM=Symbol&&Symbol.iterator||FF_ITERATOR;return SYM in
O||SYMBOL_ITERATOR in O||$.has(Iterators,cof.classof(O))},get:getIterator,set:setIterator,create:function(Constructor,NAME,next,proto){Constructor.prototype=$.create(proto||$iter.prototype,{next:$.desc(1,next)});cof.set(Constructor,NAME+" Iterator")},define:defineIterator,std:function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCE){function createIter(kind){return function(){return new Constructor(this,kind)}}$iter.create(Constructor,NAME,next);var entries=createIter("key+value"),values=createIter("value"),
proto=Base.prototype,methods,key;if(DEFAULT=="value")values=defineIterator(Base,NAME,values,"values");else entries=defineIterator(Base,NAME,entries,"entries");if(DEFAULT){methods={entries:entries,keys:IS_SET?values:createIter("key"),values:values};$def($def.P+$def.F*BUGGY,NAME,methods);if(FORCE)for(key in methods)if(!(key in proto))$.hide(proto,key,methods[key])}},forOf:function(iterable,entries,fn,that){var iterator=getIterator(iterable),f=ctx(fn,that,entries?2:1),step;while(!(step=iterator.next()).done)if(stepCall(iterator,
f,step.value,entries)===false)return closeIterator(iterator)}}},{"./$":16,"./$.assert":4,"./$.cof":6,"./$.ctx":10,"./$.def":11,"./$.wks":27}],16:[function(require,module,exports){var global=typeof self!="undefined"?self:Function("return this")(),core={},defineProperty=Object.defineProperty,hasOwnProperty={}.hasOwnProperty,ceil=Math.ceil,floor=Math.floor,max=Math.max,min=Math.min;var DESC=!!function(){try{return defineProperty({},"a",{get:function(){return 2}}).a==2}catch(e){}}();var hide=createDefiner(1);
function toInteger(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it)}function desc(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value}}function simpleSet(object,key,value){object[key]=value;return object}function createDefiner(bitmap){return DESC?function(object,key,value){return $.setDesc(object,key,desc(bitmap,value))}:simpleSet}function isObject(it){return it!==null&&(typeof it=="object"||typeof it=="function")}function isFunction(it){return typeof it==
"function"}function assertDefined(it){if(it==undefined)throw TypeError("Can't call method on  "+it);return it}var $=module.exports=require("./$.fw")({g:global,core:core,html:global.document&&document.documentElement,isObject:isObject,isFunction:isFunction,it:function(it){return it},that:function(){return this},toInteger:toInteger,toLength:function(it){return it>0?min(toInteger(it),9007199254740991):0},toIndex:function(index,length){index=toInteger(index);return index<0?max(index+length,0):min(index,
length)},has:function(it,key){return hasOwnProperty.call(it,key)},create:Object.create,getProto:Object.getPrototypeOf,DESC:DESC,desc:desc,getDesc:Object.getOwnPropertyDescriptor,setDesc:defineProperty,getKeys:Object.keys,getNames:Object.getOwnPropertyNames,getSymbols:Object.getOwnPropertySymbols,assertDefined:assertDefined,ES5Object:Object,toObject:function(it){return $.ES5Object(assertDefined(it))},hide:hide,def:createDefiner(0),set:global.Symbol?simpleSet:hide,mix:function(target,src){for(var key in src)hide(target,
key,src[key]);return target},each:[].forEach});if(typeof __e!="undefined")__e=core;if(typeof __g!="undefined")__g=global},{"./$.fw":12}],17:[function(require,module,exports){var $=require("./$");module.exports=function(object,el){var O=$.toObject(object),keys=$.getKeys(O),length=keys.length,index=0,key;while(length>index)if(O[key=keys[index++]]===el)return key}},{"./$":16}],18:[function(require,module,exports){var $=require("./$"),assertObject=require("./$.assert").obj;module.exports=function ownKeys(it){assertObject(it);
return $.getSymbols?$.getNames(it).concat($.getSymbols(it)):$.getNames(it)}},{"./$":16,"./$.assert":4}],19:[function(require,module,exports){var $=require("./$"),invoke=require("./$.invoke"),assertFunction=require("./$.assert").fn;module.exports=function(){var fn=assertFunction(this),length=arguments.length,pargs=Array(length),i=0,_=$.path._,holder=false;while(length>i)if((pargs[i]=arguments[i++])===_)holder=true;return function(){var that=this,_length=arguments.length,j=0,k=0,args;if(!holder&&!_length)return invoke(fn,
pargs,that);args=pargs.slice();if(holder)for(;length>j;j++)if(args[j]===_)args[j]=arguments[k++];while(_length>k)args.push(arguments[k++]);return invoke(fn,args,that)}}},{"./$":16,"./$.assert":4,"./$.invoke":13}],20:[function(require,module,exports){module.exports=function(regExp,replace,isStatic){var replacer=replace===Object(replace)?function(part){return replace[part]}:replace;return function(it){return String(isStatic?it:this).replace(regExp,replacer)}}},{}],21:[function(require,module,exports){var $=
require("./$"),assert=require("./$.assert");function check(O,proto){assert.obj(O);assert(proto===null||$.isObject(proto),proto,": can't set as prototype!")}module.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(buggy,set){try{set=require("./$.ctx")(Function.call,$.getDesc(Object.prototype,"__proto__").set,2);set({},[])}catch(e){buggy=true}return function setPrototypeOf(O,proto){check(O,proto);if(buggy)O.__proto__=proto;else set(O,proto);return O}}():undefined),check:check}},{"./$":16,
"./$.assert":4,"./$.ctx":10}],22:[function(require,module,exports){var $=require("./$");module.exports=function(C){if($.DESC&&$.FW)$.setDesc(C,require("./$.wks")("species"),{configurable:true,get:$.that})}},{"./$":16,"./$.wks":27}],23:[function(require,module,exports){var $=require("./$");module.exports=function(TO_STRING){return function(pos){var s=String($.assertDefined(this)),i=$.toInteger(pos),l=s.length,a,b;if(i<0||i>=l)return TO_STRING?"":undefined;a=s.charCodeAt(i);return a<55296||a>56319||
i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):(a-55296<<10)+(b-56320)+65536}}},{"./$":16}],24:[function(require,module,exports){var $=require("./$"),ctx=require("./$.ctx"),cof=require("./$.cof"),invoke=require("./$.invoke"),global=$.g,isFunction=$.isFunction,html=$.html,document=global.document,process=global.process,setTask=global.setImmediate,clearTask=global.clearImmediate,postMessage=global.postMessage,addEventListener=global.addEventListener,MessageChannel=
global.MessageChannel,counter=0,queue={},ONREADYSTATECHANGE="onreadystatechange",defer,channel,port;function run(){var id=+this;if($.has(queue,id)){var fn=queue[id];delete queue[id];fn()}}function listner(event){run.call(event.data)}if(!isFunction(setTask)||!isFunction(clearTask)){setTask=function(fn){var args=[],i=1;while(arguments.length>i)args.push(arguments[i++]);queue[++counter]=function(){invoke(isFunction(fn)?fn:Function(fn),args)};defer(counter);return counter};clearTask=function(id){delete queue[id]};
if(cof(process)=="process")defer=function(id){process.nextTick(ctx(run,id,1))};else if(addEventListener&&isFunction(postMessage)&&!global.importScripts){defer=function(id){postMessage(id,"*")};addEventListener("message",listner,false)}else if(isFunction(MessageChannel)){channel=new MessageChannel;port=channel.port2;channel.port1.onmessage=listner;defer=ctx(port.postMessage,port,1)}else if(document&&ONREADYSTATECHANGE in document.createElement("script"))defer=function(id){html.appendChild(document.createElement("script"))[ONREADYSTATECHANGE]=
function(){html.removeChild(this);run.call(id)}};else defer=function(id){setTimeout(ctx(run,id,1),0)}}module.exports={set:setTask,clear:clearTask}},{"./$":16,"./$.cof":6,"./$.ctx":10,"./$.invoke":13}],25:[function(require,module,exports){var sid=0;function uid(key){return"Symbol("+key+")_"+(++sid+Math.random()).toString(36)}uid.safe=require("./$").g.Symbol||uid;module.exports=uid},{"./$":16}],26:[function(require,module,exports){var $=require("./$"),UNSCOPABLES=require("./$.wks")("unscopables");if($.FW&&
!(UNSCOPABLES in[]))$.hide(Array.prototype,UNSCOPABLES,{});module.exports=function(key){if($.FW)[][UNSCOPABLES][key]=true}},{"./$":16,"./$.wks":27}],27:[function(require,module,exports){var global=require("./$").g,store={};module.exports=function(name){return store[name]||(store[name]=global.Symbol&&global.Symbol[name]||require("./$.uid").safe("Symbol."+name))}},{"./$":16,"./$.uid":25}],28:[function(require,module,exports){var $=require("./$"),cof=require("./$.cof"),$def=require("./$.def"),invoke=
require("./$.invoke"),arrayMethod=require("./$.array-methods"),IE_PROTO=require("./$.uid").safe("__proto__"),assert=require("./$.assert"),assertObject=assert.obj,ObjectProto=Object.prototype,A=[],slice=A.slice,indexOf=A.indexOf,classof=cof.classof,defineProperties=Object.defineProperties,has=$.has,defineProperty=$.setDesc,getOwnDescriptor=$.getDesc,isFunction=$.isFunction,toObject=$.toObject,toLength=$.toLength,IE8_DOM_DEFINE=false;if(!$.DESC){try{IE8_DOM_DEFINE=defineProperty(document.createElement("div"),
"x",{get:function(){return 8}}).x==8}catch(e){}$.setDesc=function(O,P,Attributes){if(IE8_DOM_DEFINE)try{return defineProperty(O,P,Attributes)}catch(e){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported!");if("value"in Attributes)assertObject(O)[P]=Attributes.value;return O};$.getDesc=function(O,P){if(IE8_DOM_DEFINE)try{return getOwnDescriptor(O,P)}catch(e){}if(has(O,P))return $.desc(!ObjectProto.propertyIsEnumerable.call(O,P),O[P])};defineProperties=function(O,Properties){assertObject(O);
var keys=$.getKeys(Properties),length=keys.length,i=0,P;while(length>i)$.setDesc(O,P=keys[i++],Properties[P]);return O}}$def($def.S+$def.F*!$.DESC,"Object",{getOwnPropertyDescriptor:$.getDesc,defineProperty:$.setDesc,defineProperties:defineProperties});var keys1=("constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,"+"toLocaleString,toString,valueOf").split(","),keys2=keys1.concat("length","prototype"),keysLen1=keys1.length;var createDict=function(){var iframe=document.createElement("iframe"),
i=keysLen1,gt="\x3e",iframeDocument;iframe.style.display="none";$.html.appendChild(iframe);iframe.src="javascript:";iframeDocument=iframe.contentWindow.document;iframeDocument.open();iframeDocument.write("\x3cscript\x3edocument.F\x3dObject\x3c/script"+gt);iframeDocument.close();createDict=iframeDocument.F;while(i--)delete createDict.prototype[keys1[i]];return createDict()};function createGetKeys(names,length){return function(object){var O=toObject(object),i=0,result=[],key;for(key in O)if(key!=IE_PROTO)has(O,
key)&&result.push(key);while(length>i)if(has(O,key=names[i++]))~indexOf.call(result,key)||result.push(key);return result}}function isPrimitive(it){return!$.isObject(it)}function Empty(){}$def($def.S,"Object",{getPrototypeOf:$.getProto=$.getProto||function(O){O=Object(assert.def(O));if(has(O,IE_PROTO))return O[IE_PROTO];if(isFunction(O.constructor)&&O instanceof O.constructor)return O.constructor.prototype;return O instanceof Object?ObjectProto:null},getOwnPropertyNames:$.getNames=$.getNames||createGetKeys(keys2,
keys2.length,true),create:$.create=$.create||function(O,Properties){var result;if(O!==null){Empty.prototype=assertObject(O);result=new Empty;Empty.prototype=null;result[IE_PROTO]=O}else result=createDict();return Properties===undefined?result:defineProperties(result,Properties)},keys:$.getKeys=$.getKeys||createGetKeys(keys1,keysLen1,false),seal:$.it,freeze:$.it,preventExtensions:$.it,isSealed:isPrimitive,isFrozen:isPrimitive,isExtensible:$.isObject});$def($def.P,"Function",{bind:function(that){var fn=
assert.fn(this),partArgs=slice.call(arguments,1);function bound(){var args=partArgs.concat(slice.call(arguments));return invoke(fn,args,this instanceof bound?$.create(fn.prototype):that)}if(fn.prototype)bound.prototype=fn.prototype;return bound}});function arrayMethodFix(fn){return function(){return fn.apply($.ES5Object(this),arguments)}}if(!(0 in Object("z")&&"z"[0]=="z"))$.ES5Object=function(it){return cof(it)=="String"?it.split(""):Object(it)};$def($def.P+$def.F*($.ES5Object!=Object),"Array",{slice:arrayMethodFix(slice),
join:arrayMethodFix(A.join)});$def($def.S,"Array",{isArray:function(arg){return cof(arg)=="Array"}});function createArrayReduce(isRight){return function(callbackfn,memo){assert.fn(callbackfn);var O=toObject(this),length=toLength(O.length),index=isRight?length-1:0,i=isRight?-1:1;if(arguments.length<2)for(;;){if(index in O){memo=O[index];index+=i;break}index+=i;assert(isRight?index>=0:length>index,"Reduce of empty array with no initial value")}for(;isRight?index>=0:length>index;index+=i)if(index in
O)memo=callbackfn(memo,O[index],index,this);return memo}}$def($def.P,"Array",{forEach:$.each=$.each||arrayMethod(0),map:arrayMethod(1),filter:arrayMethod(2),some:arrayMethod(3),every:arrayMethod(4),reduce:createArrayReduce(false),reduceRight:createArrayReduce(true),indexOf:indexOf=indexOf||require("./$.array-includes")(false),lastIndexOf:function(el,fromIndex){var O=toObject(this),length=toLength(O.length),index=length-1;if(arguments.length>1)index=Math.min(index,$.toInteger(fromIndex));if(index<
0)index=toLength(length+index);for(;index>=0;index--)if(index in O)if(O[index]===el)return index;return-1}});$def($def.P,"String",{trim:require("./$.replacer")(/^\s*([\s\S]*\S)?\s*$/,"$1")});$def($def.S,"Date",{now:function(){return+new Date}});function lz(num){return num>9?num:"0"+num}$def($def.P,"Date",{toISOString:function(){if(!isFinite(this))throw RangeError("Invalid time value");var d=this,y=d.getUTCFullYear(),m=d.getUTCMilliseconds(),s=y<0?"-":y>9999?"+":"";return s+("00000"+Math.abs(y)).slice(s?
-6:-4)+"-"+lz(d.getUTCMonth()+1)+"-"+lz(d.getUTCDate())+"T"+lz(d.getUTCHours())+":"+lz(d.getUTCMinutes())+":"+lz(d.getUTCSeconds())+"."+(m>99?m:"0"+lz(m))+"Z"}});if(classof(function(){return arguments}())=="Object")cof.classof=function(it){var tag=classof(it);return tag=="Object"&&isFunction(it.callee)?"Arguments":tag}},{"./$":16,"./$.array-includes":2,"./$.array-methods":3,"./$.assert":4,"./$.cof":6,"./$.def":11,"./$.invoke":13,"./$.replacer":20,"./$.uid":25}],29:[function(require,module,exports){var $=
require("./$"),$def=require("./$.def"),toIndex=$.toIndex;$def($def.P,"Array",{copyWithin:function copyWithin(target,start){var O=Object($.assertDefined(this)),len=$.toLength(O.length),to=toIndex(target,len),from=toIndex(start,len),end=arguments[2],fin=end===undefined?len:toIndex(end,len),count=Math.min(fin-from,len-to),inc=1;if(from<to&&to<from+count){inc=-1;from=from+count-1;to=to+count-1}while(count-- >0){if(from in O)O[to]=O[from];else delete O[to];to+=inc;from+=inc}return O}});require("./$.unscope")("copyWithin")},
{"./$":16,"./$.def":11,"./$.unscope":26}],30:[function(require,module,exports){var $=require("./$"),$def=require("./$.def"),toIndex=$.toIndex;$def($def.P,"Array",{fill:function fill(value){var O=Object($.assertDefined(this)),length=$.toLength(O.length),index=toIndex(arguments[1],length),end=arguments[2],endPos=end===undefined?length:toIndex(end,length);while(endPos>index)O[index++]=value;return O}});require("./$.unscope")("fill")},{"./$":16,"./$.def":11,"./$.unscope":26}],31:[function(require,module,
exports){var $def=require("./$.def");$def($def.P,"Array",{findIndex:require("./$.array-methods")(6)});require("./$.unscope")("findIndex")},{"./$.array-methods":3,"./$.def":11,"./$.unscope":26}],32:[function(require,module,exports){var $def=require("./$.def");$def($def.P,"Array",{find:require("./$.array-methods")(5)});require("./$.unscope")("find")},{"./$.array-methods":3,"./$.def":11,"./$.unscope":26}],33:[function(require,module,exports){var $=require("./$"),ctx=require("./$.ctx"),$def=require("./$.def"),
$iter=require("./$.iter"),stepCall=$iter.stepCall;$def($def.S+$def.F*!require("./$.iter-detect")(function(iter){Array.from(iter)}),"Array",{from:function from(arrayLike){var O=Object($.assertDefined(arrayLike)),mapfn=arguments[1],mapping=mapfn!==undefined,f=mapping?ctx(mapfn,arguments[2],2):undefined,index=0,length,result,step,iterator;if($iter.is(O)){iterator=$iter.get(O);result=new (typeof this=="function"?this:Array);for(;!(step=iterator.next()).done;index++)result[index]=mapping?stepCall(iterator,
f,[step.value,index],true):step.value}else{result=new (typeof this=="function"?this:Array)(length=$.toLength(O.length));for(;length>index;index++)result[index]=mapping?f(O[index],index):O[index]}result.length=index;return result}})},{"./$":16,"./$.ctx":10,"./$.def":11,"./$.iter":15,"./$.iter-detect":14}],34:[function(require,module,exports){var $=require("./$"),setUnscope=require("./$.unscope"),ITER=require("./$.uid").safe("iter"),$iter=require("./$.iter"),step=$iter.step,Iterators=$iter.Iterators;
$iter.std(Array,"Array",function(iterated,kind){$.set(this,ITER,{o:$.toObject(iterated),i:0,k:kind})},function(){var iter=this[ITER],O=iter.o,kind=iter.k,index=iter.i++;if(!O||index>=O.length){iter.o=undefined;return step(1)}if(kind=="key")return step(0,index);if(kind=="value")return step(0,O[index]);return step(0,[index,O[index]])},"value");Iterators.Arguments=Iterators.Array;setUnscope("keys");setUnscope("values");setUnscope("entries")},{"./$":16,"./$.iter":15,"./$.uid":25,"./$.unscope":26}],35:[function(require,
module,exports){var $def=require("./$.def");$def($def.S,"Array",{of:function of(){var index=0,length=arguments.length,result=new (typeof this=="function"?this:Array)(length);while(length>index)result[index]=arguments[index++];result.length=length;return result}})},{"./$.def":11}],36:[function(require,module,exports){require("./$.species")(Array)},{"./$.species":22}],37:[function(require,module,exports){var $=require("./$"),NAME="name",setDesc=$.setDesc,FunctionProto=Function.prototype;NAME in FunctionProto||
$.FW&&$.DESC&&setDesc(FunctionProto,NAME,{configurable:true,get:function(){var match=String(this).match(/^\s*function ([^ (]*)/),name=match?match[1]:"";$.has(this,NAME)||setDesc(this,NAME,$.desc(5,name));return name},set:function(value){$.has(this,NAME)||setDesc(this,NAME,$.desc(0,value))}})},{"./$":16}],38:[function(require,module,exports){var strong=require("./$.collection-strong");require("./$.collection")("Map",{get:function get(key){var entry=strong.getEntry(this,key);return entry&&entry.v},
set:function set(key,value){return strong.def(this,key===0?0:key,value)}},strong,true)},{"./$.collection":9,"./$.collection-strong":7}],39:[function(require,module,exports){var Infinity=1/0,$def=require("./$.def"),E=Math.E,pow=Math.pow,abs=Math.abs,exp=Math.exp,log=Math.log,sqrt=Math.sqrt,ceil=Math.ceil,floor=Math.floor,EPSILON=pow(2,-52),EPSILON32=pow(2,-23),MAX32=pow(2,127)*(2-EPSILON32),MIN32=pow(2,-126);function roundTiesToEven(n){return n+1/EPSILON-1/EPSILON}function sign(x){return(x=+x)==0||
x!=x?x:x<0?-1:1}function asinh(x){return!isFinite(x=+x)||x==0?x:x<0?-asinh(-x):log(x+sqrt(x*x+1))}function expm1(x){return(x=+x)==0?x:x>-1E-6&&x<1E-6?x+x*x/2:exp(x)-1}$def($def.S,"Math",{acosh:function acosh(x){return(x=+x)<1?NaN:isFinite(x)?log(x/E+sqrt(x+1)*sqrt(x-1)/E)+1:x},asinh:asinh,atanh:function atanh(x){return(x=+x)==0?x:log((1+x)/(1-x))/2},cbrt:function cbrt(x){return sign(x=+x)*pow(abs(x),1/3)},clz32:function clz32(x){return(x>>>=0)?31-floor(log(x+.5)*Math.LOG2E):32},cosh:function cosh(x){return(exp(x=
+x)+exp(-x))/2},expm1:expm1,fround:function fround(x){var $abs=abs(x),$sign=sign(x),a,result;if($abs<MIN32)return $sign*roundTiesToEven($abs/MIN32/EPSILON32)*MIN32*EPSILON32;a=(1+EPSILON32/EPSILON)*$abs;result=a-(a-$abs);if(result>MAX32||result!=result)return $sign*Infinity;return $sign*result},hypot:function hypot(value1,value2){var sum=0,len1=arguments.length,len2=len1,args=Array(len1),larg=-Infinity,arg;while(len1--){arg=args[len1]=+arguments[len1];if(arg==Infinity||arg==-Infinity)return Infinity;
if(arg>larg)larg=arg}larg=arg||1;while(len2--)sum+=pow(args[len2]/larg,2);return larg*sqrt(sum)},imul:function imul(x,y){var UInt16=65535,xn=+x,yn=+y,xl=UInt16&xn,yl=UInt16&yn;return 0|xl*yl+((UInt16&xn>>>16)*yl+xl*(UInt16&yn>>>16)<<16>>>0)},log1p:function log1p(x){return(x=+x)>-1E-8&&x<1E-8?x-x*x/2:log(1+x)},log10:function log10(x){return log(x)/Math.LN10},log2:function log2(x){return log(x)/Math.LN2},sign:sign,sinh:function sinh(x){return abs(x=+x)<1?(expm1(x)-expm1(-x))/2:(exp(x-1)-exp(-x-1))*
(E/2)},tanh:function tanh(x){var a=expm1(x=+x),b=expm1(-x);return a==Infinity?1:b==Infinity?-1:(a-b)/(exp(x)+exp(-x))},trunc:function trunc(it){return(it>0?floor:ceil)(it)}})},{"./$.def":11}],40:[function(require,module,exports){var $=require("./$"),isObject=$.isObject,isFunction=$.isFunction,NUMBER="Number",Number=$.g[NUMBER],Base=Number,proto=Number.prototype;function toPrimitive(it){var fn,val;if(isFunction(fn=it.valueOf)&&!isObject(val=fn.call(it)))return val;if(isFunction(fn=it.toString)&&!isObject(val=
fn.call(it)))return val;throw TypeError("Can't convert object to number");}function toNumber(it){if(isObject(it))it=toPrimitive(it);if(typeof it=="string"&&it.length>2&&it.charCodeAt(0)==48){var binary=false;switch(it.charCodeAt(1)){case 66:case 98:binary=true;case 79:case 111:return parseInt(it.slice(2),binary?2:8)}}return+it}if($.FW&&!(Number("0o1")&&Number("0b1"))){Number=function Number(it){return this instanceof Number?new Base(toNumber(it)):toNumber(it)};$.each.call($.DESC?$.getNames(Base):
("MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,"+"EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,"+"MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger").split(","),function(key){if($.has(Base,key)&&!$.has(Number,key))$.setDesc(Number,key,$.getDesc(Base,key))});Number.prototype=proto;proto.constructor=Number;$.hide($.g,NUMBER,Number)}},{"./$":16}],41:[function(require,module,exports){var $=require("./$"),$def=require("./$.def"),abs=Math.abs,floor=Math.floor,_isFinite=$.g.isFinite,
MAX_SAFE_INTEGER=9007199254740991;function isInteger(it){return!$.isObject(it)&&_isFinite(it)&&floor(it)===it}$def($def.S,"Number",{EPSILON:Math.pow(2,-52),isFinite:function isFinite(it){return typeof it=="number"&&_isFinite(it)},isInteger:isInteger,isNaN:function isNaN(number){return number!=number},isSafeInteger:function isSafeInteger(number){return isInteger(number)&&abs(number)<=MAX_SAFE_INTEGER},MAX_SAFE_INTEGER:MAX_SAFE_INTEGER,MIN_SAFE_INTEGER:-MAX_SAFE_INTEGER,parseFloat:parseFloat,parseInt:parseInt})},
{"./$":16,"./$.def":11}],42:[function(require,module,exports){var $def=require("./$.def");$def($def.S,"Object",{assign:require("./$.assign")})},{"./$.assign":5,"./$.def":11}],43:[function(require,module,exports){var $def=require("./$.def");$def($def.S,"Object",{is:function is(x,y){return x===y?x!==0||1/x===1/y:x!=x&&y!=y}})},{"./$.def":11}],44:[function(require,module,exports){var $def=require("./$.def");$def($def.S,"Object",{setPrototypeOf:require("./$.set-proto").set})},{"./$.def":11,"./$.set-proto":21}],
45:[function(require,module,exports){var $=require("./$"),$def=require("./$.def"),isObject=$.isObject,toObject=$.toObject;function wrapObjectMethod(METHOD,MODE){var fn=($.core.Object||{})[METHOD]||Object[METHOD],f=0,o={};o[METHOD]=MODE==1?function(it){return isObject(it)?fn(it):it}:MODE==2?function(it){return isObject(it)?fn(it):true}:MODE==3?function(it){return isObject(it)?fn(it):false}:MODE==4?function getOwnPropertyDescriptor(it,key){return fn(toObject(it),key)}:MODE==5?function getPrototypeOf(it){return fn(Object($.assertDefined(it)))}:
function(it){return fn(toObject(it))};try{fn("z")}catch(e){f=1}$def($def.S+$def.F*f,"Object",o)}wrapObjectMethod("freeze",1);wrapObjectMethod("seal",1);wrapObjectMethod("preventExtensions",1);wrapObjectMethod("isFrozen",2);wrapObjectMethod("isSealed",2);wrapObjectMethod("isExtensible",3);wrapObjectMethod("getOwnPropertyDescriptor",4);wrapObjectMethod("getPrototypeOf",5);wrapObjectMethod("keys");wrapObjectMethod("getOwnPropertyNames")},{"./$":16,"./$.def":11}],46:[function(require,module,exports){var $=
require("./$"),cof=require("./$.cof"),tmp={};tmp[require("./$.wks")("toStringTag")]="z";if($.FW&&cof(tmp)!="z")$.hide(Object.prototype,"toString",function toString(){return"[object "+cof.classof(this)+"]"})},{"./$":16,"./$.cof":6,"./$.wks":27}],47:[function(require,module,exports){var $=require("./$"),ctx=require("./$.ctx"),cof=require("./$.cof"),$def=require("./$.def"),assert=require("./$.assert"),$iter=require("./$.iter"),SPECIES=require("./$.wks")("species"),RECORD=require("./$.uid").safe("record"),
forOf=$iter.forOf,PROMISE="Promise",global=$.g,process=global.process,asap=process&&process.nextTick||require("./$.task").set,P=global[PROMISE],Base=P,isFunction=$.isFunction,isObject=$.isObject,assertFunction=assert.fn,assertObject=assert.obj,test;function getConstructor(C){var S=assertObject(C)[SPECIES];return S!=undefined?S:C}function isThenable(it){var then;if(isObject(it))then=it.then;return isFunction(then)?then:false}function isUnhandled(promise){var record=promise[RECORD],chain=record.c,i=
0,react;if(record.h)return false;while(chain.length>i){react=chain[i++];if(react.fail||!isUnhandled(react.P))return false}return true}function notify(record,isReject){var chain=record.c;if(isReject||chain.length)asap(function(){var promise=record.p,value=record.v,ok=record.s==1,i=0;if(isReject&&isUnhandled(promise))setTimeout(function(){if(isUnhandled(promise))if(cof(process)=="process")process.emit("unhandledRejection",value,promise);else if(global.console&&isFunction(console.error))console.error("Unhandled promise rejection",
value)},1E3);else while(chain.length>i)!function(react){var cb=ok?react.ok:react.fail,ret,then;try{if(cb){if(!ok)record.h=true;ret=cb===true?value:cb(value);if(ret===react.P)react.rej(TypeError(PROMISE+"-chain cycle"));else if(then=isThenable(ret))then.call(ret,react.res,react.rej);else react.res(ret)}else react.rej(value)}catch(err){react.rej(err)}}(chain[i++]);chain.length=0})}function $reject(value){var record=this;if(record.d)return;record.d=true;record=record.r||record;record.v=value;record.s=
2;notify(record,true)}function $resolve(value){var record=this,then,wrapper;if(record.d)return;record.d=true;record=record.r||record;try{if(then=isThenable(value)){wrapper={r:record,d:false};then.call(value,ctx($resolve,wrapper,1),ctx($reject,wrapper,1))}else{record.v=value;record.s=1;notify(record)}}catch(err){$reject.call(wrapper||{r:record,d:false},err)}}if(!(isFunction(P)&&isFunction(P.resolve)&&P.resolve(test=new P(function(){}))==test)){P=function Promise(executor){assertFunction(executor);
var record={p:assert.inst(this,P,PROMISE),c:[],s:0,d:false,v:undefined,h:false};$.hide(this,RECORD,record);try{executor(ctx($resolve,record,1),ctx($reject,record,1))}catch(err){$reject.call(record,err)}};$.mix(P.prototype,{then:function then(onFulfilled,onRejected){var S=assertObject(assertObject(this).constructor)[SPECIES];var react={ok:isFunction(onFulfilled)?onFulfilled:true,fail:isFunction(onRejected)?onRejected:false};var promise=react.P=new (S!=undefined?S:P)(function(res,rej){react.res=assertFunction(res);
react.rej=assertFunction(rej)});var record=this[RECORD];record.c.push(react);record.s&&notify(record);return promise},"catch":function(onRejected){return this.then(undefined,onRejected)}})}$def($def.G+$def.W+$def.F*(P!=Base),{Promise:P});cof.set(P,PROMISE);require("./$.species")(P);$def($def.S,PROMISE,{reject:function reject(r){return new (getConstructor(this))(function(res,rej){rej(r)})},resolve:function resolve(x){return isObject(x)&&RECORD in x&&$.getProto(x)===this.prototype?x:new (getConstructor(this))(function(res){res(x)})}});
$def($def.S+$def.F*!require("./$.iter-detect")(function(iter){P.all(iter)["catch"](function(){})}),PROMISE,{all:function all(iterable){var C=getConstructor(this),values=[];return new C(function(res,rej){forOf(iterable,false,values.push,values);var remaining=values.length,results=Array(remaining);if(remaining)$.each.call(values,function(promise,index){C.resolve(promise).then(function(value){results[index]=value;--remaining||res(results)},rej)});else res(results)})},race:function race(iterable){var C=
getConstructor(this);return new C(function(res,rej){forOf(iterable,false,function(promise){C.resolve(promise).then(res,rej)})})}})},{"./$":16,"./$.assert":4,"./$.cof":6,"./$.ctx":10,"./$.def":11,"./$.iter":15,"./$.iter-detect":14,"./$.species":22,"./$.task":24,"./$.uid":25,"./$.wks":27}],48:[function(require,module,exports){var $=require("./$"),$def=require("./$.def"),setProto=require("./$.set-proto"),$iter=require("./$.iter"),ITER=require("./$.uid").safe("iter"),step=$iter.step,assert=require("./$.assert"),
isObject=$.isObject,getDesc=$.getDesc,setDesc=$.setDesc,getProto=$.getProto,apply=Function.apply,assertObject=assert.obj,_isExtensible=Object.isExtensible||$.it;function Enumerate(iterated){var keys=[],key;for(key in iterated)keys.push(key);$.set(this,ITER,{o:iterated,a:keys,i:0})}$iter.create(Enumerate,"Object",function(){var iter=this[ITER],keys=iter.a,key;do if(iter.i>=keys.length)return step(1);while(!((key=keys[iter.i++])in iter.o));return step(0,key)});function wrap(fn){return function(it){assertObject(it);
try{fn.apply(undefined,arguments);return true}catch(e){return false}}}function get(target,propertyKey){var receiver=arguments.length<3?target:arguments[2],desc=getDesc(assertObject(target),propertyKey),proto;if(desc)return $.has(desc,"value")?desc.value:desc.get===undefined?undefined:desc.get.call(receiver);return isObject(proto=getProto(target))?get(proto,propertyKey,receiver):undefined}function set(target,propertyKey,V){var receiver=arguments.length<4?target:arguments[3],ownDesc=getDesc(assertObject(target),
propertyKey),existingDescriptor,proto;if(!ownDesc){if(isObject(proto=getProto(target)))return set(proto,propertyKey,V,receiver);ownDesc=$.desc(0)}if($.has(ownDesc,"value")){if(ownDesc.writable===false||!isObject(receiver))return false;existingDescriptor=getDesc(receiver,propertyKey)||$.desc(0);existingDescriptor.value=V;setDesc(receiver,propertyKey,existingDescriptor);return true}return ownDesc.set===undefined?false:(ownDesc.set.call(receiver,V),true)}var reflect={apply:require("./$.ctx")(Function.call,
apply,3),construct:function construct(target,argumentsList){var proto=assert.fn(arguments.length<3?target:arguments[2]).prototype,instance=$.create(isObject(proto)?proto:Object.prototype),result=apply.call(target,instance,argumentsList);return isObject(result)?result:instance},defineProperty:wrap(setDesc),deleteProperty:function deleteProperty(target,propertyKey){var desc=getDesc(assertObject(target),propertyKey);return desc&&!desc.configurable?false:delete target[propertyKey]},enumerate:function enumerate(target){return new Enumerate(assertObject(target))},
get:get,getOwnPropertyDescriptor:function getOwnPropertyDescriptor(target,propertyKey){return getDesc(assertObject(target),propertyKey)},getPrototypeOf:function getPrototypeOf(target){return getProto(assertObject(target))},has:function has(target,propertyKey){return propertyKey in target},isExtensible:function isExtensible(target){return!!_isExtensible(assertObject(target))},ownKeys:require("./$.own-keys"),preventExtensions:wrap(Object.preventExtensions||$.it),set:set};if(setProto)reflect.setPrototypeOf=
function setPrototypeOf(target,proto){setProto.check(target,proto);try{setProto.set(target,proto);return true}catch(e){return false}};$def($def.G,{Reflect:{}});$def($def.S,"Reflect",reflect)},{"./$":16,"./$.assert":4,"./$.ctx":10,"./$.def":11,"./$.iter":15,"./$.own-keys":18,"./$.set-proto":21,"./$.uid":25}],49:[function(require,module,exports){var $=require("./$"),cof=require("./$.cof"),RegExp=$.g.RegExp,Base=RegExp,proto=RegExp.prototype;if($.FW&&$.DESC){if(!function(){try{return RegExp(/a/g,"i")==
"/a/i"}catch(e){}}()){RegExp=function RegExp(pattern,flags){return new Base(cof(pattern)=="RegExp"&&flags!==undefined?pattern.source:pattern,flags)};$.each.call($.getNames(Base),function(key){key in RegExp||$.setDesc(RegExp,key,{configurable:true,get:function(){return Base[key]},set:function(it){Base[key]=it}})});proto.constructor=RegExp;RegExp.prototype=proto;$.hide($.g,"RegExp",RegExp)}if(/./g.flags!="g")$.setDesc(proto,"flags",{configurable:true,get:require("./$.replacer")(/^.*\/(\w*)$/,"$1")})}require("./$.species")(RegExp)},
{"./$":16,"./$.cof":6,"./$.replacer":20,"./$.species":22}],50:[function(require,module,exports){var strong=require("./$.collection-strong");require("./$.collection")("Set",{add:function add(value){return strong.def(this,value=value===0?0:value,value)}},strong)},{"./$.collection":9,"./$.collection-strong":7}],51:[function(require,module,exports){var $def=require("./$.def");$def($def.P,"String",{codePointAt:require("./$.string-at")(false)})},{"./$.def":11,"./$.string-at":23}],52:[function(require,module,
exports){var $=require("./$"),cof=require("./$.cof"),$def=require("./$.def"),toLength=$.toLength;$def($def.P,"String",{endsWith:function endsWith(searchString){if(cof(searchString)=="RegExp")throw TypeError();var that=String($.assertDefined(this)),endPosition=arguments[1],len=toLength(that.length),end=endPosition===undefined?len:Math.min(toLength(endPosition),len);searchString+="";return that.slice(end-searchString.length,end)===searchString}})},{"./$":16,"./$.cof":6,"./$.def":11}],53:[function(require,
module,exports){var $def=require("./$.def"),toIndex=require("./$").toIndex,fromCharCode=String.fromCharCode;$def($def.S,"String",{fromCodePoint:function fromCodePoint(x){var res=[],len=arguments.length,i=0,code;while(len>i){code=+arguments[i++];if(toIndex(code,1114111)!==code)throw RangeError(code+" is not a valid code point");res.push(code<65536?fromCharCode(code):fromCharCode(((code-=65536)>>10)+55296,code%1024+56320))}return res.join("")}})},{"./$":16,"./$.def":11}],54:[function(require,module,
exports){var $=require("./$"),cof=require("./$.cof"),$def=require("./$.def");$def($def.P,"String",{includes:function includes(searchString){if(cof(searchString)=="RegExp")throw TypeError();return!!~String($.assertDefined(this)).indexOf(searchString,arguments[1])}})},{"./$":16,"./$.cof":6,"./$.def":11}],55:[function(require,module,exports){var set=require("./$").set,at=require("./$.string-at")(true),ITER=require("./$.uid").safe("iter"),$iter=require("./$.iter"),step=$iter.step;$iter.std(String,"String",
function(iterated){set(this,ITER,{o:String(iterated),i:0})},function(){var iter=this[ITER],O=iter.o,index=iter.i,point;if(index>=O.length)return step(1);point=at.call(O,index);iter.i+=point.length;return step(0,point)})},{"./$":16,"./$.iter":15,"./$.string-at":23,"./$.uid":25}],56:[function(require,module,exports){var $=require("./$"),$def=require("./$.def");$def($def.S,"String",{raw:function raw(callSite){var tpl=$.toObject(callSite.raw),len=$.toLength(tpl.length),sln=arguments.length,res=[],i=0;
while(len>i){res.push(String(tpl[i++]));if(i<sln)res.push(String(arguments[i]))}return res.join("")}})},{"./$":16,"./$.def":11}],57:[function(require,module,exports){var $=require("./$"),$def=require("./$.def");$def($def.P,"String",{repeat:function repeat(count){var str=String($.assertDefined(this)),res="",n=$.toInteger(count);if(n<0||n==Infinity)throw RangeError("Count can't be negative");for(;n>0;(n>>>=1)&&(str+=str))if(n&1)res+=str;return res}})},{"./$":16,"./$.def":11}],58:[function(require,module,
exports){var $=require("./$"),cof=require("./$.cof"),$def=require("./$.def");$def($def.P,"String",{startsWith:function startsWith(searchString){if(cof(searchString)=="RegExp")throw TypeError();var that=String($.assertDefined(this)),index=$.toLength(Math.min(arguments[1],that.length));searchString+="";return that.slice(index,index+searchString.length)===searchString}})},{"./$":16,"./$.cof":6,"./$.def":11}],59:[function(require,module,exports){var $=require("./$"),setTag=require("./$.cof").set,uid=
require("./$.uid"),$def=require("./$.def"),keyOf=require("./$.keyof"),has=$.has,hide=$.hide,getNames=$.getNames,toObject=$.toObject,Symbol=$.g.Symbol,Base=Symbol,setter=false,TAG=uid.safe("tag"),SymbolRegistry={},AllSymbols={};function wrap(tag){var sym=AllSymbols[tag]=$.set($.create(Symbol.prototype),TAG,tag);$.DESC&&setter&&$.setDesc(Object.prototype,tag,{configurable:true,set:function(value){hide(this,tag,value)}});return sym}if(!$.isFunction(Symbol)){Symbol=function Symbol(description){if(this instanceof
Symbol)throw TypeError("Symbol is not a constructor");return wrap(uid(description))};hide(Symbol.prototype,"toString",function(){return this[TAG]})}$def($def.G+$def.W,{Symbol:Symbol});var symbolStatics={"for":function(key){return has(SymbolRegistry,key+="")?SymbolRegistry[key]:SymbolRegistry[key]=Symbol(key)},keyFor:function keyFor(key){return keyOf(SymbolRegistry,key)},pure:uid.safe,set:$.set,useSetter:function(){setter=true},useSimple:function(){setter=false}};$.each.call(("hasInstance,isConcatSpreadable,iterator,match,replace,search,"+
"species,split,toPrimitive,toStringTag,unscopables").split(","),function(it){var sym=require("./$.wks")(it);symbolStatics[it]=Symbol===Base?sym:wrap(sym)});setter=true;$def($def.S,"Symbol",symbolStatics);$def($def.S+$def.F*(Symbol!=Base),"Object",{getOwnPropertyNames:function getOwnPropertyNames(it){var names=getNames(toObject(it)),result=[],key,i=0;while(names.length>i)has(AllSymbols,key=names[i++])||result.push(key);return result},getOwnPropertySymbols:function getOwnPropertySymbols(it){var names=
getNames(toObject(it)),result=[],key,i=0;while(names.length>i)has(AllSymbols,key=names[i++])&&result.push(AllSymbols[key]);return result}});setTag(Symbol,"Symbol");setTag(Math,"Math",true);setTag($.g.JSON,"JSON",true)},{"./$":16,"./$.cof":6,"./$.def":11,"./$.keyof":17,"./$.uid":25,"./$.wks":27}],60:[function(require,module,exports){var $=require("./$"),weak=require("./$.collection-weak"),leakStore=weak.leakStore,ID=weak.ID,WEAK=weak.WEAK,has=$.has,isObject=$.isObject,isFrozen=Object.isFrozen||$.core.Object.isFrozen,
tmp={};var WeakMap=require("./$.collection")("WeakMap",{get:function get(key){if(isObject(key)){if(isFrozen(key))return leakStore(this).get(key);if(has(key,WEAK))return key[WEAK][this[ID]]}},set:function set(key,value){return weak.def(this,key,value)}},weak,true,true);if($.FW&&(new WeakMap).set((Object.freeze||Object)(tmp),7).get(tmp)!=7)$.each.call(["delete","has","get","set"],function(key){var method=WeakMap.prototype[key];WeakMap.prototype[key]=function(a,b){if(isObject(a)&&isFrozen(a)){var result=
leakStore(this)[key](a,b);return key=="set"?this:result}return method.call(this,a,b)}})},{"./$":16,"./$.collection":9,"./$.collection-weak":8}],61:[function(require,module,exports){var weak=require("./$.collection-weak");require("./$.collection")("WeakSet",{add:function add(value){return weak.def(this,value,true)}},weak,false,true)},{"./$.collection":9,"./$.collection-weak":8}],62:[function(require,module,exports){var $def=require("./$.def");$def($def.P,"Array",{includes:require("./$.array-includes")(true)});
require("./$.unscope")("includes")},{"./$.array-includes":2,"./$.def":11,"./$.unscope":26}],63:[function(require,module,exports){var $=require("./$"),$def=require("./$.def"),ownKeys=require("./$.own-keys");$def($def.S,"Object",{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(object){var O=$.toObject(object),result={};$.each.call(ownKeys(O),function(key){$.setDesc(result,key,$.desc(0,$.getDesc(O,key)))});return result}})},{"./$":16,"./$.def":11,"./$.own-keys":18}],64:[function(require,
module,exports){var $=require("./$"),$def=require("./$.def");function createObjectToArray(isEntries){return function(object){var O=$.toObject(object),keys=$.getKeys(object),length=keys.length,i=0,result=Array(length),key;if(isEntries)while(length>i)result[i]=[key=keys[i++],O[key]];else while(length>i)result[i]=O[keys[i++]];return result}}$def($def.S,"Object",{values:createObjectToArray(false),entries:createObjectToArray(true)})},{"./$":16,"./$.def":11}],65:[function(require,module,exports){var $def=
require("./$.def");$def($def.S,"RegExp",{escape:require("./$.replacer")(/([\\\-[\]{}()*+?.,^$|])/g,"\\$1",true)})},{"./$.def":11,"./$.replacer":20}],66:[function(require,module,exports){var $def=require("./$.def"),forOf=require("./$.iter").forOf;$def($def.P,"Set",{toJSON:function(){var arr=[];forOf(this,false,arr.push,arr);return arr}})},{"./$.def":11,"./$.iter":15}],67:[function(require,module,exports){var $def=require("./$.def");$def($def.P,"String",{at:require("./$.string-at")(true)})},{"./$.def":11,
"./$.string-at":23}],68:[function(require,module,exports){var $=require("./$"),$def=require("./$.def"),$Array=$.core.Array||Array,statics={};function setStatics(keys,length){$.each.call(keys.split(","),function(key){if(length==undefined&&key in $Array)statics[key]=$Array[key];else if(key in[])statics[key]=require("./$.ctx")(Function.call,[][key],length)})}setStatics("pop,reverse,shift,keys,values,entries",1);setStatics("indexOf,every,some,forEach,map,filter,find,findIndex,includes",3);setStatics("join,slice,concat,push,splice,unshift,sort,lastIndexOf,"+
"reduce,reduceRight,copyWithin,fill,turn");$def($def.S,"Array",statics)},{"./$":16,"./$.ctx":10,"./$.def":11}],69:[function(require,module,exports){require("./es6.array.iterator");var $=require("./$"),Iterators=require("./$.iter").Iterators,ITERATOR=require("./$.wks")("iterator"),NodeList=$.g.NodeList;if($.FW&&NodeList&&!(ITERATOR in NodeList.prototype))$.hide(NodeList.prototype,ITERATOR,Iterators.Array);Iterators.NodeList=Iterators.Array},{"./$":16,"./$.iter":15,"./$.wks":27,"./es6.array.iterator":34}],
70:[function(require,module,exports){var $def=require("./$.def"),$task=require("./$.task");$def($def.G+$def.B,{setImmediate:$task.set,clearImmediate:$task.clear})},{"./$.def":11,"./$.task":24}],71:[function(require,module,exports){var $=require("./$"),$def=require("./$.def"),invoke=require("./$.invoke"),partial=require("./$.partial"),MSIE=!!$.g.navigator&&/MSIE .\./.test(navigator.userAgent);function wrap(set){return MSIE?function(fn,time){return set(invoke(partial,[].slice.call(arguments,2),$.isFunction(fn)?
fn:Function(fn)),time)}:set}$def($def.G+$def.B+$def.F*MSIE,{setTimeout:wrap($.g.setTimeout),setInterval:wrap($.g.setInterval)})},{"./$":16,"./$.def":11,"./$.invoke":13,"./$.partial":19}],72:[function(require,module,exports){require("./modules/es5");require("./modules/es6.symbol");require("./modules/es6.object.assign");require("./modules/es6.object.is");require("./modules/es6.object.set-prototype-of");require("./modules/es6.object.to-string");require("./modules/es6.object.statics-accept-primitives");
require("./modules/es6.function.name");require("./modules/es6.number.constructor");require("./modules/es6.number.statics");require("./modules/es6.math");require("./modules/es6.string.from-code-point");require("./modules/es6.string.raw");require("./modules/es6.string.iterator");require("./modules/es6.string.code-point-at");require("./modules/es6.string.ends-with");require("./modules/es6.string.includes");require("./modules/es6.string.repeat");require("./modules/es6.string.starts-with");require("./modules/es6.array.from");
require("./modules/es6.array.of");require("./modules/es6.array.iterator");require("./modules/es6.array.species");require("./modules/es6.array.copy-within");require("./modules/es6.array.fill");require("./modules/es6.array.find");require("./modules/es6.array.find-index");require("./modules/es6.regexp");require("./modules/es6.promise");require("./modules/es6.map");require("./modules/es6.set");require("./modules/es6.weak-map");require("./modules/es6.weak-set");require("./modules/es6.reflect");require("./modules/es7.array.includes");
require("./modules/es7.string.at");require("./modules/es7.regexp.escape");require("./modules/es7.object.get-own-property-descriptors");require("./modules/es7.object.to-array");require("./modules/es7.set.to-json");require("./modules/js.array.statics");require("./modules/web.timers");require("./modules/web.immediate");require("./modules/web.dom.iterable");module.exports=require("./modules/$").core},{"./modules/$":16,"./modules/es5":28,"./modules/es6.array.copy-within":29,"./modules/es6.array.fill":30,
"./modules/es6.array.find":32,"./modules/es6.array.find-index":31,"./modules/es6.array.from":33,"./modules/es6.array.iterator":34,"./modules/es6.array.of":35,"./modules/es6.array.species":36,"./modules/es6.function.name":37,"./modules/es6.map":38,"./modules/es6.math":39,"./modules/es6.number.constructor":40,"./modules/es6.number.statics":41,"./modules/es6.object.assign":42,"./modules/es6.object.is":43,"./modules/es6.object.set-prototype-of":44,"./modules/es6.object.statics-accept-primitives":45,"./modules/es6.object.to-string":46,
"./modules/es6.promise":47,"./modules/es6.reflect":48,"./modules/es6.regexp":49,"./modules/es6.set":50,"./modules/es6.string.code-point-at":51,"./modules/es6.string.ends-with":52,"./modules/es6.string.from-code-point":53,"./modules/es6.string.includes":54,"./modules/es6.string.iterator":55,"./modules/es6.string.raw":56,"./modules/es6.string.repeat":57,"./modules/es6.string.starts-with":58,"./modules/es6.symbol":59,"./modules/es6.weak-map":60,"./modules/es6.weak-set":61,"./modules/es7.array.includes":62,
"./modules/es7.object.get-own-property-descriptors":63,"./modules/es7.object.to-array":64,"./modules/es7.regexp.escape":65,"./modules/es7.set.to-json":66,"./modules/es7.string.at":67,"./modules/js.array.statics":68,"./modules/web.dom.iterable":69,"./modules/web.immediate":70,"./modules/web.timers":71}],73:[function(require,module,exports){(function(global){!function(global){var hasOwn=Object.prototype.hasOwnProperty;var undefined;var iteratorSymbol=typeof Symbol==="function"&&Symbol.iterator||"@@iterator";
var inModule=typeof module==="object";var runtime=global.regeneratorRuntime;if(runtime){if(inModule)module.exports=runtime;return}runtime=global.regeneratorRuntime=inModule?module.exports:{};function wrap(innerFn,outerFn,self,tryLocsList){var generator=Object.create((outerFn||Generator).prototype);generator._invoke=makeInvokeMethod(innerFn,self||null,new Context(tryLocsList||[]));return generator}runtime.wrap=wrap;function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)}}catch(err){return{type:"throw",
arg:err}}}var GenStateSuspendedStart="suspendedStart";var GenStateSuspendedYield="suspendedYield";var GenStateExecuting="executing";var GenStateCompleted="completed";var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype;GeneratorFunction.prototype=Gp.constructor=GeneratorFunctionPrototype;GeneratorFunctionPrototype.constructor=GeneratorFunction;GeneratorFunction.displayName=
"GeneratorFunction";runtime.isGeneratorFunction=function(genFun){var ctor=typeof genFun==="function"&&genFun.constructor;return ctor?ctor===GeneratorFunction||(ctor.displayName||ctor.name)==="GeneratorFunction":false};runtime.mark=function(genFun){genFun.__proto__=GeneratorFunctionPrototype;genFun.prototype=Object.create(Gp);return genFun};runtime.async=function(innerFn,outerFn,self,tryLocsList){return new Promise(function(resolve,reject){var generator=wrap(innerFn,outerFn,self,tryLocsList);var callNext=
step.bind(generator,"next");var callThrow=step.bind(generator,"throw");function step(method,arg){var record=tryCatch(generator[method],generator,arg);if(record.type==="throw"){reject(record.arg);return}var info=record.arg;if(info.done)resolve(info.value);else Promise.resolve(info.value).then(callNext,callThrow)}callNext()})};function makeInvokeMethod(innerFn,self,context){var state=GenStateSuspendedStart;return function invoke(method,arg){if(state===GenStateExecuting)throw new Error("Generator is already running");
if(state===GenStateCompleted)return doneResult();while(true){var delegate=context.delegate;if(delegate){if(method==="return"||method==="throw"&&delegate.iterator.throw===undefined){context.delegate=null;var returnMethod=delegate.iterator.return;if(returnMethod){var record=tryCatch(returnMethod,delegate.iterator,arg);if(record.type==="throw"){method="throw";arg=record.arg;continue}}if(method==="return")continue}var record=tryCatch(delegate.iterator[method],delegate.iterator,arg);if(record.type==="throw"){context.delegate=
null;method="throw";arg=record.arg;continue}method="next";arg=undefined;var info=record.arg;if(info.done){context[delegate.resultName]=info.value;context.next=delegate.nextLoc}else{state=GenStateSuspendedYield;return info}context.delegate=null}if(method==="next")if(state===GenStateSuspendedYield)context.sent=arg;else delete context.sent;else if(method==="throw"){if(state===GenStateSuspendedStart){state=GenStateCompleted;throw arg;}if(context.dispatchException(arg)){method="next";arg=undefined}}else if(method===
"return")context.abrupt("return",arg);state=GenStateExecuting;var record=tryCatch(innerFn,self,context);if(record.type==="normal"){state=context.done?GenStateCompleted:GenStateSuspendedYield;var info={value:record.arg,done:context.done};if(record.arg===ContinueSentinel){if(context.delegate&&method==="next")arg=undefined}else return info}else if(record.type==="throw"){state=GenStateCompleted;method="throw";arg=record.arg}}}}function defineGeneratorMethod(method){Gp[method]=function(arg){return this._invoke(method,
arg)}}defineGeneratorMethod("next");defineGeneratorMethod("throw");defineGeneratorMethod("return");Gp[iteratorSymbol]=function(){return this};Gp.toString=function(){return"[object Generator]"};function pushTryEntry(locs){var entry={tryLoc:locs[0]};if(1 in locs)entry.catchLoc=locs[1];if(2 in locs){entry.finallyLoc=locs[2];entry.afterLoc=locs[3]}this.tryEntries.push(entry)}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal";delete record.arg;entry.completion=record}function Context(tryLocsList){this.tryEntries=
[{tryLoc:"root"}];tryLocsList.forEach(pushTryEntry,this);this.reset()}runtime.keys=function(object){var keys=[];for(var key in object)keys.push(key);keys.reverse();return function next(){while(keys.length){var key=keys.pop();if(key in object){next.value=key;next.done=false;return next}}next.done=true;return next}};function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if(typeof iterable.next==="function")return iterable;
if(!isNaN(iterable.length)){var i=-1,next=function next(){while(++i<iterable.length)if(hasOwn.call(iterable,i)){next.value=iterable[i];next.done=false;return next}next.value=undefined;next.done=true;return next};return next.next=next}}return{next:doneResult}}runtime.values=values;function doneResult(){return{value:undefined,done:true}}Context.prototype={constructor:Context,reset:function(){this.prev=0;this.next=0;this.sent=undefined;this.done=false;this.delegate=null;this.tryEntries.forEach(resetTryEntry);
for(var tempIndex=0,tempName;hasOwn.call(this,tempName="t"+tempIndex)||tempIndex<20;++tempIndex)this[tempName]=null},stop:function(){this.done=true;var rootEntry=this.tryEntries[0];var rootRecord=rootEntry.completion;if(rootRecord.type==="throw")throw rootRecord.arg;return this.rval},dispatchException:function(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){record.type="throw";record.arg=exception;context.next=loc;return!!caught}for(var i=this.tryEntries.length-
1;i>=0;--i){var entry=this.tryEntries[i];var record=entry.completion;if(entry.tryLoc==="root")return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc");var hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally)if(this.prev<entry.catchLoc)return handle(entry.catchLoc,true);else{if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc)}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,true)}else if(hasFinally){if(this.prev<
entry.finallyLoc)return handle(entry.finallyLoc)}else throw new Error("try statement without catch or finally");}}},abrupt:function(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break}}if(finallyEntry&&(type==="break"||type==="continue")&&finallyEntry.tryLoc<=arg&&arg<finallyEntry.finallyLoc)finallyEntry=null;var record=finallyEntry?finallyEntry.completion:
{};record.type=type;record.arg=arg;if(finallyEntry)this.next=finallyEntry.finallyLoc;else this.complete(record);return ContinueSentinel},complete:function(record,afterLoc){if(record.type==="throw")throw record.arg;if(record.type==="break"||record.type==="continue")this.next=record.arg;else if(record.type==="return"){this.rval=record.arg;this.next="end"}else if(record.type==="normal"&&afterLoc)this.next=afterLoc;return ContinueSentinel},finish:function(finallyLoc){for(var i=this.tryEntries.length-
1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc)}},"catch":function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if(record.type==="throw"){var thrown=record.arg;resetTryEntry(entry)}return thrown}}throw new Error("illegal catch attempt");},delegateYield:function(iterable,resultName,nextLoc){this.delegate={iterator:values(iterable),
resultName:resultName,nextLoc:nextLoc};return ContinueSentinel}}}(typeof global==="object"?global:typeof window==="object"?window:typeof self==="object"?self:this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}]},{},[1]);
Liferay.Loader.define("intelligence-module",["module","exports","require"],function(module,exports,require){this.context;this.urlTarget;this.urlSource;this.slug;this.completeContext;this.query;this.type;var $=window.jQuery||function(){throw new Error("unavailable jquery function");};var intelligenceDom=function(){function intelligenceDom(){var _completeContext={"completeContext":this.completeContext,"slug":this.slug,"urlSource":this.urlSource,"urlTarget":this.urlTarget,"contextCode":this.context,
"type":this.type};return _completeContext}return intelligenceDom}();exports.default=intelligenceDom;var setIntelligenceDom=function(){function setIntelligenceDom(_context){this.context=_context}return setIntelligenceDom}();var setContextCompleted=function(){function setContextCompleted(_context){this.completeContext=_context}return setContextCompleted}();var setIntelligenceDom=function(){function setIntelligenceDom(_context){this.context=_context}return setIntelligenceDom}();var setUrl=function(){function setUrl(_url){if(!this.urlTarget&&
!this.urlSource)this.urlTarget=_url;else{this.urlSource=this.urlTarget;this.urlTarget=_url}}return setUrl}();var setType=function(){function setType(_type){this.type=_type}return setType}();var setGlobalQuery=function(){function setGlobalQuery(_query){this.query=_query}return setGlobalQuery}();var setSlug=function(){function setSlug(_slug){this.slug=_slug}return setSlug}();var sendIntelligenceDom=function(){function sendIntelligenceDom(){if(document.body.querySelectorAll('script[type\x3d"application/ld+json"]').length>
0)document.body.querySelectorAll('script[type\x3d"application/ld+json"]')[0].remove();setTimeout(function(){var slug_=$(location).attr("href").replace(window.location.origin,"");console.log("slug_",slug_);var url="/o/ext-api/external-rs/intelligence_request/footer?identifiers\x3d"+this.context+"\x26urlTarget\x3d"+(this.urlTarget?this.urlTarget:"")+"\x26urlSource\x3d"+(this.urlSource?this.urlSource:"")+"\x26slug\x3d"+slug_+"\x26query\x3d"+(this.query?this.query:"")+"\x26type\x3d"+(this.type?this.type:
"");jQuery.ajax({url:url,type:"GET",success:function(data){this.completeContext=data}.bind(this),error:function(data){console.log("error",data)}});var slug_=window.location.href;var title_=document.title;var urlSearch="";var startPage="";var startPageTitle="";if(window.location.pathname.split("/")[1]=="es"){startPage=window.location.href.replace(window.location.pathname,"/es/inicio");startPageTitle="Inicio - Web oficial de turismo de Andaluc\u00eda";urlSearch="https://www.andalucia.org/es/busqueda?query\x3d"}else if(window.location.pathname.split("/")[1]==
"en"){startPage=window.location.href.replace(window.location.pathname,"/en/home");startPageTitle="Home - Official Andalusia tourism website";urlSearch="https://www.andalucia.org/en/search?query\x3d"}else if(window.location.pathname.split("/")[1]=="fr"){startPage=window.location.href.replace(window.location.pathname,"/fr/accueil");startPageTitle="Accueil - Site officiel de tourisme d'Andalousie";urlSearch="https://www.andalucia.org/fr/rechercher?query\x3d"}else if(window.location.pathname.split("/")[1]==
"de"){startPage=window.location.href.replace(window.location.pathname,"/de/startseite");startPageTitle="Startseite - Offizielle Tourismus-Webseite von Andalusien";urlSearch="https://www.andalucia.org/de/suche?query\x3d"}var el=document.createElement("script");el.type="application/ld+json";var json_={"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":startPage+"/#website","url":startPage,"name":startPageTitle,"potentialAction":[{"@type":"SearchAction","target":urlSearch+"{search_term_string}",
"query-input":"required name\x3dsearch_term_string"}],"inLanguage":window.location.pathname.split("/")[1]},{"@type":"WebPage","@id":slug_+"/#webpage","url":slug_,"name":title_,"isPartOf":{"@id":startPage+"/#website"},"inLanguage":window.location.pathname.split("/")[1]}]};el.text=JSON.stringify(json_);document.querySelector("body").appendChild(el)}.bind(this),1500)}return sendIntelligenceDom}();exports.setType=setType;exports.setGlobalQuery=setGlobalQuery;exports.setContextCompleted=setContextCompleted;
exports.setSlug=setSlug;exports.sendIntelligenceDom=sendIntelligenceDom;exports.setIntelligenceDom=setIntelligenceDom;exports.intelligenceDom=intelligenceDom;exports.setUrl=setUrl});
Liferay.Loader.define("link-seeker@1.0.0/js/modules/html-builder",["module","exports","require"],function(module,exports,require){var define=undefined;Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,
descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}var HTMLBuilder=function(){function HTMLBuilder(html){_classCallCheck(this,HTMLBuilder);this._html=new String(html)}_createClass(HTMLBuilder,[{key:"replace",
value:function replace(name,value){this._html=this._html.replace(new RegExp("%"+name+"%","g"),value);if(name=="icon")this._html=this._html.replace(new RegExp("%tooltiptext%","g"),Liferay.Language.get(value));return this}},{key:"get",value:function get(){return this._html}}]);return HTMLBuilder}();exports.default=HTMLBuilder});
Liferay.Loader.define("link-seeker@1.0.0/js/modules/link",["module","exports","require","link-seeker@1.0.0/js/modules/html-builder"],function(module,exports,require){var define=undefined;Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,
descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var _htmlBuilder=require("link-seeker@1.0.0/js/modules/html-builder");var _htmlBuilder2=_interopRequireDefault(_htmlBuilder);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof
Constructor))throw new TypeError("Cannot call a class as a function");}var DEFAULT_HTML='\x3cdiv id\x3d"%global_id%" class\x3d"col-12 col-md-4 col-lg-3 col-xl-2 card-related-resource"\x3e\x3cdiv class\x3d"item"\x3e \x3cdiv class\x3d"icon customtooltip"\x3e\x3cspan class\x3d"%icon%"\x3e\x3c/span\x3e\x3cspan class\x3d"customtooltiptext customtooltip-top"\x3e%tooltiptext%\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d"img"\x3e\x3cimg src\x3d"%image%"\x3e\x3c/div\x3e\x3cdiv class\x3d"item-content"\x3e \x3cdiv class\x3d"title"\x3e \x3ch3\x3e \x3cdiv\x3e%name%\x3c/div\x3e\x3c/h3\x3e \x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e';
var _attrs=["global_id","id","name_es","name_en","name_de","name_fr","x_coord","y_coord","icon","url","image","resource_type_code","resource_type_name","resource_type_color","isSection"];var LinkInstance=function(){function LinkInstance(){var payload=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};_classCallCheck(this,LinkInstance);this._language=typeof payload.language==="string"?payload.language:null;delete payload.language;var _this=this;_attrs.forEach(function(key){if(key.startsWith("name")&&
_this._language!==null&&key.endsWith(_this._language))key="name";_this[key]=payload[key]!==undefined?payload[key]:null});this._selected=payload["selected"]!==undefined?payload["selected"]:false}_createClass(LinkInstance,[{key:"asHTML",value:function asHTML(html){var _this2=this;var replacement=typeof html==="string"&&html!==""?html:DEFAULT_HTML;var builder=new _htmlBuilder2.default(replacement);Object.keys(_this2).filter(function(attr){return typeof _this2[attr]!=="undefined"&&_this2[attr]!==null}).map(function(attr){return[attr,
_this2[attr]]}).forEach(function(entry){return builder.replace(entry[0],entry[1])});return builder.get()}},{key:"getId",value:function getId(){return this.global_id}}]);return LinkInstance}();exports.default=LinkInstance});
Liferay.Loader.define("link-seeker@1.0.0/js/modules/handler",["module","exports","require","link-seeker@1.0.0/js/modules/link"],function(module,exports,require){var define=undefined;Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,
descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var _link=require("link-seeker@1.0.0/js/modules/link");var _link2=_interopRequireDefault(_link);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");
}var searchRequest=function searchRequest(url,config,callback){if(typeof config.query==="string")url+="?query\x3d"+config.query;var keys=config.parameters?Object.keys(config.parameters):[];if(keys.length){var params=keys.map(function(key){return key+"\x3d"+config.parameters[key]}).reduce(function(tot,curr){return tot+"\x26"+curr});url+=(url.indexOf("?")===-1?"?":"\x26")+params}return window.jQuery.get(url,callback)};var LinkSeekerHandler=function(){function LinkSeekerHandler(){var payload=arguments.length>
0&&arguments[0]!==undefined?arguments[0]:{};_classCallCheck(this,LinkSeekerHandler);this._page=typeof payload["page"]==="number"?payload["page"]:0;this._url=typeof payload["url"]==="string"?payload["url"]:null;this._language=typeof payload["language"]==="string"?payload["language"]:null;this._links=[];this._linkforSelection=[]}_createClass(LinkSeekerHandler,[{key:"search",value:function search(){var _this2=this;if(this._url==null)throw new Error("cannot search without target url (current is null)");
var query=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"*";var all=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var types=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[];var clear=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;if(clear||!_this2._linkforSelection)_this2._linkforSelection=[];_this2._links=[];var parameters={all:all,page:_this2._page};types.forEach(function(type){parameters[type]=true});return new Promise(function(resolve,
reject){searchRequest(_this2._url,{query:query,parameters:parameters},function(data,status){if(data.items!==undefined&&data.items.constructor===Array&&data.items.length>0){var newlinks=data.items.map(function(linkData){var _data=linkData;_data.language=_this2._language;return new _link2.default(_data)});_this2._linkforSelection=_this2._linkforSelection.concat(newlinks);_this2._links=newlinks}resolve({page:_this2.page,total:data.total!==undefined?data.total:_this2._links.length,links:_this2._links,
linkforSelection:_this2._linkforSelection,hasMorePages:data.hasMorePages!==undefined?data.hasMorePages:false,error:status!=="success"})}).fail(function(){resolve({page:_this2.page,total:0,images:_this2._links,hasMorePages:false,error:true})})})}},{key:"setPage",value:function setPage(page){this._page=page}},{key:"getPage",value:function getPage(){return this._page}},{key:"getLinks",value:function getLinks(){return this._linkforSelection}},{key:"getSelected",value:function getSelected(){return this._linkforSelection.filter(function(link){return link._selected})}},
{key:"select",value:function select(){var ids=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];if(!(ids instanceof Array))ids=[ids];this._linkforSelection.filter(function(link){return!link._selected}).forEach(function(link){if(ids.some(function(id){return link.getId()===id}))link._selected=true})}},{key:"unselect",value:function unselect(){var ids=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];if(!(ids instanceof Array))ids=[ids];this._linkforSelection.filter(function(link){return link._selected}).forEach(function(link){if(ids.some(function(id){return link.getId()===
id}))link._selected=false})}}]);return LinkSeekerHandler}();exports.default=LinkSeekerHandler});
Liferay.Loader.define("link-seeker@1.0.0/js/modules/main",["module","exports","require","link-seeker@1.0.0/js/modules/html-builder","link-seeker@1.0.0/js/modules/handler","link-seeker@1.0.0/js/modules/link"],function(module,exports,require){var define=undefined;Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=
true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var _arguments=arguments;var _htmlBuilder=require("link-seeker@1.0.0/js/modules/html-builder");var _htmlBuilder2=_interopRequireDefault(_htmlBuilder);var _linkSeekerHandler=require("link-seeker@1.0.0/js/modules/handler");
var _linkSeekerHandler2=_interopRequireDefault(_linkSeekerHandler);var _link=require("link-seeker@1.0.0/js/modules/link");var _link2=_interopRequireDefault(_link);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}var unbindEvent=function unbindEvent(selector,evt,callback){selector!==undefined&&selector.off(evt,callback)};var bindEvent=
function bindEvent(selector,evt,callback){var unbindBefore=_arguments.length>0&&_arguments[3]!==undefined?_arguments[3]:true;if(unbindBefore)unbindEvent(selector,evt,callback);selector!==undefined&&selector.on(evt,callback)};var createUUID=function createUUID(){var dt=(new Date).getTime();var uuid="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var r=(dt+Math.random()*16)%16|0;dt=Math.floor(dt/16);return(c=="x"?r:r&3|8).toString(16)});return uuid};var DEFAULTS={url:"/o/ext-api/external-rs/suggester/seekerLink",
page:0,show:"all",appendTo:"body",selectionMode:"multiple",lang:"es"};var DOM={html:'\x3cdiv class\x3d"modal admin-elements fade" id\x3d"%id%" tabindex\x3d"-1" role\x3d"dialog" aria-labelledby\x3d"%id%"\x3e \x3cdiv class\x3d"modal-dialog" role\x3d"document"\x3e \x3cdiv class\x3d"modal-content"\x3e \x3cdiv class\x3d"modal-header"\x3e \x3ch4 class\x3d"modal-title"\x3eB\u00fasqueda de enlaces\x3c/h4\x3e \x3cbutton type\x3d"button" class\x3d"close" data-dismiss\x3d"modal" aria-label\x3d"Close"\x3e\x3cspan aria-hidden\x3d"true"\x3e\x26times;\x3c/span\x3e\x3c/button\x3e \x3c/div\x3e\x3cdiv class\x3d"modal-body"\x3e \x3cdiv class\x3d"container group-gray"\x3e \x3cdiv class\x3d"form-group row"\x3e \x3cdiv class\x3d"filter col-md-2 text-md-right"\x3e \x3clabel for\x3d"filter-user-create"\x3eTexto\x3c/label\x3e \x3c/div\x3e\x3cdiv id\x3d"form-search-text" class\x3d"filter col-md-10"\x3e \x3cinput type\x3d"text" placeholder\x3d"" class\x3d"form-control"\x3e \x3c/div\x3e\x3cdiv class\x3d"filter col-md-10 col-offset-4" id\x3d"form-type"\x3e \x3cdiv class\x3d"row mt-2"\x3e \x3cdiv class\x3d"col-12 col-md-4 col-lg-3"\x3e \x3cdiv class\x3d"col"\x3e \x3cinput class\x3d"form-check-input" type\x3d"checkbox" id\x3d"resources" value\x3d"resources"\x3e \x3clabel class\x3d"form-check-label" for\x3d"resources"\x3eRecursos\x3c/label\x3e \x3c/div\x3e \x3cdiv class\x3d"col"\x3e \x3cinput class\x3d"form-check-input" type\x3d"checkbox" id\x3d"territory" value\x3d"territory"\x3e \x3clabel class\x3d"form-check-label" for\x3d"territory"\x3eTerritorios\x3c/label\x3e \x3c/div\x3e \x3c/div\x3e \x3cdiv class\x3d"col-12 col-md-4 col-lg-3"\x3e \x3cdiv class\x3d"col"\x3e \x3cinput class\x3d"form-check-input" type\x3d"checkbox" id\x3d"entities" value\x3d"entities"\x3e  \x3clabel class\x3d"form-check-label" for\x3d"entities"\x3eEntidades\x3c/label\x3e \x3c/div\x3e \x3cdiv class\x3d"col"\x3e \x3cinput class\x3d"form-check-input" type\x3d"checkbox" id\x3d"touristic_zone" value\x3d"touristic_zone"\x3e \x3clabel class\x3d"form-check-label" for\x3d"touristic_zone"\x3eZonas tur\u00edsticas\x3c/label\x3e \x3c/div\x3e \x3c/div\x3e \x3cdiv class\x3d"col-12 col-md-4 col-lg-3"\x3e \x3cdiv class\x3d"col"\x3e \x3cinput class\x3d"form-check-input" type\x3d"checkbox" id\x3d"staticpages" value\x3d"staticpages"\x3e \x3clabel class\x3d"form-check-label"  for\x3d"staticpages"\x3eP\u00e1ginas\x3c/label\x3e \x3c/div\x3e \x3cdiv class\x3d"col"\x3e \x3cinput class\x3d"form-check-input" type\x3d"checkbox" id\x3d"resourceTypes" value\x3dresourceTypes\x3e \x3clabel class\x3d"form-check-label" for\x3d"resourceTypes"\x3eTipos/Subtipos\x3c/label\x3e \x3c/div\x3e \x3c/div\x3e \x3cdiv class\x3d"col-12 col-md-4 col-lg-3" style\x3d"border-left: solid lightgrey 1px;"\x3e \x3cdiv class\x3d"col"\x3e \x3cinput class\x3d"form-check-input" type\x3d"checkbox" id\x3d"sections" value\x3d"sections"\x3e \x3clabel class\x3d"form-check-label"  for\x3d"sections"\x3eSecciones\x3c/label\x3e \x3c/div\x3e \x3cdiv class\x3d"col"\x3e \x3cinput class\x3d"form-check-input" checked\x3d"checked" type\x3d"checkbox" id\x3d"all" value\x3d"all"\x3e \x3clabel class\x3d"form-check-label"  for\x3d"all"\x3eTodos\x3c/label\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"form-group row action-buttons"\x3e \x3cdiv class\x3d"filter col text-center"\x3e \x3cbutton id\x3d"search-button" class\x3d"btn" type\x3d"button"\x3e \x3ci class\x3d"glyphicon glyphicon-search"\x3e\x3c/i\x3e\x3cspan\x3eBuscar\x3c/span\x3e \x3c/button\x3e \x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"row no-gutters highlighted-admin default-1-tpl" id\x3d"suggester-results"\x3e\x3c/div\x3e\x3cdiv id\x3d"modal-loader" class\x3d"load-bar hidden"\x3e \x3cdiv class\x3d"bar"\x3e\x3c/div\x3e\x3cdiv class\x3d"bar"\x3e\x3c/div\x3e\x3cdiv class\x3d"bar"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv id\x3d"load-more-container" class\x3d"panel-body text-center" style\x3d"display: none;"\x3e \x3cbutton type\x3d"button" class\x3d"btn inline" style\x3d"width: 100%; max-width: 300px;"\x3e\x3ci class\x3d"glyphicon glyphicon-chevron-down"\x3e\x3c/i\x3e\x3cspan\x3eM\u00e1s\x3c/span\x3e\x3c/button\x3e \x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"modal-footer"\x3e\x3cp class\x3d"small my-auto"\x3eAl seleccionar un enlace se rellenar\u00e1n autom\u00e1ticamente el t\u00edtulo, el texto y la imagen si es posible. No se sobrescribir\u00e1n datos existentes.\x3c/p\x3e\x3cbutton id\x3d"select-button" type\x3d"button" class\x3d"btn btn-primary"\x3e\x3cspan\x3eSeleccionar enlace(s)\x3c/span\x3e\x3c/button\x3e \x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
noResults:"\x3cp\x3eNo se ha encontrado ning\u00fan resultado\x3c/p\x3e"};var selectors={loadMoreContainer:"#load-more-container",resultsContainer:"#suggester-results",typeCheck:"#form-type input[type\x3dcheckbox]:not([value\x3dall])",typeCheckNotSections:"#form-type input[type\x3dcheckbox]:not([value\x3dsections])",typeCheckAll:"#form-type input[type\x3dcheckbox]#all",typeCheckSections:"#form-type input[type\x3dcheckbox]#sections",queryInput:"#form-search-text \x3e input",loader:"#modal-loader",
searchButton:"#search-button",selectButton:"#select-button",links:".card-link"};var $=window.jQuery||function(){throw new Error("unavailable jquery function");};var LinkSeekerDOM=function(){function LinkSeekerDOM(){var _this=this;var constructorArgs=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};_classCallCheck(this,LinkSeekerDOM);this._language=constructorArgs["lang"]!==undefined?constructorArgs["lang"]:DEFAULTS.lang;this._handler=new _linkSeekerHandler2.default({url:constructorArgs["url"]!==
undefined?constructorArgs["url"]:DEFAULTS.url,page:constructorArgs["page"]!==undefined?constructorArgs["page"]:DEFAULTS.page,language:this._language});this._lastQuery=null;this._querying=false;this._closed=true;this._selectionMode=constructorArgs["selectionMode"]!==undefined?constructorArgs["selectionMode"]:DEFAULTS.selectionMode;var id=constructorArgs["id"]!==undefined?constructorArgs["id"]:"modalLinks-"+createUUID();var appendTo=constructorArgs["appendTo"]!==undefined&&$(constructorArgs["appendTo"]).length?
constructorArgs["appendTo"]:DEFAULTS.appendTo;$(appendTo).append((new _htmlBuilder2.default(DOM.html)).replace("id",id).get());this._$instance=$("#"+id);this._selectors={};Object.keys(selectors).forEach(function(selector){_this._selectors[selector]=selector!=="link"?_this._$instance.find(selectors[selector]):selectors[selector]});bindEvent(this._selectors.searchButton,"click",function(){_this._handler.setPage(DEFAULTS.page);_this.search(true)});bindEvent(this._selectors.typeCheck,"click",function(){$(_this._selectors.typeCheckAll).prop("checked",
false);if($(this).attr("id")!="sections")$(_this._selectors.typeCheckSections).prop("checked",false)});bindEvent(this._selectors.typeCheckAll,"click",function(){$(_this._selectors.typeCheck).prop("checked",false)});bindEvent(this._selectors.typeCheckSections,"click",function(){$(_this._selectors.typeCheckNotSections).prop("checked",false)});bindEvent(this._selectors.loadMoreContainer.find("button"),"click",function(){_this._handler.setPage(_this._handler.getPage()+1);_this.search()});bindEvent(this._selectors.selectButton,
"click",function(){if(typeof _this._onSelectCallback==="function")_this._onSelectCallback(_this._handler.getSelected());_this.hide()});bindEvent(this._selectors.queryInput,"keyup",function(evt){if(evt.keyCode===13||evt.key==="Enter"){_this._handler.setPage(DEFAULTS.page);_this.search(true)}})}_createClass(LinkSeekerDOM,[{key:"show",value:function show(){var _this2=this;var args=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};this.clear();this._$instance.one("show.bs.modal",function(){_this2._$instance.css("zIndex",
"9999");_this2._closed=false});if(typeof args["selectionMode"]==="string")this._selectionMode=args["selectionMode"];this._$instance.modal("show");this._onSelectCallback=typeof args["onSelect"]==="function"?args["onSelect"]:null;this._$instance.one("hidden.bs.modal",function(){_this2.clear();_this2._closed=true})}},{key:"hide",value:function hide(){this._$instance.css({"zIndex":"-1"});this._$instance.modal("hide");this._selectors.queryInput.val("");this._selectors.typeCheck.prop("checked",false)}},
{key:"clear",value:function clear(){this._handler.setPage(0);this._selectors.resultsContainer.empty();this._selectors.loadMoreContainer.hide();this._selectors.loader.hide()}},{key:"search",value:function search(){var _this3=this;var clearContainer=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(this._querying)return false;this._querying=true;var query="";if(typeof this._selectors.queryInput.val()==="string")query=this._selectors.queryInput.val().trim();var types=this._selectors.typeCheck.parent().find("input:checked");
if(types.length&&types.length<this._selectors.typeCheck.parent().find("input").length)types=types.map(function(i,check){return check.value}).get();else types=["all"];this._selectors.loader.show();if(query!==this._lastQuery)this._handler.setPage(DEFAULTS.page);this._lastQuery=query;this._handler.search(query,types.indexOf("all")!==-1,types.filter(function(type){return type!=="all"}),clearContainer).then(function(data){if(clearContainer){_this3._handler.getLinks().forEach(function(link){var $link=_this3._$instance.find("#"+
link.getId());unbindEvent($link,"click");$link.remove()});_this3._selectors.resultsContainer.empty()}if(_this3.closed)return false;if(data.error);if(data.total<=0&&clearContainer)_this3._selectors.resultsContainer.append(DOM.noResults);else if(data.links!==undefined)data.links.forEach(function(link){_this3._selectors.resultsContainer.append(link.asHTML());var $link=_this3._$instance.find("#"+link.getId());var $item=_this3._$instance.find("#"+link.getId()+" .item");bindEvent($link,"click",function(evt){if(_this3._selectionMode!==
"multiple")_this3._handler.getSelected().forEach(function(ln){var $ln=_this3._$instance.find("#"+ln.getId());var $tm=_this3._$instance.find("#"+ln.getId()+" .item");_this3._handler.unselect(ln.getId());$tm.removeClass("active")});if(link._selected)_this3._handler.unselect(link.getId());else _this3._handler.select(link.getId());$item.toggleClass("active")})});if(data.hasMorePages)_this3._selectors.loadMoreContainer.show();else _this3._selectors.loadMoreContainer.hide();_this3._selectors.loader.hide();
_this3._querying=false})}}]);return LinkSeekerDOM}();exports.default=LinkSeekerDOM});
/*

*/
!function(root,factory){if(typeof Liferay.Loader.define==="function"&&Liferay.Loader.define.amd)Liferay.Loader.define("jsts",[],factory);else if(typeof module==="object"&&module.exports)module.exports=factory();else root.jsts=factory()}(this,function(t){t=typeof t==="undefined"?{}:t;function e(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function n(){}function i(){}function r(t,e){this.low=0|e,this.high=0|t}function s(){}var o,a,u,l,h,c,f;function g(){}function d(){}function _(){}function p(){}
function m(t){this.name="RuntimeException",this.message=t,this.stack=(new Error).stack,Error.call(this,t)}function v(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function y(){if(0===arguments.length)m.call(this);else if(1===arguments.length){var t=arguments[0];m.call(this,t)}}function x(){}function E(){if(this.x=null,this.y=null,this.z=null,0===arguments.length)E.call(this,0,0);else if(1===arguments.length){var t=arguments[0];E.call(this,t.x,t.y,t.z)}else if(2===arguments.length){var e=
arguments[0],n=arguments[1];E.call(this,e,n,E.NULL_ORDINATE)}else if(3===arguments.length){var i=arguments[0],r=arguments[1],s=arguments[2];this.x=i,this.y=r,this.z=s}}function I(){if(this._dimensionsToTest=2,0===arguments.length)I.call(this,2);else if(1===arguments.length){var t=arguments[0];if(2!==t&&3!==t)throw new i("only 2 or 3 dimensions may be specified");this._dimensionsToTest=t}}function N(t,e){return t.interfaces_&&t.interfaces_().indexOf(e)>-1}function C(){}function S(){}function L(t){this.message=
t||""}function w(){}function R(t){this.message=t||""}function T(t){this.message=t||""}function P(){this.array_=[],arguments[0]instanceof S&&this.addAll(arguments[0])}"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(t){if(void 0===this||null===this)throw new TypeError(this+" is not an object");var e=Object(this),n=Math.max(Math.min(e.length,9007199254740991),0)||0,i=1 in arguments&&parseInt(Number(arguments[1]),10)||0;i=i<0?Math.max(n+i,0):Math.min(i,
n);var r=2 in arguments&&void 0!==arguments[2]?parseInt(Number(arguments[2]),10)||0:n;for(r=r<0?Math.max(n+arguments[2],0):Math.min(r,n);i<r;)e[i]=t,++i;return e},writable:!0}),Number.isFinite=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Number.parseFloat=Number.parseFloat||parseFloat,Number.isNaN=Number.isNaN||function(t){return t!=t},Math.trunc=Math.trunc||function(t){return t<
0?Math.ceil(t):Math.floor(t)},e(n.prototype,{interfaces_:function(){return[]},getClass:function(){return n}}),n.equalsWithTolerance=function(t,e,n){return Math.abs(t-e)<=n},r.toBinaryString=function(t){for(var e="",n=2147483648;n>0;n>>>=1)e+=(t.high&n)===n?"1":"0";for(n=2147483648;n>0;n>>>=1)e+=(t.low&n)===n?"1":"0";return e},s.isNaN=function(t){return Number.isNaN(t)},s.isInfinite=function(t){return!Number.isFinite(t)},s.MAX_VALUE=Number.MAX_VALUE,"function"==typeof Float64Array&&"function"==typeof Int32Array?
(h=2146435072,c=new Float64Array(1),f=new Int32Array(c.buffer),s.doubleToLongBits=function(t){c[0]=t;var e=0|f[0],n=0|f[1];return(n&h)===h&&0!=(1048575&n)&&0!==e&&(e=0,n=2146959360),new r(n,e)},s.longBitsToDouble=function(t){return f[0]=t.low,f[1]=t.high,c[0]}):(o=Math.log2,a=Math.floor,u=Math.pow,l=function(){for(var t=53;t>0;t--){var e=u(2,t)-1;if(a(o(e))+1===t)return e}return 0}(),s.doubleToLongBits=function(t){var e,n,i,s,h,c,f,g,d;if(t<0||1/t===Number.NEGATIVE_INFINITY?(c=1<<31,t=-t):c=0,0===
t)return new r(g=c,d=0);if(t===1/0)return new r(g=2146435072|c,d=0);if(t!=t)return new r(g=2146959360,d=0);if(s=0,d=0,(e=a(t))>1)if(e<=l)(s=a(o(e)))<=20?(d=0,g=e<<20-s&1048575):(d=e%(n=u(2,i=s-20))<<32-i,g=e/n&1048575);else for(i=e,d=0;0!==(i=a(n=i/2));)s++,d>>>=1,d|=(1&g)<<31,g>>>=1,n!==i&&(g|=524288);if(f=s+1023,h=0===e,e=t-e,s<52&&0!==e)for(i=0;;){if((n=2*e)>=1?(e=n-1,h?(f--,h=!1):(i<<=1,i|=1,s++)):(e=n,h?0==--f&&(s++,h=!1):(i<<=1,s++)),20===s)g|=i,i=0;else if(52===s){d|=i;break}if(1===n){s<20?
g|=i<<20-s:s<52&&(d|=i<<52-s);break}}return g|=f<<20,new r(g|=c,d)},s.longBitsToDouble=function(t){var e,n,i,r,s=t.high,o=t.low;n=s&1<<31?-1:1,i=((2146435072&s)>>20)-1023,r=0,e=1<<19;for(var a=1;a<=20;a++)s&e&&(r+=u(2,-a)),e>>>=1;for(e=1<<31,a=21;a<=52;a++)o&e&&(r+=u(2,-a)),e>>>=1;if(-1023===i){if(0===r)return 0*n;i=-1022}else{if(1024===i)return 0===r?n/0:NaN;r+=1}return n*r*u(2,i)}),m.prototype=Object.create(Error.prototype),m.prototype.constructor=Error,v(y,m),e(y.prototype,{interfaces_:function(){return[]},
getClass:function(){return y}}),e(x.prototype,{interfaces_:function(){return[]},getClass:function(){return x}}),x.shouldNeverReachHere=function(){if(0===arguments.length)x.shouldNeverReachHere(null);else if(1===arguments.length){var t=arguments[0];throw new y("Should never reach here"+(null!==t?": "+t:""));}},x.isTrue=function(){if(1===arguments.length){var t=arguments[0];x.isTrue(t,null)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(!e)throw null===n?new y:new y(n);}},x.equals=
function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];x.equals(t,e,null)}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];if(!i.equals(n))throw new y("Expected "+n+" but encountered "+i+(null!==r?": "+r:""));}},e(E.prototype,{setOrdinate:function(t,e){switch(t){case E.X:this.x=e;break;case E.Y:this.y=e;break;case E.Z:this.z=e;break;default:throw new i("Invalid ordinate index: "+t);}},equals2D:function(){if(1===arguments.length){var t=arguments[0];return this.x===
t.x&&this.y===t.y}if(2===arguments.length){var e=arguments[0],i=arguments[1];return!!n.equalsWithTolerance(this.x,e.x,i)&&!!n.equalsWithTolerance(this.y,e.y,i)}},getOrdinate:function(t){switch(t){case E.X:return this.x;case E.Y:return this.y;case E.Z:return this.z}throw new i("Invalid ordinate index: "+t);},equals3D:function(t){return this.x===t.x&&this.y===t.y&&(this.z===t.z||s.isNaN(this.z)&&s.isNaN(t.z))},equals:function(t){return t instanceof E&&this.equals2D(t)},equalInZ:function(t,e){return n.equalsWithTolerance(this.z,
t.z,e)},compareTo:function(t){var e=t;return this.x<e.x?-1:this.x>e.x?1:this.y<e.y?-1:this.y>e.y?1:0},clone:function(){try{return null}catch(t){if(t instanceof CloneNotSupportedException)return x.shouldNeverReachHere("this shouldn't happen because this class is Cloneable"),null;throw t;}},copy:function(){return new E(this)},toString:function(){return"("+this.x+", "+this.y+", "+this.z+")"},distance3D:function(t){var e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return Math.sqrt(e*e+n*n+i*i)},distance:function(t){var e=
this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},hashCode:function(){var t=17;return t=37*(t=37*t+E.hashCode(this.x))+E.hashCode(this.y)},setCoordinate:function(t){this.x=t.x,this.y=t.y,this.z=t.z},interfaces_:function(){return[g,d,p]},getClass:function(){return E}}),E.hashCode=function(){if(1===arguments.length&&"number"==typeof arguments[0]){var t=arguments[0],e=s.doubleToLongBits(t);return Math.trunc(e^e>>>32)}},e(I.prototype,{compare:function(t,e){var n=t,i=e,r=I.compare(n.x,i.x);if(0!==r)return r;
var s=I.compare(n.y,i.y);return 0!==s?s:this._dimensionsToTest<=2?0:I.compare(n.z,i.z)},interfaces_:function(){return[_]},getClass:function(){return I}}),I.compare=function(t,e){return t<e?-1:t>e?1:s.isNaN(t)?s.isNaN(e)?0:-1:s.isNaN(e)?1:0},E.DimensionalComparator=I,E.serialVersionUID=0x5cbf2c235c7e5800,E.NULL_ORDINATE=s.NaN,E.X=0,E.Y=1,E.Z=2,C.prototype.hasNext=function(){},C.prototype.next=function(){},C.prototype.remove=function(){},S.prototype.add=function(){},S.prototype.addAll=function(){},
S.prototype.isEmpty=function(){},S.prototype.iterator=function(){},S.prototype.size=function(){},S.prototype.toArray=function(){},S.prototype.remove=function(){},L.prototype=new Error,L.prototype.name="IndexOutOfBoundsException",w.prototype=Object.create(S.prototype),w.prototype.constructor=w,w.prototype.get=function(){},w.prototype.set=function(){},w.prototype.isEmpty=function(){},R.prototype=new Error,R.prototype.name="NoSuchElementException",T.prototype=new Error,T.prototype.name="OperationNotSupported",
P.prototype=Object.create(w.prototype),P.prototype.constructor=P,P.prototype.ensureCapacity=function(){},P.prototype.interfaces_=function(){return[w,S]},P.prototype.add=function(t){return 1===arguments.length?this.array_.push(t):this.array_.splice(arguments[0],0,arguments[1]),!0},P.prototype.clear=function(){this.array_=[]},P.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},P.prototype.set=function(t,e){var n=this.array_[t];return this.array_[t]=e,n},P.prototype.iterator=
function(){return new O(this)},P.prototype.get=function(t){if(t<0||t>=this.size())throw new L;return this.array_[t]},P.prototype.isEmpty=function(){return 0===this.array_.length},P.prototype.size=function(){return this.array_.length},P.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},P.prototype.remove=function(t){for(var e=!1,n=0,i=this.array_.length;n<i;n++)if(this.array_[n]===t){this.array_.splice(n,1),e=!0;break}return e};var O=function(t){this.arrayList_=
t,this.position_=0};function b(){if(P.apply(this),0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.ensureCapacity(t.length),this.add(t,!0)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.ensureCapacity(e.length),this.add(e,n)}}function M(){if(this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,0===arguments.length)this.init();else if(1===arguments.length)if(arguments[0]instanceof E){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else{if(arguments[0]instanceof
M){var e=arguments[0];this.init(e)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.init(n.x,i.x,n.y,i.y)}else if(4===arguments.length){var r=arguments[0],s=arguments[1],o=arguments[2],a=arguments[3];this.init(r,s,o,a)}}function D(){}function A(){D.call(this,"Projective point not representable on the Cartesian plane.")}function F(t){this.str=t}function G(t){this.value=t}function q(){}function B(){if(this._hi=0,this._lo=0,0===arguments.length)this.init(0);else if(1===arguments.length)if("number"==
typeof arguments[0]){var t=arguments[0];this.init(t)}else if(arguments[0]instanceof B){var e=arguments[0];this.init(e)}else{if("string"==typeof arguments[0]){var n=arguments[0];B.call(this,B.parse(n))}}else if(2===arguments.length){var i=arguments[0],r=arguments[1];this.init(i,r)}}function V(){}function z(){}function Y(){}function k(){if(this.x=null,this.y=null,this.w=null,0===arguments.length)this.x=0,this.y=0,this.w=1;else if(1===arguments.length){var t=arguments[0];this.x=t.x,this.y=t.y,this.w=
1}else if(2===arguments.length)if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var e=arguments[0],n=arguments[1];this.x=e,this.y=n,this.w=1}else if(arguments[0]instanceof k&&arguments[1]instanceof k){var i=arguments[0],r=arguments[1];this.x=i.y*r.w-r.y*i.w,this.y=r.x*i.w-i.x*r.w,this.w=i.x*r.y-r.x*i.y}else{if(arguments[0]instanceof E&&arguments[1]instanceof E){var s=arguments[0],o=arguments[1];this.x=s.y-o.y,this.y=o.x-s.x,this.w=s.x*o.y-o.x*s.y}}else if(3===arguments.length){var a=
arguments[0],u=arguments[1],l=arguments[2];this.x=a,this.y=u,this.w=l}else if(4===arguments.length){var h=arguments[0],c=arguments[1],f=arguments[2],g=arguments[3],d=h.y-c.y,_=c.x-h.x,p=h.x*c.y-c.x*h.y,m=f.y-g.y,v=g.x-f.x,y=f.x*g.y-g.x*f.y;this.x=_*y-v*p,this.y=m*p-d*y,this.w=d*v-m*_}}function U(){}function X(){}function H(){}function W(){}function j(){}function K(){this._envelope=null,this._factory=null,this._SRID=null,this._userData=null;var t=arguments[0];this._factory=t,this._SRID=t.getSRID()}
function Z(){}function Q(){}function J(){}function $(){}function tt(){}function et(){}function nt(){}function it(){}function rt(){}function st(){}function ot(){}function at(){}function ut(){this.array_=[],arguments[0]instanceof S&&this.addAll(arguments[0])}O.prototype.next=function(){if(this.position_===this.arrayList_.size())throw new R;return this.arrayList_.get(this.position_++)},O.prototype.hasNext=function(){return this.position_<this.arrayList_.size()},O.prototype.set=function(t){return this.arrayList_.set(this.position_-
1,t)},O.prototype.remove=function(){this.arrayList_.remove(this.arrayList_.get(this.position_))},v(b,P),e(b.prototype,{getCoordinate:function(t){return this.get(t)},addAll:function(){if(2===arguments.length&&"boolean"==typeof arguments[1]&&N(arguments[0],S)){for(var t=arguments[0],e=arguments[1],n=!1,i=t.iterator();i.hasNext();)this.add(i.next(),e),n=!0;return n}return P.prototype.addAll.apply(this,arguments)},clone:function(){for(var t=P.prototype.clone.call(this),e=0;e<this.size();e++)t.add(e,this.get(e).clone());
return t},toCoordinateArray:function(){return this.toArray(b.coordArrayType)},add:function(){if(1===arguments.length){var t=arguments[0];P.prototype.add.call(this,t)}else if(2===arguments.length){if(arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var e=arguments[0],n=arguments[1];return this.add(e,n,!0),!0}if(arguments[0]instanceof E&&"boolean"==typeof arguments[1]){var i=arguments[0];if(!arguments[1])if(this.size()>=1)if(this.get(this.size()-1).equals2D(i))return null;P.prototype.add.call(this,
i)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var r=arguments[0],s=arguments[1];return this.add(r,s),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var o=arguments[0],a=arguments[1];if(arguments[2])for(var u=0;u<o.length;u++)this.add(o[u],a);else for(u=o.length-1;u>=0;u--)this.add(o[u],a);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof E){var l=
arguments[0],h=arguments[1];if(!arguments[2]){var c=this.size();if(c>0){if(l>0)if(this.get(l-1).equals2D(h))return null;if(l<c)if(this.get(l).equals2D(h))return null}}P.prototype.add.call(this,l,h)}}else if(4===arguments.length){var f=arguments[0],g=arguments[1],d=arguments[2],_=arguments[3],p=1;d>_&&(p=-1);for(u=d;u!==_;u+=p)this.add(f[u],g);return!0}},closeRing:function(){this.size()>0&&this.add(new E(this.get(0)),!1)},interfaces_:function(){return[]},getClass:function(){return b}}),b.coordArrayType=
(new Array(0)).fill(null),e(M.prototype,{getArea:function(){return this.getWidth()*this.getHeight()},equals:function(t){if(!(t instanceof M))return!1;var e=t;return this.isNull()?e.isNull():this._maxx===e.getMaxX()&&this._maxy===e.getMaxY()&&this._minx===e.getMinX()&&this._miny===e.getMinY()},intersection:function(t){if(this.isNull()||t.isNull()||!this.intersects(t))return new M;var e=this._minx>t._minx?this._minx:t._minx,n=this._miny>t._miny?this._miny:t._miny;return new M(e,this._maxx<t._maxx?this._maxx:
t._maxx,n,this._maxy<t._maxy?this._maxy:t._maxy)},isNull:function(){return this._maxx<this._minx},getMaxX:function(){return this._maxx},covers:function(){if(1===arguments.length){if(arguments[0]instanceof E){var t=arguments[0];return this.covers(t.x,t.y)}if(arguments[0]instanceof M){var e=arguments[0];return!this.isNull()&&!e.isNull()&&(e.getMinX()>=this._minx&&e.getMaxX()<=this._maxx&&e.getMinY()>=this._miny&&e.getMaxY()<=this._maxy)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];
return!this.isNull()&&(n>=this._minx&&n<=this._maxx&&i>=this._miny&&i<=this._maxy)}},intersects:function(){if(1===arguments.length){if(arguments[0]instanceof M){var t=arguments[0];return!this.isNull()&&!t.isNull()&&!(t._minx>this._maxx||t._maxx<this._minx||t._miny>this._maxy||t._maxy<this._miny)}if(arguments[0]instanceof E){var e=arguments[0];return this.intersects(e.x,e.y)}}else if(2===arguments.length){if(arguments[0]instanceof E&&arguments[1]instanceof E){var n=arguments[0],i=arguments[1];return!this.isNull()&&
(!((n.x<i.x?n.x:i.x)>this._maxx)&&(!((n.x>i.x?n.x:i.x)<this._minx)&&(!((n.y<i.y?n.y:i.y)>this._maxy)&&!((n.y>i.y?n.y:i.y)<this._miny))))}if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var r=arguments[0],s=arguments[1];return!this.isNull()&&!(r>this._maxx||r<this._minx||s>this._maxy||s<this._miny)}}},getMinY:function(){return this._miny},getMinX:function(){return this._minx},expandToInclude:function(){if(1===arguments.length)if(arguments[0]instanceof E){var t=arguments[0];this.expandToInclude(t.x,
t.y)}else{if(arguments[0]instanceof M){var e=arguments[0];if(e.isNull())return null;this.isNull()?(this._minx=e.getMinX(),this._maxx=e.getMaxX(),this._miny=e.getMinY(),this._maxy=e.getMaxY()):(e._minx<this._minx&&(this._minx=e._minx),e._maxx>this._maxx&&(this._maxx=e._maxx),e._miny<this._miny&&(this._miny=e._miny),e._maxy>this._maxy&&(this._maxy=e._maxy))}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.isNull()?(this._minx=n,this._maxx=n,this._miny=i,this._maxy=i):(n<this._minx&&
(this._minx=n),n>this._maxx&&(this._maxx=n),i<this._miny&&(this._miny=i),i>this._maxy&&(this._maxy=i))}},minExtent:function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return t<e?t:e},getWidth:function(){return this.isNull()?0:this._maxx-this._minx},compareTo:function(t){var e=t;return this.isNull()?e.isNull()?0:-1:e.isNull()?1:this._minx<e._minx?-1:this._minx>e._minx?1:this._miny<e._miny?-1:this._miny>e._miny?1:this._maxx<e._maxx?-1:this._maxx>e._maxx?1:this._maxy<e._maxy?
-1:this._maxy>e._maxy?1:0},translate:function(t,e){if(this.isNull())return null;this.init(this.getMinX()+t,this.getMaxX()+t,this.getMinY()+e,this.getMaxY()+e)},toString:function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"},setToNull:function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1},getHeight:function(){return this.isNull()?0:this._maxy-this._miny},maxExtent:function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return t>e?
t:e},expandBy:function(){if(1===arguments.length){var t=arguments[0];this.expandBy(t,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this.isNull())return null;this._minx-=e,this._maxx+=e,this._miny-=n,this._maxy+=n,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}},contains:function(){if(1===arguments.length){if(arguments[0]instanceof M){var t=arguments[0];return this.covers(t)}if(arguments[0]instanceof E){var e=arguments[0];return this.covers(e)}}else if(2===
arguments.length){var n=arguments[0],i=arguments[1];return this.covers(n,i)}},centre:function(){return this.isNull()?null:new E((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},init:function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length)if(arguments[0]instanceof E){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else{if(arguments[0]instanceof M){var e=arguments[0];this._minx=e._minx,this._maxx=e._maxx,this._miny=e._miny,this._maxy=e._maxy}}else if(2===
arguments.length){var n=arguments[0],i=arguments[1];this.init(n.x,i.x,n.y,i.y)}else if(4===arguments.length){var r=arguments[0],s=arguments[1],o=arguments[2],a=arguments[3];r<s?(this._minx=r,this._maxx=s):(this._minx=s,this._maxx=r),o<a?(this._miny=o,this._maxy=a):(this._miny=a,this._maxy=o)}},getMaxY:function(){return this._maxy},distance:function(t){if(this.intersects(t))return 0;var e=0;this._maxx<t._minx?e=t._minx-this._maxx:this._minx>t._maxx&&(e=this._minx-t._maxx);var n=0;return this._maxy<
t._miny?n=t._miny-this._maxy:this._miny>t._maxy&&(n=this._miny-t._maxy),0===e?n:0===n?e:Math.sqrt(e*e+n*n)},hashCode:function(){var t=17;return t=37*(t=37*(t=37*(t=37*t+E.hashCode(this._minx))+E.hashCode(this._maxx))+E.hashCode(this._miny))+E.hashCode(this._maxy)},interfaces_:function(){return[g,p]},getClass:function(){return M}}),M.intersects=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2];return n.x>=(t.x<e.x?t.x:e.x)&&n.x<=(t.x>e.x?t.x:e.x)&&n.y>=(t.y<e.y?t.y:
e.y)&&n.y<=(t.y>e.y?t.y:e.y)}if(4===arguments.length){var i=arguments[0],r=arguments[1],s=arguments[2],o=arguments[3],a=Math.min(s.x,o.x),u=Math.max(s.x,o.x),l=Math.min(i.x,r.x),h=Math.max(i.x,r.x);return!(l>u)&&(!(h<a)&&(a=Math.min(s.y,o.y),u=Math.max(s.y,o.y),l=Math.min(i.y,r.y),h=Math.max(i.y,r.y),!(l>u)&&!(h<a)))}},M.serialVersionUID=0x51845cd552189800,v(A,D),e(A.prototype,{interfaces_:function(){return[]},getClass:function(){return A}}),F.prototype.append=function(t){this.str+=t},F.prototype.setCharAt=
function(t,e){this.str=this.str.substr(0,t)+e+this.str.substr(t+1)},F.prototype.toString=function(t){return this.str},G.prototype.intValue=function(){return this.value},G.prototype.compareTo=function(t){return this.value<t?-1:this.value>t?1:0},G.isNaN=function(t){return Number.isNaN(t)},q.isWhitespace=function(t){return t<=32&&t>=0||127==t},q.toUpperCase=function(t){return t.toUpperCase()},e(B.prototype,{le:function(t){return this._hi<t._hi||this._hi===t._hi&&this._lo<=t._lo},extractSignificantDigits:function(t,
e){var n=this.abs(),i=B.magnitude(n._hi),r=B.TEN.pow(i);(n=n.divide(r)).gt(B.TEN)?(n=n.divide(B.TEN),i+=1):n.lt(B.ONE)&&(n=n.multiply(B.TEN),i-=1);for(var s=i+1,o=new F,a=B.MAX_PRINT_DIGITS-1,u=0;u<=a;u++){t&&u===s&&o.append(".");var l=Math.trunc(n._hi);if(l<0)break;var h=!1,c=0;l>9?(h=!0,c="9"):c="0"+l,o.append(c),n=n.subtract(B.valueOf(l)).multiply(B.TEN),h&&n.selfAdd(B.TEN);var f=!0,g=B.magnitude(n._hi);if(g<0&&Math.abs(g)>=a-u&&(f=!1),!f)break}return e[0]=i,o.toString()},sqr:function(){return this.multiply(this)},
doubleValue:function(){return this._hi+this._lo},subtract:function(){if(arguments[0]instanceof B){var t=arguments[0];return this.add(t.negate())}if("number"==typeof arguments[0]){var e=arguments[0];return this.add(-e)}},equals:function(){if(1===arguments.length&&arguments[0]instanceof B){var t=arguments[0];return this._hi===t._hi&&this._lo===t._lo}},isZero:function(){return 0===this._hi&&0===this._lo},selfSubtract:function(){if(arguments[0]instanceof B){var t=arguments[0];return this.isNaN()?this:
this.selfAdd(-t._hi,-t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.isNaN()?this:this.selfAdd(-e,0)}},getSpecialNumberString:function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},min:function(t){return this.le(t)?this:t},selfDivide:function(){if(1===arguments.length){if(arguments[0]instanceof B){var t=arguments[0];return this.selfDivide(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfDivide(e,0)}}else if(2===arguments.length){var n,
i,r,s,o=arguments[0],a=arguments[1],u=null,l=null,h=null,c=null;return r=this._hi/o,c=(u=(h=B.SPLIT*r)-(u=h-r))*(l=(c=B.SPLIT*o)-(l=c-o))-(s=r*o)+u*(i=o-l)+(n=r-u)*l+n*i,c=r+(h=(this._hi-s-c+this._lo-r*a)/o),this._hi=c,this._lo=r-c+h,this}},dump:function(){return"DD\x3c"+this._hi+", "+this._lo+"\x3e"},divide:function(){if(arguments[0]instanceof B){var t,e,n,i,r=arguments[0],o=null,a=null,u=null,l=null;return n=this._hi/r._hi,o=(u=B.SPLIT*n)-n,l=B.SPLIT*r._hi,t=n-(o=u-o),a=l-r._hi,i=n*r._hi,l=o*(a=
l-a)-i+o*(e=r._hi-a)+t*a+t*e,new B(l=n+(u=(this._hi-i-l+this._lo-n*r._lo)/r._hi),n-l+u)}if("number"==typeof arguments[0]){var h=arguments[0];return s.isNaN(h)?B.createNaN():B.copy(this).selfDivide(h,0)}},ge:function(t){return this._hi>t._hi||this._hi===t._hi&&this._lo>=t._lo},pow:function(t){if(0===t)return B.valueOf(1);var e=new B(this),n=B.valueOf(1),i=Math.abs(t);if(i>1)for(;i>0;)i%2==1&&n.selfMultiply(e),(i/=2)>0&&(e=e.sqr());else n=e;return t<0?n.reciprocal():n},ceil:function(){if(this.isNaN())return B.NaN;
var t=Math.ceil(this._hi),e=0;return t===this._hi&&(e=Math.ceil(this._lo)),new B(t,e)},compareTo:function(t){var e=t;return this._hi<e._hi?-1:this._hi>e._hi?1:this._lo<e._lo?-1:this._lo>e._lo?1:0},rint:function(){return this.isNaN()?this:this.add(.5).floor()},setValue:function(){if(arguments[0]instanceof B){var t=arguments[0];return this.init(t),this}if("number"==typeof arguments[0]){var e=arguments[0];return this.init(e),this}},max:function(t){return this.ge(t)?this:t},sqrt:function(){if(this.isZero())return B.valueOf(0);
if(this.isNegative())return B.NaN;var t=1/Math.sqrt(this._hi),e=this._hi*t,n=B.valueOf(e),i=this.subtract(n.sqr())._hi*(.5*t);return n.add(i)},selfAdd:function(){if(1===arguments.length){if(arguments[0]instanceof B){var t=arguments[0];return this.selfAdd(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0],n=null,i=null,r=null,s=null,o=null,a=null;return s=(r=this._hi+e)-(o=r-this._hi),i=(a=(s=e-o+(this._hi-s))+this._lo)+(r-(n=r+a)),this._hi=n+i,this._lo=i+(n-this._hi),this}}else if(2===
arguments.length){var u,l=arguments[0],h=arguments[1],c=(n=null,i=null,null);r=null,s=null,o=null,a=null;r=this._hi+l,u=this._lo+h,s=r-(o=r-this._hi),c=u-(a=u-this._lo),s=l-o+(this._hi-s),c=h-a+(this._lo-c);var f=(n=r+(o=s+u))+(o=c+(i=o+(r-n))),g=o+(n-f);return this._hi=f,this._lo=g,this}},selfMultiply:function(){if(1===arguments.length){if(arguments[0]instanceof B){var t=arguments[0];return this.selfMultiply(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfMultiply(e,
0)}}else if(2===arguments.length){var n,i,r=arguments[0],s=arguments[1],o=null,a=null,u=null,l=null;o=(u=B.SPLIT*this._hi)-this._hi,l=B.SPLIT*r,o=u-o,n=this._hi-o,a=l-r;var h=(u=this._hi*r)+(l=o*(a=l-a)-u+o*(i=r-a)+n*a+n*i+(this._hi*s+this._lo*r)),c=l+(o=u-h);return this._hi=h,this._lo=c,this}},selfSqr:function(){return this.selfMultiply(this)},floor:function(){if(this.isNaN())return B.NaN;var t=Math.floor(this._hi),e=0;return t===this._hi&&(e=Math.floor(this._lo)),new B(t,e)},negate:function(){return this.isNaN()?
this:new B(-this._hi,-this._lo)},clone:function(){try{return null}catch(t){if(t instanceof CloneNotSupportedException)return null;throw t;}},multiply:function(){if(arguments[0]instanceof B){var t=arguments[0];return t.isNaN()?B.createNaN():B.copy(this).selfMultiply(t)}if("number"==typeof arguments[0]){var e=arguments[0];return s.isNaN(e)?B.createNaN():B.copy(this).selfMultiply(e,0)}},isNaN:function(){return s.isNaN(this._hi)},intValue:function(){return Math.trunc(this._hi)},toString:function(){var t=
B.magnitude(this._hi);return t>=-3&&t<=20?this.toStandardNotation():this.toSciNotation()},toStandardNotation:function(){var t=this.getSpecialNumberString();if(null!==t)return t;var e=(new Array(1)).fill(null),n=this.extractSignificantDigits(!0,e),i=e[0]+1,r=n;if("."===n.charAt(0))r="0"+n;else if(i<0)r="0."+B.stringOfChar("0",-i)+n;else if(-1===n.indexOf(".")){var s=i-n.length;r=n+B.stringOfChar("0",s)+".0"}return this.isNegative()?"-"+r:r},reciprocal:function(){var t,e,n,i,r=null,s=null,o=null,a=
null;n=1/this._hi,r=(o=B.SPLIT*n)-n,a=B.SPLIT*this._hi,t=n-(r=o-r),s=a-this._hi;var u=n+(o=(1-(i=n*this._hi)-(a=r*(s=a-s)-i+r*(e=this._hi-s)+t*s+t*e)-n*this._lo)/this._hi);return new B(u,n-u+o)},toSciNotation:function(){if(this.isZero())return B.SCI_NOT_ZERO;var t=this.getSpecialNumberString();if(null!==t)return t;var e=(new Array(1)).fill(null),n=this.extractSignificantDigits(!1,e),i=B.SCI_NOT_EXPONENT_CHAR+e[0];if("0"===n.charAt(0))throw new IllegalStateException("Found leading zero: "+n);var r=
"";n.length>1&&(r=n.substring(1));var s=n.charAt(0)+"."+r;return this.isNegative()?"-"+s+i:s+i},abs:function(){return this.isNaN()?B.NaN:this.isNegative()?this.negate():new B(this)},isPositive:function(){return this._hi>0||0===this._hi&&this._lo>0},lt:function(t){return this._hi<t._hi||this._hi===t._hi&&this._lo<t._lo},add:function(){if(arguments[0]instanceof B){var t=arguments[0];return B.copy(this).selfAdd(t)}if("number"==typeof arguments[0]){var e=arguments[0];return B.copy(this).selfAdd(e)}},
init:function(){if(1===arguments.length)if("number"==typeof arguments[0]){var t=arguments[0];this._hi=t,this._lo=0}else{if(arguments[0]instanceof B){var e=arguments[0];this._hi=e._hi,this._lo=e._lo}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this._hi=n,this._lo=i}},gt:function(t){return this._hi>t._hi||this._hi===t._hi&&this._lo>t._lo},isNegative:function(){return this._hi<0||0===this._hi&&this._lo<0},trunc:function(){return this.isNaN()?B.NaN:this.isPositive()?this.floor():this.ceil()},
signum:function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0},interfaces_:function(){return[p,g,d]},getClass:function(){return B}}),B.sqr=function(t){return B.valueOf(t).selfMultiply(t)},B.valueOf=function(){if("string"==typeof arguments[0]){var t=arguments[0];return B.parse(t)}if("number"==typeof arguments[0])return new B(arguments[0])},B.sqrt=function(t){return B.valueOf(t).sqrt()},B.parse=function(t){for(var e=0,n=t.length;q.isWhitespace(t.charAt(e));)e++;var i=!1;if(e<n){var r=
t.charAt(e);"-"!==r&&"+"!==r||(e++,"-"===r&&(i=!0))}for(var s=new B,o=0,a=0,u=0;!(e>=n);){var l=t.charAt(e);if(e++,q.isDigit(l)){var h=l-"0";s.selfMultiply(B.TEN),s.selfAdd(h),o++}else{if("."!==l){if("e"===l||"E"===l){var c=t.substring(e);try{u=G.parseInt(c)}catch(e){throw e instanceof NumberFormatException?new NumberFormatException("Invalid exponent "+c+" in string "+t):e;}break}throw new NumberFormatException("Unexpected character '"+l+"' at position "+e+" in string "+t);}a=o}}var f=s,g=o-a-u;if(0===
g)f=s;else if(g>0){var d=B.TEN.pow(g);f=s.divide(d)}else if(g<0){d=B.TEN.pow(-g);f=s.multiply(d)}return i?f.negate():f},B.createNaN=function(){return new B(s.NaN,s.NaN)},B.copy=function(t){return new B(t)},B.magnitude=function(t){var e=Math.abs(t),n=Math.log(e)/Math.log(10),i=Math.trunc(Math.floor(n));return 10*Math.pow(10,i)<=e&&(i+=1),i},B.stringOfChar=function(t,e){for(var n=new F,i=0;i<e;i++)n.append(t);return n.toString()},B.PI=new B(3.141592653589793,1.2246467991473532E-16),B.TWO_PI=new B(6.283185307179586,
2.4492935982947064E-16),B.PI_2=new B(1.5707963267948966,6.123233995736766E-17),B.E=new B(2.718281828459045,1.4456468917292502E-16),B.NaN=new B(s.NaN,s.NaN),B.EPS=1.23259516440783E-32,B.SPLIT=134217729,B.MAX_PRINT_DIGITS=32,B.TEN=B.valueOf(10),B.ONE=B.valueOf(1),B.SCI_NOT_EXPONENT_CHAR="E",B.SCI_NOT_ZERO="0.0E0",e(V.prototype,{interfaces_:function(){return[]},getClass:function(){return V}}),V.orientationIndex=function(t,e,n){var i=V.orientationIndexFilter(t,e,n);if(i<=1)return i;var r=B.valueOf(e.x).selfAdd(-t.x),
s=B.valueOf(e.y).selfAdd(-t.y),o=B.valueOf(n.x).selfAdd(-e.x),a=B.valueOf(n.y).selfAdd(-e.y);return r.selfMultiply(a).selfSubtract(s.selfMultiply(o)).signum()},V.signOfDet2x2=function(){if(arguments[0]instanceof B){var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];return t.multiply(i).selfSubtract(e.multiply(n)).signum()}if("number"==typeof arguments[0]){var r=arguments[0],s=arguments[1],o=arguments[2],a=arguments[3],u=B.valueOf(r),l=B.valueOf(s),h=B.valueOf(o),c=B.valueOf(a);return u.multiply(c).selfSubtract(l.multiply(h)).signum()}},
V.intersection=function(t,e,n,i){var r=B.valueOf(i.y).selfSubtract(n.y).selfMultiply(B.valueOf(e.x).selfSubtract(t.x)),s=B.valueOf(i.x).selfSubtract(n.x).selfMultiply(B.valueOf(e.y).selfSubtract(t.y)),o=r.subtract(s),a=B.valueOf(i.x).selfSubtract(n.x).selfMultiply(B.valueOf(t.y).selfSubtract(n.y)),u=B.valueOf(i.y).selfSubtract(n.y).selfMultiply(B.valueOf(t.x).selfSubtract(n.x)),l=a.subtract(u).selfDivide(o).doubleValue(),h=B.valueOf(t.x).selfAdd(B.valueOf(e.x).selfSubtract(t.x).selfMultiply(l)).doubleValue(),
c=B.valueOf(e.x).selfSubtract(t.x).selfMultiply(B.valueOf(t.y).selfSubtract(n.y)),f=B.valueOf(e.y).selfSubtract(t.y).selfMultiply(B.valueOf(t.x).selfSubtract(n.x)),g=c.subtract(f).selfDivide(o).doubleValue();return new E(h,B.valueOf(n.y).selfAdd(B.valueOf(i.y).selfSubtract(n.y).selfMultiply(g)).doubleValue())},V.orientationIndexFilter=function(t,e,n){var i=null,r=(t.x-n.x)*(e.y-n.y),s=(t.y-n.y)*(e.x-n.x),o=r-s;if(r>0){if(s<=0)return V.signum(o);i=r+s}else{if(!(r<0))return V.signum(o);if(s>=0)return V.signum(o);
i=-r-s}var a=V.DP_SAFE_EPSILON*i;return o>=a||-o>=a?V.signum(o):2},V.signum=function(t){return t>0?1:t<0?-1:0},V.DP_SAFE_EPSILON=1E-15,e(z.prototype,{interfaces_:function(){return[]},getClass:function(){return z}}),z.index=function(t,e,n){return V.orientationIndex(t,e,n)},z.isCCW=function(t){var e=t.length-1;if(e<3)throw new i("Ring has fewer than 4 points, so orientation cannot be determined");for(var n=t[0],r=0,s=1;s<=e;s++){var o=t[s];o.y>n.y&&(n=o,r=s)}var a=r;do(a-=1)<0&&(a=e);while(t[a].equals2D(n)&&
a!==r);var u=r;do u=(u+1)%e;while(t[u].equals2D(n)&&u!==r);var l=t[a],h=t[u];if(l.equals2D(n)||h.equals2D(n)||l.equals2D(h))return!1;var c=z.index(l,n,h);return 0===c?l.x>h.x:c>0},z.CLOCKWISE=-1,z.RIGHT=z.CLOCKWISE,z.COUNTERCLOCKWISE=1,z.LEFT=z.COUNTERCLOCKWISE,z.COLLINEAR=0,z.STRAIGHT=z.COLLINEAR,Y.arraycopy=function(t,e,n,i,r){for(var s=0,o=e;o<e+r;o++)n[i+s]=t[o],s++},Y.getProperty=function(t){return{"line.separator":"\n"}[t]},e(k.prototype,{getY:function(){var t=this.y/this.w;if(s.isNaN(t)||s.isInfinite(t))throw new A;
return t},getX:function(){var t=this.x/this.w;if(s.isNaN(t)||s.isInfinite(t))throw new A;return t},getCoordinate:function(){var t=new E;return t.x=this.getX(),t.y=this.getY(),t},interfaces_:function(){return[]},getClass:function(){return k}}),k.intersection=function(t,e,n,i){var r=t.y-e.y,o=e.x-t.x,a=t.x*e.y-e.x*t.y,u=n.y-i.y,l=i.x-n.x,h=n.x*i.y-i.x*n.y,c=r*l-u*o,f=(o*h-l*a)/c,g=(u*a-r*h)/c;if(s.isNaN(f)||s.isInfinite(f)||s.isNaN(g)||s.isInfinite(g))throw new A;return new E(f,g)},e(U.prototype,{interfaces_:function(){return[]},
getClass:function(){return U}}),U.log10=function(t){var e=Math.log(t);return s.isInfinite(e)?e:s.isNaN(e)?e:e/U.LOG_10},U.min=function(t,e,n,i){var r=t;return e<r&&(r=e),n<r&&(r=n),i<r&&(r=i),r},U.clamp=function(){if("number"==typeof arguments[2]&&"number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1],n=arguments[2];return t<e?e:t>n?n:t}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var i=arguments[0],r=arguments[1],
s=arguments[2];return i<r?r:i>s?s:i}},U.wrap=function(t,e){return t<0?e- -t%e:t%e},U.max=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2];return e>(i=t)&&(i=e),n>i&&(i=n),i}if(4===arguments.length){var i,r=arguments[0],s=arguments[1],o=arguments[2],a=arguments[3];return s>(i=r)&&(i=s),o>i&&(i=o),a>i&&(i=a),i}},U.average=function(t,e){return(t+e)/2},U.LOG_10=Math.log(10),e(X.prototype,{interfaces_:function(){return[]},getClass:function(){return X}}),X.segmentToSegment=
function(t,e,n,i){if(t.equals(e))return X.pointToSegment(t,n,i);if(n.equals(i))return X.pointToSegment(i,t,e);var r=!1;if(M.intersects(t,e,n,i)){var s=(e.x-t.x)*(i.y-n.y)-(e.y-t.y)*(i.x-n.x);if(0===s)r=!0;else{var o=(t.y-n.y)*(i.x-n.x)-(t.x-n.x)*(i.y-n.y),a=((t.y-n.y)*(e.x-t.x)-(t.x-n.x)*(e.y-t.y))/s,u=o/s;(u<0||u>1||a<0||a>1)&&(r=!0)}}else r=!0;return r?U.min(X.pointToSegment(t,n,i),X.pointToSegment(e,n,i),X.pointToSegment(n,t,e),X.pointToSegment(i,t,e)):0},X.pointToSegment=function(t,e,n){if(e.x===
n.x&&e.y===n.y)return t.distance(e);var i=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),r=((t.x-e.x)*(n.x-e.x)+(t.y-e.y)*(n.y-e.y))/i;if(r<=0)return t.distance(e);if(r>=1)return t.distance(n);var s=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/i;return Math.abs(s)*Math.sqrt(i)},X.pointToLinePerpendicular=function(t,e,n){var i=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),r=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/i;return Math.abs(r)*Math.sqrt(i)},X.pointToSegmentString=function(t,e){if(0===e.length)throw new i("Line array must contain at least one vertex");
for(var n=t.distance(e[0]),r=0;r<e.length-1;r++){var s=X.pointToSegment(t,e[r],e[r+1]);s<n&&(n=s)}return n},e(H.prototype,{setOrdinate:function(t,e,n){},size:function(){},getOrdinate:function(t,e){},getCoordinate:function(){},getCoordinateCopy:function(t){},getDimension:function(){},getX:function(t){},expandEnvelope:function(t){},copy:function(){},getY:function(t){},toCoordinateArray:function(){},interfaces_:function(){return[d]},getClass:function(){return H}}),H.X=0,H.Y=1,H.Z=2,H.M=3,e(W.prototype,
{create:function(){1===arguments.length?arguments[0]instanceof Array||N(arguments[0],H):arguments.length},interfaces_:function(){return[]},getClass:function(){return W}}),e(j.prototype,{filter:function(t){},interfaces_:function(){return[]},getClass:function(){return j}}),e(K.prototype,{isGeometryCollection:function(){return this.getTypeCode()===K.TYPECODE_GEOMETRYCOLLECTION},getFactory:function(){return this._factory},getGeometryN:function(t){return this},getArea:function(){return 0},isRectangle:function(){return!1},
equals:function(){if(arguments[0]instanceof K){var t=arguments[0];return null!==t&&this.equalsTopo(t)}if(arguments[0]instanceof Object){var e=arguments[0];if(!(e instanceof K))return!1;var n=e;return this.equalsExact(n)}},equalsExact:function(t){return this===t||this.equalsExact(t,0)},geometryChanged:function(){this.apply(K.geometryChangedFilter)},geometryChangedAction:function(){this._envelope=null},equalsNorm:function(t){return null!==t&&this.norm().equalsExact(t.norm())},getLength:function(){return 0},
getNumGeometries:function(){return 1},compareTo:function(){if(1===arguments.length){var t=arguments[0],e=t;return this.getTypeCode()!==e.getTypeCode()?this.getTypeCode()-e.getTypeCode():this.isEmpty()&&e.isEmpty()?0:this.isEmpty()?-1:e.isEmpty()?1:this.compareToSameClass(t)}if(2===arguments.length){var n=arguments[0],i=arguments[1];e=n;return this.getTypeCode()!==e.getTypeCode()?this.getTypeCode()-e.getTypeCode():this.isEmpty()&&e.isEmpty()?0:this.isEmpty()?-1:e.isEmpty()?1:this.compareToSameClass(n,
i)}},getUserData:function(){return this._userData},getSRID:function(){return this._SRID},getEnvelope:function(){return this.getFactory().toGeometry(this.getEnvelopeInternal())},checkNotGeometryCollection:function(t){if(t.getTypeCode()===K.TYPECODE_GEOMETRYCOLLECTION)throw new i("This method does not support GeometryCollection arguments");},equal:function(t,e,n){return 0===n?t.equals(e):t.distance(e)<=n},norm:function(){var t=this.copy();return t.normalize(),t},getPrecisionModel:function(){return this._factory.getPrecisionModel()},
getEnvelopeInternal:function(){return null===this._envelope&&(this._envelope=this.computeEnvelopeInternal()),new M(this._envelope)},setSRID:function(t){this._SRID=t},setUserData:function(t){this._userData=t},compare:function(t,e){for(var n=t.iterator(),i=e.iterator();n.hasNext()&&i.hasNext();){var r=n.next(),s=i.next(),o=r.compareTo(s);if(0!==o)return o}return n.hasNext()?1:i.hasNext()?-1:0},hashCode:function(){return this.getEnvelopeInternal().hashCode()},isGeometryCollectionOrDerived:function(){return this.getTypeCode()===
K.TYPECODE_GEOMETRYCOLLECTION||this.getTypeCode()===K.TYPECODE_MULTIPOINT||this.getTypeCode()===K.TYPECODE_MULTILINESTRING||this.getTypeCode()===K.TYPECODE_MULTIPOLYGON},interfaces_:function(){return[d,g,p]},getClass:function(){return K}}),K.hasNonEmptyElements=function(t){for(var e=0;e<t.length;e++)if(!t[e].isEmpty())return!0;return!1},K.hasNullElements=function(t){for(var e=0;e<t.length;e++)if(null===t[e])return!0;return!1},K.serialVersionUID=0x799ea46522854c00,K.TYPECODE_POINT=0,K.TYPECODE_MULTIPOINT=
1,K.TYPECODE_LINESTRING=2,K.TYPECODE_LINEARRING=3,K.TYPECODE_MULTILINESTRING=4,K.TYPECODE_POLYGON=5,K.TYPECODE_MULTIPOLYGON=6,K.TYPECODE_GEOMETRYCOLLECTION=7,K.TYPENAME_POINT="Point",K.TYPENAME_MULTIPOINT="MultiPoint",K.TYPENAME_LINESTRING="LineString",K.TYPENAME_LINEARRING="LinearRing",K.TYPENAME_MULTILINESTRING="MultiLineString",K.TYPENAME_POLYGON="Polygon",K.TYPENAME_MULTIPOLYGON="MultiPolygon",K.TYPENAME_GEOMETRYCOLLECTION="GeometryCollection",K.geometryChangedFilter={interfaces_:function(){return[j]},
filter:function(t){t.geometryChangedAction()}},e(Z.prototype,{filter:function(t){},interfaces_:function(){return[]},getClass:function(){return Z}}),e(Q.prototype,{isInBoundary:function(t){},interfaces_:function(){return[]},getClass:function(){return Q}}),e(J.prototype,{isInBoundary:function(t){return t%2==1},interfaces_:function(){return[Q]},getClass:function(){return J}}),e($.prototype,{isInBoundary:function(t){return t>0},interfaces_:function(){return[Q]},getClass:function(){return $}}),e(tt.prototype,
{isInBoundary:function(t){return t>1},interfaces_:function(){return[Q]},getClass:function(){return tt}}),e(et.prototype,{isInBoundary:function(t){return 1===t},interfaces_:function(){return[Q]},getClass:function(){return et}}),Q.Mod2BoundaryNodeRule=J,Q.EndPointBoundaryNodeRule=$,Q.MultiValentEndPointBoundaryNodeRule=tt,Q.MonoValentEndPointBoundaryNodeRule=et,Q.MOD2_BOUNDARY_RULE=new J,Q.ENDPOINT_BOUNDARY_RULE=new $,Q.MULTIVALENT_ENDPOINT_BOUNDARY_RULE=new tt,Q.MONOVALENT_ENDPOINT_BOUNDARY_RULE=new et,
Q.OGC_SFS_BOUNDARY_RULE=Q.MOD2_BOUNDARY_RULE,e(nt.prototype,{interfaces_:function(){return[]},getClass:function(){return nt}}),nt.isRing=function(t){return!(t.length<4)&&!!t[0].equals2D(t[t.length-1])},nt.ptNotInList=function(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(nt.indexOf(i,e)<0)return i}return null},nt.scroll=function(t,e){var n=nt.indexOf(e,t);if(n<0)return null;var i=(new Array(t.length)).fill(null);Y.arraycopy(t,n,i,0,t.length-n),Y.arraycopy(t,0,i,t.length-n,n),Y.arraycopy(i,0,t,0,
t.length)},nt.equals=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];if(t===e)return!0;if(null===t||null===e)return!1;if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].equals(e[n]))return!1;return!0}if(3===arguments.length){var i=arguments[0],r=arguments[1],s=arguments[2];if(i===r)return!0;if(null===i||null===r)return!1;if(i.length!==r.length)return!1;for(n=0;n<i.length;n++)if(0!==s.compare(i[n],r[n]))return!1;return!0}},nt.intersection=function(t,e){for(var n=
new b,i=0;i<t.length;i++)e.intersects(t[i])&&n.add(t[i],!0);return n.toCoordinateArray()},nt.hasRepeatedPoints=function(t){for(var e=1;e<t.length;e++)if(t[e-1].equals(t[e]))return!0;return!1},nt.removeRepeatedPoints=function(t){return nt.hasRepeatedPoints(t)?(new b(t,!1)).toCoordinateArray():t},nt.reverse=function(t){for(var e=t.length-1,n=Math.trunc(e/2),i=0;i<=n;i++){var r=t[i];t[i]=t[e-i],t[e-i]=r}},nt.removeNull=function(t){for(var e=0,n=0;n<t.length;n++)null!==t[n]&&e++;var i=(new Array(e)).fill(null);
if(0===e)return i;var r=0;for(n=0;n<t.length;n++)null!==t[n]&&(i[r++]=t[n]);return i},nt.copyDeep=function(){if(1===arguments.length){for(var t=arguments[0],e=(new Array(t.length)).fill(null),n=0;n<t.length;n++)e[n]=new E(t[n]);return e}if(5===arguments.length){var i=arguments[0],r=arguments[1],s=arguments[2],o=arguments[3],a=arguments[4];for(n=0;n<a;n++)s[o+n]=new E(i[r+n])}},nt.isEqualReversed=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[t.length-n-1];if(0!==i.compareTo(r))return!1}return!0},
nt.envelope=function(t){for(var e=new M,n=0;n<t.length;n++)e.expandToInclude(t[n]);return e},nt.toCoordinateArray=function(t){return t.toArray(nt.coordArrayType)},nt.atLeastNCoordinatesOrNothing=function(t,e){return e.length>=t?e:[]},nt.indexOf=function(t,e){for(var n=0;n<e.length;n++)if(t.equals(e[n]))return n;return-1},nt.increasingDirection=function(t){for(var e=0;e<Math.trunc(t.length/2);e++){var n=t.length-1-e,i=t[e].compareTo(t[n]);if(0!==i)return i}return 1},nt.compare=function(t,e){for(var n=
0;n<t.length&&n<e.length;){var i=t[n].compareTo(e[n]);if(0!==i)return i;n++}return n<e.length?-1:n<t.length?1:0},nt.minCoordinate=function(t){for(var e=null,n=0;n<t.length;n++)(null===e||e.compareTo(t[n])>0)&&(e=t[n]);return e},nt.extract=function(t,e,n){e=U.clamp(e,0,t.length);var i=(n=U.clamp(n,-1,t.length))-e+1;n<0&&(i=0),e>=t.length&&(i=0),n<e&&(i=0);var r=(new Array(i)).fill(null);if(0===i)return r;for(var s=0,o=e;o<=n;o++)r[s++]=t[o];return r},e(it.prototype,{compare:function(t,e){var n=t,i=
e;return nt.compare(n,i)},interfaces_:function(){return[_]},getClass:function(){return it}}),e(rt.prototype,{compare:function(t,e){var n=t,i=e;if(n.length<i.length)return-1;if(n.length>i.length)return 1;if(0===n.length)return 0;var r=nt.compare(n,i);return nt.isEqualReversed(n,i)?0:r},OLDcompare:function(t,e){var n=t,i=e;if(n.length<i.length)return-1;if(n.length>i.length)return 1;if(0===n.length)return 0;for(var r=nt.increasingDirection(n),s=nt.increasingDirection(i),o=r>0?0:n.length-1,a=s>0?0:n.length-
1,u=0;u<n.length;u++){var l=n[o].compareTo(i[a]);if(0!==l)return l;o+=r,a+=s}return 0},interfaces_:function(){return[_]},getClass:function(){return rt}}),nt.ForwardComparator=it,nt.BidirectionalComparator=rt,nt.coordArrayType=(new Array(0)).fill(null),st.prototype.get=function(){},st.prototype.put=function(){},st.prototype.size=function(){},st.prototype.values=function(){},st.prototype.entrySet=function(){},ot.prototype=new st,at.prototype=new S,at.prototype.contains=function(){},ut.prototype=new at,
ut.prototype.contains=function(t){for(var e=0,n=this.array_.length;e<n;e++)if(this.array_[e]===t)return!0;return!1},ut.prototype.add=function(t){return!this.contains(t)&&(this.array_.push(t),!0)},ut.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},ut.prototype.remove=function(t){throw new javascript.util.OperationNotSupported;},ut.prototype.size=function(){return this.array_.length},ut.prototype.isEmpty=function(){return 0===this.array_.length},ut.prototype.toArray=
function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},ut.prototype.iterator=function(){return new lt(this)};var lt=function(t){this.hashSet_=t,this.position_=0};lt.prototype.next=function(){if(this.position_===this.hashSet_.size())throw new R;return this.hashSet_.array_[this.position_++]},lt.prototype.hasNext=function(){return this.position_<this.hashSet_.size()},lt.prototype.remove=function(){throw new T;};var ht=0;function ct(t){return null==t?ht:t.color}function ft(t){return null==
t?null:t.parent}function gt(t,e){null!==t&&(t.color=e)}function dt(t){return null==t?null:t.left}function _t(t){return null==t?null:t.right}function pt(){this.root_=null,this.size_=0}function mt(){}function vt(){}function yt(){this.array_=[],arguments[0]instanceof S&&this.addAll(arguments[0])}pt.prototype=new ot,pt.prototype.get=function(t){for(var e=this.root_;null!==e;){var n=t.compareTo(e.key);if(n<0)e=e.left;else{if(!(n>0))return e.value;e=e.right}}return null},pt.prototype.put=function(t,e){if(null===
this.root_)return this.root_={key:t,value:e,left:null,right:null,parent:null,color:ht,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var n,i,r=this.root_;do if(n=r,(i=t.compareTo(r.key))<0)r=r.left;else{if(!(i>0)){var s=r.value;return r.value=e,s}r=r.right}while(null!==r);var o={key:t,left:null,right:null,value:e,parent:n,color:ht,getValue:function(){return this.value},getKey:function(){return this.key}};return i<0?n.left=o:n.right=o,this.fixAfterInsertion(o),
this.size_++,null},pt.prototype.fixAfterInsertion=function(t){for(t.color=1;null!=t&&t!=this.root_&&1==t.parent.color;){var e;if(ft(t)==dt(ft(ft(t))))1==ct(e=_t(ft(ft(t))))?(gt(ft(t),ht),gt(e,ht),gt(ft(ft(t)),1),t=ft(ft(t))):(t==_t(ft(t))&&(t=ft(t),this.rotateLeft(t)),gt(ft(t),ht),gt(ft(ft(t)),1),this.rotateRight(ft(ft(t))));else 1==ct(e=dt(ft(ft(t))))?(gt(ft(t),ht),gt(e,ht),gt(ft(ft(t)),1),t=ft(ft(t))):(t==dt(ft(t))&&(t=ft(t),this.rotateRight(t)),gt(ft(t),ht),gt(ft(ft(t)),1),this.rotateLeft(ft(ft(t))))}this.root_.color=
ht},pt.prototype.values=function(){var t=new P,e=this.getFirstEntry();if(null!==e)for(t.add(e.value);null!==(e=pt.successor(e));)t.add(e.value);return t},pt.prototype.entrySet=function(){var t=new ut,e=this.getFirstEntry();if(null!==e)for(t.add(e);null!==(e=pt.successor(e));)t.add(e);return t},pt.prototype.rotateLeft=function(t){if(null!=t){var e=t.right;t.right=e.left,null!=e.left&&(e.left.parent=t),e.parent=t.parent,null==t.parent?this.root_=e:t.parent.left==t?t.parent.left=e:t.parent.right=e,e.left=
t,t.parent=e}},pt.prototype.rotateRight=function(t){if(null!=t){var e=t.left;t.left=e.right,null!=e.right&&(e.right.parent=t),e.parent=t.parent,null==t.parent?this.root_=e:t.parent.right==t?t.parent.right=e:t.parent.left=e,e.right=t,t.parent=e}},pt.prototype.getFirstEntry=function(){var t=this.root_;if(null!=t)for(;null!=t.left;)t=t.left;return t},pt.successor=function(t){if(null===t)return null;if(null!==t.right){for(var e=t.right;null!==e.left;)e=e.left;return e}e=t.parent;for(var n=t;null!==e&&
n===e.right;)n=e,e=e.parent;return e},pt.prototype.size=function(){return this.size_},e(mt.prototype,{interfaces_:function(){return[]},getClass:function(){return mt}}),vt.prototype=new at,yt.prototype=new vt,yt.prototype.contains=function(t){for(var e=0,n=this.array_.length;e<n;e++)if(0===this.array_[e].compareTo(t))return!0;return!1},yt.prototype.add=function(t){if(this.contains(t))return!1;for(var e=0,n=this.array_.length;e<n;e++)if(1===this.array_[e].compareTo(t))return this.array_.splice(e,0,
t),!0;return this.array_.push(t),!0},yt.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},yt.prototype.remove=function(t){throw new T;},yt.prototype.size=function(){return this.array_.length},yt.prototype.isEmpty=function(){return 0===this.array_.length},yt.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},yt.prototype.iterator=function(){return new Et(this)};var xt,Et=function(t){this.treeSet_=t,
this.position_=0};function It(){}function Nt(){}function Ct(){}function St(){}function Lt(){this._geometries=null;var t=arguments[0],e=arguments[1];if(K.call(this,e),null===t&&(t=[]),K.hasNullElements(t))throw new i("geometries must not contain null elements");this._geometries=t}function wt(){var t=arguments[0],e=arguments[1];Lt.call(this,t,e)}function Rt(){if(this._geom=null,this._geomFact=null,this._bnRule=null,this._endpointMap=null,1===arguments.length){var t=arguments[0];Rt.call(this,t,Q.MOD2_BOUNDARY_RULE)}else if(2===
arguments.length){var e=arguments[0],n=arguments[1];this._geom=e,this._geomFact=e.getFactory(),this._bnRule=n}}function Tt(){this.count=null}function Pt(){}function Ot(){}function bt(){}function Mt(t){this.str=t}function Dt(){}function At(){this._points=null;var t=arguments[0],e=arguments[1];K.call(this,e),this.init(t)}function Ft(){}function Gt(){this._coordinates=null;var t=arguments[0],e=arguments[1];K.call(this,e),this.init(t)}function qt(){}function Bt(){}function Vt(){this._shell=null,this._holes=
null;var t=arguments[0],e=arguments[1],n=arguments[2];if(K.call(this,n),null===t&&(t=this.getFactory().createLinearRing()),null===e&&(e=[]),K.hasNullElements(e))throw new i("holes must not contain null elements");if(t.isEmpty()&&K.hasNonEmptyElements(e))throw new i("shell is empty but holes are not");this._shell=t,this._holes=e}function zt(){var t=arguments[0],e=arguments[1];Lt.call(this,t,e)}function Yt(){if(arguments[0]instanceof Array&&arguments[1]instanceof se){var t=arguments[0],e=arguments[1];
Yt.call(this,e.getCoordinateSequenceFactory().create(t),e)}else if(N(arguments[0],H)&&arguments[1]instanceof se){var n=arguments[0],i=arguments[1];At.call(this,n,i),this.validateConstruction()}}function kt(){var t=arguments[0],e=arguments[1];Lt.call(this,t,e)}function Ut(){if(this._factory=null,this._isUserDataCopied=!1,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._factory=t}}function Xt(){}function Ht(){}function Wt(){}function jt(){}function Kt(){if(this._dimension=
3,this._coordinates=null,1===arguments.length)if(arguments[0]instanceof Array){var t=arguments[0];Kt.call(this,t,3)}else if(Number.isInteger(arguments[0])){var e=arguments[0];this._coordinates=(new Array(e)).fill(null);for(var n=0;n<e;n++)this._coordinates[n]=new E}else{if(N(arguments[0],H)){var i=arguments[0];if(null===i)return this._coordinates=(new Array(0)).fill(null),null;this._dimension=i.getDimension(),this._coordinates=(new Array(i.size())).fill(null);for(n=0;n<this._coordinates.length;n++)this._coordinates[n]=
i.getCoordinateCopy(n)}}else if(2===arguments.length)if(arguments[0]instanceof Array&&Number.isInteger(arguments[1])){var r=arguments[0],s=arguments[1];this._coordinates=r,this._dimension=s,null===r&&(this._coordinates=(new Array(0)).fill(null))}else if(Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var o=arguments[0],a=arguments[1];this._coordinates=(new Array(o)).fill(null),this._dimension=a;for(n=0;n<o;n++)this._coordinates[n]=new E}}function Zt(){}Et.prototype.next=function(){if(this.position_===
this.treeSet_.size())throw new R;return this.treeSet_.array_[this.position_++]},Et.prototype.hasNext=function(){return this.position_<this.treeSet_.size()},Et.prototype.remove=function(){throw new T;},It.sort=function(){var t,e,n,i,r=arguments[0];if(1===arguments.length)return i=function(t,e){return t.compareTo(e)},void r.sort(i);if(2===arguments.length)n=arguments[1],i=function(t,e){return n.compare(t,e)},r.sort(i);else{if(3===arguments.length){(e=r.slice(arguments[1],arguments[2])).sort();var s=
r.slice(0,arguments[1]).concat(e,r.slice(arguments[2],r.length));for(r.splice(0,r.length),t=0;t<s.length;t++)r.push(s[t]);return}if(4===arguments.length){for(e=r.slice(arguments[1],arguments[2]),n=arguments[3],i=function(t,e){return n.compare(t,e)},e.sort(i),s=r.slice(0,arguments[1]).concat(e,r.slice(arguments[2],r.length)),r.splice(0,r.length),t=0;t<s.length;t++)r.push(s[t]);return}}},It.asList=function(t){for(var e=new P,n=0,i=t.length;n<i;n++)e.add(t[n]);return e},e(Nt.prototype,{interfaces_:function(){return[]},
getClass:function(){return Nt}}),Nt.toDimensionSymbol=function(t){switch(t){case Nt.FALSE:return Nt.SYM_FALSE;case Nt.TRUE:return Nt.SYM_TRUE;case Nt.DONTCARE:return Nt.SYM_DONTCARE;case Nt.P:return Nt.SYM_P;case Nt.L:return Nt.SYM_L;case Nt.A:return Nt.SYM_A}throw new i("Unknown dimension value: "+t);},Nt.toDimensionValue=function(t){switch(q.toUpperCase(t)){case Nt.SYM_FALSE:return Nt.FALSE;case Nt.SYM_TRUE:return Nt.TRUE;case Nt.SYM_DONTCARE:return Nt.DONTCARE;case Nt.SYM_P:return Nt.P;case Nt.SYM_L:return Nt.L;
case Nt.SYM_A:return Nt.A}throw new i("Unknown dimension symbol: "+t);},Nt.P=0,Nt.L=1,Nt.A=2,Nt.FALSE=-1,Nt.TRUE=-2,Nt.DONTCARE=-3,Nt.SYM_FALSE="F",Nt.SYM_TRUE="T",Nt.SYM_DONTCARE="*",Nt.SYM_P="0",Nt.SYM_L="1",Nt.SYM_A="2",e(Ct.prototype,{filter:function(t){},interfaces_:function(){return[]},getClass:function(){return Ct}}),e(St.prototype,{filter:function(t,e){},isDone:function(){},isGeometryChanged:function(){},interfaces_:function(){return[]},getClass:function(){return St}}),v(Lt,K),e(Lt.prototype,
{computeEnvelopeInternal:function(){for(var t=new M,e=0;e<this._geometries.length;e++)t.expandToInclude(this._geometries[e].getEnvelopeInternal());return t},getGeometryN:function(t){return this._geometries[t]},getCoordinates:function(){for(var t=(new Array(this.getNumPoints())).fill(null),e=-1,n=0;n<this._geometries.length;n++)for(var i=this._geometries[n].getCoordinates(),r=0;r<i.length;r++)t[++e]=i[r];return t},getArea:function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getArea();
return t},equalsExact:function(){if(2===arguments.length&&"number"==typeof arguments[1]&&arguments[0]instanceof K){var t=arguments[0],e=arguments[1];if(!this.isEquivalentClass(t))return!1;var n=t;if(this._geometries.length!==n._geometries.length)return!1;for(var i=0;i<this._geometries.length;i++)if(!this._geometries[i].equalsExact(n._geometries[i],e))return!1;return!0}return K.prototype.equalsExact.apply(this,arguments)},normalize:function(){for(var t=0;t<this._geometries.length;t++)this._geometries[t].normalize();
It.sort(this._geometries)},getCoordinate:function(){return this.isEmpty()?null:this._geometries[0].getCoordinate()},getBoundaryDimension:function(){for(var t=Nt.FALSE,e=0;e<this._geometries.length;e++)t=Math.max(t,this._geometries[e].getBoundaryDimension());return t},getTypeCode:function(){return K.TYPECODE_GEOMETRYCOLLECTION},getDimension:function(){for(var t=Nt.FALSE,e=0;e<this._geometries.length;e++)t=Math.max(t,this._geometries[e].getDimension());return t},getLength:function(){for(var t=0,e=0;e<
this._geometries.length;e++)t+=this._geometries[e].getLength();return t},getNumPoints:function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getNumPoints();return t},getNumGeometries:function(){return this._geometries.length},reverse:function(){for(var t=this._geometries.length,e=(new Array(t)).fill(null),n=0;n<this._geometries.length;n++)e[n]=this._geometries[n].reverse();return this.getFactory().createGeometryCollection(e)},compareToSameClass:function(){if(1===arguments.length){var t=
arguments[0],e=new yt(It.asList(this._geometries)),n=new yt(It.asList(t._geometries));return this.compare(e,n)}if(2===arguments.length){for(var i=arguments[0],r=arguments[1],s=i,o=this.getNumGeometries(),a=s.getNumGeometries(),u=0;u<o&&u<a;){var l=this.getGeometryN(u),h=s.getGeometryN(u),c=l.compareToSameClass(h,r);if(0!==c)return c;u++}return u<o?1:u<a?-1:0}},apply:function(){if(N(arguments[0],Z))for(var t=arguments[0],e=0;e<this._geometries.length;e++)this._geometries[e].apply(t);else if(N(arguments[0],
St)){var n=arguments[0];if(0===this._geometries.length)return null;for(e=0;e<this._geometries.length&&(this._geometries[e].apply(n),!n.isDone());e++);n.isGeometryChanged()&&this.geometryChanged()}else if(N(arguments[0],Ct)){var i=arguments[0];i.filter(this);for(e=0;e<this._geometries.length;e++)this._geometries[e].apply(i)}else if(N(arguments[0],j)){var r=arguments[0];r.filter(this);for(e=0;e<this._geometries.length;e++)this._geometries[e].apply(r)}},getBoundary:function(){return this.checkNotGeometryCollection(this),
x.shouldNeverReachHere(),null},getGeometryType:function(){return K.TYPENAME_GEOMETRYCOLLECTION},copy:function(){for(var t=(new Array(this._geometries.length)).fill(null),e=0;e<t.length;e++)t[e]=this._geometries[e].copy();return new Lt(t,this._factory)},isEmpty:function(){for(var t=0;t<this._geometries.length;t++)if(!this._geometries[t].isEmpty())return!1;return!0},interfaces_:function(){return[]},getClass:function(){return Lt}}),Lt.serialVersionUID=-0x4f07bcb1f857d800,v(wt,Lt),e(wt.prototype,{equalsExact:function(){if(2===
arguments.length&&"number"==typeof arguments[1]&&arguments[0]instanceof K){var t=arguments[0],e=arguments[1];return!!this.isEquivalentClass(t)&&Lt.prototype.equalsExact.call(this,t,e)}return Lt.prototype.equalsExact.apply(this,arguments)},getBoundaryDimension:function(){return this.isClosed()?Nt.FALSE:0},isClosed:function(){if(this.isEmpty())return!1;for(var t=0;t<this._geometries.length;t++)if(!this._geometries[t].isClosed())return!1;return!0},getTypeCode:function(){return K.TYPECODE_MULTILINESTRING},
getDimension:function(){return 1},reverse:function(){for(var t=this._geometries.length,e=(new Array(t)).fill(null),n=0;n<this._geometries.length;n++)e[t-1-n]=this._geometries[n].reverse();return this.getFactory().createMultiLineString(e)},getBoundary:function(){return(new Rt(this)).getBoundary()},getGeometryType:function(){return K.TYPENAME_MULTILINESTRING},copy:function(){for(var t=(new Array(this._geometries.length)).fill(null),e=0;e<t.length;e++)t[e]=this._geometries[e].copy();return new wt(t,
this._factory)},interfaces_:function(){return[mt]},getClass:function(){return wt}}),wt.serialVersionUID=0x7155d2ab4afa8000,e(Rt.prototype,{boundaryMultiLineString:function(t){if(this._geom.isEmpty())return this.getEmptyMultiPoint();var e=this.computeBoundaryCoordinates(t);return 1===e.length?this._geomFact.createPoint(e[0]):this._geomFact.createMultiPointFromCoords(e)},getBoundary:function(){return this._geom instanceof At?this.boundaryLineString(this._geom):this._geom instanceof wt?this.boundaryMultiLineString(this._geom):
this._geom.getBoundary()},boundaryLineString:function(t){return this._geom.isEmpty()?this.getEmptyMultiPoint():t.isClosed()?this._bnRule.isInBoundary(2)?t.getStartPoint():this._geomFact.createMultiPoint():this._geomFact.createMultiPoint([t.getStartPoint(),t.getEndPoint()])},getEmptyMultiPoint:function(){return this._geomFact.createMultiPoint()},computeBoundaryCoordinates:function(t){var e=new P;this._endpointMap=new pt;for(var n=0;n<t.getNumGeometries();n++){var i=t.getGeometryN(n);0!==i.getNumPoints()&&
(this.addEndpoint(i.getCoordinateN(0)),this.addEndpoint(i.getCoordinateN(i.getNumPoints()-1)))}for(var r=this._endpointMap.entrySet().iterator();r.hasNext();){var s=r.next(),o=s.getValue().count;this._bnRule.isInBoundary(o)&&e.add(s.getKey())}return nt.toCoordinateArray(e)},addEndpoint:function(t){var e=this._endpointMap.get(t);null===e&&(e=new Tt,this._endpointMap.put(t,e)),e.count++},interfaces_:function(){return[]},getClass:function(){return Rt}}),Rt.getBoundary=function(){return 1===arguments.length?
(new Rt(arguments[0])).getBoundary():2===arguments.length?(new Rt(arguments[0],arguments[1])).getBoundary():void 0},e(Tt.prototype,{interfaces_:function(){return[]},getClass:function(){return Tt}}),e(Pt.prototype,{interfaces_:function(){return[]},getClass:function(){return Pt}}),Pt.ofLine=function(t){var e=t.size();if(e<=1)return 0;var n=0,i=new E;t.getCoordinate(0,i);for(var r=i.x,s=i.y,o=1;o<e;o++){t.getCoordinate(o,i);var a=i.x,u=i.y,l=a-r,h=u-s;n+=Math.sqrt(l*l+h*h),r=a,s=u}return n},e(bt.prototype,
{interfaces_:function(){return[]},getClass:function(){return bt}}),bt.chars=function(t,e){for(var n=(new Array(e)).fill(null),i=0;i<e;i++)n[i]=t;return new String(n)},bt.getStackTrace=function(){if(1===arguments.length){var t=arguments[0],e=new function(){},n=new function(){}(e);return t.printStackTrace(n),e.toString()}if(2===arguments.length){for(var i=arguments[0],r=arguments[1],s="",o=new function(){}(new function(){}(bt.getStackTrace(i))),a=0;a<r;a++)try{s+=o.readLine()+bt.NEWLINE}catch(t){if(!(t instanceof
Ot))throw t;x.shouldNeverReachHere()}return s}},bt.split=function(t,e){for(var n=e.length,i=new P,r=""+t,s=r.indexOf(e);s>=0;){var o=r.substring(0,s);i.add(o),s=(r=r.substring(s+n)).indexOf(e)}r.length>0&&i.add(r);for(var a=(new Array(i.size())).fill(null),u=0;u<a.length;u++)a[u]=i.get(u);return a},bt.toString=function(){if(1===arguments.length&&"number"==typeof arguments[0]){var t=arguments[0];return bt.SIMPLE_ORDINATE_FORMAT.format(t)}},bt.spaces=function(t){return bt.chars(" ",t)},bt.NEWLINE=Y.getProperty("line.separator"),
bt.SIMPLE_ORDINATE_FORMAT=new function(){}("0.#"),Mt.prototype.append=function(t){this.str+=t},Mt.prototype.setCharAt=function(t,e){this.str=this.str.substr(0,t)+e+this.str.substr(t+1)},Mt.prototype.toString=function(t){return this.str},e(Dt.prototype,{interfaces_:function(){return[]},getClass:function(){return Dt}}),Dt.copyCoord=function(t,e,n,i){for(var r=Math.min(t.getDimension(),n.getDimension()),s=0;s<r;s++)n.setOrdinate(i,s,t.getOrdinate(e,s))},Dt.isRing=function(t){var e=t.size();return 0===
e||!(e<=3)&&(t.getOrdinate(0,H.X)===t.getOrdinate(e-1,H.X)&&t.getOrdinate(0,H.Y)===t.getOrdinate(e-1,H.Y))},Dt.isEqual=function(t,e){var n=t.size();if(n!==e.size())return!1;for(var i=Math.min(t.getDimension(),e.getDimension()),r=0;r<n;r++)for(var o=0;o<i;o++){var a=t.getOrdinate(r,o),u=e.getOrdinate(r,o);if(t.getOrdinate(r,o)!==e.getOrdinate(r,o)&&(!s.isNaN(a)||!s.isNaN(u)))return!1}return!0},Dt.extend=function(t,e,n){var i=t.create(n,e.getDimension()),r=e.size();if(Dt.copy(e,0,i,0,r),r>0)for(var s=
r;s<n;s++)Dt.copy(e,r-1,i,s,1);return i},Dt.reverse=function(t){for(var e=t.size()-1,n=Math.trunc(e/2),i=0;i<=n;i++)Dt.swap(t,i,e-i)},Dt.swap=function(t,e,n){if(e===n)return null;for(var i=0;i<t.getDimension();i++){var r=t.getOrdinate(e,i);t.setOrdinate(e,i,t.getOrdinate(n,i)),t.setOrdinate(n,i,r)}},Dt.copy=function(t,e,n,i,r){for(var s=0;s<r;s++)Dt.copyCoord(t,e+s,n,i+s)},Dt.toString=function(){if(1===arguments.length&&N(arguments[0],H)){var t=arguments[0],e=t.size();if(0===e)return"()";var n=t.getDimension(),
i=new Mt;i.append("(");for(var r=0;r<e;r++){r>0&&i.append(" ");for(var s=0;s<n;s++)s>0&&i.append(","),i.append(bt.toString(t.getOrdinate(r,s)))}return i.append(")"),i.toString()}},Dt.ensureValidRing=function(t,e){var n=e.size();return 0===n?e:n<=3?Dt.createClosedRing(t,e,4):e.getOrdinate(0,H.X)===e.getOrdinate(n-1,H.X)&&e.getOrdinate(0,H.Y)===e.getOrdinate(n-1,H.Y)?e:Dt.createClosedRing(t,e,n+1)},Dt.createClosedRing=function(t,e,n){var i=t.create(n,e.getDimension()),r=e.size();Dt.copy(e,0,i,0,r);
for(var s=r;s<n;s++)Dt.copy(e,0,i,s,1);return i},v(At,K),e(At.prototype,{computeEnvelopeInternal:function(){return this.isEmpty()?new M:this._points.expandEnvelope(new M)},isRing:function(){return this.isClosed()&&this.isSimple()},getCoordinates:function(){return this._points.toCoordinateArray()},equalsExact:function(){if(2===arguments.length&&"number"==typeof arguments[1]&&arguments[0]instanceof K){var t=arguments[0],e=arguments[1];if(!this.isEquivalentClass(t))return!1;var n=t;if(this._points.size()!==
n._points.size())return!1;for(var i=0;i<this._points.size();i++)if(!this.equal(this._points.getCoordinate(i),n._points.getCoordinate(i),e))return!1;return!0}return K.prototype.equalsExact.apply(this,arguments)},normalize:function(){for(var t=0;t<Math.trunc(this._points.size()/2);t++){var e=this._points.size()-1-t;if(!this._points.getCoordinate(t).equals(this._points.getCoordinate(e))){if(this._points.getCoordinate(t).compareTo(this._points.getCoordinate(e))>0){var n=this._points.copy();Dt.reverse(n),
this._points=n}return null}}},getCoordinate:function(){return this.isEmpty()?null:this._points.getCoordinate(0)},getBoundaryDimension:function(){return this.isClosed()?Nt.FALSE:0},isClosed:function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},getEndPoint:function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},getTypeCode:function(){return K.TYPECODE_LINESTRING},getDimension:function(){return 1},getLength:function(){return Pt.ofLine(this._points)},
getNumPoints:function(){return this._points.size()},reverse:function(){var t=this._points.copy();return Dt.reverse(t),this.getFactory().createLineString(t)},compareToSameClass:function(){if(1===arguments.length){for(var t=arguments[0],e=0,n=0;e<this._points.size()&&n<t._points.size();){var i=this._points.getCoordinate(e).compareTo(t._points.getCoordinate(n));if(0!==i)return i;e++,n++}return e<this._points.size()?1:n<t._points.size()?-1:0}if(2===arguments.length){t=arguments[0];return arguments[1].compare(this._points,
t._points)}},apply:function(){if(N(arguments[0],Z))for(var t=arguments[0],e=0;e<this._points.size();e++)t.filter(this._points.getCoordinate(e));else if(N(arguments[0],St)){var n=arguments[0];if(0===this._points.size())return null;for(e=0;e<this._points.size()&&(n.filter(this._points,e),!n.isDone());e++);n.isGeometryChanged()&&this.geometryChanged()}else if(N(arguments[0],Ct))arguments[0].filter(this);else if(N(arguments[0],j))arguments[0].filter(this)},getBoundary:function(){return(new Rt(this)).getBoundary()},
isEquivalentClass:function(t){return t instanceof At},getCoordinateN:function(t){return this._points.getCoordinate(t)},getGeometryType:function(){return K.TYPENAME_LINESTRING},copy:function(){return new At(this._points.copy(),this._factory)},getCoordinateSequence:function(){return this._points},isEmpty:function(){return 0===this._points.size()},init:function(t){if(null===t&&(t=this.getFactory().getCoordinateSequenceFactory().create([])),1===t.size())throw new i("Invalid number of points in LineString (found "+
t.size()+" - must be 0 or \x3e\x3d 2)");this._points=t},isCoordinate:function(t){for(var e=0;e<this._points.size();e++)if(this._points.getCoordinate(e).equals(t))return!0;return!1},getStartPoint:function(){return this.isEmpty()?null:this.getPointN(0)},getPointN:function(t){return this.getFactory().createPoint(this._points.getCoordinate(t))},interfaces_:function(){return[mt]},getClass:function(){return At}}),At.serialVersionUID=0x2b2b51ba435c8e00,e(Ft.prototype,{interfaces_:function(){return[]},getClass:function(){return Ft}}),
v(Gt,K),e(Gt.prototype,{computeEnvelopeInternal:function(){if(this.isEmpty())return new M;var t=new M;return t.expandToInclude(this._coordinates.getX(0),this._coordinates.getY(0)),t},getCoordinates:function(){return this.isEmpty()?[]:[this.getCoordinate()]},equalsExact:function(){if(2===arguments.length&&"number"==typeof arguments[1]&&arguments[0]instanceof K){var t=arguments[0],e=arguments[1];return!!this.isEquivalentClass(t)&&(!(!this.isEmpty()||!t.isEmpty())||this.isEmpty()===t.isEmpty()&&this.equal(t.getCoordinate(),
this.getCoordinate(),e))}return K.prototype.equalsExact.apply(this,arguments)},normalize:function(){},getCoordinate:function(){return 0!==this._coordinates.size()?this._coordinates.getCoordinate(0):null},getBoundaryDimension:function(){return Nt.FALSE},getTypeCode:function(){return K.TYPECODE_POINT},getDimension:function(){return 0},getNumPoints:function(){return this.isEmpty()?0:1},reverse:function(){return this.copy()},getX:function(){if(null===this.getCoordinate())throw new IllegalStateException("getX called on empty Point");
return this.getCoordinate().x},compareToSameClass:function(){if(1===arguments.length){var t=arguments[0];return this.getCoordinate().compareTo(t.getCoordinate())}if(2===arguments.length){t=arguments[0];return arguments[1].compare(this._coordinates,t._coordinates)}},apply:function(){if(N(arguments[0],Z)){var t=arguments[0];if(this.isEmpty())return null;t.filter(this.getCoordinate())}else if(N(arguments[0],St)){var e=arguments[0];if(this.isEmpty())return null;e.filter(this._coordinates,0),e.isGeometryChanged()&&
this.geometryChanged()}else if(N(arguments[0],Ct))arguments[0].filter(this);else if(N(arguments[0],j))arguments[0].filter(this)},getBoundary:function(){return this.getFactory().createGeometryCollection()},getGeometryType:function(){return K.TYPENAME_POINT},copy:function(){return new Gt(this._coordinates.copy(),this._factory)},getCoordinateSequence:function(){return this._coordinates},getY:function(){if(null===this.getCoordinate())throw new IllegalStateException("getY called on empty Point");return this.getCoordinate().y},
isEmpty:function(){return 0===this._coordinates.size()},init:function(t){null===t&&(t=this.getFactory().getCoordinateSequenceFactory().create([])),x.isTrue(t.size()<=1),this._coordinates=t},isSimple:function(){return!0},interfaces_:function(){return[Ft]},getClass:function(){return Gt}}),Gt.serialVersionUID=0x44077bad161cbc00,e(qt.prototype,{interfaces_:function(){return[]},getClass:function(){return qt}}),qt.ofRing=function(){if(arguments[0]instanceof Array){var t=arguments[0];return Math.abs(qt.ofRingSigned(t))}if(N(arguments[0],
H)){var e=arguments[0];return Math.abs(qt.ofRingSigned(e))}},qt.ofRingSigned=function(){if(arguments[0]instanceof Array){var t=arguments[0];if(t.length<3)return 0;for(var e=0,n=t[0].x,i=1;i<t.length-1;i++){var r=t[i].x-n,s=t[i+1].y;e+=r*(t[i-1].y-s)}return e/2}if(N(arguments[0],H)){var o=arguments[0],a=o.size();if(a<3)return 0;var u=new E,l=new E,h=new E;o.getCoordinate(0,l),o.getCoordinate(1,h);n=l.x;h.x-=n;for(e=0,i=1;i<a-1;i++)u.y=l.y,l.x=h.x,l.y=h.y,o.getCoordinate(i+1,h),h.x-=n,e+=l.x*(u.y-h.y);
return e/2}},e(Bt.prototype,{interfaces_:function(){return[]},getClass:function(){return Bt}}),v(Vt,K),e(Vt.prototype,{computeEnvelopeInternal:function(){return this._shell.getEnvelopeInternal()},getCoordinates:function(){if(this.isEmpty())return[];for(var t=(new Array(this.getNumPoints())).fill(null),e=-1,n=this._shell.getCoordinates(),i=0;i<n.length;i++)t[++e]=n[i];for(var r=0;r<this._holes.length;r++)for(var s=this._holes[r].getCoordinates(),o=0;o<s.length;o++)t[++e]=s[o];return t},getArea:function(){var t=
0;t+=qt.ofRing(this._shell.getCoordinateSequence());for(var e=0;e<this._holes.length;e++)t-=qt.ofRing(this._holes[e].getCoordinateSequence());return t},isRectangle:function(){if(0!==this.getNumInteriorRing())return!1;if(null===this._shell)return!1;if(5!==this._shell.getNumPoints())return!1;for(var t=this._shell.getCoordinateSequence(),e=this.getEnvelopeInternal(),n=0;n<5;n++){if((s=t.getX(n))!==e.getMinX()&&s!==e.getMaxX())return!1;if((o=t.getY(n))!==e.getMinY()&&o!==e.getMaxY())return!1}var i=t.getX(0),
r=t.getY(0);for(n=1;n<=4;n++){var s,o;if((s=t.getX(n))!==i===((o=t.getY(n))!==r))return!1;i=s,r=o}return!0},equalsExact:function(){if(2===arguments.length&&"number"==typeof arguments[1]&&arguments[0]instanceof K){var t=arguments[0],e=arguments[1];if(!this.isEquivalentClass(t))return!1;var n=t,i=this._shell,r=n._shell;if(!i.equalsExact(r,e))return!1;if(this._holes.length!==n._holes.length)return!1;for(var s=0;s<this._holes.length;s++)if(!this._holes[s].equalsExact(n._holes[s],e))return!1;return!0}return K.prototype.equalsExact.apply(this,
arguments)},normalize:function(){if(0===arguments.length){this.normalize(this._shell,!0);for(var t=0;t<this._holes.length;t++)this.normalize(this._holes[t],!1);It.sort(this._holes)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(e.isEmpty())return null;var i=(new Array(e.getCoordinates().length-1)).fill(null);Y.arraycopy(e.getCoordinates(),0,i,0,i.length);var r=nt.minCoordinate(e.getCoordinates());nt.scroll(i,r),Y.arraycopy(i,0,e.getCoordinates(),0,i.length),e.getCoordinates()[i.length]=
i[0],z.isCCW(e.getCoordinates())===n&&nt.reverse(e.getCoordinates())}},getCoordinate:function(){return this._shell.getCoordinate()},getNumInteriorRing:function(){return this._holes.length},getBoundaryDimension:function(){return 1},getTypeCode:function(){return K.TYPECODE_POLYGON},getDimension:function(){return 2},getLength:function(){var t=0;t+=this._shell.getLength();for(var e=0;e<this._holes.length;e++)t+=this._holes[e].getLength();return t},getNumPoints:function(){for(var t=this._shell.getNumPoints(),
e=0;e<this._holes.length;e++)t+=this._holes[e].getNumPoints();return t},reverse:function(){var t=this.copy();t._shell=this._shell.copy().reverse(),t._holes=(new Array(this._holes.length)).fill(null);for(var e=0;e<this._holes.length;e++)t._holes[e]=this._holes[e].copy().reverse();return t},convexHull:function(){return this.getExteriorRing().convexHull()},compareToSameClass:function(){if(1===arguments.length){var t=arguments[0],e=this._shell,n=t._shell;return e.compareToSameClass(n)}if(2===arguments.length){var i=
arguments[0],r=arguments[1],s=i,o=(e=this._shell,n=s._shell,e.compareToSameClass(n,r));if(0!==o)return o;for(var a=this.getNumInteriorRing(),u=s.getNumInteriorRing(),l=0;l<a&&l<u;){var h=this.getInteriorRingN(l),c=s.getInteriorRingN(l),f=h.compareToSameClass(c,r);if(0!==f)return f;l++}return l<a?1:l<u?-1:0}},apply:function(){if(N(arguments[0],Z)){var t=arguments[0];this._shell.apply(t);for(var e=0;e<this._holes.length;e++)this._holes[e].apply(t)}else if(N(arguments[0],St)){var n=arguments[0];if(this._shell.apply(n),
!n.isDone())for(e=0;e<this._holes.length&&(this._holes[e].apply(n),!n.isDone());e++);n.isGeometryChanged()&&this.geometryChanged()}else if(N(arguments[0],Ct))arguments[0].filter(this);else if(N(arguments[0],j)){var i=arguments[0];i.filter(this),this._shell.apply(i);for(e=0;e<this._holes.length;e++)this._holes[e].apply(i)}},getBoundary:function(){if(this.isEmpty())return this.getFactory().createMultiLineString();var t=(new Array(this._holes.length+1)).fill(null);t[0]=this._shell;for(var e=0;e<this._holes.length;e++)t[e+
1]=this._holes[e];return t.length<=1?this.getFactory().createLinearRing(t[0].getCoordinateSequence()):this.getFactory().createMultiLineString(t)},getGeometryType:function(){return K.TYPENAME_POLYGON},copy:function(){for(var t=this._shell.copy(),e=(new Array(this._holes.length)).fill(null),n=0;n<this._holes.length;n++)e[n]=this._holes[n].copy();return new Vt(t,e,this._factory)},getExteriorRing:function(){return this._shell},isEmpty:function(){return this._shell.isEmpty()},getInteriorRingN:function(t){return this._holes[t]},
interfaces_:function(){return[Bt]},getClass:function(){return Vt}}),Vt.serialVersionUID=-0x307ffefd8dc97200,v(zt,Lt),e(zt.prototype,{isValid:function(){return!0},equalsExact:function(){if(2===arguments.length&&"number"==typeof arguments[1]&&arguments[0]instanceof K){var t=arguments[0],e=arguments[1];return!!this.isEquivalentClass(t)&&Lt.prototype.equalsExact.call(this,t,e)}return Lt.prototype.equalsExact.apply(this,arguments)},getCoordinate:function(){if(1===arguments.length&&Number.isInteger(arguments[0])){var t=
arguments[0];return this._geometries[t].getCoordinate()}return Lt.prototype.getCoordinate.apply(this,arguments)},getBoundaryDimension:function(){return Nt.FALSE},getTypeCode:function(){return K.TYPECODE_MULTIPOINT},getDimension:function(){return 0},getBoundary:function(){return this.getFactory().createGeometryCollection()},getGeometryType:function(){return K.TYPENAME_MULTIPOINT},copy:function(){for(var t=(new Array(this._geometries.length)).fill(null),e=0;e<t.length;e++)t[e]=this._geometries[e].copy();
return new zt(t,this._factory)},interfaces_:function(){return[Ft]},getClass:function(){return zt}}),zt.serialVersionUID=-0x6fb1ed4162e0fc00,v(Yt,At),e(Yt.prototype,{getBoundaryDimension:function(){return Nt.FALSE},isClosed:function(){return!!this.isEmpty()||At.prototype.isClosed.call(this)},getTypeCode:function(){return K.TYPECODE_LINEARRING},reverse:function(){var t=this._points.copy();return Dt.reverse(t),this.getFactory().createLinearRing(t)},validateConstruction:function(){if(!this.isEmpty()&&
!At.prototype.isClosed.call(this))throw new i("Points of LinearRing do not form a closed linestring");if(this.getCoordinateSequence().size()>=1&&this.getCoordinateSequence().size()<Yt.MINIMUM_VALID_SIZE)throw new i("Invalid number of points in LinearRing (found "+this.getCoordinateSequence().size()+" - must be 0 or \x3e\x3d 4)");},getGeometryType:function(){return K.TYPENAME_LINEARRING},copy:function(){return new Yt(this._points.copy(),this._factory)},interfaces_:function(){return[]},getClass:function(){return Yt}}),
Yt.MINIMUM_VALID_SIZE=4,Yt.serialVersionUID=-0x3b229e262367a600,v(kt,Lt),e(kt.prototype,{equalsExact:function(){if(2===arguments.length&&"number"==typeof arguments[1]&&arguments[0]instanceof K){var t=arguments[0],e=arguments[1];return!!this.isEquivalentClass(t)&&Lt.prototype.equalsExact.call(this,t,e)}return Lt.prototype.equalsExact.apply(this,arguments)},getBoundaryDimension:function(){return 1},getTypeCode:function(){return K.TYPECODE_MULTIPOLYGON},getDimension:function(){return 2},reverse:function(){for(var t=
this._geometries.length,e=(new Array(t)).fill(null),n=0;n<this._geometries.length;n++)e[n]=this._geometries[n].reverse();return this.getFactory().createMultiPolygon(e)},getBoundary:function(){if(this.isEmpty())return this.getFactory().createMultiLineString();for(var t=new P,e=0;e<this._geometries.length;e++)for(var n=this._geometries[e].getBoundary(),i=0;i<n.getNumGeometries();i++)t.add(n.getGeometryN(i));var r=(new Array(t.size())).fill(null);return this.getFactory().createMultiLineString(t.toArray(r))},
getGeometryType:function(){return K.TYPENAME_MULTIPOLYGON},copy:function(){for(var t=(new Array(this._geometries.length)).fill(null),e=0;e<t.length;e++)t[e]=this._geometries[e].copy();return new kt(t,this._factory)},interfaces_:function(){return[Bt]},getClass:function(){return kt}}),kt.serialVersionUID=-0x7a5aa1369171980,e(Ut.prototype,{setCopyUserData:function(t){this._isUserDataCopied=t},edit:function(t,e){if(null===t)return null;var n=this.editInternal(t,e);return this._isUserDataCopied&&n.setUserData(t.getUserData()),
n},editInternal:function(t,e){return null===this._factory&&(this._factory=t.getFactory()),t instanceof Lt?this.editGeometryCollection(t,e):t instanceof Vt?this.editPolygon(t,e):t instanceof Gt?e.edit(t,this._factory):t instanceof At?e.edit(t,this._factory):(x.shouldNeverReachHere("Unsupported Geometry class: "+t.getClass().getName()),null)},editGeometryCollection:function(t,e){for(var n=e.edit(t,this._factory),i=new P,r=0;r<n.getNumGeometries();r++){var s=this.edit(n.getGeometryN(r),e);null===s||
s.isEmpty()||i.add(s)}return n.getClass()===zt?this._factory.createMultiPoint(i.toArray([])):n.getClass()===wt?this._factory.createMultiLineString(i.toArray([])):n.getClass()===kt?this._factory.createMultiPolygon(i.toArray([])):this._factory.createGeometryCollection(i.toArray([]))},editPolygon:function(t,e){var n=e.edit(t,this._factory);if(null===n&&(n=this._factory.createPolygon()),n.isEmpty())return n;var i=this.edit(n.getExteriorRing(),e);if(null===i||i.isEmpty())return this._factory.createPolygon();
for(var r=new P,s=0;s<n.getNumInteriorRing();s++){var o=this.edit(n.getInteriorRingN(s),e);null===o||o.isEmpty()||r.add(o)}return this._factory.createPolygon(i,r.toArray([]))},interfaces_:function(){return[]},getClass:function(){return Ut}}),Ut.GeometryEditorOperation=Xt,e(Ht.prototype,{edit:function(t,e){return t},interfaces_:function(){return[Xt]},getClass:function(){return Ht}}),e(Wt.prototype,{edit:function(t,e){var n=this.edit(t.getCoordinates(),t);return t instanceof Yt?null===n?e.createLinearRing():
e.createLinearRing(n):t instanceof At?null===n?e.createLineString():e.createLineString(n):t instanceof Gt?null===n||0===n.length?e.createPoint():e.createPoint(n[0]):t},interfaces_:function(){return[Xt]},getClass:function(){return Wt}}),e(jt.prototype,{edit:function(t,e){return t instanceof Yt?e.createLinearRing(this.edit(t.getCoordinateSequence(),t)):t instanceof At?e.createLineString(this.edit(t.getCoordinateSequence(),t)):t instanceof Gt?e.createPoint(this.edit(t.getCoordinateSequence(),t)):t},
interfaces_:function(){return[Xt]},getClass:function(){return jt}}),Ut.NoOpGeometryOperation=Ht,Ut.CoordinateOperation=Wt,Ut.CoordinateSequenceOperation=jt,e(Kt.prototype,{setOrdinate:function(t,e,n){switch(e){case H.X:this._coordinates[t].x=n;break;case H.Y:this._coordinates[t].y=n;break;case H.Z:this._coordinates[t].z=n;break;default:throw new i("invalid ordinateIndex");}},size:function(){return this._coordinates.length},getOrdinate:function(t,e){switch(e){case H.X:return this._coordinates[t].x;
case H.Y:return this._coordinates[t].y;case H.Z:return this._coordinates[t].z}return s.NaN},getCoordinate:function(){if(1===arguments.length){var t=arguments[0];return this._coordinates[t]}if(2===arguments.length){var e=arguments[0],n=arguments[1];n.x=this._coordinates[e].x,n.y=this._coordinates[e].y,n.z=this._coordinates[e].z}},getCoordinateCopy:function(t){return new E(this._coordinates[t])},getDimension:function(){return this._dimension},getX:function(t){return this._coordinates[t].x},expandEnvelope:function(t){for(var e=
0;e<this._coordinates.length;e++)t.expandToInclude(this._coordinates[e]);return t},copy:function(){for(var t=(new Array(this.size())).fill(null),e=0;e<this._coordinates.length;e++)t[e]=this._coordinates[e].copy();return new Kt(t,this._dimension)},toString:function(){if(this._coordinates.length>0){var t=new Mt(17*this._coordinates.length);t.append("("),t.append(this._coordinates[0]);for(var e=1;e<this._coordinates.length;e++)t.append(", "),t.append(this._coordinates[e]);return t.append(")"),t.toString()}return"()"},
getY:function(t){return this._coordinates[t].y},toCoordinateArray:function(){return this._coordinates},interfaces_:function(){return[H,p]},getClass:function(){return Kt}}),Kt.serialVersionUID=-0xcb44a778db18e00,e(Zt.prototype,{readResolve:function(){return Zt.instance()},create:function(){if(1===arguments.length){if(arguments[0]instanceof Array)return new Kt(arguments[0]);if(N(arguments[0],H))return new Kt(arguments[0])}else if(2===arguments.length){var t=arguments[0],e=arguments[1];return e>3&&(e=
3),e<2?new Kt(t):new Kt(t,e)}},interfaces_:function(){return[W,p]},getClass:function(){return Zt}}),Zt.instance=function(){return Zt.instanceObject},Zt.serialVersionUID=-0x38e49fa6cf6f2e00,Zt.instanceObject=new Zt;var Qt=Object.defineProperty;var Jt=function(t,e){function n(t){if(!this||this.constructor!==n)return new n(t);this._keys=[],this._values=[],this._itp=[],this.objectOnly=e,t&&function(t){this.add?t.forEach(this.add,this):t.forEach(function(t){this.set(t[0],t[1])},this)}.call(this,t)}e||
Qt(t,"size",{get:te});return t.constructor=n,n.prototype=t,n}({delete:function(t){this.has(t)&&(this._keys.splice(xt,1),this._values.splice(xt,1),this._itp.forEach(function(t){xt<t[0]&&t[0]--}));return xt>-1},has:function(t){return function(t,e){if(this.objectOnly&&e!==Object(e))throw new TypeError("Invalid value used as weak collection key");if(e!=e||0===e)for(xt=t.length;xt--&&(n=t[xt],i=e,n!==i&&(n==n||i==i)););else xt=t.indexOf(e);var n,i;return xt>-1}.call(this,this._keys,t)},get:function(t){return this.has(t)?
this._values[xt]:void 0},set:function(t,e){return this.has(t)?this._values[xt]=e:this._values[this._keys.push(t)-1]=e,this},keys:function(){return $t(this._itp,this._keys)},values:function(){return $t(this._itp,this._values)},entries:function(){return $t(this._itp,this._keys,this._values)},forEach:function(t,e){for(var n=this.entries();;){var i=n.next();if(i.done)break;t.call(e,i.value[1],i.value[0],this)}},clear:function(){(this._keys||0).length=this._values.length=0}});function $t(t,e,n){var i=
[0],r=!1;return t.push(i),{next:function(){var s,o=i[0];return!r&&o<e.length?(s=n?[e[o],n[o]]:e[o],i[0]++):(r=!0,t.splice(t.indexOf(i),1)),{done:r,value:s}}}}function te(){return this._values.length}var ee="undefined"!=typeof Map&&Map.prototype.values?Map:Jt;function ne(){this.map_=new ee}function ie(){if(this._modelType=null,this._scale=null,0===arguments.length)this._modelType=ie.FLOATING;else if(1===arguments.length)if(arguments[0]instanceof re){var t=arguments[0];this._modelType=t,t===ie.FIXED&&
this.setScale(1)}else if("number"==typeof arguments[0]){var e=arguments[0];this._modelType=ie.FIXED,this.setScale(e)}else if(arguments[0]instanceof ie){var n=arguments[0];this._modelType=n._modelType,this._scale=n._scale}}function re(){this._name=null;var t=arguments[0];this._name=t,re.nameToTypeMap.put(t,this)}function se(){if(this._precisionModel=null,this._coordinateSequenceFactory=null,this._SRID=null,0===arguments.length)se.call(this,new ie,0);else if(1===arguments.length)if(N(arguments[0],W)){var t=
arguments[0];se.call(this,new ie,0,t)}else{if(arguments[0]instanceof ie){var e=arguments[0];se.call(this,e,0,se.getDefaultCoordinateSequenceFactory())}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];se.call(this,n,i,se.getDefaultCoordinateSequenceFactory())}else if(3===arguments.length){var r=arguments[0],s=arguments[1],o=arguments[2];this._precisionModel=r,this._coordinateSequenceFactory=o,this._SRID=s}}ne.prototype=new st,ne.prototype.get=function(t){return this.map_.get(t)||null},
ne.prototype.put=function(t,e){return this.map_.set(t,e),e},ne.prototype.values=function(){for(var t=new P,e=this.map_.values(),n=e.next();!n.done;)t.add(n.value),n=e.next();return t},ne.prototype.entrySet=function(){var t=new ut;return this.map_.entries().forEach(function(e){return t.add(e)}),t},ne.prototype.size=function(){return this.map_.size()},e(ie.prototype,{equals:function(t){if(!(t instanceof ie))return!1;var e=t;return this._modelType===e._modelType&&this._scale===e._scale},compareTo:function(t){var e=
t,n=this.getMaximumSignificantDigits(),i=e.getMaximumSignificantDigits();return(new G(n)).compareTo(new G(i))},getScale:function(){return this._scale},isFloating:function(){return this._modelType===ie.FLOATING||this._modelType===ie.FLOATING_SINGLE},getType:function(){return this._modelType},toString:function(){var t="UNKNOWN";return this._modelType===ie.FLOATING?t="Floating":this._modelType===ie.FLOATING_SINGLE?t="Floating-Single":this._modelType===ie.FIXED&&(t="Fixed (Scale\x3d"+this.getScale()+
")"),t},makePrecise:function(){if("number"==typeof arguments[0]){var t=arguments[0];return s.isNaN(t)?t:this._modelType===ie.FLOATING_SINGLE?t:this._modelType===ie.FIXED?Math.round(t*this._scale)/this._scale:t}if(arguments[0]instanceof E){var e=arguments[0];if(this._modelType===ie.FLOATING)return null;e.x=this.makePrecise(e.x),e.y=this.makePrecise(e.y)}},getMaximumSignificantDigits:function(){var t=16;return this._modelType===ie.FLOATING?t=16:this._modelType===ie.FLOATING_SINGLE?t=6:this._modelType===
ie.FIXED&&(t=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),t},setScale:function(t){this._scale=Math.abs(t)},interfaces_:function(){return[p,g]},getClass:function(){return ie}}),ie.mostPrecise=function(t,e){return t.compareTo(e)>=0?t:e},e(re.prototype,{readResolve:function(){return re.nameToTypeMap.get(this._name)},toString:function(){return this._name},interfaces_:function(){return[p]},getClass:function(){return re}}),re.serialVersionUID=-0x4cb98acd40a6b400,re.nameToTypeMap=new ne,
ie.Type=re,ie.serialVersionUID=0x6bee6404e9a25c00,ie.FIXED=new re("FIXED"),ie.FLOATING=new re("FLOATING"),ie.FLOATING_SINGLE=new re("FLOATING SINGLE"),ie.maximumPreciseValue=9007199254740992,e(se.prototype,{toGeometry:function(t){return t.isNull()?this.createPoint():t.getMinX()===t.getMaxX()&&t.getMinY()===t.getMaxY()?this.createPoint(new E(t.getMinX(),t.getMinY())):t.getMinX()===t.getMaxX()||t.getMinY()===t.getMaxY()?this.createLineString([new E(t.getMinX(),t.getMinY()),new E(t.getMaxX(),t.getMaxY())]):
this.createPolygon(this.createLinearRing([new E(t.getMinX(),t.getMinY()),new E(t.getMinX(),t.getMaxY()),new E(t.getMaxX(),t.getMaxY()),new E(t.getMaxX(),t.getMinY()),new E(t.getMinX(),t.getMinY())]),null)},createLineString:function(){if(0===arguments.length)return this.createLineString(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLineString(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if(N(arguments[0],
H))return new At(arguments[0],this)}},createMultiLineString:function(){return 0===arguments.length?new wt(null,this):1===arguments.length?new wt(arguments[0],this):void 0},buildGeometry:function(t){for(var e=null,n=!1,i=!1,r=t.iterator();r.hasNext();){var s=r.next(),o=s.getClass();null===e&&(e=o),o!==e&&(n=!0),s instanceof Lt&&(i=!0)}if(null===e)return this.createGeometryCollection();if(n||i)return this.createGeometryCollection(se.toGeometryArray(t));var a=t.iterator().next();if(t.size()>1){if(a instanceof
Vt)return this.createMultiPolygon(se.toPolygonArray(t));if(a instanceof At)return this.createMultiLineString(se.toLineStringArray(t));if(a instanceof Gt)return this.createMultiPoint(se.toPointArray(t));x.shouldNeverReachHere("Unhandled class: "+a.getClass().getName())}return a},createMultiPointFromCoords:function(t){return this.createMultiPoint(null!==t?this.getCoordinateSequenceFactory().create(t):null)},createPoint:function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));
if(1===arguments.length){if(arguments[0]instanceof E){var t=arguments[0];return this.createPoint(null!==t?this.getCoordinateSequenceFactory().create([t]):null)}if(N(arguments[0],H))return new Gt(arguments[0],this)}},getCoordinateSequenceFactory:function(){return this._coordinateSequenceFactory},createPolygon:function(){if(0===arguments.length)return this.createPolygon(null,null);if(1===arguments.length){if(N(arguments[0],H)){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof
Array){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof Yt){var n=arguments[0];return this.createPolygon(n,null)}}else if(2===arguments.length)return new Vt(arguments[0],arguments[1],this)},getSRID:function(){return this._SRID},createGeometryCollection:function(){return 0===arguments.length?new Lt(null,this):1===arguments.length?new Lt(arguments[0],this):void 0},createGeometry:function(t){return(new Ut(this)).edit(t,{edit:function(){if(2===arguments.length&&
arguments[1]instanceof K&&N(arguments[0],H)){var t=arguments[0];return this._coordinateSequenceFactory.create(t)}}})},getPrecisionModel:function(){return this._precisionModel},createLinearRing:function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLinearRing(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if(N(arguments[0],H))return new Yt(arguments[0],
this)}},createMultiPolygon:function(){return 0===arguments.length?new kt(null,this):1===arguments.length?new kt(arguments[0],this):void 0},createMultiPoint:function(){if(0===arguments.length)return new zt(null,this);if(1===arguments.length){if(arguments[0]instanceof Array)return new zt(arguments[0],this);if(N(arguments[0],H)){var t=arguments[0];if(null===t)return this.createMultiPoint((new Array(0)).fill(null));for(var e=(new Array(t.size())).fill(null),n=0;n<t.size();n++){var i=this.getCoordinateSequenceFactory().create(1,
t.getDimension());Dt.copy(t,n,i,0,1),e[n]=this.createPoint(i)}return this.createMultiPoint(e)}}},interfaces_:function(){return[p]},getClass:function(){return se}}),se.toMultiPolygonArray=function(t){var e=(new Array(t.size())).fill(null);return t.toArray(e)},se.toGeometryArray=function(t){if(null===t)return null;var e=(new Array(t.size())).fill(null);return t.toArray(e)},se.getDefaultCoordinateSequenceFactory=function(){return Zt.instance()},se.toMultiLineStringArray=function(t){var e=(new Array(t.size())).fill(null);
return t.toArray(e)},se.toLineStringArray=function(t){var e=(new Array(t.size())).fill(null);return t.toArray(e)},se.toMultiPointArray=function(t){var e=(new Array(t.size())).fill(null);return t.toArray(e)},se.toLinearRingArray=function(t){var e=(new Array(t.size())).fill(null);return t.toArray(e)},se.toPointArray=function(t){var e=(new Array(t.size())).fill(null);return t.toArray(e)},se.toPolygonArray=function(t){var e=(new Array(t.size())).fill(null);return t.toArray(e)},se.createPointFromInternalCoord=
function(t,e){return e.getPrecisionModel().makePrecise(t),e.getFactory().createPoint(t)},se.serialVersionUID=-0x5ea75f2051eeb400;var oe={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,emptyTypeStr:/^\s*(\w+)\s*EMPTY\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/};function ae(t){this.geometryFactory=t||new se,this.precisionModel=this.geometryFactory.getPrecisionModel()}e(ae.prototype,{read:function(t){var e,n,i;t=t.replace(/[\n\r]/g," ");
var r=oe.typeStr.exec(t);if(-1!==t.search("EMPTY")&&((r=oe.emptyTypeStr.exec(t))[2]=void 0),r&&(n=r[1].toLowerCase(),i=r[2],le[n]&&(e=le[n].call(this,i))),void 0===e)throw new Error("Could not parse WKT "+t);return e},write:function(t){return this.extractGeometry(t)},extractGeometry:function(t){var e=t.getGeometryType().toLowerCase();if(!ue[e])return null;var n=e.toUpperCase();return t.isEmpty()?n+" EMPTY":n+"("+ue[e].call(this,t)+")"}});var ue={coordinate:function(t){return t.x+" "+t.y},point:function(t){return ue.coordinate.call(this,
t._coordinates._coordinates[0])},multipoint:function(t){for(var e=[],n=0,i=t._geometries.length;n<i;++n)e.push("("+ue.point.call(this,t._geometries[n])+")");return e.join(",")},linestring:function(t){for(var e=[],n=0,i=t._points._coordinates.length;n<i;++n)e.push(ue.coordinate.call(this,t._points._coordinates[n]));return e.join(",")},linearring:function(t){for(var e=[],n=0,i=t._points._coordinates.length;n<i;++n)e.push(ue.coordinate.call(this,t._points._coordinates[n]));return e.join(",")},multilinestring:function(t){for(var e=
[],n=0,i=t._geometries.length;n<i;++n)e.push("("+ue.linestring.call(this,t._geometries[n])+")");return e.join(",")},polygon:function(t){var e=[];e.push("("+ue.linestring.call(this,t._shell)+")");for(var n=0,i=t._holes.length;n<i;++n)e.push("("+ue.linestring.call(this,t._holes[n])+")");return e.join(",")},multipolygon:function(t){for(var e=[],n=0,i=t._geometries.length;n<i;++n)e.push("("+ue.polygon.call(this,t._geometries[n])+")");return e.join(",")},geometrycollection:function(t){for(var e=[],n=0,
i=t._geometries.length;n<i;++n)e.push(this.extractGeometry(t._geometries[n]));return e.join(",")}},le={coord:function(t){var e=t.trim().split(oe.spaces),n=new E(Number.parseFloat(e[0]),Number.parseFloat(e[1]));return this.precisionModel.makePrecise(n),n},point:function(t){return void 0===t?this.geometryFactory.createPoint():this.geometryFactory.createPoint(le.coord.call(this,t))},multipoint:function(t){if(void 0===t)return this.geometryFactory.createMultiPoint();for(var e,n=t.trim().split(","),i=
[],r=0,s=n.length;r<s;++r)e=n[r].replace(oe.trimParens,"$1"),i.push(le.point.call(this,e));return this.geometryFactory.createMultiPoint(i)},linestring:function(t){if(void 0===t)return this.geometryFactory.createLineString();for(var e=t.trim().split(","),n=[],i=0,r=e.length;i<r;++i)n.push(le.coord.call(this,e[i]));return this.geometryFactory.createLineString(n)},linearring:function(t){if(void 0===t)return this.geometryFactory.createLinearRing();for(var e=t.trim().split(","),n=[],i=0,r=e.length;i<r;++i)n.push(le.coord.call(this,
e[i]));return this.geometryFactory.createLinearRing(n)},multilinestring:function(t){if(void 0===t)return this.geometryFactory.createMultiLineString();for(var e,n=t.trim().split(oe.parenComma),i=[],r=0,s=n.length;r<s;++r)e=n[r].replace(oe.trimParens,"$1"),i.push(le.linestring.call(this,e));return this.geometryFactory.createMultiLineString(i)},polygon:function(t){if(void 0===t)return this.geometryFactory.createPolygon();for(var e,n,i,r,s=t.trim().split(oe.parenComma),o=[],a=0,u=s.length;a<u;++a)e=s[a].replace(oe.trimParens,
"$1"),n=le.linestring.call(this,e),i=this.geometryFactory.createLinearRing(n._points),0===a?r=i:o.push(i);return this.geometryFactory.createPolygon(r,o)},multipolygon:function(t){if(void 0===t)return this.geometryFactory.createMultiPolygon();for(var e,n=t.trim().split(oe.doubleParenComma),i=[],r=0,s=n.length;r<s;++r)e=n[r].replace(oe.trimParens,"$1"),i.push(le.polygon.call(this,e));return this.geometryFactory.createMultiPolygon(i)},geometrycollection:function(t){if(void 0===t)return this.geometryFactory.createGeometryCollection();
for(var e=(t=t.replace(/,\s*([A-Za-z])/g,"|$1")).trim().split("|"),n=[],i=0,r=e.length;i<r;++i)n.push(this.read(e[i]));return this.geometryFactory.createGeometryCollection(n)}};function he(t){this.parser=new ae(t)}function ce(){this._result=null,this._inputLines=Array(2).fill().map(function(){return Array(2)}),this._intPt=(new Array(2)).fill(null),this._intLineIndex=null,this._isProper=null,this._pa=null,this._pb=null,this._precisionModel=null,this._intPt[0]=new E,this._intPt[1]=new E,this._pa=this._intPt[0],
this._pb=this._intPt[1],this._result=0}function fe(){ce.apply(this)}function ge(){if(this.p0=null,this.p1=null,0===arguments.length)ge.call(this,new E,new E);else if(1===arguments.length){var t=arguments[0];ge.call(this,t.p0,t.p1)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.p0=e,this.p1=n}else if(4===arguments.length){var i=arguments[0],r=arguments[1],s=arguments[2],o=arguments[3];ge.call(this,new E(i,r),new E(s,o))}}function de(){}function _e(){if(this._matrix=null,0===arguments.length)this._matrix=
Array(3).fill().map(function(){return Array(3)}),this.setAll(Nt.FALSE);else if(1===arguments.length)if("string"==typeof arguments[0]){var t=arguments[0];_e.call(this),this.set(t)}else if(arguments[0]instanceof _e){var e=arguments[0];_e.call(this),this._matrix[de.INTERIOR][de.INTERIOR]=e._matrix[de.INTERIOR][de.INTERIOR],this._matrix[de.INTERIOR][de.BOUNDARY]=e._matrix[de.INTERIOR][de.BOUNDARY],this._matrix[de.INTERIOR][de.EXTERIOR]=e._matrix[de.INTERIOR][de.EXTERIOR],this._matrix[de.BOUNDARY][de.INTERIOR]=
e._matrix[de.BOUNDARY][de.INTERIOR],this._matrix[de.BOUNDARY][de.BOUNDARY]=e._matrix[de.BOUNDARY][de.BOUNDARY],this._matrix[de.BOUNDARY][de.EXTERIOR]=e._matrix[de.BOUNDARY][de.EXTERIOR],this._matrix[de.EXTERIOR][de.INTERIOR]=e._matrix[de.EXTERIOR][de.INTERIOR],this._matrix[de.EXTERIOR][de.BOUNDARY]=e._matrix[de.EXTERIOR][de.BOUNDARY],this._matrix[de.EXTERIOR][de.EXTERIOR]=e._matrix[de.EXTERIOR][de.EXTERIOR]}}function pe(){}function me(){this.p0=null,this.p1=null,this.p2=null;var t=arguments[0],e=
arguments[1],n=arguments[2];this.p0=t,this.p1=e,this.p2=n}e(he.prototype,{write:function(t){return this.parser.write(t)}}),e(he,{toLineString:function(t,e){if(2!==arguments.length)throw new Error("Not implemented");return"LINESTRING ( "+t.x+" "+t.y+", "+e.x+" "+e.y+" )"}}),e(ce.prototype,{getIndexAlongSegment:function(t,e){return this.computeIntLineIndex(),this._intLineIndex[t][e]},getTopologySummary:function(){var t=new Mt;return this.isEndPoint()&&t.append(" endpoint"),this._isProper&&t.append(" proper"),
this.isCollinear()&&t.append(" collinear"),t.toString()},computeIntersection:function(t,e,n,i){this._inputLines[0][0]=t,this._inputLines[0][1]=e,this._inputLines[1][0]=n,this._inputLines[1][1]=i,this._result=this.computeIntersect(t,e,n,i)},getIntersectionNum:function(){return this._result},computeIntLineIndex:function(){if(0===arguments.length)null===this._intLineIndex&&(this._intLineIndex=Array(2).fill().map(function(){return Array(2)}),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(1===
arguments.length){var t=arguments[0];this.getEdgeDistance(t,0)>this.getEdgeDistance(t,1)?(this._intLineIndex[t][0]=0,this._intLineIndex[t][1]=1):(this._intLineIndex[t][0]=1,this._intLineIndex[t][1]=0)}},isProper:function(){return this.hasIntersection()&&this._isProper},setPrecisionModel:function(t){this._precisionModel=t},isInteriorIntersection:function(){if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var t=arguments[0],
e=0;e<this._result;e++)if(!this._intPt[e].equals2D(this._inputLines[t][0])&&!this._intPt[e].equals2D(this._inputLines[t][1]))return!0;return!1}},getIntersection:function(t){return this._intPt[t]},isEndPoint:function(){return this.hasIntersection()&&!this._isProper},hasIntersection:function(){return this._result!==ce.NO_INTERSECTION},getEdgeDistance:function(t,e){return ce.computeEdgeDistance(this._intPt[e],this._inputLines[t][0],this._inputLines[t][1])},isCollinear:function(){return this._result===
ce.COLLINEAR_INTERSECTION},toString:function(){return he.toLineString(this._inputLines[0][0],this._inputLines[0][1])+" - "+he.toLineString(this._inputLines[1][0],this._inputLines[1][1])+this.getTopologySummary()},getEndpoint:function(t,e){return this._inputLines[t][e]},isIntersection:function(t){for(var e=0;e<this._result;e++)if(this._intPt[e].equals2D(t))return!0;return!1},getIntersectionAlongSegment:function(t,e){return this.computeIntLineIndex(),this._intPt[this._intLineIndex[t][e]]},interfaces_:function(){return[]},
getClass:function(){return ce}}),ce.computeEdgeDistance=function(t,e,n){var i=Math.abs(n.x-e.x),r=Math.abs(n.y-e.y),s=-1;if(t.equals(e))s=0;else if(t.equals(n))s=i>r?i:r;else{var o=Math.abs(t.x-e.x),a=Math.abs(t.y-e.y);0!==(s=i>r?o:a)||t.equals(e)||(s=Math.max(o,a))}return x.isTrue(!(0===s&&!t.equals(e)),"Bad distance calculation"),s},ce.nonRobustComputeEdgeDistance=function(t,e,n){var i=t.x-e.x,r=t.y-e.y,s=Math.sqrt(i*i+r*r);return x.isTrue(!(0===s&&!t.equals(e)),"Invalid distance calculation"),
s},ce.DONT_INTERSECT=0,ce.DO_INTERSECT=1,ce.COLLINEAR=2,ce.NO_INTERSECTION=0,ce.POINT_INTERSECTION=1,ce.COLLINEAR_INTERSECTION=2,v(fe,ce),e(fe.prototype,{isInSegmentEnvelopes:function(t){var e=new M(this._inputLines[0][0],this._inputLines[0][1]),n=new M(this._inputLines[1][0],this._inputLines[1][1]);return e.contains(t)&&n.contains(t)},computeIntersection:function(){if(3!==arguments.length)return ce.prototype.computeIntersection.apply(this,arguments);var t=arguments[0],e=arguments[1],n=arguments[2];
if(this._isProper=!1,M.intersects(e,n,t)&&0===z.index(e,n,t)&&0===z.index(n,e,t))return this._isProper=!0,(t.equals(e)||t.equals(n))&&(this._isProper=!1),this._result=ce.POINT_INTERSECTION,null;this._result=ce.NO_INTERSECTION},normalizeToMinimum:function(t,e,n,i,r){r.x=this.smallestInAbsValue(t.x,e.x,n.x,i.x),r.y=this.smallestInAbsValue(t.y,e.y,n.y,i.y),t.x-=r.x,t.y-=r.y,e.x-=r.x,e.y-=r.y,n.x-=r.x,n.y-=r.y,i.x-=r.x,i.y-=r.y},safeHCoordinateIntersection:function(t,e,n,i){var r=null;try{r=k.intersection(t,
e,n,i)}catch(s){if(!(s instanceof A))throw s;r=fe.nearestEndpoint(t,e,n,i)}return r},intersection:function(t,e,n,i){var r=this.intersectionWithNormalization(t,e,n,i);return this.isInSegmentEnvelopes(r)||(r=new E(fe.nearestEndpoint(t,e,n,i))),null!==this._precisionModel&&this._precisionModel.makePrecise(r),r},smallestInAbsValue:function(t,e,n,i){var r=t,s=Math.abs(r);return Math.abs(e)<s&&(r=e,s=Math.abs(e)),Math.abs(n)<s&&(r=n,s=Math.abs(n)),Math.abs(i)<s&&(r=i),r},checkDD:function(t,e,n,i,r){var s=
V.intersection(t,e,n,i),o=this.isInSegmentEnvelopes(s);Y.out.println("DD in env \x3d "+o+"  --------------------- "+s),r.distance(s)>1E-4&&Y.out.println("Distance \x3d "+r.distance(s))},intersectionWithNormalization:function(t,e,n,i){var r=new E(t),s=new E(e),o=new E(n),a=new E(i),u=new E;this.normalizeToEnvCentre(r,s,o,a,u);var l=this.safeHCoordinateIntersection(r,s,o,a);return l.x+=u.x,l.y+=u.y,l},computeCollinearIntersection:function(t,e,n,i){var r=M.intersects(t,e,n),s=M.intersects(t,e,i),o=M.intersects(n,
i,t),a=M.intersects(n,i,e);return r&&s?(this._intPt[0]=n,this._intPt[1]=i,ce.COLLINEAR_INTERSECTION):o&&a?(this._intPt[0]=t,this._intPt[1]=e,ce.COLLINEAR_INTERSECTION):r&&o?(this._intPt[0]=n,this._intPt[1]=t,!n.equals(t)||s||a?ce.COLLINEAR_INTERSECTION:ce.POINT_INTERSECTION):r&&a?(this._intPt[0]=n,this._intPt[1]=e,!n.equals(e)||s||o?ce.COLLINEAR_INTERSECTION:ce.POINT_INTERSECTION):s&&o?(this._intPt[0]=i,this._intPt[1]=t,!i.equals(t)||r||a?ce.COLLINEAR_INTERSECTION:ce.POINT_INTERSECTION):s&&a?(this._intPt[0]=
i,this._intPt[1]=e,!i.equals(e)||r||o?ce.COLLINEAR_INTERSECTION:ce.POINT_INTERSECTION):ce.NO_INTERSECTION},normalizeToEnvCentre:function(t,e,n,i,r){var s=t.x<e.x?t.x:e.x,o=t.y<e.y?t.y:e.y,a=t.x>e.x?t.x:e.x,u=t.y>e.y?t.y:e.y,l=n.x<i.x?n.x:i.x,h=n.y<i.y?n.y:i.y,c=n.x>i.x?n.x:i.x,f=n.y>i.y?n.y:i.y,g=((s>l?s:l)+(a<c?a:c))/2,d=((o>h?o:h)+(u<f?u:f))/2;r.x=g,r.y=d,t.x-=r.x,t.y-=r.y,e.x-=r.x,e.y-=r.y,n.x-=r.x,n.y-=r.y,i.x-=r.x,i.y-=r.y},computeIntersect:function(t,e,n,i){if(this._isProper=!1,!M.intersects(t,
e,n,i))return ce.NO_INTERSECTION;var r=z.index(t,e,n),s=z.index(t,e,i);if(r>0&&s>0||r<0&&s<0)return ce.NO_INTERSECTION;var o=z.index(n,i,t),a=z.index(n,i,e);return o>0&&a>0||o<0&&a<0?ce.NO_INTERSECTION:0===r&&0===s&&0===o&&0===a?this.computeCollinearIntersection(t,e,n,i):(0===r||0===s||0===o||0===a?(this._isProper=!1,t.equals2D(n)||t.equals2D(i)?this._intPt[0]=t:e.equals2D(n)||e.equals2D(i)?this._intPt[0]=e:0===r?this._intPt[0]=new E(n):0===s?this._intPt[0]=new E(i):0===o?this._intPt[0]=new E(t):
0===a&&(this._intPt[0]=new E(e))):(this._isProper=!0,this._intPt[0]=this.intersection(t,e,n,i)),ce.POINT_INTERSECTION)},interfaces_:function(){return[]},getClass:function(){return fe}}),fe.nearestEndpoint=function(t,e,n,i){var r=t,s=X.pointToSegment(t,n,i),o=X.pointToSegment(e,n,i);return o<s&&(s=o,r=e),(o=X.pointToSegment(n,t,e))<s&&(s=o,r=n),(o=X.pointToSegment(i,t,e))<s&&(s=o,r=i),r},e(ge.prototype,{minX:function(){return Math.min(this.p0.x,this.p1.x)},orientationIndex:function(){if(arguments[0]instanceof
ge){var t=arguments[0],e=z.index(this.p0,this.p1,t.p0),n=z.index(this.p0,this.p1,t.p1);return e>=0&&n>=0?Math.max(e,n):e<=0&&n<=0?Math.max(e,n):0}if(arguments[0]instanceof E){var i=arguments[0];return z.index(this.p0,this.p1,i)}},toGeometry:function(t){return t.createLineString([this.p0,this.p1])},isVertical:function(){return this.p0.x===this.p1.x},equals:function(t){if(!(t instanceof ge))return!1;var e=t;return this.p0.equals(e.p0)&&this.p1.equals(e.p1)},intersection:function(t){var e=new fe;return e.computeIntersection(this.p0,
this.p1,t.p0,t.p1),e.hasIntersection()?e.getIntersection(0):null},project:function(){if(arguments[0]instanceof E){var t=arguments[0];if(t.equals(this.p0)||t.equals(this.p1))return new E(t);var e=this.projectionFactor(t),n=new E;return n.x=this.p0.x+e*(this.p1.x-this.p0.x),n.y=this.p0.y+e*(this.p1.y-this.p0.y),n}if(arguments[0]instanceof ge){var i=arguments[0],r=this.projectionFactor(i.p0),s=this.projectionFactor(i.p1);if(r>=1&&s>=1)return null;if(r<=0&&s<=0)return null;var o=this.project(i.p0);r<
0&&(o=this.p0),r>1&&(o=this.p1);var a=this.project(i.p1);return s<0&&(a=this.p0),s>1&&(a=this.p1),new ge(o,a)}},normalize:function(){this.p1.compareTo(this.p0)<0&&this.reverse()},angle:function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},getCoordinate:function(t){return 0===t?this.p0:this.p1},distancePerpendicular:function(t){return X.pointToLinePerpendicular(t,this.p0,this.p1)},minY:function(){return Math.min(this.p0.y,this.p1.y)},midPoint:function(){return ge.midPoint(this.p0,
this.p1)},projectionFactor:function(t){if(t.equals(this.p0))return 0;if(t.equals(this.p1))return 1;var e=this.p1.x-this.p0.x,n=this.p1.y-this.p0.y,i=e*e+n*n;return i<=0?s.NaN:((t.x-this.p0.x)*e+(t.y-this.p0.y)*n)/i},closestPoints:function(t){var e=this.intersection(t);if(null!==e)return[e,e];var n=(new Array(2)).fill(null),i=s.MAX_VALUE,r=null,o=this.closestPoint(t.p0);i=o.distance(t.p0),n[0]=o,n[1]=t.p0;var a=this.closestPoint(t.p1);(r=a.distance(t.p1))<i&&(i=r,n[0]=a,n[1]=t.p1);var u=t.closestPoint(this.p0);
(r=u.distance(this.p0))<i&&(i=r,n[0]=this.p0,n[1]=u);var l=t.closestPoint(this.p1);return(r=l.distance(this.p1))<i&&(i=r,n[0]=this.p1,n[1]=l),n},closestPoint:function(t){var e=this.projectionFactor(t);return e>0&&e<1?this.project(t):this.p0.distance(t)<this.p1.distance(t)?this.p0:this.p1},maxX:function(){return Math.max(this.p0.x,this.p1.x)},getLength:function(){return this.p0.distance(this.p1)},compareTo:function(t){var e=t,n=this.p0.compareTo(e.p0);return 0!==n?n:this.p1.compareTo(e.p1)},reverse:function(){var t=
this.p0;this.p0=this.p1,this.p1=t},equalsTopo:function(t){return this.p0.equals(t.p0)&&this.p1.equals(t.p1)||this.p0.equals(t.p1)&&this.p1.equals(t.p0)},lineIntersection:function(t){try{return k.intersection(this.p0,this.p1,t.p0,t.p1)}catch(t){if(!(t instanceof A))throw t;}return null},maxY:function(){return Math.max(this.p0.y,this.p1.y)},pointAlongOffset:function(t,e){var n=this.p0.x+t*(this.p1.x-this.p0.x),i=this.p0.y+t*(this.p1.y-this.p0.y),r=this.p1.x-this.p0.x,s=this.p1.y-this.p0.y,o=Math.sqrt(r*
r+s*s),a=0,u=0;if(0!==e){if(o<=0)throw new IllegalStateException("Cannot compute offset from zero-length line segment");a=e*r/o,u=e*s/o}return new E(n-u,i+a)},setCoordinates:function(){if(1===arguments.length){var t=arguments[0];this.setCoordinates(t.p0,t.p1)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.p0.x=e.x,this.p0.y=e.y,this.p1.x=n.x,this.p1.y=n.y}},segmentFraction:function(t){var e=this.projectionFactor(t);return e<0?e=0:(e>1||s.isNaN(e))&&(e=1),e},toString:function(){return"LINESTRING( "+
this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},isHorizontal:function(){return this.p0.y===this.p1.y},distance:function(){if(arguments[0]instanceof ge){var t=arguments[0];return X.segmentToSegment(this.p0,this.p1,t.p0,t.p1)}if(arguments[0]instanceof E){var e=arguments[0];return X.pointToSegment(e,this.p0,this.p1)}},pointAlong:function(t){var e=new E;return e.x=this.p0.x+t*(this.p1.x-this.p0.x),e.y=this.p0.y+t*(this.p1.y-this.p0.y),e},hashCode:function(){var t=java.lang.Double.doubleToLongBits(this.p0.x);
t^=31*java.lang.Double.doubleToLongBits(this.p0.y);var e=Math.trunc(t)^Math.trunc(t>>32),n=java.lang.Double.doubleToLongBits(this.p1.x);return n^=31*java.lang.Double.doubleToLongBits(this.p1.y),e^(Math.trunc(n)^Math.trunc(n>>32))},interfaces_:function(){return[g,p]},getClass:function(){return ge}}),ge.midPoint=function(t,e){return new E((t.x+e.x)/2,(t.y+e.y)/2)},ge.serialVersionUID=0x2d2172135f411c00,e(de.prototype,{interfaces_:function(){return[]},getClass:function(){return de}}),de.toLocationSymbol=
function(t){switch(t){case de.EXTERIOR:return"e";case de.BOUNDARY:return"b";case de.INTERIOR:return"i";case de.NONE:return"-"}throw new i("Unknown location value: "+t);},de.INTERIOR=0,de.BOUNDARY=1,de.EXTERIOR=2,de.NONE=-1,e(_e.prototype,{isIntersects:function(){return!this.isDisjoint()},isCovers:function(){return(_e.isTrue(this._matrix[de.INTERIOR][de.INTERIOR])||_e.isTrue(this._matrix[de.INTERIOR][de.BOUNDARY])||_e.isTrue(this._matrix[de.BOUNDARY][de.INTERIOR])||_e.isTrue(this._matrix[de.BOUNDARY][de.BOUNDARY]))&&
this._matrix[de.EXTERIOR][de.INTERIOR]===Nt.FALSE&&this._matrix[de.EXTERIOR][de.BOUNDARY]===Nt.FALSE},isCoveredBy:function(){return(_e.isTrue(this._matrix[de.INTERIOR][de.INTERIOR])||_e.isTrue(this._matrix[de.INTERIOR][de.BOUNDARY])||_e.isTrue(this._matrix[de.BOUNDARY][de.INTERIOR])||_e.isTrue(this._matrix[de.BOUNDARY][de.BOUNDARY]))&&this._matrix[de.INTERIOR][de.EXTERIOR]===Nt.FALSE&&this._matrix[de.BOUNDARY][de.EXTERIOR]===Nt.FALSE},set:function(){if(1===arguments.length)for(var t=arguments[0],
e=0;e<t.length;e++){var n=Math.trunc(e/3),i=e%3;this._matrix[n][i]=Nt.toDimensionValue(t.charAt(e))}else if(3===arguments.length){var r=arguments[0],s=arguments[1],o=arguments[2];this._matrix[r][s]=o}},isContains:function(){return _e.isTrue(this._matrix[de.INTERIOR][de.INTERIOR])&&this._matrix[de.EXTERIOR][de.INTERIOR]===Nt.FALSE&&this._matrix[de.EXTERIOR][de.BOUNDARY]===Nt.FALSE},setAtLeast:function(){if(1===arguments.length)for(var t=arguments[0],e=0;e<t.length;e++){var n=Math.trunc(e/3),i=e%3;
this.setAtLeast(n,i,Nt.toDimensionValue(t.charAt(e)))}else if(3===arguments.length){var r=arguments[0],s=arguments[1],o=arguments[2];this._matrix[r][s]<o&&(this._matrix[r][s]=o)}},setAtLeastIfValid:function(t,e,n){t>=0&&e>=0&&this.setAtLeast(t,e,n)},isWithin:function(){return _e.isTrue(this._matrix[de.INTERIOR][de.INTERIOR])&&this._matrix[de.INTERIOR][de.EXTERIOR]===Nt.FALSE&&this._matrix[de.BOUNDARY][de.EXTERIOR]===Nt.FALSE},isTouches:function(t,e){return t>e?this.isTouches(e,t):(t===Nt.A&&e===Nt.A||
t===Nt.L&&e===Nt.L||t===Nt.L&&e===Nt.A||t===Nt.P&&e===Nt.A||t===Nt.P&&e===Nt.L)&&(this._matrix[de.INTERIOR][de.INTERIOR]===Nt.FALSE&&(_e.isTrue(this._matrix[de.INTERIOR][de.BOUNDARY])||_e.isTrue(this._matrix[de.BOUNDARY][de.INTERIOR])||_e.isTrue(this._matrix[de.BOUNDARY][de.BOUNDARY])))},isOverlaps:function(t,e){return t===Nt.P&&e===Nt.P||t===Nt.A&&e===Nt.A?_e.isTrue(this._matrix[de.INTERIOR][de.INTERIOR])&&_e.isTrue(this._matrix[de.INTERIOR][de.EXTERIOR])&&_e.isTrue(this._matrix[de.EXTERIOR][de.INTERIOR]):
t===Nt.L&&e===Nt.L&&(1===this._matrix[de.INTERIOR][de.INTERIOR]&&_e.isTrue(this._matrix[de.INTERIOR][de.EXTERIOR])&&_e.isTrue(this._matrix[de.EXTERIOR][de.INTERIOR]))},isEquals:function(t,e){return t===e&&(_e.isTrue(this._matrix[de.INTERIOR][de.INTERIOR])&&this._matrix[de.INTERIOR][de.EXTERIOR]===Nt.FALSE&&this._matrix[de.BOUNDARY][de.EXTERIOR]===Nt.FALSE&&this._matrix[de.EXTERIOR][de.INTERIOR]===Nt.FALSE&&this._matrix[de.EXTERIOR][de.BOUNDARY]===Nt.FALSE)},toString:function(){for(var t=new Mt("123456789"),
e=0;e<3;e++)for(var n=0;n<3;n++)t.setCharAt(3*e+n,Nt.toDimensionSymbol(this._matrix[e][n]));return t.toString()},setAll:function(t){for(var e=0;e<3;e++)for(var n=0;n<3;n++)this._matrix[e][n]=t},get:function(t,e){return this._matrix[t][e]},transpose:function(){var t=this._matrix[1][0];return this._matrix[1][0]=this._matrix[0][1],this._matrix[0][1]=t,t=this._matrix[2][0],this._matrix[2][0]=this._matrix[0][2],this._matrix[0][2]=t,t=this._matrix[2][1],this._matrix[2][1]=this._matrix[1][2],this._matrix[1][2]=
t,this},matches:function(t){if(9!==t.length)throw new i("Should be length 9: "+t);for(var e=0;e<3;e++)for(var n=0;n<3;n++)if(!_e.matches(this._matrix[e][n],t.charAt(3*e+n)))return!1;return!0},add:function(t){for(var e=0;e<3;e++)for(var n=0;n<3;n++)this.setAtLeast(e,n,t.get(e,n))},isDisjoint:function(){return this._matrix[de.INTERIOR][de.INTERIOR]===Nt.FALSE&&this._matrix[de.INTERIOR][de.BOUNDARY]===Nt.FALSE&&this._matrix[de.BOUNDARY][de.INTERIOR]===Nt.FALSE&&this._matrix[de.BOUNDARY][de.BOUNDARY]===
Nt.FALSE},isCrosses:function(t,e){return t===Nt.P&&e===Nt.L||t===Nt.P&&e===Nt.A||t===Nt.L&&e===Nt.A?_e.isTrue(this._matrix[de.INTERIOR][de.INTERIOR])&&_e.isTrue(this._matrix[de.INTERIOR][de.EXTERIOR]):t===Nt.L&&e===Nt.P||t===Nt.A&&e===Nt.P||t===Nt.A&&e===Nt.L?_e.isTrue(this._matrix[de.INTERIOR][de.INTERIOR])&&_e.isTrue(this._matrix[de.EXTERIOR][de.INTERIOR]):t===Nt.L&&e===Nt.L&&0===this._matrix[de.INTERIOR][de.INTERIOR]},interfaces_:function(){return[d]},getClass:function(){return _e}}),_e.matches=
function(){if(Number.isInteger(arguments[0])&&"string"==typeof arguments[1]){var t=arguments[0],e=arguments[1];return e===Nt.SYM_DONTCARE||(e===Nt.SYM_TRUE&&(t>=0||t===Nt.TRUE)||(e===Nt.SYM_FALSE&&t===Nt.FALSE||(e===Nt.SYM_P&&t===Nt.P||(e===Nt.SYM_L&&t===Nt.L||e===Nt.SYM_A&&t===Nt.A))))}if("string"==typeof arguments[0]&&"string"==typeof arguments[1]){var n=arguments[0],i=arguments[1];return(new _e(n)).matches(i)}},_e.isTrue=function(t){return t>=0||t===Nt.TRUE},e(pe.prototype,{interfaces_:function(){return[]},
getClass:function(){return pe}}),pe.toDegrees=function(t){return 180*t/Math.PI},pe.normalize=function(t){for(;t>Math.PI;)t-=pe.PI_TIMES_2;for(;t<=-Math.PI;)t+=pe.PI_TIMES_2;return t},pe.angle=function(){if(1===arguments.length){var t=arguments[0];return Math.atan2(t.y,t.x)}if(2===arguments.length){var e=arguments[0],n=arguments[1],i=n.x-e.x,r=n.y-e.y;return Math.atan2(r,i)}},pe.isAcute=function(t,e,n){var i=t.x-e.x,r=t.y-e.y;return i*(n.x-e.x)+r*(n.y-e.y)>0},pe.isObtuse=function(t,e,n){var i=t.x-
e.x,r=t.y-e.y;return i*(n.x-e.x)+r*(n.y-e.y)<0},pe.interiorAngle=function(t,e,n){var i=pe.angle(e,t),r=pe.angle(e,n);return Math.abs(r-i)},pe.normalizePositive=function(t){if(t<0){for(;t<0;)t+=pe.PI_TIMES_2;t>=pe.PI_TIMES_2&&(t=0)}else{for(;t>=pe.PI_TIMES_2;)t-=pe.PI_TIMES_2;t<0&&(t=0)}return t},pe.angleBetween=function(t,e,n){var i=pe.angle(e,t),r=pe.angle(e,n);return pe.diff(i,r)},pe.diff=function(t,e){var n=null;return(n=t<e?e-t:t-e)>Math.PI&&(n=2*Math.PI-n),n},pe.toRadians=function(t){return t*
Math.PI/180},pe.getTurn=function(t,e){var n=Math.sin(e-t);return n>0?pe.COUNTERCLOCKWISE:n<0?pe.CLOCKWISE:pe.NONE},pe.angleBetweenOriented=function(t,e,n){var i=pe.angle(e,t),r=pe.angle(e,n)-i;return r<=-Math.PI?r+pe.PI_TIMES_2:r>Math.PI?r-pe.PI_TIMES_2:r},pe.PI_TIMES_2=2*Math.PI,pe.PI_OVER_2=Math.PI/2,pe.PI_OVER_4=Math.PI/4,pe.COUNTERCLOCKWISE=z.COUNTERCLOCKWISE,pe.CLOCKWISE=z.CLOCKWISE,pe.NONE=z.COLLINEAR,e(me.prototype,{area:function(){return me.area(this.p0,this.p1,this.p2)},signedArea:function(){return me.signedArea(this.p0,
this.p1,this.p2)},interpolateZ:function(t){if(null===t)throw new i("Supplied point is null.");return me.interpolateZ(t,this.p0,this.p1,this.p2)},longestSideLength:function(){return me.longestSideLength(this.p0,this.p1,this.p2)},isAcute:function(){return me.isAcute(this.p0,this.p1,this.p2)},circumcentre:function(){return me.circumcentre(this.p0,this.p1,this.p2)},area3D:function(){return me.area3D(this.p0,this.p1,this.p2)},centroid:function(){return me.centroid(this.p0,this.p1,this.p2)},inCentre:function(){return me.inCentre(this.p0,
this.p1,this.p2)},interfaces_:function(){return[]},getClass:function(){return me}}),me.area=function(t,e,n){return Math.abs(((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2)},me.signedArea=function(t,e,n){return((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2},me.det=function(t,e,n,i){return t*i-e*n},me.interpolateZ=function(t,e,n,i){var r=e.x,s=e.y,o=n.x-r,a=i.x-r,u=n.y-s,l=i.y-s,h=o*l-a*u,c=t.x-r,f=t.y-s,g=(l*c-a*f)/h,d=(-u*c+o*f)/h;return e.z+g*(n.z-e.z)+d*(i.z-e.z)},me.longestSideLength=function(t,e,n){var i=
t.distance(e),r=e.distance(n),s=n.distance(t),o=i;return r>o&&(o=r),s>o&&(o=s),o},me.isAcute=function(t,e,n){return!!pe.isAcute(t,e,n)&&(!!pe.isAcute(e,n,t)&&!!pe.isAcute(n,t,e))},me.circumcentre=function(t,e,n){var i=n.x,r=n.y,s=t.x-i,o=t.y-r,a=e.x-i,u=e.y-r,l=2*me.det(s,o,a,u);return new E(i-me.det(o,s*s+o*o,u,a*a+u*u)/l,r+me.det(s,s*s+o*o,a,a*a+u*u)/l)},me.perpendicularBisector=function(t,e){var n=e.x-t.x,i=e.y-t.y;return new k(new k(t.x+n/2,t.y+i/2,1),new k(t.x-i+n/2,t.y+n+i/2,1))},me.angleBisector=
function(t,e,n){var i=e.distance(t),r=i/(i+e.distance(n)),s=n.x-t.x,o=n.y-t.y;return new E(t.x+r*s,t.y+r*o)},me.area3D=function(t,e,n){var i=e.x-t.x,r=e.y-t.y,s=e.z-t.z,o=n.x-t.x,a=n.y-t.y,u=n.z-t.z,l=r*u-s*a,h=s*o-i*u,c=i*a-r*o,f=l*l+h*h+c*c;return Math.sqrt(f)/2},me.centroid=function(t,e,n){return new E((t.x+e.x+n.x)/3,(t.y+e.y+n.y)/3)},me.inCentre=function(t,e,n){var i=e.distance(n),r=t.distance(n),s=t.distance(e),o=i+r+s;return new E((i*t.x+r*e.x+s*n.x)/o,(i*t.y+r*e.y+s*n.y)/o)};var ve=Object.freeze({Coordinate:E,
CoordinateList:b,Envelope:M,LineSegment:ge,GeometryFactory:se,Geometry:K,Point:Gt,LineString:At,LinearRing:Yt,Polygon:Vt,GeometryCollection:Lt,MultiPoint:zt,MultiLineString:wt,MultiPolygon:kt,Dimension:Nt,IntersectionMatrix:_e,PrecisionModel:ie,Location:de,Triangle:me});function ye(){this._pt=[new E,new E],this._distance=s.NaN,this._isNull=!0}function xe(){}function Ee(){this._g0=null,this._g1=null,this._ptDist=new ye,this._densifyFrac=0;var t=arguments[0],e=arguments[1];this._g0=t,this._g1=e}function Ie(){this._maxPtDist=
new ye,this._minPtDist=new ye,this._euclideanDist=new xe,this._geom=null;var t=arguments[0];this._geom=t}function Ne(){this._maxPtDist=new ye,this._minPtDist=new ye,this._geom=null,this._numSubSegs=0;var t=arguments[0],e=arguments[1];this._geom=t,this._numSubSegs=Math.trunc(Math.round(1/e))}function Ce(){}function Se(){}function Le(){this._min=s.POSITIVE_INFINITY,this._max=s.NEGATIVE_INFINITY}function we(){}function Re(){Le.apply(this),this._item=null;var t=arguments[0],e=arguments[1],n=arguments[2];
this._min=t,this._max=e,this._item=n}e(ye.prototype,{getCoordinates:function(){return this._pt},getCoordinate:function(t){return this._pt[t]},setMinimum:function(){if(1===arguments.length){var t=arguments[0];this.setMinimum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var i=e.distance(n);i<this._distance&&this.initialize(e,n,i)}},initialize:function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var t=
arguments[0],e=arguments[1];this._pt[0].setCoordinate(t),this._pt[1].setCoordinate(e),this._distance=t.distance(e),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(i),this._distance=r,this._isNull=!1}},toString:function(){return he.toLineString(this._pt[0],this._pt[1])},getDistance:function(){return this._distance},setMaximum:function(){if(1===arguments.length){var t=arguments[0];this.setMaximum(t._pt[0],
t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var i=e.distance(n);i>this._distance&&this.initialize(e,n,i)}},interfaces_:function(){return[]},getClass:function(){return ye}}),e(xe.prototype,{interfaces_:function(){return[]},getClass:function(){return xe}}),xe.computeDistance=function(){if(arguments[2]instanceof ye&&arguments[0]instanceof At&&arguments[1]instanceof E)for(var t=arguments[0],e=arguments[1],n=arguments[2],i=
new ge,r=t.getCoordinates(),s=0;s<r.length-1;s++){i.setCoordinates(r[s],r[s+1]);var o=i.closestPoint(e);n.setMinimum(o,e)}else if(arguments[2]instanceof ye&&arguments[0]instanceof Vt&&arguments[1]instanceof E){var a=arguments[0],u=arguments[1],l=arguments[2];xe.computeDistance(a.getExteriorRing(),u,l);for(s=0;s<a.getNumInteriorRing();s++)xe.computeDistance(a.getInteriorRingN(s),u,l)}else if(arguments[2]instanceof ye&&arguments[0]instanceof K&&arguments[1]instanceof E){var h=arguments[0],c=arguments[1],
f=arguments[2];if(h instanceof At)xe.computeDistance(h,c,f);else if(h instanceof Vt)xe.computeDistance(h,c,f);else if(h instanceof Lt){var g=h;for(s=0;s<g.getNumGeometries();s++){var d=g.getGeometryN(s);xe.computeDistance(d,c,f)}}else f.setMinimum(h.getCoordinate(),c)}else if(arguments[2]instanceof ye&&arguments[0]instanceof ge&&arguments[1]instanceof E){var _=arguments[0],p=arguments[1],m=arguments[2];o=_.closestPoint(p);m.setMinimum(o,p)}},e(Ee.prototype,{getCoordinates:function(){return this._ptDist.getCoordinates()},
setDensifyFraction:function(t){if(t>1||t<=0)throw new i("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=t},compute:function(t,e){this.computeOrientedDistance(t,e,this._ptDist),this.computeOrientedDistance(e,t,this._ptDist)},distance:function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()},computeOrientedDistance:function(t,e,n){var i=new Ie(e);if(t.apply(i),n.setMaximum(i.getMaxPointDistance()),this._densifyFrac>0){var r=new Ne(e,this._densifyFrac);t.apply(r),n.setMaximum(r.getMaxPointDistance())}},
orientedDistance:function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()},interfaces_:function(){return[]},getClass:function(){return Ee}}),Ee.distance=function(){if(2===arguments.length)return(t=new Ee(arguments[0],arguments[1])).distance();if(3===arguments.length){var t,e=arguments[0],n=arguments[1],i=arguments[2];return(t=new Ee(e,n)).setDensifyFraction(i),t.distance()}},e(Ie.prototype,{filter:function(t){this._minPtDist.initialize(),xe.computeDistance(this._geom,
t,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},getMaxPointDistance:function(){return this._maxPtDist},interfaces_:function(){return[Z]},getClass:function(){return Ie}}),e(Ne.prototype,{filter:function(t,e){if(0===e)return null;for(var n=t.getCoordinate(e-1),i=t.getCoordinate(e),r=(i.x-n.x)/this._numSubSegs,s=(i.y-n.y)/this._numSubSegs,o=0;o<this._numSubSegs;o++){var a=new E(n.x+o*r,n.y+o*s);this._minPtDist.initialize(),xe.computeDistance(this._geom,a,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)}},
isDone:function(){return!1},isGeometryChanged:function(){return!1},getMaxPointDistance:function(){return this._maxPtDist},interfaces_:function(){return[St]},getClass:function(){return Ne}}),Ee.MaxPointDistanceFilter=Ie,Ee.MaxDensifiedByFractionDistanceFilter=Ne,e(Ce.prototype,{visitItem:function(t){},interfaces_:function(){return[]},getClass:function(){return Ce}}),e(Se.prototype,{locate:function(t){},interfaces_:function(){return[]},getClass:function(){return Se}}),e(Le.prototype,{getMin:function(){return this._min},
intersects:function(t,e){return!(this._min>e||this._max<t)},getMax:function(){return this._max},toString:function(){return he.toLineString(new E(this._min,0),new E(this._max,0))},interfaces_:function(){return[]},getClass:function(){return Le}}),e(we.prototype,{compare:function(t,e){var n=t,i=e,r=(n._min+n._max)/2,s=(i._min+i._max)/2;return r<s?-1:r>s?1:0},interfaces_:function(){return[_]},getClass:function(){return we}}),Le.NodeComparator=we,v(Re,Le),e(Re.prototype,{query:function(t,e,n){if(!this.intersects(t,
e))return null;n.visitItem(this._item)},interfaces_:function(){return[]},getClass:function(){return Re}});var Te={reverseOrder:function(){return{compare:function(t,e){return e.compareTo(t)}}},min:function(t){return Te.sort(t),t.get(0)},sort:function(t,e){var n=t.toArray();e?It.sort(n,e):It.sort(n);for(var i=t.iterator(),r=0,s=n.length;r<s;r++)i.next(),i.set(n[r])},singletonList:function(t){var e=new P;return e.add(t),e}};function Pe(){Le.apply(this),this._node1=null,this._node2=null;var t=arguments[0],
e=arguments[1];this._node1=t,this._node2=e,this.buildExtent(this._node1,this._node2)}function Oe(){this._leaves=new P,this._root=null,this._level=0}function be(){if(this._lines=null,this._isForcedToLineString=!1,1===arguments.length){var t=arguments[0];this._lines=t}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._lines=e,this._isForcedToLineString=n}}function Me(){this._items=new P}function De(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var t=arguments[0];
this._p=t}function Ae(){this._index=null;var t=arguments[0];if(!(N(t,Bt)||t instanceof Yt))throw new i("Argument must be Polygonal or LinearRing");this._index=new Ge(t)}function Fe(){this._counter=null;var t=arguments[0];this._counter=t}function Ge(){this._index=new Oe;var t=arguments[0];this.init(t)}function qe(){}function Be(){this._parent=null,this._atStart=null,this._max=null,this._index=null,this._subcollectionIterator=null;var t=arguments[0];this._parent=t,this._atStart=!0,this._index=0,this._max=
t.getNumGeometries()}function Ve(){this._geom=null;var t=arguments[0];this._geom=t}function ze(){}function Ye(){}function ke(){}function Ue(){}function Xe(){this._areaBasePt=null,this._triangleCent3=new E,this._areasum2=0,this._cg3=new E,this._lineCentSum=new E,this._totalLength=0,this._ptCount=0,this._ptCentSum=new E;var t=arguments[0];this._areaBasePt=null,this.add(t)}function He(){}function We(t){this.message=t||""}function je(){this.array_=[]}function Ke(){this.treeSet=new yt,this.list=new P}
function Ze(){if(this._geomFactory=null,this._inputPts=null,1===arguments.length){var t=arguments[0];Ze.call(this,Ze.extractCoordinates(t),t.getFactory())}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._inputPts=Ke.filterCoordinates(e),this._geomFactory=n}}function Qe(){this._origin=null;var t=arguments[0];this._origin=t}function Je(){this._factory=null,this._interiorPoint=null,this._maxWidth=0;var t=arguments[0];this._factory=t.getFactory(),this.add(t)}function $e(){this._poly=
null,this._centreY=null,this._hiY=s.MAX_VALUE,this._loY=-s.MAX_VALUE;var t=arguments[0];this._poly=t,this._hiY=t.getEnvelopeInternal().getMaxY(),this._loY=t.getEnvelopeInternal().getMinY(),this._centreY=Je.avg(this._loY,this._hiY)}function tn(){this._centroid=null,this._minDistance=s.MAX_VALUE,this._interiorPoint=null;var t=arguments[0];this._centroid=t.getCentroid().getCoordinate(),this.addInterior(t),null===this._interiorPoint&&this.addEndpoints(t)}function en(){this._centroid=null,this._minDistance=
s.MAX_VALUE,this._interiorPoint=null;var t=arguments[0];this._centroid=t.getCentroid().getCoordinate(),this.add(t)}function nn(){this.selectedSegment=new ge}function rn(){this._items=new P,this._subnode=(new Array(2)).fill(null)}function sn(){if(this.min=null,this.max=null,0===arguments.length)this.min=0,this.max=0;else if(1===arguments.length){var t=arguments[0];this.init(t.min,t.max)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.init(e,n)}}function on(){}function an(){this._pt=
0,this._level=0,this._interval=null;var t=arguments[0];this.computeKey(t)}function un(){rn.apply(this),this._interval=null,this._centre=null,this._level=null;var t=arguments[0],e=arguments[1];this._interval=t,this._level=e,this._centre=(t.getMin()+t.getMax())/2}function ln(){}function hn(){rn.apply(this)}function cn(){this._root=null,this._minExtent=1,this._root=new hn}function fn(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var t=arguments[0],e=
arguments[1],n=arguments[2],i=arguments[3];this._pts=t,this._start=e,this._end=n,this._context=i}function gn(){}function dn(){}function _n(){}function pn(){}function mn(){this._ring=null,this._tree=null,this._crossings=0,this._interval=new sn;var t=arguments[0];this._ring=t,this.buildIndex()}function vn(){nn.apply(this),this.mcp=null,this.p=null;var t=arguments[0],e=arguments[1];this.mcp=t,this.p=e}function yn(){this._input=null,this._extremalPts=null,this._centre=null,this._radius=0;var t=arguments[0];
this._input=t}function xn(){if(this._inputGeom=null,this._isConvex=null,this._convexHullPts=null,this._minBaseSeg=new ge,this._minWidthPt=null,this._minPtIndex=null,this._minWidth=0,1===arguments.length){var t=arguments[0];xn.call(this,t,!1)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._inputGeom=e,this._isConvex=n}}v(Pe,Le),e(Pe.prototype,{buildExtent:function(t,e){this._min=Math.min(t._min,e._min),this._max=Math.max(t._max,e._max)},query:function(t,e,n){if(!this.intersects(t,
e))return null;null!==this._node1&&this._node1.query(t,e,n),null!==this._node2&&this._node2.query(t,e,n)},interfaces_:function(){return[]},getClass:function(){return Pe}}),e(Oe.prototype,{buildTree:function(){Te.sort(this._leaves,new Le.NodeComparator);for(var t=this._leaves,e=null,n=new P;;){if(this.buildLevel(t,n),1===n.size())return n.get(0);e=t,t=n,n=e}},insert:function(t,e,n){if(null!==this._root)throw new IllegalStateException("Index cannot be added to once it has been queried");this._leaves.add(new Re(t,
e,n))},query:function(t,e,n){this.init(),this._root.query(t,e,n)},buildRoot:function(){if(null!==this._root)return null;this._root=this.buildTree()},printNode:function(t){Y.out.println(he.toLineString(new E(t._min,this._level),new E(t._max,this._level)))},init:function(){if(null!==this._root)return null;this.buildRoot()},buildLevel:function(t,e){this._level++,e.clear();for(var n=0;n<t.size();n+=2){var i=t.get(n);if(null===(n+1<t.size()?t.get(n):null))e.add(i);else{var r=new Pe(t.get(n),t.get(n+1));
e.add(r)}}},interfaces_:function(){return[]},getClass:function(){return Oe}}),e(be.prototype,{filter:function(t){if(this._isForcedToLineString&&t instanceof Yt){var e=t.getFactory().createLineString(t.getCoordinateSequence());return this._lines.add(e),null}t instanceof At&&this._lines.add(t)},setForceToLineString:function(t){this._isForcedToLineString=t},interfaces_:function(){return[j]},getClass:function(){return be}}),be.getGeometry=function(){if(1===arguments.length){var t=arguments[0];return t.getFactory().buildGeometry(be.getLines(t))}if(2===
arguments.length){var e=arguments[0],n=arguments[1];return e.getFactory().buildGeometry(be.getLines(e,n))}},be.getLines=function(){if(1===arguments.length){var t=arguments[0];return be.getLines(t,!1)}if(2===arguments.length){if(N(arguments[0],S)&&N(arguments[1],S)){for(var e=arguments[0],n=arguments[1],i=e.iterator();i.hasNext();){var r=i.next();be.getLines(r,n)}return n}if(arguments[0]instanceof K&&"boolean"==typeof arguments[1]){var s=arguments[0],o=arguments[1],a=new P;return s.apply(new be(a,
o)),a}if(arguments[0]instanceof K&&N(arguments[1],S)){var u=arguments[0],l=arguments[1];return u instanceof At?l.add(u):u.apply(new be(l)),l}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&N(arguments[0],S)&&N(arguments[1],S)){var h=arguments[0],c=arguments[1],f=arguments[2];for(i=h.iterator();i.hasNext();){r=i.next();be.getLines(r,c,f)}return c}if("boolean"==typeof arguments[2]&&arguments[0]instanceof K&&N(arguments[1],S)){var g=arguments[0],d=arguments[1],_=arguments[2];return g.apply(new be(d,
_)),d}}},e(Me.prototype,{visitItem:function(t){this._items.add(t)},getItems:function(){return this._items},interfaces_:function(){return[Ce]},getClass:function(){return Me}}),e(De.prototype,{countSegment:function(t,e){if(t.x<this._p.x&&e.x<this._p.x)return null;if(this._p.x===e.x&&this._p.y===e.y)return this._isPointOnSegment=!0,null;if(t.y===this._p.y&&e.y===this._p.y){var n=t.x,i=e.x;return n>i&&(n=e.x,i=t.x),this._p.x>=n&&this._p.x<=i&&(this._isPointOnSegment=!0),null}if(t.y>this._p.y&&e.y<=this._p.y||
e.y>this._p.y&&t.y<=this._p.y){var r=z.index(t,e,this._p);if(r===z.COLLINEAR)return this._isPointOnSegment=!0,null;e.y<t.y&&(r=-r),r===z.LEFT&&this._crossingCount++}},isPointInPolygon:function(){return this.getLocation()!==de.EXTERIOR},getLocation:function(){return this._isPointOnSegment?de.BOUNDARY:this._crossingCount%2==1?de.INTERIOR:de.EXTERIOR},isOnSegment:function(){return this._isPointOnSegment},interfaces_:function(){return[]},getClass:function(){return De}}),De.locatePointInRing=function(){if(arguments[0]instanceof
E&&N(arguments[1],H)){for(var t=arguments[0],e=arguments[1],n=new De(t),i=new E,r=new E,s=1;s<e.size();s++)if(e.getCoordinate(s,i),e.getCoordinate(s-1,r),n.countSegment(i,r),n.isOnSegment())return n.getLocation();return n.getLocation()}if(arguments[0]instanceof E&&arguments[1]instanceof Array){var o=arguments[0],a=arguments[1];for(n=new De(o),s=1;s<a.length;s++){i=a[s],r=a[s-1];if(n.countSegment(i,r),n.isOnSegment())return n.getLocation()}return n.getLocation()}},e(Ae.prototype,{locate:function(t){var e=
new De(t),n=new Fe(e);return this._index.query(t.y,t.y,n),e.getLocation()},interfaces_:function(){return[Se]},getClass:function(){return Ae}}),e(Fe.prototype,{visitItem:function(t){var e=t;this._counter.countSegment(e.getCoordinate(0),e.getCoordinate(1))},interfaces_:function(){return[Ce]},getClass:function(){return Fe}}),e(Ge.prototype,{init:function(t){for(var e=be.getLines(t).iterator();e.hasNext();){var n=e.next().getCoordinates();this.addLine(n)}},addLine:function(t){for(var e=1;e<t.length;e++){var n=
new ge(t[e-1],t[e]),i=Math.min(n.p0.y,n.p1.y),r=Math.max(n.p0.y,n.p1.y);this._index.insert(i,r,n)}},query:function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=new Me;return this._index.query(t,e,n),n.getItems()}if(3===arguments.length){var i=arguments[0],r=arguments[1],s=arguments[2];this._index.query(i,r,s)}},interfaces_:function(){return[]},getClass:function(){return Ge}}),Ae.SegmentVisitor=Fe,Ae.IntervalIndexedGeometry=Ge,e(qe.prototype,{interfaces_:function(){return[]},getClass:function(){return qe}}),
qe.isOnLine=function(){if(arguments[0]instanceof E&&N(arguments[1],H)){for(var t=arguments[0],e=arguments[1],n=new fe,i=new E,r=new E,s=e.size(),o=1;o<s;o++)if(e.getCoordinate(o-1,i),e.getCoordinate(o,r),n.computeIntersection(t,i,r),n.hasIntersection())return!0;return!1}if(arguments[0]instanceof E&&arguments[1]instanceof Array){var a=arguments[0],u=arguments[1];for(n=new fe,o=1;o<u.length;o++){i=u[o-1],r=u[o];if(n.computeIntersection(a,i,r),n.hasIntersection())return!0}return!1}},qe.locateInRing=
function(t,e){return De.locatePointInRing(t,e)},qe.isInRing=function(t,e){return qe.locateInRing(t,e)!==de.EXTERIOR},e(Be.prototype,{next:function(){if(this._atStart)return this._atStart=!1,Be.isAtomic(this._parent)&&this._index++,this._parent;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return this._subcollectionIterator.next();this._subcollectionIterator=null}if(this._index>=this._max)throw new R;var t=this._parent.getGeometryN(this._index++);return t instanceof
Lt?(this._subcollectionIterator=new Be(t),this._subcollectionIterator.next()):t},remove:function(){throw new UnsupportedOperationException(this.getClass().getName());},hasNext:function(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)},interfaces_:function(){return[C]},getClass:function(){return Be}}),Be.isAtomic=function(t){return!(t instanceof Lt)},e(Ve.prototype,{locate:function(t){return Ve.locate(t,
this._geom)},interfaces_:function(){return[Se]},getClass:function(){return Ve}}),Ve.locatePointInPolygon=function(t,e){if(e.isEmpty())return de.EXTERIOR;var n=e.getExteriorRing(),i=Ve.locatePointInRing(t,n);if(i!==de.INTERIOR)return i;for(var r=0;r<e.getNumInteriorRing();r++){var s=e.getInteriorRingN(r),o=Ve.locatePointInRing(t,s);if(o===de.BOUNDARY)return de.BOUNDARY;if(o===de.INTERIOR)return de.EXTERIOR}return de.INTERIOR},Ve.locatePointInRing=function(t,e){return e.getEnvelopeInternal().intersects(t)?
qe.locateInRing(t,e.getCoordinates()):de.EXTERIOR},Ve.containsPointInPolygon=function(t,e){return de.EXTERIOR!==Ve.locatePointInPolygon(t,e)},Ve.locateInGeometry=function(t,e){if(e instanceof Vt)return Ve.locatePointInPolygon(t,e);if(e instanceof Lt)for(var n=new Be(e);n.hasNext();){var i=n.next();if(i!==e){var r=Ve.locateInGeometry(t,i);if(r!==de.EXTERIOR)return r}}return de.EXTERIOR},Ve.locate=function(t,e){return e.isEmpty()?de.EXTERIOR:Ve.locateInGeometry(t,e)},e(ze.prototype,{measure:function(t,
e){},interfaces_:function(){return[]},getClass:function(){return ze}}),e(Ye.prototype,{measure:function(t,e){return t.intersection(e).getArea()/t.union(e).getArea()},interfaces_:function(){return[ze]},getClass:function(){return Ye}}),e(ke.prototype,{measure:function(t,e){var n=Ee.distance(t,e,ke.DENSIFY_FRACTION),i=new M(t.getEnvelopeInternal());i.expandToInclude(e.getEnvelopeInternal());var r=1-n/ke.diagonalSize(i);return r},interfaces_:function(){return[ze]},getClass:function(){return ke}}),ke.diagonalSize=
function(t){if(t.isNull())return 0;var e=t.getWidth(),n=t.getHeight();return Math.sqrt(e*e+n*n)},ke.DENSIFY_FRACTION=.25,e(Ue.prototype,{interfaces_:function(){return[]},getClass:function(){return Ue}}),Ue.combine=function(t,e){return Math.min(t,e)},e(Xe.prototype,{setAreaBasePoint:function(t){this._areaBasePt=t},addPoint:function(t){this._ptCount+=1,this._ptCentSum.x+=t.x,this._ptCentSum.y+=t.y},addLineSegments:function(t){for(var e=0,n=0;n<t.length-1;n++){var i=t[n].distance(t[n+1]);if(0!==i){e+=
i;var r=(t[n].x+t[n+1].x)/2;this._lineCentSum.x+=i*r;var s=(t[n].y+t[n+1].y)/2;this._lineCentSum.y+=i*s}}this._totalLength+=e,0===e&&t.length>0&&this.addPoint(t[0])},addHole:function(t){for(var e=z.isCCW(t),n=0;n<t.length-1;n++)this.addTriangle(this._areaBasePt,t[n],t[n+1],e);this.addLineSegments(t)},getCentroid:function(){var t=new E;if(Math.abs(this._areasum2)>0)t.x=this._cg3.x/3/this._areasum2,t.y=this._cg3.y/3/this._areasum2;else if(this._totalLength>0)t.x=this._lineCentSum.x/this._totalLength,
t.y=this._lineCentSum.y/this._totalLength;else{if(!(this._ptCount>0))return null;t.x=this._ptCentSum.x/this._ptCount,t.y=this._ptCentSum.y/this._ptCount}return t},addShell:function(t){t.length>0&&this.setAreaBasePoint(t[0]);for(var e=!z.isCCW(t),n=0;n<t.length-1;n++)this.addTriangle(this._areaBasePt,t[n],t[n+1],e);this.addLineSegments(t)},addTriangle:function(t,e,n,i){var r=i?1:-1;Xe.centroid3(t,e,n,this._triangleCent3);var s=Xe.area2(t,e,n);this._cg3.x+=r*s*this._triangleCent3.x,this._cg3.y+=r*s*
this._triangleCent3.y,this._areasum2+=r*s},add:function(){if(arguments[0]instanceof Vt){var t=arguments[0];this.addShell(t.getExteriorRing().getCoordinates());for(var e=0;e<t.getNumInteriorRing();e++)this.addHole(t.getInteriorRingN(e).getCoordinates())}else if(arguments[0]instanceof K){var n=arguments[0];if(n.isEmpty())return null;if(n instanceof Gt)this.addPoint(n.getCoordinate());else if(n instanceof At)this.addLineSegments(n.getCoordinates());else if(n instanceof Vt){var i=n;this.add(i)}else if(n instanceof
Lt){var r=n;for(e=0;e<r.getNumGeometries();e++)this.add(r.getGeometryN(e))}}},interfaces_:function(){return[]},getClass:function(){return Xe}}),Xe.area2=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(n.x-t.x)*(e.y-t.y)},Xe.centroid3=function(t,e,n,i){return i.x=t.x+e.x+n.x,i.y=t.y+e.y+n.y,null},Xe.getCentroid=function(t){return(new Xe(t)).getCentroid()},e(He.prototype,{interfaces_:function(){return[]},getClass:function(){return He}}),He.orientationIndex=function(t,e,n){return V.orientationIndex(t,e,n)},
He.signedArea=function(){if(arguments[0]instanceof Array){var t=arguments[0];if(t.length<3)return 0;for(var e=0,n=t[0].x,i=1;i<t.length-1;i++){var r=t[i].x-n,s=t[i+1].y;e+=r*(t[i-1].y-s)}return e/2}if(N(arguments[0],H)){var o=arguments[0],a=o.size();if(a<3)return 0;var u=new E,l=new E,h=new E;o.getCoordinate(0,l),o.getCoordinate(1,h);n=l.x;h.x-=n;for(e=0,i=1;i<a-1;i++)u.y=l.y,l.x=h.x,l.y=h.y,o.getCoordinate(i+1,h),h.x-=n,e+=l.x*(u.y-h.y);return e/2}},He.distanceLineLine=function(t,e,n,i){if(t.equals(e))return He.distancePointLine(t,
n,i);if(n.equals(i))return He.distancePointLine(i,t,e);var r=!1;if(M.intersects(t,e,n,i)){var s=(e.x-t.x)*(i.y-n.y)-(e.y-t.y)*(i.x-n.x);if(0===s)r=!0;else{var o=(t.y-n.y)*(i.x-n.x)-(t.x-n.x)*(i.y-n.y),a=((t.y-n.y)*(e.x-t.x)-(t.x-n.x)*(e.y-t.y))/s,u=o/s;(u<0||u>1||a<0||a>1)&&(r=!0)}}else r=!0;return r?U.min(He.distancePointLine(t,n,i),He.distancePointLine(e,n,i),He.distancePointLine(n,t,e),He.distancePointLine(i,t,e)):0},He.isPointInRing=function(t,e){return He.locatePointInRing(t,e)!==de.EXTERIOR},
He.computeLength=function(t){var e=t.size();if(e<=1)return 0;var n=0,i=new E;t.getCoordinate(0,i);for(var r=i.x,s=i.y,o=1;o<e;o++){t.getCoordinate(o,i);var a=i.x,u=i.y,l=a-r,h=u-s;n+=Math.sqrt(l*l+h*h),r=a,s=u}return n},He.isCCW=function(t){var e=t.length-1;if(e<3)throw new i("Ring has fewer than 4 points, so orientation cannot be determined");for(var n=t[0],r=0,s=1;s<=e;s++){var o=t[s];o.y>n.y&&(n=o,r=s)}var a=r;do(a-=1)<0&&(a=e);while(t[a].equals2D(n)&&a!==r);var u=r;do u=(u+1)%e;while(t[u].equals2D(n)&&
u!==r);var l=t[a],h=t[u];if(l.equals2D(n)||h.equals2D(n)||l.equals2D(h))return!1;var c=He.computeOrientation(l,n,h);return 0===c?l.x>h.x:c>0},He.locatePointInRing=function(t,e){return De.locatePointInRing(t,e)},He.distancePointLinePerpendicular=function(t,e,n){var i=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),r=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/i;return Math.abs(r)*Math.sqrt(i)},He.computeOrientation=function(t,e,n){return He.orientationIndex(t,e,n)},He.distancePointLine=function(){if(2===arguments.length){var t=
arguments[0],e=arguments[1];if(0===e.length)throw new i("Line array must contain at least one vertex");for(var n=t.distance(e[0]),r=0;r<e.length-1;r++){var s=He.distancePointLine(t,e[r],e[r+1]);s<n&&(n=s)}return n}if(3===arguments.length){var o=arguments[0],a=arguments[1],u=arguments[2];if(a.x===u.x&&a.y===u.y)return o.distance(a);var l=(u.x-a.x)*(u.x-a.x)+(u.y-a.y)*(u.y-a.y),h=((o.x-a.x)*(u.x-a.x)+(o.y-a.y)*(u.y-a.y))/l;if(h<=0)return o.distance(a);if(h>=1)return o.distance(u);var c=((a.y-o.y)*(u.x-
a.x)-(a.x-o.x)*(u.y-a.y))/l;return Math.abs(c)*Math.sqrt(l)}},He.isOnLine=function(t,e){for(var n=new fe,i=1;i<e.length;i++){var r=e[i-1],s=e[i];if(n.computeIntersection(t,r,s),n.hasIntersection())return!0}return!1},He.CLOCKWISE=-1,He.RIGHT=He.CLOCKWISE,He.COUNTERCLOCKWISE=1,He.LEFT=He.COUNTERCLOCKWISE,He.COLLINEAR=0,He.STRAIGHT=He.COLLINEAR,We.prototype=new Error,We.prototype.name="EmptyStackException",je.prototype=new w,je.prototype.add=function(t){return this.array_.push(t),!0},je.prototype.get=
function(t){if(t<0||t>=this.size())throw new IndexOutOfBoundsException;return this.array_[t]},je.prototype.push=function(t){return this.array_.push(t),t},je.prototype.pop=function(t){if(0===this.array_.length)throw new We;return this.array_.pop()},je.prototype.peek=function(){if(0===this.array_.length)throw new We;return this.array_[this.array_.length-1]},je.prototype.empty=function(){return 0===this.array_.length},je.prototype.isEmpty=function(){return this.empty()},je.prototype.search=function(t){return this.array_.indexOf(t)},
je.prototype.size=function(){return this.array_.length},je.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},e(Ke.prototype,{filter:function(t){this.treeSet.contains(t)||(this.list.add(t),this.treeSet.add(t))},getCoordinates:function(){var t=(new Array(this.list.size())).fill(null);return this.list.toArray(t)},interfaces_:function(){return[Z]},getClass:function(){return Ke}}),Ke.filterCoordinates=function(t){for(var e=new Ke,n=0;n<t.length;n++)e.filter(t[n]);
return e.getCoordinates()},e(Ze.prototype,{preSort:function(t){for(var e=null,n=1;n<t.length;n++)(t[n].y<t[0].y||t[n].y===t[0].y&&t[n].x<t[0].x)&&(e=t[0],t[0]=t[n],t[n]=e);return It.sort(t,1,t.length,new Qe(t[0])),t},computeOctRing:function(t){var e=this.computeOctPts(t),n=new b;return n.add(e,!1),n.size()<3?null:(n.closeRing(),n.toCoordinateArray())},lineOrPolygon:function(t){if(3===(t=this.cleanRing(t)).length)return this._geomFactory.createLineString([t[0],t[1]]);var e=this._geomFactory.createLinearRing(t);
return this._geomFactory.createPolygon(e)},cleanRing:function(t){x.equals(t[0],t[t.length-1]);for(var e=new P,n=null,i=0;i<=t.length-2;i++){var r=t[i],s=t[i+1];r.equals(s)||(null!==n&&this.isBetween(n,r,s)||(e.add(r),n=r))}e.add(t[t.length-1]);var o=(new Array(e.size())).fill(null);return e.toArray(o)},isBetween:function(t,e,n){if(0!==z.index(t,e,n))return!1;if(t.x!==n.x){if(t.x<=e.x&&e.x<=n.x)return!0;if(n.x<=e.x&&e.x<=t.x)return!0}if(t.y!==n.y){if(t.y<=e.y&&e.y<=n.y)return!0;if(n.y<=e.y&&e.y<=t.y)return!0}return!1},
reduce:function(t){var e=this.computeOctRing(t);if(null===e)return t;for(var n=new yt,i=0;i<e.length;i++)n.add(e[i]);for(i=0;i<t.length;i++)qe.isInRing(t[i],e)||n.add(t[i]);var r=nt.toCoordinateArray(n);return r.length<3?this.padArray3(r):r},getConvexHull:function(){if(0===this._inputPts.length)return this._geomFactory.createGeometryCollection();if(1===this._inputPts.length)return this._geomFactory.createPoint(this._inputPts[0]);if(2===this._inputPts.length)return this._geomFactory.createLineString(this._inputPts);
var t=this._inputPts;this._inputPts.length>50&&(t=this.reduce(this._inputPts));var e=this.preSort(t),n=this.grahamScan(e),i=this.toCoordinateArray(n);return this.lineOrPolygon(i)},padArray3:function(t){for(var e=(new Array(3)).fill(null),n=0;n<e.length;n++)n<t.length?e[n]=t[n]:e[n]=t[0];return e},computeOctPts:function(t){for(var e=(new Array(8)).fill(null),n=0;n<e.length;n++)e[n]=t[0];for(var i=1;i<t.length;i++)t[i].x<e[0].x&&(e[0]=t[i]),t[i].x-t[i].y<e[1].x-e[1].y&&(e[1]=t[i]),t[i].y>e[2].y&&(e[2]=
t[i]),t[i].x+t[i].y>e[3].x+e[3].y&&(e[3]=t[i]),t[i].x>e[4].x&&(e[4]=t[i]),t[i].x-t[i].y>e[5].x-e[5].y&&(e[5]=t[i]),t[i].y<e[6].y&&(e[6]=t[i]),t[i].x+t[i].y<e[7].x+e[7].y&&(e[7]=t[i]);return e},toCoordinateArray:function(t){for(var e=(new Array(t.size())).fill(null),n=0;n<t.size();n++){var i=t.get(n);e[n]=i}return e},grahamScan:function(t){var e=null,n=new je;n.push(t[0]),n.push(t[1]),n.push(t[2]);for(var i=3;i<t.length;i++){for(e=n.pop();!n.empty()&&z.index(n.peek(),e,t[i])>0;)e=n.pop();n.push(e),
n.push(t[i])}return n.push(t[0]),n},interfaces_:function(){return[]},getClass:function(){return Ze}}),Ze.extractCoordinates=function(t){var e=new Ke;return t.apply(e),e.getCoordinates()},e(Qe.prototype,{compare:function(t,e){var n=t,i=e;return Qe.polarCompare(this._origin,n,i)},interfaces_:function(){return[_]},getClass:function(){return Qe}}),Qe.polarCompare=function(t,e,n){var i=e.x-t.x,r=e.y-t.y,s=n.x-t.x,o=n.y-t.y,a=z.index(t,e,n);if(a===z.COUNTERCLOCKWISE)return 1;if(a===z.CLOCKWISE)return-1;
var u=i*i+r*r,l=s*s+o*o;return u<l?-1:u>l?1:0},Ze.RadialComparator=Qe,e(Je.prototype,{addPolygon:function(t){if(t.isEmpty())return null;var e=null,n=null,i=this.horizontalBisector(t);if(0===i.getLength())n=0,e=i.getCoordinate();else{var r=i.intersection(t),s=this.widestGeometry(r);n=s.getEnvelopeInternal().getWidth(),e=Je.centre(s.getEnvelopeInternal())}(null===this._interiorPoint||n>this._maxWidth)&&(this._interiorPoint=e,this._maxWidth=n)},getInteriorPoint:function(){return this._interiorPoint},
widestGeometry:function(){if(arguments[0]instanceof Lt){var t=arguments[0];if(t.isEmpty())return t;for(var e=t.getGeometryN(0),n=1;n<t.getNumGeometries();n++)t.getGeometryN(n).getEnvelopeInternal().getWidth()>e.getEnvelopeInternal().getWidth()&&(e=t.getGeometryN(n));return e}if(arguments[0]instanceof K){var i=arguments[0];return i instanceof Lt?this.widestGeometry(i):i}},horizontalBisector:function(t){var e=t.getEnvelopeInternal(),n=$e.getBisectorY(t);return this._factory.createLineString([new E(e.getMinX(),
n),new E(e.getMaxX(),n)])},add:function(t){if(t instanceof Vt)this.addPolygon(t);else if(t instanceof Lt)for(var e=t,n=0;n<e.getNumGeometries();n++)this.add(e.getGeometryN(n))},interfaces_:function(){return[]},getClass:function(){return Je}}),Je.centre=function(t){return new E(Je.avg(t.getMinX(),t.getMaxX()),Je.avg(t.getMinY(),t.getMaxY()))},Je.avg=function(t,e){return(t+e)/2},e($e.prototype,{updateInterval:function(t){t<=this._centreY?t>this._loY&&(this._loY=t):t>this._centreY&&t<this._hiY&&(this._hiY=
t)},getBisectorY:function(){this.process(this._poly.getExteriorRing());for(var t=0;t<this._poly.getNumInteriorRing();t++)this.process(this._poly.getInteriorRingN(t));return Je.avg(this._hiY,this._loY)},process:function(t){for(var e=t.getCoordinateSequence(),n=0;n<e.size();n++){var i=e.getY(n);this.updateInterval(i)}},interfaces_:function(){return[]},getClass:function(){return $e}}),$e.getBisectorY=function(t){return(new $e(t)).getBisectorY()},Je.SafeBisectorFinder=$e,e(tn.prototype,{addEndpoints:function(){if(arguments[0]instanceof
K){var t=arguments[0];if(t instanceof At)this.addEndpoints(t.getCoordinates());else if(t instanceof Lt)for(var e=t,n=0;n<e.getNumGeometries();n++)this.addEndpoints(e.getGeometryN(n))}else if(arguments[0]instanceof Array){var i=arguments[0];this.add(i[0]),this.add(i[i.length-1])}},getInteriorPoint:function(){return this._interiorPoint},addInterior:function(){if(arguments[0]instanceof K){var t=arguments[0];if(t instanceof At)this.addInterior(t.getCoordinates());else if(t instanceof Lt)for(var e=t,n=
0;n<e.getNumGeometries();n++)this.addInterior(e.getGeometryN(n))}else if(arguments[0]instanceof Array){var i=arguments[0];for(n=1;n<i.length-1;n++)this.add(i[n])}},add:function(t){var e=t.distance(this._centroid);e<this._minDistance&&(this._interiorPoint=new E(t),this._minDistance=e)},interfaces_:function(){return[]},getClass:function(){return tn}}),e(en.prototype,{getInteriorPoint:function(){return this._interiorPoint},add:function(){if(arguments[0]instanceof K){var t=arguments[0];if(t instanceof
Gt)this.add(t.getCoordinate());else if(t instanceof Lt)for(var e=t,n=0;n<e.getNumGeometries();n++)this.add(e.getGeometryN(n))}else if(arguments[0]instanceof E){var i=arguments[0],r=i.distance(this._centroid);r<this._minDistance&&(this._interiorPoint=new E(i),this._minDistance=r)}},interfaces_:function(){return[]},getClass:function(){return en}}),e(nn.prototype,{select:function(){if(1===arguments.length);else if(2===arguments.length){var t=arguments[0],e=arguments[1];t.getLineSegment(e,this.selectedSegment),
this.select(this.selectedSegment)}},interfaces_:function(){return[]},getClass:function(){return nn}}),e(rn.prototype,{hasChildren:function(){for(var t=0;t<2;t++)if(null!==this._subnode[t])return!0;return!1},isPrunable:function(){return!(this.hasChildren()||this.hasItems())},addAllItems:function(t){t.addAll(this._items);for(var e=0;e<2;e++)null!==this._subnode[e]&&this._subnode[e].addAllItems(t);return t},size:function(){for(var t=0,e=0;e<2;e++)null!==this._subnode[e]&&(t+=this._subnode[e].size());
return t+this._items.size()},addAllItemsFromOverlapping:function(t,e){if(null!==t&&!this.isSearchMatch(t))return null;e.addAll(this._items),null!==this._subnode[0]&&this._subnode[0].addAllItemsFromOverlapping(t,e),null!==this._subnode[1]&&this._subnode[1].addAllItemsFromOverlapping(t,e)},hasItems:function(){return!this._items.isEmpty()},remove:function(t,e){if(!this.isSearchMatch(t))return!1;for(var n=!1,i=0;i<2;i++)if(null!==this._subnode[i]&&(n=this._subnode[i].remove(t,e))){this._subnode[i].isPrunable()&&
(this._subnode[i]=null);break}return n||(n=this._items.remove(e))},getItems:function(){return this._items},depth:function(){for(var t=0,e=0;e<2;e++)if(null!==this._subnode[e]){var n=this._subnode[e].depth();n>t&&(t=n)}return t+1},nodeSize:function(){for(var t=0,e=0;e<2;e++)null!==this._subnode[e]&&(t+=this._subnode[e].nodeSize());return t+1},add:function(t){this._items.add(t)},interfaces_:function(){return[]},getClass:function(){return rn}}),rn.getSubnodeIndex=function(t,e){var n=-1;return t.min>=
e&&(n=1),t.max<=e&&(n=0),n},e(sn.prototype,{expandToInclude:function(t){t.max>this.max&&(this.max=t.max),t.min<this.min&&(this.min=t.min)},getWidth:function(){return this.max-this.min},overlaps:function(){if(1===arguments.length){var t=arguments[0];return this.overlaps(t.min,t.max)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return!(this.min>n||this.max<e)}},getMin:function(){return this.min},toString:function(){return"["+this.min+", "+this.max+"]"},contains:function(){if(1===arguments.length){if(arguments[0]instanceof
sn){var t=arguments[0];return this.contains(t.min,t.max)}if("number"==typeof arguments[0]){var e=arguments[0];return e>=this.min&&e<=this.max}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return n>=this.min&&i<=this.max}},init:function(t,e){this.min=t,this.max=e,t>e&&(this.min=e,this.max=t)},getMax:function(){return this.max},interfaces_:function(){return[]},getClass:function(){return sn}}),on.exponent=function(t){return function(t,e){var n,i,r,s,o={32:8,64:11}[t];s||(n=e<0||1/
e<0,isFinite(e)||(s={32:{d:127,c:128,b:0,a:0},64:{d:32752,c:0,b:0,a:0}}[t],n&&(s.d+=1<<t/4-1),i=Math.pow(2,o)-1,r=0));if(!s){for(i={32:127,64:1023}[t],r=Math.abs(e);r>=2;)i++,r/=2;for(;r<1&&i>0;)i--,r*=2;i<=0&&(r/=2),32===t&&i>254&&(s={d:n?255:127,c:128,b:0,a:0},i=Math.pow(2,o)-1,r=0)}return i}(64,t)-1023},on.powerOf2=function(t){return Math.pow(2,t)},e(an.prototype,{getInterval:function(){return this._interval},getLevel:function(){return this._level},computeKey:function(t){for(this._level=an.computeLevel(t),
this._interval=new sn,this.computeInterval(this._level,t);!this._interval.contains(t);)this._level+=1,this.computeInterval(this._level,t)},computeInterval:function(t,e){var n=on.powerOf2(t);this._pt=Math.floor(e.getMin()/n)*n,this._interval.init(this._pt,this._pt+n)},getPoint:function(){return this._pt},interfaces_:function(){return[]},getClass:function(){return an}}),an.computeLevel=function(t){var e=t.getWidth();return on.exponent(e)+1},v(un,rn),e(un.prototype,{getInterval:function(){return this._interval},
find:function(t){var e=rn.getSubnodeIndex(t,this._centre);return-1===e?this:null!==this._subnode[e]?this._subnode[e].find(t):this},insert:function(t){x.isTrue(null===this._interval||this._interval.contains(t._interval));var e=rn.getSubnodeIndex(t._interval,this._centre);if(t._level===this._level-1)this._subnode[e]=t;else{var n=this.createSubnode(e);n.insert(t),this._subnode[e]=n}},isSearchMatch:function(t){return t.overlaps(this._interval)},getSubnode:function(t){return null===this._subnode[t]&&(this._subnode[t]=
this.createSubnode(t)),this._subnode[t]},getNode:function(t){var e=rn.getSubnodeIndex(t,this._centre);return-1!==e?this.getSubnode(e).getNode(t):this},createSubnode:function(t){var e=0,n=0;switch(t){case 0:e=this._interval.getMin(),n=this._centre;break;case 1:e=this._centre,n=this._interval.getMax()}return new un(new sn(e,n),this._level-1)},interfaces_:function(){return[]},getClass:function(){return un}}),un.createNode=function(t){var e=new an(t);return new un(e.getInterval(),e.getLevel())},un.createExpanded=
function(t,e){var n=new sn(e);null!==t&&n.expandToInclude(t._interval);var i=un.createNode(n);return null!==t&&i.insert(t),i},e(ln.prototype,{interfaces_:function(){return[]},getClass:function(){return ln}}),ln.isZeroWidth=function(t,e){var n=e-t;if(0===n)return!0;var i=n/Math.max(Math.abs(t),Math.abs(e));return on.exponent(i)<=ln.MIN_BINARY_EXPONENT},ln.MIN_BINARY_EXPONENT=-50,v(hn,rn),e(hn.prototype,{insert:function(t,e){var n=rn.getSubnodeIndex(t,hn.origin);if(-1===n)return this.add(e),null;var i=
this._subnode[n];if(null===i||!i.getInterval().contains(t)){var r=un.createExpanded(i,t);this._subnode[n]=r}this.insertContained(this._subnode[n],t,e)},isSearchMatch:function(t){return!0},insertContained:function(t,e,n){x.isTrue(t.getInterval().contains(e));(ln.isZeroWidth(e.getMin(),e.getMax())?t.find(e):t.getNode(e)).add(n)},interfaces_:function(){return[]},getClass:function(){return hn}}),hn.origin=0,e(cn.prototype,{size:function(){return null!==this._root?this._root.size():0},insert:function(t,
e){this.collectStats(t);var n=cn.ensureExtent(t,this._minExtent);this._root.insert(n,e)},query:function(){if(1===arguments.length){if("number"==typeof arguments[0]){var t=arguments[0];return this.query(new sn(t,t))}if(arguments[0]instanceof sn){var e=arguments[0],n=new P;return this.query(e,n),n}}else if(2===arguments.length){var i=arguments[0],r=arguments[1];this._root.addAllItemsFromOverlapping(i,r)}},iterator:function(){var t=new P;return this._root.addAllItems(t),t.iterator()},remove:function(t,
e){var n=cn.ensureExtent(t,this._minExtent);return this._root.remove(n,e)},collectStats:function(t){var e=t.getWidth();e<this._minExtent&&e>0&&(this._minExtent=e)},depth:function(){return null!==this._root?this._root.depth():0},nodeSize:function(){return null!==this._root?this._root.nodeSize():0},interfaces_:function(){return[]},getClass:function(){return cn}}),cn.ensureExtent=function(t,e){var n=t.getMin(),i=t.getMax();return n!==i?t:(n===i&&(i=(n-=e/2)+e/2),new sn(n,i))},e(fn.prototype,{getLineSegment:function(t,
e){e.p0=this._pts[t],e.p1=this._pts[t+1]},computeSelect:function(t,e,n,i){var r=this._pts[e],s=this._pts[n];if(n-e==1)return i.select(this,e),null;if(!t.intersects(r,s))return null;var o=Math.trunc((e+n)/2);e<o&&this.computeSelect(t,e,o,i),o<n&&this.computeSelect(t,o,n,i)},getCoordinates:function(){for(var t=(new Array(this._end-this._start+1)).fill(null),e=0,n=this._start;n<=this._end;n++)t[e++]=this._pts[n];return t},computeOverlaps:function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];
this.computeOverlaps(this._start,this._end,t,t._start,t._end,e)}else if(6===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2],s=arguments[3],o=arguments[4],a=arguments[5];if(i-n==1&&o-s==1)return a.overlap(this,n,r,s),null;if(!this.overlaps(n,i,r,s,o))return null;var u=Math.trunc((n+i)/2),l=Math.trunc((s+o)/2);n<u&&(s<l&&this.computeOverlaps(n,u,r,s,l,a),l<o&&this.computeOverlaps(n,u,r,l,o,a)),u<i&&(s<l&&this.computeOverlaps(u,i,r,s,l,a),l<o&&this.computeOverlaps(u,i,r,l,o,a))}},
setId:function(t){this._id=t},select:function(t,e){this.computeSelect(t,this._start,this._end,e)},getEnvelope:function(){if(null===this._env){var t=this._pts[this._start],e=this._pts[this._end];this._env=new M(t,e)}return this._env},overlaps:function(t,e,n,i,r){return M.intersects(this._pts[t],this._pts[e],n._pts[i],n._pts[r])},getEndIndex:function(){return this._end},getStartIndex:function(){return this._start},getContext:function(){return this._context},getId:function(){return this._id},interfaces_:function(){return[]},
getClass:function(){return fn}}),e(gn.prototype,{interfaces_:function(){return[]},getClass:function(){return gn}}),gn.isNorthern=function(t){return t===gn.NE||t===gn.NW},gn.isOpposite=function(t,e){return t!==e&&2===(t-e+4)%4},gn.commonHalfPlane=function(t,e){if(t===e)return t;if(2===(t-e+4)%4)return-1;var n=t<e?t:e;return 0===n&&3===(t>e?t:e)?3:n},gn.isInHalfPlane=function(t,e){return e===gn.SE?t===gn.SE||t===gn.SW:t===e||t===e+1},gn.quadrant=function(){if("number"==typeof arguments[0]&&"number"==
typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new i("Cannot compute the quadrant for point ( "+t+", "+e+" )");return t>=0?e>=0?gn.NE:gn.SE:e>=0?gn.NW:gn.SW}if(arguments[0]instanceof E&&arguments[1]instanceof E){var n=arguments[0],r=arguments[1];if(r.x===n.x&&r.y===n.y)throw new i("Cannot compute the quadrant for two identical points "+n);return r.x>=n.x?r.y>=n.y?gn.NE:gn.SE:r.y>=n.y?gn.NW:gn.SW}},gn.NE=0,gn.NW=1,gn.SW=2,gn.SE=3,e(dn.prototype,{interfaces_:function(){return[]},
getClass:function(){return dn}}),dn.getChainStartIndices=function(t){var e=0,n=new P;n.add(new G(e));do{var i=dn.findChainEnd(t,e);n.add(new G(i)),e=i}while(e<t.length-1);return dn.toIntArray(n)},dn.findChainEnd=function(t,e){for(var n=e;n<t.length-1&&t[n].equals2D(t[n+1]);)n++;if(n>=t.length-1)return t.length-1;for(var i=gn.quadrant(t[n],t[n+1]),r=e+1;r<t.length;){if(!t[r-1].equals2D(t[r]))if(gn.quadrant(t[r-1],t[r])!==i)break;r++}return r-1},dn.getChains=function(){if(1===arguments.length){var t=
arguments[0];return dn.getChains(t,null)}if(2===arguments.length){for(var e=arguments[0],n=arguments[1],i=new P,r=dn.getChainStartIndices(e),s=0;s<r.length-1;s++){var o=new fn(e,r[s],r[s+1],n);i.add(o)}return i}},dn.toIntArray=function(t){for(var e=(new Array(t.size())).fill(null),n=0;n<e.length;n++)e[n]=t.get(n).intValue();return e},e(_n.prototype,{interfaces_:function(){return[]},getClass:function(){return _n}}),_n.orientationIndex=function(t,e,n){var i=e.x-t.x,r=e.y-t.y,s=n.x-e.x,o=n.y-e.y;return _n.signOfDet2x2(i,
r,s,o)},_n.signOfDet2x2=function(t,e,n,i){var r=null,s=null,o=null;if(r=1,0===t||0===i)return 0===e||0===n?0:e>0?n>0?-r:r:n>0?r:-r;if(0===e||0===n)return i>0?t>0?r:-r:t>0?-r:r;if(0<e?0<i?e<=i||(r=-r,s=t,t=n,n=s,s=e,e=i,i=s):e<=-i?(r=-r,n=-n,i=-i):(s=t,t=-n,n=s,s=e,e=-i,i=s):0<i?-e<=i?(r=-r,t=-t,e=-e):(s=-t,t=n,n=s,s=-e,e=i,i=s):e>=i?(t=-t,e=-e,n=-n,i=-i):(r=-r,s=-t,t=-n,n=s,s=-e,e=-i,i=s),0<t){if(!(0<n))return r;if(!(t<=n))return r}else{if(0<n)return-r;if(!(t>=n))return-r;r=-r,t=-t,n=-n}for(;;){if(n-=
(o=Math.floor(n/t))*t,(i-=o*e)<0)return-r;if(i>e)return r;if(t>n+n){if(e<i+i)return r}else{if(e>i+i)return-r;n=t-n,i=e-i,r=-r}if(0===i)return 0===n?0:-r;if(0===n)return r;if(t-=(o=Math.floor(t/n))*n,(e-=o*i)<0)return r;if(e>i)return-r;if(n>t+t){if(i<e+e)return-r}else{if(i>e+e)return r;t=n-t,e=i-e,r=-r}if(0===e)return 0===t?0:r;if(0===t)return-r}},e(pn.prototype,{isInside:function(t){},interfaces_:function(){return[]},getClass:function(){return pn}}),e(mn.prototype,{testLineSegment:function(t,e){var n,
i,r,s,o=e.p0,a=e.p1;n=o.x-t.x,i=o.y-t.y,r=a.x-t.x,s=a.y-t.y,(i>0&&s<=0||s>0&&i<=0)&&0<_n.signOfDet2x2(n,i,r,s)/(s-i)&&this._crossings++},buildIndex:function(){this._tree=new cn;for(var t=nt.removeRepeatedPoints(this._ring.getCoordinates()),e=dn.getChains(t),n=0;n<e.size();n++){var i=e.get(n),r=i.getEnvelope();this._interval.min=r.getMinY(),this._interval.max=r.getMaxY(),this._tree.insert(this._interval,i)}},testMonotoneChain:function(t,e,n){n.select(t,e)},isInside:function(t){this._crossings=0;var e=
new M(s.NEGATIVE_INFINITY,s.POSITIVE_INFINITY,t.y,t.y);this._interval.min=t.y,this._interval.max=t.y;for(var n=this._tree.query(this._interval),i=new vn(this,t),r=n.iterator();r.hasNext();){var o=r.next();this.testMonotoneChain(e,i,o)}return this._crossings%2==1},interfaces_:function(){return[pn]},getClass:function(){return mn}}),v(vn,nn),e(vn.prototype,{select:function(){if(1!==arguments.length)return nn.prototype.select.apply(this,arguments);var t=arguments[0];this.mcp.testLineSegment(this.p,t)},
interfaces_:function(){return[]},getClass:function(){return vn}}),mn.MCSelecter=vn,e(yn.prototype,{getRadius:function(){return this.compute(),this._radius},getDiameter:function(){switch(this.compute(),this._extremalPts.length){case 0:return this._input.getFactory().createLineString();case 1:return this._input.getFactory().createPoint(this._centre)}var t=this._extremalPts[0],e=this._extremalPts[1];return this._input.getFactory().createLineString([t,e])},getExtremalPoints:function(){return this.compute(),
this._extremalPts},computeCirclePoints:function(){if(this._input.isEmpty())return this._extremalPts=(new Array(0)).fill(null),null;if(1===this._input.getNumPoints()){var t=this._input.getCoordinates();return this._extremalPts=[new E(t[0])],null}var e=this._input.convexHull().getCoordinates();t=e;if(e[0].equals2D(e[e.length-1])&&(t=(new Array(e.length-1)).fill(null),nt.copyDeep(e,0,t,0,e.length-1)),t.length<=2)return this._extremalPts=nt.copyDeep(t),null;for(var n=yn.lowestPoint(t),i=yn.pointWitMinAngleWithX(t,
n),r=0;r<t.length;r++){var s=yn.pointWithMinAngleWithSegment(t,n,i);if(pe.isObtuse(n,s,i))return this._extremalPts=[new E(n),new E(i)],null;if(pe.isObtuse(s,n,i))n=s;else{if(!pe.isObtuse(s,i,n))return this._extremalPts=[new E(n),new E(i),new E(s)],null;i=s}}x.shouldNeverReachHere("Logic failure in Minimum Bounding Circle algorithm!")},compute:function(){if(null!==this._extremalPts)return null;this.computeCirclePoints(),this.computeCentre(),null!==this._centre&&(this._radius=this._centre.distance(this._extremalPts[0]))},
getFarthestPoints:function(){switch(this.compute(),this._extremalPts.length){case 0:return this._input.getFactory().createLineString();case 1:return this._input.getFactory().createPoint(this._centre)}var t=this._extremalPts[0],e=this._extremalPts[this._extremalPts.length-1];return this._input.getFactory().createLineString([t,e])},getCircle:function(){if(this.compute(),null===this._centre)return this._input.getFactory().createPolygon();var t=this._input.getFactory().createPoint(this._centre);return 0===
this._radius?t:t.buffer(this._radius)},getCentre:function(){return this.compute(),this._centre},computeCentre:function(){switch(this._extremalPts.length){case 0:this._centre=null;break;case 1:this._centre=this._extremalPts[0];break;case 2:this._centre=new E((this._extremalPts[0].x+this._extremalPts[1].x)/2,(this._extremalPts[0].y+this._extremalPts[1].y)/2);break;case 3:this._centre=me.circumcentre(this._extremalPts[0],this._extremalPts[1],this._extremalPts[2])}},interfaces_:function(){return[]},getClass:function(){return yn}}),
yn.pointWitMinAngleWithX=function(t,e){for(var n=s.MAX_VALUE,i=null,r=0;r<t.length;r++){var o=t[r];if(o!==e){var a=o.x-e.x,u=o.y-e.y;u<0&&(u=-u);var l=u/Math.sqrt(a*a+u*u);l<n&&(n=l,i=o)}}return i},yn.lowestPoint=function(t){for(var e=t[0],n=1;n<t.length;n++)t[n].y<e.y&&(e=t[n]);return e},yn.pointWithMinAngleWithSegment=function(t,e,n){for(var i=s.MAX_VALUE,r=null,o=0;o<t.length;o++){var a=t[o];if(a!==e&&a!==n){var u=pe.angleBetween(e,a,n);u<i&&(i=u,r=a)}}return r},e(xn.prototype,{getWidthCoordinate:function(){return this.computeMinimumDiameter(),
this._minWidthPt},getSupportingSegment:function(){return this.computeMinimumDiameter(),this._inputGeom.getFactory().createLineString([this._minBaseSeg.p0,this._minBaseSeg.p1])},getDiameter:function(){if(this.computeMinimumDiameter(),null===this._minWidthPt)return this._inputGeom.getFactory().createLineString();var t=this._minBaseSeg.project(this._minWidthPt);return this._inputGeom.getFactory().createLineString([t,this._minWidthPt])},computeWidthConvex:function(t){this._convexHullPts=t instanceof Vt?
t.getExteriorRing().getCoordinates():t.getCoordinates(),0===this._convexHullPts.length?(this._minWidth=0,this._minWidthPt=null,this._minBaseSeg=null):1===this._convexHullPts.length?(this._minWidth=0,this._minWidthPt=this._convexHullPts[0],this._minBaseSeg.p0=this._convexHullPts[0],this._minBaseSeg.p1=this._convexHullPts[0]):2===this._convexHullPts.length||3===this._convexHullPts.length?(this._minWidth=0,this._minWidthPt=this._convexHullPts[0],this._minBaseSeg.p0=this._convexHullPts[0],this._minBaseSeg.p1=
this._convexHullPts[1]):this.computeConvexRingMinDiameter(this._convexHullPts)},computeConvexRingMinDiameter:function(t){this._minWidth=s.MAX_VALUE;for(var e=1,n=new ge,i=0;i<t.length-1;i++)n.p0=t[i],n.p1=t[i+1],e=this.findMaxPerpDistance(t,n,e)},computeMinimumDiameter:function(){if(null!==this._minWidthPt)return null;if(this._isConvex)this.computeWidthConvex(this._inputGeom);else{var t=(new Ze(this._inputGeom)).getConvexHull();this.computeWidthConvex(t)}},getLength:function(){return this.computeMinimumDiameter(),
this._minWidth},findMaxPerpDistance:function(t,e,n){for(var i=e.distancePerpendicular(t[n]),r=i,s=n,o=s;r>=i;)i=r,s=o,o=xn.nextIndex(t,s),r=e.distancePerpendicular(t[o]);return i<this._minWidth&&(this._minPtIndex=s,this._minWidth=i,this._minWidthPt=t[this._minPtIndex],this._minBaseSeg=new ge(e)),s},getMinimumRectangle:function(){if(this.computeMinimumDiameter(),0===this._minWidth)return this._minBaseSeg.p0.equals2D(this._minBaseSeg.p1)?this._inputGeom.getFactory().createPoint(this._minBaseSeg.p0):
this._minBaseSeg.toGeometry(this._inputGeom.getFactory());for(var t=this._minBaseSeg.p1.x-this._minBaseSeg.p0.x,e=this._minBaseSeg.p1.y-this._minBaseSeg.p0.y,n=s.MAX_VALUE,i=-s.MAX_VALUE,r=s.MAX_VALUE,o=-s.MAX_VALUE,a=0;a<this._convexHullPts.length;a++){var u=xn.computeC(t,e,this._convexHullPts[a]);u>i&&(i=u),u<n&&(n=u);var l=xn.computeC(-e,t,this._convexHullPts[a]);l>o&&(o=l),l<r&&(r=l)}var h=xn.computeSegmentForLine(-t,-e,o),c=xn.computeSegmentForLine(-t,-e,r),f=xn.computeSegmentForLine(-e,t,i),
g=xn.computeSegmentForLine(-e,t,n),d=f.lineIntersection(h),_=g.lineIntersection(h),p=g.lineIntersection(c),m=f.lineIntersection(c),v=this._inputGeom.getFactory().createLinearRing([d,_,p,m,d]);return this._inputGeom.getFactory().createPolygon(v)},interfaces_:function(){return[]},getClass:function(){return xn}}),xn.nextIndex=function(t,e){return++e>=t.length&&(e=0),e},xn.computeC=function(t,e,n){return t*n.y-e*n.x},xn.getMinimumDiameter=function(t){return(new xn(t)).getDiameter()},xn.getMinimumRectangle=
function(t){return(new xn(t)).getMinimumRectangle()},xn.computeSegmentForLine=function(t,e,n){var i=null,r=null;return Math.abs(e)>Math.abs(t)?(i=new E(0,n/e),r=new E(1,n/e-t/e)):(i=new E(n/t,0),r=new E(n/t-e/t,1)),new ge(i,r)};var En=Object.freeze({Angle:pe,Centroid:Xe,CGAlgorithms:He,ConvexHull:Ze,Distance:X,InteriorPointArea:Je,InteriorPointLine:tn,InteriorPointPoint:en,RobustLineIntersector:fe,MCPointInRing:mn,MinimumBoundingCircle:yn,MinimumDiameter:xn});function In(){this._inputGeom=null,this._factory=
null,this._pruneEmptyGeometry=!0,this._preserveGeometryCollectionType=!0,this._preserveCollections=!1,this._preserveType=!1}function Nn(){this._inputGeom=null,this._distanceTolerance=null;var t=arguments[0];this._inputGeom=t}function Cn(){In.apply(this),this.distanceTolerance=null;var t=arguments[0];this.distanceTolerance=t}e(In.prototype,{transformPoint:function(t,e){return this._factory.createPoint(this.transformCoordinates(t.getCoordinateSequence(),t))},transformPolygon:function(t,e){var n=!0,
i=this.transformLinearRing(t.getExteriorRing(),t);null!==i&&i instanceof Yt&&!i.isEmpty()||(n=!1);for(var r=new P,s=0;s<t.getNumInteriorRing();s++){var o=this.transformLinearRing(t.getInteriorRingN(s),t);null===o||o.isEmpty()||(o instanceof Yt||(n=!1),r.add(o))}if(n)return this._factory.createPolygon(i,r.toArray([]));var a=new P;return null!==i&&a.add(i),a.addAll(r),this._factory.buildGeometry(a)},createCoordinateSequence:function(t){return this._factory.getCoordinateSequenceFactory().create(t)},
getInputGeometry:function(){return this._inputGeom},transformMultiLineString:function(t,e){for(var n=new P,i=0;i<t.getNumGeometries();i++){var r=this.transformLineString(t.getGeometryN(i),t);null!==r&&(r.isEmpty()||n.add(r))}return this._factory.buildGeometry(n)},transformCoordinates:function(t,e){return this.copy(t)},transformLineString:function(t,e){return this._factory.createLineString(this.transformCoordinates(t.getCoordinateSequence(),t))},transformMultiPoint:function(t,e){for(var n=new P,i=
0;i<t.getNumGeometries();i++){var r=this.transformPoint(t.getGeometryN(i),t);null!==r&&(r.isEmpty()||n.add(r))}return this._factory.buildGeometry(n)},transformMultiPolygon:function(t,e){for(var n=new P,i=0;i<t.getNumGeometries();i++){var r=this.transformPolygon(t.getGeometryN(i),t);null!==r&&(r.isEmpty()||n.add(r))}return this._factory.buildGeometry(n)},copy:function(t){return t.copy()},transformGeometryCollection:function(t,e){for(var n=new P,i=0;i<t.getNumGeometries();i++){var r=this.transform(t.getGeometryN(i));
null!==r&&(this._pruneEmptyGeometry&&r.isEmpty()||n.add(r))}return this._preserveGeometryCollectionType?this._factory.createGeometryCollection(se.toGeometryArray(n)):this._factory.buildGeometry(n)},transform:function(t){if(this._inputGeom=t,this._factory=t.getFactory(),t instanceof Gt)return this.transformPoint(t,null);if(t instanceof zt)return this.transformMultiPoint(t,null);if(t instanceof Yt)return this.transformLinearRing(t,null);if(t instanceof At)return this.transformLineString(t,null);if(t instanceof
wt)return this.transformMultiLineString(t,null);if(t instanceof Vt)return this.transformPolygon(t,null);if(t instanceof kt)return this.transformMultiPolygon(t,null);if(t instanceof Lt)return this.transformGeometryCollection(t,null);throw new i("Unknown Geometry subtype: "+t.getClass().getName());},transformLinearRing:function(t,e){var n=this.transformCoordinates(t.getCoordinateSequence(),t);if(null===n)return this._factory.createLinearRing(null);var i=n.size();return i>0&&i<4&&!this._preserveType?
this._factory.createLineString(n):this._factory.createLinearRing(n)},interfaces_:function(){return[]},getClass:function(){return In}}),e(Nn.prototype,{getResultGeometry:function(){return(new Cn(this._distanceTolerance)).transform(this._inputGeom)},setDistanceTolerance:function(t){if(t<=0)throw new i("Tolerance must be positive");this._distanceTolerance=t},interfaces_:function(){return[]},getClass:function(){return Nn}}),Nn.densifyPoints=function(t,e,n){for(var i=new ge,r=new b,s=0;s<t.length-1;s++){i.p0=
t[s],i.p1=t[s+1],r.add(i.p0,!1);var o=i.getLength(),a=Math.trunc(o/e)+1;if(a>1)for(var u=o/a,l=1;l<a;l++){var h=l*u/o,c=i.pointAlong(h);n.makePrecise(c),r.add(c,!1)}}return r.add(t[t.length-1],!1),r.toCoordinateArray()},Nn.densify=function(t,e){var n=new Nn(t);return n.setDistanceTolerance(e),n.getResultGeometry()},v(Cn,In),e(Cn.prototype,{transformMultiPolygon:function(t,e){var n=In.prototype.transformMultiPolygon.call(this,t,e);return this.createValidArea(n)},transformPolygon:function(t,e){var n=
In.prototype.transformPolygon.call(this,t,e);return e instanceof kt?n:this.createValidArea(n)},transformCoordinates:function(t,e){var n=t.toCoordinateArray(),i=Nn.densifyPoints(n,this.distanceTolerance,e.getPrecisionModel());return e instanceof At&&1===i.length&&(i=(new Array(0)).fill(null)),this._factory.getCoordinateSequenceFactory().create(i)},createValidArea:function(t){return t.buffer(0)},interfaces_:function(){return[]},getClass:function(){return Cn}}),Nn.DensifyTransformer=Cn;var Sn=Object.freeze({Densifier:Nn});
function Ln(){this._orig=null,this._sym=null,this._next=null;var t=arguments[0];this._orig=t}function wn(){this._isMarked=!1;var t=arguments[0];Ln.call(this,t)}function Rn(){this._vertexMap=new ne}function Tn(){this._isStart=!1;var t=arguments[0];wn.call(this,t)}function Pn(){Rn.apply(this)}function On(){this._result=null,this._factory=null,this._graph=null,this._lines=new P,this._nodeEdgeStack=new je,this._ringStartEdge=null,this._graph=new Pn}e(Ln.prototype,{find:function(t){var e=this;do{if(null===
e)return null;if(e.dest().equals2D(t))return e;e=e.oNext()}while(e!==this);return null},dest:function(){return this._sym._orig},oNext:function(){return this._sym._next},insert:function(t){if(this.oNext()===this)return this.insertAfter(t),null;var e=this.compareTo(t),n=this;do{var i=n.oNext();if(i.compareTo(t)!==e||i===this)return n.insertAfter(t),null;n=i}while(n!==this);x.shouldNeverReachHere()},insertAfter:function(t){x.equals(this._orig,t.orig());var e=this.oNext();this._sym.setNext(t),t.sym().setNext(e)},
degree:function(){var t=0,e=this;do t++,e=e.oNext();while(e!==this);return t},equals:function(){if(2===arguments.length&&arguments[1]instanceof E&&arguments[0]instanceof E){var t=arguments[0],e=arguments[1];return this._orig.equals2D(t)&&this._sym._orig.equals(e)}},deltaY:function(){return this._sym._orig.y-this._orig.y},sym:function(){return this._sym},prev:function(){return this._sym.next()._sym},compareAngularDirection:function(t){var e=this.deltaX(),n=this.deltaY(),i=t.deltaX(),r=t.deltaY();if(e===
i&&n===r)return 0;var s=gn.quadrant(e,n),o=gn.quadrant(i,r);return s>o?1:s<o?-1:z.index(t._orig,t.dest(),this.dest())},prevNode:function(){for(var t=this;2===t.degree();)if((t=t.prev())===this)return null;return t},compareTo:function(t){var e=t;return this.compareAngularDirection(e)},next:function(){return this._next},setSym:function(t){this._sym=t},orig:function(){return this._orig},toString:function(){return"HE("+this._orig.x+" "+this._orig.y+", "+this._sym._orig.x+" "+this._sym._orig.y+")"},setNext:function(t){this._next=
t},init:function(t){this.setSym(t),t.setSym(this),this.setNext(t),t.setNext(this)},deltaX:function(){return this._sym._orig.x-this._orig.x},interfaces_:function(){return[]},getClass:function(){return Ln}}),Ln.init=function(t,e){if(null!==t._sym||null!==e._sym||null!==t._next||null!==e._next)throw new IllegalStateException("Edges are already initialized");return t.init(e),t},Ln.create=function(t,e){var n=new Ln(t),i=new Ln(e);return n.init(i),n},v(wn,Ln),e(wn.prototype,{mark:function(){this._isMarked=
!0},setMark:function(t){this._isMarked=t},isMarked:function(){return this._isMarked},interfaces_:function(){return[]},getClass:function(){return wn}}),wn.setMarkBoth=function(t,e){t.setMark(e),t.sym().setMark(e)},wn.isMarked=function(t){return t.isMarked()},wn.setMark=function(t,e){t.setMark(e)},wn.markBoth=function(t){t.mark(),t.sym().mark()},wn.mark=function(t){t.mark()},e(Rn.prototype,{insert:function(t,e,n){var i=this.create(t,e);null!==n?n.insert(i):this._vertexMap.put(t,i);var r=this._vertexMap.get(e);
return null!==r?r.insert(i.sym()):this._vertexMap.put(e,i.sym()),i},create:function(t,e){var n=this.createEdge(t),i=this.createEdge(e);return Ln.init(n,i),n},createEdge:function(t){return new Ln(t)},addEdge:function(t,e){if(!Rn.isValidEdge(t,e))return null;var n=this._vertexMap.get(t),i=null;return null!==n&&(i=n.find(e)),null!==i?i:this.insert(t,e,n)},getVertexEdges:function(){return this._vertexMap.values()},findEdge:function(t,e){var n=this._vertexMap.get(t);return null===n?null:n.find(e)},interfaces_:function(){return[]},
getClass:function(){return Rn}}),Rn.isValidEdge=function(t,e){return 0!==e.compareTo(t)},v(Tn,wn),e(Tn.prototype,{setStart:function(){this._isStart=!0},isStart:function(){return this._isStart},interfaces_:function(){return[]},getClass:function(){return Tn}}),v(Pn,Rn),e(Pn.prototype,{createEdge:function(t){return new Tn(t)},interfaces_:function(){return[]},getClass:function(){return Pn}}),e(On.prototype,{addLine:function(t){this._lines.add(this._factory.createLineString(t.toCoordinateArray()))},updateRingStartEdge:function(t){return t.isStart()||
(t=t.sym()).isStart()?null===this._ringStartEdge?(this._ringStartEdge=t,null):void(t.orig().compareTo(this._ringStartEdge.orig())<0&&(this._ringStartEdge=t)):null},getResult:function(){return null===this._result&&this.computeResult(),this._result},process:function(t){var e=t.prevNode();null===e&&(e=t),this.stackEdges(e),this.buildLines()},buildRing:function(t){var e=new b,n=t;for(e.add(n.orig().copy(),!1);2===n.sym().degree();){var i=n.next();if(i===t)break;e.add(i.orig().copy(),!1),n=i}e.add(n.dest().copy(),
!1),this.addLine(e)},buildLine:function(t){var e=new b,n=t;for(this._ringStartEdge=null,wn.markBoth(n),e.add(n.orig().copy(),!1);2===n.sym().degree();){this.updateRingStartEdge(n);var i=n.next();if(i===t)return this.buildRing(this._ringStartEdge),null;e.add(i.orig().copy(),!1),n=i,wn.markBoth(n)}e.add(n.dest().clone(),!1),this.stackEdges(n.sym()),this.addLine(e)},stackEdges:function(t){var e=t;do wn.isMarked(e)||this._nodeEdgeStack.add(e),e=e.oNext();while(e!==t)},computeResult:function(){for(var t=
this._graph.getVertexEdges().iterator();t.hasNext();){var e=t.next();wn.isMarked(e)||this.process(e)}this._result=this._factory.buildGeometry(this._lines)},buildLines:function(){for(;!this._nodeEdgeStack.empty();){var t=this._nodeEdgeStack.pop();wn.isMarked(t)||this.buildLine(t)}},add:function(){if(arguments[0]instanceof K)arguments[0].apply({interfaces_:function(){return[j]},filter:function(t){t instanceof At&&this.add(t)}});else if(N(arguments[0],S))for(var t=arguments[0].iterator();t.hasNext();){var e=
t.next();this.add(e)}else if(arguments[0]instanceof At){var n=arguments[0];null===this._factory&&(this._factory=n.getFactory());var i=n.getCoordinateSequence(),r=!1;for(t=1;t<i.size();t++){var s=this._graph.addEdge(i.getCoordinate(t-1),i.getCoordinate(t));null!==s&&(r||(s.setStart(),r=!0))}}},interfaces_:function(){return[]},getClass:function(){return On}}),On.dissolve=function(t){var e=new On;return e.add(t),e.getResult()};var bn=Object.freeze({LineDissolver:On});function Mn(){if(this._boundaryRule=
Q.OGC_SFS_BOUNDARY_RULE,this._isIn=null,this._numBoundaries=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];if(null===t)throw new i("Rule must be non-null");this._boundaryRule=t}}function Dn(){}function An(){this.mce=null,this.chainIndex=null;var t=arguments[0],e=arguments[1];this.mce=t,this.chainIndex=e}function Fn(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,2===arguments.length){var t=
arguments[0],e=arguments[1];this._eventType=Fn.DELETE,this._xValue=t,this._insertEvent=e}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this._eventType=Fn.INSERT,this._label=n,this._xValue=i,this._obj=r}}function Gn(){}function qn(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=
0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var t=arguments[0],e=arguments[1],n=arguments[2];this._li=t,this._includeProper=e,this._recordIsolated=n}function Bn(){Gn.apply(this),this.events=new P,this.nOverlaps=null}function Vn(){if(this.location=null,1===arguments.length)if(arguments[0]instanceof Array){var t=arguments[0];this.init(t.length)}else if(Number.isInteger(arguments[0])){var e=arguments[0];this.init(1),this.location[Dn.ON]=e}else{if(arguments[0]instanceof Vn){var n=
arguments[0];if(this.init(n.location.length),null!==n)for(var i=0;i<this.location.length;i++)this.location[i]=n.location[i]}}else if(3===arguments.length){var r=arguments[0],s=arguments[1],o=arguments[2];this.init(3),this.location[Dn.ON]=r,this.location[Dn.LEFT]=s,this.location[Dn.RIGHT]=o}}function zn(){if(this.elt=(new Array(2)).fill(null),1===arguments.length)if(Number.isInteger(arguments[0])){var t=arguments[0];this.elt[0]=new Vn(t),this.elt[1]=new Vn(t)}else{if(arguments[0]instanceof zn){var e=
arguments[0];this.elt[0]=new Vn(e.elt[0]),this.elt[1]=new Vn(e.elt[1])}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.elt[0]=new Vn(de.NONE),this.elt[1]=new Vn(de.NONE),this.elt[n].setLocation(i)}else if(3===arguments.length){var r=arguments[0],s=arguments[1],o=arguments[2];this.elt[0]=new Vn(r,s,o),this.elt[1]=new Vn(r,s,o)}else if(4===arguments.length){var a=arguments[0],u=arguments[1],l=arguments[2],h=arguments[3];this.elt[0]=new Vn(de.NONE,de.NONE,de.NONE),this.elt[1]=new Vn(de.NONE,
de.NONE,de.NONE),this.elt[a].setLocations(u,l,h)}}function Yn(){this.coord=null,this.segmentIndex=null,this.dist=null;var t=arguments[0],e=arguments[1],n=arguments[2];this.coord=new E(t),this.segmentIndex=e,this.dist=n}function kn(){this._nodeMap=new pt,this.edge=null;var t=arguments[0];this.edge=t}function Un(){}function Xn(){this.e=null,this.pts=null,this.startIndex=null;var t=arguments[0];this.e=t,this.pts=t.getCoordinates();var e=new Un;this.startIndex=e.getChainStartIndices(this.pts)}function Hn(){this._depth=
Array(2).fill().map(function(){return Array(3)});for(var t=0;t<2;t++)for(var e=0;e<3;e++)this._depth[t][e]=Hn.NULL_VALUE}function Wn(){if(this._label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._label=t}}function jn(){if(Wn.apply(this),this.pts=null,this._env=null,this.eiList=new kn(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new Hn,this._depthDelta=0,1===arguments.length){var t=
arguments[0];jn.call(this,t,null)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.pts=e,this._label=n}}function Kn(){Wn.apply(this),this._coord=null,this._edges=null;var t=arguments[0],e=arguments[1];this._coord=t,this._edges=e,this._label=new zn(0,de.NONE)}function Zn(){this.nodeMap=new pt,this.nodeFact=null;var t=arguments[0];this.nodeFact=t}function Qn(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=
null,1===arguments.length){var t=arguments[0];this._edge=t}else if(3===arguments.length){var e=arguments[0],n=arguments[1],i=arguments[2];Qn.call(this,e,n,i,null)}else if(4===arguments.length){var r=arguments[0],s=arguments[1],o=arguments[2],a=arguments[3];Qn.call(this,r),this.init(s,o),this._label=a}}function Jn(){if(this.pt=null,1===arguments.length){var t=arguments[0];m.call(this,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];m.call(this,Jn.msgWithCoord(e,n)),this.name="TopologyException",
this.pt=new E(n)}}function $n(){this._isForward=null,this._isInResult=!1,this._isVisited=!1,this._sym=null,this._next=null,this._nextMin=null,this._edgeRing=null,this._minEdgeRing=null,this._depth=[0,-999,-999];var t=arguments[0],e=arguments[1];if(Qn.call(this,t),this._isForward=e,e)this.init(t.getCoordinate(0),t.getCoordinate(1));else{var n=t.getNumPoints()-1;this.init(t.getCoordinate(n),t.getCoordinate(n-1))}this.computeDirectedLabel()}function ti(){}function ei(){if(this._edges=new P,this._nodes=
null,this._edgeEndList=new P,0===arguments.length)this._nodes=new Zn(new ti);else if(1===arguments.length){var t=arguments[0];this._nodes=new Zn(t)}}function ni(){if(ei.apply(this),this._parentGeom=null,this._lineEdgeMap=new ne,this._boundaryNodeRule=null,this._useBoundaryDeterminationRule=!0,this._argIndex=null,this._boundaryNodes=null,this._hasTooFewPoints=!1,this._invalidPoint=null,this._areaPtLocator=null,this._ptLocator=new Mn,2===arguments.length){var t=arguments[0],e=arguments[1];ni.call(this,
t,e,Q.OGC_SFS_BOUNDARY_RULE)}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this._argIndex=n,this._parentGeom=i,this._boundaryNodeRule=r,null!==i&&this.add(i)}}e(Mn.prototype,{locateInPolygonRing:function(t,e){return e.getEnvelopeInternal().intersects(t)?qe.locateInRing(t,e.getCoordinates()):de.EXTERIOR},intersects:function(t,e){return this.locate(t,e)!==de.EXTERIOR},updateLocationInfo:function(t){t===de.INTERIOR&&(this._isIn=!0),t===de.BOUNDARY&&this._numBoundaries++},
computeLocation:function(t,e){if(e instanceof Gt&&this.updateLocationInfo(this.locateOnPoint(t,e)),e instanceof At)this.updateLocationInfo(this.locateOnLineString(t,e));else if(e instanceof Vt)this.updateLocationInfo(this.locateInPolygon(t,e));else if(e instanceof wt)for(var n=e,i=0;i<n.getNumGeometries();i++){var r=n.getGeometryN(i);this.updateLocationInfo(this.locateOnLineString(t,r))}else if(e instanceof kt){var s=e;for(i=0;i<s.getNumGeometries();i++){var o=s.getGeometryN(i);this.updateLocationInfo(this.locateInPolygon(t,
o))}}else if(e instanceof Lt)for(var a=new Be(e);a.hasNext();){var u=a.next();u!==e&&this.computeLocation(t,u)}},locateOnPoint:function(t,e){return e.getCoordinate().equals2D(t)?de.INTERIOR:de.EXTERIOR},locateOnLineString:function(t,e){if(!e.getEnvelopeInternal().intersects(t))return de.EXTERIOR;var n=e.getCoordinateSequence();return e.isClosed()||!t.equals(n.getCoordinate(0))&&!t.equals(n.getCoordinate(n.size()-1))?qe.isOnLine(t,n)?de.INTERIOR:de.EXTERIOR:de.BOUNDARY},locateInPolygon:function(t,
e){if(e.isEmpty())return de.EXTERIOR;var n=e.getExteriorRing(),i=this.locateInPolygonRing(t,n);if(i===de.EXTERIOR)return de.EXTERIOR;if(i===de.BOUNDARY)return de.BOUNDARY;for(var r=0;r<e.getNumInteriorRing();r++){var s=e.getInteriorRingN(r),o=this.locateInPolygonRing(t,s);if(o===de.INTERIOR)return de.EXTERIOR;if(o===de.BOUNDARY)return de.BOUNDARY}return de.INTERIOR},locate:function(t,e){return e.isEmpty()?de.EXTERIOR:e instanceof At?this.locateOnLineString(t,e):e instanceof Vt?this.locateInPolygon(t,
e):(this._isIn=!1,this._numBoundaries=0,this.computeLocation(t,e),this._boundaryRule.isInBoundary(this._numBoundaries)?de.BOUNDARY:this._numBoundaries>0||this._isIn?de.INTERIOR:de.EXTERIOR)},interfaces_:function(){return[]},getClass:function(){return Mn}}),e(Dn.prototype,{interfaces_:function(){return[]},getClass:function(){return Dn}}),Dn.opposite=function(t){return t===Dn.LEFT?Dn.RIGHT:t===Dn.RIGHT?Dn.LEFT:t},Dn.ON=0,Dn.LEFT=1,Dn.RIGHT=2,e(An.prototype,{computeIntersections:function(t,e){this.mce.computeIntersectsForChain(this.chainIndex,
t.mce,t.chainIndex,e)},interfaces_:function(){return[]},getClass:function(){return An}}),e(Fn.prototype,{isDelete:function(){return this._eventType===Fn.DELETE},setDeleteEventIndex:function(t){this._deleteEventIndex=t},getObject:function(){return this._obj},compareTo:function(t){var e=t;return this._xValue<e._xValue?-1:this._xValue>e._xValue?1:this._eventType<e._eventType?-1:this._eventType>e._eventType?1:0},getInsertEvent:function(){return this._insertEvent},isInsert:function(){return this._eventType===
Fn.INSERT},isSameLabel:function(t){return null!==this._label&&this._label===t._label},getDeleteEventIndex:function(){return this._deleteEventIndex},interfaces_:function(){return[g]},getClass:function(){return Fn}}),Fn.INSERT=1,Fn.DELETE=2,e(Gn.prototype,{interfaces_:function(){return[]},getClass:function(){return Gn}}),e(qn.prototype,{isTrivialIntersection:function(t,e,n,i){if(t===n&&1===this._li.getIntersectionNum()){if(qn.isAdjacentSegments(e,i))return!0;if(t.isClosed()){var r=t.getNumPoints()-
1;if(0===e&&i===r||0===i&&e===r)return!0}}return!1},getProperIntersectionPoint:function(){return this._properIntersectionPoint},setIsDoneIfProperInt:function(t){this._isDoneWhenProperInt=t},hasProperInteriorIntersection:function(){return this._hasProperInterior},isBoundaryPointInternal:function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next().getCoordinate();if(t.isIntersection(i))return!0}return!1},hasProperIntersection:function(){return this._hasProper},hasIntersection:function(){return this._hasIntersection},
isDone:function(){return this._isDone},isBoundaryPoint:function(t,e){return null!==e&&(!!this.isBoundaryPointInternal(t,e[0])||!!this.isBoundaryPointInternal(t,e[1]))},setBoundaryNodes:function(t,e){this._bdyNodes=(new Array(2)).fill(null),this._bdyNodes[0]=t,this._bdyNodes[1]=e},addIntersections:function(t,e,n,i){if(t===n&&e===i)return null;this.numTests++;var r=t.getCoordinates()[e],s=t.getCoordinates()[e+1],o=n.getCoordinates()[i],a=n.getCoordinates()[i+1];this._li.computeIntersection(r,s,o,a),
this._li.hasIntersection()&&(this._recordIsolated&&(t.setIsolated(!1),n.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(t,e,n,i)||(this._hasIntersection=!0,!this._includeProper&&this._li.isProper()||(t.addIntersections(this._li,e,0),n.addIntersections(this._li,i,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=
!0))))},interfaces_:function(){return[]},getClass:function(){return qn}}),qn.isAdjacentSegments=function(t,e){return 1===Math.abs(t-e)},v(Bn,Gn),e(Bn.prototype,{prepareEvents:function(){Te.sort(this.events);for(var t=0;t<this.events.size();t++){var e=this.events.get(t);e.isDelete()&&e.getInsertEvent().setDeleteEventIndex(t)}},computeIntersections:function(){if(1===arguments.length){var t=arguments[0];this.nOverlaps=0,this.prepareEvents();for(var e=0;e<this.events.size();e++){var n=this.events.get(e);
if(n.isInsert()&&this.processOverlaps(e,n.getDeleteEventIndex(),n,t),t.isDone())break}}else if(3===arguments.length)if(arguments[2]instanceof qn&&N(arguments[0],w)&&N(arguments[1],w)){var i=arguments[0],r=arguments[1],s=arguments[2];this.addEdges(i,i),this.addEdges(r,r),this.computeIntersections(s)}else if("boolean"==typeof arguments[2]&&N(arguments[0],w)&&arguments[1]instanceof qn){var o=arguments[0],a=arguments[1];arguments[2]?this.addEdges(o,null):this.addEdges(o),this.computeIntersections(a)}},
addEdge:function(t,e){for(var n=t.getMonotoneChainEdge(),i=n.getStartIndexes(),r=0;r<i.length-1;r++){var s=new An(n,r),o=new Fn(e,n.getMinX(r),s);this.events.add(o),this.events.add(new Fn(n.getMaxX(r),o))}},processOverlaps:function(t,e,n,i){for(var r=n.getObject(),s=t;s<e;s++){var o=this.events.get(s);if(o.isInsert()){var a=o.getObject();n.isSameLabel(o)||(r.computeIntersections(a,i),this.nOverlaps++)}}},addEdges:function(){if(1===arguments.length)for(var t=arguments[0].iterator();t.hasNext();){var e=
t.next();this.addEdge(e,e)}else if(2===arguments.length){var n=arguments[0],i=arguments[1];for(t=n.iterator();t.hasNext();){e=t.next();this.addEdge(e,i)}}},interfaces_:function(){return[]},getClass:function(){return Bn}}),e(Vn.prototype,{setAllLocations:function(t){for(var e=0;e<this.location.length;e++)this.location[e]=t},isNull:function(){for(var t=0;t<this.location.length;t++)if(this.location[t]!==de.NONE)return!1;return!0},setAllLocationsIfNull:function(t){for(var e=0;e<this.location.length;e++)this.location[e]===
de.NONE&&(this.location[e]=t)},isLine:function(){return 1===this.location.length},merge:function(t){if(t.location.length>this.location.length){var e=(new Array(3)).fill(null);e[Dn.ON]=this.location[Dn.ON],e[Dn.LEFT]=de.NONE,e[Dn.RIGHT]=de.NONE,this.location=e}for(var n=0;n<this.location.length;n++)this.location[n]===de.NONE&&n<t.location.length&&(this.location[n]=t.location[n])},getLocations:function(){return this.location},flip:function(){if(this.location.length<=1)return null;var t=this.location[Dn.LEFT];
this.location[Dn.LEFT]=this.location[Dn.RIGHT],this.location[Dn.RIGHT]=t},toString:function(){var t=new F;return this.location.length>1&&t.append(de.toLocationSymbol(this.location[Dn.LEFT])),t.append(de.toLocationSymbol(this.location[Dn.ON])),this.location.length>1&&t.append(de.toLocationSymbol(this.location[Dn.RIGHT])),t.toString()},setLocations:function(t,e,n){this.location[Dn.ON]=t,this.location[Dn.LEFT]=e,this.location[Dn.RIGHT]=n},get:function(t){return t<this.location.length?this.location[t]:
de.NONE},isArea:function(){return this.location.length>1},isAnyNull:function(){for(var t=0;t<this.location.length;t++)if(this.location[t]===de.NONE)return!0;return!1},setLocation:function(){if(1===arguments.length){var t=arguments[0];this.setLocation(Dn.ON,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.location[e]=n}},init:function(t){this.location=(new Array(t)).fill(null),this.setAllLocations(de.NONE)},isEqualOnSide:function(t,e){return this.location[e]===t.location[e]},
allPositionsEqual:function(t){for(var e=0;e<this.location.length;e++)if(this.location[e]!==t)return!1;return!0},interfaces_:function(){return[]},getClass:function(){return Vn}}),e(zn.prototype,{getGeometryCount:function(){var t=0;return this.elt[0].isNull()||t++,this.elt[1].isNull()||t++,t},setAllLocations:function(t,e){this.elt[t].setAllLocations(e)},isNull:function(t){return this.elt[t].isNull()},setAllLocationsIfNull:function(){if(1===arguments.length){var t=arguments[0];this.setAllLocationsIfNull(0,
t),this.setAllLocationsIfNull(1,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.elt[e].setAllLocationsIfNull(n)}},isLine:function(t){return this.elt[t].isLine()},merge:function(t){for(var e=0;e<2;e++)null===this.elt[e]&&null!==t.elt[e]?this.elt[e]=new Vn(t.elt[e]):this.elt[e].merge(t.elt[e])},flip:function(){this.elt[0].flip(),this.elt[1].flip()},getLocation:function(){if(1===arguments.length){var t=arguments[0];return this.elt[t].get(Dn.ON)}if(2===arguments.length){var e=
arguments[0],n=arguments[1];return this.elt[e].get(n)}},toString:function(){var t=new F;return null!==this.elt[0]&&(t.append("A:"),t.append(this.elt[0].toString())),null!==this.elt[1]&&(t.append(" B:"),t.append(this.elt[1].toString())),t.toString()},isArea:function(){if(0===arguments.length)return this.elt[0].isArea()||this.elt[1].isArea();if(1===arguments.length){var t=arguments[0];return this.elt[t].isArea()}},isAnyNull:function(t){return this.elt[t].isAnyNull()},setLocation:function(){if(2===arguments.length){var t=
arguments[0],e=arguments[1];this.elt[t].setLocation(Dn.ON,e)}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this.elt[n].setLocation(i,r)}},isEqualOnSide:function(t,e){return this.elt[0].isEqualOnSide(t.elt[0],e)&&this.elt[1].isEqualOnSide(t.elt[1],e)},allPositionsEqual:function(t,e){return this.elt[t].allPositionsEqual(e)},toLine:function(t){this.elt[t].isArea()&&(this.elt[t]=new Vn(this.elt[t].location[0]))},interfaces_:function(){return[]},getClass:function(){return zn}}),
zn.toLineLabel=function(t){for(var e=new zn(de.NONE),n=0;n<2;n++)e.setLocation(n,t.getLocation(n));return e},e(Yn.prototype,{getSegmentIndex:function(){return this.segmentIndex},getCoordinate:function(){return this.coord},print:function(t){t.print(this.coord),t.print(" seg # \x3d "+this.segmentIndex),t.println(" dist \x3d "+this.dist)},compareTo:function(t){var e=t;return this.compare(e.segmentIndex,e.dist)},isEndPoint:function(t){return 0===this.segmentIndex&&0===this.dist||this.segmentIndex===t},
toString:function(){return this.coord+" seg # \x3d "+this.segmentIndex+" dist \x3d "+this.dist},getDistance:function(){return this.dist},compare:function(t,e){return this.segmentIndex<t?-1:this.segmentIndex>t?1:this.dist<e?-1:this.dist>e?1:0},interfaces_:function(){return[g]},getClass:function(){return Yn}}),e(kn.prototype,{print:function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();)e.next().print(t)},iterator:function(){return this._nodeMap.values().iterator()},addSplitEdges:function(t){this.addEndpoints();
for(var e=this.iterator(),n=e.next();e.hasNext();){var i=e.next(),r=this.createSplitEdge(n,i);t.add(r),n=i}},addEndpoints:function(){var t=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[t],t,0)},createSplitEdge:function(t,e){var n=e.segmentIndex-t.segmentIndex+2,i=this.edge.pts[e.segmentIndex],r=e.dist>0||!e.coord.equals2D(i);r||n--;var s=(new Array(n)).fill(null),o=0;s[o++]=new E(t.coord);for(var a=t.segmentIndex+1;a<=e.segmentIndex;a++)s[o++]=this.edge.pts[a];return r&&
(s[o]=e.coord),new jn(s,new zn(this.edge._label))},add:function(t,e,n){var i=new Yn(t,e,n),r=this._nodeMap.get(i);return null!==r?r:(this._nodeMap.put(i,i),i)},isIntersection:function(t){for(var e=this.iterator();e.hasNext();)if(e.next().coord.equals(t))return!0;return!1},interfaces_:function(){return[]},getClass:function(){return kn}}),e(Un.prototype,{getChainStartIndices:function(t){var e=0,n=new P;n.add(new G(e));do{var i=this.findChainEnd(t,e);n.add(new G(i)),e=i}while(e<t.length-1);return Un.toIntArray(n)},
findChainEnd:function(t,e){for(var n=gn.quadrant(t[e],t[e+1]),i=e+1;i<t.length;){if(gn.quadrant(t[i-1],t[i])!==n)break;i++}return i-1},interfaces_:function(){return[]},getClass:function(){return Un}}),Un.toIntArray=function(t){for(var e=(new Array(t.size())).fill(null),n=0;n<e.length;n++)e[n]=t.get(n).intValue();return e},e(Xn.prototype,{getCoordinates:function(){return this.pts},getMaxX:function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return e>n?e:n},getMinX:function(t){var e=
this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return e<n?e:n},computeIntersectsForChain:function(){if(4===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this.computeIntersectsForChain(this.startIndex[t],this.startIndex[t+1],e,e.startIndex[n],e.startIndex[n+1],i)}else if(6===arguments.length){var r=arguments[0],s=arguments[1],o=arguments[2],a=arguments[3],u=arguments[4],l=arguments[5];if(s-r==1&&u-a==1)return l.addIntersections(this.e,r,o.e,a),
null;if(!this.overlaps(r,s,o,a,u))return null;var h=Math.trunc((r+s)/2),c=Math.trunc((a+u)/2);r<h&&(a<c&&this.computeIntersectsForChain(r,h,o,a,c,l),c<u&&this.computeIntersectsForChain(r,h,o,c,u,l)),h<s&&(a<c&&this.computeIntersectsForChain(h,s,o,a,c,l),c<u&&this.computeIntersectsForChain(h,s,o,c,u,l))}},overlaps:function(t,e,n,i,r){return M.intersects(this.pts[t],this.pts[e],n.pts[i],n.pts[r])},getStartIndexes:function(){return this.startIndex},computeIntersects:function(t,e){for(var n=0;n<this.startIndex.length-
1;n++)for(var i=0;i<t.startIndex.length-1;i++)this.computeIntersectsForChain(n,t,i,e)},interfaces_:function(){return[]},getClass:function(){return Xn}}),e(Hn.prototype,{getDepth:function(t,e){return this._depth[t][e]},setDepth:function(t,e,n){this._depth[t][e]=n},isNull:function(){if(0===arguments.length){for(var t=0;t<2;t++)for(var e=0;e<3;e++)if(this._depth[t][e]!==Hn.NULL_VALUE)return!1;return!0}if(1===arguments.length){var n=arguments[0];return this._depth[n][1]===Hn.NULL_VALUE}if(2===arguments.length){var i=
arguments[0],r=arguments[1];return this._depth[i][r]===Hn.NULL_VALUE}},normalize:function(){for(var t=0;t<2;t++)if(!this.isNull(t)){var e=this._depth[t][1];this._depth[t][2]<e&&(e=this._depth[t][2]),e<0&&(e=0);for(var n=1;n<3;n++){var i=0;this._depth[t][n]>e&&(i=1),this._depth[t][n]=i}}},getDelta:function(t){return this._depth[t][Dn.RIGHT]-this._depth[t][Dn.LEFT]},getLocation:function(t,e){return this._depth[t][e]<=0?de.EXTERIOR:de.INTERIOR},toString:function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+
" B: "+this._depth[1][1]+","+this._depth[1][2]},add:function(){if(1===arguments.length)for(var t=arguments[0],e=0;e<2;e++)for(var n=1;n<3;n++){var i=t.getLocation(e,n);i!==de.EXTERIOR&&i!==de.INTERIOR||(this.isNull(e,n)?this._depth[e][n]=Hn.depthAtLocation(i):this._depth[e][n]+=Hn.depthAtLocation(i))}else if(3===arguments.length){var r=arguments[0],s=arguments[1];arguments[2]===de.INTERIOR&&this._depth[r][s]++}},interfaces_:function(){return[]},getClass:function(){return Hn}}),Hn.depthAtLocation=
function(t){return t===de.EXTERIOR?0:t===de.INTERIOR?1:Hn.NULL_VALUE},Hn.NULL_VALUE=-1,e(Wn.prototype,{setVisited:function(t){this._isVisited=t},setInResult:function(t){this._isInResult=t},isCovered:function(){return this._isCovered},isCoveredSet:function(){return this._isCoveredSet},setLabel:function(t){this._label=t},getLabel:function(){return this._label},setCovered:function(t){this._isCovered=t,this._isCoveredSet=!0},updateIM:function(t){x.isTrue(this._label.getGeometryCount()>=2,"found partial label"),
this.computeIM(t)},isInResult:function(){return this._isInResult},isVisited:function(){return this._isVisited},interfaces_:function(){return[]},getClass:function(){return Wn}}),v(jn,Wn),e(jn.prototype,{getDepth:function(){return this._depth},getCollapsedEdge:function(){var t=(new Array(2)).fill(null);return t[0]=this.pts[0],t[1]=this.pts[1],new jn(t,zn.toLineLabel(this._label))},isIsolated:function(){return this._isIsolated},getCoordinates:function(){return this.pts},setIsolated:function(t){this._isIsolated=
t},setName:function(t){this._name=t},equals:function(t){if(!(t instanceof jn))return!1;var e=t;if(this.pts.length!==e.pts.length)return!1;for(var n=!0,i=!0,r=this.pts.length,s=0;s<this.pts.length;s++)if(this.pts[s].equals2D(e.pts[s])||(n=!1),this.pts[s].equals2D(e.pts[--r])||(i=!1),!n&&!i)return!1;return!0},getCoordinate:function(){if(0===arguments.length)return this.pts.length>0?this.pts[0]:null;if(1===arguments.length){var t=arguments[0];return this.pts[t]}},print:function(t){t.print("edge "+this._name+
": "),t.print("LINESTRING (");for(var e=0;e<this.pts.length;e++)e>0&&t.print(","),t.print(this.pts[e].x+" "+this.pts[e].y);t.print(")  "+this._label+" "+this._depthDelta)},computeIM:function(t){jn.updateIM(this._label,t)},isCollapsed:function(){return!!this._label.isArea()&&(3===this.pts.length&&!!this.pts[0].equals(this.pts[2]))},isClosed:function(){return this.pts[0].equals(this.pts[this.pts.length-1])},getMaximumSegmentIndex:function(){return this.pts.length-1},getDepthDelta:function(){return this._depthDelta},
getNumPoints:function(){return this.pts.length},printReverse:function(t){t.print("edge "+this._name+": ");for(var e=this.pts.length-1;e>=0;e--)t.print(this.pts[e]+" ");t.println("")},getMonotoneChainEdge:function(){return null===this._mce&&(this._mce=new Xn(this)),this._mce},getEnvelope:function(){if(null===this._env){this._env=new M;for(var t=0;t<this.pts.length;t++)this._env.expandToInclude(this.pts[t])}return this._env},addIntersection:function(t,e,n,i){var r=new E(t.getIntersection(i)),s=e,o=
t.getEdgeDistance(n,i),a=s+1;if(a<this.pts.length){var u=this.pts[a];r.equals2D(u)&&(s=a,o=0)}this.eiList.add(r,s,o)},toString:function(){var t=new Mt;t.append("edge "+this._name+": "),t.append("LINESTRING (");for(var e=0;e<this.pts.length;e++)e>0&&t.append(","),t.append(this.pts[e].x+" "+this.pts[e].y);return t.append(")  "+this._label+" "+this._depthDelta),t.toString()},isPointwiseEqual:function(t){if(this.pts.length!==t.pts.length)return!1;for(var e=0;e<this.pts.length;e++)if(!this.pts[e].equals2D(t.pts[e]))return!1;
return!0},setDepthDelta:function(t){this._depthDelta=t},getEdgeIntersectionList:function(){return this.eiList},addIntersections:function(t,e,n){for(var i=0;i<t.getIntersectionNum();i++)this.addIntersection(t,e,n,i)},interfaces_:function(){return[]},getClass:function(){return jn}}),jn.updateIM=function(){if(!(2===arguments.length&&arguments[1]instanceof _e&&arguments[0]instanceof zn))return Wn.prototype.updateIM.apply(this,arguments);var t=arguments[0],e=arguments[1];e.setAtLeastIfValid(t.getLocation(0,
Dn.ON),t.getLocation(1,Dn.ON),1),t.isArea()&&(e.setAtLeastIfValid(t.getLocation(0,Dn.LEFT),t.getLocation(1,Dn.LEFT),2),e.setAtLeastIfValid(t.getLocation(0,Dn.RIGHT),t.getLocation(1,Dn.RIGHT),2))},v(Kn,Wn),e(Kn.prototype,{isIncidentEdgeInResult:function(){for(var t=this.getEdges().getEdges().iterator();t.hasNext();)if(t.next().getEdge().isInResult())return!0;return!1},isIsolated:function(){return 1===this._label.getGeometryCount()},getCoordinate:function(){return this._coord},print:function(t){t.println("node "+
this._coord+" lbl: "+this._label)},computeIM:function(t){},computeMergedLocation:function(t,e){var n=de.NONE;if(n=this._label.getLocation(e),!t.isNull(e)){var i=t.getLocation(e);n!==de.BOUNDARY&&(n=i)}return n},setLabel:function(){if(2!==arguments.length||!Number.isInteger(arguments[1])||!Number.isInteger(arguments[0]))return Wn.prototype.setLabel.apply(this,arguments);var t=arguments[0],e=arguments[1];null===this._label?this._label=new zn(t,e):this._label.setLocation(t,e)},getEdges:function(){return this._edges},
mergeLabel:function(){if(arguments[0]instanceof Kn){var t=arguments[0];this.mergeLabel(t._label)}else if(arguments[0]instanceof zn)for(var e=arguments[0],n=0;n<2;n++){var i=this.computeMergedLocation(e,n);this._label.getLocation(n)===de.NONE&&this._label.setLocation(n,i)}},add:function(t){this._edges.insert(t),t.setNode(this)},setLabelBoundary:function(t){if(null===this._label)return null;var e=de.NONE;null!==this._label&&(e=this._label.getLocation(t));var n=null;switch(e){case de.BOUNDARY:n=de.INTERIOR;
break;case de.INTERIOR:default:n=de.BOUNDARY}this._label.setLocation(t,n)},interfaces_:function(){return[]},getClass:function(){return Kn}}),e(Zn.prototype,{find:function(t){return this.nodeMap.get(t)},addNode:function(){if(arguments[0]instanceof E){var t=arguments[0];return null===(e=this.nodeMap.get(t))&&(e=this.nodeFact.createNode(t),this.nodeMap.put(t,e)),e}if(arguments[0]instanceof Kn){var e,n=arguments[0];return null===(e=this.nodeMap.get(n.getCoordinate()))?(this.nodeMap.put(n.getCoordinate(),
n),n):(e.mergeLabel(n),e)}},print:function(t){for(var e=this.iterator();e.hasNext();)e.next().print(t)},iterator:function(){return this.nodeMap.values().iterator()},values:function(){return this.nodeMap.values()},getBoundaryNodes:function(t){for(var e=new P,n=this.iterator();n.hasNext();){var i=n.next();i.getLabel().getLocation(t)===de.BOUNDARY&&e.add(i)}return e},add:function(t){var e=t.getCoordinate();this.addNode(e).add(t)},interfaces_:function(){return[]},getClass:function(){return Zn}}),e(Qn.prototype,
{compareDirection:function(t){return this._dx===t._dx&&this._dy===t._dy?0:this._quadrant>t._quadrant?1:this._quadrant<t._quadrant?-1:z.index(t._p0,t._p1,this._p1)},getDy:function(){return this._dy},getCoordinate:function(){return this._p0},setNode:function(t){this._node=t},print:function(t){var e=Math.atan2(this._dy,this._dx),n=this.getClass().getName(),i=n.lastIndexOf("."),r=n.substring(i+1);t.print("  "+r+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+e+"   "+this._label)},compareTo:function(t){var e=
t;return this.compareDirection(e)},getDirectedCoordinate:function(){return this._p1},getDx:function(){return this._dx},getLabel:function(){return this._label},getEdge:function(){return this._edge},getQuadrant:function(){return this._quadrant},getNode:function(){return this._node},toString:function(){var t=Math.atan2(this._dy,this._dx),e=this.getClass().getName(),n=e.lastIndexOf(".");return"  "+e.substring(n+1)+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+t+"   "+this._label},computeLabel:function(t){},
init:function(t,e){this._p0=t,this._p1=e,this._dx=e.x-t.x,this._dy=e.y-t.y,this._quadrant=gn.quadrant(this._dx,this._dy),x.isTrue(!(0===this._dx&&0===this._dy),"EdgeEnd with identical endpoints found")},interfaces_:function(){return[g]},getClass:function(){return Qn}}),v(Jn,m),e(Jn.prototype,{getCoordinate:function(){return this.pt},interfaces_:function(){return[]},getClass:function(){return Jn}}),Jn.msgWithCoord=function(t,e){return null!==e?t+" [ "+e+" ]":t},v($n,Qn),e($n.prototype,{getNextMin:function(){return this._nextMin},
getDepth:function(t){return this._depth[t]},setVisited:function(t){this._isVisited=t},computeDirectedLabel:function(){this._label=new zn(this._edge.getLabel()),this._isForward||this._label.flip()},getNext:function(){return this._next},setDepth:function(t,e){if(-999!==this._depth[t]&&this._depth[t]!==e)throw new Jn("assigned depths do not match",this.getCoordinate());this._depth[t]=e},isInteriorAreaEdge:function(){for(var t=!0,e=0;e<2;e++)this._label.isArea(e)&&this._label.getLocation(e,Dn.LEFT)===
de.INTERIOR&&this._label.getLocation(e,Dn.RIGHT)===de.INTERIOR||(t=!1);return t},setNextMin:function(t){this._nextMin=t},print:function(t){Qn.prototype.print.call(this,t),t.print(" "+this._depth[Dn.LEFT]+"/"+this._depth[Dn.RIGHT]),t.print(" ("+this.getDepthDelta()+")"),this._isInResult&&t.print(" inResult")},setMinEdgeRing:function(t){this._minEdgeRing=t},isLineEdge:function(){var t=this._label.isLine(0)||this._label.isLine(1),e=!this._label.isArea(0)||this._label.allPositionsEqual(0,de.EXTERIOR),
n=!this._label.isArea(1)||this._label.allPositionsEqual(1,de.EXTERIOR);return t&&e&&n},setEdgeRing:function(t){this._edgeRing=t},getMinEdgeRing:function(){return this._minEdgeRing},getDepthDelta:function(){var t=this._edge.getDepthDelta();return this._isForward||(t=-t),t},setInResult:function(t){this._isInResult=t},getSym:function(){return this._sym},isForward:function(){return this._isForward},getEdge:function(){return this._edge},printEdge:function(t){this.print(t),t.print(" "),this._isForward?
this._edge.print(t):this._edge.printReverse(t)},setSym:function(t){this._sym=t},setVisitedEdge:function(t){this.setVisited(t),this._sym.setVisited(t)},setEdgeDepths:function(t,e){var n=this.getEdge().getDepthDelta();this._isForward||(n=-n);var i=1;t===Dn.LEFT&&(i=-1);var r=Dn.opposite(t),s=e+n*i;this.setDepth(t,e),this.setDepth(r,s)},getEdgeRing:function(){return this._edgeRing},isInResult:function(){return this._isInResult},setNext:function(t){this._next=t},isVisited:function(){return this._isVisited},
interfaces_:function(){return[]},getClass:function(){return $n}}),$n.depthFactor=function(t,e){return t===de.EXTERIOR&&e===de.INTERIOR?1:t===de.INTERIOR&&e===de.EXTERIOR?-1:0},e(ti.prototype,{createNode:function(t){return new Kn(t,null)},interfaces_:function(){return[]},getClass:function(){return ti}}),e(ei.prototype,{printEdges:function(t){t.println("Edges:");for(var e=0;e<this._edges.size();e++){t.println("edge "+e+":");var n=this._edges.get(e);n.print(t),n.eiList.print(t)}},find:function(t){return this._nodes.find(t)},
addNode:function(){if(arguments[0]instanceof Kn){var t=arguments[0];return this._nodes.addNode(t)}if(arguments[0]instanceof E){var e=arguments[0];return this._nodes.addNode(e)}},getNodeIterator:function(){return this._nodes.iterator()},linkResultDirectedEdges:function(){for(var t=this._nodes.iterator();t.hasNext();)t.next().getEdges().linkResultDirectedEdges()},debugPrintln:function(t){Y.out.println(t)},isBoundaryNode:function(t,e){var n=this._nodes.find(e);if(null===n)return!1;var i=n.getLabel();
return null!==i&&i.getLocation(t)===de.BOUNDARY},linkAllDirectedEdges:function(){for(var t=this._nodes.iterator();t.hasNext();)t.next().getEdges().linkAllDirectedEdges()},matchInSameDirection:function(t,e,n,i){return!!t.equals(n)&&(z.index(t,e,i)===z.COLLINEAR&&gn.quadrant(t,e)===gn.quadrant(n,i))},getEdgeEnds:function(){return this._edgeEndList},debugPrint:function(t){Y.out.print(t)},getEdgeIterator:function(){return this._edges.iterator()},findEdgeInSameDirection:function(t,e){for(var n=0;n<this._edges.size();n++){var i=
this._edges.get(n),r=i.getCoordinates();if(this.matchInSameDirection(t,e,r[0],r[1]))return i;if(this.matchInSameDirection(t,e,r[r.length-1],r[r.length-2]))return i}return null},insertEdge:function(t){this._edges.add(t)},findEdgeEnd:function(t){for(var e=this.getEdgeEnds().iterator();e.hasNext();){var n=e.next();if(n.getEdge()===t)return n}return null},addEdges:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this._edges.add(n);var i=new $n(n,!0),r=new $n(n,!1);i.setSym(r),r.setSym(i),
this.add(i),this.add(r)}},add:function(t){this._nodes.add(t),this._edgeEndList.add(t)},getNodes:function(){return this._nodes.values()},findEdge:function(t,e){for(var n=0;n<this._edges.size();n++){var i=this._edges.get(n),r=i.getCoordinates();if(t.equals(r[0])&&e.equals(r[1]))return i}return null},interfaces_:function(){return[]},getClass:function(){return ei}}),ei.linkResultDirectedEdges=function(t){for(var e=t.iterator();e.hasNext();)e.next().getEdges().linkResultDirectedEdges()},v(ni,ei),e(ni.prototype,
{insertBoundaryPoint:function(t,e){var n=this._nodes.addNode(e).getLabel(),i=1;de.NONE;n.getLocation(t,Dn.ON)===de.BOUNDARY&&i++;var r=ni.determineBoundary(this._boundaryNodeRule,i);n.setLocation(t,r)},computeSelfNodes:function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return this.computeSelfNodes(t,e,!1)}if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2],s=new qn(n,!0,!1);s.setIsDoneIfProperInt(r);var o=this.createEdgeSetIntersector(),a=this._parentGeom instanceof
Yt||this._parentGeom instanceof Vt||this._parentGeom instanceof kt,u=i||!a;return o.computeIntersections(this._edges,s,u),this.addSelfIntersectionNodes(this._argIndex),s}},computeSplitEdges:function(t){for(var e=this._edges.iterator();e.hasNext();)e.next().eiList.addSplitEdges(t)},computeEdgeIntersections:function(t,e,n){var i=new qn(e,n,!0);return i.setBoundaryNodes(this.getBoundaryNodes(),t.getBoundaryNodes()),this.createEdgeSetIntersector().computeIntersections(this._edges,t._edges,i),i},getGeometry:function(){return this._parentGeom},
getBoundaryNodeRule:function(){return this._boundaryNodeRule},hasTooFewPoints:function(){return this._hasTooFewPoints},addPoint:function(){if(arguments[0]instanceof Gt){var t=arguments[0].getCoordinate();this.insertPoint(this._argIndex,t,de.INTERIOR)}else if(arguments[0]instanceof E){var e=arguments[0];this.insertPoint(this._argIndex,e,de.INTERIOR)}},addPolygon:function(t){this.addPolygonRing(t.getExteriorRing(),de.EXTERIOR,de.INTERIOR);for(var e=0;e<t.getNumInteriorRing();e++){var n=t.getInteriorRingN(e);
this.addPolygonRing(n,de.INTERIOR,de.EXTERIOR)}},addEdge:function(t){this.insertEdge(t);var e=t.getCoordinates();this.insertPoint(this._argIndex,e[0],de.BOUNDARY),this.insertPoint(this._argIndex,e[e.length-1],de.BOUNDARY)},addLineString:function(t){var e=nt.removeRepeatedPoints(t.getCoordinates());if(e.length<2)return this._hasTooFewPoints=!0,this._invalidPoint=e[0],null;var n=new jn(e,new zn(this._argIndex,de.INTERIOR));this._lineEdgeMap.put(t,n),this.insertEdge(n),x.isTrue(e.length>=2,"found LineString with single point"),
this.insertBoundaryPoint(this._argIndex,e[0]),this.insertBoundaryPoint(this._argIndex,e[e.length-1])},getInvalidPoint:function(){return this._invalidPoint},getBoundaryPoints:function(){for(var t=this.getBoundaryNodes(),e=(new Array(t.size())).fill(null),n=0,i=t.iterator();i.hasNext();){var r=i.next();e[n++]=r.getCoordinate().copy()}return e},getBoundaryNodes:function(){return null===this._boundaryNodes&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},addSelfIntersectionNode:function(t,
e,n){if(this.isBoundaryNode(t,e))return null;n===de.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(t,e):this.insertPoint(t,e,n)},addPolygonRing:function(t,e,n){if(t.isEmpty())return null;var i=nt.removeRepeatedPoints(t.getCoordinates());if(i.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=i[0],null;var r=e,s=n;z.isCCW(i)&&(r=n,s=e);var o=new jn(i,new zn(this._argIndex,de.BOUNDARY,r,s));this._lineEdgeMap.put(t,o),this.insertEdge(o),this.insertPoint(this._argIndex,
i[0],de.BOUNDARY)},insertPoint:function(t,e,n){var i=this._nodes.addNode(e),r=i.getLabel();null===r?i._label=new zn(t,n):r.setLocation(t,n)},createEdgeSetIntersector:function(){return new Bn},addSelfIntersectionNodes:function(t){for(var e=this._edges.iterator();e.hasNext();)for(var n=e.next(),i=n.getLabel().getLocation(t),r=n.eiList.iterator();r.hasNext();){var s=r.next();this.addSelfIntersectionNode(t,s.coord,i)}},add:function(){if(!(1===arguments.length&&arguments[0]instanceof K))return ei.prototype.add.apply(this,
arguments);var t=arguments[0];if(t.isEmpty())return null;if(t instanceof kt&&(this._useBoundaryDeterminationRule=!1),t instanceof Vt)this.addPolygon(t);else if(t instanceof At)this.addLineString(t);else if(t instanceof Gt)this.addPoint(t);else if(t instanceof zt)this.addCollection(t);else if(t instanceof wt)this.addCollection(t);else if(t instanceof kt)this.addCollection(t);else{if(!(t instanceof Lt))throw new UnsupportedOperationException(t.getClass().getName());this.addCollection(t)}},addCollection:function(t){for(var e=
0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);this.add(n)}},locate:function(t){return N(this._parentGeom,Bt)&&this._parentGeom.getNumGeometries()>50?(null===this._areaPtLocator&&(this._areaPtLocator=new Ae(this._parentGeom)),this._areaPtLocator.locate(t)):this._ptLocator.locate(t,this._parentGeom)},findEdge:function(){if(1===arguments.length&&arguments[0]instanceof At){var t=arguments[0];return this._lineEdgeMap.get(t)}return ei.prototype.findEdge.apply(this,arguments)},interfaces_:function(){return[]},
getClass:function(){return ni}}),ni.determineBoundary=function(t,e){return t.isInBoundary(e)?de.BOUNDARY:de.INTERIOR};var ii=Object.freeze({GeometryGraph:ni});function ri(){}function si(){if(this._p=null,this._data=null,this._left=null,this._right=null,this._count=null,2===arguments.length){var t=arguments[0],e=arguments[1];this._p=new E(t),this._left=null,this._right=null,this._count=1,this._data=e}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this._p=new E(n,i),
this._left=null,this._right=null,this._count=1,this._data=r}}function oi(){if(this._root=null,this._numberOfNodes=null,this._tolerance=null,0===arguments.length)oi.call(this,0);else if(1===arguments.length){var t=arguments[0];this._tolerance=t}}function ai(){this._tolerance=null,this._matchNode=null,this._matchDist=0,this._p=null;var t=arguments[0],e=arguments[1];this._p=t,this._tolerance=e}e(ri.prototype,{visit:function(t){},interfaces_:function(){return[]},getClass:function(){return ri}}),e(si.prototype,
{isRepeated:function(){return this._count>1},getRight:function(){return this._right},getCoordinate:function(){return this._p},setLeft:function(t){this._left=t},getX:function(){return this._p.x},getData:function(){return this._data},getCount:function(){return this._count},getLeft:function(){return this._left},getY:function(){return this._p.y},increment:function(){this._count=this._count+1},setRight:function(t){this._right=t},interfaces_:function(){return[]},getClass:function(){return si}}),e(oi.prototype,
{insert:function(){if(1===arguments.length){var t=arguments[0];return this.insert(t,null)}if(2===arguments.length){var e=arguments[0],n=arguments[1];if(null===this._root)return this._root=new si(e,n),this._root;if(this._tolerance>0){var i=this.findBestMatchNode(e);if(null!==i)return i.increment(),i}return this.insertExact(e,n)}},query:function(){if(1===arguments.length){var t=arguments[0],e=new P;return this.query(t,e),e}if(2===arguments.length)if(arguments[0]instanceof M&&N(arguments[1],w)){var n=
arguments[0],i=arguments[1];this.queryNode(this._root,n,!0,{interfaces_:function(){return[ri]},visit:function(t){i.add(t)}})}else if(arguments[0]instanceof M&&N(arguments[1],ri)){var r=arguments[0],s=arguments[1];this.queryNode(this._root,r,!0,s)}},queryNode:function(t,e,n,i){if(null===t)return null;var r=null,s=null,o=null;n?(r=e.getMinX(),s=e.getMaxX(),o=t.getX()):(r=e.getMinY(),s=e.getMaxY(),o=t.getY());var a=o<=s;r<o&&this.queryNode(t.getLeft(),e,!n,i),e.contains(t.getCoordinate())&&i.visit(t),
a&&this.queryNode(t.getRight(),e,!n,i)},findBestMatchNode:function(t){var e=new ai(t,this._tolerance);return this.query(e.queryEnvelope(),e),e.getNode()},isEmpty:function(){return null===this._root},insertExact:function(t,e){for(var n=this._root,i=this._root,r=!0,s=!0;null!==n;){if(null!==n)if(t.distance(n.getCoordinate())<=this._tolerance)return n.increment(),n;i=n,n=(s=r?t.x<n.getX():t.y<n.getY())?n.getLeft():n.getRight(),r=!r}this._numberOfNodes=this._numberOfNodes+1;var o=new si(t,e);return s?
i.setLeft(o):i.setRight(o),o},interfaces_:function(){return[]},getClass:function(){return oi}}),oi.toCoordinates=function(){if(1===arguments.length){var t=arguments[0];return oi.toCoordinates(t,!1)}if(2===arguments.length){for(var e=arguments[0],n=arguments[1],i=new b,r=e.iterator();r.hasNext();)for(var s=r.next(),o=n?s.getCount():1,a=0;a<o;a++)i.add(s.getCoordinate(),!0);return i.toCoordinateArray()}},e(ai.prototype,{visit:function(t){var e=this._p.distance(t.getCoordinate());if(!(e<=this._tolerance))return null;
var n=!1;(null===this._matchNode||e<this._matchDist||null!==this._matchNode&&e===this._matchDist&&t.getCoordinate().compareTo(this._matchNode.getCoordinate())<1)&&(n=!0),n&&(this._matchNode=t,this._matchDist=e)},queryEnvelope:function(){var t=new M(this._p);return t.expandBy(this._tolerance),t},getNode:function(){return this._matchNode},interfaces_:function(){return[ri]},getClass:function(){return ai}}),oi.BestMatchVisitor=ai;var ui=Object.freeze({KdTree:oi});function li(){this._items=new P,this._subnode=
(new Array(4)).fill(null)}function hi(){this._pt=new E,this._level=0,this._env=null;var t=arguments[0];this.computeKey(t)}function ci(){li.apply(this),this._env=null,this._centrex=null,this._centrey=null,this._level=null;var t=arguments[0],e=arguments[1];this._env=t,this._level=e,this._centrex=(t.getMinX()+t.getMaxX())/2,this._centrey=(t.getMinY()+t.getMaxY())/2}function fi(){li.apply(this)}function gi(){}function di(){this._root=null,this._minExtent=1,this._root=new fi}e(li.prototype,{hasChildren:function(){for(var t=
0;t<4;t++)if(null!==this._subnode[t])return!0;return!1},isPrunable:function(){return!(this.hasChildren()||this.hasItems())},addAllItems:function(t){t.addAll(this._items);for(var e=0;e<4;e++)null!==this._subnode[e]&&this._subnode[e].addAllItems(t);return t},getNodeCount:function(){for(var t=0,e=0;e<4;e++)null!==this._subnode[e]&&(t+=this._subnode[e].size());return t+1},size:function(){for(var t=0,e=0;e<4;e++)null!==this._subnode[e]&&(t+=this._subnode[e].size());return t+this._items.size()},addAllItemsFromOverlapping:function(t,
e){if(!this.isSearchMatch(t))return null;e.addAll(this._items);for(var n=0;n<4;n++)null!==this._subnode[n]&&this._subnode[n].addAllItemsFromOverlapping(t,e)},visitItems:function(t,e){for(var n=this._items.iterator();n.hasNext();)e.visitItem(n.next())},hasItems:function(){return!this._items.isEmpty()},remove:function(t,e){if(!this.isSearchMatch(t))return!1;for(var n=!1,i=0;i<4;i++)if(null!==this._subnode[i]&&(n=this._subnode[i].remove(t,e))){this._subnode[i].isPrunable()&&(this._subnode[i]=null);break}return n||
(n=this._items.remove(e))},visit:function(t,e){if(!this.isSearchMatch(t))return null;this.visitItems(t,e);for(var n=0;n<4;n++)null!==this._subnode[n]&&this._subnode[n].visit(t,e)},getItems:function(){return this._items},depth:function(){for(var t=0,e=0;e<4;e++)if(null!==this._subnode[e]){var n=this._subnode[e].depth();n>t&&(t=n)}return t+1},isEmpty:function(){var t=!0;if(this._items.isEmpty())for(var e=0;e<4;e++){if(null!==this._subnode[e]&&!this._subnode[e].isEmpty()){t=!1;break}}else t=!1;return t},
add:function(t){this._items.add(t)},interfaces_:function(){return[p]},getClass:function(){return li}}),li.getSubnodeIndex=function(t,e,n){var i=-1;return t.getMinX()>=e&&(t.getMinY()>=n&&(i=3),t.getMaxY()<=n&&(i=1)),t.getMaxX()<=e&&(t.getMinY()>=n&&(i=2),t.getMaxY()<=n&&(i=0)),i},e(hi.prototype,{getLevel:function(){return this._level},computeKey:function(){if(1===arguments.length){var t=arguments[0];for(this._level=hi.computeQuadLevel(t),this._env=new M,this.computeKey(this._level,t);!this._env.contains(t);)this._level+=
1,this.computeKey(this._level,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],i=on.powerOf2(e);this._pt.x=Math.floor(n.getMinX()/i)*i,this._pt.y=Math.floor(n.getMinY()/i)*i,this._env.init(this._pt.x,this._pt.x+i,this._pt.y,this._pt.y+i)}},getEnvelope:function(){return this._env},getCentre:function(){return new E((this._env.getMinX()+this._env.getMaxX())/2,(this._env.getMinY()+this._env.getMaxY())/2)},getPoint:function(){return this._pt},interfaces_:function(){return[]},getClass:function(){return hi}}),
hi.computeQuadLevel=function(t){var e=t.getWidth(),n=t.getHeight(),i=e>n?e:n;return on.exponent(i)+1},v(ci,li),e(ci.prototype,{find:function(t){var e=li.getSubnodeIndex(t,this._centrex,this._centrey);return-1===e?this:null!==this._subnode[e]?this._subnode[e].find(t):this},isSearchMatch:function(t){return null!==t&&this._env.intersects(t)},getSubnode:function(t){return null===this._subnode[t]&&(this._subnode[t]=this.createSubnode(t)),this._subnode[t]},getEnvelope:function(){return this._env},getNode:function(t){var e=
li.getSubnodeIndex(t,this._centrex,this._centrey);return-1!==e?this.getSubnode(e).getNode(t):this},createSubnode:function(t){var e=0,n=0,i=0,r=0;switch(t){case 0:e=this._env.getMinX(),n=this._centrex,i=this._env.getMinY(),r=this._centrey;break;case 1:e=this._centrex,n=this._env.getMaxX(),i=this._env.getMinY(),r=this._centrey;break;case 2:e=this._env.getMinX(),n=this._centrex,i=this._centrey,r=this._env.getMaxY();break;case 3:e=this._centrex,n=this._env.getMaxX(),i=this._centrey,r=this._env.getMaxY()}return new ci(new M(e,
n,i,r),this._level-1)},insertNode:function(t){x.isTrue(null===this._env||this._env.contains(t._env));var e=li.getSubnodeIndex(t._env,this._centrex,this._centrey);if(t._level===this._level-1)this._subnode[e]=t;else{var n=this.createSubnode(e);n.insertNode(t),this._subnode[e]=n}},interfaces_:function(){return[]},getClass:function(){return ci}}),ci.createNode=function(t){var e=new hi(t);return new ci(e.getEnvelope(),e.getLevel())},ci.createExpanded=function(t,e){var n=new M(e);null!==t&&n.expandToInclude(t._env);
var i=ci.createNode(n);return null!==t&&i.insertNode(t),i},v(fi,li),e(fi.prototype,{insert:function(t,e){var n=li.getSubnodeIndex(t,fi.origin.x,fi.origin.y);if(-1===n)return this.add(e),null;var i=this._subnode[n];if(null===i||!i.getEnvelope().contains(t)){var r=ci.createExpanded(i,t);this._subnode[n]=r}this.insertContained(this._subnode[n],t,e)},isSearchMatch:function(t){return!0},insertContained:function(t,e,n){x.isTrue(t.getEnvelope().contains(e));var i=ln.isZeroWidth(e.getMinX(),e.getMaxX()),
r=ln.isZeroWidth(e.getMinY(),e.getMaxY());(i||r?t.find(e):t.getNode(e)).add(n)},interfaces_:function(){return[]},getClass:function(){return fi}}),fi.origin=new E(0,0),e(gi.prototype,{insert:function(t,e){},remove:function(t,e){},query:function(){},interfaces_:function(){return[]},getClass:function(){return gi}}),e(di.prototype,{size:function(){return null!==this._root?this._root.size():0},insert:function(t,e){this.collectStats(t);var n=di.ensureExtent(t,this._minExtent);this._root.insert(n,e)},query:function(){if(1===
arguments.length){var t=arguments[0],e=new Me;return this.query(t,e),e.getItems()}if(2===arguments.length){var n=arguments[0],i=arguments[1];this._root.visit(n,i)}},queryAll:function(){var t=new P;return this._root.addAllItems(t),t},remove:function(t,e){var n=di.ensureExtent(t,this._minExtent);return this._root.remove(n,e)},collectStats:function(t){var e=t.getWidth();e<this._minExtent&&e>0&&(this._minExtent=e);var n=t.getHeight();n<this._minExtent&&n>0&&(this._minExtent=n)},depth:function(){return null!==
this._root?this._root.depth():0},isEmpty:function(){return null===this._root||this._root.isEmpty()},interfaces_:function(){return[gi,p]},getClass:function(){return di}}),di.ensureExtent=function(t,e){var n=t.getMinX(),i=t.getMaxX(),r=t.getMinY(),s=t.getMaxY();return n!==i&&r!==s?t:(n===i&&(i=(n-=e/2)+e/2),r===s&&(s=(r-=e/2)+e/2),new M(n,i,r,s))},di.serialVersionUID=-0x678b60c967a25400;var _i=Object.freeze({Quadtree:di});function pi(){}function mi(){this._bounds=null,this._item=null;var t=arguments[0],
e=arguments[1];this._bounds=t,this._item=e}function vi(){this._size=null,this._items=null,this._size=0,this._items=new P,this._items.add(null)}function yi(){this.normalOrder=null;var t=arguments[0];this.normalOrder=t}function xi(){if(this._childBoundables=new P,this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._level=t}}function Ei(){this._boundable1=null,this._boundable2=null,this._distance=null,this._itemDistance=null;var t=arguments[0],
e=arguments[1],n=arguments[2];this._boundable1=t,this._boundable2=e,this._itemDistance=n,this._distance=this.distance()}function Ii(){if(this._root=null,this._built=!1,this._itemBoundables=new P,this._nodeCapacity=null,0===arguments.length)Ii.call(this,Ii.DEFAULT_NODE_CAPACITY);else if(1===arguments.length){var t=arguments[0];x.isTrue(t>1,"Node capacity must be greater than 1"),this._nodeCapacity=t}}function Ni(){}function Ci(){if(0===arguments.length)Ci.call(this,Ci.DEFAULT_NODE_CAPACITY);else if(1===
arguments.length){var t=arguments[0];Ii.call(this,t)}}function Si(){var t=arguments[0];xi.call(this,t)}e(pi.prototype,{getBounds:function(){},interfaces_:function(){return[]},getClass:function(){return pi}}),e(mi.prototype,{getItem:function(){return this._item},getBounds:function(){return this._bounds},interfaces_:function(){return[pi,p]},getClass:function(){return mi}}),e(vi.prototype,{poll:function(){if(this.isEmpty())return null;var t=this._items.get(1);return this._items.set(1,this._items.get(this._size)),
this._size-=1,this.reorder(1),t},size:function(){return this._size},reorder:function(t){for(var e=null,n=this._items.get(t);2*t<=this._size&&((e=2*t)!==this._size&&this._items.get(e+1).compareTo(this._items.get(e))<0&&e++,this._items.get(e).compareTo(n)<0);t=e)this._items.set(t,this._items.get(e));this._items.set(t,n)},clear:function(){this._size=0,this._items.clear()},isEmpty:function(){return 0===this._size},add:function(t){this._items.add(null),this._size+=1;var e=this._size;for(this._items.set(0,
t);t.compareTo(this._items.get(Math.trunc(e/2)))<0;e/=2)this._items.set(e,this._items.get(Math.trunc(e/2)));this._items.set(e,t)},interfaces_:function(){return[]},getClass:function(){return vi}}),e(yi.prototype,{compare:function(t,e){var n=t.getDistance(),i=e.getDistance();return this.normalOrder?n>i?1:n===i?0:-1:n>i?-1:n===i?0:1},interfaces_:function(){return[_,p]},getClass:function(){return yi}}),e(xi.prototype,{getLevel:function(){return this._level},size:function(){return this._childBoundables.size()},
getChildBoundables:function(){return this._childBoundables},addChildBoundable:function(t){x.isTrue(null===this._bounds),this._childBoundables.add(t)},isEmpty:function(){return this._childBoundables.isEmpty()},getBounds:function(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds},interfaces_:function(){return[pi,p]},getClass:function(){return xi}}),xi.serialVersionUID=0x5a1e55ec41369800,e(Ei.prototype,{expandToQueue:function(t,e){var n=Ei.isComposite(this._boundable1),r=
Ei.isComposite(this._boundable2);if(n&&r)return Ei.area(this._boundable1)>Ei.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,t,e),null):(this.expand(this._boundable2,this._boundable1,t,e),null);if(n)return this.expand(this._boundable1,this._boundable2,t,e),null;if(r)return this.expand(this._boundable2,this._boundable1,t,e),null;throw new i("neither boundable is composite");},isLeaves:function(){return!(Ei.isComposite(this._boundable1)||Ei.isComposite(this._boundable2))},compareTo:function(t){var e=
t;return this._distance<e._distance?-1:this._distance>e._distance?1:0},expand:function(t,e,n,i){for(var r=t.getChildBoundables().iterator();r.hasNext();){var s=new Ei(r.next(),e,this._itemDistance);s.getDistance()<i&&n.add(s)}},getBoundable:function(t){return 0===t?this._boundable1:this._boundable2},getDistance:function(){return this._distance},distance:function(){return this.isLeaves()?this._itemDistance.distance(this._boundable1,this._boundable2):this._boundable1.getBounds().distance(this._boundable2.getBounds())},
interfaces_:function(){return[g]},getClass:function(){return Ei}}),Ei.area=function(t){return t.getBounds().getArea()},Ei.isComposite=function(t){return t instanceof xi},e(Ii.prototype,{queryInternal:function(){if(N(arguments[2],Ce)&&arguments[0]instanceof Object&&arguments[1]instanceof xi)for(var t=arguments[0],e=arguments[1],n=arguments[2],i=e.getChildBoundables(),r=0;r<i.size();r++){var s=i.get(r);this.getIntersectsOp().intersects(s.getBounds(),t)&&(s instanceof xi?this.queryInternal(t,s,n):s instanceof
mi?n.visitItem(s.getItem()):x.shouldNeverReachHere())}else if(N(arguments[2],w)&&arguments[0]instanceof Object&&arguments[1]instanceof xi){var o=arguments[0],a=arguments[1],u=arguments[2];for(i=a.getChildBoundables(),r=0;r<i.size();r++){s=i.get(r);this.getIntersectsOp().intersects(s.getBounds(),o)&&(s instanceof xi?this.queryInternal(o,s,u):s instanceof mi?u.add(s.getItem()):x.shouldNeverReachHere())}}},getNodeCapacity:function(){return this._nodeCapacity},lastNode:function(t){return t.get(t.size()-
1)},size:function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.size(this._root));if(1===arguments.length){for(var t=0,e=arguments[0].getChildBoundables().iterator();e.hasNext();){var n=e.next();n instanceof xi?t+=this.size(n):n instanceof mi&&(t+=1)}return t}},removeItem:function(t,e){for(var n=null,i=t.getChildBoundables().iterator();i.hasNext();){var r=i.next();r instanceof mi&&r.getItem()===e&&(n=r)}return null!==n&&(t.getChildBoundables().remove(n),!0)},itemsTree:function(){if(0===
arguments.length){this.build();var t=this.itemsTree(this._root);return null===t?new P:t}if(1===arguments.length){for(var e=arguments[0],n=new P,i=e.getChildBoundables().iterator();i.hasNext();){var r=i.next();if(r instanceof xi){var s=this.itemsTree(r);null!==s&&n.add(s)}else r instanceof mi?n.add(r.getItem()):x.shouldNeverReachHere()}return n.size()<=0?null:n}},insert:function(t,e){x.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new mi(t,
e))},boundablesAtLevel:function(){if(1===arguments.length){var t=arguments[0],e=new P;return this.boundablesAtLevel(t,this._root,e),e}if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];if(x.isTrue(n>-2),i.getLevel()===n)return r.add(i),null;for(var s=i.getChildBoundables().iterator();s.hasNext();){var o=s.next();o instanceof xi?this.boundablesAtLevel(n,o,r):(x.isTrue(o instanceof mi),-1===n&&r.add(o))}return null}},query:function(){if(1===arguments.length){var t=arguments[0];
this.build();var e=new P;return this.isEmpty()?e:(this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.queryInternal(t,this._root,e),e)}if(2===arguments.length){var n=arguments[0],i=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),n)&&this.queryInternal(n,this._root,i)}},build:function(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),
this._itemBoundables=null,this._built=!0},getRoot:function(){return this.build(),this._root},remove:function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return this.build(),!!this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.remove(t,this._root,e)}if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2],s=this.removeItem(i,r);if(s)return!0;for(var o=null,a=i.getChildBoundables().iterator();a.hasNext();){var u=a.next();if(this.getIntersectsOp().intersects(u.getBounds(),
n)&&(u instanceof xi&&(s=this.remove(n,u,r)))){o=u;break}}return null!==o&&o.getChildBoundables().isEmpty()&&i.getChildBoundables().remove(o),s}},createHigherLevels:function(t,e){x.isTrue(!t.isEmpty());var n=this.createParentBoundables(t,e+1);return 1===n.size()?n.get(0):this.createHigherLevels(n,e+1)},depth:function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(1===arguments.length){for(var t=0,e=arguments[0].getChildBoundables().iterator();e.hasNext();){var n=
e.next();if(n instanceof xi){var i=this.depth(n);i>t&&(t=i)}}return t+1}},createParentBoundables:function(t,e){x.isTrue(!t.isEmpty());var n=new P;n.add(this.createNode(e));var i=new P(t);Te.sort(i,this.getComparator());for(var r=i.iterator();r.hasNext();){var s=r.next();this.lastNode(n).getChildBoundables().size()===this.getNodeCapacity()&&n.add(this.createNode(e)),this.lastNode(n).addChildBoundable(s)}return n},isEmpty:function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()},
interfaces_:function(){return[p]},getClass:function(){return Ii}}),Ii.compareDoubles=function(t,e){return t>e?1:t<e?-1:0},Ii.IntersectsOp=function(){},Ii.serialVersionUID=-0x35ef64c82d4c5400,Ii.DEFAULT_NODE_CAPACITY=10,e(Ni.prototype,{distance:function(t,e){},interfaces_:function(){return[]},getClass:function(){return Ni}}),v(Ci,Ii),e(Ci.prototype,{createParentBoundablesFromVerticalSlices:function(t,e){x.isTrue(t.length>0);for(var n=new P,i=0;i<t.length;i++)n.addAll(this.createParentBoundablesFromVerticalSlice(t[i],
e));return n},createNode:function(t){return new Si(t)},size:function(){return 0===arguments.length?Ii.prototype.size.call(this):Ii.prototype.size.apply(this,arguments)},insert:function(){if(!(2===arguments.length&&arguments[1]instanceof Object&&arguments[0]instanceof M))return Ii.prototype.insert.apply(this,arguments);var t=arguments[0],e=arguments[1];if(t.isNull())return null;Ii.prototype.insert.call(this,t,e)},getIntersectsOp:function(){return Ci.intersectsOp},verticalSlices:function(t,e){for(var n=
Math.trunc(Math.ceil(t.size()/e)),i=(new Array(e)).fill(null),r=t.iterator(),s=0;s<e;s++){i[s]=new P;for(var o=0;r.hasNext()&&o<n;){var a=r.next();i[s].add(a),o++}}return i},query:function(){if(1===arguments.length){var t=arguments[0];return Ii.prototype.query.call(this,t)}if(2===arguments.length){var e=arguments[0],n=arguments[1];Ii.prototype.query.call(this,e,n)}},getComparator:function(){return Ci.yComparator},createParentBoundablesFromVerticalSlice:function(t,e){return Ii.prototype.createParentBoundables.call(this,
t,e)},remove:function(){if(2===arguments.length&&arguments[1]instanceof Object&&arguments[0]instanceof M){var t=arguments[0],e=arguments[1];return Ii.prototype.remove.call(this,t,e)}return Ii.prototype.remove.apply(this,arguments)},depth:function(){return 0===arguments.length?Ii.prototype.depth.call(this):Ii.prototype.depth.apply(this,arguments)},createParentBoundables:function(t,e){x.isTrue(!t.isEmpty());var n=Math.trunc(Math.ceil(t.size()/this.getNodeCapacity())),i=new P(t);Te.sort(i,Ci.xComparator);
var r=this.verticalSlices(i,Math.trunc(Math.ceil(Math.sqrt(n))));return this.createParentBoundablesFromVerticalSlices(r,e)},nearestNeighbour:function(){if(1===arguments.length){if(N(arguments[0],Ni)){var t=arguments[0],e=new Ei(this.getRoot(),this.getRoot(),t);return this.nearestNeighbour(e)}if(arguments[0]instanceof Ei){var n=arguments[0];return this.nearestNeighbour(n,s.POSITIVE_INFINITY)}}else if(2===arguments.length){if(arguments[0]instanceof Ci&&N(arguments[1],Ni)){var i=arguments[0],r=arguments[1];
e=new Ei(this.getRoot(),i.getRoot(),r);return this.nearestNeighbour(e)}if(arguments[0]instanceof Ei&&"number"==typeof arguments[1]){var o=arguments[0],a=arguments[1],u=null;for((_=new vi).add(o);!_.isEmpty()&&a>0;){if((E=(x=_.poll()).getDistance())>=a)break;x.isLeaves()?(a=E,u=x):x.expandToQueue(_,a)}return[u.getBoundable(0).getItem(),u.getBoundable(1).getItem()]}if(arguments[0]instanceof Ei&&Number.isInteger(arguments[1])){var l=arguments[0],h=arguments[1];return this.nearestNeighbour(l,s.POSITIVE_INFINITY,
h)}}else if(3===arguments.length){if(N(arguments[2],Ni)&&arguments[0]instanceof M&&arguments[1]instanceof Object){var c=arguments[0],f=arguments[1],g=arguments[2],d=new mi(c,f);e=new Ei(this.getRoot(),d,g);return this.nearestNeighbour(e)[0]}if(Number.isInteger(arguments[2])&&arguments[0]instanceof Ei&&"number"==typeof arguments[1]){var _,p=arguments[0],m=arguments[1],v=arguments[2];a=m;(_=new vi).add(p);for(var y=new java.util.PriorityQueue<Ei>new yi(!1);!_.isEmpty()&&a>=0;){var x,E;if((E=(x=_.poll()).getDistance())>=
a)break;x.isLeaves()?y.size()<v?y.add(x):(y.peek().getDistance()>E&&(y.poll(),y.add(x)),a=y.peek().getDistance()):x.expandToQueue(_,a)}return Ci.getItems(y)}}else if(4===arguments.length){var I=arguments[0],C=arguments[1],S=arguments[2],L=arguments[3];d=new mi(I,C),e=new Ei(this.getRoot(),d,S);return this.nearestNeighbour(e,L)}},interfaces_:function(){return[gi,p]},getClass:function(){return Ci}}),Ci.centreX=function(t){return Ci.avg(t.getMinX(),t.getMaxX())},Ci.avg=function(t,e){return(t+e)/2},Ci.getItems=
function(t){for(var e=(new Array(t.size())).fill(null),n=t.iterator(),i=0;n.hasNext();)e[i]=n.next().getBoundable(0).getItem(),i++;return e},Ci.centreY=function(t){return Ci.avg(t.getMinY(),t.getMaxY())},v(Si,xi),e(Si.prototype,{computeBounds:function(){for(var t=null,e=this.getChildBoundables().iterator();e.hasNext();){var n=e.next();null===t?t=new M(n.getBounds()):t.expandToInclude(n.getBounds())}return t},interfaces_:function(){return[]},getClass:function(){return Si}}),Ci.STRtreeNode=Si,Ci.serialVersionUID=
0x39920f7d5f261e0,Ci.xComparator={interfaces_:function(){return[_]},compare:function(t,e){return Ii.compareDoubles(Ci.centreX(t.getBounds()),Ci.centreX(e.getBounds()))}},Ci.yComparator={interfaces_:function(){return[_]},compare:function(t,e){return Ii.compareDoubles(Ci.centreY(t.getBounds()),Ci.centreY(e.getBounds()))}},Ci.intersectsOp={interfaces_:function(){return[IntersectsOp]},intersects:function(t,e){return t.intersects(e)}},Ci.DEFAULT_NODE_CAPACITY=10;var Li=Object.freeze({STRtree:Ci}),wi=Object.freeze({kdtree:ui,
quadtree:_i,strtree:Li}),Ri=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"];function Ti(t){this.geometryFactory=t||new se}e(Ti.prototype,{read:function(t){var e=void 0,n=(e="string"==typeof t?JSON.parse(t):t).type;if(!Pi[n])throw new Error("Unknown GeoJSON type: "+e.type);return-1!==Ri.indexOf(n)?Pi[n].call(this,e.coordinates):"GeometryCollection"===n?Pi[n].call(this,e.geometries):Pi[n].call(this,e)},write:function(t){var e=t.getGeometryType();if(!Oi[e])throw new Error("Geometry is not supported");
return Oi[e].call(this,t)}});var Pi={Feature:function(t){var e={};for(var n in t)e[n]=t[n];if(t.geometry){var i=t.geometry.type;if(!Pi[i])throw new Error("Unknown GeoJSON type: "+t.type);e.geometry=this.read(t.geometry)}return t.bbox&&(e.bbox=Pi.bbox.call(this,t.bbox)),e},FeatureCollection:function(t){var e={};if(t.features){e.features=[];for(var n=0;n<t.features.length;++n)e.features.push(this.read(t.features[n]))}return t.bbox&&(e.bbox=this.parse.bbox.call(this,t.bbox)),e},coordinates:function(t){for(var e=
[],n=0;n<t.length;++n){var i=t[n];e.push(new E(i[0],i[1]))}return e},bbox:function(t){return this.geometryFactory.createLinearRing([new E(t[0],t[1]),new E(t[2],t[1]),new E(t[2],t[3]),new E(t[0],t[3]),new E(t[0],t[1])])},Point:function(t){var e=new E(t[0],t[1]);return this.geometryFactory.createPoint(e)},MultiPoint:function(t){for(var e=[],n=0;n<t.length;++n)e.push(Pi.Point.call(this,t[n]));return this.geometryFactory.createMultiPoint(e)},LineString:function(t){var e=Pi.coordinates.call(this,t);return this.geometryFactory.createLineString(e)},
MultiLineString:function(t){for(var e=[],n=0;n<t.length;++n)e.push(Pi.LineString.call(this,t[n]));return this.geometryFactory.createMultiLineString(e)},Polygon:function(t){for(var e=Pi.coordinates.call(this,t[0]),n=this.geometryFactory.createLinearRing(e),i=[],r=1;r<t.length;++r){var s=t[r],o=Pi.coordinates.call(this,s),a=this.geometryFactory.createLinearRing(o);i.push(a)}return this.geometryFactory.createPolygon(n,i)},MultiPolygon:function(t){for(var e=[],n=0;n<t.length;++n){var i=t[n];e.push(Pi.Polygon.call(this,
i))}return this.geometryFactory.createMultiPolygon(e)},GeometryCollection:function(t){for(var e=[],n=0;n<t.length;++n){var i=t[n];e.push(this.read(i))}return this.geometryFactory.createGeometryCollection(e)}},Oi={coordinate:function(t){return[t.x,t.y]},Point:function(t){return{type:"Point",coordinates:Oi.coordinate.call(this,t.getCoordinate())}},MultiPoint:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var i=t._geometries[n],r=Oi.Point.call(this,i);e.push(r.coordinates)}return{type:"MultiPoint",
coordinates:e}},LineString:function(t){for(var e=[],n=t.getCoordinates(),i=0;i<n.length;++i){var r=n[i];e.push(Oi.coordinate.call(this,r))}return{type:"LineString",coordinates:e}},MultiLineString:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var i=t._geometries[n],r=Oi.LineString.call(this,i);e.push(r.coordinates)}return{type:"MultiLineString",coordinates:e}},Polygon:function(t){var e=[],n=Oi.LineString.call(this,t._shell);e.push(n.coordinates);for(var i=0;i<t._holes.length;++i){var r=
t._holes[i],s=Oi.LineString.call(this,r);e.push(s.coordinates)}return{type:"Polygon",coordinates:e}},MultiPolygon:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var i=t._geometries[n],r=Oi.Polygon.call(this,i);e.push(r.coordinates)}return{type:"MultiPolygon",coordinates:e}},GeometryCollection:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var i=t._geometries[n],r=i.getGeometryType();e.push(Oi[r].call(this,i))}return{type:"GeometryCollection",geometries:e}}};function bi(t){this.parser=
new Ti(t||new se)}function Mi(){this.parser=new Ti(this.geometryFactory)}function Di(t){this.parser=new ae(t||new se)}function Ai(t){return[t.x,t.y]}function Fi(t,e){this.geometryFactory=t||new se,this.ol=e||"undefined"!=typeof ol&&ol}e(bi.prototype,{read:function(t){return this.parser.read(t)}}),e(Mi.prototype,{write:function(t){return this.parser.write(t)}}),e(Di.prototype,{read:function(t){return this.parser.read(t)}}),e(Fi.prototype,{inject:function(t,e,n,i,r,s,o,a){this.ol={geom:{Point:t,LineString:e,
LinearRing:n,Polygon:i,MultiPoint:r,MultiLineString:s,MultiPolygon:o,GeometryCollection:a}}},read:function(t){var e=this.ol;return t instanceof e.geom.Point?this.convertFromPoint(t):t instanceof e.geom.LineString?this.convertFromLineString(t):t instanceof e.geom.LinearRing?this.convertFromLinearRing(t):t instanceof e.geom.Polygon?this.convertFromPolygon(t):t instanceof e.geom.MultiPoint?this.convertFromMultiPoint(t):t instanceof e.geom.MultiLineString?this.convertFromMultiLineString(t):t instanceof
e.geom.MultiPolygon?this.convertFromMultiPolygon(t):t instanceof e.geom.GeometryCollection?this.convertFromCollection(t):void 0},convertFromPoint:function(t){var e=t.getCoordinates();return this.geometryFactory.createPoint(new E(e[0],e[1]))},convertFromLineString:function(t){return this.geometryFactory.createLineString(t.getCoordinates().map(function(t){return new E(t[0],t[1])}))},convertFromLinearRing:function(t){return this.geometryFactory.createLinearRing(t.getCoordinates().map(function(t){return new E(t[0],
t[1])}))},convertFromPolygon:function(t){for(var e=t.getLinearRings(),n=null,i=[],r=0;r<e.length;r++){var s=this.convertFromLinearRing(e[r]);0===r?n=s:i.push(s)}return this.geometryFactory.createPolygon(n,i)},convertFromMultiPoint:function(t){var e=t.getPoints().map(function(t){return this.convertFromPoint(t)},this);return this.geometryFactory.createMultiPoint(e)},convertFromMultiLineString:function(t){var e=t.getLineStrings().map(function(t){return this.convertFromLineString(t)},this);return this.geometryFactory.createMultiLineString(e)},
convertFromMultiPolygon:function(t){var e=t.getPolygons().map(function(t){return this.convertFromPolygon(t)},this);return this.geometryFactory.createMultiPolygon(e)},convertFromCollection:function(t){var e=t.getGeometries().map(function(t){return this.read(t)},this);return this.geometryFactory.createGeometryCollection(e)},write:function(t){return"Point"===t.getGeometryType()?this.convertToPoint(t.getCoordinate()):"LineString"===t.getGeometryType()?this.convertToLineString(t):"LinearRing"===t.getGeometryType()?
this.convertToLinearRing(t):"Polygon"===t.getGeometryType()?this.convertToPolygon(t):"MultiPoint"===t.getGeometryType()?this.convertToMultiPoint(t):"MultiLineString"===t.getGeometryType()?this.convertToMultiLineString(t):"MultiPolygon"===t.getGeometryType()?this.convertToMultiPolygon(t):"GeometryCollection"===t.getGeometryType()?this.convertToCollection(t):void 0},convertToPoint:function(t){return new this.ol.geom.Point([t.x,t.y])},convertToLineString:function(t){var e=t._points._coordinates.map(Ai);
return new this.ol.geom.LineString(e)},convertToLinearRing:function(t){var e=t._points._coordinates.map(Ai);return new this.ol.geom.LinearRing(e)},convertToPolygon:function(t){for(var e=[t._shell._points._coordinates.map(Ai)],n=0;n<t._holes.length;n++)e.push(t._holes[n]._points._coordinates.map(Ai));return new this.ol.geom.Polygon(e)},convertToMultiPoint:function(t){return new this.ol.geom.MultiPoint(t.getCoordinates().map(Ai))},convertToMultiLineString:function(t){for(var e=[],n=0;n<t._geometries.length;n++)e.push(this.convertToLineString(t._geometries[n]).getCoordinates());
return new this.ol.geom.MultiLineString(e)},convertToMultiPolygon:function(t){for(var e=[],n=0;n<t._geometries.length;n++)e.push(this.convertToPolygon(t._geometries[n]).getCoordinates());return new this.ol.geom.MultiPolygon(e)},convertToCollection:function(t){for(var e=[],n=0;n<t._geometries.length;n++){var i=t._geometries[n];e.push(this.write(i))}return new this.ol.geom.GeometryCollection(e)}});var Gi=Object.freeze({GeoJSONReader:bi,GeoJSONWriter:Mi,OL3Parser:Fi,WKTReader:Di,WKTWriter:he});function qi(){}
function Bi(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this._segString=t,this.coord=new E(e),this.segmentIndex=n,this._segmentOctant=i,this._isInterior=!e.equals2D(t.getCoordinate(n))}function Vi(){this._nodeMap=new pt,this._edge=null;var t=arguments[0];this._edge=t}function zi(){this._nodeList=null,this._edge=null,this._nodeIt=null,this._currNode=null,this._nextNode=null,
this._currSegIndex=0;var t=arguments[0];this._nodeList=t,this._edge=t.getEdge(),this._nodeIt=t.iterator(),this.readNextNode()}function Yi(){}function ki(){}function Ui(){}function Xi(){this._nodeList=new Vi(this),this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e}function Hi(){this._overlapSeg1=new ge,this._overlapSeg2=new ge}function Wi(){}function ji(){if(this._segInt=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.setSegmentIntersector(t)}}
function Ki(){if(this._monoChains=new P,this._index=new Ci,this._idCounter=0,this._nodedSegStrings=null,this._nOverlaps=0,0===arguments.length);else if(1===arguments.length){var t=arguments[0];ji.call(this,t)}}function Zi(){Hi.apply(this),this._si=null;var t=arguments[0];this._si=t}function Qi(){if(this._noder=null,this._scaleFactor=null,this._offsetX=null,this._offsetY=null,this._isScaled=!1,2===arguments.length){var t=arguments[0],e=arguments[1];Qi.call(this,t,e,0,0)}else if(4===arguments.length){var n=
arguments[0],i=arguments[1];this._noder=n,this._scaleFactor=i,this._isScaled=!this.isIntegerPrecision()}}e(qi.prototype,{interfaces_:function(){return[]},getClass:function(){return qi}}),qi.relativeSign=function(t,e){return t<e?-1:t>e?1:0},qi.compare=function(t,e,n){if(e.equals2D(n))return 0;var i=qi.relativeSign(e.x,n.x),r=qi.relativeSign(e.y,n.y);switch(t){case 0:return qi.compareValue(i,r);case 1:return qi.compareValue(r,i);case 2:return qi.compareValue(r,-i);case 3:return qi.compareValue(-i,r);
case 4:return qi.compareValue(-i,-r);case 5:return qi.compareValue(-r,-i);case 6:return qi.compareValue(-r,i);case 7:return qi.compareValue(i,-r)}return x.shouldNeverReachHere("invalid octant value"),0},qi.compareValue=function(t,e){return t<0?-1:t>0?1:e<0?-1:e>0?1:0},e(Bi.prototype,{getCoordinate:function(){return this.coord},print:function(t){t.print(this.coord),t.print(" seg # \x3d "+this.segmentIndex)},compareTo:function(t){var e=t;return this.segmentIndex<e.segmentIndex?-1:this.segmentIndex>
e.segmentIndex?1:this.coord.equals2D(e.coord)?0:qi.compare(this._segmentOctant,this.coord,e.coord)},isEndPoint:function(t){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===t},isInterior:function(){return this._isInterior},interfaces_:function(){return[g]},getClass:function(){return Bi}}),e(Vi.prototype,{getSplitCoordinates:function(){var t=new b;this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var i=e.next();this.addEdgeCoordinates(n,i,t),n=i}return t.toCoordinateArray()},
addCollapsedNodes:function(){var t=new P;this.findCollapsesFromInsertedNodes(t),this.findCollapsesFromExistingVertices(t);for(var e=t.iterator();e.hasNext();){var n=e.next().intValue();this.add(this._edge.getCoordinate(n),n)}},print:function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();)e.next().print(t)},findCollapsesFromExistingVertices:function(t){for(var e=0;e<this._edge.size()-2;e++){var n=this._edge.getCoordinate(e),i=(this._edge.getCoordinate(e+1),this._edge.getCoordinate(e+
2));n.equals2D(i)&&t.add(new G(e+1))}},addEdgeCoordinates:function(t,e,n){e.segmentIndex,t.segmentIndex;var i=this._edge.getCoordinate(e.segmentIndex),r=e.isInterior()||!e.coord.equals2D(i);n.add(new E(t.coord),!1);for(var s=t.segmentIndex+1;s<=e.segmentIndex;s++)n.add(this._edge.getCoordinate(s));r&&n.add(new E(e.coord))},iterator:function(){return this._nodeMap.values().iterator()},addSplitEdges:function(t){this.addEndpoints(),this.addCollapsedNodes();for(var e=this.iterator(),n=e.next();e.hasNext();){var i=
e.next(),r=this.createSplitEdge(n,i);t.add(r),n=i}},findCollapseIndex:function(t,e,n){if(!t.coord.equals2D(e.coord))return!1;var i=e.segmentIndex-t.segmentIndex;return e.isInterior()||i--,1===i&&(n[0]=t.segmentIndex+1,!0)},findCollapsesFromInsertedNodes:function(t){for(var e=(new Array(1)).fill(null),n=this.iterator(),i=n.next();n.hasNext();){var r=n.next();this.findCollapseIndex(i,r,e)&&t.add(new G(e[0])),i=r}},getEdge:function(){return this._edge},addEndpoints:function(){var t=this._edge.size()-
1;this.add(this._edge.getCoordinate(0),0),this.add(this._edge.getCoordinate(t),t)},createSplitEdge:function(t,e){var n=e.segmentIndex-t.segmentIndex+2,i=this._edge.getCoordinate(e.segmentIndex),r=e.isInterior()||!e.coord.equals2D(i);r||n--;var s=(new Array(n)).fill(null),o=0;s[o++]=new E(t.coord);for(var a=t.segmentIndex+1;a<=e.segmentIndex;a++)s[o++]=this._edge.getCoordinate(a);return r&&(s[o]=new E(e.coord)),new Xi(s,this._edge.getData())},add:function(t,e){var n=new Bi(this._edge,t,e,this._edge.getSegmentOctant(e)),
i=this._nodeMap.get(n);return null!==i?(x.isTrue(i.coord.equals2D(t),"Found equal nodes with different coordinates"),i):(this._nodeMap.put(n,n),n)},checkSplitEdgesCorrectness:function(t){var e=this._edge.getCoordinates(),n=t.get(0).getCoordinate(0);if(!n.equals2D(e[0]))throw new m("bad split edge start point at "+n);var i=t.get(t.size()-1).getCoordinates(),r=i[i.length-1];if(!r.equals2D(e[e.length-1]))throw new m("bad split edge end point at "+r);},interfaces_:function(){return[]},getClass:function(){return Vi}}),
e(zi.prototype,{next:function(){return null===this._currNode?(this._currNode=this._nextNode,this._currSegIndex=this._currNode.segmentIndex,this.readNextNode(),this._currNode):null===this._nextNode?null:this._nextNode.segmentIndex===this._currNode.segmentIndex?(this._currNode=this._nextNode,this._currSegIndex=this._currNode.segmentIndex,this.readNextNode(),this._currNode):(this._nextNode.segmentIndex,this._currNode.segmentIndex,null)},remove:function(){throw new UnsupportedOperationException(this.getClass().getName());
},hasNext:function(){return null!==this._nextNode},readNextNode:function(){this._nodeIt.hasNext()?this._nextNode=this._nodeIt.next():this._nextNode=null},interfaces_:function(){return[C]},getClass:function(){return zi}}),e(Yi.prototype,{interfaces_:function(){return[]},getClass:function(){return Yi}}),Yi.octant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new i("Cannot compute the octant for point ( "+t+", "+e+
" )");var n=Math.abs(t),r=Math.abs(e);return t>=0?e>=0?n>=r?0:1:n>=r?7:6:e>=0?n>=r?3:2:n>=r?4:5}if(arguments[0]instanceof E&&arguments[1]instanceof E){var s=arguments[0],o=arguments[1],a=o.x-s.x,u=o.y-s.y;if(0===a&&0===u)throw new i("Cannot compute the octant for two identical points "+s);return Yi.octant(a,u)}},e(ki.prototype,{getCoordinates:function(){},size:function(){},getCoordinate:function(t){},isClosed:function(){},setData:function(t){},getData:function(){},interfaces_:function(){return[]},
getClass:function(){return ki}}),e(Ui.prototype,{addIntersection:function(t,e){},interfaces_:function(){return[ki]},getClass:function(){return Ui}}),e(Xi.prototype,{getCoordinates:function(){return this._pts},size:function(){return this._pts.length},getCoordinate:function(t){return this._pts[t]},isClosed:function(){return this._pts[0].equals(this._pts[this._pts.length-1])},getSegmentOctant:function(t){return t===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(t),this.getCoordinate(t+1))},
setData:function(t){this._data=t},safeOctant:function(t,e){return t.equals2D(e)?0:Yi.octant(t,e)},getData:function(){return this._data},addIntersection:function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];this.addIntersectionNode(t,e)}else if(4===arguments.length){var n=arguments[0],i=arguments[1],r=(arguments[2],arguments[3]),s=new E(n.getIntersection(r));this.addIntersection(s,i)}},toString:function(){return he.toLineString(new Kt(this._pts))},getNodeList:function(){return this._nodeList},
addIntersectionNode:function(t,e){var n=e,i=n+1;if(i<this._pts.length){var r=this._pts[i];t.equals2D(r)&&(n=i)}return this._nodeList.add(t,n)},addIntersections:function(t,e,n){for(var i=0;i<t.getIntersectionNum();i++)this.addIntersection(t,e,n,i)},interfaces_:function(){return[Ui]},getClass:function(){return Xi}}),Xi.getNodedSubstrings=function(){if(1===arguments.length){var t=arguments[0],e=new P;return Xi.getNodedSubstrings(t,e),e}if(2===arguments.length)for(var n=arguments[0],i=arguments[1],r=
n.iterator();r.hasNext();)r.next().getNodeList().addSplitEdges(i)},e(Hi.prototype,{overlap:function(){if(2===arguments.length);else if(4===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];t.getLineSegment(e,this._overlapSeg1),n.getLineSegment(i,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}},interfaces_:function(){return[]},getClass:function(){return Hi}}),e(Wi.prototype,{computeNodes:function(t){},getNodedSubstrings:function(){},interfaces_:function(){return[]},
getClass:function(){return Wi}}),e(ji.prototype,{setSegmentIntersector:function(t){this._segInt=t},interfaces_:function(){return[Wi]},getClass:function(){return ji}}),v(Ki,ji),e(Ki.prototype,{getMonotoneChains:function(){return this._monoChains},getNodedSubstrings:function(){return Xi.getNodedSubstrings(this._nodedSegStrings)},getIndex:function(){return this._index},add:function(t){for(var e=dn.getChains(t.getCoordinates(),t).iterator();e.hasNext();){var n=e.next();n.setId(this._idCounter++),this._index.insert(n.getEnvelope(),
n),this._monoChains.add(n)}},computeNodes:function(t){this._nodedSegStrings=t;for(var e=t.iterator();e.hasNext();)this.add(e.next());this.intersectChains()},intersectChains:function(){for(var t=new Zi(this._segInt),e=this._monoChains.iterator();e.hasNext();)for(var n=e.next(),i=this._index.query(n.getEnvelope()).iterator();i.hasNext();){var r=i.next();if(r.getId()>n.getId()&&(n.computeOverlaps(r,t),this._nOverlaps++),this._segInt.isDone())return null}},interfaces_:function(){return[]},getClass:function(){return Ki}}),
v(Zi,Hi),e(Zi.prototype,{overlap:function(){if(4!==arguments.length)return Hi.prototype.overlap.apply(this,arguments);var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3],r=t.getContext(),s=n.getContext();this._si.processIntersections(r,e,s,i)},interfaces_:function(){return[]},getClass:function(){return Zi}}),Ki.SegmentOverlapAction=Zi,e(Qi.prototype,{rescale:function(){if(N(arguments[0],S))for(var t=arguments[0].iterator();t.hasNext();){var e=t.next();this.rescale(e.getCoordinates())}else if(arguments[0]instanceof
Array){var n=arguments[0];2===n.length&&(new E(n[0]),new E(n[1]));for(t=0;t<n.length;t++)n[t].x=n[t].x/this._scaleFactor+this._offsetX,n[t].y=n[t].y/this._scaleFactor+this._offsetY;2===n.length&&n[0].equals2D(n[1])&&Y.out.println(n)}},scale:function(){if(N(arguments[0],S)){for(var t=arguments[0],e=new P(t.size()),n=t.iterator();n.hasNext();){var i=n.next();e.add(new Xi(this.scale(i.getCoordinates()),i.getData()))}return e}if(arguments[0]instanceof Array){var r=arguments[0],s=(new Array(r.length)).fill(null);
for(n=0;n<r.length;n++)s[n]=new E(Math.round((r[n].x-this._offsetX)*this._scaleFactor),Math.round((r[n].y-this._offsetY)*this._scaleFactor),r[n].z);return nt.removeRepeatedPoints(s)}},isIntegerPrecision:function(){return 1===this._scaleFactor},getNodedSubstrings:function(){var t=this._noder.getNodedSubstrings();return this._isScaled&&this.rescale(t),t},computeNodes:function(t){var e=t;this._isScaled&&(e=this.scale(t)),this._noder.computeNodes(e)},interfaces_:function(){return[Wi]},getClass:function(){return Qi}});
var Ji=Object.freeze({MCIndexNoder:Ki,ScaledNoder:Qi,SegmentString:ki});function $i(){if(this._inputGeom=null,this._isClosedEndpointsInInterior=!0,this._nonSimpleLocation=null,1===arguments.length){var t=arguments[0];this._inputGeom=t}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._inputGeom=e,this._isClosedEndpointsInInterior=!n.isInBoundary(2)}}function tr(){this.pt=null,this.isClosed=null,this.degree=null;var t=arguments[0];this.pt=t,this.isClosed=!1,this.degree=0}function er(){if(this._quadrantSegments=
er.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=er.CAP_ROUND,this._joinStyle=er.JOIN_ROUND,this._mitreLimit=er.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=er.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.setQuadrantSegments(t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.setQuadrantSegments(e),this.setEndCapStyle(n)}else if(4===arguments.length){var i=arguments[0],r=arguments[1],s=arguments[2],o=arguments[3];
this.setQuadrantSegments(i),this.setEndCapStyle(r),this.setJoinStyle(s),this.setMitreLimit(o)}}function nr(){this._minIndex=-1,this._minCoord=null,this._minDe=null,this._orientedDe=null}function ir(){this.array_=[]}function rr(){this._finder=null,this._dirEdgeList=new P,this._nodes=new P,this._rightMostCoord=null,this._env=null,this._finder=new nr}function sr(){this._startDe=null,this._maxNodeDegree=-1,this._edges=new P,this._pts=new P,this._label=new zn(de.NONE),this._ring=null,this._isHole=null,
this._shell=null,this._holes=new P,this._geometryFactory=null;var t=arguments[0],e=arguments[1];this._geometryFactory=e,this.computePoints(t),this.computeRing()}function or(){var t=arguments[0],e=arguments[1];sr.call(this,t,e)}function ar(){var t=arguments[0],e=arguments[1];sr.call(this,t,e)}function ur(){this._geometryFactory=null,this._shellList=new P;var t=arguments[0];this._geometryFactory=t}function lr(){this._inputLine=null,this._distanceTol=null,this._isDeleted=null,this._angleOrientation=
z.COUNTERCLOCKWISE;var t=arguments[0];this._inputLine=t}function hr(){this._ptList=null,this._precisionModel=null,this._minimimVertexDistance=0,this._ptList=new P}function cr(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new ge,this._seg1=new ge,this._offset0=new ge,this._offset1=new ge,this._side=0,this._hasNarrowConcaveAngle=
!1;var t=arguments[0],e=arguments[1],n=arguments[2];this._precisionModel=t,this._bufParams=e,this._li=new fe,this._filletAngleQuantum=Math.PI/2/e.getQuadrantSegments(),e.getQuadrantSegments()>=8&&e.getJoinStyle()===er.JOIN_ROUND&&(this._closingSegLengthFactor=cr.MAX_CLOSING_SEG_LEN_FACTOR),this.init(n)}function fr(){this._distance=0,this._precisionModel=null,this._bufParams=null;var t=arguments[0],e=arguments[1];this._precisionModel=t,this._bufParams=e}function gr(){this._subgraphs=null,this._seg=
new ge;var t=arguments[0];this._subgraphs=t}function dr(){this._upwardSeg=null,this._leftDepth=null;var t=arguments[0],e=arguments[1];this._upwardSeg=new ge(t),this._leftDepth=e}function _r(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new P;var t=arguments[0],e=arguments[1],n=arguments[2];this._inputGeom=t,this._distance=e,this._curveBuilder=n}function pr(){this._edgeMap=new pt,this._edgeList=null,this._ptInAreaLocation=[de.NONE,de.NONE]}function mr(){pr.apply(this),
this._resultAreaEdgeList=null,this._label=null,this._SCANNING_FOR_INCOMING=1,this._LINKING_TO_OUTGOING=2}function vr(){ti.apply(this)}function yr(){this._pts=null,this._orientation=null;var t=arguments[0];this._pts=t,this._orientation=yr.orientation(t)}function xr(){this._edges=new P,this._ocaMap=new pt}function Er(){}function Ir(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._hasInterior=!1,this._properIntersectionPoint=null,this._li=null,this._isSelfIntersection=null,
this.numIntersections=0,this.numInteriorIntersections=0,this.numProperIntersections=0,this.numTests=0;var t=arguments[0];this._li=t}function Nr(){this._bufParams=null,this._workingPrecisionModel=null,this._workingNoder=null,this._geomFact=null,this._graph=null,this._edgeList=new xr;var t=arguments[0];this._bufParams=t}function Cr(){this._li=new fe,this._segStrings=null;var t=arguments[0];this._segStrings=t}function Sr(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=
null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=(new Array(4)).fill(null),this._safeEnv=null;var t=arguments[0],e=arguments[1],n=arguments[2];if(this._originalPt=t,this._pt=t,this._scaleFactor=e,this._li=n,e<=0)throw new i("Scale factor must be non-zero");1!==e&&(this._pt=new E(this.scale(t.x),this.scale(t.y)),this._p0Scaled=new E,this._p1Scaled=new E),this.initCorners(this._pt)}function Lr(){this._index=null;var t=arguments[0];
this._index=t}function wr(){nn.apply(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var t=arguments[0],e=arguments[1],n=arguments[2];this._hotPixel=t,this._parentEdge=e,this._hotPixelVertexIndex=n}function Rr(){this._li=null,this._interiorIntersections=null;var t=arguments[0];this._li=t,this._interiorIntersections=new P}function Tr(){this._pm=null,this._li=null,this._scaleFactor=null,this._noder=null,this._pointSnapper=null,this._nodedSegStrings=
null;var t=arguments[0];this._pm=t,this._li=new fe,this._li.setPrecisionModel(t),this._scaleFactor=t.getScale()}function Pr(){if(this._argGeom=null,this._distance=null,this._bufParams=new er,this._resultGeometry=null,this._saveException=null,1===arguments.length){var t=arguments[0];this._argGeom=t}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._argGeom=e,this._bufParams=n}}e($i.prototype,{isSimpleMultiPoint:function(t){if(t.isEmpty())return!0;for(var e=new yt,n=0;n<t.getNumGeometries();n++){var i=
t.getGeometryN(n).getCoordinate();if(e.contains(i))return this._nonSimpleLocation=i,!1;e.add(i)}return!0},isSimplePolygonal:function(t){for(var e=be.getLines(t).iterator();e.hasNext();){var n=e.next();if(!this.isSimpleLinearGeometry(n))return!1}return!0},hasClosedEndpointIntersection:function(t){for(var e=new pt,n=t.getEdgeIterator();n.hasNext();){var i=n.next(),r=(i.getMaximumSegmentIndex(),i.isClosed()),s=i.getCoordinate(0);this.addEndpoint(e,s,r);var o=i.getCoordinate(i.getNumPoints()-1);this.addEndpoint(e,
o,r)}for(n=e.values().iterator();n.hasNext();){var a=n.next();if(a.isClosed&&2!==a.degree)return this._nonSimpleLocation=a.getCoordinate(),!0}return!1},getNonSimpleLocation:function(){return this._nonSimpleLocation},isSimpleLinearGeometry:function(t){if(t.isEmpty())return!0;var e=new ni(0,t),n=new fe,i=e.computeSelfNodes(n,!0);return!i.hasIntersection()||(i.hasProperIntersection()?(this._nonSimpleLocation=i.getProperIntersectionPoint(),!1):!this.hasNonEndpointIntersection(e)&&(!this._isClosedEndpointsInInterior||
!this.hasClosedEndpointIntersection(e)))},hasNonEndpointIntersection:function(t){for(var e=t.getEdgeIterator();e.hasNext();)for(var n=e.next(),i=n.getMaximumSegmentIndex(),r=n.getEdgeIntersectionList().iterator();r.hasNext();){var s=r.next();if(!s.isEndPoint(i))return this._nonSimpleLocation=s.getCoordinate(),!0}return!1},addEndpoint:function(t,e,n){var i=t.get(e);null===i&&(i=new tr(e),t.put(e,i)),i.addEndpoint(n)},computeSimple:function(t){return this._nonSimpleLocation=null,!!t.isEmpty()||(t instanceof
At?this.isSimpleLinearGeometry(t):t instanceof wt?this.isSimpleLinearGeometry(t):t instanceof zt?this.isSimpleMultiPoint(t):N(t,Bt)?this.isSimplePolygonal(t):!(t instanceof Lt)||this.isSimpleGeometryCollection(t))},isSimple:function(){return this._nonSimpleLocation=null,this.computeSimple(this._inputGeom)},isSimpleGeometryCollection:function(t){for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);if(!this.computeSimple(n))return!1}return!0},interfaces_:function(){return[]},getClass:function(){return $i}}),
$i.isSimple=function(){return 1===arguments.length?(new $i(arguments[0])).isSimple():2===arguments.length?(new $i(arguments[0],arguments[1])).isSimple():void 0},e(tr.prototype,{addEndpoint:function(t){this.degree++,this.isClosed|=t},getCoordinate:function(){return this.pt},interfaces_:function(){return[]},getClass:function(){return tr}}),$i.EndpointInfo=tr,e(er.prototype,{getEndCapStyle:function(){return this._endCapStyle},isSingleSided:function(){return this._isSingleSided},setQuadrantSegments:function(t){this._quadrantSegments=
t,0===this._quadrantSegments&&(this._joinStyle=er.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=er.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),t<=0&&(this._quadrantSegments=1),this._joinStyle!==er.JOIN_ROUND&&(this._quadrantSegments=er.DEFAULT_QUADRANT_SEGMENTS)},getJoinStyle:function(){return this._joinStyle},setJoinStyle:function(t){this._joinStyle=t},setSimplifyFactor:function(t){this._simplifyFactor=t<0?0:t},getSimplifyFactor:function(){return this._simplifyFactor},
getQuadrantSegments:function(){return this._quadrantSegments},setEndCapStyle:function(t){this._endCapStyle=t},getMitreLimit:function(){return this._mitreLimit},setMitreLimit:function(t){this._mitreLimit=t},setSingleSided:function(t){this._isSingleSided=t},interfaces_:function(){return[]},getClass:function(){return er}}),er.bufferDistanceError=function(t){var e=Math.PI/2/t;return 1-Math.cos(e/2)},er.CAP_ROUND=1,er.CAP_FLAT=2,er.CAP_SQUARE=3,er.JOIN_ROUND=1,er.JOIN_MITRE=2,er.JOIN_BEVEL=3,er.DEFAULT_QUADRANT_SEGMENTS=
8,er.DEFAULT_MITRE_LIMIT=5,er.DEFAULT_SIMPLIFY_FACTOR=.01,e(nr.prototype,{getCoordinate:function(){return this._minCoord},getRightmostSide:function(t,e){var n=this.getRightmostSideOfSegment(t,e);return n<0&&(n=this.getRightmostSideOfSegment(t,e-1)),n<0&&(this._minCoord=null,this.checkForRightmostCoordinate(t)),n},findRightmostEdgeAtVertex:function(){var t=this._minDe.getEdge().getCoordinates();x.isTrue(this._minIndex>0&&this._minIndex<t.length,"rightmost point expected to be interior vertex of edge");
var e=t[this._minIndex-1],n=t[this._minIndex+1],i=z.index(this._minCoord,n,e),r=!1;e.y<this._minCoord.y&&n.y<this._minCoord.y&&i===z.COUNTERCLOCKWISE?r=!0:e.y>this._minCoord.y&&n.y>this._minCoord.y&&i===z.CLOCKWISE&&(r=!0),r&&(this._minIndex=this._minIndex-1)},getRightmostSideOfSegment:function(t,e){var n=t.getEdge().getCoordinates();if(e<0||e+1>=n.length)return-1;if(n[e].y===n[e+1].y)return-1;var i=Dn.LEFT;return n[e].y<n[e+1].y&&(i=Dn.RIGHT),i},getEdge:function(){return this._orientedDe},checkForRightmostCoordinate:function(t){for(var e=
t.getEdge().getCoordinates(),n=0;n<e.length-1;n++)(null===this._minCoord||e[n].x>this._minCoord.x)&&(this._minDe=t,this._minIndex=n,this._minCoord=e[n])},findRightmostEdgeAtNode:function(){var t=this._minDe.getNode().getEdges();this._minDe=t.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)},findEdge:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();n.isForward()&&this.checkForRightmostCoordinate(n)}x.isTrue(0!==
this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===Dn.LEFT&&(this._orientedDe=this._minDe.getSym())},interfaces_:function(){return[]},getClass:function(){return nr}}),ir.prototype.addLast=function(t){this.array_.push(t)},ir.prototype.removeFirst=function(){return this.array_.shift()},
ir.prototype.isEmpty=function(){return 0===this.array_.length},e(rr.prototype,{clearVisitedEdges:function(){for(var t=this._dirEdgeList.iterator();t.hasNext();)t.next().setVisited(!1)},getRightmostCoordinate:function(){return this._rightMostCoord},computeNodeDepth:function(t){for(var e=null,n=t.getEdges().iterator();n.hasNext();)if((i=n.next()).isVisited()||i.getSym().isVisited()){e=i;break}if(null===e)throw new Jn("unable to find edge to compute depths at "+t.getCoordinate());t.getEdges().computeDepths(e);
for(n=t.getEdges().iterator();n.hasNext();){var i;(i=n.next()).setVisited(!0),this.copySymDepths(i)}},computeDepth:function(t){this.clearVisitedEdges();var e=this._finder.getEdge();e.getNode(),e.getLabel();e.setEdgeDepths(Dn.RIGHT,t),this.copySymDepths(e),this.computeDepths(e)},create:function(t){this.addReachable(t),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()},findResultEdges:function(){for(var t=this._dirEdgeList.iterator();t.hasNext();){var e=t.next();
e.getDepth(Dn.RIGHT)>=1&&e.getDepth(Dn.LEFT)<=0&&!e.isInteriorAreaEdge()&&e.setInResult(!0)}},computeDepths:function(t){var e=new ut,n=new ir,i=t.getNode();for(n.addLast(i),e.add(i),t.setVisited(!0);!n.isEmpty();){var r=n.removeFirst();e.add(r),this.computeNodeDepth(r);for(var s=r.getEdges().iterator();s.hasNext();){var o=s.next().getSym();if(!o.isVisited()){var a=o.getNode();e.contains(a)||(n.addLast(a),e.add(a))}}}},compareTo:function(t){var e=t;return this._rightMostCoord.x<e._rightMostCoord.x?
-1:this._rightMostCoord.x>e._rightMostCoord.x?1:0},getEnvelope:function(){if(null===this._env){for(var t=new M,e=this._dirEdgeList.iterator();e.hasNext();)for(var n=e.next().getEdge().getCoordinates(),i=0;i<n.length-1;i++)t.expandToInclude(n[i]);this._env=t}return this._env},addReachable:function(t){var e=new je;for(e.add(t);!e.empty();){var n=e.pop();this.add(n,e)}},copySymDepths:function(t){var e=t.getSym();e.setDepth(Dn.LEFT,t.getDepth(Dn.RIGHT)),e.setDepth(Dn.RIGHT,t.getDepth(Dn.LEFT))},add:function(t,
e){t.setVisited(!0),this._nodes.add(t);for(var n=t.getEdges().iterator();n.hasNext();){var i=n.next();this._dirEdgeList.add(i);var r=i.getSym().getNode();r.isVisited()||e.push(r)}},getNodes:function(){return this._nodes},getDirectedEdges:function(){return this._dirEdgeList},interfaces_:function(){return[g]},getClass:function(){return rr}}),e(sr.prototype,{computeRing:function(){if(null!==this._ring)return null;for(var t=(new Array(this._pts.size())).fill(null),e=0;e<this._pts.size();e++)t[e]=this._pts.get(e);
this._ring=this._geometryFactory.createLinearRing(t),this._isHole=z.isCCW(this._ring.getCoordinates())},isIsolated:function(){return 1===this._label.getGeometryCount()},computePoints:function(t){this._startDe=t;var e=t,n=!0;do{if(null===e)throw new Jn("Found null DirectedEdge");if(e.getEdgeRing()===this)throw new Jn("Directed Edge visited twice during ring-building at "+e.getCoordinate());this._edges.add(e);var i=e.getLabel();x.isTrue(i.isArea()),this.mergeLabel(i),this.addPoints(e.getEdge(),e.isForward(),
n),n=!1,this.setEdgeRing(e,this),e=this.getNext(e)}while(e!==this._startDe)},getLinearRing:function(){return this._ring},getCoordinate:function(t){return this._pts.get(t)},computeMaxNodeDegree:function(){this._maxNodeDegree=0;var t=this._startDe;do{var e=t.getNode().getEdges().getOutgoingDegree(this);e>this._maxNodeDegree&&(this._maxNodeDegree=e),t=this.getNext(t)}while(t!==this._startDe);this._maxNodeDegree*=2},addPoints:function(t,e,n){var i=t.getCoordinates();if(e){var r=1;n&&(r=0);for(var s=r;s<
i.length;s++)this._pts.add(i[s])}else{r=i.length-2;n&&(r=i.length-1);for(s=r;s>=0;s--)this._pts.add(i[s])}},isHole:function(){return this._isHole},setInResult:function(){var t=this._startDe;do t.getEdge().setInResult(!0),t=t.getNext();while(t!==this._startDe)},containsPoint:function(t){var e=this.getLinearRing();if(!e.getEnvelopeInternal().contains(t))return!1;if(!qe.isInRing(t,e.getCoordinates()))return!1;for(var n=this._holes.iterator();n.hasNext();)if(n.next().containsPoint(t))return!1;return!0},
addHole:function(t){this._holes.add(t)},isShell:function(){return null===this._shell},getLabel:function(){return this._label},getEdges:function(){return this._edges},getMaxNodeDegree:function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree},getShell:function(){return this._shell},mergeLabel:function(){if(1===arguments.length){var t=arguments[0];this.mergeLabel(t,0),this.mergeLabel(t,1)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],i=e.getLocation(n,
Dn.RIGHT);if(i===de.NONE)return null;if(this._label.getLocation(n)===de.NONE)return this._label.setLocation(n,i),null}},setShell:function(t){this._shell=t,null!==t&&t.addHole(this)},toPolygon:function(t){for(var e=(new Array(this._holes.size())).fill(null),n=0;n<this._holes.size();n++)e[n]=this._holes.get(n).getLinearRing();return t.createPolygon(this.getLinearRing(),e)},interfaces_:function(){return[]},getClass:function(){return sr}}),v(or,sr),e(or.prototype,{setEdgeRing:function(t,e){t.setMinEdgeRing(e)},
getNext:function(t){return t.getNextMin()},interfaces_:function(){return[]},getClass:function(){return or}}),v(ar,sr),e(ar.prototype,{buildMinimalRings:function(){var t=new P,e=this._startDe;do{if(null===e.getMinEdgeRing()){var n=new or(e,this._geometryFactory);t.add(n)}e=e.getNext()}while(e!==this._startDe);return t},setEdgeRing:function(t,e){t.setEdgeRing(e)},linkDirectedEdgesForMinimalEdgeRings:function(){var t=this._startDe;do t.getNode().getEdges().linkMinimalDirectedEdges(this),t=t.getNext();
while(t!==this._startDe)},getNext:function(t){return t.getNext()},interfaces_:function(){return[]},getClass:function(){return ar}}),e(ur.prototype,{sortShellsAndHoles:function(t,e,n){for(var i=t.iterator();i.hasNext();){var r=i.next();r.isHole()?n.add(r):e.add(r)}},computePolygons:function(t){for(var e=new P,n=t.iterator();n.hasNext();){var i=n.next().toPolygon(this._geometryFactory);e.add(i)}return e},placeFreeHoles:function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next();if(null===i.getShell()){var r=
this.findEdgeRingContaining(i,t);if(null===r)throw new Jn("unable to assign hole to a shell",i.getCoordinate(0));i.setShell(r)}}},buildMinimalEdgeRings:function(t,e,n){for(var i=new P,r=t.iterator();r.hasNext();){var s=r.next();if(s.getMaxNodeDegree()>2){s.linkDirectedEdgesForMinimalEdgeRings();var o=s.buildMinimalRings(),a=this.findShell(o);null!==a?(this.placePolygonHoles(a,o),e.add(a)):n.addAll(o)}else i.add(s)}return i},containsPoint:function(t){for(var e=this._shellList.iterator();e.hasNext();)if(e.next().containsPoint(t))return!0;
return!1},buildMaximalEdgeRings:function(t){for(var e=new P,n=t.iterator();n.hasNext();){var i=n.next();if(i.isInResult()&&i.getLabel().isArea()&&null===i.getEdgeRing()){var r=new ar(i,this._geometryFactory);e.add(r),r.setInResult()}}return e},placePolygonHoles:function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next();i.isHole()&&i.setShell(t)}},getPolygons:function(){return this.computePolygons(this._shellList)},findEdgeRingContaining:function(t,e){for(var n=t.getLinearRing(),i=n.getEnvelopeInternal(),
r=n.getCoordinateN(0),s=null,o=null,a=e.iterator();a.hasNext();){var u=a.next(),l=u.getLinearRing(),h=l.getEnvelopeInternal();null!==s&&(o=s.getLinearRing().getEnvelopeInternal());var c=!1;h.contains(i)&&qe.isInRing(r,l.getCoordinates())&&(c=!0),c&&(null===s||o.contains(h))&&(s=u)}return s},findShell:function(t){for(var e=0,n=null,i=t.iterator();i.hasNext();){var r=i.next();r.isHole()||(n=r,e++)}return x.isTrue(e<=1,"found two shells in MinimalEdgeRing list"),n},add:function(){if(1===arguments.length){var t=
arguments[0];this.add(t.getEdgeEnds(),t.getNodes())}else if(2===arguments.length){var e=arguments[0],n=arguments[1];ei.linkResultDirectedEdges(n);var i=this.buildMaximalEdgeRings(e),r=new P,s=this.buildMinimalEdgeRings(i,this._shellList,r);this.sortShellsAndHoles(s,this._shellList,r),this.placeFreeHoles(this._shellList,r)}},interfaces_:function(){return[]},getClass:function(){return ur}}),e(lr.prototype,{isDeletable:function(t,e,n,i){var r=this._inputLine[t],s=this._inputLine[e],o=this._inputLine[n];
return!!this.isConcave(r,s,o)&&(!!this.isShallow(r,s,o,i)&&this.isShallowSampled(r,s,t,n,i))},deleteShallowConcavities:function(){for(var t=1,e=(this._inputLine.length,this.findNextNonDeletedIndex(t)),n=this.findNextNonDeletedIndex(e),i=!1;n<this._inputLine.length;){var r=!1;this.isDeletable(t,e,n,this._distanceTol)&&(this._isDeleted[e]=lr.DELETE,r=!0,i=!0),t=r?n:e,e=this.findNextNonDeletedIndex(t),n=this.findNextNonDeletedIndex(e)}return i},isShallowConcavity:function(t,e,n,i){return z.index(t,e,
n)===this._angleOrientation&&X.pointToSegment(e,t,n)<i},isShallowSampled:function(t,e,n,i,r){var s=Math.trunc((i-n)/lr.NUM_PTS_TO_CHECK);s<=0&&(s=1);for(var o=n;o<i;o+=s)if(!this.isShallow(t,e,this._inputLine[o],r))return!1;return!0},isConcave:function(t,e,n){var i=z.index(t,e,n)===this._angleOrientation;return i},simplify:function(t){this._distanceTol=Math.abs(t),t<0&&(this._angleOrientation=z.CLOCKWISE),this._isDeleted=(new Array(this._inputLine.length)).fill(null);var e=!1;do e=this.deleteShallowConcavities();
while(e);return this.collapseLine()},findNextNonDeletedIndex:function(t){for(var e=t+1;e<this._inputLine.length&&this._isDeleted[e]===lr.DELETE;)e++;return e},isShallow:function(t,e,n,i){return X.pointToSegment(e,t,n)<i},collapseLine:function(){for(var t=new b,e=0;e<this._inputLine.length;e++)this._isDeleted[e]!==lr.DELETE&&t.add(this._inputLine[e]);return t.toCoordinateArray()},interfaces_:function(){return[]},getClass:function(){return lr}}),lr.simplify=function(t,e){return(new lr(t)).simplify(e)},
lr.INIT=0,lr.DELETE=1,lr.KEEP=1,lr.NUM_PTS_TO_CHECK=10,e(hr.prototype,{getCoordinates:function(){return this._ptList.toArray(hr.COORDINATE_ARRAY_TYPE)},setPrecisionModel:function(t){this._precisionModel=t},addPt:function(t){var e=new E(t);if(this._precisionModel.makePrecise(e),this.isRedundant(e))return null;this._ptList.add(e)},reverse:function(){},addPts:function(t,e){if(e)for(var n=0;n<t.length;n++)this.addPt(t[n]);else for(n=t.length-1;n>=0;n--)this.addPt(t[n])},isRedundant:function(t){if(this._ptList.size()<
1)return!1;var e=this._ptList.get(this._ptList.size()-1);return t.distance(e)<this._minimimVertexDistance},toString:function(){return(new se).createLineString(this.getCoordinates()).toString()},closeRing:function(){if(this._ptList.size()<1)return null;var t=new E(this._ptList.get(0)),e=this._ptList.get(this._ptList.size()-1);if(this._ptList.size()>=2&&this._ptList.get(this._ptList.size()-2),t.equals(e))return null;this._ptList.add(t)},setMinimumVertexDistance:function(t){this._minimimVertexDistance=
t},interfaces_:function(){return[]},getClass:function(){return hr}}),hr.COORDINATE_ARRAY_TYPE=(new Array(0)).fill(null),e(cr.prototype,{addNextSegment:function(t,e){if(this._s0=this._s1,this._s1=this._s2,this._s2=t,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var n=
z.index(this._s0,this._s1,this._s2),i=n===z.CLOCKWISE&&this._side===Dn.LEFT||n===z.COUNTERCLOCKWISE&&this._side===Dn.RIGHT;0===n?this.addCollinear(e):i?this.addOutsideTurn(n,e):this.addInsideTurn(n,e)},addLineEndCap:function(t,e){var n=new ge(t,e),i=new ge;this.computeOffsetSegment(n,Dn.LEFT,this._distance,i);var r=new ge;this.computeOffsetSegment(n,Dn.RIGHT,this._distance,r);var s=e.x-t.x,o=e.y-t.y,a=Math.atan2(o,s);switch(this._bufParams.getEndCapStyle()){case er.CAP_ROUND:this._segList.addPt(i.p1),
this.addDirectedFillet(e,a+Math.PI/2,a-Math.PI/2,z.CLOCKWISE,this._distance),this._segList.addPt(r.p1);break;case er.CAP_FLAT:this._segList.addPt(i.p1),this._segList.addPt(r.p1);break;case er.CAP_SQUARE:var u=new E;u.x=Math.abs(this._distance)*Math.cos(a),u.y=Math.abs(this._distance)*Math.sin(a);var l=new E(i.p1.x+u.x,i.p1.y+u.y),h=new E(r.p1.x+u.x,r.p1.y+u.y);this._segList.addPt(l),this._segList.addPt(h)}},getCoordinates:function(){return this._segList.getCoordinates()},addMitreJoin:function(t,e,
n,i){var r=!0,s=null;try{s=k.intersection(e.p0,e.p1,n.p0,n.p1),(i<=0?1:s.distance(t)/Math.abs(i))>this._bufParams.getMitreLimit()&&(r=!1)}catch(t){if(!(t instanceof A))throw t;s=new E(0,0),r=!1}r?this._segList.addPt(s):this.addLimitedMitreJoin(e,n,i,this._bufParams.getMitreLimit())},addOutsideTurn:function(t,e){if(this._offset0.p1.distance(this._offset1.p0)<this._distance*cr.OFFSET_SEGMENT_SEPARATION_FACTOR)return this._segList.addPt(this._offset0.p1),null;this._bufParams.getJoinStyle()===er.JOIN_MITRE?
this.addMitreJoin(this._s1,this._offset0,this._offset1,this._distance):this._bufParams.getJoinStyle()===er.JOIN_BEVEL?this.addBevelJoin(this._offset0,this._offset1):(e&&this._segList.addPt(this._offset0.p1),this.addCornerFillet(this._s1,this._offset0.p1,this._offset1.p0,t,this._distance),this._segList.addPt(this._offset1.p0))},createSquare:function(t){this._segList.addPt(new E(t.x+this._distance,t.y+this._distance)),this._segList.addPt(new E(t.x+this._distance,t.y-this._distance)),this._segList.addPt(new E(t.x-
this._distance,t.y-this._distance)),this._segList.addPt(new E(t.x-this._distance,t.y+this._distance)),this._segList.closeRing()},addSegments:function(t,e){this._segList.addPts(t,e)},addFirstSegment:function(){this._segList.addPt(this._offset1.p0)},addCornerFillet:function(t,e,n,i,r){var s=e.x-t.x,o=e.y-t.y,a=Math.atan2(o,s),u=n.x-t.x,l=n.y-t.y,h=Math.atan2(l,u);i===z.CLOCKWISE?a<=h&&(a+=2*Math.PI):a>=h&&(a-=2*Math.PI),this._segList.addPt(e),this.addDirectedFillet(t,a,h,i,r),this._segList.addPt(n)},
addLastSegment:function(){this._segList.addPt(this._offset1.p1)},initSideSegments:function(t,e,n){this._s1=t,this._s2=e,this._side=n,this._seg1.setCoordinates(t,e),this.computeOffsetSegment(this._seg1,n,this._distance,this._offset1)},addLimitedMitreJoin:function(t,e,n,i){var r=this._seg0.p1,s=pe.angle(r,this._seg0.p0),o=(pe.angle(r,this._seg1.p1),pe.angleBetweenOriented(this._seg0.p0,r,this._seg1.p1)/2),a=pe.normalize(s+o),u=pe.normalize(a+Math.PI),l=i*n,h=n-l*Math.abs(Math.sin(o)),c=new ge(r,new E(r.x+
l*Math.cos(u),r.y+l*Math.sin(u))),f=c.pointAlongOffset(1,h),g=c.pointAlongOffset(1,-h);this._side===Dn.LEFT?(this._segList.addPt(f),this._segList.addPt(g)):(this._segList.addPt(g),this._segList.addPt(f))},addDirectedFillet:function(t,e,n,i,r){var s=i===z.CLOCKWISE?-1:1,o=Math.abs(e-n),a=Math.trunc(o/this._filletAngleQuantum+.5);if(a<1)return null;var u;u=o/a;for(var l=0,h=new E;l<o;){var c=e+s*l;h.x=t.x+r*Math.cos(c),h.y=t.y+r*Math.sin(c),this._segList.addPt(h),l+=u}},computeOffsetSegment:function(t,
e,n,i){var r=e===Dn.LEFT?1:-1,s=t.p1.x-t.p0.x,o=t.p1.y-t.p0.y,a=Math.sqrt(s*s+o*o),u=r*n*s/a,l=r*n*o/a;i.p0.x=t.p0.x-l,i.p0.y=t.p0.y+u,i.p1.x=t.p1.x-l,i.p1.y=t.p1.y+u},addInsideTurn:function(t,e){if(this._li.computeIntersection(this._offset0.p0,this._offset0.p1,this._offset1.p0,this._offset1.p1),this._li.hasIntersection())this._segList.addPt(this._li.getIntersection(0));else if(this._hasNarrowConcaveAngle=!0,this._offset0.p1.distance(this._offset1.p0)<this._distance*cr.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)this._segList.addPt(this._offset0.p1);
else{if(this._segList.addPt(this._offset0.p1),this._closingSegLengthFactor>0){var n=new E((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(n);var i=new E((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));
this._segList.addPt(i)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}},createCircle:function(t){var e=new E(t.x+this._distance,t.y);this._segList.addPt(e),this.addDirectedFillet(t,0,2*Math.PI,-1,this._distance),this._segList.closeRing()},addBevelJoin:function(t,e){this._segList.addPt(t.p1),this._segList.addPt(e.p0)},init:function(t){this._distance=t,this._maxCurveSegmentError=t*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new hr,this._segList.setPrecisionModel(this._precisionModel),
this._segList.setMinimumVertexDistance(t*cr.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},addCollinear:function(t){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===er.JOIN_BEVEL||this._bufParams.getJoinStyle()===er.JOIN_MITRE?(t&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addCornerFillet(this._s1,this._offset0.p1,this._offset1.p0,z.CLOCKWISE,this._distance))},closeRing:function(){this._segList.closeRing()},
hasNarrowConcaveAngle:function(){return this._hasNarrowConcaveAngle},interfaces_:function(){return[]},getClass:function(){return cr}}),cr.OFFSET_SEGMENT_SEPARATION_FACTOR=.001,cr.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR=.001,cr.CURVE_VERTEX_SNAP_DISTANCE_FACTOR=1E-6,cr.MAX_CLOSING_SEG_LEN_FACTOR=80,e(fr.prototype,{getOffsetCurve:function(t,e){if(this._distance=e,0===e)return null;var n=e<0,i=Math.abs(e),r=this.getSegGen(i);t.length<=1?this.computePointCurve(t[0],r):this.computeOffsetCurve(t,n,r);var s=
r.getCoordinates();return n&&nt.reverse(s),s},computeSingleSidedBufferCurve:function(t,e,n){var i=this.simplifyTolerance(this._distance);if(e){n.addSegments(t,!0);var r=lr.simplify(t,-i),s=r.length-1;n.initSideSegments(r[s],r[s-1],Dn.LEFT),n.addFirstSegment();for(var o=s-2;o>=0;o--)n.addNextSegment(r[o],!0)}else{n.addSegments(t,!1);var a=lr.simplify(t,i),u=a.length-1;n.initSideSegments(a[0],a[1],Dn.LEFT),n.addFirstSegment();for(o=2;o<=u;o++)n.addNextSegment(a[o],!0)}n.addLastSegment(),n.closeRing()},
computeRingBufferCurve:function(t,e,n){var i=this.simplifyTolerance(this._distance);e===Dn.RIGHT&&(i=-i);var r=lr.simplify(t,i),s=r.length-1;n.initSideSegments(r[s-1],r[0],e);for(var o=1;o<=s;o++){var a=1!==o;n.addNextSegment(r[o],a)}n.closeRing()},computeLineBufferCurve:function(t,e){var n=this.simplifyTolerance(this._distance),i=lr.simplify(t,n),r=i.length-1;e.initSideSegments(i[0],i[1],Dn.LEFT);for(var s=2;s<=r;s++)e.addNextSegment(i[s],!0);e.addLastSegment(),e.addLineEndCap(i[r-1],i[r]);var o=
lr.simplify(t,-n),a=o.length-1;e.initSideSegments(o[a],o[a-1],Dn.LEFT);for(s=a-2;s>=0;s--)e.addNextSegment(o[s],!0);e.addLastSegment(),e.addLineEndCap(o[1],o[0]),e.closeRing()},computePointCurve:function(t,e){switch(this._bufParams.getEndCapStyle()){case er.CAP_ROUND:e.createCircle(t);break;case er.CAP_SQUARE:e.createSquare(t)}},getLineCurve:function(t,e){if(this._distance=e,e<0&&!this._bufParams.isSingleSided())return null;if(0===e)return null;var n=Math.abs(e),i=this.getSegGen(n);if(t.length<=1)this.computePointCurve(t[0],
i);else if(this._bufParams.isSingleSided()){var r=e<0;this.computeSingleSidedBufferCurve(t,r,i)}else this.computeLineBufferCurve(t,i);return i.getCoordinates()},getBufferParameters:function(){return this._bufParams},simplifyTolerance:function(t){return t*this._bufParams.getSimplifyFactor()},getRingCurve:function(t,e,n){if(this._distance=n,t.length<=2)return this.getLineCurve(t,n);if(0===n)return fr.copyCoordinates(t);var i=this.getSegGen(n);return this.computeRingBufferCurve(t,e,i),i.getCoordinates()},
computeOffsetCurve:function(t,e,n){var i=this.simplifyTolerance(this._distance);if(e){var r=lr.simplify(t,-i),s=r.length-1;n.initSideSegments(r[s],r[s-1],Dn.LEFT),n.addFirstSegment();for(var o=s-2;o>=0;o--)n.addNextSegment(r[o],!0)}else{var a=lr.simplify(t,i),u=a.length-1;n.initSideSegments(a[0],a[1],Dn.LEFT),n.addFirstSegment();for(o=2;o<=u;o++)n.addNextSegment(a[o],!0)}n.addLastSegment()},getSegGen:function(t){return new cr(this._precisionModel,this._bufParams,t)},interfaces_:function(){return[]},
getClass:function(){return fr}}),fr.copyCoordinates=function(t){for(var e=(new Array(t.length)).fill(null),n=0;n<e.length;n++)e[n]=new E(t[n]);return e},e(gr.prototype,{findStabbedSegments:function(){if(1===arguments.length){for(var t=arguments[0],e=new P,n=this._subgraphs.iterator();n.hasNext();){var i=n.next(),r=i.getEnvelope();t.y<r.getMinY()||t.y>r.getMaxY()||this.findStabbedSegments(t,i.getDirectedEdges(),e)}return e}if(3===arguments.length)if(N(arguments[2],w)&&arguments[0]instanceof E&&arguments[1]instanceof
$n){var s=arguments[0],o=arguments[1],a=arguments[2],u=o.getEdge().getCoordinates();for(n=0;n<u.length-1;n++)if(this._seg.p0=u[n],this._seg.p1=u[n+1],this._seg.p0.y>this._seg.p1.y&&this._seg.reverse(),!(Math.max(this._seg.p0.x,this._seg.p1.x)<s.x||this._seg.isHorizontal()||s.y<this._seg.p0.y||s.y>this._seg.p1.y||z.index(this._seg.p0,this._seg.p1,s)===z.RIGHT)){var l=o.getDepth(Dn.LEFT);this._seg.p0.equals(u[n])||(l=o.getDepth(Dn.RIGHT));var h=new dr(this._seg,l);a.add(h)}}else if(N(arguments[2],w)&&
arguments[0]instanceof E&&N(arguments[1],w)){var c=arguments[0],f=arguments[1],g=arguments[2];for(n=f.iterator();n.hasNext();){var d=n.next();d.isForward()&&this.findStabbedSegments(c,d,g)}}},getDepth:function(t){var e=this.findStabbedSegments(t);return 0===e.size()?0:Te.min(e)._leftDepth},interfaces_:function(){return[]},getClass:function(){return gr}}),e(dr.prototype,{compareTo:function(t){var e=t;if(this._upwardSeg.minX()>=e._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=e._upwardSeg.minX())return-1;
var n=this._upwardSeg.orientationIndex(e._upwardSeg);return 0!==n?n:0!==(n=-1*e._upwardSeg.orientationIndex(this._upwardSeg))?n:this._upwardSeg.compareTo(e._upwardSeg)},compareX:function(t,e){var n=t.p0.compareTo(e.p0);return 0!==n?n:t.p1.compareTo(e.p1)},toString:function(){return this._upwardSeg.toString()},interfaces_:function(){return[g]},getClass:function(){return dr}}),gr.DepthSegment=dr,e(_r.prototype,{addPoint:function(t){if(this._distance<=0)return null;var e=t.getCoordinates(),n=this._curveBuilder.getLineCurve(e,
this._distance);this.addCurve(n,de.EXTERIOR,de.INTERIOR)},addPolygon:function(t){var e=this._distance,n=Dn.LEFT;this._distance<0&&(e=-this._distance,n=Dn.RIGHT);var i=t.getExteriorRing(),r=nt.removeRepeatedPoints(i.getCoordinates());if(this._distance<0&&this.isErodedCompletely(i,this._distance))return null;if(this._distance<=0&&r.length<3)return null;this.addPolygonRing(r,e,n,de.EXTERIOR,de.INTERIOR);for(var s=0;s<t.getNumInteriorRing();s++){var o=t.getInteriorRingN(s),a=nt.removeRepeatedPoints(o.getCoordinates());
this._distance>0&&this.isErodedCompletely(o,-this._distance)||this.addPolygonRing(a,e,Dn.opposite(n),de.INTERIOR,de.EXTERIOR)}},isTriangleErodedCompletely:function(t,e){var n=new me(t[0],t[1],t[2]),i=n.inCentre();return X.pointToSegment(i,n.p0,n.p1)<Math.abs(e)},addLineString:function(t){if(this._distance<=0&&!this._curveBuilder.getBufferParameters().isSingleSided())return null;var e=nt.removeRepeatedPoints(t.getCoordinates()),n=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(n,de.EXTERIOR,
de.INTERIOR)},addCurve:function(t,e,n){if(null===t||t.length<2)return null;var i=new Xi(t,new zn(0,de.BOUNDARY,e,n));this._curveList.add(i)},getCurves:function(){return this.add(this._inputGeom),this._curveList},addPolygonRing:function(t,e,n,i,r){if(0===e&&t.length<Yt.MINIMUM_VALID_SIZE)return null;var s=i,o=r;t.length>=Yt.MINIMUM_VALID_SIZE&&z.isCCW(t)&&(s=r,o=i,n=Dn.opposite(n));var a=this._curveBuilder.getRingCurve(t,n,e);this.addCurve(a,s,o)},add:function(t){if(t.isEmpty())return null;if(t instanceof
Vt)this.addPolygon(t);else if(t instanceof At)this.addLineString(t);else if(t instanceof Gt)this.addPoint(t);else if(t instanceof zt)this.addCollection(t);else if(t instanceof wt)this.addCollection(t);else if(t instanceof kt)this.addCollection(t);else{if(!(t instanceof Lt))throw new UnsupportedOperationException(t.getClass().getName());this.addCollection(t)}},isErodedCompletely:function(t,e){var n=t.getCoordinates();if(n.length<4)return e<0;if(4===n.length)return this.isTriangleErodedCompletely(n,
e);var i=t.getEnvelopeInternal(),r=Math.min(i.getHeight(),i.getWidth());return e<0&&2*Math.abs(e)>r},addCollection:function(t){for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);this.add(n)}},interfaces_:function(){return[]},getClass:function(){return _r}}),e(pr.prototype,{getNextCW:function(t){this.getEdges();var e=this._edgeList.indexOf(t),n=e-1;return 0===e&&(n=this._edgeList.size()-1),this._edgeList.get(n)},propagateSideLabels:function(t){for(var e=de.NONE,n=this.iterator();n.hasNext();)(s=
(r=n.next()).getLabel()).isArea(t)&&s.getLocation(t,Dn.LEFT)!==de.NONE&&(e=s.getLocation(t,Dn.LEFT));if(e===de.NONE)return null;var i=e;for(n=this.iterator();n.hasNext();){var r,s;if((s=(r=n.next()).getLabel()).getLocation(t,Dn.ON)===de.NONE&&s.setLocation(t,Dn.ON,i),s.isArea(t)){var o=s.getLocation(t,Dn.LEFT),a=s.getLocation(t,Dn.RIGHT);if(a!==de.NONE){if(a!==i)throw new Jn("side location conflict",r.getCoordinate());o===de.NONE&&x.shouldNeverReachHere("found single null side (at "+r.getCoordinate()+
")"),i=o}else x.isTrue(s.getLocation(t,Dn.LEFT)===de.NONE,"found single null side"),s.setLocation(t,Dn.RIGHT,i),s.setLocation(t,Dn.LEFT,i)}}},getCoordinate:function(){var t=this.iterator();return t.hasNext()?t.next().getCoordinate():null},print:function(t){Y.out.println("EdgeEndStar:   "+this.getCoordinate());for(var e=this.iterator();e.hasNext();)e.next().print(t)},isAreaLabelsConsistent:function(t){return this.computeEdgeEndLabels(t.getBoundaryNodeRule()),this.checkAreaLabelsConsistent(0)},checkAreaLabelsConsistent:function(t){var e=
this.getEdges();if(e.size()<=0)return!0;var n=e.size()-1,i=e.get(n).getLabel().getLocation(t,Dn.LEFT);x.isTrue(i!==de.NONE,"Found unlabelled area edge");for(var r=i,s=this.iterator();s.hasNext();){var o=s.next().getLabel();x.isTrue(o.isArea(t),"Found non-area edge");var a=o.getLocation(t,Dn.LEFT),u=o.getLocation(t,Dn.RIGHT);if(a===u)return!1;if(u!==r)return!1;r=a}return!0},findIndex:function(t){this.iterator();for(var e=0;e<this._edgeList.size();e++)if(this._edgeList.get(e)===t)return e;return-1},
iterator:function(){return this.getEdges().iterator()},getEdges:function(){return null===this._edgeList&&(this._edgeList=new P(this._edgeMap.values())),this._edgeList},getLocation:function(t,e,n){return this._ptInAreaLocation[t]===de.NONE&&(this._ptInAreaLocation[t]=Ve.locate(e,n[t].getGeometry())),this._ptInAreaLocation[t]},toString:function(){var t=new F;t.append("EdgeEndStar:   "+this.getCoordinate()),t.append("\n");for(var e=this.iterator();e.hasNext();){var n=e.next();t.append(n),t.append("\n")}return t.toString()},
computeEdgeEndLabels:function(t){for(var e=this.iterator();e.hasNext();)e.next().computeLabel(t)},computeLabelling:function(t){this.computeEdgeEndLabels(t[0].getBoundaryNodeRule()),this.propagateSideLabels(0),this.propagateSideLabels(1);for(var e=[!1,!1],n=this.iterator();n.hasNext();)for(var i=(s=n.next()).getLabel(),r=0;r<2;r++)i.isLine(r)&&i.getLocation(r)===de.BOUNDARY&&(e[r]=!0);for(n=this.iterator();n.hasNext();){var s;for(i=(s=n.next()).getLabel(),r=0;r<2;r++)if(i.isAnyNull(r)){var o=de.NONE;
if(e[r])o=de.EXTERIOR;else{var a=s.getCoordinate();o=this.getLocation(r,a,t)}i.setAllLocationsIfNull(r,o)}}},getDegree:function(){return this._edgeMap.size()},insertEdgeEnd:function(t,e){this._edgeMap.put(t,e),this._edgeList=null},interfaces_:function(){return[]},getClass:function(){return pr}}),v(mr,pr),e(mr.prototype,{linkResultDirectedEdges:function(){this.getResultAreaEdges();for(var t=null,e=null,n=this._SCANNING_FOR_INCOMING,i=0;i<this._resultAreaEdgeList.size();i++){var r=this._resultAreaEdgeList.get(i),
s=r.getSym();if(r.getLabel().isArea())switch(null===t&&r.isInResult()&&(t=r),n){case this._SCANNING_FOR_INCOMING:if(!s.isInResult())continue;e=s,n=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(!r.isInResult())continue;e.setNext(r),n=this._SCANNING_FOR_INCOMING}}if(n===this._LINKING_TO_OUTGOING){if(null===t)throw new Jn("no outgoing dirEdge found",this.getCoordinate());x.isTrue(t.isInResult(),"unable to link last incoming dirEdge"),e.setNext(t)}},insert:function(t){var e=t;this.insertEdgeEnd(e,
e)},getRightmostEdge:function(){var t=this.getEdges(),e=t.size();if(e<1)return null;var n=t.get(0);if(1===e)return n;var i=t.get(e-1),r=n.getQuadrant(),s=i.getQuadrant();return gn.isNorthern(r)&&gn.isNorthern(s)?n:gn.isNorthern(r)||gn.isNorthern(s)?0!==n.getDy()?n:0!==i.getDy()?i:(x.shouldNeverReachHere("found two horizontal edges incident on node"),null):i},print:function(t){Y.out.println("DirectedEdgeStar: "+this.getCoordinate());for(var e=this.iterator();e.hasNext();){var n=e.next();t.print("out "),
n.print(t),t.println(),t.print("in "),n.getSym().print(t),t.println()}},getResultAreaEdges:function(){if(null!==this._resultAreaEdgeList)return this._resultAreaEdgeList;this._resultAreaEdgeList=new P;for(var t=this.iterator();t.hasNext();){var e=t.next();(e.isInResult()||e.getSym().isInResult())&&this._resultAreaEdgeList.add(e)}return this._resultAreaEdgeList},updateLabelling:function(t){for(var e=this.iterator();e.hasNext();){var n=e.next().getLabel();n.setAllLocationsIfNull(0,t.getLocation(0)),
n.setAllLocationsIfNull(1,t.getLocation(1))}},linkAllDirectedEdges:function(){this.getEdges();for(var t=null,e=null,n=this._edgeList.size()-1;n>=0;n--){var i=this._edgeList.get(n),r=i.getSym();null===e&&(e=r),null!==t&&r.setNext(t),t=i}e.setNext(t)},computeDepths:function(){if(1===arguments.length){var t=arguments[0],e=this.findIndex(t),n=(t.getLabel(),t.getDepth(Dn.LEFT)),i=t.getDepth(Dn.RIGHT),r=this.computeDepths(e+1,this._edgeList.size(),n);if(this.computeDepths(0,e,r)!==i)throw new Jn("depth mismatch at "+
t.getCoordinate());}else if(3===arguments.length){for(var s=arguments[0],o=arguments[1],a=arguments[2],u=s;u<o;u++){var l=this._edgeList.get(u);l.getLabel();l.setEdgeDepths(Dn.RIGHT,a),a=l.getDepth(Dn.LEFT)}return a}},mergeSymLabels:function(){for(var t=this.iterator();t.hasNext();){var e=t.next();e.getLabel().merge(e.getSym().getLabel())}},linkMinimalDirectedEdges:function(t){for(var e=null,n=null,i=this._SCANNING_FOR_INCOMING,r=this._resultAreaEdgeList.size()-1;r>=0;r--){var s=this._resultAreaEdgeList.get(r),
o=s.getSym();switch(null===e&&s.getEdgeRing()===t&&(e=s),i){case this._SCANNING_FOR_INCOMING:if(o.getEdgeRing()!==t)continue;n=o,i=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(s.getEdgeRing()!==t)continue;n.setNextMin(s),i=this._SCANNING_FOR_INCOMING}}i===this._LINKING_TO_OUTGOING&&(x.isTrue(null!==e,"found null for first outgoing dirEdge"),x.isTrue(e.getEdgeRing()===t,"unable to link last incoming dirEdge"),n.setNextMin(e))},getOutgoingDegree:function(){if(0===arguments.length){for(var t=
0,e=this.iterator();e.hasNext();)e.next().isInResult()&&t++;return t}if(1===arguments.length){var n=arguments[0];for(t=0,e=this.iterator();e.hasNext();)e.next().getEdgeRing()===n&&t++;return t}},getLabel:function(){return this._label},findCoveredLineEdges:function(){for(var t=de.NONE,e=this.iterator();e.hasNext();){var n=(r=e.next()).getSym();if(!r.isLineEdge()){if(r.isInResult()){t=de.INTERIOR;break}if(n.isInResult()){t=de.EXTERIOR;break}}}if(t===de.NONE)return null;var i=t;for(e=this.iterator();e.hasNext();){var r;
n=(r=e.next()).getSym();r.isLineEdge()?r.getEdge().setCovered(i===de.INTERIOR):(r.isInResult()&&(i=de.EXTERIOR),n.isInResult()&&(i=de.INTERIOR))}},computeLabelling:function(t){pr.prototype.computeLabelling.call(this,t),this._label=new zn(de.NONE);for(var e=this.iterator();e.hasNext();)for(var n=e.next().getEdge().getLabel(),i=0;i<2;i++){var r=n.getLocation(i);r!==de.INTERIOR&&r!==de.BOUNDARY||this._label.setLocation(i,de.INTERIOR)}},interfaces_:function(){return[]},getClass:function(){return mr}}),
v(vr,ti),e(vr.prototype,{createNode:function(t){return new Kn(t,new mr)},interfaces_:function(){return[]},getClass:function(){return vr}}),e(yr.prototype,{compareTo:function(t){var e=t;return yr.compareOriented(this._pts,this._orientation,e._pts,e._orientation)},interfaces_:function(){return[g]},getClass:function(){return yr}}),yr.orientation=function(t){return 1===nt.increasingDirection(t)},yr.compareOriented=function(t,e,n,i){for(var r=e?1:-1,s=i?1:-1,o=e?t.length:-1,a=i?n.length:-1,u=e?0:t.length-
1,l=i?0:n.length-1;;){var h=t[u].compareTo(n[l]);if(0!==h)return h;var c=(u+=r)===o,f=(l+=s)===a;if(c&&!f)return-1;if(!c&&f)return 1;if(c&&f)return 0}},e(xr.prototype,{print:function(t){t.print("MULTILINESTRING ( ");for(var e=0;e<this._edges.size();e++){var n=this._edges.get(e);e>0&&t.print(","),t.print("(");for(var i=n.getCoordinates(),r=0;r<i.length;r++)r>0&&t.print(","),t.print(i[r].x+" "+i[r].y);t.println(")")}t.print(")  ")},addAll:function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next())},
findEdgeIndex:function(t){for(var e=0;e<this._edges.size();e++)if(this._edges.get(e).equals(t))return e;return-1},iterator:function(){return this._edges.iterator()},getEdges:function(){return this._edges},get:function(t){return this._edges.get(t)},findEqualEdge:function(t){var e=new yr(t.getCoordinates());return this._ocaMap.get(e)},add:function(t){this._edges.add(t);var e=new yr(t.getCoordinates());this._ocaMap.put(e,t)},interfaces_:function(){return[]},getClass:function(){return xr}}),e(Er.prototype,
{processIntersections:function(t,e,n,i){},isDone:function(){},interfaces_:function(){return[]},getClass:function(){return Er}}),e(Ir.prototype,{isTrivialIntersection:function(t,e,n,i){if(t===n&&1===this._li.getIntersectionNum()){if(Ir.isAdjacentSegments(e,i))return!0;if(t.isClosed()){var r=t.size()-1;if(0===e&&i===r||0===i&&e===r)return!0}}return!1},getProperIntersectionPoint:function(){return this._properIntersectionPoint},hasProperInteriorIntersection:function(){return this._hasProperInterior},
getLineIntersector:function(){return this._li},hasProperIntersection:function(){return this._hasProper},processIntersections:function(t,e,n,i){if(t===n&&e===i)return null;this.numTests++;var r=t.getCoordinates()[e],s=t.getCoordinates()[e+1],o=n.getCoordinates()[i],a=n.getCoordinates()[i+1];this._li.computeIntersection(r,s,o,a),this._li.hasIntersection()&&(this.numIntersections++,this._li.isInteriorIntersection()&&(this.numInteriorIntersections++,this._hasInterior=!0),this.isTrivialIntersection(t,
e,n,i)||(this._hasIntersection=!0,t.addIntersections(this._li,e,0),n.addIntersections(this._li,i,1),this._li.isProper()&&(this.numProperIntersections++,this._hasProper=!0,this._hasProperInterior=!0)))},hasIntersection:function(){return this._hasIntersection},isDone:function(){return!1},hasInteriorIntersection:function(){return this._hasInterior},interfaces_:function(){return[Er]},getClass:function(){return Ir}}),Ir.isAdjacentSegments=function(t,e){return 1===Math.abs(t-e)},e(Nr.prototype,{setWorkingPrecisionModel:function(t){this._workingPrecisionModel=
t},insertUniqueEdge:function(t){var e=this._edgeList.findEqualEdge(t);if(null!==e){var n=e.getLabel(),i=t.getLabel();e.isPointwiseEqual(t)||(i=new zn(t.getLabel())).flip(),n.merge(i);var r=Nr.depthDelta(i),s=e.getDepthDelta()+r;e.setDepthDelta(s)}else this._edgeList.add(t),t.setDepthDelta(Nr.depthDelta(t.getLabel()))},buildSubgraphs:function(t,e){for(var n=new P,i=t.iterator();i.hasNext();){var r=i.next(),s=r.getRightmostCoordinate(),o=(new gr(n)).getDepth(s);r.computeDepth(o),r.findResultEdges(),
n.add(r),e.add(r.getDirectedEdges(),r.getNodes())}},createSubgraphs:function(t){for(var e=new P,n=t.getNodes().iterator();n.hasNext();){var i=n.next();if(!i.isVisited()){var r=new rr;r.create(i),e.add(r)}}return Te.sort(e,Te.reverseOrder()),e},createEmptyResultGeometry:function(){return this._geomFact.createPolygon()},getNoder:function(t){if(null!==this._workingNoder)return this._workingNoder;var e=new Ki,n=new fe;return n.setPrecisionModel(t),e.setSegmentIntersector(new Ir(n)),e},buffer:function(t,
e){var n=this._workingPrecisionModel;null===n&&(n=t.getPrecisionModel()),this._geomFact=t.getFactory();var i=(new _r(t,e,new fr(n,this._bufParams))).getCurves();if(i.size()<=0)return this.createEmptyResultGeometry();this.computeNodedEdges(i,n),this._graph=new ei(new vr),this._graph.addEdges(this._edgeList.getEdges());var r=this.createSubgraphs(this._graph),s=new ur(this._geomFact);this.buildSubgraphs(r,s);var o=s.getPolygons();return o.size()<=0?this.createEmptyResultGeometry():this._geomFact.buildGeometry(o)},
computeNodedEdges:function(t,e){var n=this.getNoder(e);n.computeNodes(t);for(var i=n.getNodedSubstrings().iterator();i.hasNext();){var r=i.next(),s=r.getCoordinates();if(2!==s.length||!s[0].equals2D(s[1])){var o=r.getData(),a=new jn(r.getCoordinates(),new zn(o));this.insertUniqueEdge(a)}}},setNoder:function(t){this._workingNoder=t},interfaces_:function(){return[]},getClass:function(){return Nr}}),Nr.depthDelta=function(t){var e=t.getLocation(0,Dn.LEFT),n=t.getLocation(0,Dn.RIGHT);return e===de.INTERIOR&&
n===de.EXTERIOR?1:e===de.EXTERIOR&&n===de.INTERIOR?-1:0},Nr.convertSegStrings=function(t){for(var e=new se,n=new P;t.hasNext();){var i=t.next(),r=e.createLineString(i.getCoordinates());n.add(r)}return e.buildGeometry(n)},e(Cr.prototype,{checkEndPtVertexIntersections:function(){if(0===arguments.length)for(var t=this._segStrings.iterator();t.hasNext();){var e=t.next().getCoordinates();this.checkEndPtVertexIntersections(e[0],this._segStrings),this.checkEndPtVertexIntersections(e[e.length-1],this._segStrings)}else if(2===
arguments.length){var n=arguments[0];for(t=arguments[1].iterator();t.hasNext();){e=t.next().getCoordinates();for(var i=1;i<e.length-1;i++)if(e[i].equals(n))throw new m("found endpt/interior pt intersection at index "+i+" :pt "+n);}}},checkInteriorIntersections:function(){if(0===arguments.length)for(var t=this._segStrings.iterator();t.hasNext();)for(var e=t.next(),n=this._segStrings.iterator();n.hasNext();){var i=n.next();this.checkInteriorIntersections(e,i)}else if(2===arguments.length)for(var r=
arguments[0],s=arguments[1],o=r.getCoordinates(),a=s.getCoordinates(),u=0;u<o.length-1;u++)for(var l=0;l<a.length-1;l++)this.checkInteriorIntersections(r,u,s,l);else if(4===arguments.length){var h=arguments[0],c=arguments[1],f=arguments[2],g=arguments[3];if(h===f&&c===g)return null;var d=h.getCoordinates()[c],_=h.getCoordinates()[c+1],p=f.getCoordinates()[g],v=f.getCoordinates()[g+1];if(this._li.computeIntersection(d,_,p,v),this._li.hasIntersection()&&(this._li.isProper()||this.hasInteriorIntersection(this._li,
d,_)||this.hasInteriorIntersection(this._li,p,v)))throw new m("found non-noded intersection at "+d+"-"+_+" and "+p+"-"+v);}},checkValid:function(){this.checkEndPtVertexIntersections(),this.checkInteriorIntersections(),this.checkCollapses()},checkCollapses:function(){if(0===arguments.length)for(var t=this._segStrings.iterator();t.hasNext();){var e=t.next();this.checkCollapses(e)}else if(1===arguments.length){var n=arguments[0].getCoordinates();for(t=0;t<n.length-2;t++)this.checkCollapse(n[t],n[t+1],
n[t+2])}},hasInteriorIntersection:function(t,e,n){for(var i=0;i<t.getIntersectionNum();i++){var r=t.getIntersection(i);if(!r.equals(e)&&!r.equals(n))return!0}return!1},checkCollapse:function(t,e,n){if(t.equals(n))throw new m("found non-noded collapse at "+Cr.fact.createLineString([t,e,n]));},interfaces_:function(){return[]},getClass:function(){return Cr}}),Cr.fact=new se,e(Sr.prototype,{intersectsScaled:function(t,e){var n=Math.min(t.x,e.x),i=Math.max(t.x,e.x),r=Math.min(t.y,e.y),s=Math.max(t.y,e.y),
o=this._maxx<n||this._minx>i||this._maxy<r||this._miny>s;if(o)return!1;var a=this.intersectsToleranceSquare(t,e);return x.isTrue(!(o&&a),"Found bad envelope test"),a},initCorners:function(t){this._minx=t.x-.5,this._maxx=t.x+.5,this._miny=t.y-.5,this._maxy=t.y+.5,this._corner[0]=new E(this._maxx,this._maxy),this._corner[1]=new E(this._minx,this._maxy),this._corner[2]=new E(this._minx,this._miny),this._corner[3]=new E(this._maxx,this._miny)},intersects:function(t,e){return 1===this._scaleFactor?this.intersectsScaled(t,
e):(this.copyScaled(t,this._p0Scaled),this.copyScaled(e,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))},scale:function(t){return Math.round(t*this._scaleFactor)},getCoordinate:function(){return this._originalPt},copyScaled:function(t,e){e.x=this.scale(t.x),e.y=this.scale(t.y)},getSafeEnvelope:function(){if(null===this._safeEnv){var t=Sr.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new M(this._originalPt.x-t,this._originalPt.x+t,this._originalPt.y-t,this._originalPt.y+
t)}return this._safeEnv},intersectsPixelClosure:function(t,e){return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),!!this._li.hasIntersection())))},intersectsToleranceSquare:function(t,e){var n=
!1,i=!1;return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!this._li.isProper()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),!!this._li.isProper()||(this._li.hasIntersection()&&(n=!0),this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),!!this._li.isProper()||(this._li.hasIntersection()&&(i=!0),this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),!!this._li.isProper()||(!(!n||!i)||(!!t.equals(this._pt)||!!e.equals(this._pt))))))},
addSnappedNode:function(t,e){var n=t.getCoordinate(e),i=t.getCoordinate(e+1);return!!this.intersects(n,i)&&(t.addIntersection(this.getCoordinate(),e),!0)},interfaces_:function(){return[]},getClass:function(){return Sr}}),Sr.SAFE_ENV_EXPANSION_FACTOR=.75,e(Lr.prototype,{snap:function(){if(1===arguments.length){var t=arguments[0];return this.snap(t,null,-1)}if(3===arguments.length){var e=arguments[0],n=arguments[1],i=arguments[2],r=e.getSafeEnvelope(),s=new wr(e,n,i);return this._index.query(r,{interfaces_:function(){return[Ce]},
visitItem:function(t){t.select(r,s)}}),s.isNodeAdded()}},interfaces_:function(){return[]},getClass:function(){return Lr}}),v(wr,nn),e(wr.prototype,{isNodeAdded:function(){return this._isNodeAdded},select:function(){if(!(2===arguments.length&&Number.isInteger(arguments[1])&&arguments[0]instanceof fn))return nn.prototype.select.apply(this,arguments);var t=arguments[0],e=arguments[1],n=t.getContext();if(null!==this._parentEdge&&n===this._parentEdge&&e===this._hotPixelVertexIndex)return null;this._isNodeAdded=
this._hotPixel.addSnappedNode(n,e)},interfaces_:function(){return[]},getClass:function(){return wr}}),Lr.HotPixelSnapAction=wr,e(Rr.prototype,{processIntersections:function(t,e,n,i){if(t===n&&e===i)return null;var r=t.getCoordinates()[e],s=t.getCoordinates()[e+1],o=n.getCoordinates()[i],a=n.getCoordinates()[i+1];if(this._li.computeIntersection(r,s,o,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var u=0;u<this._li.getIntersectionNum();u++)this._interiorIntersections.add(this._li.getIntersection(u));
t.addIntersections(this._li,e,0),n.addIntersections(this._li,i,1)}},isDone:function(){return!1},getInteriorIntersections:function(){return this._interiorIntersections},interfaces_:function(){return[Er]},getClass:function(){return Rr}}),e(Tr.prototype,{checkCorrectness:function(t){var e=new Cr(Xi.getNodedSubstrings(t));try{e.checkValid()}catch(t){if(!(t instanceof D))throw t;t.printStackTrace()}},getNodedSubstrings:function(){return Xi.getNodedSubstrings(this._nodedSegStrings)},snapRound:function(t,
e){var n=this.findInteriorIntersections(t,e);this.computeIntersectionSnaps(n),this.computeVertexSnaps(t)},findInteriorIntersections:function(t,e){var n=new Rr(e);return this._noder.setSegmentIntersector(n),this._noder.computeNodes(t),n.getInteriorIntersections()},computeVertexSnaps:function(){if(N(arguments[0],S))for(var t=arguments[0].iterator();t.hasNext();){var e=t.next();this.computeVertexSnaps(e)}else if(arguments[0]instanceof Xi)for(var n=arguments[0],i=n.getCoordinates(),r=0;r<i.length;r++){var s=
new Sr(i[r],this._scaleFactor,this._li);this._pointSnapper.snap(s,n,r)&&n.addIntersection(i[r],r)}},computeNodes:function(t){this._nodedSegStrings=t,this._noder=new Ki,this._pointSnapper=new Lr(this._noder.getIndex()),this.snapRound(t,this._li)},computeIntersectionSnaps:function(t){for(var e=t.iterator();e.hasNext();){var n=new Sr(e.next(),this._scaleFactor,this._li);this._pointSnapper.snap(n)}},interfaces_:function(){return[Wi]},getClass:function(){return Tr}}),e(Pr.prototype,{bufferFixedPrecision:function(t){var e=
new Qi(new Tr(new ie(1)),t.getScale()),n=new Nr(this._bufParams);n.setWorkingPrecisionModel(t),n.setNoder(e),this._resultGeometry=n.buffer(this._argGeom,this._distance)},bufferReducedPrecision:function(){if(0===arguments.length){for(var t=Pr.MAX_PRECISION_DIGITS;t>=0;t--){try{this.bufferReducedPrecision(t)}catch(t){if(!(t instanceof Jn))throw t;this._saveException=t}if(null!==this._resultGeometry)return null}throw this._saveException;}if(1===arguments.length){var e=arguments[0],n=new ie(Pr.precisionScaleFactor(this._argGeom,
this._distance,e));this.bufferFixedPrecision(n)}},computeGeometry:function(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;var t=this._argGeom.getFactory().getPrecisionModel();t.getType()===ie.FIXED?this.bufferFixedPrecision(t):this.bufferReducedPrecision()},setQuadrantSegments:function(t){this._bufParams.setQuadrantSegments(t)},bufferOriginalPrecision:function(){try{var t=new Nr(this._bufParams);this._resultGeometry=t.buffer(this._argGeom,this._distance)}catch(t){if(!(t instanceof
m))throw t;this._saveException=t}},getResultGeometry:function(t){return this._distance=t,this.computeGeometry(),this._resultGeometry},setEndCapStyle:function(t){this._bufParams.setEndCapStyle(t)},interfaces_:function(){return[]},getClass:function(){return Pr}}),Pr.bufferOp=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return(new Pr(t)).getResultGeometry(e)}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof K&&"number"==typeof arguments[1]){var n=
arguments[0],i=arguments[1],r=arguments[2];return(a=new Pr(n)).setQuadrantSegments(r),a.getResultGeometry(i)}if(arguments[2]instanceof er&&arguments[0]instanceof K&&"number"==typeof arguments[1]){var s=arguments[0],o=arguments[1];return(a=new Pr(s,arguments[2])).getResultGeometry(o)}}else if(4===arguments.length){var a,u=arguments[0],l=arguments[1],h=arguments[2],c=arguments[3];return(a=new Pr(u)).setQuadrantSegments(h),a.setEndCapStyle(c),a.getResultGeometry(l)}},Pr.precisionScaleFactor=function(t,
e,n){var i=t.getEnvelopeInternal(),r=U.max(Math.abs(i.getMaxX()),Math.abs(i.getMaxY()),Math.abs(i.getMinX()),Math.abs(i.getMinY()))+2*(e>0?e:0),s=n-Math.trunc(Math.log(r)/Math.log(10)+1);return Math.pow(10,s)},Pr.CAP_ROUND=er.CAP_ROUND,Pr.CAP_BUTT=er.CAP_FLAT,Pr.CAP_FLAT=er.CAP_FLAT,Pr.CAP_SQUARE=er.CAP_SQUARE,Pr.MAX_PRECISION_DIGITS=12;var Or=Object.freeze({BufferOp:Pr,BufferParameters:er});function br(){this._comps=null;var t=arguments[0];this._comps=t}function Mr(){if(this._component=null,this._segIndex=
null,this._pt=null,2===arguments.length){var t=arguments[0],e=arguments[1];Mr.call(this,t,Mr.INSIDE_AREA,e)}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this._component=n,this._segIndex=i,this._pt=r}}function Dr(){this._pts=null;var t=arguments[0];this._pts=t}function Ar(){this._locations=null;var t=arguments[0];this._locations=t}function Fr(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new Mn,this._minDistanceLocation=null,this._minDistance=s.MAX_VALUE,
2===arguments.length){var t=arguments[0],e=arguments[1];Fr.call(this,t,e,0)}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this._geom=(new Array(2)).fill(null),this._geom[0]=n,this._geom[1]=i,this._terminateDistance=r}}e(br.prototype,{filter:function(t){t instanceof Vt&&this._comps.add(t)},interfaces_:function(){return[Ct]},getClass:function(){return br}}),br.getPolygons=function(){if(1===arguments.length){var t=arguments[0];return br.getPolygons(t,new P)}if(2===arguments.length){var e=
arguments[0],n=arguments[1];return e instanceof Vt?n.add(e):e instanceof Lt&&e.apply(new br(n)),n}},e(Mr.prototype,{isInsideArea:function(){return this._segIndex===Mr.INSIDE_AREA},getCoordinate:function(){return this._pt},getGeometryComponent:function(){return this._component},getSegmentIndex:function(){return this._segIndex},interfaces_:function(){return[]},getClass:function(){return Mr}}),Mr.INSIDE_AREA=-1,e(Dr.prototype,{filter:function(t){t instanceof Gt&&this._pts.add(t)},interfaces_:function(){return[Ct]},
getClass:function(){return Dr}}),Dr.getPoints=function(){if(1===arguments.length){var t=arguments[0];return t instanceof Gt?Te.singletonList(t):Dr.getPoints(t,new P)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e instanceof Gt?n.add(e):e instanceof Lt&&e.apply(new Dr(n)),n}},e(Ar.prototype,{filter:function(t){(t instanceof Gt||t instanceof At||t instanceof Vt)&&this._locations.add(new Mr(t,0,t.getCoordinate()))},interfaces_:function(){return[Ct]},getClass:function(){return Ar}}),
Ar.getLocations=function(t){var e=new P;return t.apply(new Ar(e)),e},e(Fr.prototype,{computeContainmentDistance:function(){if(0===arguments.length){var t=(new Array(2)).fill(null);if(this.computeContainmentDistance(0,t),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],i=this._geom[e];if(i.getDimension()<2)return null;var r=1-e,s=br.getPolygons(i);if(s.size()>0){var o=Ar.getLocations(this._geom[r]);
if(this.computeContainmentDistance(o,s,n),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[r]=n[0],this._minDistanceLocation[e]=n[1],null}}else if(3===arguments.length)if(arguments[2]instanceof Array&&N(arguments[0],w)&&N(arguments[1],w))for(var a=arguments[0],u=arguments[1],l=arguments[2],h=0;h<a.size();h++)for(var c=a.get(h),f=0;f<u.size();f++){if(this.computeContainmentDistance(c,u.get(f),l),this._minDistance<=this._terminateDistance)return null}else if(arguments[2]instanceof
Array&&arguments[0]instanceof Mr&&arguments[1]instanceof Vt){var g=arguments[0],d=arguments[1],_=arguments[2],p=g.getCoordinate();if(de.EXTERIOR!==this._ptLocator.locate(p,d))return this._minDistance=0,_[0]=g,_[1]=new Mr(d,p),null}},computeMinDistanceLinesPoints:function(t,e,n){for(var i=0;i<t.size();i++)for(var r=t.get(i),s=0;s<e.size();s++){var o=e.get(s);if(this.computeMinDistance(r,o,n),this._minDistance<=this._terminateDistance)return null}},computeFacetDistance:function(){var t=(new Array(2)).fill(null),
e=be.getLines(this._geom[0]),n=be.getLines(this._geom[1]),i=Dr.getPoints(this._geom[0]),r=Dr.getPoints(this._geom[1]);return this.computeMinDistanceLines(e,n,t),this.updateMinDistance(t,!1),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistanceLinesPoints(e,r,t),this.updateMinDistance(t,!1),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistanceLinesPoints(n,i,t),this.updateMinDistance(t,!0),this._minDistance<=this._terminateDistance?
null:(t[0]=null,t[1]=null,this.computeMinDistancePoints(i,r,t),void this.updateMinDistance(t,!1))))},nearestLocations:function(){return this.computeMinDistance(),this._minDistanceLocation},updateMinDistance:function(t,e){if(null===t[0])return null;e?(this._minDistanceLocation[0]=t[1],this._minDistanceLocation[1]=t[0]):(this._minDistanceLocation[0]=t[0],this._minDistanceLocation[1]=t[1])},nearestPoints:function(){return this.computeMinDistance(),[this._minDistanceLocation[0].getCoordinate(),this._minDistanceLocation[1].getCoordinate()]},
computeMinDistance:function(){if(0===arguments.length){if(null!==this._minDistanceLocation)return null;if(this._minDistanceLocation=(new Array(2)).fill(null),this.computeContainmentDistance(),this._minDistance<=this._terminateDistance)return null;this.computeFacetDistance()}else if(3===arguments.length)if(arguments[2]instanceof Array&&arguments[0]instanceof At&&arguments[1]instanceof Gt){var t=arguments[0],e=arguments[1],n=arguments[2];if(t.getEnvelopeInternal().distance(e.getEnvelopeInternal())>
this._minDistance)return null;for(var i=t.getCoordinates(),r=e.getCoordinate(),s=0;s<i.length-1;s++){if((f=X.pointToSegment(r,i[s],i[s+1]))<this._minDistance){this._minDistance=f;var o=(new ge(i[s],i[s+1])).closestPoint(r);n[0]=new Mr(t,s,o),n[1]=new Mr(e,0,r)}if(this._minDistance<=this._terminateDistance)return null}}else if(arguments[2]instanceof Array&&arguments[0]instanceof At&&arguments[1]instanceof At){var a=arguments[0],u=arguments[1],l=arguments[2];if(a.getEnvelopeInternal().distance(u.getEnvelopeInternal())>
this._minDistance)return null;i=a.getCoordinates();var h=u.getCoordinates();for(s=0;s<i.length-1;s++)for(var c=0;c<h.length-1;c++){var f;if((f=X.segmentToSegment(i[s],i[s+1],h[c],h[c+1]))<this._minDistance){this._minDistance=f;var g=new ge(i[s],i[s+1]),d=new ge(h[c],h[c+1]),_=g.closestPoints(d);l[0]=new Mr(a,s,_[0]),l[1]=new Mr(u,c,_[1])}if(this._minDistance<=this._terminateDistance)return null}}},computeMinDistancePoints:function(t,e,n){for(var i=0;i<t.size();i++)for(var r=t.get(i),s=0;s<e.size();s++){var o=
e.get(s),a=r.getCoordinate().distance(o.getCoordinate());if(a<this._minDistance&&(this._minDistance=a,n[0]=new Mr(r,0,r.getCoordinate()),n[1]=new Mr(o,0,o.getCoordinate())),this._minDistance<=this._terminateDistance)return null}},distance:function(){if(null===this._geom[0]||null===this._geom[1])throw new i("null geometries are not supported");return this._geom[0].isEmpty()||this._geom[1].isEmpty()?0:(this.computeMinDistance(),this._minDistance)},computeMinDistanceLines:function(t,e,n){for(var i=0;i<
t.size();i++)for(var r=t.get(i),s=0;s<e.size();s++){var o=e.get(s);if(this.computeMinDistance(r,o,n),this._minDistance<=this._terminateDistance)return null}},interfaces_:function(){return[]},getClass:function(){return Fr}}),Fr.distance=function(t,e){return(new Fr(t,e)).distance()},Fr.isWithinDistance=function(t,e,n){return!(t.getEnvelopeInternal().distance(e.getEnvelopeInternal())>n)&&(new Fr(t,e,n)).distance()<=n},Fr.nearestPoints=function(t,e){return(new Fr(t,e)).nearestPoints()};var Gr=Object.freeze({DistanceOp:Fr});
function qr(){this._factory=null,this._directedEdges=new P,this._coordinates=null;var t=arguments[0];this._factory=t}function Br(){this._isMarked=!1,this._isVisited=!1,this._data=null}function Vr(){Br.apply(this),this._parentEdge=null,this._from=null,this._to=null,this._p0=null,this._p1=null,this._sym=null,this._edgeDirection=null,this._quadrant=null,this._angle=null;var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this._from=t,this._to=e,this._edgeDirection=i,this._p0=t.getCoordinate(),
this._p1=n;var r=this._p1.x-this._p0.x,s=this._p1.y-this._p0.y;this._quadrant=gn.quadrant(r,s),this._angle=Math.atan2(s,r)}function zr(){var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];Vr.call(this,t,e,n,i)}function Yr(){if(Br.apply(this),this._dirEdge=null,0===arguments.length);else if(2===arguments.length){var t=arguments[0],e=arguments[1];this.setDirectedEdges(t,e)}}function kr(){this._outEdges=new P,this._sorted=!1}function Ur(){if(Br.apply(this),this._pt=null,this._deStar=null,
1===arguments.length){var t=arguments[0];Ur.call(this,t,new kr)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._pt=e,this._deStar=n}}function Xr(){Yr.apply(this),this._line=null;var t=arguments[0];this._line=t}function Hr(){this._nodeMap=new pt}function Wr(){this._edges=new ut,this._dirEdges=new ut,this._nodeMap=new Hr}function jr(){Wr.apply(this)}function Kr(){this._graph=new jr,this._mergedLineStrings=null,this._factory=null,this._edgeStrings=null}e(qr.prototype,{getCoordinates:function(){if(null===
this._coordinates){for(var t=0,e=0,n=new b,i=this._directedEdges.iterator();i.hasNext();){var r=i.next();r.getEdgeDirection()?t++:e++,n.add(r.getEdge().getLine().getCoordinates(),!1,r.getEdgeDirection())}this._coordinates=n.toCoordinateArray(),e>t&&nt.reverse(this._coordinates)}return this._coordinates},toLineString:function(){return this._factory.createLineString(this.getCoordinates())},add:function(t){this._directedEdges.add(t)},interfaces_:function(){return[]},getClass:function(){return qr}}),
e(Br.prototype,{setVisited:function(t){this._isVisited=t},isMarked:function(){return this._isMarked},setData:function(t){this._data=t},getData:function(){return this._data},setMarked:function(t){this._isMarked=t},getContext:function(){return this._data},isVisited:function(){return this._isVisited},setContext:function(t){this._data=t},interfaces_:function(){return[]},getClass:function(){return Br}}),Br.getComponentWithVisitedState=function(t,e){for(;t.hasNext();){var n=t.next();if(n.isVisited()===
e)return n}return null},Br.setVisited=function(t,e){for(;t.hasNext();)t.next().setVisited(e)},Br.setMarked=function(t,e){for(;t.hasNext();)t.next().setMarked(e)},v(Vr,Br),e(Vr.prototype,{isRemoved:function(){return null===this._parentEdge},compareDirection:function(t){return this._quadrant>t._quadrant?1:this._quadrant<t._quadrant?-1:z.index(t._p0,t._p1,this._p1)},getCoordinate:function(){return this._from.getCoordinate()},print:function(t){var e=this.getClass().getName(),n=e.lastIndexOf("."),i=e.substring(n+
1);t.print("  "+i+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+this._angle)},getDirectionPt:function(){return this._p1},getAngle:function(){return this._angle},compareTo:function(t){var e=t;return this.compareDirection(e)},getFromNode:function(){return this._from},getSym:function(){return this._sym},setEdge:function(t){this._parentEdge=t},remove:function(){this._sym=null,this._parentEdge=null},getEdge:function(){return this._parentEdge},getQuadrant:function(){return this._quadrant},setSym:function(t){this._sym=
t},getToNode:function(){return this._to},getEdgeDirection:function(){return this._edgeDirection},interfaces_:function(){return[g]},getClass:function(){return Vr}}),Vr.toEdges=function(t){for(var e=new P,n=t.iterator();n.hasNext();)e.add(n.next()._parentEdge);return e},v(zr,Vr),e(zr.prototype,{getNext:function(){return 2!==this.getToNode().getDegree()?null:this.getToNode().getOutEdges().getEdges().get(0)===this.getSym()?this.getToNode().getOutEdges().getEdges().get(1):(x.isTrue(this.getToNode().getOutEdges().getEdges().get(1)===
this.getSym()),this.getToNode().getOutEdges().getEdges().get(0))},interfaces_:function(){return[]},getClass:function(){return zr}}),v(Yr,Br),e(Yr.prototype,{isRemoved:function(){return null===this._dirEdge},setDirectedEdges:function(t,e){this._dirEdge=[t,e],t.setEdge(this),e.setEdge(this),t.setSym(e),e.setSym(t),t.getFromNode().addOutEdge(t),e.getFromNode().addOutEdge(e)},getDirEdge:function(){if(Number.isInteger(arguments[0])){var t=arguments[0];return this._dirEdge[t]}if(arguments[0]instanceof Ur){var e=
arguments[0];return this._dirEdge[0].getFromNode()===e?this._dirEdge[0]:this._dirEdge[1].getFromNode()===e?this._dirEdge[1]:null}},remove:function(){this._dirEdge=null},getOppositeNode:function(t){return this._dirEdge[0].getFromNode()===t?this._dirEdge[0].getToNode():this._dirEdge[1].getFromNode()===t?this._dirEdge[1].getToNode():null},interfaces_:function(){return[]},getClass:function(){return Yr}}),e(kr.prototype,{getNextEdge:function(t){var e=this.getIndex(t);return this._outEdges.get(this.getIndex(e+
1))},getCoordinate:function(){var t=this.iterator();return t.hasNext()?t.next().getCoordinate():null},iterator:function(){return this.sortEdges(),this._outEdges.iterator()},sortEdges:function(){this._sorted||(Te.sort(this._outEdges),this._sorted=!0)},remove:function(t){this._outEdges.remove(t)},getEdges:function(){return this.sortEdges(),this._outEdges},getNextCWEdge:function(t){var e=this.getIndex(t);return this._outEdges.get(this.getIndex(e-1))},getIndex:function(){if(arguments[0]instanceof Yr){var t=
arguments[0];this.sortEdges();for(var e=0;e<this._outEdges.size();e++)if(this._outEdges.get(e).getEdge()===t)return e;return-1}if(arguments[0]instanceof Vr){var n=arguments[0];this.sortEdges();for(e=0;e<this._outEdges.size();e++)if(this._outEdges.get(e)===n)return e;return-1}if(Number.isInteger(arguments[0])){var i=arguments[0]%this._outEdges.size();return i<0&&(i+=this._outEdges.size()),i}},add:function(t){this._outEdges.add(t),this._sorted=!1},getDegree:function(){return this._outEdges.size()},
interfaces_:function(){return[]},getClass:function(){return kr}}),v(Ur,Br),e(Ur.prototype,{isRemoved:function(){return null===this._pt},addOutEdge:function(t){this._deStar.add(t)},getCoordinate:function(){return this._pt},getOutEdges:function(){return this._deStar},remove:function(){if(0===arguments.length)this._pt=null;else if(1===arguments.length){var t=arguments[0];this._deStar.remove(t)}},getIndex:function(t){return this._deStar.getIndex(t)},getDegree:function(){return this._deStar.getDegree()},
interfaces_:function(){return[]},getClass:function(){return Ur}}),Ur.getEdgesBetween=function(t,e){var n=new ut(Vr.toEdges(t.getOutEdges().getEdges())),i=Vr.toEdges(e.getOutEdges().getEdges());return n.retainAll(i),n},v(Xr,Yr),e(Xr.prototype,{getLine:function(){return this._line},interfaces_:function(){return[]},getClass:function(){return Xr}}),e(Hr.prototype,{find:function(t){return this._nodeMap.get(t)},iterator:function(){return this._nodeMap.values().iterator()},remove:function(t){return this._nodeMap.remove(t)},
values:function(){return this._nodeMap.values()},add:function(t){return this._nodeMap.put(t.getCoordinate(),t),t},interfaces_:function(){return[]},getClass:function(){return Hr}}),e(Wr.prototype,{findNodesOfDegree:function(t){for(var e=new P,n=this.nodeIterator();n.hasNext();){var i=n.next();i.getDegree()===t&&e.add(i)}return e},dirEdgeIterator:function(){return this._dirEdges.iterator()},edgeIterator:function(){return this._edges.iterator()},remove:function(){if(arguments[0]instanceof Yr){var t=
arguments[0];this.remove(t.getDirEdge(0)),this.remove(t.getDirEdge(1)),this._edges.remove(t),t.remove()}else if(arguments[0]instanceof Vr){var e=arguments[0];null!==(r=e.getSym())&&r.setSym(null),e.getFromNode().remove(e),e.remove(),this._dirEdges.remove(e)}else if(arguments[0]instanceof Ur){for(var n=arguments[0],i=n.getOutEdges().getEdges().iterator();i.hasNext();){var r,s=i.next();null!==(r=s.getSym())&&this.remove(r),this._dirEdges.remove(s);var o=s.getEdge();null!==o&&this._edges.remove(o)}this._nodeMap.remove(n.getCoordinate()),
n.remove()}},findNode:function(t){return this._nodeMap.find(t)},getEdges:function(){return this._edges},nodeIterator:function(){return this._nodeMap.iterator()},contains:function(){if(arguments[0]instanceof Yr){var t=arguments[0];return this._edges.contains(t)}if(arguments[0]instanceof Vr){var e=arguments[0];return this._dirEdges.contains(e)}},add:function(){if(arguments[0]instanceof Ur){var t=arguments[0];this._nodeMap.add(t)}else if(arguments[0]instanceof Yr){var e=arguments[0];this._edges.add(e),
this.add(e.getDirEdge(0)),this.add(e.getDirEdge(1))}else if(arguments[0]instanceof Vr){var n=arguments[0];this._dirEdges.add(n)}},getNodes:function(){return this._nodeMap.values()},interfaces_:function(){return[]},getClass:function(){return Wr}}),v(jr,Wr),e(jr.prototype,{addEdge:function(t){if(t.isEmpty())return null;var e=nt.removeRepeatedPoints(t.getCoordinates());if(e.length<=1)return null;var n=e[0],i=e[e.length-1],r=this.getNode(n),s=this.getNode(i),o=new zr(r,s,e[1],!0),a=new zr(s,r,e[e.length-
2],!1),u=new Xr(t);u.setDirectedEdges(o,a),this.add(u)},getNode:function(t){var e=this.findNode(t);return null===e&&(e=new Ur(t),this.add(e)),e},interfaces_:function(){return[]},getClass:function(){return jr}}),e(Kr.prototype,{buildEdgeStringsForUnprocessedNodes:function(){for(var t=this._graph.getNodes().iterator();t.hasNext();){var e=t.next();e.isMarked()||(x.isTrue(2===e.getDegree()),this.buildEdgeStringsStartingAt(e),e.setMarked(!0))}},buildEdgeStringsForNonDegree2Nodes:function(){for(var t=this._graph.getNodes().iterator();t.hasNext();){var e=
t.next();2!==e.getDegree()&&(this.buildEdgeStringsStartingAt(e),e.setMarked(!0))}},buildEdgeStringsForObviousStartNodes:function(){this.buildEdgeStringsForNonDegree2Nodes()},getMergedLineStrings:function(){return this.merge(),this._mergedLineStrings},buildEdgeStringsStartingAt:function(t){for(var e=t.getOutEdges().iterator();e.hasNext();){var n=e.next();n.getEdge().isMarked()||this._edgeStrings.add(this.buildEdgeStringStartingWith(n))}},merge:function(){if(null!==this._mergedLineStrings)return null;
Br.setMarked(this._graph.nodeIterator(),!1),Br.setMarked(this._graph.edgeIterator(),!1),this._edgeStrings=new P,this.buildEdgeStringsForObviousStartNodes(),this.buildEdgeStringsForIsolatedLoops(),this._mergedLineStrings=new P;for(var t=this._edgeStrings.iterator();t.hasNext();){var e=t.next();this._mergedLineStrings.add(e.toLineString())}},buildEdgeStringStartingWith:function(t){var e=new qr(this._factory),n=t;do e.add(n),n.getEdge().setMarked(!0),n=n.getNext();while(null!==n&&n!==t);return e},add:function(){if(arguments[0]instanceof
K)arguments[0].apply({interfaces_:function(){return[j]},filter:function(t){t instanceof At&&this.add(t)}});else if(N(arguments[0],S)){var t=arguments[0];this._mergedLineStrings=null;for(var e=t.iterator();e.hasNext();){var n=e.next();this.add(n)}}else if(arguments[0]instanceof At){var i=arguments[0];null===this._factory&&(this._factory=i.getFactory()),this._graph.addEdge(i)}},buildEdgeStringsForIsolatedLoops:function(){this.buildEdgeStringsForUnprocessedNodes()},interfaces_:function(){return[]},getClass:function(){return Kr}});
var Zr=Object.freeze({LineMerger:Kr});function Qr(){this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e}function Jr(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new P,this._intersectionCount=0,this._keepIntersections=!0;var t=arguments[0];this._li=t,this._interiorIntersection=null}function $r(){this._li=new fe,this._segStrings=null,this._findAllIntersections=
!1,this._segInt=null,this._isValid=!0;var t=arguments[0];this._segStrings=t}function ts(){this._nv=null;var t=arguments[0];this._nv=new $r(ts.toSegmentStrings(t))}function es(){this._mapOp=null;var t=arguments[0];this._mapOp=t}function ns(){this._op=null,this._geometryFactory=null,this._ptLocator=null,this._lineEdgesList=new P,this._resultLineList=new P;var t=arguments[0],e=arguments[1],n=arguments[2];this._op=t,this._geometryFactory=e,this._ptLocator=n}function is(){this._op=null,this._geometryFactory=
null,this._resultPointList=new P;var t=arguments[0],e=arguments[1];this._op=t,this._geometryFactory=e}function rs(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new ge,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof At&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];rs.call(this,t.getCoordinates(),e)}else if(arguments[0]instanceof Array&&"number"==typeof arguments[1]){var n=arguments[0],i=arguments[1];this._srcPts=n,this._isClosed=rs.isClosed(n),
this._snapTolerance=i}}function ss(){this._srcGeom=null;var t=arguments[0];this._srcGeom=t}function os(){if(In.apply(this),this._snapTolerance=null,this._snapPts=null,this._isSelfSnap=!1,2===arguments.length){var t=arguments[0],e=arguments[1];this._snapTolerance=t,this._snapPts=e}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this._snapTolerance=n,this._snapPts=i,this._isSelfSnap=r}}function as(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=new r,
this._commonSignExp=null}function us(){this._commonCoord=null,this._ccFilter=new ls}function ls(){this._commonBitsX=new as,this._commonBitsY=new as}function hs(){this.trans=null;var t=arguments[0];this.trans=t}function cs(){this._geom=(new Array(2)).fill(null),this._snapTolerance=null,this._cbr=null;var t=arguments[0],e=arguments[1];this._geom[0]=t,this._geom[1]=e,this.computeSnapTolerance()}function fs(){this._geom=(new Array(2)).fill(null);var t=arguments[0],e=arguments[1];this._geom[0]=t,this._geom[1]=
e}function gs(){if(this._li=new fe,this._resultPrecisionModel=null,this._arg=null,1===arguments.length){var t=arguments[0];this.setComputationPrecision(t.getPrecisionModel()),this._arg=(new Array(1)).fill(null),this._arg[0]=new ni(0,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];gs.call(this,e,n,Q.OGC_SFS_BOUNDARY_RULE)}else if(3===arguments.length){var i=arguments[0],r=arguments[1],s=arguments[2];i.getPrecisionModel().compareTo(r.getPrecisionModel())>=0?this.setComputationPrecision(i.getPrecisionModel()):
this.setComputationPrecision(r.getPrecisionModel()),this._arg=(new Array(2)).fill(null),this._arg[0]=new ni(0,i,s),this._arg[1]=new ni(1,r,s)}}function ds(){this._ptLocator=new Mn,this._geomFact=null,this._resultGeom=null,this._graph=null,this._edgeList=new xr,this._resultPolyList=new P,this._resultLineList=new P,this._resultPointList=new P;var t=arguments[0],e=arguments[1];gs.call(this,t,e),this._graph=new ei(new vr),this._geomFact=t.getFactory()}e(Qr.prototype,{getCoordinates:function(){return this._pts},
size:function(){return this._pts.length},getCoordinate:function(t){return this._pts[t]},isClosed:function(){return this._pts[0].equals(this._pts[this._pts.length-1])},getSegmentOctant:function(t){return t===this._pts.length-1?-1:Yi.octant(this.getCoordinate(t),this.getCoordinate(t+1))},setData:function(t){this._data=t},getData:function(){return this._data},toString:function(){return he.toLineString(new Kt(this._pts))},interfaces_:function(){return[ki]},getClass:function(){return Qr}}),e(Jr.prototype,
{getInteriorIntersection:function(){return this._interiorIntersection},setCheckEndSegmentsOnly:function(t){this._isCheckEndSegmentsOnly=t},getIntersectionSegments:function(){return this._intSegments},count:function(){return this._intersectionCount},getIntersections:function(){return this._intersections},setFindAllIntersections:function(t){this._findAllIntersections=t},setKeepIntersections:function(t){this._keepIntersections=t},processIntersections:function(t,e,n,i){if(!this._findAllIntersections&&
this.hasIntersection())return null;if(t===n&&e===i)return null;if(this._isCheckEndSegmentsOnly&&!(this.isEndSegment(t,e)||this.isEndSegment(n,i)))return null;var r=t.getCoordinates()[e],s=t.getCoordinates()[e+1],o=n.getCoordinates()[i],a=n.getCoordinates()[i+1];this._li.computeIntersection(r,s,o,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=(new Array(4)).fill(null),this._intSegments[0]=r,this._intSegments[1]=s,this._intSegments[2]=o,this._intSegments[3]=a,this._interiorIntersection=
this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)},isEndSegment:function(t,e){return 0===e||e>=t.size()-2},hasIntersection:function(){return null!==this._interiorIntersection},isDone:function(){return!this._findAllIntersections&&null!==this._interiorIntersection},interfaces_:function(){return[Er]},getClass:function(){return Jr}}),Jr.createAllIntersectionsFinder=function(t){var e=new Jr(t);return e.setFindAllIntersections(!0),
e},Jr.createAnyIntersectionFinder=function(t){return new Jr(t)},Jr.createIntersectionCounter=function(t){var e=new Jr(t);return e.setFindAllIntersections(!0),e.setKeepIntersections(!1),e},e($r.prototype,{execute:function(){if(null!==this._segInt)return null;this.checkInteriorIntersections()},getIntersections:function(){return this._segInt.getIntersections()},isValid:function(){return this.execute(),this._isValid},setFindAllIntersections:function(t){this._findAllIntersections=t},checkInteriorIntersections:function(){this._isValid=
!0,this._segInt=new Jr(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var t=new Ki;if(t.setSegmentIntersector(this._segInt),t.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null},checkValid:function(){if(this.execute(),!this._isValid)throw new Jn(this.getErrorMessage(),this._segInt.getInteriorIntersection());},getErrorMessage:function(){if(this._isValid)return"no intersections found";var t=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+
he.toLineString(t[0],t[1])+" and "+he.toLineString(t[2],t[3])},interfaces_:function(){return[]},getClass:function(){return $r}}),$r.computeIntersections=function(t){var e=new $r(t);return e.setFindAllIntersections(!0),e.isValid(),e.getIntersections()},e(ts.prototype,{checkValid:function(){this._nv.checkValid()},interfaces_:function(){return[]},getClass:function(){return ts}}),ts.toSegmentStrings=function(t){for(var e=new P,n=t.iterator();n.hasNext();){var i=n.next();e.add(new Qr(i.getCoordinates(),
i))}return e},ts.checkValid=function(t){(new ts(t)).checkValid()},e(es.prototype,{map:function(t){for(var e=new P,n=0;n<t.getNumGeometries();n++){var i=this._mapOp.map(t.getGeometryN(n));i.isEmpty()||e.add(i)}return t.getFactory().createGeometryCollection(se.toGeometryArray(e))},interfaces_:function(){return[]},getClass:function(){return es}}),es.map=function(t,e){return(new es(e)).map(t)},e(ns.prototype,{collectLines:function(t){for(var e=this._op.getGraph().getEdgeEnds().iterator();e.hasNext();){var n=
e.next();this.collectLineEdge(n,t,this._lineEdgesList),this.collectBoundaryTouchEdge(n,t,this._lineEdgesList)}},labelIsolatedLine:function(t,e){var n=this._ptLocator.locate(t.getCoordinate(),this._op.getArgGeometry(e));t.getLabel().setLocation(e,n)},build:function(t){return this.findCoveredLineEdges(),this.collectLines(t),this.buildLines(t),this._resultLineList},collectLineEdge:function(t,e,n){var i=t.getLabel(),r=t.getEdge();t.isLineEdge()&&(t.isVisited()||!ds.isResultOfOp(i,e)||r.isCovered()||(n.add(r),
t.setVisitedEdge(!0)))},findCoveredLineEdges:function(){for(var t=this._op.getGraph().getNodes().iterator();t.hasNext();)t.next().getEdges().findCoveredLineEdges();for(var e=this._op.getGraph().getEdgeEnds().iterator();e.hasNext();){var n=e.next(),i=n.getEdge();if(n.isLineEdge()&&!i.isCoveredSet()){var r=this._op.isCoveredByA(n.getCoordinate());i.setCovered(r)}}},labelIsolatedLines:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),i=n.getLabel();n.isIsolated()&&(i.isNull(0)?this.labelIsolatedLine(n,
0):this.labelIsolatedLine(n,1))}},buildLines:function(t){for(var e=this._lineEdgesList.iterator();e.hasNext();){var n=e.next(),i=(n.getLabel(),this._geometryFactory.createLineString(n.getCoordinates()));this._resultLineList.add(i),n.setInResult(!0)}},collectBoundaryTouchEdge:function(t,e,n){var i=t.getLabel();return t.isLineEdge()?null:t.isVisited()?null:t.isInteriorAreaEdge()?null:t.getEdge().isInResult()?null:(x.isTrue(!(t.isInResult()||t.getSym().isInResult())||!t.getEdge().isInResult()),void(ds.isResultOfOp(i,
e)&&e===ds.INTERSECTION&&(n.add(t.getEdge()),t.setVisitedEdge(!0))))},interfaces_:function(){return[]},getClass:function(){return ns}}),e(is.prototype,{filterCoveredNodeToPoint:function(t){var e=t.getCoordinate();if(!this._op.isCoveredByLA(e)){var n=this._geometryFactory.createPoint(e);this._resultPointList.add(n)}},extractNonCoveredResultNodes:function(t){for(var e=this._op.getGraph().getNodes().iterator();e.hasNext();){var n=e.next();if(!n.isInResult()&&(!n.isIncidentEdgeInResult()&&(0===n.getEdges().getDegree()||
t===ds.INTERSECTION))){var i=n.getLabel();ds.isResultOfOp(i,t)&&this.filterCoveredNodeToPoint(n)}}},build:function(t){return this.extractNonCoveredResultNodes(t),this._resultPointList},interfaces_:function(){return[]},getClass:function(){return is}}),e(rs.prototype,{snapVertices:function(t,e){for(var n=this._isClosed?t.size()-1:t.size(),i=0;i<n;i++){var r=t.get(i),s=this.findSnapForVertex(r,e);null!==s&&(t.set(i,new E(s)),0===i&&this._isClosed&&t.set(t.size()-1,new E(s)))}},findSnapForVertex:function(t,
e){for(var n=0;n<e.length;n++){if(t.equals2D(e[n]))return null;if(t.distance(e[n])<this._snapTolerance)return e[n]}return null},snapTo:function(t){var e=new b(this._srcPts);return this.snapVertices(e,t),this.snapSegments(e,t),e.toCoordinateArray()},snapSegments:function(t,e){if(0===e.length)return null;var n=e.length;e[0].equals2D(e[e.length-1])&&(n=e.length-1);for(var i=0;i<n;i++){var r=e[i],s=this.findSegmentIndexToSnap(r,t);s>=0&&t.add(s+1,new E(r),!1)}},findSegmentIndexToSnap:function(t,e){for(var n=
s.MAX_VALUE,i=-1,r=0;r<e.size()-1;r++){if(this._seg.p0=e.get(r),this._seg.p1=e.get(r+1),this._seg.p0.equals2D(t)||this._seg.p1.equals2D(t)){if(this._allowSnappingToSourceVertices)continue;return-1}var o=this._seg.distance(t);o<this._snapTolerance&&o<n&&(n=o,i=r)}return i},setAllowSnappingToSourceVertices:function(t){this._allowSnappingToSourceVertices=t},interfaces_:function(){return[]},getClass:function(){return rs}}),rs.isClosed=function(t){return!(t.length<=1)&&t[0].equals2D(t[t.length-1])},e(ss.prototype,
{snapTo:function(t,e){return(new os(e,this.extractTargetCoordinates(t))).transform(this._srcGeom)},snapToSelf:function(t,e){var n=(new os(t,this.extractTargetCoordinates(this._srcGeom),!0)).transform(this._srcGeom),i=n;return e&&N(i,Bt)&&(i=n.buffer(0)),i},computeSnapTolerance:function(t){return this.computeMinimumSegmentLength(t)/10},extractTargetCoordinates:function(t){for(var e=new yt,n=t.getCoordinates(),i=0;i<n.length;i++)e.add(n[i]);return e.toArray((new Array(0)).fill(null))},computeMinimumSegmentLength:function(t){for(var e=
s.MAX_VALUE,n=0;n<t.length-1;n++){var i=t[n].distance(t[n+1]);i<e&&(e=i)}return e},interfaces_:function(){return[]},getClass:function(){return ss}}),ss.snap=function(t,e,n){var i=(new Array(2)).fill(null),r=new ss(t);i[0]=r.snapTo(e,n);var s=new ss(e);return i[1]=s.snapTo(i[0],n),i},ss.computeOverlaySnapTolerance=function(){if(1===arguments.length){var t=arguments[0],e=ss.computeSizeBasedSnapTolerance(t),n=t.getPrecisionModel();if(n.getType()===ie.FIXED){var i=1/n.getScale()*2/1.415;i>e&&(e=i)}return e}if(2===
arguments.length){var r=arguments[0],s=arguments[1];return Math.min(ss.computeOverlaySnapTolerance(r),ss.computeOverlaySnapTolerance(s))}},ss.computeSizeBasedSnapTolerance=function(t){var e=t.getEnvelopeInternal();return Math.min(e.getHeight(),e.getWidth())*ss.SNAP_PRECISION_FACTOR},ss.snapToSelf=function(t,e,n){return(new ss(t)).snapToSelf(e,n)},ss.SNAP_PRECISION_FACTOR=1E-9,v(os,In),e(os.prototype,{snapLine:function(t,e){var n=new rs(t,this._snapTolerance);return n.setAllowSnappingToSourceVertices(this._isSelfSnap),
n.snapTo(e)},transformCoordinates:function(t,e){var n=t.toCoordinateArray(),i=this.snapLine(n,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(i)},interfaces_:function(){return[]},getClass:function(){return os}}),e(as.prototype,{getCommon:function(){return s.longBitsToDouble(this._commonBits)},add:function(t){var e=s.doubleToLongBits(t);return this._isFirst?(this._commonBits=e,this._commonSignExp=as.signExpBits(this._commonBits),this._isFirst=!1,null):as.signExpBits(e)!==
this._commonSignExp?(this._commonBits.high=0,this._commonBits.low=0,null):(this._commonMantissaBitsCount=as.numCommonMostSigMantissaBits(this._commonBits,e),void(this._commonBits=as.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))))},toString:function(){if(1===arguments.length){var t=arguments[0],e=s.longBitsToDouble(t),n="0000000000000000000000000000000000000000000000000000000000000000"+r.toBinaryString(t),i=n.substring(n.length-64);return i.substring(0,1)+"  "+i.substring(1,
12)+"(exp) "+i.substring(12)+" [ "+e+" ]"}},interfaces_:function(){return[]},getClass:function(){return as}}),as.getBit=function(t,e){var n=1<<e%32;return e<32?0!=(t.low&n)?1:0:0!=(t.high&n)?1:0},as.signExpBits=function(t){return t.high>>>20},as.zeroLowerBits=function(t,e){var n="low";if(e>32&&(t.low=0,e%=32,n="high"),e>0){var i=e<32?~((1<<e)-1):0;t[n]&=i}return t},as.numCommonMostSigMantissaBits=function(t,e){for(var n=0,i=52;i>=0;i--){if(as.getBit(t,i)!==as.getBit(e,i))return n;n++}return 52},e(us.prototype,
{addCommonBits:function(t){var e=new hs(this._commonCoord);t.apply(e),t.geometryChanged()},removeCommonBits:function(t){if(0===this._commonCoord.x&&0===this._commonCoord.y)return t;var e=new E(this._commonCoord);e.x=-e.x,e.y=-e.y;var n=new hs(e);return t.apply(n),t.geometryChanged(),t},getCommonCoordinate:function(){return this._commonCoord},add:function(t){t.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()},interfaces_:function(){return[]},getClass:function(){return us}}),
e(ls.prototype,{filter:function(t){this._commonBitsX.add(t.x),this._commonBitsY.add(t.y)},getCommonCoordinate:function(){return new E(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())},interfaces_:function(){return[Z]},getClass:function(){return ls}}),e(hs.prototype,{filter:function(t,e){var n=t.getOrdinate(e,0)+this.trans.x,i=t.getOrdinate(e,1)+this.trans.y;t.setOrdinate(e,0,n),t.setOrdinate(e,1,i)},isDone:function(){return!1},isGeometryChanged:function(){return!0},interfaces_:function(){return[St]},
getClass:function(){return hs}}),us.CommonCoordinateFilter=ls,us.Translater=hs,e(cs.prototype,{selfSnap:function(t){return(new ss(t)).snapTo(t,this._snapTolerance)},removeCommonBits:function(t){this._cbr=new us,this._cbr.add(t[0]),this._cbr.add(t[1]);var e=(new Array(2)).fill(null);return e[0]=this._cbr.removeCommonBits(t[0].copy()),e[1]=this._cbr.removeCommonBits(t[1].copy()),e},prepareResult:function(t){return this._cbr.addCommonBits(t),t},getResultGeometry:function(t){var e=this.snap(this._geom),
n=ds.overlayOp(e[0],e[1],t);return this.prepareResult(n)},checkValid:function(t){t.isValid()||Y.out.println("Snapped geometry is invalid")},computeSnapTolerance:function(){this._snapTolerance=ss.computeOverlaySnapTolerance(this._geom[0],this._geom[1])},snap:function(t){var e=this.removeCommonBits(t);return ss.snap(e[0],e[1],this._snapTolerance)},interfaces_:function(){return[]},getClass:function(){return cs}}),cs.overlayOp=function(t,e,n){return(new cs(t,e)).getResultGeometry(n)},cs.union=function(t,
e){return cs.overlayOp(t,e,ds.UNION)},cs.intersection=function(t,e){return cs.overlayOp(t,e,ds.INTERSECTION)},cs.symDifference=function(t,e){return cs.overlayOp(t,e,ds.SYMDIFFERENCE)},cs.difference=function(t,e){return cs.overlayOp(t,e,ds.DIFFERENCE)},e(fs.prototype,{getResultGeometry:function(t){var e=null,n=!1,i=null;try{e=ds.overlayOp(this._geom[0],this._geom[1],t);n=!0}catch(t){if(!(t instanceof m))throw t;i=t}if(!n)try{e=cs.overlayOp(this._geom[0],this._geom[1],t)}catch(t){throw t instanceof
m?i:t;}return e},interfaces_:function(){return[]},getClass:function(){return fs}}),fs.overlayOp=function(t,e,n){return(new fs(t,e)).getResultGeometry(n)},fs.union=function(t,e){return fs.overlayOp(t,e,ds.UNION)},fs.intersection=function(t,e){return fs.overlayOp(t,e,ds.INTERSECTION)},fs.symDifference=function(t,e){return fs.overlayOp(t,e,ds.SYMDIFFERENCE)},fs.difference=function(t,e){return fs.overlayOp(t,e,ds.DIFFERENCE)},e(gs.prototype,{getArgGeometry:function(t){return this._arg[t].getGeometry()},
setComputationPrecision:function(t){this._resultPrecisionModel=t,this._li.setPrecisionModel(this._resultPrecisionModel)},interfaces_:function(){return[]},getClass:function(){return gs}}),v(ds,gs),e(ds.prototype,{insertUniqueEdge:function(t){var e=this._edgeList.findEqualEdge(t);if(null!==e){var n=e.getLabel(),i=t.getLabel();e.isPointwiseEqual(t)||(i=new zn(t.getLabel())).flip();var r=e.getDepth();r.isNull()&&r.add(n),r.add(i),n.merge(i)}else this._edgeList.add(t)},getGraph:function(){return this._graph},
cancelDuplicateResultEdges:function(){for(var t=this._graph.getEdgeEnds().iterator();t.hasNext();){var e=t.next(),n=e.getSym();e.isInResult()&&n.isInResult()&&(e.setInResult(!1),n.setInResult(!1))}},isCoveredByLA:function(t){return!!this.isCovered(t,this._resultLineList)||!!this.isCovered(t,this._resultPolyList)},computeGeometry:function(t,e,n,i){var r=new P;return r.addAll(t),r.addAll(e),r.addAll(n),r.isEmpty()?ds.createEmptyResult(i,this._arg[0].getGeometry(),this._arg[1].getGeometry(),this._geomFact):
this._geomFact.buildGeometry(r)},mergeSymLabels:function(){for(var t=this._graph.getNodes().iterator();t.hasNext();)t.next().getEdges().mergeSymLabels()},isCovered:function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next();if(this._ptLocator.locate(t,i)!==de.EXTERIOR)return!0}return!1},replaceCollapsedEdges:function(){for(var t=new P,e=this._edgeList.iterator();e.hasNext();){var n=e.next();n.isCollapsed()&&(e.remove(),t.add(n.getCollapsedEdge()))}this._edgeList.addAll(t)},updateNodeLabelling:function(){for(var t=
this._graph.getNodes().iterator();t.hasNext();){var e=t.next(),n=e.getEdges().getLabel();e.getLabel().merge(n)}},getResultGeometry:function(t){return this.computeOverlay(t),this._resultGeom},insertUniqueEdges:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this.insertUniqueEdge(n)}},computeOverlay:function(t){this.copyPoints(0),this.copyPoints(1),this._arg[0].computeSelfNodes(this._li,!1),this._arg[1].computeSelfNodes(this._li,!1),this._arg[0].computeEdgeIntersections(this._arg[1],
this._li,!0);var e=new P;this._arg[0].computeSplitEdges(e),this._arg[1].computeSplitEdges(e),this.insertUniqueEdges(e),this.computeLabelsFromDepths(),this.replaceCollapsedEdges(),ts.checkValid(this._edgeList.getEdges()),this._graph.addEdges(this._edgeList.getEdges()),this.computeLabelling(),this.labelIncompleteNodes(),this.findResultAreaEdges(t),this.cancelDuplicateResultEdges();var n=new ur(this._geomFact);n.add(this._graph),this._resultPolyList=n.getPolygons();var i=new ns(this,this._geomFact,this._ptLocator);
this._resultLineList=i.build(t);var r=new is(this,this._geomFact,this._ptLocator);this._resultPointList=r.build(t),this._resultGeom=this.computeGeometry(this._resultPointList,this._resultLineList,this._resultPolyList,t)},labelIncompleteNode:function(t,e){var n=this._ptLocator.locate(t.getCoordinate(),this._arg[e].getGeometry());t.getLabel().setLocation(e,n)},copyPoints:function(t){for(var e=this._arg[t].getNodeIterator();e.hasNext();){var n=e.next();this._graph.addNode(n.getCoordinate()).setLabel(t,
n.getLabel().getLocation(t))}},findResultAreaEdges:function(t){for(var e=this._graph.getEdgeEnds().iterator();e.hasNext();){var n=e.next(),i=n.getLabel();i.isArea()&&!n.isInteriorAreaEdge()&&ds.isResultOfOp(i.getLocation(0,Dn.RIGHT),i.getLocation(1,Dn.RIGHT),t)&&n.setInResult(!0)}},computeLabelsFromDepths:function(){for(var t=this._edgeList.iterator();t.hasNext();){var e=t.next(),n=e.getLabel(),i=e.getDepth();if(!i.isNull()){i.normalize();for(var r=0;r<2;r++)n.isNull(r)||!n.isArea()||i.isNull(r)||
(0===i.getDelta(r)?n.toLine(r):(x.isTrue(!i.isNull(r,Dn.LEFT),"depth of LEFT side has not been initialized"),n.setLocation(r,Dn.LEFT,i.getLocation(r,Dn.LEFT)),x.isTrue(!i.isNull(r,Dn.RIGHT),"depth of RIGHT side has not been initialized"),n.setLocation(r,Dn.RIGHT,i.getLocation(r,Dn.RIGHT))))}}},computeLabelling:function(){for(var t=this._graph.getNodes().iterator();t.hasNext();)t.next().getEdges().computeLabelling(this._arg);this.mergeSymLabels(),this.updateNodeLabelling()},labelIncompleteNodes:function(){for(var t=
this._graph.getNodes().iterator();t.hasNext();){var e=t.next(),n=e.getLabel();e.isIsolated()&&(n.isNull(0)?this.labelIncompleteNode(e,0):this.labelIncompleteNode(e,1)),e.getEdges().updateLabelling(n)}},isCoveredByA:function(t){return!!this.isCovered(t,this._resultPolyList)},interfaces_:function(){return[]},getClass:function(){return ds}}),ds.overlayOp=function(t,e,n){return(new ds(t,e)).getResultGeometry(n)},ds.union=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return ds.createEmptyResult(ds.UNION,
t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}if(t.isGeometryCollection()||e.isGeometryCollection())throw new i("This method does not support GeometryCollection arguments");return fs.overlayOp(t,e,ds.UNION)},ds.intersection=function(t,e){if(t.isEmpty()||e.isEmpty())return ds.createEmptyResult(ds.INTERSECTION,t,e,t.getFactory());if(t.isGeometryCollection()){var n=e;return es.map(t,{interfaces_:function(){return[MapOp]},map:function(t){return t.intersection(n)}})}if(t.isGeometryCollection()||
e.isGeometryCollection())throw new i("This method does not support GeometryCollection arguments");return fs.overlayOp(t,e,ds.INTERSECTION)},ds.symDifference=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return ds.createEmptyResult(ds.SYMDIFFERENCE,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}if(t.isGeometryCollection()||e.isGeometryCollection())throw new i("This method does not support GeometryCollection arguments");return fs.overlayOp(t,
e,ds.SYMDIFFERENCE)},ds.resultDimension=function(t,e,n){var i=e.getDimension(),r=n.getDimension(),s=-1;switch(t){case ds.INTERSECTION:s=Math.min(i,r);break;case ds.UNION:s=Math.max(i,r);break;case ds.DIFFERENCE:s=i;break;case ds.SYMDIFFERENCE:s=Math.max(i,r)}return s},ds.createEmptyResult=function(t,e,n,i){var r=null;switch(ds.resultDimension(t,e,n)){case -1:r=i.createGeometryCollection();break;case 0:r=i.createPoint();break;case 1:r=i.createLineString();break;case 2:r=i.createPolygon()}return r},
ds.difference=function(t,e){if(t.isEmpty())return ds.createEmptyResult(ds.DIFFERENCE,t,e,t.getFactory());if(e.isEmpty())return t.copy();if(t.isGeometryCollection()||e.isGeometryCollection())throw new i("This method does not support GeometryCollection arguments");return fs.overlayOp(t,e,ds.DIFFERENCE)},ds.isResultOfOp=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=t.getLocation(0),i=t.getLocation(1);return ds.isResultOfOp(n,i,e)}if(3===arguments.length){var r=arguments[0],
s=arguments[1],o=arguments[2];switch(r===de.BOUNDARY&&(r=de.INTERIOR),s===de.BOUNDARY&&(s=de.INTERIOR),o){case ds.INTERSECTION:return r===de.INTERIOR&&s===de.INTERIOR;case ds.UNION:return r===de.INTERIOR||s===de.INTERIOR;case ds.DIFFERENCE:return r===de.INTERIOR&&s!==de.INTERIOR;case ds.SYMDIFFERENCE:return r===de.INTERIOR&&s!==de.INTERIOR||r!==de.INTERIOR&&s===de.INTERIOR}return!1}},ds.INTERSECTION=1,ds.UNION=2,ds.DIFFERENCE=3,ds.SYMDIFFERENCE=4;var _s=Object.freeze({OverlayOp:ds});function ps(){this._edgeRing=
null,this._next=null,this._label=-1;var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];Vr.call(this,t,e,n,i)}function ms(){Yr.apply(this),this._line=null;var t=arguments[0];this._line=t}function vs(){this._factory=null,this._deList=new P,this._lowestEdge=null,this._ring=null,this._ringPts=null,this._holes=null,this._shell=null,this._isHole=null,this._isProcessed=!1,this._isIncludedSet=!1,this._isIncluded=!1;var t=arguments[0];this._factory=t}function ys(){}function xs(){Wr.apply(this),
this._factory=null;var t=arguments[0];this._factory=t}function Es(){if(this._lineStringAdder=new Is(this),this._graph=null,this._dangles=new P,this._cutEdges=new P,this._invalidRingLines=new P,this._holeList=null,this._shellList=null,this._polyList=null,this._isCheckingRingsValid=!0,this._extractOnlyPolygonal=null,this._geomFactory=null,0===arguments.length)Es.call(this,!1);else if(1===arguments.length){var t=arguments[0];this._extractOnlyPolygonal=t}}function Is(){this.p=null;var t=arguments[0];
this.p=t}v(ps,Vr),e(ps.prototype,{getNext:function(){return this._next},isInRing:function(){return null!==this._edgeRing},setRing:function(t){this._edgeRing=t},setLabel:function(t){this._label=t},getLabel:function(){return this._label},setNext:function(t){this._next=t},getRing:function(){return this._edgeRing},interfaces_:function(){return[]},getClass:function(){return ps}}),v(ms,Yr),e(ms.prototype,{getLine:function(){return this._line},interfaces_:function(){return[]},getClass:function(){return ms}}),
e(vs.prototype,{isIncluded:function(){return this._isIncluded},getCoordinates:function(){if(null===this._ringPts){for(var t=new b,e=this._deList.iterator();e.hasNext();){var n=e.next(),i=n.getEdge();vs.addEdge(i.getLine().getCoordinates(),n.getEdgeDirection(),t)}this._ringPts=t.toCoordinateArray()}return this._ringPts},isIncludedSet:function(){return this._isIncludedSet},isValid:function(){return this.getCoordinates(),!(this._ringPts.length<=3)&&(this.getRing(),this._ring.isValid())},build:function(t){var e=
t;do this.add(e),e.setRing(this),e=e.getNext(),x.isTrue(null!==e,"found null DE in ring"),x.isTrue(e===t||!e.isInRing(),"found DE already in ring");while(e!==t)},isOuterHole:function(){return!!this._isHole&&!this.hasShell()},getPolygon:function(){var t=null;if(null!==this._holes){t=(new Array(this._holes.size())).fill(null);for(var e=0;e<this._holes.size();e++)t[e]=this._holes.get(e)}return this._factory.createPolygon(this._ring,t)},isHole:function(){return this._isHole},isProcessed:function(){return this._isProcessed},
addHole:function(){if(arguments[0]instanceof Yt){var t=arguments[0];null===this._holes&&(this._holes=new P),this._holes.add(t)}else if(arguments[0]instanceof vs){var e=arguments[0];e.setShell(this);var n=e.getRing();null===this._holes&&(this._holes=new P),this._holes.add(n)}},setIncluded:function(t){this._isIncluded=t,this._isIncludedSet=!0},getOuterHole:function(){if(this.isHole())return null;for(var t=0;t<this._deList.size();t++){var e=this._deList.get(t).getSym().getRing();if(e.isOuterHole())return e}return null},
computeHole:function(){var t=this.getRing();this._isHole=z.isCCW(t.getCoordinates())},hasShell:function(){return null!==this._shell},isOuterShell:function(){return null!==this.getOuterHole()},getLineString:function(){return this.getCoordinates(),this._factory.createLineString(this._ringPts)},toString:function(){return he.toLineString(new Kt(this.getCoordinates()))},getShell:function(){return this.isHole()?this._shell:this},add:function(t){this._deList.add(t)},getRing:function(){if(null!==this._ring)return this._ring;
this.getCoordinates(),this._ringPts.length<3&&Y.out.println(this._ringPts);try{this._ring=this._factory.createLinearRing(this._ringPts)}catch(t){if(!(t instanceof D))throw t;Y.out.println(this._ringPts)}return this._ring},updateIncluded:function(){if(this.isHole())return null;for(var t=0;t<this._deList.size();t++){var e=this._deList.get(t).getSym().getRing().getShell();if(null!==e&&e.isIncludedSet())return this.setIncluded(!e.isIncluded()),null}},setShell:function(t){this._shell=t},setProcessed:function(t){this._isProcessed=
t},interfaces_:function(){return[]},getClass:function(){return vs}}),vs.findDirEdgesInRing=function(t){var e=t,n=new P;do n.add(e),e=e.getNext(),x.isTrue(null!==e,"found null DE in ring"),x.isTrue(e===t||!e.isInRing(),"found DE already in ring");while(e!==t);return n},vs.addEdge=function(t,e,n){if(e)for(var i=0;i<t.length;i++)n.add(t[i],!1);else for(i=t.length-1;i>=0;i--)n.add(t[i],!1)},vs.findEdgeRingContaining=function(t,e){for(var n=t.getRing(),i=n.getEnvelopeInternal(),r=n.getCoordinateN(0),s=
null,o=null,a=e.iterator();a.hasNext();){var u=a.next(),l=u.getRing(),h=l.getEnvelopeInternal();if(!h.equals(i)&&h.contains(i)){r=nt.ptNotInList(n.getCoordinates(),l.getCoordinates());var c=!1;qe.isInRing(r,l.getCoordinates())&&(c=!0),c&&(null===s||o.contains(h))&&(o=(s=u).getRing().getEnvelopeInternal())}}return s},e(ys.prototype,{compare:function(t,e){var n=e;return t.getRing().getEnvelope().compareTo(n.getRing().getEnvelope())},interfaces_:function(){return[_]},getClass:function(){return ys}}),
vs.EnvelopeComparator=ys,v(xs,Wr),e(xs.prototype,{findEdgeRing:function(t){var e=new vs(this._factory);return e.build(t),e},computeDepthParity:function(){if(0===arguments.length)for(;;)return null;else arguments.length},computeNextCWEdges:function(){for(var t=this.nodeIterator();t.hasNext();){var e=t.next();xs.computeNextCWEdges(e)}},addEdge:function(t){if(t.isEmpty())return null;var e=nt.removeRepeatedPoints(t.getCoordinates());if(e.length<2)return null;var n=e[0],i=e[e.length-1],r=this.getNode(n),
s=this.getNode(i),o=new ps(r,s,e[1],!0),a=new ps(s,r,e[e.length-2],!1),u=new ms(t);u.setDirectedEdges(o,a),this.add(u)},deleteCutEdges:function(){this.computeNextCWEdges(),xs.findLabeledEdgeRings(this._dirEdges);for(var t=new P,e=this._dirEdges.iterator();e.hasNext();){var n=e.next();if(!n.isMarked()){var i=n.getSym();if(n.getLabel()===i.getLabel()){n.setMarked(!0),i.setMarked(!0);var r=n.getEdge();t.add(r.getLine())}}}return t},getEdgeRings:function(){this.computeNextCWEdges(),xs.label(this._dirEdges,
-1);var t=xs.findLabeledEdgeRings(this._dirEdges);this.convertMaximalToMinimalEdgeRings(t);for(var e=new P,n=this._dirEdges.iterator();n.hasNext();){var i=n.next();if(!i.isMarked()&&!i.isInRing()){var r=this.findEdgeRing(i);e.add(r)}}return e},getNode:function(t){var e=this.findNode(t);return null===e&&(e=new Ur(t),this.add(e)),e},convertMaximalToMinimalEdgeRings:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),i=n.getLabel(),r=xs.findIntersectionNodes(n,i);if(null!==r)for(var s=r.iterator();s.hasNext();){var o=
s.next();xs.computeNextCCWEdges(o,i)}}},deleteDangles:function(){for(var t=this.findNodesOfDegree(1),e=new ut,n=new je,i=t.iterator();i.hasNext();)n.push(i.next());for(;!n.isEmpty();){var r=n.pop();xs.deleteAllEdges(r);for(i=r.getOutEdges().getEdges().iterator();i.hasNext();){var s=i.next();s.setMarked(!0);var o=s.getSym();null!==o&&o.setMarked(!0);var a=s.getEdge();e.add(a.getLine());var u=s.getToNode();1===xs.getDegreeNonDeleted(u)&&n.push(u)}}return e},interfaces_:function(){return[]},getClass:function(){return xs}}),
xs.findLabeledEdgeRings=function(t){for(var e=new P,n=1,i=t.iterator();i.hasNext();){var r=i.next();if(!r.isMarked()&&!(r.getLabel()>=0)){e.add(r);var s=vs.findDirEdgesInRing(r);xs.label(s,n),n++}}return e},xs.getDegreeNonDeleted=function(t){for(var e=0,n=t.getOutEdges().getEdges().iterator();n.hasNext();)n.next().isMarked()||e++;return e},xs.deleteAllEdges=function(t){for(var e=t.getOutEdges().getEdges().iterator();e.hasNext();){var n=e.next();n.setMarked(!0);var i=n.getSym();null!==i&&i.setMarked(!0)}},
xs.label=function(t,e){for(var n=t.iterator();n.hasNext();)n.next().setLabel(e)},xs.computeNextCWEdges=function(t){for(var e=null,n=null,i=t.getOutEdges().getEdges().iterator();i.hasNext();){var r=i.next();if(!r.isMarked()){if(null===e&&(e=r),null!==n)n.getSym().setNext(r);n=r}}null!==n&&n.getSym().setNext(e)},xs.computeNextCCWEdges=function(t,e){for(var n=null,i=null,r=t.getOutEdges().getEdges(),s=r.size()-1;s>=0;s--){var o=r.get(s),a=o.getSym(),u=null;o.getLabel()===e&&(u=o);var l=null;a.getLabel()===
e&&(l=a),null===u&&null===l||(null!==l&&(i=l),null!==u&&(null!==i&&(i.setNext(u),i=null),null===n&&(n=u)))}null!==i&&(x.isTrue(null!==n),i.setNext(n))},xs.getDegree=function(t,e){for(var n=0,i=t.getOutEdges().getEdges().iterator();i.hasNext();)i.next().getLabel()===e&&n++;return n},xs.findIntersectionNodes=function(t,e){var n=t,i=null;do{var r=n.getFromNode();xs.getDegree(r,e)>1&&(null===i&&(i=new P),i.add(r)),n=n.getNext(),x.isTrue(null!==n,"found null DE in ring"),x.isTrue(n===t||!n.isInRing(),
"found DE already in ring")}while(n!==t);return i},e(Es.prototype,{getGeometry:function(){return null===this._geomFactory&&(this._geomFactory=new se),this.polygonize(),this._extractOnlyPolygonal?this._geomFactory.buildGeometry(this._polyList):this._geomFactory.createGeometryCollection(se.toGeometryArray(this._polyList))},getInvalidRingLines:function(){return this.polygonize(),this._invalidRingLines},findValidRings:function(t,e,n){for(var i=t.iterator();i.hasNext();){var r=i.next();r.isValid()?e.add(r):
n.add(r.getLineString())}},polygonize:function(){if(null!==this._polyList)return null;if(this._polyList=new P,null===this._graph)return null;this._dangles=this._graph.deleteDangles(),this._cutEdges=this._graph.deleteCutEdges();var t=this._graph.getEdgeRings(),e=new P;this._invalidRingLines=new P,this._isCheckingRingsValid?this.findValidRings(t,e,this._invalidRingLines):e=t,this.findShellsAndHoles(e),Es.assignHolesToShells(this._holeList,this._shellList),Te.sort(this._shellList,new vs.EnvelopeComparator);
var n=!0;this._extractOnlyPolygonal&&(Es.findDisjointShells(this._shellList),n=!1),this._polyList=Es.extractPolygons(this._shellList,n)},getDangles:function(){return this.polygonize(),this._dangles},getCutEdges:function(){return this.polygonize(),this._cutEdges},getPolygons:function(){return this.polygonize(),this._polyList},add:function(){if(N(arguments[0],S))for(var t=arguments[0].iterator();t.hasNext();){var e=t.next();this.add(e)}else if(arguments[0]instanceof At){var n=arguments[0];this._geomFactory=
n.getFactory(),null===this._graph&&(this._graph=new xs(this._geomFactory)),this._graph.addEdge(n)}else if(arguments[0]instanceof K)arguments[0].apply(this._lineStringAdder)},setCheckRingsValid:function(t){this._isCheckingRingsValid=t},findShellsAndHoles:function(t){this._holeList=new P,this._shellList=new P;for(var e=t.iterator();e.hasNext();){var n=e.next();n.computeHole(),n.isHole()?this._holeList.add(n):this._shellList.add(n)}},interfaces_:function(){return[]},getClass:function(){return Es}}),
Es.findOuterShells=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),i=n.getOuterHole();null===i||i.isProcessed()||(n.setIncluded(!0),i.setProcessed(!0))}},Es.extractPolygons=function(t,e){for(var n=new P,i=t.iterator();i.hasNext();){var r=i.next();(e||r.isIncluded())&&n.add(r.getPolygon())}return n},Es.assignHolesToShells=function(t,e){for(var n=t.iterator();n.hasNext();){var i=n.next();Es.assignHoleToShell(i,e)}},Es.assignHoleToShell=function(t,e){var n=vs.findEdgeRingContaining(t,
e);null!==n&&n.addHole(t)},Es.findDisjointShells=function(t){Es.findOuterShells(t);var e=null;do{e=!1;for(var n=t.iterator();n.hasNext();){var i=n.next();i.isIncludedSet()||(i.updateIncluded(),i.isIncludedSet()||(e=!0))}}while(e)},e(Is.prototype,{filter:function(t){t instanceof At&&this.p.add(t)},interfaces_:function(){return[j]},getClass:function(){return Is}}),Es.LineStringAdder=Is;var Ns=Object.freeze({Polygonizer:Es});function Cs(){}function Ss(){if(this._edgeEnds=new P,1===arguments.length){var t=
arguments[0];Ss.call(this,null,t)}else if(2===arguments.length){arguments[0];var e=arguments[1];Qn.call(this,e.getEdge(),e.getCoordinate(),e.getDirectedCoordinate(),new zn(e.getLabel())),this.insert(e)}}function Ls(){pr.apply(this)}function ws(){var t=arguments[0],e=arguments[1];Kn.call(this,t,e)}function Rs(){ti.apply(this)}function Ts(){this._li=new fe,this._ptLocator=new Mn,this._arg=null,this._nodes=new Zn(new Rs),this._im=null,this._isolatedEdges=new P,this._invalidPoint=null;var t=arguments[0];
this._arg=t}function Ps(){this._rectEnv=null;var t=arguments[0];this._rectEnv=t.getEnvelopeInternal()}function Os(){this._li=new fe,this._rectEnv=null,this._diagUp0=null,this._diagUp1=null,this._diagDown0=null,this._diagDown1=null;var t=arguments[0];this._rectEnv=t,this._diagUp0=new E(t.getMinX(),t.getMinY()),this._diagUp1=new E(t.getMaxX(),t.getMaxY()),this._diagDown0=new E(t.getMinX(),t.getMaxY()),this._diagDown1=new E(t.getMaxX(),t.getMinY())}function bs(){this._isDone=!1}function Ms(){this._rectangle=
null,this._rectEnv=null;var t=arguments[0];this._rectangle=t,this._rectEnv=t.getEnvelopeInternal()}function Ds(){bs.apply(this),this._rectEnv=null,this._intersects=!1;var t=arguments[0];this._rectEnv=t}function As(){bs.apply(this),this._rectSeq=null,this._rectEnv=null,this._containsPoint=!1;var t=arguments[0];this._rectSeq=t.getExteriorRing().getCoordinateSequence(),this._rectEnv=t.getEnvelopeInternal()}function Fs(){bs.apply(this),this._rectEnv=null,this._rectIntersector=null,this._hasIntersection=
!1,this._p0=new E,this._p1=new E;var t=arguments[0];this._rectEnv=t.getEnvelopeInternal(),this._rectIntersector=new Os(this._rectEnv)}function Gs(){if(this._relate=null,2===arguments.length){var t=arguments[0],e=arguments[1];gs.call(this,t,e),this._relate=new Ts(this._arg)}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];gs.call(this,n,i,r),this._relate=new Ts(this._arg)}}e(Cs.prototype,{createEdgeEndForNext:function(t,e,n,i){var r=n.segmentIndex+1;if(r>=t.getNumPoints()&&
null===i)return null;var s=t.getCoordinate(r);null!==i&&i.segmentIndex===n.segmentIndex&&(s=i.coord);var o=new Qn(t,n.coord,s,new zn(t.getLabel()));e.add(o)},createEdgeEndForPrev:function(t,e,n,i){var r=n.segmentIndex;if(0===n.dist){if(0===r)return null;r--}var s=t.getCoordinate(r);null!==i&&i.segmentIndex>=r&&(s=i.coord);var o=new zn(t.getLabel());o.flip();var a=new Qn(t,n.coord,s,o);e.add(a)},computeEdgeEnds:function(){if(1===arguments.length){for(var t=arguments[0],e=new P,n=t;n.hasNext();){var i=
n.next();this.computeEdgeEnds(i,e)}return e}if(2===arguments.length){var r=arguments[0],s=arguments[1],o=r.getEdgeIntersectionList();o.addEndpoints();var a=o.iterator(),u=null,l=null;if(!a.hasNext())return null;var h=a.next();do u=l,l=h,h=null,a.hasNext()&&(h=a.next()),null!==l&&(this.createEdgeEndForPrev(r,s,l,u),this.createEdgeEndForNext(r,s,l,h));while(null!==l)}},interfaces_:function(){return[]},getClass:function(){return Cs}}),v(Ss,Qn),e(Ss.prototype,{insert:function(t){this._edgeEnds.add(t)},
print:function(t){t.println("EdgeEndBundle--\x3e Label: "+this._label);for(var e=this.iterator();e.hasNext();)e.next().print(t),t.println()},iterator:function(){return this._edgeEnds.iterator()},getEdgeEnds:function(){return this._edgeEnds},computeLabelOn:function(t,e){for(var n=0,i=!1,r=this.iterator();r.hasNext();)(s=r.next().getLabel().getLocation(t))===de.BOUNDARY&&n++,s===de.INTERIOR&&(i=!0);var s=de.NONE;i&&(s=de.INTERIOR),n>0&&(s=ni.determineBoundary(e,n)),this._label.setLocation(t,s)},computeLabelSide:function(t,
e){for(var n=this.iterator();n.hasNext();){var i=n.next();if(i.getLabel().isArea()){var r=i.getLabel().getLocation(t,e);if(r===de.INTERIOR)return this._label.setLocation(t,e,de.INTERIOR),null;r===de.EXTERIOR&&this._label.setLocation(t,e,de.EXTERIOR)}}},getLabel:function(){return this._label},computeLabelSides:function(t){this.computeLabelSide(t,Dn.LEFT),this.computeLabelSide(t,Dn.RIGHT)},updateIM:function(t){jn.updateIM(this._label,t)},computeLabel:function(t){for(var e=!1,n=this.iterator();n.hasNext();)n.next().getLabel().isArea()&&
(e=!0);this._label=e?new zn(de.NONE,de.NONE,de.NONE):new zn(de.NONE);for(var i=0;i<2;i++)this.computeLabelOn(i,t),e&&this.computeLabelSides(i)},interfaces_:function(){return[]},getClass:function(){return Ss}}),v(Ls,pr),e(Ls.prototype,{updateIM:function(t){for(var e=this.iterator();e.hasNext();)e.next().updateIM(t)},insert:function(t){var e=this._edgeMap.get(t);null===e?(e=new Ss(t),this.insertEdgeEnd(t,e)):e.insert(t)},interfaces_:function(){return[]},getClass:function(){return Ls}}),v(ws,Kn),e(ws.prototype,
{updateIMFromEdges:function(t){this._edges.updateIM(t)},computeIM:function(t){t.setAtLeastIfValid(this._label.getLocation(0),this._label.getLocation(1),0)},interfaces_:function(){return[]},getClass:function(){return ws}}),v(Rs,ti),e(Rs.prototype,{createNode:function(t){return new ws(t,new Ls)},interfaces_:function(){return[]},getClass:function(){return Rs}}),e(Ts.prototype,{insertEdgeEnds:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this._nodes.add(n)}},computeProperIntersectionIM:function(t,
e){var n=this._arg[0].getGeometry().getDimension(),i=this._arg[1].getGeometry().getDimension(),r=t.hasProperIntersection(),s=t.hasProperInteriorIntersection();2===n&&2===i?r&&e.setAtLeast("212101212"):2===n&&1===i?(r&&e.setAtLeast("FFF0FFFF2"),s&&e.setAtLeast("1FFFFF1FF")):1===n&&2===i?(r&&e.setAtLeast("F0FFFFFF2"),s&&e.setAtLeast("1F1FFFFFF")):1===n&&1===i&&s&&e.setAtLeast("0FFFFFFFF")},labelIsolatedEdges:function(t,e){for(var n=this._arg[t].getEdgeIterator();n.hasNext();){var i=n.next();i.isIsolated()&&
(this.labelIsolatedEdge(i,e,this._arg[e].getGeometry()),this._isolatedEdges.add(i))}},labelIsolatedEdge:function(t,e,n){if(n.getDimension()>0){var i=this._ptLocator.locate(t.getCoordinate(),n);t.getLabel().setAllLocations(e,i)}else t.getLabel().setAllLocations(e,de.EXTERIOR)},computeIM:function(){var t=new _e;if(t.set(de.EXTERIOR,de.EXTERIOR,2),!this._arg[0].getGeometry().getEnvelopeInternal().intersects(this._arg[1].getGeometry().getEnvelopeInternal()))return this.computeDisjointIM(t),t;this._arg[0].computeSelfNodes(this._li,
!1),this._arg[1].computeSelfNodes(this._li,!1);var e=this._arg[0].computeEdgeIntersections(this._arg[1],this._li,!1);this.computeIntersectionNodes(0),this.computeIntersectionNodes(1),this.copyNodesAndLabels(0),this.copyNodesAndLabels(1),this.labelIsolatedNodes(),this.computeProperIntersectionIM(e,t);var n=new Cs,i=n.computeEdgeEnds(this._arg[0].getEdgeIterator());this.insertEdgeEnds(i);var r=n.computeEdgeEnds(this._arg[1].getEdgeIterator());return this.insertEdgeEnds(r),this.labelNodeEdges(),this.labelIsolatedEdges(0,
1),this.labelIsolatedEdges(1,0),this.updateIM(t),t},labelNodeEdges:function(){for(var t=this._nodes.iterator();t.hasNext();)t.next().getEdges().computeLabelling(this._arg)},copyNodesAndLabels:function(t){for(var e=this._arg[t].getNodeIterator();e.hasNext();){var n=e.next();this._nodes.addNode(n.getCoordinate()).setLabel(t,n.getLabel().getLocation(t))}},labelIntersectionNodes:function(t){for(var e=this._arg[t].getEdgeIterator();e.hasNext();)for(var n=e.next(),i=n.getLabel().getLocation(t),r=n.getEdgeIntersectionList().iterator();r.hasNext();){var s=
r.next(),o=this._nodes.find(s.coord);o.getLabel().isNull(t)&&(i===de.BOUNDARY?o.setLabelBoundary(t):o.setLabel(t,de.INTERIOR))}},labelIsolatedNode:function(t,e){var n=this._ptLocator.locate(t.getCoordinate(),this._arg[e].getGeometry());t.getLabel().setAllLocations(e,n)},computeIntersectionNodes:function(t){for(var e=this._arg[t].getEdgeIterator();e.hasNext();)for(var n=e.next(),i=n.getLabel().getLocation(t),r=n.getEdgeIntersectionList().iterator();r.hasNext();){var s=r.next(),o=this._nodes.addNode(s.coord);
i===de.BOUNDARY?o.setLabelBoundary(t):o.getLabel().isNull(t)&&o.setLabel(t,de.INTERIOR)}},labelIsolatedNodes:function(){for(var t=this._nodes.iterator();t.hasNext();){var e=t.next(),n=e.getLabel();x.isTrue(n.getGeometryCount()>0,"node with empty label found"),e.isIsolated()&&(n.isNull(0)?this.labelIsolatedNode(e,0):this.labelIsolatedNode(e,1))}},updateIM:function(t){for(var e=this._isolatedEdges.iterator();e.hasNext();)e.next().updateIM(t);for(var n=this._nodes.iterator();n.hasNext();){var i=n.next();
i.updateIM(t),i.updateIMFromEdges(t)}},computeDisjointIM:function(t){var e=this._arg[0].getGeometry();e.isEmpty()||(t.set(de.INTERIOR,de.EXTERIOR,e.getDimension()),t.set(de.BOUNDARY,de.EXTERIOR,e.getBoundaryDimension()));var n=this._arg[1].getGeometry();n.isEmpty()||(t.set(de.EXTERIOR,de.INTERIOR,n.getDimension()),t.set(de.EXTERIOR,de.BOUNDARY,n.getBoundaryDimension()))},interfaces_:function(){return[]},getClass:function(){return Ts}}),e(Ps.prototype,{isContainedInBoundary:function(t){if(t instanceof
Vt)return!1;if(t instanceof Gt)return this.isPointContainedInBoundary(t);if(t instanceof At)return this.isLineStringContainedInBoundary(t);for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);if(!this.isContainedInBoundary(n))return!1}return!0},isLineSegmentContainedInBoundary:function(t,e){if(t.equals(e))return this.isPointContainedInBoundary(t);if(t.x===e.x){if(t.x===this._rectEnv.getMinX()||t.x===this._rectEnv.getMaxX())return!0}else if(t.y===e.y&&(t.y===this._rectEnv.getMinY()||t.y===
this._rectEnv.getMaxY()))return!0;return!1},isLineStringContainedInBoundary:function(t){for(var e=t.getCoordinateSequence(),n=new E,i=new E,r=0;r<e.size()-1;r++)if(e.getCoordinate(r,n),e.getCoordinate(r+1,i),!this.isLineSegmentContainedInBoundary(n,i))return!1;return!0},isPointContainedInBoundary:function(){if(arguments[0]instanceof Gt){var t=arguments[0];return this.isPointContainedInBoundary(t.getCoordinate())}if(arguments[0]instanceof E){var e=arguments[0];return e.x===this._rectEnv.getMinX()||
e.x===this._rectEnv.getMaxX()||e.y===this._rectEnv.getMinY()||e.y===this._rectEnv.getMaxY()}},contains:function(t){return!!this._rectEnv.contains(t.getEnvelopeInternal())&&!this.isContainedInBoundary(t)},interfaces_:function(){return[]},getClass:function(){return Ps}}),Ps.contains=function(t,e){return(new Ps(t)).contains(e)},e(Os.prototype,{intersects:function(t,e){var n=new M(t,e);if(!this._rectEnv.intersects(n))return!1;if(this._rectEnv.intersects(t))return!0;if(this._rectEnv.intersects(e))return!0;
if(t.compareTo(e)>0){var i=t;t=e,e=i}var r=!1;return e.y>t.y&&(r=!0),r?this._li.computeIntersection(t,e,this._diagDown0,this._diagDown1):this._li.computeIntersection(t,e,this._diagUp0,this._diagUp1),!!this._li.hasIntersection()},interfaces_:function(){return[]},getClass:function(){return Os}}),e(bs.prototype,{applyTo:function(t){for(var e=0;e<t.getNumGeometries()&&!this._isDone;e++){var n=t.getGeometryN(e);if(n instanceof Lt)this.applyTo(n);else if(this.visit(n),this.isDone())return this._isDone=
!0,null}},interfaces_:function(){return[]},getClass:function(){return bs}}),e(Ms.prototype,{intersects:function(t){if(!this._rectEnv.intersects(t.getEnvelopeInternal()))return!1;var e=new Ds(this._rectEnv);if(e.applyTo(t),e.intersects())return!0;var n=new As(this._rectangle);if(n.applyTo(t),n.containsPoint())return!0;var i=new Fs(this._rectangle);return i.applyTo(t),!!i.intersects()},interfaces_:function(){return[]},getClass:function(){return Ms}}),Ms.intersects=function(t,e){return(new Ms(t)).intersects(e)},
v(Ds,bs),e(Ds.prototype,{isDone:function(){return!0===this._intersects},visit:function(t){var e=t.getEnvelopeInternal();return this._rectEnv.intersects(e)?this._rectEnv.contains(e)?(this._intersects=!0,null):e.getMinX()>=this._rectEnv.getMinX()&&e.getMaxX()<=this._rectEnv.getMaxX()?(this._intersects=!0,null):e.getMinY()>=this._rectEnv.getMinY()&&e.getMaxY()<=this._rectEnv.getMaxY()?(this._intersects=!0,null):void 0:null},intersects:function(){return this._intersects},interfaces_:function(){return[]},
getClass:function(){return Ds}}),v(As,bs),e(As.prototype,{isDone:function(){return!0===this._containsPoint},visit:function(t){if(!(t instanceof Vt))return null;var e=t.getEnvelopeInternal();if(!this._rectEnv.intersects(e))return null;for(var n=new E,i=0;i<4;i++)if(this._rectSeq.getCoordinate(i,n),e.contains(n)&&Ve.containsPointInPolygon(n,t))return this._containsPoint=!0,null},containsPoint:function(){return this._containsPoint},interfaces_:function(){return[]},getClass:function(){return As}}),v(Fs,
bs),e(Fs.prototype,{intersects:function(){return this._hasIntersection},isDone:function(){return!0===this._hasIntersection},visit:function(t){var e=t.getEnvelopeInternal();if(!this._rectEnv.intersects(e))return null;var n=be.getLines(t);this.checkIntersectionWithLineStrings(n)},checkIntersectionWithLineStrings:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();if(this.checkIntersectionWithSegments(n),this._hasIntersection)return null}},checkIntersectionWithSegments:function(t){for(var e=
t.getCoordinateSequence(),n=1;n<e.size();n++)if(e.getCoordinate(n-1,this._p0),e.getCoordinate(n,this._p1),this._rectIntersector.intersects(this._p0,this._p1))return this._hasIntersection=!0,null},interfaces_:function(){return[]},getClass:function(){return Fs}}),v(Gs,gs),e(Gs.prototype,{getIntersectionMatrix:function(){return this._relate.computeIM()},interfaces_:function(){return[]},getClass:function(){return Gs}}),Gs.covers=function(t,e){return!(2===e.getDimension()&&t.getDimension()<2)&&(!(1===
e.getDimension()&&t.getDimension()<1&&e.getLength()>0)&&(!!t.getEnvelopeInternal().covers(e.getEnvelopeInternal())&&(!!t.isRectangle()||(new Gs(t,e)).getIntersectionMatrix().isCovers())))},Gs.intersects=function(t,e){if(!t.getEnvelopeInternal().intersects(e.getEnvelopeInternal()))return!1;if(t.isRectangle())return Ms.intersects(t,e);if(e.isRectangle())return Ms.intersects(e,t);if(t.isGeometryCollection()||e.isGeometryCollection()){for(var n=0;n<t.getNumGeometries();n++)for(var i=0;i<e.getNumGeometries();i++)if(t.getGeometryN(n).intersects(e.getGeometryN(i)))return!0;
return!1}return(new Gs(t,e)).getIntersectionMatrix().isIntersects()},Gs.touches=function(t,e){return!!t.getEnvelopeInternal().intersects(e.getEnvelopeInternal())&&(new Gs(t,e)).getIntersectionMatrix().isTouches(t.getDimension(),e.getDimension())},Gs.relate=function(){return 2===arguments.length?(new Gs(arguments[0],arguments[1])).getIntersectionMatrix():3===arguments.length?(new Gs(arguments[0],arguments[1],arguments[2])).getIntersectionMatrix():void 0},Gs.overlaps=function(t,e){return!!t.getEnvelopeInternal().intersects(e.getEnvelopeInternal())&&
(new Gs(t,e)).getIntersectionMatrix().isOverlaps(t.getDimension(),e.getDimension())},Gs.crosses=function(t,e){return!!t.getEnvelopeInternal().intersects(e.getEnvelopeInternal())&&(new Gs(t,e)).getIntersectionMatrix().isCrosses(t.getDimension(),e.getDimension())},Gs.contains=function(t,e){return!(2===e.getDimension()&&t.getDimension()<2)&&(!(1===e.getDimension()&&t.getDimension()<1&&e.getLength()>0)&&(!!t.getEnvelopeInternal().contains(e.getEnvelopeInternal())&&(t.isRectangle()?Ps.contains(t,e):(new Gs(t,
e)).getIntersectionMatrix().isContains())))};var qs=Object.freeze({RelateOp:Gs});function Bs(){this._geomFactory=null,this._skipEmpty=!1,this._inputGeoms=null;var t=arguments[0];this._geomFactory=Bs.extractFactory(t),this._inputGeoms=t}function Vs(){this._pointGeom=null,this._otherGeom=null,this._geomFact=null;var t=arguments[0],e=arguments[1];this._pointGeom=t,this._otherGeom=e,this._geomFact=e.getFactory()}function zs(){this._geometryType=null,this._comps=null;var t=arguments[0],e=arguments[1];
this._geometryType=t,this._comps=e}function Ys(){this._inputPolys=null,this._geomFactory=null;var t=arguments[0];this._inputPolys=t,null===this._inputPolys&&(this._inputPolys=new P)}function ks(){if(this._polygons=new P,this._lines=new P,this._points=new P,this._geomFact=null,1===arguments.length)if(N(arguments[0],S)){var t=arguments[0];this.extract(t)}else{if(arguments[0]instanceof K){var e=arguments[0];this.extract(e)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this._geomFact=
i,this.extract(n)}}e(Bs.prototype,{extractElements:function(t,e){if(null===t)return null;for(var n=0;n<t.getNumGeometries();n++){var i=t.getGeometryN(n);this._skipEmpty&&i.isEmpty()||e.add(i)}},combine:function(){for(var t=new P,e=this._inputGeoms.iterator();e.hasNext();){var n=e.next();this.extractElements(n,t)}return 0===t.size()?null!==this._geomFactory?this._geomFactory.createGeometryCollection():null:this._geomFactory.buildGeometry(t)},interfaces_:function(){return[]},getClass:function(){return Bs}}),
Bs.combine=function(){if(1===arguments.length)return(new Bs(arguments[0])).combine();if(2===arguments.length){var t=arguments[0],e=arguments[1];return(new Bs(Bs.createList(t,e))).combine()}if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];return(new Bs(Bs.createList(n,i,r))).combine()}},Bs.extractFactory=function(t){return t.isEmpty()?null:t.iterator().next().getFactory()},Bs.createList=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return(n=new P).add(t),
n.add(e),n}if(3===arguments.length){var n,i=arguments[0],r=arguments[1],s=arguments[2];return(n=new P).add(i),n.add(r),n.add(s),n}},e(Vs.prototype,{union:function(){for(var t=new Mn,e=new yt,n=0;n<this._pointGeom.getNumGeometries();n++){var i=this._pointGeom.getGeometryN(n).getCoordinate();t.locate(i,this._otherGeom)===de.EXTERIOR&&e.add(i)}if(0===e.size())return this._otherGeom;var r=null,s=nt.toCoordinateArray(e);return r=1===s.length?this._geomFact.createPoint(s[0]):this._geomFact.createMultiPointFromCoords(s),
Bs.combine(r,this._otherGeom)},interfaces_:function(){return[]},getClass:function(){return Vs}}),Vs.union=function(t,e){return(new Vs(t,e)).union()},e(zs.prototype,{filter:function(t){(null===this._geometryType||zs.isOfType(t,this._geometryType))&&this._comps.add(t)},interfaces_:function(){return[Ct]},getClass:function(){return zs}}),zs.isOfType=function(t,e){return t.getGeometryType()===e||e===K.TYPENAME_LINESTRING&&t.getGeometryType()===K.TYPENAME_LINEARRING},zs.extract=function(){if(2===arguments.length){var t=
arguments[0],e=arguments[1];return zs.extract(t,e,new P)}if(3===arguments.length){if(N(arguments[2],w)&&arguments[0]instanceof K&&"string"==typeof arguments[1]){var n=arguments[0],i=arguments[1],r=arguments[2];return n.getGeometryType()===i?r.add(n):n instanceof Lt&&n.apply(new zs(i,r)),r}if(N(arguments[2],w)&&arguments[0]instanceof K&&arguments[1]instanceof Class){var s=arguments[0],o=arguments[1],a=arguments[2];return zs.extract(s,zs.toGeometryType(o),a)}}},e(Ys.prototype,{reduceToGeometries:function(t){for(var e=
new P,n=t.iterator();n.hasNext();){var i=n.next(),r=null;N(i,w)?r=this.unionTree(i):i instanceof K&&(r=i),e.add(r)}return e},extractByEnvelope:function(t,e,n){for(var i=new P,r=0;r<e.getNumGeometries();r++){var s=e.getGeometryN(r);s.getEnvelopeInternal().intersects(t)?i.add(s):n.add(s)}return this._geomFactory.buildGeometry(i)},unionOptimized:function(t,e){var n=t.getEnvelopeInternal(),i=e.getEnvelopeInternal();if(!n.intersects(i))return Bs.combine(t,e);if(t.getNumGeometries()<=1&&e.getNumGeometries()<=
1)return this.unionActual(t,e);var r=n.intersection(i);return this.unionUsingEnvelopeIntersection(t,e,r)},union:function(){if(null===this._inputPolys)throw new IllegalStateException("union() method cannot be called twice");if(this._inputPolys.isEmpty())return null;this._geomFactory=this._inputPolys.iterator().next().getFactory();for(var t=new Ci(Ys.STRTREE_NODE_CAPACITY),e=this._inputPolys.iterator();e.hasNext();){var n=e.next();t.insert(n.getEnvelopeInternal(),n)}this._inputPolys=null;var i=t.itemsTree();
return this.unionTree(i)},binaryUnion:function(){if(1===arguments.length){var t=arguments[0];return this.binaryUnion(t,0,t.size())}if(3===arguments.length){var e=arguments[0],n=arguments[1],i=arguments[2];if(i-n<=1){var r=Ys.getGeometry(e,n);return this.unionSafe(r,null)}if(i-n==2)return this.unionSafe(Ys.getGeometry(e,n),Ys.getGeometry(e,n+1));var s=Math.trunc((i+n)/2),o=(r=this.binaryUnion(e,n,s),this.binaryUnion(e,s,i));return this.unionSafe(r,o)}},repeatedUnion:function(t){for(var e=null,n=t.iterator();n.hasNext();){var i=
n.next();e=null===e?i.copy():e.union(i)}return e},unionSafe:function(t,e){return null===t&&null===e?null:null===t?e.copy():null===e?t.copy():this.unionOptimized(t,e)},unionActual:function(t,e){return Ys.restrictToPolygons(t.union(e))},unionTree:function(t){var e=this.reduceToGeometries(t);return this.binaryUnion(e)},unionUsingEnvelopeIntersection:function(t,e,n){var i=new P,r=this.extractByEnvelope(n,t,i),s=this.extractByEnvelope(n,e,i),o=this.unionActual(r,s);return i.add(o),Bs.combine(i)},bufferUnion:function(){if(1===
arguments.length){var t=arguments[0];return t.get(0).getFactory().buildGeometry(t).buffer(0)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e.getFactory().createGeometryCollection([e,n]).buffer(0)}},interfaces_:function(){return[]},getClass:function(){return Ys}}),Ys.restrictToPolygons=function(t){if(N(t,Bt))return t;var e=br.getPolygons(t);return 1===e.size()?e.get(0):t.getFactory().createMultiPolygon(se.toPolygonArray(e))},Ys.getGeometry=function(t,e){return e>=t.size()?null:
t.get(e)},Ys.union=function(t){return(new Ys(t)).union()},Ys.STRTREE_NODE_CAPACITY=4,e(ks.prototype,{unionNoOpt:function(t){var e=this._geomFact.createPoint();return fs.overlayOp(t,e,ds.UNION)},unionWithNull:function(t,e){return null===t&&null===e?null:null===e?t:null===t?e:t.union(e)},extract:function(){if(N(arguments[0],S))for(var t=arguments[0].iterator();t.hasNext();){var e=t.next();this.extract(e)}else if(arguments[0]instanceof K){var n=arguments[0];null===this._geomFact&&(this._geomFact=n.getFactory()),
zs.extract(n,K.TYPENAME_POLYGON,this._polygons),zs.extract(n,K.TYPENAME_LINESTRING,this._lines),zs.extract(n,K.TYPENAME_POINT,this._points)}},union:function(){if(null===this._geomFact)return null;var t=null;if(this._points.size()>0){var e=this._geomFact.buildGeometry(this._points);t=this.unionNoOpt(e)}var n=null;if(this._lines.size()>0){var i=this._geomFact.buildGeometry(this._lines);n=this.unionNoOpt(i)}var r=null;this._polygons.size()>0&&(r=Ys.union(this._polygons));var s=this.unionWithNull(n,r),
o=null;return o=null===t?s:null===s?t:Vs.union(t,s),null===o?this._geomFact.createGeometryCollection():o},interfaces_:function(){return[]},getClass:function(){return ks}}),ks.union=function(){if(1===arguments.length){if(N(arguments[0],S))return(new ks(arguments[0])).union();if(arguments[0]instanceof K)return(new ks(arguments[0])).union()}else if(2===arguments.length)return(new ks(arguments[0],arguments[1])).union()};var Us=Object.freeze({UnaryUnionOp:ks});function Xs(){this._geometryFactory=new se,
this._geomGraph=null,this._disconnectedRingcoord=null;var t=arguments[0];this._geomGraph=t}function Hs(){this._nodes=new Zn(new Rs)}function Ws(){this._li=new fe,this._geomGraph=null,this._nodeGraph=new Hs,this._invalidPoint=null;var t=arguments[0];this._geomGraph=t}function js(){this._graph=null,this._rings=new P,this._totalEnv=new M,this._index=null,this._nestedPt=null;var t=arguments[0];this._graph=t}function Ks(){if(this._errorType=null,this._pt=null,1===arguments.length){var t=arguments[0];Ks.call(this,
t,null)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._errorType=e,null!==n&&(this._pt=n.copy())}}function Zs(){this._parentGeometry=null,this._isSelfTouchingRingFormingHoleValid=!1,this._validErr=null;var t=arguments[0];this._parentGeometry=t}e(Xs.prototype,{visitInteriorRing:function(t,e){var n=t.getCoordinates(),i=n[0],r=Xs.findDifferentPoint(n,i),s=e.findEdgeInSameDirection(i,r),o=e.findEdgeEnd(s),a=null;o.getLabel().getLocation(0,Dn.RIGHT)===de.INTERIOR?a=o:o.getSym().getLabel().getLocation(0,
Dn.RIGHT)===de.INTERIOR&&(a=o.getSym()),x.isTrue(null!==a,"unable to find dirEdge with Interior on RHS"),this.visitLinkedDirectedEdges(a)},visitShellInteriors:function(t,e){if(t instanceof Vt){var n=t;this.visitInteriorRing(n.getExteriorRing(),e)}if(t instanceof kt)for(var i=t,r=0;r<i.getNumGeometries();r++){n=i.getGeometryN(r);this.visitInteriorRing(n.getExteriorRing(),e)}},getCoordinate:function(){return this._disconnectedRingcoord},setInteriorEdgesInResult:function(t){for(var e=t.getEdgeEnds().iterator();e.hasNext();){var n=
e.next();n.getLabel().getLocation(0,Dn.RIGHT)===de.INTERIOR&&n.setInResult(!0)}},visitLinkedDirectedEdges:function(t){var e=t,n=t;do x.isTrue(null!==n,"found null Directed Edge"),n.setVisited(!0),n=n.getNext();while(n!==e)},buildEdgeRings:function(t){for(var e=new P,n=t.iterator();n.hasNext();){var i=n.next();if(i.isInResult()&&null===i.getEdgeRing()){var r=new ar(i,this._geometryFactory);r.linkDirectedEdgesForMinimalEdgeRings();var s=r.buildMinimalRings();e.addAll(s)}}return e},hasUnvisitedShellEdge:function(t){for(var e=
0;e<t.size();e++){var n=t.get(e);if(!n.isHole()){var i=n.getEdges(),r=i.get(0);if(r.getLabel().getLocation(0,Dn.RIGHT)===de.INTERIOR)for(var s=0;s<i.size();s++)if(!(r=i.get(s)).isVisited())return this._disconnectedRingcoord=r.getCoordinate(),!0}}return!1},isInteriorsConnected:function(){var t=new P;this._geomGraph.computeSplitEdges(t);var e=new ei(new vr);e.addEdges(t),this.setInteriorEdgesInResult(e),e.linkResultDirectedEdges();var n=this.buildEdgeRings(e.getEdgeEnds());return this.visitShellInteriors(this._geomGraph.getGeometry(),
e),!this.hasUnvisitedShellEdge(n)},interfaces_:function(){return[]},getClass:function(){return Xs}}),Xs.findDifferentPoint=function(t,e){for(var n=0;n<t.length;n++)if(!t[n].equals(e))return t[n];return null},e(Hs.prototype,{insertEdgeEnds:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this._nodes.add(n)}},getNodeIterator:function(){return this._nodes.iterator()},copyNodesAndLabels:function(t,e){for(var n=t.getNodeIterator();n.hasNext();){var i=n.next();this._nodes.addNode(i.getCoordinate()).setLabel(e,
i.getLabel().getLocation(e))}},build:function(t){this.computeIntersectionNodes(t,0),this.copyNodesAndLabels(t,0);var e=(new Cs).computeEdgeEnds(t.getEdgeIterator());this.insertEdgeEnds(e)},computeIntersectionNodes:function(t,e){for(var n=t.getEdgeIterator();n.hasNext();)for(var i=n.next(),r=i.getLabel().getLocation(e),s=i.getEdgeIntersectionList().iterator();s.hasNext();){var o=s.next(),a=this._nodes.addNode(o.coord);r===de.BOUNDARY?a.setLabelBoundary(e):a.getLabel().isNull(e)&&a.setLabel(e,de.INTERIOR)}},
interfaces_:function(){return[]},getClass:function(){return Hs}}),e(Ws.prototype,{isNodeEdgeAreaLabelsConsistent:function(){for(var t=this._nodeGraph.getNodeIterator();t.hasNext();){var e=t.next();if(!e.getEdges().isAreaLabelsConsistent(this._geomGraph))return this._invalidPoint=e.getCoordinate().copy(),!1}return!0},getInvalidPoint:function(){return this._invalidPoint},hasDuplicateRings:function(){for(var t=this._nodeGraph.getNodeIterator();t.hasNext();)for(var e=t.next().getEdges().iterator();e.hasNext();){var n=
e.next();if(n.getEdgeEnds().size()>1)return this._invalidPoint=n.getEdge().getCoordinate(0),!0}return!1},isNodeConsistentArea:function(){var t=this._geomGraph.computeSelfNodes(this._li,!0,!0);return t.hasProperIntersection()?(this._invalidPoint=t.getProperIntersectionPoint(),!1):(this._nodeGraph.build(this._geomGraph),this.isNodeEdgeAreaLabelsConsistent())},interfaces_:function(){return[]},getClass:function(){return Ws}}),e(js.prototype,{buildIndex:function(){this._index=new Ci;for(var t=0;t<this._rings.size();t++){var e=
this._rings.get(t),n=e.getEnvelopeInternal();this._index.insert(n,e)}},getNestedPoint:function(){return this._nestedPt},isNonNested:function(){this.buildIndex();for(var t=0;t<this._rings.size();t++)for(var e=this._rings.get(t),n=e.getCoordinates(),i=this._index.query(e.getEnvelopeInternal()),r=0;r<i.size();r++){var s=i.get(r),o=s.getCoordinates();if(e!==s&&e.getEnvelopeInternal().intersects(s.getEnvelopeInternal())){var a=Zs.findPtNotNode(n,s,this._graph);if(null!==a)if(qe.isInRing(a,o))return this._nestedPt=
a,!1}}return!0},add:function(t){this._rings.add(t),this._totalEnv.expandToInclude(t.getEnvelopeInternal())},interfaces_:function(){return[]},getClass:function(){return js}}),e(Ks.prototype,{getErrorType:function(){return this._errorType},getMessage:function(){return Ks.errMsg[this._errorType]},getCoordinate:function(){return this._pt},toString:function(){var t="";return null!==this._pt&&(t=" at or near point "+this._pt),this.getMessage()+t},interfaces_:function(){return[]},getClass:function(){return Ks}}),
Ks.ERROR=0,Ks.REPEATED_POINT=1,Ks.HOLE_OUTSIDE_SHELL=2,Ks.NESTED_HOLES=3,Ks.DISCONNECTED_INTERIOR=4,Ks.SELF_INTERSECTION=5,Ks.RING_SELF_INTERSECTION=6,Ks.NESTED_SHELLS=7,Ks.DUPLICATE_RINGS=8,Ks.TOO_FEW_POINTS=9,Ks.INVALID_COORDINATE=10,Ks.RING_NOT_CLOSED=11,Ks.errMsg=["Topology Validation Error","Repeated Point","Hole lies outside shell","Holes are nested","Interior is disconnected","Self-intersection","Ring Self-intersection","Nested shells","Duplicate Rings","Too few distinct points in geometry component",
"Invalid Coordinate","Ring is not closed"],e(Zs.prototype,{checkInvalidCoordinates:function(){if(arguments[0]instanceof Array)for(var t=arguments[0],e=0;e<t.length;e++){if(!Zs.isValid(t[e]))return this._validErr=new Ks(Ks.INVALID_COORDINATE,t[e]),null}else if(arguments[0]instanceof Vt){var n=arguments[0];if(this.checkInvalidCoordinates(n.getExteriorRing().getCoordinates()),null!==this._validErr)return null;for(e=0;e<n.getNumInteriorRing();e++)if(this.checkInvalidCoordinates(n.getInteriorRingN(e).getCoordinates()),
null!==this._validErr)return null}},checkHolesNotNested:function(t,e){for(var n=new js(e),i=0;i<t.getNumInteriorRing();i++){var r=t.getInteriorRingN(i);n.add(r)}n.isNonNested()||(this._validErr=new Ks(Ks.NESTED_HOLES,n.getNestedPoint()))},checkConsistentArea:function(t){var e=new Ws(t);if(!e.isNodeConsistentArea())return this._validErr=new Ks(Ks.SELF_INTERSECTION,e.getInvalidPoint()),null;e.hasDuplicateRings()&&(this._validErr=new Ks(Ks.DUPLICATE_RINGS,e.getInvalidPoint()))},isValid:function(){return this.checkValid(this._parentGeometry),
null===this._validErr},checkShellInsideHole:function(t,e,n){var i=t.getCoordinates(),r=e.getCoordinates(),s=Zs.findPtNotNode(i,e,n);if(null!==s&&!qe.isInRing(s,r))return s;var o=Zs.findPtNotNode(r,t,n);return null!==o?qe.isInRing(o,i)?o:null:(x.shouldNeverReachHere("points in shell and hole appear to be equal"),null)},checkNoSelfIntersectingRings:function(t){for(var e=t.getEdgeIterator();e.hasNext();){var n=e.next();if(this.checkNoSelfIntersectingRing(n.getEdgeIntersectionList()),null!==this._validErr)return null}},
checkConnectedInteriors:function(t){var e=new Xs(t);e.isInteriorsConnected()||(this._validErr=new Ks(Ks.DISCONNECTED_INTERIOR,e.getCoordinate()))},checkNoSelfIntersectingRing:function(t){for(var e=new yt,n=!0,i=t.iterator();i.hasNext();){var r=i.next();if(n)n=!1;else{if(e.contains(r.coord))return this._validErr=new Ks(Ks.RING_SELF_INTERSECTION,r.coord),null;e.add(r.coord)}}},checkHolesInShell:function(t,e){for(var n=t.getExteriorRing(),i=new Ae(n),r=0;r<t.getNumInteriorRing();r++){var s=t.getInteriorRingN(r),
o=Zs.findPtNotNode(s.getCoordinates(),n,e);if(null===o)return null;if(de.EXTERIOR===i.locate(o))return this._validErr=new Ks(Ks.HOLE_OUTSIDE_SHELL,o),null}},checkTooFewPoints:function(t){if(t.hasTooFewPoints())return this._validErr=new Ks(Ks.TOO_FEW_POINTS,t.getInvalidPoint()),null},getValidationError:function(){return this.checkValid(this._parentGeometry),this._validErr},checkValid:function(){if(arguments[0]instanceof Gt){var t=arguments[0];this.checkInvalidCoordinates(t.getCoordinates())}else if(arguments[0]instanceof
zt){var e=arguments[0];this.checkInvalidCoordinates(e.getCoordinates())}else if(arguments[0]instanceof Yt){var n=arguments[0];if(this.checkInvalidCoordinates(n.getCoordinates()),null!==this._validErr)return null;if(this.checkClosedRing(n),null!==this._validErr)return null;var i=new ni(0,n);if(this.checkTooFewPoints(i),null!==this._validErr)return null;var r=new fe;i.computeSelfNodes(r,!0,!0),this.checkNoSelfIntersectingRings(i)}else if(arguments[0]instanceof At){var s=arguments[0];if(this.checkInvalidCoordinates(s.getCoordinates()),
null!==this._validErr)return null;i=new ni(0,s);this.checkTooFewPoints(i)}else if(arguments[0]instanceof Vt){var o=arguments[0];if(this.checkInvalidCoordinates(o),null!==this._validErr)return null;if(this.checkClosedRings(o),null!==this._validErr)return null;i=new ni(0,o);if(this.checkTooFewPoints(i),null!==this._validErr)return null;if(this.checkConsistentArea(i),null!==this._validErr)return null;if(!this._isSelfTouchingRingFormingHoleValid&&(this.checkNoSelfIntersectingRings(i),null!==this._validErr))return null;
if(this.checkHolesInShell(o,i),null!==this._validErr)return null;if(this.checkHolesNotNested(o,i),null!==this._validErr)return null;this.checkConnectedInteriors(i)}else if(arguments[0]instanceof kt){for(var a=arguments[0],u=0;u<a.getNumGeometries();u++){var l=a.getGeometryN(u);if(this.checkInvalidCoordinates(l),null!==this._validErr)return null;if(this.checkClosedRings(l),null!==this._validErr)return null}i=new ni(0,a);if(this.checkTooFewPoints(i),null!==this._validErr)return null;if(this.checkConsistentArea(i),
null!==this._validErr)return null;if(!this._isSelfTouchingRingFormingHoleValid&&(this.checkNoSelfIntersectingRings(i),null!==this._validErr))return null;for(u=0;u<a.getNumGeometries();u++){l=a.getGeometryN(u);if(this.checkHolesInShell(l,i),null!==this._validErr)return null}for(u=0;u<a.getNumGeometries();u++){l=a.getGeometryN(u);if(this.checkHolesNotNested(l,i),null!==this._validErr)return null}if(this.checkShellsNotNested(a,i),null!==this._validErr)return null;this.checkConnectedInteriors(i)}else if(arguments[0]instanceof
Lt){var h=arguments[0];for(u=0;u<h.getNumGeometries();u++){var c=h.getGeometryN(u);if(this.checkValid(c),null!==this._validErr)return null}}else if(arguments[0]instanceof K){var f=arguments[0];if(this._validErr=null,f.isEmpty())return null;if(f instanceof Gt)this.checkValid(f);else if(f instanceof zt)this.checkValid(f);else if(f instanceof Yt)this.checkValid(f);else if(f instanceof At)this.checkValid(f);else if(f instanceof Vt)this.checkValid(f);else if(f instanceof kt)this.checkValid(f);else{if(!(f instanceof
Lt))throw new UnsupportedOperationException(f.getClass().getName());this.checkValid(f)}}},setSelfTouchingRingFormingHoleValid:function(t){this._isSelfTouchingRingFormingHoleValid=t},checkShellNotNested:function(t,e,n){var i=t.getCoordinates(),r=e.getExteriorRing(),s=r.getCoordinates(),o=Zs.findPtNotNode(i,r,n);if(null===o)return null;if(!qe.isInRing(o,s))return null;if(e.getNumInteriorRing()<=0)return this._validErr=new Ks(Ks.NESTED_SHELLS,o),null;for(var a=null,u=0;u<e.getNumInteriorRing();u++){var l=
e.getInteriorRingN(u);if(null===(a=this.checkShellInsideHole(t,l,n)))return null}this._validErr=new Ks(Ks.NESTED_SHELLS,a)},checkClosedRings:function(t){if(this.checkClosedRing(t.getExteriorRing()),null!==this._validErr)return null;for(var e=0;e<t.getNumInteriorRing();e++)if(this.checkClosedRing(t.getInteriorRingN(e)),null!==this._validErr)return null},checkClosedRing:function(t){if(!t.isClosed()){var e=null;t.getNumPoints()>=1&&(e=t.getCoordinateN(0)),this._validErr=new Ks(Ks.RING_NOT_CLOSED,e)}},
checkShellsNotNested:function(t,e){for(var n=0;n<t.getNumGeometries();n++)for(var i=t.getGeometryN(n).getExteriorRing(),r=0;r<t.getNumGeometries();r++)if(n!==r){var s=t.getGeometryN(r);if(this.checkShellNotNested(i,s,e),null!==this._validErr)return null}},interfaces_:function(){return[]},getClass:function(){return Zs}}),Zs.findPtNotNode=function(t,e,n){for(var i=n.findEdge(e).getEdgeIntersectionList(),r=0;r<t.length;r++){var s=t[r];if(!i.isIntersection(s))return s}return null},Zs.isValid=function(){if(arguments[0]instanceof
K)return(new Zs(arguments[0])).isValid();if(arguments[0]instanceof E){var t=arguments[0];return!s.isNaN(t.x)&&(!s.isInfinite(t.x)&&(!s.isNaN(t.y)&&!s.isInfinite(t.y)))}};var Qs=Object.freeze({IsValidOp:Zs,ConsistentAreaTester:Ws}),Js=Object.freeze({BoundaryOp:Rt,IsSimpleOp:$i,buffer:Or,distance:Gr,linemerge:Zr,overlay:_s,polygonize:Ns,relate:qs,union:Us,valid:Qs});function $s(){Ut.CoordinateOperation.apply(this),this._targetPM=null,this._removeCollapsed=!0;var t=arguments[0],e=arguments[1];this._targetPM=
t,this._removeCollapsed=e}function to(){this._targetPM=null,this._removeCollapsed=!0,this._changePrecisionModel=!1,this._isPointwise=!1;var t=arguments[0];this._targetPM=t}v($s,Ut.CoordinateOperation),e($s.prototype,{edit:function(){if(2===arguments.length&&arguments[1]instanceof K&&arguments[0]instanceof Array){var t=arguments[0],e=arguments[1];if(0===t.length)return null;for(var n=(new Array(t.length)).fill(null),i=0;i<t.length;i++){var r=new E(t[i]);this._targetPM.makePrecise(r),n[i]=r}var s=(new b(n,
!1)).toCoordinateArray(),o=0;e instanceof At&&(o=2),e instanceof Yt&&(o=4);var a=n;return this._removeCollapsed&&(a=null),s.length<o?a:s}return Ut.CoordinateOperation.prototype.edit.apply(this,arguments)},interfaces_:function(){return[]},getClass:function(){return $s}}),e(to.prototype,{fixPolygonalTopology:function(t){var e=t;this._changePrecisionModel||(e=this.changePM(t,this._targetPM));var n=Pr.bufferOp(e,0),i=n;return this._changePrecisionModel||(i=n.copy(),this.changePM(i,t.getPrecisionModel())),
i},reducePointwise:function(t){var e=null;this._changePrecisionModel?e=new Ut(this.createFactory(t.getFactory(),this._targetPM)):e=new Ut;var n=this._removeCollapsed;return t.getDimension()>=2&&(n=!0),e.edit(t,new $s(this._targetPM,n))},changePM:function(t,e){return this.createEditor(t.getFactory(),e).edit(t,new Ut.NoOpGeometryOperation)},setRemoveCollapsedComponents:function(t){this._removeCollapsed=t},createFactory:function(t,e){return new se(e,t.getSRID(),t.getCoordinateSequenceFactory())},setChangePrecisionModel:function(t){this._changePrecisionModel=
t},reduce:function(t){var e=this.reducePointwise(t);return this._isPointwise?e:N(e,Bt)?Zs.isValid(e)?e:this.fixPolygonalTopology(e):e},setPointwise:function(t){this._isPointwise=t},createEditor:function(t,e){return t.getPrecisionModel()===e?new Ut:new Ut(this.createFactory(t,e))},interfaces_:function(){return[]},getClass:function(){return to}}),to.reduce=function(t,e){return(new to(e)).reduce(t)},to.reducePointwise=function(t,e){var n=new to(e);return n.setPointwise(!0),n.reduce(t)};var eo=Object.freeze({GeometryPrecisionReducer:to});
function no(){this._pts=null,this._usePt=null,this._distanceTolerance=null,this._seg=new ge;var t=arguments[0];this._pts=t}function io(){this._inputGeom=null,this._distanceTolerance=null,this._isEnsureValidTopology=!0;var t=arguments[0];this._inputGeom=t}function ro(){In.apply(this),this._isEnsureValidTopology=!0,this._distanceTolerance=null;var t=arguments[0],e=arguments[1];this._isEnsureValidTopology=t,this._distanceTolerance=e}function so(){if(this._parent=null,this._index=null,2===arguments.length){var t=
arguments[0],e=arguments[1];so.call(this,t,e,null,-1)}else if(4===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2],s=arguments[3];ge.call(this,n,i),this._parent=r,this._index=s}}function oo(){if(this._parentLine=null,this._segs=null,this._resultSegs=new P,this._minimumSize=null,1===arguments.length){var t=arguments[0];oo.call(this,t,2)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._parentLine=e,this._minimumSize=n,this.init()}}function ao(){this._index=new di}
function uo(){this._querySeg=null,this._items=new P;var t=arguments[0];this._querySeg=t}function lo(){this._li=new fe,this._inputIndex=new ao,this._outputIndex=new ao,this._line=null,this._linePts=null,this._distanceTolerance=0;var t=arguments[0],e=arguments[1];this._inputIndex=t,this._outputIndex=e}function ho(){this._inputIndex=new ao,this._outputIndex=new ao,this._distanceTolerance=0}function co(){this._inputGeom=null,this._lineSimplifier=new ho,this._linestringMap=null;var t=arguments[0];this._inputGeom=
t}function fo(){In.apply(this),this._linestringMap=null;var t=arguments[0];this._linestringMap=t}function go(){this.tps=null;var t=arguments[0];this.tps=t}e(no.prototype,{simplifySection:function(t,e){if(t+1===e)return null;this._seg.p0=this._pts[t],this._seg.p1=this._pts[e];for(var n=-1,i=t,r=t+1;r<e;r++){var s=this._seg.distance(this._pts[r]);s>n&&(n=s,i=r)}if(n<=this._distanceTolerance)for(r=t+1;r<e;r++)this._usePt[r]=!1;else this.simplifySection(t,i),this.simplifySection(i,e)},setDistanceTolerance:function(t){this._distanceTolerance=
t},simplify:function(){this._usePt=(new Array(this._pts.length)).fill(null);for(var t=0;t<this._pts.length;t++)this._usePt[t]=!0;this.simplifySection(0,this._pts.length-1);var e=new b;for(t=0;t<this._pts.length;t++)this._usePt[t]&&e.add(new E(this._pts[t]));return e.toCoordinateArray()},interfaces_:function(){return[]},getClass:function(){return no}}),no.simplify=function(t,e){var n=new no(t);return n.setDistanceTolerance(e),n.simplify()},e(io.prototype,{setEnsureValid:function(t){this._isEnsureValidTopology=
t},getResultGeometry:function(){return this._inputGeom.isEmpty()?this._inputGeom.copy():(new ro(this._isEnsureValidTopology,this._distanceTolerance)).transform(this._inputGeom)},setDistanceTolerance:function(t){if(t<0)throw new i("Tolerance must be non-negative");this._distanceTolerance=t},interfaces_:function(){return[]},getClass:function(){return io}}),io.simplify=function(t,e){var n=new io(t);return n.setDistanceTolerance(e),n.getResultGeometry()},v(ro,In),e(ro.prototype,{transformPolygon:function(t,
e){if(t.isEmpty())return null;var n=In.prototype.transformPolygon.call(this,t,e);return e instanceof kt?n:this.createValidArea(n)},createValidArea:function(t){return this._isEnsureValidTopology?t.buffer(0):t},transformCoordinates:function(t,e){var n=t.toCoordinateArray(),i=null;return i=0===n.length?(new Array(0)).fill(null):no.simplify(n,this._distanceTolerance),this._factory.getCoordinateSequenceFactory().create(i)},transformMultiPolygon:function(t,e){var n=In.prototype.transformMultiPolygon.call(this,
t,e);return this.createValidArea(n)},transformLinearRing:function(t,e){var n=e instanceof Vt,i=In.prototype.transformLinearRing.call(this,t,e);return!n||i instanceof Yt?i:null},interfaces_:function(){return[]},getClass:function(){return ro}}),io.DPTransformer=ro,v(so,ge),e(so.prototype,{getIndex:function(){return this._index},getParent:function(){return this._parent},interfaces_:function(){return[]},getClass:function(){return so}}),e(oo.prototype,{addToResult:function(t){this._resultSegs.add(t)},
asLineString:function(){return this._parentLine.getFactory().createLineString(oo.extractCoordinates(this._resultSegs))},getResultSize:function(){var t=this._resultSegs.size();return 0===t?0:t+1},getParent:function(){return this._parentLine},getSegment:function(t){return this._segs[t]},getParentCoordinates:function(){return this._parentLine.getCoordinates()},getMinimumSize:function(){return this._minimumSize},asLinearRing:function(){return this._parentLine.getFactory().createLinearRing(oo.extractCoordinates(this._resultSegs))},
getSegments:function(){return this._segs},init:function(){var t=this._parentLine.getCoordinates();this._segs=(new Array(t.length-1)).fill(null);for(var e=0;e<t.length-1;e++){var n=new so(t[e],t[e+1],this._parentLine,e);this._segs[e]=n}},getResultCoordinates:function(){return oo.extractCoordinates(this._resultSegs)},interfaces_:function(){return[]},getClass:function(){return oo}}),oo.extractCoordinates=function(t){for(var e=(new Array(t.size()+1)).fill(null),n=null,i=0;i<t.size();i++)n=t.get(i),e[i]=
n.p0;return e[e.length-1]=n.p1,e},e(ao.prototype,{remove:function(t){this._index.remove(new M(t.p0,t.p1),t)},add:function(){if(arguments[0]instanceof oo)for(var t=arguments[0].getSegments(),e=0;e<t.length;e++){var n=t[e];this.add(n)}else if(arguments[0]instanceof ge){var i=arguments[0];this._index.insert(new M(i.p0,i.p1),i)}},query:function(t){var e=new M(t.p0,t.p1),n=new uo(t);return this._index.query(e,n),n.getItems()},interfaces_:function(){return[]},getClass:function(){return ao}}),e(uo.prototype,
{visitItem:function(t){var e=t;M.intersects(e.p0,e.p1,this._querySeg.p0,this._querySeg.p1)&&this._items.add(t)},getItems:function(){return this._items},interfaces_:function(){return[Ce]},getClass:function(){return uo}}),e(lo.prototype,{flatten:function(t,e){var n=new ge(this._linePts[t],this._linePts[e]);return this.remove(this._line,t,e),this._outputIndex.add(n),n},hasBadIntersection:function(t,e,n){return!!this.hasBadOutputIntersection(n)||!!this.hasBadInputIntersection(t,e,n)},setDistanceTolerance:function(t){this._distanceTolerance=
t},simplifySection:function(t,e,n){n+=1;var i=(new Array(2)).fill(null);if(t+1===e){var r=this._line.getSegment(t);return this._line.addToResult(r),null}var s=!0;this._line.getResultSize()<this._line.getMinimumSize()&&(n+1<this._line.getMinimumSize()&&(s=!1));var o=(new Array(1)).fill(null),a=this.findFurthestPoint(this._linePts,t,e,o);o[0]>this._distanceTolerance&&(s=!1);var u=new ge;if(u.p0=this._linePts[t],u.p1=this._linePts[e],i[0]=t,i[1]=e,this.hasBadIntersection(this._line,i,u)&&(s=!1),s){r=
this.flatten(t,e);return this._line.addToResult(r),null}this.simplifySection(t,a,n),this.simplifySection(a,e,n)},hasBadOutputIntersection:function(t){for(var e=this._outputIndex.query(t).iterator();e.hasNext();){var n=e.next();if(this.hasInteriorIntersection(n,t))return!0}return!1},findFurthestPoint:function(t,e,n,i){var r=new ge;r.p0=t[e],r.p1=t[n];for(var s=-1,o=e,a=e+1;a<n;a++){var u=t[a],l=r.distance(u);l>s&&(s=l,o=a)}return i[0]=s,o},simplify:function(t){this._line=t,this._linePts=t.getParentCoordinates(),
this.simplifySection(0,this._linePts.length-1,0)},remove:function(t,e,n){for(var i=e;i<n;i++){var r=t.getSegment(i);this._inputIndex.remove(r)}},hasInteriorIntersection:function(t,e){return this._li.computeIntersection(t.p0,t.p1,e.p0,e.p1),this._li.isInteriorIntersection()},hasBadInputIntersection:function(t,e,n){for(var i=this._inputIndex.query(n).iterator();i.hasNext();){var r=i.next();if(this.hasInteriorIntersection(r,n)){if(lo.isInLineSection(t,e,r))continue;return!0}}return!1},interfaces_:function(){return[]},
getClass:function(){return lo}}),lo.isInLineSection=function(t,e,n){if(n.getParent()!==t.getParent())return!1;var i=n.getIndex();return i>=e[0]&&i<e[1]},e(ho.prototype,{setDistanceTolerance:function(t){this._distanceTolerance=t},simplify:function(t){for(var e=t.iterator();e.hasNext();)this._inputIndex.add(e.next());for(e=t.iterator();e.hasNext();){var n=new lo(this._inputIndex,this._outputIndex);n.setDistanceTolerance(this._distanceTolerance),n.simplify(e.next())}},interfaces_:function(){return[]},
getClass:function(){return ho}}),e(co.prototype,{getResultGeometry:function(){return this._inputGeom.isEmpty()?this._inputGeom.copy():(this._linestringMap=new ne,this._inputGeom.apply(new go(this)),this._lineSimplifier.simplify(this._linestringMap.values()),(new fo(this._linestringMap)).transform(this._inputGeom))},setDistanceTolerance:function(t){if(t<0)throw new i("Tolerance must be non-negative");this._lineSimplifier.setDistanceTolerance(t)},interfaces_:function(){return[]},getClass:function(){return co}}),
co.simplify=function(t,e){var n=new co(t);return n.setDistanceTolerance(e),n.getResultGeometry()},v(fo,In),e(fo.prototype,{transformCoordinates:function(t,e){if(0===t.size())return null;if(e instanceof At){var n=this._linestringMap.get(e);return this.createCoordinateSequence(n.getResultCoordinates())}return In.prototype.transformCoordinates.call(this,t,e)},interfaces_:function(){return[]},getClass:function(){return fo}}),e(go.prototype,{filter:function(t){if(t instanceof At){var e=t;if(e.isEmpty())return null;
var n=new oo(e,e.isClosed()?4:2);this.tps._linestringMap.put(e,n)}},interfaces_:function(){return[j]},getClass:function(){return go}}),co.LineStringTransformer=fo,co.LineStringMapBuilderFilter=go;var _o=Object.freeze({DouglasPeuckerSimplifier:io,TopologyPreservingSimplifier:co});function po(){this._seg=null,this._segLen=null,this._splitPt=null,this._minimumLen=0;var t=arguments[0];this._seg=t,this._segLen=t.getLength()}function mo(){}function vo(){}function yo(){}function xo(){if(this._p=null,1===
arguments.length){var t=arguments[0];this._p=new E(t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._p=new E(e,n)}else if(3===arguments.length){var i=arguments[0],r=arguments[1],s=arguments[2];this._p=new E(i,r,s)}}function Eo(){this._isOnConstraint=null,this._constraint=null;var t=arguments[0];xo.call(this,t)}function Io(){this._rot=null,this._vertex=null,this._next=null,this._data=null}function No(){this._subdiv=null,this._isUsingTolerance=!1;var t=arguments[0];this._subdiv=
t,this._isUsingTolerance=t.getTolerance()>0}function Co(){}function So(){this._subdiv=null,this._lastEdge=null;var t=arguments[0];this._subdiv=t,this.init()}function Lo(){if(this._seg=null,1===arguments.length)if("string"==typeof arguments[0]){var t=arguments[0];m.call(this,t)}else{if(arguments[0]instanceof ge){var e=arguments[0];m.call(this,"Locate failed to converge (at edge: "+e+").  Possible causes include invalid Subdivision topology or very close sites"),this._seg=new ge(e)}}else if(2===arguments.length){var n=
arguments[0],i=arguments[1];m.call(this,Lo.msgWithSpatial(n,i)),this._seg=new ge(i)}}function wo(){}function Ro(){this._visitedKey=0,this._quadEdges=new P,this._startingEdge=null,this._tolerance=null,this._edgeCoincidenceTolerance=null,this._frameVertex=(new Array(3)).fill(null),this._frameEnv=null,this._locator=null,this._seg=new ge,this._triEdges=(new Array(3)).fill(null);var t=arguments[0],e=arguments[1];this._tolerance=e,this._edgeCoincidenceTolerance=e/Ro.EDGE_COINCIDENCE_TOL_FACTOR,this.createFrame(t),
this._startingEdge=this.initSubdiv(),this._locator=new So(this)}function To(){}function Po(){this._triList=new P}function Oo(){this._triList=new P}function bo(){this._coordList=new b,this._triCoords=new P}function Mo(){if(this._ls=null,this._data=null,2===arguments.length){var t=arguments[0],e=arguments[1];this._ls=new ge(t,e)}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this._ls=new ge(n,i),this._data=r}else if(6===arguments.length){var s=arguments[0],o=arguments[1],
a=arguments[2],u=arguments[3],l=arguments[4],h=arguments[5];Mo.call(this,new E(s,o,a),new E(u,l,h))}else if(7===arguments.length){var c=arguments[0],f=arguments[1],g=arguments[2],d=arguments[3],_=arguments[4],p=arguments[5],m=arguments[6];Mo.call(this,new E(c,f,g),new E(d,_,p),m)}}function Do(){this._initialVertices=null,this._segVertices=null,this._segments=new P,this._subdiv=null,this._incDel=null,this._convexHull=null,this._splitFinder=new vo,this._kdt=null,this._vertexFactory=null,this._computeAreaEnv=
null,this._splitPt=null,this._tolerance=null;var t=arguments[0],e=arguments[1];this._initialVertices=new P(t),this._tolerance=e,this._kdt=new oi(e)}function Ao(){this._siteCoords=null,this._tolerance=0,this._subdiv=null}function Fo(){this._siteCoords=null,this._constraintLines=null,this._tolerance=0,this._subdiv=null,this._constraintVertexMap=new pt}function Go(){this._siteCoords=null,this._tolerance=0,this._subdiv=null,this._clipEnv=null,this._diagramEnv=null}e(po.prototype,{splitAt:function(){if(1===
arguments.length){var t=arguments[0],e=this._minimumLen/this._segLen;if(t.distance(this._seg.p0)<this._minimumLen)return this._splitPt=this._seg.pointAlong(e),null;if(t.distance(this._seg.p1)<this._minimumLen)return this._splitPt=po.pointAlongReverse(this._seg,e),null;this._splitPt=t}else if(2===arguments.length){var n=arguments[0],i=arguments[1],r=this.getConstrainedLength(n)/this._segLen;i.equals2D(this._seg.p0)?this._splitPt=this._seg.pointAlong(r):this._splitPt=po.pointAlongReverse(this._seg,
r)}},setMinimumLength:function(t){this._minimumLen=t},getConstrainedLength:function(t){return t<this._minimumLen?this._minimumLen:t},getSplitPoint:function(){return this._splitPt},interfaces_:function(){return[]},getClass:function(){return po}}),po.pointAlongReverse=function(t,e){var n=new E;return n.x=t.p1.x-e*(t.p1.x-t.p0.x),n.y=t.p1.y-e*(t.p1.y-t.p0.y),n},e(mo.prototype,{findSplitPoint:function(t,e){},interfaces_:function(){return[]},getClass:function(){return mo}}),e(vo.prototype,{findSplitPoint:function(t,
e){var n=t.getLineSegment(),i=n.getLength()/2,r=new po(n),s=vo.projectedSplitPoint(t,e),o=2*s.distance(e)*.8;return o>i&&(o=i),r.setMinimumLength(o),r.splitAt(s),r.getSplitPoint()},interfaces_:function(){return[mo]},getClass:function(){return vo}}),vo.projectedSplitPoint=function(t,e){return t.getLineSegment().project(e)},e(yo.prototype,{interfaces_:function(){return[]},getClass:function(){return yo}}),yo.triArea=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)},yo.isInCircleDDNormalized=
function(t,e,n,i){var r=B.valueOf(t.x).selfSubtract(i.x),s=B.valueOf(t.y).selfSubtract(i.y),o=B.valueOf(e.x).selfSubtract(i.x),a=B.valueOf(e.y).selfSubtract(i.y),u=B.valueOf(n.x).selfSubtract(i.x),l=B.valueOf(n.y).selfSubtract(i.y),h=r.multiply(a).selfSubtract(o.multiply(s)),c=o.multiply(l).selfSubtract(u.multiply(a)),f=u.multiply(s).selfSubtract(r.multiply(l)),g=r.multiply(r).selfAdd(s.multiply(s)),d=o.multiply(o).selfAdd(a.multiply(a)),_=u.multiply(u).selfAdd(l.multiply(l));return g.selfMultiply(c).selfAdd(d.selfMultiply(f)).selfAdd(_.selfMultiply(h)).doubleValue()>
0},yo.checkRobustInCircle=function(t,e,n,i){var r=yo.isInCircleNonRobust(t,e,n,i),s=yo.isInCircleDDSlow(t,e,n,i),o=yo.isInCircleCC(t,e,n,i),a=me.circumcentre(t,e,n);Y.out.println("p radius diff a \x3d "+Math.abs(i.distance(a)-t.distance(a))/t.distance(a)),r===s&&r===o||(Y.out.println("inCircle robustness failure (double result \x3d "+r+", DD result \x3d "+s+", CC result \x3d "+o+")"),Y.out.println(he.toLineString(new Kt([t,e,n,i]))),Y.out.println("Circumcentre \x3d "+he.toPoint(a)+" radius \x3d "+
t.distance(a)),Y.out.println("p radius diff a \x3d "+Math.abs(i.distance(a)/t.distance(a)-1)),Y.out.println("p radius diff b \x3d "+Math.abs(i.distance(a)/e.distance(a)-1)),Y.out.println("p radius diff c \x3d "+Math.abs(i.distance(a)/n.distance(a)-1)),Y.out.println())},yo.isInCircleDDFast=function(t,e,n,i){var r=B.sqr(t.x).selfAdd(B.sqr(t.y)).selfMultiply(yo.triAreaDDFast(e,n,i)),s=B.sqr(e.x).selfAdd(B.sqr(e.y)).selfMultiply(yo.triAreaDDFast(t,n,i)),o=B.sqr(n.x).selfAdd(B.sqr(n.y)).selfMultiply(yo.triAreaDDFast(t,
e,i)),a=B.sqr(i.x).selfAdd(B.sqr(i.y)).selfMultiply(yo.triAreaDDFast(t,e,n));return r.selfSubtract(s).selfAdd(o).selfSubtract(a).doubleValue()>0},yo.isInCircleCC=function(t,e,n,i){var r=me.circumcentre(t,e,n),s=t.distance(r);return i.distance(r)-s<=0},yo.isInCircleNormalized=function(t,e,n,i){var r=t.x-i.x,s=t.y-i.y,o=e.x-i.x,a=e.y-i.y,u=n.x-i.x,l=n.y-i.y;return(r*r+s*s)*(o*l-u*a)+(o*o+a*a)*(u*s-r*l)+(u*u+l*l)*(r*a-o*s)>0},yo.isInCircleDDSlow=function(t,e,n,i){var r=B.valueOf(i.x),s=B.valueOf(i.y),
o=B.valueOf(t.x),a=B.valueOf(t.y),u=B.valueOf(e.x),l=B.valueOf(e.y),h=B.valueOf(n.x),c=B.valueOf(n.y),f=o.multiply(o).add(a.multiply(a)).multiply(yo.triAreaDDSlow(u,l,h,c,r,s)),g=u.multiply(u).add(l.multiply(l)).multiply(yo.triAreaDDSlow(o,a,h,c,r,s)),d=h.multiply(h).add(c.multiply(c)).multiply(yo.triAreaDDSlow(o,a,u,l,r,s)),_=r.multiply(r).add(s.multiply(s)).multiply(yo.triAreaDDSlow(o,a,u,l,h,c));return f.subtract(g).add(d).subtract(_).doubleValue()>0},yo.isInCircleNonRobust=function(t,e,n,i){return(t.x*
t.x+t.y*t.y)*yo.triArea(e,n,i)-(e.x*e.x+e.y*e.y)*yo.triArea(t,n,i)+(n.x*n.x+n.y*n.y)*yo.triArea(t,e,i)-(i.x*i.x+i.y*i.y)*yo.triArea(t,e,n)>0},yo.isInCircleRobust=function(t,e,n,i){return yo.isInCircleNormalized(t,e,n,i)},yo.triAreaDDSlow=function(t,e,n,i,r,s){return n.subtract(t).multiply(s.subtract(e)).subtract(i.subtract(e).multiply(r.subtract(t)))},yo.triAreaDDFast=function(t,e,n){var i=B.valueOf(e.x).selfSubtract(t.x).selfMultiply(B.valueOf(n.y).selfSubtract(t.y)),r=B.valueOf(e.y).selfSubtract(t.y).selfMultiply(B.valueOf(n.x).selfSubtract(t.x));
return i.selfSubtract(r)},e(xo.prototype,{circleCenter:function(t,e){var n=new xo(this.getX(),this.getY()),i=new k(this.bisector(n,t),this.bisector(t,e)),r=null;try{r=new xo(i.getX(),i.getY())}catch(i){if(!(i instanceof A))throw i;Y.err.println("a: "+n+"  b: "+t+"  c: "+e),Y.err.println(i)}return r},dot:function(t){return this._p.x*t.getX()+this._p.y*t.getY()},magn:function(){return Math.sqrt(this._p.x*this._p.x+this._p.y*this._p.y)},getZ:function(){return this._p.z},bisector:function(t,e){var n=
e.getX()-t.getX(),i=e.getY()-t.getY();return new k(new k(t.getX()+n/2,t.getY()+i/2,1),new k(t.getX()-i+n/2,t.getY()+n+i/2,1))},equals:function(){if(1===arguments.length){var t=arguments[0];return this._p.x===t.getX()&&this._p.y===t.getY()}if(2===arguments.length){var e=arguments[0],n=arguments[1];return this._p.distance(e.getCoordinate())<n}},getCoordinate:function(){return this._p},isInCircle:function(t,e,n){return yo.isInCircleRobust(t._p,e._p,n._p,this._p)},interpolateZValue:function(t,e,n){var i=
t.getX(),r=t.getY(),s=e.getX()-i,o=n.getX()-i,a=e.getY()-r,u=n.getY()-r,l=s*u-o*a,h=this.getX()-i,c=this.getY()-r,f=(u*h-o*c)/l,g=(-a*h+s*c)/l;return t.getZ()+f*(e.getZ()-t.getZ())+g*(n.getZ()-t.getZ())},midPoint:function(t){return new xo((this._p.x+t.getX())/2,(this._p.y+t.getY())/2,(this._p.z+t.getZ())/2)},rightOf:function(t){return this.isCCW(t.dest(),t.orig())},isCCW:function(t,e){return(t._p.x-this._p.x)*(e._p.y-this._p.y)-(t._p.y-this._p.y)*(e._p.x-this._p.x)>0},getX:function(){return this._p.x},
crossProduct:function(t){return this._p.x*t.getY()-this._p.y*t.getX()},setZ:function(t){this._p.z=t},times:function(t){return new xo(t*this._p.x,t*this._p.y)},cross:function(){return new xo(this._p.y,-this._p.x)},leftOf:function(t){return this.isCCW(t.orig(),t.dest())},toString:function(){return"POINT ("+this._p.x+" "+this._p.y+")"},sub:function(t){return new xo(this._p.x-t.getX(),this._p.y-t.getY())},getY:function(){return this._p.y},classify:function(t,e){var n=e.sub(t),i=this.sub(t),r=n.crossProduct(i);
return r>0?xo.LEFT:r<0?xo.RIGHT:n.getX()*i.getX()<0||n.getY()*i.getY()<0?xo.BEHIND:n.magn()<i.magn()?xo.BEYOND:t.equals(this)?xo.ORIGIN:e.equals(this)?xo.DESTINATION:xo.BETWEEN},sum:function(t){return new xo(this._p.x+t.getX(),this._p.y+t.getY())},distance:function(t,e){return Math.sqrt(Math.pow(e.getX()-t.getX(),2)+Math.pow(e.getY()-t.getY(),2))},circumRadiusRatio:function(t,e){var n=this.circleCenter(t,e),i=this.distance(n,t),r=this.distance(this,t),s=this.distance(t,e);return s<r&&(r=s),(s=this.distance(e,
this))<r&&(r=s),i/r},interfaces_:function(){return[]},getClass:function(){return xo}}),xo.interpolateZ=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2],i=e.distance(n),r=t.distance(e),s=n.z-e.z;return e.z+s*(r/i)}if(4===arguments.length){var o=arguments[0],a=arguments[1],u=arguments[2],l=arguments[3],h=a.x,c=a.y,f=u.x-h,g=l.x-h,d=u.y-c,_=l.y-c,p=f*_-g*d,m=o.x-h,v=o.y-c,y=(_*m-g*v)/p,x=(-d*m+f*v)/p;return a.z+y*(u.z-a.z)+x*(l.z-a.z)}},xo.LEFT=0,xo.RIGHT=1,xo.BEYOND=
2,xo.BEHIND=3,xo.BETWEEN=4,xo.ORIGIN=5,xo.DESTINATION=6,v(Eo,xo),e(Eo.prototype,{getConstraint:function(){return this._constraint},setOnConstraint:function(t){this._isOnConstraint=t},merge:function(t){t._isOnConstraint&&(this._isOnConstraint=!0,this._constraint=t._constraint)},isOnConstraint:function(){return this._isOnConstraint},setConstraint:function(t){this._isOnConstraint=!0,this._constraint=t},interfaces_:function(){return[]},getClass:function(){return Eo}}),e(Io.prototype,{equalsNonOriented:function(t){return!!this.equalsOriented(t)||
!!this.equalsOriented(t.sym())},toLineSegment:function(){return new ge(this._vertex.getCoordinate(),this.dest().getCoordinate())},dest:function(){return this.sym().orig()},oNext:function(){return this._next},equalsOriented:function(t){return!(!this.orig().getCoordinate().equals2D(t.orig().getCoordinate())||!this.dest().getCoordinate().equals2D(t.dest().getCoordinate()))},dNext:function(){return this.sym().oNext().sym()},lPrev:function(){return this._next.sym()},rPrev:function(){return this.sym().oNext()},
rot:function(){return this._rot},oPrev:function(){return this._rot._next._rot},sym:function(){return this._rot._rot},setOrig:function(t){this._vertex=t},lNext:function(){return this.invRot().oNext().rot()},getLength:function(){return this.orig().getCoordinate().distance(this.dest().getCoordinate())},invRot:function(){return this._rot.sym()},setDest:function(t){this.sym().setOrig(t)},setData:function(t){this._data=t},getData:function(){return this._data},delete:function(){this._rot=null},orig:function(){return this._vertex},
rNext:function(){return this._rot._next.invRot()},toString:function(){var t=this._vertex.getCoordinate(),e=this.dest().getCoordinate();return he.toLineString(t,e)},isLive:function(){return null!==this._rot},getPrimary:function(){return this.orig().getCoordinate().compareTo(this.dest().getCoordinate())<=0?this:this.sym()},dPrev:function(){return this.invRot().oNext().invRot()},setNext:function(t){this._next=t},interfaces_:function(){return[]},getClass:function(){return Io}}),Io.makeEdge=function(t,
e){var n=new Io,i=new Io,r=new Io,s=new Io;n._rot=i,i._rot=r,r._rot=s,s._rot=n,n.setNext(n),i.setNext(s),r.setNext(r),s.setNext(i);var o=n;return o.setOrig(t),o.setDest(e),o},Io.swap=function(t){var e=t.oPrev(),n=t.sym().oPrev();Io.splice(t,e),Io.splice(t.sym(),n),Io.splice(t,e.lNext()),Io.splice(t.sym(),n.lNext()),t.setOrig(e.dest()),t.setDest(n.dest())},Io.splice=function(t,e){var n=t.oNext().rot(),i=e.oNext().rot(),r=e.oNext(),s=t.oNext(),o=i.oNext(),a=n.oNext();t.setNext(r),e.setNext(s),n.setNext(o),
i.setNext(a)},Io.connect=function(t,e){var n=Io.makeEdge(t.dest(),e.orig());return Io.splice(n,t.lNext()),Io.splice(n.sym(),e),n},e(No.prototype,{insertSite:function(t){var e=this._subdiv.locate(t);if(this._subdiv.isVertexOfEdge(e,t))return e;this._subdiv.isOnEdge(e,t.getCoordinate())&&(e=e.oPrev(),this._subdiv.delete(e.oNext()));var n=this._subdiv.makeEdge(e.orig(),t);Io.splice(n,e);var i=n;do e=(n=this._subdiv.connect(e,n.sym())).oPrev();while(e.lNext()!==i);for(;;){var r=e.oPrev();if(r.dest().rightOf(e)&&
t.isInCircle(e.orig(),r.dest(),e.dest()))Io.swap(e),e=e.oPrev();else{if(e.oNext()===i)return n;e=e.oNext().lPrev()}}},insertSites:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this.insertSite(n)}},interfaces_:function(){return[]},getClass:function(){return No}}),e(Co.prototype,{locate:function(t){},interfaces_:function(){return[]},getClass:function(){return Co}}),e(So.prototype,{init:function(){this._lastEdge=this.findEdge()},locate:function(t){this._lastEdge.isLive()||this.init();
var e=this._subdiv.locateFromEdge(t,this._lastEdge);return this._lastEdge=e,e},findEdge:function(){return this._subdiv.getEdges().iterator().next()},interfaces_:function(){return[Co]},getClass:function(){return So}}),v(Lo,m),e(Lo.prototype,{getSegment:function(){return this._seg},interfaces_:function(){return[]},getClass:function(){return Lo}}),Lo.msgWithSpatial=function(t,e){return null!==e?t+" [ "+e+" ]":t},e(wo.prototype,{visit:function(t){},interfaces_:function(){return[]},getClass:function(){return wo}}),
e(Ro.prototype,{getTriangleVertices:function(t){var e=new Oo;return this.visitTriangles(e,t),e.getTriangleVertices()},isFrameVertex:function(t){return!!t.equals(this._frameVertex[0])||(!!t.equals(this._frameVertex[1])||!!t.equals(this._frameVertex[2]))},isVertexOfEdge:function(t,e){return!(!e.equals(t.orig(),this._tolerance)&&!e.equals(t.dest(),this._tolerance))},connect:function(t,e){var n=Io.connect(t,e);return this._quadEdges.add(n),n},getVoronoiCellPolygon:function(t,e){var n=new P,i=t;do{var r=
t.rot().orig().getCoordinate();n.add(r),t=t.oPrev()}while(t!==i);var s=new b;s.addAll(n,!1),s.closeRing(),s.size()<4&&(Y.out.println(s),s.add(s.get(s.size()-1),!0));var o=s.toCoordinateArray(),a=e.createPolygon(e.createLinearRing(o)),u=i.orig();return a.setUserData(u.getCoordinate()),a},setLocator:function(t){this._locator=t},initSubdiv:function(){var t=this.makeEdge(this._frameVertex[0],this._frameVertex[1]),e=this.makeEdge(this._frameVertex[1],this._frameVertex[2]);Io.splice(t.sym(),e);var n=this.makeEdge(this._frameVertex[2],
this._frameVertex[0]);return Io.splice(e.sym(),n),Io.splice(n.sym(),t),t},isFrameBorderEdge:function(t){var e=(new Array(3)).fill(null);Ro.getTriangleEdges(t,e);var n=(new Array(3)).fill(null);Ro.getTriangleEdges(t.sym(),n);var i=t.lNext().dest();if(this.isFrameVertex(i))return!0;var r=t.sym().lNext().dest();return!!this.isFrameVertex(r)},makeEdge:function(t,e){var n=Io.makeEdge(t,e);return this._quadEdges.add(n),n},visitTriangles:function(t,e){this._visitedKey++;var n=new je;n.push(this._startingEdge);
for(var i=new ut;!n.empty();){var r=n.pop();if(!i.contains(r)){var s=this.fetchTriangleToVisit(r,n,e,i);null!==s&&t.visit(s)}}},isFrameEdge:function(t){return!(!this.isFrameVertex(t.orig())&&!this.isFrameVertex(t.dest()))},isOnEdge:function(t,e){return this._seg.setCoordinates(t.orig().getCoordinate(),t.dest().getCoordinate()),this._seg.distance(e)<this._edgeCoincidenceTolerance},getEnvelope:function(){return new M(this._frameEnv)},createFrame:function(t){var e=t.getWidth(),n=t.getHeight(),i=0;i=
e>n?10*e:10*n,this._frameVertex[0]=new xo((t.getMaxX()+t.getMinX())/2,t.getMaxY()+i),this._frameVertex[1]=new xo(t.getMinX()-i,t.getMinY()-i),this._frameVertex[2]=new xo(t.getMaxX()+i,t.getMinY()-i),this._frameEnv=new M(this._frameVertex[0].getCoordinate(),this._frameVertex[1].getCoordinate()),this._frameEnv.expandToInclude(this._frameVertex[2].getCoordinate())},getTriangleCoordinates:function(t){var e=new bo;return this.visitTriangles(e,t),e.getTriangles()},getVertices:function(t){for(var e=new ut,
n=this._quadEdges.iterator();n.hasNext();){var i=n.next(),r=i.orig();!t&&this.isFrameVertex(r)||e.add(r);var s=i.dest();!t&&this.isFrameVertex(s)||e.add(s)}return e},fetchTriangleToVisit:function(t,e,n,i){var r=t,s=0,o=!1;do{this._triEdges[s]=r,this.isFrameEdge(r)&&(o=!0);var a=r.sym();i.contains(a)||e.push(a),i.add(r),s++,r=r.lNext()}while(r!==t);return o&&!n?null:this._triEdges},getEdges:function(){if(0===arguments.length)return this._quadEdges;if(1===arguments.length){for(var t=arguments[0],e=
this.getPrimaryEdges(!1),n=(new Array(e.size())).fill(null),i=0,r=e.iterator();r.hasNext();){var s=r.next();n[i++]=t.createLineString([s.orig().getCoordinate(),s.dest().getCoordinate()])}return t.createMultiLineString(n)}},getVertexUniqueEdges:function(t){for(var e=new P,n=new ut,i=this._quadEdges.iterator();i.hasNext();){var r=i.next(),s=r.orig();n.contains(s)||(n.add(s),!t&&this.isFrameVertex(s)||e.add(r));var o=r.sym(),a=o.orig();n.contains(a)||(n.add(a),!t&&this.isFrameVertex(a)||e.add(o))}return e},
getTriangleEdges:function(t){var e=new Po;return this.visitTriangles(e,t),e.getTriangleEdges()},getPrimaryEdges:function(t){this._visitedKey++;var e=new P,n=new je;n.push(this._startingEdge);for(var i=new ut;!n.empty();){var r=n.pop();if(!i.contains(r)){var s=r.getPrimary();!t&&this.isFrameEdge(s)||e.add(s),n.push(r.oNext()),n.push(r.sym().oNext()),i.add(r),i.add(r.sym())}}return e},delete:function(t){Io.splice(t,t.oPrev()),Io.splice(t.sym(),t.sym().oPrev());var e=t.sym(),n=t.rot(),i=t.rot().sym();
this._quadEdges.remove(t),this._quadEdges.remove(e),this._quadEdges.remove(n),this._quadEdges.remove(i),t.delete(),e.delete(),n.delete(),i.delete()},locateFromEdge:function(t,e){for(var n=0,i=this._quadEdges.size(),r=e;;){if(++n>i)throw new Lo(r.toLineSegment());if(t.equals(r.orig())||t.equals(r.dest()))break;if(t.rightOf(r))r=r.sym();else if(t.rightOf(r.oNext())){if(t.rightOf(r.dPrev()))break;r=r.dPrev()}else r=r.oNext()}return r},getTolerance:function(){return this._tolerance},getVoronoiCellPolygons:function(t){this.visitTriangles(new To,
!0);for(var e=new P,n=this.getVertexUniqueEdges(!1).iterator();n.hasNext();){var i=n.next();e.add(this.getVoronoiCellPolygon(i,t))}return e},getVoronoiDiagram:function(t){var e=this.getVoronoiCellPolygons(t);return t.createGeometryCollection(se.toGeometryArray(e))},getTriangles:function(t){for(var e=this.getTriangleCoordinates(!1),n=(new Array(e.size())).fill(null),i=0,r=e.iterator();r.hasNext();){var s=r.next();n[i++]=t.createPolygon(t.createLinearRing(s))}return t.createGeometryCollection(n)},insertSite:function(t){var e=
this.locate(t);if(t.equals(e.orig(),this._tolerance)||t.equals(e.dest(),this._tolerance))return e;var n=this.makeEdge(e.orig(),t);Io.splice(n,e);var i=n;do e=(n=this.connect(e,n.sym())).oPrev();while(e.lNext()!==i);return i},locate:function(){if(1===arguments.length){if(arguments[0]instanceof xo){var t=arguments[0];return this._locator.locate(t)}if(arguments[0]instanceof E){var e=arguments[0];return this._locator.locate(new xo(e))}}else if(2===arguments.length){var n=arguments[0],i=arguments[1],r=
this._locator.locate(new xo(n));if(null===r)return null;var s=r;r.dest().getCoordinate().equals2D(n)&&(s=r.sym());var o=s;do{if(o.dest().getCoordinate().equals2D(i))return o;o=o.oNext()}while(o!==s);return null}},interfaces_:function(){return[]},getClass:function(){return Ro}}),Ro.getTriangleEdges=function(t,e){if(e[0]=t,e[1]=e[0].lNext(),e[2]=e[1].lNext(),e[2].lNext()!==e[0])throw new i("Edges do not form a triangle");},e(To.prototype,{visit:function(t){for(var e=t[0].orig().getCoordinate(),n=t[1].orig().getCoordinate(),
i=t[2].orig().getCoordinate(),r=new xo(me.circumcentre(e,n,i)),s=0;s<3;s++)t[s].rot().setOrig(r)},interfaces_:function(){return[wo]},getClass:function(){return To}}),e(Po.prototype,{getTriangleEdges:function(){return this._triList},visit:function(t){this._triList.add(t)},interfaces_:function(){return[wo]},getClass:function(){return Po}}),e(Oo.prototype,{visit:function(t){this._triList.add([t[0].orig(),t[1].orig(),t[2].orig()])},getTriangleVertices:function(){return this._triList},interfaces_:function(){return[wo]},
getClass:function(){return Oo}}),e(bo.prototype,{checkTriangleSize:function(t){t.length>=2?he.toLineString(t[0],t[1]):t.length>=1&&he.toPoint(t[0])},visit:function(t){this._coordList.clear();for(var e=0;e<3;e++){var n=t[e].orig();this._coordList.add(n.getCoordinate())}if(this._coordList.size()>0){this._coordList.closeRing();var i=this._coordList.toCoordinateArray();if(4!==i.length)return null;this._triCoords.add(i)}},getTriangles:function(){return this._triCoords},interfaces_:function(){return[wo]},
getClass:function(){return bo}}),Ro.TriangleCircumcentreVisitor=To,Ro.TriangleEdgesListVisitor=Po,Ro.TriangleVertexListVisitor=Oo,Ro.TriangleCoordinatesVisitor=bo,Ro.EDGE_COINCIDENCE_TOL_FACTOR=1E3,e(Mo.prototype,{getLineSegment:function(){return this._ls},getEndZ:function(){return this._ls.getCoordinate(1).z},getStartZ:function(){return this._ls.getCoordinate(0).z},intersection:function(t){return this._ls.intersection(t.getLineSegment())},getStart:function(){return this._ls.getCoordinate(0)},getEnd:function(){return this._ls.getCoordinate(1)},
getEndY:function(){return this._ls.getCoordinate(1).y},getStartX:function(){return this._ls.getCoordinate(0).x},equalsTopo:function(t){return this._ls.equalsTopo(t.getLineSegment())},getStartY:function(){return this._ls.getCoordinate(0).y},setData:function(t){this._data=t},getData:function(){return this._data},getEndX:function(){return this._ls.getCoordinate(1).x},toString:function(){return this._ls.toString()},interfaces_:function(){return[]},getClass:function(){return Mo}}),e(Do.prototype,{getInitialVertices:function(){return this._initialVertices},
getKDT:function(){return this._kdt},enforceConstraints:function(){this.addConstraintVertices();var t=0,e=0;do e=this.enforceGabriel(this._segments),t++;while(e>0&&t<Do.MAX_SPLIT_ITER)},insertSites:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this.insertSite(n)}},getVertexFactory:function(){return this._vertexFactory},getPointArray:function(){for(var t=(new Array(this._initialVertices.size()+this._segVertices.size())).fill(null),e=0,n=this._initialVertices.iterator();n.hasNext();){var i=
n.next();t[e++]=i.getCoordinate()}for(var r=this._segVertices.iterator();r.hasNext();){i=r.next();t[e++]=i.getCoordinate()}return t},setConstraints:function(t,e){this._segments=t,this._segVertices=e},computeConvexHull:function(){var t=new se,e=new Ze(this.getPointArray(),t);this._convexHull=e.getConvexHull()},addConstraintVertices:function(){this.computeConvexHull(),this.insertSites(this._segVertices)},findNonGabrielPoint:function(t){var e=t.getStart(),n=t.getEnd(),i=new E((e.x+n.x)/2,(e.y+n.y)/2),
r=e.distance(i),o=new M(i);o.expandBy(r);for(var a=this._kdt.query(o),u=null,l=s.MAX_VALUE,h=a.iterator();h.hasNext();){var c=h.next().getCoordinate();if(!c.equals2D(e)&&!c.equals2D(n)){var f=i.distance(c);if(f<r)(null===u||f<l)&&(u=c,l=f)}}return u},getConstraintSegments:function(){return this._segments},setSplitPointFinder:function(t){this._splitFinder=t},getConvexHull:function(){return this._convexHull},getTolerance:function(){return this._tolerance},enforceGabriel:function(t){for(var e=new P,
n=0,i=new P,r=t.iterator();r.hasNext();){var s=r.next(),o=this.findNonGabrielPoint(s);if(null!==o){this._splitPt=this._splitFinder.findSplitPoint(s,o);var a=this.createVertex(this._splitPt,s);this.insertSite(a).getCoordinate().equals2D(this._splitPt);var u=new Mo(s.getStartX(),s.getStartY(),s.getStartZ(),a.getX(),a.getY(),a.getZ(),s.getData()),l=new Mo(a.getX(),a.getY(),a.getZ(),s.getEndX(),s.getEndY(),s.getEndZ(),s.getData());e.add(u),e.add(l),i.add(s),n+=1}}return t.removeAll(i),t.addAll(e),n},
createVertex:function(){if(1===arguments.length){var t=arguments[0],e=null;return e=null!==this._vertexFactory?this._vertexFactory.createVertex(t,null):new Eo(t)}if(2===arguments.length){var n=arguments[0],i=arguments[1];e=null;return(e=null!==this._vertexFactory?this._vertexFactory.createVertex(n,i):new Eo(n)).setOnConstraint(!0),e}},getSubdivision:function(){return this._subdiv},computeBoundingBox:function(){var t=Do.computeVertexEnvelope(this._initialVertices),e=Do.computeVertexEnvelope(this._segVertices),
n=new M(t);n.expandToInclude(e);var i=.2*n.getWidth(),r=.2*n.getHeight(),s=Math.max(i,r);this._computeAreaEnv=new M(n),this._computeAreaEnv.expandBy(s)},setVertexFactory:function(t){this._vertexFactory=t},formInitialDelaunay:function(){this.computeBoundingBox(),this._subdiv=new Ro(this._computeAreaEnv,this._tolerance),this._subdiv.setLocator(new So(this._subdiv)),this._incDel=new No(this._subdiv),this.insertSites(this._initialVertices)},insertSite:function(){if(arguments[0]instanceof Eo){var t=arguments[0],
e=this._kdt.insert(t.getCoordinate(),t);if(e.isRepeated()){var n=e.getData();return n.merge(t),n}return this._incDel.insertSite(t),t}if(arguments[0]instanceof E){var i=arguments[0];this.insertSite(this.createVertex(i))}},interfaces_:function(){return[]},getClass:function(){return Do}}),Do.computeVertexEnvelope=function(t){for(var e=new M,n=t.iterator();n.hasNext();){var i=n.next();e.expandToInclude(i.getCoordinate())}return e},Do.MAX_SPLIT_ITER=99,e(Ao.prototype,{create:function(){if(null!==this._subdiv)return null;
var t=Ao.envelope(this._siteCoords),e=Ao.toVertices(this._siteCoords);this._subdiv=new Ro(t,this._tolerance),(new No(this._subdiv)).insertSites(e)},setTolerance:function(t){this._tolerance=t},setSites:function(){if(arguments[0]instanceof K){var t=arguments[0];this._siteCoords=Ao.extractUniqueCoordinates(t)}else if(N(arguments[0],S)){var e=arguments[0];this._siteCoords=Ao.unique(nt.toCoordinateArray(e))}},getEdges:function(t){return this.create(),this._subdiv.getEdges(t)},getSubdivision:function(){return this.create(),
this._subdiv},getTriangles:function(t){return this.create(),this._subdiv.getTriangles(t)},interfaces_:function(){return[]},getClass:function(){return Ao}}),Ao.extractUniqueCoordinates=function(t){if(null===t)return new b;var e=t.getCoordinates();return Ao.unique(e)},Ao.envelope=function(t){for(var e=new M,n=t.iterator();n.hasNext();){var i=n.next();e.expandToInclude(i)}return e},Ao.unique=function(t){var e=nt.copyDeep(t);return It.sort(e),new b(e,!1)},Ao.toVertices=function(t){for(var e=new P,n=t.iterator();n.hasNext();){var i=
n.next();e.add(new xo(i))}return e},e(Fo.prototype,{createSiteVertices:function(t){for(var e=new P,n=t.iterator();n.hasNext();){var i=n.next();this._constraintVertexMap.containsKey(i)||e.add(new Eo(i))}return e},create:function(){if(null!==this._subdiv)return null;var t=Ao.envelope(this._siteCoords),e=new P;null!==this._constraintLines&&(t.expandToInclude(this._constraintLines.getEnvelopeInternal()),this.createVertices(this._constraintLines),e=Fo.createConstraintSegments(this._constraintLines));var n=
new Do(this.createSiteVertices(this._siteCoords),this._tolerance);n.setConstraints(e,new P(this._constraintVertexMap.values())),n.formInitialDelaunay(),n.enforceConstraints(),this._subdiv=n.getSubdivision()},setTolerance:function(t){this._tolerance=t},setConstraints:function(t){this._constraintLines=t},setSites:function(t){this._siteCoords=Ao.extractUniqueCoordinates(t)},getEdges:function(t){return this.create(),this._subdiv.getEdges(t)},getSubdivision:function(){return this.create(),this._subdiv},
getTriangles:function(t){return this.create(),this._subdiv.getTriangles(t)},createVertices:function(t){for(var e=t.getCoordinates(),n=0;n<e.length;n++){var i=new Eo(e[n]);this._constraintVertexMap.put(e[n],i)}},interfaces_:function(){return[]},getClass:function(){return Fo}}),Fo.createConstraintSegments=function(){if(1===arguments.length){for(var t=arguments[0],e=be.getLines(t),n=new P,i=e.iterator();i.hasNext();){var r=i.next();Fo.createConstraintSegments(r,n)}return n}if(2===arguments.length){var s=
arguments[0],o=arguments[1],a=s.getCoordinates();for(i=1;i<a.length;i++)o.add(new Mo(a[i-1],a[i]))}},e(Go.prototype,{create:function(){if(null!==this._subdiv)return null;var t=Ao.envelope(this._siteCoords);this._diagramEnv=t;var e=Math.max(this._diagramEnv.getWidth(),this._diagramEnv.getHeight());this._diagramEnv.expandBy(e),null!==this._clipEnv&&this._diagramEnv.expandToInclude(this._clipEnv);var n=Ao.toVertices(this._siteCoords);this._subdiv=new Ro(t,this._tolerance),(new No(this._subdiv)).insertSites(n)},
getDiagram:function(t){this.create();var e=this._subdiv.getVoronoiDiagram(t);return Go.clipGeometryCollection(e,this._diagramEnv)},setTolerance:function(t){this._tolerance=t},setSites:function(){if(arguments[0]instanceof K){var t=arguments[0];this._siteCoords=Ao.extractUniqueCoordinates(t)}else if(N(arguments[0],S)){var e=arguments[0];this._siteCoords=Ao.unique(nt.toCoordinateArray(e))}},setClipEnvelope:function(t){this._clipEnv=t},getSubdivision:function(){return this.create(),this._subdiv},interfaces_:function(){return[]},
getClass:function(){return Go}}),Go.clipGeometryCollection=function(t,e){for(var n=t.getFactory().toGeometry(e),i=new P,r=0;r<t.getNumGeometries();r++){var s=t.getGeometryN(r),o=null;e.contains(s.getEnvelopeInternal())?o=s:e.intersects(s.getEnvelopeInternal())&&(o=n.intersection(s)).setUserData(s.getUserData()),null===o||o.isEmpty()||i.add(o)}return t.getFactory().createGeometryCollection(se.toGeometryArray(i))};var qo=Object.freeze({Vertex:xo}),Bo=Object.freeze({ConformingDelaunayTriangulationBuilder:Fo,
DelaunayTriangulationBuilder:Ao,VoronoiDiagramBuilder:Go,quadedge:qo});function Vo(){if(this._componentIndex=0,this._segmentIndex=0,this._segmentFraction=0,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._componentIndex=t._componentIndex,this._segmentIndex=t._segmentIndex,this._segmentFraction=t._segmentFraction}else if(2===arguments.length){var e=arguments[0],n=arguments[1];Vo.call(this,0,e,n)}else if(3===arguments.length){var i=arguments[0],r=arguments[1],s=arguments[2];
this._componentIndex=i,this._segmentIndex=r,this._segmentFraction=s,this.normalize()}else if(4===arguments.length){var o=arguments[0],a=arguments[1],u=arguments[2],l=arguments[3];this._componentIndex=o,this._segmentIndex=a,this._segmentFraction=u,l&&this.normalize()}}function zo(){if(this._linearGeom=null,this._numLines=null,this._currentLine=null,this._componentIndex=0,this._vertexIndex=0,1===arguments.length){var t=arguments[0];zo.call(this,t,0,0)}else if(2===arguments.length){var e=arguments[0],
n=arguments[1];zo.call(this,e,n.getComponentIndex(),zo.segmentEndVertexIndex(n))}else if(3===arguments.length){var r=arguments[0],s=arguments[1],o=arguments[2];if(!N(r,mt))throw new i("Lineal geometry is required");this._linearGeom=r,this._numLines=r.getNumGeometries(),this._componentIndex=s,this._vertexIndex=o,this.loadCurrentLine()}}function Yo(){this._linearGeom=null;var t=arguments[0];this._linearGeom=t}function ko(){this._linearGeom=null;var t=arguments[0];this._linearGeom=t}function Uo(){this._geomFact=
null,this._lines=new P,this._coordList=null,this._ignoreInvalidLines=!1,this._fixInvalidLines=!1,this._lastPt=null;var t=arguments[0];this._geomFact=t}function Xo(){this._line=null;var t=arguments[0];this._line=t}function Ho(){this._linearGeom=null;var t=arguments[0];this._linearGeom=t,this.checkGeometryType()}function Wo(){this._linearGeom=null;var t=arguments[0];this._linearGeom=t}function jo(){this._linearGeom=null;var t=arguments[0];this._linearGeom=t}function Ko(){this._linearGeom=null;var t=
arguments[0];this._linearGeom=t}e(Vo.prototype,{getSegmentIndex:function(){return this._segmentIndex},getComponentIndex:function(){return this._componentIndex},isEndpoint:function(t){var e=t.getGeometryN(this._componentIndex).getNumPoints()-1;return this._segmentIndex>=e||this._segmentIndex===e&&this._segmentFraction>=1},isValid:function(t){if(this._componentIndex<0||this._componentIndex>=t.getNumGeometries())return!1;var e=t.getGeometryN(this._componentIndex);return!(this._segmentIndex<0||this._segmentIndex>
e.getNumPoints())&&((this._segmentIndex!==e.getNumPoints()||0===this._segmentFraction)&&!(this._segmentFraction<0||this._segmentFraction>1))},normalize:function(){this._segmentFraction<0&&(this._segmentFraction=0),this._segmentFraction>1&&(this._segmentFraction=1),this._componentIndex<0&&(this._componentIndex=0,this._segmentIndex=0,this._segmentFraction=0),this._segmentIndex<0&&(this._segmentIndex=0,this._segmentFraction=0),1===this._segmentFraction&&(this._segmentFraction=0,this._segmentIndex+=1)},
toLowest:function(t){var e=t.getGeometryN(this._componentIndex).getNumPoints()-1;return this._segmentIndex<e?this:new Vo(this._componentIndex,e,1,!1)},getCoordinate:function(t){var e=t.getGeometryN(this._componentIndex),n=e.getCoordinateN(this._segmentIndex);if(this._segmentIndex>=e.getNumPoints()-1)return n;var i=e.getCoordinateN(this._segmentIndex+1);return Vo.pointAlongSegmentByFraction(n,i,this._segmentFraction)},getSegmentFraction:function(){return this._segmentFraction},getSegment:function(t){var e=
t.getGeometryN(this._componentIndex),n=e.getCoordinateN(this._segmentIndex);return this._segmentIndex>=e.getNumPoints()-1?new ge(e.getCoordinateN(e.getNumPoints()-2),n):new ge(n,e.getCoordinateN(this._segmentIndex+1))},clamp:function(t){if(this._componentIndex>=t.getNumGeometries())return this.setToEnd(t),null;if(this._segmentIndex>=t.getNumPoints()){var e=t.getGeometryN(this._componentIndex);this._segmentIndex=e.getNumPoints()-1,this._segmentFraction=1}},setToEnd:function(t){this._componentIndex=
t.getNumGeometries()-1;var e=t.getGeometryN(this._componentIndex);this._segmentIndex=e.getNumPoints()-1,this._segmentFraction=1},compareTo:function(t){var e=t;return this._componentIndex<e._componentIndex?-1:this._componentIndex>e._componentIndex?1:this._segmentIndex<e._segmentIndex?-1:this._segmentIndex>e._segmentIndex?1:this._segmentFraction<e._segmentFraction?-1:this._segmentFraction>e._segmentFraction?1:0},copy:function(){return new Vo(this._componentIndex,this._segmentIndex,this._segmentFraction)},
toString:function(){return"LinearLoc["+this._componentIndex+", "+this._segmentIndex+", "+this._segmentFraction+"]"},isOnSameSegment:function(t){return this._componentIndex===t._componentIndex&&(this._segmentIndex===t._segmentIndex||(t._segmentIndex-this._segmentIndex==1&&0===t._segmentFraction||this._segmentIndex-t._segmentIndex==1&&0===this._segmentFraction))},snapToVertex:function(t,e){if(this._segmentFraction<=0||this._segmentFraction>=1)return null;var n=this.getSegmentLength(t),i=this._segmentFraction*
n,r=n-i;i<=r&&i<e?this._segmentFraction=0:r<=i&&r<e&&(this._segmentFraction=1)},compareLocationValues:function(t,e,n){return this._componentIndex<t?-1:this._componentIndex>t?1:this._segmentIndex<e?-1:this._segmentIndex>e?1:this._segmentFraction<n?-1:this._segmentFraction>n?1:0},getSegmentLength:function(t){var e=t.getGeometryN(this._componentIndex),n=this._segmentIndex;this._segmentIndex>=e.getNumPoints()-1&&(n=e.getNumPoints()-2);var i=e.getCoordinateN(n),r=e.getCoordinateN(n+1);return i.distance(r)},
isVertex:function(){return this._segmentFraction<=0||this._segmentFraction>=1},interfaces_:function(){return[g]},getClass:function(){return Vo}}),Vo.getEndLocation=function(t){var e=new Vo;return e.setToEnd(t),e},Vo.pointAlongSegmentByFraction=function(t,e,n){return n<=0?t:n>=1?e:new E((e.x-t.x)*n+t.x,(e.y-t.y)*n+t.y,(e.z-t.z)*n+t.z)},Vo.compareLocationValues=function(t,e,n,i,r,s){return t<i?-1:t>i?1:e<r?-1:e>r?1:n<s?-1:n>s?1:0},e(zo.prototype,{getComponentIndex:function(){return this._componentIndex},
getLine:function(){return this._currentLine},getVertexIndex:function(){return this._vertexIndex},getSegmentEnd:function(){return this._vertexIndex<this.getLine().getNumPoints()-1?this._currentLine.getCoordinateN(this._vertexIndex+1):null},next:function(){if(!this.hasNext())return null;this._vertexIndex++,this._vertexIndex>=this._currentLine.getNumPoints()&&(this._componentIndex++,this.loadCurrentLine(),this._vertexIndex=0)},loadCurrentLine:function(){if(this._componentIndex>=this._numLines)return this._currentLine=
null,null;this._currentLine=this._linearGeom.getGeometryN(this._componentIndex)},getSegmentStart:function(){return this._currentLine.getCoordinateN(this._vertexIndex)},isEndOfLine:function(){return!(this._componentIndex>=this._numLines)&&!(this._vertexIndex<this._currentLine.getNumPoints()-1)},hasNext:function(){return!(this._componentIndex>=this._numLines)&&!(this._componentIndex===this._numLines-1&&this._vertexIndex>=this._currentLine.getNumPoints())},interfaces_:function(){return[]},getClass:function(){return zo}}),
zo.segmentEndVertexIndex=function(t){return t.getSegmentFraction()>0?t.getSegmentIndex()+1:t.getSegmentIndex()},e(Yo.prototype,{indexOf:function(t){return this.indexOfFromStart(t,null)},indexOfFromStart:function(t,e){for(var n=s.MAX_VALUE,i=0,r=0,o=-1,a=new ge,u=new zo(this._linearGeom);u.hasNext();u.next())if(!u.isEndOfLine()){a.p0=u.getSegmentStart(),a.p1=u.getSegmentEnd();var l=a.distance(t),h=a.segmentFraction(t),c=u.getComponentIndex(),f=u.getVertexIndex();l<n&&(null===e||e.compareLocationValues(c,
f,h)<0)&&(i=c,r=f,o=h,n=l)}return n===s.MAX_VALUE?new Vo(e):new Vo(i,r,o)},indexOfAfter:function(t,e){if(null===e)return this.indexOf(t);var n=Vo.getEndLocation(this._linearGeom);if(n.compareTo(e)<=0)return n;var i=this.indexOfFromStart(t,e);return x.isTrue(i.compareTo(e)>=0,"computed location is before specified minimum location"),i},interfaces_:function(){return[]},getClass:function(){return Yo}}),Yo.indexOf=function(t,e){return(new Yo(t)).indexOf(e)},Yo.indexOfAfter=function(t,e,n){return(new Yo(t)).indexOfAfter(e,
n)},e(ko.prototype,{indicesOf:function(t){var e=t.getGeometryN(0).getCoordinateN(0),n=t.getGeometryN(t.getNumGeometries()-1),i=n.getCoordinateN(n.getNumPoints()-1),r=new Yo(this._linearGeom),s=(new Array(2)).fill(null);return s[0]=r.indexOf(e),0===t.getLength()?s[1]=s[0].copy():s[1]=r.indexOfAfter(i,s[0]),s},interfaces_:function(){return[]},getClass:function(){return ko}}),ko.indicesOf=function(t,e){return(new ko(t)).indicesOf(e)},e(Uo.prototype,{getGeometry:function(){return this.endLine(),this._geomFact.buildGeometry(this._lines)},
getLastCoordinate:function(){return this._lastPt},endLine:function(){if(null===this._coordList)return null;if(this._ignoreInvalidLines&&this._coordList.size()<2)return this._coordList=null,null;var t=this._coordList.toCoordinateArray(),e=t;this._fixInvalidLines&&(e=this.validCoordinateSequence(t)),this._coordList=null;var n=null;try{n=this._geomFact.createLineString(e)}catch(t){if(!(t instanceof i))throw t;if(!this._ignoreInvalidLines)throw t;}null!==n&&this._lines.add(n)},setFixInvalidLines:function(t){this._fixInvalidLines=
t},add:function(){if(1===arguments.length){var t=arguments[0];this.add(t,!0)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];null===this._coordList&&(this._coordList=new b),this._coordList.add(e,n),this._lastPt=e}},setIgnoreInvalidLines:function(t){this._ignoreInvalidLines=t},validCoordinateSequence:function(t){return t.length>=2?t:[t[0],t[0]]},interfaces_:function(){return[]},getClass:function(){return Uo}}),e(Xo.prototype,{computeLinear:function(t,e){var n=new Uo(this._line.getFactory());
n.setFixInvalidLines(!0),t.isVertex()||n.add(t.getCoordinate(this._line));for(var i=new zo(this._line,t);i.hasNext()&&!(e.compareLocationValues(i.getComponentIndex(),i.getVertexIndex(),0)<0);i.next()){var r=i.getSegmentStart();n.add(r),i.isEndOfLine()&&n.endLine()}return e.isVertex()||n.add(e.getCoordinate(this._line)),n.getGeometry()},computeLine:function(t,e){var n=this._line.getCoordinates(),i=new b,r=t.getSegmentIndex();t.getSegmentFraction()>0&&(r+=1);var s=e.getSegmentIndex();1===e.getSegmentFraction()&&
(s+=1),s>=n.length&&(s=n.length-1),t.isVertex()||i.add(t.getCoordinate(this._line));for(var o=r;o<=s;o++)i.add(n[o]);e.isVertex()||i.add(e.getCoordinate(this._line)),i.size()<=0&&i.add(t.getCoordinate(this._line));var a=i.toCoordinateArray();return a.length<=1&&(a=[a[0],a[0]]),this._line.getFactory().createLineString(a)},extract:function(t,e){return e.compareTo(t)<0?this.reverse(this.computeLinear(e,t)):this.computeLinear(t,e)},reverse:function(t){return t instanceof At?t.reverse():t instanceof wt?
t.reverse():(x.shouldNeverReachHere("non-linear geometry encountered"),null)},interfaces_:function(){return[]},getClass:function(){return Xo}}),Xo.extract=function(t,e,n){return(new Xo(t)).extract(e,n)},e(Ho.prototype,{clampIndex:function(t){var e=t.copy();return e.clamp(this._linearGeom),e},project:function(t){return Yo.indexOf(this._linearGeom,t)},checkGeometryType:function(){if(!(this._linearGeom instanceof At||this._linearGeom instanceof wt))throw new i("Input geometry must be linear");},extractPoint:function(){if(1===
arguments.length)return arguments[0].getCoordinate(this._linearGeom);if(2===arguments.length){var t=arguments[0],e=arguments[1],n=t.toLowest(this._linearGeom);return n.getSegment(this._linearGeom).pointAlongOffset(n.getSegmentFraction(),e)}},isValidIndex:function(t){return t.isValid(this._linearGeom)},getEndIndex:function(){return Vo.getEndLocation(this._linearGeom)},getStartIndex:function(){return new Vo},indexOfAfter:function(t,e){return Yo.indexOfAfter(this._linearGeom,t,e)},extractLine:function(t,
e){return Xo.extract(this._linearGeom,t,e)},indexOf:function(t){return Yo.indexOf(this._linearGeom,t)},indicesOf:function(t){return ko.indicesOf(this._linearGeom,t)},interfaces_:function(){return[]},getClass:function(){return Ho}}),e(Wo.prototype,{indexOf:function(t){return this.indexOfFromStart(t,-1)},indexOfFromStart:function(t,e){for(var n=s.MAX_VALUE,i=e,r=0,o=new ge,a=new zo(this._linearGeom);a.hasNext();){if(!a.isEndOfLine()){o.p0=a.getSegmentStart(),o.p1=a.getSegmentEnd();var u=o.distance(t),
l=this.segmentNearestMeasure(o,t,r);u<n&&l>e&&(i=l,n=u),r+=o.getLength()}a.next()}return i},indexOfAfter:function(t,e){if(e<0)return this.indexOf(t);var n=this._linearGeom.getLength();if(n<e)return n;var i=this.indexOfFromStart(t,e);return x.isTrue(i>=e,"computed index is before specified minimum index"),i},segmentNearestMeasure:function(t,e,n){var i=t.projectionFactor(e);return i<=0?n:i<=1?n+i*t.getLength():n+t.getLength()},interfaces_:function(){return[]},getClass:function(){return Wo}}),Wo.indexOf=
function(t,e){return(new Wo(t)).indexOf(e)},Wo.indexOfAfter=function(t,e,n){return(new Wo(t)).indexOfAfter(e,n)},e(jo.prototype,{getLength:function(t){for(var e=0,n=new zo(this._linearGeom);n.hasNext();){if(!n.isEndOfLine()){var i=n.getSegmentStart(),r=n.getSegmentEnd().distance(i);if(t.getComponentIndex()===n.getComponentIndex()&&t.getSegmentIndex()===n.getVertexIndex())return e+r*t.getSegmentFraction();e+=r}n.next()}return e},resolveHigher:function(t){if(!t.isEndpoint(this._linearGeom))return t;
var e=t.getComponentIndex();if(e>=this._linearGeom.getNumGeometries()-1)return t;do e++;while(e<this._linearGeom.getNumGeometries()-1&&0===this._linearGeom.getGeometryN(e).getLength());return new Vo(e,0,0)},getLocation:function(){if(1===arguments.length){var t=arguments[0];return this.getLocation(t,!0)}if(2===arguments.length){var e=arguments[0],n=arguments[1],i=e;if(e<0)i=this._linearGeom.getLength()+e;var r=this.getLocationForward(i);return n?r:this.resolveHigher(r)}},getLocationForward:function(t){if(t<=
0)return new Vo;for(var e=0,n=new zo(this._linearGeom);n.hasNext();){if(n.isEndOfLine()){if(e===t)return new Vo(n.getComponentIndex(),n.getVertexIndex(),0)}else{var i=n.getSegmentStart(),r=n.getSegmentEnd().distance(i);if(e+r>t){var s=(t-e)/r;return new Vo(n.getComponentIndex(),n.getVertexIndex(),s)}e+=r}n.next()}return Vo.getEndLocation(this._linearGeom)},interfaces_:function(){return[]},getClass:function(){return jo}}),jo.getLength=function(t,e){return(new jo(t)).getLength(e)},jo.getLocation=function(){if(2===
arguments.length){var t=arguments[0],e=arguments[1];return(new jo(t)).getLocation(e)}if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];return(new jo(n)).getLocation(i,r)}},e(Ko.prototype,{clampIndex:function(t){var e=this.positiveIndex(t),n=this.getStartIndex();if(e<n)return n;var i=this.getEndIndex();return e>i?i:e},locationOf:function(){if(1===arguments.length){var t=arguments[0];return jo.getLocation(this._linearGeom,t)}if(2===arguments.length){var e=arguments[0],n=arguments[1];
return jo.getLocation(this._linearGeom,e,n)}},project:function(t){return Wo.indexOf(this._linearGeom,t)},positiveIndex:function(t){return t>=0?t:this._linearGeom.getLength()+t},extractPoint:function(){if(1===arguments.length){var t=arguments[0];return jo.getLocation(this._linearGeom,t).getCoordinate(this._linearGeom)}if(2===arguments.length){var e=arguments[0],n=arguments[1],i=jo.getLocation(this._linearGeom,e).toLowest(this._linearGeom);return i.getSegment(this._linearGeom).pointAlongOffset(i.getSegmentFraction(),
n)}},isValidIndex:function(t){return t>=this.getStartIndex()&&t<=this.getEndIndex()},getEndIndex:function(){return this._linearGeom.getLength()},getStartIndex:function(){return 0},indexOfAfter:function(t,e){return Wo.indexOfAfter(this._linearGeom,t,e)},extractLine:function(t,e){new Ho(this._linearGeom);var n=this.clampIndex(t),i=this.clampIndex(e),r=n===i,s=this.locationOf(n,r),o=this.locationOf(i);return Xo.extract(this._linearGeom,s,o)},indexOf:function(t){return Wo.indexOf(this._linearGeom,t)},
indicesOf:function(t){var e=ko.indicesOf(this._linearGeom,t);return[jo.getLength(this._linearGeom,e[0]),jo.getLength(this._linearGeom,e[1])]},interfaces_:function(){return[]},getClass:function(){return Ko}});var Zo=Object.freeze({LengthIndexedLine:Ko,LengthLocationMap:jo,LinearGeometryBuilder:Uo,LinearIterator:zo,LinearLocation:Vo,LocationIndexedLine:Ho});function Qo(){}e(Qo.prototype,{interfaces_:function(){return[]},getClass:function(){return Qo}}),Qo.union=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&
e.isEmpty())return ds.createEmptyResult(ds.UNION,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),fs.overlayOp(t,e,ds.UNION)},e(K.prototype,{equalsTopo:function(t){return!!this.getEnvelopeInternal().equals(t.getEnvelopeInternal())&&Gs.relate(this,t).isEquals(this.getDimension(),t.getDimension())},union:function(){if(0===arguments.length)return ks.union(this);if(1===arguments.length){var t=arguments[0];
return Qo.union(this,t)}},isValid:function(){return Zs.isValid(this)},intersection:function(t){if(this.isEmpty()||t.isEmpty())return ds.createEmptyResult(ds.INTERSECTION,this,t,this._factory);if(this.isGeometryCollection()){var e=t;return es.map(this,{interfaces_:function(){return[MapOp]},map:function(t){return t.intersection(e)}})}return this.checkNotGeometryCollection(this),this.checkNotGeometryCollection(t),fs.overlayOp(this,t,ds.INTERSECTION)},covers:function(t){return Gs.covers(this,t)},coveredBy:function(t){return Gs.covers(t,
this)},touches:function(t){return Gs.touches(this,t)},intersects:function(t){return Gs.intersects(this,t)},within:function(t){return Gs.within(this,t)},overlaps:function(t){return Gs.overlaps(this,t)},disjoint:function(t){return Gs.disjoint(this,t)},crosses:function(t){return Gs.crosses(this,t)},buffer:function(){if(1===arguments.length){var t=arguments[0];return Pr.bufferOp(this,t)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return Pr.bufferOp(this,e,n)}if(3===arguments.length){var i=
arguments[0],r=arguments[1],s=arguments[2];return Pr.bufferOp(this,i,r,s)}},convexHull:function(){return(new Ze(this)).getConvexHull()},relate:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];if(1===arguments.length){var i=arguments[0];return Gs.relate(this,i)}if(2===arguments.length){var r=arguments[0],s=arguments[1];return Gs.relate(this,r).matches(s)}},getCentroid:function(){if(this.isEmpty())return this._factory.createPoint();var t=Xe.getCentroid(this);return this.createPointFromInternalCoord(t,
this)},getInteriorPoint:function(){if(this.isEmpty())return this._factory.createPoint();var t=null,e=this.getDimension();if(0===e)t=(new en(this)).getInteriorPoint();else if(1===e)t=(new tn(this)).getInteriorPoint();else t=(new Je(this)).getInteriorPoint();return this.createPointFromInternalCoord(t,this)},symDifference:function(t){if(this.isEmpty()||t.isEmpty()){if(this.isEmpty()&&t.isEmpty())return ds.createEmptyResult(ds.SYMDIFFERENCE,this,t,this._factory);if(this.isEmpty())return t.copy();if(t.isEmpty())return this.copy()}return this.checkNotGeometryCollection(this),
this.checkNotGeometryCollection(t),fs.overlayOp(this,t,ds.SYMDIFFERENCE)},createPointFromInternalCoord:function(t,e){return e.getPrecisionModel().makePrecise(t),e.getFactory().createPoint(t)},toText:function(){return(new he).write(this)},toString:function(){this.toText()},contains:function(t){return Gs.contains(this,t)},difference:function(t){return this.isEmpty()?ds.createEmptyResult(ds.DIFFERENCE,this,t,this._factory):t.isEmpty()?this.copy():(this.checkNotGeometryCollection(this),this.checkNotGeometryCollection(t),
fs.overlayOp(this,t,ds.DIFFERENCE))},isSimple:function(){return(new $i(this)).isSimple()},isWithinDistance:function(t,e){return!(this.getEnvelopeInternal().distance(t.getEnvelopeInternal())>e)&&Fr.isWithinDistance(this,t,e)},distance:function(t){return Fr.distance(this,t)},isEquivalentClass:function(t){return this.getClass()===t.getClass()}});t.version="1.6.0 (ac4d0f6)",t.algorithm=En,t.densify=Sn,t.dissolve=bn,t.geom=ve,t.geomgraph=ii,t.index=wi,t.io=Gi,t.noding=Ji,t.operation=Js,t.precision=eo,
t.simplify=_o,t.triangulate=Bo,t.linearref=Zo,Object.defineProperty(t,"__esModule",{value:!0})});
(function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca=[].slice;xa=function(){var a,b,c,d,e;for(a={},e="Boolean Number String Function Array Date RegExp Undefined Null".split(" "),d=0,b=e.length;d<b;d++)c=e[d],a["[object "+c+"]"]=c.toLowerCase();return function(b){var c;return c=Object.prototype.toString.call(b),a[c]||"object"}}(),U=function(a,
b,c){return null==b&&(b=0),null==c&&(c=1),a<b&&(a=b),a>c&&(a=c),a},ya=function(a){return a.length>=3?[].slice.call(a):a[0]},u=function(a){var b,c;for(a._clipped=!1,a._unclipped=a.slice(0),b=c=0;c<3;b=++c)b<3?((a[b]<0||a[b]>255)&&(a._clipped=!0),a[b]<0&&(a[b]=0),a[b]>255&&(a[b]=255)):3===b&&(a[b]<0&&(a[b]=0),a[b]>1&&(a[b]=1));return a._clipped||delete a._unclipped,a},d=Math.PI,sa=Math.round,w=Math.cos,B=Math.floor,ba=Math.pow,V=Math.log,ua=Math.sin,va=Math.sqrt,n=Math.atan2,Y=Math.max,m=Math.abs,g=
2*d,e=d/3,b=d/180,f=180/d,t=function(){return arguments[0]instanceof a?arguments[0]:function(a,b,c){c.prototype=a.prototype;var d=new c,e=a.apply(d,b);return Object(e)===e?e:d}(a,arguments,function(){})},t.default=t,l=[],"undefined"!=typeof module&&null!==module&&null!=module.exports&&(module.exports=t),"function"==typeof define&&define.amd?define([],function(){return t}):(ra="undefined"!=typeof exports&&null!==exports?exports:this,ra.chroma=t);if(typeof Liferay.Loader.define==="function"&&Liferay.Loader.define.amd)Liferay.Loader.define("chroma",
[],function(){return t});t.version="1.3.4",k={},i=[],j=!1,a=function(){function a(){var a,b,c,d,e,f,g,h,l;for(f=this,b=[],h=0,d=arguments.length;h<d;h++)null!=(a=arguments[h])&&b.push(a);if(b.length>1&&(g=b[b.length-1]),null!=k[g])f._rgb=u(k[g](ya(b.slice(0,-1))));else{for(j||(i=i.sort(function(a,b){return b.p-a.p}),j=!0),l=0,e=i.length;l<e&&(c=i[l],!(g=c.test.apply(c,b)));l++);g&&(f._rgb=u(k[g].apply(k,b)))}null==f._rgb&&console.warn("unknown format: "+b),null==f._rgb&&(f._rgb=[0,0,0]),3===f._rgb.length&&
f._rgb.push(1)}return a.prototype.toString=function(){return this.hex()},a.prototype.clone=function(){return t(me._rgb)},a}(),t._input=k,t.brewer=r={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913",
"#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177",
"#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],
YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142",
"#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8",
"#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac",
"#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],
Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},function(){var a,b;b=[];for(a in r)b.push(r[a.toLowerCase()]=r[a])}(),za={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",
bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",
darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",
grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",
lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",
navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",
sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},t.colors=za,P=function(){var a,b,d,e,f,g,h,i,j;return b=ya(arguments),f=b[0],a=
b[1],d=b[2],i=(f+16)/116,h=isNaN(a)?i:i+a/500,j=isNaN(d)?i:i-d/200,i=c.Yn*Q(i),h=c.Xn*Q(h),j=c.Zn*Q(j),g=Ba(3.2404542*h-1.5371385*i-.4985314*j),e=Ba(-.969266*h+1.8760108*i+.041556*j),d=Ba(.0556434*h-.2040259*i+1.0572252*j),[g,e,d,b.length>3?b[3]:1]},Ba=function(a){return 255*(a<=.00304?12.92*a:1.055*ba(a,1/2.4)-.055)},Q=function(a){return a>c.t1?a*a*a:c.t2*(a-c.t0)},c={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},ja=function(){var a,b,c,d,e,f,g,h;return d=
ya(arguments),c=d[0],b=d[1],a=d[2],e=oa(c,b,a),f=e[0],g=e[1],h=e[2],[116*g-16,500*(f-g),200*(g-h)]},pa=function(a){return(a/=255)<=.04045?a/12.92:ba((a+.055)/1.055,2.4)},Aa=function(a){return a>c.t3?ba(a,1/3):a/c.t2+c.t0},oa=function(){var a,b,d,e,f,g,h;return e=ya(arguments),d=e[0],b=e[1],a=e[2],d=pa(d),b=pa(b),a=pa(a),f=Aa((.4124564*d+.3575761*b+.1804375*a)/c.Xn),g=Aa((.2126729*d+.7151522*b+.072175*a)/c.Yn),h=Aa((.0193339*d+.119192*b+.9503041*a)/c.Zn),[f,g,h]},t.lab=function(){return function(a,
b,c){c.prototype=a.prototype;var d=new c,e=a.apply(d,b);return Object(e)===e?e:d}(a,Ca.call(arguments).concat(["lab"]),function(){})},k.lab=P,a.prototype.lab=function(){return ja(this._rgb)},o=function(a){var b,c,d,e,f,g,h,i,j,k,l;return a=function(){var b,c,d;for(d=[],c=0,b=a.length;c<b;c++)e=a[c],d.push(t(e));return d}(),2===a.length?(j=function(){var b,c,d;for(d=[],c=0,b=a.length;c<b;c++)e=a[c],d.push(e.lab());return d}(),f=j[0],g=j[1],b=function(a){var b,c;return c=function(){var c,d;for(d=[],
b=c=0;c<=2;b=++c)d.push(f[b]+a*(g[b]-f[b]));return d}(),t.lab.apply(t,c)}):3===a.length?(k=function(){var b,c,d;for(d=[],c=0,b=a.length;c<b;c++)e=a[c],d.push(e.lab());return d}(),f=k[0],g=k[1],h=k[2],b=function(a){var b,c;return c=function(){var c,d;for(d=[],b=c=0;c<=2;b=++c)d.push((1-a)*(1-a)*f[b]+2*(1-a)*a*g[b]+a*a*h[b]);return d}(),t.lab.apply(t,c)}):4===a.length?(l=function(){var b,c,d;for(d=[],c=0,b=a.length;c<b;c++)e=a[c],d.push(e.lab());return d}(),f=l[0],g=l[1],h=l[2],i=l[3],b=function(a){var b,
c;return c=function(){var c,d;for(d=[],b=c=0;c<=2;b=++c)d.push((1-a)*(1-a)*(1-a)*f[b]+3*(1-a)*(1-a)*a*g[b]+3*(1-a)*a*a*h[b]+a*a*a*i[b]);return d}(),t.lab.apply(t,c)}):5===a.length&&(c=o(a.slice(0,3)),d=o(a.slice(2,5)),b=function(a){return a<.5?c(2*a):d(2*(a-.5))}),b},t.bezier=function(a){var b;return b=o(a),b.scale=function(){return t.scale(b)},b},t.cubehelix=function(a,b,c,d,e){var f,h,i;return null==a&&(a=300),null==b&&(b=-1.5),null==c&&(c=1),null==d&&(d=1),null==e&&(e=[0,1]),f=0,"array"===xa(e)?
h=e[1]-e[0]:(h=0,e=[e,e]),i=function(i){var j,k,l,m,n,o,p,q,r;return j=g*((a+120)/360+b*i),p=ba(e[0]+h*i,d),o=0!==f?c[0]+i*f:c,k=o*p*(1-p)/2,m=w(j),r=ua(j),q=p+k*(-.14861*m+1.78277*r),n=p+k*(-.29227*m-.90649*r),l=p+k*(1.97294*m),t(u([255*q,255*n,255*l]))},i.start=function(b){return null==b?a:(a=b,i)},i.rotations=function(a){return null==a?b:(b=a,i)},i.gamma=function(a){return null==a?d:(d=a,i)},i.hue=function(a){return null==a?c:(c=a,"array"===xa(c)?0===(f=c[1]-c[0])&&(c=c[1]):f=0,i)},i.lightness=
function(a){return null==a?e:("array"===xa(a)?(e=a,h=a[1]-a[0]):(e=[a,a],h=0),i)},i.scale=function(){return t.scale(i)},i.hue(c),i},t.random=function(){var b,c,d;for(c="0123456789abcdef",b="#",d=0;d<6;++d)b+=c.charAt(B(16*Math.random()));return new a(b)},l=[],I=function(a,b,c,d){var e,f,g,h;for(null==c&&(c=.5),null==d&&(d="rgb"),"object"!==xa(a)&&(a=t(a)),"object"!==xa(b)&&(b=t(b)),g=0,f=l.length;g<f;g++)if(e=l[g],d===e[0]){h=e[1](a,b,c,d);break}if(null==h)throw"color mode "+d+" is not supported";
return h.alpha(a.alpha()+c*(b.alpha()-a.alpha()))},t.interpolate=I,a.prototype.interpolate=function(a,b,c){return I(this,a,b,c)},t.mix=I,a.prototype.mix=a.prototype.interpolate,k.rgb=function(){var a,b,c,d;b=ya(arguments),c=[];for(a in b)d=b[a],c.push(d);return c},t.rgb=function(){return function(a,b,c){c.prototype=a.prototype;var d=new c,e=a.apply(d,b);return Object(e)===e?e:d}(a,Ca.call(arguments).concat(["rgb"]),function(){})},a.prototype.rgb=function(a){return null==a&&(a=!0),a?this._rgb.map(Math.round).slice(0,
3):this._rgb.slice(0,3)},a.prototype.rgba=function(a){return null==a&&(a=!0),a?[Math.round(this._rgb[0]),Math.round(this._rgb[1]),Math.round(this._rgb[2]),this._rgb[3]]:this._rgb.slice(0)},i.push({p:3,test:function(a){var b;return b=ya(arguments),"array"===xa(b)&&3===b.length?"rgb":4===b.length&&"number"===xa(b[3])&&b[3]>=0&&b[3]<=1?"rgb":void 0}}),k.lrgb=k.rgb,L=function(b,c,d,e){var f,g;return f=b._rgb,g=c._rgb,new a(va(ba(f[0],2)*(1-d)+ba(g[0],2)*d),va(ba(f[1],2)*(1-d)+ba(g[1],2)*d),va(ba(f[2],
2)*(1-d)+ba(g[2],2)*d),e)},h=function(b){var c,d,e,f,g,h;for(d=1/b.length,h=[0,0,0,0],f=0,e=b.length;f<e;f++)c=b[f],g=c._rgb,h[0]+=ba(g[0],2)*d,h[1]+=ba(g[1],2)*d,h[2]+=ba(g[2],2)*d,h[3]+=g[3]*d;return h[0]=va(h[0]),h[1]=va(h[1]),h[2]=va(h[2]),new a(h)},l.push(["lrgb",L]),t.average=function(a,b){var c,e,f,g,i,j,k,l,m,o,p,q,r;if(null==b&&(b="rgb"),m=a.length,a=a.map(function(a){return t(a)}),k=a.splice(0,1)[0],"lrgb"===b)return h(a);q=k.get(b),g=[],i=0,j=0;for(l in q)q[l]=q[l]||0,g.push(isNaN(q[l])?
0:1),"h"!==b.charAt(l)||isNaN(q[l])||(c=q[l]/180*d,i+=w(c),j+=ua(c));for(e=k.alpha(),p=0,o=a.length;p<o;p++){f=a[p],r=f.get(b),e+=f.alpha();for(l in q)isNaN(r[l])||(q[l]+=r[l],g[l]+=1,"h"===b.charAt(l)&&(c=q[l]/180*d,i+=w(c),j+=ua(c)))}for(l in q)if(q[l]=q[l]/g[l],"h"===b.charAt(l)){for(c=n(j/g[l],i/g[l])/d*180;c<0;)c+=360;for(;c>=360;)c-=360;q[l]=c}return t(q,b).alpha(e/m)},D=function(a){var b,c,d,e,f,g;if(a.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/))return 4!==a.length&&7!==a.length||(a=a.substr(1)),
3===a.length&&(a=a.split(""),a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),g=parseInt(a,16),e=g>>16,d=g>>8&255,c=255&g,[e,d,c,1];if(a.match(/^#?([A-Fa-f0-9]{8})$/))return 9===a.length&&(a=a.substr(1)),g=parseInt(a,16),e=g>>24&255,d=g>>16&255,c=g>>8&255,b=sa((255&g)/255*100)/100,[e,d,c,b];if(null!=k.css&&(f=k.css(a)))return f;throw"unknown color: "+a;},fa=function(a,b){var c,d,e,f,g,h,i;return null==b&&(b="rgb"),g=a[0],e=a[1],d=a[2],c=a[3],g=Math.round(g),e=Math.round(e),d=Math.round(d),i=g<<16|e<<8|d,h="000000"+
i.toString(16),h=h.substr(h.length-6),f="0"+sa(255*c).toString(16),f=f.substr(f.length-2),"#"+function(){switch(b.toLowerCase()){case "rgba":return h+f;case "argb":return f+h;default:return h}}()},k.hex=function(a){return D(a)},t.hex=function(){return function(a,b,c){c.prototype=a.prototype;var d=new c,e=a.apply(d,b);return Object(e)===e?e:d}(a,Ca.call(arguments).concat(["hex"]),function(){})},a.prototype.hex=function(a){return null==a&&(a="rgb"),fa(this._rgb,a)},i.push({p:4,test:function(a){if(1===
arguments.length&&"string"===xa(a))return"hex"}}),G=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n;if(a=ya(arguments),e=a[0],k=a[1],g=a[2],0===k)i=d=b=255*g;else{for(n=[0,0,0],c=[0,0,0],m=g<.5?g*(1+k):g+k-g*k,l=2*g-m,e/=360,n[0]=e+1/3,n[1]=e,n[2]=e-1/3,f=h=0;h<=2;f=++h)n[f]<0&&(n[f]+=1),n[f]>1&&(n[f]-=1),6*n[f]<1?c[f]=l+6*(m-l)*n[f]:2*n[f]<1?c[f]=m:3*n[f]<2?c[f]=l+(m-l)*(2/3-n[f])*6:c[f]=l;j=[sa(255*c[0]),sa(255*c[1]),sa(255*c[2])],i=j[0],d=j[1],b=j[2]}return a.length>3?[i,d,b,a[3]]:[i,d,b]},ha=function(a,
b,c){var d,e,f,g,h;return void 0!==a&&a.length>=3&&(g=a,a=g[0],b=g[1],c=g[2]),a/=255,b/=255,c/=255,f=Math.min(a,b,c),Y=Math.max(a,b,c),e=(Y+f)/2,Y===f?(h=0,d=Number.NaN):h=e<.5?(Y-f)/(Y+f):(Y-f)/(2-Y-f),a===Y?d=(b-c)/(Y-f):b===Y?d=2+(c-a)/(Y-f):c===Y&&(d=4+(a-b)/(Y-f)),d*=60,d<0&&(d+=360),[d,h,e]},t.hsl=function(){return function(a,b,c){c.prototype=a.prototype;var d=new c,e=a.apply(d,b);return Object(e)===e?e:d}(a,Ca.call(arguments).concat(["hsl"]),function(){})},k.hsl=G,a.prototype.hsl=function(){return ha(this._rgb)},
H=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;if(a=ya(arguments),e=a[0],p=a[1],r=a[2],r*=255,0===p)i=d=b=r;else switch(360===e&&(e=0),e>360&&(e-=360),e<0&&(e+=360),e/=60,f=B(e),c=e-f,g=r*(1-p),h=r*(1-p*c),q=r*(1-p*(1-c)),f){case 0:j=[r,q,g],i=j[0],d=j[1],b=j[2];break;case 1:k=[h,r,g],i=k[0],d=k[1],b=k[2];break;case 2:l=[g,r,q],i=l[0],d=l[1],b=l[2];break;case 3:m=[g,h,r],i=m[0],d=m[1],b=m[2];break;case 4:n=[q,g,r],i=n[0],d=n[1],b=n[2];break;case 5:o=[r,g,h],i=o[0],d=o[1],b=o[2]}return[i,d,b,
a.length>3?a[3]:1]},ia=function(){var a,b,c,d,e,f,g,h,i;return g=ya(arguments),f=g[0],c=g[1],a=g[2],e=Math.min(f,c,a),Y=Math.max(f,c,a),b=Y-e,i=Y/255,0===Y?(d=Number.NaN,h=0):(h=b/Y,f===Y&&(d=(c-a)/b),c===Y&&(d=2+(a-f)/b),a===Y&&(d=4+(f-c)/b),(d*=60)<0&&(d+=360)),[d,h,i]},t.hsv=function(){return function(a,b,c){c.prototype=a.prototype;var d=new c,e=a.apply(d,b);return Object(e)===e?e:d}(a,Ca.call(arguments).concat(["hsv"]),function(){})},k.hsv=H,a.prototype.hsv=function(){return ia(this._rgb)},_=
function(a){var b,c,d;return"number"===xa(a)&&a>=0&&a<=16777215?(d=a>>16,c=a>>8&255,b=255&a,[d,c,b,1]):(console.warn("unknown num color: "+a),[0,0,0,1])},ma=function(){var a,b,c,d;return d=ya(arguments),c=d[0],b=d[1],a=d[2],(c<<16)+(b<<8)+a},t.num=function(b){return new a(b,"num")},a.prototype.num=function(a){return null==a&&(a="rgb"),ma(this._rgb,a)},k.num=_,i.push({p:1,test:function(a){if(1===arguments.length&&"number"===xa(a)&&a>=0&&a<=16777215)return"num"}}),C=function(){var a,b,c,d,e,f,g,h,i,
j,k,l,m,n,o,p,q,r,s,t;if(c=ya(arguments),h=c[0],e=c[1],b=c[2],e/=100,g=g/100*255,a=255*e,0===e)l=g=d=b;else switch(360===h&&(h=0),h>360&&(h-=360),h<0&&(h+=360),h/=60,i=B(h),f=h-i,j=b*(1-e),k=j+a*(1-f),s=j+a*f,t=j+a,i){case 0:m=[t,s,j],l=m[0],g=m[1],d=m[2];break;case 1:n=[k,t,j],l=n[0],g=n[1],d=n[2];break;case 2:o=[j,t,s],l=o[0],g=o[1],d=o[2];break;case 3:p=[j,k,t],l=p[0],g=p[1],d=p[2];break;case 4:q=[s,j,t],l=q[0],g=q[1],d=q[2];break;case 5:r=[t,j,k],l=r[0],g=r[1],d=r[2]}return[l,g,d,c.length>3?c[3]:
1]},ea=function(){var a,b,c,d,e,f,g,h,i;return i=ya(arguments),h=i[0],e=i[1],b=i[2],g=Math.min(h,e,b),Y=Math.max(h,e,b),d=Y-g,c=100*d/255,a=g/(255-d)*100,0===d?f=Number.NaN:(h===Y&&(f=(e-b)/d),e===Y&&(f=2+(b-h)/d),b===Y&&(f=4+(h-e)/d),(f*=60)<0&&(f+=360)),[f,c,a]},t.hcg=function(){return function(a,b,c){c.prototype=a.prototype;var d=new c,e=a.apply(d,b);return Object(e)===e?e:d}(a,Ca.call(arguments).concat(["hcg"]),function(){})},k.hcg=C,a.prototype.hcg=function(){return ea(this._rgb)},x=function(a){var b,
c,d,e,f,g,h,i;if(a=a.toLowerCase(),null!=t.colors&&t.colors[a])return D(t.colors[a]);if(f=a.match(/rgb\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*\)/)){for(h=f.slice(1,4),e=g=0;g<=2;e=++g)h[e]=+h[e];h[3]=1}else if(f=a.match(/rgba\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*,\s*([01]|[01]?\.\d+)\)/))for(h=f.slice(1,5),e=i=0;i<=3;e=++i)h[e]=+h[e];else if(f=a.match(/rgb\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/)){for(h=f.slice(1,4),e=b=0;b<=2;e=++b)h[e]=sa(2.55*h[e]);
h[3]=1}else if(f=a.match(/rgba\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/)){for(h=f.slice(1,5),e=c=0;c<=2;e=++c)h[e]=sa(2.55*h[e]);h[3]=+h[3]}else(f=a.match(/hsl\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/))?(d=f.slice(1,4),d[1]*=.01,d[2]*=.01,h=G(d),h[3]=1):(f=a.match(/hsla\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/))&&(d=f.slice(1,4),d[1]*=.01,d[2]*=
.01,h=G(d),h[3]=+f[4]);return h},da=function(a){var b;return b=a[3]<1?"rgba":"rgb","rgb"===b?b+"("+a.slice(0,3).map(sa).join(",")+")":"rgba"===b?b+"("+a.slice(0,3).map(sa).join(",")+","+a[3]+")":void 0},qa=function(a){return sa(100*a)/100},F=function(a,b){var c;return c=b<1?"hsla":"hsl",a[0]=qa(a[0]||0),a[1]=qa(100*a[1])+"%",a[2]=qa(100*a[2])+"%","hsla"===c&&(a[3]=b),c+"("+a.join(",")+")"},k.css=function(a){return x(a)},t.css=function(){return function(a,b,c){c.prototype=a.prototype;var d=new c,e=
a.apply(d,b);return Object(e)===e?e:d}(a,Ca.call(arguments).concat(["css"]),function(){})},a.prototype.css=function(a){return null==a&&(a="rgb"),"rgb"===a.slice(0,3)?da(this._rgb):"hsl"===a.slice(0,3)?F(this.hsl(),this.alpha()):void 0},k.named=function(a){return D(za[a])},i.push({p:5,test:function(a){if(1===arguments.length&&null!=za[a])return"named"}}),a.prototype.name=function(a){var b,c;arguments.length&&(za[a]&&(this._rgb=D(za[a])),this._rgb[3]=1),b=this.hex();for(c in za)if(b===za[c])return c;
return b},R=function(){var a,c,d,e;return e=ya(arguments),d=e[0],a=e[1],c=e[2],c*=b,[d,w(c)*a,ua(c)*a]},S=function(){var a,b,c,d,e,f,g,h,i,j,k;return c=ya(arguments),h=c[0],e=c[1],g=c[2],j=R(h,e,g),a=j[0],b=j[1],d=j[2],k=P(a,b,d),i=k[0],f=k[1],d=k[2],[i,f,d,c.length>3?c[3]:1]},O=function(){var a,b,c,d,e,g;return g=ya(arguments),e=g[0],a=g[1],b=g[2],c=va(a*a+b*b),d=(n(b,a)*f+360)%360,0===sa(1E4*c)&&(d=Number.NaN),[e,c,d]},ka=function(){var a,b,c,d,e,f,g;return f=ya(arguments),e=f[0],c=f[1],b=f[2],
g=ja(e,c,b),d=g[0],a=g[1],b=g[2],O(d,a,b)},t.lch=function(){var b;return b=ya(arguments),new a(b,"lch")},t.hcl=function(){var b;return b=ya(arguments),new a(b,"hcl")},k.lch=S,k.hcl=function(){var a,b,c,d;return d=ya(arguments),b=d[0],a=d[1],c=d[2],S([c,a,b])},a.prototype.lch=function(){return ka(this._rgb)},a.prototype.hcl=function(){return ka(this._rgb).reverse()},ca=function(a){var b,c,d,e,f,g,h,i,j;return null==a&&(a="rgb"),i=ya(arguments),h=i[0],e=i[1],b=i[2],h/=255,e/=255,b/=255,f=1-Math.max(h,
Math.max(e,b)),d=f<1?1/(1-f):0,c=(1-h-f)*d,g=(1-e-f)*d,j=(1-b-f)*d,[c,g,j,f]},v=function(){var a,b,c,d,e,f,g,h,i;return b=ya(arguments),d=b[0],g=b[1],i=b[2],f=b[3],a=b.length>4?b[4]:1,1===f?[0,0,0,a]:(h=d>=1?0:255*(1-d)*(1-f),e=g>=1?0:255*(1-g)*(1-f),c=i>=1?0:255*(1-i)*(1-f),[h,e,c,a])},k.cmyk=function(){return v(ya(arguments))},t.cmyk=function(){return function(a,b,c){c.prototype=a.prototype;var d=new c,e=a.apply(d,b);return Object(e)===e?e:d}(a,Ca.call(arguments).concat(["cmyk"]),function(){})},
a.prototype.cmyk=function(){return ca(this._rgb)},k.gl=function(){var a,b,c,d,e;for(d=function(){var a,c;a=ya(arguments),c=[];for(b in a)e=a[b],c.push(e);return c}.apply(this,arguments),a=c=0;c<=2;a=++c)d[a]*=255;return d},t.gl=function(){return function(a,b,c){c.prototype=a.prototype;var d=new c,e=a.apply(d,b);return Object(e)===e?e:d}(a,Ca.call(arguments).concat(["gl"]),function(){})},a.prototype.gl=function(){var a;return a=this._rgb,[a[0]/255,a[1]/255,a[2]/255,a[3]]},la=function(a,b,c){var d;
return d=ya(arguments),a=d[0],b=d[1],c=d[2],a=W(a),b=W(b),c=W(c),.2126*a+.7152*b+.0722*c},W=function(a){return a/=255,a<=.03928?a/12.92:ba((a+.055)/1.055,2.4)},N=function(b,c,d,e){var f,g;return f=b._rgb,g=c._rgb,new a(f[0]+d*(g[0]-f[0]),f[1]+d*(g[1]-f[1]),f[2]+d*(g[2]-f[2]),e)},l.push(["rgb",N]),a.prototype.luminance=function(a,b){var c,d,e,f;return null==b&&(b="rgb"),arguments.length?(0===a?this._rgb=[0,0,0,this._rgb[3]]:1===a?this._rgb=[255,255,255,this._rgb[3]]:(d=1E-7,e=20,f=function(c,g){var h,
i;return i=c.interpolate(g,.5,b),h=i.luminance(),Math.abs(a-h)<d||!e--?i:h>a?f(c,i):f(i,g)},c=la(this._rgb),this._rgb=(c>a?f(t("black"),this):f(this,t("white"))).rgba()),this):la(this._rgb)},wa=function(a){var b,c,d,e;return e=a/100,e<66?(d=255,c=-155.25485562709179-.44596950469579133*(c=e-2)+104.49216199393888*V(c),b=e<20?0:.8274096064007395*(b=e-10)-254.76935184120902+115.67994401066147*V(b)):(d=351.97690566805693+.114206453784165*(d=e-55)-40.25366309332127*V(d),c=325.4494125711974+.07943456536662342*
(c=e-50)-28.0852963507957*V(c),b=255),[d,c,b]},na=function(){var a,b,c,d,e,f,g,h;for(f=ya(arguments),e=f[0],f[1],a=f[2],d=1E3,c=4E4,b=.4;c-d>b;)h=.5*(c+d),g=wa(h),g[2]/g[0]>=a/e?c=h:d=h;return sa(h)},t.temperature=t.kelvin=function(){return function(a,b,c){c.prototype=a.prototype;var d=new c,e=a.apply(d,b);return Object(e)===e?e:d}(a,Ca.call(arguments).concat(["temperature"]),function(){})},k.temperature=k.kelvin=k.K=wa,a.prototype.temperature=function(){return na(this._rgb)},a.prototype.kelvin=a.prototype.temperature,
t.contrast=function(b,c){var d,e,f,g;return"string"!==(f=xa(b))&&"number"!==f||(b=new a(b)),"string"!==(g=xa(c))&&"number"!==g||(c=new a(c)),d=b.luminance(),e=c.luminance(),d>e?(d+.05)/(e+.05):(e+.05)/(d+.05)},t.distance=function(b,c,d){var e,f,g,h,i,j,k;null==d&&(d="lab"),"string"!==(i=xa(b))&&"number"!==i||(b=new a(b)),"string"!==(j=xa(c))&&"number"!==j||(c=new a(c)),g=b.get(d),h=c.get(d),k=0;for(f in g)e=(g[f]||0)-(h[f]||0),k+=e*e;return Math.sqrt(k)},t.deltaE=function(b,c,e,f){var g,h,i,j,k,l,
o,p,q,r,s,t,u,v,x,y,z,A,B,C,D,E,F,G,H,I,J;for(null==e&&(e=1),null==f&&(f=1),"string"!==(z=xa(b))&&"number"!==z||(b=new a(b)),"string"!==(A=xa(c))&&"number"!==A||(c=new a(c)),B=b.lab(),g=B[0],i=B[1],k=B[2],C=c.lab(),h=C[0],j=C[1],l=C[2],o=va(i*i+k*k),p=va(j*j+l*l),F=g<16?.511:.040975*g/(1+.01765*g),D=.0638*o/(1+.0131*o)+.638,y=o<1E-6?0:180*n(k,i)/d;y<0;)y+=360;for(;y>=360;)y-=360;return G=y>=164&&y<=345?.56+m(.2*w(d*(y+168)/180)):.36+m(.4*w(d*(y+35)/180)),q=o*o*o*o,x=va(q/(q+1900)),E=D*(x*G+1-x),v=
g-h,u=o-p,s=i-j,t=k-l,r=s*s+t*t-u*u,H=v/(e*F),I=u/(f*D),J=E,va(H*H+I*I+r/(J*J))},a.prototype.get=function(a){var b,c,d,e,f,g;return d=this,f=a.split("."),e=f[0],b=f[1],g=d[e](),b?(c=e.indexOf(b),c>-1?g[c]:console.warn("unknown channel "+b+" in mode "+e)):g},a.prototype.set=function(a,b){var c,d,e,f,g,h;if(e=this,g=a.split("."),f=g[0],c=g[1],c)if(h=e[f](),(d=f.indexOf(c))>-1)if("string"===xa(b))switch(b.charAt(0)){case "+":case "-":h[d]+=+b;break;case "*":h[d]*=+b.substr(1);break;case "/":h[d]/=+b.substr(1);
break;default:h[d]=+b}else h[d]=b;else console.warn("unknown channel "+c+" in mode "+f);else h=b;return t(h,f).alpha(e.alpha())},a.prototype.clipped=function(){return this._rgb._clipped||!1},a.prototype.alpha=function(a){return arguments.length?t.rgb([this._rgb[0],this._rgb[1],this._rgb[2],a]):this._rgb[3]},a.prototype.darken=function(a){var b,d;return null==a&&(a=1),d=this,b=d.lab(),b[0]-=c.Kn*a,t.lab(b).alpha(d.alpha())},a.prototype.brighten=function(a){return null==a&&(a=1),this.darken(-a)},a.prototype.darker=
a.prototype.darken,a.prototype.brighter=a.prototype.brighten,a.prototype.saturate=function(a){var b,d;return null==a&&(a=1),d=this,b=d.lch(),b[1]+=a*c.Kn,b[1]<0&&(b[1]=0),t.lch(b).alpha(d.alpha())},a.prototype.desaturate=function(a){return null==a&&(a=1),this.saturate(-a)},a.prototype.premultiply=function(){var a,b;return b=this.rgb(),a=this.alpha(),t(b[0]*a,b[1]*a,b[2]*a,a)},p=function(a,b,c){if(!p[c])throw"unknown blend mode "+c;return p[c](a,b)},q=function(a){return function(b,c){var d,e;return d=
t(c).rgb(),e=t(b).rgb(),t(a(d,e),"rgb")}},A=function(a){return function(b,c){var d,e,f;for(f=[],d=e=0;e<=3;d=++e)f[d]=a(b[d],c[d]);return f}},$=function(a,b){return a},Z=function(a,b){return a*b/255},y=function(a,b){return a>b?b:a},T=function(a,b){return a>b?a:b},ta=function(a,b){return 255*(1-(1-a/255)*(1-b/255))},aa=function(a,b){return b<128?2*a*b/255:255*(1-2*(1-a/255)*(1-b/255))},s=function(a,b){return 255*(1-(1-b/255)/(a/255))},z=function(a,b){return 255===a?255:(a=b/255*255/(1-a/255),a>255?
255:a)},p.normal=q(A($)),p.multiply=q(A(Z)),p.screen=q(A(ta)),p.overlay=q(A(aa)),p.darken=q(A(y)),p.lighten=q(A(T)),p.dodge=q(A(z)),p.burn=q(A(s)),t.blend=p,t.analyze=function(a){var b,c,d,e;for(d={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0},c=0,b=a.length;c<b;c++)null==(e=a[c])||isNaN(e)||(d.values.push(e),d.sum+=e,e<d.min&&(d.min=e),e>d.max&&(d.max=e),d.count+=1);return d.domain=[d.min,d.max],d.limits=function(a,b){return t.limits(d,a,b)},d},t.scale=function(a,b){var c,
d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v,w;return j="rgb",k=t("#ccc"),o=0,!1,g=[0,1],n=[],m=[0,0],c=!1,e=[],l=!1,i=0,h=1,f=!1,d={},p=!0,v=function(a){var b,c,d,f,g,h;if(null==a&&(a=["#fff","#000"]),null!=a&&"string"===xa(a)&&null!=t.brewer&&(a=t.brewer[a]||t.brewer[a.toLowerCase()]||a),"array"===xa(a)){for(a=a.slice(0),b=d=0,f=a.length-1;0<=f?d<=f:d>=f;b=0<=f?++d:--d)c=a[b],"string"===xa(c)&&(a[b]=t(c));for(n.length=0,b=h=0,g=a.length-1;0<=g?h<=g:h>=g;b=0<=g?++h:--h)n.push(b/(a.length-1))}return u(),e=
a},r=function(a){var b,d;if(null!=c){for(d=c.length-1,b=0;b<d&&a>=c[b];)b++;return b-1}return 0},w=function(a){return a},function(a){var b,d,e,f,g;return g=a,c.length>2&&(f=c.length-1,b=r(a),e=c[0]+(c[1]-c[0])*(0+.5*o),d=c[f-1]+(c[f]-c[f-1])*(1-.5*o),g=i+(c[b]+.5*(c[b+1]-c[b])-e)/(d-e)*(h-i)),g},s=function(a,b){var f,g,l,o,q,s,u,v;if(null==b&&(b=!1),isNaN(a))return k;if(b?v=a:c&&c.length>2?(f=r(a),v=f/(c.length-2),v=m[0]+v*(1-m[0]-m[1])):h!==i?(v=(a-i)/(h-i),v=m[0]+v*(1-m[0]-m[1]),v=Math.min(1,Math.max(0,
v))):v=1,b||(v=w(v)),o=Math.floor(1E4*v),p&&d[o])g=d[o];else{if("array"===xa(e))for(l=q=0,u=n.length-1;0<=u?q<=u:q>=u;l=0<=u?++q:--q){if(s=n[l],v<=s){g=e[l];break}if(v>=s&&l===n.length-1){g=e[l];break}if(v>s&&v<n[l+1]){v=(v-s)/(n[l+1]-s),g=t.interpolate(e[l],e[l+1],v,j);break}}else"function"===xa(e)&&(g=e(v));p&&(d[o]=g)}return g},u=function(){return d={}},v(a),q=function(a){var b;return b=t(s(a)),l&&b[l]?b[l]():b},q.classes=function(a){var b;return null!=a?("array"===xa(a)?(c=a,g=[a[0],a[a.length-
1]]):(b=t.analyze(g),c=0===a?[b.min,b.max]:t.limits(b,"e",a)),q):c},q.domain=function(a){var b,c,d,f,j,k,l;if(!arguments.length)return g;if(i=a[0],h=a[a.length-1],n=[],d=e.length,a.length===d&&i!==h)for(j=0,f=a.length;j<f;j++)c=a[j],n.push((c-i)/(h-i));else for(b=l=0,k=d-1;0<=k?l<=k:l>=k;b=0<=k?++l:--l)n.push(b/(d-1));return g=[i,h],q},q.mode=function(a){return arguments.length?(j=a,u(),q):j},q.range=function(a,b){return v(a,b),q},q.out=function(a){return l=a,q},q.spread=function(a){return arguments.length?
(o=a,q):o},q.correctLightness=function(a){return null==a&&(a=!0),f=a,u(),w=f?function(a){var b,c,d,e,f,g,h,i,j;for(b=s(0,!0).lab()[0],c=s(1,!0).lab()[0],h=b>c,d=s(a,!0).lab()[0],f=b+(c-b)*a,e=d-f,i=0,j=1,g=20;Math.abs(e)>.01&&g-- >0;)!function(){h&&(e*=-1),e<0?(i=a,a+=.5*(j-a)):(j=a,a+=.5*(i-a)),d=s(a,!0).lab()[0],e=d-f}();return a}:function(a){return a},q},q.padding=function(a){return null!=a?("number"===xa(a)&&(a=[a,a]),m=a,q):m},q.colors=function(b,d){var f,h,i,j,k,l,m,n;if(arguments.length<2&&
(d="hex"),k=[],0===arguments.length)k=e.slice(0);else if(1===b)k=[q(.5)];else if(b>1)h=g[0],f=g[1]-h,k=function(){l=[];for(var a=0;0<=b?a<b:a>b;0<=b?a++:a--)l.push(a);return l}.apply(this).map(function(a){return q(h+a/(b-1)*f)});else{if(a=[],m=[],c&&c.length>2)for(i=n=1,j=c.length;1<=j?n<j:n>j;i=1<=j?++n:--n)m.push(.5*(c[i-1]+c[i]));else m=g;k=m.map(function(a){return q(a)})}return t[d]&&(k=k.map(function(a){return a[d]()})),k},q.cache=function(a){return null!=a?p=a:p},q},null==t.scales&&(t.scales=
{}),t.scales.cool=function(){return t.scale([t.hsl(180,1,.9),t.hsl(250,.7,.4)])},t.scales.hot=function(){return t.scale(["#000","#f00","#ff0","#fff"],[0,.25,.75,1]).mode("rgb")},t.analyze=function(a,b,c){var d,e,f,g,h,i,j;if(h={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0},null==c&&(c=function(){return!0}),d=function(a){null==a||isNaN(a)||(h.values.push(a),h.sum+=a,a<h.min&&(h.min=a),a>h.max&&(h.max=a),h.count+=1)},j=function(a,e){if(c(a,e))return d(null!=b&&"function"===xa(b)?
b(a):null!=b&&"string"===xa(b)||"number"===xa(b)?a[b]:a)},"array"===xa(a))for(g=0,f=a.length;g<f;g++)i=a[g],j(i);else for(e in a)i=a[e],j(i,e);return h.domain=[h.min,h.max],h.limits=function(a,b){return t.limits(h,a,b)},h},t.limits=function(a,b,c){var d,e,f,g,h,i,j,k,l,n,o,p,q,r,s,u,v,w,x,y,z,A,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,W,X,Z,$,_,aa,ca,da,ea,fa,ga,ha,ia,ja;if(null==b&&(b="equal"),null==c&&(c=7),"array"===xa(a)&&(a=t.analyze(a)),E=a.min,Y=a.max,a.sum,ia=a.values.sort(function(a,b){return a-
b}),1===c)return[E,Y];if(C=[],"c"===b.substr(0,1)&&(C.push(E),C.push(Y)),"e"===b.substr(0,1)){for(C.push(E),y=K=1,O=c-1;1<=O?K<=O:K>=O;y=1<=O?++K:--K)C.push(E+y/c*(Y-E));C.push(Y)}else if("l"===b.substr(0,1)){if(E<=0)throw"Logarithmic scales are only possible for values \x3e 0";for(F=Math.LOG10E*V(E),D=Math.LOG10E*V(Y),C.push(E),y=ja=1,P=c-1;1<=P?ja<=P:ja>=P;y=1<=P?++ja:--ja)C.push(ba(10,F+y/c*(D-F)));C.push(Y)}else if("q"===b.substr(0,1)){for(C.push(E),y=d=1,W=c-1;1<=W?d<=W:d>=W;y=1<=W?++d:--d)L=
(ia.length-1)*y/c,M=B(L),M===L?C.push(ia[M]):(N=L-M,C.push(ia[M]*(1-N)+ia[M+1]*N));C.push(Y)}else if("k"===b.substr(0,1)){for(H=ia.length,r=new Array(H),w=new Array(c),ea=!0,I=0,u=null,u=[],u.push(E),y=e=1,X=c-1;1<=X?e<=X:e>=X;y=1<=X?++e:--e)u.push(E+y/c*(Y-E));for(u.push(Y);ea;){for(z=f=0,Z=c-1;0<=Z?f<=Z:f>=Z;z=0<=Z?++f:--f)w[z]=0;for(y=g=0,$=H-1;0<=$?g<=$:g>=$;y=0<=$?++g:--g){for(ha=ia[y],G=Number.MAX_VALUE,z=h=0,_=c-1;0<=_?h<=_:h>=_;z=0<=_?++h:--h)(x=m(u[z]-ha))<G&&(G=x,s=z);w[s]++,r[y]=s}for(J=
new Array(c),z=i=0,aa=c-1;0<=aa?i<=aa:i>=aa;z=0<=aa?++i:--i)J[z]=null;for(y=j=0,ca=H-1;0<=ca?j<=ca:j>=ca;y=0<=ca?++j:--j)v=r[y],null===J[v]?J[v]=ia[y]:J[v]+=ia[y];for(z=k=0,da=c-1;0<=da?k<=da:k>=da;z=0<=da?++k:--k)J[z]*=1/w[z];for(ea=!1,z=l=0,Q=c-1;0<=Q?l<=Q:l>=Q;z=0<=Q?++l:--l)if(J[z]!==u[y]){ea=!0;break}u=J,I++,I>200&&(ea=!1)}for(A={},z=n=0,R=c-1;0<=R?n<=R:n>=R;z=0<=R?++n:--n)A[z]=[];for(y=o=0,S=H-1;0<=S?o<=S:o>=S;y=0<=S?++o:--o)v=r[y],A[v].push(ia[y]);for(fa=[],z=p=0,T=c-1;0<=T?p<=T:p>=T;z=0<=
T?++p:--p)fa.push(A[z][0]),fa.push(A[z][A[z].length-1]);for(fa=fa.sort(function(a,b){return a-b}),C.push(fa[0]),y=q=1,U=fa.length-1;q<=U;y=q+=2)ga=fa[y],isNaN(ga)||-1!==C.indexOf(ga)||C.push(ga)}return C},E=function(a,b,c){var d,f,h,i;return d=ya(arguments),a=d[0],b=d[1],c=d[2],isNaN(a)&&(a=0),a/=360,a<1/3?(f=(1-b)/3,i=(1+b*w(g*a)/w(e-g*a))/3,h=1-(f+i)):a<2/3?(a-=1/3,i=(1-b)/3,h=(1+b*w(g*a)/w(e-g*a))/3,f=1-(i+h)):(a-=2/3,h=(1-b)/3,f=(1+b*w(g*a)/w(e-g*a))/3,i=1-(h+f)),i=U(c*i*3),h=U(c*h*3),f=U(c*f*
3),[255*i,255*h,255*f,d.length>3?d[3]:1]},ga=function(){var a,b,c,d,e,f,h,i;return h=ya(arguments),f=h[0],b=h[1],a=h[2],g=2*Math.PI,f/=255,b/=255,a/=255,e=Math.min(f,b,a),d=(f+b+a)/3,i=1-e/d,0===i?c=0:(c=(f-b+(f-a))/2,c/=Math.sqrt((f-b)*(f-b)+(f-a)*(b-a)),c=Math.acos(c),a>b&&(c=g-c),c/=g),[360*c,i,d]},t.hsi=function(){return function(a,b,c){c.prototype=a.prototype;var d=new c,e=a.apply(d,b);return Object(e)===e?e:d}(a,Ca.call(arguments).concat(["hsi"]),function(){})},k.hsi=E,a.prototype.hsi=function(){return ga(this._rgb)},
J=function(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p;return"hsl"===d?(o=a.hsl(),p=b.hsl()):"hsv"===d?(o=a.hsv(),p=b.hsv()):"hcg"===d?(o=a.hcg(),p=b.hcg()):"hsi"===d?(o=a.hsi(),p=b.hsi()):"lch"!==d&&"hcl"!==d||(d="hcl",o=a.hcl(),p=b.hcl()),"h"===d.substr(0,1)&&(g=o[0],m=o[1],j=o[2],h=p[0],n=p[1],k=p[2]),isNaN(g)||isNaN(h)?isNaN(g)?isNaN(h)?f=Number.NaN:(f=h,1!==j&&0!==j||"hsv"===d||(l=n)):(f=g,1!==k&&0!==k||"hsv"===d||(l=m)):(e=h>g&&h-g>180?h-(g+360):h<g&&g-h>180?h+360-g:h-g,f=g+c*e),null==l&&(l=m+c*(n-
m)),i=j+c*(k-j),t[d](f,l,i)},l=l.concat(function(){var a,b,c,d;for(c=["hsv","hsl","hsi","hcl","lch","hcg"],d=[],b=0,a=c.length;b<a;b++)X=c[b],d.push([X,J]);return d}()),M=function(a,b,c,d){var e,f;return e=a.num(),f=b.num(),t.num(e+(f-e)*c,"num")},l.push(["num",M]),K=function(b,c,d,e){var f,g;return f=b.lab(),g=c.lab(),new a(f[0]+d*(g[0]-f[0]),f[1]+d*(g[1]-f[1]),f[2]+d*(g[2]-f[2]),e)},l.push(["lab",K])}).call(this);
!function(root,factory){if(typeof Liferay.Loader.define==="function"&&Liferay.Loader.define.amd)Liferay.Loader.define("proj4",[],factory);else if(typeof module==="object"&&module.exports)module.exports=factory();else root.proj4=factory()}(this,function(){function a(a,b){if(a[b])return a[b];for(var c,d,e=Object.keys(a),f=b.toLowerCase().replace(Ob,""),g=-1;++g<e.length;)if(c=e[g],d=c.toLowerCase().replace(Ob,""),d===f)return a[c]}function b(a){if("string"!=typeof a)throw new Error("not a string");
this.text=a.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=Qb}function c(a){var c=new b(a);return c.output()}function d(a,b,c){Array.isArray(b)&&(c.unshift(b),b=null);var d=b?{}:a,f=c.reduce(function(a,b){return e(b,a),a},d);b&&(a[b]=f)}function e(a,b){if(!Array.isArray(a))return void(b[a]=!0);var c=a.shift();if("PARAMETER"===c&&(c=a.shift()),1===a.length)return Array.isArray(a[0])?(b[c]={},void e(a[0],b[c])):void(b[c]=a[0]);if(!a.length)return void(b[c]=
!0);if("TOWGS84"===c)return void(b[c]=a);b[c]={};var f;switch(c){case "UNIT":case "PRIMEM":case "VERT_DATUM":return b[c]={name:a[0].toLowerCase(),convert:a[1]},void(3===a.length&&e(a[2],b[c]));case "SPHEROID":case "ELLIPSOID":return b[c]={name:a[0],a:a[1],rf:a[2]},void(4===a.length&&e(a[3],b[c]));case "PROJECTEDCRS":case "PROJCRS":case "GEOGCS":case "GEOCCS":case "PROJCS":case "LOCAL_CS":case "GEODCRS":case "GEODETICCRS":case "GEODETICDATUM":case "EDATUM":case "ENGINEERINGDATUM":case "VERT_CS":case "VERTCRS":case "VERTICALCRS":case "COMPD_CS":case "COMPOUNDCRS":case "ENGINEERINGCRS":case "ENGCRS":case "FITTED_CS":case "LOCAL_DATUM":case "DATUM":return a[0]=
["name",a[0]],void d(b,c,a);default:for(f=-1;++f<a.length;)if(!Array.isArray(a[f]))return e(a,b[c]);return d(b,c,a)}}function f(a,b){var c=b[0],d=b[1];!(c in a)&&d in a&&(a[c]=a[d],3===b.length&&(a[c]=b[2](a[c])))}function g(a){return a*_b}function h(a){function b(b){var c=a.to_meter||1;return b*c}"GEOGCS"===a.type?a.projName="longlat":"LOCAL_CS"===a.type?(a.projName="identity",a.local=!0):"object"==typeof a.PROJECTION?a.projName=Object.keys(a.PROJECTION)[0]:a.projName=a.PROJECTION,a.UNIT&&(a.units=
a.UNIT.name.toLowerCase(),"metre"===a.units&&(a.units="meter"),a.UNIT.convert&&("GEOGCS"===a.type?a.DATUM&&a.DATUM.SPHEROID&&(a.to_meter=a.UNIT.convert*a.DATUM.SPHEROID.a):(a.to_meter=a.UNIT.convert,10))),a.GEOGCS&&(a.GEOGCS.DATUM?a.datumCode=a.GEOGCS.DATUM.name.toLowerCase():a.datumCode=a.GEOGCS.name.toLowerCase(),"d_"===a.datumCode.slice(0,2)&&(a.datumCode=a.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==a.datumCode&&"new_zealand_1949"!==a.datumCode||(a.datumCode="nzgd49"),"wgs_1984"===
a.datumCode&&("Mercator_Auxiliary_Sphere"===a.PROJECTION&&(a.sphere=!0),a.datumCode="wgs84"),"_ferro"===a.datumCode.slice(-6)&&(a.datumCode=a.datumCode.slice(0,-6)),"_jakarta"===a.datumCode.slice(-8)&&(a.datumCode=a.datumCode.slice(0,-8)),~a.datumCode.indexOf("belge")&&(a.datumCode="rnb72"),a.GEOGCS.DATUM&&a.GEOGCS.DATUM.SPHEROID&&(a.ellps=a.GEOGCS.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke_18/,"clrk"),"international"===a.ellps.toLowerCase().slice(0,13)&&(a.ellps="intl"),a.a=a.GEOGCS.DATUM.SPHEROID.a,
a.rf=parseFloat(a.GEOGCS.DATUM.SPHEROID.rf,10)),~a.datumCode.indexOf("osgb_1936")&&(a.datumCode="osgb36")),a.b&&!isFinite(a.b)&&(a.b=a.a);var c=function(b){return f(a,b)},d=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],
["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",g],["longitude_of_center","Longitude_Of_Center"],["longc","longitude_of_center",g],["x0","false_easting",b],["y0","false_northing",b],["long0","central_meridian",g],["lat0","latitude_of_origin",g],["lat0","standard_parallel_1",g],["lat1","standard_parallel_1",g],["lat2","standard_parallel_2",g],["alpha","azimuth",g],["srsCode","name"]];d.forEach(c),a.long0||!a.longc||"Albers_Conic_Equal_Area"!==a.projName&&"Lambert_Azimuthal_Equal_Area"!==
a.projName||(a.long0=a.longc),a.lat_ts||!a.lat1||"Stereographic_South_Pole"!==a.projName&&"Polar Stereographic (variant B)"!==a.projName||(a.lat0=g(a.lat1>0?90:-90),a.lat_ts=a.lat1)}function i(a){var b=this;if(2===arguments.length){var c=arguments[1];"string"==typeof c?"+"===c.charAt(0)?i[a]=Pb(arguments[1]):i[a]=ac(arguments[1]):i[a]=c}else if(1===arguments.length){if(Array.isArray(a))return a.map(function(a){Array.isArray(a)?i.apply(b,a):i(a)});if("string"==typeof a){if(a in i)return i[a]}else"EPSG"in
a?i["EPSG:"+a.EPSG]=a:"ESRI"in a?i["ESRI:"+a.ESRI]=a:"IAU2000"in a?i["IAU2000:"+a.IAU2000]=a:console.log(a);return}}function j(a){return"string"==typeof a}function k(a){return a in i}function l(a){return bc.some(function(b){return a.indexOf(b)>-1})}function m(a){return"+"===a[0]}function n(a){return j(a)?k(a)?i[a]:l(a)?ac(a):m(a)?Pb(a):void 0:a}function o(){var a=this.b/this.a;this.es=1-a*a,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=
Math.cos(this.lat_ts):this.k0=dc(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function p(a){var b=a.x,c=a.y;if(c*Ib>90&&c*Ib<-90&&b*Ib>180&&b*Ib<-180)return null;var d,e;if(Math.abs(Math.abs(c)-Cb)<=Gb)return null;if(this.sphere)d=this.x0+this.a*this.k0*fc(b-this.long0),e=this.y0+this.a*this.k0*Math.log(Math.tan(Jb+.5*c));else{var f=Math.sin(c),g=gc(this.e,c,f);d=this.x0+this.a*this.k0*fc(b-this.long0),e=this.y0-this.a*this.k0*Math.log(g)}return a.x=
d,a.y=e,a}function q(a){var b,c,d=a.x-this.x0,e=a.y-this.y0;if(this.sphere)c=Cb-2*Math.atan(Math.exp(-e/(this.a*this.k0)));else{var f=Math.exp(-e/(this.a*this.k0));if(c=hc(this.e,f),c===-9999)return null}return b=fc(this.long0+d/(this.a*this.k0)),a.x=b,a.y=c,a}function r(){}function s(a){return a}function t(a,b){var c=oc.length;return a.names?(oc[c]=a,a.names.forEach(function(a){nc[a.toLowerCase()]=c}),this):(console.log(b),!0)}function u(a){if(!a)return!1;var b=a.toLowerCase();return"undefined"!=
typeof nc[b]&&oc[nc[b]]?oc[nc[b]]:void 0}function v(){mc.forEach(t)}function w(a,b,c,d){var e=a*a,f=b*b,g=(e-f)/e,h=0;d?(a*=1-g*(Db+g*(Eb+g*Fb)),e=a*a,g=0):h=Math.sqrt(g);var i=(e-f)/f;return{es:g,e:h,ep2:i}}function x(b,c,d,e,f){if(!b){var g=a(qc,e);g||(g=rc),b=g.a,c=g.b,d=g.rf}return d&&!c&&(c=(1-1/d)*b),(0===d||Math.abs(b-c)<Gb)&&(f=!0,c=b),{a:b,b:c,rf:d,sphere:f}}function y(a,b,c,d,e,f){var g={};return void 0===a||"none"===a?g.datum_type=Ab:g.datum_type=zb,b&&(g.datum_params=b.map(parseFloat),
0===g.datum_params[0]&&0===g.datum_params[1]&&0===g.datum_params[2]||(g.datum_type=xb),g.datum_params.length>3&&(0===g.datum_params[3]&&0===g.datum_params[4]&&0===g.datum_params[5]&&0===g.datum_params[6]||(g.datum_type=yb,g.datum_params[3]*=Bb,g.datum_params[4]*=Bb,g.datum_params[5]*=Bb,g.datum_params[6]=g.datum_params[6]/1E6+1))),g.a=c,g.b=d,g.es=e,g.ep2=f,g}function z(b,c){if(!(this instanceof z))return new z(b);c=c||function(a){if(a)throw a;};var d=n(b);if("object"!=typeof d)return void c(b);var e=
z.projections.get(d.projName);if(!e)return void c(b);if(d.datumCode&&"none"!==d.datumCode){var f=a(sc,d.datumCode);f&&(d.datum_params=f.towgs84?f.towgs84.split(","):null,d.ellps=f.ellipse,d.datumName=f.datumName?f.datumName:d.datumCode)}d.k0=d.k0||1,d.axis=d.axis||"enu";var g=x(d.a,d.b,d.rf,d.ellps,d.sphere),h=w(g.a,g.b,g.rf,d.R_A),i=d.datum||y(d.datumCode,d.datum_params,g.a,g.b,h.es,h.ep2);cc(this,d),cc(this,e),this.a=g.a,this.b=g.b,this.rf=g.rf,this.sphere=g.sphere,this.es=h.es,this.e=h.e,this.ep2=
h.ep2,this.datum=i,this.init(),c(null,this)}function A(a,b){return a.datum_type===b.datum_type&&(!(a.a!==b.a||Math.abs(a.es-b.es)>5E-11)&&(a.datum_type===xb?a.datum_params[0]===b.datum_params[0]&&a.datum_params[1]===b.datum_params[1]&&a.datum_params[2]===b.datum_params[2]:a.datum_type!==yb||a.datum_params[0]===b.datum_params[0]&&a.datum_params[1]===b.datum_params[1]&&a.datum_params[2]===b.datum_params[2]&&a.datum_params[3]===b.datum_params[3]&&a.datum_params[4]===b.datum_params[4]&&a.datum_params[5]===
b.datum_params[5]&&a.datum_params[6]===b.datum_params[6]))}function B(a,b,c){var d,e,f,g,h=a.x,i=a.y,j=a.z?a.z:0;if(i<-Cb&&i>-1.001*Cb)i=-Cb;else if(i>Cb&&i<1.001*Cb)i=Cb;else if(i<-Cb||i>Cb)return null;return h>Math.PI&&(h-=2*Math.PI),e=Math.sin(i),g=Math.cos(i),f=e*e,d=c/Math.sqrt(1-b*f),{x:(d+j)*g*Math.cos(h),y:(d+j)*g*Math.sin(h),z:(d*(1-b)+j)*e}}function C(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u=1E-12,v=u*u,w=30,x=a.x,y=a.y,z=a.z?a.z:0;if(e=Math.sqrt(x*x+y*y),f=Math.sqrt(x*x+y*y+z*z),
e/c<u){if(r=0,f/c<u)return s=Cb,t=-d,{x:a.x,y:a.y,z:a.z}}else r=Math.atan2(y,x);g=z/f,h=e/f,i=1/Math.sqrt(1-b*(2-b)*h*h),l=h*(1-b)*i,m=g*i,q=0;do q++,k=c/Math.sqrt(1-b*m*m),t=e*l+z*m-k*(1-b*m*m),j=b*k/(k+t),i=1/Math.sqrt(1-j*(2-j)*h*h),n=h*(1-j)*i,o=g*i,p=o*l-n*m,l=n,m=o;while(p*p>v&&q<w);return s=Math.atan(o/Math.abs(n)),{x:r,y:s,z:t}}function D(a,b,c){if(b===xb)return{x:a.x+c[0],y:a.y+c[1],z:a.z+c[2]};if(b===yb){var d=c[0],e=c[1],f=c[2],g=c[3],h=c[4],i=c[5],j=c[6];return{x:j*(a.x-i*a.y+h*a.z)+d,
y:j*(i*a.x+a.y-g*a.z)+e,z:j*(-h*a.x+g*a.y+a.z)+f}}}function E(a,b,c){if(b===xb)return{x:a.x-c[0],y:a.y-c[1],z:a.z-c[2]};if(b===yb){var d=c[0],e=c[1],f=c[2],g=c[3],h=c[4],i=c[5],j=c[6],k=(a.x-d)/j,l=(a.y-e)/j,m=(a.z-f)/j;return{x:k+i*l-h*m,y:-i*k+l+g*m,z:h*k-g*l+m}}}function F(a){return a===xb||a===yb}function G(a,b){return(a.datum.datum_type===xb||a.datum.datum_type===yb)&&"WGS84"!==b.datumCode||(b.datum.datum_type===xb||b.datum.datum_type===yb)&&"WGS84"!==a.datumCode}function H(a,b,c){var d;return Array.isArray(c)&&
(c=vc(c)),a.datum&&b.datum&&G(a,b)&&(d=new z("WGS84"),c=H(a,d,c),a=d),"enu"!==a.axis&&(c=uc(a,!1,c)),"longlat"===a.projName?c={x:c.x*Hb,y:c.y*Hb}:(a.to_meter&&(c={x:c.x*a.to_meter,y:c.y*a.to_meter}),c=a.inverse(c)),a.from_greenwich&&(c.x+=a.from_greenwich),c=tc(a.datum,b.datum,c),b.from_greenwich&&(c={x:c.x-b.from_greenwich,y:c.y}),"longlat"===b.projName?c={x:c.x*Ib,y:c.y*Ib}:(c=b.forward(c),b.to_meter&&(c={x:c.x/b.to_meter,y:c.y/b.to_meter})),"enu"!==b.axis?uc(b,!0,c):c}function I(a,b,c){var d;return Array.isArray(c)?
(d=H(a,b,c),3===c.length?[d.x,d.y,d.z]:[d.x,d.y]):H(a,b,c)}function J(a){return a instanceof z?a:a.oProj?a.oProj:z(a)}function K(a,b,c){a=J(a);var d,e=!1;return"undefined"==typeof b?(b=a,a=wc,e=!0):("undefined"!=typeof b.x||Array.isArray(b))&&(c=b,b=a,a=wc,e=!0),b=J(b),c?I(a,b,c):(d={forward:function(c){return I(a,b,c)},inverse:function(c){return I(b,a,c)}},e&&(d.oProj=b),d)}function L(a,b){return b=b||5,T(Q({lat:a[1],lon:a[0]}),b)}function M(a){var b=R(X(a.toUpperCase()));return b.lat&&b.lon?[b.lon,
b.lat,b.lon,b.lat]:[b.left,b.bottom,b.right,b.top]}function N(a){var b=R(X(a.toUpperCase()));return b.lat&&b.lon?[b.lon,b.lat]:[(b.left+b.right)/2,(b.top+b.bottom)/2]}function O(a){return a*(Math.PI/180)}function P(a){return 180*(a/Math.PI)}function Q(a){var b,c,d,e,f,g,h,i,j,k=a.lat,l=a.lon,m=6378137,n=.00669438,o=.9996,p=O(k),q=O(l);j=Math.floor((l+180)/6)+1,180===l&&(j=60),k>=56&&k<64&&l>=3&&l<12&&(j=32),k>=72&&k<84&&(l>=0&&l<9?j=31:l>=9&&l<21?j=33:l>=21&&l<33?j=35:l>=33&&l<42&&(j=37)),b=6*(j-
1)-180+3,i=O(b),c=n/(1-n),d=m/Math.sqrt(1-n*Math.sin(p)*Math.sin(p)),e=Math.tan(p)*Math.tan(p),f=c*Math.cos(p)*Math.cos(p),g=Math.cos(p)*(q-i),h=m*((1-n/4-3*n*n/64-5*n*n*n/256)*p-(3*n/8+3*n*n/32+45*n*n*n/1024)*Math.sin(2*p)+(15*n*n/256+45*n*n*n/1024)*Math.sin(4*p)-35*n*n*n/3072*Math.sin(6*p));var r=o*d*(g+(1-e+f)*g*g*g/6+(5-18*e+e*e+72*f-58*c)*g*g*g*g*g/120)+5E5,s=o*(h+d*Math.tan(p)*(g*g/2+(5-e+9*f+4*f*f)*g*g*g*g/24+(61-58*e+e*e+600*f-330*c)*g*g*g*g*g*g/720));return k<0&&(s+=1E7),{northing:Math.round(s),
easting:Math.round(r),zoneNumber:j,zoneLetter:S(k)}}function R(a){var b=a.northing,c=a.easting,d=a.zoneLetter,e=a.zoneNumber;if(e<0||e>60)return null;var f,g,h,i,j,k,l,m,n,o,p=.9996,q=6378137,r=.00669438,s=(1-Math.sqrt(1-r))/(1+Math.sqrt(1-r)),t=c-5E5,u=b;d<"N"&&(u-=1E7),m=6*(e-1)-180+3,f=r/(1-r),l=u/p,n=l/(q*(1-r/4-3*r*r/64-5*r*r*r/256)),o=n+(3*s/2-27*s*s*s/32)*Math.sin(2*n)+(21*s*s/16-55*s*s*s*s/32)*Math.sin(4*n)+151*s*s*s/96*Math.sin(6*n),g=q/Math.sqrt(1-r*Math.sin(o)*Math.sin(o)),h=Math.tan(o)*
Math.tan(o),i=f*Math.cos(o)*Math.cos(o),j=q*(1-r)/Math.pow(1-r*Math.sin(o)*Math.sin(o),1.5),k=t/(g*p);var v=o-g*Math.tan(o)/j*(k*k/2-(5+3*h+10*i-4*i*i-9*f)*k*k*k*k/24+(61+90*h+298*i+45*h*h-252*f-3*i*i)*k*k*k*k*k*k/720);v=P(v);var w=(k-(1+2*h+i)*k*k*k/6+(5-2*i+28*h-3*i*i+8*f+24*h*h)*k*k*k*k*k/120)/Math.cos(o);w=m+P(w);var x;if(a.accuracy){var y=R({northing:a.northing+a.accuracy,easting:a.easting+a.accuracy,zoneLetter:a.zoneLetter,zoneNumber:a.zoneNumber});x={top:y.lat,right:y.lon,bottom:v,left:w}}else x=
{lat:v,lon:w};return x}function S(a){var b="Z";return 84>=a&&a>=72?b="X":72>a&&a>=64?b="W":64>a&&a>=56?b="V":56>a&&a>=48?b="U":48>a&&a>=40?b="T":40>a&&a>=32?b="S":32>a&&a>=24?b="R":24>a&&a>=16?b="Q":16>a&&a>=8?b="P":8>a&&a>=0?b="N":0>a&&a>=-8?b="M":-8>a&&a>=-16?b="L":-16>a&&a>=-24?b="K":-24>a&&a>=-32?b="J":-32>a&&a>=-40?b="H":-40>a&&a>=-48?b="G":-48>a&&a>=-56?b="F":-56>a&&a>=-64?b="E":-64>a&&a>=-72?b="D":-72>a&&a>=-80&&(b="C"),b}function T(a,b){var c="00000"+a.easting,d="00000"+a.northing;return a.zoneNumber+
a.zoneLetter+U(a.easting,a.northing,a.zoneNumber)+c.substr(c.length-5,b)+d.substr(d.length-5,b)}function U(a,b,c){var d=V(c),e=Math.floor(a/1E5),f=Math.floor(b/1E5)%20;return W(e,f,d)}function V(a){var b=a%xc;return 0===b&&(b=xc),b}function W(a,b,c){var d=c-1,e=yc.charCodeAt(d),f=zc.charCodeAt(d),g=e+a-1,h=f+b,i=!1;g>Ec&&(g=g-Ec+Ac-1,i=!0),(g===Bc||e<Bc&&g>Bc||(g>Bc||e<Bc)&&i)&&g++,(g===Cc||e<Cc&&g>Cc||(g>Cc||e<Cc)&&i)&&(g++,g===Bc&&g++),g>Ec&&(g=g-Ec+Ac-1),h>Dc?(h=h-Dc+Ac-1,i=!0):i=!1,(h===Bc||f<
Bc&&h>Bc||(h>Bc||f<Bc)&&i)&&h++,(h===Cc||f<Cc&&h>Cc||(h>Cc||f<Cc)&&i)&&(h++,h===Bc&&h++),h>Dc&&(h=h-Dc+Ac-1);var j=String.fromCharCode(g)+String.fromCharCode(h);return j}function X(a){if(a&&0===a.length)throw"MGRSPoint coverting from nothing";for(var b,c=a.length,d=null,e="",f=0;!/[A-Z]/.test(b=a.charAt(f));){if(f>=2)throw"MGRSPoint bad conversion from: "+a;e+=b,f++}var g=parseInt(e,10);if(0===f||f+3>c)throw"MGRSPoint bad conversion from: "+a;var h=a.charAt(f++);if(h<="A"||"B"===h||"Y"===h||h>="Z"||
"I"===h||"O"===h)throw"MGRSPoint zone letter "+h+" not handled: "+a;d=a.substring(f,f+=2);for(var i=V(g),j=Y(d.charAt(0),i),k=Z(d.charAt(1),i);k<$(h);)k+=2E6;var l=c-f;if(l%2!==0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+a;var m,n,o,p,q,r=l/2,s=0,t=0;return r>0&&(m=1E5/Math.pow(10,r),n=a.substring(f,f+r),s=parseFloat(n)*m,o=a.substring(f+r),t=parseFloat(o)*m),p=s+j,q=t+k,
{easting:p,northing:q,zoneLetter:h,zoneNumber:g,accuracy:m}}function Y(a,b){for(var c=yc.charCodeAt(b-1),d=1E5,e=!1;c!==a.charCodeAt(0);){if(c++,c===Bc&&c++,c===Cc&&c++,c>Ec){if(e)throw"Bad character: "+a;c=Ac,e=!0}d+=1E5}return d}function Z(a,b){if(a>"V")throw"MGRSPoint given invalid Northing "+a;for(var c=zc.charCodeAt(b-1),d=0,e=!1;c!==a.charCodeAt(0);){if(c++,c===Bc&&c++,c===Cc&&c++,c>Dc){if(e)throw"Bad character: "+a;c=Ac,e=!0}d+=1E5}return d}function $(a){var b;switch(a){case "C":b=11E5;break;
case "D":b=2E6;break;case "E":b=28E5;break;case "F":b=37E5;break;case "G":b=46E5;break;case "H":b=55E5;break;case "J":b=64E5;break;case "K":b=73E5;break;case "L":b=82E5;break;case "M":b=91E5;break;case "N":b=0;break;case "P":b=8E5;break;case "Q":b=17E5;break;case "R":b=26E5;break;case "S":b=35E5;break;case "T":b=44E5;break;case "U":b=53E5;break;case "V":b=62E5;break;case "W":b=7E6;break;case "X":b=79E5;break;default:b=-1}if(b>=0)return b;throw"Invalid zone letter: "+a;}function Point(a,b,c){if(!(this instanceof
Point))return new Point(a,b,c);if(Array.isArray(a))this.x=a[0],this.y=a[1],this.z=a[2]||0;else if("object"==typeof a)this.x=a.x,this.y=a.y,this.z=a.z||0;else if("string"==typeof a&&"undefined"==typeof b){var d=a.split(",");this.x=parseFloat(d[0],10),this.y=parseFloat(d[1],10),this.z=parseFloat(d[2],10)||0}else this.x=a,this.y=b,this.z=c||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}function _(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,
this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=Tc(this.es),this.ml0=Uc(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function aa(a){var b,c,d,e=a.x,f=a.y,g=fc(e-this.long0),h=Math.sin(f),i=Math.cos(f);if(this.es){var j=i*g,k=Math.pow(j,2),l=this.ep2*Math.pow(i,2),m=Math.pow(l,2),n=Math.abs(i)>Gb?Math.tan(f):0,o=Math.pow(n,2),p=Math.pow(o,2);b=1-this.es*Math.pow(h,2),j/=Math.sqrt(b);var q=Uc(f,h,i,this.en);c=this.a*(this.k0*j*(1+
k/6*(1-o+l+k/20*(5-18*o+p+14*l-58*o*l+k/42*(61+179*p-p*o-479*o)))))+this.x0,d=this.a*(this.k0*(q-this.ml0+h*g*j/2*(1+k/12*(5-o+9*l+4*m+k/30*(61+p-58*o+270*l-330*o*l+k/56*(1385+543*p-p*o-3111*o))))))+this.y0}else{var r=i*Math.sin(g);if(Math.abs(Math.abs(r)-1)<Gb)return 93;if(c=.5*this.a*this.k0*Math.log((1+r)/(1-r))+this.x0,d=i*Math.cos(g)/Math.sqrt(1-Math.pow(r,2)),r=Math.abs(d),r>=1){if(r-1>Gb)return 93;d=0}else d=Math.acos(d);f<0&&(d=-d),d=this.a*this.k0*(d-this.lat0)+this.y0}return a.x=c,a.y=d,
a}function ba(a){var b,c,d,e,f=(a.x-this.x0)*(1/this.a),g=(a.y-this.y0)*(1/this.a);if(this.es)if(b=this.ml0+g/this.k0,c=Wc(b,this.es,this.en),Math.abs(c)<Cb){var h=Math.sin(c),i=Math.cos(c),j=Math.abs(i)>Gb?Math.tan(c):0,k=this.ep2*Math.pow(i,2),l=Math.pow(k,2),m=Math.pow(j,2),n=Math.pow(m,2);b=1-this.es*Math.pow(h,2);var o=f*Math.sqrt(b)/this.k0,p=Math.pow(o,2);b*=j,d=c-b*p/(1-this.es)*.5*(1-p/12*(5+3*m-9*k*m+k-4*l-p/30*(61+90*m-252*k*m+45*n+46*k-p/56*(1385+3633*m+4095*n+1574*n*m)))),e=fc(this.long0+
o*(1-p/6*(1+2*m+k-p/20*(5+28*m+24*n+8*k*m+6*k-p/42*(61+662*m+1320*n+720*n*m))))/i)}else d=Cb*ec(g),e=0;else{var q=Math.exp(f/this.k0),r=.5*(q-1/q),s=this.lat0+g/this.k0,t=Math.cos(s);b=Math.sqrt((1-Math.pow(t,2))/(1+Math.pow(r,2))),d=Math.asin(b),g<0&&(d=-d),e=0===r&&0===t?0:fc(Math.atan2(r,t)+this.long0)}return a.x=e,a.y=d,a}function ca(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=
void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var a=this.es/(1+Math.sqrt(1-this.es)),b=a/(2-a),c=b;this.cgb[0]=b*(2+b*(-2/3+b*(-2+b*(116/45+b*(26/45+b*(-2854/675)))))),this.cbg[0]=b*(-2+b*(2/3+b*(4/3+b*(-82/45+b*(32/45+b*(4642/4725)))))),c*=b,this.cgb[1]=c*(7/3+b*(-1.6+b*(-227/45+b*(2704/315+b*(2323/945))))),this.cbg[1]=c*(5/3+b*(-16/15+b*(-13/9+b*(904/315+b*(-1522/945))))),c*=b,this.cgb[2]=c*(56/15+b*(-136/35+b*(-1262/105+
b*(73814/2835)))),this.cbg[2]=c*(-26/15+b*(34/21+b*(1.6+b*(-12686/2835)))),c*=b,this.cgb[3]=c*(4279/630+b*(-332/35+b*(-399572/14175))),this.cbg[3]=c*(1237/630+b*(-2.4+b*(-24832/14175))),c*=b,this.cgb[4]=c*(4174/315+b*(-144838/6237)),this.cbg[4]=c*(-734/315+b*(109598/31185)),c*=b,this.cgb[5]=c*(601676/22275),this.cbg[5]=c*(444337/155925),c=Math.pow(b,2),this.Qn=this.k0/(1+b)*(1+c*(.25+c*(1/64+c/256))),this.utg[0]=b*(-.5+b*(2/3+b*(-37/96+b*(1/360+b*(81/512+b*(-96199/604800)))))),this.gtu[0]=b*(.5+b*
(-2/3+b*(5/16+b*(41/180+b*(-127/288+b*(7891/37800)))))),this.utg[1]=c*(-1/48+b*(-1/15+b*(437/1440+b*(-46/105+b*(1118711/3870720))))),this.gtu[1]=c*(13/48+b*(-.6+b*(557/1440+b*(281/630+b*(-1983433/1935360))))),c*=b,this.utg[2]=c*(-17/480+b*(37/840+b*(209/4480+b*(-5569/90720)))),this.gtu[2]=c*(61/240+b*(-103/140+b*(15061/26880+b*(167603/181440)))),c*=b,this.utg[3]=c*(-4397/161280+b*(11/504+b*(830251/7257600))),this.gtu[3]=c*(49561/161280+b*(-179/168+b*(6601661/7257600))),c*=b,this.utg[4]=c*(-4583/161280+
b*(108847/3991680)),this.gtu[4]=c*(34729/80640+b*(-3418889/1995840)),c*=b,this.utg[5]=c*-.03233083094085698,this.gtu[5]=.6650675310896665*c;var d=bd(this.cbg,this.lat0);this.Zb=-this.Qn*(d+cd(this.gtu,2*d))}function da(a){var b=fc(a.x-this.long0),c=a.y;c=bd(this.cbg,c);var d=Math.sin(c),e=Math.cos(c),f=Math.sin(b),g=Math.cos(b);c=Math.atan2(d,g*e),b=Math.atan2(f*e,$c(d,e*g)),b=ad(Math.tan(b));var h=ed(this.gtu,2*c,2*b);c+=h[0],b+=h[1];var i,j;return Math.abs(b)<=2.623395162778?(i=this.a*(this.Qn*
b)+this.x0,j=this.a*(this.Qn*c+this.Zb)+this.y0):(i=1/0,j=1/0),a.x=i,a.y=j,a}function ea(a){var b=(a.x-this.x0)*(1/this.a),c=(a.y-this.y0)*(1/this.a);c=(c-this.Zb)/this.Qn,b/=this.Qn;var d,e;if(Math.abs(b)<=2.623395162778){var f=ed(this.utg,2*c,2*b);c+=f[0],b+=f[1],b=Math.atan(Zc(b));var g=Math.sin(c),h=Math.cos(c),i=Math.sin(b),j=Math.cos(b);c=Math.atan2(g*j,$c(i,j*h)),b=Math.atan2(i,j*h),d=fc(b+this.long0),e=bd(this.cgb,c)}else d=1/0,e=1/0;return a.x=d,a.y=e,a}function fa(){var a=hd(this.zone,this.long0);
if(void 0===a)throw new Error("unknown utm zone");this.lat0=0,this.long0=(a+.5)*Math.PI/30-Math.PI,this.x0=5E5,this.y0=this.utmSouth?1E7:0,this.k0=.9996,gd.init.apply(this),this.forward=gd.forward,this.inverse=gd.inverse}function ga(){var a=Math.sin(this.lat0),b=Math.cos(this.lat0);b*=b,this.rc=Math.sqrt(1-this.es)/(1-this.es*a*a),this.C=Math.sqrt(1+this.es*b*b/(1-this.es)),this.phic0=Math.asin(a/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+Jb)/(Math.pow(Math.tan(.5*this.lat0+
Jb),this.C)*ld(this.e*a,this.ratexp))}function ha(a){var b=a.x,c=a.y;return a.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*c+Jb),this.C)*ld(this.e*Math.sin(c),this.ratexp))-Cb,a.x=this.C*b,a}function ia(a){for(var b=1E-14,c=a.x/this.C,d=a.y,e=Math.pow(Math.tan(.5*d+Jb)/this.K,1/this.C),f=md;f>0&&(d=2*Math.atan(e*ld(this.e*Math.sin(a.y),-.5*this.e))-Cb,!(Math.abs(d-a.y)<b));--f)a.y=d;return f?(a.x=c,a.y=d,a):null}function ja(){od.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),
this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))}function ka(a){var b,c,d,e;return a.x=fc(a.x-this.long0),od.forward.apply(this,[a]),b=Math.sin(a.y),c=Math.cos(a.y),d=Math.cos(a.x),e=this.k0*this.R2/(1+this.sinc0*b+this.cosc0*c*d),a.x=e*c*Math.sin(a.x),a.y=e*(this.cosc0*b-this.sinc0*c*d),a.x=this.a*a.x+this.x0,a.y=this.a*a.y+this.y0,a}function la(a){var b,c,d,e,f;if(a.x=(a.x-this.x0)/this.a,a.y=(a.y-this.y0)/this.a,a.x/=this.k0,a.y/=this.k0,f=Math.sqrt(a.x*a.x+a.y*a.y)){var g=
2*Math.atan2(f,this.R2);b=Math.sin(g),c=Math.cos(g),e=Math.asin(c*this.sinc0+a.y*b*this.cosc0/f),d=Math.atan2(a.x*b,f*this.cosc0*c-a.y*this.sinc0*b)}else e=this.phic0,d=0;return a.x=d,a.y=e,od.inverse.apply(this,[a]),a.x=fc(a.x+this.long0),a}function ma(a,b,c){return b*=c,Math.tan(.5*(Cb+a))*Math.pow((1-b)/(1+b),.5*c)}function na(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=Gb&&(this.k0=.5*(1+ec(this.lat0)*
Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=Gb&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=Gb&&(this.k0=.5*this.cons*dc(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/gc(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=dc(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-Cb,this.cosX0=Math.cos(this.X0),
this.sinX0=Math.sin(this.X0))}function oa(a){var b,c,d,e,f,g,h=a.x,i=a.y,j=Math.sin(i),k=Math.cos(i),l=fc(h-this.long0);return Math.abs(Math.abs(h-this.long0)-Math.PI)<=Gb&&Math.abs(i+this.lat0)<=Gb?(a.x=NaN,a.y=NaN,a):this.sphere?(b=2*this.k0/(1+this.sinlat0*j+this.coslat0*k*Math.cos(l)),a.x=this.a*b*k*Math.sin(l)+this.x0,a.y=this.a*b*(this.coslat0*j-this.sinlat0*k*Math.cos(l))+this.y0,a):(c=2*Math.atan(this.ssfn_(i,j,this.e))-Cb,e=Math.cos(c),d=Math.sin(c),Math.abs(this.coslat0)<=Gb?(f=gc(this.e,
i*this.con,this.con*j),g=2*this.a*this.k0*f/this.cons,a.x=this.x0+g*Math.sin(h-this.long0),a.y=this.y0-this.con*g*Math.cos(h-this.long0),a):(Math.abs(this.sinlat0)<Gb?(b=2*this.a*this.k0/(1+e*Math.cos(l)),a.y=b*d):(b=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*d+this.cosX0*e*Math.cos(l))),a.y=b*(this.cosX0*d-this.sinX0*e*Math.cos(l))+this.y0),a.x=b*e*Math.sin(l)+this.x0,a))}function pa(a){a.x-=this.x0,a.y-=this.y0;var b,c,d,e,f,g=Math.sqrt(a.x*a.x+a.y*a.y);if(this.sphere){var h=2*Math.atan(g/
(.5*this.a*this.k0));return b=this.long0,c=this.lat0,g<=Gb?(a.x=b,a.y=c,a):(c=Math.asin(Math.cos(h)*this.sinlat0+a.y*Math.sin(h)*this.coslat0/g),b=fc(Math.abs(this.coslat0)<Gb?this.lat0>0?this.long0+Math.atan2(a.x,-1*a.y):this.long0+Math.atan2(a.x,a.y):this.long0+Math.atan2(a.x*Math.sin(h),g*this.coslat0*Math.cos(h)-a.y*this.sinlat0*Math.sin(h))),a.x=b,a.y=c,a)}if(Math.abs(this.coslat0)<=Gb){if(g<=Gb)return c=this.lat0,b=this.long0,a.x=b,a.y=c,a;a.x*=this.con,a.y*=this.con,d=g*this.cons/(2*this.a*
this.k0),c=this.con*hc(this.e,d),b=this.con*fc(this.con*this.long0+Math.atan2(a.x,-1*a.y))}else e=2*Math.atan(g*this.cosX0/(2*this.a*this.k0*this.ms1)),b=this.long0,g<=Gb?f=this.X0:(f=Math.asin(Math.cos(e)*this.sinX0+a.y*Math.sin(e)*this.cosX0/g),b=fc(this.long0+Math.atan2(a.x*Math.sin(e),g*this.cosX0*Math.cos(e)-a.y*this.sinX0*Math.sin(e)))),c=-1*hc(this.e,Math.tan(.5*(Cb+f)));return a.x=b,a.y=c,a}function qa(){var a=this.lat0;this.lambda0=this.long0;var b=Math.sin(a),c=this.a,d=this.rf,e=1/d,f=
2*e-Math.pow(e,2),g=this.e=Math.sqrt(f);this.R=this.k0*c*Math.sqrt(1-f)/(1-f*Math.pow(b,2)),this.alpha=Math.sqrt(1+f/(1-f)*Math.pow(Math.cos(a),4)),this.b0=Math.asin(b/this.alpha);var h=Math.log(Math.tan(Math.PI/4+this.b0/2)),i=Math.log(Math.tan(Math.PI/4+a/2)),j=Math.log((1+g*b)/(1-g*b));this.K=h-this.alpha*i+this.alpha*g/2*j}function ra(a){var b=Math.log(Math.tan(Math.PI/4-a.y/2)),c=this.e/2*Math.log((1+this.e*Math.sin(a.y))/(1-this.e*Math.sin(a.y))),d=-this.alpha*(b+c)+this.K,e=2*(Math.atan(Math.exp(d))-
Math.PI/4),f=this.alpha*(a.x-this.lambda0),g=Math.atan(Math.sin(f)/(Math.sin(this.b0)*Math.tan(e)+Math.cos(this.b0)*Math.cos(f))),h=Math.asin(Math.cos(this.b0)*Math.sin(e)-Math.sin(this.b0)*Math.cos(e)*Math.cos(f));return a.y=this.R/2*Math.log((1+Math.sin(h))/(1-Math.sin(h)))+this.y0,a.x=this.R*g+this.x0,a}function sa(a){for(var b=a.x-this.x0,c=a.y-this.y0,d=b/this.R,e=2*(Math.atan(Math.exp(c/this.R))-Math.PI/4),f=Math.asin(Math.cos(this.b0)*Math.sin(e)+Math.sin(this.b0)*Math.cos(e)*Math.cos(d)),
g=Math.atan(Math.sin(d)/(Math.cos(this.b0)*Math.cos(d)-Math.sin(this.b0)*Math.tan(e))),h=this.lambda0+g/this.alpha,i=0,j=f,k=-1E3,l=0;Math.abs(j-k)>1E-7;){if(++l>20)return;i=1/this.alpha*(Math.log(Math.tan(Math.PI/4+f/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(j))/2)),k=j,j=2*Math.atan(Math.exp(i))-Math.PI/2}return a.x=h,a.y=j,a}function ta(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&&(this.k0=1);var a=Math.sin(this.lat0),b=Math.cos(this.lat0),
c=this.e*a;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(b,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-c*c);var d=gc(this.e,this.lat0,a),e=this.bl/b*Math.sqrt((1-this.es)/(1-c*c));e*e<1&&(e=1);var f,g;if(isNaN(this.longc)){var h=gc(this.e,this.lat1,Math.sin(this.lat1)),i=gc(this.e,this.lat2,Math.sin(this.lat2));this.lat0>=0?this.el=(e+Math.sqrt(e*e-1))*Math.pow(d,this.bl):this.el=(e-Math.sqrt(e*e-1))*Math.pow(d,this.bl);var j=Math.pow(h,this.bl),k=Math.pow(i,this.bl);f=this.el/j,
g=.5*(f-1/f);var l=(this.el*this.el-k*j)/(this.el*this.el+k*j),m=(k-j)/(k+j),n=fc(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(l*Math.tan(.5*this.bl*n)/m)/this.bl,this.long0=fc(this.long0);var o=fc(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*o)/g),this.alpha=Math.asin(e*Math.sin(this.gamma0))}else f=this.lat0>=0?e+Math.sqrt(e*e-1):e-Math.sqrt(e*e-1),this.el=f*Math.pow(d,this.bl),g=.5*(f-1/f),this.gamma0=Math.asin(Math.sin(this.alpha)/e),this.long0=this.longc-
Math.asin(g*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(e*e-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(e*e-1),Math.cos(this.alpha))}function ua(a){var b,c,d,e=a.x,f=a.y,g=fc(e-this.long0);if(Math.abs(Math.abs(f)-Cb)<=Gb)d=f>0?-1:1,c=this.al/this.bl*Math.log(Math.tan(Jb+d*this.gamma0*.5)),b=-1*d*Cb*this.al/this.bl;else{var h=gc(this.e,f,Math.sin(f)),i=this.el/Math.pow(h,this.bl),j=.5*(i-1/i),k=.5*(i+1/
i),l=Math.sin(this.bl*g),m=(j*Math.sin(this.gamma0)-l*Math.cos(this.gamma0))/k;c=Math.abs(Math.abs(m)-1)<=Gb?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-m)/(1+m))/this.bl,b=Math.abs(Math.cos(this.bl*g))<=Gb?this.al*this.bl*g:this.al*Math.atan2(j*Math.cos(this.gamma0)+l*Math.sin(this.gamma0),Math.cos(this.bl*g))/this.bl}return this.no_rot?(a.x=this.x0+b,a.y=this.y0+c):(b-=this.uc,a.x=this.x0+c*Math.cos(this.alpha)+b*Math.sin(this.alpha),a.y=this.y0+b*Math.cos(this.alpha)-c*Math.sin(this.alpha)),
a}function va(a){var b,c;this.no_rot?(c=a.y-this.y0,b=a.x-this.x0):(c=(a.x-this.x0)*Math.cos(this.alpha)-(a.y-this.y0)*Math.sin(this.alpha),b=(a.y-this.y0)*Math.cos(this.alpha)+(a.x-this.x0)*Math.sin(this.alpha),b+=this.uc);var d=Math.exp(-1*this.bl*c/this.al),e=.5*(d-1/d),f=.5*(d+1/d),g=Math.sin(this.bl*b/this.al),h=(g*Math.cos(this.gamma0)+e*Math.sin(this.gamma0))/f,i=Math.pow(this.el/Math.sqrt((1+h)/(1-h)),1/this.bl);return Math.abs(h-1)<Gb?(a.x=this.long0,a.y=Cb):Math.abs(h+1)<Gb?(a.x=this.long0,
a.y=-1*Cb):(a.y=hc(this.e,i),a.x=fc(this.long0-Math.atan2(e*Math.cos(this.gamma0)-g*Math.sin(this.gamma0),Math.cos(this.bl*b/this.al))/this.bl)),a}function wa(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<Gb)){var a=this.b/this.a;this.e=Math.sqrt(1-a*a);var b=Math.sin(this.lat1),c=Math.cos(this.lat1),d=dc(this.e,b,c),e=gc(this.e,this.lat1,b),f=Math.sin(this.lat2),g=Math.cos(this.lat2),h=dc(this.e,f,g),i=gc(this.e,this.lat2,
f),j=gc(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>Gb?this.ns=Math.log(d/h)/Math.log(e/i):this.ns=b,isNaN(this.ns)&&(this.ns=b),this.f0=d/(this.ns*Math.pow(e,this.ns)),this.rh=this.a*this.f0*Math.pow(j,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function xa(a){var b=a.x,c=a.y;Math.abs(2*Math.abs(c)-Math.PI)<=Gb&&(c=ec(c)*(Cb-2*Gb));var d,e,f=Math.abs(Math.abs(c)-Cb);if(f>Gb)d=gc(this.e,c,Math.sin(c)),e=this.a*this.f0*Math.pow(d,this.ns);else{if(f=c*this.ns,
f<=0)return null;e=0}var g=this.ns*fc(b-this.long0);return a.x=this.k0*(e*Math.sin(g))+this.x0,a.y=this.k0*(this.rh-e*Math.cos(g))+this.y0,a}function ya(a){var b,c,d,e,f,g=(a.x-this.x0)/this.k0,h=this.rh-(a.y-this.y0)/this.k0;this.ns>0?(b=Math.sqrt(g*g+h*h),c=1):(b=-Math.sqrt(g*g+h*h),c=-1);var i=0;if(0!==b&&(i=Math.atan2(c*g,c*h)),0!==b||this.ns>0){if(c=1/this.ns,d=Math.pow(b/(this.a*this.f0),c),e=hc(this.e,d),e===-9999)return null}else e=-Cb;return f=fc(i/this.ns+this.long0),a.x=f,a.y=e,a}function za(){this.a=
6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),
this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function Aa(a){var b,c,d,e,f,g,h,i=a.x,j=a.y,k=fc(i-this.long0);return b=Math.pow((1+this.e*Math.sin(j))/(1-this.e*Math.sin(j)),this.alfa*this.e/2),c=2*(Math.atan(this.k*Math.pow(Math.tan(j/
2+this.s45),this.alfa)/b)-this.s45),d=-k*this.alfa,e=Math.asin(Math.cos(this.ad)*Math.sin(c)+Math.sin(this.ad)*Math.cos(c)*Math.cos(d)),f=Math.asin(Math.cos(c)*Math.sin(d)/Math.cos(e)),g=this.n*f,h=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(e/2+this.s45),this.n),a.y=h*Math.cos(g)/1,a.x=h*Math.sin(g)/1,this.czech||(a.y*=-1,a.x*=-1),a}function Ba(a){var b,c,d,e,f,g,h,i,j=a.x;a.x=a.y,a.y=j,this.czech||(a.y*=-1,a.x*=-1),g=Math.sqrt(a.x*a.x+a.y*a.y),f=Math.atan2(a.y,a.x),
e=f/Math.sin(this.s0),d=2*(Math.atan(Math.pow(this.ro0/g,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),b=Math.asin(Math.cos(this.ad)*Math.sin(d)-Math.sin(this.ad)*Math.cos(d)*Math.cos(e)),c=Math.asin(Math.cos(d)*Math.sin(e)/Math.cos(b)),a.x=this.long0-c/this.alfa,h=b,i=0;var k=0;do a.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(b/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(h))/(1-this.e*Math.sin(h)),this.e/2))-this.s45),Math.abs(h-a.y)<1E-10&&(i=1),h=a.y,k+=1;while(0===
i&&k<15);return k>=15?null:a}function Ca(){this.sphere||(this.e0=Cd(this.es),this.e1=Dd(this.es),this.e2=Ed(this.es),this.e3=Fd(this.es),this.ml0=this.a*Bd(this.e0,this.e1,this.e2,this.e3,this.lat0))}function Da(a){var b,c,d=a.x,e=a.y;if(d=fc(d-this.long0),this.sphere)b=this.a*Math.asin(Math.cos(e)*Math.sin(d)),c=this.a*(Math.atan2(Math.tan(e),Math.cos(d))-this.lat0);else{var f=Math.sin(e),g=Math.cos(e),h=Gd(this.a,this.e,f),i=Math.tan(e)*Math.tan(e),j=d*Math.cos(e),k=j*j,l=this.es*g*g/(1-this.es),
m=this.a*Bd(this.e0,this.e1,this.e2,this.e3,e);b=h*j*(1-k*i*(1/6-(8-i+8*l)*k/120)),c=m-this.ml0+h*f/g*k*(.5+(5-i+6*l)*k/24)}return a.x=b+this.x0,a.y=c+this.y0,a}function Ea(a){a.x-=this.x0,a.y-=this.y0;var b,c,d=a.x/this.a,e=a.y/this.a;if(this.sphere){var f=e+this.lat0;b=Math.asin(Math.sin(f)*Math.cos(d)),c=Math.atan2(Math.tan(d),Math.cos(f))}else{var g=this.ml0/this.a+e,h=Id(g,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(h)-Cb)<=Gb)return a.x=this.long0,a.y=Cb,e<0&&(a.y*=-1),a;var i=Gd(this.a,
this.e,Math.sin(h)),j=i*i*i/this.a/this.a*(1-this.es),k=Math.pow(Math.tan(h),2),l=d*this.a/i,m=l*l;b=h-i*Math.tan(h)/j*l*l*(.5-(1+3*k)*l*l/24),c=l*(1-m*(k/3+(1+3*k)*k*m/15))/Math.cos(h)}return a.x=fc(c+this.long0),a.y=Hd(b),a}function Fa(){var a=Math.abs(this.lat0);if(Math.abs(a-Cb)<Gb?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(a)<Gb?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0){var b;switch(this.qp=Ld(this.e,1),this.mmf=.5/(1-this.es),this.apa=Ia(this.es),this.mode){case this.N_POLE:this.dd=
1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),b=Math.sin(this.lat0),this.sinb1=Ld(this.e,b)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*b*b)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}
function Ga(a){var b,c,d,e,f,g,h,i,j,k,l=a.x,m=a.y;if(l=fc(l-this.long0),this.sphere)if(f=Math.sin(m),k=Math.cos(m),d=Math.cos(l),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(c=this.mode===this.EQUIT?1+k*d:1+this.sinph0*f+this.cosph0*k*d,c<=Gb)return null;c=Math.sqrt(2/c),b=c*k*Math.sin(l),c*=this.mode===this.EQUIT?f:this.cosph0*f-this.sinph0*k*d}else{if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(d=-d),Math.abs(m+this.phi0)<Gb)return null;c=Jb-.5*m,c=2*(this.mode===
this.S_POLE?Math.cos(c):Math.sin(c)),b=c*Math.sin(l),c*=d}}else{switch(h=0,i=0,j=0,d=Math.cos(l),e=Math.sin(l),f=Math.sin(m),g=Ld(this.e,f),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(h=g/this.qp,i=Math.sqrt(1-h*h)),this.mode){case this.OBLIQ:j=1+this.sinb1*h+this.cosb1*i*d;break;case this.EQUIT:j=1+i*d;break;case this.N_POLE:j=Cb+m,g=this.qp-g;break;case this.S_POLE:j=m-Cb,g=this.qp+g}if(Math.abs(j)<Gb)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:j=Math.sqrt(2/j),c=this.mode===
this.OBLIQ?this.ymf*j*(this.cosb1*h-this.sinb1*i*d):(j=Math.sqrt(2/(1+i*d)))*h*this.ymf,b=this.xmf*j*i*e;break;case this.N_POLE:case this.S_POLE:g>=0?(b=(j=Math.sqrt(g))*e,c=d*(this.mode===this.S_POLE?j:-j)):b=c=0}}return a.x=this.a*b+this.x0,a.y=this.a*c+this.y0,a}function Ha(a){a.x-=this.x0,a.y-=this.y0;var b,c,d,e,f,g,h,i=a.x/this.a,j=a.y/this.a;if(this.sphere){var k,l=0,m=0;if(k=Math.sqrt(i*i+j*j),c=.5*k,c>1)return null;switch(c=2*Math.asin(c),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(m=
Math.sin(c),l=Math.cos(c)),this.mode){case this.EQUIT:c=Math.abs(k)<=Gb?0:Math.asin(j*m/k),i*=m,j=l*k;break;case this.OBLIQ:c=Math.abs(k)<=Gb?this.phi0:Math.asin(l*this.sinph0+j*m*this.cosph0/k),i*=m*this.cosph0,j=(l-Math.sin(c)*this.sinph0)*k;break;case this.N_POLE:j=-j,c=Cb-c;break;case this.S_POLE:c-=Cb}b=0!==j||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(i,j):0}else{if(h=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(i/=this.dd,j*=this.dd,g=Math.sqrt(i*i+j*j),g<Gb)return a.x=
0,a.y=this.phi0,a;e=2*Math.asin(.5*g/this.rq),d=Math.cos(e),i*=e=Math.sin(e),this.mode===this.OBLIQ?(h=d*this.sinb1+j*e*this.cosb1/g,f=this.qp*h,j=g*this.cosb1*d-j*this.sinb1*e):(h=j*e/g,f=this.qp*h,j=g*d)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(j=-j),f=i*i+j*j,!f)return a.x=0,a.y=this.phi0,a;h=1-f/this.qp,this.mode===this.S_POLE&&(h=-h)}b=Math.atan2(i,j),c=Ja(Math.asin(h),this.apa)}return a.x=fc(this.long0+b),a.y=c,a}function Ia(a){var b,c=[];return c[0]=
a*Qd,b=a*a,c[0]+=b*Rd,c[1]=b*Td,b*=a,c[0]+=b*Sd,c[1]+=b*Ud,c[2]=b*Vd,c}function Ja(a,b){var c=a+a;return a+b[0]*Math.sin(c)+b[1]*Math.sin(c+c)+b[2]*Math.sin(c+c+c)}function Ka(){Math.abs(this.lat1+this.lat2)<Gb||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=dc(this.e3,this.sin_po,this.cos_po),this.qs1=Ld(this.e3,this.sin_po,this.cos_po),this.sin_po=
Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=dc(this.e3,this.sin_po,this.cos_po),this.qs2=Ld(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Ld(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>Gb?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/
this.ns0)}function La(a){var b=a.x,c=a.y;this.sin_phi=Math.sin(c),this.cos_phi=Math.cos(c);var d=Ld(this.e3,this.sin_phi,this.cos_phi),e=this.a*Math.sqrt(this.c-this.ns0*d)/this.ns0,f=this.ns0*fc(b-this.long0),g=e*Math.sin(f)+this.x0,h=this.rh-e*Math.cos(f)+this.y0;return a.x=g,a.y=h,a}function Ma(a){var b,c,d,e,f,g;return a.x-=this.x0,a.y=this.rh-a.y+this.y0,this.ns0>=0?(b=Math.sqrt(a.x*a.x+a.y*a.y),d=1):(b=-Math.sqrt(a.x*a.x+a.y*a.y),d=-1),e=0,0!==b&&(e=Math.atan2(d*a.x,d*a.y)),d=b*this.ns0/this.a,
this.sphere?g=Math.asin((this.c-d*d)/(2*this.ns0)):(c=(this.c-d*d)/this.ns0,g=this.phi1z(this.e3,c)),f=fc(e/this.ns0+this.long0),a.x=f,a.y=g,a}function Na(a,b){var c,d,e,f,g,h=Yd(.5*b);if(a<Gb)return h;for(var i=a*a,j=1;j<=25;j++)if(c=Math.sin(h),d=Math.cos(h),e=a*c,f=1-e*e,g=.5*f*f/d*(b/(1-i)-c/f+.5/a*Math.log((1-e)/(1+e))),h+=g,Math.abs(g)<=1E-7)return h;return null}function Oa(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1E3*this.a,this.rc=1}function Pa(a){var b,
c,d,e,f,g,h,i,j=a.x,k=a.y;return d=fc(j-this.long0),b=Math.sin(k),c=Math.cos(k),e=Math.cos(d),g=this.sin_p14*b+this.cos_p14*c*e,f=1,g>0||Math.abs(g)<=Gb?(h=this.x0+this.a*f*c*Math.sin(d)/g,i=this.y0+this.a*f*(this.cos_p14*b-this.sin_p14*c*e)/g):(h=this.x0+this.infinity_dist*c*Math.sin(d),i=this.y0+this.infinity_dist*(this.cos_p14*b-this.sin_p14*c*e)),a.x=h,a.y=i,a}function Qa(a){var b,c,d,e,f,g;return a.x=(a.x-this.x0)/this.a,a.y=(a.y-this.y0)/this.a,a.x/=this.k0,a.y/=this.k0,(b=Math.sqrt(a.x*a.x+
a.y*a.y))?(e=Math.atan2(b,this.rc),c=Math.sin(e),d=Math.cos(e),g=Yd(d*this.sin_p14+a.y*c*this.cos_p14/b),f=Math.atan2(a.x*c,b*this.cos_p14*d-a.y*this.sin_p14*c),f=fc(this.long0+f)):(g=this.phic0,f=0),a.x=f,a.y=g,a}function Ra(){this.sphere||(this.k0=dc(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function Sa(a){var b,c,d=a.x,e=a.y,f=fc(d-this.long0);if(this.sphere)b=this.x0+this.a*f*Math.cos(this.lat_ts),c=this.y0+this.a*Math.sin(e)/Math.cos(this.lat_ts);else{var g=Ld(this.e,Math.sin(e));
b=this.x0+this.a*this.k0*f,c=this.y0+this.a*g*.5/this.k0}return a.x=b,a.y=c,a}function Ta(a){a.x-=this.x0,a.y-=this.y0;var b,c;return this.sphere?(b=fc(this.long0+a.x/this.a/Math.cos(this.lat_ts)),c=Math.asin(a.y/this.a*Math.cos(this.lat_ts))):(c=be(this.e,2*a.y*this.k0/this.a),b=fc(this.long0+a.x/(this.a*this.k0))),a.x=b,a.y=c,a}function Ua(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",
this.rc=Math.cos(this.lat_ts)}function Va(a){var b=a.x,c=a.y,d=fc(b-this.long0),e=Hd(c-this.lat0);return a.x=this.x0+this.a*d*this.rc,a.y=this.y0+this.a*e,a}function Wa(a){var b=a.x,c=a.y;return a.x=fc(this.long0+(b-this.x0)/(this.a*this.rc)),a.y=Hd(this.lat0+(c-this.y0)/this.a),a}function Xa(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Cd(this.es),this.e1=Dd(this.es),this.e2=Ed(this.es),this.e3=Fd(this.es),this.ml0=this.a*Bd(this.e0,this.e1,this.e2,
this.e3,this.lat0)}function Ya(a){var b,c,d,e=a.x,f=a.y,g=fc(e-this.long0);if(d=g*Math.sin(f),this.sphere)Math.abs(f)<=Gb?(b=this.a*g,c=-1*this.a*this.lat0):(b=this.a*Math.sin(d)/Math.tan(f),c=this.a*(Hd(f-this.lat0)+(1-Math.cos(d))/Math.tan(f)));else if(Math.abs(f)<=Gb)b=this.a*g,c=-1*this.ml0;else{var h=Gd(this.a,this.e,Math.sin(f))/Math.tan(f);b=h*Math.sin(d),c=this.a*Bd(this.e0,this.e1,this.e2,this.e3,f)-this.ml0+h*(1-Math.cos(d))}return a.x=b+this.x0,a.y=c+this.y0,a}function Za(a){var b,c,d,
e,f,g,h,i,j;if(d=a.x-this.x0,e=a.y-this.y0,this.sphere)if(Math.abs(e+this.a*this.lat0)<=Gb)b=fc(d/this.a+this.long0),c=0;else{g=this.lat0+e/this.a,h=d*d/this.a/this.a+g*g,i=g;var k;for(f=ge;f;--f)if(k=Math.tan(i),j=-1*(g*(i*k+1)-i-.5*(i*i+h)*k)/((i-g)/k-1),i+=j,Math.abs(j)<=Gb){c=i;break}b=fc(this.long0+Math.asin(d*Math.tan(i)/this.a)/Math.sin(c))}else if(Math.abs(e+this.ml0)<=Gb)c=0,b=fc(this.long0+d/this.a);else{g=(this.ml0+e)/this.a,h=d*d/this.a/this.a+g*g,i=g;var l,m,n,o,p;for(f=ge;f;--f)if(p=
this.e*Math.sin(i),l=Math.sqrt(1-p*p)*Math.tan(i),m=this.a*Bd(this.e0,this.e1,this.e2,this.e3,i),n=this.e0-2*this.e1*Math.cos(2*i)+4*this.e2*Math.cos(4*i)-6*this.e3*Math.cos(6*i),o=m/this.a,j=(g*(l*o+1)-o-.5*l*(o*o+h))/(this.es*Math.sin(2*i)*(o*o+h-2*g*o)/(4*l)+(g-o)*(l*n-2/Math.sin(2*i))-n),i-=j,Math.abs(j)<=Gb){c=i;break}l=Math.sqrt(1-this.es*Math.pow(Math.sin(c),2))*Math.tan(c),b=fc(this.long0+Math.asin(d*l/this.a)/Math.sin(c))}return a.x=b,a.y=c,a}function $a(){this.A=[],this.A[1]=.6399175073,
this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=6.7E-4,this.A[10]=-3.4E-4,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=
[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function _a(a){var b,c=a.x,d=a.y,
e=d-this.lat0,f=c-this.long0,g=e/Bb*1E-5,h=f,i=1,j=0;for(b=1;b<=10;b++)i*=g,j+=this.A[b]*i;var k,l,m=j,n=h,o=1,p=0,q=0,r=0;for(b=1;b<=6;b++)k=o*m-p*n,l=p*m+o*n,o=k,p=l,q=q+this.B_re[b]*o-this.B_im[b]*p,r=r+this.B_im[b]*o+this.B_re[b]*p;return a.x=r*this.a+this.x0,a.y=q*this.a+this.y0,a}function ab(a){var b,c,d,e=a.x,f=a.y,g=e-this.x0,h=f-this.y0,i=h/this.a,j=g/this.a,k=1,l=0,m=0,n=0;for(b=1;b<=6;b++)c=k*i-l*j,d=l*i+k*j,k=c,l=d,m=m+this.C_re[b]*k-this.C_im[b]*l,n=n+this.C_im[b]*k+this.C_re[b]*l;for(var o=
0;o<this.iterations;o++){var p,q,r=m,s=n,t=i,u=j;for(b=2;b<=6;b++)p=r*m-s*n,q=s*m+r*n,r=p,s=q,t+=(b-1)*(this.B_re[b]*r-this.B_im[b]*s),u+=(b-1)*(this.B_im[b]*r+this.B_re[b]*s);r=1,s=0;var v=this.B_re[1],w=this.B_im[1];for(b=2;b<=6;b++)p=r*m-s*n,q=s*m+r*n,r=p,s=q,v+=b*(this.B_re[b]*r-this.B_im[b]*s),w+=b*(this.B_im[b]*r+this.B_re[b]*s);var x=v*v+w*w;m=(t*v+u*w)/x,n=(u*v-t*w)/x}var y=m,z=n,A=1,B=0;for(b=1;b<=9;b++)A*=y,B+=this.D[b]*A;var C=this.lat0+B*Bb*1E5,D=this.long0+z;return a.x=D,a.y=C,a}function bb(){}
function cb(a){var b=a.x,c=a.y,d=fc(b-this.long0),e=this.x0+this.a*d,f=this.y0+this.a*Math.log(Math.tan(Math.PI/4+c/2.5))*1.25;return a.x=e,a.y=f,a}function db(a){a.x-=this.x0,a.y-=this.y0;var b=fc(this.long0+a.x/this.a),c=2.5*(Math.atan(Math.exp(.8*a.y/this.a))-Math.PI/4);return a.x=b,a.y=c,a}function eb(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=Tc(this.es)}function fb(a){var b,c,d=a.x,e=a.y;if(d=fc(d-this.long0),this.sphere){if(this.m)for(var f=
this.n*Math.sin(e),g=ne;g;--g){var h=(this.m*e+Math.sin(e)-f)/(this.m+Math.cos(e));if(e-=h,Math.abs(h)<Gb)break}else e=1!==this.n?Math.asin(this.n*Math.sin(e)):e;b=this.a*this.C_x*d*(this.m+Math.cos(e)),c=this.a*this.C_y*e}else{var i=Math.sin(e),j=Math.cos(e);c=this.a*Uc(e,i,j,this.en),b=this.a*d*j/Math.sqrt(1-this.es*i*i)}return a.x=b,a.y=c,a}function gb(a){var b,c,d,e;return a.x-=this.x0,d=a.x/this.a,a.y-=this.y0,b=a.y/this.a,this.sphere?(b/=this.C_y,d/=this.C_x*(this.m+Math.cos(b)),this.m?b=Yd((this.m*
b+Math.sin(b))/this.n):1!==this.n&&(b=Yd(Math.sin(b)/this.n)),d=fc(d+this.long0),b=Hd(b)):(b=Wc(a.y/this.a,this.es,this.en),e=Math.abs(b),e<Cb?(e=Math.sin(b),c=this.long0+a.x*Math.sqrt(1-this.es*e*e)/(this.a*Math.cos(b)),d=fc(c)):e-Gb<Cb&&(d=this.long0)),a.x=d,a.y=b,a}function hb(){}function ib(a){for(var b=a.x,c=a.y,d=fc(b-this.long0),e=c,f=Math.PI*Math.sin(c),g=0;!0;g++){var h=-(e+Math.sin(e)-f)/(1+Math.cos(e));if(e+=h,Math.abs(h)<Gb)break}e/=2,Math.PI/2-Math.abs(c)<Gb&&(d=0);var i=.900316316158*
this.a*d*Math.cos(e)+this.x0,j=1.4142135623731*this.a*Math.sin(e)+this.y0;return a.x=i,a.y=j,a}function jb(a){var b,c;a.x-=this.x0,a.y-=this.y0,c=a.y/(1.4142135623731*this.a),Math.abs(c)>.999999999999&&(c=.999999999999),b=Math.asin(c);var d=fc(this.long0+a.x/(.900316316158*this.a*Math.cos(b)));d<-Math.PI&&(d=-Math.PI),d>Math.PI&&(d=Math.PI),c=(2*b+Math.sin(2*b))/Math.PI,Math.abs(c)>1&&(c=1);var e=Math.asin(c);return a.x=d,a.y=e,a}function kb(){Math.abs(this.lat1+this.lat2)<Gb||(this.lat2=this.lat2||
this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Cd(this.es),this.e1=Dd(this.es),this.e2=Ed(this.es),this.e3=Fd(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=dc(this.e,this.sinphi,this.cosphi),this.ml1=Bd(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<Gb?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=dc(this.e,this.sinphi,this.cosphi),this.ml2=
Bd(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Bd(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function lb(a){var b,c=a.x,d=a.y;if(this.sphere)b=this.a*(this.g-d);else{var e=Bd(this.e0,this.e1,this.e2,this.e3,d);b=this.a*(this.g-e)}var f=this.ns*fc(c-this.long0),g=this.x0+b*Math.sin(f),h=this.y0+this.rh-b*Math.cos(f);return a.x=g,a.y=h,a}function mb(a){a.x-=this.x0,a.y=this.rh-
a.y+this.y0;var b,c,d,e;this.ns>=0?(c=Math.sqrt(a.x*a.x+a.y*a.y),b=1):(c=-Math.sqrt(a.x*a.x+a.y*a.y),b=-1);var f=0;if(0!==c&&(f=Math.atan2(b*a.x,b*a.y)),this.sphere)return e=fc(this.long0+f/this.ns),d=Hd(this.g-c/this.a),a.x=e,a.y=d,a;var g=this.g-c/this.a;return d=Id(g,this.e0,this.e1,this.e2,this.e3),e=fc(this.long0+f/this.ns),a.x=e,a.y=d,a}function nb(){this.R=this.a}function ob(a){var b,c,d=a.x,e=a.y,f=fc(d-this.long0);Math.abs(e)<=Gb&&(b=this.x0+this.R*f,c=this.y0);var g=Yd(2*Math.abs(e/Math.PI));
(Math.abs(f)<=Gb||Math.abs(Math.abs(e)-Cb)<=Gb)&&(b=this.x0,c=e>=0?this.y0+Math.PI*this.R*Math.tan(.5*g):this.y0+Math.PI*this.R*-Math.tan(.5*g));var h=.5*Math.abs(Math.PI/f-f/Math.PI),i=h*h,j=Math.sin(g),k=Math.cos(g),l=k/(j+k-1),m=l*l,n=l*(2/j-1),o=n*n,p=Math.PI*this.R*(h*(l-o)+Math.sqrt(i*(l-o)*(l-o)-(o+i)*(m-o)))/(o+i);f<0&&(p=-p),b=this.x0+p;var q=i+l;return p=Math.PI*this.R*(n*q-h*Math.sqrt((o+i)*(i+1)-q*q))/(o+i),c=e>=0?this.y0+p:this.y0-p,a.x=b,a.y=c,a}function pb(a){var b,c,d,e,f,g,h,i,j,
k,l,m,n;return a.x-=this.x0,a.y-=this.y0,l=Math.PI*this.R,d=a.x/l,e=a.y/l,f=d*d+e*e,g=-Math.abs(e)*(1+f),h=g-2*e*e+d*d,i=-2*g+1+2*e*e+f*f,n=e*e/i+(2*h*h*h/i/i/i-9*g*h/i/i)/27,j=(g-h*h/3/i)/i,k=2*Math.sqrt(-j/3),l=3*n/j/k,Math.abs(l)>1&&(l=l>=0?1:-1),m=Math.acos(l)/3,c=a.y>=0?(-k*Math.cos(m+Math.PI/3)-h/3/i)*Math.PI:-(-k*Math.cos(m+Math.PI/3)-h/3/i)*Math.PI,b=Math.abs(d)<Gb?this.long0:fc(this.long0+Math.PI*(f-1+Math.sqrt(1+2*(d*d-e*e)+f*f))/2/d),a.x=b,a.y=c,a}function qb(){this.sin_p12=Math.sin(this.lat0),
this.cos_p12=Math.cos(this.lat0)}function rb(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=a.x,z=a.y,A=Math.sin(a.y),B=Math.cos(a.y),C=fc(y-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=Gb?(a.x=this.x0+this.a*(Cb-z)*Math.sin(C),a.y=this.y0-this.a*(Cb-z)*Math.cos(C),a):Math.abs(this.sin_p12+1)<=Gb?(a.x=this.x0+this.a*(Cb+z)*Math.sin(C),a.y=this.y0+this.a*(Cb+z)*Math.cos(C),a):(s=this.sin_p12*A+this.cos_p12*B*Math.cos(C),q=Math.acos(s),r=q/Math.sin(q),a.x=this.x0+this.a*r*B*Math.sin(C),
a.y=this.y0+this.a*r*(this.cos_p12*A-this.sin_p12*B*Math.cos(C)),a):(b=Cd(this.es),c=Dd(this.es),d=Ed(this.es),e=Fd(this.es),Math.abs(this.sin_p12-1)<=Gb?(f=this.a*Bd(b,c,d,e,Cb),g=this.a*Bd(b,c,d,e,z),a.x=this.x0+(f-g)*Math.sin(C),a.y=this.y0-(f-g)*Math.cos(C),a):Math.abs(this.sin_p12+1)<=Gb?(f=this.a*Bd(b,c,d,e,Cb),g=this.a*Bd(b,c,d,e,z),a.x=this.x0+(f+g)*Math.sin(C),a.y=this.y0+(f+g)*Math.cos(C),a):(h=A/B,i=Gd(this.a,this.e,this.sin_p12),j=Gd(this.a,this.e,A),k=Math.atan((1-this.es)*h+this.es*
i*this.sin_p12/(j*B)),l=Math.atan2(Math.sin(C),this.cos_p12*Math.tan(k)-this.sin_p12*Math.cos(C)),t=0===l?Math.asin(this.cos_p12*Math.sin(k)-this.sin_p12*Math.cos(k)):Math.abs(Math.abs(l)-Math.PI)<=Gb?-Math.asin(this.cos_p12*Math.sin(k)-this.sin_p12*Math.cos(k)):Math.asin(Math.sin(C)*Math.cos(k)/Math.sin(l)),m=this.e*this.sin_p12/Math.sqrt(1-this.es),n=this.e*this.cos_p12*Math.cos(l)/Math.sqrt(1-this.es),o=m*n,p=n*n,u=t*t,v=u*t,w=v*t,x=w*t,q=i*t*(1-u*p*(1-p)/6+v/8*o*(1-2*p)+w/120*(p*(4-7*p)-3*m*m*
(1-7*p))-x/48*o),a.x=this.x0+q*Math.sin(l),a.y=this.y0+q*Math.cos(l),a))}function sb(a){a.x-=this.x0,a.y-=this.y0;var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x;if(this.sphere){if(b=Math.sqrt(a.x*a.x+a.y*a.y),b>2*Cb*this.a)return;return c=b/this.a,d=Math.sin(c),e=Math.cos(c),f=this.long0,Math.abs(b)<=Gb?g=this.lat0:(g=Yd(e*this.sin_p12+a.y*d*this.cos_p12/b),h=Math.abs(this.lat0)-Cb,f=fc(Math.abs(h)<=Gb?this.lat0>=0?this.long0+Math.atan2(a.x,-a.y):this.long0-Math.atan2(-a.x,a.y):this.long0+Math.atan2(a.x*
d,b*this.cos_p12*e-a.y*this.sin_p12*d))),a.x=f,a.y=g,a}return i=Cd(this.es),j=Dd(this.es),k=Ed(this.es),l=Fd(this.es),Math.abs(this.sin_p12-1)<=Gb?(m=this.a*Bd(i,j,k,l,Cb),b=Math.sqrt(a.x*a.x+a.y*a.y),n=m-b,g=Id(n/this.a,i,j,k,l),f=fc(this.long0+Math.atan2(a.x,-1*a.y)),a.x=f,a.y=g,a):Math.abs(this.sin_p12+1)<=Gb?(m=this.a*Bd(i,j,k,l,Cb),b=Math.sqrt(a.x*a.x+a.y*a.y),n=b-m,g=Id(n/this.a,i,j,k,l),f=fc(this.long0+Math.atan2(a.x,a.y)),a.x=f,a.y=g,a):(b=Math.sqrt(a.x*a.x+a.y*a.y),q=Math.atan2(a.x,a.y),
o=Gd(this.a,this.e,this.sin_p12),r=Math.cos(q),s=this.e*this.cos_p12*r,t=-s*s/(1-this.es),u=3*this.es*(1-t)*this.sin_p12*this.cos_p12*r/(1-this.es),v=b/o,w=v-t*(1+t)*Math.pow(v,3)/6-u*(1+3*t)*Math.pow(v,4)/24,x=1-t*w*w/2-v*w*w*w/6,p=Math.asin(this.sin_p12*Math.cos(w)+this.cos_p12*Math.sin(w)*r),f=fc(this.long0+Math.asin(Math.sin(q)*Math.sin(w)/Math.cos(p))),g=Math.atan((1-this.es*x*this.sin_p12/Math.sin(p))*Math.tan(p)/(1-this.es)),a.x=f,a.y=g,a)}function tb(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=
Math.cos(this.lat0)}function ub(a){var b,c,d,e,f,g,h,i,j=a.x,k=a.y;return d=fc(j-this.long0),b=Math.sin(k),c=Math.cos(k),e=Math.cos(d),g=this.sin_p14*b+this.cos_p14*c*e,f=1,(g>0||Math.abs(g)<=Gb)&&(h=this.a*f*c*Math.sin(d),i=this.y0+this.a*f*(this.cos_p14*b-this.sin_p14*c*e)),a.x=h,a.y=i,a}function vb(a){var b,c,d,e,f,g,h;return a.x-=this.x0,a.y-=this.y0,b=Math.sqrt(a.x*a.x+a.y*a.y),c=Yd(b/this.a),d=Math.sin(c),e=Math.cos(c),g=this.long0,Math.abs(b)<=Gb?(h=this.lat0,a.x=g,a.y=h,a):(h=Yd(e*this.sin_p14+
a.y*d*this.cos_p14/b),f=Math.abs(this.lat0)-Cb,Math.abs(f)<=Gb?(g=fc(this.lat0>=0?this.long0+Math.atan2(a.x,-a.y):this.long0-Math.atan2(-a.x,a.y)),a.x=g,a.y=h,a):(g=fc(this.long0+Math.atan2(a.x*d,b*this.cos_p14*e-a.y*this.sin_p14*d)),a.x=g,a.y=h,a))}var wb=function(a){a("EPSG:4326","+title\x3dWGS 84 (long/lat) +proj\x3dlonglat +ellps\x3dWGS84 +datum\x3dWGS84 +units\x3ddegrees"),a("EPSG:4269","+title\x3dNAD83 (long/lat) +proj\x3dlonglat +a\x3d6378137.0 +b\x3d6356752.31414036 +ellps\x3dGRS80 +datum\x3dNAD83 +units\x3ddegrees"),
a("EPSG:3857","+title\x3dWGS 84 / Pseudo-Mercator +proj\x3dmerc +a\x3d6378137 +b\x3d6378137 +lat_ts\x3d0.0 +lon_0\x3d0.0 +x_0\x3d0.0 +y_0\x3d0 +k\x3d1.0 +units\x3dm +nadgrids\x3d@null +no_defs"),a.WGS84=a["EPSG:4326"],a["EPSG:3785"]=a["EPSG:3857"],a.GOOGLE=a["EPSG:3857"],a["EPSG:900913"]=a["EPSG:3857"],a["EPSG:102113"]=a["EPSG:3857"]},xb=1,yb=2,zb=4,Ab=5,Bb=4.84813681109536E-6,Cb=Math.PI/2,Db=.16666666666666666,Eb=.04722222222222222,Fb=.022156084656084655,Gb="undefined"==typeof Number.EPSILON?1E-10:
Number.EPSILON,Hb=.017453292519943295,Ib=57.29577951308232,Jb=Math.PI/4,Kb=2*Math.PI,Lb=3.14159265359,Mb={};Mb.greenwich=0,Mb.lisbon=-9.131906111111,Mb.paris=2.337229166667,Mb.bogota=-74.080916666667,Mb.madrid=-3.687938888889,Mb.rome=12.452333333333,Mb.bern=7.439583333333,Mb.jakarta=106.807719444444,Mb.ferro=-17.666666666667,Mb.brussels=4.367975,Mb.stockholm=18.058277777778,Mb.athens=23.7163375,Mb.oslo=10.722916666667;var Nb={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},Ob=/[\s_\-\/\(\)]/g,Pb=
function(b){var c,d,e,f={},g=b.split("+").map(function(a){return a.trim()}).filter(function(a){return a}).reduce(function(a,b){var c=b.split("\x3d");return c.push(!0),a[c[0].toLowerCase()]=c[1],a},{}),h={proj:"projName",datum:"datumCode",rf:function(a){f.rf=parseFloat(a)},lat_0:function(a){f.lat0=a*Hb},lat_1:function(a){f.lat1=a*Hb},lat_2:function(a){f.lat2=a*Hb},lat_ts:function(a){f.lat_ts=a*Hb},lon_0:function(a){f.long0=a*Hb},lon_1:function(a){f.long1=a*Hb},lon_2:function(a){f.long2=a*Hb},alpha:function(a){f.alpha=
parseFloat(a)*Hb},lonc:function(a){f.longc=a*Hb},x_0:function(a){f.x0=parseFloat(a)},y_0:function(a){f.y0=parseFloat(a)},k_0:function(a){f.k0=parseFloat(a)},k:function(a){f.k0=parseFloat(a)},a:function(a){f.a=parseFloat(a)},b:function(a){f.b=parseFloat(a)},r_a:function(){f.R_A=!0},zone:function(a){f.zone=parseInt(a,10)},south:function(){f.utmSouth=!0},towgs84:function(a){f.datum_params=a.split(",").map(function(a){return parseFloat(a)})},to_meter:function(a){f.to_meter=parseFloat(a)},units:function(b){f.units=
b;var c=a(Nb,b);c&&(f.to_meter=c.to_meter)},from_greenwich:function(a){f.from_greenwich=a*Hb},pm:function(b){var c=a(Mb,b);f.from_greenwich=(c?c:parseFloat(b))*Hb},nadgrids:function(a){"@null"===a?f.datumCode="none":f.nadgrids=a},axis:function(a){var b="ewnsud";3===a.length&&b.indexOf(a.substr(0,1))!==-1&&b.indexOf(a.substr(1,1))!==-1&&b.indexOf(a.substr(2,1))!==-1&&(f.axis=a)}};for(c in g)d=g[c],c in h?(e=h[c],"function"==typeof e?e(d):f[e]=d):f[c]=d;return"string"==typeof f.datumCode&&"WGS84"!==
f.datumCode&&(f.datumCode=f.datumCode.toLowerCase()),f},Qb=1,Rb=2,Sb=3,Tb=4,Ub=5,Vb=-1,Wb=/\s/,Xb=/[A-Za-z]/,Yb=/[A-Za-z84]/,Zb=/[,\]]/,$b=/[\d\.E\-\+]/;b.prototype.readCharicter=function(){var a=this.text[this.place++];if(this.state!==Tb)for(;Wb.test(a);){if(this.place>=this.text.length)return;a=this.text[this.place++]}switch(this.state){case Qb:return this.neutral(a);case Rb:return this.keyword(a);case Tb:return this.quoted(a);case Ub:return this.afterquote(a);case Sb:return this.number(a);case Vb:return}},
b.prototype.afterquote=function(a){if('"'===a)return this.word+='"',void(this.state=Tb);if(Zb.test(a))return this.word=this.word.trim(),void this.afterItem(a);throw new Error("havn't handled \""+a+'" in afterquote yet, index '+this.place);},b.prototype.afterItem=function(a){return","===a?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=Qb)):"]"===a?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=Qb,this.currentObject=
this.stack.pop(),void(this.currentObject||(this.state=Vb))):void 0},b.prototype.number=function(a){if($b.test(a))return void(this.word+=a);if(Zb.test(a))return this.word=parseFloat(this.word),void this.afterItem(a);throw new Error("havn't handled \""+a+'" in number yet, index '+this.place);},b.prototype.quoted=function(a){return'"'===a?void(this.state=Ub):void(this.word+=a)},b.prototype.keyword=function(a){if(Yb.test(a))return void(this.word+=a);if("["===a){var b=[];return b.push(this.word),this.level++,
null===this.root?this.root=b:this.currentObject.push(b),this.stack.push(this.currentObject),this.currentObject=b,void(this.state=Qb)}if(Zb.test(a))return void this.afterItem(a);throw new Error("havn't handled \""+a+'" in keyword yet, index '+this.place);},b.prototype.neutral=function(a){if(Xb.test(a))return this.word=a,void(this.state=Rb);if('"'===a)return this.word="",void(this.state=Tb);if($b.test(a))return this.word=a,void(this.state=Sb);if(Zb.test(a))return void this.afterItem(a);throw new Error("havn't handled \""+
a+'" in neutral yet, index '+this.place);},b.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(this.state===Vb)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state);};var _b=.017453292519943295,ac=function(a){var b=c(a),d=b.shift(),f=b.shift();b.unshift(["name",f]),b.unshift(["type",d]);var g={};return e(b,g),h(g),g};wb(i);var bc=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM",
"ENGCRS","ENGINEERINGCRS"],cc=function(a,b){a=a||{};var c,d;if(!b)return a;for(d in b)c=b[d],void 0!==c&&(a[d]=c);return a},dc=function(a,b,c){var d=a*b;return c/Math.sqrt(1-d*d)},ec=function(a){return a<0?-1:1},fc=function(a){return Math.abs(a)<=Lb?a:a-ec(a)*Kb},gc=function(a,b,c){var d=a*c,e=.5*a;return d=Math.pow((1-d)/(1+d),e),Math.tan(.5*(Cb-b))/d},hc=function(a,b){for(var c,d,e=.5*a,f=Cb-2*Math.atan(b),g=0;g<=15;g++)if(c=a*Math.sin(f),d=Cb-2*Math.atan(b*Math.pow((1-c)/(1+c),e))-f,f+=d,Math.abs(d)<=
1E-10)return f;return-9999},ic=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],jc={init:o,forward:p,inverse:q,names:ic},kc=["longlat","identity"],lc={init:r,forward:s,inverse:s,names:kc},mc=[jc,lc],nc={},oc=[],pc={start:v,add:t,get:u},qc={};qc.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"},qc.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},qc.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},qc.IAU76=
{a:6378140,rf:298.257,ellipseName:"IAU 1976"},qc.airy={a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},qc.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},qc.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},qc.mod_airy={a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},qc.andrae={a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},qc.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl \x26 S. Amer. 1969"},qc.GRS67={a:6378160,rf:298.247167427,
ellipseName:"GRS 67(IUGG 1967)"},qc.bessel={a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},qc.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},qc.clrk66={a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},qc.clrk80={a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},qc.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},qc.CPM={a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},qc.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},
qc.engelis={a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},qc.evrst30={a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},qc.evrst48={a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},qc.evrst56={a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},qc.evrst69={a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},qc.evrstSS={a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah \x26 Sarawak)"},qc.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},qc.fschr60m={a:6378155,
rf:298.3,ellipseName:"Fischer 1960"},qc.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"},qc.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"},qc.hough={a:6378270,rf:297,ellipseName:"Hough"},qc.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},qc.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"},qc.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"},qc.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"},qc.new_intl={a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},
qc.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},qc.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},qc.SEasia={a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},qc.walbeck={a:6376896,b:6355834.8467,ellipseName:"Walbeck"},qc.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"},qc.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"},qc.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"},qc.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"},qc.sphere={a:6370997,b:6370997,
ellipseName:"Normal Sphere (r\x3d6370997)"};var rc=a(qc,"WGS84"),sc={};sc.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},sc.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},sc.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},sc.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},sc.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},
sc.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},sc.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},sc.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},sc.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},sc.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},sc.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",
ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},sc.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},sc.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},sc.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},sc.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},sc.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",
datumName:"Reseau National Belge 1972"},z.projections=pc,z.projections.start();var tc=function(a,b,c){return A(a,b)?c:a.datum_type===Ab||b.datum_type===Ab?c:a.es!==b.es||a.a!==b.a||F(a.datum_type)||F(b.datum_type)?(c=B(c,a.es,a.a),F(a.datum_type)&&(c=D(c,a.datum_type,a.datum_params)),F(b.datum_type)&&(c=E(c,b.datum_type,b.datum_params)),C(c,b.es,b.a,b.b)):c},uc=function(a,b,c){var d,e,f,g=c.x,h=c.y,i=c.z||0,j={};for(f=0;f<3;f++)if(!b||2!==f||void 0!==c.z)switch(0===f?(d=g,e="x"):1===f?(d=h,e="y"):
(d=i,e="z"),a.axis[f]){case "e":j[e]=d;break;case "w":j[e]=-d;break;case "n":j[e]=d;break;case "s":j[e]=-d;break;case "u":void 0!==c[e]&&(j.z=d);break;case "d":void 0!==c[e]&&(j.z=-d);break;default:return null}return j},vc=function(a){var b={x:a[0],y:a[1]};return a.length>2&&(b.z=a[2]),a.length>3&&(b.m=a[3]),b},wc=z("WGS84"),xc=6,yc="AJSAJS",zc="AFAFAF",Ac=65,Bc=73,Cc=79,Dc=86,Ec=90,Fc={forward:L,inverse:M,toPoint:N};Point.fromMGRS=function(a){return new Point(N(a))},Point.prototype.toMGRS=function(a){return L([this.x,
this.y],a)};var Gc="2.4.1",Hc=1,Ic=.25,Jc=.046875,Kc=.01953125,Lc=.01068115234375,Mc=.75,Nc=.46875,Oc=.013020833333333334,Pc=.007120768229166667,Qc=.3645833333333333,Rc=.005696614583333333,Sc=.3076171875,Tc=function(a){var b=[];b[0]=Hc-a*(Ic+a*(Jc+a*(Kc+a*Lc))),b[1]=a*(Mc-a*(Jc+a*(Kc+a*Lc)));var c=a*a;return b[2]=c*(Nc-a*(Oc+a*Pc)),c*=a,b[3]=c*(Qc-a*Rc),b[4]=c*a*Sc,b},Uc=function(a,b,c,d){return c*=b,b*=b,d[0]*a-c*(d[1]+b*(d[2]+b*(d[3]+b*d[4])))},Vc=20,Wc=function(a,b,c){for(var d=1/(1-b),e=a,f=Vc;f;--f){var g=
Math.sin(e),h=1-b*g*g;if(h=(Uc(e,g,Math.cos(e),c)-a)*(h*Math.sqrt(h))*d,e-=h,Math.abs(h)<Gb)return e}return e},Xc=["Transverse_Mercator","Transverse Mercator","tmerc"],Yc={init:_,forward:aa,inverse:ba,names:Xc},Zc=function(a){var b=Math.exp(a);return b=(b-1/b)/2},$c=function(a,b){a=Math.abs(a),b=Math.abs(b);var c=Math.max(a,b),d=Math.min(a,b)/(c?c:1);return c*Math.sqrt(1+Math.pow(d,2))},_c=function(a){var b=1+a,c=b-1;return 0===c?a:a*Math.log(b)/c},ad=function(a){var b=Math.abs(a);return b=_c(b*(1+
b/($c(1,b)+1))),a<0?-b:b},bd=function(a,b){for(var c,d=2*Math.cos(2*b),e=a.length-1,f=a[e],g=0;--e>=0;)c=-g+d*f+a[e],g=f,f=c;return b+c*Math.sin(2*b)},cd=function(a,b){for(var c,d=2*Math.cos(b),e=a.length-1,f=a[e],g=0;--e>=0;)c=-g+d*f+a[e],g=f,f=c;return Math.sin(b)*c},dd=function(a){var b=Math.exp(a);return b=(b+1/b)/2},ed=function(a,b,c){for(var d,e,f=Math.sin(b),g=Math.cos(b),h=Zc(c),i=dd(c),j=2*g*i,k=-2*f*h,l=a.length-1,m=a[l],n=0,o=0,p=0;--l>=0;)d=o,e=n,o=m,n=p,m=-d+j*o-k*n+a[l],p=-e+k*o+j*n;
return j=f*i,k=g*h,[j*m-k*p,j*p+k*m]},fd=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"],gd={init:ca,forward:da,inverse:ea,names:fd},hd=function(a,b){return void 0===a?(a=Math.floor(30*(fc(b)+Math.PI)/Math.PI),a<0?0:a>=60?59:a):a>0&&a<=60?a-1:void 0},id="etmerc",jd=["Universal Transverse Mercator System","utm"],kd={init:fa,names:jd,dependsOn:id},ld=function(a,b){return Math.pow((1-a)/(1+a),b)},md=20,nd=["gauss"],od={init:ga,forward:ha,inverse:ia,names:nd},pd=["Stereographic_North_Pole",
"Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative"],qd={init:ja,forward:ka,inverse:la,names:pd},rd=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],sd={init:na,forward:oa,inverse:pa,names:rd,ssfn_:ma},td=["somerc"],ud={init:qa,forward:ra,inverse:sa,names:td},vd=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"],wd={init:ta,forward:ua,inverse:va,
names:vd},xd=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"],yd={init:wa,forward:xa,inverse:ya,names:xd},zd=["Krovak","krovak"],Ad={init:za,forward:Aa,inverse:Ba,names:zd},Bd=function(a,b,c,d,e){return a*e-b*Math.sin(2*e)+c*Math.sin(4*e)-d*Math.sin(6*e)},Cd=function(a){return 1-.25*a*(1+a/16*(3+1.25*a))},Dd=function(a){return.375*a*(1+.25*a*(1+.46875*a))},Ed=function(a){return.05859375*a*a*(1+.75*a)},Fd=function(a){return a*a*a*(35/3072)},
Gd=function(a,b,c){var d=b*c;return a/Math.sqrt(1-d*d)},Hd=function(a){return Math.abs(a)<Cb?a:a-ec(a)*Math.PI},Id=function(a,b,c,d,e){var f,g;f=a/b;for(var h=0;h<15;h++)if(g=(a-(b*f-c*Math.sin(2*f)+d*Math.sin(4*f)-e*Math.sin(6*f)))/(b-2*c*Math.cos(2*f)+4*d*Math.cos(4*f)-6*e*Math.cos(6*f)),f+=g,Math.abs(g)<=1E-10)return f;return NaN},Jd=["Cassini","Cassini_Soldner","cass"],Kd={init:Ca,forward:Da,inverse:Ea,names:Jd},Ld=function(a,b){var c;return a>1E-7?(c=a*b,(1-a*a)*(b/(1-c*c)-.5/a*Math.log((1-c)/
(1+c)))):2*b},Md=1,Nd=2,Od=3,Pd=4,Qd=.3333333333333333,Rd=.17222222222222222,Sd=.10257936507936508,Td=.06388888888888888,Ud=.0664021164021164,Vd=.016415012942191543,Wd=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],Xd={init:Fa,forward:Ga,inverse:Ha,names:Wd,S_POLE:Md,N_POLE:Nd,EQUIT:Od,OBLIQ:Pd},Yd=function(a){return Math.abs(a)>1&&(a=a>1?1:-1),Math.asin(a)},Zd=["Albers_Conic_Equal_Area","Albers","aea"],$d={init:Ka,forward:La,inverse:Ma,names:Zd,phi1z:Na},_d=["gnom"],ae={init:Oa,
forward:Pa,inverse:Qa,names:_d},be=function(a,b){var c=1-(1-a*a)/(2*a)*Math.log((1-a)/(1+a));if(Math.abs(Math.abs(b)-c)<1E-6)return b<0?-1*Cb:Cb;for(var d,e,f,g,h=Math.asin(.5*b),i=0;i<30;i++)if(e=Math.sin(h),f=Math.cos(h),g=a*e,d=Math.pow(1-g*g,2)/(2*f)*(b/(1-a*a)-e/(1-g*g)+.5/a*Math.log((1-g)/(1+g))),h+=d,Math.abs(d)<=1E-10)return h;return NaN},ce=["cea"],de={init:Ra,forward:Sa,inverse:Ta,names:ce},ee=["Equirectangular","Equidistant_Cylindrical","eqc"],fe={init:Ua,forward:Va,inverse:Wa,names:ee},
ge=20,he=["Polyconic","poly"],ie={init:Xa,forward:Ya,inverse:Za,names:he},je=["New_Zealand_Map_Grid","nzmg"],ke={init:$a,forward:_a,inverse:ab,names:je},le=["Miller_Cylindrical","mill"],me={init:bb,forward:cb,inverse:db,names:le},ne=20,oe=["Sinusoidal","sinu"],pe={init:eb,forward:fb,inverse:gb,names:oe},qe=["Mollweide","moll"],re={init:hb,forward:ib,inverse:jb,names:qe},se=["Equidistant_Conic","eqdc"],te={init:kb,forward:lb,inverse:mb,names:se},ue=["Van_der_Grinten_I","VanDerGrinten","vandg"],ve=
{init:nb,forward:ob,inverse:pb,names:ue},we=["Azimuthal_Equidistant","aeqd"],xe={init:qb,forward:rb,inverse:sb,names:we},ye=["ortho"],ze={init:tb,forward:ub,inverse:vb,names:ye},Ae=function(proj4){proj4.Proj.projections.add(Yc),proj4.Proj.projections.add(gd),proj4.Proj.projections.add(kd),proj4.Proj.projections.add(qd),proj4.Proj.projections.add(sd),proj4.Proj.projections.add(ud),proj4.Proj.projections.add(wd),proj4.Proj.projections.add(yd),proj4.Proj.projections.add(Ad),proj4.Proj.projections.add(Kd),
proj4.Proj.projections.add(Xd),proj4.Proj.projections.add($d),proj4.Proj.projections.add(ae),proj4.Proj.projections.add(de),proj4.Proj.projections.add(fe),proj4.Proj.projections.add(ie),proj4.Proj.projections.add(ke),proj4.Proj.projections.add(me),proj4.Proj.projections.add(pe),proj4.Proj.projections.add(re),proj4.Proj.projections.add(te),proj4.Proj.projections.add(ve),proj4.Proj.projections.add(xe),proj4.Proj.projections.add(ze)};return K.defaultDatum="WGS84",K.Proj=z,K.WGS84=new K.Proj("WGS84"),
K.Point=Point,K.toPoint=vc,K.defs=i,K.transform=H,K.mgrs=Fc,K.version=Gc,Ae(K),K});
(function(root,factory){if(typeof Liferay.Loader.define==="function"&&Liferay.Loader.define.amd)Liferay.Loader.define("mapea-core",["proj4","Handlebars","jsts","chroma"],factory);else if(typeof module==="object"&&module.exports)module.exports=factory();else root.M=factory()})(this,function(proj4,Handlebars,jsts,chroma){var h,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&
a!=Object.prototype&&(a[b]=c.value)},ba="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function ca(){ca=function(){};ba.Symbol||(ba.Symbol=da)}var ea=0;function da(a){return"jscomp_symbol_"+(a||"")+ea++}function fa(){ca();var a=ba.Symbol.iterator;a||(a=ba.Symbol.iterator=ba.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ga(this)}});fa=function(){}}function ga(a){var b=
0;return ha(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})}function ha(a){fa();a={next:a};a[ba.Symbol.iterator]=function(){return this};return a}function ja(a){fa();var b=a[Symbol.iterator];return b?b.call(a):ga(a)}function la(a){if(!(a instanceof Array)){a=ja(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}function ma(a,b){if(b){var c=ba;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&
aa(c,a,{configurable:!0,writable:!0,value:b})}}ma("Array.prototype.fill",function(a){return a?a:function(a,c,d){var b=this.length||0;0>c&&(c=Math.max(0,b+c));if(null==d||d>b)d=b;d=Number(d);0>d&&(d=Math.max(0,b+d));for(c=Number(c||0);c<d;c++)this[c]=a;return this}});function na(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");
return a+""}ma("String.prototype.repeat",function(a){return a?a:function(a){var b=na(this,null,"repeat");if(0>a||1342177279<a)throw new RangeError("Invalid count value");a|=0;for(var d="";a;)if(a&1&&(d+=b),a>>>=1)b+=b;return d}});function oa(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{Aa:e,Fw:f}}return{Aa:-1,Fw:void 0}}ma("Array.prototype.findIndex",function(a){return a?a:function(a,c){return oa(this,a,c).Aa}});ma("Number.isNaN",function(a){return a?
a:function(a){return"number"===typeof a&&isNaN(a)}});function pa(a,b){fa();a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d}ma("Array.prototype.keys",function(a){return a?a:function(){return pa(this,function(a){return a})}});ma("Promise",function(a){function b(a){this.g=0;this.wq=void 0;this.Ej=[];var b=this.uo();try{a(b.resolve,
b.reject)}catch(k){b.reject(k)}}function c(){this.Ke=null}if(a)return a;c.prototype.as=function(a){null==this.Ke&&(this.Ke=[],this.Gy());this.Ke.push(a)};c.prototype.Gy=function(){var a=this;this.bs(function(){a.qz()})};var d=ba.setTimeout;c.prototype.bs=function(a){d(a,0)};c.prototype.qz=function(){for(;this.Ke&&this.Ke.length;){var a=this.Ke;this.Ke=[];for(var b=0;b<a.length;++b){var c=a[b];delete a[b];try{c()}catch(l){this.Hy(l)}}}this.Ke=null};c.prototype.Hy=function(a){this.bs(function(){throw a;
})};b.prototype.uo=function(){function a(a){return function(d){c||(c=!0,a.call(b,d))}}var b=this,c=!1;return{resolve:a(this.GD),reject:a(this.nq)}};b.prototype.GD=function(a){if(a===this)this.nq(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof b)this.TD(a);else{var c;a:switch(typeof a){case "object":c=null!=a;break a;case "function":c=!0;break a;default:c=!1}c?this.FD(a):this.it(a)}};b.prototype.FD=function(a){var b=void 0;try{b=a.then}catch(k){this.nq(k);return}"function"==
typeof b?this.UD(b,a):this.it(a)};b.prototype.nq=function(a){this.Uv(2,a)};b.prototype.it=function(a){this.Uv(1,a)};b.prototype.Uv=function(a,b){if(0!=this.g)throw Error("Cannot settle("+a+", "+b|"): Promise already settled in state"+this.g);this.g=a;this.wq=b;this.rz()};b.prototype.rz=function(){if(null!=this.Ej){for(var a=this.Ej,b=0;b<a.length;++b)a[b].call(),a[b]=null;this.Ej=null}};var e=new c;b.prototype.TD=function(a){var b=this.uo();a.Pk(b.resolve,b.reject)};b.prototype.UD=function(a,b){var c=
this.uo();try{a.call(b,c.resolve,c.reject)}catch(l){c.reject(l)}};b.prototype.then=function(a,c){function d(a,b){return"function"==typeof a?function(b){try{e(a(b))}catch(u){f(u)}}:b}var e,f,g=new b(function(a,b){e=a;f=b});this.Pk(d(a,e),d(c,f));return g};b.prototype.catch=function(a){return this.then(void 0,a)};b.prototype.Pk=function(a,b){function c(){switch(d.g){case 1:a(d.wq);break;case 2:b(d.wq);break;default:throw Error("Unexpected state: "+d.g);}}var d=this;null==this.Ej?e.as(c):this.Ej.push(function(){e.as(c)})};
b.resolve=function(a){return a instanceof b?a:new b(function(b){b(a)})};b.reject=function(a){return new b(function(b,c){c(a)})};b.race=function(a){return new b(function(c,d){for(var e=ja(a),f=e.next();!f.done;f=e.next())b.resolve(f.value).Pk(c,d)})};b.all=function(a){var c=ja(a),d=c.next();return d.done?b.resolve([]):new b(function(a,e){function f(b){return function(c){g[b]=c;k--;0==k&&a(g)}}var g=[],k=0;do g.push(void 0),k++,b.resolve(d.value).Pk(f(g.length-1),e),d=c.next();while(!d.done)})};b.$jscomp$new$AsyncExecutor=
function(){return new c};return b});ma("Array.prototype.values",function(a){return a?a:function(){return pa(this,function(a,c){return c})}});ma("Object.is",function(a){return a?a:function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c}});ma("String.prototype.includes",function(a){return a?a:function(a,c){return-1!==na(this,a,"includes").indexOf(a,c||0)}});ma("Array.prototype.find",function(a){return a?a:function(a,c){return oa(this,a,c).Fw}});ma("String.prototype.startsWith",function(a){return a?
a:function(a,c){var b=na(this,a,"startsWith");a+="";var e=b.length,f=a.length;c=Math.max(0,Math.min(c|0,b.length));for(var g=0;g<f&&c<e;)if(b[c++]!=a[g++])return!1;return g>=f}});ma("Object.assign",function(a){return a?a:function(a,c){for(var b=1;b<arguments.length;b++){var e=arguments[b];if(e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(a[f]=e[f])}return a}});ma("Math.cosh",function(a){if(a)return a;var b=Math.exp;return function(a){a=Number(a);return(b(a)+b(-a))/2}});ma("Number.EPSILON",
function(){return Math.pow(2,-52)});var qa=this;function ra(a){return void 0!==a}function sa(){}function ta(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=
typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function ua(a){return"array"==ta(a)}function va(a){var b=ta(a);return"array"==b||"object"==b&&"number"==typeof a.length}function wa(a){return"string"==typeof a}function xa(a){return"number"==typeof a}function ya(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function za(a){return a[Ba]||
(a[Ba]=++Ca)}var Ba="closure_uid_"+(1E9*Math.random()>>>0),Ca=0;function Da(a,b,c){return a.call.apply(a.bind,arguments)}function Fa(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function Ga(a,b,c){Ga=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?
Da:Fa;return Ga.apply(null,arguments)}function Ha(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}function p(a,b){a=a.split(".");var c=qa;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&ra(b)?c[d]=b:c=c[d]?c[d]:c[d]={}}function v(a,b){function c(){}c.prototype=b.prototype;a.ab=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.xH=function(a,c,f){for(var d=
Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}}var M={style:{}};M.style.chart={};M.style.chart.types={DONUT:"donut",PIE_3D:"pie3D",PIE:"pie",BAR:"bar"};M.style.chart.schemes={Custom:"m.style.chart.types.custom_scheme",Classic:"#ffa500 blue red green cyan magenta yellow #0f0".split(" "),Dark:"#960 #003 #900 #060 #099 #909 #990 #090".split(" "),Pale:"#fd0 #369 #f64 #3b7 #880 #b5d #666".split(" "),Pastel:"#fb4 #79c #f66 #7d7 #acc #fdd #ff9 #b9b".split(" "),
Neon:"#ff0 #0ff #0f0 #f0f #f00 #00f".split(" ")};M.style.chart.Variable={};M.style.chart.Variable=function(a){a=void 0===a?{}:a;this.attributeName_=a.attribute||null;this.ua=a.label||null;this.Zs=a.fill||null;this.Zt=a.legend||null};Object.defineProperty(M.style.chart.Variable.prototype,"attribute",{get:function(){return this.attributeName_},set:function(a){this.attributeName_=a}});Object.defineProperty(M.style.chart.Variable.prototype,"label",{get:function(){return this.ua},set:function(a){this.ua=
a}});Object.defineProperty(M.style.chart.Variable.prototype,"fillColor",{get:function(){return this.Zs},set:function(a){this.Zs=a}});Object.defineProperty(M.style.chart.Variable.prototype,"legend",{get:function(){return this.Zt},set:function(a){this.Zt=a}});M.polyfills={};"".trim||function(){var a=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;String.prototype.trim=function(){return this.replace(a,"")}}();[].forEach||(Array.prototype.forEach=function(a,b){var c,d;if(null===this)throw new TypeError("this is null or not defined");
var e,f=Object(this),g=f.length>>>0;if("[object Function]"!=={}.toString.call(a))throw new TypeError(a+" is not a function");2<=arguments.length&&(c=b);for(d=0;d<g;)d in f&&(e=f[d],a.call(c,e,d,f)),d++});[].filter||(Array.prototype.filter=function(a){if(void 0===this||null===this)throw new TypeError;var b=Object(this),c=b.length>>>0;if("function"!==typeof a)throw new TypeError;for(var d=[],e=2<=arguments.length?arguments[1]:void 0,f=0;f<c;f++)if(f in b){var g=b[f];a.call(e,g,f,b)&&d.push(g)}return d});
[].includes||(Array.prototype.includes=function(a,b){var c=Object(this),d=parseInt(c.length)||0;if(0===d)return!1;b=parseInt(b)||0;0<=b||(b=d+b,0>b&&(b=0));for(var e;b<d;){e=c[b];if(a===e||Object.equals(a,e)||a!==a&&e!==e)return!0;b++}return!1});[].remove||(Array.prototype.remove=function(a,b){var c=Object(this),d=parseInt(c.length)||0;if(0===d)return!1;b=parseInt(b)||0;0<=b||(b=d+b,0>b&&(b=0));for(var e=[],f;b<d;)f=c[b],(a===f||Object.equals(a,f)||a!==a&&f!==f)&&e.push(b),b++;var g=0;e.forEach(function(a){a+=
g;c.splice(a,1);g--})});[].map||(Array.prototype.map=function(a,b){var c,d,e;if(null===this)throw new TypeError(" this is null or not defined");var f=Object(this),g=f.length>>>0;if("function"!==typeof a)throw new TypeError(a+" is not a function");1<arguments.length&&(c=b);d=Array(g);for(e=0;e<g;){var k;e in f&&(k=f[e],k=a.call(c,k,e,f),d[e]=k);e++}return d});Object.equals||(Object.equals=function(a,b){if(null!==a.equals&&"function"===typeof a.equals&&a.equals.call)return a.equals(b);if(null!==b.equals&&
"function"===typeof b.equals&&b.equals.call)return b.equals(a);var c=[],d=[],e;if(isNaN(a)&&isNaN(b)&&"number"===typeof a&&"number"===typeof b||a===b)return!0;if("function"===typeof a&&"function"===typeof b||a instanceof Date&&b instanceof Date||a instanceof RegExp&&b instanceof RegExp||a instanceof String&&b instanceof String||a instanceof Number&&b instanceof Number)return a.toString()===b.toString();if(!(a instanceof Object&&b instanceof Object)||a.isPrototypeOf(b)||b.isPrototypeOf(a)||a.constructor!==
b.constructor||a.prototype!==b.prototype||-1<c.indexOf(a)||-1<d.indexOf(b))return!1;for(e in b)if(b.hasOwnProperty(e)!==a.hasOwnProperty(e)||typeof b[e]!==typeof a[e])return!1;for(e in a){if(b.hasOwnProperty(e)!==a.hasOwnProperty(e)||typeof b[e]!==typeof a[e])return!1;switch(typeof a[e]){case "object":case "function":c.push(a);d.push(b);if(!Object.equals(a[e],b[e]))return!1;c.pop();d.pop();break;default:if(a[e]!==b[e])return!1}}return!0});M.geom={};M.geom.wfs={};M.geom.wfs.type={};M.geom.wkt={};M.geom.wkt.type=
{};M.geom.geojson={};M.geom.geojson.type={};M.geom.wfs.type.POINT="POINT";M.geom.wfs.type.LINE="LINE";M.geom.wfs.type.POLYGON="POLYGON";M.geom.wfs.type.MPOINT="MPOINT";M.geom.wfs.type.MLINE="MLINE";M.geom.wfs.type.MPOLYGON="MPOLYGON";M.geom.wkt.type.GEOMETRY="Geometry";M.geom.wkt.type.POINT="Point";M.geom.wkt.type.LINE_STRING="LineString";M.geom.wkt.type.LINEAR_RING="LinearRing";M.geom.wkt.type.POLYGON="Polygon";M.geom.wkt.type.MULTI_POINT="MultiPoint";M.geom.wkt.type.MULTI_LINE_STRING="MultiLineString";
M.geom.wkt.type.MULTI_POLYGON="MultiPolygon";M.geom.wkt.type.GEOMETRY_COLLECTION="GeometryCollection";M.geom.wkt.type.CIRCLE="Circle";M.geom.geojson.type.POINT="Point";M.geom.geojson.type.MULTI_POINT="MultiPoint";M.geom.geojson.type.LINE_STRING="LineString";M.geom.geojson.type.MULTI_LINE_STRING="MultiLineString";M.geom.geojson.type.POLYGON="Polygon";M.geom.geojson.type.MULTI_POLYGON="MultiPolygon";M.geom.geojson.type.GEOMETRY_COLLECTION="GeometryCollection";M.geom.parse=function(a){a=M.utils.normalize(a,
!0);return M.geom.wfs.type[a]};M.geom.parseWFS=function(a){var b;a===M.geom.wfs.type.POINT?b=M.geom.wkt.type.POINT:a===M.geom.wfs.type.LINE?b=M.geom.wkt.type.LINE_STRING:a===M.geom.wfs.type.POLYGON?b=M.geom.wkt.type.POLYGON:a===M.geom.wfs.type.MPOINT?b=M.geom.wkt.type.MULTI_POINT:a===M.geom.wfs.type.MLINE?b=M.geom.wkt.type.MULTI_LINE_STRING:a===M.geom.wfs.type.MPOLYGON&&(b=M.geom.wkt.type.MULTI_POLYGON);return b};var Ia={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",
azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",
darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",
greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",
lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",
olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",
slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var Ja;var Ka=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function La(a){if(!Ma.test(a))return a;-1!=a.indexOf("\x26")&&(a=a.replace(Na,"\x26amp;"));
-1!=a.indexOf("\x3c")&&(a=a.replace(Oa,"\x26lt;"));-1!=a.indexOf("\x3e")&&(a=a.replace(Pa,"\x26gt;"));-1!=a.indexOf('"')&&(a=a.replace(Qa,"\x26quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ra,"\x26#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Sa,"\x26#0;"));return a}var Na=/&/g,Oa=/</g,Pa=/>/g,Qa=/"/g,Ra=/'/g,Sa=/\x00/g,Ma=/[\x00&<>"']/;function Ta(a,b){return a<b?-1:a>b?1:0}function Ua(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function Va(a){var b=wa(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,
"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})}var w={de:!0,zC:function(a){return a[a.length-1]}};w.last=w.zC;w.indexOf=w.de||Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(wa(a))return wa(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};w.lastIndexOf=w.de||
Array.prototype.lastIndexOf?function(a,b,c){return Array.prototype.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(wa(a))return wa(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};w.forEach=w.de||Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=wa(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};w.ht=function(a,b){for(var c=
wa(a)?a.split(""):a,d=a.length-1;0<=d;--d)d in c&&b.call(void 0,c[d],d,a)};w.filter=w.de||Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=wa(a)?a.split(""):a,k=0;k<d;k++)if(k in g){var l=g[k];b.call(c,l,k,a)&&(e[f++]=l)}return e};w.map=w.de||Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=wa(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,
f[g],g,a));return e};w.reduce=w.de||Array.prototype.reduce?function(a,b,c,d){d&&(b=Ga(b,d));return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;w.forEach(a,function(c,g){e=b.call(d,e,c,g,a)});return e};w.reduceRight=w.de||Array.prototype.reduceRight?function(a,b,c,d){d&&(b=Ga(b,d));return Array.prototype.reduceRight.call(a,b,c)}:function(a,b,c,d){var e=c;w.ht(a,function(c,g){e=b.call(d,e,c,g,a)});return e};w.some=w.de||Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,
b,c)}:function(a,b,c){for(var d=a.length,e=wa(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1};w.every=w.de||Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=wa(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0};w.count=function(a,b,c){var d=0;w.forEach(a,function(a,f,g){b.call(c,a,f,g)&&++d},c);return d};w.find=function(a,b,c){b=w.findIndex(a,b,c);return 0>b?null:wa(a)?a.charAt(b):
a[b]};w.findIndex=function(a,b,c){for(var d=a.length,e=wa(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};w.RH=function(a,b,c){b=w.zz(a,b,c);return 0>b?null:wa(a)?a.charAt(b):a[b]};w.zz=function(a,b,c){for(var d=wa(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;return-1};w.contains=function(a,b){return 0<=w.indexOf(a,b)};w.isEmpty=function(a){return 0==a.length};w.clear=function(a){if(!ua(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=
0};w.ta=function(a,b){w.contains(a,b)||a.push(b)};w.insertAt=function(a,b,c){w.splice(a,c,0,b)};w.AI=function(a,b,c){Ha(w.splice,a,c,0).apply(null,b)};w.insertBefore=function(a,b,c){var d;2==arguments.length||0>(d=w.indexOf(a,c))?a.push(b):w.insertAt(a,b,d)};w.remove=function(a,b){b=w.indexOf(a,b);var c;(c=0<=b)&&w.removeAt(a,b);return c};w.$I=function(a,b){b=w.lastIndexOf(a,b);return 0<=b?(w.removeAt(a,b),!0):!1};w.removeAt=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};w.ZI=
function(a,b,c){b=w.findIndex(a,b,c);return 0<=b?(w.removeAt(a,b),!0):!1};w.XI=function(a,b,c){var d=0;w.ht(a,function(e,f){b.call(c,e,f,a)&&w.removeAt(a,f)&&d++});return d};w.concat=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)};w.join=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)};w.toArray=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};w.clone=w.toArray;w.extend=function(a,b){for(var c=1;c<
arguments.length;c++){var d=arguments[c];if(va(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}};w.splice=function(a,b,c,d){return Array.prototype.splice.apply(a,w.slice(arguments,1))};w.slice=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};w.YI=function(a,b,c){function d(a){return ya(a)?"o"+za(a):(typeof a).charAt(0)+a}b=b||a;c=c||d;for(var e={},f=0,g=0;g<a.length;){var k=a[g++],l=c(k);Object.prototype.hasOwnProperty.call(e,
l)||(e[l]=!0,b[f++]=k)}b.length=f};w.es=function(a,b,c){return w.fs(a,c||w.Qe,!1,b)};w.AH=function(a,b,c){return w.fs(a,b,!0,void 0,c)};w.fs=function(a,b,c,d,e){for(var f=0,g=a.length,k;f<g;){var l=f+g>>1,m;m=c?b.call(e,a[l],l,a):b(d,a[l]);0<m?f=l+1:(g=l,k=!m)}return k?f:~f};w.sort=function(a,b){a.sort(b||w.Qe)};w.pJ=function(a,b){for(var c=Array(a.length),d=0;d<a.length;d++)c[d]={index:d,value:a[d]};var e=b||w.Qe;w.sort(c,function(a,b){return e(a.value,b.value)||a.index-b.index});for(d=0;d<a.length;d++)a[d]=
c[d].value};w.$D=function(a,b,c){var d=c||w.Qe;w.sort(a,function(a,c){return d(b(a),b(c))})};w.oJ=function(a,b,c){w.$D(a,function(a){return a[b]},c)};w.GI=function(a,b,c){b=b||w.Qe;for(var d=1;d<a.length;d++){var e=b(a[d-1],a[d]);if(0<e||0==e&&c)return!1}return!0};w.equals=function(a,b,c){if(!va(a)||!va(b)||a.length!=b.length)return!1;var d=a.length;c=c||w.gz;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0};w.FH=function(a,b,c){c=c||w.Qe;for(var d=Math.min(a.length,b.length),e=0;e<d;e++){var f=
c(a[e],b[e]);if(0!=f)return f}return w.Qe(a.length,b.length)};w.Qe=function(a,b){return a>b?1:a<b?-1:0};w.CI=function(a,b){return-w.Qe(a,b)};w.gz=function(a,b){return a===b};w.yH=function(a,b,c){c=w.es(a,b,c);return 0>c?(w.insertAt(a,b,-(c+1)),!0):!1};w.zH=function(a,b,c){b=w.es(a,b,c);return 0<=b?w.removeAt(a,b):!1};w.BH=function(a,b,c){for(var d={},e=0;e<a.length;e++){var f=a[e],g=b.call(c,f,e,a);ra(g)&&(d[g]||(d[g]=[])).push(f)}return d};w.sJ=function(a,b,c){var d={};w.forEach(a,function(e,f){d[b.call(c,
e,f,a)]=e});return d};w.vf=function(a,b,c){var d=[],e=0,f=a;c=c||1;void 0!==b&&(e=a,f=b);if(0>c*(f-e))return[];if(0<c)for(a=e;a<f;a+=c)d.push(a);else for(a=e;a>f;a+=c)d.push(a);return d};w.repeat=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};w.Dz=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(ua(d))for(var e=0;e<d.length;e+=8192)for(var f=w.slice(d,e,e+8192),f=w.Dz.apply(null,f),g=0;g<f.length;g++)b.push(f[g]);else b.push(d)}return b};w.rotate=function(a,b){a.length&&
(b%=a.length,0<b?Array.prototype.unshift.apply(a,a.splice(-b,b)):0>b&&Array.prototype.push.apply(a,a.splice(0,-b)));return a};w.MI=function(a,b,c){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])};w.DJ=function(a){if(!arguments.length)return[];for(var b=[],c=arguments[0].length,d=1;d<arguments.length;d++)arguments[d].length<c&&(c=arguments[d].length);for(d=0;d<c;d++){for(var e=[],f=0;f<arguments.length;f++)e.push(arguments[f][d]);b.push(e)}return b};w.nJ=function(a,b){b=
b||Math.random;for(var c=a.length-1;0<c;c--){var d=Math.floor(b()*(c+1)),e=a[c];a[c]=a[d];a[d]=e}};w.IH=function(a,b){var c=[];w.forEach(b,function(b){c.push(a[b])});return c};w.GH=function(a,b,c){return w.concat.apply([],w.map(a,b,c))};function Wa(a){var b={};a=String(a);var c=Xa(a);if(Ya.test(c)){a=c;if(!Ya.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Za,"#$1$1$2$2$3$3"));b.hex=a.toLowerCase();b.type="hex";return b}c=$a(a);if(c.length)return b.hex=ab(c[0],c[1],
c[2]),b.type="rgb",b;if(Ia&&(c=Ia[a.toLowerCase()]))return b.hex=c,b.type="named",b;throw Error(a+" is not a valid color string");}var Za=/#(.)(.)(.)/;function ab(a,b,c){a=Number(a);b=Number(b);c=Number(c);if(a!=(a&255)||b!=(b&255)||c!=(c&255))throw Error('"('+a+","+b+","+c+'") is not a valid RGB color');a=bb(a.toString(16));b=bb(b.toString(16));c=bb(c.toString(16));return"#"+a+b+c}function cb(a,b,c){0>c?c+=1:1<c&&--c;return 1>6*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+(b-a)*(2/3-c)*6:a}var Ya=/^#(?:[0-9a-f]{3}){1,2}$/i,
eb=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function $a(a){var b=a.match(eb);if(b){a=Number(b[1]);var c=Number(b[2]),b=Number(b[3]);if(0<=a&&255>=a&&0<=c&&255>=c&&0<=b&&255>=b)return[a,c,b]}return[]}function bb(a){return 1==a.length?"0"+a:a}function Xa(a){return"#"==a.charAt(0)?a:"#"+a}function fb(a){var b={};a=String(a);var c=Xa(a);if(gb.test(c)){a=c;if(!gb.test(a))throw Error("'"+a+"' is not a valid alpha hex color");5==a.length&&(a=a.replace(hb,"#$1$1$2$2$3$3$4$4"));
b.hex=a.toLowerCase();b.type="hex";return b}var d;a:{var e=a.match(ib);if(e){var c=Number(e[1]),f=Number(e[2]);d=Number(e[3]);e=Number(e[4]);if(0<=c&&255>=c&&0<=f&&255>=f&&0<=d&&255>=d&&0<=e&&1>=e){d=[c,f,d,e];break a}}d=[]}if(d.length){a=d[0];c=d[1];f=d[2];d=d[3];e=Math.floor(255*d);if(isNaN(e)||0>e||255<e)throw Error('"('+a+","+c+","+f+","+d+'") is not a valid RGBA color');d=bb(e.toString(16));a=ab(a,c,f)+d;b.hex=a;b.type="rgba";return b}a:{if(e=a.match(jb))if(c=Number(e[1]),f=Number(e[2]),d=Number(e[3]),
e=Number(e[4]),0<=c&&360>=c&&0<=f&&100>=f&&0<=d&&100>=d&&0<=e&&1>=e){e=[c,f,d,e];break a}e=[]}if(e.length){c=e[0];d=e[1];f=e[2];a=e[3];e=Math.floor(255*a);if(isNaN(e)||0>e||255<e)throw Error('"('+c+","+d+","+f+","+a+'") is not a valid HSLA color');a=bb(e.toString(16));d/=100;f/=100;c/=360;if(0==d)f=d=c=255*f;else{var g,e=.5>f?f*(1+d):f+d-d*f;g=2*f-e;f=255*cb(g,e,c+1/3);d=255*cb(g,e,c);c=255*cb(g,e,c-1/3)}c=[Math.round(f),Math.round(d),Math.round(c)];c=ab(c[0],c[1],c[2]);b.hex=c+a;b.type="hsla";return b}throw Error(a+
" is not a valid color string");}var hb=/#(.)(.)(.)(.)/,gb=/^#(?:[0-9a-f]{4}){1,2}$/i,ib=/^(?:rgba)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|1|0\.\d{0,10})\)$/i,jb=/^(?:hsla)\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})%,\s?(0|[1-9]\d{0,2})%,\s?(0|1|0\.\d{0,10})\)$/i;M.utils={};M.utils.isNullOrEmpty=function(a){var b=!1;M.utils.isNull(a)?b=!0:M.utils.isArray(a)?(b=!0,0<a.length&&(b=!a.some(function(a){return!M.utils.isNullOrEmpty(a)}))):"string"===typeof a&&0===a.trim().length&&(b=
!0);return b};M.utils.isNull=function(a){var b=!1;M.utils.isBoolean(a)||"number"===typeof a||(M.utils.isUndefined(a)?b=!0:a?null===a&&(b=!0):b=!0);return b};M.utils.isArray=function(a){var b=!1;M.utils.isNull(a)||(b=Object.prototype.toString.call(a)===Object.prototype.toString.call([]));return b};M.utils.isFunction=function(a){var b=!1;M.utils.isNull(a)||(b="function"===typeof a&&!M.utils.isUndefined(a.call));return b};M.utils.isObject=function(a){var b=!1;M.utils.isNull(a)||(b="object"===typeof a&&
!M.utils.isUndefined(a.toString));return b};M.utils.isString=function(a){var b=!1;M.utils.isNull(a)||(b="string"===typeof a);return b};M.utils.isBoolean=function(a){var b=!1;null===a||M.utils.isUndefined(a)||(b="boolean"===typeof a);return b};M.utils.isUrl=function(a){var b=!1;!M.utils.isNull(a)&&M.utils.isString(a)&&(b=/(https?:\/\/[^\*]+)/.test(a));return b};M.utils.isUndefined=function(a){return"undefined"===typeof a};M.utils.normalize=function(a,b){!M.utils.isNullOrEmpty(a)&&M.utils.isString(a)&&
(a=a.trim(),a=b?a.toUpperCase():a.toLowerCase());return a};M.utils.getParameterValue=function(a,b){var c=null;a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var d=b.indexOf("?");-1!=d&&(b=b.substring(d),c=(new RegExp("[\\?\x26]"+a+"\x3d([^\x26#]*)")).exec(b),null!==c&&(c=decodeURIComponent(c[1].replace(/\+/g," "))));return c};M.utils.addParameters=function(a,b){-1===a.indexOf("?")?a+="?":"?"!==a.charAt(a.length-1)&&(a+="\x26");var c="";if(M.utils.isObject(b)){for(var d in b)c+=d,c+="\x3d",c+=encodeURIComponent(b[d]),
c+="\x26";c=c.substring(0,c.length-1)}else M.utils.isString(b)&&(c=b);return a+c};M.utils.generateRandom=function(a,b){var c="";M.utils.isNullOrEmpty(a)||(c=a);c=c.concat(Math.random()).replace(/0\./,"");M.utils.isNullOrEmpty(b)||(c=c.concat(b));return c};M.utils.getWMSGetCapabilitiesUrl=function(a){a=M.utils.addParameters(a,"request\x3dGetCapabilities");return a=M.utils.addParameters(a,"service\x3dWMS")};M.utils.getWMTSGetCapabilitiesUrl=function(a,b){a=M.utils.addParameters(a,"request\x3dGetCapabilities");
a=M.utils.addParameters(a,"service\x3dWMTS");M.utils.isNullOrEmpty(b)||(a=M.utils.addParameters(a,{version:b}));return a};M.utils.generateResolutionsFromScales=function(a,b,c,d){a=M.utils.getResolutionFromScale(a,d);b=M.utils.getResolutionFromScale(b,d);return M.utils.fillResolutions(a,b,c)};M.utils.generateResolutionsFromExtent=function(a,b,c){var d=ja([null,null]),e=d.next().value,d=d.next().value;M.utils.isArray(a)?(e=a[2]-a[0],d=a[3]-a[1]):M.utils.isObject(a)?(e=a.x.max-a.x.min,d=a.y.max-a.y.min):
M.utils.isString(a)&&(a=a.split(","),e=a[2]-a[0],d=a[3]-a[1]);return M.utils.fillResolutions(null,Math.max(e/b[0],d/b[1]),c)};M.utils.fillResolutions=function(a,b,c){var d=Array(c);a=Number.parseFloat(a);b=Number.parseFloat(b);var e=2;Number.isNaN(a)||(e=Math.pow(b/a,1/(c-1)));for(a=0;a<c;a++)d[a]=b/Math.pow(e,a);d.sort(function(a,b){return b-a});return d};M.utils.getResolutionFromScale=function(a,b){var c;M.utils.isNullOrEmpty(a)||(M.utils.isNull(b)&&(b="degrees"),c=1/((1<a?1/a:a)*M.INCHES_PER_UNIT[b]*
M.DOTS_PER_INCH));return c};M.utils.getScaleFromResolution=function(a,b){M.utils.isNullOrEmpty(b)&&(b="degrees");return a*M.INCHES_PER_UNIT[b]*M.DOTS_PER_INCH};M.utils.stringToHtml=function(a){var b;M.utils.isNullOrEmpty(a)||(b=document.createElement("div"),b.innerHTML=a,b=b.children[0]);return b};M.utils.htmlToString=function(a){var b;M.utils.isNullOrEmpty(a)||(b=document.createElement("div"),b.appendChild(a),b=b.innerHTML);return b};M.utils.beautifyString=function(a){a=a.toLowerCase();a=a.trim(a);
a=a.charAt(0).toUpperCase()+a.slice(1);a=a.replace(/_/g," ");a=a.replace(/\s+/," ");a=a.replace(/(\s\w)+/g,function(a){return a.toUpperCase()});return a=a.replace(/\s+(de|del|las?|el|los?|un|unas?|unos?|y|a|al|en)\s+/ig,function(a){return a.toLowerCase()})};M.utils.beautifyAttribute=function(a){if(a&&(a=a.trim(),0<a.length)){var b=a.indexOf(":");-1!=b&&(b++,a=a.substring(b,a.length))}return a};M.utils.beautifyAttributeName=function(a){a=M.utils.normalize(a);a=a.replace(/_(\w)/g,function(a,c){return" ".concat(c.toUpperCase())});
return a=a.replace(/^\w/,function(a){return a.toUpperCase()})};M.utils.concatUrlPaths=function(a){var b=null;if(!M.utils.isNullOrEmpty(a))for(var b=a[0],b=b.replace(/\/+\s*$/,""),c=1,d=a.length;c<d;c++){var e=a[c];0!==e.indexOf("/")&&(b=b.concat("/"));b=b.concat(e)}return b};M.utils.includes=function(a,b,c){a=Object(a);var d=parseInt(a.length)||0;if(0===d)return!1;c=parseInt(c)||0;0<=c||(c=d+c,0>c&&(c=0));for(var e;c<d;){e=a[c];if(b===e||Object.equals(b,e)||b!==b&&e!==e)return!0;c++}return!1};M.utils.extend=
function(a,b,c){for(var d in b)M.utils.isUndefined(a[d])?a[d]=b[d]:M.utils.isObject(a[d])?M.utils.extend(a[d],b[d],c):!0===c&&(a[d]=b[d]);return a};M.utils.escapeXSS=function(a){a=a.replace(/&/g,"\x26amp;");a=a.replace(/</g,"\x26lt;");a=a.replace(/>/g,"\x26gt;");a=a.replace(/"/g,"\x26quot;");a=a.replace(/'/g,"\x26#x27;");return a=a.replace(/\//g,"\x26#x2F;")};M.utils.escapeJSCode=function(a){a=a.replace(/(<\s*script[^>]*>)+[^<]*(<\s*\/\s*script[^>]*>)+/ig,"");return a=a.replace(/(("|')\s*\+\s*)?\s*eval\s*\(.*\)\s*(\+\s*("|'))?/ig,
"")};M.utils.enableTouchScroll=function(a){if("ontouchstart"in qa){var b=0;kb(a,lb,function(a){b=this.scrollTop+a.Yf.touches[0].pageY});kb(a,mb,function(a){this.scrollTop=b-a.Yf.touches[0].pageY})}};M.utils.rgbToHex=function(a){var b;if(Ya.test(Xa(a))||$a(a).length||Ia&&Ia[a.toLowerCase()])b=Wa(a).hex;else try{b=fb(a).hex}catch(c){}return b};M.utils.rgbaToHex=function(a){var b;try{b=chroma(a).hex()}catch(c){}return b};M.utils.getOpacityFromRgba=function(a){var b,c=/^rgba\s*\((\s*\d+\s*,){3}\s*([\d\.]+)\s*\)$/;
if(c.test(a)){b=a.replace(c,"$2");try{b=parseFloat(b)}catch(d){}}return b};M.utils.sameUrl=function(a,b){a=a.replace(/^(.+)\/$/,"$1").replace(/^(.+)\?$/,"$1");b=b.replace(/^(.+)\/$/,"$1").replace(/^(.+)\?$/,"$1");return a.toLowerCase()===b.toLowerCase()};M.utils.isGeometryType=function(a){var b=[M.geom.wkt.type.GEOMETRY.toLowerCase(),"geometrypropertytype",M.geom.wkt.type.POINT.toLowerCase(),M.geom.wkt.type.LINE_STRING.toLowerCase(),M.geom.wkt.type.LINEAR_RING.toLowerCase(),M.geom.wkt.type.POLYGON.toLowerCase(),
M.geom.wkt.type.MULTI_POINT.toLowerCase(),M.geom.wkt.type.MULTI_LINE_STRING.toLowerCase(),M.geom.wkt.type.MULTI_POLYGON.toLowerCase(),M.geom.wkt.type.GEOMETRY_COLLECTION.toLowerCase(),M.geom.wkt.type.CIRCLE.toLowerCase(),"pointpropertytype","polygonpropertytype","linestringpropertytype","geometrypropertytype","multisurfacepropertytype","multilinestringpropertytype","surfacepropertytype","geometrypropertytype","geometryarraypropertytype","multigeometrypropertytype","multipolygonpropertytype","multipointpropertytype",
"abstractgeometricaggregatetype","pointarraypropertytype","curvearraypropertytype","solidpropertytype","solidarraypropertytype"];a=a.toLowerCase();return-1!==b.indexOf(a)};M.utils.decodeHtml=function(a){var b=document.createElement("textarea");b.innerHTML=a;return b.value};M.utils.getTextFromHtml=function(a){var b=a;!M.utils.isString(a)&&a.outerHTML&&(b=a.outerHTML);a=document.createElement("DIV");a.innerHTML=b;return a.textContent||a.innerText||""};M.utils.generateColorScale=function(a,b,c){return chroma.scale([a,
b]).colors(c)};M.utils.inverseColor=function(a){var b;M.utils.isString(a)&&(a=chroma(a).hex(),a=a.replace(/^#/,"0x"),b=chroma(16777215-a).hex());return b};M.utils.getGeometryType=function(a){if(M.utils.isNullOrEmpty(a)||M.utils.isNullOrEmpty(a.getFeatures()))return null;a=a.getFeatures()[0];return M.utils.isNullOrEmpty(a)||M.utils.isNullOrEmpty(a.getGeometry())?null:a.getGeometry().type};M.utils.generateStyleLayer=function(a,b){switch(M.utils.getGeometryType(b)){case "Point":case "MultiPoint":a=new M.style.Point(a);
break;case "LineString":case "MultiLineString":a=new M.style.Line(a);break;case "Polygon":case "MultiPolygon":a=new M.style.Polygon(a);break;default:return null}return a};M.utils.getRgba=function(a,b){return chroma(a).alpha(b).css()};M.utils.setEquals=function(a,b){var c=!1;a.length===b.length&&(c=a.every(function(a){return b.some(function(b){return b.equals(a)})}));return c};M.utils.extends=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;M.utils.isNullOrEmpty(b)||Object.keys(b).forEach(function(c){var d=
b[c];M.utils.isArray(d)?d=[].concat(la(d)):M.utils.isObject(d)&&(d=M.utils.extends({},d));M.utils.isNullOrEmpty(a[c])?a[c]=d:M.utils.isObject(a[c])&&M.utils.extends(a[c],d)},this);return a};M.utils.generateIntervals=function(a,b){var c=[].concat(la(a));if(a.length<b){for(var d=(a[0]+a[1])/(b-1),e=1;e<b-1;e++)c[e]=d*e;c=[].concat(la(c),[a[1]])}return c};M.utils.styleComparator=function(a,b){return a.ORDER-b.ORDER};M.utils.getImageSize=function(a){var b=new Image;return new Promise(function(c){b.onload=
function(){return c(b)};b.src=a})};M.utils.generateRandomStyle=function(a,b,c,d){var e=chroma.random().hex();switch(a.getGeometry().type){case "Point":case "MultiPoint":a={radius:b,fill:{color:e},stroke:{color:d,width:c}};a=new M.style.Point(a);break;case "LineString":case "MultiLineString":a={fill:{color:e},stroke:{color:d,width:c}};a=new M.style.Line(a);break;case "Polygon":case "MultiPolygon":a={fill:{color:e},stroke:{color:d,width:c}};a=new M.style.Polygon(a);break;default:a=null}return a};M.dialog=
{};M.dialog.show=function(a,b,c){return M.template.compile("dialog.html",{jsonp:!0,vars:{message:a,title:b,severity:c}}).then(function(a){M.dialog.remove();var b=document.querySelector("div.m-mapea-container");kb(a.querySelector("div.m-button \x3e button"),nb.CLICK,function(){ob(a)});b.appendChild(a)})};M.dialog.remove=function(){Array.prototype.forEach.call(document.querySelectorAll("div.m-dialog"),function(a){ob(a)})};M.dialog.info=function(a,b){M.utils.isNullOrEmpty(b)&&(b="INFORMACI\u00d3N");
return M.dialog.show(a,b,"info")};M.dialog.error=function(a,b){M.utils.isNullOrEmpty(b)&&(b="ERROR");return M.dialog.show(a,b,"error")};M.dialog.success=function(a,b){M.utils.isNullOrEmpty(b)&&(b="\u00c9XITO");return M.dialog.show(a,b,"success")};M.exception={};M.exception=function(a){throw a;};M.evt={};M.evt.EventsManager={};M.evt.Listener={};(function(){M.evt.ADDED_TO_MAP="added:map";M.evt.ADDED_TO_PANEL="added:panel";M.evt.ADDED_LAYER="added:layer";M.evt.ADDED_WMC="added:wmc";M.evt.ADDED_KML="added:kml";
M.evt.ADDED_WMS="added:wms";M.evt.ADDED_WFS="added:wfs";M.evt.ADDED_WMTS="added:wmts";M.evt.ACTIVATED="activated";M.evt.DEACTIVATED="deactivated";M.evt.SHOW="show";M.evt.HIDE="hide";M.evt.DESTROY="destroy";M.evt.SELECT_FEATURES="select:features";M.evt.UNSELECT_FEATURES="unselect:features";M.evt.HOVER_FEATURES="hover:features";M.evt.LEAVE_FEATURES="leave:features";M.evt.LOAD="load";M.evt.COMPLETED="completed";M.evt.CHANGE="change";M.evt.CHANGE_WMC="change:wmc";M.evt.CHANGE_PROJ="change:proj";M.evt.CHANGE_STYLE=
"change:style";M.evt.CLICK="click";M.evt.MOVE="move";var a=[M.evt.ADDED_TO_MAP,M.evt.ADDED_TO_PANEL,M.evt.ADDED_LAYER,M.evt.ADDED_WMC,M.evt.ADDED_KML,M.evt.ADDED_WMS,M.evt.ADDED_WFS,M.evt.ADDED_WMTS,M.evt.ACTIVATED,M.evt.DEACTIVATED,M.evt.SHOW,M.evt.HIDE,M.evt.DESTROY,M.evt.UNSELECT_FEATURES,M.evt.SELECT_FEATURES,M.evt.HOVER_FEATURES,M.evt.LEAVE_FEATURES,M.evt.LOAD,M.evt.COMPLETED,M.evt.CHANGE,M.evt.CHANGE_WMC,M.evt.CHANGE_PROJ,M.evt.CHANGE_STYLE,M.evt.CLICK,M.evt.MOVE];M.evt.EventsManager=function(){this.dh=
{}};M.evt.EventsManager.prototype.add=function(b,c,d,e){e=void 0===e?!1:e;if(!M.utils.isNullOrEmpty(b)&&-1!==a.indexOf(b)&&M.utils.isFunction(c)&&(M.utils.isNullOrEmpty(this.dh[b])&&(this.dh[b]=[]),-1===this.indexOf(b,c,d)))return c=new M.evt.Listener(c,d,e),this.dh[b].push(c),c.getEventKey()};M.evt.EventsManager.prototype.remove=function(a,c,d){var b=this.dh[a];M.utils.isNullOrEmpty(b)||(a=this.indexOf(a,c,d),-1!==a&&b.splice(a,1))};M.evt.EventsManager.prototype.fire=function(a,c){var b=[].concat(this.dh[a]);
M.utils.isNullOrEmpty(b)||b.forEach(function(b){b.fire(c);!0===b.isOnce()&&this.remove(a,b.getEventKey())},this)};M.evt.EventsManager.prototype.indexOf=function(a,c,d){var b=-1;a=this.dh[a];if(!M.utils.isNullOrEmpty(a))for(var f=0,g=a.length;f<g;f++)if(a[f].has(c,d)){b=f;break}return b};M.evt.Listener=function(a,c,d){d=void 0===d?!1:d;this.Lr=a;this.Qr=c;this.Qs=M.utils.generateRandom();this.iC=d};M.evt.Listener.prototype.fire=function(a){M.utils.isArray(a)||(a=[a]);this.Lr.apply(this.Qr,a)};M.evt.Listener.prototype.getEventKey=
function(){return this.Qs};M.evt.Listener.prototype.isOnce=function(){return this.iC};M.evt.Listener.prototype.has=function(a,c){return M.utils.isFunction(a)?this.Lr===a&&this.Qr===c:this.Qs===a}})();M.Object={};M.Object=function(){this.Si=new M.evt.EventsManager};h=M.Object.prototype;h.on=function(a,b,c){return this.Si.add(a,b,c)};h.once=function(a,b,c){return this.Si.add(a,b,c,!0)};h.once=function(a,b,c){return this.Si.add(a,b,c,!0)};h.un=function(a,b,c){this.Si.remove(a,b,c)};h.fire=function(a,
b){M.utils.isNullOrEmpty(b)&&(b=[this]);this.Si.fire(a,b)};M.facade={};M.facade.Base={};M.facade.Base=function(a){this.gf=a;!M.utils.isNullOrEmpty(this.gf)&&M.utils.isFunction(this.gf.setFacadeObj)&&this.gf.setFacadeObj(this);M.Object.call(this)};v(M.facade.Base,M.Object);M.facade.Base.prototype.getImpl=function(){return this.gf};M.facade.Base.prototype.setImpl=function(a){this.gf=a};M.facade.Base.prototype.destroy=function(){!M.utils.isNullOrEmpty(this.gf)&&M.utils.isFunction(this.gf.destroy)&&this.gf.destroy()};
M.Control={};M.Control=function(a,b){M.utils.isUndefined(a.addTo)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo addTo");M.utils.isUndefined(a.getElement)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getElement");M.utils.isUndefined(a.vp)&&(a.vp=!0);this.name=b;this.activationBtn_=this.element_=this.map_=null;this.activated=!1;this.panel_=null;M.facade.Base.call(this,a)};v(M.Control,M.facade.Base);h=M.Control.prototype;h.setImpl=function(a){M.utils.isUndefined(a.addTo)&&
M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo addTo");M.utils.isUndefined(a.getElement)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getElement");M.utils.isUndefined(a.vp)&&(a.vp=!0);M.Control.ab.setImpl.call(this,a)};h.addTo=function(a){this.map_=a;var b=this.getImpl(),c=this.createView(a);if(c instanceof Promise){var d=this;c.then(function(c){d.manageActivation(c);b.addTo(a,c);d.fire(M.evt.ADDED_TO_MAP)})}else this.manageActivation(c),b.addTo(a,c),this.fire(M.evt.ADDED_TO_MAP)};
h.createView=function(){};h.manageActivation=function(a){this.element_=a;this.activationBtn_=this.getActivationButton(this.element_);M.utils.isNullOrEmpty(this.activationBtn_)||kb(this.activationBtn_,nb.CLICK,function(a){a.preventDefault();this.activated?(this.deactivate(),this.activated=!1):(this.activate(),this.activated=!0)},!1,this)};h.getActivationButton=function(){};h.activate=function(){M.utils.isNullOrEmpty(this.element_)||pb(this.element_,"activated");M.utils.isUndefined(this.getImpl().activate)||
this.getImpl().activate();this.activated=!0;this.fire(M.evt.ACTIVATED)};h.deactivate=function(){M.utils.isNullOrEmpty(this.element_)||qb(this.element_,"activated");M.utils.isUndefined(this.getImpl().deactivate)||this.getImpl().deactivate();this.activated=!1;this.fire(M.evt.DEACTIVATED)};h.getElement=function(){return this.getImpl().getElement()};h.setPanel=function(a){this.panel_=a};h.getPanel=function(){return this.panel_};h.destroy=function(){};function rb(a){if(a.classList)return a.classList;a=
a.className;return wa(a)&&a.match(/\S+/g)||[]}function sb(a,b){return a.classList?a.classList.contains(b):w.contains(rb(a),b)}function pb(a,b){a.classList?a.classList.add(b):sb(a,b)||(a.className+=0<a.className.length?" "+b:b)}function qb(a,b){a.classList?a.classList.remove(b):sb(a,b)&&(a.className=w.filter(rb(a),function(a){return a!=b}).join(" "))}function tb(a,b){sb(a,b)?qb(a,b):pb(a,b)}M.control={};M.control.GetFeatureInfo={};M.control.GetFeatureInfo=function(a,b){M.utils.isUndefined(M.impl.control.GetFeatureInfo)&&
M.exception("La implementaci\u00f3n usada no puede crear controles GetFeatureInfo");b=b||{};a=new M.impl.control.GetFeatureInfo(a,b);M.Control.call(this,a,M.control.GetFeatureInfo.NAME)};v(M.control.GetFeatureInfo,M.Control);M.control.GetFeatureInfo.prototype.createView=function(){return M.template.compile(M.control.GetFeatureInfo.TEMPLATE,{jsonp:!0})};M.control.GetFeatureInfo.prototype.getActivationButton=function(a){return a.querySelector("button#m-getfeatureinfo-button")};M.control.GetFeatureInfo.prototype.equals=
function(a){var b=!1;a instanceof M.control.GetFeatureInfo&&(b=this.name===a.name);return b};M.control.GetFeatureInfo.NAME="getfeatureinfo";M.control.GetFeatureInfo.POPUP_TITLE="Informaci\u00f3n";M.control.GetFeatureInfo.TEMPLATE="getfeatureinfo.html";M.control.GetFeatureInfo.POPUP_TEMPLATE="getfeatureinfo_popup.html";M.control.LayerSwitcher={};M.control.LayerSwitcher=function(){M.utils.isUndefined(M.impl.control.LayerSwitcher)&&M.exception("La implementaci\u00f3n usada no puede crear controles LayerSwitcher");
var a=new M.impl.control.LayerSwitcher;M.Control.call(this,a,M.control.LayerSwitcher.NAME)};v(M.control.LayerSwitcher,M.Control);h=M.control.LayerSwitcher.prototype;h.createView=function(a){return M.control.LayerSwitcher.yt(a).then(function(a){return M.template.compile(M.control.LayerSwitcher.TEMPLATE,{jsonp:!0,vars:a})})};h.equals=function(a){return a instanceof M.control.LayerSwitcher};h.render=function(){this.getImpl().renderPanel()};h.registerEvents=function(){this.getImpl().registerEvents()};
h.unregisterEvents=function(){this.getImpl().unregisterEvents()};M.control.LayerSwitcher.yt=function(a){return new Promise(function(b){if(!M.utils.isNullOrEmpty(a)){var c=a.getBaseLayers().filter(function(a){return!0===a.displayInLayerSwitcher}),d=a.getLayers().filter(function(a){var b=!0===a.transparent,c=!0===a.displayInLayerSwitcher,d=a.type!==M.layer.type.WMC;a=!(a.type===M.layer.type.WMS&&M.utils.isNullOrEmpty(a.name));return b&&d&&a&&c}).reverse(),c=Promise.all(c.map(M.control.LayerSwitcher.Vu)),
e=Promise.all(d.map(M.control.LayerSwitcher.Vu));c.then(function(a){e.then(function(c){return b({baseLayers:a,overlayLayers:c})})})}})};M.control.LayerSwitcher.Vu=function(a){var b=a.legend;M.utils.isNullOrEmpty(b)&&(b=a.name);M.utils.isNullOrEmpty(b)&&(b="Servicio WMS");var c=!1;if(a instanceof M.layer.Vector){var d=a.getStyle();d instanceof M.style.Point&&!M.utils.isNullOrEmpty(d.get("icon.src"))&&(c=!0)}return new Promise(function(d){var e={base:!1===a.transparent,visible:!0===a.isVisible(),id:a.name,
title:b,outOfRange:!a.inRange(),opacity:a.getOpacity(),isIcon:c},g=a.getLegendURL();g instanceof Promise?g.then(function(a){e.legend=a;d(e)}):(e.legend=g,d(e))})};M.control.LayerSwitcher.NAME="layerswitcher";M.control.LayerSwitcher.TEMPLATE="layerswitcher.html";M.control.Location={};M.control.Location=function(a,b){a=void 0!==a?a:!0;b=void 0!==b?b:!1;M.utils.isUndefined(M.impl.control.Location)&&M.exception("La implementaci\u00f3n usada no puede crear controles Location");a=new M.impl.control.Location(a,
b,6E4);M.Control.call(this,a,M.control.Location.NAME)};v(M.control.Location,M.Control);M.control.Location.prototype.createView=function(){return M.template.compile(M.control.Location.TEMPLATE,{jsonp:!0})};M.control.Location.prototype.getActivationButton=function(a){return a.querySelector("button#m-location-button")};M.control.Location.prototype.equals=function(a){return a instanceof M.control.Location};M.control.Location.prototype.setTracking=function(a){this.getImpl().setTracking(a)};M.control.Location.NAME=
"location";M.control.Location.TEMPLATE="location.html";M.control.Mouse={};M.control.Mouse=function(){M.utils.isUndefined(M.impl.control.Mouse)&&M.exception("La implementaci\u00f3n usada no puede crear controles Mouse");var a=new M.impl.control.Mouse;M.Control.call(this,a,M.control.Mouse.NAME)};v(M.control.Mouse,M.Control);M.control.Mouse.prototype.createView=function(){return M.template.compile(M.control.Mouse.TEMPLATE,{jsonp:!0})};M.control.Mouse.prototype.equals=function(a){return a instanceof M.control.Mouse};
M.control.Mouse.NAME="mouse";M.control.Mouse.TEMPLATE="mouse.html";M.control.Navtoolbar={};M.control.Navtoolbar=function(){M.utils.isUndefined(M.impl.control.Navtoolbar)&&M.exception("La implementaci\u00f3n usada no puede crear controles Navtoolbar");var a=new M.impl.control.Navtoolbar;M.Control.call(this,a,M.control.Navtoolbar.NAME)};v(M.control.Navtoolbar,M.Control);M.control.Navtoolbar.prototype.createView=function(){return M.template.compile(M.control.Navtoolbar.TEMPLATE,{jsonp:!0})};M.control.Navtoolbar.prototype.equals=
function(a){return a instanceof M.control.Navtoolbar};M.control.Navtoolbar.NAME="navtoolbar";M.control.Navtoolbar.TEMPLATE="navtoolbar.html";M.control.OverviewMap={};M.control.OverviewMap=function(a){M.utils.isUndefined(M.impl.control.OverviewMap)&&M.exception("La implementaci\u00f3n usada no puede crear controles OverviewMap");a=a||{};a=new M.impl.control.OverviewMap(a);M.Control.call(this,a,M.control.OverviewMap.NAME)};v(M.control.OverviewMap,M.Control);M.control.OverviewMap.prototype.createView=
function(){return M.template.compile(M.control.OverviewMap.TEMPLATE,{jsonp:!0})};M.control.OverviewMap.prototype.equals=function(a){return a instanceof M.control.OverviewMap};M.control.OverviewMap.NAME="overviewmap";M.control.OverviewMap.TEMPLATE="overviewmap.html";M.control.Panzoom={};M.control.Panzoom=function(){M.utils.isUndefined(M.impl.control.Panzoom)&&M.exception("La implementaci\u00f3n usada no puede crear controles Panzoom");var a=new M.impl.control.Panzoom;M.Control.call(this,a,M.control.Panzoom.NAME)};
v(M.control.Panzoom,M.Control);M.control.Panzoom.prototype.createView=function(){return M.template.compile(M.control.Panzoom.TEMPLATE,{jsonp:!0})};M.control.Panzoom.prototype.equals=function(a){return a instanceof M.control.Panzoom};M.control.Panzoom.NAME="panzoom";M.control.Panzoom.TEMPLATE="panzoom.html";M.control.Panzoombar={};M.control.Panzoombar=function(){M.utils.isUndefined(M.impl.control.Panzoombar)&&M.exception("La implementaci\u00f3n usada no puede crear controles Panzoombar");var a=new M.impl.control.Panzoombar;
M.Control.call(this,a,M.control.Panzoombar.NAME)};v(M.control.Panzoombar,M.Control);M.control.Panzoombar.prototype.createView=function(){return M.template.compile(M.control.Panzoombar.TEMPLATE,{jsonp:!0})};M.control.Panzoombar.prototype.equals=function(a){return a instanceof M.control.Panzoombar};M.control.Panzoombar.NAME="panzoombar";M.control.Panzoombar.TEMPLATE="panzoombar.html";M.control.Scale={};M.control.Scale=function(){M.utils.isUndefined(M.impl.control.Scale)&&M.exception("La implementaci\u00f3n usada no puede crear controles Scale");
var a=new M.impl.control.Scale;M.Control.call(this,a,M.control.Scale.NAME)};v(M.control.Scale,M.Control);M.control.Scale.prototype.createView=function(){return M.template.compile(M.control.Scale.TEMPLATE,{jsonp:!0})};M.control.Scale.prototype.equals=function(a){return a instanceof M.control.Scale};M.control.Scale.NAME="scale";M.control.Scale.TEMPLATE="scale.html";M.control.ScaleLine={};M.control.ScaleLine=function(){M.utils.isUndefined(M.impl.control.ScaleLine)&&M.exception("La implementaci\u00f3n usada no puede crear controles ScaleLine");
var a=new M.impl.control.ScaleLine;M.Control.call(this,a,M.control.ScaleLine.NAME)};v(M.control.ScaleLine,M.Control);M.control.ScaleLine.prototype.createView=function(){return M.template.compile(M.control.ScaleLine.TEMPLATE,{jsonp:!0})};M.control.ScaleLine.prototype.equals=function(a){return a instanceof M.control.ScaleLine};M.control.ScaleLine.NAME="scaleline";M.control.ScaleLine.TEMPLATE="scaleline.html";M.xk={};M.xk.Ya={};Handlebars.registerHelper("gt",function(a,b,c){return a>b?c.fn(this):c.inverse(this)});
Handlebars.registerHelper("lt",function(a,b,c){return a<b?c.fn(this):c.inverse(this)});Handlebars.registerHelper("eq",function(a,b,c){return Object.equals(a,b)?c.fn(this):c.inverse(this)});Handlebars.registerHelper("oneword",function(a,b){return/\s/g.test(M.utils.getTextFromHtml(a))?b.inverse(this):b.fn(this)});M.template={};M.template.Ym={};M.template.compile=function(a,b){var c={},d,e;M.utils.isUndefined(b)||(c=M.utils.extends(c,b.vars),d=b.parseToHtml,e=b.scope);return new Promise(function(f){M.template.get(a,
b).then(function(a){a=a.call(null,c);!1!==d?f.call(e,M.utils.stringToHtml(a)):f.call(e,a)})})};M.template.get=function(a,b){var c;M.utils.isUndefined(b)||(c=b.scope);return new Promise(function(d){var e=M.template.Ym[a];if(M.utils.isUndefined(e)){var f=a;M.utils.isUndefined(b)||!0!==b.jsonp||(f=M.template.Zz(a));var g=!M.utils.isNullOrEmpty(b)&&!0===b.jsonp;M.remote.get(f,null,{jsonp:g}).then(function(b){e=Handlebars.compile(b.text);M.template.Ym[a]=e;d.call(c,e)})}else d.call(c,e)})};M.template.add=
function(a,b){M.utils.isUndefined(M.template.Ym[a])&&(M.template.Ym[a]=b)};M.template.Zz=function(a){var b=null;M.utils.isNullOrEmpty(a)||(b=M.config.MAPEA_URL.concat(M.config.TEMPLATES_PATH),b=b.concat(a));return b};M.control.WMCSelector={};M.control.WMCSelector=function(){M.utils.isUndefined(M.impl.control.WMCSelector)&&M.exception("La implementaci\u00f3n usada no puede crear controles WMCSelector");var a=new M.impl.control.WMCSelector;M.Control.call(this,a,"wmcselector")};v(M.control.WMCSelector,
M.Control);M.control.WMCSelector.prototype.createView=function(a){return M.template.compile(M.control.WMCSelector.TEMPLATE,{jsonp:!0,vars:{layers:a.getWMC()}})};M.control.WMCSelector.prototype.equals=function(a){var b=!1;a instanceof M.control.WMCSelector&&(b=this.name===a.name);return b};M.control.WMCSelector.TEMPLATE="wmcselector.html";M.Feature={};M.Feature=function(a,b,c){this.style_=null;this.Jz=new M.format.GeoJSON;a=new M.impl.Feature(a,b,c);M.facade.Base.call(this,a);this.setStyle(c)};v(M.Feature,
M.facade.Base);h=M.Feature.prototype;h.setId=function(a){this.getImpl().setId(a)};h.getId=function(){return this.getImpl().getId()};h.getGeometry=function(){return this.getGeoJSON().geometry};h.setGeometry=function(a){this.getImpl().setGeometry(a)};h.getGeoJSON=function(){return this.Jz.write(this)[0]};h.getAttributes=function(){return this.getImpl().getAttributes()};h.setAttributes=function(a){"object"===typeof a?this.getImpl().setAttributes(a):M.dialog.info("No se han especificado correctamente los atributos.")};
h.getAttribute=function(a){var b;b=this.getImpl().getAttribute(a);M.utils.isNullOrEmpty(b)&&(a=a.split("."),1<a.length&&(b=a.reduce(function(a,b){return M.utils.isNullOrEmpty(a)?void 0:a instanceof M.Feature?a.getAttribute(b):a[b]},this)));return b};h.setAttribute=function(a,b){return this.getImpl().setAttribute(a,b)};h.setStyle=function(a){!M.utils.isNullOrEmpty(a)&&a instanceof M.style.Feature?(this.style_=a,this.style_.applyToFeature(this)):M.utils.isNullOrEmpty(a)&&(this.style_=null,this.getImpl().clearStyle());
this.fire(M.evt.CHANGE_STYLE,[a,this])};h.equals=function(a){return this.getId()===a.getId()};h.getStyle=function(){return this.style_};h.clearStyle=function(){this.setStyle(null)};h.getCentroid=function(){var a=this.getId(),b=this.getAttributes(),c=new M.style.Point({stroke:{color:"#67af13",width:2},radius:8,fill:{color:"#67af13",opacity:.2}}),d=this.getImpl().getCentroid();if(!M.utils.isNullOrEmpty(d))return d.setId(a+"_centroid"),d.setAttributes(b),d.setStyle(c),d};M.ClusteredFeature={};M.ClusteredFeature=
function(a,b){M.Feature.call(this,M.utils.generateRandom("_mapea_cluster_"));this.setAttributes(b);this.setAttribute("features",a)};v(M.ClusteredFeature,M.Feature);M.ClusteredFeature.prototype.equals=function(a){return this.getId()===a.getId()};M.filter={};M.filter.AND=function(a){var b="",c=a.length;a.forEach(function(a,e){b+="("+a.toCQL()+")";e<c-1&&(b+=" AND ")});return new M.filter.Function(function(b){return a.every(function(a){return a.getFunctionFilter()(b)})},{Rb:b})};M.filter.OR=function(a){var b=
"",c=a.length;a.forEach(function(a,e){b+="("+a.toCQL()+")";e<c-1&&(b+=" OR ")});return new M.filter.Function(function(b){return a.some(function(a){return a.getFunctionFilter()(b)})},{Rb:b})};M.filter.NOT=function(a){return new M.filter.Function(function(b){return!a.getFunctionFilter()(b)},{Rb:"NOT "+a.toCQL()})};M.filter.EQUAL=function(a,b){return new M.filter.Function(function(c){return Object.is(c.getAttribute(a),b)},{Rb:a+"\x3d'"+b+"'"})};M.filter.LIKE=function(a,b){return new M.filter.Function(function(c){return c.getAttribute(a).toString().match(new RegExp(b))},
{Rb:a+" LIKE '%"+b+"%'"})};M.filter.LT=function(a,b){return new M.filter.Function(function(c){return null!=c.getAttribute(a)&&c.getAttribute(a)<b},{Rb:a+" \x3c '"+b+"'"})};M.filter.GT=function(a,b){return new M.filter.Function(function(c){return null!=c.getAttribute(a)&&c.getAttribute(a)>b},{Rb:a+" \x3e '"+b+"'"})};M.filter.LTE=function(a,b){return new M.filter.Function(function(c){return null!=c.getAttribute(a)&&c.getAttribute(a)<=b},{Rb:a+" \x3c\x3d '"+b+"'"})};M.filter.GTE=function(a,b){return new M.filter.Function(function(c){return null!=
c.getAttribute(a)&&c.getAttribute(a)>=b},{Rb:a+" \x3e\x3d '"+b+"'"})};M.Filter={};M.Filter=function(){};M.Filter.prototype.getFunctionFilter=function(){};M.Filter.prototype.execute=function(){};M.Filter.prototype.toCQL=function(){};M.filter.Function={};M.filter.Function=function(a,b){b=b||{};this.Ko=a;this.ws="";M.utils.isNullOrEmpty(b.Rb)||(this.ws=b.Rb)};v(M.filter.Function,M.Filter);M.filter.Function.prototype.setFunction=function(a){this.Ko=a};M.filter.Function.prototype.getFunctionFilter=function(){return this.Ko};
M.filter.Function.prototype.execute=function(a){return a.filter(this.Ko)};M.filter.Function.prototype.toCQL=function(){return this.ws};M.filter.Spatial={};M.filter.Spatial=function(a,b){M.filter.Function.call(this,function(b,d){var c=null;M.utils.isNullOrEmpty(b)||(c=b.getGeometry());return a(c,d)},b)};v(M.filter.Spatial,M.filter.Function);M.filter.spatial={};M.filter.spatial.CONTAIN=function(a){var b=M.filter.spatial.parseParamToGeometries(a);return new M.filter.Spatial(function(a){var c=new jsts.io.GeoJSONReader,
e=c.read(a);return b.some(function(a){a=c.read(a);return e.contains(a)})},{Rb:M.filter.spatial.jn("CONTAINS",b)})};M.filter.spatial.DISJOINT=function(a){var b=M.filter.spatial.parseParamToGeometries(a);return new M.filter.Spatial(function(a){var c=new jsts.io.GeoJSONReader,e=c.read(a);return b.some(function(a){a=c.read(a);return e.disjoint(a)})},{Rb:M.filter.spatial.jn("DISJOINT",b)})};M.filter.spatial.WITHIN=function(a){var b=M.filter.spatial.parseParamToGeometries(a);return new M.filter.Spatial(function(a){var c=
new jsts.io.GeoJSONReader,e=c.read(a);return b.some(function(a){a=c.read(a);return e.within(a)})},{Rb:M.filter.spatial.jn("WITHIN",b)})};M.filter.spatial.INTERSECT=function(a){var b=M.filter.spatial.parseParamToGeometries(a);return new M.filter.Spatial(function(a){var c=new jsts.io.GeoJSONReader,e=c.read(a);return b.some(function(a){a=c.read(a);return e.intersects(a)})},{Rb:M.filter.spatial.jn("INTERSECTS",b)})};M.filter.spatial.parseParamToGeometries=function(a){var b=[];a instanceof M.layer.Vector?
b=[].concat(la(a.getFeatures().map(function(a){return a.getGeometry()}))):(M.utils.isArray(a)||(a=[a]),b=a.map(function(a){var b;a instanceof M.Feature?b=a.getGeometry():M.utils.isObject(a)&&(b=a);return b}));return b};M.filter.spatial.jn=function(a,b){for(var c="",d=new M.format.WKT,e=0;e<b.length;e++){0!==e&&(c+=" OR ");var f=b[e];"point"===f.type.toLowerCase()&&(f.coordinates.length=2);c+=a+"({{geometryName}}, "+d.write(f)+")"}return c};M.format={};M.format.GeoJSON={};M.format.GeoJSON=function(a){M.utils.isUndefined(vb)&&
M.exception("La implementaci\u00f3n usada no puede M.impl.format.GeoJSON");a=a||{};a=new vb(a);M.facade.Base.call(this,a)};v(M.format.GeoJSON,M.facade.Base);M.format.GeoJSON.prototype.write=function(a){M.utils.isArray(a)||(a=[a]);return this.getImpl().write(a)};M.format.GeoJSON.prototype.read=function(a,b){var c=[];M.utils.isNullOrEmpty(a)||(M.utils.isString(a)&&(a=JSON.parse(a)),c=[],"FeatureCollection"===a.type?c=a.features:"Feature"===a.type&&(c=[a]),c=this.getImpl().read(a,c,b));return c};M.format.WKT=
{};M.format.WKT=function(a){a=void 0===a?{}:a;M.utils.isUndefined(wb)&&M.exception("La implementaci\u00f3n usada no puede M.impl.format.WKT");a=new wb(a);M.facade.Base.call(this,a)};v(M.format.WKT,M.facade.Base);M.format.WKT.prototype.write=function(a){return this.getImpl().write(a)};M.handler={};M.handler.Features={};M.handler.Features=function(a,b){a=void 0===a?{}:a;b=void 0===b?new M.impl.handler.Features(a):b;this.map_=null;this.layers_=[];this.activated_=!1;this.prevSelectedFeatures_={};this.prevHoverFeatures_=
{};M.utils.isFunction(b.addTo)||M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo addTo");M.utils.isFunction(b.getFeaturesByLayer)||M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getFeaturesByLayer");M.facade.Base.call(this,b)};v(M.handler.Features,M.facade.Base);M.handler.Features.prototype.addTo=function(a){this.map_=a;this.map_.on(M.evt.CLICK,this.Qy,this);this.map_.on(M.evt.MOVE,this.RB,this);this.getImpl().addTo(this.map_);this.fire(M.evt.ADDED_TO_MAP)};M.handler.Features.prototype.Qy=
function(a){if(!0===this.activated_){var b=this.getImpl();this.layers_.forEach(function(c){var d=b.getFeaturesByLayer(a,c),e=[].concat(la(this.prevSelectedFeatures_[c.name]));if(0===d.length&&0<e.length)this.unselectFeatures(e,c,a);else if(0<d.length){var f=d.filter(function(a){return!e.some(function(b){return b.equals(a)})}),g=e.filter(function(a){return!d.some(function(b){return b.equals(a)})});0<g.length&&this.unselectFeatures(g,c,a);0<f.length&&this.selectFeatures(f,c,a)}},this)}};M.handler.Features.prototype.RB=
function(a){if(!0===this.activated_){var b=this.getImpl();this.layers_.forEach(function(c){var d=b.getFeaturesByLayer(a,c),e=[].concat(la(this.prevHoverFeatures_[c.name]));if(0===d.length&&0<e.length)this.leaveFeatures_(e,c,a);else if(0<d.length){var f=d.filter(function(a){return a instanceof M.Feature&&!e.some(function(b){return b.equals(a)})}),g=e.filter(function(a){return!d.some(function(b){return b.equals(a)})});0<g.length&&this.leaveFeatures_(g,c,a);0<f.length&&this.hoverFeatures_(f,c,a)}},this)}};
M.handler.Features.prototype.selectFeatures=function(a,b,c){this.prevSelectedFeatures_[b.name]=this.prevSelectedFeatures_[b.name].concat(a);var d=b.getImpl();M.utils.isFunction(d.selectFeatures)&&d.selectFeatures(a,c.coord,c);b.fire(M.evt.SELECT_FEATURES,[a,c])};M.handler.Features.prototype.unselectFeatures=function(a,b,c){this.prevSelectedFeatures_[b.name]=this.prevSelectedFeatures_[b.name].filter(function(b){return!a.some(function(a){return a.equals(b)})});var d=b.getImpl();M.utils.isFunction(d.unselectFeatures)&&
d.unselectFeatures(a,c.coord);b.fire(M.evt.UNSELECT_FEATURES,[a,c.coord])};h=M.handler.Features.prototype;h.hoverFeatures_=function(a,b,c){this.prevHoverFeatures_[b.name]=this.prevHoverFeatures_[b.name].concat(a);b.fire(M.evt.HOVER_FEATURES,[a,c]);this.getImpl().addCursorPointer()};h.leaveFeatures_=function(a,b,c){this.prevHoverFeatures_[b.name]=this.prevHoverFeatures_[b.name].filter(function(b){return!a.some(function(a){return a.equals(b)})});b.fire(M.evt.LEAVE_FEATURES,[a,c.coord]);this.getImpl().removeCursorPointer()};
h.activate=function(){!1===this.activated_&&(this.activated_=!0,this.fire(M.evt.ACTIVATED))};h.deactivate=function(){!0===this.activated_&&(this.activated_=!1,this.fire(M.evt.DEACTIVATED))};h.addLayer=function(a){M.utils.includes(this.layers_,a)||(this.layers_.push(a),this.prevSelectedFeatures_[a.name]=[],this.prevHoverFeatures_[a.name]=[])};h.removeLayer=function(a){this.layers_.remove(a);this.prevSelectedFeatures_[a.name]=null;this.prevHoverFeatures_[a.name]=null;delete this.prevSelectedFeatures_[a.name];
delete this.prevHoverFeatures_[a.name]};h.destroy=function(){};M.Label={};M.Label=function(a,b,c){a=new M.impl.Label(a,b,c);M.facade.Base.call(this,a)};v(M.Label,M.facade.Base);h=M.Label.prototype;h.hide=function(){this.getImpl().hide()};h.show=function(a){this.getImpl().show(a)};h.getPopup=function(){return this.getImpl().getPopup()};h.getCoordinate=function(){return this.getImpl().getCoordinate()};h.setCoordinate=function(a){this.getImpl().setCoordinate(a)};M.Label.POPUP_TEMPLATE="label_popup.html";
M.parameter={};M.parameter.wmc={};M.parameter.wmc=function(a){var b=[];M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro");b=a;M.utils.isArray(b)||(b=[b]);b=b.map(function(a){var b={};b.type=M.layer.type.WMC;var c;M.utils.isString(a)?/^\w{3,7}\*[^\*]+\*[^\*]+$/.test(a)?(c=a.split(/\*/),c=c[2].trim()):/^\w{3,7}\*[^\*]$/.test(a)?(c=a.split(/\*/),c=c[1].trim()):/^[^\*]+\*[^\*]+$/.test(a)?(c=a.split(/\*/),c=c[1].trim()):/^[^\*]+$/.test(a)&&!M.utils.isUrl(a)&&(c=a):M.utils.isObject(a)?
c=M.utils.normalize(a.name):M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);M.utils.isUrl(c)&&(c=null);b.name=c;var f;M.utils.isString(a)?(c=a.match(/^([^\*]*\*)*(https?:\/\/[^\*]+)([^\*]*\*?)*$/i))&&2<c.length&&(f=c[2]):M.utils.isObject(a)?f=a.url:M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);b.url=f;var g;M.utils.isString(a)||(M.utils.isObject(a)?g=a.options:M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a));b.options=g;return b});
M.utils.isArray(a)||(b=b[0]);return b};M.parameter.wms={};M.parameter.wms=function(a){var b=[];M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro");b=a;M.utils.isArray(b)||(b=[b]);b=b.map(function(a){var b={};b.type=M.layer.type.WMS;var c;M.utils.isString(a)?/^WMS\*.+/i.test(a)?/^WMS\*[^\*]+\*[^\*]+\*[^\*]+/i.test(a)&&(c=a.split(/\*/),c=c[3].trim()):/^[^\*]*\*[^\*]+/.test(a)?(c=a.split(/\*/),c=c[1].trim()):/^[^\*]*/.test(a)&&(c=a.split(/\*/),c=c[0].trim()):M.utils.isObject(a)&&
!M.utils.isNullOrEmpty(a.name)?c=a.name.trim():M.utils.isObject(a)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);if(M.utils.isUrl(c)||/^(true|false)$/i.test(c))c=null;b.name=c;var f;M.utils.isString(a)?(c=a.match(/^([^\*]*\*)*(https?:\/\/[^\*]+)([^\*]*\*?)*$/i))&&2<c.length&&(f=c[2]):M.utils.isObject(a)?f=a.url:M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);b.url=f;var g;M.utils.isString(a)?/^WMS\*[^\*]/i.test(a)?(f=a.split(/\*/),g=f[1].trim()):/^[^\*]+\*[^\*]+\*[^\*]+/.test(a)&&
(f=a.split(/\*/),g=f[2].trim()):M.utils.isObject(a)&&!M.utils.isNullOrEmpty(a.legend)?g=a.legend.trim():M.utils.isObject(a)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);if(M.utils.isUrl(g)||/^(true|false)$/i.test(g))g=null;b.legend=g;var k;M.utils.isString(a)?/^WMS\*[^\*]+\*[^\*]+\*[^\*]+\*(true|false)/i.test(a)?(k=a.split(/\*/),k=k[4].trim()):/^WMS_FULL\*[^\*]+(\*(true|false))?/i.test(a)?k=!0:/^[^\*]+\*[^\*]+\*[^\*]+\*(true|false)/i.test(a)?(k=a.split(/\*/),k=k[3].trim()):
/^[^\*]+\*[^\*]+\*(true|false)/i.test(a)&&(k=a.split(/\*/),k=k[2].trim()):M.utils.isObject(a)?k=M.utils.normalize(a.transparent):M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);M.utils.isNullOrEmpty(k)||(k=/^1|(true)$/i.test(k));b.transparent=k;var l;M.utils.isString(a)?/^WMS\*[^\*]+\*[^\*]+\*[^\*]+\*(true|false)\*(true|false)$/i.test(a)?(l=a.split(/\*/),l=l[5].trim()):/^WMS\*[^\*]+\*[^\*]+\*[^\*]+\*(true|false)/i.test(a)?l=!0:/^WMS_FULL\*[^\*]+\*(true|false)/i.test(a)&&(l=
a.split(/\*/),l=l[2].trim()):M.utils.isObject(a)?l=M.utils.normalize(a.tiled):M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);M.utils.isNullOrEmpty(l)||(l=/^1|(true)$/i.test(l));b.tiled=l;var m;M.utils.isString(a)?/^WMS\*[^\*]+\*[^\*]+\*[^\*]+\*(true|false)\*(true|false)$/i.test(a)?(m=a.split(/\*/),m=m[5].trim()):/^WMS\*[^\*]+\*[^\*]+\*[^\*]+\*(true|false)/i.test(a)?m=!0:/^[^\*]+\*[^\*]+\*[^\*]+\*(true|false)\*(true|false)\*[^\*]+/i.test(a)?(m=a.split(/\*/),m=m[5].trim()):/^[^\*]+\*[^\*]+\*[^\*]+\*(true|false)\*[^\*]+/i.test(a)?
(m=a.split(/\*/),m=m[4].trim()):/^[^\*]+\*[^\*]+\*[^\*]+\*[^\*]+/i.test(a)?(m=a.split(/\*/),m=m[3].trim()):/^[^\*]+\*[^\*]+\*(true|false)\*(true|false)\*[^\*]+/i.test(a)&&(m=a.split(/\*/),m=m[4].trim()):M.utils.isObject(a)&&!M.utils.isNullOrEmpty(a.cql)?m=a.cql.trim():M.utils.isObject(a)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);if(/^(true|false)$/i.test(m)||/^\d\.\d\.\d$/.test(m))m=void 0;b.cql=m;var n;M.utils.isString(a)?/(\d\.\d\.\d)$/.test(a)&&(n=a.match(/\d\.\d\.\d$/)[0]):
M.utils.isObject(a)?n=a.version:M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);b.version=n;var q;M.utils.isString(a)||(M.utils.isObject(a)?q=a.options:M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a));b.options=q;return b});M.utils.isArray(a)||(b=b[0]);return b};M.parameter.wmts={};M.parameter.wmts=function(a){var b=[];M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro");b=a;M.utils.isArray(b)||(b=[b]);b=b.map(function(a){var b=
{};b.type=M.layer.type.WMTS;var c;M.utils.isString(a)?/^WMTS\*.+/i.test(a)?/^WMTS\*[^\*]+\*[^\*]+/i.test(a)&&(c=a.split(/\*/),c=c[2].trim()):/^[^\*]*\*[^\*]+/.test(a)&&(c=a.split(/\*/),c=c[1].trim()):M.utils.isObject(a)&&!M.utils.isNullOrEmpty(a.name)?c=a.name.trim():M.utils.isObject(a)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);if(M.utils.isUrl(c)||/^(true|false)$/i.test(c))c=null;b.name=c;var f;M.utils.isString(a)?(c=a.match(/^([^\*]*\*)*(https?:\/\/[^\*]+)([^\*]*\*?)*$/i))&&
2<c.length&&(f=c[2]):M.utils.isObject(a)?f=a.url:M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);b.url=f;var g;M.utils.isString(a)?/^WMTS\*[^\*]+\*[^\*]+\*[^\*]+/i.test(a)?(f=a.split(/\*/),g=f[3].trim()):/^[^\*]+\*[^\*]+\*[^\*]+/.test(a)&&(f=a.split(/\*/),g=f[2].trim()):M.utils.isObject(a)&&!M.utils.isNullOrEmpty(a.matrixSet)?g=a.matrixSet.trim():M.utils.isObject(a)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);if(M.utils.isUrl(g)||/^(true|false)$/i.test(g))g=
null;b.matrixSet=g;var k;M.utils.isString(a)?/^WMTS\*.+/i.test(a)?/^WMTS\*[^\*]+\*[^\*]+\*[^\*]*\*[^\*]+/i.test(a)&&(k=a.split(/\*/),k=k[4].trim()):/^[^\*]+\*[^\*]+\*[^\*]*\*[^\*]+/.test(a)&&(k=a.split(/\*/),k=k[3].trim()):M.utils.isObject(a)&&!M.utils.isNullOrEmpty(a.legend)?k=a.legend.trim():M.utils.isObject(a)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);if(M.utils.isUrl(k)||/^(true|false)$/i.test(k))k=null;b.legend=k;var l;M.utils.isString(a)||(M.utils.isObject(a)?l=
a.options:M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a));b.options=l;var m;M.utils.isString(a)?/^WMS\*[^\*]+\*[^\*]+\*[^\*]+\*(true|false)/i.test(a)?(a=a.split(/\*/),m=a[4].trim()):/^WMS_FULL\*[^\*]+(\*(true|false))?/i.test(a)?m=!0:/^[^\*]+\*[^\*]+\*[^\*]+\*(true|false)/i.test(a)?(a=a.split(/\*/),m=a[3].trim()):/^[^\*]+\*[^\*]+\*(true|false)/i.test(a)&&(a=a.split(/\*/),m=a[2].trim()):M.utils.isObject(a)?m=M.utils.normalize(a.transparent):M.exception("El par\u00e1metro no es de un tipo soportado: "+
typeof a);M.utils.isNullOrEmpty(m)||(m=/^1|(true)$/i.test(m));b.transparent=m;return b});M.utils.isArray(a)||(b=b[0]);return b};M.parameter.wfs={};M.parameter.wfs=function(a){var b=[];M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro");b=a;M.utils.isArray(b)||(b=[b]);b=b.map(function(b){var c={};c.type=M.layer.type.WFS;var e;M.utils.isString(b)?/^WFS(T)?\*.+/i.test(b)?/^WFS(T)?\*[^\*]*\*[^\*]+\*[^\*]+:[^\*]+/i.test(b)||/^[^\*]*\*[^\*]+:[^\*]+/.test(b)?(e=b.split(/\*/),
e=e[3].trim(),e=e.split(":")[1]):/^WFS(T)?\*[^\*]*\*[^\*]+[^\*]+/i.test(b)&&(e=b.split(/\*/),e=e[3].trim()):/^[^\*]*\*[^\*]+:[^\*]+/.test(b)&&(e=b.split(/\*/),e=e[1].trim(),e=e.split(":")[1]):M.utils.isObject(b)&&!M.utils.isNullOrEmpty(b.name)?e=b.name.trim():M.utils.isObject(b)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof b);if(M.utils.isUrl(e)||/^(true|false)$/i.test(e))e=null;c.name=e;var f;M.utils.isString(b)?(e=b.match(/^([^\*]*\*)*(https?:\/\/[^\*]+)([^\*]*\*?)*$/i))&&
2<e.length&&(f=e[2]):M.utils.isObject(b)?f=b.url:M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof b);c.url=f;var g;M.utils.isString(b)?/^WFS(T)?\*.+/i.test(b)?/^WFS(T)?\*[^\*]*\*[^\*]+\*[^\*]+:[^\*]+/i.test(b)&&(f=b.split(/\*/),f=f[3].trim(),g=f.split(":")[0]):/^[^\*]*\*[^\*]+:[^\*]+/.test(b)&&(f=b.split(/\*/),f=f[1].trim(),g=f.split(":")[0]):M.utils.isObject(b)&&!M.utils.isNullOrEmpty(b.namespace)?g=b.namespace.trim():M.utils.isObject(b)||M.exception("El par\u00e1metro no es de un tipo soportado: "+
typeof b);if(M.utils.isUrl(g)||/^(true|false)$/i.test(g))g=null;c.namespace=g;var k;M.utils.isString(b)?/^WFS(T)?\*[^\*]/i.test(b)?(k=b.split(/\*/),k=k[1].trim()):/^[^\*]+\*[^\*]+:[^\*]+\*[^\*]+/.test(b)&&(k=b.split(/\*/),k=k[2].trim()):M.utils.isObject(b)&&!M.utils.isNullOrEmpty(b.legend)?k=b.legend.trim():M.utils.isObject(b)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof b);if(M.utils.isUrl(k)||/^(true|false)$/i.test(k))k=null;c.legend=k;var l;M.utils.isString(b)?(/^[^\*]+\*[^\*]+:[^\*]+\*[^\*]+\*[^\*]+/i.test(b)&&
(l=b.split(/\*/),l=l[3].trim()),/^WFS(T)?\*[^\*]*\*[^\*]+\*[^\*]+:[^\*]+\*[^\*]+\*[^\*]*\*[^\*]*/i.test(b)&&(l=b.split(/\*/),l=l[6].trim())):M.utils.isObject(b)&&!M.utils.isNullOrEmpty(b.cql)||!M.utils.isNullOrEmpty(b.ecql)?l=b.cql?b.cql.trim():b.ecql.trim():M.utils.isObject(b)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof b);if(/^(true|false)$/i.test(l)||/^\d\.\d\.\d$/.test(l))l=void 0;c.cql=l;var m;M.utils.isString(b)?/^WFS(T)?\*.+/i.test(b)&&(/^WFS(T)?\*[^\*]*\*[^\*]+\*[^\*]+:[^\*]+\*[^\*]+/i.test(b)?
(m=b.split(/\*/),m=m[4].trim()):/^WFS(T)?\*[^\*]*\*[^\*][^\*]+\*[^\*]+/i.test(b)&&(m=b.split(/\*/),m=m[4].trim())):M.utils.isObject(b)&&!M.utils.isNullOrEmpty(b.geometry)?m=b.geometry.trim():M.utils.isObject(b)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof b);if(M.utils.isUrl(m)||/^(true|false)$/i.test(m))m=null;c.geometry=m;var n;M.utils.isString(b)?/^WFS(T)?\*.+/i.test(b)&&(/^WFS(T)?\*[^\*]*\*[^\*]+\*[^\*]+:[^\*]+\*[^\*]+\*(.\-?)+$/i.test(b)?(n=b.split(/\*/),n=n[5].trim().split("-")):
/^WFS(T)?\*[^\*]*\*[^\*]+\*[^\*]+\*[^\*]+\*(.\-?)+$/i.test(b)&&(n=b.split(/\*/),n=n[5].trim().split("-"))):M.utils.isObject(b)&&!M.utils.isNullOrEmpty(b.ids)?n=b.ids:M.utils.isObject(b)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof b);M.utils.isUrl(n)&&(n=null);M.utils.isNullOrEmpty(n)||M.utils.isArray(n)||(n=[n]);c.ids=n;var q;M.utils.isString(b)?/(\d\.\d\.\d)$/.test(b)&&(q=b.match(/\d\.\d\.\d$/)[0]):M.utils.isObject(b)?q=b.version:M.exception("El par\u00e1metro no es de un tipo soportado: "+
typeof b);c.version=q;var r;M.utils.isString(b)||(M.utils.isObject(b)?r=b.options:M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof b));c.options=r;c.outputFormat=a.outputFormat;return c});M.utils.isArray(a)||(b=b[0]);return b};M.parameter.kml={};M.parameter.kml=function(a){var b=[];M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro");b=a;M.utils.isArray(b)||(b=[b]);b=b.map(function(a){var b={};b.type=M.layer.type.KML;var c;M.utils.isString(a)?/^KML\*.+/i.test(a)?
/^KML\*[^\*]+\*[^\*]+(\*[^\*]+)?(\*(true|false))?$/i.test(a)&&(c=a.split(/\*/),c=c[1].trim()):/^[^\*]*\*[^\*]+/.test(a)?(c=a.split(/\*/),c=c[0].trim()):/^[^\*]*/.test(a)&&(c=a.split(/\*/),c=c[0].trim()):M.utils.isObject(a)&&!M.utils.isNullOrEmpty(a.name)?c=a.name.trim():M.utils.isObject(a)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);if(M.utils.isUrl(c)||/^(true|false)$/i.test(c))c=null;b.name=c;var f;M.utils.isString(a)?/^KML\*[^\*]+\*[^\*]+\*[^\*]+\.kml\*(true|false)$/i.test(a)?
(f=a.split(/\*/),f=f[2].concat(f[3])):(c=a.match(/^([^\*]*\*)*(https?:\/\/[^\*]+)(\*(true|false))?$/i))&&2<c.length&&(f=c[2]):M.utils.isObject(a)?f=a.url:M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);b.url=f;var g;M.utils.isString(a)?/^KML\*[^\*]+\*[^\*]+(\*[^\*]+)?(\*(true|false))?$/i.test(a)?(g=a.split(/\*/),g=g[g.length-1].trim()):/^[^\*]+\*[^\*]+\*(true|false)$/i.test(a)?(g=a.split(/\*/),g=g[2].trim()):/^[^\*]+\*(true|false)$/i.test(a)&&(g=a.split(/\*/),g=g[1].trim()):
M.utils.isObject(a)?g=M.utils.normalize(a.extract):M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);g=M.utils.isNullOrEmpty(g)?void 0:/^1|(true)$/i.test(g);b.extract=g;var k;M.utils.isString(a)||(M.utils.isObject(a)?k=a.options:M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a));b.options=k;return b});M.utils.isArray(a)||(b=b[0]);return b};M.parameter.osm={};M.parameter.osm=function(a){var b=[];M.utils.isNullOrEmpty(a)&&(a={type:M.layer.type.OSM,name:"osm"});
b=a;M.utils.isArray(b)||(b=[b]);b=b.map(function(a){var b={};b.type=M.layer.type.OSM;var c;M.utils.isObject(a)&&!M.utils.isNullOrEmpty(a.name)&&(c=a.name.trim());M.utils.isNullOrEmpty(c)||!M.utils.isUrl(c)&&!/^(true|false)$/i.test(c)||(c=null);b.name=c;var f;M.utils.isString(a)?/^OSM\*[^\*]+(\*[^\*]+)?/i.test(a)&&(c=a.split(/\*/),f=c[1].trim()):M.utils.isObject(a)&&!M.utils.isNullOrEmpty(a.transparent)?f=M.utils.normalize(a.transparent):M.utils.isObject(a)||M.exception("El par\u00e1metro no es de un tipo soportado: "+
typeof a);M.utils.isNullOrEmpty(f)||(f=/^1|(true)$/i.test(f));b.transparent=f;var g;M.utils.isString(a)?/^OSM\*([^\*]+)?\*[^\*]+/i.test(a)&&(a=a.split(/\*/),g=a[2].trim()):M.utils.isObject(a)&&!M.utils.isNullOrEmpty(a.legend)?g=a.legend.trim():M.utils.isObject(a)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);if(M.utils.isUrl(g)||/^(true|false)$/i.test(g))g=null;b.legend=g;return b});M.utils.isArray(a)||(b=b[0]);return b};M.parameter.mapbox={};M.parameter.mapbox=function(a){var b=
[];M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro");b=a;M.utils.isArray(b)||(b=[b]);b=b.map(function(a){var b={};b.type=M.layer.type.Mapbox;var c;M.utils.isString(a)?c=null:M.utils.isObject(a)&&!M.utils.isNullOrEmpty(a.url)?c=a.url.trim():M.utils.isObject(a)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);b.url=c;var f;M.utils.isString(a)?/^MAPBOX\*.+/i.test(a)?/^MAPBOX\*[^\*]+(\*[^\*]+){0,2}/i.test(a)&&(c=a.split(/\*/),f=c[1].trim()):
/^[^\*]+(\*[^\*]+){0,2}/.test(a)&&(c=a.split(/\*/),f=c[0].trim()):M.utils.isObject(a)&&!M.utils.isNullOrEmpty(a.name)?f=a.name.trim():M.utils.isObject(a)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);if(M.utils.isUrl(f)||/^(true|false)$/i.test(f))f=null;b.name=f;var g;M.utils.isString(a)?/^MAPBOX\*.+/i.test(a)?/^MAPBOX\*[^\*]+\*[^\*]+(\*[^\*]+)?/i.test(a)&&(g=a.split(/\*/),g=g[2].trim()):/^[^\*]+\*[^\*]+(\*[^\*]+)?/.test(a)&&(g=a.split(/\*/),g=g[1].trim()):M.utils.isObject(a)&&
!M.utils.isNullOrEmpty(a.transparent)?g=M.utils.normalize(a.transparent):M.utils.isObject(a)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);M.utils.isNullOrEmpty(g)||(g=/^1|(true)$/i.test(g));b.transparent=g;var k;M.utils.isString(a)?k=null:M.utils.isObject(a)&&!M.utils.isNullOrEmpty(a.accessToken)?k=a.accessToken.trim():M.utils.isObject(a)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);b.accessToken=k;var l;M.utils.isString(a)?/^MAPBOX\*.+/i.test(a)?
/^MAPBOX\*[^\*]+\*[^\*]+\*[^\*]+/i.test(a)&&(a=a.split(/\*/),l=a[3].trim()):/^[^\*]+\*[^\*]+\*[^\*]+/.test(a)&&(a=a.split(/\*/),l=a[2].trim()):M.utils.isObject(a)&&!M.utils.isNullOrEmpty(a.legend)?l=a.legend.trim():M.utils.isObject(a)||M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);if(M.utils.isUrl(l)||/^(true|false)$/i.test(l))l=null;b.legend=l;return b});M.utils.isArray(a)||(b=b[0]);return b};M.parameter.layer={};M.parameter.layer=function(a,b){var c=[];M.utils.isNullOrEmpty(a)&&
M.exception("No ha especificado ning\u00fan par\u00e1metro");c=a;M.utils.isArray(c)||(c=[c]);c=c.map(function(a){if(!(M.utils.isObject(a)&&a instanceof M.Layer)){var c;if(M.utils.isString(a))if(/^\s*osm\s*$/i.test(a))c=M.layer.type.OSM;else if(/^\s*mapbox\*.+$/i.test(a))c=M.layer.type.Mapbox;else{var d=a.match(/^(\w+)\*.+$/);d&&1<d.length&&(c=M.layer.type.parse(d[1]),M.utils.isUndefined(c)&&M.exception("No se reconoce el tipo de capa "+d[1]));M.utils.isUndefined(c)&&!M.utils.isNullOrEmpty(b)?c=b:
M.utils.isUndefined(c)&&M.exception("No se reconoce el tipo de capa "+c)}else M.utils.isObject(a)?M.utils.isNullOrEmpty(a.type)||(c=M.layer.type.parse(a.type),M.utils.isUndefined(c)&&M.exception("No se reconoce el tipo de capa "+c)):M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);M.utils.isNullOrEmpty(c)||M.utils.isNullOrEmpty(b)||c===b||M.exception("El tipo de la capa (".concat(c).concat(") no era el esperado (").concat(b).concat(")"));M.utils.isNullOrEmpty(c)&&!M.utils.isNullOrEmpty(b)&&
(c=b);c=M.utils.normalize(c);a=M.utils.isFunction(M.parameter[c])?M.parameter[c](a):a}return a});M.utils.isArray(a)||(c=c[0]);return c};M.Layer={};M.layer={};M.Layer=function(a,b){M.facade.Base.call(this,b);a=M.parameter.layer(a);this.type=a.type;this.url=a.url;this.name=a.name;this.transparent=a.transparent;this.zindex_=null};v(M.Layer,M.facade.Base);Object.defineProperty(M.Layer.prototype,"options",{get:function(){return this.getImpl().options},set:function(a){this.getImpl().options=a}});Object.defineProperty(M.Layer.prototype,
"url",{get:function(){return this.getImpl().url},set:function(a){this.getImpl().url=a}});Object.defineProperty(M.Layer.prototype,"name",{get:function(){return this.getImpl().name},set:function(a){this.getImpl().name=a}});Object.defineProperty(M.Layer.prototype,"transparent",{get:function(){return this.getImpl().transparent},set:function(a){M.utils.isNullOrEmpty(a)?this.getImpl().transparent=!0:M.utils.isString(a)?this.getImpl().transparent="true"===M.utils.normalize(a):this.getImpl().transparent=
a}});Object.defineProperty(M.Layer.prototype,"displayInLayerSwitcher",{get:function(){return this.getImpl().displayInLayerSwitcher},set:function(a){M.utils.isNullOrEmpty(a)?this.getImpl().displayInLayerSwitcher=!0:M.utils.isString(a)?this.getImpl().displayInLayerSwitcher="true"===M.utils.normalize(a):this.getImpl().displayInLayerSwitcher=a}});M.Layer.prototype.isVisible=function(){M.utils.isUndefined(this.getImpl().isVisible)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo isVisible");
return this.getImpl().isVisible()};M.Layer.prototype.isQueryable=function(){M.utils.isUndefined(this.getImpl().isQueryable)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo isQueryable");return this.getImpl().isQueryable()};M.Layer.prototype.setVisible=function(a){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro de visibilidad");M.utils.isString(a)||M.utils.isBoolean(a)||M.exception("No ha especificado ning\u00fan par\u00e1metro de visibilidad");
M.utils.isUndefined(this.getImpl().setVisible)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo setVisible");a=/^1|(true)$/i.test(a);this.getImpl().setVisible(a)};M.Layer.prototype.inRange=function(){M.utils.isUndefined(this.getImpl().inRange)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo inRange");return this.getImpl().inRange()};M.Layer.prototype.getLegendURL=function(){return this.getImpl().getLegendURL()};M.Layer.prototype.setLegendURL=function(a){M.utils.isNullOrEmpty(a)&&
(a=M.utils.concatUrlPaths([M.config.THEME_URL,M.Layer.LEGEND_DEFAULT]));this.getImpl().setLegendURL(a)};M.Layer.prototype.getZIndex=function(){return this.zindex_};M.Layer.prototype.setZIndex=function(a){this.zindex_=a;this.getImpl().setZIndex(a)};M.Layer.prototype.getOpacity=function(){return this.getImpl().getOpacity()};M.Layer.prototype.setOpacity=function(a){this.getImpl().setOpacity(a)};M.Layer.prototype.refresh=function(){!M.utils.isUndefined(this.getImpl().refresh)&&M.utils.isFunction(this.getImpl().refresh)&&
this.getImpl().refresh()};M.Layer.prototype.Pz=function(){this.name=M.utils.generateRandom("layer_","_".concat(this.type))};M.Layer.LEGEND_DEFAULT="/img/legend-default.png";M.Layer.LEGEND_ERROR="/img/legend-error.png";M.layer.Vector={};M.layer.Vector=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?{}:b;c=void 0===c?new M.impl.layer.Vector(b):c;var d=this;M.utils.isUndefined(M.impl.layer.Vector)&&M.exception("La implementaci\u00f3n usada no puede crear capas Vector");this.Ze=this.style_=null;M.Layer.call(this,
a,c);this.style_=b.style;this.setStyle(this.style_);c.on(M.evt.LOAD,function(a){return d.fire(M.evt.LOAD,[a])})};v(M.layer.Vector,M.Layer);Object.defineProperty(M.layer.Vector.prototype,"type",{get:function(){return M.layer.type.Vector},set:function(a){M.utils.isUndefined(a)||M.utils.isNullOrEmpty(a)||a===M.layer.type.Vector||M.exception("El tipo de capa debe ser '".concat(M.layer.type.Vector).concat("' pero se ha especificado '").concat(a).concat("'"))}});h=M.layer.Vector.prototype;h.addFeatures=
function(a,b){b=void 0===b?!1:b;M.utils.isNullOrEmpty(a)||(M.utils.isArray(a)||(a=[a]),this.getImpl().addFeatures(a,b))};h.getFeatures=function(a){M.utils.isNullOrEmpty(this.getFilter())&&(a=!0);return this.getImpl().getFeatures(a,this.Ze)};h.getFeatureById=function(a){var b=null;M.utils.isNullOrEmpty(a)?M.dialog.error("No se ha indicado un ID para obtener el feature"):b=this.getImpl().getFeatureById(a);return b};h.removeFeatures=function(a){M.utils.isArray(a)||(a=[a]);this.getImpl().removeFeatures(a)};
h.clear=function(){this.removeFilter();this.removeFeatures(this.getFeatures(!0))};h.refresh=function(){this.getImpl().refresh(!0);this.redraw()};h.redraw=function(){this.getImpl().redraw()};h.setFilter=function(a){M.utils.isNullOrEmpty(a)||a instanceof M.Filter?(this.Ze=a,a=this.getStyle(),a instanceof M.style.Cluster&&a.getImpl().deactivateChangeEvent(),this.redraw(),a instanceof M.style.Cluster&&(a.getImpl().activateChangeEvent(),a.refresh())):M.dialog.error("El filtro indicado no es correcto")};
h.getFilter=function(){return this.Ze};h.getFeaturesExtent=function(a){M.utils.isNullOrEmpty(this.getFilter())&&(a=!0);return this.getImpl().getFeaturesExtent(a,this.Ze)};h.removeFilter=function(){this.setFilter(null)};h.equals=function(a){var b=!1;a instanceof M.layer.Vector&&(b=this.name===a.name);return b};h.setStyle=function(a,b){function c(a){return function(){M.utils.isNullOrEmpty(a)&&(a=d instanceof M.layer.WFS?M.utils.generateStyleLayer(M.layer.WFS.DEFAULT_OPTIONS_STYLE,d):M.utils.generateStyleLayer(M.layer.GeoJSON.DEFAULT_OPTIONS_STYLE,
d));var c=a instanceof M.style.Cluster,f=[M.geom.geojson.type.POINT,M.geom.geojson.type.MULTI_POINT].includes(M.utils.getGeometryType(d));a instanceof M.Style&&(!c||f)&&(M.utils.isNullOrEmpty(d.Lc)||d.Lc.unapply(d),a.apply(d,b,e),d.style_=a,d.fire(M.evt.CHANGE_STYLE,[a,d]));M.utils.isNullOrEmpty(d.getImpl().getMap())||(c=d.getImpl().getMap().getControls("layerswitcher")[0],M.utils.isNullOrEmpty(c)||c.render())}}b=void 0===b?!1:b;var d=this;this.Lc=this.style_;var e=!1;null===a&&(e=!0);if(this.getImpl().isLoaded())c(a).bind(this)();
else this.once(M.evt.LOAD,c(a),this)};h.getStyle=function(){return this.style_};h.clearStyle=function(){this.setStyle(null);this.getFeatures().forEach(function(a){return a.clearStyle()})};M.layer.Vector.prototype.getLegendURL=function(){var a=this.getImpl().getLegendURL();-1===a.indexOf(M.Layer.LEGEND_DEFAULT)||-1!==a.indexOf(M.Layer.LEGEND_ERROR)||M.utils.isNullOrEmpty(this.style_)||(a=this.style_.toImage());return a};M.layer.GeoJSON={};M.layer.GeoJSON=function(a,b){b=void 0===b?{}:b;M.utils.isUndefined(M.impl.layer.GeoJSON)&&
M.exception("La implementaci\u00f3n usada no puede crear capas GeoJSON");M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro");var c=new M.impl.layer.GeoJSON(a,b);M.layer.Vector.call(this,this,b,c);M.utils.isString(a)?this.url=a:M.utils.isArray(a)?this.source=a:(this.url=a.url,this.name=a.name,this.source=a.source,this.extract=a.extract,M.utils.isNullOrEmpty(a.crs)||(M.utils.isNullOrEmpty(this.source)&&(this.source={type:"FeatureCollection",features:[]}),this.source.crs=
{type:"EPSG",properties:{code:a.crs}}));M.utils.isNullOrEmpty(this.extract)&&(this.extract=!0);this.options=b};v(M.layer.GeoJSON,M.layer.Vector);Object.defineProperty(M.layer.GeoJSON.prototype,"type",{get:function(){return M.layer.type.GeoJSON},set:function(a){M.utils.isUndefined(a)||M.utils.isNullOrEmpty(a)||a===M.layer.type.GeoJSON||M.exception("El tipo de capa debe ser '".concat(M.layer.type.GeoJSON).concat("' pero se ha especificado '").concat(a).concat("'"))}});Object.defineProperty(M.layer.GeoJSON.prototype,
"source",{get:function(){return this.getImpl().source},set:function(a){this.getImpl().source=a}});Object.defineProperty(M.layer.GeoJSON.prototype,"extract",{get:function(){return this.getImpl().extract},set:function(a){M.utils.isNullOrEmpty(a)?this.getImpl().extract=!0:M.utils.isString(a)?this.getImpl().extract="true"===M.utils.normalize(a):this.getImpl().extract=a}});M.layer.GeoJSON.prototype.equals=function(a){var b=!1;a instanceof M.layer.GeoJSON&&(b=(b=this.name===a.name)&&this.extract===a.extract);
return b};M.layer.GeoJSON.prototype.setSource=function(a){this.source=a;this.getImpl().refresh(a)};M.layer.GeoJSON.prototype.setStyle=function(a,b){function c(){M.utils.isNullOrEmpty(a)&&(a=M.utils.generateStyleLayer(M.layer.GeoJSON.DEFAULT_OPTIONS_STYLE,this));var c=a instanceof M.style.Cluster,f=[M.geom.geojson.type.POINT,M.geom.geojson.type.MULTI_POINT].includes(M.utils.getGeometryType(this));a instanceof M.Style&&(!c||f)&&(M.utils.isNullOrEmpty(this.style_)||this.style_.unapply(this),a.apply(this,
b,d),this.style_=a);M.utils.isNullOrEmpty(this.getImpl().getMap())||(c=this.getImpl().getMap().getControls("layerswitcher")[0],M.utils.isNullOrEmpty(c)||c.render());this.fire(M.evt.CHANGE_STYLE,[a,this])}b=void 0===b?!1:b;var d=!1;null===a&&(d=!0);if(this.getImpl().isLoaded())c.bind(this)();else this.once(M.evt.LOAD,c,this)};M.layer.GeoJSON.POPUP_TEMPLATE="geojson_popup.html";M.layer.GeoJSON.DEFAULT_OPTIONS_STYLE={fill:{color:"rgba(255, 255, 255, 0.4)",opacity:.4},stroke:{color:"#3399CC",width:1.5},
radius:5};M.layer.KML={};M.layer.KML=function(a,b){b=void 0===b?{}:b;M.utils.isUndefined(M.impl.layer.KML)&&M.exception("La implementaci\u00f3n usada no puede crear capas KML");M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro");var c=new M.impl.layer.KML(b);a=M.parameter.layer(a,M.layer.type.KML);M.layer.Vector.call(this,a,b,c);this.extract=a.extract;this.options=b};v(M.layer.KML,M.layer.Vector);Object.defineProperty(M.layer.KML.prototype,"type",{get:function(){return M.layer.type.KML},
set:function(a){M.utils.isUndefined(a)||M.utils.isNullOrEmpty(a)||a===M.layer.type.KML||M.exception("El tipo de capa debe ser '".concat(M.layer.type.KML).concat("' pero se ha especificado '").concat(a).concat("'"))}});Object.defineProperty(M.layer.KML.prototype,"extract",{get:function(){return this.getImpl().extract},set:function(a){M.utils.isNullOrEmpty(a)?this.getImpl().extract=!0:M.utils.isString(a)?this.getImpl().extract="true"===M.utils.normalize(a):this.getImpl().extract=a}});Object.defineProperty(M.layer.KML.prototype,
"options",{get:function(){return this.getImpl().options},set:function(a){this.getImpl().options=a}});M.layer.KML.prototype.equals=function(a){var b=!1;a instanceof M.layer.KML&&(b=(b=(b=this.url===a.url)&&this.name===a.name)&&this.extract===a.extract);return b};M.layer.KML.POPUP_TEMPLATE="kml_popup.html";M.layer.type={};M.layer.type.WMC="WMC";M.layer.type.KML="KML";M.layer.type.WMS="WMS";M.layer.type.WFS="WFS";M.layer.type.WMTS="WMTS";M.layer.type.MBtiles="MBtiles";M.layer.type.OSM="OSM";M.layer.type.Mapbox=
"Mapbox";M.layer.type.GeoJSON="GeoJSON";M.layer.type.Vector="Vector";M.layer.type.parse=function(a){var b=M.utils.normalize(a,!0),b="WMS_FULL"===b?M.layer.type.WMS:"WFST"===b?M.layer.type.WFS:Object.keys(M.layer.type).find(function(a){a=M.layer.type[a];return M.utils.isString(a)&&M.utils.normalize(a,!0)===b});return M.layer.type[b]};M.layer.type.qj=function(a){return-1!==[M.layer.type.WMC,M.layer.type.KML,M.layer.type.WMS,M.layer.type.WFS,M.layer.type.WMTS,M.layer.type.MBtiles].indexOf(M.layer.type.parse(a))};
M.layer.Mapbox={};M.layer.Mapbox=function(a,b){M.utils.isUndefined(M.impl.layer.Mapbox)&&M.exception("La implementaci\u00f3n usada no puede crear capas Mapbox");M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro");b=b||{};var c=new M.impl.layer.Mapbox(a,b);a=M.parameter.layer(a,M.layer.type.Mapbox);M.utils.isNullOrEmpty(a.name)&&M.exception("No ha especificado ning\u00fan nombre");M.Layer.call(this,a,c);this.name=a.name;this.legend=a.legend;M.utils.isNullOrEmpty(a.legend)&&
(this.legend=a.name);this.transparent=a.transparent;this.accessToken=a.accessToken;this.options=b};v(M.layer.Mapbox,M.Layer);Object.defineProperty(M.layer.Mapbox.prototype,"url",{get:function(){return this.getImpl().url},set:function(a){M.utils.isNullOrEmpty(a)?this.getImpl().url=M.config.MAPBOX_URL:this.getImpl().url=a}});Object.defineProperty(M.layer.Mapbox.prototype,"transparent",{get:function(){return this.getImpl().transparent},set:function(a){M.utils.isNullOrEmpty(a)?this.getImpl().transparent=
!1:this.getImpl().transparent=a}});Object.defineProperty(M.layer.Mapbox.prototype,"accessToken",{get:function(){return this.getImpl().accessToken},set:function(a){M.utils.isNullOrEmpty(a)?this.getImpl().accessToken=M.config.MAPBOX_TOKEN_VALUE:this.getImpl().accessToken=a}});Object.defineProperty(M.layer.Mapbox.prototype,"type",{get:function(){return M.layer.type.Mapbox},set:function(a){M.utils.isUndefined(a)||M.utils.isNullOrEmpty(a)||a===M.layer.type.Mapbox||M.exception("El tipo de capa debe ser '".concat(M.layer.type.Mapbox).concat("' pero se ha especificado '").concat(a).concat("'"))}});
M.layer.Mapbox.prototype.equals=function(a){var b=!1;a instanceof M.layer.Mapbox&&(b=(b=(b=this.url===a.url)&&this.name===a.name)&&this.options===a.options);return b};M.layer.OSM={};M.layer.OSM=function(a,b){M.utils.isUndefined(M.impl.layer.OSM)&&M.exception("La implementaci\u00f3n usada no puede crear capas OSM");M.utils.isNullOrEmpty(a)&&(a="OSM");b=b||{};var c=new M.impl.layer.OSM(a,b);a=M.parameter.layer(a,M.layer.type.OSM);M.utils.isNullOrEmpty(a.name)&&(a.name="osm");M.Layer.call(this,a,c);
this.name=a.name;this.legend=a.legend;M.utils.isNullOrEmpty(a.legend)&&(this.legend="OpenStreetMap");this.transparent=a.transparent;this.options=b};v(M.layer.OSM,M.Layer);Object.defineProperty(M.layer.OSM.prototype,"transparent",{get:function(){return this.getImpl().transparent},set:function(a){M.utils.isNullOrEmpty(a)?this.getImpl().transparent=!1:this.getImpl().transparent=a}});Object.defineProperty(M.layer.OSM.prototype,"type",{get:function(){return M.layer.type.OSM},set:function(a){M.utils.isUndefined(a)||
M.utils.isNullOrEmpty(a)||a===M.layer.type.OSM||M.exception("El tipo de capa debe ser '".concat(M.layer.type.OSM).concat("' pero se ha especificado '").concat(a).concat("'"))}});M.layer.OSM.prototype.equals=function(a){var b=!1;a instanceof M.layer.OSM&&(b=(b=(b=this.url===a.url)&&this.name===a.name)&&this.options===a.options);return b};M.layer.WFS={};M.layer.WFS=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?new M.impl.layer.WFS(b):c;M.utils.isUndefined(M.impl.layer.WFS)&&M.exception("La implementaci\u00f3n usada no puede crear capas WFS");
M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro");a=M.parameter.layer(a,M.layer.type.WFS);M.layer.Vector.call(this,a,b,c);this.namespace=a.namespace;this.legend=a.legend;this.cql=a.cql;this.geometry=a.geometry;this.ids=a.ids;this.version=a.version;this.options=b};v(M.layer.WFS,M.layer.Vector);Object.defineProperty(M.layer.WFS.prototype,"type",{get:function(){return M.layer.type.WFS},set:function(a){M.utils.isUndefined(a)||M.utils.isNullOrEmpty(a)||a===M.layer.type.WFS||
M.exception("El tipo de capa debe ser '".concat(M.layer.type.WFS).concat("' pero se ha especificado '").concat(a).concat("'"))}});Object.defineProperty(M.layer.WFS.prototype,"namespace",{get:function(){return this.getImpl().namespace},set:function(a){this.getImpl().namespace=a}});Object.defineProperty(M.layer.WFS.prototype,"legend",{get:function(){return this.getImpl().legend},set:function(a){M.utils.isNullOrEmpty(a)?this.getImpl().legend=this.name:this.getImpl().legend=a}});Object.defineProperty(M.layer.WFS.prototype,
"cql",{get:function(){return this.getImpl().cql},set:function(a){this.getImpl().cql=a}});Object.defineProperty(M.layer.WFS.prototype,"geometry",{get:function(){return this.getImpl().geometry},set:function(a){if(!M.utils.isNullOrEmpty(a)){var b=M.geom.parse(a);M.utils.isNullOrEmpty(b)&&M.exception("El tipo de capa WFS \x3cb\x3e"+a+"\x3c/b\x3e no se reconoce. Los tipos disponibles son: POINT, LINE, POLYGON, MPOINT, MLINE, MPOLYGON");this.getImpl().geometry=b}}});Object.defineProperty(M.layer.WFS.prototype,
"ids",{get:function(){return this.getImpl().ids},set:function(a){M.utils.isNullOrEmpty(a)?this.getImpl().ids=this.ids:this.getImpl().ids=a}});Object.defineProperty(M.layer.WFS.prototype,"version",{get:function(){return this.getImpl().version},set:function(a){M.utils.isNullOrEmpty(a)?this.getImpl().version="1.0.0":this.getImpl().version=a}});M.layer.WFS.prototype.setCQL=function(a){this.getImpl().getDescribeFeatureType().then(function(b){M.utils.isNullOrEmpty(a)||(a=a.replace(/{{geometryName}}/g,b.geometryName));
this.getImpl().cql!==a&&this.getImpl().setCQL(a)}.bind(this))};M.layer.WFS.prototype.equals=function(a){var b=!1;a instanceof M.layer.WFS&&(b=(b=(b=(b=(b=(b=this.url===a.url)&&this.namespace===a.namespace)&&this.name===a.name)&&this.ids===a.ids)&&this.cql===a.cql)&&this.version===a.version);return b};M.layer.WFS.DEFAULT_OPTIONS_STYLE={fill:{color:"rgba(103, 175, 19, 0.2)",opacity:.4},stroke:{color:"#67af13",width:1},radius:5};M.layer.WMC={};M.layer.WMC=function(a,b){var c=this;M.utils.isUndefined(M.impl.layer.WMC)&&
M.exception("La implementaci\u00f3n usada no puede crear capas WMC");M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro");b=b||{};a=M.parameter.layer(a,M.layer.type.WMC);var d=new M.impl.layer.WMC(b);M.Layer.call(this,a,d);this.options=b;!M.utils.isNullOrEmpty(this.url)&&M.utils.isNullOrEmpty(this.name)?this.Pz():M.utils.isNullOrEmpty(this.url)&&!M.utils.isNullOrEmpty(this.name)&&(b=M.config.predefinedWMC.predefinedNames.indexOf(this.name),-1===b?M.exception("El contexto predefinido '"+
this.name+"' no existe"):(this.url=M.config.predefinedWMC.urls[b],this.name=M.config.predefinedWMC.names[b]));this.loaded_=!1;this.once(M.evt.LOAD,function(){return c.loaded_=!0})};v(M.layer.WMC,M.Layer);Object.defineProperty(M.layer.WMC.prototype,"selected",{get:function(){return this.getImpl().selected},set:function(a){this.getImpl().selected=a}});Object.defineProperty(M.layer.WMC.prototype,"type",{get:function(){return M.layer.type.WMC},set:function(a){M.utils.isUndefined(a)||M.utils.isNullOrEmpty(a)||
a===M.layer.type.WMC||M.exception("El tipo de capa debe ser '".concat(M.layer.type.WMC).concat("' pero se ha especificado '").concat(a).concat("'"))}});Object.defineProperty(M.layer.WMC.prototype,"layers",{get:function(){return this.getImpl().layers},set:function(a){this.getImpl().layers=a}});Object.defineProperty(M.layer.WMC.prototype,"projection",{get:function(){return this.getImpl().projection},set:function(a){this.getImpl().projection=a}});Object.defineProperty(M.layer.WMC.prototype,"maxExtent",
{get:function(){return this.getImpl().maxExtent},set:function(a){this.getImpl().maxExtent=a}});Object.defineProperty(M.layer.WMC.prototype,"options",{get:function(){return this.getImpl().options},set:function(a){this.getImpl().options=a}});h=M.layer.WMC.prototype;h.select=function(){M.utils.isUndefined(this.getImpl().select)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo select");this.getImpl().select()};h.unselect=function(){M.utils.isUndefined(this.getImpl().unselect)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo unselect");
this.getImpl().unselect()};h.equals=function(a){var b=!1;a instanceof M.layer.WMC&&(b=(b=this.url===a.url)&&this.name===a.name);return b};h.isLoaded=function(){return this.loaded_};h.setLoaded=function(a){this.loaded_=a};M.layer.WMS={};M.layer.WMS=function(a,b,c){M.utils.isUndefined(M.impl.layer.WMS)&&M.exception("La implementaci\u00f3n usada no puede crear capas WMS");M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro");b=b||{};M.utils.isNullOrEmpty(c)&&(c=new M.impl.layer.WMS(b));
a=M.parameter.layer(a,M.layer.type.WMS);M.Layer.call(this,a,c);this.legend=a.legend;this.cql=a.cql;this.version=a.version;M.utils.isNullOrEmpty(a.tiled)||(this.tiled=a.tiled);this.transparent=a.transparent;this.options=b};v(M.layer.WMS,M.Layer);Object.defineProperty(M.layer.WMS.prototype,"url",{get:function(){return this.getImpl().url},set:function(a){this.getImpl().url=a;this.Sr()}});Object.defineProperty(M.layer.WMS.prototype,"name",{get:function(){return this.getImpl().name},set:function(a){this.getImpl().name=
a;this.Sr()}});Object.defineProperty(M.layer.WMS.prototype,"type",{get:function(){return M.layer.type.WMS},set:function(a){M.utils.isUndefined(a)||M.utils.isNullOrEmpty(a)||a===M.layer.type.WMS||M.exception("El tipo de capa debe ser '".concat(M.layer.type.WMS).concat("' pero se ha especificado '").concat(a).concat("'"))}});Object.defineProperty(M.layer.WMS.prototype,"legend",{get:function(){return this.getImpl().legend},set:function(a){M.utils.isNullOrEmpty(a)?this.getImpl().legend=this.name:this.getImpl().legend=
a}});Object.defineProperty(M.layer.WMS.prototype,"tiled",{get:function(){return this.getImpl().tiled},set:function(a){M.utils.isNullOrEmpty(a)?this.getImpl().tiled=!0:M.utils.isString(a)?this.getImpl().tiled="true"===M.utils.normalize(a):this.getImpl().tiled=a}});Object.defineProperty(M.layer.WMS.prototype,"cql",{get:function(){return this.getImpl().cql},set:function(a){this.getImpl().cql=a}});Object.defineProperty(M.layer.WMS.prototype,"version",{get:function(){return this.getImpl().version},set:function(a){M.utils.isNullOrEmpty(a)?
this.getImpl().version="1.1.0":this.getImpl().version=a}});Object.defineProperty(M.layer.WMS.prototype,"options",{get:function(){return this.getImpl().options},set:function(a){this.getImpl().options=a}});h=M.layer.WMS.prototype;h.getNoChacheUrl=function(){return this.py};h.getNoChacheName=function(){return this.oy};h.updateMinMaxResolution=function(a){return this.getImpl().updateMinMaxResolution(a)};h.Sr=function(){var a=M.config.tileMappgins.tiledNames.indexOf(this.name);-1!==a&&M.utils.sameUrl(M.config.tileMappgins.tiledUrls[a],
this.url)&&(this.py=M.config.tileMappgins.urls[a],this.oy=M.config.tileMappgins.names[a])};h.equals=function(a){var b=!1;a instanceof M.layer.WMS&&(b=(b=(b=(b=this.url===a.url)&&this.name===a.name)&&this.cql===a.cql)&&this.version===a.version);return b};M.layer.WMTS={};M.layer.WMTS=function(a,b){M.utils.isUndefined(M.impl.layer.WMTS)&&M.exception("La implementaci\u00f3n usada no puede crear capas WMTS");M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro");b=b||{};
var c=new M.impl.layer.WMTS(b);a=M.parameter.layer(a,M.layer.type.WMTS);M.Layer.call(this,a,c);this.matrixSet=a.matrixSet;this.legend=a.legend;this.transparent=a.transparent;this.options=b};v(M.layer.WMTS,M.Layer);Object.defineProperty(M.layer.WMTS.prototype,"type",{get:function(){return M.layer.type.WMTS},set:function(a){M.utils.isUndefined(a)||M.utils.isNullOrEmpty(a)||a===M.layer.type.WMTS||M.exception("El tipo de capa debe ser '".concat(M.layer.type.WMTS).concat("' pero se ha especificado '").concat(a).concat("'"))}});
Object.defineProperty(M.layer.WMTS.prototype,"matrixSet",{get:function(){return this.getImpl().matrixSet},set:function(a){this.getImpl().matrixSet=a}});Object.defineProperty(M.layer.WMTS.prototype,"legend",{get:function(){return this.getImpl().legend},set:function(a){M.utils.isNullOrEmpty(a)?this.getImpl().legend=this.name:this.getImpl().legend=a}});Object.defineProperty(M.layer.WMTS.prototype,"options",{get:function(){return this.getImpl().options},set:function(a){this.getImpl().options=a}});M.layer.WMTS.prototype.equals=
function(a){var b=!1;a instanceof M.layer.WMS&&(b=(b=(b=this.url===a.url)&&this.name===a.name)&&this.matrixSet===a.matrixSet);return b};var xb;a:{var yb=qa.navigator;if(yb){var zb=yb.userAgent;if(zb){xb=zb;break a}}xb=""}function Ab(a){return-1!=xb.indexOf(a)}var Bb={is:function(a,b){return a===b?0!==a||1/a===1/b:a!==a&&b!==b},forEach:function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},filter:function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d},map:function(a,b,c){var d=
{},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d},some:function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1},every:function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return!1;return!0},lh:function(a){var b=0,c;for(c in a)b++;return b},VH:function(a){for(var b in a)return b},WH:function(a){for(var b in a)return a[b]},contains:function(a,b){return Bb.Wy(a,b)},getValues:function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},getKeys:function(a){var b=[],c=0,d;for(d in a)b[c++]=
d;return b},rI:function(a,b){for(var c=va(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],ra(a));c++);return a},jc:function(a,b){return null!==a&&b in a},Wy:function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},Az:function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d},SH:function(a,b,c){return(b=Bb.Az(a,b,c))&&a[b]},isEmpty:function(a){for(var b in a)return!1;return!0},clear:function(a){for(var b in a)delete a[b]},remove:function(a,b){var c;(c=b in a)&&delete a[b];return c},add:function(a,
b,c){if(null!==a&&b in a)throw Error('The object already contains the key "'+b+'"');Bb.set(a,b,c)},get:function(a,b,c){return null!==a&&b in a?a[b]:c},set:function(a,b,c){a[b]=c},PD:function(a,b,c){return b in a?a[b]:a[b]=c},jJ:function(a,b,c){if(b in a)return a[b];c=c();return a[b]=c},equals:function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(c in b)if(!(c in a))return!1;return!0},clone:function(a){var b={},c;for(c in a)b[c]=a[c];return b},KE:function(a){var b=ta(a);if("object"==
b||"array"==b){if("function"==ta(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=Bb.KE(a[c]);return b}return a},yJ:function(a){var b={},c;for(c in a)b[a[c]]=c;return b},Cr:"constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),extend:function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Bb.Cr.length;f++)c=Bb.Cr[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},create:function(a){var b=
arguments.length;if(1==b&&ua(arguments[0]))return Bb.create.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c},Wk:function(a){var b=arguments.length;if(1==b&&ua(arguments[0]))return Bb.Wk.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c},JH:function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b},EI:function(a){return!!Object.isFrozen&&
Object.isFrozen(a)},UH:function(a,b){if(!a)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return Bb.getKeys(a);for(var c={};a&&(a!==Object.prototype||b);){for(var d=Object.getOwnPropertyNames(a),e=0;e<d.length;e++)c[d[e]]=!0;a=Object.getPrototypeOf(a)}return Bb.getKeys(c)}};function Cb(){Ab("iPod")}function Db(){return Ab("iPhone")&&!Ab("iPod")&&!Ab("iPad")}function Eb(a){Eb[" "](a);return a}Eb[" "]=sa;function Fb(a,b){try{return Eb(a[b]),!0}catch(c){}return!1}function Gb(a,b){var c=
Ib;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)}var Jb=Ab("Opera"),Kb=Ab("Trident")||Ab("MSIE"),Lb=Ab("Edge"),Mb=Ab("Gecko")&&!(-1!=xb.toLowerCase().indexOf("webkit")&&!Ab("Edge"))&&!(Ab("Trident")||Ab("MSIE"))&&!Ab("Edge"),Nb=-1!=xb.toLowerCase().indexOf("webkit")&&!Ab("Edge");Nb&&Ab("Mobile");Ab("Macintosh");Ab("Windows");Ab("Linux")||Ab("CrOS");var Ob=qa.navigator||null;Ob&&(Ob.appVersion||"").indexOf("X11");Ab("Android");Db();Ab("iPad");Cb();Db()||Ab("iPad")||Cb();function Rb(){var a=
qa.document;return a?a.documentMode:void 0}var Sb;a:{var Tb="",Ub=function(){var a=xb;if(Mb)return/rv:([^\);]+)(\)|;)/.exec(a);if(Lb)return/Edge\/([\d\.]+)/.exec(a);if(Kb)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Nb)return/WebKit\/(\S+)/.exec(a);if(Jb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Ub&&(Tb=Ub?Ub[1]:"");if(Kb){var Vb=Rb();if(null!=Vb&&Vb>parseFloat(Tb)){Sb=String(Vb);break a}}Sb=Tb}var Ib={};function Wb(a){return Gb(a,function(){for(var b=0,c=Ka(String(Sb)).split("."),d=Ka(String(a)).split("."),
e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",k=d[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(0==g[0].length&&0==k[0].length)break;b=Ta(0==g[1].length?0:parseInt(g[1],10),0==k[1].length?0:parseInt(k[1],10))||Ta(0==g[2].length,0==k[2].length)||Ta(g[2],k[2]);g=g[3];k=k[3]}while(0==b)}return 0<=b})}var Xb;var Yb=qa.document;Xb=Yb&&Kb?Rb()||("CSS1Compat"==Yb.compatMode?parseInt(Sb,10):5):void 0;var Zb=!Kb||9<=Number(Xb);!Mb&&!Kb||
Kb&&9<=Number(Xb)||Mb&&Wb("1.9.1");Kb&&Wb("9");Bb.Wk("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");function $b(){this.jv="";this.Ux=ac}var ac={};$b.prototype.cB=function(a){this.jv=a;return this};Bb.Wk("action","cite","data","formaction","href","manifest","poster","src");Bb.Wk("APPLET","BASE","EMBED","IFRAME","LINK","MATH","META","OBJECT","SCRIPT","STYLE","SVG","TEMPLATE");function bc(a,b){this.x=ra(a)?a:0;this.y=ra(b)?b:0}h=bc.prototype;
h.clone=function(){return new bc(this.x,this.y)};h.equals=function(a){return a instanceof bc&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};h.translate=function(a,b){a instanceof bc?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),xa(b)&&(this.y+=b));return this};
h.scale=function(a,b){b=xa(b)?b:a;this.x*=a;this.y*=b;return this};function cc(a,b){this.width=a;this.height=b}h=cc.prototype;h.clone=function(){return new cc(this.width,this.height)};h.Sc=function(){return this.width*this.height};h.isEmpty=function(){return!this.Sc()};h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};h.round=function(){this.width=
Math.round(this.width);this.height=Math.round(this.height);return this};h.scale=function(a,b){b=xa(b)?b:a;this.width*=a;this.height*=b;return this};function dc(a){return a?new ec(fc(a)):Ja||(Ja=new ec)}function gc(a,b){Bb.forEach(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:hc.hasOwnProperty(d)?a.setAttribute(hc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var hc={cellpadding:"cellPadding",cellspacing:"cellSpacing",
colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function ic(a){a=a.document.documentElement;return new cc(a.clientWidth,a.clientHeight)}function kc(a){return a.scrollingElement?a.scrollingElement:Nb?a.body||a.documentElement:a.documentElement}function lc(a){return a.parentWindow||a.defaultView}function mc(a,b,c){return nc(document,arguments)}function nc(a,b){var c=
String(b[0]),d=b[1];if(!Zb&&d&&(d.name||d.type)){c=["\x3c",c];d.name&&c.push(' name\x3d"',La(d.name),'"');if(d.type){c.push(' type\x3d"',La(d.type),'"');var e={};Bb.extend(e,d);delete e.type;d=e}c.push("\x3e");c=c.join("")}c=a.createElement(c);d&&(wa(d)?c.className=d:ua(d)?c.className=d.join(" "):gc(c,d));2<b.length&&oc(a,c,b,2);return c}function oc(a,b,c,d){function e(c){c&&b.appendChild(wa(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];!va(f)||ya(f)&&0<f.nodeType?e(f):w.forEach(pc(f)?
w.toArray(f):f,e)}}function ob(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}function qc(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function fc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function pc(a){if(a&&"number"==typeof a.length){if(ya(a))return"function"==typeof a.item||"string"==typeof a.item;
if("function"==ta(a))return"function"==typeof a.item}return!1}function ec(a){this.vb=a||qa.document||document}h=ec.prototype;h.getElement=function(a){return wa(a)?this.vb.getElementById(a):a};h.$=ec.prototype.getElement;h.getElementsByTagName=function(a,b){return(b||this.vb).getElementsByTagName(String(a))};function rc(a,b){a=a.vb;b=b&&"*"!=b?String(b).toUpperCase():"";b=a.querySelectorAll&&a.querySelector&&b?a.querySelectorAll(b+""):a.getElementsByTagName(b||"*");return b}h.setProperties=gc;h.ys=
function(a,b,c){return nc(this.vb,arguments)};h.createElement=function(a){return this.vb.createElement(String(a))};h.createTextNode=function(a){return this.vb.createTextNode(String(a))};function sc(){return!0}h.appendChild=function(a,b){a.appendChild(b)};h.append=function(a,b){oc(fc(a),a,arguments,1)};h.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
h.removeNode=ob;h.isWindow=function(a){return ya(a)&&a.window==a};h.contains=qc;function tc(){if(!Kb)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}}var uc=Kb&&tc();function vc(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if(uc){var b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",
256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}M.remote={};M.remote.method={};M.remote.Response={};(function(a){M.remote.get=function(a,c,d){return!0===((M.utils.isNullOrEmpty(d)||!1!==d.jsonp)&&!1!==M.xm)?M.remote.uh(a,c,d):M.remote.Yr(a,c,M.remote.method.GET,!1)};M.remote.post=function(a,c){return M.remote.Yr(a,c,M.remote.method.POST)};M.remote.uh=function(b,c){M.utils.isNullOrEmpty(c)||(b=M.utils.addParameters(b,c));M.xm&&(b=M.remote.ku(b,
M.remote.method.GET));var d=M.utils.generateRandom("mapea_jsonp_handler_");b=M.utils.addParameters(b,{callback:d});c=new Promise(function(b){(new Promise(function(b){a[d]=b})).then(function(c){delete a[d];M.remote.sD(d);var e=new M.remote.Response;e.parseProxy(c);b(e)})});M.remote.Zy(b,d);return c};M.remote.Yr=function(b,c,d,e){!1!==e&&!0===M.xm&&(b=M.remote.ku(b,d));M.utils.isObject(c)&&(c=JSON.stringify(c));return new Promise(function(e){var f;a.XMLHttpRequest?f=new XMLHttpRequest:a.ActiveXObject&&
(f=new ActiveXObject("Microsoft.XMLHTTP"));f.onreadystatechange=function(){if(4==f.readyState){var a=new M.remote.Response;a.parseXmlHttp(f);e(a)}};f.open(d,b,!0);f.send(c)})};M.remote.ku=function(a,c){var b=M.config.PROXY_URL;c===M.remote.method.POST&&(b=M.config.PROXY_POST_URL);return b=M.utils.addParameters(b,{url:a})};M.remote.Zy=function(b,c){var d=document.createElement("script");d.type="text/javascript";d.id=c;d.src=b;d.setAttribute("async","");a.document.body.appendChild(d)};M.remote.sD=function(a){ob(document.getElementById(a))};
M.remote.Response=function(){this.xml=this.text=null;this.headers={};this.error=!1;this.code=0};M.remote.Response.prototype.parseXmlHttp=function(a){this.text=a.responseText;this.xml=a.responseXML;this.code=a.status;this.error="OK"!==a.statusText;a=a.getAllResponseHeaders();a=a.split("\n");a.forEach(function(a){a=a.trim();var b=a.replace(/^([^:]+):(.+)$/,"$1").trim();a=a.replace(/^([^:]+):(.+)$/,"$2").trim();""!==b&&(this.headers[b]=a)},this)};M.remote.Response.prototype.parseProxy=function(a){this.code=
a.code;this.error=a.error;if(200===this.code&&!0!==this.error){this.text=a.content.trim();try{var b=a.headers["Content-Type"];"undefined"!==typeof DOMParser&&/text\/html/i.test(b)?this.xml=(new DOMParser).parseFromString(this.text,"text/html"):/xml/i.test(b)&&(this.xml=vc(this.text))}catch(d){this.xml=null,this.error=!0}}Object.keys(a.headers).forEach(function(b){this.headers[b]=a.headers[b]},this)};M.remote.method.GET="GET";M.remote.method.POST="POST"})(window||{});M.parameter.projection={};M.parameter.projection=
function(a){var b={code:null,units:null};M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro projection");if(M.utils.isString(a))if(/^(EPSG:)?\d+\*((d(egrees)?)|(m(eters)?))$/i.test(a)){var c=a.split(/\*/);b.code=c[0];b.units=M.utils.normalize(c[1].substring(0,1))}else M.exception("El formato del par\u00e1metro projection no es correcto. \x3c/br\x3eSe usar\u00e1 la proyecci\u00f3n por defecto: "+M.config.DEFAULT_PROJ);else M.utils.isObject(a)?M.utils.isNull(a.code)||
M.utils.isNull(a.units)?M.exception("El formato del par\u00e1metro projection no es correcto. \x3c/br\x3eSe usar\u00e1 la proyecci\u00f3n por defecto: "+M.config.DEFAULT_PROJ):(b.code=a.code,b.units=M.utils.normalize(a.units.substring(0,1))):M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);"m"!==b.units&&"d"!==b.units&&M.exception('La unidad "'+a.units+'" del par\u00e1metro projection no es v\u00e1lida. Las disponibles son: "m" o "d"');return b};M.parameter.maxExtent={};M.parameter.maxExtent=
function(a){var b={x:{},y:{}};M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro maxExtent");M.utils.isString(a)?/^\s*-?\d+(\.\d+)?\s*[,;]\s*-?\d+(\.\d+)?\s*[,;]\s*-?\d+(\.\d+)?\s*[,;]\s*-?\d+(\.\d+)?$/.test(a)?(a=a.split(/[,;]+/),4===a.length?(b.x.min=Number.parseFloat(a[0]),b.y.min=Number.parseFloat(a[1]),b.x.max=Number.parseFloat(a[2]),b.y.max=Number.parseFloat(a[3])):M.exception("El formato del par\u00e1metro maxExtent no es correcto")):M.exception("El formato del par\u00e1metro maxExtent no es correcto"):
M.utils.isArray(a)?4===a.length?(M.utils.isString(a[0])&&(a[0]=Number.parseFloat(a[0])),M.utils.isString(a[1])&&(a[1]=Number.parseFloat(a[1])),M.utils.isString(a[2])&&(a[2]=Number.parseFloat(a[2])),M.utils.isString(a[3])&&(a[3]=Number.parseFloat(a[3])),b.x.min=a[0],b.y.min=a[1],b.x.max=a[2],b.y.max=a[3]):M.exception("El formato del par\u00e1metro maxExtent no es correcto"):M.utils.isObject(a)?(M.utils.isNull(a.left)?M.utils.isNull(a.x.min)?M.exception("El formato del par\u00e1metro maxExtent no es correcto"):
(M.utils.isString(a.x.min)&&(a.x.min=Number.parseFloat(a.x.min)),b.x.min=a.x.min):(M.utils.isString(a.left)&&(a.left=Number.parseFloat(a.left)),b.x.min=a.left),M.utils.isNull(a.bottom)?M.utils.isNull(a.y.min)?M.exception("El formato del par\u00e1metro maxExtent no es correcto"):(M.utils.isString(a.y.min)&&(a.y.min=Number.parseFloat(a.y.min)),b.y.min=a.y.min):(M.utils.isString(a.bottom)&&(a.bottom=Number.parseFloat(a.bottom)),b.y.min=a.bottom),M.utils.isNull(a.right)?M.utils.isNull(a.x.max)?M.exception("El formato del par\u00e1metro maxExtent no es correcto"):
(M.utils.isString(a.x.max)&&(a.x.max=Number.parseFloat(a.x.max)),b.x.max=a.x.max):(M.utils.isString(a.right)&&(a.right=Number.parseFloat(a.right)),b.x.max=a.right),M.utils.isNull(a.top)?M.utils.isNull(a.y.max)?M.exception("El formato del par\u00e1metro maxExtent no es correcto"):(M.utils.isString(a.y.max)&&(a.y.max=Number.parseFloat(a.y.max)),b.y.max=a.y.max):(M.utils.isString(a.top)&&(a.top=Number.parseFloat(a.top)),b.y.max=a.top)):M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);
(Number.isNaN(b.x.min)||Number.isNaN(b.y.min)||Number.isNaN(b.x.max)||Number.isNaN(b.y.max))&&M.exception("El formato del par\u00e1metro maxExtent no es correcto");return b};M.parameter.resolutions={};M.parameter.resolutions=function(a){var b=[];M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro resolutions");M.utils.isString(a)&&(/^\d+(\.\d+)?([,;]\d+(\.\d+)?)*$/.test(a)?a=a.split(/[,;]+/):M.exception("El formato del par\u00e1metro resolutions no es correcto"));
M.utils.isArray(a)?b=a.map(function(a){return M.utils.isString(a)?Number.parseFloat(a):a}):M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);a=!0;for(var c=0,d=b.length;c<d&&a;c++)a=!Number.isNaN(b[c]);a||M.exception("El formato del par\u00e1metro resolutions no es correcto");return b};M.parameter.zoom={};M.parameter.zoom=function(a){var b;M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro zoom");M.utils.isString(a)?b=Number.parseInt(a):"number"===
typeof a?b=a:M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof a);Number.isNaN(b)&&M.exception("El formato del par\u00e1metro zoom no es correcto");return b};M.parameter.center={};M.parameter.center=function(a){var b={};M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro center");if(M.utils.isString(a))if(a=M.utils.normalize(a),/^\-?\d+(\.\d+)?[,;]\-?\d+(\.\d+)?([\*](true|false))?$/i.test(a)){var c=a.split(/\*/);a=c[1];c=c[0].split(/[,;]+/);2===c.length?
(b.x=Number.parseFloat(c[0]),b.y=Number.parseFloat(c[1])):M.exception("El formato del par\u00e1metro center no es correcto");b.draw=/^1|(true)$/i.test(a)}else M.exception("El formato del par\u00e1metro center no es correcto");else M.utils.isArray(a)?2===a.length||3===a.length?(M.utils.isString(a[0])&&(a[0]=Number.parseFloat(a[0])),M.utils.isString(a[1])&&(a[1]=Number.parseFloat(a[1])),b.x=a[0],b.y=a[1]):M.exception("El formato del par\u00e1metro center no es correcto"):M.utils.isObject(a)?(M.utils.isNull(a.x)?
M.exception("El formato del par\u00e1metro center no es correcto"):(M.utils.isString(a.x)&&(a.x=Number.parseFloat(a.x)),b.x=a.x),M.utils.isNull(a.y)?M.exception("El formato del par\u00e1metro center no es correcto"):(M.utils.isString(a.y)&&(a.y=Number.parseFloat(a.y)),b.y=a.y),M.utils.isNull(a.draw)?b.draw=!1:b.draw=/^true$/.test(a.draw)):M.exception("El par\u00e1metro no es de un tipo soportado: "+typeof maxExtentParameter);(Number.isNaN(b.x)||Number.isNaN(b.y))&&M.exception("El formato del par\u00e1metro center no es correcto");
return b};M.Parameters={};(function(a){function b(c){var d;M.utils.isString(c)?d=a.getElementById(c):M.utils.isObject(c)?M.utils.isNullOrEmpty(c.id)?M.utils.isNullOrEmpty(c.container)?M.exception("No ha especificado ning\u00fan par\u00e1metro contenedor"):d=b(c.container):d=a.getElementById(c.id):M.exception("El tipo del par\u00e1metro container no es v\u00e1lido: "+typeof c);M.utils.isNullOrEmpty(d)&&M.exception("No existe ning\u00fan contenedor con el id especificado");return d}M.Parameters=function(a){M.utils.isNullOrEmpty(a)&&
M.exception("No ha especificado ning\u00fan par\u00e1metro");this.container=b(a);var c;M.utils.isString(a)?c=M.utils.getParameterValue("layers",a):M.utils.isObject(a)?c=a.layers:M.exception("El tipo del par\u00e1metro container no es v\u00e1lido: "+typeof a);this.layers=c;var e;M.utils.isString(a)?(e=M.utils.getParameterValue("wmc",a),M.utils.isNullOrEmpty(e)&&(e=M.utils.getParameterValue("wmcfile",a)),M.utils.isNullOrEmpty(e)&&(e=M.utils.getParameterValue("wmcfiles",a))):M.utils.isObject(a)?(e=a.wmc,
M.utils.isNullOrEmpty(e)&&(e=a.wmcfile),M.utils.isNullOrEmpty(e)&&(e=a.wmcfiles)):M.exception("El tipo del par\u00e1metro container no es v\u00e1lido: "+typeof a);this.wmc=e;var f;M.utils.isString(a)?f=M.utils.getParameterValue("wms",a):M.utils.isObject(a)?f=a.wms:M.exception("El tipo del par\u00e1metro container no es v\u00e1lido: "+typeof a);this.wms=f;var g;M.utils.isString(a)?g=M.utils.getParameterValue("wmts",a):M.utils.isObject(a)?g=a.wmts:M.exception("El tipo del par\u00e1metro container no es v\u00e1lido: "+
typeof a);this.wmts=g;var k;M.utils.isString(a)?k=M.utils.getParameterValue("kml",a):M.utils.isObject(a)?k=a.kml:M.exception("El tipo del par\u00e1metro container no es v\u00e1lido: "+typeof a);this.kml=k;var l;M.utils.isString(a)?l=M.utils.getParameterValue("controls",a):M.utils.isObject(a)?l=a.controls:M.exception("El tipo del par\u00e1metro controls no es v\u00e1lido: "+typeof a);this.controls=l;var m;M.utils.isString(a)?m=M.utils.getParameterValue("getfeatureinfo",a):M.utils.isObject(a)?(m=a.getfeatureinfo,
!M.utils.isUndefined(m)&&M.utils.isNullOrEmpty(m)&&(m="plain")):M.exception("El tipo del par\u00e1metro controls no es v\u00e1lido: "+typeof a);this.getfeatureinfo=m;var n;M.utils.isString(a)?(n=M.utils.getParameterValue("maxExtent",a),M.utils.isNullOrEmpty(n)&&(n=M.utils.getParameterValue("maxextent",a))):M.utils.isObject(a)?(n=a.maxExtent,M.utils.isNullOrEmpty(n)&&(n=a.maxextent)):M.exception("El tipo del par\u00e1metro container no es v\u00e1lido: "+typeof a);this.maxExtent=n;var q;M.utils.isString(a)?
q=M.utils.getParameterValue("bbox",a):M.utils.isObject(a)?q=a.bbox:M.exception("El tipo del par\u00e1metro container no es v\u00e1lido: "+typeof a);this.bbox=q;var r;M.utils.isString(a)?r=M.utils.getParameterValue("zoom",a):M.utils.isObject(a)?r=a.zoom:M.exception("El tipo del par\u00e1metro zoom no es v\u00e1lido: "+typeof a);this.zoom=r;var t;M.utils.isString(a)?t=M.utils.getParameterValue("center",a):M.utils.isObject(a)?t=a.center:M.exception("El tipo del par\u00e1metro center no es v\u00e1lido: "+
typeof a);this.center=t;var u;M.utils.isString(a)?u=M.utils.getParameterValue("resolutions",a):M.utils.isObject(a)?u=a.resolutions:M.exception("El tipo del par\u00e1metro container no es v\u00e1lido: "+typeof a);this.resolutions=u;var y;M.utils.isString(a)?y=M.utils.getParameterValue("projection",a):M.utils.isObject(a)?y=a.projection:M.exception("El tipo del par\u00e1metro container no es v\u00e1lido: "+typeof a);this.projection=y;var z;M.utils.isString(a)?z=M.utils.getParameterValue("label",a):M.utils.isObject(a)?
z=a.label:M.exception("El tipo del par\u00e1metro container no es v\u00e1lido: "+typeof a);this.label=z;var B;M.utils.isString(a)?B=M.utils.getParameterValue("ticket",a):M.utils.isObject(a)?B=a.ticket:M.exception("El tipo del par\u00e1metro ticket no es v\u00e1lido: "+typeof a);this.ticket=B}})(window&&window.document||{});M.style.state={};M.style.state.DEFAULT="default";M.style.state.NEW="new";M.style.state.SELECTED="selected";M.ui={};M.ui.position={};M.ui.position.TL=".m-top.m-left";M.ui.position.TR=
".m-top.m-right";M.ui.position.BL=".m-bottom.m-left";M.ui.position.BR=".m-bottom.m-right";M.ui.Panel={};M.ui.Panel=function(a,b){b=b||{};this.name=a;this._map=null;this._controls=[];this._buttonPanel=null;this._collapsible=!1;M.utils.isNullOrEmpty(b.collapsible)||(this._collapsible=b.collapsible);this.position=M.ui.position.TL;M.utils.isNullOrEmpty(b.position)||(this.position=b.position);this._collapsed=this._collapsible;M.utils.isNullOrEmpty(b.collapsed)||(this._collapsed=b.collapsed&&!0===this._collapsible);
this._multiActivation=!1;M.utils.isNullOrEmpty(b.multiActivation)||(this._multiActivation=b.multiActivation);this._className=null;M.utils.isNullOrEmpty(b.className)||(this._className=b.className);this._collapsedButtonClass=null;if(!M.utils.isNullOrEmpty(b.collapsedButtonClass))this._collapsedButtonClass=b.collapsedButtonClass;else if(this.position===M.ui.position.TL||this.position===M.ui.position.BL)this._collapsedButtonClass="g-cartografia-flecha-derecha";else if(this.position===M.ui.position.TR||
this.position===M.ui.position.BR)this._collapsedButtonClass="g-cartografia-flecha-izquierda";this._openedButtonClass=null;if(!M.utils.isNullOrEmpty(b.openedButtonClass))this._openedButtonClass=b.openedButtonClass;else if(this.position===M.ui.position.TL||this.position===M.ui.position.BL)this._openedButtonClass="g-cartografia-flecha-izquierda";else if(this.position===M.ui.position.TR||this.position===M.ui.position.BR)this._openedButtonClass="g-cartografia-flecha-derecha";this._tooltip=this._controlsContainer=
this._areaContainer=this._element=null;M.utils.isNullOrEmpty(b.tooltip)||(this._tooltip=b.tooltip);M.Object.call(this)};v(M.ui.Panel,M.Object);h=M.ui.Panel.prototype;h.destroy=function(){null!=this._element&&this._areaContainer.removeChild(this._element);this._controlsContainer=null};h.addTo=function(a,b){this._map=a;this._areaContainer=b;var c=this;M.template.compile(M.ui.Panel.TEMPLATE,{jsonp:!0}).then(function(a){c._element=a;M.utils.isNullOrEmpty(c._tooltip)||c._element.setAttribute("title",c._tooltip);
c._buttonPanel=a.querySelector("button.m-panel-btn");M.utils.isNullOrEmpty(c._className)||c._className.split(/\s+/).forEach(function(b){pb(a,b)});!0===c._collapsed?c.Ln(a):c.Tn(a);!0!==c._collapsible&&pb(a,"no-collapsible");c._controlsContainer=a.querySelector("div.m-panel-controls");b.appendChild(a);kb(c._buttonPanel,nb.CLICK,function(b){b.preventDefault();!1===this._collapsed?this.Ln(a):this.Tn(a)},!1,c);c.addControls(c._controls);c.fire(M.evt.ADDED_TO_MAP,a)})};h.Ln=function(a){qb(a,"opened");
qb(this._buttonPanel,this._openedButtonClass);pb(a,"collapsed");pb(this._buttonPanel,this._collapsedButtonClass);this._collapsed=!0;this.fire(M.evt.HIDE)};h.Tn=function(a){qb(a,"collapsed");qb(this._buttonPanel,this._collapsedButtonClass);pb(a,"opened");pb(this._buttonPanel,this._openedButtonClass);this._collapsed=!1;this.fire(M.evt.SHOW)};h.open=function(){this.Tn(this._element)};h.collapse=function(){this.Ln(this._element)};h.getControls=function(){return this._controls};h.addControls=function(a){M.utils.isNullOrEmpty(a)||
(M.utils.isArray(a)||(a=[a]),a.forEach(function(a){a instanceof M.Control&&(this.hasControl(a)||(this._controls.push(a),a.setPanel(this),a.on(M.evt.DESTROY,this._removeControl,this)),M.utils.isNullOrEmpty(this._controlsContainer)||(a.on(M.evt.ADDED_TO_MAP,this._moveControlView,this),this._map.addControls(a)),a.on(M.evt.ACTIVATED,this._manageActivation,this))},this))};h.hasControl=function(a){var b=!1;if(!M.utils.isNullOrEmpty(a))if(M.utils.isString(a))for(var c=0,d=this._controls.length;c<d&&!b;c++)b=
this._controls[c].name===a;else a instanceof M.Control&&(b=M.utils.includes(this._controls,a));return b};h.removeControls=function(a){M.utils.isNullOrEmpty(a)||(M.utils.isArray(a)||(a=[a]),a.forEach(function(a){a instanceof M.Control&&this.hasControl(a)&&(this._controls.remove(a),a.setPanel(null))},this),0===this._controls.length&&this._map.removePanel(this))};h._removeControl=function(a){this._map.getControls(a).forEach(function(a){a=this._controls.indexOf(a);-1!==a&&this._controls.splice(a,1)})};
h.removeClassName=function(a){M.utils.isNullOrEmpty(this._element)?this._className=this._className.replace(new RegExp("s*"+a+"s*"),""):qb(this._element,a)};h.addClassName=function(a){M.utils.isNullOrEmpty(this._element)?this._className=this._className.concat(" ").concat(a):pb(this._element,a)};h._moveControlView=function(a){var b=a.getElement();M.utils.isNullOrEmpty(this._controlsContainer)||this._controlsContainer.appendChild(b);a.fire(M.evt.ADDED_TO_PANEL)};h._manageActivation=function(a){!0!==
this._multiActivation&&this._controls.forEach(function(b){!b.equals(a)&&b.activated&&b.deactivate()})};h.equals=function(a){var b=!1;a instanceof M.ui.Panel&&(b=a.name===this.name);return b};h.getTemplatePanel=function(){return this._element};h.isCollapsed=function(){return this._collapsed};M.ui.Panel.TEMPLATE="panel.html";M.Popup={};M.Popup=function(a){this.Ec=null;this.Nc=[];this.element_=null;this.Bc=M.Popup.status.COLLAPSED;a=new M.impl.Popup(a);M.facade.Base.call(this,a)};v(M.Popup,M.facade.Base);
h=M.Popup.prototype;h.getTabs=function(){return this.Nc};h.removeTab=function(a){this.Nc=this.Nc.filter(function(b){return b.content!==a.content});this.update()};h.addTab=function(a){var b=a;b instanceof M.Popup.Tab||(b=new M.Popup.Tab(a));this.Nc.push(b);this.update()};h.addTo=function(a,b){this.map_=a;if(M.utils.isNullOrEmpty(this.element_)){var c=this;M.template.compile(M.Popup.TEMPLATE,{jsonp:!0,vars:{tabs:this.Nc}}).then(function(d){0<c.Nc.length&&(c.element_=d,c.Wr(d),c.getImpl().addTo(a,d),
c.show(b))})}else this.getImpl().addTo(a,this.element_),this.show(b)};h.update=function(){if(!M.utils.isNullOrEmpty(this.map_)){var a=this;M.template.compile(M.Popup.TEMPLATE,{jsonp:!0,vars:{tabs:this.Nc}}).then(function(b){0<a.Nc.length&&(a.element_=b,a.Wr(b),a.getImpl().setContainer(b),a.show(a.Ec))})}};h.show=function(a){this.Ec=a;this.getImpl().show(this.Ec,function(){this.fire(M.evt.SHOW)}.bind(this))};h.hide=function(a){M.utils.isNullOrEmpty(a)||a.preventDefault();this.getImpl().hide()};h.switchTab=
function(a){this.Nc.length>a&&(this.ND(this.Nc[a].content),this.show(this.Ec))};h.ND=function(a){this.getImpl().setContent(a)};h.getContent=function(){return this.getImpl().getContent()};h.Wr=function(a){var b,c=a.querySelectorAll("div.m-tab");Array.prototype.forEach.call(c,function(a){kb(a,[nb.CLICK,wc],function(d){d.preventDefault();var e=d.clientY;if(d.type===nb.CLICK||5>Math.abs(b-e))Array.prototype.forEach.call(c,function(a){qb(a,"m-activated")}),pb(a,"m-activated"),d=a.getAttribute("data-index"),
this.switchTab(d)},!1,this)},this);kb(a.querySelector("a.m-popup-closer"),[nb.CLICK,wc],this.hide,!1,this);var d=a.querySelector("div.m-tabs");M.utils.isNullOrEmpty(d)&&(d=a.querySelector("div.m-content \x3e div.m-header"));if(!M.utils.isNullOrEmpty(d)){var e;kb(d,[lb],function(c){c.preventDefault();b=c.clientY;this.Bc===M.Popup.status.COLLAPSED?e=.9*M.window.HEIGHT:this.Bc===M.Popup.status.DEFAULT?e=.45*M.window.HEIGHT:this.Bc===M.Popup.status.FULL&&(e=0);pb(a,"m-no-animation")},!1,this);kb(d,[mb],
function(c){c.preventDefault();x.setStyle(a,"top",e+(c.clientY-b)+"px")},!1,this);kb(d,[wc],function(a){a.preventDefault();this.IB(b,a.clientY)},!1,this);kb(d,[xc],function(a){a.preventDefault();1>=this.Nc.length&&(this.Bc===M.Popup.status.COLLAPSED?this.Ac(M.Popup.status.DEFAULT):this.Bc===M.Popup.status.DEFAULT?this.Ac(M.Popup.status.FULL):this.Ac(M.Popup.status.COLLAPSED))},!1,this)}};h.Ac=function(a){a!==this.Bc&&(qb(this.element_,this.Bc),this.Bc=a,pb(this.element_,this.Bc),x.setStyle(this.element_,
"top",""),qb(this.element_,"m-no-animation"),M.window.WIDTH<=M.config.MOBILE_WIDTH&&this.getImpl().centerByStatus(a,this.Ec))};h.IB=function(a,b){var c=100*b/M.window.HEIGHT;10<100*Math.abs(a-b)/M.window.HEIGHT?this.Bc===M.Popup.status.COLLAPSED?45>c?this.Ac(M.Popup.status.FULL):85>c?this.Ac(M.Popup.status.DEFAULT):this.Ac(M.Popup.status.COLLAPSED):this.Bc===M.Popup.status.DEFAULT?45<c?this.Ac(M.Popup.status.COLLAPSED):45>c?this.Ac(M.Popup.status.FULL):this.Ac(M.Popup.status.DEFAULT):this.Bc===M.Popup.status.FULL&&
(45<c?this.Ac(M.Popup.status.COLLAPSED):0<c?this.Ac(M.Popup.status.DEFAULT):this.Ac(M.Popup.status.FULL)):this.Ac(this.Bc)};h.getCoordinate=function(){return this.Ec};h.setCoordinate=function(a){this.Ec=a;M.utils.isNullOrEmpty(this.element_)||this.getImpl().show(a)};h.destroy=function(){this.Nc.length=0;this.Ec=null;this.fire(M.evt.DESTROY)};M.Popup.TEMPLATE="popup.html";M.Popup.status={};M.Popup.status.COLLAPSED="m-collapsed";M.Popup.status.DEFAULT="m-default";M.Popup.status.FULL="m-full";M.Popup.Tab=
function(a){a=a||{};this.icon=a.icon;this.title=a.title;this.content=a.content};M.Plugin={};M.plugin={};M.plugin={};M.Plugin=function(a){M.facade.Base.call(this,a)};v(M.Plugin,M.facade.Base);M.Plugin.prototype.addTo=function(a){var b;M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan mapa");var c=this.getImpl();M.utils.isUndefined(c.addTo)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo addTo");var d=this.createView(a);d instanceof Promise?(b=this,d.then(function(d){c.addTo(a,
d);b.fire(M.evt.ADDED_TO_MAP)})):(c.addTo(a,d),this.fire(M.evt.ADDED_TO_MAP))};M.Plugin.prototype.createView=function(){};var yc=!Kb||9<=Number(Xb),zc=Kb&&!Wb("9");!Nb||Wb("528");Mb&&Wb("1.9b")||Kb&&Wb("8")||Jb&&Wb("9.5")||Nb&&Wb("528");Mb&&!Wb("8")||Kb&&Wb("9");function Ac(){0!=Bc&&(Dc[za(this)]=this);this.Wf=this.Wf;this.om=this.om}var Bc=0,Dc={};Ac.prototype.Wf=!1;Ac.prototype.Ib=function(){if(!this.Wf&&(this.Wf=!0,this.T(),0!=Bc)){var a=za(this);delete Dc[a]}};Ac.prototype.T=function(){if(this.om)for(;this.om.length;)this.om.shift()()};
function Ec(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.Ag=!1;this.Mv=!0}Ec.prototype.stopPropagation=function(){this.Ag=!0};Ec.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Mv=!1};function Fc(a){return Nb?"webkit"+a:Jb?"o"+a.toLowerCase():a.toLowerCase()}var xc="mouseup",lb="touchstart",mb="touchmove",wc="touchend",nb={CLICK:"click",UG:"rightclick",ur:"dblclick",sx:"mousedown",vx:xc,mG:"mouseover",ux:"mouseout",tx:"mousemove",kG:"mouseenter",lG:"mouseleave",
ZG:"selectionchange",$G:"selectstart",cy:"wheel",px:"keypress",ox:"keydown",WF:"keyup",kF:"blur",OF:"focus",vF:"deactivate",PF:Kb?"focusin":"DOMFocusIn",QF:Kb?"focusout":"DOMFocusOut",CHANGE:"change",SG:"reset",YG:"select",eH:"submit",VF:"input",PG:"propertychange",IF:"dragstart",FF:"drag",hx:"dragenter",ix:"dragover",HF:"dragleave",jx:"drop",GF:"dragend",ay:lb,$x:mb,Zx:wc,kH:"touchcancel",jF:"beforeunload",rF:"consolemessage",sF:"contextmenu",wF:"deviceorientation",zF:"DOMContentLoaded",ERROR:"error",
TF:"help",LOAD:"load",fG:"losecapture",GG:"orientationchange",RG:"readystatechange",Sx:"resize",VG:"scroll",mH:"unload",lF:"canplay",mF:"canplaythrough",JF:"durationchange",KF:"emptied",LF:"ended",aG:"loadeddata",bG:"loadedmetadata",KG:"pause",LG:"play",MG:"playing",QG:"ratechange",WG:"seeked",XG:"seeking",cH:"stalled",fH:"suspend",jH:"timeupdate",qH:"volumechange",tH:"waiting",SF:"hashchange",HG:"pagehide",IG:"pageshow",OG:"popstate",tF:"copy",JG:"paste",uF:"cut",fF:"beforecopy",gF:"beforecut",hF:"beforepaste",
FG:"online",EG:"offline",jG:"message",qF:"connect",dF:Fc("AnimationStart"),bF:Fc("AnimationEnd"),cF:Fc("AnimationIteration"),lH:Fc("TransitionEnd"),Ex:"pointerdown",Kx:"pointerup",Dx:"pointercancel",Hx:"pointermove",Jx:"pointerover",Ix:"pointerout",Fx:"pointerenter",Gx:"pointerleave",RF:"gotpointercapture",gG:"lostpointercapture",oG:"MSGestureChange",pG:"MSGestureEnd",qG:"MSGestureHold",rG:"MSGestureStart",sG:"MSGestureTap",tG:"MSGotPointerCapture",uG:"MSInertiaStart",vG:"MSLostPointerCapture",wG:"MSPointerCancel",
wx:"MSPointerDown",xG:"MSPointerEnter",yG:"MSPointerHover",zG:"MSPointerLeave",AG:"MSPointerMove",BG:"MSPointerOut",CG:"MSPointerOver",DG:"MSPointerUp",hH:"text",iH:"textInput",oF:"compositionstart",pF:"compositionupdate",nF:"compositionend",MF:"exit",ZF:"loadabort",$F:"loadcommit",cG:"loadredirect",dG:"loadstart",eG:"loadstop",TG:"responsive",bH:"sizechanged",nH:"unresponsive",pH:"visibilitychange",dH:"storage",EF:"DOMSubtreeModified",AF:"DOMNodeInserted",CF:"DOMNodeRemoved",DF:"DOMNodeRemovedFromDocument",
BF:"DOMNodeInsertedIntoDocument",xF:"DOMAttrModified",yF:"DOMCharacterDataModified",iF:"beforeprint",aF:"afterprint"};function Gc(a,b){Ec.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.Yf=this.state=null;if(a){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||
a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?Mb&&(Fb(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;null===d?(this.offsetX=Nb||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=Nb||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=
void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.Yf=a;a.defaultPrevented&&this.preventDefault()}}v(Gc,Ec);Gc.prototype.stopPropagation=function(){Gc.ab.stopPropagation.call(this);this.Yf.stopPropagation?this.Yf.stopPropagation():this.Yf.cancelBubble=
!0};Gc.prototype.preventDefault=function(){Gc.ab.preventDefault.call(this);var a=this.Yf;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,zc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Hc="closure_listenable_"+(1E6*Math.random()|0),Ic=0;function Jc(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.handler=e;this.key=++Ic;this.Qh=this.Qf=!1}function Kc(a){a.Qh=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=
null}function Lc(a){this.src=a;this.xb={};this.lk=0}Lc.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.xb[f];a||(a=this.xb[f]=[],this.lk++);var g=Mc(a,b,d,e);-1<g?(b=a[g],c||(b.Qf=!1)):(b=new Jc(b,this.src,f,!!d,e),b.Qf=c,a.push(b));return b};Lc.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.xb))return!1;var e=this.xb[a];b=Mc(e,b,c,d);return-1<b?(Kc(e[b]),w.removeAt(e,b),0==e.length&&(delete this.xb[a],this.lk--),!0):!1};function Nc(a,b){var c=b.type;c in a.xb&&w.remove(a.xb[c],
b)&&(Kc(b),0==a.xb[c].length&&(delete a.xb[c],a.lk--))}Lc.prototype.Yo=function(a,b,c,d){a=this.xb[a.toString()];var e=-1;a&&(e=Mc(a,b,c,d));return-1<e?a[e]:null};Lc.prototype.hasListener=function(a,b){var c=ra(a),d=c?a.toString():"",e=ra(b);return Bb.some(this.xb,function(a){for(var f=0;f<a.length;++f)if(!(c&&a[f].type!=d||e&&a[f].capture!=b))return!0;return!1})};function Mc(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Qh&&f.listener==b&&f.capture==!!c&&f.handler==d)return e}return-1}var Oc=
"closure_lm_"+(1E6*Math.random()|0),Pc={},Qc=0;function kb(a,b,c,d,e){if(ua(b)){for(var f=0;f<b.length;f++)kb(a,b[f],c,d,e);return null}c=Rc(c);if(a&&a[Hc])a=a.le.add(String(b),c,!1,d,e);else{if(!b)throw Error("Invalid event type");var f=!!d,g=Sc(a);g||(a[Oc]=g=new Lc(a));c=g.add(b,c,!1,d,e);if(!c.proxy){d=Tc();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,f);else if(a.attachEvent)a.attachEvent(Uc(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");
Qc++}a=c}return a}function Tc(){var a=Vc,b=yc?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b}function Wc(a,b,c,d,e){if(ua(b))for(var f=0;f<b.length;f++)Wc(a,b[f],c,d,e);else c=Rc(c),a&&a[Hc]?a.le.remove(String(b),c,d,e):a&&(a=Sc(a))&&(b=a.Yo(b,c,!!d,e))&&Xc(b)}function Xc(a){if(!xa(a)&&a&&!a.Qh){var b=a.src;if(b&&b[Hc])Nc(b.le,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent&&b.detachEvent(Uc(c),
d);Qc--;(c=Sc(b))?(Nc(c,a),0==c.lk&&(c.src=null,b[Oc]=null)):Kc(a)}}}function Uc(a){return a in Pc?Pc[a]:Pc[a]="on"+a}function Yc(a,b,c,d){var e=!0;if(a=Sc(a))if(b=a.xb[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.Qh&&(f=Zc(f,d),e=e&&!1!==f)}return e}function Zc(a,b){var c=a.listener,d=a.handler||a.src;a.Qf&&Xc(a);return c.call(d,b)}function Vc(a,b){if(a.Qh)return!0;if(!yc){if(!b)a:{b=["window","event"];for(var c=qa,d;d=b.shift();)if(null!=c[d])c=c[d];else{b=null;
break a}b=c}d=b;b=new Gc(d,this);c=!0;if(!(0>d.keyCode||void 0!=d.returnValue)){a:{var e=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(g){e=!0}if(e||void 0==d.returnValue)d.returnValue=!0}d=[];for(e=b.currentTarget;e;e=e.parentNode)d.push(e);a=a.type;for(e=d.length-1;!b.Ag&&0<=e;e--){b.currentTarget=d[e];var f=Yc(d[e],a,!0,b),c=c&&f}for(e=0;!b.Ag&&e<d.length;e++)b.currentTarget=d[e],f=Yc(d[e],a,!1,b),c=c&&f}return c}return Zc(a,new Gc(b,this))}function Sc(a){a=a[Oc];return a instanceof Lc?a:null}
var $c="__closure_events_fn_"+(1E9*Math.random()>>>0);function Rc(a){if("function"==ta(a))return a;a[$c]||(a[$c]=function(b){return a.handleEvent(b)});return a[$c]}function ad(){Ac.call(this);this.le=new Lc(this);this.wy=this;this.Mp=null}v(ad,Ac);ad.prototype[Hc]=!0;h=ad.prototype;h.addEventListener=function(a,b,c,d){kb(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){Wc(this,a,b,c,d)};h.dispatchEvent=function(a){var b,c=this.Mp;if(c)for(b=[];c;c=c.Mp)b.push(c);var c=this.wy,d=a.type||a;if(wa(a))a=
new Ec(a,c);else if(a instanceof Ec)a.target=a.target||c;else{var e=a;a=new Ec(d,c);Bb.extend(a,e)}var e=!0,f;if(b)for(var g=b.length-1;!a.Ag&&0<=g;g--)f=a.currentTarget=b[g],e=bd(f,d,!0,a)&&e;a.Ag||(f=a.currentTarget=c,e=bd(f,d,!0,a)&&e,a.Ag||(e=bd(f,d,!1,a)&&e));if(b)for(g=0;!a.Ag&&g<b.length;g++)f=a.currentTarget=b[g],e=bd(f,d,!1,a)&&e;return e};h.T=function(){ad.ab.T.call(this);if(this.le){var a=this.le,b=0,c;for(c in a.xb){for(var d=a.xb[c],e=0;e<d.length;e++)++b,Kc(d[e]);delete a.xb[c];a.lk--}}this.Mp=
null};function bd(a,b,c,d){b=a.le.xb[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.Qh&&g.capture==c){var k=g.listener,l=g.handler||g.src;g.Qf&&Nc(a.le,g);e=!1!==k.call(l,d)&&e}}return e&&0!=d.Mv}h.Yo=function(a,b,c,d){return this.le.Yo(String(a),b,c,d)};h.hasListener=function(a,b){return this.le.hasListener(ra(a)?String(a):void 0,b)};function cd(a){ad.call(this);this.xn=a||window;this.uc=kb(this.xn,"resize",this.Gd,!1,this);this.X=ic(this.xn||window)}
v(cd,ad);function dd(){var a=window||window,b=za(a);return ed[b]=ed[b]||new cd(a)}function fd(){var a=za(window||window),b=ed[a];b&&"function"==typeof b.Ib&&b.Ib();delete ed[a]}var ed={};cd.prototype.getSize=function(){return this.X?this.X.clone():null};cd.prototype.T=function(){cd.ab.T.call(this);this.uc&&(Xc(this.uc),this.uc=null);this.X=this.xn=null};cd.prototype.Gd=function(){var a=ic(this.xn||window),b=this.X;a==b||a&&b&&a.width==b.width&&a.height==b.height||(this.X=a,this.dispatchEvent("resize"))};
M.window={};(function(){fd();var a=dd();kb(a,"resize",function(){M.window.WIDTH=a.getSize().width;M.window.HEIGHT=a.getSize().height});M.window.WIDTH=a.getSize().width;M.window.HEIGHT=a.getSize().height})();M.Style={};M.Style=function(a,b){this.options_=a;this.j=document.createElement("canvas");this.i=this.ni=null;M.facade.Base.call(this,b)};v(M.Style,M.facade.Base);M.Style.prototype.apply=function(a){this.i=a;this.getImpl().applyToLayer(a);this.updateCanvas()};M.Style.prototype.unapply=function(){};
M.Style.prototype.get=function(a){var b;b=this.options_[a];M.utils.isNullOrEmpty(b)&&(a=a.split("."),1<a.length&&(b=a.reduce(function(a,b){return M.utils.isNullOrEmpty(a)?void 0:a instanceof M.Style?a.get(b):a[b]},this)));return b};M.Style.prototype.set=function(a,b){var c=this.get(a);M.Style.Tv(this.options_,a,b);M.utils.isNullOrEmpty(this.i)||this.getImpl().updateFacadeOptions(this.options_);M.utils.isNullOrEmpty(this.Io)||this.applyToFeature(this.Io);this.fire(M.evt.CHANGE,[a,c,b]);this.refresh();
return this};M.Style.Tv=function(a,b,c){b=M.utils.isArray(b)?b:b.split(".");var d=b.length,e=b[0];1===d?(M.utils.isArray(c)?c=[].concat(la(c)):M.utils.isObject(c)&&(c=Object.assign({},c)),a[e]=c):1<d&&(M.utils.isNullOrEmpty(a[e])&&(a[e]={}),M.Style.Tv(a[e],b.slice(1,d),c))};h=M.Style.prototype;h.refresh=function(a){a=void 0===a?null:a;M.utils.isNullOrEmpty(a)||(this.i=a);M.utils.isNullOrEmpty(this.i)||(this.apply(this.i),this.updateCanvas(),M.utils.isNullOrEmpty(this.i.getImpl().getMap())||(a=this.i.getImpl().getMap().getControls("layerswitcher")[0],
M.utils.isNullOrEmpty(a)||a.render()))};h.getOptions=function(){return this.options_};h.toImage=function(){var a=this,b;if(M.utils.isNullOrEmpty(this.ni)){if(!M.utils.isNullOrEmpty(this.options_.icon)&&!M.utils.isNullOrEmpty(this.options_.icon.src)){b=new Image;b.crossOrigin="Anonymous";var c=this.j;b.onload=function(){c.getContext("2d").drawImage(this,0,0,50,50)};b.src=this.options_.icon.src}b=this.j.toDataURL("png")}else b=this.ni.then(function(){return a.j.toDataURL("png")});return b};h.serialize=
function(){};h.updateCanvas=function(){this.ni=this.getImpl().updateCanvas(this.j)};h.equals=function(a){return this.constructor===a.constructor};h.clone=function(){var a={};M.utils.extends(a,this.options_);var b=new (this.getImpl().constructor)(a);return new this.constructor(a,b)};M.style.Feature={};M.style.Feature=function(a,b){this.Io=null;M.Style.call(this,a,b)};v(M.style.Feature,M.Style);M.style.Feature.prototype.applyToFeature=function(a){this.Io=a;this.getImpl().applyToFeature(a)};M.style.Chart=
{};M.style.Chart=function(a){a=void 0===a?{}:a;var b=this,c=a.variables||null;Object.values(M.style.chart.types).includes(a.type)||(a.type=M.style.Chart.DEFAULT.type);M.utils.isNullOrEmpty(c)||(a.variables=c instanceof Array?c.filter(function(a){return null!=a}).map(function(a){return b.formatVariable_(a)}):"string"===typeof c||"object"===typeof c?[this.formatVariable_(c)]:[]);M.utils.isNullOrEmpty(a.scheme)?a.scheme=M.style.Chart.DEFAULT.scheme:"string"===typeof a.scheme?a.scheme===M.style.chart.schemes.Custom&&
a.variables.some(function(a){return null!=a.fillColor})?a.scheme=a.variables.map(function(a){return a.fillColor?a.fillColor:""}):a.scheme=M.style.chart.schemes[a.scheme]||M.style.Chart.DEFAULT.scheme:a.scheme instanceof Array&&a.scheme.every(function(a){return"string"===typeof a})||(a.scheme=M.style.Chart.DEFAULT.scheme);c=new M.impl.style.Chart(a);M.style.Feature.call(this,a,c)};v(M.style.Chart,M.style.Feature);M.style.Chart.prototype.formatVariable_=function(a){return null==a?null:a instanceof M.style.chart.Variable?
a:new M.style.chart.Variable("string"===typeof a?{attribute:a}:a)};M.style.Chart.prototype.updateCanvas=function(){if(M.utils.isNullOrEmpty(this.getImpl())||M.utils.isNullOrEmpty(this.j))return!1;this.getImpl().updateCanvas(this.j)};M.style.Chart.prototype.apply=function(a){var b=this;this.i=a;a.getFeatures().forEach(function(a){return a.setStyle(b.clone())});this.updateCanvas()};M.style.Chart.DEFAULT={kJ:"#369",type:M.style.chart.types.PIE,scheme:M.style.chart.schemes.Classic,radius:20,donutRatio:.5,
offsetX:0,offsetY:0,Dy:1};Object.defineProperty(M.style.Chart.prototype,"ORDER",{value:1});M.style.Simple={};M.style.Simple=function(a,b){M.style.Feature.call(this,a,b)};v(M.style.Simple,M.style.Feature);M.style.Simple.prototype.apply=function(a,b,c){var d=this;this.i=a;this.getImpl().applyToLayer(a);!0===b&&(c?a.getFeatures().forEach(function(a){return a.setStyle(null)}):a.getFeatures().forEach(function(a){return a.setStyle(d.clone())}));this.updateCanvas()};Object.defineProperty(M.style.Simple.prototype,
"ORDER",{value:1});M.style.Point={};M.style.Point=function(a){a=M.utils.isNullOrEmpty(a)?M.style.Point.DEFAULT_NULL:M.utils.extends(a,M.style.Point.DEFAULT);a=M.utils.extends({},a);var b=new M.impl.style.Point(a);M.style.Simple.call(this,a,b)};v(M.style.Point,M.style.Simple);M.style.Point.prototype.toImage=function(){return this.getImpl().toImage(this.j)};M.style.Point.DEFAULT={radius:5};M.style.Point.DEFAULT_NULL={fill:{color:"rgba(255, 255, 255, 0.4)",opacity:.4},stroke:{color:"#3399CC",width:1.5},
radius:5};M.style.Polygon={};M.style.Polygon=function(a){M.utils.isNullOrEmpty(a)&&(a=M.style.Polygon.DEFAULT_NULL);a=M.utils.extends({},a);var b=new M.impl.style.Polygon(a);M.style.Simple.call(this,a,b)};v(M.style.Polygon,M.style.Simple);M.style.Polygon.DEFAULT_NULL={fill:{color:"rgba(255, 255, 255, 0.4)",opacity:.4},stroke:{color:"#3399CC",width:1.5}};M.style.Line={};M.style.Line=function(a){M.utils.isNullOrEmpty(a)&&(a=M.style.Line.DEFAULT_NULL);a=M.utils.extends({},a);var b=new M.impl.style.Line(a);
M.style.Simple.call(this,a,b)};v(M.style.Line,M.style.Simple);M.style.Line.prototype.unapply=function(a){this.getImpl().unapply(a)};M.style.Line.DEFAULT_NULL={fill:{color:"rgba(255, 255, 255, 0.4)",opacity:.4},stroke:{color:"#3399CC",width:1.5}};M.style.Composite={};M.style.Composite=function(a,b){this.V=[];M.Style.call(this,a,b)};v(M.style.Composite,M.Style);h=M.style.Composite.prototype;h.apply=function(a){this.i=a;if(!M.utils.isNullOrEmpty(a)){var b=a.getStyle();this.Lc=b instanceof M.style.Cluster?
b.getOldStyle():b;this.updateInternal_(a)}};h.add=function(a){var b=this,c=this.i;this.unapplyInternal(this.i);M.utils.isArray(a)||(a=[a]);a=a.filter(function(a){return a.constructor!==b.constructor});M.utils.isNullOrEmpty(a.find(function(a){return!(a instanceof M.style.Cluster||a instanceof M.style.Proportional)}))||(this.V=this.V.filter(function(a){return a instanceof M.style.Cluster||a instanceof M.style.Proportional}));a.forEach(function(a){b.V=b.V.filter(function(b){return b.constructor!==a.constructor})});
this.V=this.V.concat(a);M.utils.isNullOrEmpty(c)||this.updateInternal_(c);return this};h.remove=function(a){var b=this.i;M.utils.isArray(a)||(a=[a]);M.utils.isNullOrEmpty(this.i)||this.unapplyInternal(this.i);this.V=this.V.filter(function(b){return!a.includes(b)});b.setStyle(this.Lc,!0);b.setStyle(this)};h.getStyles=function(){return this.V};h.getOldStyle=function(){return this.Lc};h.clear=function(){this.remove(this.V)};h.unapplyInternal=function(a){this.V.concat(this).sort(function(a,c){return M.utils.styleComparator(c,
a)}).forEach(function(b){b instanceof M.style.Composite&&b.unapplySoft(a)})};h.unapplySoft=function(){};h.unapply=function(a){this.unapplyInternal(a);this.i=null};h.updateInternal_=function(a){this.V.concat(this).sort(function(a,c){return M.utils.styleComparator(a,c)}).forEach(function(b){b instanceof M.style.Composite?b.applyInternal_(a):b instanceof M.Style&&b.apply(a,!0)})};M.style.Cluster={};M.style.Cluster=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;M.utils.extends(a,M.style.Cluster.DEFAULT);
M.utils.extends(b,M.style.Cluster.DEFAULT_VENDOR);this.Lc=null;b=new M.impl.style.Cluster(a,b);M.style.Composite.call(this,a,b)};v(M.style.Cluster,M.style.Composite);h=M.style.Cluster.prototype;h.unapplySoft=function(){this.getImpl().unapply()};h.add=function(a){M.utils.isNullOrEmpty(this.i)||this.unapplySoft(this.i);return M.style.Cluster.ab.add.call(this,a)};h.applyInternal_=function(a){this.i=a;this.getImpl().applyToLayer(a);this.updateCanvas()};h.getOldStyle=function(){return this.Lc};h.getRanges=
function(){return this.options_.ranges};h.getOptions=function(){return this.options_};h.setRanges=function(a){this.getImpl().setRanges(a);this.unapply(this.i);this.i.setStyle(this);return this};h.getRange=function(a,b){return this.options_.ranges.find(function(c){return c.min==a&&c.max==b})};h.updateRange=function(a,b,c){this.getImpl().updateRangeImpl(a,b,c,this.i,this);this.unapply(this.i);this.i.setStyle(this);return this};h.setAnimated=function(a){return this.getImpl().setAnimated(a,this.i,this)};
h.isAnimated=function(){return this.options_.animated};h.toImage=function(){return M.utils.isNullOrEmpty(this.Lc)?M.style.Cluster.ab.toImage.call(this,this):this.Lc.toImage()};h.refresh=function(){if(!M.utils.isNullOrEmpty(this.i)){var a=this.i;this.unapply(this.i);this.apply(a);this.updateCanvas()}};M.style.Cluster.DEFAULT={hoverInteraction:!0,displayAmount:!0,selectInteraction:!0,distance:60,animated:!0,maxFeaturesToSelect:15,label:{text:function(a){var b;a=a.getAttribute("features");M.utils.isNullOrEmpty(a)||
(b=a.length.toString());return b},color:"#fff",font:"bold 15px Arial",baseline:"middle",align:"center"}};M.style.Cluster.DEFAULT_VENDOR={animationDuration:250,animationMethod:"linear",distanceSelectFeatures:15,convexHullStyle:{fill:{color:"#fff",opacity:.25},stroke:{color:"#7b98bc"}}};M.style.Cluster.RANGE_1_DEFAULT={fill:{color:"#81c89a"},stroke:{color:"#6eb988",width:3},radius:15};M.style.Cluster.RANGE_2_DEFAULT={fill:{color:"#85b9d2"},stroke:{color:"#6da4be",width:3},radius:20};M.style.Cluster.RANGE_3_DEFAULT=
{fill:{color:"#938fcf"},stroke:{color:"#827ec5",width:3},radius:25};Object.defineProperty(M.style.Cluster.prototype,"ORDER",{value:4});M.style.quantification={};M.style.quantification.JENKS=function(a){function b(b,d){d=void 0===d?a:d;var c=M.style.quantification.uniqueArray_(b);d=c.length<=d?c.length-1:d;b.sort(function(a,b){return a-b});c=M.style.quantification.getMatrices_(b,d).GB;b=M.style.quantification.jenksBreaks_(b,c,d);return b.slice(1,b.length)}a=a||M.style.quantification.DEFAULT_CLASES_JENKS;
Object.defineProperty(b,"name",{value:"jenks"});return b};M.style.quantification.QUANTILE=function(a){function b(b,d){d=void 0===d?a:d;var c=M.style.quantification.uniqueArray_(b);d=c.length<=d?c.length-1:d;c=b.length;b.sort(function(a,b){return a-b});b=ja([b[0],b[c-1]]);c=b.next().value;b=b.next().value;for(var c=(c+b)/d,f=[],g=1;g<d;g++)f.push(c*g);f.push(b);return f}a=a||M.style.quantification.DEFAULT_CLASES_QUANTILE;Object.defineProperty(b,"name",{value:"quantile"});return b};Object.defineProperty(M.style.quantification.QUANTILE,
"name",{value:"quantile"});M.style.quantification.getMatrices_=function(a,b){for(var c=[],d=[],e=0,f=0;f<a.length+1;f++){for(var g=[],k=[],l=0;l<b+1;l++)g.push(0),k.push(0);c.push(g);d.push(k)}for(f=1;f<b+1;f++)for(c[1][f]=1,d[1][f]=0,g=2;g<a.length+1;g++)d[g][f]=Infinity;for(f=2;f<a.length+1;f++){for(var l=k=g=0,m,n=1;n<f+1;n++){var q=f-n+1,e=a[q-1];l++;g+=e;k+=e*e;e=k-g*g/l;m=q-1;if(0!==m)for(var r=2;r<b+1;r++)d[f][r]>=e+d[m][r-1]&&(c[f][r]=q,d[f][r]=e+d[m][r-1])}c[f][1]=1;d[f][1]=e}return{GB:c,
AJ:d}};M.style.quantification.jenksBreaks_=function(a,b,c){var d=a.length-1,e=[],f=c;e[c]=a[a.length-1];for(e[0]=a[0];1<f;)e[f-1]=a[b[d][f]-2],d=b[d][f]-1,f--;return e};M.style.quantification.uniqueArray_=function(a){var b=[];a.forEach(function(a){-1===b.indexOf(a)&&b.push(a)});return b};M.style.quantification.DEFAULT_CLASES_JENKS=5;M.style.quantification.DEFAULT_CLASES_QUANTILE=5;M.style.Choropleth={};M.style.Choropleth=function(a,b,c,d){c=void 0===c?M.style.quantification.JENKS():c;d=void 0===d?
{}:d;M.utils.isNullOrEmpty(a)&&M.exception("No se ha especificado el nombre del atributo.");this.attributeName_=a;this.choroplethStyles_=b;this.quantification_=c;this.dataValues_=[];this.breakPoints_=[];M.style.Composite.call(this,d,{})};v(M.style.Choropleth,M.style.Composite);h=M.style.Choropleth.prototype;h.applyInternal_=function(a){this.i=a;this.update_()};h.getAttributeName=function(){return this.attributeName_};h.setAttributeName=function(a){this.attributeName_=a;this.update_();this.refresh();
return this};h.getQuantification=function(){return this.quantification_};h.setQuantification=function(a){this.quantification_=a;if(!this.choroplethStyles_.some(function(a){return M.utils.isString(a)})){if(this.choroplethStyles_.length<this.quantification_().length){var b=ja(this.choroplethStyles_);a=b.next().value;var b=b.next().value,c=a.get("fill.color"),d=b.get("fill.color");M.utils.isNullOrEmpty(c)&&(c=a.get("stroke.color"));M.utils.isNullOrEmpty(d)&&(d=b.get("stroke.color"));this.choroplethStyles_=
[c,d]}else this.choroplethStyles_=this.choroplethStyles_.slice(0,this.quantification_().length);this.update_();this.refresh()}return this};h.getChoroplethStyles=function(){return this.choroplethStyles_};h.setStyles=function(a){M.utils.isArray(a)||(a=[a]);this.choroplethStyles_=a;this.update_();this.refresh();return this};h.updateCanvas=function(){var a=this;if(!M.utils.isNullOrEmpty(this.choroplethStyles_)&&0<this.breakPoints_.length){var b=[];this.ni=new Promise(function(c){return a.vg(0,b,c)})}};
h.vg=function(a,b,c){if(a===this.choroplethStyles_.length)this.drawGeometryToCanvas(b,c);else{var d=-1;0<a&&(d=this.breakPoints_[a-1]);var e=this.breakPoints_[a],f=new Image;f.crossOrigin="Anonymous";var g=this;f.onload=function(){b.push({image:this,startLimit:M.style.Choropleth.CALC_CANVAS_NUMBER_(d),endLimit:M.style.Choropleth.CALC_CANVAS_NUMBER_(e)});g.vg(a+1,b,c)};f.onerror=function(){b.push({startLimit:M.style.Choropleth.CALC_CANVAS_NUMBER_(d),endLimit:M.style.Choropleth.CALC_CANVAS_NUMBER_(e)});
g.vg(a+1,b,c)};this.choroplethStyles_[a].updateCanvas();f.src=this.choroplethStyles_[a].toImage()}};h.drawGeometryToCanvas=function(a,b){var c=a.map(function(a){return a.image.height}),d=a.map(function(a){return a.image.width}),e=this.j.getContext("2d");e.canvas.height=c.reduce(function(a,b){return a+b+5});e.textBaseline="middle";var f=Math.max.apply(d,d);a.forEach(function(a,b){var d=a.image,g=a.startLimit;a=a.endLimit;var k=0;b=c.slice(0,b);M.utils.isNullOrEmpty(b)||(k=b.reduce(function(a,b){return a+
b+5}),k+=5);b=0;M.utils.isNullOrEmpty(d)||(b=d.height,e.drawImage(d,0,k));0>g?e.fillText(" x  \x3c\x3d  "+a,f+5,k+b/2):e.fillText(g+" \x3c  x  \x3c\x3d  "+a,f+5,k+b/2)},this);b()};h.getValues=function(){var a=[];M.utils.isNullOrEmpty(this.i)||this.i.getFeatures().forEach(function(b){try{var c=parseFloat(b.getAttribute(this.attributeName_));isNaN(c)||a.push(c)}catch(d){}},this);return a};h.update_=function(){var a=this;if(!M.utils.isNullOrEmpty(this.i)){var b=this.i.getFeatures();if(!M.utils.isNullOrEmpty(b))if(this.dataValues_=
this.getValues(),M.utils.isNullOrEmpty(this.choroplethStyles_)||!M.utils.isNullOrEmpty(this.choroplethStyles_)&&(M.utils.isString(this.choroplethStyles_[0])||M.utils.isString(this.choroplethStyles_[1]))){this.breakPoints_=this.quantification_(this.dataValues_);var c=M.utils.generateColorScale(this.choroplethStyles_&&this.choroplethStyles_[0]?this.choroplethStyles_[0]:M.style.Choropleth.START_COLOR_DEFAULT,this.choroplethStyles_&&this.choroplethStyles_[1]?this.choroplethStyles_[1]:M.style.Choropleth.END_COLOR_DEFAULT,
this.breakPoints_.length);M.utils.isArray(c)||(c=[c]);var d=function(a,b){return a.map(function(a){return b(a)})};switch(M.utils.getGeometryType(this.i)){case M.geom.geojson.type.POINT:case M.geom.geojson.type.MULTI_POINT:this.choroplethStyles_=d(c,M.style.Choropleth.DEFAULT_STYLE_POINT);break;case M.geom.geojson.type.LINE_STRING:case M.geom.geojson.type.MULTI_LINE_STRING:this.choroplethStyles_=d(c,M.style.Choropleth.DEFAULT_STYLE_LINE);break;case M.geom.geojson.type.POLYGON:case M.geom.geojson.type.MULTI_POLYGON:this.choroplethStyles_=
d(c,M.style.Choropleth.DEFAULT_STYLE_POLYGON);break;default:return null}}else this.breakPoints_=this.quantification_(this.dataValues_,this.choroplethStyles_.length);c={};for(c.Aa=this.breakPoints_.length-1;-1<c.Aa;c={Aa:c.Aa},c.Aa--)(new M.filter.LTE(this.attributeName_,this.breakPoints_[c.Aa])).execute(b).forEach(function(b){return function(c){return c.setStyle(a.choroplethStyles_[b.Aa])}}(c));this.updateCanvas()}};M.style.Choropleth.DEFAULT_STYLE_POINT=function(a){return new M.style.Point({fill:{color:a,
opacity:1},stroke:{color:"black",width:1},radius:5})};M.style.Choropleth.DEFAULT_STYLE_LINE=function(a){return new M.style.Line({stroke:{color:a,width:1}})};M.style.Choropleth.DEFAULT_STYLE_POLYGON=function(a){return new M.style.Polygon({fill:{color:a,opacity:1},stroke:{color:a,width:1}})};M.style.Choropleth.START_COLOR_DEFAULT="red";M.style.Choropleth.END_COLOR_DEFAULT="brown";M.style.Choropleth.ACCURACY_NUMBER_CANVAS=2;M.style.Choropleth.CALC_CANVAS_NUMBER_=function(a){var b=Math.pow(10,M.style.Choropleth.ACCURACY_NUMBER_CANVAS);
return Math.round(a*b)/b};M.style.Choropleth.prototype.add=function(a){M.utils.isArray(a)||(a=[a]);a=a.filter(function(a){return a instanceof M.style.Cluster||a instanceof M.style.Proportional});return M.style.Choropleth.ab.add.call(this,a)};Object.defineProperty(M.style.Choropleth.prototype,"ORDER",{value:2});M.style.Category={};M.style.Category=function(a,b,c){c=void 0===c?{}:c;M.utils.isNullOrEmpty(a)&&M.exception("No se ha especificado el nombre del atributo.");this.attributeName_=a;this.categoryStyles_=
b;M.style.Composite.call(this,c,{})};v(M.style.Category,M.style.Composite);h=M.style.Category.prototype;h.applyInternal_=function(a){this.i=a;this.update_()};h.getAttributeName=function(){return this.attributeName_};h.setAttributeName=function(a){this.attributeName_=a;this.update_();this.refresh();return this};h.getCategories=function(){return this.categoryStyles_};h.setCategories=function(a){this.categoryStyles_=a;this.update_();this.refresh();return this};h.getStyleForCategory=function(a){return this.categoryStyles_[a]};
h.setStyleForCategory=function(a,b){this.categoryStyles_[a]=b;this.update_();this.refresh();return this};h.updateCanvas=function(){var a=this,b=[];this.ni=new Promise(function(c){return a.vg(0,b,c)})};h.vg=function(a,b,c){var d=this.getCategories(),d=Object.keys(d);if(a===d.length)this.drawGeometryToCanvas(b,c);else{var e=d[a],f=this.getStyleForCategory(e),g=new Image;g.crossOrigin="Anonymous";var k=this;g.onload=function(){b.push({image:this,categoryName:e});k.vg(a+1,b,c)};g.onerror=function(){b.push({categoryName:e});
k.vg(a+1,b,c)};f.updateCanvas();f.get("icon.src")?M.utils.getImageSize(f.get("icon.src")).then(function(a){g.width=f.get("icon.scale")?a.width*f.get("icon.scale"):a.width;g.height=f.get("icon.scale")?a.height*f.get("icon.scale"):a.height;g.src=f.toImage()}):g.src=f.toImage()}};h.drawGeometryToCanvas=function(a,b){var c=a.map(function(a){return a.image.height}),d=a.map(function(a){return a.image.width}),e=this.j.getContext("2d");e.canvas.height=c.reduce(function(a,b){return a+b+5});e.textBaseline=
"middle";var f=Math.max.apply(d,d);a.forEach(function(a,b){var d=a.image;a=a.categoryName;var g=0;b=c.slice(0,b);M.utils.isNullOrEmpty(b)||(g=b.reduce(function(a,b){return a+b+5}),g+=5);b=0;M.utils.isNullOrEmpty(d)||(b=d.height,e.drawImage(d,(f-d.width)/2,g,d.width,d.height));e.fillText(a,f+5,g+b/2)},this);b()};h.update_=function(){if(!M.utils.isNullOrEmpty(this.i)){if(M.utils.isNullOrEmpty(this.categoryStyles_)||0===Object.keys(this.categoryStyles_).length)this.categoryStyles_=this.generateRandomCategories_();
var a=this.categoryStyles_.other;this.i.getFeatures().forEach(function(b){var c=b.getAttribute(this.attributeName_),c=this.categoryStyles_[c];M.utils.isNullOrEmpty(c)?M.utils.isNullOrEmpty(a)||b.setStyle(a):b.setStyle(c)}.bind(this));this.updateCanvas()}};h.add=function(a){M.utils.isArray(a)||(a=[a]);a=a.filter(function(a){return a instanceof M.style.Cluster||a instanceof M.style.Proportional});return M.style.Category.ab.add.call(this,a)};h.generateRandomCategories_=function(){var a=this,b={};M.utils.isNullOrEmpty(this.i)||
this.i.getFeatures().forEach(function(c){var d=c.getAttribute(a.attributeName_);b.hasOwnProperty(d)||(b[d]=M.utils.generateRandomStyle(c,M.style.Category.RANDOM_RADIUS_OPTION,M.style.Category.RANDOM_STROKE_WIDTH_OPTION,M.style.Category.RANDOM_STROKE_COLOR_OPTION))});return b};Object.defineProperty(M.style.Category.prototype,"ORDER",{value:2});M.style.Category.RANDOM_RADIUS_OPTION=10;M.style.Category.RANDOM_STROKE_WIDTH_OPTION=1;M.style.Category.RANDOM_STROKE_COLOR_OPTION="black";M.style.Proportional=
{};M.style.Proportional=function(a,b,c,d,e,f){f=void 0===f?{}:f;M.utils.isNullOrEmpty(a)&&M.exception("No se ha especificado el nombre del atributo.");this.attributeName_=a;this.minRadius_=parseInt(b)||5;this.maxRadius_=parseInt(c)||15;this.style_=d;this.proportionalFunction_=e||function(a,b,c,d,e){return(a-b)*(e-d)/(c-b)+d};this.maxRadius_<this.minRadius_&&(this.minRadius_=c,this.maxRadius_=b);M.style.Composite.call(this,f,{});M.utils.isNullOrEmpty(this.style_)||this.V.push(this.style_)};v(M.style.Proportional,
M.style.Composite);h=M.style.Proportional.prototype;h.applyInternal_=function(a){this.i=a;this.update_()};h.applyToFeature=function(a){var b=a.getStyle()?a.getStyle():this.i.getStyle();M.utils.isNullOrEmpty(b)||(!(b instanceof M.style.Point)&&b instanceof M.style.Simple?b=new M.style.Point(b.options_):b instanceof M.style.Composite&&(b=new M.style.Point(b.getOldStyle().options_)),b=this.calculateStyle_(a,{Cu:this.minRadius_,uu:this.maxRadius_,minValue:this.Bj,maxValue:this.Ah},b),a.setStyle(b))};
h.update_=function(){var a=this;if(!M.utils.isNullOrEmpty(this.i)){M.utils.isNullOrEmpty(this.style_);this.Lc=this.i.getStyle()instanceof M.style.Composite?this.i.getStyle().getOldStyle():this.i.getStyle();var b=ja(M.style.Proportional.getMinMaxValues_(this.i.getFeatures(),this.attributeName_));this.Bj=b.next().value;this.Ah=b.next().value;this.i.getFeatures().forEach(function(b){return a.applyToFeature(b,1)});b=this.Lc.clone();b instanceof M.style.Simple&&(b instanceof M.style.Point||(b=new M.style.Point(b.options_)),
b.set("zindex",function(b){return a.Ah-parseFloat(b.getAttribute(a.attributeName_))}),b.set(M.style.Proportional.getSizeAttribute_(b),function(b){var c=M.style.Proportional.SCALE_PROPORTION;b=b.getAttribute(a.attributeName_);var e=a.proportionalFunction_(b,a.Bj,a.Ah,a.minRadius_,a.maxRadius_);"icon.scale"===M.style.Proportional.getSizeAttribute_(a.Lc)&&(e=a.proportionalFunction_(b,a.Bj,a.Ah,a.minRadius_/c,a.maxRadius_/c));return e}),this.updateCanvas())}};h.getAttributeName=function(){return this.attributeName_};
h.setAttributeName=function(a){this.attributeName_=a;this.update_();return this};h.getStyle=function(){console.warn("Deprecated function: Use getStyles instead.");return this.style_};h.setStyle=function(a){this.style_=a;this.update_();return this};h.getMinRadius=function(){return this.minRadius_};h.setProportionalFunction=function(a){this.proportionalFunction_=a;this.update_()};h.getProportionalFunction=function(){return this.proportionalFunction_};h.setMinRadius=function(a){this.minRadius_=parseInt(a);
a>=this.maxRadius_&&M.exception("No puede establecerse un radio m\u00ednimo mayor que el m\u00e1ximo.");this.update_();return this};h.getMaxRadius=function(){return this.maxRadius_};h.setMaxRadius=function(a){this.maxRadius_=parseInt(a);a<=this.minRadius_&&M.exception("No puede establecerse un radio m\u00e1ximo menor que el m\u00ednimo.");this.update_();return this};h.updateCanvas=function(){var a=this;this.ni=new Promise(function(b){if(!M.utils.isNullOrEmpty(a.i)){var c=M.utils.isNullOrEmpty(a.style_)?
a.i.getStyle():a.style_;if(c instanceof M.style.Simple){var d=c.clone();d instanceof M.style.Point||(d=new M.style.Point(d.options_));var c=M.style.Proportional.getSizeAttribute_(d),e=d.clone(),f=d.clone(),d=a.getMaxRadius(),g=a.getMinRadius();e.set(c,d);f.set(c,g);a.loadCanvasImage_(d,e.toImage(),function(c){a.loadCanvasImage_(g,f.toImage(),function(d){a.drawGeometryToCanvas(c,d,b)})})}else M.utils.isNullOrEmpty(c)||(a.j=c.j,b())}})};h.loadCanvasImage_=function(a,b,c){var d=new Image;d.crossOrigin=
"Anonymous";d.onload=function(){c({image:this,value:a})};d.onerror=function(){c({value:a})};d.src=b};h.drawGeometryToCanvas=function(a,b,c){a=a.image;b=b.image;this.j.height=a.height+5+b.height+5;var d=this.j.getContext("2d");d.textBaseline="middle";var e=0,f;M.utils.isNullOrEmpty(a)||(e=a.width+5,f=a.height/2,/^https?:\/\//i.test(a.src)?(this.j.height=130,d.fillText("  max: "+this.Ah,85,40),d.drawImage(a,0,0,80,80)):(d.fillText("  max: "+this.Ah,e,f),d.drawImage(a,0,0)));if(!M.utils.isNullOrEmpty(b)){var g=
0;M.utils.isNullOrEmpty(a)||(g=a.width/2-b.width/2);a=a.height+5;f=a+b.height/2;/^https?:\/\//i.test(b.src)?(d.fillText("  min: "+this.Bj,85,105),d.drawImage(b,20,85,40,40)):(d.fillText("  min: "+this.Bj,e,f),d.drawImage(b,g,a))}c()};M.style.Proportional.getMinMaxValues_=function(a,b){var c=ja([void 0,void 0]),d=c.next().value,c=c.next().value;a=a.filter(function(a){return![NaN,void 0,null].includes(a.getAttribute(b))}).map(function(a){return parseInt(a.getAttribute(b))});var e=1;if(!M.utils.isNullOrEmpty(a))for(d=
a[0],c=a[0];e<a.length-1;){var f=a[e+1],d=d<f?d:f,c=c<f?f:c;e++}return[d,c]};M.style.Proportional.getSizeAttribute_=function(a){var b="radius";M.utils.isNullOrEmpty(a.get("icon"))||(b=M.utils.isNullOrEmpty(a.get("icon.src"))?"icon.radius":"icon.scale");return b};M.style.Proportional.prototype.calculateStyle_=function(a,b,c){if(!M.utils.isNullOrEmpty(c)){c=c.clone();var d=ja([b.Cu,b.uu]),e=d.next().value,d=d.next().value;M.utils.isNullOrEmpty(c.get("icon.src"))||(e=b.Cu/M.style.Proportional.SCALE_PROPORTION,
d=b.uu/M.style.Proportional.SCALE_PROPORTION);var f=a.getAttribute(this.attributeName_);null==f&&console.warn("Warning: "+this.attributeName_+" value is null or empty.");e=this.proportionalFunction_(f,b.minValue,b.maxValue,e,d);a=b.maxValue-parseFloat(a.getAttribute(this.attributeName_));c.set(M.style.Proportional.getSizeAttribute_(c),e);c.set("zindex",a)}return c};M.style.Proportional.SCALE_PROPORTION=20;Object.defineProperty(M.style.Proportional.prototype,"ORDER",{value:3});M.style.Heatmap={};M.style.Heatmap=
function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;M.utils.isString(a)||M.utils.isFunction(a)||M.exception("Attribute parameter can not be empty (string or function)");M.utils.extends(b,M.style.DEFAULT_OPTIONS);this.attribute=a;this.options_=b;M.utils.isNullOrEmpty(b.gradient)||M.utils.isArray(b.gradient)||(b.gradient=[b.gradient]);this.options_.gradient=b.gradient||M.style.Heatmap.DEFAULT_OPTIONS.gradient;if(2>this.options_.gradient.length){var d=M.utils.inverseColor(b.gradient[0]);this.options_.gradient.push(d)}this.options_.blur=
parseFloat(b.blur)||M.style.Heatmap.DEFAULT_OPTIONS.blur;this.options_.radius=parseFloat(b.radius)||M.style.Heatmap.DEFAULT_OPTIONS.radius;this.options_.weight=this.attribute;c.opacity=isNaN(c.opacity)?1:parseFloat(c.opacity);this.Gw=c;a=new M.impl.style.Heatmap(a,this.options_,this.Gw);M.Style.call(this,b,a)};v(M.style.Heatmap,M.Style);h=M.style.Heatmap.prototype;h.unapply=function(a){this.i=null;this.getImpl().unapply(a)};h.getAttributeName=function(){return this.attribute};h.setAttributeName=function(a){this.attribute=
a;this.options_.weight=this.attribute;this.update_()};h.getGradient=function(){return this.options_.gradient};h.setGradient=function(a){M.utils.isArray(a)||(a=[a]);if(2>a.length){var b=M.utils.inverseColor(a[0]);a.push(b)}this.options_.gradient=a;this.update_()};h.getRadius=function(){return this.options_.radius};h.setRadius=function(a){this.options_.radius=a;this.update_()};h.getBlurSize=function(){return this.options_.blur};h.setBlurSize=function(a){this.options_.blur=a;this.update_()};h.update_=
function(){var a=this.getImpl();a.unapply(this.i);a.RD(this.options_,this.Gw);a.applyToLayer(this.i)};h.drawGeometryToCanvas=function(){var a=ja([this.getImpl().ap(),this.getImpl().$o()]),b=a.next().value,a=a.next().value,c=this.j.getContext("2d"),d=c.createLinearGradient(0,150,200,150),e=M.utils.generateIntervals([0,1],this.options_.gradient.length);this.options_.gradient.forEach(function(a,b){return d.addColorStop(e[b],a)});c.fillStyle=d;c.fillRect(0,20,200,30);c.fillStyle="#000";c.font="10px sans-serif";
c.fillText(b,0,60);c.fillText(a,199,60)};h.updateCanvas=function(){this.drawGeometryToCanvas()};M.style.Heatmap.DEFAULT_OPTIONS={gradient:["#00f","#0ff","#0f0","#ff0","#f00"],blur:15,radius:10};M.Map={};M.Map=function(a,b){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan par\u00e1metro");M.utils.isUndefined(M.impl.Map)&&M.exception("La implementaci\u00f3n usada no posee un constructor");this._panels=[];this._plugins=[];this.Fa=this._areasContainer=null;this._defaultProj=!0;this.panel=
{LEFT:null,RIGHT:"null"};this.Tr=null;this.Nn=this.Mn=!0;this.Ir=this.Jr=!1;this.Te=this.Tg=null;var c=this;a=new M.Parameters(a);pb(a.container,"m-mapea-container");b=new M.impl.Map(a.container,b||{});b.setFacadeMap(this);b.on(M.evt.COMPLETED,function(){c.Jr=!0;c.Kn()});M.facade.Base.call(this,b);this.Yy();this.ne=new M.handler.Features;this.ne.addTo(this);this.ne.activate();this.Te=new M.layer.Vector({name:"__draw__"},{displayInLayerSwitcher:!1});this.Te.setStyle(new M.style.Point(M.Map.DRAWLAYER_STYLE));
this.Te.setZIndex(M.impl.Map.Z_INDEX[M.layer.type.WFS]+999);this.addLayers(this.Te);M.utils.isNullOrEmpty(a.projection)?this.setProjection(M.config.DEFAULT_PROJ,!0):this.setProjection(a.projection);M.utils.isNullOrEmpty(a.bbox)||this.setBbox(a.bbox);M.utils.isNullOrEmpty(a.resolutions)||this.setResolutions(a.resolutions);M.utils.isNullOrEmpty(a.layers)||this.addLayers(a.layers);M.utils.isNullOrEmpty(a.wmc)||this.addWMC(a.wmc);M.utils.isNullOrEmpty(a.wms)||this.addWMS(a.wms);M.utils.isNullOrEmpty(a.wmts)||
this.addWMTS(a.wmts);M.utils.isNullOrEmpty(a.kml)||this.addKML(a.kml);M.utils.isNullOrEmpty(a.controls)?this.addControls("panzoom"):this.addControls(a.controls);M.utils.isNullOrEmpty(a.getfeatureinfo)||("plain"!==a.getfeatureinfo&&"html"!==a.getfeatureinfo&&"gml"!==a.getfeatureinfo?M.dialog.error("El formato solicitado para la informaci\u00f3n no est\u00e1 disponible. Int\u00e9ntelo utilizando gml, plain o html."):(b=new M.control.GetFeatureInfo(a.getfeatureinfo),this.addControls(b)));M.utils.isNullOrEmpty(a.wmc)&&
M.utils.isNullOrEmpty(a.layers)&&this.addWMC(M.config.predefinedWMC.predefinedNames[0]);M.utils.isNullOrEmpty(a.maxExtent)||(b=M.utils.isNullOrEmpty(a.zoom)&&M.utils.isNullOrEmpty(a.bbox),this.setMaxExtent(a.maxExtent,b));M.utils.isNullOrEmpty(a.center)?(this.Mn=!1,this.tt().then(function(a){var b=c.getCenter();M.utils.isNullOrEmpty(b)&&c.setCenter(a);c.Mn=!0;c.Kn()})):this.setCenter(a.center);M.utils.isNullOrEmpty(a.zoom)||this.setZoom(a.zoom);M.utils.isNullOrEmpty(a.label)||this.addLabel(a.label);
M.utils.isNullOrEmpty(a.bbox)&&M.utils.isNullOrEmpty(a.zoom)&&M.utils.isNullOrEmpty(a.center)&&this.zoomToMaxExtent(!0);M.utils.isNullOrEmpty(a.ticket)||this.setTicket(a.ticket)};v(M.Map,M.facade.Base);h=M.Map.prototype;h.getLayers=function(a){M.utils.isUndefined(M.impl.Map.prototype.getLayers)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getLayers");M.utils.isNull(a)?a=[]:M.utils.isArray(a)||(a=[a]);var b=[];0<a.length&&(b=a.map(M.parameter.layer));return this.getImpl().getLayers(b).sort(M.Map.LAYER_SORT)};
h.getBaseLayers=function(){M.utils.isUndefined(M.impl.Map.prototype.getBaseLayers)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getBaseLayers");return this.getImpl().getBaseLayers().sort(M.Map.LAYER_SORT)};h.getFeatureHandler=function(){return this.ne};h.addLayers=function(a){M.utils.isNullOrEmpty(a)||(M.utils.isUndefined(M.impl.Map.prototype.addLayers)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo addLayers"),M.utils.isArray(a)||(a=[a]),a=a.map(function(a){var b;
if(a instanceof M.Layer)b=a;else try{var d=M.parameter.layer(a);M.utils.isNullOrEmpty(d.type)?M.dialog.error("No se ha especificado un tipo v\u00e1lido para la capa"):b=new M.layer[d.type](a)}catch(e){M.dialog.error("El formato de la capa ("+a+") no se reconoce")}!(b instanceof M.layer.Vector)||b instanceof M.layer.KML||b instanceof M.layer.WFS||this.ne.addLayer(b);return b},this),this.getImpl().addLayers(a),this.fire(M.evt.ADDED_LAYER,[a]));return this};h.removeLayers=function(a){M.utils.isNullOrEmpty(a)||
(M.utils.isUndefined(M.impl.Map.prototype.removeLayers)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo removeLayers"),a=this.getLayers(a),a.forEach(function(a){a instanceof M.layer.Vector&&this.ne.removeLayer(a)},this),this.getImpl().removeLayers(a));return this};h.getWMC=function(a){M.utils.isUndefined(M.impl.Map.prototype.getWMC)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getWMC");M.utils.isNull(a)?a=[]:M.utils.isArray(a)||(a=[a]);var b=[];0<a.length&&
(b=a.map(function(a){return M.parameter.layer(a,M.layer.type.WMC)}));return this.getImpl().getWMC(b).sort(M.Map.LAYER_SORT)};h.addWMC=function(a){if(!M.utils.isNullOrEmpty(a)){M.utils.isUndefined(M.impl.Map.prototype.addWMC)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo addWMC");M.utils.isArray(a)||(a=[a]);var b=[];a.forEach(function(a){if(M.utils.isObject(a)&&a instanceof M.layer.WMC)b.push(a);else if(!(a instanceof M.Layer))try{b.push(new M.layer.WMC(a,a.options))}catch(d){M.dialog.error(d)}});
this.getImpl().addWMC(b);this.fire(M.evt.ADDED_LAYER,[b]);this.fire(M.evt.ADDED_WMC,[b]);a=this.getWMC();null==a.filter(function(a){return!0===a.selected})[0]&&a[0].select();1<a.length&&(this.removeControls("wmcselector"),this.addControls(new M.control.WMCSelector))}return this};h.yv=function(){this.removeControls("wmcselector");1===this.getWMC().length?this.getWMC()[0].select():1<this.getWMC().length&&(this.addControls(new M.control.WMCSelector),null==this.getWMC().filter(function(a){return!0===
a.selected})[0]&&this.getWMC()[0].select())};h.removeWMC=function(a){M.utils.isNullOrEmpty(a)||(M.utils.isUndefined(M.impl.Map.prototype.removeWMC)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo removeWMC"),a=this.getWMC(a),0<a.length&&this.getImpl().removeWMC(a));return this};h.getKML=function(a){M.utils.isUndefined(M.impl.Map.prototype.getKML)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getKML");M.utils.isNull(a)?a=[]:M.utils.isArray(a)||(a=[a]);var b=
[];0<a.length&&(b=a.map(function(a){return M.parameter.layer(a,M.layer.type.KML)}));return this.getImpl().getKML(b).sort(M.Map.LAYER_SORT)};h.addKML=function(a){if(!M.utils.isNullOrEmpty(a)){M.utils.isUndefined(M.impl.Map.prototype.addKML)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo addKML");M.utils.isArray(a)||(a=[a]);var b=[];a.forEach(function(a){var c;M.utils.isObject(a)&&a instanceof M.layer.KML?c=a:a instanceof M.Layer||(c=new M.layer.KML(a,a.options));!0===c.extract&&
this.ne.addLayer(c);b.push(c)},this);this.getImpl().addKML(b);this.fire(M.evt.ADDED_LAYER,[b]);this.fire(M.evt.ADDED_KML,[b])}return this};h.removeKML=function(a){M.utils.isNullOrEmpty(a)||(M.utils.isUndefined(M.impl.Map.prototype.removeKML)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo removeKML"),a=this.getKML(a),0<a.length&&(a.forEach(function(a){this.ne.removeLayer(a)}.bind(this)),this.getImpl().removeKML(a)));return this};h.getWMS=function(a){M.utils.isUndefined(M.impl.Map.prototype.getWMS)&&
M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getWMS");M.utils.isNull(a)?a=[]:M.utils.isArray(a)||(a=[a]);var b=[];0<a.length&&(b=a.map(function(a){return M.parameter.layer(a,M.layer.type.WMS)}));return this.getImpl().getWMS(b).sort(M.Map.LAYER_SORT)};h.addWMS=function(a){if(!M.utils.isNullOrEmpty(a)){M.utils.isUndefined(M.impl.Map.prototype.addWMS)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo addWMS");M.utils.isArray(a)||(a=[a]);var b=[];a.forEach(function(a){M.utils.isObject(a)&&
a instanceof M.layer.WMS?b.push(a):a instanceof M.Layer||b.push(new M.layer.WMS(a,a.options))});this.getImpl().addWMS(b);this.fire(M.evt.ADDED_LAYER,[b]);this.fire(M.evt.ADDED_WMS,[b])}return this};h.removeWMS=function(a){M.utils.isNullOrEmpty(a)||(M.utils.isUndefined(M.impl.Map.prototype.removeWMS)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo removeWMS"),a=this.getWMS(a),0<a.length&&this.getImpl().removeWMS(a));return this};h.getWFS=function(a){M.utils.isUndefined(M.impl.Map.prototype.getWFS)&&
M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getWFS");M.utils.isNull(a)?a=[]:M.utils.isArray(a)||(a=[a]);var b=[];0<a.length&&(b=a.map(function(a){return M.parameter.layer(a,M.layer.type.WFS)}));return this.getImpl().getWFS(b).sort(M.Map.LAYER_SORT)};h.addWFS=function(a){if(!M.utils.isNullOrEmpty(a)){M.utils.isUndefined(M.impl.Map.prototype.addWFS)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo addWFS");M.utils.isArray(a)||(a=[a]);var b=[];a.forEach(function(a){var c;
if(M.utils.isObject(a)&&a instanceof M.layer.WFS)c=a;else if(!(a instanceof M.Layer))try{c=new M.layer.WFS(a,a.options)}catch(e){M.dialog.error(e)}this.ne.addLayer(c);b.push(c)},this);this.getImpl().addWFS(b);this.fire(M.evt.ADDED_LAYER,[b]);this.fire(M.evt.ADDED_WFS,[b])}return this};h.removeWFS=function(a){M.utils.isNullOrEmpty(a)||(M.utils.isUndefined(M.impl.Map.prototype.removeWFS)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo removeWFS"),a=this.getWFS(a),0<a.length&&(a.forEach(function(a){this.ne.removeLayer(a)}.bind(this)),
this.getImpl().removeWFS(a)));return this};h.getWMTS=function(a){M.utils.isUndefined(M.impl.Map.prototype.getWMTS)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getWMTS");M.utils.isNull(a)?a=[]:M.utils.isArray(a)||(a=[a]);var b=[];0<a.length&&(b=a.map(function(a){return M.parameter.layer(a,M.layer.type.WMTS)}));return this.getImpl().getWMTS(b).sort(M.Map.LAYER_SORT)};h.addWMTS=function(a){if(!M.utils.isNullOrEmpty(a)){M.utils.isUndefined(M.impl.Map.prototype.addWMTS)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo addWMTS");
M.utils.isArray(a)||(a=[a]);var b=[];a.forEach(function(a){M.utils.isObject(a)&&a instanceof M.layer.WMTS?b.push(a):a instanceof M.Layer||b.push(new M.layer.WMTS(a,a.options))});this.getImpl().addWMTS(b);this.fire(M.evt.ADDED_LAYER,[b]);this.fire(M.evt.ADDED_WMTS,[b])}return this};h.removeWMTS=function(a){M.utils.isNullOrEmpty(a)||(M.utils.isUndefined(M.impl.Map.prototype.removeWMTS)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo removeWMTS"),a=this.getWMTS(a),0<a.length&&this.getImpl().removeWMTS(a));
return this};h.getMBtiles=function(a){M.utils.isUndefined(M.impl.Map.prototype.getMBtiles)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getMBtiles");M.utils.isNull(a)?a=[]:M.utils.isArray(a)||(a=[a]);var b=[];0<a.length&&(b=a.map(M.parameter.layer));return this.getImpl().getMBtiles(b).sort(M.Map.LAYER_SORT)};h.addMBtiles=function(){};h.removeMBtiles=function(){};h.getControls=function(a){M.utils.isUndefined(M.impl.Map.prototype.getControls)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getControls");
M.utils.isNull(a)?a=[]:M.utils.isArray(a)||(a=[a]);return this.getImpl().getControls(a)};h.addControls=function(a){if(!M.utils.isNullOrEmpty(a)){M.utils.isUndefined(M.impl.Map.prototype.addControls)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo addControls");M.utils.isArray(a)||(a=[a]);for(var b=[],c=0,d=a.length;c<d;c++){var e=a[c],f,g;if(M.utils.isString(e))switch(e=M.utils.normalize(e),e){case M.control.Scale.NAME:f=new M.control.Scale;g=this.getPanels("map-info")[0];M.utils.isNullOrEmpty(g)&&
(g=new M.ui.Panel("map-info",{collapsible:!1,className:"m-map-info",position:M.ui.position.BR}),g.on(M.evt.ADDED_TO_MAP,function(){3===this.getControls(["wmcselector","scale","scaleline"]).length&&pb(this.getControls(["scaleline"])[0].getImpl().getElement(),"ol-scale-line-up")},this));g.addClassName("m-with-scale");break;case M.control.ScaleLine.NAME:f=new M.control.ScaleLine;g=new M.ui.Panel(M.control.ScaleLine.NAME,{collapsible:!1,className:"m-scaleline",position:M.ui.position.BL,tooltip:"L\u00ednea de escala"});
g.on(M.evt.ADDED_TO_MAP,function(){3===this.getControls(["wmcselector","scale","scaleline"]).length&&pb(this.getControls(["scaleline"])[0].getImpl().getElement(),"ol-scale-line-up")},this);break;case M.control.Panzoombar.NAME:f=new M.control.Panzoombar;g=new M.ui.Panel(M.control.Panzoombar.NAME,{collapsible:!1,className:"m-panzoombar",position:M.ui.position.TL,tooltip:"Nivel de zoom"});break;case M.control.Panzoom.NAME:f=new M.control.Panzoom;g=new M.ui.Panel(M.control.Panzoom.NAME,{collapsible:!1,
className:"m-panzoom",position:M.ui.position.TL});break;case M.control.LayerSwitcher.NAME:f=new M.control.LayerSwitcher;(function(a){g=new M.ui.Panel(M.control.LayerSwitcher.NAME,{collapsible:!0,className:"m-layerswitcher",collapsedButtonClass:"g-cartografia-capas2",position:M.ui.position.TR,tooltip:"Selector de capas"});g.on(M.evt.ADDED_TO_MAP,function(a){M.utils.enableTouchScroll(a.querySelector(".m-panel-controls"))},this);g.on(M.evt.SHOW,function(){a.registerEvents();a.render()},this);g.on(M.evt.HIDE,
function(){a.unregisterEvents()},this)})(f);break;case M.control.Mouse.NAME:f=new M.control.Mouse;g=this.getPanels("map-info")[0];M.utils.isNullOrEmpty(g)&&(g=new M.ui.Panel("map-info",{collapsible:!1,className:"m-map-info",position:M.ui.position.BR,tooltip:"Coordenadas del puntero"}));g.addClassName("m-with-mouse");break;case M.control.Navtoolbar.NAME:f=new M.control.Navtoolbar;break;case M.control.OverviewMap.NAME:f=new M.control.OverviewMap({toggleDelay:400});g=this.getPanels("map-info")[0];M.utils.isNullOrEmpty(g)&&
(g=new M.ui.Panel("map-info",{collapsible:!1,className:"m-map-info",position:M.ui.position.BR}));g.addClassName("m-with-overviewmap");break;case M.control.Location.NAME:f=new M.control.Location;g=new M.ui.Panel(M.control.Location.NAME,{collapsible:!1,className:"m-location",position:M.ui.position.BR});break;case M.control.GetFeatureInfo.NAME:f=new M.control.GetFeatureInfo;break;default:var k=M.utils.concatUrlPaths([M.config.MAPEA_URL,"/api/actions/controls"]);M.dialog.error('El control "'.concat(e).concat('" no est\u00e1 definido. Consulte los controles disponibles \x3ca href\x3d"'+
k+'" target\x3d"_blank"\x3eaqu\u00ed\x3c/a\x3e'))}else e instanceof M.Control?(f=e,f instanceof M.control.WMCSelector&&(g=this.getPanels("map-info")[0],M.utils.isNullOrEmpty(g)&&(g=new M.ui.Panel("map-info",{collapsible:!1,className:"m-map-info",position:M.ui.position.BR}),g.on(M.evt.ADDED_TO_MAP,function(){3===this.getControls(["wmcselector","scale","scaleline"]).length&&pb(this.getControls(["scaleline"])[0].getImpl().getElement(),"ol-scale-line-up")},this)),g.addClassName("m-with-wmcselector"))):
M.exception('El control "'.concat(e).concat('" no es un control v\u00e1lido.'));-1!==M.config.panels.TOOLS.indexOf(f.name)?(M.utils.isNullOrEmpty(this.panel.TOOLS)&&(this.panel.TOOLS=new M.ui.Panel("tools",{collapsible:!0,className:"m-tools",collapsedButtonClass:"g-cartografia-herramienta",position:M.ui.position.TL,tooltip:"Panel de herramientas"})),g=this.panel.TOOLS):-1!==M.config.panels.EDITION.indexOf(f.name)&&(M.utils.isNullOrEmpty(this.panel.EDITION)&&(this.panel.EDITION=new M.ui.Panel("edit",
{collapsible:!0,className:"m-edition",collapsedButtonClass:"g-cartografia-editar",position:M.ui.position.TL,tooltip:"Herramientas de edici\u00f3n"})),g=this.panel.EDITION);M.utils.isNullOrEmpty(g)||g.hasControl(f)?(f.addTo(this),b.push(f)):(g.addControls(f),this.addPanels(g))}this.getImpl().addControls(b)}return this};h.removeControls=function(a){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan control a eliminar");M.utils.isUndefined(M.impl.Map.prototype.removeControls)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo removeControls");
a=this.getControls(a);a=[].concat(a);0<a.length&&(a.forEach(function(a){M.utils.isNullOrEmpty(a.getPanel())||a.getPanel().removeControls(a)},this),this.getImpl().removeControls(a));return this};h.getMaxExtent=function(){M.utils.isUndefined(M.impl.Map.prototype.getMaxExtent)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getMaxExtent");return this.getImpl().getMaxExtent()};h.setMaxExtent=function(a,b){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan maxExtent");
M.utils.isUndefined(M.impl.Map.prototype.setMaxExtent)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo setMaxExtent");try{var c=M.parameter.maxExtent(a);this.getImpl().setMaxExtent(c,b)}catch(d){M.dialog.error(d)}return this};h.getBbox=function(){M.utils.isUndefined(M.impl.Map.prototype.getBbox)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getBbox");return this.getImpl().getBbox()};h.setBbox=function(a,b){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan bbox");
M.utils.isUndefined(M.impl.Map.prototype.setBbox)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo setBbox");try{var c=M.parameter.maxExtent(a);this.getImpl().setBbox(c,b)}catch(d){M.dialog.error("El formato del par\u00e1metro bbox no es el correcto")}return this};h.getZoom=function(){M.utils.isUndefined(M.impl.Map.prototype.getZoom)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getZoom");return this.getImpl().getZoom()};h.setZoom=function(a){M.utils.isNullOrEmpty(a)&&
M.exception("No ha especificado ning\u00fan zoom");M.utils.isUndefined(M.impl.Map.prototype.setZoom)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo setZoom");try{var b=M.parameter.zoom(a);this.Tr=b;this.getImpl().setZoom(b)}catch(c){M.dialog.error(c)}return this};h.getCenter=function(){M.utils.isUndefined(M.impl.Map.prototype.getCenter)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getCenter");return this.getImpl().getCenter()};h.setCenter=function(a){M.utils.isNullOrEmpty(a)&&
M.exception("No ha especificado ning\u00fan center");M.utils.isUndefined(M.impl.Map.prototype.setCenter)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo setCenter");try{var b=M.parameter.center(a);this.getImpl().setCenter(b);!0===b.draw&&(this.Te.clear(),this.Tg=new M.Feature("__mapeacenter__",{type:"Feature",geometry:{type:"Point",coordinates:[b.x,b.y]},properties:{vendor:{mapea:{click:Ga(function(){var a=this.getLabel();M.utils.isNullOrEmpty(a)||a.show(this)},this)}}}}),this.drawFeatures([this.Tg]))}catch(c){M.dialog.error(c)}return this};
h.removeCenter=function(){this.removeFeatures(this.Tg);this.Tg=null;this.zoomToMaxExtent()};h.getResolutions=function(){M.utils.isUndefined(M.impl.Map.prototype.getResolutions)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getResolutions");return this.getImpl().getResolutions()};h.setResolutions=function(a){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ninguna resoluci\u00f3n");M.utils.isUndefined(M.impl.Map.prototype.setResolutions)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo setResolutions");
a=M.parameter.resolutions(a);this.getImpl().setResolutions(a);return this};h.getScale=function(){M.utils.isUndefined(M.impl.Map.prototype.getScale)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getScale");return this.getImpl().getScale()};h.getProjection=function(){M.utils.isUndefined(M.impl.Map.prototype.getProjection)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getProjection");return this.getImpl().getProjection()};h.setProjection=function(a,b){M.utils.isNullOrEmpty(a)&&
M.exception("No ha especificado ninguna proyecci\u00f3n");M.utils.isUndefined(M.impl.Map.prototype.setProjection)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo setProjection");try{var c=this.getProjection();a=M.parameter.projection(a);this.getImpl().setProjection(a);this._defaultProj=this._defaultProj&&!0===b;this.fire(M.evt.CHANGE_PROJ,[c,a])}catch(d){M.dialog.error(d),0<=String(d).indexOf("El formato del par\u00e1metro projection no es correcto")&&this.setProjection(M.config.DEFAULT_PROJ,
!0)}return this};h.getPlugins=function(a){M.utils.isNull(a)?a=[]:M.utils.isArray(a)||(a=[a]);var b=[];0===a.length?b=this._plugins:a.forEach(function(a){b=b.concat(this._plugins.filter(function(b){return a===b.name}))},this);return b};h.addPlugin=function(a){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan plugin");M.utils.isUndefined(a.addTo)&&M.exception("El plugin no puede a\u00f1adirse al mapa");this._plugins.push(a);a.addTo(this);return this};h.removePlugins=function(a){M.utils.isNullOrEmpty(a)&&
M.exception("No ha especificado ning\u00fan plugin a eliminar");M.utils.isArray(a)||(a=[a]);a=[].concat(a);0<a.length&&a.forEach(function(a){a.destroy();this._plugins.remove(a)},this);return this};h.getEnvolvedExtent=function(){M.utils.isUndefined(M.impl.Map.prototype.getEnvolvedExtent)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getEnvolvedExtent");return this.getImpl().getEnvolvedExtent()};h.zoomToMaxExtent=function(a){var b=this.getMaxExtent();if(M.utils.isNullOrEmpty(b)){var c=
this;this.Nn=!1;this.getEnvolvedExtent().then(function(b){(!0!==a||M.utils.isNullOrEmpty(c.Tr))&&c.setBbox(b);c.Nn=!0;c.Kn()})}else this.setBbox(b);return this};h.setTicket=function(a){M.utils.isNullOrEmpty(a)||(-1==M.config.PROXY_POST_URL.indexOf("ticket\x3d")&&M.config("PROXY_POST_URL",M.utils.addParameters(M.config.PROXY_POST_URL,{ticket:a})),-1==M.config.PROXY_URL.indexOf("ticket\x3d")&&M.config("PROXY_URL",M.utils.addParameters(M.config.PROXY_URL,{ticket:a})));return this};h.tt=function(){var a=
this;return new Promise(function(b){var c=a.getCenter();if(M.utils.isNullOrEmpty(c)){var d=a.getMaxExtent();M.utils.isNullOrEmpty(d)?a.getEnvolvedExtent().then(function(a){c={x:(a[0]+a[2])/2,y:(a[1]+a[3])/2};b(c)}):(c={x:(d.x.max+d.x.min)/2,y:(d.y.max+d.y.min)/2},b(c))}else b(c)})};h.destroy=function(){M.utils.isUndefined(M.impl.Map.prototype.destroy)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo destroy");this.getImpl().destroy();return this};h.addLabel=function(a,b){var c=void 0===
a.panMapIfOutOfView?!0:a.panMapIfOutOfView;M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ninguna proyecci\u00f3n");M.utils.isUndefined(M.impl.Map.prototype.addLabel)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo addLabel");var d=null,e=null;M.utils.isObject(a)?(d=M.utils.escapeJSCode(a.text),e=a.coord):(d=M.utils.escapeJSCode(a),e=b);e=M.utils.isNullOrEmpty(e)?this.getCenter():M.parameter.center(e);if(M.utils.isNullOrEmpty(e)){var f=this;this.tt().then(function(a){var b=
f.getCenter();M.utils.isNullOrEmpty(b)&&(b=a);a=new M.Label(d,b,c);f.getImpl().addLabel(a)})}else a=new M.Label(d,e,c),this.getImpl().addLabel(a);return this};h.getLabel=function(){return this.getImpl().getLabel()};h.removeLabel=function(){return this.getImpl().removeLabel()};h.drawPoints=function(a){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan punto");M.utils.isArray(a)||(a=[a]);a=a.map(function(a){var b={type:"Feature",geometry:{type:"Point",coordinates:[a.x,a.y]},properties:{}};
M.utils.isFunction(a.click)&&(b.properties.vendor={mapea:{click:a.click}});return new M.Feature(null,b)},this);this.Te.addFeatures(a)};h.drawFeatures=function(a){this.Te.addFeatures(a);return this};h.removeFeatures=function(a){this.Te.removeFeatures(a);return this};h.addPanels=function(a){M.utils.isNullOrEmpty(a)||(M.utils.isArray(a)||(a=[a]),a.forEach(function(a){for(var b=!1,d=0,e=this._panels.length;d<e;d++)if(this._panels[d].equals(a)){b=!0;break}a instanceof M.ui.Panel&&!b&&(this._panels.push(a),
b="div.m-area".concat(a.position),a.addTo(this,this._areasContainer.querySelector(b)))},this));return this};h.removePanel=function(a){0<a.getControls().length&&M.exception("Debe eliminar los controles del panel previamente");a instanceof M.ui.Panel&&(a.destroy(),this._panels.remove(a));return this};h.getPanels=function(a){var b=[];if(M.utils.isNullOrEmpty(a))b=this._panels;else{M.utils.isArray(a)||(a=[a]);for(var c=0,d=a.length;c<d;c++)for(var e=a[c],f=0,g=this._panels.length;f<g;f++)if(this._panels[f].name===
e){b.push(this._panels[f]);break}}return b};h.Yy=function(){this._areasContainer=document.createElement("div");pb(this._areasContainer,"m-areas");var a=document.createElement("div");pb(a,"m-area");pb(a,"m-top");pb(a,"m-left");var b=document.createElement("div");pb(b,"m-area");pb(b,"m-top");pb(b,"m-right");var c=document.createElement("div");pb(c,"m-area");pb(c,"m-bottom");pb(c,"m-left");var d=document.createElement("div");pb(d,"m-area");pb(d,"m-bottom");pb(d,"m-right");this._areasContainer.appendChild(a);
this._areasContainer.appendChild(b);this._areasContainer.appendChild(c);this._areasContainer.appendChild(d);this.getContainer().appendChild(this._areasContainer)};h.getContainer=function(){M.utils.isUndefined(M.impl.Map.prototype.getContainer)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getContainer");return this.getImpl().getContainer()};h.getMapImpl=function(){M.utils.isUndefined(M.impl.Map.prototype.getMapImpl)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo getMapImpl");
return this.getImpl().getMapImpl()};h.getPopup=function(){return this.Fa};h.removePopup=function(){M.utils.isUndefined(M.impl.Map.prototype.removePopup)&&M.exception("La implementaci\u00f3n usada no posee el m\u00e9todo removePopup");M.utils.isNullOrEmpty(this.Fa)||(this.getImpl().removePopup(this.Fa),this.Fa.destroy(),this.Fa=null);return this};h.addPopup=function(a,b){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan popup");a instanceof M.Popup||M.exception("El popup especificado no es v\u00e1lido");
M.utils.isNullOrEmpty(this.Fa)||this.removePopup();this.Fa=a;this.Fa.addTo(this,b);return this};h.Kn=function(){this.Mn&&this.Nn&&this.Jr&&(this.fire(M.evt.COMPLETED),this.Ir=!0)};h.on=function(a,b,c){M.Map.ab.on.call(this,a,b,c);a===M.evt.COMPLETED&&!0===this.Ir&&this.fire(M.evt.COMPLETED)};h.refresh=function(){!M.utils.isUndefined(this.getImpl().refresh)&&M.utils.isFunction(this.getImpl().refresh)&&this.getImpl().refresh();this.getLayers().forEach(function(a){a.refresh()});return this};M.Map.LAYER_SORT=
function(a,b){return M.utils.isNullOrEmpty(a)||M.utils.isNullOrEmpty(b)?0:(a=a.getZIndex(),b=b.getZIndex(),a-b)};M.Map.DRAWLAYER_STYLE={fill:{color:"#009e00"},stroke:{color:"#fcfcfc",width:2},radius:7};M.s=.0254000508001016;M.DOTS_PER_INCH=72;M.INCHES_PER_UNIT={inches:1,"in":1,Inch:1,ft:12,mi:63360,m:39.3701,dd:4374754,yd:36,d:4374754,degrees:4374754,nmi:72913.4252,Meter:1/M.s,Foot:.3048006096012192/M.s,IFoot:.3048/M.s,ClarkeFoot:.3047972651151/M.s,SearsFoot:.30479947153867626/M.s,GoldCoastFoot:.3047997101815088/
M.s,IInch:.0254/M.s,MicroInch:2.54E-5/M.s,Mil:2.54E-8/M.s,Centimeter:.01/M.s,Kilometer:1E3/M.s,Yard:.9144018288036576/M.s,SearsYard:.914398414616029/M.s,IndianYard:.9143985307444408/M.s,IndianYd37:.91439523/M.s,IndianYd62:.9143988/M.s,IndianYd75:.9143985/M.s,IndianFoot:.30479951/M.s,IndianFt37:.30479841/M.s,IndianFt62:.3047996/M.s,IndianFt75:.3047995/M.s,Mile:1609.3472186944373/M.s,IYard:.9144/M.s,IMile:1609.344/M.s,NautM:1852/M.s,"Lat-66":110943.31648893273/M.s,"Lat-83":110946.25736872235/M.s,Decimeter:.1/
M.s,Millimeter:.001/M.s,Dekameter:10/M.s,Decameter:10/M.s,Hectometer:100/M.s,GermanMeter:1.0000135965/M.s,CaGrid:.999738/M.s,ClarkeChain:20.1166194976/M.s,GunterChain:20.11684023368047/M.s,BenoitChain:20.116782494375872/M.s,SearsChain:20.11676512155/M.s,ClarkeLink:.201166194976/M.s,GunterLink:.2011684023368047/M.s,BenoitLink:.20116782494375873/M.s,SearsLink:.2011676512155/M.s,Rod:5.02921005842012/M.s,IntnlChain:20.1168/M.s,IntnlLink:.201168/M.s,Perch:5.02921005842012/M.s,Pole:5.02921005842012/M.s,
Furlong:201.1684023368046/M.s,Rood:3.778266898/M.s,CapeFoot:.3047972615/M.s,Brealey:375/M.s,ModAmFt:.304812252984506/M.s,Fathom:1.8288/M.s,"NautM-UK":1853.184/M.s,"50kilometers":5E4/M.s,"150kilometers":15E4/M.s,mm:1/M.s/1E3,cm:1/M.s/100,dm:1/M.s*100,km:1/M.s*1E3,kmi:72913.4252,fath:1.8288/M.s,ch:20.1168/M.s,link:.201168/M.s,"us-in":1,"us-ft":.3048006096012192/M.s,"us-yd":.9144018288036576/M.s,"us-ch":20.11684023368047/M.s,"us-mi":1609.3472186944373/M.s,"ind-yd":.91439523/M.s,"ind-ft":.30479841/M.s,
"ind-ch":20.11669506/M.s};M.pB="es";M.xm=!0;M.proxy=function(a){M.utils.isBoolean(a)&&(M.xm=a)};M.lang=function(a){M.utils.isNullOrEmpty(a)||(M.pB=a);return this};M.impl=null;M.config=function(a,b){M.config[a]=b};M.map=function(a,b){(M.utils.isUndefined(M.impl)||M.utils.isNull(M.impl))&&M.exception("No se ha especificado ninguna implementaci\u00f3n");return new M.Map(a,b)};M.style.align={};M.style.align.LEFT="left";M.style.align.CENTER="center";M.style.align.RIGHT="right";M.style.align.JUSTIFY="justify";
M.style.baseline={};M.style.baseline.TOP="top";M.style.baseline.MIDDLE="middle";M.style.baseline.BOTTOM="bottom";M.style.baseline.ALPHABETIC="alphabetic";M.style.baseline.HANGING="hanging";M.style.baseline.IDEOGRAPHIC="ideographic";M.style.form={};M.style.form.CIRCLE="CIRCLE";M.style.form.BUBBLE="BUBBLE";M.style.form.MARKER="MARKER";M.style.form.SHIELD="SHIELD";M.style.form.BLAZON="BLAZON";M.style.form.TRIANGLE="TRIANGLE";M.style.form.SIGN="SIGN";M.style.form.BAN="BAN";M.style.form.LOZENGE="LOZENGE";
M.style.form.SQUARE="SQUARE";M.style.form.NONE=null;M.style.overflow={};M.style.overflow.HIDDEN="HIDDEN";M.style.overflow.VISIBLE="VISIBLE";M.style.overflow.ELLIPSIS="ELLIPSIS";M.style.overflow.CUSTOM="CUSTOM";M.style.pattern={};M.style.pattern.HATCH="HATCH";M.style.pattern.CROSS="CROSS";M.style.pattern.DOT="DOT";M.style.pattern.CIRCLE="CIRCLE";M.style.pattern.SQUARE="SQUARE";M.style.pattern.TILE="TILE";M.style.pattern.WOVEN="WOVEN";M.style.pattern.CROSSES="CROSSES";M.style.pattern.CAPS="CAPS";M.style.pattern.NYLON=
"NYLON";M.style.pattern.HEXAGON="HEXAGON";M.style.pattern.CEMETRY="CEMETRY";M.style.pattern.SAND="SAND";M.style.pattern.CONGLOMERATE="CONGLOMERATE";M.style.pattern.GRAVEL="GRAVEL";M.style.pattern.BRICK="BRICK";M.style.pattern.DOLOMITE="DOLOMITE";M.style.pattern.COAL="COAL";M.style.pattern.BRECCIA="BRECCIA";M.style.pattern.CLAY="CLAY";M.style.pattern.FLOODED="FLOODED";M.style.pattern.CHAOS="CHAOS";M.style.pattern.GRASS="GRASS";M.style.pattern.SWAMP="SWAMP";M.style.pattern.WAVE="WAVE";M.style.pattern.VINE=
"VINE";M.style.pattern.FOREST="FOREST";M.style.pattern.SCRUB="SCRUB";M.style.pattern.TREE="TREE";M.style.pattern.PINE="PINE";M.style.pattern.PINES="PINES";M.style.pattern.ROCK="ROCK";M.style.pattern.ROCKS="ROCKS";M.style.pattern.CHARACTER="CHARACTER";M.style.pattern.ICON="ICON";M.style.pattern.IMAGE="IMAGE";M.style.textoverflow={};M.style.textoverflow.ELLIPSIS="ellipsis";M.style.textoverflow.VISIBLE="visible";M.style.textoverflow.HIDDEN="";var gd,hd;function id(){return Nb?"Webkit":Mb?"Moz":Kb?"ms":
Jb?"O":null}function jd(a){kd();return(new $b).cB(a)}var kd=sa;function ld(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}h=ld.prototype;h.getWidth=function(){return this.right-this.left};h.getHeight=function(){return this.bottom-this.top};h.clone=function(){return new ld(this.top,this.right,this.bottom,this.left)};h.contains=function(a){return this&&a?a instanceof ld?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&
a.y<=this.bottom:!1};h.expand=function(a,b,c,d){ya(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return this};h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);
this.left=Math.floor(this.left);return this};h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};h.translate=function(a,b){a instanceof bc?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,xa(b)&&(this.top+=b,this.bottom+=b));return this};h.scale=function(a,b){b=xa(b)?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};function md(a,
b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}h=md.prototype;h.clone=function(){return new md(this.left,this.top,this.width,this.height)};h.intersects=function(a){return this.left<=a.left+a.width&&a.left<=this.left+this.width&&this.top<=a.top+a.height&&a.top<=this.top+this.height};h.contains=function(a){return a instanceof bc?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+
this.height>=a.top+a.height};h.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};h.getSize=function(){return new cc(this.width,this.height)};h.getTopLeft=function(){return new bc(this.left,this.top)};h.getCenter=function(){return new bc(this.left+this.width/2,this.top+this.height/2)};h.getBottomRight=function(){return new bc(this.left+this.width,this.top+this.height)};
h.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};h.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};h.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};h.translate=function(a,
b){a instanceof bc?(this.left+=a.x,this.top+=a.y):(this.left+=a,xa(b)&&(this.top+=b));return this};h.scale=function(a,b){b=xa(b)?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var x={setStyle:function(a,b,c){if(wa(b))x.Sv(a,c,b);else for(var d in b)x.Sv(a,b[d],d)},Sv:function(a,b,c){(c=x.zt(a,c))&&(a.style[c]=b)},fw:{},zt:function(a,b){var c=x.fw[b];if(!c){var d=Ua(b),c=d;void 0===a.style[d]&&(d=id()+Va(d),void 0!==a.style[d]&&(c=d));x.fw[b]=c}return c},bA:function(a,b){var c=
Ua(b);return void 0===a.style[c]&&(c=id()+Va(c),void 0!==a.style[c])?(Nb?"-webkit":Mb?"-moz":Kb?"-ms":Jb?"-o":null)+"-"+b:b},getStyle:function(a,b){var c=a.style[Ua(b)];return"undefined"!==typeof c?c:a.style[x.zt(a,b)]||""},getComputedStyle:function(a,b){var c=fc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""},ml:function(a,b){return a.currentStyle?a.currentStyle[b]:null},fb:function(a,b){return x.getComputedStyle(a,
b)||x.ml(a,b)||a.style&&a.style[b]},$H:function(a){return x.fb(a,"boxSizing")||x.fb(a,"MozBoxSizing")||x.fb(a,"WebkitBoxSizing")||null},dI:function(a){return x.fb(a,"position")},XH:function(a){return x.fb(a,"backgroundColor")},bI:function(a){return x.fb(a,"overflowX")},cI:function(a){return x.fb(a,"overflowY")},fI:function(a){return x.fb(a,"zIndex")},eI:function(a){return x.fb(a,"textAlign")},aI:function(a){return x.fb(a,"cursor")},Uz:function(a){var b=x.bA(a,"transform");return x.fb(a,b)||x.fb(a,
"transform")},setPosition:function(a,b,c){var d;b instanceof bc?(d=b.x,b=b.y):(d=b,b=c);a.style.left=x.ql(d,!1);a.style.top=x.ql(b,!1)},getPosition:function(a){return new bc(a.offsetLeft,a.offsetTop)},Tz:function(a){a=a?fc(a):document;return!Kb||9<=Number(Xb)||sc(dc(a))?a.documentElement:a.body},sI:function(a){var b=a.body;a=a.documentElement;return new bc(b.scrollLeft||a.scrollLeft,b.scrollTop||a.scrollTop)},ll:function(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,
bottom:0}}Kb&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b},Yz:function(a){if(Kb&&!(8<=Number(Xb)))return a.offsetParent;var b=fc(a),c=x.fb(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=x.fb(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||
"fixed"==c||"absolute"==c||"relative"==c))return a;return null},tI:function(a){for(var b=new ld(0,Infinity,Infinity,0),c=dc(a),d=c.vb.body,e=c.vb.documentElement,f=kc(c.vb);a=x.Yz(a);)if(!(Kb&&0==a.clientWidth||Nb&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=x.fb(a,"overflow")){var g=x.qe(a),k=x.Sz(a);g.x+=k.x;g.y+=k.y;b.top=Math.max(b.top,g.y);b.right=Math.min(b.right,g.x+a.clientWidth);b.bottom=Math.min(b.bottom,g.y+a.clientHeight);b.left=Math.max(b.left,g.x)}d=f.scrollLeft;f=f.scrollTop;b.left=
Math.max(b.left,d);b.top=Math.max(b.top,f);c=ic(lc(c.vb)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null},Vz:function(a,b,c){var d=b||kc(document),e=x.qe(a),f=x.qe(d),g=x.kl(d);d==kc(document)?(b=e.x-d.scrollLeft,e=e.y-d.scrollTop,!Kb||10<=Number(Xb)||(b+=g.left,e+=g.top)):(b=e.x-f.x-g.left,e=e.y-f.y-g.top);g=x.xt(a);a=d.clientWidth-g.width;g=d.clientHeight-g.height;f=d.scrollLeft;d=d.scrollTop;c?
(f+=b-a/2,d+=e-g/2):(f+=Math.min(b,Math.max(b-a,0)),d+=Math.min(e,Math.max(e-g,0)));return new bc(f,d)},aJ:function(a,b,c){b=b||kc(document);a=x.Vz(a,b,c);b.scrollLeft=a.x;b.scrollTop=a.y},Sz:function(a){return new bc(a.clientLeft,a.clientTop)},qe:function(a){var b=fc(a),c=new bc(0,0),d=x.Tz(b);if(a==d)return c;a=x.ll(a);d=dc(b).vb;b=kc(d);d=lc(d);b=Kb&&Wb("10")&&d.pageYOffset!=b.scrollTop?new bc(b.scrollLeft,b.scrollTop):new bc(d.pageXOffset||b.scrollLeft,d.pageYOffset||b.scrollTop);c.x=a.left+b.x;
c.y=a.top+b.y;return c},mI:function(a){return x.qe(a).x},nI:function(a){return x.qe(a).y},Wz:function(a,b){var c=new bc(0,0),d;d=(d=fc(a))?lc(d):window;if(!Fb(d,"parent"))return c;do{var e=d==b?x.qe(a):x.nt(a);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c},xJ:function(a,b,c){b.vb!=c.vb&&(b=b.vb.body,c=x.Wz(b,lc(c.vb)),b=x.qe(b),c=new bc(c.x-b.x,c.y-b.y),a.left+=c.x,a.top+=c.y)},oI:function(a,b){a=x.mt(a);b=x.mt(b);return new bc(a.x-b.x,a.y-b.y)},nt:function(a){a=
x.ll(a);return new bc(a.left,a.top)},mt:function(a){if(1==a.nodeType)return x.nt(a);a=a.changedTouches?a.changedTouches[0]:a;return new bc(a.clientX,a.clientY)},fJ:function(a,b,c){var d=x.qe(a);b instanceof bc&&(c=b.y,b=b.x);x.setPosition(a,a.offsetLeft+(b-d.x),a.offsetTop+(Number(c)-d.y))},setSize:function(a,b,c){if(b instanceof cc)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");x.setWidth(a,b);x.Rv(a,c)},ql:function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");
return a},Rv:function(a,b){a.style.height=x.ql(b,!0)},setWidth:function(a,b){a.style.width=x.ql(b,!0)},getSize:function(a){return x.Os(x.xt,a)},Os:function(a,b){if("none"!=x.fb(b,"display"))return a(b);var c=b.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=a(b);c.display=d;c.position=f;c.visibility=e;return a},xt:function(a){var b=a.offsetWidth,c=a.offsetHeight,d=Nb&&!b&&!c;return ra(b)&&!d||!a.getBoundingClientRect?new cc(b,c):(a=x.ll(a),
new cc(a.right-a.left,a.bottom-a.top))},qI:function(a){if(!a.getBoundingClientRect)return null;a=x.Os(x.ll,a);return new cc(a.right-a.left,a.bottom-a.top)},YH:function(a){var b=x.qe(a);a=x.getSize(a);return new md(b.x,b.y,a.width,a.height)},rJ:function(a){return Ua(String(a))},tJ:function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()},getOpacity:function(a){var b=a.style;a="";"opacity"in b?a=b.opacity:"MozOpacity"in b?a=b.MozOpacity:"filter"in b&&(b=b.filter.match(/alpha\(opacity=([\d.]+)\)/))&&
(a=String(b[1]/100));return""==a?a:Number(a)},setOpacity:function(a,b){a=a.style;"opacity"in a?a.opacity=b:"MozOpacity"in a?a.MozOpacity=b:"filter"in a&&(a.filter=""===b?"":"alpha(opacity\x3d"+100*Number(b)+")")},hJ:function(a,b){a=a.style;Kb&&!Wb("8")?a.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src\x3d"'+b+'", sizingMethod\x3d"crop")':(a.backgroundImage="url("+b+")",a.backgroundPosition="top left",a.backgroundRepeat="no-repeat")},EH:function(a){a=a.style;"filter"in a?a.filter="":
a.backgroundImage="none"},lJ:function(a,b){x.OD(a,b)},OD:function(a,b){a.style.display=b?"":"none"},DI:function(a){return"none"!=a.style.display},BI:function(a,b){return x.iB(jd(a),b)},iB:function(a,b){b=dc(b);var c,d=b.vb;Kb&&d.createStyleSheet?(c=d.createStyleSheet(),x.Aq(c,a)):(d=rc(b,"HEAD")[0],d||(c=rc(b,"BODY")[0],d=b.ys("HEAD"),c.parentNode.insertBefore(d,c)),c=b.ys("STYLE"),x.Aq(c,a),b.appendChild(d,c));return c},zJ:function(a){ob(a.ownerNode||a.owningElement||a)},setStyles:function(a,b){x.Aq(a,
jd(b))},Aq:function(a,b){b instanceof $b&&b.constructor===$b&&b.Ux===ac?b=b.jv:(ta(b),b="type_error:SafeStyleSheet");Kb&&ra(a.cssText)?a.cssText=b:a.innerHTML=b},gJ:function(a){a=a.style;Kb&&!Wb("8")?(a.whiteSpace="pre",a.wordWrap="break-word"):a.whiteSpace=Mb?"-moz-pre-wrap":"pre-wrap"},eJ:function(a){a=a.style;a.position="relative";Kb&&!Wb("8")?(a.zoom="1",a.display="inline"):a.display="inline-block"},FI:function(a){return"rtl"==x.fb(a,"direction")}};x.dr=Mb?"MozUserSelect":Nb||Lb?"WebkitUserSelect":
null;x.II=function(a){return x.dr?"none"==a.style[x.dr].toLowerCase():Kb||Jb?"on"==a.getAttribute("unselectable"):!1};x.iJ=function(a,b,c){c=c?null:a.getElementsByTagName("*");var d=x.dr;if(d){if(b=b?"none":"",a.style&&(a.style[d]=b),c){a=0;for(var e;e=c[a];a++)e.style&&(e.style[d]=b)}}else if(Kb||Jb)if(b=b?"on":"",a.setAttribute("unselectable",b),c)for(a=0;e=c[a];a++)e.setAttribute("unselectable",b)};x.Qz=function(a){return new cc(a.offsetWidth,a.offsetHeight)};x.bJ=function(a,b){var c=sc(dc(fc(a)));
if(!Kb||Wb("10")||c&&Wb("8"))x.Qv(a,b,"border-box");else{var d=a.style;c?(c=x.cp(a),a=x.kl(a),d.pixelWidth=b.width-a.left-c.left-c.right-a.right,d.pixelHeight=b.height-a.top-c.top-c.bottom-a.bottom):(d.pixelWidth=b.width,d.pixelHeight=b.height)}};x.gI=function(a){var b=fc(a),c=Kb&&a.currentStyle;if(c&&sc(dc(b))&&"auto"!=c.width&&"auto"!=c.height&&!c.boxSizing)return b=x.mh(a,c.width,"width","pixelWidth"),a=x.mh(a,c.height,"height","pixelHeight"),new cc(b,a);c=x.Qz(a);b=x.cp(a);a=x.kl(a);return new cc(c.width-
a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)};x.cJ=function(a,b){var c=sc(dc(fc(a)));if(!Kb||Wb("10")||c&&Wb("8"))x.Qv(a,b,"content-box");else{var d=a.style;c?(d.pixelWidth=b.width,d.pixelHeight=b.height):(c=x.cp(a),a=x.kl(a),d.pixelWidth=b.width+a.left+c.left+c.right+a.right,d.pixelHeight=b.height+a.top+c.top+c.bottom+a.bottom)}};x.Qv=function(a,b,c){a=a.style;Mb?a.MozBoxSizing=c:Nb?a.WebkitBoxSizing=c:a.boxSizing=c;a.width=Math.max(b.width,0)+"px";a.height=Math.max(b.height,
0)+"px"};x.mh=function(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return+b};x.pl=function(a,b){return(b=x.ml(a,b))?x.mh(a,b,"left","pixelLeft"):0};x.lt=function(a,b){if(Kb){var c=x.pl(a,b+"Left"),d=x.pl(a,b+"Right"),e=x.pl(a,b+"Top");a=x.pl(a,b+"Bottom");return new ld(e,d,a,c)}c=x.getComputedStyle(a,b+"Left");d=x.getComputedStyle(a,b+"Right");e=x.getComputedStyle(a,
b+"Top");a=x.getComputedStyle(a,b+"Bottom");return new ld(parseFloat(e),parseFloat(d),parseFloat(a),parseFloat(c))};x.cp=function(a){return x.lt(a,"padding")};x.lI=function(a){return x.lt(a,"margin")};x.Ht={thin:2,medium:4,thick:6};x.nl=function(a,b){if("none"==x.ml(a,b+"Style"))return 0;b=x.ml(a,b+"Width");return b in x.Ht?x.Ht[b]:x.mh(a,b,"left","pixelLeft")};x.kl=function(a){if(Kb&&!(9<=Number(Xb))){var b=x.nl(a,"borderLeft"),c=x.nl(a,"borderRight"),d=x.nl(a,"borderTop");a=x.nl(a,"borderBottom");
return new ld(d,c,a,b)}b=x.getComputedStyle(a,"borderLeftWidth");c=x.getComputedStyle(a,"borderRightWidth");d=x.getComputedStyle(a,"borderTopWidth");a=x.getComputedStyle(a,"borderBottomWidth");return new ld(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};x.jI=function(a){var b=fc(a),c="";if(b.body.createTextRange&&qc(b,a)){b=b.body.createTextRange();b.moveToElementText(a);try{c=b.queryCommandValue("FontName")}catch(d){c=""}}c||(c=x.fb(a,"fontFamily"));a=c.split(",");1<a.length&&(c=a[0]);
a:for(a=0;2>a;a++)if(b="\"'".charAt(a),c.charAt(0)==b&&c.charAt(c.length-1)==b){c=c.substring(1,c.length-1);break a}return c};x.sB=/[^\d]+$/;x.Xz=function(a){return(a=a.match(x.sB))&&a[0]||null};x.$w={cm:1,"in":1,mm:1,pc:1,pt:1};x.cx={em:1,ex:1};x.kI=function(a){var b=x.fb(a,"fontSize"),c=x.Xz(b);if(b&&"px"==c)return parseInt(b,10);if(Kb){if(String(c)in x.$w)return x.mh(a,b,"left","pixelLeft");if(a.parentNode&&1==a.parentNode.nodeType&&String(c)in x.cx)return a=a.parentNode,c=x.fb(a,"fontSize"),x.mh(a,
b==c?"1em":b,"left","pixelLeft")}c=mc("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;ob(c);return b};x.QI=function(a){var b={};w.forEach(a.split(/\s*;\s*/),function(a){var c=a.match(/\s*([\w-]+)\s*:(.+)/);c&&(a=c[1],c=Ka(c[2]),b[Ua(a.toLowerCase())]=c)});return b};x.uJ=function(a){var b=[];Bb.forEach(a,function(a,d){b.push(String(d).replace(/([A-Z])/g,"-$1").toLowerCase(),":",a,";")});return b.join("")};
x.dJ=function(a,b){a.style[Kb?"styleFloat":"cssFloat"]=b};x.iI=function(a){return a.style[Kb?"styleFloat":"cssFloat"]||""};x.pI=function(a){var b=document.createElement("DIV");a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=document.createElement("DIV");x.setSize(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;ob(b);return a};x.rx=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;
x.hI=function(a){a=x.Uz(a);return a?(a=a.match(x.rx))?new bc(parseFloat(a[1]),parseFloat(a[2])):new bc(0,0):new bc(0,0)};function A(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a}function nd(){}function D(a){return a.dC||(a.dC=++od)}var od=0;function pd(a){this.message="Assertion failed. See /doc/errors/#"+a+" for details.";this.code=a;this.name="AssertionError"}A(pd,Error);function qd(a,b){if(!a)throw new pd(b);}function rd(a,b,c){return Math.min(Math.max(a,b),c)}var sd="cosh"in
Math?Math.cosh:function(a){a=Math.exp(a);return(a+1/a)/2};function td(a){qd(0<a,29);return Math.pow(2,Math.ceil(Math.log(a)/Math.LN2))}function vd(a,b,c,d,e,f){var g=e-c,k=f-d;if(0!==g||0!==k){var l=((a-c)*g+(b-d)*k)/(g*g+k*k);1<l?(c=e,d=f):0<l&&(c+=g*l,d+=k*l)}return wd(a,b,c,d)}function wd(a,b,c,d){a=c-a;b=d-b;return a*a+b*b}function xd(a){return a*Math.PI/180}function yd(a,b){a%=b;return 0>a*b?a+b:a}function zd(a,b,c){return a+c*(b-a)}var Ad=/^#(?:[0-9a-f]{3}){1,2}$/i,Bd=/^([a-z]*)$/i;function Cd(a){return Array.isArray(a)?
a:Dd(a)}function Ed(a){if("string"!==typeof a){var b=a[0];b!=(b|0)&&(b=b+.5|0);var c=a[1];c!=(c|0)&&(c=c+.5|0);var d=a[2];d!=(d|0)&&(d=d+.5|0);a="rgba("+b+","+c+","+d+","+(void 0===a[3]?1:a[3])+")"}return a}var Dd=function(){var a={},b=0;return function(c){var d;if(a.hasOwnProperty(c))d=a[c];else{if(1024<=b){d=0;for(var e in a)0===(d++&3)&&(delete a[e],--b)}d=c;var f;Bd.exec(d)&&(e=document.createElement("div"),e.style.color=d,document.body.appendChild(e),d=getComputedStyle(e).color,document.body.removeChild(e));
if(Ad.exec(d)){f=d.length-1;qd(3==f||6==f,54);var g=3==f?1:2;f=parseInt(d.substr(1+0*g,g),16);e=parseInt(d.substr(1+1*g,g),16);d=parseInt(d.substr(1+2*g,g),16);1==g&&(f=(f<<4)+f,e=(e<<4)+e,d=(d<<4)+d);f=[f,e,d,1]}else 0==d.indexOf("rgba(")?(d=d.slice(5,-1).split(",").map(Number),f=Fd(d)):0==d.indexOf("rgb(")?(d=d.slice(4,-1).split(",").map(Number),d.push(1),f=Fd(d)):qd(!1,14);d=f;a[c]=d;++b}return d}}();function Fd(a){var b=[];b[0]=rd(a[0]+.5|0,0,255);b[1]=rd(a[1]+.5|0,0,255);b[2]=rd(a[2]+.5|0,0,
255);b[3]=rd(a[3],0,1);return b}function Gd(a){return"string"===typeof a||a instanceof CanvasPattern||a instanceof CanvasGradient?a:Ed(a)}function Hd(a,b){var c=document.createElement("CANVAS");a&&(c.width=a);b&&(c.height=b);return c.getContext("2d")}function Id(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}function Jd(a){a&&a.parentNode&&a.parentNode.removeChild(a)}var Kd=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Ld(a,b){var c,d,e=Kd.length;for(d=0;d<e;++d)try{if(c=a.getContext(Kd[d],
b))return c}catch(f){}return null}var Md,Nd="undefined"!==typeof navigator?navigator.userAgent.toLowerCase():"",Od=-1!==Nd.indexOf("firefox"),Pd=-1!==Nd.indexOf("safari")&&-1==Nd.indexOf("chrom"),Qd=-1!==Nd.indexOf("webkit")&&-1==Nd.indexOf("edge"),Rd=-1!==Nd.indexOf("macintosh"),Sd=window.devicePixelRatio||1,Td=!1,Ud=function(){if(!("HTMLCanvasElement"in window))return!1;try{var a=document.createElement("CANVAS").getContext("2d");return a?(void 0!==a.setLineDash&&(Td=!0),!0):!1}catch(b){return!1}}(),
Vd="DeviceOrientationEvent"in window,Wd="geolocation"in navigator,Xd="ontouchstart"in window,Yd="PointerEvent"in window,Zd=!!navigator.msPointerEnabled,$d=!1,ae,be=[];if("WebGLRenderingContext"in window)try{var ce=Ld(document.createElement("CANVAS"),{failIfMajorPerformanceCaveat:!0});ce&&($d=!0,ae=ce.getParameter(ce.MAX_TEXTURE_SIZE),be=ce.getSupportedExtensions())}catch(a){}Md=$d;hd=be;gd=ae;var de=[0,0,0,1],ee=[],fe=[0,0,0,1];function ge(a,b,c,d){0!==b&&(a.translate(c,d),a.rotate(b),a.translate(-c,
-d))}function he(a){this.opacity_=a.opacity;this.Bb=a.rotateWithView;this.na=a.rotation;this.Cb=a.scale;this.Bf=a.snapToPixel}he.prototype.getOpacity=function(){return this.opacity_};he.prototype.getRotateWithView=function(){return this.Bb};he.prototype.getRotation=function(){return this.na};he.prototype.getScale=function(){return this.Cb};he.prototype.getSnapToPixel=function(){return this.Bf};he.prototype.setOpacity=function(a){this.opacity_=a};he.prototype.setRotation=function(a){this.na=a};he.prototype.setScale=
function(a){this.Cb=a};function ie(a){this.Cl=this.j=this.La=null;this.ga=void 0!==a.fill?a.fill:null;this.zb=[0,0];this.ja=a.points;this.B=void 0!==a.radius?a.radius:a.radius1;this.Ce=void 0!==a.radius2?a.radius2:this.B;this.Rc=void 0!==a.angle?a.angle:0;this.L=void 0!==a.stroke?a.stroke:null;this.Ub=this.X=this.lb=null;this.xi=a.atlasManager;this.Rh(this.xi);he.call(this,{opacity:1,rotateWithView:void 0!==a.rotateWithView?a.rotateWithView:!1,rotation:void 0!==a.rotation?a.rotation:0,scale:1,snapToPixel:void 0!==
a.snapToPixel?a.snapToPixel:!0})}A(ie,he);h=ie.prototype;h.clone=function(){var a=new ie({fill:this.getFill()?this.getFill().clone():void 0,points:this.getRadius2()!==this.getRadius()?this.getPoints()/2:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),snapToPixel:this.getSnapToPixel(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),atlasManager:this.xi});a.setOpacity(this.getOpacity());
a.setScale(this.getScale());return a};h.getAnchor=function(){return this.lb};h.getAngle=function(){return this.Rc};h.getFill=function(){return this.ga};h.Yi=function(){return this.Cl};h.getImage=function(){return this.j};ie.prototype.getImageSize=function(){return this.Ub};h=ie.prototype;h.cg=function(){return 2};h.getOrigin=function(){return this.zb};h.getPoints=function(){return this.ja};h.getRadius=function(){return this.B};h.getRadius2=function(){return this.Ce};h.getSize=function(){return this.X};
h.getStroke=function(){return this.L};h.eu=function(){};h.load=function(){};h.vw=function(){};h.Rh=function(a){var b="",c="",d=0,e=null,f,g=0;this.L&&(f=Gd(this.L.getColor()),g=this.L.getWidth(),void 0===g&&(g=1),e=this.L.getLineDash(),Td||(e=null),c=this.L.getLineJoin(),void 0===c&&(c="round"),b=this.L.getLineCap(),void 0===b&&(b="round"),d=this.L.getMiterLimit(),void 0===d&&(d=10));var k=2*(this.B+g)+1,b={strokeStyle:f,Um:g,size:k,lineCap:b,lineDash:e,lineJoin:c,miterLimit:d};if(void 0===a){var l=
Hd(k,k);this.j=l.canvas;a=k=this.j.width;this.Ls(b,l,0,0);this.ga?this.Cl=this.j:(l=Hd(b.size,b.size),this.Cl=l.canvas,this.Ks(b,l,0,0))}else k=Math.round(k),(c=!this.ga)&&(l=this.Ks.bind(this,b)),d=this.getChecksum(),l=a.add(d,k,k,this.Ls.bind(this,b),l),this.j=l.image,this.zb=[l.offsetX,l.offsetY],a=l.image.width,this.Cl=c?l.ZA:this.j;this.lb=[k/2,k/2];this.X=[k,k];this.Ub=[a,a]};h.Ls=function(a,b,c,d){var e;b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();if(Infinity===this.ja)b.arc(a.size/
2,a.size/2,this.B,0,2*Math.PI,!0);else for(this.Ce!==this.B&&(this.ja*=2),c=0;c<=this.ja;c++)d=2*c*Math.PI/this.ja-Math.PI/2+this.Rc,e=0===c%2?this.B:this.Ce,b.lineTo(a.size/2+e*Math.cos(d),a.size/2+e*Math.sin(d));this.ga&&(b.fillStyle=Gd(this.ga.getColor()),b.fill());this.L&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.Um,a.lineDash&&b.setLineDash(a.lineDash),b.lineCap=a.lineCap,b.lineJoin=a.lineJoin,b.miterLimit=a.miterLimit,b.stroke());b.closePath()};h.Ks=function(a,b,c,d){b.setTransform(1,0,0,1,
0,0);b.translate(c,d);b.beginPath();if(Infinity===this.ja)b.arc(a.size/2,a.size/2,this.B,0,2*Math.PI,!0);else{this.Ce!==this.B&&(this.ja*=2);var e;for(c=0;c<=this.ja;c++)e=2*c*Math.PI/this.ja-Math.PI/2+this.Rc,d=0===c%2?this.B:this.Ce,b.lineTo(a.size/2+d*Math.cos(e),a.size/2+d*Math.sin(e))}b.fillStyle=de;b.fill();this.L&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.Um,a.lineDash&&b.setLineDash(a.lineDash),b.stroke());b.closePath()};h.getChecksum=function(){var a=this.L?this.L.getChecksum():"-",b=this.ga?
this.ga.getChecksum():"-";this.La&&a==this.La[1]&&b==this.La[2]&&this.B==this.La[3]&&this.Ce==this.La[4]&&this.Rc==this.La[5]&&this.ja==this.La[6]||(this.La=["r"+a+b+(void 0!==this.B?this.B.toString():"-")+(void 0!==this.Ce?this.Ce.toString():"-")+(void 0!==this.Rc?this.Rc.toString():"-")+(void 0!==this.ja?this.ja.toString():"-"),a,b,this.B,this.Ce,this.Rc,this.ja]);return this.La[0]};function je(a){a=a||{};ie.call(this,{points:Infinity,fill:a.fill,radius:a.radius,snapToPixel:a.snapToPixel,stroke:a.stroke,
atlasManager:a.atlasManager})}A(je,ie);je.prototype.clone=function(){var a=new je({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),snapToPixel:this.getSnapToPixel(),atlasManager:this.xi});a.setOpacity(this.getOpacity());a.setScale(this.getScale());return a};je.prototype.setRadius=function(a){this.B=a;this.Rh(this.xi)};M.impl={};M.impl.style={};M.impl.style.OLChart={};M.impl.style.OLChart=function(a){a=void 0===a?{}:
a;var b=M.utils.isNullOrEmpty(a.stroke)?0:a.stroke.getWidth();ie.call(this,{radius:("number"===typeof a.radius?a.radius:0)+b,fill:new ke({color:[0,0,0]}),rotation:"number"===typeof a.rotation?a.rotation:0,snapToPixel:"boolean"===typeof a.snapToPixel?a.snapToPixel:!1});a.scale&&this.setScale(a.scale);this.ir=a.variables||[];this.L=a.stroke||null;this.B=a.radius||0;this.Pi=a.donutRatio||0;this.gc=a.type||null;this.Mb=[a.offsetX?a.offsetX:0,a.offsetY?a.offsetY:0];this.animation_={animate:"number"===
typeof a.animation,step:"number"===typeof a.animation?a.animation:M.style.Chart.DEFAULT.Dy};this.eb=a.data||null;this.Vg=a.scheme instanceof Array?a.scheme:[];this.Ys=a.fill3DColor||"#000";this.Bb=a.rotateWithView||!1;this.renderChart_()};A(M.impl.style.OLChart,ie);M.impl.style.OLChart.prototype.clone=function(){var a=new M.impl.style.OLChart({type:this.gc,radius:this.B,colors:this.Vg,rotation:this.getRotation(),scale:this.getScale(),donutRatio:this.Pi,data:this.eb,snapToPixel:this.getSnapToPixel(),
stroke:this.L,scheme:this.Vg,offsetX:this.Mb[0],offsetY:this.Mb[1],animation:this.animation_,fill3DColor:this.Ys,rotateWithView:this.Bb});a.setScale(this.getScale());a.setOpacity(this.getOpacity());return a};Object.defineProperty(M.impl.style.OLChart.prototype,"data",{get:function(){return this.eb},set:function(a){this.eb=a;this.renderChart_()}});Object.defineProperty(M.impl.style.OLChart.prototype,"radius",{get:function(){return this.B},set:function(a){this.B=a;this.renderChart_()}});h=M.impl.style.OLChart.prototype;
h.setRadius=function(a,b){this.Pi=b||this.Pi;this.radius=a};h.setAnimation=function(a){if(!1===a){if(0==this.animation_.animate)return;this.animation_.animate=!1}else{if(this.animation_.step==a)return;this.animation_.animate=!0;this.animation_.step=a}this.renderChart_()};h.getChecksum=function(){var a=null!==this.L?this.L.getChecksum():"-";if(null===this.La||a!=this.La[1]||void 0!=this.La[2]||this.B!=this.La[3]||this.eb.join("|")!=this.La[4])this.La=["c"+a+void 0+(void 0!==this.B?this.B.toString():
"-")+this.eb.join("|"),a,void 0,this.B,this.eb.join("|")];return this.La[0]};h.renderChart_=function(){var a=this,b,c=0;this.L&&(b=Ed(this.L.getColor()),c=this.L.getWidth());var d=this.getImage(),e=d.getContext("2d");e.clearRect(0,0,d.width,d.height);e.lineJoin="round";var f=0;!M.utils.isNullOrEmpty(this.eb)&&0<this.eb.length&&(f=this.eb.reduce(function(a,b){return a+b}));e.setTransform(1,0,0,1,0,0);e.translate(0,0);var g=this.animation_.animate?this.animation_.step:1,k;switch(this.gc){case M.style.chart.types.DONUT:case M.style.chart.types.PIE_3D:case M.style.chart.types.PIE:var l,
m=Math.PI*(g-1.5);k=d.width/2;b&&(e.strokeStyle=b,e.lineWidth=c);e.save();this.gc===M.style.chart.types.PIE_3D?(e.translate(0,.3*k),e.scale(1,.7),e.beginPath(),e.fillStyle=this.Ys,e.arc(k,1.4*k,this.B*g,0,2*Math.PI),e.fill(),b&&e.stroke()):this.gc===M.style.chart.types.DONUT&&(e.save(),e.beginPath(),e.rect(0,0,2*k,2*k),e.arc(k,k,this.B*g*this.Pi,0,2*Math.PI),e.clip("evenodd"));this.eb.forEach(function(c,d){e.beginPath();e.moveTo(k,k);e.fillStyle=a.Vg[d%a.Vg.length];l=m+2*Math.PI*c/f*g;e.arc(k,k,a.B*
g,m,l);e.closePath();e.fill();b&&e.stroke();m=l});this.gc===M.style.chart.types.DONUT&&(e.restore(),e.beginPath(),e.strokeStyle=b,e.lineWidth=c,e.arc(k,k,this.B*g*this.Pi,Math.PI*(g-1.5),m),b&&e.stroke());e.restore();break;default:var n=Math.max.apply(null,this.eb)||0,q=Math.min(5,2*this.B/this.eb.length),r=d.width-(c||0),t;k=d.width/2;var u=k-this.eb.length*q/2;b&&(e.strokeStyle=b,e.lineWidth=c);this.eb.sort(function(a,b){return a-b}).forEach(function(c,d){e.beginPath();e.fillStyle=a.Vg[d%a.Vg.length];
t=u+q;c=a.eb[d]/n*2*a.B*g;e.rect(u,r-c,q,c);e.closePath();e.fill();b&&e.stroke();u=t})}c=this.getAnchor();c[0]=k-this.Mb[0];c[1]=k-this.Mb[1]};h.forceRender_=function(a,b,c){null!=a.getGeometry()&&(a=M.impl.utils.getCentroidCoordinate(a.getGeometry()),null!=a&&(a=new E({geometry:new F(a)}),c.drawFeature(a,b)))};var le="function"===typeof Object.assign?Object.assign:function(a,b){if(void 0===a||null===a)throw new TypeError("Cannot convert undefined or null to object");for(var c=Object(a),d=1,e=arguments.length;d<
e;++d){var f=arguments[d];if(void 0!==f&&null!==f)for(var g in f)f.hasOwnProperty(g)&&(c[g]=f[g])}return c};function me(a){for(var b in a)delete a[b]}function ne(a){var b=[],c;for(c in a)b.push(a[c]);return b}function oe(a){for(var b in a)return!1;return!b}function pe(a){function b(b){var c=a.listener,e=a.gs||a.target;a.Qf&&qe(a);return c.call(e,b)}return a.hs=b}function re(a,b,c,d){for(var e,f=0,g=a.length;f<g;++f)if(e=a[f],e.listener===b&&e.gs===c)return d&&(e.deleteIndex=f),e}function se(a,b){return(a=
a.nm)?a[b]:void 0}function te(a){var b=a.nm;b||(b=a.nm={});return b}function ue(a,b){var c=se(a,b);if(c){for(var d=0,e=c.length;d<e;++d)a.removeEventListener(b,c[d].hs),me(c[d]);c.length=0;if(c=a.nm)delete c[b],0===Object.keys(c).length&&delete a.nm}}function G(a,b,c,d,e){var f=te(a),g=f[b];g||(g=f[b]=[]);(f=re(g,c,d,!1))?e||(f.Qf=!1):(f={gs:d,Qf:!!e,listener:c,target:a,type:b},a.addEventListener(b,pe(f)),g.push(f));return f}function ve(a,b,c,d){return G(a,b,c,d,!0)}function we(a,b,c,d){(a=se(a,b))&&
(c=re(a,c,d,!0))&&qe(c)}function qe(a){if(a&&a.target){a.target.removeEventListener(a.type,a.hs);var b=se(a.target,a.type);if(b){var c="deleteIndex"in a?a.deleteIndex:b.indexOf(a);-1!==c&&b.splice(c,1);0===b.length&&ue(a.target,a.type)}me(a)}}function xe(a){var b=te(a),c;for(c in b)ue(a,c)}function ye(){}ye.prototype.Wf=!1;ye.prototype.Ib=function(){this.Wf||(this.Wf=!0,this.T())};ye.prototype.T=nd;function ze(a){this.type=a;this.target=null}ze.prototype.preventDefault=ze.prototype.stopPropagation=
function(){this.PC=!0};function Ae(a){a.stopPropagation()}function Be(){this.Kj={};this.$g={};this.ug={}}A(Be,ye);h=Be.prototype;h.addEventListener=function(a,b){var c=this.ug[a];c||(c=this.ug[a]=[]);-1===c.indexOf(b)&&c.push(b)};h.dispatchEvent=function(a){var b="string"===typeof a?new ze(a):a;a=b.type;b.target=this;var c=this.ug[a],d;if(c){a in this.$g||(this.$g[a]=0,this.Kj[a]=0);++this.$g[a];for(var e=0,f=c.length;e<f;++e)if(!1===c[e].call(this,b)||b.PC){d=!1;break}--this.$g[a];if(0===this.$g[a]){b=
this.Kj[a];for(delete this.Kj[a];b--;)this.removeEventListener(a,nd);delete this.$g[a]}return d}};h.T=function(){xe(this)};h.hasListener=function(a){return a?a in this.ug:0<Object.keys(this.ug).length};h.removeEventListener=function(a,b){var c=this.ug[a];c&&(b=c.indexOf(b),a in this.Kj?(c[b]=nd,++this.Kj[a]):(c.splice(b,1),0===c.length&&delete this.ug[a]))};var Ce={CHANGE:"change",CLICK:"click",ur:"dblclick",hx:"dragenter",ix:"dragover",jx:"drop",ERROR:"error",ox:"keydown",px:"keypress",LOAD:"load",
sx:"mousedown",tx:"mousemove",ux:"mouseout",vx:"mouseup",nG:"mousewheel",wx:"mspointerdown",Sx:"resize",ay:"touchstart",$x:"touchmove",Zx:"touchend",cy:"wheel"};function De(){Be.call(this);this.Km=0}A(De,Be);function Ee(a){if(Array.isArray(a))for(var b=0,c=a.length;b<c;++b)qe(a[b]);else qe(a)}h=De.prototype;h.changed=function(){++this.Km;this.dispatchEvent(Ce.CHANGE)};h.getRevision=function(){return this.Km};h.on=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=
G(this,a[f],b,c);return e}return G(this,a,b,c)};h.once=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=ve(this,a[f],b,c);return e}return ve(this,a,b,c)};h.un=function(a,b,c){if(Array.isArray(a))for(var d=0,e=a.length;d<e;++d)we(this,a[d],b,c);else we(this,a,b,c)};function Ge(a){De.call(this);D(this);this.ce={};void 0!==a&&this.setProperties(a)}A(Ge,De);var He={};function Ie(a){return He.hasOwnProperty(a)?He[a]:He[a]="change:"+a}h=Ge.prototype;h.get=function(a){var b;
this.ce.hasOwnProperty(a)&&(b=this.ce[a]);return b};h.getKeys=function(){return Object.keys(this.ce)};h.getProperties=function(){return le({},this.ce)};h.notify=function(a,b){var c;c=Ie(a);this.dispatchEvent(new Je(c,a,b));this.dispatchEvent(new Je("propertychange",a,b))};h.set=function(a,b,c){c?this.ce[a]=b:(c=this.ce[a],this.ce[a]=b,c!==b&&this.notify(a,c))};h.setProperties=function(a,b){for(var c in a)this.set(c,a[c],b)};h.unset=function(a,b){if(a in this.ce){var c=this.ce[a];delete this.ce[a];
b||this.notify(a,c)}};function Je(a,b,c){ze.call(this,a);this.key=b;this.oldValue=c}A(Je,ze);function Ke(a){Ge.call(this);this.element=a.element?a.element:null;this.map_=this.Nq=null;this.sg=[];this.render=a.render?a.render:nd;a.target&&this.setTarget(a.target)}A(Ke,Ge);Ke.prototype.T=function(){Jd(this.element);Ge.prototype.T.call(this)};Ke.prototype.getMap=function(){return this.map_};Ke.prototype.setMap=function(a){this.map_&&Jd(this.element);for(var b=0,c=this.sg.length;b<c;++b)qe(this.sg[b]);
this.sg.length=0;if(this.map_=a)(this.Nq?this.Nq:a.yg).appendChild(this.element),this.render!==nd&&this.sg.push(G(a,"postrender",this.render,this)),a.render()};Ke.prototype.setTarget=function(a){this.Nq="string"===typeof a?document.getElementById(a):a};M.impl.Control={};M.impl.Control=function(){this.facadeMap_=null};v(M.impl.Control,Ke);M.impl.Control.prototype.addTo=function(a,b){this.facadeMap_=a;Ke.call(this,{element:b,target:null});a.getMapImpl().addControl(this)};M.impl.Control.prototype.destroy=
function(){this.facadeMap_.getMapImpl().removeControl(this);this.facadeMap_=null};M.impl.Control.prototype.getElement=function(){return this.element};function Le(a,b){return a>b?1:a<b?-1:0}function Me(a,b){return 0<=a.indexOf(b)}function Ne(a,b,c){var d=a.length;if(a[0]<=b)return 0;if(!(b<=a[d-1]))if(0<c)for(c=1;c<d;++c){if(a[c]<b)return c-1}else if(0>c)for(c=1;c<d;++c){if(a[c]<=b)return c}else for(c=1;c<d;++c){if(a[c]==b)return c;if(a[c]<b)return a[c-1]-b<b-a[c]?c-1:c}return d-1}function Oe(a,b){var c=
Array.isArray(b)?b:[b],d=c.length;for(b=0;b<d;b++)a[a.length]=c[b]}function Pe(a,b){for(var c=a.length>>>0,d,e=0;e<c;e++)if(d=a[e],b(d,e,a))return d;return null}function Qe(a,b){var c=a.length;if(c!==b.length)return!1;for(var d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0}function Re(a){var b=Se,c=a.length,d=Array(a.length),e;for(e=0;e<c;e++)d[e]={index:e,value:a[e]};d.sort(function(a,c){return b(a.value,c.value)||a.index-c.index});for(e=0;e<a.length;e++)a[e]=d[e].value}function Te(a,b){var c;return a.every(function(d,
e){c=e;return!b(d,e,a)})?-1:c}function Ue(a,b){var c=b||Le;return a.every(function(b,e){if(0===e)return!0;b=c(a[e-1],b);return!(0<b||0===b)})}function Ve(a){for(var b=We(),c=0,d=a.length;c<d;++c)Xe(b,a[c]);return b}function Ye(a,b,c){return c?(c[0]=a[0]-b,c[1]=a[1]-b,c[2]=a[2]+b,c[3]=a[3]+b,c):[a[0]-b,a[1]-b,a[2]+b,a[3]+b]}function af(a,b){return b?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function bf(a,b,c){b=b<a[0]?a[0]-b:a[2]<b?b-a[2]:0;a=c<a[1]?a[1]-c:a[3]<c?c-a[3]:0;return b*b+a*
a}function cf(a,b){return df(a,b[0],b[1])}function ef(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}function df(a,b,c){return a[0]<=b&&b<=a[2]&&a[1]<=c&&c<=a[3]}function ff(a,b){var c=a[1],d=a[2],e=a[3],f=b[0];b=b[1];var g=0;f<a[0]?g|=16:f>d&&(g|=4);b<c?g|=8:b>e&&(g|=2);0===g&&(g=1);return g}function We(){return[Infinity,Infinity,-Infinity,-Infinity]}function gf(a,b,c,d,e){return e?(e[0]=a,e[1]=b,e[2]=c,e[3]=d,e):[a,b,c,d]}function hf(a,b){var c=a[0];a=a[1];return gf(c,a,c,a,b)}function jf(a,
b,c,d,e){e=gf(Infinity,Infinity,-Infinity,-Infinity,e);return kf(e,a,b,c,d)}function lf(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}function mf(a,b){b[0]<a[0]&&(a[0]=b[0]);b[2]>a[2]&&(a[2]=b[2]);b[1]<a[1]&&(a[1]=b[1]);b[3]>a[3]&&(a[3]=b[3]);return a}function Xe(a,b){b[0]<a[0]&&(a[0]=b[0]);b[0]>a[2]&&(a[2]=b[0]);b[1]<a[1]&&(a[1]=b[1]);b[1]>a[3]&&(a[3]=b[1])}function kf(a,b,c,d,e){for(;c<d;c+=e){var f=a,g=b[c],k=b[c+1];f[0]=Math.min(f[0],g);f[1]=Math.min(f[1],k);f[2]=Math.max(f[2],g);
f[3]=Math.max(f[3],k)}return a}function nf(a,b,c){var d;return(d=b.call(c,of(a)))||(d=b.call(c,pf(a)))||(d=b.call(c,rf(a)))?d:(d=b.call(c,sf(a)))?d:!1}function tf(a){var b=0;uf(a)||(b=vf(a)*wf(a));return b}function of(a){return[a[0],a[1]]}function pf(a){return[a[2],a[1]]}function xf(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}function yf(a,b,c,d,e){var f=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);var g=Math.sin(c);c=f*b;f*=g;b*=d;var k=d*g,l=a[0],m=a[1];a=l-c+k;d=l-c-k;g=l+c-k;c=l+c+k;var k=m-f-b,l=m-f+b,n=m+f+
b,f=m+f-b;return gf(Math.min(a,d,g,c),Math.min(k,l,n,f),Math.max(a,d,g,c),Math.max(k,l,n,f),e)}function wf(a){return a[3]-a[1]}function zf(a,b,c){c=c?c:We();Af(a,b)&&(c[0]=a[0]>b[0]?a[0]:b[0],c[1]=a[1]>b[1]?a[1]:b[1],c[2]=a[2]<b[2]?a[2]:b[2],c[3]=a[3]<b[3]?a[3]:b[3]);return c}function sf(a){return[a[0],a[3]]}function rf(a){return[a[2],a[3]]}function vf(a){return a[2]-a[0]}function Af(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function uf(a){return a[2]<a[0]||a[3]<a[1]}function Bf(a,
b){var c=(a[2]-a[0])/2*(b-1);b=(a[3]-a[1])/2*(b-1);a[0]-=c;a[2]+=c;a[1]-=b;a[3]+=b}function Cf(a,b,c){a=[a[0],a[1],a[0],a[3],a[2],a[1],a[2],a[3]];b(a,a,2);var d=[a[0],a[2],a[4],a[6]],e=[a[1],a[3],a[5],a[7]];b=Math.min.apply(null,d);a=Math.min.apply(null,e);d=Math.max.apply(null,d);e=Math.max.apply(null,e);return gf(b,a,d,e,c)}function Df(){return!0}function Ef(){return!1}function Ff(a){this.radius=a}Ff.prototype.geodesicArea=function(a){for(var b=0,c=a.length,d=a[c-1][0],e=a[c-1][1],f=0;f<c;f++)var g=
a[f][0],k=a[f][1],b=b+xd(g-d)*(2+Math.sin(xd(e))+Math.sin(xd(k))),d=g,e=k;return b*this.radius*this.radius/2};Ff.prototype.haversineDistance=function(a,b){var c=xd(a[1]),d=xd(b[1]),e=(d-c)/2;a=xd(b[0]-a[0])/2;c=Math.sin(e)*Math.sin(e)+Math.sin(a)*Math.sin(a)*Math.cos(c)*Math.cos(d);return 2*this.radius*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};Ff.prototype.offset=function(a,b,c){var d=xd(a[1]);b/=this.radius;var e=Math.asin(Math.sin(d)*Math.cos(b)+Math.cos(d)*Math.sin(b)*Math.cos(c));return[180*(xd(a[0])+
Math.atan2(Math.sin(c)*Math.sin(b)*Math.cos(d),Math.cos(b)-Math.sin(d)*Math.sin(e)))/Math.PI,180*e/Math.PI]};var Gf=new Ff(6370997);var Hf={};Hf.degrees=2*Math.PI*Gf.radius/360;Hf.ft=.3048;Hf.m=1;Hf["us-ft"]=1200/3937;var If=proj4;function Jf(a){this.Sy=a.code;this.cr=a.units;this.extent_=void 0!==a.extent?a.extent:null;this.Ow=void 0!==a.worldExtent?a.worldExtent:null;this.ge=void 0!==a.axisOrientation?a.axisOrientation:"enu";this.rl=void 0!==a.global?a.global:!1;this.he=!(!this.rl||!this.extent_);
this.wt=a.getPointResolution;this.Fs=null;this.im=a.metersPerUnit;var b=a.code,c=If||window.proj4;"function"==typeof c&&(b=c.defs(b),void 0!==b&&(void 0!==b.axis&&void 0===a.axisOrientation&&(this.ge=b.axis),void 0===a.metersPerUnit&&(this.im=b.vJ),void 0===a.units&&(this.cr=b.units)))}h=Jf.prototype;h.getCode=function(){return this.Sy};h.getExtent=function(){return this.extent_};h.getUnits=function(){return this.cr};h.getMetersPerUnit=function(){return this.im||Hf[this.cr]};h.getWorldExtent=function(){return this.Ow};
h.isGlobal=function(){return this.rl};h.setGlobal=function(a){this.rl=a;this.he=!(!a||!this.extent_)};h.setExtent=function(a){this.extent_=a;this.he=!(!this.rl||!a)};h.setWorldExtent=function(a){this.Ow=a};h.setGetPointResolution=function(a){this.wt=a};var Kf={};var Lf={};function Mf(a,b,c){a=a.getCode();b=b.getCode();a in Lf||(Lf[a]={});Lf[a][b]=c}function Nf(a,b){var c;a in Lf&&b in Lf[a]&&(c=Lf[a][b]);return c}function Of(a,b,c){var d=a.wt;d?b=d(b,c):"degrees"!=a.getUnits()&&(d=Pf(a,H("EPSG:4326")),
b=[c[0]-b/2,c[1],c[0]+b/2,c[1],c[0],c[1]-b/2,c[0],c[1]+b/2],b=d(b,b,2),c=Gf.haversineDistance(b.slice(0,2),b.slice(2,4)),b=Gf.haversineDistance(b.slice(4,6),b.slice(6,8)),b=(c+b)/2,a=a.getMetersPerUnit(),void 0!==a&&(b/=a));return b}function Qf(a){Rf(a);a.forEach(function(b){a.forEach(function(a){b!==a&&Mf(b,a,Sf)})})}function Tf(){var a=Uf,b=Vf,c=Wf;Xf.forEach(function(d){a.forEach(function(a){Mf(d,a,b);Mf(a,d,c)})})}function Yf(a){var b=a.getCode();Kf[b]=a;Mf(a,a,Sf)}function Rf(a){var b=[];a.forEach(function(a){b.push(Yf(a))})}
function Zf(a){return a?"string"===typeof a?H(a):a:H("EPSG:3857")}function $f(a,b,c,d){a=H(a);b=H(b);Mf(a,b,ag(c));Mf(b,a,ag(d))}function ag(a){return function(b,c,d){var e=b.length;d=void 0!==d?d:2;c=void 0!==c?c:Array(e);var f,g;for(g=0;g<e;g+=d)for(f=a([b[g],b[g+1]]),c[g]=f[0],c[g+1]=f[1],f=d-1;2<=f;--f)c[g+f]=b[g+f];return c}}function H(a){var b=null;if(a instanceof Jf)b=a;else if("string"===typeof a){var b=Kf[a]||null,c=If||window.proj4;b||"function"!=typeof c||void 0===c.defs(a)||(b=new Jf({code:a}),
Yf(b))}return b}function bg(a,b){if(a===b)return!0;var c=a.getUnits()===b.getUnits();return a.getCode()===b.getCode()?c:Pf(a,b)===Sf&&c}function cg(a,b){a=H(a);b=H(b);return Pf(a,b)}function Pf(a,b){var c=a.getCode(),d=b.getCode(),e=Nf(c,d);if(!e){var f=If||window.proj4;if("function"==typeof f){var g=f.defs(c),k=f.defs(d);void 0!==g&&void 0!==k&&(g===k?Qf([b,a]):(e=f(d,c),$f(b,a,e.forward,e.inverse)),e=Nf(c,d))}}e||(e=dg);return e}function dg(a,b){if(void 0!==b&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=
a[c];a=b}return a}function Sf(a,b){if(void 0!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}else a=a.slice();return a}function eg(a,b,c){return cg(b,c)(a,void 0,a.length)}function fg(a,b,c){b=cg(b,c);return Cf(a,b)}var I={};function gg(){Ge.call(this);this.extent_=We();this.Vs=-1;this.yf={};this.Pm=this.zf=0}A(gg,Ge);h=gg.prototype;h.getClosestPoint=function(a,b){b=b?b:[NaN,NaN];this.Uc(a[0],a[1],b,Infinity);return b};h.intersectsCoordinate=function(a){return this.containsXY(a[0],a[1])};h.containsXY=
Ef;h.getExtent=function(a){this.Vs!=this.getRevision()&&(this.extent_=this.Tk(this.extent_),this.Vs=this.getRevision());var b=this.extent_;a?(a[0]=b[0],a[1]=b[1],a[2]=b[2],a[3]=b[3]):a=b;return a};h.simplify=function(a){return this.$i(a*a)};h.transform=function(a,b){this.applyTransform(cg(a,b));return this};function hg(){this.Ds=this.defaultDataProjection=null}function ig(a,b,c){var d;c&&(d={dataProjection:c.dataProjection?c.dataProjection:a.readProjection(b),featureProjection:c.featureProjection});
return jg(a,d)}function jg(a,b){return le({dataProjection:a.defaultDataProjection,featureProjection:a.Ds},b)}function kg(a,b,c){var d=c?H(c.featureProjection):null,e=c?H(c.dataProjection):null;a=d&&e&&!bg(d,e)?a instanceof gg?(b?a.clone():a).transform(b?d:e,b?e:d):fg(b?a.slice():a,b?d:e,b?e:d):a;if(b&&c&&c.decimals){var f=Math.pow(10,c.decimals);b=function(a){for(var b=0,c=a.length;b<c;++b)a[b]=Math.round(a[b]*f)/f;return a};Array.isArray(a)?b(a):a.applyTransform(b)}return a}function ke(a){a=a||{};
this.Y=void 0!==a.color?a.color:null;this.Wa=void 0}ke.prototype.clone=function(){var a=this.getColor();return new ke({color:a&&a.slice?a.slice():a||void 0})};ke.prototype.getColor=function(){return this.Y};ke.prototype.setColor=function(a){this.Y=a;this.Wa=void 0};ke.prototype.getChecksum=function(){void 0===this.Wa&&(this.Wa=this.Y instanceof CanvasPattern||this.Y instanceof CanvasGradient?D(this.Y).toString():"f"+(this.Y?Ed(this.Y):"-"));return this.Wa};function lg(a){a=a||{};this.Y=void 0!==a.color?
a.color:null;this.Ul=a.lineCap;this.Wl=void 0!==a.lineDash?a.lineDash:null;this.Vl=a.lineDashOffset;this.Xl=a.lineJoin;this.jm=a.miterLimit;this.Qb=a.width;this.Wa=void 0}h=lg.prototype;h.clone=function(){var a=this.getColor();return new lg({color:a&&a.slice?a.slice():a||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})};h.getColor=
function(){return this.Y};h.getLineCap=function(){return this.Ul};h.getLineDash=function(){return this.Wl};h.getLineDashOffset=function(){return this.Vl};h.getLineJoin=function(){return this.Xl};h.getMiterLimit=function(){return this.jm};h.getWidth=function(){return this.Qb};h.setColor=function(a){this.Y=a;this.Wa=void 0};h.setLineCap=function(a){this.Ul=a;this.Wa=void 0};h.setLineDash=function(a){this.Wl=a;this.Wa=void 0};h.setLineDashOffset=function(a){this.Vl=a;this.Wa=void 0};h.setLineJoin=function(a){this.Xl=
a;this.Wa=void 0};h.setMiterLimit=function(a){this.jm=a;this.Wa=void 0};h.setWidth=function(a){this.Qb=a;this.Wa=void 0};h.getChecksum=function(){void 0===this.Wa&&(this.Wa="s",this.Wa=this.Y?"string"===typeof this.Y?this.Wa+this.Y:this.Wa+D(this.Y).toString():this.Wa+"-",this.Wa+=","+(void 0!==this.Ul?this.Ul.toString():"-")+","+(this.Wl?this.Wl.toString():"-")+","+(void 0!==this.Vl?this.Vl:"-")+","+(void 0!==this.Xl?this.Xl:"-")+","+(void 0!==this.jm?this.jm.toString():"-")+","+(void 0!==this.Qb?
this.Qb.toString():"-"));return this.Wa};function mg(a){a=a||{};this.ag=null;this.tb=ng;void 0!==a.geometry&&this.setGeometry(a.geometry);this.ga=void 0!==a.fill?a.fill:null;this.f=void 0!==a.image?a.image:null;this.L=void 0!==a.stroke?a.stroke:null;this.oa=void 0!==a.text?a.text:null;this.zIndex_=a.zIndex}h=mg.prototype;h.clone=function(){var a=this.getGeometry();a&&a.clone&&(a=a.clone());return new mg({geometry:a,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():
void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})};h.getGeometry=function(){return this.ag};h.getGeometryFunction=function(){return this.tb};h.getFill=function(){return this.ga};h.setFill=function(a){this.ga=a};h.getImage=function(){return this.f};h.setImage=function(a){this.f=a};h.getStroke=function(){return this.L};h.setStroke=function(a){this.L=a};h.getText=function(){return this.oa};h.setText=function(a){this.oa=
a};mg.prototype.getZIndex=function(){return this.zIndex_};mg.prototype.setGeometry=function(a){"function"===typeof a?this.tb=a:"string"===typeof a?this.tb=function(b){return b.get(a)}:a?void 0!==a&&(this.tb=function(){return a}):this.tb=ng;this.ag=a};mg.prototype.setZIndex=function(a){this.zIndex_=a};function og(a){if("function"!==typeof a){var b;Array.isArray(a)?b=a:(qd(a instanceof mg,41),b=[a]);a=function(){return b}}return a}var pg=null;function qg(){if(!pg){var a=new ke({color:"rgba(255,255,255,0.4)"}),
b=new lg({color:"#3399CC",width:1.25});pg=[new mg({image:new je({fill:a,stroke:b,radius:5}),fill:a,stroke:b})]}return pg}function rg(){var a={},b=[255,255,255,1],c=[0,153,255,1];a.Polygon=[new mg({fill:new ke({color:[255,255,255,.5]})})];a.MultiPolygon=a.Polygon;a.LineString=[new mg({stroke:new lg({color:b,width:5})}),new mg({stroke:new lg({color:c,width:3})})];a.MultiLineString=a.LineString;a.Circle=a.Polygon.concat(a.LineString);a.Point=[new mg({image:new je({radius:6,fill:new ke({color:c}),stroke:new lg({color:b,
width:1.5})}),zIndex:Infinity})];a.MultiPoint=a.Point;a.GeometryCollection=a.Polygon.concat(a.LineString,a.Point);return a}function ng(a){return a.getGeometry()}function E(a){Ge.call(this);this.El=void 0;this.Xa="geometry";this.style_=null;this.Yd=void 0;this.jl=null;G(this,Ie(this.Xa),this.wl,this);void 0!==a&&(a instanceof gg||!a?this.setGeometry(a):this.setProperties(a))}A(E,Ge);h=E.prototype;h.clone=function(){var a=new E(this.getProperties());a.setGeometryName(this.getGeometryName());var b=this.getGeometry();
b&&a.setGeometry(b.clone());(b=this.getStyle())&&a.setStyle(b);return a};h.getGeometry=function(){return this.get(this.Xa)};h.getId=function(){return this.El};h.getGeometryName=function(){return this.Xa};h.getStyle=function(){return this.style_};h.getStyleFunction=function(){return this.Yd};h.pA=function(){this.changed()};h.wl=function(){this.jl&&(qe(this.jl),this.jl=null);var a=this.getGeometry();a&&(this.jl=G(a,Ce.CHANGE,this.pA,this));this.changed()};h.setGeometry=function(a){this.set(this.Xa,
a)};h.setStyle=function(a){this.Yd=(this.style_=a)?sg(a):void 0;this.changed()};h.setId=function(a){this.El=a;this.changed()};h.setGeometryName=function(a){we(this,Ie(this.Xa),this.wl,this);this.Xa=a;G(this,Ie(this.Xa),this.wl,this);this.wl()};function sg(a){var b;if("function"===typeof a)b=2==a.length?function(b){return a(this,b)}:a;else{var c;Array.isArray(a)?c=a:(qd(a instanceof mg,41),c=[a]);b=function(){return c}}return b}var tg=document.implementation.createDocument("","",null);function ug(a,
b){return tg.createElementNS(a,b)}function vg(a,b){return wg(a,b,[]).join("")}function wg(a,b,c){if(a.nodeType==Node.CDATA_SECTION_NODE||a.nodeType==Node.TEXT_NODE)b?c.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(a.nodeValue);else for(a=a.firstChild;a;a=a.nextSibling)wg(a,b,c);return c}function xg(a){return a instanceof Document}function yg(a){return a instanceof Node}function zg(a){return(new DOMParser).parseFromString(a,"application/xml")}function Ag(a,b){return function(c,d){c=
a.call(b,c,d);void 0!==c&&Oe(d[d.length-1],c)}}function Bg(a,b){return function(c,d){c=a.call(void 0!==b?b:this,c,d);void 0!==c&&d[d.length-1].push(c)}}function Cg(a,b){return function(c,d){c=a.call(void 0!==b?b:this,c,d);void 0!==c&&(d[d.length-1]=c)}}function Dg(a){return function(b,c){var d=a.call(this,b,c);void 0!==d&&(c=c[c.length-1],b=b.localName,(b in c?c[b]:c[b]=[]).push(d))}}function K(a,b){return function(c,d){var e=a.call(this,c,d);void 0!==e&&(d[d.length-1][void 0!==b?b:c.localName]=e)}}
function L(a,b){return function(c,d,e){a.call(void 0!==b?b:this,c,d,e);e[e.length-1].node.appendChild(c)}}function Eg(a){var b,c;return function(d,e,f){if(void 0===b){b={};var g={};g[d.localName]=a;b[d.namespaceURI]=g;c=Fg(d.localName)}Gg(b,c,e,f)}}function Fg(a,b){return function(c,d,e){c=d[d.length-1].node;d=a;void 0===d&&(d=e);e=b;void 0===b&&(e=c.namespaceURI);return ug(e,d)}}var Hg=Fg();function Ig(a,b){for(var c=b.length,d=Array(c),e=0;e<c;++e)d[e]=a[b[e]];return d}function N(a,b,c){c=void 0!==
c?c:{};var d,e;d=0;for(e=a.length;d<e;++d)c[a[d]]=b;return c}function Jg(a,b,c,d){for(b=b.firstElementChild;b;b=b.nextElementSibling){var e=a[b.namespaceURI];void 0!==e&&(e=e[b.localName],void 0!==e&&e.call(d,b,c))}}function O(a,b,c,d,e){d.push(a);Jg(b,c,d,e);return d.pop()}function Gg(a,b,c,d,e,f){for(var g=(void 0!==e?e:c).length,k,l,m=0;m<g;++m)k=c[m],void 0!==k&&(l=b.call(f,k,d,void 0!==e?e[m]:void 0),void 0!==l&&a[l.namespaceURI][l.localName].call(f,l,k,d))}function Kg(a,b,c,d,e,f,g){e.push(a);
Gg(b,c,d,e,f,g);e.pop()}function Lg(){this.sr=new XMLSerializer;hg.call(this)}A(Lg,hg);h=Lg.prototype;h.getType=function(){return"xml"};h.readFeature=function(a,b){return xg(a)?Mg(this,a,b):yg(a)?this.$p(a,b):"string"===typeof a?(a=zg(a),Mg(this,a,b)):null};function Mg(a,b,c){a=Ng(a,b,c);return 0<a.length?a[0]:null}h.$p=function(){return null};h.readFeatures=function(a,b){return xg(a)?Ng(this,a,b):yg(a)?this.xf(a,b):"string"===typeof a?(a=zg(a),Ng(this,a,b)):[]};function Ng(a,b,c){var d=[];for(b=
b.firstChild;b;b=b.nextSibling)b.nodeType==Node.ELEMENT_NODE&&Oe(d,a.xf(b,c));return d}h.readGeometry=function(a,b){if(xg(a))return null;if(yg(a))return this.qv(a,b);"string"===typeof a&&zg(a);return null};h.qv=function(){return null};h.readProjection=function(a){return xg(a)?this.gq(a):yg(a)?this.Dm(a):"string"===typeof a?(a=zg(a),this.gq(a)):null};h.gq=function(){return this.defaultDataProjection};h.Dm=function(){return this.defaultDataProjection};h.writeFeature=function(a,b){return this.sr.serializeToString(this.jr(a,
b))};h.jr=function(){return null};h.writeFeatures=function(a,b){a=this.writeFeaturesNode(a,b);return this.sr.serializeToString(a)};h.writeFeaturesNode=function(){return null};h.writeGeometry=function(a,b){a=this.writeGeometryNode(a,b);return this.sr.serializeToString(a)};h.writeGeometryNode=function(){return null};I.a={};I.a.transform={};I.a.transform.ii=function(a,b,c,d,e,f){for(var g=f?f:[],k=0;b<c;b+=d){var l=a[b],m=a[b+1];g[k++]=e[0]*l+e[2]*m+e[4];g[k++]=e[1]*l+e[3]*m+e[5]}f&&g.length!=k&&(g.length=
k);return g};I.a.transform.rotate=function(a,b,c,d,e,f,g){var k=g?g:[],l=Math.cos(e);e=Math.sin(e);var m=f[0];f=f[1];for(var n=0;b<c;b+=d){var q=a[b]-m,r=a[b+1]-f;k[n++]=m+q*l-r*e;k[n++]=f+q*e+r*l;for(q=b+2;q<b+d;++q)k[n++]=a[q]}g&&k.length!=n&&(k.length=n);return k};I.a.transform.scale=function(a,b,c,d,e,f,g,k){var l=k?k:[],m=g[0];g=g[1];for(var n=0;b<c;b+=d){var q=a[b]-m,r=a[b+1]-g;l[n++]=m+e*q;l[n++]=g+f*r;for(q=b+2;q<b+d;++q)l[n++]=a[q]}k&&l.length!=n&&(l.length=n);return l};I.a.transform.translate=
function(a,b,c,d,e,f,g){for(var k=g?g:[],l=0,m;b<c;b+=d)for(k[l++]=a[b]+e,k[l++]=a[b+1]+f,m=b+2;m<b+d;++m)k[l++]=a[m];g&&k.length!=l&&(k.length=l);return k};function Og(){gg.call(this);this.Ca="XY";this.l=2;this.b=null}A(Og,gg);function Pg(a){var b;"XY"==a?b=2:"XYZ"==a||"XYM"==a?b=3:"XYZM"==a&&(b=4);return b}h=Og.prototype;h.containsXY=Ef;h.Tk=function(a){return jf(this.b,0,this.b.length,this.l,a)};h.getFirstCoordinate=function(){return this.b.slice(0,this.l)};h.M=function(){return this.b};h.getLastCoordinate=
function(){return this.b.slice(this.b.length-this.l)};h.getLayout=function(){return this.Ca};h.$i=function(a){this.Pm!=this.getRevision()&&(me(this.yf),this.zf=0,this.Pm=this.getRevision());if(0>a||0!==this.zf&&a<=this.zf)return this;var b=a.toString();if(this.yf.hasOwnProperty(b))return this.yf[b];var c=this.nh(a);if(c.M().length<this.b.length)return this.yf[b]=c;this.zf=a;return this};h.nh=function(){return this};h.aa=function(){return this.l};function Qg(a,b,c){a.l=Pg(b);a.Ca=b;a.b=c}function Rg(a,
b,c,d){if(b)c=Pg(b);else{for(b=0;b<d;++b){if(0===c.length){a.Ca="XY";a.l=2;return}c=c[0]}c=c.length;var e;2==c?e="XY":3==c?e="XYZ":4==c&&(e="XYZM");b=e}a.Ca=b;a.l=c}h.applyTransform=function(a){this.b&&(a(this.b,this.b,this.l),this.changed())};h.rotate=function(a,b){var c=this.M();c&&(I.a.transform.rotate(c,0,c.length,this.aa(),a,b,c),this.changed())};h.scale=function(a,b,c){void 0===b&&(b=a);c||(c=xf(this.getExtent()));var d=this.M();d&&(I.a.transform.scale(d,0,d.length,this.aa(),a,b,c,d),this.changed())};
h.translate=function(a,b){var c=this.M();c&&(I.a.transform.translate(c,0,c.length,this.aa(),a,b,c),this.changed())};I.a.closest={};I.a.closest.$u=function(a,b,c,d,e,f,g){var k=a[b],l=a[b+1],m=a[c]-k,n=a[c+1]-l;if(0!==m||0!==n)if(f=((e-k)*m+(f-l)*n)/(m*m+n*n),1<f)b=c;else if(0<f){for(e=0;e<d;++e)g[e]=zd(a[b+e],a[c+e],f);g.length=d;return}for(e=0;e<d;++e)g[e]=a[b+e];g.length=d};I.a.closest.Zo=function(a,b,c,d,e){var f=a[b],g=a[b+1];for(b+=d;b<c;b+=d){var k=a[b],l=a[b+1],f=wd(f,g,k,l);f>e&&(e=f);f=k;
g=l}return e};I.a.closest.gp=function(a,b,c,d,e){var f,g;f=0;for(g=c.length;f<g;++f){var k=c[f];e=I.a.closest.Zo(a,b,k,d,e);b=k}return e};I.a.closest.dA=function(a,b,c){var d=0,e=0,f,g;f=0;for(g=b.length;f<g;++f)var k=b[f],e=I.a.closest.gp(a,d,k,c,e),d=k[k.length-1];return e};I.a.closest.getClosestPoint=function(a,b,c,d,e,f,g,k,l,m,n){if(b==c)return m;var q;if(0===e){q=wd(g,k,a[b],a[b+1]);if(q<m){for(n=0;n<d;++n)l[n]=a[b+n];l.length=d;return q}return m}for(var r=n?n:[NaN,NaN],t=b+d;t<c;)if(I.a.closest.$u(a,
t-d,t,d,g,k,r),q=wd(g,k,r[0],r[1]),q<m){m=q;for(n=0;n<d;++n)l[n]=r[n];l.length=d;t+=d}else t+=d*Math.max((Math.sqrt(q)-Math.sqrt(m))/e|0,1);if(f&&(I.a.closest.$u(a,c-d,b,d,g,k,r),q=wd(g,k,r[0],r[1]),q<m)){m=q;for(n=0;n<d;++n)l[n]=r[n];l.length=d}return m};I.a.closest.fp=function(a,b,c,d,e,f,g,k,l,m,n){n=n?n:[NaN,NaN];var q,r;q=0;for(r=c.length;q<r;++q){var t=c[q];m=I.a.closest.getClosestPoint(a,b,t,d,e,f,g,k,l,m,n);b=t}return m};I.a.closest.cA=function(a,b,c,d,e,f,g,k){var l=0,m=[NaN,NaN],n,q;n=0;
for(q=b.length;n<q;++n){var r=b[n];k=I.a.closest.fp(a,l,r,c,d,!0,e,f,g,k,m);l=r[r.length-1]}return k};I.a.Hb={};I.a.Hb.coordinate=function(a,b,c){var d,e;d=0;for(e=c.length;d<e;++d)a[b++]=c[d];return b};I.a.Hb.coordinates=function(a,b,c,d){var e,f;e=0;for(f=c.length;e<f;++e){var g=c[e],k;for(k=0;k<d;++k)a[b++]=g[k]}return b};I.a.Hb.Uf=function(a,b,c,d,e){e=e?e:[];var f=0,g,k;g=0;for(k=c.length;g<k;++g)b=I.a.Hb.coordinates(a,b,c[g],d),e[f++]=b;e.length=f;return e};I.a.Hb.so=function(a,b,c,d,e){e=e?
e:[];var f=0,g,k;g=0;for(k=c.length;g<k;++g)b=I.a.Hb.Uf(a,b,c[g],d,e[f]),e[f++]=b,b=b[b.length-1];e.length=f;return e};I.a.Hc={};I.a.Hc.coordinates=function(a,b,c,d,e){e=void 0!==e?e:[];for(var f=0;b<c;b+=d)e[f++]=a.slice(b,b+d);e.length=f;return e};I.a.Hc.Uf=function(a,b,c,d,e){e=void 0!==e?e:[];var f=0,g,k;g=0;for(k=c.length;g<k;++g){var l=c[g];e[f++]=I.a.Hc.coordinates(a,b,l,d,e[f]);b=l}e.length=f;return e};I.a.Hc.so=function(a,b,c,d,e){e=void 0!==e?e:[];var f=0,g,k;g=0;for(k=c.length;g<k;++g){var l=
c[g];e[f++]=I.a.Hc.Uf(a,b,l,d,e[f]);b=l[l.length-1]}e.length=f;return e};I.a.xe={};I.a.xe.Kd=function(a,b,c,d,e,f){var g=NaN,k=NaN,l=(c-b)/d;if(1===l)g=a[b],k=a[b+1];else if(2==l)g=(1-e)*a[b]+e*a[b+d],k=(1-e)*a[b+1]+e*a[b+d+1];else if(0!==l){var k=a[b],l=a[b+1],m=0,g=[0],n;for(n=b+d;n<c;n+=d){var q=a[n],r=a[n+1],m=m+Math.sqrt((q-k)*(q-k)+(r-l)*(r-l));g.push(m);k=q;l=r}c=e*m;l=0;m=g.length;for(n=!1;l<m;)e=l+(m-l>>1),k=+Le(g[e],c),0>k?l=e+1:(m=e,n=!k);e=n?l:~l;0>e?(c=(c-g[-e-2])/(g[-e-1]-g[-e-2]),b+=
(-e-2)*d,g=zd(a[b],a[b+d],c),k=zd(a[b+1],a[b+d+1],c)):(g=a[b+e*d],k=a[b+e*d+1])}return f?(f[0]=g,f[1]=k,f):[g,k]};I.a.xe.Dp=function(a,b,c,d,e,f){if(c==b)return null;if(e<a[b+d-1])return f?(c=a.slice(b,b+d),c[d-1]=e,c):null;if(a[c-1]<e)return f?(c=a.slice(c-d,c),c[d-1]=e,c):null;if(e==a[b+d-1])return a.slice(b,b+d);b/=d;for(c/=d;b<c;)f=b+c>>1,e<a[(f+1)*d-1]?c=f:b=f+1;c=a[b*d-1];if(e==c)return a.slice((b-1)*d,(b-1)*d+d);f=(e-c)/(a[(b+1)*d-1]-c);c=[];var g;for(g=0;g<d-1;++g)c.push(zd(a[(b-1)*d+g],a[b*
d+g],f));c.push(e);return c};I.a.xe.uB=function(a,b,c,d,e,f){var g=0;if(f)return I.a.xe.Dp(a,g,b[b.length-1],c,d,e);if(d<a[c-1])return e?(a=a.slice(0,c),a[c-1]=d,a):null;if(a[a.length-1]<d)return e?(a=a.slice(a.length-c),a[c-1]=d,a):null;e=0;for(f=b.length;e<f;++e){var k=b[e];if(g!=k){if(d<a[g+c-1])break;else if(d<=a[k-1])return I.a.xe.Dp(a,g,k,c,d,!1);g=k}}return null};I.a.contains={};I.a.contains.vB=function(a,b,c,d,e){return!nf(e,function(e){return!I.a.contains.mf(a,b,c,d,e[0],e[1])})};I.a.contains.mf=
function(a,b,c,d,e,f){for(var g=0,k=a[c-d],l=a[c-d+1];b<c;b+=d){var m=a[b],n=a[b+1];l<=f?n>f&&0<(m-k)*(f-l)-(e-k)*(n-l)&&g++:n<=f&&0>(m-k)*(f-l)-(e-k)*(n-l)&&g--;k=m;l=n}return 0!==g};I.a.contains.Gp=function(a,b,c,d,e,f){if(0===c.length||!I.a.contains.mf(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;b<g;++b)if(I.a.contains.mf(a,c[b-1],c[b],d,e,f))return!1;return!0};I.a.contains.xB=function(a,b,c,d,e){var f=0;if(0===b.length)return!1;var g,k;g=0;for(k=b.length;g<k;++g){var l=b[g];if(I.a.contains.Gp(a,
f,l,c,d,e))return!0;f=l[l.length-1]}return!1};I.a.zq={};I.a.zq.forEach=function(a,b,c,d,e,f){for(var g=[a[b],a[b+1]],k=[],l;b+d<c;b+=d){k[0]=a[b+d];k[1]=a[b+d+1];if(l=e.call(f,g,k))return l;g[0]=k[0];g[1]=k[1]}return!1};I.a.sc={};I.a.sc.Kd=function(a,b,c,d,e){var f=kf(We(),a,b,c,d);return Af(e,f)?ef(e,f)||f[0]>=e[0]&&f[2]<=e[2]||f[1]>=e[1]&&f[3]<=e[3]?!0:I.a.zq.forEach(a,b,c,d,function(a,b){var c=!1,d=ff(e,a),f=ff(e,b);if(1===d||1===f)c=!0;else{var g=e[0],k=e[1],t=e[2],u=e[3],y=b[0];b=b[1];a=(b-a[1])/
(y-a[0]);f&2&&!(d&2)&&(c=y-(b-u)/a,c=c>=g&&c<=t);c||!(f&4)||d&4||(c=b-(y-t)*a,c=c>=k&&c<=u);c||!(f&8)||d&8||(c=y-(b-k)/a,c=c>=g&&c<=t);c||!(f&16)||d&16||(c=b-(y-g)*a,c=c>=k&&c<=u)}return c}):!1};I.a.sc.tB=function(a,b,c,d){var e=0,f,g;f=0;for(g=b.length;f<g;++f){if(I.a.sc.Kd(a,e,b[f],c,d))return!0;e=b[f]}return!1};I.a.sc.yh=function(a,b,c,d,e){return I.a.sc.Kd(a,b,c,d,e)||I.a.contains.mf(a,b,c,d,e[0],e[1])||I.a.contains.mf(a,b,c,d,e[0],e[3])||I.a.contains.mf(a,b,c,d,e[2],e[1])||I.a.contains.mf(a,
b,c,d,e[2],e[3])?!0:!1};I.a.sc.nf=function(a,b,c,d,e){if(!I.a.sc.yh(a,b,c[0],d,e))return!1;if(1===c.length)return!0;var f;b=1;for(f=c.length;b<f;++b)if(I.a.contains.vB(a,c[b-1],c[b],d,e))return!1;return!0};I.a.sc.rg=function(a,b,c,d,e){var f,g;f=0;for(g=c.length;f<g;++f){var k=c[f];if(I.a.sc.nf(a,b,k,d,e))return!0;b=k[k.length-1]}return!1};I.a.length={};I.a.length.Kd=function(a,b,c,d){var e=a[b],f=a[b+1],g=0;for(b+=d;b<c;b+=d)var k=a[b],l=a[b+1],g=g+Math.sqrt((k-e)*(k-e)+(l-f)*(l-f)),e=k,f=l;return g};
I.a.length.yh=function(a,b,c,d){var e=I.a.length.Kd(a,b,c,d),f=a[c-d]-a[b];a=a[c-d+1]-a[b+1];return e+=Math.sqrt(f*f+a*a)};I.a.simplify={};I.a.simplify.Kd=function(a,b,c,d,e,f,g){g=void 0!==g?g:[];f||(c=I.a.simplify.SC(a,b,c,d,e,g),a=g,b=0,d=2);g.length=I.a.simplify.Zk(a,b,c,d,e,g,0);return g};I.a.simplify.Zk=function(a,b,c,d,e,f,g){var k=(c-b)/d;if(3>k){for(;b<c;b+=d)f[g++]=a[b],f[g++]=a[b+1];return g}var l=Array(k);l[0]=1;l[k-1]=1;c=[b,c-d];for(var m=0,n;0<c.length;){var q=c.pop(),r=c.pop(),t=0,
u=a[r],y=a[r+1],z=a[q],B=a[q+1];for(n=r+d;n<q;n+=d){var C=vd(a[n],a[n+1],u,y,z,B);C>t&&(m=n,t=C)}t>e&&(l[(m-b)/d]=1,r+d<m&&c.push(r,m),m+d<q&&c.push(m,q))}for(n=0;n<k;++n)l[n]&&(f[g++]=a[b+n*d],f[g++]=a[b+n*d+1]);return g};I.a.simplify.Js=function(a,b,c,d,e,f,g,k){var l,m;l=0;for(m=c.length;l<m;++l){var n=c[l];g=I.a.simplify.Zk(a,b,n,d,e,f,g);k.push(g);b=n}return g};I.a.simplify.NH=function(a,b,c,d,e,f,g,k){var l,m;l=0;for(m=c.length;l<m;++l){var n=c[l],q=[];g=I.a.simplify.Js(a,b,n,d,e,f,g,q);k.push(q);
b=n[n.length-1]}return g};I.a.simplify.SC=function(a,b,c,d,e,f){var g=0;if(c<=b+d){for(;b<c;b+=d)f[g++]=a[b],f[g++]=a[b+1];return g}var k=a[b],l=a[b+1];f[g++]=k;f[g++]=l;var m=k,n=l;for(b+=d;b<c;b+=d)m=a[b],n=a[b+1],wd(k,l,m,n)>e&&(f[g++]=m,f[g++]=n,k=m,l=n);if(m!=k||n!=l)f[g++]=m,f[g++]=n;return g};I.a.simplify.Kg=function(a,b){return b*Math.round(a/b)};I.a.simplify.QC=function(a,b,c,d,e,f,g){if(b==c)return g;var k=I.a.simplify.Kg(a[b],e),l=I.a.simplify.Kg(a[b+1],e);b+=d;f[g++]=k;f[g++]=l;var m,
n;do if(m=I.a.simplify.Kg(a[b],e),n=I.a.simplify.Kg(a[b+1],e),b+=d,b==c)return f[g++]=m,f[g++]=n,g;while(m==k&&n==l);for(;b<c;){var q,r;q=I.a.simplify.Kg(a[b],e);r=I.a.simplify.Kg(a[b+1],e);b+=d;if(q!=m||r!=n){var t=m-k,u=n-l,y=q-k,z=r-l;t*z==u*y&&(0>t&&y<t||t==y||0<t&&y>t)&&(0>u&&z<u||u==z||0<u&&z>u)||(f[g++]=m,f[g++]=n,k=m,l=n);m=q;n=r}}f[g++]=m;f[g++]=n;return g};I.a.simplify.mv=function(a,b,c,d,e,f,g,k){var l,m;l=0;for(m=c.length;l<m;++l){var n=c[l];g=I.a.simplify.QC(a,b,n,d,e,f,g);k.push(g);
b=n}return g};I.a.simplify.RC=function(a,b,c,d,e,f){var g=0,k=0,l,m;l=0;for(m=b.length;l<m;++l){var n=b[l],q=[],k=I.a.simplify.mv(a,g,n,c,d,e,k,q);f.push(q);g=n[n.length-1]}return k};function P(a,b){Og.call(this);this.Lo=null;this.Yb=this.Zb=this.dt=-1;this.setCoordinates(a,b)}A(P,Og);h=P.prototype;h.appendCoordinate=function(a){this.b?Oe(this.b,a):this.b=a.slice();this.changed()};h.clone=function(){var a=new P(null);a.u(this.Ca,this.b.slice());return a};h.Uc=function(a,b,c,d){if(d<bf(this.getExtent(),
a,b))return d;this.Yb!=this.getRevision()&&(this.Zb=Math.sqrt(I.a.closest.Zo(this.b,0,this.b.length,this.l,0)),this.Yb=this.getRevision());return I.a.closest.getClosestPoint(this.b,0,this.b.length,this.l,this.Zb,!1,a,b,c,d)};h.forEachSegment=function(a,b){return I.a.zq.forEach(this.b,0,this.b.length,this.l,a,b)};h.getCoordinateAtM=function(a,b){return"XYM"!=this.Ca&&"XYZM"!=this.Ca?null:I.a.xe.Dp(this.b,0,this.b.length,this.l,a,void 0!==b?b:!1)};h.getCoordinates=function(){return I.a.Hc.coordinates(this.b,
0,this.b.length,this.l)};h.getCoordinateAt=function(a,b){return I.a.xe.Kd(this.b,0,this.b.length,this.l,a,b)};h.getLength=function(){return I.a.length.Kd(this.b,0,this.b.length,this.l)};function Sg(a){a.dt!=a.getRevision()&&(a.Lo=a.getCoordinateAt(.5,a.Lo),a.dt=a.getRevision());return a.Lo}h.nh=function(a){var b=[];b.length=I.a.simplify.Zk(this.b,0,this.b.length,this.l,a,b,0);a=new P(null);a.u("XY",b);return a};h.getType=function(){return"LineString"};h.intersectsExtent=function(a){return I.a.sc.Kd(this.b,
0,this.b.length,this.l,a)};h.setCoordinates=function(a,b){a?(Rg(this,b,a,1),this.b||(this.b=[]),this.b.length=I.a.Hb.coordinates(this.b,0,a,this.l),this.changed()):this.u("XY",null)};h.u=function(a,b){Qg(this,a,b);this.changed()};I.a.Sc={};I.a.Sc.yh=function(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var k=a[b],l=a[b+1],e=e+(g*k-f*l),f=k,g=l;return e/2};I.a.Sc.nf=function(a,b,c,d){var e=0,f,g;f=0;for(g=c.length;f<g;++f){var k=c[f],e=e+I.a.Sc.yh(a,b,k,d);b=k}return e};I.a.Sc.rg=function(a,b,
c,d){var e=0,f,g;f=0;for(g=c.length;f<g;++f){var k=c[f],e=e+I.a.Sc.nf(a,b,k,d);b=k[k.length-1]}return e};function Tg(a,b){Og.call(this);this.Yb=this.Zb=-1;this.setCoordinates(a,b)}A(Tg,Og);h=Tg.prototype;h.clone=function(){var a=new Tg(null);a.u(this.Ca,this.b.slice());return a};h.Uc=function(a,b,c,d){if(d<bf(this.getExtent(),a,b))return d;this.Yb!=this.getRevision()&&(this.Zb=Math.sqrt(I.a.closest.Zo(this.b,0,this.b.length,this.l,0)),this.Yb=this.getRevision());return I.a.closest.getClosestPoint(this.b,
0,this.b.length,this.l,this.Zb,!0,a,b,c,d)};h.getArea=function(){return I.a.Sc.yh(this.b,0,this.b.length,this.l)};h.getCoordinates=function(){return I.a.Hc.coordinates(this.b,0,this.b.length,this.l)};h.nh=function(a){var b=[];b.length=I.a.simplify.Zk(this.b,0,this.b.length,this.l,a,b,0);a=new Tg(null);a.u("XY",b);return a};h.getType=function(){return"LinearRing"};h.intersectsExtent=function(){};h.setCoordinates=function(a,b){a?(Rg(this,b,a,1),this.b||(this.b=[]),this.b.length=I.a.Hb.coordinates(this.b,
0,a,this.l),this.changed()):this.u("XY",null)};h.u=function(a,b){Qg(this,a,b);this.changed()};function Q(a,b){Og.call(this);this.G=[];this.Yb=this.Zb=-1;this.setCoordinates(a,b)}A(Q,Og);h=Q.prototype;h.appendLineString=function(a){this.b?Oe(this.b,a.M().slice()):this.b=a.M().slice();this.G.push(this.b.length);this.changed()};h.clone=function(){var a=new Q(null);a.u(this.Ca,this.b.slice(),this.G.slice());return a};h.Uc=function(a,b,c,d){if(d<bf(this.getExtent(),a,b))return d;this.Yb!=this.getRevision()&&
(this.Zb=Math.sqrt(I.a.closest.gp(this.b,0,this.G,this.l,0)),this.Yb=this.getRevision());return I.a.closest.fp(this.b,0,this.G,this.l,this.Zb,!1,a,b,c,d)};h.getCoordinateAtM=function(a,b,c){return"XYM"!=this.Ca&&"XYZM"!=this.Ca||0===this.b.length?null:I.a.xe.uB(this.b,this.G,this.l,a,void 0!==b?b:!1,void 0!==c?c:!1)};h.getCoordinates=function(){return I.a.Hc.Uf(this.b,0,this.G,this.l)};h.getLineString=function(a){if(0>a||this.G.length<=a)return null;var b=new P(null);b.u(this.Ca,this.b.slice(0===
a?0:this.G[a-1],this.G[a]));return b};h.getLineStrings=function(){var a=this.b,b=this.G,c=this.Ca,d=[],e=0,f,g;f=0;for(g=b.length;f<g;++f){var k=b[f],l=new P(null);l.u(c,a.slice(e,k));d.push(l);e=k}return d};function Ug(a){var b=[],c=a.b,d=0,e=a.G;a=a.l;var f,g;f=0;for(g=e.length;f<g;++f){var k=e[f],d=I.a.xe.Kd(c,d,k,a,.5);Oe(b,d);d=k}return b}h.nh=function(a){var b=[],c=[];b.length=I.a.simplify.Js(this.b,0,this.G,this.l,a,b,0,c);a=new Q(null);a.u("XY",b,c);return a};h.getType=function(){return"MultiLineString"};
h.intersectsExtent=function(a){return I.a.sc.tB(this.b,this.G,this.l,a)};h.setCoordinates=function(a,b){a?(Rg(this,b,a,2),this.b||(this.b=[]),a=I.a.Hb.Uf(this.b,0,a,this.l,this.G),this.b.length=0===a.length?0:a[a.length-1],this.changed()):this.u("XY",null,this.G)};h.u=function(a,b,c){Qg(this,a,b);this.G=c;this.changed()};function Vg(a,b){var c=a.getLayout(),d=[],e=[],f,g;f=0;for(g=b.length;f<g;++f){var k=b[f];0===f&&(c=k.getLayout());Oe(d,k.M());e.push(d.length)}a.u(c,d,e)}function F(a,b){Og.call(this);
this.setCoordinates(a,b)}A(F,Og);h=F.prototype;h.clone=function(){var a=new F(null);a.u(this.Ca,this.b.slice());return a};h.Uc=function(a,b,c,d){var e=this.b;a=wd(a,b,e[0],e[1]);if(a<d){d=this.l;for(b=0;b<d;++b)c[b]=e[b];c.length=d;return a}return d};h.getCoordinates=function(){return this.b?this.b.slice():[]};h.Tk=function(a){return hf(this.b,a)};h.getType=function(){return"Point"};h.intersectsExtent=function(a){return df(a,this.b[0],this.b[1])};h.setCoordinates=function(a,b){a?(Rg(this,b,a,0),this.b||
(this.b=[]),this.b.length=I.a.Hb.coordinate(this.b,0,a,this.l),this.changed()):this.u("XY",null)};h.u=function(a,b){Qg(this,a,b);this.changed()};function Wg(a,b){Og.call(this);this.setCoordinates(a,b)}A(Wg,Og);h=Wg.prototype;h.appendPoint=function(a){this.b?Oe(this.b,a.M()):this.b=a.M().slice();this.changed()};h.clone=function(){var a=new Wg(null);a.u(this.Ca,this.b.slice());return a};h.Uc=function(a,b,c,d){if(d<bf(this.getExtent(),a,b))return d;var e=this.b,f=this.l,g,k,l;g=0;for(k=e.length;g<k;g+=
f)if(l=wd(a,b,e[g],e[g+1]),l<d){d=l;for(l=0;l<f;++l)c[l]=e[g+l];c.length=f}return d};h.getCoordinates=function(){return I.a.Hc.coordinates(this.b,0,this.b.length,this.l)};h.getPoint=function(a){var b=this.b?this.b.length/this.l:0;if(0>a||b<=a)return null;b=new F(null);b.u(this.Ca,this.b.slice(a*this.l,(a+1)*this.l));return b};h.getPoints=function(){var a=this.b,b=this.Ca,c=this.l,d=[],e,f;e=0;for(f=a.length;e<f;e+=c){var g=new F(null);g.u(b,a.slice(e,e+c));d.push(g)}return d};h.getType=function(){return"MultiPoint"};
h.intersectsExtent=function(a){var b=this.b,c=this.l,d,e,f,g;d=0;for(e=b.length;d<e;d+=c)if(f=b[d],g=b[d+1],df(a,f,g))return!0;return!1};h.setCoordinates=function(a,b){a?(Rg(this,b,a,1),this.b||(this.b=[]),this.b.length=I.a.Hb.coordinates(this.b,0,a,this.l),this.changed()):this.u("XY",null)};h.u=function(a,b){Qg(this,a,b);this.changed()};I.a.oj={};I.a.oj.nf=function(a,b,c,d,e,f,g){var k,l,m,n,q,r=e[f+1],t=[],u=c[0];m=a[u-d];q=a[u-d+1];for(k=b;k<u;k+=d){n=a[k];l=a[k+1];if(r<=q&&l<=r||q<=r&&r<=l)m=
(r-q)/(l-q)*(n-m)+m,t.push(m);m=n;q=l}u=NaN;q=-Infinity;t.sort(Le);m=t[0];k=1;for(l=t.length;k<l;++k){n=t[k];var y=Math.abs(n-m);y>q&&(m=(m+n)/2,I.a.contains.Gp(a,b,c,d,m,r)&&(u=m,q=y));m=n}isNaN(u)&&(u=e[f]);return g?(g.push(u,r),g):[u,r]};I.a.oj.rg=function(a,b,c,d,e){var f=[],g,k;g=0;for(k=c.length;g<k;++g){var l=c[g],f=I.a.oj.nf(a,b,l,d,e,2*g,f);b=l[l.length-1]}return f};I.a.reverse={};I.a.reverse.coordinates=function(a,b,c,d){for(;b<c-d;){var e;for(e=0;e<d;++e){var f=a[b+e];a[b+e]=a[c-d+e];a[c-
d+e]=f}b+=d;c-=d}};I.a.gb={};I.a.gb.qg=function(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var k=a[b],l=a[b+1],e=e+(k-f)*(l+g),f=k,g=l;return 0<e};I.a.gb.du=function(a,b,c,d){var e=0;d=void 0!==d?d:!1;var f,g;f=0;for(g=b.length;f<g;++f){var k=b[f],e=I.a.gb.qg(a,e,k,c);if(0===f){if(d&&e||!d&&!e)return!1}else if(d&&!e||!d&&e)return!1;e=k}return!0};I.a.gb.wB=function(a,b,c){var d,e;d=0;for(e=b.length;d<e;++d)if(!I.a.gb.du(a,b[d],c,void 0))return!1;return!0};I.a.gb.Ip=function(a,b,c,d,e){e=void 0!==
e?e:!1;var f,g;f=0;for(g=c.length;f<g;++f){var k=c[f],l=I.a.gb.qg(a,b,k,d);(0===f?e&&l||!e&&!l:e&&!l||!e&&l)&&I.a.reverse.coordinates(a,b,k,d);b=k}return b};I.a.gb.Qu=function(a,b,c,d){var e=0,f,g;f=0;for(g=b.length;f<g;++f)e=I.a.gb.Ip(a,e,b[f],c,d);return e};function R(a,b){Og.call(this);this.G=[];this.$s=-1;this.at=null;this.Hj=this.Yb=this.Zb=-1;this.kd=null;this.setCoordinates(a,b)}A(R,Og);h=R.prototype;h.appendLinearRing=function(a){this.b?Oe(this.b,a.M()):this.b=a.M().slice();this.G.push(this.b.length);
this.changed()};h.clone=function(){var a=new R(null);a.u(this.Ca,this.b.slice(),this.G.slice());return a};h.Uc=function(a,b,c,d){if(d<bf(this.getExtent(),a,b))return d;this.Yb!=this.getRevision()&&(this.Zb=Math.sqrt(I.a.closest.gp(this.b,0,this.G,this.l,0)),this.Yb=this.getRevision());return I.a.closest.fp(this.b,0,this.G,this.l,this.Zb,!0,a,b,c,d)};h.containsXY=function(a,b){return I.a.contains.Gp(this.nb(),0,this.G,this.l,a,b)};h.getArea=function(){return I.a.Sc.nf(this.nb(),0,this.G,this.l)};h.getCoordinates=
function(a){var b;void 0!==a?(b=this.nb().slice(),I.a.gb.Ip(b,0,this.G,this.l,a)):b=this.b;return I.a.Hc.Uf(b,0,this.G,this.l)};function Xg(a){if(a.$s!=a.getRevision()){var b=xf(a.getExtent());a.at=I.a.oj.nf(a.nb(),0,a.G,a.l,b,0);a.$s=a.getRevision()}return a.at}h.getInteriorPoint=function(){return new F(Xg(this))};h.getLinearRingCount=function(){return this.G.length};h.getLinearRing=function(a){if(0>a||this.G.length<=a)return null;var b=new Tg(null);b.u(this.Ca,this.b.slice(0===a?0:this.G[a-1],this.G[a]));
return b};h.getLinearRings=function(){var a=this.Ca,b=this.b,c=this.G,d=[],e=0,f,g;f=0;for(g=c.length;f<g;++f){var k=c[f],l=new Tg(null);l.u(a,b.slice(e,k));d.push(l);e=k}return d};h.nb=function(){if(this.Hj!=this.getRevision()){var a=this.b;I.a.gb.du(a,this.G,this.l)?this.kd=a:(this.kd=a.slice(),this.kd.length=I.a.gb.Ip(this.kd,0,this.G,this.l));this.Hj=this.getRevision()}return this.kd};h.nh=function(a){var b=[],c=[];b.length=I.a.simplify.mv(this.b,0,this.G,this.l,Math.sqrt(a),b,0,c);a=new R(null);
a.u("XY",b,c);return a};h.getType=function(){return"Polygon"};h.intersectsExtent=function(a){return I.a.sc.nf(this.nb(),0,this.G,this.l,a)};h.setCoordinates=function(a,b){a?(Rg(this,b,a,2),this.b||(this.b=[]),a=I.a.Hb.Uf(this.b,0,a,this.l,this.G),this.b.length=0===a.length?0:a[a.length-1],this.changed()):this.u("XY",null,this.G)};h.u=function(a,b,c){Qg(this,a,b);this.G=c;this.changed()};function Yg(a,b,c,d){var e=d?d:32;d=[];var f;for(f=0;f<e;++f)Oe(d,a.offset(b,c,2*Math.PI*f/e));d.push(d[0],d[1]);
a=new R(null);a.u("XY",d,[d.length]);return a}function Zg(a){var b=a[0],c=a[1],d=a[2];a=a[3];b=[b,c,b,a,d,a,d,c,b,c];c=new R(null);c.u("XY",b,[b.length]);return c}function $g(a,b,c){var d=b?b:32,e=a.aa();b=a.getLayout();for(var f=new R(null,b),d=e*(d+1),e=Array(d),g=0;g<d;g++)e[g]=0;f.u(b,e,[e.length]);ah(f,a.getCenter(),a.getRadius(),c);return f}function ah(a,b,c,d){var e=a.M(),f=a.getLayout(),g=a.aa(),k=a.G,l=e.length/g-1;d=d?d:0;for(var m,n,q=0;q<=l;++q)n=q*g,m=d+2*yd(q,l)*Math.PI/l,e[n]=b[0]+
c*Math.cos(m),e[n+1]=b[1]+c*Math.sin(m);a.u(f,e,k)}I.a.center={};I.a.center.rg=function(a,b,c,d){var e=[],f,g;f=0;for(g=c.length;f<g;++f){var k=c[f];b=jf(a,b,k[0],d);e.push((b[0]+b[2])/2,(b[1]+b[3])/2);b=k[k.length-1]}return e};function S(a,b){Og.call(this);this.ya=[];this.bt=-1;this.ct=null;this.Hj=this.Yb=this.Zb=-1;this.kd=null;this.setCoordinates(a,b)}A(S,Og);h=S.prototype;h.appendPolygon=function(a){if(this.b){var b=this.b.length;Oe(this.b,a.M());a=a.G.slice();var c,d;c=0;for(d=a.length;c<d;++c)a[c]+=
b}else this.b=a.M().slice(),a=a.G.slice(),this.ya.push();this.ya.push(a);this.changed()};h.clone=function(){for(var a=new S(null),b=this.ya.length,c=Array(b),d=0;d<b;++d)c[d]=this.ya[d].slice();a.u(this.Ca,this.b.slice(),c);return a};h.Uc=function(a,b,c,d){if(d<bf(this.getExtent(),a,b))return d;this.Yb!=this.getRevision()&&(this.Zb=Math.sqrt(I.a.closest.dA(this.b,this.ya,this.l)),this.Yb=this.getRevision());return I.a.closest.cA(this.nb(),this.ya,this.l,this.Zb,a,b,c,d)};h.containsXY=function(a,b){return I.a.contains.xB(this.nb(),
this.ya,this.l,a,b)};h.getArea=function(){return I.a.Sc.rg(this.nb(),0,this.ya,this.l)};h.getCoordinates=function(a){var b;void 0!==a?(b=this.nb().slice(),I.a.gb.Qu(b,this.ya,this.l,a)):b=this.b;return I.a.Hc.so(b,0,this.ya,this.l)};function bh(a){if(a.bt!=a.getRevision()){var b=I.a.center.rg(a.b,0,a.ya,a.l);a.ct=I.a.oj.rg(a.nb(),0,a.ya,a.l,b);a.bt=a.getRevision()}return a.ct}h.getInteriorPoints=function(){var a=new Wg(null);a.u("XY",bh(this).slice());return a};h.nb=function(){if(this.Hj!=this.getRevision()){var a=
this.b;I.a.gb.wB(a,this.ya,this.l)?this.kd=a:(this.kd=a.slice(),this.kd.length=I.a.gb.Qu(this.kd,this.ya,this.l));this.Hj=this.getRevision()}return this.kd};h.nh=function(a){var b=[],c=[];b.length=I.a.simplify.RC(this.b,this.ya,this.l,Math.sqrt(a),b,c);a=new S(null);a.u("XY",b,c);return a};h.getPolygon=function(a){if(0>a||this.ya.length<=a)return null;var b;0===a?b=0:(b=this.ya[a-1],b=b[b.length-1]);a=this.ya[a].slice();var c=a[a.length-1];if(0!==b){var d,e;d=0;for(e=a.length;d<e;++d)a[d]-=b}d=new R(null);
d.u(this.Ca,this.b.slice(b,c),a);return d};h.getPolygons=function(){var a=this.Ca,b=this.b,c=this.ya,d=[],e=0,f,g,k,l;f=0;for(g=c.length;f<g;++f){var m=c[f].slice(),n=m[m.length-1];if(0!==e)for(k=0,l=m.length;k<l;++k)m[k]-=e;k=new R(null);k.u(a,b.slice(e,n),m);d.push(k);e=n}return d};h.getType=function(){return"MultiPolygon"};h.intersectsExtent=function(a){return I.a.sc.rg(this.nb(),0,this.ya,this.l,a)};h.setCoordinates=function(a,b){a?(Rg(this,b,a,3),this.b||(this.b=[]),a=I.a.Hb.so(this.b,0,a,this.l,
this.ya),0===a.length?this.b.length=0:(a=a[a.length-1],this.b.length=0===a.length?0:a[a.length-1]),this.changed()):this.u("XY",null,this.ya)};h.u=function(a,b,c){Qg(this,a,b);this.ya=c;this.changed()};function ch(a,b){var c=a.getLayout(),d=[],e=[],f,g,k;f=0;for(g=b.length;f<g;++f){var l=b[f];0===f&&(c=l.getLayout());var m=d.length;k=l.G;var n,q;n=0;for(q=k.length;n<q;++n)k[n]+=m;Oe(d,l.M());e.push(k)}a.u(c,d,e)}function dh(a){a=a?a:{};this.featureType=a.featureType;this.featureNS=a.featureNS;this.srsName=
a.srsName;this.schemaLocation="";this.Kf={};this.Kf["http://www.opengis.net/gml"]={featureMember:Cg(dh.prototype.Nj),featureMembers:Cg(dh.prototype.Nj)};Lg.call(this)}A(dh,Lg);var eh=/^[\s\xa0]*$/;h=dh.prototype;h.Nj=function(a,b){var c=a.localName,d=null;if("FeatureCollection"==c)d="http://www.opengis.net/wfs"===a.namespaceURI?O([],this.Kf,a,b,this):O(null,this.Kf,a,b,this);else if("featureMembers"==c||"featureMember"==c){var e=b[0],f=e.featureType,d=e.featureNS,g,k;if(!f&&a.childNodes){f=[];d={};
g=0;for(k=a.childNodes.length;g<k;++g){var l=a.childNodes[g];if(1===l.nodeType){var m=l.nodeName.split(":").pop();if(-1===f.indexOf(m)){var n="",q=0,l=l.namespaceURI,r;for(r in d){if(d[r]===l){n=r;break}++q}n||(n="p"+q,d[n]=l);f.push(n+":"+m)}}}"featureMember"!=c&&(e.featureType=f,e.featureNS=d)}"string"===typeof d&&(g=d,d={},d.p0=g);r={};var f=Array.isArray(f)?f:[f],t;for(t in d){e={};g=0;for(k=f.length;g<k;++g)(-1===f[g].indexOf(":")?"p0":f[g].split(":")[0])===t&&(e[f[g].split(":").pop()]="featureMembers"==
c?Bg(this.Zp,this):Cg(this.Zp,this));r[d[t]]=e}d="featureMember"==c?O(void 0,r,a,b):O([],r,a,b)}null===d&&(d=[]);return d};h.zm=function(a,b){var c=b[0];c.srsName=a.firstElementChild.getAttribute("srsName");if(a=O(null,this.zr,a,b,this))return kg(a,!1,c)};h.Zp=function(a,b){var c;(c=a.getAttribute("fid"))||(c=a.getAttributeNS("http://www.opengis.net/gml","id")||"");var d={},e;for(a=a.firstElementChild;a;a=a.nextElementSibling){var f=a.localName;if(0===a.childNodes.length||1===a.childNodes.length&&
(3===a.firstChild.nodeType||4===a.firstChild.nodeType)){var g=vg(a,!1);eh.test(g)&&(g=void 0);d[f]=g}else"boundedBy"!==f&&(e=f),d[f]=this.zm(a,b)}b=new E(d);e&&b.setGeometryName(e);c&&b.setId(c);return b};h.vv=function(a,b){if(a=this.ym(a,b))return b=new F(null),b.u("XYZ",a),b};h.tv=function(a,b){if(a=O([],this.zx,a,b,this))return new Wg(a)};h.sv=function(a,b){if(a=O([],this.yx,a,b,this))return b=new Q(null),Vg(b,a),b};h.uv=function(a,b){if(a=O([],this.Ax,a,b,this))return b=new S(null),ch(b,a),b};
h.av=function(a,b){Jg(this.Nx,a,b,this)};h.cu=function(a,b){Jg(this.qx,a,b,this)};h.bv=function(a,b){Jg(this.Ox,a,b,this)};h.Bm=function(a,b){if(a=this.ym(a,b))return b=new P(null),b.u("XYZ",a),b};h.YC=function(a,b){if(a=O(null,this.wk,a,b,this))return a};h.rv=function(a,b){if(a=this.ym(a,b))return b=new Tg(null),b.u("XYZ",a),b};h.Cm=function(a,b){if((a=O([null],this.Fn,a,b,this))&&a[0]){b=new R(null);var c=a[0],d=[c.length],e,f;e=1;for(f=a.length;e<f;++e)Oe(c,a[e]),d.push(c.length);b.u("XYZ",c,d);
return b}};h.ym=function(a,b){return O(null,this.wk,a,b,this)};h.zx={"http://www.opengis.net/gml":{pointMember:Bg(dh.prototype.av),pointMembers:Bg(dh.prototype.av)}};h.yx={"http://www.opengis.net/gml":{lineStringMember:Bg(dh.prototype.cu),lineStringMembers:Bg(dh.prototype.cu)}};h.Ax={"http://www.opengis.net/gml":{polygonMember:Bg(dh.prototype.bv),polygonMembers:Bg(dh.prototype.bv)}};h.Nx={"http://www.opengis.net/gml":{Point:Bg(dh.prototype.ym)}};h.qx={"http://www.opengis.net/gml":{LineString:Bg(dh.prototype.Bm)}};
h.Ox={"http://www.opengis.net/gml":{Polygon:Bg(dh.prototype.Cm)}};h.yk={"http://www.opengis.net/gml":{LinearRing:Cg(dh.prototype.YC)}};h.qv=function(a,b){return(a=this.zm(a,[ig(this,a,b?b:{})]))?a:null};h.xf=function(a,b){var c={featureType:this.featureType,featureNS:this.featureNS};b&&le(c,ig(this,a,b));return this.Nj(a,[c])||[]};h.Dm=function(a){return H(this.srsName?this.srsName:a.firstElementChild.getAttribute("srsName"))};function fh(a,b){a=void 0!==b?a.toFixed(b):""+a;b=a.indexOf(".");b=-1===
b?a.length:b;return 2<b?a:Array(3-b).join("0")+a}function gh(a){a=vg(a,!1);return hh(a)}function hh(a){if(a=/^\s*(true|1)|(false|0)\s*$/.exec(a))return void 0!==a[1]||!1}function ih(a){a=vg(a,!1);a=Date.parse(a);return isNaN(a)?void 0:a/1E3}function jh(a){a=vg(a,!1);return kh(a)}function kh(a){if(a=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(a))return parseFloat(a[1])}function lh(a){a=vg(a,!1);return mh(a)}function mh(a){if(a=/^\s*(\d+)\s*$/.exec(a))return parseInt(a[1],10)}function T(a){return vg(a,
!1).trim()}function nh(a,b){oh(a,b?"1":"0")}function ph(a,b){a.appendChild(tg.createTextNode(b.toPrecision()))}function qh(a,b){a.appendChild(tg.createTextNode(b.toString()))}function oh(a,b){a.appendChild(tg.createTextNode(b))}function rh(a){a=a?a:{};dh.call(this,a);this.hw=void 0!==a.surface?a.surface:!1;this.Bs=void 0!==a.curve?a.curve:!1;this.Eu=void 0!==a.multiCurve?a.multiCurve:!0;this.Fu=void 0!==a.multiSurface?a.multiSurface:!0;this.schemaLocation=a.schemaLocation?a.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"}
A(rh,dh);h=rh.prototype;h.dD=function(a,b){if(a=O([],this.xx,a,b,this))return b=new Q(null),Vg(b,a),b};h.eD=function(a,b){if(a=O([],this.Bx,a,b,this))return b=new S(null),ch(b,a),b};h.As=function(a,b){Jg(this.dx,a,b,this)};h.gw=function(a,b){Jg(this.Wx,a,b,this)};h.fD=function(a,b){return O([null],this.Cx,a,b,this)};h.jD=function(a,b){return O([null],this.Vx,a,b,this)};h.gD=function(a,b){return O([null],this.Fn,a,b,this)};h.cD=function(a,b){return O([null],this.wk,a,b,this)};h.jB=function(a,b){(a=
O(void 0,this.yk,a,b,this))&&b[b.length-1].push(a)};h.uz=function(a,b){(a=O(void 0,this.yk,a,b,this))&&(b[b.length-1][0]=a)};h.wv=function(a,b){if((a=O([null],this.Xx,a,b,this))&&a[0]){b=new R(null);var c=a[0],d=[c.length],e,f;e=1;for(f=a.length;e<f;++e)Oe(c,a[e]),d.push(c.length);b.u("XYZ",c,d);return b}};h.nv=function(a,b){if(a=O([null],this.gx,a,b,this))return b=new P(null),b.u("XYZ",a),b};h.XC=function(a,b){a=O([null],this.kx,a,b,this);return gf(a[1][0],a[1][1],a[2][0],a[2][1])};h.ZC=function(a,
b){var c=vg(a,!1),d=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/;a=[];for(var e;e=d.exec(c);)a.push(parseFloat(e[1])),c=c.substr(e[0].length);if(""===c){b=b[0].srsName;c="enu";b&&(c=H(b).ge);if("neu"===c)for(b=0,c=a.length;b<c;b+=3)d=a[b],a[b]=a[b+1],a[b+1]=d;b=a.length;2==b&&a.push(0);if(0!==b)return a}};h.fq=function(a,b){var c=vg(a,!1).replace(/^\s*|\s*$/g,""),d=b[0].srsName,e=a.parentNode.getAttribute("srsDimension");b="enu";d&&(b=H(d).ge);c=c.split(/\s+/);d=2;a.getAttribute("srsDimension")?d=
mh(a.getAttribute("srsDimension")):a.getAttribute("dimension")?d=mh(a.getAttribute("dimension")):e&&(d=mh(e));for(var f,g=[],k=0,l=c.length;k<l;k+=d)a=parseFloat(c[k]),e=parseFloat(c[k+1]),f=3===d?parseFloat(c[k+2]):0,"en"===b.substr(0,2)?g.push(a,e,f):g.push(e,a,f);return g};h.wk={"http://www.opengis.net/gml":{pos:Cg(rh.prototype.ZC),posList:Cg(rh.prototype.fq)}};h.Fn={"http://www.opengis.net/gml":{interior:rh.prototype.jB,exterior:rh.prototype.uz}};h.zr={"http://www.opengis.net/gml":{Point:Cg(dh.prototype.vv),
MultiPoint:Cg(dh.prototype.tv),LineString:Cg(dh.prototype.Bm),MultiLineString:Cg(dh.prototype.sv),LinearRing:Cg(dh.prototype.rv),Polygon:Cg(dh.prototype.Cm),MultiPolygon:Cg(dh.prototype.uv),Surface:Cg(rh.prototype.wv),MultiSurface:Cg(rh.prototype.eD),Curve:Cg(rh.prototype.nv),MultiCurve:Cg(rh.prototype.dD),Envelope:Cg(rh.prototype.XC)}};h.xx={"http://www.opengis.net/gml":{curveMember:Bg(rh.prototype.As),curveMembers:Bg(rh.prototype.As)}};h.Bx={"http://www.opengis.net/gml":{surfaceMember:Bg(rh.prototype.gw),
surfaceMembers:Bg(rh.prototype.gw)}};h.dx={"http://www.opengis.net/gml":{LineString:Bg(dh.prototype.Bm),Curve:Bg(rh.prototype.nv)}};h.Wx={"http://www.opengis.net/gml":{Polygon:Bg(dh.prototype.Cm),Surface:Bg(rh.prototype.wv)}};h.Xx={"http://www.opengis.net/gml":{patches:Cg(rh.prototype.fD)}};h.gx={"http://www.opengis.net/gml":{segments:Cg(rh.prototype.jD)}};h.kx={"http://www.opengis.net/gml":{lowerCorner:Bg(rh.prototype.fq),upperCorner:Bg(rh.prototype.fq)}};h.Cx={"http://www.opengis.net/gml":{PolygonPatch:Cg(rh.prototype.gD)}};
h.Vx={"http://www.opengis.net/gml":{LineStringSegment:Cg(rh.prototype.cD)}};h.Ww=function(a,b,c){var d=c[c.length-1].srsName;c="enu";d&&(c=H(d).ge);b=b.getCoordinates();oh(a,"en"===c.substr(0,2)?b[0]+" "+b[1]:b[1]+" "+b[0])};h.qt=function(a,b){var c="enu";b&&(c=H(b).ge);return"en"===c.substr(0,2)?a[0]+" "+a[1]:a[1]+" "+a[0]};function sh(a,b,c,d){d=d[d.length-1].srsName;c=c.getCoordinates();for(var e=c.length,f=Array(e),g,k=0;k<e;++k)g=c[k],f[k]=a.qt(g,d);oh(b,f.join(" "))}h.Vw=function(a,b,c){var d=
c[c.length-1].srsName;d&&a.setAttribute("srsName",d);d=ug(a.namespaceURI,"pos");a.appendChild(d);this.Ww(d,b,c)};var th={"http://www.opengis.net/gml":{lowerCorner:L(oh),upperCorner:L(oh)}};h=rh.prototype;h.WE=function(a,b,c){var d=c[c.length-1].srsName;d&&a.setAttribute("srsName",d);Kg({node:a},th,Hg,[b[0]+" "+b[1],b[2]+" "+b[3]],c,["lowerCorner","upperCorner"],this)};h.Sw=function(a,b,c){var d=c[c.length-1].srsName;d&&a.setAttribute("srsName",d);d=ug(a.namespaceURI,"posList");a.appendChild(d);sh(this,
d,b,c)};h.Tx=function(a,b){a=b[b.length-1];b=a.node;var c=a.exteriorWritten;void 0===c&&(a.exteriorWritten=!0);return ug(b.namespaceURI,void 0!==c?"interior":"exterior")};h.Bn=function(a,b,c){var d=c[c.length-1].srsName;"PolygonPatch"!==a.nodeName&&d&&a.setAttribute("srsName",d);"Polygon"===a.nodeName||"PolygonPatch"===a.nodeName?(b=b.getLinearRings(),Kg({node:a,srsName:d},uh,this.Tx,b,c,void 0,this)):"Surface"===a.nodeName&&(d=ug(a.namespaceURI,"patches"),a.appendChild(d),a=ug(d.namespaceURI,"PolygonPatch"),
d.appendChild(a),this.Bn(a,b,c))};h.An=function(a,b,c){var d=c[c.length-1].srsName;"LineStringSegment"!==a.nodeName&&d&&a.setAttribute("srsName",d);"LineString"===a.nodeName||"LineStringSegment"===a.nodeName?(d=ug(a.namespaceURI,"posList"),a.appendChild(d),sh(this,d,b,c)):"Curve"===a.nodeName&&(d=ug(a.namespaceURI,"segments"),a.appendChild(d),a=ug(d.namespaceURI,"LineStringSegment"),d.appendChild(a),this.An(a,b,c))};h.Uw=function(a,b,c){var d=c[c.length-1],e=d.srsName,d=d.surface;e&&a.setAttribute("srsName",
e);b=b.getPolygons();Kg({node:a,srsName:e,surface:d},vh,this.Br,b,c,void 0,this)};h.XE=function(a,b,c){var d=c[c.length-1].srsName;d&&a.setAttribute("srsName",d);b=b.getPoints();Kg({node:a,srsName:d},wh,Fg("pointMember"),b,c,void 0,this)};h.Tw=function(a,b,c){var d=c[c.length-1],e=d.srsName,d=d.curve;e&&a.setAttribute("srsName",e);b=b.getLineStrings();Kg({node:a,srsName:e,curve:d},xh,this.Br,b,c,void 0,this)};h.Xw=function(a,b,c){var d=ug(a.namespaceURI,"LinearRing");a.appendChild(d);this.Sw(d,b,
c)};h.Yw=function(a,b,c){var d=this.Gn(b,c);d&&(a.appendChild(d),this.Bn(d,b,c))};h.YE=function(a,b,c){var d=ug(a.namespaceURI,"Point");a.appendChild(d);this.Vw(d,b,c)};h.Rw=function(a,b,c){var d=this.Gn(b,c);d&&(a.appendChild(d),this.An(d,b,c))};h.ri=function(a,b,c){var d=c[c.length-1],e=le({},d);e.node=a;a=Array.isArray(b)?d.dataProjection?fg(b,d.featureProjection,d.dataProjection):b:kg(b,!0,d);Kg(e,yh,this.Gn,[a],c,void 0,this)};h.Qw=function(a,b,c){var d=b.getId();d&&a.setAttribute("fid",d);var d=
c[c.length-1],e=d.featureNS,f=b.getGeometryName();d.Gg||(d.Gg={},d.Gg[e]={});var g=b.getProperties();b=[];var k=[],l;for(l in g){var m=g[l];null!==m&&(b.push(l),k.push(m),l==f||m instanceof gg?l in d.Gg[e]||(d.Gg[e][l]=L(this.ri,this)):l in d.Gg[e]||(d.Gg[e][l]=L(oh)))}l=le({},d);l.node=a;Kg(l,d.Gg,Fg(void 0,e),k,c,b)};var vh={"http://www.opengis.net/gml":{surfaceMember:L(rh.prototype.Yw),polygonMember:L(rh.prototype.Yw)}},wh={"http://www.opengis.net/gml":{pointMember:L(rh.prototype.YE)}},xh={"http://www.opengis.net/gml":{lineStringMember:L(rh.prototype.Rw),
curveMember:L(rh.prototype.Rw)}},uh={"http://www.opengis.net/gml":{exterior:L(rh.prototype.Xw),interior:L(rh.prototype.Xw)}},yh={"http://www.opengis.net/gml":{Curve:L(rh.prototype.An),MultiCurve:L(rh.prototype.Tw),Point:L(rh.prototype.Vw),MultiPoint:L(rh.prototype.XE),LineString:L(rh.prototype.An),MultiLineString:L(rh.prototype.Tw),LinearRing:L(rh.prototype.Sw),Polygon:L(rh.prototype.Bn),MultiPolygon:L(rh.prototype.Uw),Surface:L(rh.prototype.Bn),MultiSurface:L(rh.prototype.Uw),Envelope:L(rh.prototype.WE)}},
zh={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};rh.prototype.Br=function(a,b){return ug("http://www.opengis.net/gml",zh[b[b.length-1].node.nodeName])};rh.prototype.Gn=function(a,b){var c=b[b.length-1];b=c.multiSurface;var d=c.surface,e=c.curve,c=c.multiCurve;Array.isArray(a)?a="Envelope":(a=a.getType(),"MultiPolygon"===a&&!0===b?a="MultiSurface":"Polygon"===a&&!0===d?a="Surface":"LineString"===a&&!0===e?a="Curve":"MultiLineString"===
a&&!0===c&&(a="MultiCurve"));return ug("http://www.opengis.net/gml",a)};rh.prototype.writeGeometryNode=function(a,b){b=jg(this,b);var c=ug("http://www.opengis.net/gml","geom"),d={node:c,srsName:this.srsName,curve:this.Bs,surface:this.hw,multiSurface:this.Fu,multiCurve:this.Eu};b&&le(d,b);this.ri(c,a,[d]);return c};rh.prototype.writeFeaturesNode=function(a,b){b=jg(this,b);var c=ug("http://www.opengis.net/gml","featureMembers");c.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",
this.schemaLocation);var d={srsName:this.srsName,curve:this.Bs,surface:this.hw,multiSurface:this.Fu,multiCurve:this.Eu,featureNS:this.featureNS,featureType:this.featureType};b&&le(d,b);b=[d];var e=b[b.length-1],d=e.featureType,f=e.featureNS,g={};g[f]={};g[f][d]=L(this.Qw,this);e=le({},e);e.node=c;Kg(e,g,Fg(d,f),a,b);return c};M.impl.control={};M.impl.control.GetFeatureInfo={};(function(){var a=/^results[\w\s\S]*'http:/i,b=/feature(\s*)(\w+)(\s*):/i,c=/#newfeature#/,d=/geom$/i,e=/error(.*)unsupported(.*)info_format/i;
M.impl.control.GetFeatureInfo=function(a,b){this.userFormat=a;this.gl=b.gl;M.utils.isNullOrEmpty(this.gl)&&(this.gl=10);this.buffer=b.buffer};v(M.impl.control.GetFeatureInfo,M.impl.Control);M.impl.control.GetFeatureInfo.prototype.activate=function(){this.zy()};M.impl.control.GetFeatureInfo.prototype.deactivate=function(){this.lz()};M.impl.control.GetFeatureInfo.prototype.zy=function(){var a=this.facadeMap_.getMapImpl();"plain"===M.utils.normalize(this.userFormat)||"text/plain"===M.utils.normalize(this.userFormat)?
this.userFormat="text/plain":"gml"===M.utils.normalize(this.userFormat)||"application/vnd.ogc.gml"===M.utils.normalize(this.userFormat)?this.userFormat="application/vnd.ogc.gml":this.userFormat="text/html";a.on("singleclick",this.js,this)};M.impl.control.GetFeatureInfo.prototype.js=function(a){var b=this.facadeMap_.getMapImpl().getView().getResolution(),c=this.facadeMap_.getProjection().code,d=[];this.facadeMap_.getWMS().forEach(function(e){var f=e.getImpl().getOL3Layer();if(e.isVisible()&&e.isQueryable()&&
!M.utils.isNullOrEmpty(f)){var g={INFO_FORMAT:this.userFormat,FEATURE_COUNT:this.gl};/buffer/i.test(e.url)||(g.Buffer=this.buffer);f=f.getSource().getGetFeatureInfoUrl(a.coordinate,b,c,g);d.push({layer:e.name,url:f})}},this);0<d.length?this.VD(d,a.coordinate):M.dialog.info("No existen capas consultables")};M.impl.control.GetFeatureInfo.prototype.lz=function(){this.facadeMap_.getMapImpl().un("singleclick",this.js,this)};M.impl.control.GetFeatureInfo.prototype.hB=function(a,b){var c=!1;switch(b){case "text/html":b=
document.createElement("div");b.innerHTML=a;var d="";Array.prototype.forEach.call(b.querySelectorAll("body"),function(a){d+=a.innerHTML.trim()});Array.prototype.forEach.call(b.querySelectorAll("div"),function(a){d+=a.innerHTML.trim()});Array.prototype.forEach.call(b.querySelectorAll("table"),function(a){d+=a.innerHTML.trim()});Array.prototype.forEach.call(b.querySelectorAll("b"),function(a){d+=a.innerHTML.trim()});Array.prototype.forEach.call(b.querySelectorAll("span"),function(a){d+=a.innerHTML.trim()});
Array.prototype.forEach.call(b.querySelectorAll("input"),function(a){d+=a.innerHTML.trim()});Array.prototype.forEach.call(b.querySelectorAll("a"),function(a){d+=a.innerHTML.trim()});Array.prototype.forEach.call(b.querySelectorAll("img"),function(a){d+=a.innerHTML.trim()});Array.prototype.forEach.call(b.querySelectorAll("p"),function(a){d+=a.innerHTML.trim()});Array.prototype.forEach.call(b.querySelectorAll("ul"),function(a){d+=a.innerHTML.trim()});Array.prototype.forEach.call(b.querySelectorAll("li"),
function(a){d+=a.innerHTML.trim()});0<d.length&&!/WMS\s+server\s+error/i.test(a)&&(c=!0);break;case "application/vnd.ogc.gml":c=0<(new Ah).readFeatures(a).length;break;case "text/plain":/returned\s+no\s+results/i.test(a)||/features\s+were\s+found/i.test(a)||/:$/i.test(a)||(c=!0)}return c};M.impl.control.GetFeatureInfo.prototype.Kz=function(b,c,d){var e=null;switch(c){case "text/html":e=b;break;case "application/vnd.ogc.gml":b=(new Ah).readFeatures(b);e="";b.forEach(function(a){var b=a.getKeys();e+=
'\x3cdiv class\x3d"divinfo"\x3e';e+='\x3ctable class\x3d"mapea-table"\x3e\x3ctbody\x3e\x3ctr\x3e\x3ctd class\x3d"header" colspan\x3d"3"\x3e'+M.utils.beautifyAttribute(d)+"\x3c/td\x3e\x3c/tr\x3e";for(var c=0,f=b.length;c<f;c++){var g=b[c],k=a.get(g);e+='\x3ctr\x3e\x3ctd class\x3d"key"\x3e\x3cb\x3e';e+=M.utils.beautifyAttribute(g);e+='\x3c/b\x3e\x3c/td\x3e\x3ctd class\x3d"value"\x3e';e+=k;e+="\x3c/td\x3e\x3c/tr\x3e"}e+="\x3c/tbody\x3e\x3c/table\x3e\x3c/div\x3e"});break;case "text/plain":e=a.test(b)?
this.BE(b,d):this.CE(b)}return e};M.impl.control.GetFeatureInfo.prototype.LE=function(a,b){var c=!1;"text/html"===b&&(c=e.test(a));return c};M.impl.control.GetFeatureInfo.prototype.BE=function(a,b){a=a.replace(/[\w\s\S]*':/i,"");a=a.replace(/---(\-*)(\n+)---(\-*)/g,"#newfeature#");a=a.split("\n");var e;e='\x3cdiv class\x3d"divinfo"\x3e'+('\x3ctable class\x3d"mapea-table"\x3e\x3ctbody\x3e\x3ctr\x3e\x3ctd class\x3d"header" colspan\x3d"3"\x3e'+M.utils.beautifyAttribute(b)+"\x3c/td\x3e\x3c/tr\x3e");for(var f=
0,g=a.length;f<g;f++){var n=a[f].trim();if(-1!=n.indexOf("\x3d")){var n=n.split("\x3d"),q=n[0].trim(),r="-";1<n.length&&(r=n[1].trim(),0===r.length||"null"===r)&&(r="-");!1===d.test(q)&&(e+='\x3ctr\x3e\x3ctd class\x3d"key"\x3e\x3cb\x3e',e+=M.utils.beautifyAttribute(q),e+='\x3c/b\x3e\x3c/td\x3e\x3ctd class\x3d"value"\x3e',e+=r,e+="\x3c/td\x3e\x3c/tr\x3e")}else c.test(n)&&(e+='\x3ctr\x3e\x3ctd class\x3d"header" colspan\x3d"3"\x3e'+M.utils.beautifyAttribute(b)+"\x3c/td\x3e\x3c/tr\x3e")}return e+"\x3c/tbody\x3e\x3c/table\x3e\x3c/div\x3e"};
M.impl.control.GetFeatureInfo.prototype.CE=function(a){a=a.replace(/[\w\s\S]*(layer)/i,"$1");var c=a.replace(/layer(\s*)'(\w+)'[\w\s\S]*/i,"$2");a=a.replace(/layer(\s*)'(\w+)'([\w\s\S]*)/i,"$3");a=a.replace(/feature(\s*)(\w*)(\s*)(:)([\w\s\S]*)/i,"$5");a=a.replace(/'/g,"");a=a.replace(/=/g,";");a=a.split("\n");for(var d="",e='\x3ctable class\x3d"mapea-table"\x3e\x3ctbody\x3e\x3ctr\x3e\x3ctd class\x3d"header" colspan\x3d"3"\x3e'+M.utils.beautifyAttribute(c)+"\x3c/td\x3e\x3c/tr\x3e",f=0,n=a.length;f<
n;f++){var q=a[f].trim(),r=a[f]?a[f].trim():"",q=q.split(";"),t=q[0].trim(),u="-";1<q.length&&(u=q[1].trim(),0===u.length&&(u="-"));0<t.length&&(b.test(t)?0<r.length&&!b.test(r)&&(d+='\x3ctr\x3e\x3ctd class\x3d"header" colspan\x3d"3"\x3e'+M.utils.beautifyAttribute(c)+"\x3c/td\x3e\x3ctd\x3e\x3c/td\x3e\x3c/tr\x3e"):(d+='\x3ctr\x3e\x3ctd class\x3d"key"\x3e\x3cb\x3e',d+=M.utils.beautifyAttribute(t),d+='\x3c/b\x3e\x3c/td\x3e\x3ctd class\x3d"value"\x3e',d+=u,d+="\x3c/td\x3e\x3c/tr\x3e"))}0<d.length&&(d=
e+d+"\x3c/tbody\x3e\x3c/table\x3e");return d};M.impl.control.GetFeatureInfo.prototype.VD=function(a,b){var c=[],d=String(this.userFormat),e=0,f=this,g,r;M.template.compile(M.control.GetFeatureInfo.POPUP_TEMPLATE,{jsonp:!0,vars:{info:M.impl.control.GetFeatureInfo.LOADING_MESSAGE},parseToHtml:!1}).then(function(a){r=f.facadeMap_.getPopup();g={icon:"g-cartografia-info",title:M.control.GetFeatureInfo.POPUP_TITLE,content:a};M.utils.isNullOrEmpty(r)?(r=new M.Popup,r.addTab(g),f.facadeMap_.addPopup(r,b)):
r.getTabs().some(function(a){return a.title!==M.control.GetFeatureInfo.POPUP_TITLE})?r.addTab(g):(f.facadeMap_.removePopup(),r=new M.Popup,r.addTab(g),f.facadeMap_.addPopup(r,b))});a.forEach(function(b){var k=b.layer;M.remote.get(b.url).then(function(b){r=f.facadeMap_.getPopup();200===b.code&&!1===b.error&&(b=b.text,!0===f.hB(b,d)?(b=f.Kz(b,d,k),c.push(b)):f.LE(b,d)&&c.push("La capa \x3cb\x3e"+k+"\x3c/b\x3e no soporta el formato \x3ci\x3e"+d+"\x3c/i\x3e"));a.length!==++e||M.utils.isNullOrEmpty(r)||
(r.removeTab(g),""===c.join("")?r.addTab({icon:"g-cartografia-info",title:M.control.GetFeatureInfo.POPUP_TITLE,content:"No hay informaci\u00f3n asociada."}):r.addTab({icon:"g-cartografia-info",title:M.control.GetFeatureInfo.POPUP_TITLE,content:c.join("")}))})})};M.impl.control.GetFeatureInfo.LOADING_MESSAGE="Obteniendo informaci\u00f3n..."})();M.impl.control.LayerSwitcher={};M.impl.control.LayerSwitcher=function(){this.facadeMap_=this.panel=null};v(M.impl.control.LayerSwitcher,M.impl.Control);h=M.impl.control.LayerSwitcher.prototype;
h.addTo=function(a,b){this.facadeMap_=a;a=a.getMapImpl();this.panel=b.getElementsByTagName("div")[M.impl.control.LayerSwitcher.PANEL_ID];kb(this.panel,nb.CLICK,this.clickLayer,!1,this);kb(this.panel,"input",this.clickLayer,!1,this);Ke.call(this,{element:b,target:null});a.addControl(this)};h.clickLayer=function(a){a=a||window.event;if(!M.utils.isNullOrEmpty(a.target)){var b=a.target.getAttribute("data-layer-name");if(!M.utils.isNullOrEmpty(b)){a.stopPropagation();var c;this.facadeMap_.getLayers().some(function(a){if(a.name===
b)return c=a,!0});sb(a.target,"m-check")?!0!==c.transparent&&c.isVisible()||(a=a.target.parentElement.parentElement.querySelector("div.tools \x3e input"),M.utils.isNullOrEmpty(a)||c.setOpacity(a.value),c.setVisible(!c.isVisible())):sb(a.target,"m-layerswitcher-transparency")?c.setOpacity(a.target.value):sb(a.target,"m-layerswitcher-remove")&&this.facadeMap_.removeLayers(c)}}};h.renderPanel=function(){var a=this;M.control.LayerSwitcher.yt(this.facadeMap_).then(function(a){return M.template.compile(M.control.LayerSwitcher.TEMPLATE,
{jsonp:!0,vars:a})}).then(function(b){a.oD(b);b=b.querySelector("div#".concat(M.impl.control.LayerSwitcher.PANEL_ID));a.panel.innerHTML=b.innerHTML})};h.registerEvents=function(){if(!M.utils.isNullOrEmpty(this.facadeMap_)){var a=this.facadeMap_.getMapImpl();this.zv(a.getView());this.pD(a.getLayers());a.on("change:view",this.Pu,this)}};h.unregisterEvents=function(){if(!M.utils.isNullOrEmpty(this.facadeMap_)){var a=this.facadeMap_.getMapImpl();this.xw(a.getView());this.JE(a.getLayers());a.un("change:view",
this.Pu,this)}};h.zv=function(a){a.on("change:resolution",this.renderPanel,this)};h.pD=function(a){a.forEach(this.mq,this);a.on("remove",this.renderPanel,this);a.on("add",this.Mu,this)};h.mq=function(a){a.on("change:visible",this.renderPanel,this);a.on("change:extent",this.renderPanel,this)};h.xw=function(a){a.un("change:resolution",this.renderPanel,this)};h.JE=function(a){a.forEach(this.mq,this);a.un("remove",this.renderPanel,this);a.un("add",this.Mu,this)};h.Pu=function(a){this.xw(a.oldValue);a=
this.facadeMap_.getMapImpl();this.zv(a.getView())};h.Mu=function(a){this.mq(a.element);this.renderPanel()};h.oD=function(a){Array.prototype.forEach.call(a.querySelectorAll("img"),function(a){kb(a,"error",function(a){var b=a.target.getAttribute("data-layer-name");a=M.utils.concatUrlPaths([M.config.THEME_URL,M.Layer.LEGEND_ERROR]);var c=this.facadeMap_.getLayers().filter(function(a){return a.name===b})[0];M.utils.isNullOrEmpty(c)||c.setLegendURL(a)},!1,this)},this)};h.setMap=function(a){M.impl.control.LayerSwitcher.ab.setMap.call(this,
a);this.renderPanel()};M.impl.control.LayerSwitcher.PANEL_ID="m-layerswitcher-panel";var Bh=new Ff(6378137);function Ch(a){Ge.call(this);a=a||{};this.uf=null;this.bb=dg;this.rk=void 0;G(this,Ie("projection"),this.jp,this);G(this,Ie("tracking"),this.mp,this);void 0!==a.projection&&this.setProjection(H(a.projection));void 0!==a.trackingOptions&&this.setTrackingOptions(a.trackingOptions);this.setTracking(void 0!==a.tracking?a.tracking:!1)}A(Ch,Ge);h=Ch.prototype;h.T=function(){this.setTracking(!1);Ge.prototype.T.call(this)};
h.jp=function(){var a=this.getProjection();a&&(this.bb=Pf(H("EPSG:4326"),a),this.uf&&this.set("position",this.bb(this.uf)))};h.mp=function(){if(Wd){var a=this.getTracking();a&&void 0===this.rk?this.rk=navigator.geolocation.watchPosition(this.JC.bind(this),this.KC.bind(this),this.getTrackingOptions()):a||void 0===this.rk||(navigator.geolocation.clearWatch(this.rk),this.rk=void 0)}};h.JC=function(a){a=a.coords;this.set("accuracy",a.accuracy);this.set("altitude",null===a.altitude?void 0:a.altitude);
this.set("altitudeAccuracy",null===a.altitudeAccuracy?void 0:a.altitudeAccuracy);this.set("heading",null===a.heading?void 0:xd(a.heading));this.uf?(this.uf[0]=a.longitude,this.uf[1]=a.latitude):this.uf=[a.longitude,a.latitude];var b=this.bb(this.uf);this.set("position",b);this.set("speed",null===a.speed?void 0:a.speed);a=Yg(Bh,this.uf,a.accuracy);a.applyTransform(this.bb);this.set("accuracyGeometry",a);this.changed()};h.KC=function(a){a.type="error";this.setTracking(!1);this.dispatchEvent(a)};h.getAccuracy=
function(){return this.get("accuracy")};h.getAccuracyGeometry=function(){return this.get("accuracyGeometry")||null};h.getAltitude=function(){return this.get("altitude")};h.getAltitudeAccuracy=function(){return this.get("altitudeAccuracy")};h.getHeading=function(){return this.get("heading")};h.getPosition=function(){return this.get("position")};h.getProjection=function(){return this.get("projection")};h.getSpeed=function(){return this.get("speed")};h.getTracking=function(){return this.get("tracking")};
h.getTrackingOptions=function(){return this.get("trackingOptions")};h.setProjection=function(a){this.set("projection",a)};h.setTracking=function(a){this.set("tracking",a)};h.setTrackingOptions=function(a){this.set("trackingOptions",a)};M.impl.control.Location={};M.impl.control.Location=function(a,b,c){this.af=null;this.Gk=M.impl.Feature.olFeature2Facade(new E);this.Xq=a;this.UA=b;this.NB=c;this.activated_=!1;this.um=M.impl.Feature.olFeature2Facade(new E({style:M.impl.control.Location.POSITION_STYLE}))};
v(M.impl.control.Location,M.impl.Control);h=M.impl.control.Location.prototype;h.activate=function(){pb(this.element,"m-locating");if(M.utils.isNullOrEmpty(this.af)){var a=H(this.facadeMap_.getProjection().code);this.af=new Ch({projection:a,tracking:this.Xq,trackingOptions:{enableHighAccuracy:this.UA,maximumAge:this.NB}});this.af.on("change:accuracyGeometry",function(a){a=a.target.get(a.key);this.Gk.getImpl().getOLFeature().setGeometry(a)},this);this.af.on("change:position",function(a){a=a.target.get(a.key);
var b=M.utils.isNullOrEmpty(a)?null:new F(a);this.um.getImpl().getOLFeature().setGeometry(b);this.facadeMap_.setCenter(a);sb(this.element,"m-locating")&&this.facadeMap_.setZoom(12);qb(this.element,"m-locating");pb(this.element,"m-located");this.af.setTracking(this.Xq)},this)}this.af.setTracking(!0);this.facadeMap_.drawFeatures([this.Gk,this.um])};h.Av=function(){M.utils.isNullOrEmpty(this.Gk)||this.facadeMap_.removeFeatures([this.Gk]);M.utils.isNullOrEmpty(this.um)||this.facadeMap_.removeFeatures([this.um]);
this.af.setTracking(!1)};h.deactivate=function(){this.Av();qb(this.element,"m-located")};h.setTracking=function(a){console.log(a);this.Xq=a;this.af.setTracking(a)};h.destroy=function(){this.Av();M.impl.control.Location.ab.destroy.call(this)};M.impl.control.Location.POSITION_STYLE=new mg({image:new je({radius:6,fill:new ke({color:"#3399CC"}),stroke:new lg({color:"#fff",width:2})})});function Dh(a){a=a?a:{};var b=document.createElement("DIV");b.className=void 0!==a.className?a.className:"ol-mouse-position";
Ke.call(this,{element:b,render:a.render?a.render:Eh,target:a.target});G(this,Ie(Fh),this.jp,this);a.coordinateFormat&&this.setCoordinateFormat(a.coordinateFormat);a.projection&&this.setProjection(H(a.projection));this.IE=void 0!==a.undefinedHTML?a.undefinedHTML:"";this.Sh=b.innerHTML;this.Pl=this.bb=this.wj=null}A(Dh,Ke);function Eh(a){a=a.frameState;a?this.wj!=a.viewState.projection&&(this.wj=a.viewState.projection,this.bb=null):this.wj=null;Gh(this,this.Pl)}h=Dh.prototype;h.jp=function(){this.bb=
null};h.getCoordinateFormat=function(){return this.get(Hh)};h.getProjection=function(){return this.get(Fh)};h.BA=function(a){this.Pl=this.getMap().getEventPixel(a);Gh(this,this.Pl)};h.CA=function(){Gh(this,null);this.Pl=null};h.setMap=function(a){Ke.prototype.setMap.call(this,a);a&&(a=a.getViewport(),this.sg.push(G(a,"mousemove",this.BA,this),G(a,"mouseout",this.CA,this)))};h.setCoordinateFormat=function(a){this.set(Hh,a)};h.setProjection=function(a){this.set(Fh,a)};function Gh(a,b){var c=a.IE;if(b&&
a.wj){if(!a.bb){var d=a.getProjection();a.bb=d?Pf(a.wj,d):dg}if(b=a.getMap().getCoordinateFromPixel(b))a.bb(b,b),c=(c=a.getCoordinateFormat())?c(b):b.toString()}a.Sh&&c==a.Sh||(a.element.innerHTML=c,a.Sh=c)}var Fh="projection",Hh="coordinateFormat";M.impl.control.Mouse={};M.impl.control.Mouse=function(){this.facadeMap_=null};v(M.impl.control.Mouse,Dh);M.impl.control.Mouse.prototype.addTo=function(a){this.facadeMap_=a;Dh.call(this,{coordinateFormat:Ih(4),projection:a.getProjection().code,undefinedHTML:"",
className:"m-mouse-position g-cartografia-flecha"});a.getMapImpl().addControl(this);a.getImpl().on(M.evt.CHANGE,function(){this.setProjection(H(a.getProjection().code))},this)};M.impl.control.Mouse.prototype.getElement=function(){return this.element};M.impl.control.Mouse.prototype.destroy=function(){this.facadeMap_.getMapImpl().removeControl(this);this.facadeMap_=null};M.impl.control.Navtoolbar={};M.impl.control.Navtoolbar=function(){this.element_=null};M.impl.control.Navtoolbar.prototype.addTo=function(a,
b){this.element_=b};M.impl.control.Navtoolbar.prototype.getElement=function(){return this.element_};M.impl.control.Navtoolbar.prototype.destroy=function(){};function Jh(a){Ge.call(this);this.vd=a?a:[];Kh(this)}A(Jh,Ge);h=Jh.prototype;h.clear=function(){for(;0<this.getLength();)this.pop()};h.extend=function(a){var b,c;b=0;for(c=a.length;b<c;++b)this.push(a[b]);return this};h.forEach=function(a,b){this.vd.forEach(a,b)};h.getArray=function(){return this.vd};h.item=function(a){return this.vd[a]};h.getLength=
function(){return this.get(Lh)};h.insertAt=function(a,b){this.vd.splice(a,0,b);Kh(this);this.dispatchEvent(new Mh("add",b))};h.pop=function(){return this.removeAt(this.getLength()-1)};h.push=function(a){var b=this.getLength();this.insertAt(b,a);return this.getLength()};h.remove=function(a){var b=this.vd,c,d;c=0;for(d=b.length;c<d;++c)if(b[c]===a)return this.removeAt(c)};h.removeAt=function(a){var b=this.vd[a];this.vd.splice(a,1);Kh(this);this.dispatchEvent(new Mh("remove",b));return b};h.setAt=function(a,
b){var c=this.getLength();if(a<c)c=this.vd[a],this.vd[a]=b,this.dispatchEvent(new Mh("remove",c)),this.dispatchEvent(new Mh("add",b));else{for(;c<a;++c)this.insertAt(c,void 0);this.insertAt(a,b)}};function Kh(a){a.set(Lh,a.vd.length)}var Lh="length";function Mh(a,b){ze.call(this,a);this.element=b}A(Mh,ze);function Nh(a,b,c){ze.call(this,a);this.map=b;this.frameState=void 0!==c?c:null}A(Nh,ze);function Oh(a,b,c,d,e){Nh.call(this,a,b,e);this.originalEvent=c;this.pixel=b.getEventPixel(c);this.coordinate=
b.getCoordinateFromPixel(this.pixel);this.dragging=void 0!==d?d:!1}A(Oh,Nh);Oh.prototype.preventDefault=function(){Nh.prototype.preventDefault.call(this);this.originalEvent.preventDefault()};Oh.prototype.stopPropagation=function(){Nh.prototype.stopPropagation.call(this);this.originalEvent.stopPropagation()};var Ph={aH:"singleclick",CLICK:Ce.CLICK,ur:"dblclick",NG:"pointerdrag",Hx:"pointermove",Ex:"pointerdown",Kx:"pointerup",Jx:"pointerover",Ix:"pointerout",Fx:"pointerenter",Gx:"pointerleave",Dx:"pointercancel"};
function Qh(a,b,c,d,e){Oh.call(this,a,b,c.originalEvent,d,e);this.Lj=c}A(Qh,Oh);function Rh(a,b){this.Z=a;this.bm=b}function Sh(a){Rh.call(this,a,{mousedown:this.mousedown,mousemove:this.mousemove,mouseup:this.mouseup,mouseover:this.mouseover,mouseout:this.mouseout});this.Ra=a.Ra;this.Vt=[]}A(Sh,Rh);function Th(a,b){a=a.Vt;var c=b.clientX;b=b.clientY;for(var d=0,e=a.length,f;d<e&&(f=a[d]);d++){var g=Math.abs(b-f[1]);if(25>=Math.abs(c-f[0])&&25>=g)return!0}return!1}function Uh(a){var b=Vh(a,a),c=b.preventDefault;
b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.isPrimary=!0;b.pointerType="mouse";return b}h=Sh.prototype;h.mousedown=function(a){if(!Th(this,a)){(1).toString()in this.Ra&&this.cancel(a);var b=Uh(a);this.Ra[(1).toString()]=a;this.Z.fireEvent("pointerdown",b,a)}};h.mousemove=function(a){if(!Th(this,a)){var b=Uh(a);this.Z.move(b,a)}};h.mouseup=function(a){if(!Th(this,a)){var b=this.Ra[(1).toString()];b&&b.button===a.button&&(b=Uh(a),this.Z.fireEvent("pointerup",b,a),delete this.Ra[(1).toString()])}};
h.mouseover=function(a){if(!Th(this,a)){var b=Uh(a);Wh(this.Z,b,a)}};h.mouseout=function(a){if(!Th(this,a)){var b=Uh(a);Xh(this.Z,b,a)}};h.cancel=function(a){var b=Uh(a);this.Z.cancel(b,a);delete this.Ra[(1).toString()]};function Yh(a){Rh.call(this,a,{MSPointerDown:this.WB,MSPointerMove:this.XB,MSPointerUp:this.$B,MSPointerOut:this.YB,MSPointerOver:this.ZB,MSPointerCancel:this.VB,MSGotPointerCapture:this.TB,MSLostPointerCapture:this.UB});this.Ra=a.Ra;this.Lx=["","unavailable","touch","pen","mouse"]}
A(Yh,Rh);function Zh(a,b){var c=b;"number"===typeof b.pointerType&&(c=Vh(b,b),c.pointerType=a.Lx[b.pointerType]);return c}h=Yh.prototype;h.WB=function(a){this.Ra[a.pointerId.toString()]=a;var b=Zh(this,a);this.Z.fireEvent("pointerdown",b,a)};h.XB=function(a){var b=Zh(this,a);this.Z.move(b,a)};h.$B=function(a){var b=Zh(this,a);this.Z.fireEvent("pointerup",b,a);delete this.Ra[a.pointerId.toString()]};h.YB=function(a){var b=Zh(this,a);Xh(this.Z,b,a)};h.ZB=function(a){var b=Zh(this,a);Wh(this.Z,b,a)};
h.VB=function(a){var b=Zh(this,a);this.Z.cancel(b,a);delete this.Ra[a.pointerId.toString()]};h.UB=function(a){this.Z.dispatchEvent(new $h("lostpointercapture",a,a))};h.TB=function(a){this.Z.dispatchEvent(new $h("gotpointercapture",a,a))};function ai(a){Rh.call(this,a,{pointerdown:this.EC,pointermove:this.pointerMove,pointerup:this.HC,pointerout:this.FC,pointerover:this.GC,pointercancel:this.DC,gotpointercapture:this.gA,lostpointercapture:this.EB})}A(ai,Rh);h=ai.prototype;h.EC=function(a){bi(this.Z,
a)};h.pointerMove=function(a){bi(this.Z,a)};h.HC=function(a){bi(this.Z,a)};h.FC=function(a){bi(this.Z,a)};h.GC=function(a){bi(this.Z,a)};h.DC=function(a){bi(this.Z,a)};h.EB=function(a){bi(this.Z,a)};h.gA=function(a){bi(this.Z,a)};function $h(a,b,c){ze.call(this,a);this.originalEvent=b;a=c?c:{};this.buttons=ci(a);this.pressure=a.pressure?a.pressure:this.buttons?.5:0;this.bubbles="bubbles"in a?a.bubbles:!1;this.cancelable="cancelable"in a?a.cancelable:!1;this.view="view"in a?a.view:null;this.detail=
"detail"in a?a.detail:null;this.screenX="screenX"in a?a.screenX:0;this.screenY="screenY"in a?a.screenY:0;this.clientX="clientX"in a?a.clientX:0;this.clientY="clientY"in a?a.clientY:0;this.ctrlKey="ctrlKey"in a?a.ctrlKey:!1;this.altKey="altKey"in a?a.altKey:!1;this.shiftKey="shiftKey"in a?a.shiftKey:!1;this.metaKey="metaKey"in a?a.metaKey:!1;this.button="button"in a?a.button:0;this.relatedTarget="relatedTarget"in a?a.relatedTarget:null;this.pointerId="pointerId"in a?a.pointerId:0;this.width="width"in
a?a.width:0;this.height="height"in a?a.height:0;this.tiltX="tiltX"in a?a.tiltX:0;this.tiltY="tiltY"in a?a.tiltY:0;this.pointerType="pointerType"in a?a.pointerType:"";this.hwTimestamp="hwTimestamp"in a?a.hwTimestamp:0;this.isPrimary="isPrimary"in a?a.isPrimary:!1;b.preventDefault&&(this.preventDefault=function(){b.preventDefault()})}A($h,ze);function ci(a){if(a.buttons||di)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a}var di=!1;try{di=1===
(new MouseEvent("click",{buttons:1})).buttons}catch(a){}function ei(a,b){Rh.call(this,a,{touchstart:this.zE,touchmove:this.yE,touchend:this.xE,touchcancel:this.wE});this.Ra=a.Ra;this.QB=b;this.Xi=void 0;this.lo=0;this.Xj=void 0}A(ei,Rh);h=ei.prototype;h.Kv=function(){this.lo=0;this.Xj=void 0};function fi(a,b,c){b=Vh(b,c);b.pointerId=c.identifier+2;b.bubbles=!0;b.cancelable=!0;b.detail=a.lo;b.button=0;b.buttons=1;b.width=c.webkitRadiusX||c.radiusX||0;b.height=c.webkitRadiusY||c.radiusY||0;b.pressure=
c.webkitForce||c.force||.5;b.isPrimary=a.Xi===c.identifier;b.pointerType="touch";b.clientX=c.clientX;b.clientY=c.clientY;b.screenX=c.screenX;b.screenY=c.screenY;return b}function gi(a,b,c){function d(){b.preventDefault()}var e=Array.prototype.slice.call(b.changedTouches),f=e.length,g,k;for(g=0;g<f;++g)k=fi(a,b,e[g]),k.preventDefault=d,c.call(a,b,k)}h.zE=function(a){var b=a.touches,c=Object.keys(this.Ra),d=c.length;if(d>=b.length){var e=[],f,g,k;for(f=0;f<d;++f){g=c[f];k=this.Ra[g];var l;if(!(l=1==
g))a:{for(var m=b.length,n=0;n<m;n++)if(l=b[n],l.identifier===g-2){l=!0;break a}l=!1}l||e.push(k.out)}for(f=0;f<e.length;++f)this.ho(a,e[f])}b=a.changedTouches[0];c=Object.keys(this.Ra).length;if(0===c||1===c&&(1).toString()in this.Ra)this.Xi=b.identifier,void 0!==this.Xj&&clearTimeout(this.Xj);hi(this,a);this.lo++;gi(this,a,this.qC)};h.qC=function(a,b){this.Ra[b.pointerId]={target:b.target,out:b,Ru:b.target};var c=this.Z;b.bubbles=!0;c.fireEvent("pointerover",b,a);c=this.Z;b.bubbles=!1;c.fireEvent("pointerenter",
b,a);this.Z.fireEvent("pointerdown",b,a)};h.yE=function(a){a.preventDefault();gi(this,a,this.SB)};h.SB=function(a,b){var c=this.Ra[b.pointerId];if(c){var d=c.out,e=c.Ru;this.Z.move(b,a);d&&e!==b.target&&(d.relatedTarget=b.target,b.relatedTarget=e,d.target=e,b.target?(Xh(this.Z,d,a),Wh(this.Z,b,a)):(b.target=e,b.relatedTarget=null,this.ho(a,b)));c.out=b;c.Ru=b.target}};h.xE=function(a){hi(this,a);gi(this,a,this.ME)};h.ME=function(a,b){this.Z.fireEvent("pointerup",b,a);this.Z.out(b,a);ii(this.Z,b,a);
delete this.Ra[b.pointerId];b.isPrimary&&(this.Xi=void 0,this.Xj=setTimeout(this.Kv.bind(this),200))};h.wE=function(a){gi(this,a,this.ho)};h.ho=function(a,b){this.Z.cancel(b,a);this.Z.out(b,a);ii(this.Z,b,a);delete this.Ra[b.pointerId];b.isPrimary&&(this.Xi=void 0,this.Xj=setTimeout(this.Kv.bind(this),200))};function hi(a,b){var c=a.QB.Vt;b=b.changedTouches[0];if(a.Xi===b.identifier){var d=[b.clientX,b.clientY];c.push(d);setTimeout(function(){var a=c.indexOf(d);-1<a&&c.splice(a,1)},2500)}}function ji(a){Be.call(this);
this.element_=a;this.Ra={};this.Rs={};this.Ri=[];Yd?ki(this,new ai(this)):Zd?ki(this,new Yh(this)):(a=new Sh(this),ki(this,a),Xd&&ki(this,new ei(this,a)));a=this.Ri.length;for(var b,c=0;c<a;c++)b=this.Ri[c],li(this,Object.keys(b.bm))}A(ji,Be);function ki(a,b){var c=Object.keys(b.bm);c&&(c.forEach(function(a){var c=b.bm[a];c&&(this.Rs[a]=c.bind(b))},a),a.Ri.push(b))}h=ji.prototype;h.Ps=function(a){var b=this.Rs[a.type];b&&b(a)};function li(a,b){b.forEach(function(a){G(this.element_,a,this.Ps,this)},
a)}function mi(a,b){b.forEach(function(a){we(this.element_,a,this.Ps,this)},a)}function Vh(a,b){for(var c={},d,e=0,f=ni.length;e<f;e++)d=ni[e][0],c[d]=a[d]||b[d]||ni[e][1];return c}h.move=function(a,b){this.fireEvent("pointermove",a,b)};function ii(a,b,c){b.bubbles=!1;a.fireEvent("pointerleave",b,c)}h.out=function(a,b){a.bubbles=!0;this.fireEvent("pointerout",a,b)};h.cancel=function(a,b){this.fireEvent("pointercancel",a,b)};function Xh(a,b,c){a.out(b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||
ii(a,b,c)}function Wh(a,b,c){b.bubbles=!0;a.fireEvent("pointerover",b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||(b.bubbles=!1,a.fireEvent("pointerenter",b,c))}h.fireEvent=function(a,b,c){this.dispatchEvent(new $h(a,c,b))};function bi(a,b){a.dispatchEvent(new $h(b.type,b,b))}h.T=function(){for(var a=this.Ri.length,b,c=0;c<a;c++)b=this.Ri[c],mi(this,Object.keys(b.bm));Be.prototype.T.call(this)};var ni=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",
0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]];function oi(a){Be.call(this);this.map_=a;this.zi=0;this.je=!1;this.ah=[];this.Se=null;a=this.map_.getViewport();this.Vr=0;this.Wq={};this.Jh=new ji(a);this.Re=null;
this.Sp=G(this.Jh,"pointerdown",this.FA,this);this.oq=G(this.Jh,"pointermove",this.qD,this)}A(oi,Be);function pi(a,b){var c=new Qh(Ph.CLICK,a.map_,b);a.dispatchEvent(c);0!==a.zi?(clearTimeout(a.zi),a.zi=0,c=new Qh("dblclick",a.map_,b),a.dispatchEvent(c)):a.zi=setTimeout(function(){this.zi=0;var a=new Qh("singleclick",this.map_,b);this.dispatchEvent(a)}.bind(a),250)}function qi(a,b){"pointerup"==b.type||"pointercancel"==b.type?delete a.Wq[b.pointerId]:"pointerdown"==b.type&&(a.Wq[b.pointerId]=!0);
a.Vr=Object.keys(a.Wq).length}h=oi.prototype;h.Ct=function(a){qi(this,a);var b=new Qh("pointerup",this.map_,a);this.dispatchEvent(b);!this.je&&0===a.button&&pi(this,this.Se);0===this.Vr&&(this.ah.forEach(qe),this.ah.length=0,this.je=!1,this.Se=null,this.Re.Ib(),this.Re=null)};h.FA=function(a){qi(this,a);var b=new Qh("pointerdown",this.map_,a);this.dispatchEvent(b);this.Se=a;0===this.ah.length&&(this.Re=new ji(document),this.ah.push(G(this.Re,"pointermove",this.cf,this),G(this.Re,"pointerup",this.Ct,
this),G(this.Jh,"pointercancel",this.Ct,this)))};h.cf=function(a){if(a.clientX!=this.Se.clientX||a.clientY!=this.Se.clientY){this.je=!0;var b=new Qh("pointerdrag",this.map_,a,this.je);this.dispatchEvent(b)}a.preventDefault()};h.qD=function(a){this.dispatchEvent(new Qh(a.type,this.map_,a,!(!this.Se||a.clientX==this.Se.clientX&&a.clientY==this.Se.clientY)))};h.T=function(){this.oq&&(qe(this.oq),this.oq=null);this.Sp&&(qe(this.Sp),this.Sp=null);this.ah.forEach(qe);this.ah.length=0;this.Re&&(this.Re.Ib(),
this.Re=null);this.Jh&&(this.Jh.Ib(),this.Jh=null);Be.prototype.T.call(this)};function ri(a,b){this.iv=a;this.Ml=b;this.Dd=[];this.Mh=[];this.Bg={}}h=ri.prototype;h.clear=function(){this.Dd.length=0;this.Mh.length=0;me(this.Bg)};h.dequeue=function(){var a=this.Dd,b=this.Mh,c=a[0];1==a.length?(a.length=0,b.length=0):(a[0]=a.pop(),b[0]=b.pop(),ti(this,0));a=this.Ml(c);delete this.Bg[a];return c};h.enqueue=function(a){qd(!(this.Ml(a)in this.Bg),31);var b=this.iv(a);return Infinity!=b?(this.Dd.push(a),
this.Mh.push(b),this.Bg[this.Ml(a)]=!0,ui(this,0,this.Dd.length-1),!0):!1};h.lh=function(){return this.Dd.length};h.isEmpty=function(){return 0===this.Dd.length};function ti(a,b){for(var c=a.Dd,d=a.Mh,e=c.length,f=c[b],g=d[b],k=b;b<e>>1;){var l=2*b+1,m=2*b+2,l=m<e&&d[m]<d[l]?m:l;c[b]=c[l];d[b]=d[l];b=l}c[b]=f;d[b]=g;ui(a,k,b)}function ui(a,b,c){var d=a.Dd;a=a.Mh;for(var e=d[c],f=a[c];c>b;){var g=c-1>>1;if(a[g]>f)d[c]=d[g],a[c]=a[g],c=g;else break}d[c]=e;a[c]=f}function vi(a){var b=a.iv,c=a.Dd,d=a.Mh,
e=0,f=c.length,g,k,l;for(k=0;k<f;++k)g=c[k],l=b(g),Infinity==l?delete a.Bg[a.Ml(g)]:(d[e]=l,c[e++]=g);c.length=e;d.length=e;for(b=(a.Dd.length>>1)-1;0<=b;b--)ti(a,b)}function wi(a,b){ri.call(this,function(b){return a.apply(null,b)},function(a){return a[0].getKey()});this.qE=b;this.dn=0;this.cn={}}A(wi,ri);wi.prototype.enqueue=function(a){var b=ri.prototype.enqueue.call(this,a);b&&G(a[0],Ce.CHANGE,this.fj,this);return b};wi.prototype.fj=function(a){a=a.target;var b=a.getState();if(2===b||3===b||4===
b||5===b)we(a,Ce.CHANGE,this.fj,this),a=a.getKey(),a in this.cn&&(delete this.cn[a],--this.dn),this.qE()};function xi(a,b,c){for(var d=0,e,f;a.dn<b&&d<c&&0<a.lh();)e=a.dequeue()[0],f=e.getKey(),0!==e.getState()||f in a.cn||(a.cn[f]=!0,++a.dn,++d,e.load())}function yi(a){return function(b){if(b)return[rd(b[0],a[0],a[2]),rd(b[1],a[1],a[3])]}}function zi(a){return a}function Ai(a,b,c){this.center=a;this.resolution=b;this.rotation=c}function Bi(a){return function(b,c,d){if(void 0!==b)return b=Ne(a,b,
d),b=rd(b+c,0,a.length-1),c=Math.floor(b),b!=c&&c<a.length-1?a[c]/Math.pow(a[c]/a[c+1],b-c):a[c]}}function Ci(a,b,c){return function(d,e,f){if(void 0!==d)return d=Math.max(Math.floor(Math.log(b/d)/Math.log(a)+(-f/2+.5))+e,0),void 0!==c&&(d=Math.min(d,c)),b/Math.pow(a,d)}}function Di(a){if(void 0!==a)return 0}function Ei(a,b){if(void 0!==a)return a+b}function Fi(a){var b=2*Math.PI/a;return function(a,d){if(void 0!==a)return a=Math.floor((a+d)/b+.5)*b}}function Gi(){var a=xd(5);return function(b,c){if(void 0!==
b)return Math.abs(b+c)<=a?0:b+c}}var Hi,Ii,Ji;function Ki(a,b){a[0]+=b[0];a[1]+=b[1];return a}function Li(a,b){var c=a[0];a=a[1];var d=b[0],e=b[1];b=d[0];var d=d[1],f=e[0],e=e[1],g=f-b,k=e-d,c=0===g&&0===k?0:(g*(c-b)+k*(a-d))/(g*g+k*k||0);0>=c?(a=b,c=d):1<=c?(a=f,c=e):(a=b+c*g,c=d+c*k);return[a,c]}function Ih(a){return function(b){return Mi(b,a)}}function Ni(a,b,c){a=yd(a+180,360)-180;var d=Math.abs(3600*a);c=c||0;var e=Math.pow(10,c),f=Math.floor(d/3600),g=Math.floor((d-3600*f)/60),d=Math.ceil((d-
3600*f-60*g)*e)/e;60<=d&&(d=0,g+=1);60<=g&&(g=0,f+=1);return f+"\u00b0 "+fh(g)+"\u2032 "+fh(d,c)+"\u2033 "+b.charAt(0>a?1:0)}function Oi(a,b,c){return a?b.replace("{x}",a[0].toFixed(c)).replace("{y}",a[1].toFixed(c)):""}function Pi(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c}function Qi(a,b){var c=Math.cos(b);b=Math.sin(b);var d=a[1]*c+a[0]*b;a[0]=a[0]*c-a[1]*b;a[1]=d;return a}function Ri(a,b){a[0]*=b;a[1]*=b}function Si(a,b){var c=a[0]-b[0];a=a[1]-b[1];return c*c+a*
a}function Ti(a,b){return Math.sqrt(Si(a,b))}function Ui(a,b){return Si(a,Li(a,b))}function Mi(a,b){return Oi(a,"{x}, {y}",b)}var Vi={easeIn:function(a){return Math.pow(a,3)},easeOut:function(a){return 1-Vi.easeIn(1-a)},inAndOut:function(a){return 3*a*a-2*a*a*a},linear:function(a){return a},upAndDown:function(a){return.5>a?Vi.inAndOut(2*a):1-Vi.inAndOut(2*(a-.5))}};function Wi(a){Ge.call(this);a=a||{};this.ij=[0,0];this.fe=[];this.sn=this.sn.bind(this);var b={};b.center=void 0!==a.center?a.center:
null;this.Ga=Zf(a.projection);var c,d,e,f=void 0!==a.minZoom?a.minZoom:0;c=void 0!==a.maxZoom?a.maxZoom:28;var g=void 0!==a.zoomFactor?a.zoomFactor:2;if(void 0!==a.resolutions)c=a.resolutions,d=c[0],e=c[c.length-1],c=Bi(c);else{d=Zf(a.projection);e=d.getExtent();var k=(e?Math.max(vf(e),wf(e)):360*Hf.degrees/d.getMetersPerUnit())/256/Math.pow(2,0),l=k/Math.pow(2,28);d=a.maxResolution;void 0!==d?f=0:d=k/Math.pow(g,f);e=a.minResolution;void 0===e&&(e=void 0!==a.maxZoom?void 0!==a.maxResolution?d/Math.pow(g,
c):k/Math.pow(g,c):l);c=f+Math.floor(Math.log(d/e)/Math.log(g));e=d/Math.pow(g,c-f);c=Ci(g,d,c-f)}this.Ld=d;this.Aj=e;this.$E=g;this.P=a.resolutions;this.Dj=f;(void 0!==a.enableRotation?a.enableRotation:1)?(f=a.constrainRotation,f=void 0===f||!0===f?Gi():!1===f?Ei:"number"===typeof f?Fi(f):Ei):f=Di;this.Vk=new Ai(void 0!==a.extent?yi(a.extent):zi,c,f);void 0!==a.resolution?b.resolution=a.resolution:void 0!==a.zoom&&(b.resolution=this.constrainResolution(this.Ld,a.zoom-this.Dj));b.rotation=void 0!==
a.rotation?a.rotation:0;this.setProperties(b)}A(Wi,Ge);h=Wi.prototype;h.animate=function(a){var b=Date.now(),c=this.getCenter().slice(),d=this.getResolution(),e=this.getRotation(),f=arguments.length,g;1<f&&"function"===typeof arguments[f-1]&&(g=arguments[f-1],--f);for(var k=[],l=0;l<f;++l){var m=arguments[l],n={start:b,complete:!1,anchor:m.anchor,duration:void 0!==m.duration?m.duration:1E3,easing:m.easing||Vi.inAndOut};m.center&&(n.Eq=c,n.Kq=m.center,c=n.Kq);void 0!==m.zoom?(n.Rm=d,n.Wm=this.constrainResolution(this.Ld,
m.zoom-this.Dj,0),d=n.Wm):m.resolution&&(n.Rm=d,n.Wm=m.resolution,d=n.Wm);void 0!==m.rotation&&(n.Gq=e,n.iw=m.rotation,e=n.iw);n.Sg=g;b+=n.duration;k.push(n)}this.fe.push(k);Xi(this,0,1);this.sn()};function Yi(a){Xi(a,0,-Zi(a)[0]);for(var b=0,c=a.fe.length;b<c;++b){var d=a.fe[b];d[0].Sg&&d[0].Sg(!1)}a.fe.length=0}h.sn=function(){void 0!==this.rn&&(cancelAnimationFrame(this.rn),this.rn=void 0);if(0<Zi(this)[0]){for(var a=Date.now(),b=!1,c=this.fe.length-1;0<=c;--c){for(var d=this.fe[c],e=!0,f=0,g=
d.length;f<g;++f){var k=d[f];if(!k.complete){b=a-k.start;b=0<k.duration?b/k.duration:1;1<=b?(k.complete=!0,b=1):e=!1;b=k.easing(b);if(k.Eq){var l=k.Eq[0],m=k.Eq[1];this.set("center",[l+b*(k.Kq[0]-l),m+b*(k.Kq[1]-m)])}k.Rm&&(l=k.Rm+b*(k.Wm-k.Rm),k.anchor&&this.set("center",$i(this,l,k.anchor)),this.set("resolution",l));void 0!==k.Gq&&(b=k.Gq+b*(k.iw-k.Gq),k.anchor&&this.set("center",aj(this,b,k.anchor)),this.set("rotation",b));b=!0;if(!k.complete)break}}e&&(this.fe[c]=null,Xi(this,0,-1),(d=d[0].Sg)&&
d(!0))}this.fe=this.fe.filter(Boolean);b&&void 0===this.rn&&(this.rn=requestAnimationFrame(this.sn))}};function aj(a,b,c){var d,e=a.getCenter();void 0!==e&&(d=[e[0]-c[0],e[1]-c[1]],Qi(d,b-a.getRotation()),Ki(d,c));return d}function $i(a,b,c){var d,e=a.getCenter();a=a.getResolution();void 0!==e&&void 0!==a&&(d=[c[0]-b*(c[0]-e[0])/a,c[1]-b*(c[1]-e[1])/a]);return d}function bj(a){var b=[100,100];a='.ol-viewport[data-view\x3d"'+D(a)+'"]';if(a=document.querySelector(a))a=getComputedStyle(a),b[0]=parseInt(a.width,
10),b[1]=parseInt(a.height,10);return b}h.constrainCenter=function(a){return this.Vk.center(a)};h.constrainResolution=function(a,b,c){return this.Vk.resolution(a,b||0,c||0)};h.constrainRotation=function(a,b){return this.Vk.rotation(a,b||0)};h.getCenter=function(){return this.get("center")};function Zi(a,b){return void 0!==b?(b[0]=a.ij[0],b[1]=a.ij[1],b):a.ij.slice()}h.calculateExtent=function(a){a=a||bj(this);var b=this.getCenter();qd(b,1);var c=this.getResolution();qd(void 0!==c,2);var d=this.getRotation();
qd(void 0!==d,3);return yf(b,c,d,a)};h.getMaxResolution=function(){return this.Ld};h.getMinResolution=function(){return this.Aj};h.getProjection=function(){return this.Ga};h.getResolution=function(){return this.get("resolution")};h.getResolutions=function(){return this.P};function cj(a,b){return Math.max(vf(a)/b[0],wf(a)/b[1])}function dj(a){var b=a.Ld,c=Math.log(b/a.Aj)/Math.log(2);return function(a){return b/Math.pow(2,a*c)}}h.getRotation=function(){return this.get("rotation")};function ej(a){var b=
a.Ld,c=Math.log(b/a.Aj)/Math.log(2);return function(a){return Math.log(b/a)/Math.log(2)/c}}h.getState=function(){var a=this.getCenter(),b=this.getProjection(),c=this.getResolution(),d=this.getRotation();return{center:a.slice(),projection:void 0!==b?b:null,resolution:c,rotation:d}};h.getZoom=function(){var a,b=this.getResolution();if(void 0!==b&&b>=this.Aj&&b<=this.Ld){a=this.Dj||0;var c,d;if(this.P){d=Ne(this.P,b,1);a+=d;if(d==this.P.length-1)return a;c=this.P[d];d=c/this.P[d+1]}else c=this.Ld,d=
this.$E;a+=Math.log(c/b)/Math.log(d)}return a};h.fit=function(a,b){b=b||{};var c=b.size;c||(c=bj(this));var d;a instanceof Og?"Circle"===a.getType()?(a=a.getExtent(),d=Zg(a),d.rotate(this.getRotation(),xf(a))):d=a:(qd(Array.isArray(a),24),qd(!uf(a),25),d=Zg(a));var e=void 0!==b.padding?b.padding:[0,0,0,0],f=void 0!==b.constrainResolution?b.constrainResolution:!0,g=void 0!==b.nearest?b.nearest:!1,k;k=void 0!==b.minResolution?b.minResolution:void 0!==b.maxZoom?this.constrainResolution(this.Ld,b.maxZoom-
this.Dj,0):0;var l=d.M(),m=this.getRotation();a=Math.cos(-m);var m=Math.sin(-m),n=Infinity,q=Infinity,r=-Infinity,t=-Infinity;d=d.aa();for(var u=0,y=l.length;u<y;u+=d)var z=l[u]*a-l[u+1]*m,B=l[u]*m+l[u+1]*a,n=Math.min(n,z),q=Math.min(q,B),r=Math.max(r,z),t=Math.max(t,B);c=cj([n,q,r,t],[c[0]-e[1]-e[3],c[1]-e[0]-e[2]]);c=isNaN(c)?k:Math.max(c,k);f&&(f=this.constrainResolution(c,0,0),!g&&f<c&&(f=this.constrainResolution(f,-1,0)),c=f);m=-m;g=(n+r)/2+(e[1]-e[3])/2*c;e=(q+t)/2+(e[0]-e[2])/2*c;a=[g*a-e*
m,e*a+g*m];void 0!==b.duration?this.animate({resolution:c,center:a,duration:b.duration,easing:b.easing}):(this.setResolution(c),this.setCenter(a))};h.centerOn=function(a,b,c){var d=this.getRotation(),e=Math.cos(-d),d=Math.sin(-d),f=a[0]*e-a[1]*d;a=a[1]*e+a[0]*d;var g=this.getResolution(),f=f+(b[0]/2-c[0])*g;a+=(c[1]-b[1]/2)*g;d=-d;this.setCenter([f*e-a*d,a*e+f*d])};function fj(a){return!!a.getCenter()&&void 0!==a.getResolution()}h.rotate=function(a,b){void 0!==b&&(b=aj(this,a,b),this.setCenter(b));
this.setRotation(a)};h.setCenter=function(a){this.set("center",a);0<Zi(this)[0]&&Yi(this)};function Xi(a,b,c){a.ij[b]+=c;a.changed()}h.setResolution=function(a){this.set("resolution",a);0<Zi(this)[0]&&Yi(this)};h.setRotation=function(a){this.set("rotation",a);0<Zi(this)[0]&&Yi(this)};h.setZoom=function(a){a=this.constrainResolution(this.Ld,a-this.Dj,0);this.setResolution(a)};function gj(a){a=a?a:{};this.qn=document.createElement("UL");this.vj=document.createElement("LI");this.qn.appendChild(this.vj);
this.vj.style.display="none";this.xa=void 0!==a.collapsed?a.collapsed:!0;this.qb=void 0!==a.collapsible?a.collapsible:!0;this.qb||(this.xa=!1);var b=void 0!==a.className?a.className:"ol-attribution",c=void 0!==a.tipLabel?a.tipLabel:"Attributions",d=void 0!==a.collapseLabel?a.collapseLabel:"\u00bb";"string"===typeof d?(this.ic=document.createElement("span"),this.ic.textContent=d):this.ic=d;d=void 0!==a.label?a.label:"i";"string"===typeof d?(this.ua=document.createElement("span"),this.ua.textContent=
d):this.ua=d;var e=this.qb&&!this.xa?this.ic:this.ua,d=document.createElement("button");d.setAttribute("type","button");d.title=c;d.appendChild(e);G(d,Ce.CLICK,this.Gc,this);c=document.createElement("div");c.className=b+" ol-unselectable ol-control"+(this.xa&&this.qb?" ol-collapsed":"")+(this.qb?"":" ol-uncollapsible");c.appendChild(this.qn);c.appendChild(d);Ke.call(this,{element:c,render:a.render?a.render:hj,target:a.target});this.hb=!0;this.Of={};this.Je={};this.CB={}}A(gj,Ke);function hj(a){this.oi(a.frameState)}
h=gj.prototype;h.oi=function(a){if(a){var b,c,d,e,f,g,k,l,m,n,q,r=a.gd,t=le({},a.attributions),u={},y={},z=a.viewState.projection;c=0;for(b=r.length;c<b;c++)if(g=r[c].layer.getSource())if(n=D(g).toString(),m=g.getAttributions())for(d=0,e=m.length;d<e;d++)if(k=m[d],l=D(k).toString(),!(l in t)){if(f=a.pk[n]){var B=g.ad(z);a:{q=void 0;var C,ia,Aa=k,Ea=B,Pb=z;if(Aa.bn){for(q in f)if(q in Aa.bn){var B=f[q],J;ia=0;for(C=Aa.bn[q].length;ia<C;++ia){J=Aa.bn[q][ia];if(J.intersects(B)){q=!0;break a}var Hb=ij(Ea,
jj(Pb),parseInt(q,10)),jc=Hb.getWidth();if(B.K<Hb.K||B.H>Hb.H)if(J.intersects(new kj(yd(B.K,jc),yd(B.H,jc),B.N,B.S))||B.getWidth()>jc&&J.intersects(Hb)){q=!0;break a}}}q=!1}else q=!0}}else q=!1;q?(l in u&&delete u[l],q=k.getHTML(),q in y||(y[q]=!0,t[l]=k)):u[l]=k}b=[t,u];c=b[0];b=b[1];for(var ka in this.Of)ka in c?(this.Je[ka]||(this.Of[ka].style.display="",this.Je[ka]=!0),delete c[ka]):ka in b?(this.Je[ka]&&(this.Of[ka].style.display="none",delete this.Je[ka]),delete b[ka]):(Jd(this.Of[ka]),delete this.Of[ka],
delete this.Je[ka]);for(ka in c)d=document.createElement("LI"),d.innerHTML=c[ka].getHTML(),this.qn.appendChild(d),this.Of[ka]=d,this.Je[ka]=!0;for(ka in b)d=document.createElement("LI"),d.innerHTML=b[ka].getHTML(),d.style.display="none",this.qn.appendChild(d),this.Of[ka]=d;ka=!oe(this.Je)||!oe(a.wg);this.hb!=ka&&(this.element.style.display=ka?"":"none",this.hb=ka);ka&&oe(this.Je)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only");var db;a=a.wg;ka=this.CB;for(db in ka)db in
a||(Jd(ka[db]),delete ka[db]);for(var Qb in a)b=a[Qb],b instanceof HTMLElement&&(this.vj.appendChild(b),ka[Qb]=b),Qb in ka||(db=new Image,db.src=Qb,""===b?c=db:(c=document.createElement("a"),c.href=b,c.appendChild(db)),this.vj.appendChild(c),ka[Qb]=c);this.vj.style.display=oe(a)?"none":""}else this.hb&&(this.element.style.display="none",this.hb=!1)};h.Gc=function(a){a.preventDefault();this.ef()};h.ef=function(){this.element.classList.toggle("ol-collapsed");this.xa?Id(this.ic,this.ua):Id(this.ua,this.ic);
this.xa=!this.xa};h.getCollapsible=function(){return this.qb};h.setCollapsible=function(a){this.qb!==a&&(this.qb=a,this.element.classList.toggle("ol-uncollapsible"),!a&&this.xa&&this.ef())};h.setCollapsed=function(a){this.qb&&this.xa!==a&&this.ef()};h.getCollapsed=function(){return this.xa};function lj(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-rotate",c=void 0!==a.label?a.label:"\u21e7";this.ua=null;"string"===typeof c?(this.ua=document.createElement("span"),this.ua.className="ol-compass",
this.ua.textContent=c):(this.ua=c,this.ua.classList.add("ol-compass"));var d=a.tipLabel?a.tipLabel:"Reset rotation",c=document.createElement("button");c.className=b+"-reset";c.setAttribute("type","button");c.title=d;c.appendChild(this.ua);G(c,Ce.CLICK,lj.prototype.Gc,this);d=document.createElement("div");d.className=b+" ol-unselectable ol-control";d.appendChild(c);b=a.render?a.render:mj;this.ks=a.resetNorth?a.resetNorth:void 0;Ke.call(this,{element:d,render:b,target:a.target});this.ra=void 0!==a.duration?
a.duration:250;this.cs=void 0!==a.autoHide?a.autoHide:!0;this.na=void 0;this.cs&&this.element.classList.add("ol-hidden")}A(lj,Ke);lj.prototype.Gc=function(a){a.preventDefault();if(void 0!==this.ks)this.ks();else if(a=this.getMap().getView()){var b=a.getRotation();void 0!==b&&(0<this.ra?(b%=2*Math.PI,a.animate({rotation:0,duration:this.ra,easing:Vi.easeOut})):a.setRotation(0))}};function mj(a){if(a=a.frameState){a=a.viewState.rotation;if(a!=this.na){var b="rotate("+a+"rad)";if(this.cs){var c=this.element.classList.contains("ol-hidden");
c||0!==a?c&&0!==a&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")}this.ua.style.msTransform=b;this.ua.style.webkitTransform=b;this.ua.style.transform=b}this.na=a}}function nj(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-zoom",c=void 0!==a.delta?a.delta:1,d=void 0!==a.zoomInLabel?a.zoomInLabel:"+",e=void 0!==a.zoomOutLabel?a.zoomOutLabel:"\u2212",f=void 0!==a.zoomInTipLabel?a.zoomInTipLabel:"Zoom in",g=void 0!==a.zoomOutTipLabel?a.zoomOutTipLabel:"Zoom out",
k=document.createElement("button");k.className=b+"-in";k.setAttribute("type","button");k.title=f;k.appendChild("string"===typeof d?document.createTextNode(d):d);G(k,Ce.CLICK,nj.prototype.Gc.bind(this,c));d=document.createElement("button");d.className=b+"-out";d.setAttribute("type","button");d.title=g;d.appendChild("string"===typeof e?document.createTextNode(e):e);G(d,Ce.CLICK,nj.prototype.Gc.bind(this,-c));c=document.createElement("div");c.className=b+" ol-unselectable ol-control";c.appendChild(k);
c.appendChild(d);Ke.call(this,{element:c,target:a.target});this.ra=void 0!==a.duration?a.duration:250}A(nj,Ke);nj.prototype.Gc=function(a,b){b.preventDefault();if(b=this.getMap().getView()){var c=b.getResolution();c&&(a=b.constrainResolution(c,a),0<this.ra?(0<Zi(b)[0]&&Yi(b),b.animate({resolution:a,duration:this.ra,easing:Vi.easeOut})):b.setResolution(a))}};function oj(a){a=a?a:{};var b=new Jh;(void 0!==a.zoom?a.zoom:1)&&b.push(new nj(a.zoomOptions));(void 0!==a.rotate?a.rotate:1)&&b.push(new lj(a.rotateOptions));
(void 0!==a.attribution?a.attribution:1)&&b.push(new gj(a.attributionOptions));return b}function pj(a,b,c){this.ez=a;this.Du=b;this.jz=c;this.ja=[];this.Jl=this.Rc=0}pj.prototype.Tc=function(){this.Jl=this.Rc=this.ja.length=0};pj.prototype.update=function(a,b){this.ja.push(a,b,Date.now())};pj.prototype.end=function(){if(6>this.ja.length)return!1;var a=Date.now()-this.jz,b=this.ja.length-3;if(this.ja[b+2]<a)return!1;for(var c=b-3;0<c&&this.ja[c+2]>a;)c-=3;var a=this.ja[b+2]-this.ja[c+2],d=this.ja[b]-
this.ja[c],b=this.ja[b+1]-this.ja[c+1];this.Rc=Math.atan2(b,d);this.Jl=Math.sqrt(d*d+b*b)/a;return this.Jl>this.Du};pj.prototype.getAngle=function(){return this.Rc};function qj(a){Ge.call(this);this.map_=null;this.setActive(!0);this.handleEvent=a.handleEvent}A(qj,Ge);qj.prototype.getActive=function(){return this.get("active")};qj.prototype.getMap=function(){return this.map_};qj.prototype.setActive=function(a){this.set("active",a)};qj.prototype.setMap=function(a){this.map_=a};function rj(a,b,c,d){if(void 0!==
b){var e=a.getRotation(),f=a.getCenter();void 0!==e&&f&&0<d?a.animate({rotation:b,anchor:c,duration:d,easing:Vi.easeOut}):a.rotate(b,c)}}function sj(a,b,c,d){var e=a.getResolution();b=a.constrainResolution(e,b,0);if(c&&void 0!==b&&b!==e){var f=a.getCenter();c=$i(a,b,c);c=a.constrainCenter(c);c=[(b*f[0]-e*c[0])/(b-e),(b*f[1]-e*c[1])/(b-e)]}tj(a,b,c,d)}function tj(a,b,c,d){if(b){var e=a.getResolution(),f=a.getCenter();void 0!==e&&f&&b!==e&&d?a.animate({resolution:b,anchor:c,duration:d,easing:Vi.easeOut}):
(c&&(c=$i(a,b,c),a.setCenter(c)),a.setResolution(b))}}function uj(a){a=a?a:{};this.Cd=a.delta?a.delta:1;qj.call(this,{handleEvent:vj});this.ra=void 0!==a.duration?a.duration:250}A(uj,qj);function vj(a){var b=!1,c=a.originalEvent;if("dblclick"==a.type){var b=a.coordinate,c=c.shiftKey?-this.Cd:this.Cd,d=a.map.getView();sj(d,c,b,this.ra);a.preventDefault();b=!0}return!b}function wj(a){a=a.originalEvent;return a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}function xj(a){a=a.originalEvent;return 0==a.button&&
!(Qd&&Rd&&a.ctrlKey)}function yj(a){return"pointermove"==a.type}function zj(a){return"singleclick"==a.type}function Aj(a){a=a.originalEvent;return!a.altKey&&!(a.metaKey||a.ctrlKey)&&!a.shiftKey}function Bj(a){a=a.originalEvent;return!a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}function Cj(a){a=a.originalEvent.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a}function Dj(a){qd(a.Lj,56);return"mouse"==a.Lj.pointerType}function Ej(a){a=a.Lj;return a.isPrimary&&0===a.button}function Fj(a){a=
a?a:{};qj.call(this,{handleEvent:a.handleEvent?a.handleEvent:Gj});this.iA=a.handleDownEvent?a.handleDownEvent:Ef;this.jA=a.handleDragEvent?a.handleDragEvent:nd;this.DA=a.handleMoveEvent?a.handleMoveEvent:nd;this.QA=a.handleUpEvent?a.handleUpEvent:Ef;this.te=!1;this.ae={};this.ub=[]}A(Fj,qj);function Hj(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return[c/b,d/b]}function Ij(a){a=a.type;return"pointerdown"===a||"pointerdrag"===a||"pointerup"===a}Fj.prototype.Bw=function(a){if(Ij(a)){var b=
a.Lj;"pointerup"==a.type?delete this.ae[b.pointerId]:"pointerdown"==a.type?this.ae[b.pointerId]=b:b.pointerId in this.ae&&(this.ae[b.pointerId]=b);this.ub=ne(this.ae)}};function Gj(a){if(!(a instanceof Qh))return!0;var b=!1;this.Bw(a);this.te?"pointerdrag"==a.type?this.jA(a):"pointerup"==a.type&&(this.te=this.QA(a)&&0<this.ub.length):"pointerdown"==a.type?(this.te=a=this.iA(a),b=this.Ig(a)):"pointermove"==a.type&&this.DA(a);return!b}Fj.prototype.Ig=function(a){return a};function Jj(a){Fj.call(this,
{handleDownEvent:Kj,handleDragEvent:Lj,handleUpEvent:Mj});a=a?a:{};this.Ic=a.kinetic;this.wh=null;this.rb=a.condition?a.condition:Aj;this.Iu=!1}A(Jj,Fj);function Lj(a){var b=this.ub,c=Hj(b);if(b.length==this.rB){if(this.Ic&&this.Ic.update(c[0],c[1]),this.wh){var d=this.wh[0]-c[0],e=c[1]-this.wh[1];a=a.map.getView();var f=a.getState(),d=[d,e];Ri(d,f.resolution);Qi(d,f.rotation);Ki(d,f.center);d=a.constrainCenter(d);a.setCenter(d)}}else this.Ic&&this.Ic.Tc();this.wh=c;this.rB=b.length}function Mj(a){var b=
a.map;a=b.getView();if(0===this.ub.length){if(!this.Iu&&this.Ic&&this.Ic.end()){var c;c=this.Ic;c=(c.Du-c.Jl)/c.ez;var d=this.Ic.getAngle(),e=a.getCenter(),e=b.getPixelFromCoordinate(e),b=b.getCoordinateFromPixel([e[0]-c*Math.cos(d),e[1]-c*Math.sin(d)]);a.animate({center:a.constrainCenter(b),duration:500,easing:Vi.easeOut})}Xi(a,1,-1);return!1}this.Ic&&this.Ic.Tc();this.wh=null;return!0}function Kj(a){if(0<this.ub.length&&this.rb(a)){var b=a.map.getView();this.wh=null;this.te||Xi(b,1,1);Zi(b)[0]&&
b.setCenter(a.frameState.viewState.center);this.Ic&&this.Ic.Tc();this.Iu=1<this.ub.length;return!0}return!1}Jj.prototype.Ig=Ef;function Nj(a){a=a?a:{};Fj.call(this,{handleDownEvent:Oj,handleDragEvent:Pj,handleUpEvent:Qj});this.rb=a.condition?a.condition:wj;this.Vb=void 0;this.ra=void 0!==a.duration?a.duration:250}A(Nj,Fj);function Pj(a){if(Dj(a)){var b=a.map,c=b.getSize();a=a.pixel;c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(void 0!==this.Vb){a=c-this.Vb;var b=b.getView(),d=b.getRotation();rj(b,d-a)}this.Vb=
c}}function Qj(a){if(!Dj(a))return!0;a=a.map.getView();Xi(a,1,-1);var b=a.getRotation(),c=this.ra,b=a.constrainRotation(b,0);rj(a,b,void 0,c);return!1}function Oj(a){return Dj(a)&&xj(a)&&this.rb(a)?(Xi(a.map.getView(),1,1),this.Vb=void 0,!0):!1}Nj.prototype.Ig=Ef;function Rj(a){this.ag=null;this.element_=document.createElement("div");this.element_.style.position="absolute";this.element_.className="ol-box "+a;this.fl=this.Vd=this.map_=null}A(Rj,ye);Rj.prototype.T=function(){this.setMap(null)};Rj.prototype.Rh=
function(){var a=this.Vd,b=this.fl,c=this.element_.style;c.left=Math.min(a[0],b[0])+"px";c.top=Math.min(a[1],b[1])+"px";c.width=Math.abs(b[0]-a[0])+"px";c.height=Math.abs(b[1]-a[1])+"px"};Rj.prototype.setMap=function(a){if(this.map_){this.map_.Ij.removeChild(this.element_);var b=this.element_.style;b.left=b.top=b.width=b.height="inherit"}(this.map_=a)&&this.map_.Ij.appendChild(this.element_)};function Sj(a){var b=a.Vd,c=a.fl,b=[b,[b[0],c[1]],c,[c[0],b[1]]].map(a.map_.getCoordinateFromPixel,a.map_);
b[4]=b[0].slice();a.ag?a.ag.setCoordinates([b]):a.ag=new R([b])}Rj.prototype.getGeometry=function(){return this.ag};function Tj(a){Fj.call(this,{handleDownEvent:Uj,handleDragEvent:Vj,handleUpEvent:Wj});a=a?a:{};this.yi=new Rj(a.className||"ol-dragbox");this.Vd=null;this.rb=a.condition?a.condition:Df;this.Ky=a.boxEndCondition?a.boxEndCondition:Xj}A(Tj,Fj);function Xj(a,b,c){a=c[0]-b[0];b=c[1]-b[1];return 64<=a*a+b*b}function Vj(a){if(Dj(a)){var b=this.yi,c=a.pixel;b.Vd=this.Vd;b.fl=c;Sj(b);b.Rh();
this.dispatchEvent(new Yj(Zj,a.coordinate,a))}}Tj.prototype.getGeometry=function(){return this.yi.getGeometry()};Tj.prototype.Nu=nd;function Wj(a){if(!Dj(a))return!0;this.yi.setMap(null);this.Ky(a,this.Vd,a.pixel)&&(this.Nu(a),this.dispatchEvent(new Yj(ak,a.coordinate,a)));return!1}function Uj(a){if(Dj(a)&&xj(a)&&this.rb(a)){this.Vd=a.pixel;this.yi.setMap(a.map);var b=this.yi,c=this.Vd;b.Vd=this.Vd;b.fl=c;Sj(b);b.Rh();this.dispatchEvent(new Yj(bk,a.coordinate,a));return!0}return!1}var bk="boxstart",
Zj="boxdrag",ak="boxend";function Yj(a,b,c){ze.call(this,a);this.coordinate=b;this.mapBrowserEvent=c}A(Yj,ze);function ck(a){a=a?a:{};var b=a.condition?a.condition:Bj;this.ra=void 0!==a.duration?a.duration:200;this.nC=void 0!==a.out?a.out:!1;Tj.call(this,{condition:b,className:a.className||"ol-dragzoom"})}A(ck,Tj);ck.prototype.Nu=function(){var a=this.getMap(),b=a.getView(),c=a.getSize(),d=this.getGeometry().getExtent();if(this.nC){var e=b.calculateExtent(c),d=[a.getPixelFromCoordinate(of(d)),a.getPixelFromCoordinate(rf(d))],
a=gf(Infinity,Infinity,-Infinity,-Infinity,void 0),f,g;f=0;for(g=d.length;f<g;++f)Xe(a,d[f]);Bf(e,1/cj(a,c));d=e}c=b.constrainResolution(cj(d,c));e=xf(d);e=b.constrainCenter(e);b.animate({resolution:c,center:e,duration:this.ra,easing:Vi.easeOut})};function dk(a){qj.call(this,{handleEvent:ek});a=a||{};this.hz=function(a){return Aj(a)&&Cj(a)};this.rb=void 0!==a.condition?a.condition:this.hz;this.ra=void 0!==a.duration?a.duration:100;this.BC=void 0!==a.pixelDelta?a.pixelDelta:128}A(dk,qj);function ek(a){var b=
!1;if("keydown"==a.type){var c=a.originalEvent.keyCode;if(this.rb(a)&&(40==c||37==c||39==c||38==c)){var b=a.map.getView(),d=b.getResolution()*this.BC,e=0,f=0;40==c?f=-d:37==c?e=-d:39==c?e=d:f=d;d=[e,f];Qi(d,b.getRotation());c=this.ra;if(e=b.getCenter())d=b.constrainCenter([e[0]+d[0],e[1]+d[1]]),c?b.animate({duration:c,easing:Vi.linear,center:d}):b.setCenter(d);a.preventDefault();b=!0}}return!b}function fk(a){qj.call(this,{handleEvent:gk});a=a?a:{};this.rb=a.condition?a.condition:Cj;this.Cd=a.delta?
a.delta:1;this.ra=void 0!==a.duration?a.duration:100}A(fk,qj);function gk(a){var b=!1;if("keydown"==a.type||"keypress"==a.type){var c=a.originalEvent.charCode;!this.rb(a)||43!=c&&45!=c||(b=43==c?this.Cd:-this.Cd,c=a.map.getView(),sj(c,b,void 0,this.ra),a.preventDefault(),b=!0)}return!b}function hk(a){qj.call(this,{handleEvent:ik});a=a||{};this.Cd=0;this.ra=void 0!==a.duration?a.duration:250;this.sE=void 0!==a.timeout?a.timeout:80;this.Ew=void 0!==a.useAnchor?a.useAnchor:!0;this.kf=null;this.Ia=this.Tq=
this.ci=void 0;this.tw=400;this.mn=void 0;this.AE=300;this.uw=1.5}A(hk,qj);function ik(a){var b=a.type;if("wheel"!==b&&"mousewheel"!==b)return!0;a.preventDefault();var b=a.map,c=a.originalEvent;this.Ew&&(this.kf=a.coordinate);var d;"wheel"==a.type?(d=c.deltaY,Od&&c.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(d/=Sd),c.deltaMode===WheelEvent.DOM_DELTA_LINE&&(d*=40)):"mousewheel"==a.type&&(d=-c.wheelDeltaY,Pd&&(d/=3));if(0===d)return!1;a=Date.now();void 0===this.ci&&(this.ci=a);if(!this.Ia||a-this.ci>this.tw)this.Ia=
4>Math.abs(d)?jk:kk;if(this.Ia===jk){b=b.getView();this.mn?clearTimeout(this.mn):Xi(b,1,1);this.mn=setTimeout(this.fz.bind(this),this.tw);d=b.getResolution()*Math.pow(2,d/this.AE);var c=b.getMinResolution(),e=b.getMaxResolution(),f=0;d<c?(d=Math.max(d,c/this.uw),f=1):d>e&&(d=Math.min(d,e*this.uw),f=-1);if(this.kf){var g=$i(b,d,this.kf);b.setCenter(b.constrainCenter(g))}b.setResolution(d);0<f?b.animate({resolution:c,easing:Vi.easeOut,anchor:this.kf,duration:500}):0>f&&b.animate({resolution:e,easing:Vi.easeOut,
anchor:this.kf,duration:500});this.ci=a;return!1}this.Cd+=d;a=Math.max(this.sE-(a-this.ci),0);clearTimeout(this.Tq);this.Tq=setTimeout(this.SA.bind(this,b),a);return!1}hk.prototype.fz=function(){this.mn=void 0;Xi(this.getMap().getView(),1,-1)};hk.prototype.SA=function(a){a=a.getView();0<Zi(a)[0]&&Yi(a);sj(a,-rd(this.Cd,-1,1),this.kf,this.ra);this.Ia=void 0;this.Cd=0;this.kf=null;this.Tq=this.ci=void 0};hk.prototype.setMouseAnchor=function(a){this.Ew=a;a||(this.kf=null)};var jk="trackpad",kk="wheel";
function lk(a){Fj.call(this,{handleDownEvent:mk,handleDragEvent:nk,handleUpEvent:ok});a=a||{};this.lb=null;this.Vb=void 0;this.Yj=!1;this.Mm=0;this.pE=void 0!==a.threshold?a.threshold:.3;this.ra=void 0!==a.duration?a.duration:250}A(lk,Fj);function nk(a){var b=0,c=this.ub[0],d=this.ub[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);void 0!==this.Vb&&(b=c-this.Vb,this.Mm+=b,!this.Yj&&Math.abs(this.Mm)>this.pE&&(this.Yj=!0));this.Vb=c;a=a.map;c=a.getViewport().getBoundingClientRect();d=Hj(this.ub);
d[0]-=c.left;d[1]-=c.top;this.lb=a.getCoordinateFromPixel(d);this.Yj&&(c=a.getView(),d=c.getRotation(),a.render(),rj(c,d+b,this.lb))}function ok(a){if(2>this.ub.length){a=a.map.getView();Xi(a,1,-1);if(this.Yj){var b=a.getRotation(),c=this.lb,d=this.ra,b=a.constrainRotation(b,0);rj(a,b,c,d)}return!1}return!0}function mk(a){return 2<=this.ub.length?(a=a.map,this.lb=null,this.Vb=void 0,this.Yj=!1,this.Mm=0,this.te||Xi(a.getView(),1,1),!0):!1}lk.prototype.Ig=Ef;function pk(a){Fj.call(this,{handleDownEvent:qk,
handleDragEvent:rk,handleUpEvent:sk});a=a?a:{};this.Vy=a.constrainResolution||!1;this.lb=null;this.ra=void 0!==a.duration?a.duration:400;this.Ol=void 0;this.og=1}A(pk,Fj);function rk(a){var b=1,c=this.ub[0],d=this.ub[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);void 0!==this.Ol&&(b=this.Ol/e);this.Ol=e;a=a.map;var e=a.getView(),d=e.getResolution(),f=e.getMaxResolution(),g=e.getMinResolution(),c=d*b;c>f?(b=f/d,c=f):c<g&&(b=g/d,c=g);1!=b&&(this.og=b);b=a.getViewport().getBoundingClientRect();
d=Hj(this.ub);d[0]-=b.left;d[1]-=b.top;this.lb=a.getCoordinateFromPixel(d);a.render();tj(e,c,this.lb)}function sk(a){if(2>this.ub.length){a=a.map.getView();Xi(a,1,-1);var b=a.getResolution();if(this.Vy||b<a.getMinResolution()||b>a.getMaxResolution()){var c=this.lb,d=this.ra,b=a.constrainResolution(b,0,this.og-1);tj(a,b,c,d)}return!1}return!0}function qk(a){return 2<=this.ub.length?(a=a.map,this.lb=null,this.Ol=void 0,this.og=1,this.te||Xi(a.getView(),1,1),!0):!1}pk.prototype.Ig=Ef;function tk(a){a=
a?a:{};var b=new Jh,c=new pj(-.005,.05,100);(void 0!==a.altShiftDragRotate?a.altShiftDragRotate:1)&&b.push(new Nj);(void 0!==a.doubleClickZoom?a.doubleClickZoom:1)&&b.push(new uj({delta:a.zoomDelta,duration:a.zoomDuration}));(void 0!==a.dragPan?a.dragPan:1)&&b.push(new Jj({kinetic:c}));(void 0!==a.pinchRotate?a.pinchRotate:1)&&b.push(new lk);(void 0!==a.pinchZoom?a.pinchZoom:1)&&b.push(new pk({duration:a.zoomDuration}));if(void 0!==a.keyboard?a.keyboard:1)b.push(new dk),b.push(new fk({delta:a.zoomDelta,
duration:a.zoomDuration}));(void 0!==a.mouseWheelZoom?a.mouseWheelZoom:1)&&b.push(new hk({duration:a.zoomDuration}));(void 0!==a.shiftDragZoom?a.shiftDragZoom:1)&&b.push(new ck({duration:a.zoomDuration}));return b}function uk(a){Ge.call(this);var b=le({},a);b.opacity=void 0!==a.opacity?a.opacity:1;b.visible=void 0!==a.visible?a.visible:!0;b.zIndex=void 0!==a.zIndex?a.zIndex:0;b.maxResolution=void 0!==a.maxResolution?a.maxResolution:Infinity;b.minResolution=void 0!==a.minResolution?a.minResolution:
0;this.setProperties(b);this.g={layer:this,Yl:!0}}A(uk,Ge);function vk(a){a.g.opacity=rd(a.getOpacity(),0,1);a.g.bw=a.ep();a.g.visible=a.getVisible();a.g.extent=a.getExtent();a.g.zIndex=a.getZIndex();a.g.maxResolution=a.getMaxResolution();a.g.minResolution=Math.max(a.getMinResolution(),0);return a.g}uk.prototype.getExtent=function(){return this.get("extent")};uk.prototype.getMaxResolution=function(){return this.get("maxResolution")};uk.prototype.getMinResolution=function(){return this.get("minResolution")};
uk.prototype.getOpacity=function(){return this.get("opacity")};uk.prototype.getVisible=function(){return this.get("visible")};uk.prototype.getZIndex=function(){return this.get("zIndex")};uk.prototype.setExtent=function(a){this.set("extent",a)};uk.prototype.setMaxResolution=function(a){this.set("maxResolution",a)};uk.prototype.setMinResolution=function(a){this.set("minResolution",a)};uk.prototype.setOpacity=function(a){this.set("opacity",a)};uk.prototype.setVisible=function(a){this.set("visible",a)};
uk.prototype.setZIndex=function(a){this.set("zIndex",a)};function wk(a){var b=a||{};a=le({},b);delete a.layers;b=b.layers;uk.call(this,a);this.Bp=[];this.tg={};G(this,Ie(xk),this.xA,this);b?Array.isArray(b)?b=new Jh(b.slice()):qd(b instanceof Jh,43):b=new Jh;this.setLayers(b)}A(wk,uk);h=wk.prototype;h.Ci=function(){};h.xl=function(){this.getVisible()&&this.changed()};h.xA=function(){this.Bp.forEach(qe);this.Bp.length=0;var a=this.getLayers();this.Bp.push(G(a,"add",this.wA,this),G(a,"remove",this.yA,
this));for(var b in this.tg)this.tg[b].forEach(qe);me(this.tg);var a=a.getArray(),c,d;b=0;for(c=a.length;b<c;b++)d=a[b],this.tg[D(d).toString()]=[G(d,"propertychange",this.xl,this),G(d,Ce.CHANGE,this.xl,this)];this.changed()};h.wA=function(a){a=a.element;var b=D(a).toString();this.tg[b]=[G(a,"propertychange",this.xl,this),G(a,Ce.CHANGE,this.xl,this)];this.changed()};h.yA=function(a){a=D(a.element).toString();this.tg[a].forEach(qe);delete this.tg[a];this.changed()};h.getLayers=function(){return this.get(xk)};
h.setLayers=function(a){this.set(xk,a)};h.Wo=function(a){var b=void 0!==a?a:[],c=b.length;this.getLayers().forEach(function(a){a.Wo(b)});a=vk(this);var d,e;for(d=b.length;c<d;c++)e=b[c],e.opacity*=a.opacity,e.visible=e.visible&&a.visible,e.maxResolution=Math.min(e.maxResolution,a.maxResolution),e.minResolution=Math.max(e.minResolution,a.minResolution),void 0!==a.extent&&(e.extent=void 0!==e.extent?zf(e.extent,a.extent):a.extent);return b};h.ep=function(){return"ready"};var xk="layers";function yk(a){Jf.call(this,
{code:a,units:"m",extent:zk,global:!0,worldExtent:Ak,getPointResolution:function(a,c){return a/sd(c[1]/6378137)}})}A(yk,Jf);var Bk=6378137*Math.PI,zk=[-Bk,-Bk,Bk,Bk],Ak=[-180,-85,180,85],Uf="EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 urn:ogc:def:crs:EPSG::3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" ").map(function(a){return new yk(a)});function Vf(a,b,c){var d=a.length;c=1<c?c:2;void 0===b&&(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c){b[e]=Bk*
a[e]/180;var f=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));f>Bk?f=Bk:f<-Bk&&(f=-Bk);b[e+1]=f}return b}function Wf(a,b,c){var d=a.length;c=1<c?c:2;void 0===b&&(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=180*a[e]/Bk,b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b}function Ck(a,b){Jf.call(this,{code:a,units:"degrees",extent:Dk,axisOrientation:b,global:!0,metersPerUnit:Ek,worldExtent:Dk})}A(Ck,Jf);var Dk=[-180,-90,180,90],Ek=Math.PI*Bh.radius/180,Xf=[new Ck("CRS:84"),
new Ck("EPSG:4326","neu"),new Ck("urn:ogc:def:crs:EPSG::4326","neu"),new Ck("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Ck("urn:ogc:def:crs:OGC:1.3:CRS84"),new Ck("urn:ogc:def:crs:OGC:2:84"),new Ck("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Ck("urn:x-ogc:def:crs:EPSG:4326","neu")];function Fk(){Qf(Uf);Qf(Xf);Tf()}function Gk(a){var b=le({},a);delete b.source;uk.call(this,b);this.Qm=this.am=this.$l=null;a.map&&this.setMap(a.map);G(this,Ie("source"),this.MA,this);this.setSource(a.source?
a.source:null)}A(Gk,uk);function Hk(a,b){return a.visible&&b>=a.minResolution&&b<a.maxResolution}h=Gk.prototype;h.Wo=function(a){a=a?a:[];a.push(vk(this));return a};h.getSource=function(){return this.get("source")||null};h.ep=function(){var a=this.getSource();return a?a.getState():"undefined"};h.kp=function(){this.changed()};h.MA=function(){this.Qm&&(qe(this.Qm),this.Qm=null);var a=this.getSource();a&&(this.Qm=G(a,Ce.CHANGE,this.kp,this));this.changed()};h.setMap=function(a){this.$l&&(qe(this.$l),
this.$l=null);a||this.changed();this.am&&(qe(this.am),this.am=null);a&&(this.$l=G(a,"precompose",function(a){var b=vk(this);b.Yl=!1;b.zIndex=Infinity;a.frameState.gd.push(b);a.frameState.tj[D(this)]=b},this),this.am=G(this,Ce.CHANGE,a.render,a),this.changed())};h.setSource=function(a){this.set("source",a)};function Ik(){this.Pf={};this.Ok=0;this.JB=32}Ik.prototype.clear=function(){this.Pf={};this.Ok=0};Ik.prototype.get=function(a,b,c){a=b+":"+a+":"+(c?Ed(c):"null");return a in this.Pf?this.Pf[a]:
null};Ik.prototype.set=function(a,b,c,d){this.Pf[b+":"+a+":"+(c?Ed(c):"null")]=d;++this.Ok};var Jk=new Ik;var Kk=Array(6);function Lk(){return[1,0,0,1,0,0]}function Mk(a){return Nk(a,1,0,0,1,0,0)}function Ok(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],k=a[5],l=b[0],m=b[1],n=b[2],q=b[3],r=b[4];b=b[5];a[0]=c*l+e*m;a[1]=d*l+f*m;a[2]=c*n+e*q;a[3]=d*n+f*q;a[4]=c*r+e*b+g;a[5]=d*r+f*b+k;return a}function Nk(a,b,c,d,e,f,g){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;return a}function Pk(a,b){a[0]=b[0];a[1]=
b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];return a}function Qk(a,b){var c=b[0],d=b[1];b[0]=a[0]*c+a[2]*d+a[4];b[1]=a[1]*c+a[3]*d+a[5];return b}function Rk(a,b){var c=Math.cos(b);b=Math.sin(b);Ok(a,Nk(Kk,c,b,-b,c,0,0))}function Sk(a,b,c){return Ok(a,Nk(Kk,b,0,0,c,0,0))}function Tk(a,b,c){Ok(a,Nk(Kk,1,0,0,1,b,c))}function Uk(a,b,c,d,e,f,g,k){var l=Math.sin(f);f=Math.cos(f);a[0]=d*f;a[1]=e*l;a[2]=-d*l;a[3]=e*f;a[4]=g*d*f-k*d*l+b;a[5]=g*e*l+k*e*f+c;return a}function Vk(a){var b=a[0]*a[3]-a[1]*a[2];
qd(0!==b,32);var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],k=a[5];a[0]=f/b;a[1]=-d/b;a[2]=-e/b;a[3]=c/b;a[4]=(e*k-f*g)/b;a[5]=-(c*k-d*g)/b;return a}function Wk(a,b){this.map_=b;this.Jd={};this.Ap={}}A(Wk,ye);function Xk(a){var b=a.viewState,c=a.Pe,d=a.Ih;Uk(c,a.size[0]/2,a.size[1]/2,1/b.resolution,-1/b.resolution,-b.rotation,-b.center[0],-b.center[1]);Vk(Pk(d,c))}Wk.prototype.T=function(){for(var a in this.Jd)this.Jd[a].Ib()};function Yk(){if(Jk.Ok>Jk.JB){var a=0,b,c;for(b in Jk.Pf)c=Jk.Pf[b],0!==(a++&3)||
c.hasListener()||(delete Jk.Pf[b],--Jk.Ok)}}Wk.prototype.za=function(a,b,c,d,e,f,g){function k(a,c){var f=D(a).toString(),g=b.tj[D(c)].Yl;if(!(f in b.Jg)||g)return d.call(e,a,g?c:null)}var l,m=b.viewState,n=m.resolution,q=m.projection,m=a;if(q.he){var q=q.getExtent(),r=vf(q),t=a[0];if(t<q[0]||t>q[2])m=[t+r*Math.ceil((q[0]-t)/r),a[1]]}q=b.gd;for(r=q.length-1;0<=r;--r){var u=q[r],t=u.layer;if(Hk(u,n)&&f.call(g,t)&&(u=Zk(this,t),t.getSource()&&(l=u.za(t.getSource().yn?m:a,b,c,k,e)),l))return l}};Wk.prototype.ue=
function(a,b,c,d,e){return void 0!==this.za(a,b,c,Df,this,d,e)};function Zk(a,b){var c=D(b).toString();if(c in a.Jd)return a.Jd[c];b=b.Ci(a);a.Jd[c]=b;a.Ap[c]=G(b,Ce.CHANGE,a.vA,a);return b}Wk.prototype.getMap=function(){return this.map_};Wk.prototype.vA=function(){this.map_.render()};Wk.prototype.qq=nd;Wk.prototype.uD=function(a,b){for(var c in this.Jd)if(!(b&&c in b.tj)){a=c;var d=this.Jd[a];delete this.Jd[a];qe(this.Ap[a]);delete this.Ap[a];d.Ib()}};function $k(a,b){for(var c in a.Jd)if(!(c in
b.tj)){b.ld.push(a.uD.bind(a));break}}function Se(a,b){return a.zIndex-b.zIndex}function al(a,b,c,d,e){ze.call(this,a);this.vectorContext=b;this.frameState=c;this.context=d;this.glContext=e}A(al,ze);function bl(){}h=bl.prototype;h.drawGeometry=function(){};h.setStyle=function(){};h.drawCircle=function(){};h.drawFeature=function(){};h.bl=function(){};h.Wc=function(){};h.Ue=function(){};h.Ve=function(){};h.We=function(){};h.Xe=function(){};h.Ye=function(){};h.ke=function(){};h.Ua=function(){};h.Td=
function(){};h.pd=function(){};function cl(a,b,c,d,e){this.J=a;this.Ja=b;this.extent_=c;this.bb=d;this.Kw=e;this.f=this.pb=this.Tb=this.us=this.ts=this.ss=null;this.Jt=this.It=this.Hl=this.ig=this.tp=this.sp=0;this.Kt=!1;this.mj=this.Lt=0;this.Mt=!1;this.kg=0;this.oa="";this.fk=this.ek=0;this.gk=!1;this.Gf=this.hk=0;this.Ee=this.ec=this.dc=null;this.Pd=[];this.hn=Lk()}A(cl,bl);function dl(a,b,c){if(a.f){b=I.a.transform.ii(b,0,c,2,a.bb,a.Pd);c=a.J;var d=a.hn,e=c.globalAlpha;1!=a.Hl&&(c.globalAlpha=
e*a.Hl);var f=a.Lt;a.Kt&&(f+=a.Kw);var g,k;g=0;for(k=b.length;g<k;g+=2){var l=b[g]-a.sp,m=b[g+1]-a.tp;a.Mt&&(l=Math.round(l),m=Math.round(m));if(0!==f||1!=a.mj){var n=l+a.sp,q=m+a.tp;Uk(d,n,q,a.mj,a.mj,f,-n,-q);c.setTransform.apply(c,d)}c.drawImage(a.f,a.It,a.Jt,a.kg,a.ig,l,m,a.kg,a.ig)}0===f&&1==a.mj||c.setTransform(1,0,0,1,0,0);1!=a.Hl&&(c.globalAlpha=e)}}function el(a,b,c,d){var e=0;if(a.Ee&&""!==a.oa){a.dc&&fl(a,a.dc);a.ec&&gl(a,a.ec);var f=a.Ee,g=a.J,k=a.us;k?(k.font!=f.font&&(k.font=g.font=
f.font),k.textAlign!=f.textAlign&&(k.textAlign=g.textAlign=f.textAlign),k.textBaseline!=f.textBaseline&&(k.textBaseline=g.textBaseline=f.textBaseline)):(g.font=f.font,g.textAlign=f.textAlign,g.textBaseline=f.textBaseline,a.us={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline});b=I.a.transform.ii(b,e,c,d,a.bb,a.Pd);f=a.J;g=a.hk;for(a.gk&&(g+=a.Kw);e<c;e+=d){var k=b[e]+a.ek,l=b[e+1]+a.fk;if(0!==g||1!=a.Gf){var m=Uk(a.hn,k,l,a.Gf,a.Gf,g,-k,-l);f.setTransform.apply(f,m)}a.ec&&f.strokeText(a.oa,
k,l);a.dc&&f.fillText(a.oa,k,l)}0===g&&1==a.Gf||f.setTransform(1,0,0,1,0,0)}}function hl(a,b,c,d,e,f){var g=a.J;a=I.a.transform.ii(b,c,d,e,a.bb,a.Pd);g.moveTo(a[0],a[1]);b=a.length;f&&(b-=2);for(c=2;c<b;c+=2)g.lineTo(a[c],a[c+1]);f&&g.closePath();return d}function il(a,b,c,d,e){var f,g;f=0;for(g=d.length;f<g;++f)c=hl(a,b,c,d[f],e,!0);return c}h=cl.prototype;h.drawCircle=function(a){if(Af(this.extent_,a.getExtent())){if(this.Tb||this.pb){this.Tb&&fl(this,this.Tb);this.pb&&gl(this,this.pb);var b;b=
this.bb;var c=this.Pd,d=a.M();b=d?I.a.transform.ii(d,0,d.length,a.aa(),b,c):null;c=b[2]-b[0];d=b[3]-b[1];c=Math.sqrt(c*c+d*d);d=this.J;d.beginPath();d.arc(b[0],b[1],c,0,2*Math.PI);this.Tb&&d.fill();this.pb&&d.stroke()}""!==this.oa&&el(this,a.getCenter(),2,2)}};h.setStyle=function(a){this.Ua(a.getFill(),a.getStroke());this.Td(a.getImage());this.pd(a.getText())};h.drawGeometry=function(a){switch(a.getType()){case "Point":this.Xe(a);break;case "LineString":this.Wc(a);break;case "Polygon":this.Ye(a);
break;case "MultiPoint":this.Ve(a);break;case "MultiLineString":this.Ue(a);break;case "MultiPolygon":this.We(a);break;case "GeometryCollection":this.bl(a);break;case "Circle":this.drawCircle(a)}};h.drawFeature=function(a,b){(a=b.getGeometryFunction()(a))&&Af(this.extent_,a.getExtent())&&(this.setStyle(b),this.drawGeometry(a))};h.bl=function(a){a=a.ma;var b,c;b=0;for(c=a.length;b<c;++b)this.drawGeometry(a[b])};h.Xe=function(a){var b=a.M();a=a.aa();this.f&&dl(this,b,b.length);""!==this.oa&&el(this,
b,b.length,a)};h.Ve=function(a){var b=a.M();a=a.aa();this.f&&dl(this,b,b.length);""!==this.oa&&el(this,b,b.length,a)};h.Wc=function(a){if(Af(this.extent_,a.getExtent())){if(this.pb){gl(this,this.pb);var b=this.J,c=a.M();b.beginPath();hl(this,c,0,c.length,a.aa(),!1);b.stroke()}""!==this.oa&&(a=Sg(a),el(this,a,2,2))}};h.Ue=function(a){var b=a.getExtent();if(Af(this.extent_,b)){if(this.pb){gl(this,this.pb);var b=this.J,c=a.M(),d=0,e=a.G,f=a.aa();b.beginPath();var g,k;g=0;for(k=e.length;g<k;++g)d=hl(this,
c,d,e[g],f,!1);b.stroke()}""!==this.oa&&(a=Ug(a),el(this,a,a.length,2))}};h.Ye=function(a){if(Af(this.extent_,a.getExtent())){if(this.pb||this.Tb){this.Tb&&fl(this,this.Tb);this.pb&&gl(this,this.pb);var b=this.J;b.beginPath();il(this,a.nb(),0,a.G,a.aa());this.Tb&&b.fill();this.pb&&b.stroke()}""!==this.oa&&(a=Xg(a),el(this,a,2,2))}};h.We=function(a){if(Af(this.extent_,a.getExtent())){if(this.pb||this.Tb){this.Tb&&fl(this,this.Tb);this.pb&&gl(this,this.pb);var b=this.J,c=a.nb(),d=0,e=a.ya,f=a.aa(),
g,k;b.beginPath();g=0;for(k=e.length;g<k;++g)d=il(this,c,d,e[g],f);this.Tb&&b.fill();this.pb&&b.stroke()}""!==this.oa&&(a=bh(a),el(this,a,a.length,2))}};function fl(a,b){var c=a.J,d=a.ss;d?d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle):(c.fillStyle=b.fillStyle,a.ss={fillStyle:b.fillStyle})}function gl(a,b){var c=a.J,d=a.ts;d?(d.lineCap!=b.lineCap&&(d.lineCap=c.lineCap=b.lineCap),Td&&!Qe(d.lineDash,b.lineDash)&&c.setLineDash(d.lineDash=b.lineDash),d.lineJoin!=b.lineJoin&&(d.lineJoin=
c.lineJoin=b.lineJoin),d.lineWidth!=b.lineWidth&&(d.lineWidth=c.lineWidth=b.lineWidth),d.miterLimit!=b.miterLimit&&(d.miterLimit=c.miterLimit=b.miterLimit),d.strokeStyle!=b.strokeStyle&&(d.strokeStyle=c.strokeStyle=b.strokeStyle)):(c.lineCap=b.lineCap,Td&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.ts={lineCap:b.lineCap,lineDash:b.lineDash,lineJoin:b.lineJoin,lineWidth:b.lineWidth,miterLimit:b.miterLimit,strokeStyle:b.strokeStyle})}
h.Ua=function(a,b){a?(a=a.getColor(),this.Tb={fillStyle:Gd(a?a:de)}):this.Tb=null;if(b){a=b.getColor();var c=b.getLineCap(),d=b.getLineDash(),e=b.getLineDashOffset(),f=b.getLineJoin(),g=b.getWidth();b=b.getMiterLimit();this.pb={lineCap:void 0!==c?c:"round",lineDash:d?d:ee,lineDashOffset:e?e:0,lineJoin:void 0!==f?f:"round",lineWidth:this.Ja*(void 0!==g?g:1),miterLimit:void 0!==b?b:10,strokeStyle:Gd(a?a:fe)}}else this.pb=null};h.Td=function(a){if(a){var b=a.getAnchor(),c=a.getImage(1),d=a.getOrigin(),
e=a.getSize();this.sp=b[0];this.tp=b[1];this.ig=e[1];this.f=c;this.Hl=a.getOpacity();this.It=d[0];this.Jt=d[1];this.Kt=a.getRotateWithView();this.Lt=a.getRotation();this.mj=a.getScale();this.Mt=a.getSnapToPixel();this.kg=e[0]}else this.f=null};h.pd=function(a){if(a){var b=a.getFill();b?(b=b.getColor(),this.dc={fillStyle:Gd(b?b:de)}):this.dc=null;var c=a.getStroke();if(c){var b=c.getColor(),d=c.getLineCap(),e=c.getLineDash(),f=c.getLineDashOffset(),g=c.getLineJoin(),k=c.getWidth(),c=c.getMiterLimit();
this.ec={lineCap:void 0!==d?d:"round",lineDash:e?e:ee,lineDashOffset:f?f:0,lineJoin:void 0!==g?g:"round",lineWidth:void 0!==k?k:1,miterLimit:void 0!==c?c:10,strokeStyle:Gd(b?b:fe)}}else this.ec=null;var b=a.getFont(),d=a.getOffsetX(),e=a.getOffsetY(),f=a.getRotateWithView(),g=a.getRotation(),k=a.getScale(),c=a.getText(),l=a.getTextAlign();a=a.getTextBaseline();this.Ee={font:void 0!==b?b:"10px sans-serif",textAlign:void 0!==l?l:"center",textBaseline:void 0!==a?a:"middle"};this.oa=void 0!==c?c:"";this.ek=
void 0!==d?this.Ja*d:0;this.fk=void 0!==e?this.Ja*e:0;this.gk=void 0!==f?f:!1;this.hk=void 0!==g?g:0;this.Gf=this.Ja*(void 0!==k?k:1)}else this.oa=""};function jl(a,b){Wk.call(this,0,b);this.J=Hd();this.j=this.J.canvas;this.j.style.width="100%";this.j.style.height="100%";this.j.style.display="block";this.j.className="ol-unselectable";a.insertBefore(this.j,a.childNodes[0]||null);this.hb=!0;this.bb=Lk()}A(jl,Wk);h=jl.prototype;h.kc=function(a,b){var c=this.getMap(),d=this.J;if(c.hasListener(a)){var e=
b.extent,f=b.pixelRatio,g=b.viewState.rotation,k=this.getTransform(b);c.dispatchEvent(new al(a,new cl(d,f,e,k,g),b,d,null))}};h.getTransform=function(a){var b=a.viewState;a=a.pixelRatio/b.resolution;return Uk(this.bb,this.j.width/2,this.j.height/2,a,-a,-b.rotation,-b.center[0],-b.center[1])};h.getType=function(){return"canvas"};h.qq=function(a){if(a){var b=this.J,c=a.pixelRatio,d=Math.round(a.size[0]*c),e=Math.round(a.size[1]*c);this.j.width!=d||this.j.height!=e?(this.j.width=d,this.j.height=e):b.clearRect(0,
0,d,e);c=a.viewState.rotation;Xk(a);this.kc("precompose",a);var f=a.gd;Re(f);c&&(b.save(),ge(b,c,d/2,e/2));var d=a.viewState.resolution,g,k,l,e=0;for(g=f.length;e<g;++e)l=f[e],k=l.layer,k=Zk(this,k),Hk(l,d)&&"ready"==l.bw&&k.Rd(a,l)&&k.Xg(a,l,b);c&&b.restore();this.kc("postcompose",a);this.hb||(this.j.style.display="",this.hb=!0);$k(this,a);a.ld.push(Yk)}else this.hb&&(this.j.style.display="none",this.hb=!1)};h.forEachLayerAtPixel=function(a,b,c,d,e,f){var g,k=b.viewState.resolution,l=b.gd,m=l.length;
a=Qk(b.Ih,a.slice());for(--m;0<=m;--m){g=l[m];var n=g.layer;if(Hk(g,k)&&e.call(f,n)&&(g=Zk(this,n).Oo(a,b,c,d)))return g}};var kl=["Polygon","Circle","LineString","Image","Text"];function ll(){}function ml(a){this.O=a}ml.prototype.getSource=function(){return this.O};ml.prototype.isAnimated=Ef;function nl(a){this.O=a}A(nl,ml);nl.prototype.getType=function(){return 35632};function pl(a){this.O=a}A(pl,ml);pl.prototype.getType=function(){return 35633};function ql(){this.O="precision mediump float;\nvarying vec2 v_center;\nvarying vec2 v_offset;\nvarying float v_halfWidth;\nvarying float v_pixelRatio;\n\n\n\nuniform float u_opacity;\nuniform vec4 u_fillColor;\nuniform vec4 u_strokeColor;\nuniform vec2 u_size;\n\nvoid main(void) {\n  vec2 windowCenter \x3d vec2((v_center.x + 1.0) / 2.0 * u_size.x * v_pixelRatio,\n      (v_center.y + 1.0) / 2.0 * u_size.y * v_pixelRatio);\n  vec2 windowOffset \x3d vec2((v_offset.x + 1.0) / 2.0 * u_size.x * v_pixelRatio,\n      (v_offset.y + 1.0) / 2.0 * u_size.y * v_pixelRatio);\n  float radius \x3d length(windowCenter - windowOffset);\n  float dist \x3d length(windowCenter - gl_FragCoord.xy);\n  if (dist \x3e radius + v_halfWidth) {\n    if (u_strokeColor.a \x3d\x3d 0.0) {\n      gl_FragColor \x3d u_fillColor;\n    } else {\n      gl_FragColor \x3d u_strokeColor;\n    }\n    gl_FragColor.a \x3d gl_FragColor.a - (dist - (radius + v_halfWidth));\n  } else if (u_fillColor.a \x3d\x3d 0.0) {\n    // Hooray, no fill, just stroke. We can use real antialiasing.\n    gl_FragColor \x3d u_strokeColor;\n    if (dist \x3c radius - v_halfWidth) {\n      gl_FragColor.a \x3d gl_FragColor.a - (radius - v_halfWidth - dist);\n    }\n  } else {\n    gl_FragColor \x3d u_fillColor;\n    float strokeDist \x3d radius - v_halfWidth;\n    float antialias \x3d 2.0 * v_pixelRatio;\n    if (dist \x3e strokeDist) {\n      gl_FragColor \x3d u_strokeColor;\n    } else if (dist \x3e\x3d strokeDist - antialias) {\n      float step \x3d smoothstep(strokeDist - antialias, strokeDist, dist);\n      gl_FragColor \x3d mix(u_fillColor, u_strokeColor, step);\n    }\n  }\n  gl_FragColor.a \x3d gl_FragColor.a * u_opacity;\n  if (gl_FragColor.a \x3c\x3d 0.0) {\n    discard;\n  }\n}\n"}
A(ql,nl);var rl=new ql;function sl(){this.O="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 \x3d u_offsetScaleMatrix * u_offsetRotateMatrix;\n  v_center \x3d vec4(u_projectionMatrix * vec4(a_position, 0.0, 1.0)).xy;\n  v_pixelRatio \x3d u_pixelRatio;\n  float lineWidth \x3d u_lineWidth * u_pixelRatio;\n  v_halfWidth \x3d lineWidth / 2.0;\n  if (lineWidth \x3d\x3d 0.0) {\n    lineWidth \x3d 2.0 * u_pixelRatio;\n  }\n  vec2 offset;\n  // Radius with anitaliasing (roughly).\n  float radius \x3d a_radius + 3.0 * u_pixelRatio;\n  // Until we get gl_VertexID in WebGL, we store an instruction.\n  if (a_instruction \x3d\x3d 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 \x3d vec2(-1.0, 1.0);\n  } else if (a_instruction \x3d\x3d 1.0) {\n    offset \x3d vec2(-1.0, -1.0);\n  } else if (a_instruction \x3d\x3d 2.0) {\n    offset \x3d vec2(1.0, -1.0);\n  } else {\n    offset \x3d vec2(1.0, 1.0);\n  }\n\n  gl_Position \x3d u_projectionMatrix * vec4(a_position + offset * radius, 0.0, 1.0) +\n      offsetMatrix * vec4(offset * lineWidth, 0.0, 0.0);\n  v_offset \x3d 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) \x3e 20000.0) {\n    gl_Position \x3d vec4(v_center, 0.0, 1.0);\n  }\n}\n\n\n"}
A(sl,pl);var tl=new sl;function ul(a,b){this.DE=a.getUniformLocation(b,"u_fillColor");this.Zq=a.getUniformLocation(b,"u_lineWidth");this.nn=a.getUniformLocation(b,"u_offsetRotateMatrix");this.pn=a.getUniformLocation(b,"u_offsetScaleMatrix");this.ki=a.getUniformLocation(b,"u_opacity");this.$q=a.getUniformLocation(b,"u_pixelRatio");this.li=a.getUniformLocation(b,"u_projectionMatrix");this.ar=a.getUniformLocation(b,"u_size");this.FE=a.getUniformLocation(b,"u_strokeColor");this.Wn=a.getAttribLocation(b,
"a_instruction");this.Va=a.getAttribLocation(b,"a_position");this.ao=a.getAttribLocation(b,"a_radius")}function vl(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function wl(a,b){a[0]=b[0];a[1]=b[1];a[4]=b[2];a[5]=b[3];a[12]=b[4];a[13]=b[5];return a}function xl(a,b){this.rw=a;this.maxExtent=b;this.origin=xf(b);this.OC=Lk();this.bC=Lk();this.cC=Lk();this.gi=vl();this.c=[];this.we=null;this.D=[];this.Eb=[];this.o=[];this.Ie=null;this.Wb=void 0}A(xl,bl);xl.prototype.Ta=function(a,b,c,d,e,f,g,k,l,m,n){var q=
a.getGL(),r,t,u,y,z,B,C,ia;this.Wb&&(r=q.isEnabled(q.STENCIL_TEST),t=q.getParameter(q.STENCIL_FUNC),u=q.getParameter(q.STENCIL_VALUE_MASK),y=q.getParameter(q.STENCIL_REF),z=q.getParameter(q.STENCIL_WRITEMASK),B=q.getParameter(q.STENCIL_FAIL),C=q.getParameter(q.STENCIL_PASS_DEPTH_PASS),ia=q.getParameter(q.STENCIL_PASS_DEPTH_FAIL),q.enable(q.STENCIL_TEST),q.clear(q.STENCIL_BUFFER_BIT),q.stencilMask(255),q.stencilFunc(q.ALWAYS,1,255),q.stencilOp(q.KEEP,q.KEEP,q.REPLACE),this.Wb.Ta(a,b,c,d,e,f,g,k,l,
m,n),q.stencilMask(0),q.stencilFunc(q.NOTEQUAL,1,255));a.bindBuffer(34962,this.Ie);a.bindBuffer(34963,this.we);f=this.Nm(q,a,e,f);var Aa=Mk(this.OC);Sk(Aa,2/(c*e[0]),2/(c*e[1]));Rk(Aa,-d);Tk(Aa,-(b[0]-this.origin[0]),-(b[1]-this.origin[1]));b=Mk(this.cC);Sk(b,2/e[0],2/e[1]);e=Mk(this.bC);0!==d&&Rk(e,-d);q.uniformMatrix4fv(f.li,!1,wl(this.gi,Aa));q.uniformMatrix4fv(f.pn,!1,wl(this.gi,b));q.uniformMatrix4fv(f.nn,!1,wl(this.gi,e));q.uniform1f(f.ki,g);var Ea;void 0===l?this.Qi(q,a,k,!1):(m?a=this.cl(q,
a,k,l,n):(q.clear(q.COLOR_BUFFER_BIT|q.DEPTH_BUFFER_BIT),this.Qi(q,a,k,!0),a=(a=l(null))?a:void 0),Ea=a);this.Om(q,f);this.Wb&&(r||q.disable(q.STENCIL_TEST),q.clear(q.STENCIL_BUFFER_BIT),q.stencilFunc(t,y,u),q.stencilMask(z),q.stencilOp(B,ia,C));return Ea};xl.prototype.drawElements=function(a,b,c,d){a.drawElements(4,d-c,b.Al?5125:5123,c*(b.Al?4:2))};var yl=[0,0,0,1],zl=[],Al=[0,0,0,1];function Bl(a,b,c,d,e,f){a=(c-a)*(f-b)-(e-a)*(d-b);return a<=Cl&&a>=-Cl?void 0:0<a}var Cl=Number.EPSILON||2.220446049250313E-16;
function Dl(a,b){this.Ey=void 0!==a?a:[];this.QE=void 0!==b?b:El}Dl.prototype.getArray=function(){return this.Ey};var El=35044;function Fl(a,b){xl.call(this,a,b);this.qa=null;this.V=[];this.ha=[];this.B=0;this.g={fillColor:null,strokeColor:null,lineDash:null,lineDashOffset:void 0,lineWidth:void 0,changed:!1}}A(Fl,xl);h=Fl.prototype;h.Jb=function(a,b,c,d){for(var e=this.o.length,f=this.c.length,g=e/4;b<c;b+=d)this.o[e++]=a[b],this.o[e++]=a[b+1],this.o[e++]=0,this.o[e++]=this.B,this.o[e++]=a[b],this.o[e++]=
a[b+1],this.o[e++]=1,this.o[e++]=this.B,this.o[e++]=a[b],this.o[e++]=a[b+1],this.o[e++]=2,this.o[e++]=this.B,this.o[e++]=a[b],this.o[e++]=a[b+1],this.o[e++]=3,this.o[e++]=this.B,this.c[f++]=g,this.c[f++]=g+1,this.c[f++]=g+2,this.c[f++]=g+2,this.c[f++]=g+3,this.c[f++]=g,g+=4};h.drawCircle=function(a,b){var c=a.getRadius(),d=a.aa();c?(this.D.push(this.c.length),this.Eb.push(b),this.g.changed&&(this.ha.push(this.c.length),this.g.changed=!1),this.B=c,a=a.M(),a=I.a.transform.translate(a,0,2,d,-this.origin[0],
-this.origin[1]),this.Jb(a,0,2,d)):this.g.changed&&(this.V.pop(),this.V.length&&(d=this.V[this.V.length-1],this.g.fillColor=d[0],this.g.strokeColor=d[1],this.g.lineWidth=d[2],this.g.changed=!1))};h.finish=function(){this.Ie=new Dl(this.o);this.we=new Dl(this.c);this.D.push(this.c.length);0===this.ha.length&&0<this.V.length&&(this.V=[]);this.c=this.o=null};h.wb=function(a){var b=this.Ie,c=this.we;return function(){a.deleteBuffer(b);a.deleteBuffer(c)}};h.Nm=function(a,b,c,d){var e=Gl(b,rl,tl),f;this.qa?
f=this.qa:this.qa=f=new ul(a,e);b.useProgram(e);a.enableVertexAttribArray(f.Va);a.vertexAttribPointer(f.Va,2,5126,!1,16,0);a.enableVertexAttribArray(f.Wn);a.vertexAttribPointer(f.Wn,1,5126,!1,16,8);a.enableVertexAttribArray(f.ao);a.vertexAttribPointer(f.ao,1,5126,!1,16,12);a.uniform2fv(f.ar,c);a.uniform1f(f.$q,d);return f};h.Om=function(a,b){a.disableVertexAttribArray(b.Va);a.disableVertexAttribArray(b.Wn);a.disableVertexAttribArray(b.ao)};h.Qi=function(a,b,c){if(oe(c)){var d,e,f;e=this.D[this.D.length-
1];for(c=this.ha.length-1;0<=c;--c)d=this.ha[c],f=this.V[c],this.Hg(a,f[0]),this.Ud(a,f[1],f[2]),this.drawElements(a,b,d,e),e=d}else this.Xf(a,b,c)};h.cl=function(a,b,c,d,e){var f,g,k,l,m,n,q;q=this.D.length-2;k=this.D[q+1];for(f=this.ha.length-1;0<=f;--f)for(g=this.V[f],this.Hg(a,g[0]),this.Ud(a,g[1],g[2]),l=this.ha[f];0<=q&&this.D[q]>=l;){g=this.D[q];m=this.Eb[q];n=D(m).toString();if(void 0===c[n]&&m.getGeometry()&&(void 0===e||Af(e,m.getGeometry().getExtent()))&&(a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),
this.drawElements(a,b,g,k),k=d(m)))return k;q--;k=g}};h.Xf=function(a,b,c){var d,e,f,g,k,l,m;l=this.D.length-2;f=e=this.D[l+1];for(d=this.ha.length-1;0<=d;--d){g=this.V[d];this.Hg(a,g[0]);this.Ud(a,g[1],g[2]);for(g=this.ha[d];0<=l&&this.D[l]>=g;)m=this.D[l],k=this.Eb[l],k=D(k).toString(),c[k]&&(e!==f&&this.drawElements(a,b,e,f),f=m),l--,e=m;e!==f&&this.drawElements(a,b,e,f);e=f=g}};h.Hg=function(a,b){a.uniform4fv(this.qa.DE,b)};h.Ud=function(a,b,c){a.uniform4fv(this.qa.FE,b);a.uniform1f(this.qa.Zq,
c)};h.Ua=function(a,b){var c;b?(c=b.getLineDash(),this.g.lineDash=c?c:zl,c=b.getLineDashOffset(),this.g.lineDashOffset=c?c:0,c=b.getColor(),c=c instanceof CanvasGradient||c instanceof CanvasPattern?Al:Cd(c).map(function(a,b){return 3!=b?a/255:a})||Al,b=b.getWidth(),b=void 0!==b?b:1):(c=[0,0,0,0],b=0);a=a?a.getColor():[0,0,0,0];a=a instanceof CanvasGradient||a instanceof CanvasPattern?yl:Cd(a).map(function(a,b){return 3!=b?a/255:a})||yl;this.g.strokeColor&&Qe(this.g.strokeColor,c)&&this.g.fillColor&&
Qe(this.g.fillColor,a)&&this.g.lineWidth===b||(this.g.changed=!0,this.g.fillColor=a,this.g.strokeColor=c,this.g.lineWidth=b,this.V.push([a,c,b]))};function Hl(){this.O="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 \x3d texture2D(u_image, v_texCoord);\n  gl_FragColor.rgb \x3d texColor.rgb;\n  float alpha \x3d texColor.a * v_opacity * u_opacity;\n  if (alpha \x3d\x3d 0.0) {\n    discard;\n  }\n  gl_FragColor.a \x3d alpha;\n}\n"}
A(Hl,nl);var Il=new Hl;function Jl(){this.O="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 \x3d u_offsetScaleMatrix;\n  if (a_rotateWithView \x3d\x3d 1.0) {\n    offsetMatrix \x3d u_offsetScaleMatrix * u_offsetRotateMatrix;\n  }\n  vec4 offsets \x3d offsetMatrix * vec4(a_offsets, 0.0, 0.0);\n  gl_Position \x3d u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n  v_texCoord \x3d a_texCoord;\n  v_opacity \x3d a_opacity;\n}\n\n\n"}
A(Jl,pl);var Kl=new Jl;function Ll(a,b){this.nn=a.getUniformLocation(b,"u_offsetRotateMatrix");this.pn=a.getUniformLocation(b,"u_offsetScaleMatrix");this.ki=a.getUniformLocation(b,"u_opacity");this.li=a.getUniformLocation(b,"u_projectionMatrix");this.Zn=a.getAttribLocation(b,"a_offsets");this.$n=a.getAttribLocation(b,"a_opacity");this.Va=a.getAttribLocation(b,"a_position");this.bo=a.getAttribLocation(b,"a_rotateWithView");this.ee=a.getAttribLocation(b,"a_texCoord")}function Ml(a,b){this.j=a;this.oh=
b;this.Le={};this.Xh={};this.Nh={};this.pp=this.qp=this.jj=this.wo=null;(this.Al=Me(hd,"OES_element_index_uint"))&&b.getExtension("OES_element_index_uint");G(this.j,"webglcontextlost",this.fg,this);G(this.j,"webglcontextrestored",this.np,this)}A(Ml,ye);h=Ml.prototype;h.bindBuffer=function(a,b){var c=this.getGL(),d=b.getArray(),e=String(D(b));if(e in this.Le)c.bindBuffer(a,this.Le[e].buffer);else{var f=c.createBuffer();c.bindBuffer(a,f);var g;34962==a?g=new Float32Array(d):34963==a&&(g=this.Al?new Uint32Array(d):
new Uint16Array(d));c.bufferData(a,g,b.QE);this.Le[e]={wd:b,buffer:f}}};h.deleteBuffer=function(a){var b=this.getGL();a=String(D(a));var c=this.Le[a];b.isContextLost()||b.deleteBuffer(c.buffer);delete this.Le[a]};h.T=function(){xe(this.j);var a=this.getGL();if(!a.isContextLost()){for(var b in this.Le)a.deleteBuffer(this.Le[b].buffer);for(b in this.Nh)a.deleteProgram(this.Nh[b]);for(b in this.Xh)a.deleteShader(this.Xh[b]);a.deleteFramebuffer(this.jj);a.deleteRenderbuffer(this.pp);a.deleteTexture(this.qp)}};
h.getGL=function(){return this.oh};function Nl(a){if(!a.jj){var b=a.oh,c=b.createFramebuffer();b.bindFramebuffer(b.FRAMEBUFFER,c);var d=Ol(b,1,1),e=b.createRenderbuffer();b.bindRenderbuffer(b.RENDERBUFFER,e);b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,1,1);b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,d,0);b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,e);b.bindTexture(b.TEXTURE_2D,null);b.bindRenderbuffer(b.RENDERBUFFER,null);b.bindFramebuffer(b.FRAMEBUFFER,
null);a.jj=c;a.qp=d;a.pp=e}return a.jj}function Pl(a,b){var c=String(D(b));if(c in a.Xh)return a.Xh[c];var d=a.getGL(),e=d.createShader(b.getType());d.shaderSource(e,b.getSource());d.compileShader(e);return a.Xh[c]=e}function Gl(a,b,c){var d=D(b)+"/"+D(c);if(d in a.Nh)return a.Nh[d];var e=a.getGL(),f=e.createProgram();e.attachShader(f,Pl(a,b));e.attachShader(f,Pl(a,c));e.linkProgram(f);return a.Nh[d]=f}h.fg=function(){me(this.Le);me(this.Xh);me(this.Nh);this.pp=this.qp=this.jj=this.wo=null};h.np=
function(){};h.useProgram=function(a){if(a==this.wo)return!1;this.getGL().useProgram(a);this.wo=a;return!0};function Ql(a,b,c){var d=a.createTexture();a.bindTexture(a.TEXTURE_2D,d);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR);void 0!==b&&a.texParameteri(3553,10242,b);void 0!==c&&a.texParameteri(3553,10243,c);return d}function Ol(a,b,c){var d=Ql(a,void 0,void 0);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,b,c,0,a.RGBA,a.UNSIGNED_BYTE,
null);return d}function Rl(a,b){var c=Ql(a,33071,33071);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);return c}function Sl(a,b){xl.call(this,a,b);this.ud=this.td=void 0;this.hp=[];this.kj=[];this.Hd=void 0;this.lg=[];this.hg=[];this.kg=this.ig=void 0;this.qa=null;this.Cb=this.na=this.Bb=this.Nd=this.Md=this.opacity_=void 0;this.Pq=[];this.lj=[];this.Qb=void 0}A(Sl,xl);h=Sl.prototype;h.wb=function(a){var b=this.Ie,c=this.we,d=this.Pq,e=this.lj,f=a.getGL();return function(){if(!f.isContextLost()){var g,
k;g=0;for(k=d.length;g<k;++g)f.deleteTexture(d[g]);g=0;for(k=e.length;g<k;++g)f.deleteTexture(e[g])}a.deleteBuffer(b);a.deleteBuffer(c)}};h.Jb=function(a,b,c,d){for(var e=this.td,f=this.ud,g=this.Hd,k=this.ig,l=this.kg,m=this.opacity_,n=this.Md,q=this.Nd,r=this.Bb?1:0,t=-this.na,u=this.Cb,y=this.Qb,z=Math.cos(t),t=Math.sin(t),B=this.c.length,C=this.o.length,ia,Aa,Ea,Pb,J;b<c;b+=d)Pb=a[b]-this.origin[0],J=a[b+1]-this.origin[1],ia=C/8,Aa=-u*e,Ea=-u*(g-f),this.o[C++]=Pb,this.o[C++]=J,this.o[C++]=Aa*
z-Ea*t,this.o[C++]=Aa*t+Ea*z,this.o[C++]=n/l,this.o[C++]=(q+g)/k,this.o[C++]=m,this.o[C++]=r,Aa=u*(y-e),Ea=-u*(g-f),this.o[C++]=Pb,this.o[C++]=J,this.o[C++]=Aa*z-Ea*t,this.o[C++]=Aa*t+Ea*z,this.o[C++]=(n+y)/l,this.o[C++]=(q+g)/k,this.o[C++]=m,this.o[C++]=r,Aa=u*(y-e),Ea=u*f,this.o[C++]=Pb,this.o[C++]=J,this.o[C++]=Aa*z-Ea*t,this.o[C++]=Aa*t+Ea*z,this.o[C++]=(n+y)/l,this.o[C++]=q/k,this.o[C++]=m,this.o[C++]=r,Aa=-u*e,Ea=u*f,this.o[C++]=Pb,this.o[C++]=J,this.o[C++]=Aa*z-Ea*t,this.o[C++]=Aa*t+Ea*z,this.o[C++]=
n/l,this.o[C++]=q/k,this.o[C++]=m,this.o[C++]=r,this.c[B++]=ia,this.c[B++]=ia+1,this.c[B++]=ia+2,this.c[B++]=ia,this.c[B++]=ia+2,this.c[B++]=ia+3;return C};h.Ve=function(a,b){this.D.push(this.c.length);this.Eb.push(b);b=a.M();this.Jb(b,0,b.length,a.aa())};h.Xe=function(a,b){this.D.push(this.c.length);this.Eb.push(b);b=a.M();this.Jb(b,0,b.length,a.aa())};h.finish=function(a){a=a.getGL();this.hp.push(this.c.length);this.kj.push(this.c.length);this.Ie=new Dl(this.o);this.we=new Dl(this.c);var b={};Tl(this.Pq,
this.lg,b,a);Tl(this.lj,this.hg,b,a);this.Hd=this.ud=this.td=void 0;this.hg=this.lg=null;this.kg=this.ig=void 0;this.c=null;this.Cb=this.na=this.Bb=this.Nd=this.Md=this.opacity_=void 0;this.o=null;this.Qb=void 0};function Tl(a,b,c,d){var e,f,g,k=b.length;for(g=0;g<k;++g)e=b[g],f=D(e).toString(),f in c?e=c[f]:(e=Rl(d,e),c[f]=e),a[g]=e}h.Nm=function(a,b){var c=Gl(b,Il,Kl),d;this.qa?d=this.qa:this.qa=d=new Ll(a,c);b.useProgram(c);a.enableVertexAttribArray(d.Va);a.vertexAttribPointer(d.Va,2,5126,!1,32,
0);a.enableVertexAttribArray(d.Zn);a.vertexAttribPointer(d.Zn,2,5126,!1,32,8);a.enableVertexAttribArray(d.ee);a.vertexAttribPointer(d.ee,2,5126,!1,32,16);a.enableVertexAttribArray(d.$n);a.vertexAttribPointer(d.$n,1,5126,!1,32,24);a.enableVertexAttribArray(d.bo);a.vertexAttribPointer(d.bo,1,5126,!1,32,28);return d};h.Om=function(a,b){a.disableVertexAttribArray(b.Va);a.disableVertexAttribArray(b.Zn);a.disableVertexAttribArray(b.ee);a.disableVertexAttribArray(b.$n);a.disableVertexAttribArray(b.bo)};
h.Qi=function(a,b,c,d){var e=d?this.lj:this.Pq;d=d?this.kj:this.hp;if(oe(c)){var f,g;c=0;f=e.length;for(g=0;c<f;++c){a.bindTexture(3553,e[c]);var k=d[c];this.drawElements(a,b,g,k);g=k}}else this.Xf(a,b,c,e,d)};h.Xf=function(a,b,c,d,e){var f=0,g,k;g=0;for(k=d.length;g<k;++g){a.bindTexture(3553,d[g]);for(var l=0<g?e[g-1]:0,m=e[g],n=l;f<this.D.length&&this.D[f]<=m;){var q=D(this.Eb[f]).toString();void 0!==c[q]?(n!==l&&this.drawElements(a,b,n,l),l=n=f===this.D.length-1?m:this.D[f+1]):l=f===this.D.length-
1?m:this.D[f+1];f++}n!==l&&this.drawElements(a,b,n,l)}};h.cl=function(a,b,c,d,e){var f,g,k,l,m,n,q=this.D.length-1;for(f=this.lj.length-1;0<=f;--f)for(a.bindTexture(3553,this.lj[f]),g=0<f?this.kj[f-1]:0,l=this.kj[f];0<=q&&this.D[q]>=g;){k=this.D[q];m=this.Eb[q];n=D(m).toString();if(void 0===c[n]&&m.getGeometry()&&(void 0===e||Af(e,m.getGeometry().getExtent()))&&(a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),this.drawElements(a,b,k,l),l=d(m)))return l;l=k;q--}};h.Td=function(a){var b=a.getAnchor(),
c=a.getImage(1),d=a.getImageSize(),e=a.Yi(1),f=a.getOpacity(),g=a.getOrigin(),k=a.getRotateWithView(),l=a.getRotation(),m=a.getSize();a=a.getScale();var n;0===this.lg.length?this.lg.push(c):(n=this.lg[this.lg.length-1],D(n)!=D(c)&&(this.hp.push(this.c.length),this.lg.push(c)));0===this.hg.length?this.hg.push(e):(n=this.hg[this.hg.length-1],D(n)!=D(e)&&(this.kj.push(this.c.length),this.hg.push(e)));this.td=b[0];this.ud=b[1];this.Hd=m[1];this.ig=d[1];this.kg=d[0];this.opacity_=f;this.Md=g[0];this.Nd=
g[1];this.na=l;this.Bb=k;this.Cb=a;this.Qb=m[0]};I.a.ln={};I.a.ln.Ep=function(a,b,c,d){var e=c-d;return a[b]===a[e]&&a[b+1]===a[e+1]&&3<(c-b)/d?!!I.a.Sc.yh(a,b,c,d):!1};function Ul(){this.O="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 \x3e 0.0) {\n    vec2 windowCoords \x3d 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) \x3e v_halfWidth * u_pixelRatio) {\n      discard;\n    }\n  }\n  gl_FragColor \x3d u_color;\n  float alpha \x3d u_color.a * u_opacity;\n  if (alpha \x3d\x3d 0.0) {\n    discard;\n  }\n  gl_FragColor.a \x3d alpha;\n}\n"}
A(Ul,nl);var Vl=new Ul;function Wl(){this.O="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 \x3d 0.000000000001;\n  return value \x3e\x3d ref - epsilon \x26\x26 value \x3c\x3d ref + epsilon;\n}\n\nvoid alongNormal(out vec2 offset, in vec2 nextP, in float turnDir, in float direction) {\n  vec2 dirVect \x3d nextP - a_position;\n  vec2 normal \x3d normalize(vec2(-turnDir * dirVect.y, turnDir * dirVect.x));\n  offset \x3d 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 \x3d u_lineWidth / 2.0;\n  vec2 tangent \x3d normalize(normalize(a_nextPos - a_position) + normalize(a_position - a_lastPos));\n  vec2 normal \x3d vec2(-tangent.y, tangent.x);\n  vec2 dirVect \x3d a_nextPos - a_position;\n  vec2 tmpNormal \x3d normalize(vec2(-dirVect.y, dirVect.x));\n  float miterLength \x3d abs(halfWidth / dot(normal, tmpNormal));\n  offset \x3d normal * direction * miterLength;\n  round \x3d 0.0;\n  if (isRound) {\n    round \x3d 1.0;\n  } else if (miterLength \x3e u_miterLimit + u_lineWidth) {\n    offset \x3d halfWidth * tmpNormal * direction;\n  }\n}\n\nbool miterDown(out vec2 offset, in vec4 projPos, in mat4 offsetMatrix, in float direction) {\n  bool degenerate \x3d false;\n  vec2 tangent \x3d normalize(normalize(a_nextPos - a_position) + normalize(a_position - a_lastPos));\n  vec2 normal \x3d vec2(-tangent.y, tangent.x);\n  vec2 dirVect \x3d a_lastPos - a_position;\n  vec2 tmpNormal \x3d normalize(vec2(-dirVect.y, dirVect.x));\n  vec2 longOffset, shortOffset, longVertex;\n  vec4 shortProjVertex;\n  float halfWidth \x3d u_lineWidth / 2.0;\n  if (length(a_nextPos - a_position) \x3e length(a_lastPos - a_position)) {\n    longOffset \x3d tmpNormal * direction * halfWidth;\n    shortOffset \x3d normalize(vec2(dirVect.y, -dirVect.x)) * direction * halfWidth;\n    longVertex \x3d a_nextPos;\n    shortProjVertex \x3d u_projectionMatrix * vec4(a_lastPos, 0.0, 1.0);\n  } else {\n    shortOffset \x3d tmpNormal * direction * halfWidth;\n    longOffset \x3d normalize(vec2(dirVect.y, -dirVect.x)) * direction * halfWidth;\n    longVertex \x3d a_lastPos;\n    shortProjVertex \x3d 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 \x3d u_projectionMatrix * vec4(longVertex, 0.0, 1.0) + offsetMatrix * vec4(longOffset, 0.0, 0.0);\n  vec4 p2 \x3d projPos + offsetMatrix * vec4(longOffset, 0.0, 0.0);\n  vec4 p3 \x3d shortProjVertex + offsetMatrix * vec4(-shortOffset, 0.0, 0.0);\n  vec4 p4 \x3d shortProjVertex + offsetMatrix * vec4(shortOffset, 0.0, 0.0);\n  float denom \x3d (p4.y - p3.y) * (p2.x - p1.x) - (p4.x - p3.x) * (p2.y - p1.y);\n  float firstU \x3d ((p4.x - p3.x) * (p1.y - p3.y) - (p4.y - p3.y) * (p1.x - p3.x)) / denom;\n  float secondU \x3d ((p2.x - p1.x) * (p1.y - p3.y) - (p2.y - p1.y) * (p1.x - p3.x)) / denom;\n  float epsilon \x3d 0.000000000001;\n  if (firstU \x3e epsilon \x26\x26 firstU \x3c 1.0 - epsilon \x26\x26 secondU \x3e epsilon \x26\x26 secondU \x3c 1.0 - epsilon) {\n    shortProjVertex.x \x3d p1.x + firstU * (p2.x - p1.x);\n    shortProjVertex.y \x3d p1.y + firstU * (p2.y - p1.y);\n    offset \x3d shortProjVertex.xy;\n    degenerate \x3d true;\n  } else {\n    float miterLength \x3d abs(halfWidth / dot(normal, tmpNormal));\n    offset \x3d 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 \x3d 0.0;\n  vec2 dirVect \x3d a_position - nextP;\n  vec2 firstNormal \x3d normalize(dirVect);\n  vec2 secondNormal \x3d vec2(turnDir * firstNormal.y * direction, -turnDir * firstNormal.x * direction);\n  vec2 hypotenuse \x3d normalize(firstNormal - secondNormal);\n  vec2 normal \x3d vec2(turnDir * hypotenuse.y * direction, -turnDir * hypotenuse.x * direction);\n  float length \x3d sqrt(v_halfWidth * v_halfWidth * 2.0);\n  offset \x3d normal * length;\n  if (isRound) {\n    round \x3d 1.0;\n  }\n}\n\nvoid main(void) {\n  bool degenerate \x3d false;\n  float direction \x3d float(sign(a_direction));\n  mat4 offsetMatrix \x3d u_offsetScaleMatrix * u_offsetRotateMatrix;\n  vec2 offset;\n  vec4 projPos \x3d u_projectionMatrix * vec4(a_position, 0.0, 1.0);\n  bool round \x3d nearlyEquals(mod(a_direction, 2.0), 0.0);\n\n  v_round \x3d 0.0;\n  v_halfWidth \x3d u_lineWidth / 2.0;\n  v_roundVertex \x3d 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 \x3d 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 \x3d offsetMatrix * vec4(offset, 0.0, 0.0);\n    gl_Position \x3d projPos + offsets;\n  } else {\n    gl_Position \x3d vec4(offset, 0.0, 1.0);\n  }\n}\n\n\n"}
A(Wl,pl);var Xl=new Wl;function Yl(a,b){this.Yq=a.getUniformLocation(b,"u_color");this.Zq=a.getUniformLocation(b,"u_lineWidth");this.EE=a.getUniformLocation(b,"u_miterLimit");this.nn=a.getUniformLocation(b,"u_offsetRotateMatrix");this.pn=a.getUniformLocation(b,"u_offsetScaleMatrix");this.ki=a.getUniformLocation(b,"u_opacity");this.$q=a.getUniformLocation(b,"u_pixelRatio");this.li=a.getUniformLocation(b,"u_projectionMatrix");this.ar=a.getUniformLocation(b,"u_size");this.Vn=a.getAttribLocation(b,"a_direction");
this.Xn=a.getAttribLocation(b,"a_lastPos");this.Yn=a.getAttribLocation(b,"a_nextPos");this.Va=a.getAttribLocation(b,"a_position")}function Zl(a,b){xl.call(this,a,b);this.qa=null;this.V=[];this.ha=[];this.g={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0,changed:!1}}A(Zl,xl);h=Zl.prototype;h.Jb=function(a,b,c,d){var e,f=this.o.length,g=this.c.length,k="bevel"===this.g.lineJoin?0:"miter"===this.g.lineJoin?1:2,l="butt"===this.g.lineCap?
0:"square"===this.g.lineCap?1:2,m=I.a.ln.Ep(a,b,c,d),n,q,r,t=g,u=1,y,z,B;for(e=b;e<c;e+=d){r=f/7;y=z;z=B||[a[e],a[e+1]];if(e===b){B=[a[e+d],a[e+d+1]];if(c-b===2*d&&Qe(z,B))break;if(m)y=[a[c-2*d],a[c-2*d+1]],n=B;else{l&&(f=$l(this,[0,0],z,B,u*am*l,f),f=$l(this,[0,0],z,B,-u*am*l,f),this.c[g++]=r+2,this.c[g++]=r,this.c[g++]=r+1,this.c[g++]=r+1,this.c[g++]=r+3,this.c[g++]=r+2);f=$l(this,[0,0],z,B,u*bm*(l||1),f);f=$l(this,[0,0],z,B,-u*bm*(l||1),f);t=f/7-1;continue}}else if(e===c-d){m?B=n:(y=y||[0,0],f=
$l(this,y,z,[0,0],u*cm*(l||1),f),f=$l(this,y,z,[0,0],-u*cm*(l||1),f),this.c[g++]=r,this.c[g++]=t-1,this.c[g++]=t,this.c[g++]=t,this.c[g++]=r+1,this.c[g++]=r,l&&(f=$l(this,y,z,[0,0],u*dm*l,f),f=$l(this,y,z,[0,0],-u*dm*l,f),this.c[g++]=r+2,this.c[g++]=r,this.c[g++]=r+1,this.c[g++]=r+1,this.c[g++]=r+3,this.c[g++]=r+2));break}else B=[a[e+d],a[e+d+1]];q=Bl(y[0],y[1],z[0],z[1],B[0],B[1])?-1:1;f=$l(this,y,z,B,q*em*(k||1),f);f=$l(this,y,z,B,q*fm*(k||1),f);f=$l(this,y,z,B,-q*gm*(k||1),f);e>b&&(this.c[g++]=
r,this.c[g++]=t-1,this.c[g++]=t,this.c[g++]=r+2,this.c[g++]=r,this.c[g++]=0<u*q?t:t-1);this.c[g++]=r;this.c[g++]=r+2;this.c[g++]=r+1;t=r+2;u=q;k&&(f=$l(this,y,z,B,q*hm*k,f),this.c[g++]=r+1,this.c[g++]=r+3,this.c[g++]=r)}m&&(r=r||f/7,q=I.a.gb.qg([y[0],y[1],z[0],z[1],B[0],B[1]],0,6,2)?1:-1,f=$l(this,y,z,B,q*em*(k||1),f),$l(this,y,z,B,-q*gm*(k||1),f),this.c[g++]=r,this.c[g++]=t-1,this.c[g++]=t,this.c[g++]=r+1,this.c[g++]=r,this.c[g++]=0<u*q?t:t-1)};function $l(a,b,c,d,e,f){a.o[f++]=b[0];a.o[f++]=b[1];
a.o[f++]=c[0];a.o[f++]=c[1];a.o[f++]=d[0];a.o[f++]=d[1];a.o[f++]=e;return f}function im(a,b,c){b-=0;return b<2*c?!1:b===2*c?!Qe([a[0],a[1]],[a[0+c],a[0+c+1]]):!0}h.Wc=function(a,b){var c=a.M();a=a.aa();im(c,c.length,a)&&(c=I.a.transform.translate(c,0,c.length,a,-this.origin[0],-this.origin[1]),this.g.changed&&(this.ha.push(this.c.length),this.g.changed=!1),this.D.push(this.c.length),this.Eb.push(b),this.Jb(c,0,c.length,a))};h.Ue=function(a,b){var c=this.c.length;a=a.getLineStrings();var d,e;d=0;for(e=
a.length;d<e;++d){var f=a[d].M(),g=a[d].aa();im(f,f.length,g)&&(f=I.a.transform.translate(f,0,f.length,g,-this.origin[0],-this.origin[1]),this.Jb(f,0,f.length,g))}this.c.length>c&&(this.D.push(c),this.Eb.push(b),this.g.changed&&(this.ha.push(c),this.g.changed=!1))};function jm(a,b,c,d){I.a.ln.Ep(b,0,b.length,d)||(b.push(b[0]),b.push(b[1]));a.Jb(b,0,b.length,d);if(c.length){var e;b=0;for(e=c.length;b<e;++b)I.a.ln.Ep(c[b],0,c[b].length,d)||(c[b].push(c[b][0]),c[b].push(c[b][1])),a.Jb(c[b],0,c[b].length,
d)}}function km(a,b,c){c=void 0===c?a.c.length:c;a.D.push(c);a.Eb.push(b);a.g.changed&&(a.ha.push(c),a.g.changed=!1)}h.finish=function(){this.Ie=new Dl(this.o);this.we=new Dl(this.c);this.D.push(this.c.length);0===this.ha.length&&0<this.V.length&&(this.V=[]);this.c=this.o=null};h.wb=function(a){var b=this.Ie,c=this.we;return function(){a.deleteBuffer(b);a.deleteBuffer(c)}};h.Nm=function(a,b,c,d){var e=Gl(b,Vl,Xl),f;this.qa?f=this.qa:this.qa=f=new Yl(a,e);b.useProgram(e);a.enableVertexAttribArray(f.Xn);
a.vertexAttribPointer(f.Xn,2,5126,!1,28,0);a.enableVertexAttribArray(f.Va);a.vertexAttribPointer(f.Va,2,5126,!1,28,8);a.enableVertexAttribArray(f.Yn);a.vertexAttribPointer(f.Yn,2,5126,!1,28,16);a.enableVertexAttribArray(f.Vn);a.vertexAttribPointer(f.Vn,1,5126,!1,28,24);a.uniform2fv(f.ar,c);a.uniform1f(f.$q,d);return f};h.Om=function(a,b){a.disableVertexAttribArray(b.Xn);a.disableVertexAttribArray(b.Va);a.disableVertexAttribArray(b.Yn);a.disableVertexAttribArray(b.Vn)};h.Qi=function(a,b,c,d){var e=
a.getParameter(a.DEPTH_FUNC),f=a.getParameter(a.DEPTH_WRITEMASK);d||(a.enable(a.DEPTH_TEST),a.depthMask(!0),a.depthFunc(a.NOTEQUAL));if(oe(c)){var g,k,l;k=this.D[this.D.length-1];for(c=this.ha.length-1;0<=c;--c)g=this.ha[c],l=this.V[c],this.Ud(a,l[0],l[1],l[2]),this.drawElements(a,b,g,k),a.clear(a.DEPTH_BUFFER_BIT),k=g}else this.Xf(a,b,c);d||(a.disable(a.DEPTH_TEST),a.clear(a.DEPTH_BUFFER_BIT),a.depthMask(f),a.depthFunc(e))};h.Xf=function(a,b,c){var d,e,f,g,k,l,m;l=this.D.length-2;f=e=this.D[l+1];
for(d=this.ha.length-1;0<=d;--d){g=this.V[d];this.Ud(a,g[0],g[1],g[2]);for(g=this.ha[d];0<=l&&this.D[l]>=g;)m=this.D[l],k=this.Eb[l],k=D(k).toString(),c[k]&&(e!==f&&(this.drawElements(a,b,e,f),a.clear(a.DEPTH_BUFFER_BIT)),f=m),l--,e=m;e!==f&&(this.drawElements(a,b,e,f),a.clear(a.DEPTH_BUFFER_BIT));e=f=g}};h.cl=function(a,b,c,d,e){var f,g,k,l,m,n,q;q=this.D.length-2;k=this.D[q+1];for(f=this.ha.length-1;0<=f;--f)for(g=this.V[f],this.Ud(a,g[0],g[1],g[2]),l=this.ha[f];0<=q&&this.D[q]>=l;){g=this.D[q];
m=this.Eb[q];n=D(m).toString();if(void 0===c[n]&&m.getGeometry()&&(void 0===e||Af(e,m.getGeometry().getExtent()))&&(a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),this.drawElements(a,b,g,k),k=d(m)))return k;q--;k=g}};h.Ud=function(a,b,c,d){a.uniform4fv(this.qa.Yq,b);a.uniform1f(this.qa.Zq,c);a.uniform1f(this.qa.EE,d)};h.Ua=function(a,b){a=b.getLineCap();this.g.lineCap=void 0!==a?a:"round";a=b.getLineDash();this.g.lineDash=a?a:zl;a=b.getLineDashOffset();this.g.lineDashOffset=a?a:0;a=b.getLineJoin();
this.g.lineJoin=void 0!==a?a:"round";a=b.getColor();a=a instanceof CanvasGradient||a instanceof CanvasPattern?Al:Cd(a).map(function(a,b){return 3!=b?a/255:a})||Al;var c=b.getWidth(),c=void 0!==c?c:1;b=b.getMiterLimit();b=void 0!==b?b:10;this.g.strokeColor&&Qe(this.g.strokeColor,a)&&this.g.lineWidth===c&&this.g.miterLimit===b||(this.g.changed=!0,this.g.strokeColor=a,this.g.lineWidth=c,this.g.miterLimit=b,this.V.push([a,c,b]))};var bm=3,cm=5,am=7,dm=11,em=13,fm=17,gm=19,hm=23;function lm(){this.O="precision mediump float;\n\n\n\nuniform vec4 u_color;\nuniform float u_opacity;\n\nvoid main(void) {\n  gl_FragColor \x3d u_color;\n  float alpha \x3d u_color.a * u_opacity;\n  if (alpha \x3d\x3d 0.0) {\n    discard;\n  }\n  gl_FragColor.a \x3d alpha;\n}\n"}
A(lm,nl);var mm=new lm;function nm(){this.O="\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 \x3d u_projectionMatrix * vec4(a_position, 0.0, 1.0);\n}\n\n\n"}A(nm,pl);var om=new nm;function pm(a,b){this.Yq=a.getUniformLocation(b,"u_color");this.nn=a.getUniformLocation(b,"u_offsetRotateMatrix");this.pn=a.getUniformLocation(b,"u_offsetScaleMatrix");this.ki=a.getUniformLocation(b,
"u_opacity");this.li=a.getUniformLocation(b,"u_projectionMatrix");this.Va=a.getAttribLocation(b,"a_position")}function qm(a){this.R=this.tc=this.Fc=void 0;this.ns=void 0===a?!0:a;this.ye=0}qm.prototype.removeItem=function(){var a=this.R;if(a){var b=a.next,c=a.prev;b&&(b.prev=c);c&&(c.next=b);this.R=b||c;this.Fc===this.tc?this.tc=this.Fc=this.R=void 0:this.Fc===a?this.Fc=this.R:this.tc===a&&(this.tc=c?this.R.prev:this.R);this.ye--}};function rm(a){a.R=a.Fc;if(a.R)return a.R.data}function tm(a){if(a.R&&
a.R.next)return a.R=a.R.next,a.R.data}function um(a){if(a.R&&a.R.next)return a.R.next.data}function vm(a){if(a.R&&a.R.prev)return a.R=a.R.prev,a.R.data}function wm(a){if(a.R&&a.R.prev)return a.R.prev.data}function xm(a){if(a.R)return a.R.data}qm.prototype.concat=function(a){if(a.R){if(this.R){var b=this.R.next;this.R.next=a.Fc;a.Fc.prev=this.R;b.prev=a.tc;a.tc.next=b;this.ye+=a.ye}else this.R=a.R,this.Fc=a.Fc,this.tc=a.tc,this.ye=a.ye;a.R=void 0;a.Fc=void 0;a.tc=void 0;a.ye=0}};qm.prototype.getLength=
function(){return this.ye};var ym,zm,Am,Bm;(function(){var a={},b={v:a};(function(c){"object"===typeof a&&"undefined"!==typeof b?b.v=c():("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).WI=c()})(function(){return function(){function a(b,c,f){function d(g,k){if(!c[g]){if(!b[g]){var l="function"==typeof require&&require;if(!k&&l)return l(g,!0);if(e)return e(g,!0);k=Error("Cannot find module '"+g+"'");throw k.code="MODULE_NOT_FOUND",k;}k=c[g]=
{v:{}};b[g][0].call(k.v,function(a){return d(b[g][1][a]||a)},k,k.v,a,b,c,f)}return c[g].v}for(var e="function"==typeof require&&require,l=0;l<f.length;l++)d(f[l]);return d}return a}()({1:[function(a,b){function c(a,b){if(!(this instanceof c))return new c(a,b);this.Rn=Math.max(4,a||9);this.Mr=Math.max(2,Math.ceil(.4*this.Rn));b&&this.my(b);this.clear()}function d(a,b){g(a,0,a.children.length,b,a)}function g(a,b,c,d,e){e||(e=u(null));e.K=Infinity;e.N=Infinity;e.H=-Infinity;e.S=-Infinity;for(var f;b<
c;b++)f=a.children[b],k(e,a.Lb?d(f):f);return e}function k(a,b){a.K=Math.min(a.K,b.K);a.N=Math.min(a.N,b.N);a.H=Math.max(a.H,b.H);a.S=Math.max(a.S,b.S)}function l(a,b){return a.K-b.K}function m(a,b){return a.N-b.N}function n(a){return(a.H-a.K)*(a.S-a.N)}function q(a){return a.H-a.K+(a.S-a.N)}function r(a,b){return a.K<=b.K&&a.N<=b.N&&b.H<=a.H&&b.S<=a.S}function t(a,b){return b.K<=a.H&&b.N<=a.S&&b.H>=a.K&&b.S>=a.N}function u(a){return{children:a,height:1,Lb:!0,K:Infinity,N:Infinity,H:-Infinity,S:-Infinity}}
function y(a,b,c,d,e){for(var f=[b,c],g;f.length;)c=f.pop(),b=f.pop(),c-b<=d||(g=b+Math.ceil((c-b)/d/2)*d,z(a,g,b,c,e),f.push(b,g,g,c))}b.v=c;var z=a("quickselect");c.prototype={all:function(){return this.Dr(this.data,[])},search:function(a){var b=this.data,c=[],d=this.Cc;if(!t(a,b))return c;for(var e=[],f,g,k,l;b;){f=0;for(g=b.children.length;f<g;f++)k=b.children[f],l=b.Lb?d(k):k,t(a,l)&&(b.Lb?c.push(k):r(a,l)?this.Dr(k,c):e.push(k));b=e.pop()}return c},load:function(a){if(!a||!a.length)return this;
if(a.length<this.Mr){for(var b=0,c=a.length;b<c;b++)this.ta(a[b]);return this}a=this.Fr(a.slice(),0,a.length-1,0);this.data.children.length?this.data.height===a.height?this.Rr(this.data,a):(this.data.height<a.height&&(b=this.data,this.data=a,a=b),this.Kr(a,this.data.height-a.height-1,!0)):this.data=a;return this},ta:function(a){a&&this.Kr(a,this.data.height-1);return this},clear:function(){this.data=u([]);return this},remove:function(a,b){if(!a)return this;for(var c=this.data,d=this.Cc(a),e=[],f=
[],g,k,l,m;c||e.length;){c||(c=e.pop(),k=e[e.length-1],g=f.pop(),m=!0);if(c.Lb){a:{l=a;var n=c.children,q=b;if(q){for(var t=0;t<n.length;t++)if(q(l,n[t])){l=t;break a}l=-1}else l=n.indexOf(l)}if(-1!==l){c.children.splice(l,1);e.push(c);this.iy(e);break}}m||c.Lb||!r(c,d)?k?(g++,c=k.children[g],m=!1):c=null:(e.push(c),f.push(g),g=0,k=c,c=c.children[0])}return this},Cc:function(a){return a},oo:l,po:m,toJSON:function(){return this.data},Dr:function(a,b){for(var c=[];a;)a.Lb?b.push.apply(b,a.children):
c.push.apply(c,a.children),a=c.pop();return b},Fr:function(a,b,c,e){var f=c-b+1,g=this.Rn,k;if(f<=g)return k=u(a.slice(b,c+1)),d(k,this.Cc),k;e||(e=Math.ceil(Math.log(f)/Math.log(g)),g=Math.ceil(f/Math.pow(g,e-1)));k=u([]);k.Lb=!1;k.height=e;var f=Math.ceil(f/g),g=f*Math.ceil(Math.sqrt(g)),l,m,n;for(y(a,b,c,g,this.oo);b<=c;b+=g)for(m=Math.min(b+g-1,c),y(a,b,m,f,this.po),l=b;l<=m;l+=f)n=Math.min(l+f-1,m),k.children.push(this.Fr(a,l,n,e-1));d(k,this.Cc);return k},hy:function(a,b,c,d){for(var e,f,g,
k,l,m,q,r;;){d.push(b);if(b.Lb||d.length-1===c)break;q=r=Infinity;e=0;for(f=b.children.length;e<f;e++)g=b.children[e],l=n(g),m=(Math.max(g.H,a.H)-Math.min(g.K,a.K))*(Math.max(g.S,a.S)-Math.min(g.N,a.N))-l,m<r?(r=m,q=l<q?l:q,k=g):m===r&&l<q&&(q=l,k=g);b=k||b.children[0]}return b},Kr:function(a,b,c){var d=this.Cc;c=c?a:d(a);var d=[],e=this.hy(c,this.data,b,d);e.children.push(a);for(k(e,c);0<=b;)if(d[b].children.length>this.Rn)this.uy(d,b),b--;else break;this.ey(c,d,b)},uy:function(a,b){var c=a[b],e=
c.children.length,f=this.Mr;this.fy(c,f,e);e=this.gy(c,f,e);e=u(c.children.splice(e,c.children.length-e));e.height=c.height;e.Lb=c.Lb;d(c,this.Cc);d(e,this.Cc);b?a[b-1].children.push(e):this.Rr(c,e)},Rr:function(a,b){this.data=u([a,b]);this.data.height=a.height+1;this.data.Lb=!1;d(this.data,this.Cc)},gy:function(a,b,c){var d,e,f,k,l,m,q;l=m=Infinity;for(d=b;d<=c-b;d++)e=g(a,0,d,this.Cc),f=g(a,d,c,this.Cc),k=Math.max(0,Math.min(e.H,f.H)-Math.max(e.K,f.K))*Math.max(0,Math.min(e.S,f.S)-Math.max(e.N,
f.N)),e=n(e)+n(f),k<l?(l=k,q=d,m=e<m?e:m):k===l&&e<m&&(m=e,q=d);return q},fy:function(a,b,c){var d=a.Lb?this.oo:l,e=a.Lb?this.po:m,f=this.Er(a,b,c,d);b=this.Er(a,b,c,e);f<b&&a.children.sort(d)},Er:function(a,b,c,d){a.children.sort(d);d=this.Cc;var e=g(a,0,b,d),f=g(a,c-b,c,d),l=q(e)+q(f),m,n;for(m=b;m<c-b;m++)n=a.children[m],k(e,a.Lb?d(n):n),l+=q(e);for(m=c-b-1;m>=b;m--)n=a.children[m],k(f,a.Lb?d(n):n),l+=q(f);return l},ey:function(a,b,c){for(;0<=c;c--)k(b[c],a)},iy:function(a){for(var b=a.length-
1,c;0<=b;b--)0===a[b].children.length?0<b?(c=a[b-1].children,c.splice(c.indexOf(a[b]),1)):this.clear():d(a[b],this.Cc)},my:function(a){var b=["return a"," - b",";"];this.oo=new Function("a","b",b.join(a[0]));this.po=new Function("a","b",b.join(a[1]));this.Cc=new Function("a","return {minX: a"+a[0]+", minY: a"+a[1]+", maxX: a"+a[2]+", maxY: a"+a[3]+"};")}}},{quickselect:2}],2:[function(a,b,e){(function(a,c){"object"===typeof e&&"undefined"!==typeof b?b.v=c():a.VI=c()})(this,function(){function a(c,
d,e,f,g){for(;f>e;){if(600<f-e){var k=f-e+1,l=d-e+1,m=Math.log(k),n=.5*Math.exp(2*m/3),m=.5*Math.sqrt(m*n*(k-n)/k)*(0>l-k/2?-1:1);a(c,d,Math.max(e,Math.floor(d-l*n/k+m)),Math.min(f,Math.floor(d+(k-l)*n/k+m)),g)}k=c[d];l=e;n=f;b(c,e,d);for(0<g(c[f],k)&&b(c,e,f);l<n;){b(c,l,n);l++;for(n--;0>g(c[l],k);)l++;for(;0<g(c[n],k);)n--}0===g(c[e],k)?b(c,e,n):(n++,b(c,n,f));n<=d&&(e=n+1);d<=n&&(f=n-1)}}function b(a,b,c){var d=a[b];a[b]=a[c];a[c]=d}function c(a,b){return a<b?-1:a>b?1:0}return function(b,d,e,f,
g){a(b,d,e||0,f||b.length-1,g||c)}})},{}]},{},[1])(1)});ym=b.v})();function Cm(a){this.Cg=ym(a);this.ng={}}h=Cm.prototype;h.ta=function(a,b){a={K:a[0],N:a[1],H:a[2],S:a[3],value:b};this.Cg.ta(a);this.ng[D(b)]=a};h.load=function(a,b){for(var c=Array(b.length),d=0,e=b.length;d<e;d++){var f=a[d],g=b[d],f={K:f[0],N:f[1],H:f[2],S:f[3],value:g};c[d]=f;this.ng[D(g)]=f}this.Cg.load(c)};h.remove=function(a){a=D(a);var b=this.ng[a];delete this.ng[a];return null!==this.Cg.remove(b)};h.update=function(a,b){var c=
this.ng[D(b)];lf([c.K,c.N,c.H,c.S],a)||(this.remove(b),this.ta(a,b))};h.getAll=function(){return this.Cg.all().map(function(a){return a.value})};function Dm(a,b){return a.Cg.search({K:b[0],N:b[1],H:b[2],S:b[3]}).map(function(a){return a.value})}h.forEach=function(a,b){return Em(this.getAll(),a,b)};function Fm(a,b,c,d){return Em(Dm(a,b),c,d)}function Em(a,b,c){for(var d,e=0,f=a.length;e<f&&!(d=b.call(c,a[e]));e++);return d}h.isEmpty=function(){return oe(this.ng)};h.clear=function(){this.Cg.clear();
this.ng={}};h.getExtent=function(){var a=this.Cg.data;return[a.K,a.N,a.H,a.S]};function Gm(a,b){xl.call(this,a,b);this.Wb=new Zl(a,b);this.qa=null;this.V=[];this.ha=[];this.g={fillColor:null,changed:!1}}A(Gm,xl);h=Gm.prototype;h.Jb=function(a,b,c){var d=new qm,e=new Cm;a=Hm(this,a,c,d,e,!0);if(b.length){var f,g,k=[];f=0;for(g=b.length;f<g;++f){var l={list:new qm,H:void 0};k.push(l);l.H=Hm(this,b[f],c,l.list,e,!1)}k.sort(function(a,b){return b.H-a.H});for(f=0;f<k.length;++f)Im(k[f].list,k[f].H,d,a,
e)}Jm(d,e,!1);Km(this,d,e)};function Hm(a,b,c,d,e,f){var g,k,l=a.o.length/2,m,n,q,r=[],t=[];if(f===I.a.gb.qg(b,0,b.length,c))for(n=m=Lm(a,b[0],b[1],l++),f=b[0],g=c,k=b.length;g<k;g+=c)q=Lm(a,b[g],b[g+1],l++),t.push(Mm(n,q,d)),r.push([Math.min(n.x,q.x),Math.min(n.y,q.y),Math.max(n.x,q.x),Math.max(n.y,q.y)]),f=b[g]>f?b[g]:f,n=q;else for(g=b.length-c,n=m=Lm(a,b[g],b[g+1],l++),f=b[g],g-=c,k=0;g>=k;g-=c)q=Lm(a,b[g],b[g+1],l++),t.push(Mm(n,q,d)),r.push([Math.min(n.x,q.x),Math.min(n.y,q.y),Math.max(n.x,
q.x),Math.max(n.y,q.y)]),f=b[g]>f?b[g]:f,n=q;t.push(Mm(q,m,d));r.push([Math.min(n.x,q.x),Math.min(n.y,q.y),Math.max(n.x,q.x),Math.max(n.y,q.y)]);e.load(r,t);return f}function Jm(a,b,c){var d=rm(a),e=d,f=tm(a),g=!1;do{var k=c?Bl(f.A.x,f.A.y,e.A.x,e.A.y,e.C.x,e.C.y):Bl(e.C.x,e.C.y,e.A.x,e.A.y,f.A.x,f.A.y);void 0===k?(Nm(e,f,a,b),g=!0,f===d&&(d=um(a)),f=e,vm(a)):e.A.yc!==k&&(e.A.yc=k,g=!0);e=f;f=tm(a)}while(e!==d);return g}function Im(a,b,c,d,e){Jm(a,e,!0);for(var f=rm(a);f.A.x!==b;)f=tm(a);b=f.A;d=
{x:d,y:b.y,Aa:-1};var g=Infinity,k,l,m,n;m=Om({C:b,A:d},e,!0);k=0;for(l=m.length;k<l;++k){var q=m[k];if(void 0===q.C.yc){var r=Pm(b,d,q.C,q.A,!0),t=Math.abs(b.x-r[0]);t<g&&(g=t,n={x:r[0],y:r[1],Aa:-1},f=q)}}if(Infinity!==g){m=f.A;if(0<g&&(f=Qm(b,n,f.A,e),f.length))for(n=Infinity,k=0,l=f.length;k<l;++k)if(g=f[k],q=Math.atan2(b.y-g.y,d.x-g.x),q<n||q===n&&g.x<m.x)n=q,m=g;for(f=rm(c);f.A!==m;)f=tm(c);d={x:b.x,y:b.y,Aa:b.Aa,yc:void 0};k={x:f.A.x,y:f.A.y,Aa:f.A.Aa,yc:void 0};um(a).C=d;Mm(b,f.A,a,e);Mm(k,
d,a,e);f.A=k;a.ns&&a.R&&(a.Fc=a.R,a.tc=a.R.prev);c.concat(a)}}function Km(a,b,c){for(var d=!1,e=Rm(b,c);3<b.getLength();)if(e){if(!Sm(a,b,c,e,d)&&!Jm(b,c,d)&&!Tm(a,b,c,!0))break}else if(!Sm(a,b,c,e,d)&&!Jm(b,c,d)&&!Tm(a,b,c))if(e=Rm(b,c)){var d=b,f=2*d.getLength(),g=Array(f),k=rm(d),l=k,m=0;do g[m++]=l.C.x,g[m++]=l.C.y,l=tm(d);while(l!==k);d=!I.a.gb.qg(g,0,f,2);Jm(b,c,d)}else{e=a;d=b;f=g=rm(d);do{k=Om(f,c);if(k.length){g=k[0];k=Pm(f.C,f.A,g.C,g.A);k=Lm(e,k[0],k[1],e.o.length/2);l=new qm;m=new Cm;
Mm(k,f.A,l,m);f.A=k;c.update([Math.min(f.C.x,k.x),Math.min(f.C.y,k.y),Math.max(f.C.x,k.x),Math.max(f.C.y,k.y)],f);for(f=tm(d);f!==g;)Mm(f.C,f.A,l,m),c.remove(f),d.removeItem(),f=xm(d);Mm(g.C,k,l,m);g.C=k;c.update([Math.min(g.A.x,k.x),Math.min(g.A.y,k.y),Math.max(g.A.x,k.x),Math.max(g.A.y,k.y)],g);Jm(d,c,!1);Km(e,d,c);Jm(l,m,!1);Km(e,l,m);break}f=tm(d)}while(f!==g);break}3===b.getLength()&&(e=a.c.length,a.c[e++]=wm(b).C.Aa,a.c[e++]=xm(b).C.Aa,a.c[e++]=um(b).C.Aa)}function Sm(a,b,c,d,e){var f=a.c.length,
g=rm(b),k=wm(b),l=g,m=tm(b),n=um(b),q,r,t,u=!1;do{q=l.C;r=l.A;t=m.A;if(!1===r.yc){var y=e?Um(n.A,t,r,q,k.C):Um(k.C,q,r,t,n.A);!d&&0!==Om({C:q,A:t},c).length||!y||0!==Qm(q,r,t,c,!0).length||!d&&!1!==q.yc&&!1!==t.yc&&I.a.gb.qg([k.C.x,k.C.y,q.x,q.y,r.x,r.y,t.x,t.y,n.A.x,n.A.y],0,10,2)!==!e||(a.c[f++]=q.Aa,a.c[f++]=r.Aa,a.c[f++]=t.Aa,Nm(l,m,b,c),m===g&&(g=n),u=!0)}k=wm(b);l=xm(b);m=tm(b);n=um(b)}while(l!==g&&3<b.getLength());return u}function Tm(a,b,c,d){var e=rm(b);tm(b);var f=e,g=tm(b),k=!1;do{var l=
Pm(f.C,f.A,g.C,g.A,d);if(l){var m,k=a.c.length,n=a.o.length/2,q=vm(b);b.removeItem();c.remove(q);m=q===e;d?(l[0]===f.C.x&&l[1]===f.C.y?(vm(b),l=f.C,g.C=l,c.remove(f),m=m||f===e):(l=g.A,f.A=l,c.remove(g),m=m||g===e),b.removeItem()):(l=Lm(a,l[0],l[1],n),f.A=l,g.C=l,c.update([Math.min(f.C.x,f.A.x),Math.min(f.C.y,f.A.y),Math.max(f.C.x,f.A.x),Math.max(f.C.y,f.A.y)],f),c.update([Math.min(g.C.x,g.A.x),Math.min(g.C.y,g.A.y),Math.max(g.C.x,g.A.x),Math.max(g.C.y,g.A.y)],g));a.c[k++]=q.C.Aa;a.c[k++]=q.A.Aa;
a.c[k++]=l.Aa;k=!0;if(m)break}f=wm(b);g=tm(b)}while(f!==e);return k}function Rm(a,b){var c=rm(a),d=c;do{if(Om(d,b).length)return!1;d=tm(a)}while(d!==c);return!0}function Lm(a,b,c,d){var e=a.o.length;a.o[e++]=b;a.o[e++]=c;return{x:b,y:c,Aa:d,yc:void 0}}function Mm(a,b,c,d){var e={C:a,A:b},f={prev:void 0,next:void 0,data:e},g=c.R;if(g){var k=g.next;f.prev=g;f.next=k;g.next=f;k&&(k.prev=f);g===c.tc&&(c.tc=f)}else c.Fc=f,c.tc=f,c.ns&&(f.next=f,f.prev=f);c.R=f;c.ye++;d&&d.ta([Math.min(a.x,b.x),Math.min(a.y,
b.y),Math.max(a.x,b.x),Math.max(a.y,b.y)],e);return e}function Nm(a,b,c,d){xm(c)===b&&(c.removeItem(),a.A=b.A,d.remove(b),d.update([Math.min(a.C.x,a.A.x),Math.min(a.C.y,a.A.y),Math.max(a.C.x,a.A.x),Math.max(a.C.y,a.A.y)],a))}function Qm(a,b,c,d,e){var f,g,k,l=[],m=Dm(d,[Math.min(a.x,b.x,c.x),Math.min(a.y,b.y,c.y),Math.max(a.x,b.x,c.x),Math.max(a.y,b.y,c.y)]);d=0;for(f=m.length;d<f;++d)for(g in m[d])k=m[d][g],"object"!==typeof k||e&&!k.yc||k.x===a.x&&k.y===a.y||k.x===b.x&&k.y===b.y||k.x===c.x&&k.y===
c.y||-1!==l.indexOf(k)||!I.a.contains.mf([a.x,a.y,b.x,b.y,c.x,c.y],0,6,2,k.x,k.y)||l.push(k);return l}function Om(a,b,c){var d=a.C,e=a.A;b=Dm(b,[Math.min(d.x,e.x),Math.min(d.y,e.y),Math.max(d.x,e.x),Math.max(d.y,e.y)]);var f=[],g,k;g=0;for(k=b.length;g<k;++g){var l=b[g];a!==l&&(c||l.C!==e||l.A!==d)&&Pm(d,e,l.C,l.A,c)&&f.push(l)}return f}function Pm(a,b,c,d,e){var f=(d.y-c.y)*(b.x-a.x)-(d.x-c.x)*(b.y-a.y);if(0!==f&&(d=((d.x-c.x)*(a.y-c.y)-(d.y-c.y)*(a.x-c.x))/f,c=((b.x-a.x)*(a.y-c.y)-(b.y-a.y)*(a.x-
c.x))/f,!e&&d>Cl&&d<1-Cl&&c>Cl&&c<1-Cl||e&&0<=d&&1>=d&&0<=c&&1>=c))return[a.x+d*(b.x-a.x),a.y+d*(b.y-a.y)]}function Um(a,b,c,d,e){if(void 0===b.yc||void 0===d.yc)return!1;var f=(c.x-d.x)*(b.y-d.y)>(c.y-d.y)*(b.x-d.x);e=(e.x-d.x)*(b.y-d.y)<(e.y-d.y)*(b.x-d.x);a=(a.x-b.x)*(d.y-b.y)>(a.y-b.y)*(d.x-b.x);c=(c.x-b.x)*(d.y-b.y)<(c.y-b.y)*(d.x-b.x);b=b.yc?c||a:c&&a;return(d.yc?e||f:e&&f)&&b}h.We=function(a,b){var c=a.getPolygons();a=a.aa();var d=this.c.length,e=this.Wb.c.length,f,g,k,l;f=0;for(g=c.length;f<
g;++f){var m=c[f].getLinearRings();if(0<m.length){var n=m[0].M(),n=I.a.transform.translate(n,0,n.length,a,-this.origin[0],-this.origin[1]),q=[],r;k=1;for(l=m.length;k<l;++k)r=m[k].M(),r=I.a.transform.translate(r,0,r.length,a,-this.origin[0],-this.origin[1]),q.push(r);jm(this.Wb,n,q,a);this.Jb(n,q,a)}}this.c.length>d&&(this.D.push(d),this.Eb.push(b),this.g.changed&&(this.ha.push(d),this.g.changed=!1));this.Wb.c.length>e&&km(this.Wb,b,e)};h.Ye=function(a,b){var c=a.getLinearRings();a=a.aa();if(0<c.length){this.D.push(this.c.length);
this.Eb.push(b);this.g.changed&&(this.ha.push(this.c.length),this.g.changed=!1);km(this.Wb,b);b=c[0].M();b=I.a.transform.translate(b,0,b.length,a,-this.origin[0],-this.origin[1]);var d=[],e,f,g;e=1;for(f=c.length;e<f;++e)g=c[e].M(),g=I.a.transform.translate(g,0,g.length,a,-this.origin[0],-this.origin[1]),d.push(g);jm(this.Wb,b,d,a);this.Jb(b,d,a)}};h.finish=function(a){this.Ie=new Dl(this.o);this.we=new Dl(this.c);this.D.push(this.c.length);this.Wb.finish(a);0===this.ha.length&&0<this.V.length&&(this.V=
[]);this.c=this.o=null};h.wb=function(a){var b=this.Ie,c=this.we,d=this.Wb.wb(a);return function(){a.deleteBuffer(b);a.deleteBuffer(c);d()}};h.Nm=function(a,b){var c=Gl(b,mm,om),d;this.qa?d=this.qa:this.qa=d=new pm(a,c);b.useProgram(c);a.enableVertexAttribArray(d.Va);a.vertexAttribPointer(d.Va,2,5126,!1,8,0);return d};h.Om=function(a,b){a.disableVertexAttribArray(b.Va)};h.Qi=function(a,b,c,d){var e=a.getParameter(a.DEPTH_FUNC),f=a.getParameter(a.DEPTH_WRITEMASK);d||(a.enable(a.DEPTH_TEST),a.depthMask(!0),
a.depthFunc(a.NOTEQUAL));if(oe(c)){var g,k,l;k=this.D[this.D.length-1];for(c=this.ha.length-1;0<=c;--c)g=this.ha[c],l=this.V[c],this.Hg(a,l),this.drawElements(a,b,g,k),k=g}else this.Xf(a,b,c);d||(a.disable(a.DEPTH_TEST),a.clear(a.DEPTH_BUFFER_BIT),a.depthMask(f),a.depthFunc(e))};h.cl=function(a,b,c,d,e){var f,g,k,l,m,n,q;q=this.D.length-2;k=this.D[q+1];for(f=this.ha.length-1;0<=f;--f)for(g=this.V[f],this.Hg(a,g),l=this.ha[f];0<=q&&this.D[q]>=l;){g=this.D[q];m=this.Eb[q];n=D(m).toString();if(void 0===
c[n]&&m.getGeometry()&&(void 0===e||Af(e,m.getGeometry().getExtent()))&&(a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),this.drawElements(a,b,g,k),k=d(m)))return k;q--;k=g}};h.Xf=function(a,b,c){var d,e,f,g,k,l,m;l=this.D.length-2;f=e=this.D[l+1];for(d=this.ha.length-1;0<=d;--d){g=this.V[d];this.Hg(a,g);for(g=this.ha[d];0<=l&&this.D[l]>=g;)m=this.D[l],k=this.Eb[l],k=D(k).toString(),c[k]&&(e!==f&&(this.drawElements(a,b,e,f),a.clear(a.DEPTH_BUFFER_BIT)),f=m),l--,e=m;e!==f&&(this.drawElements(a,b,e,
f),a.clear(a.DEPTH_BUFFER_BIT));e=f=g}};h.Hg=function(a,b){a.uniform4fv(this.qa.Yq,b)};h.Ua=function(a,b){a=a?a.getColor():[0,0,0,0];a=a instanceof CanvasGradient||a instanceof CanvasPattern?yl:Cd(a).map(function(a,b){return 3!=b?a/255:a})||yl;this.g.fillColor&&Qe(a,this.g.fillColor)||(this.g.fillColor=a,this.g.changed=!0,this.V.push(a));b?this.Wb.Ua(null,b):this.Wb.Ua(null,new lg({color:[0,0,0,0],lineWidth:0}))};function Vm(){}Vm.prototype.pd=function(){};Vm.prototype.Ta=function(){};Vm.prototype.ke=
function(){};Vm.prototype.wb=function(){return nd};function Wm(a,b,c){this.fm=b;this.Vq=a;this.zc=c;this.$a={}}A(Wm,ll);h=Wm.prototype;h.wb=function(a){var b=[],c;for(c in this.$a){var d=this.$a[c],e;for(e in d)b.push(d[e].wb(a))}return function(){for(var a=b.length,c,d=0;d<a;d++)c=b[d].apply(this,arguments);return c}};h.finish=function(a){for(var b in this.$a){var c=this.$a[b],d;for(d in c)c[d].finish(a)}};h.Qa=function(a,b){var c=void 0!==a?a.toString():"0";a=this.$a[c];void 0===a&&(a={},this.$a[c]=
a);c=a[b];void 0===c&&(c=new Xm[b](this.Vq,this.fm),a[b]=c);return c};h.isEmpty=function(){return oe(this.$a)};h.Ta=function(a,b,c,d,e,f,g,k){var l=Object.keys(this.$a).map(Number);l.sort(Le);var m,n,q,r,t,u;m=0;for(n=l.length;m<n;++m)for(t=this.$a[l[m].toString()],q=0,r=kl.length;q<r;++q)u=t[kl[q]],void 0!==u&&u.Ta(a,b,c,d,e,f,g,k,void 0,!1)};h.Jm=function(a,b,c,d,e,f,g,k,l,m,n){var q=Object.keys(this.$a).map(Number);q.sort(function(a,b){return b-a});var r,t,u,y,z;r=0;for(t=q.length;r<t;++r)for(y=
this.$a[q[r].toString()],u=kl.length-1;0<=u;--u)if(z=y[kl[u]],void 0!==z&&(z=z.Ta(a,b,c,d,e,f,g,k,l,m,n)))return z};h.za=function(a,b,c,d,e,f,g,k,l,m){var n=b.getGL();n.bindFramebuffer(n.FRAMEBUFFER,Nl(b));var q;void 0!==this.zc&&(q=Ye(hf(a),d*this.zc));return this.Jm(b,a,d,e,Ym,g,k,l,function(a){var b=new Uint8Array(4);n.readPixels(0,0,1,1,n.RGBA,n.UNSIGNED_BYTE,b);if(0<b[3]&&(a=m(a)))return a},!0,q)};h.ue=function(a,b,c,d,e,f,g,k,l){var m=b.getGL();m.bindFramebuffer(m.FRAMEBUFFER,Nl(b));return void 0!==
this.Jm(b,a,d,e,Ym,g,k,l,function(){var a=new Uint8Array(4);m.readPixels(0,0,1,1,m.RGBA,m.UNSIGNED_BYTE,a);return 0<a[3]},!1)};var Ym=[1,1],Xm={Circle:Fl,Image:Sl,LineString:Zl,Polygon:Gm,Text:Vm};function Zm(a,b,c,d,e,f,g){this.J=a;this.Tf=b;this.extent_=f;this.Ja=g;this.X=e;this.na=d;this.bc=c;this.Ef=this.hl=this.up=null}A(Zm,bl);h=Zm.prototype;h.setStyle=function(a){this.Ua(a.getFill(),a.getStroke());this.Td(a.getImage())};h.drawGeometry=function(a){switch(a.getType()){case "Point":this.Xe(a,
null);break;case "LineString":this.Wc(a,null);break;case "Polygon":this.Ye(a,null);break;case "MultiPoint":this.Ve(a,null);break;case "MultiLineString":this.Ue(a,null);break;case "MultiPolygon":this.We(a,null);break;case "GeometryCollection":this.bl(a,null);break;case "Circle":this.drawCircle(a,null)}};h.drawFeature=function(a,b){(a=b.getGeometryFunction()(a))&&Af(this.extent_,a.getExtent())&&(this.setStyle(b),this.drawGeometry(a))};h.bl=function(a){a=a.ma;var b,c;b=0;for(c=a.length;b<c;++b)this.drawGeometry(a[b])};
h.Xe=function(a,b){var c=this.J,d=(new Wm(1,this.extent_)).Qa(0,"Image");d.Td(this.up);d.Xe(a,b);d.finish(c);d.Ta(this.J,this.Tf,this.bc,this.na,this.X,this.Ja,1,{},void 0,!1);d.wb(c)()};h.Ve=function(a,b){var c=this.J,d=(new Wm(1,this.extent_)).Qa(0,"Image");d.Td(this.up);d.Ve(a,b);d.finish(c);d.Ta(this.J,this.Tf,this.bc,this.na,this.X,this.Ja,1,{},void 0,!1);d.wb(c)()};h.Wc=function(a,b){var c=this.J,d=(new Wm(1,this.extent_)).Qa(0,"LineString");d.Ua(null,this.Ef);d.Wc(a,b);d.finish(c);d.Ta(this.J,
this.Tf,this.bc,this.na,this.X,this.Ja,1,{},void 0,!1);d.wb(c)()};h.Ue=function(a,b){var c=this.J,d=(new Wm(1,this.extent_)).Qa(0,"LineString");d.Ua(null,this.Ef);d.Ue(a,b);d.finish(c);d.Ta(this.J,this.Tf,this.bc,this.na,this.X,this.Ja,1,{},void 0,!1);d.wb(c)()};h.Ye=function(a,b){var c=this.J,d=(new Wm(1,this.extent_)).Qa(0,"Polygon");d.Ua(this.hl,this.Ef);d.Ye(a,b);d.finish(c);d.Ta(this.J,this.Tf,this.bc,this.na,this.X,this.Ja,1,{},void 0,!1);d.wb(c)()};h.We=function(a,b){var c=this.J,d=(new Wm(1,
this.extent_)).Qa(0,"Polygon");d.Ua(this.hl,this.Ef);d.We(a,b);d.finish(c);d.Ta(this.J,this.Tf,this.bc,this.na,this.X,this.Ja,1,{},void 0,!1);d.wb(c)()};h.drawCircle=function(a,b){var c=this.J,d=(new Wm(1,this.extent_)).Qa(0,"Circle");d.Ua(this.hl,this.Ef);d.drawCircle(a,b);d.finish(c);d.Ta(this.J,this.Tf,this.bc,this.na,this.X,this.Ja,1,{},void 0,!1);d.wb(c)()};h.Td=function(a){this.up=a};h.Ua=function(a,b){this.hl=a;this.Ef=b};function $m(){this.Yg=0;this.Ed={};this.Kc=this.vc=null}h=$m.prototype;
h.clear=function(){this.Yg=0;this.Ed={};this.Kc=this.vc=null};h.jc=function(a){return this.Ed.hasOwnProperty(a)};h.forEach=function(a,b){for(var c=this.vc;c;)a.call(b,c.Jf,c.jf,this),c=c.jd};h.get=function(a){a=this.Ed[a];qd(void 0!==a,15);if(a===this.Kc)return a.Jf;a===this.vc?(this.vc=this.vc.jd,this.vc.sf=null):(a.jd.sf=a.sf,a.sf.jd=a.jd);a.jd=null;a.sf=this.Kc;this.Kc=this.Kc.jd=a;return a.Jf};h.lh=function(){return this.Yg};h.getKeys=function(){var a=Array(this.Yg),b=0,c;for(c=this.Kc;c;c=c.sf)a[b++]=
c.jf;return a};h.getValues=function(){var a=Array(this.Yg),b=0,c;for(c=this.Kc;c;c=c.sf)a[b++]=c.Jf;return a};h.pop=function(){var a=this.vc;delete this.Ed[a.jf];a.jd&&(a.jd.sf=null);this.vc=a.jd;this.vc||(this.Kc=null);--this.Yg;return a.Jf};h.replace=function(a,b){this.get(a);this.Ed[a].Jf=b};h.set=function(a,b){qd(!(a in this.Ed),16);b={jf:a,jd:null,sf:this.Kc,Jf:b};this.Kc?this.Kc.jd=b:this.vc=b;this.Kc=b;this.Ed[a]=b;++this.Yg};function an(a,b){Wk.call(this,0,b);this.j=document.createElement("CANVAS");
this.j.style.width="100%";this.j.style.height="100%";this.j.style.display="block";this.j.className="ol-unselectable";a.insertBefore(this.j,a.childNodes[0]||null);this.os=this.ps=0;this.qs=Hd();this.hb=!0;this.oh=Ld(this.j,{antialias:!0,depth:!0,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!1,stencil:!0});this.J=new Ml(this.j,this.oh);G(this.j,"webglcontextlost",this.fg,this);G(this.j,"webglcontextrestored",this.np,this);this.fc=new $m;this.$f=null;this.kk=new ri(function(a){var b=a[1];a=
a[2];var c=b[0]-this.$f[0],b=b[1]-this.$f[1];return 65536*Math.log(a)+Math.sqrt(c*c+b*b)/a}.bind(this),function(a){return a[0].getKey()});this.yB=function(){if(!this.kk.isEmpty()){vi(this.kk);var a=this.kk.dequeue();bn(this,a[0],a[3],a[4])}return!1}.bind(this);this.ik=0;cn(this)}A(an,Wk);function bn(a,b,c,d){var e=a.getGL(),f=b.getKey();if(a.fc.jc(f))a=a.fc.get(f),e.bindTexture(3553,a.Oc),9729!=a.ju&&(e.texParameteri(3553,10240,9729),a.ju=9729),9729!=a.yu&&(e.texParameteri(3553,10241,9729),a.yu=9729);
else{var g=e.createTexture();e.bindTexture(3553,g);if(0<d){var k=a.qs.canvas,l=a.qs;a.ps!==c[0]||a.os!==c[1]?(k.width=c[0],k.height=c[1],a.ps=c[0],a.os=c[1]):l.clearRect(0,0,c[0],c[1]);l.drawImage(b.getImage(),d,d,c[0],c[1],0,0,c[0],c[1]);e.texImage2D(3553,0,6408,6408,5121,k)}else e.texImage2D(3553,0,6408,6408,5121,b.getImage());e.texParameteri(3553,10240,9729);e.texParameteri(3553,10241,9729);e.texParameteri(3553,10242,33071);e.texParameteri(3553,10243,33071);a.fc.set(f,{Oc:g,ju:9729,yu:9729})}}
h=an.prototype;h.kc=function(a,b){var c=this.getMap();if(c.hasListener(a)){var d=this.J,e=b.viewState;c.dispatchEvent(new al(a,new Zm(d,e.center,e.resolution,e.rotation,b.size,b.extent,b.pixelRatio),b,null,d))}};h.T=function(){var a=this.getGL();a.isContextLost()||this.fc.forEach(function(b){b&&a.deleteTexture(b.Oc)});this.J.Ib();Wk.prototype.T.call(this)};h.sz=function(a,b){a=this.getGL();for(var c;1024<this.fc.lh()-this.ik;){if(c=this.fc.vc.Jf)a.deleteTexture(c.Oc);else if(+this.fc.vc.jf==b.index)break;
else--this.ik;this.fc.pop()}};h.getContext=function(){return this.J};h.getGL=function(){return this.oh};h.getType=function(){return"webgl"};h.fg=function(a){a.preventDefault();this.fc.clear();this.ik=0;a=this.Jd;for(var b in a)a[b].fg()};h.np=function(){cn(this);this.getMap().render()};function cn(a){a=a.oh;a.activeTexture(33984);a.blendFuncSeparate(770,771,1,771);a.disable(2884);a.disable(2929);a.disable(3089);a.disable(2960)}h.qq=function(a){var b=this.getContext(),c=this.getGL();if(c.isContextLost())return!1;
if(!a)return this.hb&&(this.j.style.display="none",this.hb=!1),!1;this.$f=a.focus;this.fc.set((-a.index).toString(),null);++this.ik;this.kc("precompose",a);var d=[],e=a.gd;Re(e);var f=a.viewState.resolution,g,k,l,m;g=0;for(k=e.length;g<k;++g)m=e[g],Hk(m,f)&&"ready"==m.bw&&(l=Zk(this,m.layer),l.Rd(a,m,b)&&d.push(m));e=a.size[0]*a.pixelRatio;f=a.size[1]*a.pixelRatio;if(this.j.width!=e||this.j.height!=f)this.j.width=e,this.j.height=f;c.bindFramebuffer(36160,null);c.clearColor(0,0,0,0);c.clear(16384);
c.enable(3042);c.viewport(0,0,this.j.width,this.j.height);g=0;for(k=d.length;g<k;++g)m=d[g],l=Zk(this,m.layer),l.Xg(a,m,b);this.hb||(this.j.style.display="",this.hb=!0);Xk(a);1024<this.fc.lh()-this.ik&&a.ld.push(this.sz.bind(this));this.kk.isEmpty()||(a.ld.push(this.yB),a.animate=!0);this.kc("postcompose",a);$k(this,a);a.ld.push(Yk)};h.za=function(a,b,c,d,e,f,g){var k;if(this.getGL().isContextLost())return!1;var l=b.viewState,m=b.gd,n;for(n=m.length-1;0<=n;--n){k=m[n];var q=k.layer;if(Hk(k,l.resolution)&&
f.call(g,q)&&(k=Zk(this,q).za(a,b,c,d,e)))return k}};h.ue=function(a,b,c,d,e){c=!1;if(this.getGL().isContextLost())return!1;var f=b.viewState,g=b.gd,k;for(k=g.length-1;0<=k;--k){var l=g[k],m=l.layer;if(Hk(l,f.resolution)&&d.call(e,m)&&(c=Zk(this,m).ue(a,b)))return!0}return c};h.forEachLayerAtPixel=function(a,b,c,d,e){if(this.getGL().isContextLost())return!1;var f=b.viewState,g,k=b.gd,l;for(l=k.length-1;0<=l;--l){g=k[l];var m=g.layer;if(Hk(g,f.resolution)&&e.call(d,m)&&(g=Zk(this,m).forEachLayerAtPixel(a,
b,c,d)))return g}};function dn(a,b,c){void 0===c&&(c=[0,0]);c[0]=a[0]+2*b;c[1]=a[1]+2*b;return c}function en(a,b,c){void 0===c&&(c=[0,0]);c[0]=a[0]*b+.5|0;c[1]=a[1]*b+.5|0;return c}function fn(a,b){if(Array.isArray(a))return a;void 0===b?b=[a,a]:b[0]=b[1]=a;return b}var gn=["canvas","webgl"];function U(a){Ge.call(this);var b=hn(a);this.zB=void 0!==a.loadTilesWhileAnimating?a.loadTilesWhileAnimating:!1;this.AB=void 0!==a.loadTilesWhileInteracting?a.loadTilesWhileInteracting:!1;this.Ja=void 0!==a.pixelRatio?
a.pixelRatio:Sd;this.DB=b.wg;this.Zr=function(){this.Nf=void 0;this.wD.call(this,Date.now())}.bind(this);this.Xy=Lk();this.CC=Lk();this.Nz=0;this.la=null;this.hv=We();this.Sl=this.tn=this.vn=null;this.mb=document.createElement("DIV");this.mb.className="ol-viewport"+(Xd?" ol-touch":"");this.mb.style.position="relative";this.mb.style.overflow="hidden";this.mb.style.width="100%";this.mb.style.height="100%";this.mb.style.msTouchAction="none";this.mb.style.touchAction="none";this.Ij=document.createElement("DIV");
this.Ij.className="ol-overlaycontainer";this.mb.appendChild(this.Ij);this.yg=document.createElement("DIV");this.yg.className="ol-overlaycontainer-stopevent";a=[Ce.CLICK,"dblclick","mousedown","touchstart","mspointerdown","pointerdown","mousewheel","wheel"];for(var c=0,d=a.length;c<d;++c)G(this.yg,a[c],Ae);this.mb.appendChild(this.yg);this.lu=new oi(this);for(var e in Ph)G(this.lu,Ph[e],this.Bt,this);this.St=b.keyboardEventTarget;this.pj=null;G(this.mb,"wheel",this.ph,this);G(this.mb,"mousewheel",
this.ph,this);this.Bd=b.controls;this.Ll=b.interactions;this.rm=b.overlays;this.Jp={};this.Vj=new b.CD(this.mb,this);this.$f=null;this.dv=[];this.$m=new wi(this.$z.bind(this),this.OA.bind(this));this.Dq={};G(this,Ie("layergroup"),this.uA,this);G(this,Ie("view"),this.RA,this);G(this,Ie("size"),this.LA,this);G(this,Ie("target"),this.NA,this);this.setProperties(b.values);this.Bd.forEach(function(a){a.setMap(this)},this);G(this.Bd,"add",function(a){a.element.setMap(this)},this);G(this.Bd,"remove",function(a){a.element.setMap(null)},
this);this.Ll.forEach(function(a){a.setMap(this)},this);G(this.Ll,"add",function(a){a.element.setMap(this)},this);G(this.Ll,"remove",function(a){a.element.setMap(null)},this);this.rm.forEach(this.Xr,this);G(this.rm,"add",function(a){this.Xr(a.element)},this);G(this.rm,"remove",function(a){var b=a.element.getId();void 0!==b&&delete this.Jp[b.toString()];a.element.setMap(null)},this)}A(U,Ge);h=U.prototype;h.addControl=function(a){this.getControls().push(a)};h.addInteraction=function(a){this.getInteractions().push(a)};
h.addLayer=function(a){this.getLayerGroup().getLayers().push(a)};h.addOverlay=function(a){this.getOverlays().push(a)};h.Xr=function(a){var b=a.getId();void 0!==b&&(this.Jp[b.toString()]=a);a.setMap(this)};h.T=function(){this.lu.Ib();this.Vj.Ib();we(this.mb,"wheel",this.ph,this);we(this.mb,"mousewheel",this.ph,this);void 0!==this.Gd&&(window.removeEventListener("resize",this.Gd,!1),this.Gd=void 0);this.Nf&&(cancelAnimationFrame(this.Nf),this.Nf=void 0);this.setTarget(null);Ge.prototype.T.call(this)};
h.forEachFeatureAtPixel=function(a,b,c){if(this.la)return a=this.getCoordinateFromPixel(a),c=void 0!==c?c:{},this.Vj.za(a,this.la,void 0!==c.hitTolerance?c.hitTolerance*this.la.pixelRatio:0,b,null,void 0!==c.layerFilter?c.layerFilter:Df,null)};h.forEachLayerAtPixel=function(a,b,c,d,e){if(this.la)return this.Vj.forEachLayerAtPixel(a,this.la,b,void 0!==c?c:null,void 0!==d?d:Df,void 0!==e?e:null)};h.hasFeatureAtPixel=function(a,b){if(!this.la)return!1;a=this.getCoordinateFromPixel(a);b=void 0!==b?b:
{};return this.Vj.ue(a,this.la,void 0!==b.hitTolerance?b.hitTolerance*this.la.pixelRatio:0,void 0!==b.layerFilter?b.layerFilter:Df,null)};h.getEventCoordinate=function(a){return this.getCoordinateFromPixel(this.getEventPixel(a))};h.getEventPixel=function(a){var b=this.mb.getBoundingClientRect();a=a.changedTouches?a.changedTouches[0]:a;return[a.clientX-b.left,a.clientY-b.top]};h.getTarget=function(){return this.get("target")};h.getTargetElement=function(){var a=this.getTarget();return void 0!==a?"string"===
typeof a?document.getElementById(a):a:null};h.getCoordinateFromPixel=function(a){var b=this.la;return b?Qk(b.Ih,a.slice()):null};h.getControls=function(){return this.Bd};h.getOverlays=function(){return this.rm};h.getOverlayById=function(a){a=this.Jp[a.toString()];return void 0!==a?a:null};h.getInteractions=function(){return this.Ll};h.getLayerGroup=function(){return this.get("layergroup")};h.getLayers=function(){return this.getLayerGroup().getLayers()};h.getPixelFromCoordinate=function(a){var b=this.la;
return b?Qk(b.Pe,a.slice(0,2)):null};h.getSize=function(){return this.get("size")};h.getView=function(){return this.get("view")};h.getViewport=function(){return this.mb};h.$z=function(a,b,c,d){var e=this.la;if(!(e&&b in e.pi&&e.pi[b][a.getKey()]))return Infinity;a=c[0]-e.focus[0];c=c[1]-e.focus[1];return 65536*Math.log(d)+Math.sqrt(a*a+c*c)/d};h.ph=function(a,b){a=new Oh(b||a.type,this,a);this.Bt(a)};h.Bt=function(a){if(this.la){this.$f=a.coordinate;a.frameState=this.la;var b=this.getInteractions().getArray(),
c;if(!1!==this.dispatchEvent(a))for(c=b.length-1;0<=c;c--){var d=b[c];if(d.getActive()&&!d.handleEvent(a))break}}};h.IA=function(){var a=this.la,b=this.$m;if(!b.isEmpty()){var c=16,d=c;if(a){var e=a.Pc;e[0]&&(c=this.zB?8:0,d=2);e[1]&&(c=this.AB?8:0,d=2)}b.dn<c&&(vi(b),xi(b,c,d))}b=this.dv;c=0;for(d=b.length;c<d;++c)b[c](this,a);b.length=0};h.LA=function(){this.render()};h.NA=function(){var a;this.getTarget()&&(a=this.getTargetElement());if(this.pj){for(var b=0,c=this.pj.length;b<c;++b)qe(this.pj[b]);
this.pj=null}a?(a.appendChild(this.mb),a=this.St?this.St:a,this.pj=[G(a,"keydown",this.ph,this),G(a,"keypress",this.ph,this)],this.Gd||(this.Gd=this.updateSize.bind(this),window.addEventListener("resize",this.Gd,!1))):(Jd(this.mb),void 0!==this.Gd&&(window.removeEventListener("resize",this.Gd,!1),this.Gd=void 0));this.updateSize()};h.OA=function(){this.render()};h.Et=function(){this.render()};h.RA=function(){this.vn&&(qe(this.vn),this.vn=null);this.tn&&(qe(this.tn),this.tn=null);var a=this.getView();
a&&(this.mb.setAttribute("data-view",D(a)),this.vn=G(a,"propertychange",this.Et,this),this.tn=G(a,Ce.CHANGE,this.Et,this));this.render()};h.uA=function(){this.Sl&&(this.Sl.forEach(qe),this.Sl=null);var a=this.getLayerGroup();a&&(this.Sl=[G(a,"propertychange",this.render,this),G(a,Ce.CHANGE,this.render,this)]);this.render()};h.renderSync=function(){this.Nf&&cancelAnimationFrame(this.Nf);this.Zr()};h.render=function(){void 0===this.Nf&&(this.Nf=requestAnimationFrame(this.Zr))};h.removeControl=function(a){return this.getControls().remove(a)};
h.removeInteraction=function(a){return this.getInteractions().remove(a)};h.removeLayer=function(a){return this.getLayerGroup().getLayers().remove(a)};h.removeOverlay=function(a){return this.getOverlays().remove(a)};h.wD=function(a){var b,c,d=this.getSize(),e=this.getView(),f=We(),g=null;if(void 0!==d&&0<d[0]&&0<d[1]&&e&&fj(e)){var g=Zi(e,this.la?this.la.Pc:void 0),k=this.getLayerGroup().Wo(),l={};b=0;for(c=k.length;b<c;++b)l[D(k[b].layer)]=k[b];b=e.getState();g={animate:!1,attributions:{},Pe:this.Xy,
extent:f,focus:this.$f?this.$f:b.center,index:this.Nz++,tj:l,gd:k,wg:le({},this.DB),pixelRatio:this.Ja,Ih:this.CC,ld:[],size:d,Jg:this.Dq,Sq:this.$m,time:a,pk:{},viewState:b,Pc:g,pi:{}}}g&&(g.extent=yf(b.center,b.resolution,b.rotation,g.size,f));this.la=g;this.Vj.qq(g);g&&(g.animate&&this.render(),Array.prototype.push.apply(this.dv,g.ld),g.Pc[0]||g.Pc[1]||lf(g.extent,this.hv)||(this.dispatchEvent(new Nh("moveend",this,g)),af(g.extent,this.hv)));this.dispatchEvent(new Nh("postrender",this,g));setTimeout(this.IA.bind(this),
0)};h.setLayerGroup=function(a){this.set("layergroup",a)};h.setSize=function(a){this.set("size",a)};h.setTarget=function(a){this.set("target",a)};h.setView=function(a){this.set("view",a)};h.Yv=function(a){a=D(a).toString();this.Dq[a]=!0;this.render()};h.updateSize=function(){var a=this.getTargetElement();if(a){var b=getComputedStyle(a);this.setSize([a.offsetWidth-parseFloat(b.borderLeftWidth)-parseFloat(b.paddingLeft)-parseFloat(b.paddingRight)-parseFloat(b.borderRightWidth),a.offsetHeight-parseFloat(b.borderTopWidth)-
parseFloat(b.paddingTop)-parseFloat(b.paddingBottom)-parseFloat(b.borderBottomWidth)])}else this.setSize(void 0)};h.yw=function(a){a=D(a).toString();delete this.Dq[a];this.render()};function hn(a){var b=null;void 0!==a.keyboardEventTarget&&(b="string"===typeof a.keyboardEventTarget?document.getElementById(a.keyboardEventTarget):a.keyboardEventTarget);var c={},d={};if(void 0===a.logo||"boolean"===typeof a.logo&&a.logo)d["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]=
"https://openlayers.org/";else{var e=a.logo;"string"===typeof e?d[e]="":e instanceof HTMLElement?d[D(e).toString()]=e:e&&(qd("string"==typeof e.href,44),qd("string"==typeof e.src,45),d[e.src]=e.href)}e=a.layers instanceof wk?a.layers:new wk({layers:a.layers});c.layergroup=e;c.target=a.target;c.view=void 0!==a.view?a.view:new Wi;var e=Wk,f;void 0!==a.renderer?(Array.isArray(a.renderer)?f=a.renderer:"string"===typeof a.renderer?f=[a.renderer]:qd(!1,46),0<=f.indexOf("dom")&&(f=f.concat(gn))):f=gn;var g,
k;g=0;for(k=f.length;g<k;++g){var l=f[g];if("canvas"==l){if(Ud){e=jl;break}}else if("webgl"==l&&Md){e=an;break}}void 0!==a.controls?Array.isArray(a.controls)?f=new Jh(a.controls.slice()):(qd(a.controls instanceof Jh,47),f=a.controls):f=oj();void 0!==a.interactions?Array.isArray(a.interactions)?g=new Jh(a.interactions.slice()):(qd(a.interactions instanceof Jh,48),g=a.interactions):g=tk();void 0!==a.overlays?Array.isArray(a.overlays)?a=new Jh(a.overlays.slice()):(qd(a.overlays instanceof Jh,49),a=a.overlays):
a=new Jh;return{controls:f,interactions:g,keyboardEventTarget:b,wg:d,overlays:a,CD:e,values:c}}Fk();function jn(a){Ge.call(this);this.El=a.id;this.fB=void 0!==a.insertFirst?a.insertFirst:!0;this.bE=void 0!==a.stopEvent?a.stopEvent:!0;this.element_=document.createElement("DIV");this.element_.className="ol-overlay-container";this.element_.style.position="absolute";this.autoPan=void 0!==a.autoPan?a.autoPan:!1;this.ds=a.autoPanAnimation||{};this.Jy=void 0!==a.autoPanMargin?a.autoPanMargin:20;this.ob=
{Nk:"",Tl:"",Lm:"",kn:"",visible:!0};this.Zl=null;G(this,Ie(kn),this.nA,this);G(this,Ie(ln),this.zA,this);G(this,Ie(mn),this.EA,this);G(this,Ie(nn),this.GA,this);G(this,Ie(on),this.HA,this);void 0!==a.element&&this.setElement(a.element);this.setOffset(void 0!==a.offset?a.offset:[0,0]);this.setPositioning(void 0!==a.positioning?a.positioning:"top-left");void 0!==a.position&&this.setPosition(a.position)}A(jn,Ge);jn.prototype.getElement=function(){return this.get(kn)};jn.prototype.getId=function(){return this.El};
jn.prototype.getMap=function(){return this.get(ln)};h=jn.prototype;h.getOffset=function(){return this.get(mn)};h.getPosition=function(){return this.get(nn)};h.getPositioning=function(){return this.get(on)};h.nA=function(){for(var a=this.element_;a.lastChild;)a.removeChild(a.lastChild);(a=this.getElement())&&this.element_.appendChild(a)};h.zA=function(){this.Zl&&(Jd(this.element_),qe(this.Zl),this.Zl=null);var a=this.getMap();a&&(this.Zl=G(a,"postrender",this.render,this),pn(this),a=this.bE?a.yg:a.Ij,
this.fB?a.insertBefore(this.element_,a.childNodes[0]||null):a.appendChild(this.element_))};h.render=function(){pn(this)};h.EA=function(){pn(this)};h.GA=function(){pn(this);this.get(nn)&&this.autoPan&&this.Lp()};h.HA=function(){pn(this)};h.setElement=function(a){this.set(kn,a)};h.setMap=function(a){this.set(ln,a)};h.setOffset=function(a){this.set(mn,a)};h.setPosition=function(a){this.set(nn,a)};h.Lp=function(){var a=this.getMap();if(a&&a.getTargetElement()){var b=qn(a.getTargetElement(),a.getSize()),
c=this.getElement(),d=c.offsetWidth,e=c.currentStyle||getComputedStyle(c),d=d+(parseInt(e.marginLeft,10)+parseInt(e.marginRight,10)),e=c.offsetHeight,f=c.currentStyle||getComputedStyle(c),e=e+(parseInt(f.marginTop,10)+parseInt(f.marginBottom,10)),g=qn(c,[d,e]),c=this.Jy;ef(b,g)||(d=g[0]-b[0],e=b[2]-g[2],f=g[1]-b[1],g=b[3]-g[3],b=[0,0],0>d?b[0]=d-c:0>e&&(b[0]=Math.abs(e)+c),0>f?b[1]=f-c:0>g&&(b[1]=Math.abs(g)+c),0===b[0]&&0===b[1])||(c=a.getView().getCenter(),c=a.getPixelFromCoordinate(c),b=[c[0]+
b[0],c[1]+b[1]],a.getView().animate({center:a.getCoordinateFromPixel(b),duration:this.ds.duration,easing:this.ds.easing}))}};function qn(a,b){var c=a.getBoundingClientRect();a=c.left+window.pageXOffset;c=c.top+window.pageYOffset;return[a,c,a+b[0],c+b[1]]}h.setPositioning=function(a){this.set(on,a)};jn.prototype.setVisible=function(a){this.ob.visible!==a&&(this.element_.style.display=a?"":"none",this.ob.visible=a)};function pn(a){var b=a.getMap(),c=a.getPosition();if(b&&b.la&&c){var c=b.getPixelFromCoordinate(c),
d=b.getSize(),b=a.element_.style,e=a.getOffset(),f=a.getPositioning(),g=e[0],e=e[1];if("bottom-right"==f||"center-right"==f||"top-right"==f)""!==a.ob.Tl&&(a.ob.Tl=b.left=""),g=Math.round(d[0]-c[0]-g)+"px",a.ob.Lm!=g&&(a.ob.Lm=b.right=g);else{""!==a.ob.Lm&&(a.ob.Lm=b.right="");if("bottom-center"==f||"center-center"==f||"top-center"==f)g-=a.element_.offsetWidth/2;g=Math.round(c[0]+g)+"px";a.ob.Tl!=g&&(a.ob.Tl=b.left=g)}if("bottom-left"==f||"bottom-center"==f||"bottom-right"==f)""!==a.ob.kn&&(a.ob.kn=
b.top=""),c=Math.round(d[1]-c[1]-e)+"px",a.ob.Nk!=c&&(a.ob.Nk=b.bottom=c);else{""!==a.ob.Nk&&(a.ob.Nk=b.bottom="");if("center-left"==f||"center-center"==f||"center-right"==f)e-=a.element_.offsetHeight/2;c=Math.round(c[1]+e)+"px";a.ob.kn!=c&&(a.ob.kn=b.top=c)}a.setVisible(!0)}else a.setVisible(!1)}var kn="element",ln="map",mn="offset",nn="position",on="positioning";function rn(a){a=a?a:{};this.xa=void 0!==a.collapsed?a.collapsed:!0;this.qb=void 0!==a.collapsible?a.collapsible:!0;this.qb||(this.xa=
!1);var b=void 0!==a.className?a.className:"ol-overviewmap",c=void 0!==a.tipLabel?a.tipLabel:"Overview map",d=void 0!==a.collapseLabel?a.collapseLabel:"\u00ab";"string"===typeof d?(this.ic=document.createElement("span"),this.ic.textContent=d):this.ic=d;d=void 0!==a.label?a.label:"\u00bb";"string"===typeof d?(this.ua=document.createElement("span"),this.ua.textContent=d):this.ua=d;var e=this.qb&&!this.xa?this.ic:this.ua,d=document.createElement("button");d.setAttribute("type","button");d.title=c;d.appendChild(e);
G(d,Ce.CLICK,this.Gc,this);this.Kp=document.createElement("DIV");this.Kp.className="ol-overviewmap-map";var f=this.Nb=new U({controls:new Jh,interactions:new Jh,view:a.view});a.layers&&a.layers.forEach(function(a){f.addLayer(a)},this);c=document.createElement("DIV");c.className="ol-overviewmap-box";c.style.boxSizing="border-box";this.eo=new jn({position:[0,0],positioning:"bottom-left",element:c});this.Nb.addOverlay(this.eo);c=document.createElement("div");c.className=b+" ol-unselectable ol-control"+
(this.xa&&this.qb?" ol-collapsed":"")+(this.qb?"":" ol-uncollapsible");c.appendChild(this.Kp);c.appendChild(d);Ke.call(this,{element:c,render:a.render?a.render:sn,target:a.target})}A(rn,Ke);h=rn.prototype;h.setMap=function(a){var b=this.getMap();a!==b&&(b&&((b=b.getView())&&we(b,Ie("rotation"),this.zl,this),this.Nb.setTarget(null)),Ke.prototype.setMap.call(this,a),a&&(this.Nb.setTarget(this.Kp),this.sg.push(G(a,"propertychange",this.AA,this)),0===this.Nb.getLayers().getLength()&&this.Nb.setLayerGroup(a.getLayerGroup()),
a=a.getView()))&&(G(a,Ie("rotation"),this.zl,this),fj(a)&&(this.Nb.updateSize(),tn(this)))};h.AA=function(a){"view"===a.key&&((a=a.oldValue)&&we(a,Ie("rotation"),this.zl,this),a=this.getMap().getView(),G(a,Ie("rotation"),this.zl,this))};h.zl=function(){this.Nb.getView().setRotation(this.getMap().getView().getRotation())};function sn(){var a=this.getMap(),b=this.Nb;if(a.la&&b.la){var c=a.getSize(),a=a.getView().calculateExtent(c),d=b.getSize(),c=b.getView().calculateExtent(d),e=b.getPixelFromCoordinate(sf(a)),
f=b.getPixelFromCoordinate(pf(a)),b=Math.abs(e[0]-f[0]),e=Math.abs(e[1]-f[1]),f=d[0],d=d[1];b<.1*f||e<.1*d||b>.75*f||e>.75*d?tn(this):ef(c,a)||(c=this.getMap(),a=this.Nb,c=c.getView(),a.getView().setCenter(c.getCenter()))}un(this)}function tn(a){var b=a.getMap();a=a.Nb;var c=b.getSize(),b=b.getView().calculateExtent(c);a=a.getView();Bf(b,1/(.1*Math.pow(2,Math.log(7.5)/Math.LN2/2)));a.fit(b)}function un(a){var b=a.getMap(),c=a.Nb;if(b.la&&c.la){var d=b.getSize(),e=b.getView(),f=c.getView(),c=e.getRotation(),
b=a.eo,g=a.eo.getElement(),k=e.calculateExtent(d),d=f.getResolution(),e=of(k),f=rf(k),l;if(a=a.getMap().getView().getCenter())l=[e[0]-a[0],e[1]-a[1]],Qi(l,c),Ki(l,a);b.setPosition(l);g&&(g.style.width=Math.abs((e[0]-f[0])/d)+"px",g.style.height=Math.abs((f[1]-e[1])/d)+"px")}}h.Gc=function(a){a.preventDefault();this.ef()};h.ef=function(){this.element.classList.toggle("ol-collapsed");this.xa?Id(this.ic,this.ua):Id(this.ua,this.ic);this.xa=!this.xa;var a=this.Nb;this.xa||a.la||(a.updateSize(),tn(this),
ve(a,"postrender",function(){un(this)},this))};h.getCollapsible=function(){return this.qb};h.setCollapsible=function(a){this.qb!==a&&(this.qb=a,this.element.classList.toggle("ol-uncollapsible"),!a&&this.xa&&this.ef())};h.setCollapsed=function(a){this.qb&&this.xa!==a&&this.ef()};h.getCollapsed=function(){return this.xa};h.getOverviewMap=function(){return this.Nb};M.impl.control.OverviewMap={};M.impl.control.OverviewMap=function(a){this.toggleDelay_=0;M.utils.isNullOrEmpty(a.toggleDelay)||(this.toggleDelay_=
a.toggleDelay);this.collapsedButtonClass_="g-cartografia-mundo";M.utils.isNullOrEmpty(a.collapsedButtonClass)||(this.collapsedButtonClass_=a.collapsedButtonClass);this.openedButtonClass_="g-cartografia-flecha-derecha2";M.utils.isNullOrEmpty(a.openedButtonClass)||(this.openedButtonClass_=a.openedButtonClass);this.facadeMap_=null};v(M.impl.control.OverviewMap,rn);M.impl.control.OverviewMap.prototype.addTo=function(a){var b=this;this.facadeMap_=a;var c=[];a.getLayers().forEach(function(a){var d=a.getImpl().getOL3Layer();
if(M.utils.isNullOrEmpty(d))a.getImpl().on(M.evt.ADDED_TO_MAP,b.Hk,b);else c.push(d)},this);rn.call(this,{layers:c,view:new M.impl.View({projection:H(a.getProjection().code),resolutions:a.getResolutions()})});var d=this.element.querySelector("button");!0===this.xa?tb(d,this.collapsedButtonClass_):tb(d,this.openedButtonClass_);a.getMapImpl().addControl(this)};M.impl.control.OverviewMap.prototype.getElement=function(){return this.element};M.impl.control.OverviewMap.prototype.Hk=function(a){console.log(a);
a.un(M.evt.ADDED_TO_MAP,this.Hk,this);this.getOverviewMap().addLayer(a.getOL3Layer())};M.impl.control.OverviewMap.prototype.destroy=function(){this.facadeMap_.getMapImpl().removeControl(this);this.facadeMap_=null};M.impl.control.Panzoom={};M.impl.control.Panzoom=function(){this.facadeMap_=null;nj.call(this)};v(M.impl.control.Panzoom,nj);M.impl.control.Panzoom.prototype.addTo=function(a){this.facadeMap_=a;a.getMapImpl().addControl(this)};M.impl.control.Panzoom.prototype.getElement=function(){return this.element};
M.impl.control.Panzoom.prototype.destroy=function(){this.facadeMap_.getMapImpl().removeControl(this);this.facadeMap_=null};function vn(a){a=a?a:{};this.Zg=void 0;this.Ni=wn;this.wn=this.Bl=0;this.Qq=null;this.Zv=!1;this.ra=void 0!==a.duration?a.duration:200;var b=void 0!==a.className?a.className:"ol-zoomslider",c=document.createElement("button");c.setAttribute("type","button");c.className=b+"-thumb ol-unselectable";var d=document.createElement("div");d.className=b+" ol-unselectable ol-control";d.appendChild(c);
this.$k=new ji(d);G(this.$k,"pointerdown",this.mA,this);G(this.$k,"pointermove",this.kA,this);G(this.$k,"pointerup",this.lA,this);G(d,Ce.CLICK,this.hA,this);G(c,Ce.CLICK,Ae);Ke.call(this,{element:d,render:a.render?a.render:xn})}A(vn,Ke);vn.prototype.T=function(){this.$k.Ib();Ke.prototype.T.call(this)};var wn=0;h=vn.prototype;h.setMap=function(a){Ke.prototype.setMap.call(this,a);a&&a.render()};function xn(a){if(a.frameState){if(!this.Zv){var b=this.element,c=b.offsetWidth,d=b.offsetHeight,e=b.firstElementChild,
f=getComputedStyle(e),b=e.offsetWidth+parseFloat(f.marginRight)+parseFloat(f.marginLeft),e=e.offsetHeight+parseFloat(f.marginTop)+parseFloat(f.marginBottom);this.Qq=[b,e];c>d?(this.Ni=1,this.wn=c-b):(this.Ni=wn,this.Bl=d-e);this.Zv=!0}a=a.frameState.viewState.resolution;a!==this.Zg&&(this.Zg=a,yn(this,a))}}h.hA=function(a){var b=this.getMap().getView();a=zn(this,rd(1===this.Ni?(a.offsetX-this.Qq[0]/2)/this.wn:(a.offsetY-this.Qq[1]/2)/this.Bl,0,1));b.animate({resolution:b.constrainResolution(a),duration:this.ra,
easing:Vi.easeOut})};h.mA=function(a){this.je||a.originalEvent.target!==this.element.firstElementChild||(Xi(this.getMap().getView(),1,1),this.Vp=a.clientX,this.Wp=a.clientY,this.je=!0)};h.kA=function(a){if(this.je){var b=this.element.firstElementChild;this.Zg=zn(this,rd(1===this.Ni?(a.clientX-this.Vp+parseInt(b.style.left,10))/this.wn:(a.clientY-this.Wp+parseInt(b.style.top,10))/this.Bl,0,1));this.getMap().getView().setResolution(this.Zg);yn(this,this.Zg);this.Vp=a.clientX;this.Wp=a.clientY}};h.lA=
function(){if(this.je){var a=this.getMap().getView();Xi(a,1,-1);a.animate({resolution:a.constrainResolution(this.Zg),duration:this.ra,easing:Vi.easeOut});this.je=!1;this.Wp=this.Vp=void 0}};function yn(a,b){b=1-ej(a.getMap().getView())(b);var c=a.element.firstElementChild;1==a.Ni?c.style.left=a.wn*b+"px":c.style.top=a.Bl*b+"px"}function zn(a,b){return dj(a.getMap().getView())(1-b)}M.impl.control.Panzoombar={};M.impl.control.Panzoombar=function(){this.facadeMap_=null;vn.call(this)};v(M.impl.control.Panzoombar,
vn);M.impl.control.Panzoombar.prototype.addTo=function(a){this.facadeMap_=a;a.getMapImpl().addControl(this)};M.impl.control.Panzoombar.prototype.getElement=function(){return this.element};M.impl.control.Panzoombar.prototype.destroy=function(){this.facadeMap_.getMapImpl().removeControl(this);this.facadeMap_=null};M.impl.control.Scale={};M.impl.control.Scale=function(){this.facadeMap_=null};v(M.impl.control.Scale,M.impl.Control);M.impl.control.Scale.prototype.addTo=function(a,b){this.facadeMap_=a;this.Nv=
b.querySelector("#".concat("m-scale-span"));Ke.call(this,{element:b,render:this.render,target:null});a.getMapImpl().addControl(this)};M.impl.control.Scale.prototype.render=function(a){a=a.frameState;M.utils.isNullOrEmpty(a)||M.impl.control.Scale.oi(a.viewState,this.Nv,this.facadeMap_)};M.impl.control.Scale.oi=function(a,b,c){b.innerHTML=c.getScale()};M.impl.control.Scale.prototype.destroy=function(){M.impl.control.Scale.ab.destroy.call(this);this.Nv=null};function An(a){a=a?a:{};var b=void 0!==a.className?
a.className:"ol-scale-line";this.Kl=document.createElement("DIV");this.Kl.className=b+"-inner";this.element_=document.createElement("DIV");this.element_.className=b+" ol-unselectable";this.element_.appendChild(this.Kl);this.Lw=null;this.Cj=void 0!==a.minWidth?a.minWidth:64;this.hb=!1;this.Ev=void 0;this.Sh="";Ke.call(this,{element:this.element_,render:a.render?a.render:Bn,target:a.target});G(this,Ie(Cn),this.PA,this);this.setUnits(a.units||"metric")}A(An,Ke);var Dn=[1,2,5];An.prototype.getUnits=function(){return this.get(Cn)};
function Bn(a){this.Lw=(a=a.frameState)?a.viewState:null;this.oi()}An.prototype.PA=function(){this.oi()};An.prototype.setUnits=function(a){this.set(Cn,a)};An.prototype.oi=function(){var a=this.Lw;if(a){var b=a.center,c=a.projection,d=c.getMetersPerUnit(),a=Of(c,a.resolution,b)*d,c=this.Cj*a,b="",d=this.getUnits();"degrees"==d?(b=Hf.degrees,a/=b,c<b/60?(b="\u2033",a*=3600):c<b?(b="\u2032",a*=60):b="\u00b0"):"imperial"==d?.9144>c?(b="in",a/=.0254):1609.344>c?(b="ft",a/=.3048):(b="mi",a/=1609.344):"nautical"==
d?(a/=1852,b="nm"):"metric"==d?1>c?(b="mm",a*=1E3):1E3>c?b="m":(b="km",a/=1E3):"us"==d?.9144>c?(b="in",a*=39.37):1609.344>c?(b="ft",a/=.30480061):(b="mi",a/=1609.3472):qd(!1,33);for(var d=3*Math.floor(Math.log(this.Cj*a)/Math.log(10)),e;;){e=Dn[(d%3+3)%3]*Math.pow(10,Math.floor(d/3));c=Math.round(e/a);if(isNaN(c)){this.element_.style.display="none";this.hb=!1;return}if(c>=this.Cj)break;++d}a=e+" "+b;this.Sh!=a&&(this.Sh=this.Kl.innerHTML=a);this.Ev!=c&&(this.Kl.style.width=c+"px",this.Ev=c);this.hb||
(this.element_.style.display="",this.hb=!0)}else this.hb&&(this.element_.style.display="none",this.hb=!1)};var Cn="units";M.impl.control.ScaleLine={};M.impl.control.ScaleLine=function(){this.facadeMap_=null;An.call(this)};v(M.impl.control.ScaleLine,An);M.impl.control.ScaleLine.prototype.addTo=function(a){this.facadeMap_=a;a.getMapImpl().addControl(this)};M.impl.control.ScaleLine.prototype.getElement=function(){return this.element};M.impl.control.ScaleLine.prototype.destroy=function(){this.facadeMap_.getMapImpl().removeControl(this);
this.facadeMap_=null};M.impl.control.WMCSelector={};M.impl.control.WMCSelector=function(){};v(M.impl.control.WMCSelector,M.impl.Control);M.impl.control.WMCSelector.prototype.addTo=function(a,b){b.getElementsByTagName("select")[0].addEventListener("change",function(b){a.getWMC(b.target.options[b.target.selectedIndex].text)[0].select()});M.impl.control.WMCSelector.ab.addTo.call(this,a,b)};function En(a){if(a.Rg){if(a.az!=a.getRevision()||a.cz!=JSON.stringify(void 0))a.bz=a.Rg(void 0),a.az=a.getRevision(),
a.cz=JSON.stringify(void 0);return a.bz}return a}Fn.prototype.Rg=function(){for(var a=[],b=this.getGeometries(),c=0;c<b.length;c++)a.push(En(b[c]));return new Fn(a)};Q.prototype.Rg=function(){for(var a=[],b=this.getLineStrings(),c=0;c<b.length;c++)a.push(En(b[c]).getCoordinates());return new Q(a)};R.prototype.Rg=function(){for(var a=[],b=this.getCoordinates(),c=0;c<b.length;c++)a.push(En(new P(b[c])).getCoordinates());return new R(a)};S.prototype.Rg=function(){for(var a=[],b=this.getPolygons(),c=
0;c<b.length;c++)a.push(En(b[c]).getCoordinates());return new S(a)};P.prototype.Rg=function(a){function b(a,b,c,d){a=c-a;b=d-b;return Math.sqrt(a*a+b*b)}a||(a={});var c=this.getCoordinates(),d="number"===typeof a.hE?a.hE:.5,e=a.resolution||this.getLength()/c.length/(a.TI||10),f,g=[],k,l,m,n,q,r,t,u,y,z;f=c.slice(0);2<c.length&&c[0][0]==c[c.length-1][0]&&c[0][1]==c[c.length-1][1]?(f.unshift(c[c.length-2]),f.push(c[1])):(f.unshift(c[0]),f.push(c[c.length-1]));for(c=1;c<f.length-2;c++){var B=Math.round(b(f[c][0],
f[c][1],f[c+1][0],f[c+1][1])/e);r=1;a.normalize&&(m=b(f[c+1][0],f[c+1][1],f[c-1][0],f[c-1][1]),n=b(f[c+2][0],f[c+2][1],f[c][0],f[c][1]),r=m<n?m/n:n/m);m=(f[c+1][0]-f[c-1][0])*d*r;n=(f[c+2][0]-f[c][0])*d*r;q=(f[c+1][1]-f[c-1][1])*d*r;r*=(f[c+2][1]-f[c][1])*d;for(z=0;z<=B;z++)k=z/B,l=2*Math.pow(k,3)-3*Math.pow(k,2)+1,t=-(2*Math.pow(k,3))+3*Math.pow(k,2),u=Math.pow(k,3)-2*Math.pow(k,2)+k,y=Math.pow(k,3)-Math.pow(k,2),k=l*f[c][0]+t*f[c+1][0]+u*m+y*n,l=l*f[c][1]+t*f[c+1][1]+u*q+y*r,g.push([k,l])}return new P(g)};
function Gn(a){a||(a={});var b,c=this.j=document.createElement("canvas"),d=(0<Number(a.scale)?Number(a.scale):1)*Sd||Sd,e=c.getContext("2d");if(a.image){a.image.load();var f=a.image.getImage();if(f.width)c.width=Math.round(f.width*d),c.height=Math.round(f.height*d),e.globalAlpha="number"==typeof a.opacity?a.opacity:1,e.drawImage(f,0,0,f.width,f.height,0,0,c.width,c.height),b=e.createPattern(c,"repeat");else{var g=this;b=[0,0,0,0];f.onload=function(){c.width=Math.round(f.width*d);c.height=Math.round(f.height*
d);e.globalAlpha="number"==typeof a.opacity?a.opacity:1;e.drawImage(f,0,0,f.width,f.height,0,0,c.width,c.height);b=e.createPattern(c,"repeat");g.setColor(b)}}}else{var k=Hn(a);c.width=Math.round(k.width*d);c.height=Math.round(k.height*d);e.beginPath();a.fill&&(e.fillStyle=Ed(a.fill.getColor()),e.fillRect(0,0,c.width,c.height));e.scale(d,d);e.lineCap="round";e.lineWidth=k.stroke||1;e.fillStyle=Ed(a.color||"#000");e.strokeStyle=Ed(a.color||"#000");if(k.Gb)for(var l=0;l<k.Gb.length;l++){var m=k.Gb[l];
e.beginPath();e.arc(m[0],m[1],m[2],0,2*Math.PI);k.fill&&e.fill();k.stroke&&e.stroke()}k.repeat||(k.repeat=[[0,0]]);k.char&&(e.font=k.font||k.width+"px Arial",e.textAlign="center",e.textBaseline="middle",k.angle?(e.fillText(k.char,k.width/4,k.height/4),e.fillText(k.char,5*k.width/4,5*k.height/4),e.fillText(k.char,k.width/4,5*k.height/4),e.fillText(k.char,5*k.width/4,k.height/4),e.fillText(k.char,3*k.width/4,3*k.height/4),e.fillText(k.char,-k.width/4,-k.height/4),e.fillText(k.char,3*k.width/4,-k.height/
4),e.fillText(k.char,-k.width/4,3*k.height/4)):e.fillText(k.char,k.width/2,k.height/2));if(k.U)for(l=0;l<k.U.length;l++)for(m=0;m<k.repeat.length;m++){var n=k.U[l];e.beginPath();e.moveTo(n[0]+k.repeat[m][0],n[1]+k.repeat[m][1]);for(var q=2;q<n.length;q+=2)e.lineTo(n[q]+k.repeat[m][0],n[q+1]+k.repeat[m][1]);k.fill&&e.fill();k.stroke&&e.stroke();e.save();e.strokeStyle="red";e.Um=.1;e.restore()}b=e.createPattern(c,"repeat");a.offset&&(l=a.offset,"number"==typeof l&&(l=[l,l]),l instanceof Array&&(k=Math.round(l[0]*
d),l=Math.round(l[1]*d),e.scale(1/d,1/d),e.clearRect(0,0,c.width,c.height),e.translate(k,l),e.fillStyle=b,e.fillRect(-k,-l,c.width,c.height),b=e.createPattern(c,"repeat")))}ke.call(this,{color:b})}A(Gn,ke);Gn.prototype.clone=function(){var a=ke.prototype.clone.call(this);a.j=this.j;return a};Gn.prototype.getImage=function(){return this.j};function Hn(a){var b=Gn.prototype.Yu[a.pattern]||Gn.prototype.Yu.MH,c=Math.round(a.spacing)||10;switch(a.pattern){case "dot":case "circle":var d=0===a.size?0:a.size/
2||2;a.angle?(c=b.width=b.height=Math.round(1.4*c),b.Gb=[[c/4,c/4,d],[3*c/4,3*c/4,d]],"circle"==a.pattern&&(b.Gb=b.Gb.concat([[c/4+c,c/4,d],[c/4,c/4+c,d],[3*c/4-c,3*c/4,d],[3*c/4,3*c/4-c,d],[c/4+c,c/4+c,d],[3*c/4-c,3*c/4-c,d]]))):(b.width=b.height=c,b.Gb=[[c/2,c/2,d]],"circle"==a.pattern&&(b.Gb=b.Gb.concat([[c/2+c,c/2,d],[c/2-c,c/2,d],[c/2,c/2+c,d],[c/2,c/2-c,d],[c/2+c,c/2+c,d],[c/2+c,c/2-c,d],[c/2-c,c/2+c,d],[c/2-c,c/2-c,d]])));break;case "tile":case "square":d=0===a.size?0:a.size/2||2;a.angle?(b.width=
b.height=c,b.U=[[c/2-d,c/2,c/2,c/2-d,c/2+d,c/2,c/2,c/2+d,c/2-d,c/2]]):(b.width=b.height=c,b.U=[[c/2-d,c/2-d,c/2+d,c/2-d,c/2+d,c/2+d,c/2-d,c/2+d,c/2-d,c/2-d]]);"square"==a.pattern&&(b.repeat=[[0,0],[0,c],[c,0],[0,-c],[-c,0],[-c,-c],[c,c],[-c,c],[c,-c]]);break;case "cross":case "hatch":"cross"===a.pattern&&a.angle&&(a.angle=45);var e=Math.round(((a.angle||0)-90)%360);180<e&&(e-=360);e*=Math.PI/180;d=Math.cos(e);e=Math.sin(e);if(1E-4>Math.abs(e))b.width=b.height=c,b.U=[[0,.5,c,.5]],b.repeat=[[0,0],[0,
c]];else if(1E-4>Math.abs(d))b.width=b.height=c,b.U=[[.5,0,.5,c]],b.repeat=[[0,0],[c,0]],"cross"==a.pattern&&(b.U.push([0,.5,c,.5]),b.repeat.push([0,c]));else{var f=b.width=Math.round(Math.abs(c/e))||1,c=b.height=Math.round(Math.abs(c/d))||1;"cross"==a.pattern?(b.U=[[-f,-c,2*f,2*c],[2*f,-c,-f,2*c]],b.repeat=[[0,0]]):0<d*e?(b.U=[[-f,-c,2*f,2*c]],b.repeat=[[0,0],[f,0],[0,c]]):(b.U=[[2*f,-c,-f,2*c]],b.repeat=[[0,0],[-f,0],[0,c]])}b.stroke=0===a.size?0:a.size||4}return b}Gn.prototype.Yu={hatch:{width:5,
height:5,U:[[0,2.5,5,2.5]],stroke:1},cross:{width:7,height:7,U:[[0,3,10,3],[3,0,3,10]],stroke:1},dot:{width:8,height:8,Gb:[[5,5,2]],stroke:!1,fill:!0},circle:{width:10,height:10,Gb:[[5,5,2]],stroke:1,fill:!1},square:{width:10,height:10,U:[[3,3,3,8,8,8,8,3,3,3]],stroke:1,fill:!1},tile:{width:10,height:10,U:[[3,3,3,8,8,8,8,3,3,3]],fill:!0},woven:{width:12,height:12,U:[[3,3,9,9],[0,12,3,9],[9,3,12,0],[-1,1,1,-1],[13,11,11,13]],stroke:1},crosses:{width:8,height:8,U:[[2,2,6,6],[2,6,6,2]],stroke:1},caps:{width:8,
height:8,U:[[2,6,4,2,6,6]],stroke:1},nylon:{width:20,height:20,U:[[1,6,1,1,6,1],[6,11,11,11,11,6],[11,16,11,21,16,21],[16,11,21,11,21,16]],repeat:[[0,0],[-20,0],[0,-20]],stroke:1},hexagon:{width:20,height:12,U:[[0,10,4,4,10,4,14,10,10,16,4,16,0,10]],stroke:1,repeat:[[0,0],[10,6],[10,-6],[-10,-6]]},cemetry:{width:15,height:19,U:[[0,3.5,7,3.5],[3.5,0,3.5,10]],stroke:1,repeat:[[0,0],[7,9]]},sand:{width:20,height:20,Gb:[[1,2,1],[9,3,1],[2,16,1],[7,8,1],[6,14,1],[4,19,1],[14,2,1],[12,10,1],[14,18,1],[18,
8,1],[18,14,1]],fill:1},conglomerate:{width:30,height:20,Gb:[[2,4,1],[17,3,1],[26,18,1],[12,17,1],[5,17,2],[28,11,2]],U:[[7,5,6,7,9,9,11,8,11,6,9,5,7,5],[16,10,15,13,16,14,19,15,21,13,22,9,20,8,19,8,16,10],[24,6,26,7,27,5,26,4,24,4,24,6]],stroke:1},gravel:{width:15,height:10,Gb:[[4,2,1],[5,9,1],[1,7,1]],U:[[7,5,6,6,7,7,8,7,9,7,10,5,9,4,7,5],[11,2,14,4,14,1,12,1,11,2]],stroke:1},brick:{width:18,height:16,U:[[0,1,18,1],[0,10,18,10],[6,1,6,10],[12,10,12,18],[12,0,12,1]],stroke:1},dolomite:{width:20,
height:16,U:[[0,1,20,1],[0,9,20,9],[1,9,6,1],[11,9,14,16],[14,0,14.4,1]],stroke:1},coal:{width:20,height:16,U:[[1,5,7,1,7,7],[11,10,12,5,18,9],[5,10,2,15,9,15],[15,16,15,13,20,16],[15,0,15,2,20,0]],fill:1},breccia:{width:20,height:16,U:[[1,5,7,1,7,7,1,5],[11,10,12,5,18,9,11,10],[5,10,2,15,9,15,5,10],[15,16,15,13,22,18],[15,0,15,2,20,0]],stroke:1},clay:{width:20,height:20,U:[[0,0,3,11,0,20],[11,0,10,3,13,13,11,20],[0,0,10,3,20,0],[0,12,3,11,13,13,20,12]],stroke:1},flooded:{width:15,height:10,U:[[0,
1,10,1],[0,6,5,6],[10,6,15,6]],stroke:1},chaos:{width:40,height:40,U:[[40,2,40,0,38,0,40,2],[4,0,3,2,2,5,0,0,0,3,2,7,5,6,7,7,8,10,9,12,9,13,9,14,8,14,6,15,2,15,0,20,0,22,2,20,5,19,8,15,10,14,11,12.25,10,12,10,10,12,9,13,7,12,6,13,4,16,7,17,4,20,0,18,0,15,3,14,2,14,0,12,1,11,0,10,1,11,4,10,7,9,8,8,5,6,4,5,3,5,1,5,0,4,0],[7,1,7,3,8,3,8,2,7,1],[4,3,5,5,4,5,4,3],[34,5,33,7,38,10,38,8,36,5,34,5],[27,0,23,2,21,8,30,0,27,0],[25,8,26,12,26,16,22.71875,15.375,20,13,18,15,17,18,13,22,17,21,19,22,21,20,19,18,
22,17,30,25,26,26,24,28,21.75,33.34375,20,36,18,40,20,40,24,37,25,32,27,31,26,38,27,37,30,32,32,35,36,37,38,40,38,39,40,40,37,36,34,32,37,31,36,29,33,27,34,24,39,21,40,21,40,16,37,20,31,22,32,25,27,20,29,15,30,20,32,20,34,18,33,12,31,11,29,14,26,9,25,8],[39,24,37,26,40,28,39,24],[13,15,9,19,14,18,13,15],[18,23,14,27,16,27,17,25,20,26,18,23],[6,24,2,26,1,28,2,30,5,28,12,30,16,32,18,30,15,30,12,28,9,25,7,27,6,24],[29,27,32,28,33,31,30,29,27,28,29,27],[5,35,1,33,3,36,13,38,15,35,10,36,5,35]],fill:1},
grass:{width:27,height:22,U:[[0,10.5,13,10.5],[2.5,10,1.5,7],[4.5,10,4.5,5,3.5,4],[7,10,7.5,6,8.5,3],[10,10,11,6]],repeat:[[0,0],[14,10]],stroke:1},swamp:{width:24,height:23,U:[[0,10.5,9.5,10.5],[2.5,10,2.5,7],[4.5,10,4.5,4],[6.5,10,6.5,6],[3,12.5,7,12.5]],repeat:[[0,0],[14,10]],stroke:1},wave:{width:10,height:8,U:[[0,0,5,4,10,0]],stroke:1},vine:{width:13,height:13,U:[[3,0,3,6],[9,7,9,13]],stroke:1},forest:{width:55,height:30,Gb:[[7,7,3.5],[20,20,1.5],[42,22,3.5],[35,5,1.5]],stroke:1},scrub:{width:26,
height:20,U:[[1,4,4,8,6,4]],Gb:[[20,13,1.5]],stroke:1},tree:{width:30,height:30,U:[[7.78,10.61,4.95,10.61,4.95,7.78,3.54,7.78,2.12,6.36,.71,6.36,0,4.24,.71,2.12,4.24,0,7.78,.71,9.19,3.54,7.78,4.95,7.07,7.07,4.95,7.78]],repeat:[[3,1],[18,16]],stroke:1},pine:{width:30,height:30,U:[[5.66,11.31,2.83,11.31,2.83,8.49,0,8.49,2.83,0,5.66,8.49,2.83,8.49]],repeat:[[3,1],[18,16]],stroke:1},pines:{width:22,height:20,U:[[1,4,3.5,1,6,4],[1,8,3.5,5,6,8],[3.5,1,3.5,11],[12,14.5,14.5,14,17,14.5],[12,18,17,18],[14.5,
12,14.5,18]],repeat:[[2,1]],stroke:1},rock:{width:20,height:20,U:[[1,0,1,9],[4,0,4,9],[7,0,7,9],[10,1,19,1],[10,4,19,4],[10,7,19,7],[0,11,9,11],[0,14,9,14],[0,17,9,17],[12,10,12,19],[15,10,15,19],[18,10,18,19]],repeat:[[.5,.5]],stroke:1},rocks:{width:20,height:20,U:[[5,0,3,0,5,4,4,6,0,3,0,5,3,6,5,9,3.75,10,2.5,10,0,9,0,10,4,11,5,14,4,15,0,13,0,13,0,13,0,14,0,14,5,16,5,18,3,19,0,19,-.25,19.9375,5,20,10,19,10,20,11,20,12,19,14,20,15,20,17,19,20,20,20,19,19,16,20,15,20,11,20,10,19,8,20,5,20,0,19,0,20,
2,19,4,17,4,16,3,15,0,14,0,15,4,11,5,10,4,11,0,10,0,9,4,6,5,5,0],[18,5,19,6,18,10,16,10,14,9,16,5,18,5],[5,6,9,5,10,6,10,9,6,10,5,6],[14,5,14,8,13,9,12,9,11,7,12,5,14,5],[5,11,8,10,9,11,10,14,6,15,6,15,5,11],[13,10,14,11,15,14,15,14,15,14,11,15,10,11,11,10,13,10],[15,12,16,11,19,11,19,15,16,14,16,14,15,12],[6,16,9,15,10,18,5,19,6,16],[10,16,14,16,14,18,13,19,11,18,10,16],[15,15,18,16,18,18,16,19,15,18,15,15]],stroke:1}};function In(a){a=void 0===a?{}:a;var b=0;a.stroke&&(b=a.stroke.getWidth());ie.call(this,
{radius:a.radius,fill:a.fill,rotation:a.rotation,rotateWithView:a.rotateWithView});"number"==typeof a.opacity&&this.setOpacity(a.opacity);this.Y=a.color;this.No=a.fontSize||1;this.L=a.stroke;this.ga=a.fill;this.B=a.radius-b;this.Yc=a.form||"none";this.bf=a.gradient;this.Mb=[a.offsetX?a.offsetX:0,a.offsetY?a.offsetY:0];this.re=this.getGlyph(a.cj)||"";Jn(this)}A(In,ie);h=In.prototype;h.defs={fonts:{},glyphs:{}};h.clone=function(){var a=new In({cj:"",color:this.Y,fontSize:this.No,stroke:this.L,fill:this.ga,
radius:this.B+(this.L?this.L.getWidth():0),form:this.Yc,gradient:this.bf,offsetX:this.Mb[0],offsetY:this.Mb[1],opacity:this.getOpacity(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()});a.setScale(this.getScale());a.re=this.re;Jn(a);return a};h.getFill=function(){return this.ga};h.getStroke=function(){return this.L};h.getGlyph=function(a){return a?In.prototype.defs.glyphs[a]||{font:"none","char":a.charAt(0),theme:"none",name:"none",search:""}:this.re};h.getGlyphName=function(){for(var a in In.prototype.defs.glyphs)if(In.prototype.defs.glyphs[a]===
this.re)return a;return""};h.getFontInfo=function(a){return In.prototype.defs.fonts[a.font]};function Jn(a){var b,c=0;a.L&&(b=Ed(a.L.getColor()),c=a.L.getWidth());var d=a.getImage(),e=c,f=d.width,c=d.getContext("2d");c.clearRect(0,0,d.width,d.height);var g=a.ga?a.ga.getColor():"#000",k=a.L?a.L.getColor():"#000";"none"==a.Yc&&a.L&&a.ga&&(k=a.ga.getColor(),g=a.L.getColor());c.setTransform(1,0,0,1,0,0);c.translate(0,0);var l;l=2*a.B+e+1;var m=e/2,n=f/2,q={mc:1,Kh:f/2,xc:f/2};c.lineJoin="round";c.beginPath();
switch(a.Yc){case "none":q.mc=1;break;case "circle":case "ban":c.arc(n,n,l/2,0,2*Math.PI,!0);break;case "poi":c.arc(n,n-.4*a.B,.6*a.B,.15*Math.PI,.85*Math.PI,!0);c.lineTo(n-.89*.05*l,(.95+.45*.05)*l+m);c.arc(n,.95*l+m,.05*l,.85*Math.PI,.15*Math.PI,!0);q={mc:.45,Kh:n,xc:n-.35*a.B};break;case "bubble":c.arc(n,n-.2*a.B,.8*a.B,.4*Math.PI,.6*Math.PI,!0);c.lineTo(.5*l+m,l+m);q={mc:.7,Kh:n,xc:n-.2*a.B};break;case "marker":c.arc(n,n-.2*a.B,.8*a.B,.25*Math.PI,.75*Math.PI,!0);c.lineTo(.5*l+m,l+m);q={mc:.7,
Kh:n,xc:n-.2*a.B};break;case "coma":c.moveTo(n+.8*a.B,n-.2*a.B);c.quadraticCurveTo(.95*l+m,.75*l+m,.5*l+m,l+m);c.arc(n,n-.2*a.B,.8*a.B,.45*Math.PI,0,!1);q={mc:.7,Kh:n,xc:n-.2*a.B};break;default:switch(a.Yc){case "shield":n=[.05,0,.95,0,.95,.8,.5,1,.05,.8,.05,0];q.xc=.45*l+m;break;case "blazon":n=[.1,0,.9,0,.9,.8,.6,.8,.5,1,.4,.8,.1,.8,.1,0];q.mc=.8;q.xc=.4*l+m;break;case "bookmark":n=[.05,0,.95,0,.95,1,.5,.8,.05,1,.05,0];q.mc=.9;q.xc=.4*l+m;break;case "hexagon":n=[.05,.2,.5,0,.95,.2,.95,.8,.5,1,.05,
.8,.05,.2];q.mc=.9;q.xc=.5*l+m;break;case "diamond":n=[.25,0,.75,0,1,.2,1,.4,.5,1,0,.4,0,.2,.25,0];q.mc=.75;q.xc=.35*l+m;break;case "triangle":n=[0,0,1,0,.5,1,0,0];q.mc=.6;q.xc=.3*l+m;break;case "sign":n=[.5,.05,1,.95,0,.95,.5,.05];q.mc=.7;q.xc=.65*l+m;break;case "lozenge":n=[.5,0,1,.5,.5,1,0,.5,.5,0];q.mc=.7;break;default:n=[0,0,1,0,1,1,0,1,0,0]}for(var r=0;r<n.length;r+=2)c.lineTo(n[r]*l+m,n[r+1]*l+m)}c.closePath();l=q;a.ga&&(a.bf&&"none"!=a.Yc?(f=c.createLinearGradient(0,0,f/2,f),f.addColorStop(1,
Ed(g)),f.addColorStop(0,Ed(k)),c.fillStyle=f):c.fillStyle=Ed(g),c.fill());a.L&&e&&(c.strokeStyle=b,c.lineWidth=e,c.stroke());a.re.char&&(c.font=2*l.mc*a.B*a.No+"px "+a.re.font,c.strokeStyle=c.fillStyle,c.lineWidth=e*("none"==a.Yc?2:1),c.fillStyle=Ed(a.Y||k),c.textAlign="center",c.textBaseline="middle",g=a.re.char,e&&"transparent"!=k&&c.strokeText(g,l.Kh,l.xc),c.fillText(g,l.Kh,l.xc));"ban"==a.Yc&&a.L&&e&&(c.strokeStyle=b,c.lineWidth=e,b=a.B+e,e=a.B*Math.cos(Math.PI/4),c.moveTo(b+e,b-e),c.lineTo(b-
e,b+e),c.stroke());c=a.getAnchor();c[0]=d.width/2-a.Mb[0];c[1]=d.width/2-a.Mb[1]}h.getChecksum=function(){var a=null!==this.L?this.L.getChecksum():"-",b=null!==this.ga?this.ga.getChecksum():"-";if(null===this.La||a!=this.La[1]||b!=this.La[2]||this.B!=this.La[3]||this.Yc+"-"+this.At!=this.La[4])this.La=["c"+a+b+(void 0!==this.B?this.B.toString():"-")+this.Yc+"-"+this.At,a,b,this.B,this.Yc+"-"+this.At];return this.La[0]};var Kn={font:"g-cartografia",name:"g-cartografia",prefix:"g-cartografia-"},Ln=
{"g-cartografia-alerta":{font:"g-cartografia",code:59648,name:"alerta",search:"alerta"},"g-cartografia-ayuda":{font:"g-cartografia",code:59649,name:"ayuda",search:"ayuda"},"g-cartografia-bandera":{font:"g-cartografia",code:59650,name:"bandera",search:"bandera"},"g-cartografia-brujula":{font:"g-cartografia",code:59651,name:"brujula",search:"brujula"},"g-cartografia-cancelar":{font:"g-cartografia",code:59652,name:"cancelar",search:"cancelar"},"g-cartografia-cancelar2":{font:"g-cartografia",code:59653,
name:"cancelar2",search:"cancelar2"},"g-cartografia-capas":{font:"g-cartografia",code:59654,name:"capas",search:"capas"},"g-cartografia-capas2":{font:"g-cartografia",code:59655,name:"capas2",search:"capas2"},"g-cartografia-check":{font:"g-cartografia",code:59656,name:"check",search:"check"},"g-cartografia-check2":{font:"g-cartografia",code:59657,name:"check2",search:"check2"},"g-cartografia-check3":{font:"g-cartografia",code:59658,name:"check3",search:"check3"},"g-cartografia-check4":{font:"g-cartografia",
code:59659,name:"check4",search:"check4"},"g-cartografia-check5":{font:"g-cartografia",code:59660,name:"check5",search:"check5"},"g-cartografia-comentarios":{font:"g-cartografia",code:59661,name:"comentarios",search:"comentarios"},"g-cartografia-descargar":{font:"g-cartografia",code:59662,name:"descargar",search:"descargar"},"g-cartografia-editar":{font:"g-cartografia",code:59663,name:"editar",search:"editar"},"g-cartografia-editar2":{font:"g-cartografia",code:59664,name:"editar2",search:"editar2"},
"g-cartografia-escala":{font:"g-cartografia",code:59665,name:"escala",search:"escala"},"g-cartografia-escala2":{font:"g-cartografia",code:59666,name:"alerta",search:"alerta"},"g-cartografia-escala3":{font:"g-cartografia",code:59667,name:"escala3",search:"escala3"},"g-cartografia-flecha":{font:"g-cartografia",code:59668,name:"flecha",search:"flecha"},"g-cartografia-flecha-abajo":{font:"g-cartografia",code:59669,name:"flecha-abajo",search:"flecha-abajo"},"g-cartografia-flecha-abajo2":{font:"g-cartografia",
code:59670,name:"flecha-abajo2",search:"flecha-abajo2"},"g-cartografia-flecha-arriba":{font:"g-cartografia",code:59671,name:"flecha-arriba",search:"flecha-arriba"},"g-cartografia-flecha-arriba2":{font:"g-cartografia",code:59672,name:"alerta",search:"alerta"},"g-cartografia-flecha-derecha":{font:"g-cartografia",code:59673,name:"flecha-derecha",search:"flecha-derecha"},"g-cartografia-flecha-derecha2":{font:"g-cartografia",code:59674,name:"flecha-derecha2",search:"flecha-derecha2"},"g-cartografia-flecha-derecha3":{font:"g-cartografia",
code:59675,name:"fleha-derecha3",search:"fleha-derecha3"},"g-cartografia-flecha-deshacer":{font:"g-cartografia",code:59676,name:"flecha-deshacer",search:"flecha-deshacer"},"g-cartografia-flecha-izquierda":{font:"g-cartografia",code:59677,name:"flecha-izquierda",search:"flecha-izquierda"},"g-cartografia-flecha-izquierda2":{font:"g-cartografia",code:59678,name:"flecha-izquierda2",search:"flecha-izquierda2"},"g-cartografia-flecha-izquierda3":{font:"g-cartografia",code:59679,name:"flecha-izquierda3",
search:"flecha-izquierda3"},"g-cartografia-flecha-link":{font:"g-cartografia",code:59680,name:"flecha-link",search:"flecha-link"},"g-cartografia-flechas-mover":{font:"g-cartografia",code:59681,name:"flechas-mover",search:"flechas-mover"},"g-cartografia-gps":{font:"g-cartografia",code:59682,name:"gps",search:"gps"},"g-cartografia-gps2":{font:"g-cartografia",code:59683,name:"gps2",search:"gps2"},"g-cartografia-gps3":{font:"g-cartografia",code:59684,name:"gps3",search:"gps3"},"g-cartografia-gps4":{font:"g-cartografia",
code:59685,name:"gps4",search:"gps4"},"g-cartografia-guardar":{font:"g-cartografia",code:59686,name:"guardar",search:"guardar"},"g-cartografia-herramienta":{font:"g-cartografia",code:59687,name:"herramienta",search:"herramienta"},"g-cartografia-impresora":{font:"g-cartografia",code:59688,name:"impresora",search:"impresora"},"g-cartografia-info":{font:"g-cartografia",code:59689,name:"info",search:"info"},"g-cartografia-linea":{font:"g-cartografia",code:59690,name:"linea",search:"linea"},"g-cartografia-lineas":{font:"g-cartografia",
code:59691,name:"lineas",search:"lineas"},"g-cartografia-lista":{font:"g-cartografia",code:59692,name:"lista",search:"lista"},"g-cartografia-localizacion":{font:"g-cartografia",code:59693,name:"localizacion",search:"localizacion"},"g-cartografia-localizacion2":{font:"g-cartografia",code:59694,name:"localizacion2",search:"localizacion2"},"g-cartografia-localizacion3":{font:"g-cartografia",code:59695,name:"localizacion3",search:"localizacion3"},"g-cartografia-localizacion4":{font:"g-cartografia",code:59696,
name:"localizacion4",search:"localizacion4"},"g-cartografia-mano":{font:"g-cartografia",code:59697,name:"mano",search:"mano"},"g-cartografia-mano2":{font:"g-cartografia",code:59698,name:"mano2",search:"mano2"},"g-cartografia-mapa":{font:"g-cartografia",code:59699,name:"mapa",search:"mapa"},"g-cartografia-mas":{font:"g-cartografia",code:59700,name:"mas",search:"mas"},"g-cartografia-mas2":{font:"g-cartografia",code:59701,name:"mas2",search:"mas2"},"g-cartografia-medir-area":{font:"g-cartografia",code:59702,
name:"medir-area",search:"medir-area"},"g-cartografia-medir-linea":{font:"g-cartografia",code:59703,name:"medir-linea",search:"medir-linea"},"g-cartografia-menos":{font:"g-cartografia",code:59704,name:"menos",search:"menos"},"g-cartografia-menos2":{font:"g-cartografia",code:59705,name:"alerta",search:"alerta"},"g-cartografia-menu":{font:"g-cartografia",code:59706,name:"menos2",search:"menos2"},"g-cartografia-mundo":{font:"g-cartografia",code:59707,name:"mundo",search:"mundo"},"g-cartografia-mundo2":{font:"g-cartografia",
code:59708,name:"mundo2",search:"mundo2"},"g-cartografia-opciones":{font:"g-cartografia",code:59709,name:"opciones",search:"opciones"},"g-cartografia-papelera":{font:"g-cartografia",code:59710,name:"papelera",search:"papelera"},"g-cartografia-pin":{font:"g-cartografia",code:59711,name:"pin",search:"pin"},"g-cartografia-pin2":{font:"g-cartografia",code:59712,name:"pin2",search:"pin2"},"g-cartografia-pin3":{font:"g-cartografia",code:59713,name:"pin3",search:"pin3"},"g-cartografia-pin4":{font:"g-cartografia",
code:59714,name:"pin4",search:"pin4"},"g-cartografia-pin-nuevo":{font:"g-cartografia",code:59715,name:"pin-nuevo",search:"pin-nuevo"},"g-cartografia-poligono":{font:"g-cartografia",code:59716,name:"poligono",search:"poligono"},"g-cartografia-posicion":{font:"g-cartografia",code:59717,name:"posicion",search:"posicion"},"g-cartografia-posicion2":{font:"g-cartografia",code:59718,name:"posicion2",search:"posicion2"},"g-cartografia-posicion3":{font:"g-cartografia",code:59719,name:"posicion3",search:"posicion3"},
"g-cartografia-posicion4":{font:"g-cartografia",code:59720,name:"posicion4",search:"posicion4"},"g-cartografia-posicion5":{font:"g-cartografia",code:59721,name:"posicion5",search:"posicion5"},"g-cartografia-posicion6":{font:"g-cartografia",code:59722,name:"posicion6",search:"posicion6"},"g-cartografia-posicion7":{font:"g-cartografia",code:59723,name:"posicion7",search:"posicion7"},"g-cartografia-prismaticos":{font:"g-cartografia",code:59724,name:"prismaticos",search:"prismaticos"},"g-cartografia-regla":{font:"g-cartografia",
code:59725,name:"regla",search:"regla"},"g-cartografia-reglas":{font:"g-cartografia",code:59726,name:"reglas",search:"reglas"},"g-cartografia-ruta":{font:"g-cartografia",code:59727,name:"ruta",search:"ruta"},"g-cartografia-spinner":{font:"g-cartografia",code:59728,name:"spinner",search:"spinner"},"g-cartografia-spinner2":{font:"g-cartografia",code:59729,name:"spinner2",search:"spinner2"},"g-cartografia-subir":{font:"g-cartografia",code:59739,name:"subir",search:"subir"},"g-cartografia-tamano":{font:"g-cartografia",
code:59740,name:"tamano",search:"tamano"},"g-cartografia-temperatura":{font:"g-cartografia",code:59741,name:"temperatura",search:"temperatura"},"g-cartografia-texto":{font:"g-cartografia",code:59742,name:"texto",search:"texto"},"g-cartografia-usuario":{font:"g-cartografia",code:59743,name:"usuario",search:"usuario"},"g-cartografia-usuario2":{font:"g-cartografia",code:59744,name:"usuario2",search:"usuario2"},"g-cartografia-zoom":{font:"g-cartografia",code:59745,name:"zoom",search:"zoom"},"g-cartografia-zoom-extension":{font:"g-cartografia",
code:59746,name:"zoom-extension",search:"zoom-extension"},"g-cartografia-zoom-mas":{font:"g-cartografia",code:59747,name:"zoom-mas",search:"zoom-mas"},"g-cartografia-zoom-menos":{font:"g-cartografia",code:59748,name:"alerta",search:"zoom-menos"}},Kn22222={"font":"Andalucia TypSeg-Icons","name":"Andalucia TypSeg-Icons","prefix":"andalucia-i-"},Ln22222={"andalucia-i-artistas":{"font":"Andalucia TypSeg-Icons","code":59648,"name":"artistas","search":"artistas"},"andalucia-i-noticias":{"font":"Andalucia TypSeg-Icons",
"code":59649,"name":"noticias","search":"noticias"},"andalucia-i-palos-flamencos":{"font":"Andalucia TypSeg-Icons","code":59650,"name":"palos-flamencos","search":"palos-flamencos"},"andalucia-i-publicaciones":{"font":"Andalucia TypSeg-Icons","code":59651,"name":"publicaciones","search":"publicaciones"},"andalucia-i-recetas":{"font":"Andalucia TypSeg-Icons","code":59652,"name":"recetas","search":"recetas"},"andalucia-i-reportajes":{"font":"Andalucia TypSeg-Icons","code":59653,"name":"reportajes","search":"reportajes"},
"andalucia-i-segcultura":{"font":"Andalucia TypSeg-Icons","code":59654,"name":"segcultura","search":"segcultura"},"andalucia-i-segdeporte":{"font":"Andalucia TypSeg-Icons","code":59655,"name":"segdeporte","search":"segdeporte"},"andalucia-i-seggastrono":{"font":"Andalucia TypSeg-Icons","code":59656,"name":"seggastrono","search":"seggastrono"},"andalucia-i-segnat":{"font":"Andalucia TypSeg-Icons","code":59657,"name":"segnat","search":"segnat"},"andalucia-i-segociodiv":{"font":"Andalucia TypSeg-Icons",
"code":59658,"name":"segociodiv","search":"segociodiv"},"andalucia-i-segreuncong":{"font":"Andalucia TypSeg-Icons","code":59659,"name":"segreuncong","search":"segreuncong"},"andalucia-i-segsalbel":{"font":"Andalucia TypSeg-Icons","code":59660,"name":"segsalbel","search":"segsalbel"},"andalucia-i-segsolplay":{"font":"Andalucia TypSeg-Icons","code":59661,"name":"segsolplay","search":"segsolplay"},"andalucia-i-sports":{"font":"Andalucia TypSeg-Icons","code":59662,"name":"sports","search":"sports"},"andalucia-i-territorio":{"font":"Andalucia TypSeg-Icons",
"code":59663,"name":"territorio","search":"territorio"},"andalucia-i-tippubamigo":{"font":"Andalucia TypSeg-Icons","code":59664,"name":"tippubamigo","search":"tippubamigo"},"andalucia-i-tippubfam":{"font":"Andalucia TypSeg-Icons","code":59665,"name":"tippubfam","search":"tippubfam"},"andalucia-i-tippubjoven":{"font":"Andalucia TypSeg-Icons","code":59666,"name":"tippubjoven","search":"tippubjoven"},"andalucia-i-tippublgtb":{"font":"Andalucia TypSeg-Icons","code":59667,"name":"tippublgtb","search":"tippublgtb"},
"andalucia-i-tippubmayor":{"font":"Andalucia TypSeg-Icons","code":59668,"name":"tippubmayor","search":"tippubmayor"},"andalucia-i-tippubneg":{"font":"Andalucia TypSeg-Icons","code":59669,"name":"tippubneg","search":"tippubneg"},"andalucia-i-tippubpareja":{"font":"Andalucia TypSeg-Icons","code":59670,"name":"tippubpareja","search":"tippubpareja"},"andalucia-i-tippubprof":{"font":"Andalucia TypSeg-Icons","code":59671,"name":"tippubprof","search":"tippubprof"},"andalucia-i-tippubviajosolo":{"font":"Andalucia TypSeg-Icons",
"code":59672,"name":"tippubviajosolo","search":"tippubviajosolo"},"andalucia-i-tiprecactgui":{"font":"Andalucia TypSeg-Icons","code":59673,"name":"tiprecactgui","search":"tiprecactgui"},"andalucia-i-tiprecagevia":{"font":"Andalucia TypSeg-Icons","code":59674,"name":"tiprecagevia","search":"tiprecagevia"},"andalucia-i-tiprecalojam":{"font":"Andalucia TypSeg-Icons","code":59675,"name":"tiprecalojam","search":"tiprecalojam"},"andalucia-i-tiprecareanatural":{"font":"Andalucia TypSeg-Icons","code":59676,
"name":"tiprecareanatural","search":"tiprecareanatural"},"andalucia-i-tipreccompra":{"font":"Andalucia TypSeg-Icons","code":59677,"name":"tipreccompra","search":"tipreccompra"},"andalucia-i-tiprecconvcong":{"font":"Andalucia TypSeg-Icons","code":59678,"name":"tiprecconvcong","search":"tiprecconvcong"},"andalucia-i-tiprecdeporte":{"font":"Andalucia TypSeg-Icons","code":59679,"name":"tiprecdeporte","search":"tiprecdeporte"},"andalucia-i-tiprecescesp":{"font":"Andalucia TypSeg-Icons","code":59680,"name":"tiprecescesp",
"search":"tiprecescesp"},"andalucia-i-tiprecevento":{"font":"Andalucia TypSeg-Icons","code":59681,"name":"tiprecevento","search":"tiprecevento"},"andalucia-i-tipreceveprof":{"font":"Andalucia TypSeg-Icons","code":59682,"name":"tipreceveprof","search":"tipreceveprof"},"andalucia-i-tiprecflamenco":{"font":"Andalucia TypSeg-Icons","code":59683,"name":"tiprecflamenco","search":"tiprecflamenco"},"andalucia-i-tiprecgolf":{"font":"Andalucia TypSeg-Icons","code":59684,"name":"tiprecgolf","search":"tiprecgolf"},
"andalucia-i-tiprecocionocturno":{"font":"Andalucia TypSeg-Icons","code":59685,"name":"tiprecocionocturno","search":"tiprecocionocturno"},"andalucia-i-tiprecoferta":{"font":"Andalucia TypSeg-Icons","code":59686,"name":"tiprecoferta","search":"tiprecoferta"},"andalucia-i-tiprecotrcom":{"font":"Andalucia TypSeg-Icons","code":59687,"name":"tiprecotrcom","search":"tiprecotrcom"},"andalucia-i-tiprecparquesocio":{"font":"Andalucia TypSeg-Icons","code":59688,"name":"tiprecparquesocio","search":"tiprecparquesocio"},
"andalucia-i-tiprecplaya":{"font":"Andalucia TypSeg-Icons","code":59689,"name":"tiprecplaya","search":"tiprecplaya"},"andalucia-i-tiprecrestaur":{"font":"Andalucia TypSeg-Icons","code":59690,"name":"tiprecrestaur","search":"tiprecrestaur"},"andalucia-i-tiprecrutaturis":{"font":"Andalucia TypSeg-Icons","code":59691,"name":"tiprecrutaturis","search":"tiprecrutaturis"},"andalucia-i-tiprecsaludbelleza":{"font":"Andalucia TypSeg-Icons","code":59692,"name":"tiprecsaludbelleza","search":"tiprecsaludbelleza"},
"andalucia-i-tiprecsendero":{"font":"Andalucia TypSeg-Icons","code":59693,"name":"tiprecsendero","search":"tiprecsendero"},"andalucia-i-tiprecservinf":{"font":"Andalucia TypSeg-Icons","code":59694,"name":"tiprecservinf","search":"tiprecservinf"},"andalucia-i-tiprectransporte":{"font":"Andalucia TypSeg-Icons","code":59695,"name":"tiprectransporte","search":"tiprectransporte"},"andalucia-i-tiprecvisita":{"font":"Andalucia TypSeg-Icons","code":59696,"name":"tiprecvisita","search":"tiprecvisita"},"andalucia-i-tiptermunicipio":{"font":"Andalucia TypSeg-Icons",
"code":59697,"name":"tiptermunicipio","search":"tiptermunicipio"},"andalucia-i-tipterprovincia":{"font":"Andalucia TypSeg-Icons","code":59698,"name":"tipterprovincia","search":"tipterprovincia"},"andalucia-i-t-pin":{"font":"Andalucia TypSeg-Icons","code":59699,"name":"t-pin","search":"t-pin"}},Mn=Kn,Mn22222=Kn22222;"string"==typeof Kn&&(Mn={font:Kn,name:Kn,copyright:""});if(Mn.font&&"string"==typeof Mn.font){In.prototype.defs.fonts[Mn.font]=Mn;for(var Nn in Ln){var On=Ln[Nn];"string"==typeof On&&
1==On.length&&(On={char:On});In.prototype.defs.glyphs[Nn]={font:Mn.font,char:On.char||""+String.fromCharCode(On.code)||"",nE:On.nE||Mn.name,name:On.name||Nn,search:On.search||""}}}else console.log("bad font def");if(Mn22222.font&&"string"==typeof Mn22222.font){In.prototype.defs.fonts[Mn22222.font]=Mn22222;for(var Nn in Ln22222){var On=Ln22222[Nn];"string"==typeof On&&1==On.length&&(On={char:On});In.prototype.defs.glyphs[Nn]={font:Mn22222.font,char:On.char||""+String.fromCharCode(On.code)||"",nE:On.nE||
Mn22222.name,name:On.name||Nn,search:On.search||""}}}else console.log("bad font def");M.impl.Feature={};M.impl.Feature=function(a,b){this.Lz=new vb;M.utils.isNullOrEmpty(b)?this.Ma=new E:(M.utils.isNullOrEmpty(b.type)&&(b.type="Feature"),this.Ma=this.Lz.readFeature(b));M.utils.isNullOrEmpty(a)?M.utils.isNullOrEmpty(this.Ma.getId())&&this.Ma.setId(M.utils.generateRandom("mapea_feature_")):this.Ma.setId(a)};h=M.impl.Feature.prototype;h.getOLFeature=function(){return this.Ma};h.setOLFeature=function(a,
b){M.utils.isNullOrEmpty(a)||(this.Ma=a,!1!==b&&M.utils.isNullOrEmpty(this.Ma.getId())&&this.Ma.setId(M.utils.generateRandom("mapea_feature_")))};h.getAttributes=function(){var a=this.Ma.getProperties(),b=a.geometry;!M.utils.isNullOrEmpty(b)&&b instanceof gg&&delete a.geometry;return a};h.getId=function(){return this.Ma.getId()};h.setId=function(a){this.Ma.setId(a)};h.setAttributes=function(a){this.Ma.setProperties(a)};M.impl.Feature.olFeature2Facade=function(a,b){var c=null;M.utils.isNullOrEmpty(a)||
(c=new M.Feature,c.getImpl().setOLFeature(a,b));return c};M.impl.Feature.facade2OLFeature=function(a){return a.getImpl().getOLFeature()};h=M.impl.Feature.prototype;h.getAttribute=function(a){return this.Ma.get(a)};h.setAttribute=function(a,b){return this.Ma.set(a,b)};h.getGeometry=function(a){return new I[a.geometry.type](a.geometry.coordinates)};h.setGeometry=function(a){var b=a.type.toLowerCase();"circle"===b?this.Ma.setGeometry(new Pn(a.coordinates)):"geometry"===b?this.Ma.setGeometry(new gg):
"linestring"===b?this.Ma.setGeometry(new P(a.coordinates)):"multilinestring"===b?this.Ma.setGeometry(new Q(a.coordinates)):"multipoint"===b?this.Ma.setGeometry(new Wg(a.coordinates)):"multipolygon"===b?this.Ma.setGeometry(new S(a.coordinates)):"point"===b?this.Ma.setGeometry(new F(a.coordinates)):"polygon"===b&&this.Ma.setGeometry(new R(a.coordinates))};h.setFacadeObj=function(){};h.getCentroid=function(){var a=this.getOLFeature().getGeometry(),a=M.impl.utils.getCentroid(a);if(!M.utils.isNullOrEmpty(a)){var b=
new F;b.setCoordinates(a);a=new E({geometry:b,name:"centroid"});return M.impl.Feature.olFeature2Facade(a)}};h.clearStyle=function(){this.Ma.setStyle(null)};function Qn(){hg.call(this)}A(Qn,hg);function Rn(a){return"string"===typeof a?(a=JSON.parse(a))?a:null:null!==a?a:null}h=Qn.prototype;h.getType=function(){return"json"};h.readFeature=function(a,b){return this.wf(Rn(a),ig(this,a,b))};h.readFeatures=function(a,b){return this.aq(Rn(a),ig(this,a,b))};h.readGeometry=function(a,b){return this.Am(Rn(a),
ig(this,a,b))};h.readProjection=function(a){return this.Pj(Rn(a))};h.writeFeature=function(a,b){return JSON.stringify(this.writeFeatureObject(a,b))};h.writeFeatures=function(a,b){return JSON.stringify(this.writeFeaturesObject(a,b))};h.writeGeometry=function(a,b){return JSON.stringify(this.writeGeometryObject(a,b))};function Fn(a){gg.call(this);this.ma=a?a:null;Sn(this)}A(Fn,gg);function Tn(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(a[c].clone());return b}function Un(a){var b,c;if(a.ma)for(b=
0,c=a.ma.length;b<c;++b)we(a.ma[b],Ce.CHANGE,a.changed,a)}function Sn(a){var b,c;if(a.ma)for(b=0,c=a.ma.length;b<c;++b)G(a.ma[b],Ce.CHANGE,a.changed,a)}h=Fn.prototype;h.clone=function(){var a=new Fn(null);a.setGeometries(this.ma);return a};h.Uc=function(a,b,c,d){if(d<bf(this.getExtent(),a,b))return d;var e=this.ma,f,g;f=0;for(g=e.length;f<g;++f)d=e[f].Uc(a,b,c,d);return d};h.containsXY=function(a,b){var c=this.ma,d,e;d=0;for(e=c.length;d<e;++d)if(c[d].containsXY(a,b))return!0;return!1};h.Tk=function(a){gf(Infinity,
Infinity,-Infinity,-Infinity,a);for(var b=this.ma,c=0,d=b.length;c<d;++c)mf(a,b[c].getExtent());return a};h.getGeometries=function(){return Tn(this.ma)};h.$i=function(a){this.Pm!=this.getRevision()&&(me(this.yf),this.zf=0,this.Pm=this.getRevision());if(0>a||0!==this.zf&&a<this.zf)return this;var b=a.toString();if(this.yf.hasOwnProperty(b))return this.yf[b];var c=[],d=this.ma,e=!1,f,g;f=0;for(g=d.length;f<g;++f){var k=d[f],l=k.$i(a);c.push(l);l!==k&&(e=!0)}if(e)return a=new Fn(null),Un(a),a.ma=c,Sn(a),
a.changed(),this.yf[b]=a;this.zf=a;return this};h.getType=function(){return"GeometryCollection"};h.intersectsExtent=function(a){var b=this.ma,c,d;c=0;for(d=b.length;c<d;++c)if(b[c].intersectsExtent(a))return!0;return!1};h.isEmpty=function(){return 0===this.ma.length};h.rotate=function(a,b){for(var c=this.ma,d=0,e=c.length;d<e;++d)c[d].rotate(a,b);this.changed()};h.scale=function(a,b,c){c||(c=xf(this.getExtent()));for(var d=this.ma,e=0,f=d.length;e<f;++e)d[e].scale(a,b,c);this.changed()};h.setGeometries=
function(a){a=Tn(a);Un(this);this.ma=a;Sn(this);this.changed()};h.applyTransform=function(a){var b=this.ma,c,d;c=0;for(d=b.length;c<d;++c)b[c].applyTransform(a);this.changed()};h.translate=function(a,b){var c=this.ma,d,e;d=0;for(e=c.length;d<e;++d)c[d].translate(a,b);this.changed()};h.T=function(){Un(this);gg.prototype.T.call(this)};function Vn(a){a=a?a:{};hg.call(this);this.defaultDataProjection=H(a.defaultDataProjection?a.defaultDataProjection:"EPSG:4326");a.featureProjection&&(this.Ds=H(a.featureProjection));
this.Xa=a.geometryName}A(Vn,Qn);function Wn(a,b){return a?kg((0,Xn[a.type])(a),!1,b):null}function Yn(a,b){return(0,Zn[a.getType()])(kg(a,!0,b),b)}var Xn={Point:function(a){return new F(a.coordinates)},LineString:function(a){return new P(a.coordinates)},Polygon:function(a){return new R(a.coordinates)},MultiPoint:function(a){return new Wg(a.coordinates)},MultiLineString:function(a){return new Q(a.coordinates)},MultiPolygon:function(a){return new S(a.coordinates)},GeometryCollection:function(a,b){a=
a.geometries.map(function(a){return Wn(a,b)});return new Fn(a)}},Zn={Point:function(a){return{type:"Point",coordinates:a.getCoordinates()}},LineString:function(a){return{type:"LineString",coordinates:a.getCoordinates()}},Polygon:function(a,b){var c;b&&(c=b.rightHanded);return{type:"Polygon",coordinates:a.getCoordinates(c)}},MultiPoint:function(a){return{type:"MultiPoint",coordinates:a.getCoordinates()}},MultiLineString:function(a){return{type:"MultiLineString",coordinates:a.getCoordinates()}},MultiPolygon:function(a,
b){var c;b&&(c=b.rightHanded);return{type:"MultiPolygon",coordinates:a.getCoordinates(c)}},GeometryCollection:function(a,b){return{type:"GeometryCollection",geometries:a.ma.map(function(a){var c=le({},b);delete c.featureProjection;return Yn(a,c)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};h=Vn.prototype;h.wf=function(a,b){a="Feature"===a.type?a:{type:"Feature",geometry:a};b=Wn(a.geometry,b);var c=new E;this.Xa&&c.setGeometryName(this.Xa);c.setGeometry(b);void 0!==a.id&&
c.setId(a.id);a.properties&&c.setProperties(a.properties);return c};h.aq=function(a,b){var c;if("FeatureCollection"===a.type){c=[];a=a.features;var d,e;d=0;for(e=a.length;d<e;++d)c.push(this.wf(a[d],b))}else c=[this.wf(a,b)];return c};h.Am=function(a,b){return Wn(a,b)};h.Pj=function(a){a=a.crs;var b;a?"name"==a.type?b=H(a.properties.name):"EPSG"==a.type?b=H("EPSG:"+a.properties.code):qd(!1,36):b=this.defaultDataProjection;return b};h.writeFeatureObject=function(a,b){b=jg(this,b);var c={type:"Feature"},
d=a.getId();void 0!==d&&(c.id=d);d=a.getGeometry();c.geometry=d?Yn(d,b):null;b=a.getProperties();delete b[a.getGeometryName()];c.properties=oe(b)?null:b;return c};h.writeFeaturesObject=function(a,b){b=jg(this,b);var c=[],d,e;d=0;for(e=a.length;d<e;++d)c.push(this.writeFeatureObject(a[d],b));return{type:"FeatureCollection",features:c}};h.writeGeometryObject=function(a,b){return Yn(a,jg(this,b))};M.impl.format={};function vb(a){Vn.call(this,a?a:{})}v(vb,Vn);h=vb.prototype;h.wf=function(a,b){var c=Wn(a.geometry,
b);b=new E;this.Xa&&b.setGeometryName(this.Xa);b.setGeometry(c);M.utils.isNullOrEmpty(a.id)?b.setId(M.utils.generateRandom("geojson_")):b.setId(a.id);a.properties&&b.setProperties(a.properties);a.click&&(b.click=a.click);if(a.properties&&a.properties.vendor&&a.properties.vendor.mapea&&a.properties.vendor.mapea.icon){a=a.properties.vendor.mapea.icon;c=document.createElement("IMG");c.src=a.url;c.width=a.width;c.height=a.height;c.crossOrigin="anonymous";var d;a.anchor&&a.anchor.x&&a.anchor.y&&(d=[a.anchor.x,
a.anchor.y]);b.setStyle(new mg({image:new $n({img:c,imgSize:[a.width,a.height],anchor:d})}))}return b};h.writeFeatureObject=function(a,b){b=jg(this,b);var c={type:"Feature"},d=a.getId();d&&(c.id=d);d=a.getGeometry();c.geometry=d?Yn(d,b):null;b=a.getProperties();delete b[a.getGeometryName()];Bb.isEmpty(b)?c.properties=null:c.properties=b;M.utils.isNullOrEmpty(a.click)||(c.click=a.click);return c};h.Pj=function(a){return(a=a.crs)?"name"==a.type?H(a.properties.name):"EPSG"==a.type?H("EPSG:"+a.properties.code):
null:"EPSG:4326"};h.write=function(a){return a.map(function(a){return this.writeFeatureObject(a.getImpl().getOLFeature())}.bind(this))};h.read=function(a,b,c){var d=[],e=c.code;M.utils.isNullOrEmpty(e)&&(e=M.utils.isNullOrEmpty(c.featureProjection)?H(c.getCode()):H(c.featureProjection.getCode()));var f=this.Pj(a);return d=b.map(function(a){a=new M.Feature(a.id,a);a.getImpl().getOLFeature().getGeometry().transform(f,e);return a})};function ao(a){rh.call(this,a?a:{})}v(ao,rh);function bo(a,b,c,d,e,
f){Be.call(this);this.ve=null;this.f=a?a:new Image;null!==d&&(this.f.crossOrigin=d);this.j=f?document.createElement("CANVAS"):null;this.Y=f;this.jg=null;this.th=e;this.X=c;this.rd=b;this.Jq=!1;2==this.th&&co(this)}A(bo,Be);function co(a){var b=Hd(1,1);try{b.drawImage(a.f,0,0),b.getImageData(0,0,1,1)}catch(c){a.Jq=!0}}h=bo.prototype;h.rh=function(){this.th=3;eo(this);this.dispatchEvent(Ce.CHANGE)};h.ej=function(){this.th=2;this.X&&(this.f.width=this.X[0],this.f.height=this.X[1]);this.X=[this.f.width,
this.f.height];eo(this);co(this);if(!this.Jq&&null!==this.Y){this.j.width=this.f.width;this.j.height=this.f.height;var a=this.j.getContext("2d");a.drawImage(this.f,0,0);for(var b=a.getImageData(0,0,this.f.width,this.f.height),c=b.data,d=this.Y[0]/255,e=this.Y[1]/255,f=this.Y[2]/255,g=0,k=c.length;g<k;g+=4)c[g]*=d,c[g+1]*=e,c[g+2]*=f;a.putImageData(b,0,0)}this.dispatchEvent(Ce.CHANGE)};h.getImage=function(){return this.j?this.j:this.f};h.cg=function(){return this.th};h.Yi=function(){if(!this.ve)if(this.Jq){var a=
this.X[0],b=this.X[1],c=Hd(a,b);c.fillRect(0,0,a,b);this.ve=c.canvas}else this.ve=this.f;return this.ve};h.getSize=function(){return this.X};h.getSrc=function(){return this.rd};h.load=function(){if(0==this.th){this.th=1;this.jg=[ve(this.f,"error",this.rh,this),ve(this.f,Ce.LOAD,this.ej,this)];try{this.f.src=this.rd}catch(a){this.rh()}}};function eo(a){a.jg.forEach(qe);a.jg=null}function $n(a){a=a||{};this.lb=void 0!==a.anchor?a.anchor:[.5,.5];this.Eh=null;this.Mf=void 0!==a.anchorOrigin?a.anchorOrigin:
"top-left";this.Ik=void 0!==a.anchorXUnits?a.anchorXUnits:"fraction";this.Jk=void 0!==a.anchorYUnits?a.anchorYUnits:"fraction";this.ie=void 0!==a.crossOrigin?a.crossOrigin:null;var b=void 0!==a.img?a.img:null,c=void 0!==a.imgSize?a.imgSize:null,d=a.src;qd(!(void 0!==d&&b),4);qd(!b||b&&c,5);void 0!==d&&0!==d.length||!b||(d=b.src||D(b).toString());qd(void 0!==d&&0<d.length,6);var e=void 0!==a.src?0:2;this.Y=void 0!==a.color?Cd(a.color):null;var f=this.ie,g=this.Y,k=Jk.get(d,f,g);k||(k=new bo(b,d,c,
f,e,g),Jk.set(d,f,g,k));this.qc=k;this.Mb=void 0!==a.offset?a.offset:[0,0];this.xg=void 0!==a.offsetOrigin?a.offsetOrigin:"top-left";this.zb=null;this.X=void 0!==a.size?a.size:null;he.call(this,{opacity:void 0!==a.opacity?a.opacity:1,rotation:void 0!==a.rotation?a.rotation:0,scale:void 0!==a.scale?a.scale:1,snapToPixel:void 0!==a.snapToPixel?a.snapToPixel:!0,rotateWithView:void 0!==a.rotateWithView?a.rotateWithView:!1})}A($n,he);$n.prototype.clone=function(){var a=this.getImage(1),b;if(2===this.qc.cg())if("IMG"===
a.tagName.toUpperCase())b=a.cloneNode(!0);else{b=document.createElement("canvas");var c=b.getContext("2d");b.width=a.width;b.height=a.height;c.drawImage(a,0,0)}return new $n({anchor:this.lb.slice(),anchorOrigin:this.Mf,anchorXUnits:this.Ik,anchorYUnits:this.Jk,crossOrigin:this.ie,color:this.Y&&this.Y.slice?this.Y.slice():this.Y||void 0,img:b?b:void 0,imgSize:b?this.qc.getSize().slice():void 0,src:b?void 0:this.getSrc(),offset:this.Mb.slice(),offsetOrigin:this.xg,size:null!==this.X?this.X.slice():
void 0,opacity:this.getOpacity(),scale:this.getScale(),snapToPixel:this.getSnapToPixel(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})};$n.prototype.getAnchor=function(){if(this.Eh)return this.Eh;var a=this.lb,b=this.getSize();if("fraction"==this.Ik||"fraction"==this.Jk){if(!b)return null;a=this.lb.slice();"fraction"==this.Ik&&(a[0]*=b[0]);"fraction"==this.Jk&&(a[1]*=b[1])}if("top-left"!=this.Mf){if(!b)return null;a===this.lb&&(a=this.lb.slice());if("top-right"==this.Mf||"bottom-right"==
this.Mf)a[0]=-a[0]+b[0];if("bottom-left"==this.Mf||"bottom-right"==this.Mf)a[1]=-a[1]+b[1]}return this.Eh=a};$n.prototype.getColor=function(){return this.Y};$n.prototype.getImage=function(a){return this.qc.getImage(a)};$n.prototype.getImageSize=function(){return this.qc.getSize()};h=$n.prototype;h.cg=function(){return this.qc.cg()};h.Yi=function(a){return this.qc.Yi(a)};h.getOrigin=function(){if(this.zb)return this.zb;var a=this.Mb;if("top-left"!=this.xg){var b=this.getSize(),c=this.qc.getSize();
if(!b||!c)return null;a=a.slice();if("top-right"==this.xg||"bottom-right"==this.xg)a[0]=c[0]-b[0]-a[0];if("bottom-left"==this.xg||"bottom-right"==this.xg)a[1]=c[1]-b[1]-a[1]}return this.zb=a};h.getSrc=function(){return this.qc.getSrc()};h.getSize=function(){return this.X?this.X:this.qc.getSize()};h.eu=function(a,b){return G(this.qc,Ce.CHANGE,a,b)};h.load=function(){this.qc.load()};h.vw=function(a,b){we(this.qc,Ce.CHANGE,a,b)};function fo(a){$n.call(this,a)}v(fo,$n);fo.prototype.getImageSize=function(){return this.qc.getSize()};
function go(a){a=a||{};this.gt=a.font;this.na=a.rotation;this.Bb=a.rotateWithView;this.Cb=a.scale;this.oa=a.text;this.lw=a.textAlign;this.mw=a.textBaseline;this.ga=void 0!==a.fill?a.fill:new ke({color:"#333"});this.L=void 0!==a.stroke?a.stroke:null;this.Ku=void 0!==a.offsetX?a.offsetX:0;this.Lu=void 0!==a.offsetY?a.offsetY:0}h=go.prototype;h.clone=function(){return new go({font:this.getFont(),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()})};h.getFont=function(){return this.gt};h.getOffsetX=function(){return this.Ku};h.getOffsetY=function(){return this.Lu};h.getFill=function(){return this.ga};h.getRotateWithView=function(){return this.Bb};h.getRotation=function(){return this.na};h.getScale=function(){return this.Cb};
h.getStroke=function(){return this.L};h.getText=function(){return this.oa};h.getTextAlign=function(){return this.lw};h.getTextBaseline=function(){return this.mw};h.setFont=function(a){this.gt=a};h.setOffsetX=function(a){this.Ku=a};h.setOffsetY=function(a){this.Lu=a};h.setFill=function(a){this.ga=a};h.setRotation=function(a){this.na=a};h.setScale=function(a){this.Cb=a};h.setStroke=function(a){this.L=a};h.setText=function(a){this.oa=a};h.setTextAlign=function(a){this.lw=a};h.setTextBaseline=function(a){this.mw=
a};function ho(a){a=a?a:{};Lg.call(this);io||(jo=[255,255,255,1],ko=new ke({color:jo}),lo=[20,2],mo=no="pixels",oo=[64,64],po="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png",qo=.5,ro=new $n({anchor:lo,anchorOrigin:"bottom-left",anchorXUnits:no,anchorYUnits:mo,crossOrigin:"anonymous",rotation:0,scale:qo,size:oo,src:po}),so="NO_IMAGE",to=new lg({color:jo,width:1}),uo=new lg({color:[51,51,51,1],width:2}),vo=new go({font:"bold 16px Helvetica",fill:ko,stroke:uo,scale:.8}),wo=new mg({fill:ko,
image:ro,text:vo,stroke:to,zIndex:0}),io=[wo]);this.defaultDataProjection=H("EPSG:4326");this.Es=a.defaultStyle?a.defaultStyle:io;this.Ws=void 0!==a.extractStyles?a.extractStyles:!0;this.ZE=void 0!==a.writeStyles?a.writeStyles:!0;this.Yh={};this.Wv=void 0!==a.showPointNames?a.showPointNames:!0}var io,jo,ko,lo,no,mo,oo,po,qo,ro,so,to,uo,vo,wo;A(ho,Lg);var xo=["http://www.google.com/kml/ext/2.2"],yo=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2",
"http://www.opengis.net/kml/2.2"],zo={fraction:"fraction",pixels:"pixels"};function Ao(a,b){var c=[0,0],d="start";if(a.getImage()){var e=a.getImage().getImageSize();null===e&&(e=oo);2==e.length&&(d=a.getImage().getScale(),c[0]=d*e[0]/2,c[1]=-d*e[1]/2,d="left")}null!==a.getText()?(e=a.getText(),a=e.clone(),a.setFont(e.getFont()||vo.getFont()),a.setScale(e.getScale()||vo.getScale()),a.setFill(e.getFill()||vo.getFill()),a.setStroke(e.getStroke()||uo)):a=vo.clone();a.setText(b);a.setOffsetX(c[0]);a.setOffsetY(c[1]);
a.setTextAlign(d);return new mg({text:a})}function Bo(a,b,c,d,e){return function(){var f=e,g="";f&&this.getGeometry()&&(f="Point"===this.getGeometry().getType());f&&(g=this.get("name"),f=f&&g);if(a)return f?(f=Ao(a[0],g),a.concat(f)):a;if(b){var k=Co(b,c,d);return f?(f=Ao(k[0],g),k.concat(f)):k}return f?(f=Ao(c[0],g),c.concat(f)):c}}function Co(a,b,c){return Array.isArray(a)?a:"string"===typeof a?(!(a in c)&&"#"+a in c&&(a="#"+a),Co(c[a],b,c)):b}function Do(a){a=vg(a,!1);if(a=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(a))return a=
a[1],[parseInt(a.substr(6,2),16),parseInt(a.substr(4,2),16),parseInt(a.substr(2,2),16),parseInt(a.substr(0,2),16)/255]}function Eo(a){a=vg(a,!1);for(var b=[],c=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i,d;d=c.exec(a);)b.push(parseFloat(d[1]),parseFloat(d[2]),d[3]?parseFloat(d[3]):0),a=a.substr(d[0].length);if(""===a)return b}function Fo(a){var b=vg(a,!1).trim();return a.baseURI?(new URL(b,a.baseURI)).href:b}function Go(a){return jh(a)}
function Ho(a,b){(a=O({},Io,a,b))&&(b[b.length-1].textStyle=new go({fill:new ke({color:"color"in a?a.color:jo}),scale:a.scale}))}function Jo(a,b){(a=O({},Ko,a,b))&&(b[b.length-1].strokeStyle=new lg({color:"color"in a?a.color:jo,width:"width"in a?a.width:1}))}function Lo(a,b){if(a=O({},Mo,a,b)){b=b[b.length-1];b.fillStyle=new ke({color:"color"in a?a.color:jo});var c=a.fill;void 0!==c&&(b.fill=c);a=a.outline;void 0!==a&&(b.outline=a)}}function No(a,b){return O(null,Oo,a,b)}function Po(a,b){if(a=O([],
Qo,a,b))return b=new Q(null),Vg(b,a),b}function Ro(a,b){if(b=O({b:[],Mw:[]},So,a,b)){a=b.b;b=b.Mw;var c,d;c=0;for(d=Math.min(a.length,b.length);c<d;++c)a[4*c+3]=b[c];b=new P(null);b.u("XYZM",a);return b}}function To(a,b){return(a=O({},Uo,a,b))?a:null}function Vo(a,b){var c=O({},Wo,a,b);if(a=O(null,Xo,a,b))return b=new P(null),b.u("XYZ",a),b.setProperties(c),b}function Yo(a,b){var c=O({},Wo,a,b);if(a=O(null,Xo,a,b))return b=new R(null),b.u("XYZ",a,[a.length]),b.setProperties(c),b}function Zo(a,b){a=
O([],$o,a,b);if(!a)return null;if(0===a.length)return new Fn(a);var c,d=!0,e=a[0].getType(),f,g;f=1;for(g=a.length;f<g;++f)if(b=a[f],b.getType()!=e){d=!1;break}if(d)if("Point"==e){c=a[0];d=c.getLayout();e=c.M();f=1;for(g=a.length;f<g;++f)b=a[f],Oe(e,b.M());c=new Wg(null);c.u(d,e);ap(c,a)}else"LineString"==e?(c=new Q(null),Vg(c,a),ap(c,a)):"Polygon"==e?(c=new S(null),ch(c,a),ap(c,a)):"GeometryCollection"==e?c=new Fn(a):qd(!1,37);else c=new Fn(a);return c}function bp(a,b){var c=O({},Wo,a,b);if(a=O(null,
Xo,a,b))return b=new F(null),b.u("XYZ",a),b.setProperties(c),b}function cp(a,b){var c=O({},Wo,a,b);if((a=O([null],dp,a,b))&&a[0]){b=new R(null);var d=a[0],e=[d.length],f,g;f=1;for(g=a.length;f<g;++f)Oe(d,a[f]),e.push(d.length);b.u("XYZ",d,e);b.setProperties(c);return b}}function ep(a,b){b=O({},fp,a,b);if(!b)return null;a="fillStyle"in b?b.fillStyle:ko;var c=b.fill;void 0===c||c||(a=null);c="imageStyle"in b?b.imageStyle:ro;c==so&&(c=void 0);var d="textStyle"in b?b.textStyle:vo,e="strokeStyle"in b?
b.strokeStyle:to;b=b.outline;void 0===b||b||(e=null);return[new mg({fill:a,image:c,stroke:e,text:d,zIndex:void 0})]}function ap(a,b){var c=b.length,d=Array(b.length),e=Array(b.length),f,g,k,l;k=l=!1;for(g=0;g<c;++g)f=b[g],d[g]=f.get("extrude"),e[g]=f.get("altitudeMode"),k=k||void 0!==d[g],l=l||e[g];k&&a.set("extrude",d);l&&a.set("altitudeMode",e)}function gp(a,b){Jg(hp,a,b)}function ip(a,b){Jg(jp,a,b)}var kp=N(yo,{displayName:K(T),value:K(T)}),hp=N(yo,{Data:function(a,b){var c=a.getAttribute("name");
Jg(kp,a,b);a=b[b.length-1];null!==c?a[c]=a.value:null!==a.displayName&&(a[a.displayName]=a.value)},SchemaData:function(a,b){Jg(lp,a,b)}}),jp=N(yo,{LatLonAltBox:function(a,b){if(a=O({},mp,a,b))b=b[b.length-1],b.extent=[parseFloat(a.west),parseFloat(a.south),parseFloat(a.east),parseFloat(a.north)],b.altitudeMode=a.altitudeMode,b.minAltitude=parseFloat(a.minAltitude),b.maxAltitude=parseFloat(a.maxAltitude)},Lod:function(a,b){if(a=O({},np,a,b))b=b[b.length-1],b.minLodPixels=parseFloat(a.minLodPixels),
b.maxLodPixels=parseFloat(a.maxLodPixels),b.minFadeExtent=parseFloat(a.minFadeExtent),b.maxFadeExtent=parseFloat(a.maxFadeExtent)}}),mp=N(yo,{altitudeMode:K(T),minAltitude:K(jh),maxAltitude:K(jh),north:K(jh),south:K(jh),east:K(jh),west:K(jh)}),np=N(yo,{minLodPixels:K(jh),maxLodPixels:K(jh),minFadeExtent:K(jh),maxFadeExtent:K(jh)}),Wo=N(yo,{extrude:K(gh),altitudeMode:K(T)}),Oo=N(yo,{coordinates:Cg(Eo)}),dp=N(yo,{innerBoundaryIs:function(a,b){(a=O(void 0,op,a,b))&&b[b.length-1].push(a)},outerBoundaryIs:function(a,
b){(a=O(void 0,pp,a,b))&&(b[b.length-1][0]=a)}}),So=N(yo,{when:function(a,b){b=b[b.length-1].Mw;a=vg(a,!1);a=Date.parse(a);b.push(isNaN(a)?0:a)}},N(xo,{coord:function(a,b){b=b[b.length-1].b;a=vg(a,!1);(a=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(a))?b.push(parseFloat(a[1]),parseFloat(a[2]),parseFloat(a[3]),0):b.push(0,0,0,0)}})),Xo=N(yo,{coordinates:Cg(Eo)}),Uo=N(yo,{href:K(Fo)},N(xo,{x:K(jh),y:K(jh),w:K(jh),
h:K(jh)})),qp=N(yo,{Icon:K(To),heading:K(jh),hotSpot:K(function(a){var b=a.getAttribute("xunits"),c=a.getAttribute("yunits");return{x:parseFloat(a.getAttribute("x")),Cn:zo[b],y:parseFloat(a.getAttribute("y")),Dn:zo[c]}}),scale:K(Go)}),op=N(yo,{LinearRing:Cg(No)}),Io=N(yo,{color:K(Do),scale:K(Go)}),Ko=N(yo,{color:K(Do),width:K(jh)}),$o=N(yo,{LineString:Bg(Vo),LinearRing:Bg(Yo),MultiGeometry:Bg(Zo),Point:Bg(bp),Polygon:Bg(cp)}),Qo=N(xo,{Track:Bg(Ro)}),sp=N(yo,{ExtendedData:gp,Region:ip,Link:function(a,
b){Jg(rp,a,b)},address:K(T),description:K(T),name:K(T),open:K(gh),phoneNumber:K(T),visibility:K(gh)}),rp=N(yo,{href:K(Fo)}),pp=N(yo,{LinearRing:Cg(No)}),tp=N(yo,{Style:K(ep),key:K(T),styleUrl:K(Fo)}),vp=N(yo,{ExtendedData:gp,Region:ip,MultiGeometry:K(Zo,"geometry"),LineString:K(Vo,"geometry"),LinearRing:K(Yo,"geometry"),Point:K(bp,"geometry"),Polygon:K(cp,"geometry"),Style:K(ep),StyleMap:function(a,b){if(a=O(void 0,up,a,b))b=b[b.length-1],Array.isArray(a)?b.Style=a:"string"===typeof a?b.styleUrl=
a:qd(!1,38)},address:K(T),description:K(T),name:K(T),open:K(gh),phoneNumber:K(T),styleUrl:K(Fo),visibility:K(gh)},N(xo,{MultiTrack:K(Po,"geometry"),Track:K(Ro,"geometry")})),Mo=N(yo,{color:K(Do),fill:K(gh),outline:K(gh)}),lp=N(yo,{SimpleData:function(a,b){var c=a.getAttribute("name");null!==c&&(a=T(a),b[b.length-1][c]=a)}}),fp=N(yo,{IconStyle:function(a,b){if(a=O({},qp,a,b)){b=b[b.length-1];var c="Icon"in a?a.Icon:{},d=!("Icon"in a)||0<Object.keys(c).length,e,f=c.href;f?e=f:d&&(e=po);var g,k,l;(f=
a.hotSpot)?(g=[f.x,f.y],k=f.Cn,l=f.Dn):e===po?(g=lo,k=no,l=mo):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(e)&&(g=[.5,0],l=k="fraction");var m,f=c.x,n=c.y;void 0!==f&&void 0!==n&&(m=[f,n]);var q,f=c.w,c=c.h;void 0!==f&&void 0!==c&&(q=[f,c]);var r,c=a.heading;void 0!==c&&(r=xd(c));a=a.scale;d?(e==po&&(q=oo,void 0===a&&(a=qo)),e=new $n({anchor:g,anchorOrigin:"bottom-left",anchorXUnits:k,anchorYUnits:l,crossOrigin:"anonymous",offset:m,offsetOrigin:"bottom-left",rotation:r,scale:a,size:q,src:e}),
b.imageStyle=e):b.imageStyle=so}},LabelStyle:Ho,LineStyle:Jo,PolyStyle:Lo}),up=N(yo,{Pair:function(a,b){if(a=O({},tp,a,b)){var c=a.key;c&&"normal"==c&&((c=a.styleUrl)&&(b[b.length-1]=c),(a=a.Style)&&(b[b.length-1]=a))}}});h=ho.prototype;h.Oh=function(a,b){var c=N(yo,{Document:Ag(this.Oh,this),Folder:Ag(this.Oh,this),Placemark:Bg(this.Oj,this),Style:this.iq.bind(this),StyleMap:this.hq.bind(this)});if(a=O([],c,a,b,this))return a};h.Oj=function(a,b){var c=O({geometry:null},vp,a,b);if(c){var d=new E;
a=a.getAttribute("id");null!==a&&d.setId(a);b=b[0];(a=c.geometry)&&kg(a,!1,b);d.setGeometry(a);delete c.geometry;this.Ws&&d.setStyle(Bo(c.Style,c.styleUrl,this.Es,this.Yh,this.Wv));delete c.Style;d.setProperties(c);return d}};h.iq=function(a,b){var c=a.getAttribute("id");null!==c&&(b=ep(a,b))&&(a=a.baseURI?(new URL("#"+c,a.baseURI)).href:"#"+c,this.Yh[a]=b)};h.hq=function(a,b){var c=a.getAttribute("id");null!==c&&(b=O(void 0,up,a,b))&&(a=a.baseURI?(new URL("#"+c,a.baseURI)).href:"#"+c,this.Yh[a]=
b)};h.$p=function(a,b){return Me(yo,a.namespaceURI)?(a=this.Oj(a,[ig(this,a,b)]))?a:null:null};h.xf=function(a,b){if(!Me(yo,a.namespaceURI))return[];var c;c=a.localName;if("Document"==c||"Folder"==c)return(c=this.Oh(a,[ig(this,a,b)]))?c:[];if("Placemark"==c)return(b=this.Oj(a,[ig(this,a,b)]))?[b]:[];if("kml"==c){c=[];for(a=a.firstElementChild;a;a=a.nextElementSibling){var d=this.xf(a,b);d&&Oe(c,d)}return c}return[]};h.readName=function(a){if(xg(a))return wp(this,a);if(yg(a))return xp(this,a);if("string"===
typeof a)return a=zg(a),wp(this,a)};function wp(a,b){for(b=b.firstChild;b;b=b.nextSibling)if(b.nodeType==Node.ELEMENT_NODE){var c=xp(a,b);if(c)return c}}function xp(a,b){var c;for(c=b.firstElementChild;c;c=c.nextElementSibling)if(Me(yo,c.namespaceURI)&&"name"==c.localName)return T(c);for(c=b.firstElementChild;c;c=c.nextElementSibling)if(b=c.localName,Me(yo,c.namespaceURI)&&("Document"==b||"Folder"==b||"Placemark"==b||"kml"==b)&&(b=xp(a,c)))return b}h.readNetworkLinks=function(a){var b=[];xg(a)?Oe(b,
yp(this,a)):yg(a)?Oe(b,zp(this,a)):"string"===typeof a&&(a=zg(a),Oe(b,yp(this,a)));return b};function yp(a,b){var c=[];for(b=b.firstChild;b;b=b.nextSibling)b.nodeType==Node.ELEMENT_NODE&&Oe(c,zp(a,b));return c}function zp(a,b){var c,d=[];for(c=b.firstElementChild;c;c=c.nextElementSibling)if(Me(yo,c.namespaceURI)&&"NetworkLink"==c.localName){var e=O({},sp,c,[]);d.push(e)}for(c=b.firstElementChild;c;c=c.nextElementSibling)b=c.localName,!Me(yo,c.namespaceURI)||"Document"!=b&&"Folder"!=b&&"kml"!=b||Oe(d,
zp(a,c));return d}h.readRegion=function(a){var b=[];xg(a)?Oe(b,Ap(this,a)):yg(a)?Oe(b,this.readRegionFromNode(a)):"string"===typeof a&&(a=zg(a),Oe(b,Ap(this,a)));return b};function Ap(a,b){var c=[];for(b=b.firstChild;b;b=b.nextSibling)b.nodeType==Node.ELEMENT_NODE&&Oe(c,a.readRegionFromNode(b));return c}h.readRegionFromNode=function(a){var b,c=[];for(b=a.firstElementChild;b;b=b.nextElementSibling)if(Me(yo,b.namespaceURI)&&"Region"==b.localName){var d=O({},jp,b,[]);c.push(d)}for(b=a.firstElementChild;b;b=
b.nextElementSibling)a=b.localName,!Me(yo,b.namespaceURI)||"Document"!=a&&"Folder"!=a&&"kml"!=a||Oe(c,this.readRegionFromNode(b));return c};function Bp(a,b){b=Cd(b);b=[255*(4==b.length?b[3]:1),b[2],b[1],b[0]];var c;for(c=0;4>c;++c){var d=parseInt(b[c],10).toString(16);b[c]=1==d.length?"0"+d:d}oh(a,b.join(""))}function Cp(a,b,c){a={node:a};var d=b.getType(),e,f;"GeometryCollection"==d?(e=b.getGeometries(),f=Dp):"MultiPoint"==d?(e=b.getPoints(),f=Ep):"MultiLineString"==d?(e=b.getLineStrings(),f=Fp):
"MultiPolygon"==d?(e=b.getPolygons(),f=Gp):qd(!1,39);Kg(a,Hp,f,e,c)}function Ip(a,b,c){Kg({node:a},Jp,Kp,[b],c)}function Lp(a,b,c){var d={node:a};b.getId()&&a.setAttribute("id",b.getId());a=b.getProperties();var e={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};e[b.getGeometryName()]=1;var f=Object.keys(a||{}).sort().filter(function(a){return!e[a]});if(0<f.length){var g=Ig(a,f);Kg(d,Mp,Np,[{names:f,values:g}],c)}if(f=b.getStyleFunction())if(f=f.call(b,0))f=Array.isArray(f)?
f[0]:f,this.ZE&&(a.Style=f),(f=f.getText())&&(a.name=f.getText());f=Op[c[c.length-1].node.namespaceURI];a=Ig(a,f);Kg(d,Mp,Hg,a,c,f);a=c[0];(b=b.getGeometry())&&(b=kg(b,!0,a));Kg(d,Mp,Dp,[b],c)}function Pp(a,b,c){var d=b.M();a={node:a};a.layout=b.getLayout();a.stride=b.aa();Kg(a,Qp,Rp,[d],c)}function Sp(a,b,c){b=b.getLinearRings();var d=b.shift();a={node:a};Kg(a,Tp,Up,b,c);Kg(a,Tp,Vp,[d],c)}function Wp(a,b){ph(a,Math.round(1E6*b)/1E6)}var Xp=N(yo,["Document","Placemark"]),$p=N(yo,{Document:L(function(a,
b,c){Kg({node:a},Yp,Zp,b,c,void 0,this)}),Placemark:L(Lp)}),Yp=N(yo,{Placemark:L(Lp)}),aq=N(yo,{Data:L(function(a,b,c){a.setAttribute("name",b.name);a={node:a};b=b.value;"object"==typeof b?(null!==b&&b.displayName&&Kg(a,aq,Hg,[b.displayName],c,["displayName"]),null!==b&&b.value&&Kg(a,aq,Hg,[b.value],c,["value"])):Kg(a,aq,Hg,[b],c,["value"])}),value:L(function(a,b){oh(a,b)}),displayName:L(function(a,b){a.appendChild(tg.createCDATASection(b))})}),bq={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",
Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},cq=N(yo,["href"],N(xo,["x","y","w","h"])),dq=N(yo,{href:L(oh)},N(xo,{x:L(ph),y:L(ph),w:L(ph),h:L(ph)})),eq=N(yo,["scale","heading","Icon","hotSpot"]),gq=N(yo,{Icon:L(function(a,b,c){a={node:a};var d=cq[c[c.length-1].node.namespaceURI],e=Ig(b,d);Kg(a,dq,Hg,e,c,d);d=cq[xo[0]];e=Ig(b,d);Kg(a,dq,fq,e,c,d)}),heading:L(ph),hotSpot:L(function(a,b){a.setAttribute("x",
b.x);a.setAttribute("y",b.y);a.setAttribute("xunits",b.Cn);a.setAttribute("yunits",b.Dn)}),scale:L(Wp)}),hq=N(yo,["color","scale"]),iq=N(yo,{color:L(Bp),scale:L(Wp)}),jq=N(yo,["color","width"]),kq=N(yo,{color:L(Bp),width:L(ph)}),Jp=N(yo,{LinearRing:L(Pp)}),Hp=N(yo,{LineString:L(Pp),Point:L(Pp),Polygon:L(Sp),GeometryCollection:L(Cp)}),Op=N(yo,"name open visibility address phoneNumber description styleUrl Style".split(" ")),Mp=N(yo,{ExtendedData:L(function(a,b,c){a={node:a};var d=b.names;b=b.values;
for(var e=d.length,f=0;f<e;f++)Kg(a,aq,lq,[{name:d[f],value:b[f]}],c)}),MultiGeometry:L(Cp),LineString:L(Pp),LinearRing:L(Pp),Point:L(Pp),Polygon:L(Sp),Style:L(function(a,b,c){a={node:a};var d={},e=b.getFill(),f=b.getStroke(),g=b.getImage();b=b.getText();g instanceof $n&&(d.IconStyle=g);b&&(d.LabelStyle=b);f&&(d.LineStyle=f);e&&(d.PolyStyle=e);b=mq[c[c.length-1].node.namespaceURI];d=Ig(d,b);Kg(a,nq,Hg,d,c,b)}),address:L(oh),description:L(oh),name:L(oh),open:L(nh),phoneNumber:L(oh),styleUrl:L(oh),
visibility:L(nh)}),Qp=N(yo,{coordinates:L(function(a,b,c){c=c[c.length-1];var d=c.layout;c=c.stride;var e;"XY"==d||"XYM"==d?e=2:"XYZ"==d||"XYZM"==d?e=3:qd(!1,34);var f,g=b.length,k="";if(0<g){k+=b[0];for(d=1;d<e;++d)k+=","+b[d];for(f=c;f<g;f+=c)for(k+=" "+b[f],d=1;d<e;++d)k+=","+b[f+d]}oh(a,k)})}),Tp=N(yo,{outerBoundaryIs:L(Ip),innerBoundaryIs:L(Ip)}),oq=N(yo,{color:L(Bp)}),mq=N(yo,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),nq=N(yo,{IconStyle:L(function(a,b,c){a={node:a};var d={},e=b.getSrc(),
f=b.getSize(),g=b.getImageSize(),e={href:e};if(f){e.w=f[0];e.h=f[1];var k=b.getAnchor(),l=b.getOrigin();l&&g&&0!==l[0]&&l[1]!==f[1]&&(e.x=l[0],e.y=g[1]-(l[1]+f[1]));k&&0!==k[0]&&k[1]!==f[1]&&(d.hotSpot={x:k[0],Cn:"pixels",y:f[1]-k[1],Dn:"pixels"})}d.Icon=e;f=b.getScale();1!==f&&(d.scale=f);b=b.getRotation();0!==b&&(d.heading=b);b=eq[c[c.length-1].node.namespaceURI];d=Ig(d,b);Kg(a,gq,Hg,d,c,b)}),LabelStyle:L(function(a,b,c){a={node:a};var d={},e=b.getFill();e&&(d.color=e.getColor());(b=b.getScale())&&
1!==b&&(d.scale=b);b=hq[c[c.length-1].node.namespaceURI];d=Ig(d,b);Kg(a,iq,Hg,d,c,b)}),LineStyle:L(function(a,b,c){a={node:a};var d={color:b.getColor(),width:b.getWidth()};b=jq[c[c.length-1].node.namespaceURI];d=Ig(d,b);Kg(a,kq,Hg,d,c,b)}),PolyStyle:L(function(a,b,c){Kg({node:a},oq,pq,[b.getColor()],c)})});function fq(a,b,c){return ug(xo[0],"gx:"+c)}function Zp(a,b){return ug(b[b.length-1].node.namespaceURI,"Placemark")}function Dp(a,b){if(a)return ug(b[b.length-1].node.namespaceURI,bq[a.getType()])}
var pq=Fg("color"),Rp=Fg("coordinates"),lq=Fg("Data"),Np=Fg("ExtendedData"),Up=Fg("innerBoundaryIs"),Ep=Fg("Point"),Fp=Fg("LineString"),Kp=Fg("LinearRing"),Gp=Fg("Polygon"),Vp=Fg("outerBoundaryIs");ho.prototype.writeFeaturesNode=function(a,b){b=jg(this,b);var c=ug(yo[4],"kml");c.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:gx",xo[0]);c.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance");c.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance",
"xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");var d={node:c},e={};1<a.length?e.Document=a:1==a.length&&(e.Placemark=a[0]);a=Xp[c.namespaceURI];e=Ig(e,a);Kg(d,$p,Hg,e,[b],a,this);return c};function qq(a){a=a?a:{};a.$y||(a.$y="anonymous");ho.call(this);this.Pv=null}v(qq,ho);function rq(a,b){b=O({},sq,a,b);if(!b)return null;a="fillStyle"in b?b.fillStyle:ko;var c=b.fill;void 0===c||c||(a=null);c="imageStyle"in b?b.imageStyle:ro;c==so&&(c=void 0);
var d="textStyle"in b?b.textStyle:vo,e="strokeStyle"in b?b.strokeStyle:to;b=b.outline;void 0===b||b||(e=null);return[new mg({fill:a,image:c,stroke:e,text:d,zIndex:void 0})]}fp=N(yo,{IconStyle:tq,LabelStyle:Ho,LineStyle:Jo,PolyStyle:Lo});qq.prototype.iq=function(a,b){var c=a.getAttribute("id");null!==c&&(b=rq(a,b))&&(a=a.baseURI?(new URL("#"+c,a.baseURI)).href:"#"+c,this.Yh[a]=b)};function tq(a,b){if(a=O({},qp,a,b)){b=b[b.length-1];var c="Icon"in a?a.Icon:{},d=!("Icon"in a)||0<Object.keys(c).length,
e,f=c.href;f?e=f:d&&(e=po);var g,k,l;(f=a.hotSpot)?(g=[f.x,f.y],k=f.Cn,l=f.Dn):e===po?(g=lo,k=no,l=mo):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(e)&&(g=[.5,0],l=k="fraction");var m,f=c.x,n=c.y;void 0!==f&&void 0!==n&&(m=[f,n]);var q,f=c.w,c=c.h;void 0!==f&&void 0!==c&&(q=[f,c]);var r,c=a.heading;void 0!==c&&(r=xd(c));a=a.scale;d?(e==po&&(q=oo,void 0===a&&(a=qo)),e=new fo({anchor:g,anchorOrigin:"bottom-left",anchorXUnits:k,anchorYUnits:l,crossOrigin:null,offset:m,offsetOrigin:"bottom-left",
rotation:r,scale:a,size:q,src:e}),b.imageStyle=e):b.imageStyle=so}}qq.prototype.Oj=function(a,b){var c=O({geometry:null},uq,a,b);if(c){var d=new E;a=a.getAttribute("id");null!==a&&d.setId(a);b=b[0];(a=c.geometry)&&kg(a,!1,b);d.setGeometry(a);delete c.geometry;this.Ws&&d.setStyle(Bo(c.Style,c.styleUrl,this.Es,this.Yh,this.Wv));delete c.Style;d.setProperties(c);d.set("name",M.utils.decodeHtml(d.get("name")));return d}};qq.prototype.hq=function(a,b){var c=a.getAttribute("id");null!==c&&(b=O(void 0,vq,
a,b))&&(a=a.baseURI?(new URL("#"+c,a.baseURI)).href:"#"+c,this.Yh[a]=b)};N(xo,{x:Dg(jh),y:K(jh),xunits:K(jh),yunits:K(jh)});var xq=N(yo,{Icon:K(To),overlayXY:K(function(a){return(a=wq(a))?a:null}),screenXY:K(function(a){return(a=wq(a))?a:null}),rotationXY:K(function(a){return(a=wq(a))?a:null}),size:K(function(a){return(a=wq(a))?a:null})}),sq=N(yo,{IconStyle:tq,LabelStyle:Ho,LineStyle:Jo,PolyStyle:Lo}),yq=N(yo,{Style:K(rq),key:K(T),styleUrl:K(Fo)}),uq=N(yo,{ExtendedData:gp,Region:ip,MultiGeometry:K(Zo,
"geometry"),LineString:K(Vo,"geometry"),LinearRing:K(Yo,"geometry"),Point:K(bp,"geometry"),Polygon:K(cp,"geometry"),Style:K(rq),StyleMap:function(a,b){if(a=O(void 0,vq,a,b))b=b[b.length-1],Array.isArray(a)?b.Style=a:"string"===typeof a?b.styleUrl=a:qd(!1,38)},address:K(T),description:K(T),name:K(T),open:K(gh),phoneNumber:K(T),styleUrl:K(Fo),visibility:K(gh)},N(xo,{MultiTrack:K(Po,"geometry"),Track:K(Ro,"geometry")})),vq=N(yo,{Pair:function(a,b){if(a=O({},yq,a,b)){var c=a.key;c&&"normal"==c&&((c=a.styleUrl)&&
(b[b.length-1]=c),(a=a.Style)&&(b[b.length-1]=a))}}});function wq(a){var b=kh(a.getAttribute("x")),c=kh(a.getAttribute("y")),d=a.getAttribute("xunits");a=a.getAttribute("yunits");return{x:b,y:c,xunits:d,yunits:a}}qq.prototype.iD=function(a,b){if(a=O({},xq,a,b)){var c;b=a.Icon;M.utils.isNullOrEmpty(b)||(c=b.href);M.utils.isNullOrEmpty(c)&&(c=po);var d,e,f;b=a.overlayXY;M.utils.isNullOrEmpty(b)||(d=[b.x,b.y],e=b.xunits,f=b.yunits);var g,k,l;b=a.screenXY;M.utils.isNullOrEmpty(b)?c===po?(g=lo,k=no,l=
mo):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(c)&&(g=[.5,0],l=k="fraction"):(g=[b.x,b.y],k=b.xunits,l=b.yunits);var m;b=a.rotationXY;M.utils.isNullOrEmpty(b)||(m=b.x*Math.PI/180);var n;a=a.size;M.utils.isNullOrEmpty(a)||(n=[a.x,a.y]);this.Pv={screenXY:g,screenXUnits:k,screenYUnits:l,overlayXY:d,overlayXUnits:e,overlayYUnits:f,rotationXY:m,size:n,src:c}}};qq.prototype.Oh=function(a,b){var c=N(yo,{Document:Ag(this.Oh,this),Folder:Ag(this.Oh,this),Placemark:Bg(this.Oj,this),ScreenOverlay:this.iD.bind(this),
Style:this.iq.bind(this),StyleMap:this.hq.bind(this)});if(a=O([],c,a,b,this))return a};qq.prototype.getScreenOverlay=function(){return this.Pv};function zq(){}zq.prototype.read=function(a){return xg(a)?this.readFromDocument(a):yg(a)?this.Dg(a):"string"===typeof a?(a=zg(a),this.readFromDocument(a)):null};function Aq(a){this.namespaces={ol:"http://openlayers.org/context",wmc:"http://www.opengis.net/context",sld:"http://www.opengis.net/sld",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance",
xsd:"http://www.w3.org/2001/XMLSchema",ogc:"http://www.opengis.net/ogc"};this.options=a||{}}v(Aq,zq);h=Aq.prototype;h.read=function(a){M.utils.isString(a)&&(a=zg(a));9!==a.nodeType&&M.pz("doc.nodeType should be DOCUMENT");var b={};this.read_root(b,a);return b};h.read_root=function(a,b){b=b.documentElement;a.version=b.getAttribute("version");this.runChildNodes(a,b)};h.runChildNodes=function(a,b){b=b.childNodes;for(var c,d,e,f=0,g=b.length;f<g;++f)c=b[f],1==c.nodeType&&(d=this.getNamespacePrefix(c.namespaceURI),
e=c.nodeName.split(":").pop(),(d=this["read_"+d+"_"+e])&&d.apply(this,[a,c]))};h.getNamespacePrefix=function(a){var b=null;if(null===a)b=this.namespaces[this.KH];else for(b in this.namespaces)if(this.namespaces[b]==a)break;return b};h.getChildValue=function(a,b){b=b||"";if(a)for(a=a.firstChild;a;a=a.nextSibling)switch(a.nodeType){case 3:case 4:b+=a.nodeValue}return b};h.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else if(a=this.getAttributeNodeNS(a,b,c))d=
a.nodeValue;return d};function Bq(a){this.Ho=0;this.kq=!1;Aq.call(this,a)}v(Bq,Aq);h=Bq.prototype;h.read_root=function(a,b){b=b.documentElement;/ServiceExceptionReport/i.test(b.localName)||(a.elementFormDefault=b.getAttribute("elementFormDefault"),a.targetNamespace=b.getAttribute("targetNamespace"),a.targetPrefix=b.getAttribute("targetPrefix"),a.featureTypes=[]);this.runChildNodes(a,b)};h.read_ogc_ServiceException=function(a,b){M.dialog.error("Error en el DescribeFeatureType: "+b.textContent.trim())};
h.read_xsd_schema=function(a,b){this.runChildNodes(a,b)};h.read_xsd_import=function(){};h.read_xsd_complexType=function(a,b){this.kq=!0;a.featureTypes.push({properties:[]});this.runChildNodes(a,b);this.kq=!1};h.read_xsd_complexContent=function(a,b){this.runChildNodes(a,b)};h.read_xsd_extension=function(a,b){this.runChildNodes(a,b)};h.read_xsd_sequence=function(a,b){this.runChildNodes(a,b)};h.read_xsd_element=function(a,b){!0===this.kq?a.featureTypes[this.Ho].properties.push({name:b.getAttribute("name"),
maxOccurs:b.getAttribute("maxOccurs"),minOccurs:b.getAttribute("minOccurs"),nillable:b.getAttribute("nillable"),type:b.getAttribute("type"),localType:b.getAttribute("type").replace(/^\w+:/g,"")}):(a.featureTypes[this.Ho].typeName=b.getAttribute("name"),this.Ho++)};M.impl.format.DescribeFeatureType={};M.impl.format.DescribeFeatureType=function(a,b,c){this.mk=a;this.pC=b;this.Ga=c;this.fA=new Bq({outputFormat:b,featureType:a,srsName:this.Ga.code})};M.impl.format.DescribeFeatureType.prototype.read=function(a){var b=
{},c;if(/json/gi.test(this.pC))try{c=JSON.parse(a.text)}catch(d){}c||(c=this.fA.read(a.text));b.featureNS=c.targetNamespace;b.featurePrefix=c.targetPrefix;c.featureTypes.some(function(a){if(a.typeName===this.mk)return b.properties=a.properties,b.properties.some(function(a){if(M.utils.isGeometryType(a.localType))return b.geometryName=a.name,!0}),!0},this);return b};function Cq(){hg.call(this)}A(Cq,hg);function Dq(a){return"string"===typeof a?a:""}h=Cq.prototype;h.getType=function(){return"text"};h.readFeature=
function(a,b){return this.Mj(Dq(a),jg(this,b))};h.readFeatures=function(a,b){return this.bq(Dq(a),jg(this,b))};h.readGeometry=function(a,b){return this.Ph(Dq(a),jg(this,b))};h.readProjection=function(){return this.defaultDataProjection};h.writeFeature=function(a,b){return this.sk(a,jg(this,b))};h.writeFeatures=function(a,b){return this.kr(a,jg(this,b))};h.writeGeometry=function(a,b){return this.Ng(a,jg(this,b))};function Eq(a){a=a?a:{};hg.call(this);this.aE=void 0!==a.splitCollection?a.splitCollection:
!1}A(Eq,Cq);function Fq(a){a=a.getCoordinates();return 0===a.length?"":a.join(" ")}function Gq(a){a=a.getCoordinates();for(var b=[],c=0,d=a.length;c<d;++c)b.push(a[c].join(" "));return b.join(",")}function Hq(a){var b=[];a=a.getLinearRings();for(var c=0,d=a.length;c<d;++c)b.push("("+Gq(a[c])+")");return b.join(",")}function Iq(a){var b=a.getType(),c=(0,Jq[b])(a),b=b.toUpperCase();if(a instanceof Og){a=a.getLayout();var d="";if("XYZ"===a||"XYZM"===a)d+="Z";if("XYM"===a||"XYZM"===a)d+="M";a=d;0<a.length&&
(b+=" "+a)}return 0===c.length?b+" EMPTY":b+"("+c+")"}var Jq={Point:Fq,LineString:Gq,Polygon:Hq,MultiPoint:function(a){var b=[];a=a.getPoints();for(var c=0,d=a.length;c<d;++c)b.push("("+Fq(a[c])+")");return b.join(",")},MultiLineString:function(a){var b=[];a=a.getLineStrings();for(var c=0,d=a.length;c<d;++c)b.push("("+Gq(a[c])+")");return b.join(",")},MultiPolygon:function(a){var b=[];a=a.getPolygons();for(var c=0,d=a.length;c<d;++c)b.push("("+Hq(a[c])+")");return b.join(",")},GeometryCollection:function(a){var b=
[];a=a.getGeometries();for(var c=0,d=a.length;c<d;++c)b.push(Iq(a[c]));return b.join(",")}};h=Eq.prototype;h.Mj=function(a,b){return(a=this.Ph(a,b))?(b=new E,b.setGeometry(a),b):null};h.bq=function(a,b){a=this.Ph(a,b);a=this.aE&&"GeometryCollection"==a.getType()?a.ma:[a];for(var c=[],d=0,e=a.length;d<e;++d)b=new E,b.setGeometry(a[d]),c.push(b);return c};h.Ph=function(a,b){return(a=(new Kq(new Lq(a))).parse())?kg(a,!1,b):null};h.sk=function(a,b){return(a=a.getGeometry())?this.Ng(a,b):""};h.kr=function(a,
b){if(1==a.length)return this.sk(a[0],b);for(var c=[],d=0,e=a.length;d<e;++d)c.push(a[d].getGeometry());a=new Fn(c);return this.Ng(a,b)};h.Ng=function(a,b){return Iq(kg(a,!0,b))};function Lq(a){this.wkt=a;this.hf=-1}function Mq(a){var b=a.wkt.charAt(++a.hf),c={position:a.hf,value:b};if("("==b)c.type=2;else if(","==b)c.type=5;else if(")"==b)c.type=3;else if("0"<=b&&"9">=b||"."==b||"-"==b){c.type=4;var d,b=a.hf,e=!1,f=!1;do{if("."==d)e=!0;else if("e"==d||"E"==d)f=!0;d=a.wkt.charAt(++a.hf)}while("0"<=
d&&"9">=d||"."==d&&(void 0===e||!e)||!f&&("e"==d||"E"==d)||f&&("-"==d||"+"==d));a=parseFloat(a.wkt.substring(b,a.hf--));c.value=a}else if("a"<=b&&"z">=b||"A"<=b&&"Z">=b){c.type=1;b=a.hf;do d=a.wkt.charAt(++a.hf);while("a"<=d&&"z">=d||"A"<=d&&"Z">=d);a=a.wkt.substring(b,a.hf--).toUpperCase();c.value=a}else{if(" "==b||"\t"==b||"\r"==b||"\n"==b)return Mq(a);if(""===b)c.type=6;else throw Error("Unexpected character: "+b);}return c}function Kq(a){this.au=a;this.Cp="XY"}function Nq(a){a.Zd=Mq(a.au)}h=Kq.prototype;
h.match=function(a){(a=this.Zd.type==a)&&Nq(this);return a};h.parse=function(){Nq(this);return Oq(this)};function Oq(a){var b=a.Zd;if(a.match(1)){var b=b.value,c="XY",d=a.Zd;1==a.Zd.type&&(d=d.value,"Z"===d?c="XYZ":"M"===d?c="XYM":"ZM"===d&&(c="XYZM"),"XY"!==c&&Nq(a));a.Cp=c;if("GEOMETRYCOLLECTION"==b){a:{if(a.match(2)){b=[];do b.push(Oq(a));while(a.match(5));if(a.match(3)){a=b;break a}}else if(Pq(a)){a=[];break a}throw Error(Qq(a));}return new Fn(a)}d=Rq[b];c=Sq[b];if(!d||!c)throw Error("Invalid geometry type: "+
b);b=d.call(a);return new c(b,a.Cp)}throw Error(Qq(a));}h.Op=function(){if(this.match(2)){var a=Tq(this);if(this.match(3))return a}else if(Pq(this))return null;throw Error(Qq(this));};h.Np=function(){if(this.match(2)){var a=Uq(this);if(this.match(3))return a}else if(Pq(this))return[];throw Error(Qq(this));};h.Pp=function(){if(this.match(2)){var a=Vq(this);if(this.match(3))return a}else if(Pq(this))return[];throw Error(Qq(this));};h.wC=function(){if(this.match(2)){var a;if(2==this.Zd.type)for(a=[this.Op()];this.match(5);)a.push(this.Op());
else a=Uq(this);if(this.match(3))return a}else if(Pq(this))return[];throw Error(Qq(this));};h.vC=function(){if(this.match(2)){var a=Vq(this);if(this.match(3))return a}else if(Pq(this))return[];throw Error(Qq(this));};h.xC=function(){if(this.match(2)){for(var a=[this.Pp()];this.match(5);)a.push(this.Pp());if(this.match(3))return a}else if(Pq(this))return[];throw Error(Qq(this));};function Tq(a){for(var b=[],c=a.Cp.length,d=0;d<c;++d){var e=a.Zd;if(a.match(4))b.push(e.value);else break}if(b.length==
c)return b;throw Error(Qq(a));}function Uq(a){for(var b=[Tq(a)];a.match(5);)b.push(Tq(a));return b}function Vq(a){for(var b=[a.Np()];a.match(5);)b.push(a.Np());return b}function Pq(a){var b=1==a.Zd.type&&"EMPTY"==a.Zd.value;b&&Nq(a);return b}function Qq(a){return"Unexpected `"+a.Zd.value+"` at position "+a.Zd.position+" in `"+a.au.wkt+"`"}var Sq={POINT:F,LINESTRING:P,POLYGON:R,MULTIPOINT:Wg,MULTILINESTRING:Q,MULTIPOLYGON:S},Rq={POINT:Kq.prototype.Op,LINESTRING:Kq.prototype.Np,POLYGON:Kq.prototype.Pp,
MULTIPOINT:Kq.prototype.wC,MULTILINESTRING:Kq.prototype.vC,MULTIPOLYGON:Kq.prototype.xC};function wb(a){a=void 0===a?{}:a;this.eA=new vb;Eq.call(this,a)}v(wb,Eq);wb.prototype.write=function(a){a=this.eA.Am(a);if("point"===a.getType().toLowerCase()){var b=a.getCoordinates();a.setCoordinates([b[0],b[1]])}return this.Ng(a)};function Wq(a){this.Be=this.version=null;Aq.call(this,a)}v(Wq,Aq);Wq.prototype.readFromDocument=function(a){9!==a.nodeType&&M.pz("doc.nodeType should be DOCUMENT");this.version=a.documentElement.getAttribute("version");
this.version||(this.version=Xq);var b="v".concat(M.utils.normalize(this.version).replace(/\./g,""));this.Be=new Wq[b](this.options);return this.Be.read(a)};var Xq="1.0.0";function V(a){Aq.call(this,a)}v(V,Aq);h=V.prototype;h.read_sld_MinScaleDenominator=function(a,b){a.options.minScale=parseFloat(this.getChildValue(b))};h.read_wmc_Layer=function(a,b){var c={params:this.JI||{},options:{visibility:"1"!=b.getAttribute("hidden"),queryable:"1"==b.getAttribute("queryable")},formats:[],styles:[]};this.runChildNodes(c,
b);c.params.isWMC="ok";c.params.layers=c.name;c.options.maxExtent=c.maxExtent;b=this.getLayerFromInfo(c);null!=c.styles&&null!=c.styles[0]&&(c=c.styles[0],null!=c.legend&&c.legend.href&&b.setLegendURL(c.legend.href));a.layers.push(b)};h.getLayerFromInfo=function(a){var b=a.options;b.params=a.params;return new M.layer.WMS({name:a.name,legend:a.title,url:a.href,transparent:!/^1|(true)$/i.test(b.isBaseLayer)},b)};h.read_ol_units=function(a,b){a.units=this.getChildValue(b)};h.read_ol_tileSize=function(a,
b){a.tileSize={width:parseFloat(b.getAttribute("width")),height:parseFloat(b.getAttribute("height"))}};h.read_ol_groupDisplayLayerSwitcher=function(a,b){a.options.groupDisplayLayerSwitcher=this.getChildValue(b)};h.read_ol_orderInsideGroupDisplayLayerSwitcher=function(a,b){a.options.orderInsideGroupDisplayLayerSwitcher=this.getChildValue(b)};h.read_sld_MaxScaleDenominator=function(a,b){a.options.maxScale=parseFloat(this.getChildValue(b))};h.read_wmc_Style=function(a,b){var c={};this.runChildNodes(c,
b);"1"==b.getAttribute("current")&&(c.legend&&(a.params.layerLegend=c.legend),c.href?a.params.sld=c.href:c.body?a.params.sld_body=c.body:a.params.styles=c.name);a.styles.push(c)};h.read_wmc_General=function(a,b){this.runChildNodes(a,b)};h.read_wmc_BoundingBox=function(a,b){a.projection=b.getAttribute("SRS");a.bounds=[parseFloat(b.getAttribute("minx")),parseFloat(b.getAttribute("miny")),parseFloat(b.getAttribute("maxx")),parseFloat(b.getAttribute("maxy"))]};h.read_wmc_LayerList=function(a,b){a.layers=
[];this.runChildNodes(a,b)};h.read_wmc_Extension=function(a,b){this.runChildNodes(a,b)};h.read_ol_maxExtent=function(a,b){b=[parseFloat(b.getAttribute("minx")),parseFloat(b.getAttribute("miny")),parseFloat(b.getAttribute("maxx")),parseFloat(b.getAttribute("maxy"))];var c=this.options.projection,d=a.projection;M.utils.isNullOrEmpty(c)||M.utils.isNullOrEmpty(d)||c===d||(d=H(d),c=H(c),b=fg(b,d,c));a.maxExtent=b};h.read_ol_transparent=function(a,b){a.params.transparent=this.getChildValue(b)};h.read_ol_numZoomLevels=
function(a,b){a.options.numZoomLevels=parseInt(this.getChildValue(b))};h.read_ol_opacity=function(a,b){a.options.opacity=parseFloat(this.getChildValue(b))};h.read_ol_singleTile=function(a,b){a.options.singleTile="true"==this.getChildValue(b)};h.read_ol_isBaseLayer=function(a,b){a.options.isBaseLayer="true"==this.getChildValue(b)};h.read_ol_displayInLayerSwitcher=function(a,b){b=M.utils.normalize(this.getChildValue(b));a.options.displayInLayerSwitcher="true"==b};h.read_wmc_Server=function(a,b){a.params.version=
b.getAttribute("version");this.runChildNodes(a,b)};h.read_wmc_FormatList=function(a,b){this.runChildNodes(a,b)};h.read_wmc_Format=function(a,b){var c=this.getChildValue(b);a.formats.push(c);"1"==b.getAttribute("current")&&(a.params.format=c)};h.read_wmc_StyleList=function(a,b){this.runChildNodes(a,b)};h.read_wmc_SLD=function(a,b){this.runChildNodes(a,b)};h.read_sld_StyledLayerDescriptor=function(a,b){a.body=vg(b)};h.read_wmc_OnlineResource=function(a,b){a.href=this.getAttributeNS(b,this.namespaces.xlink,
"href")};h.read_wmc_Name=function(a,b){(b=this.getChildValue(b))&&(a.name=b)};h.read_wmc_Title=function(a,b){(b=this.getChildValue(b))&&(a.title=b)};h.read_wmc_MetadataURL=function(a,b){var c={};b=b.getElementsByTagName("OnlineResource");0<b.length&&this.read_wmc_OnlineResource(c,b[0]);a.options.metadataURL=c.href};h.read_wmc_Abstract=function(a,b){(b=this.getChildValue(b))&&(a["abstract"]=b)};h.read_wmc_LatLonBoundingBox=function(a,b){a.llbbox=[parseFloat(b.getAttribute("minx")),parseFloat(b.getAttribute("miny")),
parseFloat(b.getAttribute("maxx")),parseFloat(b.getAttribute("maxy"))]};h.read_wmc_LegendURL=function(a,b){var c={width:b.getAttribute("width"),height:b.getAttribute("height")};b=b.getElementsByTagName("OnlineResource");0<b.length&&this.read_wmc_OnlineResource(c,b[0]);a.legend=c};h.read_sld_FeatureTypeStyle=function(a,b){a.body=vg(b)};h.read_wmc_KeywordList=function(a,b){a.keywords=[];this.runChildNodes(a.keywords,b)};h.read_wmc_Keyword=function(a,b){a.push(this.getChildValue(b))};h.read_wmc_LogoURL=
function(a,b){a.logo={width:b.getAttribute("width"),height:b.getAttribute("height"),format:b.getAttribute("format"),href:this.vt(b)}};h.read_wmc_DescriptionURL=function(a,b){a.descriptionURL=this.vt(b)};h.read_wmc_ContactInformation=function(a,b){var c={};this.runChildNodes(c,b);a.contactInformation=c};h.read_wmc_ContactPersonPrimary=function(a,b){var c={};this.runChildNodes(c,b);a.personPrimary=c};h.read_wmc_ContactPerson=function(a,b){(b=this.getChildValue(b))&&(a.person=b)};h.read_wmc_ContactOrganization=
function(a,b){(b=this.getChildValue(b))&&(a.organization=b)};h.read_wmc_ContactPosition=function(a,b){(b=this.getChildValue(b))&&(a.position=b)};h.read_wmc_ContactAddress=function(a,b){var c={};this.runChildNodes(c,b);a.contactAddress=c};h.read_wmc_AddressType=function(a,b){(b=this.getChildValue(b))&&(a.type=b)};h.read_wmc_Address=function(a,b){(b=this.getChildValue(b))&&(a.address=b)};h.read_wmc_City=function(a,b){(b=this.getChildValue(b))&&(a.city=b)};h.read_wmc_StateOrProvince=function(a,b){(b=
this.getChildValue(b))&&(a.stateOrProvince=b)};h.read_wmc_PostCode=function(a,b){(b=this.getChildValue(b))&&(a.postcode=b)};h.read_wmc_Country=function(a,b){(b=this.getChildValue(b))&&(a.country=b)};h.read_wmc_ContactVoiceTelephone=function(a,b){(b=this.getChildValue(b))&&(a.phone=b)};h.read_wmc_ContactFacsimileTelephone=function(a,b){(b=this.getChildValue(b))&&(a.fax=b)};h.read_wmc_ContactElectronicMailAddress=function(a,b){(b=this.getChildValue(b))&&(a.email=b)};h.read_wmc_DataURL=function(a,b){a.dataURL=
this.vt(b)};h.read_wmc_DimensionList=function(a,b){a.dimensions={};this.runChildNodes(a.dimensions,b)};h.read_wmc_Dimension=function(a,b){var c={name:b.getAttribute("name").toLowerCase(),units:b.getAttribute("units")||"",unitSymbol:b.getAttribute("unitSymbol")||"",userValue:b.getAttribute("userValue")||"",nearestValue:"1"===b.getAttribute("nearestValue"),multipleValues:"1"===b.getAttribute("multipleValues"),current:"1"===b.getAttribute("current"),"default":b.getAttribute("default")||""};b=this.getChildValue(b);
c.values=b.split(",");a[c.name]=c};function Yq(a){return a.getAttributeNS("http://www.w3.org/1999/xlink","href")}function Zq(){this.version=void 0}A(Zq,zq);Zq.prototype.readFromDocument=function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType==Node.ELEMENT_NODE)return this.Dg(a);return null};Zq.prototype.Dg=function(a){this.version=a.getAttribute("version").trim();return(a=O({version:this.version},$q,a,[]))?a:null};function ar(a,b){return O({},br,a,b)}function cr(a,b){var c=O({},dr,a,b);if(c){a=
c.westBoundLongitude;b=c.southBoundLatitude;var d=c.eastBoundLongitude,c=c.northBoundLatitude;if(void 0!==a&&void 0!==b&&void 0!==d&&void 0!==c)return[a,b,d,c]}}function er(a){return{name:a.getAttribute("name"),units:a.getAttribute("units"),unitSymbol:a.getAttribute("unitSymbol"),"default":a.getAttribute("default"),multipleValues:hh(a.getAttribute("multipleValues")),nearestValue:hh(a.getAttribute("nearestValue")),current:hh(a.getAttribute("current")),values:T(a)}}function fr(a,b){return O({},gr,a,
b)}function hr(a,b){return O({},ir,a,b)}function jr(a,b){if(b=fr(a,b))return a=[mh(a.getAttribute("width")),mh(a.getAttribute("height"))],b.size=a,b}function kr(a,b){if(b=fr(a,b))return b.name=a.getAttribute("name"),b}function lr(a,b){if(b=fr(a,b))return b.type=a.getAttribute("type"),b}function mr(a,b){return O({},nr,a,b)}function or(a,b){return O([],pr,a,b)}var qr=[null,"http://www.opengis.net/wms"],$q=N(qr,{Service:K(function(a,b){return O({},rr,a,b)}),Capability:K(function(a,b){return O({},sr,
a,b)})}),sr=N(qr,{Request:K(function(a,b){return O({},tr,a,b)}),Exception:K(function(a,b){return O([],ur,a,b)}),Layer:K(function(a,b){return O({},vr,a,b)})}),rr=N(qr,{Name:K(T),Title:K(T),Abstract:K(T),KeywordList:K(or),OnlineResource:K(Yq),ContactInformation:K(function(a,b){return O({},wr,a,b)}),Fees:K(T),AccessConstraints:K(T),LayerLimit:K(lh),MaxWidth:K(lh),MaxHeight:K(lh)}),wr=N(qr,{ContactPersonPrimary:K(function(a,b){return O({},xr,a,b)}),ContactPosition:K(T),ContactAddress:K(function(a,b){return O({},
yr,a,b)}),ContactVoiceTelephone:K(T),ContactFacsimileTelephone:K(T),ContactElectronicMailAddress:K(T)}),xr=N(qr,{ContactPerson:K(T),ContactOrganization:K(T)}),yr=N(qr,{AddressType:K(T),Address:K(T),City:K(T),StateOrProvince:K(T),PostCode:K(T),Country:K(T)}),ur=N(qr,{Format:Bg(T)}),vr=N(qr,{Name:K(T),Title:K(T),Abstract:K(T),KeywordList:K(or),CRS:Dg(T),EX_GeographicBoundingBox:K(cr),BoundingBox:Dg(function(a){var b=[kh(a.getAttribute("minx")),kh(a.getAttribute("miny")),kh(a.getAttribute("maxx")),kh(a.getAttribute("maxy"))],
c=[kh(a.getAttribute("resx")),kh(a.getAttribute("resy"))];return{crs:a.getAttribute("CRS"),extent:b,res:c}}),Dimension:Dg(er),Attribution:K(ar),AuthorityURL:Dg(kr),Identifier:Dg(T),MetadataURL:Dg(lr),DataURL:Dg(fr),FeatureListURL:Dg(fr),Style:Dg(mr),MinScaleDenominator:K(jh),MaxScaleDenominator:K(jh),Layer:Dg(function(a,b){var c=b[b.length-1],d=O({},vr,a,b);if(d)return b=hh(a.getAttribute("queryable")),void 0===b&&(b=c.queryable),d.queryable=void 0!==b?b:!1,b=mh(a.getAttribute("cascaded")),void 0===
b&&(b=c.cascaded),d.cascaded=b,b=hh(a.getAttribute("opaque")),void 0===b&&(b=c.opaque),d.opaque=void 0!==b?b:!1,b=hh(a.getAttribute("noSubsets")),void 0===b&&(b=c.noSubsets),d.noSubsets=void 0!==b?b:!1,(b=kh(a.getAttribute("fixedWidth")))||(b=c.fixedWidth),d.fixedWidth=b,(a=kh(a.getAttribute("fixedHeight")))||(a=c.fixedHeight),d.fixedHeight=a,["Style","CRS","AuthorityURL"].forEach(function(a){a in c&&(d[a]=(d[a]||[]).concat(c[a]))}),"EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" ").forEach(function(a){a in
d||(d[a]=c[a])}),d})}),br=N(qr,{Title:K(T),OnlineResource:K(Yq),LogoURL:K(jr)}),dr=N(qr,{westBoundLongitude:K(jh),eastBoundLongitude:K(jh),southBoundLatitude:K(jh),northBoundLatitude:K(jh)}),tr=N(qr,{GetCapabilities:K(hr),GetMap:K(hr),GetFeatureInfo:K(hr)}),ir=N(qr,{Format:Dg(T),DCPType:Dg(function(a,b){return O({},zr,a,b)})}),zr=N(qr,{HTTP:K(function(a,b){return O({},Ar,a,b)})}),Ar=N(qr,{Get:K(fr),Post:K(fr)}),nr=N(qr,{Name:K(T),Title:K(T),Abstract:K(T),LegendURL:Dg(jr),StyleSheetURL:K(fr),StyleURL:K(fr)}),
gr=N(qr,{Format:K(T),OnlineResource:K(Yq)}),pr=N(qr,{Keyword:Bg(T)});M.impl.format.WMSCapabilities={};M.impl.format.WMSCapabilities=function(){this.version=void 0};v(M.impl.format.WMSCapabilities,Zq);M.impl.format.WMSCapabilities.hD=function(a){var b=kh(a.getAttribute("min"));a=kh(a.getAttribute("max"));return{minScale:b,maxScale:a}};M.impl.format.WMSCapabilities.bD=function(a,b){var c=b[b.length-1],d=O({},vr,a,b);if(d)return b=hh(a.getAttribute("queryable")),void 0===b&&(b=c.queryable),d.queryable=
void 0!==b?b:!1,b=mh(a.getAttribute("cascaded")),void 0===b&&(b=c.cascaded),d.cascaded=b,b=hh(a.getAttribute("opaque")),void 0===b&&(b=c.opaque),d.opaque=void 0!==b?b:!1,b=hh(a.getAttribute("noSubsets")),void 0===b&&(b=c.noSubsets),d.noSubsets=void 0!==b?b:!1,(b=kh(a.getAttribute("fixedWidth")))||(b=c.fixedWidth),d.fixedWidth=b,(a=kh(a.getAttribute("fixedHeight")))||(a=c.fixedHeight),d.fixedHeight=a,["Style","CRS","AuthorityURL"].forEach(function(a){if(a in c){var b=Bb.PD(d,a,[]),b=b.concat(c[a]);
d[a]=b}}),"EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator ScaleHint SRS LatLonBoundingBox".split(" ").forEach(function(a){a in d||(d[a]=c[a])}),M.utils.isNullOrEmpty(d.BoundingBox)&&!M.utils.isNullOrEmpty(d.LatLonBoundingBox)&&(d.BoundingBox=d.LatLonBoundingBox),M.utils.isNullOrEmpty(d.MaxScaleDenominator)&&!M.utils.isNullOrEmpty(d.In)&&(d.MaxScaleDenominator=d.In[0].maxScale),M.utils.isNullOrEmpty(d.MinScaleDenominator)&&!M.utils.isNullOrEmpty(d.In)&&
(d.MinScaleDenominator=d.In[0].minScale),d};M.impl.format.WMSCapabilities.UC=function(a){var b=[kh(a.getAttribute("minx")),kh(a.getAttribute("miny")),kh(a.getAttribute("maxx")),kh(a.getAttribute("maxy"))],c=a.getAttribute("CRS");M.utils.isNullOrEmpty(c)&&(c=a.getAttribute("SRS"));a=[kh(a.getAttribute("resx")),kh(a.getAttribute("resy"))];return{crs:c,extent:b,res:a}};M.impl.format.WMSCapabilities.aD=function(a){return{crs:"EPSG:4326",extent:[kh(a.getAttribute("minx")),kh(a.getAttribute("miny")),kh(a.getAttribute("maxx")),
kh(a.getAttribute("maxy"))]}};vr=N(qr,{Name:K(T),Title:K(T),Abstract:K(T),KeywordList:K(or),CRS:Dg(T),SRS:Dg(T),EX_GeographicBoundingBox:K(cr),BoundingBox:Dg(M.impl.format.WMSCapabilities.UC),LatLonBoundingBox:Dg(M.impl.format.WMSCapabilities.aD),Dimension:Dg(er),Attribution:K(ar),AuthorityURL:Dg(kr),Identifier:Dg(T),MetadataURL:Dg(lr),DataURL:Dg(fr),FeatureListURL:Dg(fr),Style:Dg(mr),MinScaleDenominator:K(jh),MaxScaleDenominator:K(jh),Layer:Dg(M.impl.format.WMSCapabilities.bD),ScaleHint:Dg(M.impl.format.WMSCapabilities.hD)});
function Br(){}A(Br,zq);Br.prototype.readFromDocument=function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType==Node.ELEMENT_NODE)return this.Dg(a);return null};Br.prototype.Dg=function(a){return(a=O({},Cr,a,[]))?a:null};var Dr=[null,"http://www.opengis.net/ows/1.1"],Cr=N(Dr,{ServiceIdentification:K(function(a,b){return O({},Er,a,b)}),ServiceProvider:K(function(a,b){return O({},Fr,a,b)}),OperationsMetadata:K(function(a,b){return O({},Gr,a,b)})}),Hr=N(Dr,{DeliveryPoint:K(T),City:K(T),AdministrativeArea:K(T),
PostalCode:K(T),Country:K(T),ElectronicMailAddress:K(T)}),Ir=N(Dr,{Value:Dg(function(a){return T(a)})}),Jr=N(Dr,{AllowedValues:K(function(a,b){return O({},Ir,a,b)})}),Lr=N(Dr,{Phone:K(function(a,b){return O({},Kr,a,b)}),Address:K(function(a,b){return O({},Hr,a,b)})}),Or=N(Dr,{HTTP:K(function(a,b){return O({},Nr,a,b)})}),Nr=N(Dr,{Get:Dg(function(a,b){var c=Yq(a);if(c)return O({href:c},Pr,a,b)}),Post:void 0}),Qr=N(Dr,{DCP:K(function(a,b){return O({},Or,a,b)})}),Gr=N(Dr,{Operation:function(a,b){var c=
a.getAttribute("name");(a=O({},Qr,a,b))&&(b[b.length-1][c]=a)}}),Kr=N(Dr,{Voice:K(T),Facsimile:K(T)}),Pr=N(Dr,{Constraint:Dg(function(a,b){var c=a.getAttribute("name");if(c)return O({name:c},Jr,a,b)})}),Rr=N(Dr,{IndividualName:K(T),PositionName:K(T),ContactInfo:K(function(a,b){return O({},Lr,a,b)})}),Er=N(Dr,{Title:K(T),ServiceTypeVersion:K(T),ServiceType:K(T)}),Fr=N(Dr,{ProviderName:K(T),ProviderSite:K(Yq),ServiceContact:K(function(a,b){return O({},Rr,a,b)})});function Sr(){this.rC=new Br}A(Sr,zq);
Sr.prototype.readFromDocument=function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType==Node.ELEMENT_NODE)return this.Dg(a);return null};Sr.prototype.Dg=function(a){var b=a.getAttribute("version").trim(),c=this.rC.Dg(a);if(!c)return null;c.version=b;return(c=O(c,Tr,a,[]))?c:null};function Ur(a){var b=T(a).split(" ");if(b&&2==b.length&&(a=+b[0],b=+b[1],!isNaN(a)&&!isNaN(b)))return[a,b]}var Vr=[null,"http://www.opengis.net/wmts/1.0"],Wr=[null,"http://www.opengis.net/ows/1.1"],Tr=N(Vr,{Contents:K(function(a,
b){return O({},Xr,a,b)})}),Xr=N(Vr,{Layer:Dg(function(a,b){return O({},Yr,a,b)}),TileMatrixSet:Dg(function(a,b){return O({},Zr,a,b)})}),Yr=N(Vr,{Style:Dg(function(a,b){if(b=O({},$r,a,b))return a="true"===a.getAttribute("isDefault"),b.isDefault=a,b}),Format:Dg(T),TileMatrixSetLink:Dg(function(a,b){return O({},as,a,b)}),Dimension:Dg(function(a,b){return O({},bs,a,b)}),ResourceURL:Dg(function(a){var b=a.getAttribute("format"),c=a.getAttribute("template");a=a.getAttribute("resourceType");var d={};b&&
(d.format=b);c&&(d.template=c);a&&(d.resourceType=a);return d})},N(Wr,{Title:K(T),Abstract:K(T),WGS84BoundingBox:K(function(a,b){a=O([],cs,a,b);if(2==a.length)return Ve(a)}),Identifier:K(T)})),$r=N(Vr,{LegendURL:Dg(function(a){var b={};b.format=a.getAttribute("format");b.href=Yq(a);return b})},N(Wr,{Title:K(T),Identifier:K(T)})),as=N(Vr,{TileMatrixSet:K(T),TileMatrixSetLimits:K(function(a,b){return O([],ds,a,b)})}),ds=N(Vr,{TileMatrixLimits:Bg(function(a,b){return O({},es,a,b)})}),es=N(Vr,{TileMatrix:K(T),
MinTileRow:K(lh),MaxTileRow:K(lh),MinTileCol:K(lh),MaxTileCol:K(lh)}),bs=N(Vr,{Default:K(T),Value:Dg(T)},N(Wr,{Identifier:K(T)})),cs=N(Wr,{LowerCorner:Bg(Ur),UpperCorner:Bg(Ur)}),Zr=N(Vr,{WellKnownScaleSet:K(T),TileMatrix:Dg(function(a,b){return O({},fs,a,b)})},N(Wr,{SupportedCRS:K(T),Identifier:K(T)})),fs=N(Vr,{TopLeftCorner:K(Ur),ScaleDenominator:K(jh),TileWidth:K(lh),TileHeight:K(lh),MatrixWidth:K(lh),MatrixHeight:K(lh)},N(Wr,{Identifier:K(T)}));M.impl.format.WMTSCapabilities={};M.impl.format.WMTSCapabilities=
function(a){this.Be=new Sr;this.Ne=null;this.options=a||{}};h=M.impl.format.WMTSCapabilities.prototype;h.read=function(a){this.Ne=this.Be.read(a);return this};h.getMatrixSet=function(a,b){for(var c,d=0,e=this.Ne.Contents.Layer.length;d<e&&void 0===c;d++){var f=this.Ne.Contents.Layer[d];if(f.Identifier===a){if(!M.utils.isNullOrEmpty(b))for(var g=0,k=f.TileMatrixSetLink.length;g<k&&void 0===c;g++){var l=f.TileMatrixSetLink[g];l.TileMatrixSet.contains(b)&&(c=l.TileMatrixSet)}void 0===c&&(c=f.TileMatrixSetLink[0].TileMatrixSet)}}return c};
h.getMatrixIds=function(a,b){var c=[];a=this.getMatrixSet(a,b);b=0;for(var d=this.Ne.Contents.TileMatrixSet.length;b<d;b++){var e=this.Ne.Contents.TileMatrixSet[b];if(e.Identifier===a){c=e.TileMatrix.map(function(a){return a.Identifier});break}}return c};h.getFormat=function(a){for(var b,c=0,d=this.Ne.Contents.Layer.length;c<d&&void 0===b;c++){var e=this.Ne.Contents.Layer[c];e.Identifier===a&&(b=e.Format[0])}return b};h.getOptionsFromCapabilities=function(a,b){return gs(this.Ne,{layer:a,matrixSet:b})};
M.impl.Layer={};M.impl.Layer=function(a){this.ol3Layer=this.map=null;this.options=a||{};this.visibility=!1!==this.options.visibility;this.displayInLayerSwitcher=!1!==this.options.displayInLayerSwitcher;this.zIndex_=null;this.opacity_=this.options.opacity||1;this.legendUrl_=M.utils.concatUrlPaths([M.config.THEME_URL,M.Layer.LEGEND_DEFAULT]);M.Object.call(this)};v(M.impl.Layer,M.Object);M.impl.Layer.prototype.isVisible=function(){return M.utils.isNullOrEmpty(this.ol3Layer)?this.visibility:this.ol3Layer.getVisible()};
M.impl.Layer.prototype.isQueryable=function(){return!1};M.impl.Layer.prototype.inRange=function(){var a=!1;if(!M.utils.isNullOrEmpty(this.ol3Layer))var a=this.map.getMapImpl().getView().getResolution(),b=this.ol3Layer.getMaxResolution(),c=this.ol3Layer.getMinResolution(),a=a>=c&&a<=b;return a};M.impl.Layer.prototype.setVisible=function(a){this.visibility=a;M.utils.isNullOrEmpty(this.ol3Layer)||this.ol3Layer.setVisible(a)};M.impl.Layer.prototype.getZIndex=function(){M.utils.isNullOrEmpty(this.getOL3Layer())||
(this.zIndex_=this.getOL3Layer().getZIndex());return this.zIndex_};M.impl.Layer.prototype.setZIndex=function(a){this.zIndex_=a;M.utils.isNullOrEmpty(this.getOL3Layer())||this.getOL3Layer().setZIndex(a)};M.impl.Layer.prototype.getOpacity=function(){M.utils.isNullOrEmpty(this.getOL3Layer())||(this.opacity_=this.getOL3Layer().getOpacity());return this.opacity_};M.impl.Layer.prototype.setOpacity=function(a){this.opacity_=a;M.utils.isNullOrEmpty(this.getOL3Layer())||this.getOL3Layer().setOpacity(a)};M.impl.Layer.prototype.getOL3Layer=
function(){return this.ol3Layer};M.impl.Layer.prototype.setOL3Layer=function(a){var b=this.map.getMapImpl();b.removeLayer(this.ol3Layer);this.ol3Layer=a;b.addLayer(a);return this};M.impl.Layer.prototype.getMap=function(){return this.map};M.impl.Layer.prototype.setOL3Layer=function(a){var b=this.map.getMapImpl();b.removeLayer(this.ol3Layer);this.ol3Layer=a;b.addLayer(a);return this};M.impl.Layer.prototype.getLegendURL=function(){return this.legendUrl_};M.impl.Layer.prototype.setLegendURL=function(a){this.legendUrl_=
a};M.impl.Layer.prototype.getNumZoomLevels=function(){return 16};M.impl.Layer.prototype.unselectFeatures=function(){};M.impl.Layer.prototype.selectFeatures=function(){};M.impl.handler={};M.impl.handler.Features={};M.impl.handler.Features=function(){this.map_=null;this.defaultCursor_=void 0};M.impl.handler.Features.prototype.addTo=function(a){this.map_=a};M.impl.handler.Features.prototype.getFeaturesByLayer=function(a,b){var c=[];if(!M.utils.isNullOrEmpty(b)&&b.isVisible()&&!M.utils.isNullOrEmpty(b.getImpl().getOL3Layer())){var d=
b.getImpl().getOL3Layer();this.map_.getMapImpl().forEachFeatureAtPixel(a.pixel,function(a,d){d instanceof hs&&!M.utils.isNullOrEmpty(a.get("features"))?(a=a.get("features").map(function(a){return M.impl.handler.Features.rt(a,b)}),1===a.length?c.push(a[0]):(d=b.getStyle(),d instanceof M.style.Cluster||(d=d.getStyles().find(function(a){return a instanceof M.style.Cluster})),c.push(new M.ClusteredFeature(a,{ranges:d.getRanges(),hoverInteraction:d.getOptions().hoverInteraction,maxFeaturesToSelect:d.getOptions().maxFeaturesToSelect,
distance:d.getOptions().distance})))):a.getProperties().hasOwnProperty("selectclusterlink")||c.push(M.impl.handler.Features.rt(a,b))},{layerFilter:function(a){var c=!1;b.getStyle()instanceof M.style.Cluster&&b.getStyle().getOptions().selectInteraction&&(c=a===b.getStyle().getImpl().selectClusterInteraction_.Ab);return c=c||a===d}})}return c};M.impl.handler.Features.prototype.addCursorPointer=function(){var a=this.map_.getMapImpl().getViewport();"pointer"!==a.style.cursor&&(this.defaultCursor_=a.style.cursor);
a.style.cursor="pointer"};M.impl.handler.Features.prototype.removeCursorPointer=function(){this.map_.getMapImpl().getViewport().style.cursor=this.defaultCursor_};M.impl.handler.Features.rt=function(a,b){var c,d=a.getId();M.utils.isNullOrEmpty(d)||(c=b.getFeatureById(d));M.utils.isNullOrEmpty(c)&&(c=M.impl.Feature.olFeature2Facade(a));return c};M.impl.handler.Features.prototype.destroy=function(){this.map_.un("click",this.Ou,this);this.map_=null};function is(a,b,c,d){this.rw=a;this.maxExtent=b;this.overlaps=
d;this.qf=0;this.resolution=c;this.Mk=this.Lk=null;this.Ba=[];this.coordinates=[];this.vq=Lk();this.ca=[];this.Pd=null;this.hn=Lk();this.Lv=Lk()}A(is,bl);function js(a,b,c,d,e,f,g){var k=a.coordinates.length,l=a.Qo();g&&(c+=e);g=[b[c],b[c+1]];var m=[NaN,NaN],n=!0,q,r,t;for(q=c+e;q<d;q+=e)m[0]=b[q],m[1]=b[q+1],t=ff(l,m),t!==r?(n&&(a.coordinates[k++]=g[0],a.coordinates[k++]=g[1]),a.coordinates[k++]=m[0],a.coordinates[k++]=m[1],n=!1):1===t?(a.coordinates[k++]=m[0],a.coordinates[k++]=m[1],n=!1):n=!0,
g[0]=m[0],g[1]=m[1],r=t;if(f&&n||q===c+e)a.coordinates[k++]=g[0],a.coordinates[k++]=g[1];return k}function ks(a,b){a.Lk=[0,b,0];a.Ba.push(a.Lk);a.Mk=[0,b,0];a.ca.push(a.Mk)}is.prototype.ga=function(a,b){if(this.Jo){var c=Qk(this.vq,this.Jo.slice());a.translate(c[0],c[1]);a.rotate(b)}a.fill();this.Jo&&a.setTransform.apply(a,this.Lv)};function ls(a,b,c,d,e,f,g,k,l){var m;a.Pd&&Qe(d,a.vq)?m=a.Pd:(a.Pd||(a.Pd=[]),m=I.a.transform.ii(a.coordinates,0,a.coordinates.length,2,d,a.Pd),Pk(a.vq,d));d=!oe(f);for(var n=
0,q=g.length,r=0,t,u=a.hn,y=a.Lv,z,B,C,ia,Aa=0,Ea=0,Pb=a.Ba!=g||a.overlaps?0:200;n<q;){var J=g[n],Hb,jc,ka,db;switch(J[0]){case 0:r=J[1];d&&f[D(r).toString()]||!r.getGeometry()?n=J[2]:void 0===l||Af(l,r.getGeometry().getExtent())?++n:n=J[2]+1;break;case 1:Aa>Pb&&(a.ga(b,e),Aa=0);Ea>Pb&&(b.stroke(),Ea=0);Aa||Ea||(b.beginPath(),z=B=NaN);++n;break;case 2:r=J[1];t=m[r];J=m[r+1];C=m[r+2]-t;r=m[r+3]-J;r=Math.sqrt(C*C+r*r);b.moveTo(t+r,J);b.arc(t,J,r,0,2*Math.PI,!0);++n;break;case 3:b.closePath();++n;break;
case 4:r=J[1];t=J[2];Hb=J[3];jc=J[4]*c;ka=J[5]*c;var Qb=J[6],Cc=J[7],ud=J[8],Fe=J[9];db=J[10];C=J[11];ia=J[12];var qf=J[13],Ze=J[14];for(db&&(C+=e);r<t;r+=2){J=m[r]-jc;db=m[r+1]-ka;qf&&(J=Math.round(J),db=Math.round(db));if(1!=ia||0!==C){var $e=J+jc,si=db+ka;Uk(u,$e,si,ia,ia,C,-$e,-si);b.setTransform.apply(b,u)}$e=b.globalAlpha;1!=Cc&&(b.globalAlpha=$e*Cc);var si=Ze+ud>Hb.width?Hb.width-ud:Ze,Mr=Qb+Fe>Hb.height?Hb.height-Fe:Qb;b.drawImage(Hb,ud,Fe,si,Mr,J,db,si*c,Mr*c);1!=Cc&&(b.globalAlpha=$e);1==
ia&&0===C||b.setTransform.apply(b,y)}++n;break;case 5:r=J[1];t=J[2];ka=J[3];Qb=J[4]*c;Cc=J[5]*c;C=J[6];ia=J[7]*c;Hb=J[8];jc=J[9];for((db=J[10])&&(C+=e);r<t;r+=2){J=m[r]+Qb;db=m[r+1]+Cc;if(1!=ia||0!==C)Uk(u,J,db,ia,ia,C,-J,-db),b.setTransform.apply(b,u);ud=ka.split("\n");Fe=ud.length;1<Fe?(qf=Math.round(1.5*b.measureText("M").width),db-=(Fe-1)/2*qf):qf=0;for(Ze=0;Ze<Fe;Ze++)$e=ud[Ze],jc&&b.strokeText($e,J,db),Hb&&b.fillText($e,J,db),db+=qf;1==ia&&0===C||b.setTransform.apply(b,y)}++n;break;case 6:if(void 0!==
k&&(r=J[1],r=k(r)))return r;++n;break;case 7:Pb?Aa++:a.ga(b,e);++n;break;case 8:r=J[1];t=J[2];J=m[r];db=m[r+1];C=J+.5|0;ia=db+.5|0;if(C!==z||ia!==B)b.moveTo(J,db),z=C,B=ia;for(r+=2;r<t;r+=2)if(J=m[r],db=m[r+1],C=J+.5|0,ia=db+.5|0,r==t-2||C!==z||ia!==B)b.lineTo(J,db),z=C,B=ia;++n;break;case 9:a.Jo=J[2];Aa&&(a.ga(b,e),Aa=0,Ea&&(b.stroke(),Ea=0));b.fillStyle=J[1];++n;break;case 10:var r=void 0!==J[8]?J[8]:!0,sm=J[9];t=J[2];Ea&&(b.stroke(),Ea=0);b.strokeStyle=J[1];b.lineWidth=r?t*c:t;b.lineCap=J[3];b.lineJoin=
J[4];b.miterLimit=J[5];Td&&(t=J[6],C=J[7],r&&c!==sm&&(t=t.map(function(a){return a*c/sm}),C*=c/sm,J[6]=t,J[7]=C,J[9]=c),b.lineDashOffset=C,b.setLineDash(t));++n;break;case 11:b.font=J[1];b.textAlign=J[2];b.textBaseline=J[3];++n;break;case 12:Pb?Ea++:b.stroke();++n;break;default:++n}}Aa&&a.ga(b,e);Ea&&b.stroke()}is.prototype.Ta=function(a,b,c,d,e){ls(this,a,b,c,d,e,this.Ba,void 0,void 0)};function ms(a){var b=a.ca;b.reverse();var c,d=b.length,e,f,g=-1;for(c=0;c<d;++c)if(e=b[c],f=e[0],6==f)g=c;else if(0==
f){e[2]=c;e=a.ca;for(f=c;g<f;){var k=e[g];e[g]=e[f];e[f]=k;++g;--f}g=-1}}function ns(a,b){a.Lk[2]=a.Ba.length;a.Lk=null;a.Mk[2]=a.ca.length;a.Mk=null;b=[6,b];a.Ba.push(b);a.ca.push(b)}is.prototype.finish=nd;is.prototype.Qo=function(){return this.maxExtent};function os(a,b,c,d){is.call(this,a,b,c,d);this.f=this.ve=null;this.Qb=this.Bf=this.Cb=this.na=this.Bb=this.Nd=this.Md=this.opacity_=this.Hd=this.ud=this.td=void 0}A(os,is);h=os.prototype;h.Jb=function(a,b,c,d){return js(this,a,b,c,d,!1,!1)};h.Xe=
function(a,b){if(this.f){ks(this,b);var c=a.M(),d=this.coordinates.length;a=this.Jb(c,0,c.length,a.aa());this.Ba.push([4,d,a,this.f,this.td,this.ud,this.Hd,this.opacity_,this.Md,this.Nd,this.Bb,this.na,this.Cb,this.Bf,this.Qb]);this.ca.push([4,d,a,this.ve,this.td,this.ud,this.Hd,this.opacity_,this.Md,this.Nd,this.Bb,this.na,this.Cb,this.Bf,this.Qb]);ns(this,b)}};h.Ve=function(a,b){if(this.f){ks(this,b);var c=a.M(),d=this.coordinates.length;a=this.Jb(c,0,c.length,a.aa());this.Ba.push([4,d,a,this.f,
this.td,this.ud,this.Hd,this.opacity_,this.Md,this.Nd,this.Bb,this.na,this.Cb,this.Bf,this.Qb]);this.ca.push([4,d,a,this.ve,this.td,this.ud,this.Hd,this.opacity_,this.Md,this.Nd,this.Bb,this.na,this.Cb,this.Bf,this.Qb]);ns(this,b)}};h.finish=function(){ms(this);this.ud=this.td=void 0;this.f=this.ve=null;this.Qb=this.Bf=this.na=this.Bb=this.Nd=this.Md=this.opacity_=this.Cb=this.Hd=void 0};h.Td=function(a){var b=a.getAnchor(),c=a.getSize(),d=a.Yi(1),e=a.getImage(1),f=a.getOrigin();this.td=b[0];this.ud=
b[1];this.ve=d;this.f=e;this.Hd=c[1];this.opacity_=a.getOpacity();this.Md=f[0];this.Nd=f[1];this.Bb=a.getRotateWithView();this.na=a.getRotation();this.Cb=a.getScale();this.Bf=a.getSnapToPixel();this.Qb=c[0]};function ps(a,b,c,d){is.call(this,a,b,c,d);this.hc=null;this.g={Ki:void 0,Di:void 0,Ei:null,Fi:void 0,Gi:void 0,Hi:void 0,Ji:void 0,zp:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}A(ps,is);function qs(a,b,c,d,e){var f=
a.coordinates.length;b=js(a,b,c,d,e,!1,!1);f=[8,f,b];a.Ba.push(f);a.ca.push(f);return d}h=ps.prototype;h.Qo=function(){this.hc||(this.hc=af(this.maxExtent),0<this.qf&&Ye(this.hc,this.resolution*(this.qf+1)/2,this.hc));return this.hc};h.Ud=function(){var a=this.g,b=a.strokeStyle,c=a.lineCap,d=a.lineDash,e=a.lineDashOffset,f=a.lineJoin,g=a.lineWidth,k=a.miterLimit;a.Ki==b&&a.Di==c&&Qe(a.Ei,d)&&a.Fi==e&&a.Gi==f&&a.Hi==g&&a.Ji==k||(a.zp!=this.coordinates.length&&(this.Ba.push([12]),a.zp=this.coordinates.length),
this.Ba.push([10,b,g,c,f,k,d,e,!0,1],[1]),a.Ki=b,a.Di=c,a.Ei=d,a.Fi=e,a.Gi=f,a.Hi=g,a.Ji=k)};h.Wc=function(a,b){var c=this.g,d=c.lineWidth;void 0!==c.strokeStyle&&void 0!==d&&(this.Ud(),ks(this,b),this.ca.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1],[1]),c=a.M(),qs(this,c,0,c.length,a.aa()),this.ca.push([12]),ns(this,b))};h.Ue=function(a,b){var c=this.g,d=c.lineWidth;if(void 0!==c.strokeStyle&&void 0!==d){this.Ud();ks(this,b);this.ca.push([10,
c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1],[1]);c=a.G;d=a.M();a=a.aa();var e=0,f,g;f=0;for(g=c.length;f<g;++f)e=qs(this,d,e,c[f],a);this.ca.push([12]);ns(this,b)}};h.finish=function(){this.g.zp!=this.coordinates.length&&this.Ba.push([12]);ms(this);this.g=null};h.Ua=function(a,b){a=b.getColor();this.g.strokeStyle=Gd(a?a:fe);a=b.getLineCap();this.g.lineCap=void 0!==a?a:"round";a=b.getLineDash();this.g.lineDash=a?a:ee;a=b.getLineDashOffset();this.g.lineDashOffset=
a?a:0;a=b.getLineJoin();this.g.lineJoin=void 0!==a?a:"round";a=b.getWidth();this.g.lineWidth=void 0!==a?a:1;b=b.getMiterLimit();this.g.miterLimit=void 0!==b?b:10;this.g.lineWidth>this.qf&&(this.qf=this.g.lineWidth,this.hc=null)};function rs(a,b,c,d){is.call(this,a,b,c,d);this.hc=null;this.g={zs:void 0,Ki:void 0,Di:void 0,Ei:null,Fi:void 0,Gi:void 0,Hi:void 0,Ji:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}
A(rs,is);function ss(a,b,c,d,e){var f=a.g,g=void 0!==f.fillStyle,f=void 0!=f.strokeStyle,k=d.length,l=[1];a.Ba.push(l);a.ca.push(l);for(l=0;l<k;++l){var m=d[l],n=a.coordinates.length;c=js(a,b,c,m,e,!0,!f);c=[8,n,c];a.Ba.push(c);a.ca.push(c);f&&(c=[3],a.Ba.push(c),a.ca.push(c));c=m}b=[7];a.ca.push(b);g&&a.Ba.push(b);f&&(g=[12],a.Ba.push(g),a.ca.push(g));return c}h=rs.prototype;h.drawCircle=function(a,b){var c=this.g,d=c.strokeStyle;if(void 0!==c.fillStyle||void 0!==d){ts(this,a);ks(this,b);this.ca.push([9,
Ed(de)]);void 0!==c.strokeStyle&&this.ca.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1]);var e=a.M(),d=this.coordinates.length;js(this,e,0,e.length,a.aa(),!1,!1);a=[1];d=[2,d];this.Ba.push(a,d);this.ca.push(a,d);a=[7];this.ca.push(a);void 0!==c.fillStyle&&this.Ba.push(a);void 0!==c.strokeStyle&&(c=[12],this.Ba.push(c),this.ca.push(c));ns(this,b)}};h.Ye=function(a,b){var c=this.g;ts(this,a);ks(this,b);this.ca.push([9,Ed(de)]);void 0!==c.strokeStyle&&
this.ca.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1]);var c=a.G,d=a.nb();ss(this,d,0,c,a.aa());ns(this,b)};h.We=function(a,b){var c=this.g,d=c.strokeStyle;if(void 0!==c.fillStyle||void 0!==d){ts(this,a);ks(this,b);this.ca.push([9,Ed(de)]);void 0!==c.strokeStyle&&this.ca.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1]);c=a.ya;d=a.nb();a=a.aa();var e=0,f,g;f=0;for(g=c.length;f<g;++f)e=ss(this,
d,e,c[f],a);ns(this,b)}};h.finish=function(){ms(this);this.g=null;var a=this.rw;if(0!==a){var b=this.coordinates,c,d;c=0;for(d=b.length;c<d;++c)b[c]=I.a.simplify.Kg(b[c],a)}};h.Qo=function(){this.hc||(this.hc=af(this.maxExtent),0<this.qf&&Ye(this.hc,this.resolution*(this.qf+1)/2,this.hc));return this.hc};h.Ua=function(a,b){var c=this.g;a?(a=a.getColor(),c.fillStyle=Gd(a?a:de)):c.fillStyle=void 0;b?(a=b.getColor(),c.strokeStyle=Gd(a?a:fe),a=b.getLineCap(),c.lineCap=void 0!==a?a:"round",a=b.getLineDash(),
c.lineDash=a?a.slice():ee,a=b.getLineDashOffset(),c.lineDashOffset=a?a:0,a=b.getLineJoin(),c.lineJoin=void 0!==a?a:"round",a=b.getWidth(),c.lineWidth=void 0!==a?a:1,b=b.getMiterLimit(),c.miterLimit=void 0!==b?b:10,c.lineWidth>this.qf&&(this.qf=c.lineWidth,this.hc=null)):(c.strokeStyle=void 0,c.lineCap=void 0,c.lineDash=null,c.lineDashOffset=void 0,c.lineJoin=void 0,c.lineWidth=void 0,c.miterLimit=void 0)};function ts(a,b){var c=a.g,d=c.fillStyle,e=c.strokeStyle,f=c.lineCap,g=c.lineDash,k=c.lineDashOffset,
l=c.lineJoin,m=c.lineWidth,n=c.miterLimit;if(void 0!==d&&("string"!==typeof d||c.zs!=d)){var q=[9,d];"string"!==typeof d&&(b=b.getExtent(),q.push([b[0],b[3]]));a.Ba.push(q);c.zs=c.fillStyle}void 0===e||c.Ki==e&&c.Di==f&&Qe(c.Ei,g)&&c.Fi==k&&c.Gi==l&&c.Hi==m&&c.Ji==n||(a.Ba.push([10,e,m,f,l,n,g,k,!0,1]),c.Ki=e,c.Di=f,c.Ei=g,c.Fi=k,c.Gi=l,c.Hi=m,c.Ji=n)}function us(a,b,c,d){is.call(this,a,b,c,d);this.Hv=this.Gv=this.Fv=null;this.oa="";this.fk=this.ek=0;this.gk=void 0;this.Gf=this.hk=0;this.Ee=this.ec=
this.dc=null}A(us,is);us.prototype.ke=function(a,b,c,d,e,f){if(""!==this.oa&&this.Ee&&(this.dc||this.ec)){if(this.dc){e=this.dc;var g=this.Fv;if(!g||g.fillStyle!=e.fillStyle){var k=[9,e.fillStyle];this.Ba.push(k);this.ca.push(k);g?g.fillStyle=e.fillStyle:this.Fv={fillStyle:e.fillStyle}}}this.ec&&(e=this.ec,g=this.Gv,g&&g.lineCap==e.lineCap&&g.lineDash==e.lineDash&&g.lineDashOffset==e.lineDashOffset&&g.lineJoin==e.lineJoin&&g.lineWidth==e.lineWidth&&g.miterLimit==e.miterLimit&&g.strokeStyle==e.strokeStyle||
(k=[10,e.strokeStyle,e.lineWidth,e.lineCap,e.lineJoin,e.miterLimit,e.lineDash,e.lineDashOffset,!1,1],this.Ba.push(k),this.ca.push(k),g?(g.lineCap=e.lineCap,g.lineDash=e.lineDash,g.lineDashOffset=e.lineDashOffset,g.lineJoin=e.lineJoin,g.lineWidth=e.lineWidth,g.miterLimit=e.miterLimit,g.strokeStyle=e.strokeStyle):this.Gv={lineCap:e.lineCap,lineDash:e.lineDash,lineDashOffset:e.lineDashOffset,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle}));e=this.Ee;g=this.Hv;
g&&g.font==e.font&&g.textAlign==e.textAlign&&g.textBaseline==e.textBaseline||(k=[11,e.font,e.textAlign,e.textBaseline],this.Ba.push(k),this.ca.push(k),g?(g.font=e.font,g.textAlign=e.textAlign,g.textBaseline=e.textBaseline):this.Hv={font:e.font,textAlign:e.textAlign,textBaseline:e.textBaseline});ks(this,f);e=this.coordinates.length;a=js(this,a,b,c,d,!1,!1);a=[5,e,a,this.oa,this.ek,this.fk,this.hk,this.Gf,!!this.dc,!!this.ec,this.gk];this.Ba.push(a);this.ca.push(a);ns(this,f)}};us.prototype.pd=function(a){if(a){var b=
a.getFill();b?(b=b.getColor(),b=Gd(b?b:de),this.dc?this.dc.fillStyle=b:this.dc={fillStyle:b}):this.dc=null;var c=a.getStroke();if(c){var b=c.getColor(),d=c.getLineCap(),e=c.getLineDash(),f=c.getLineDashOffset(),g=c.getLineJoin(),k=c.getWidth(),c=c.getMiterLimit(),d=void 0!==d?d:"round",e=e?e.slice():ee,f=void 0!==f?f:0,g=void 0!==g?g:"round",k=void 0!==k?k:1,c=void 0!==c?c:10,b=Gd(b?b:fe);if(this.ec){var l=this.ec;l.lineCap=d;l.lineDash=e;l.lineDashOffset=f;l.lineJoin=g;l.lineWidth=k;l.miterLimit=
c;l.strokeStyle=b}else this.ec={lineCap:d,lineDash:e,lineDashOffset:f,lineJoin:g,lineWidth:k,miterLimit:c,strokeStyle:b}}else this.ec=null;var m=a.getFont(),b=a.getOffsetX(),d=a.getOffsetY(),e=a.getRotateWithView(),k=a.getRotation(),c=a.getScale(),f=a.getText(),g=a.getTextAlign(),l=a.getTextBaseline();a=void 0!==m?m:"10px sans-serif";g=void 0!==g?g:"center";l=void 0!==l?l:"middle";this.Ee?(m=this.Ee,m.font=a,m.textAlign=g,m.textBaseline=l):this.Ee={font:a,textAlign:g,textBaseline:l};this.oa=void 0!==
f?f:"";this.ek=void 0!==b?b:0;this.fk=void 0!==d?d:0;this.gk=void 0!==e?e:!1;this.hk=void 0!==k?k:0;this.Gf=void 0!==c?c:1}else this.oa=""};function vs(a,b,c,d,e){this.Vq=a;this.fm=b;this.Hh=d;this.bc=c;this.zc=e;this.$a={};this.XA=Hd(1,1);this.YA=Lk()}A(vs,ll);var ws={0:[[!0]]};function xs(a,b,c){var d,e=Math.floor(a.length/2);if(b>=e)for(d=e;d<b;d++)a[d][c]=!0;else if(b<e)for(d=b+1;d<e;d++)a[d][c]=!0}function ys(a){if(void 0!==ws[a])return ws[a];for(var b=2*a+1,c=Array(b),d=0;d<b;d++)c[d]=Array(b);
for(var b=a,e=d=0;b>=d;)xs(c,a+b,a+d),xs(c,a+d,a+b),xs(c,a-d,a+b),xs(c,a-b,a+d),xs(c,a-b,a-d),xs(c,a-d,a-b),xs(c,a+d,a-b),xs(c,a+b,a-d),d++,e+=1+2*d,0<2*(e-b)+1&&(--b,e+=1-2*b);return ws[a]=c}h=vs.prototype;h.finish=function(){for(var a in this.$a){var b=this.$a[a],c;for(c in b)b[c].finish()}};h.za=function(a,b,c,d,e,f){d=Math.round(d);var g=2*d+1,k=Uk(this.YA,d+.5,d+.5,1/b,-1/b,-c,-a[0],-a[1]),l=this.XA;l.canvas.width!==g||l.canvas.height!==g?(l.canvas.width=g,l.canvas.height=g):l.clearRect(0,0,
g,g);var m;void 0!==this.zc&&(m=We(),Xe(m,a),Ye(m,b*(this.zc+d),m));var n=ys(d);return this.Jm(l,k,c,e,function(a){for(var b=l.getImageData(0,0,g,g).data,c=0;c<g;c++)for(var d=0;d<g;d++)if(n[c][d]&&0<b[4*(d*g+c)+3]){if(a=f(a))return a;l.clearRect(0,0,g,g);return}},m)};function zs(a,b){var c=a.fm;a=c[0];var d=c[1],e=c[2],c=c[3];a=[a,d,a,c,e,c,e,d];I.a.transform.ii(a,0,8,2,b,a);return a}h.Qa=function(a,b){var c=void 0!==a?a.toString():"0";a=this.$a[c];void 0===a&&(a={},this.$a[c]=a);c=a[b];void 0===
c&&(c=new As[b](this.Vq,this.fm,this.bc,this.Hh),a[b]=c);return c};h.isEmpty=function(){return oe(this.$a)};h.Ta=function(a,b,c,d,e,f){var g=Object.keys(this.$a).map(Number);g.sort(Le);var k=zs(this,c);a.save();a.beginPath();a.moveTo(k[0],k[1]);a.lineTo(k[2],k[3]);a.lineTo(k[4],k[5]);a.lineTo(k[6],k[7]);a.clip();f=f?f:kl;var l,m,n,q,r,k=0;for(l=g.length;k<l;++k)for(q=this.$a[g[k].toString()],m=0,n=f.length;m<n;++m)r=q[f[m]],void 0!==r&&r.Ta(a,b,c,d,e);a.restore()};h.Jm=function(a,b,c,d,e,f){var g=
Object.keys(this.$a).map(Number);g.sort(function(a,b){return b-a});var k,l,m,n,q;k=0;for(l=g.length;k<l;++k)for(n=this.$a[g[k].toString()],m=kl.length-1;0<=m;--m)if(q=n[kl[m]],void 0!==q&&(q=ls(q,a,1,b,c,d,q.ca,e,f)))return q};var As={Circle:rs,Image:os,LineString:ps,Polygon:rs,Text:us};function Bs(a){De.call(this);this.i=a}A(Bs,De);h=Bs.prototype;h.za=nd;h.ue=Ef;h.to=function(a,b,c){return function(d,e){return Cs(a,b,d,e,function(a){c[d]||(c[d]={});c[d][a.Ka.toString()]=a})}};h.getLayer=function(){return this.i};
h.ip=function(a){2===a.target.getState()&&Ds(this)};function Es(a,b){var c=b.getState();2!=c&&3!=c&&G(b,Ce.CHANGE,a.ip,a);0==c&&(b.load(),c=b.getState());return 2==c}function Ds(a){var b=a.getLayer();b.getVisible()&&"ready"==b.ep()&&a.changed()}function Fs(a,b){b.Rf()&&(b=function(a,b,e){b=D(a).toString();a.eh(e.viewState.projection,e.pk[b])}.bind(null,b),a.ld.push(b))}function Gs(a,b){if(b){var c,d,e;d=0;for(e=b.length;d<e;++d)c=b[d],a[D(c).toString()]=c}}function Hs(a,b){b=b.getLogo();void 0!==
b&&("string"===typeof b?a.wg[b]="":b&&(qd("string"==typeof b.href,44),qd("string"==typeof b.src,45),a.wg[b.src]=b.href))}function Is(a,b,c,d){b=D(b).toString();c=c.toString();b in a?c in a[b]?a[b][c].extend(d):a[b][c]=d:(a[b]={},a[b][c]=d)}function Js(a,b,c,d,e,f,g,k,l,m){var n=D(b).toString();n in a.pi||(a.pi[n]={});var q=a.pi[n];a=a.Sq;var r=c.getMinZoom(),t,u,y,z,B,C;for(C=g;C>=r;--C)for(u=ij(c,f,C,u),y=c.getResolution(C),z=u.K;z<=u.H;++z)for(B=u.N;B<=u.S;++B)g-C<=k?(t=b.dg(C,z,B,d,e),0==t.getState()&&
(q[t.getKey()]=!0,t.getKey()in a.Bg||a.enqueue([t,n,Ks(c,t.Ka),y])),void 0!==l&&l.call(m,t)):b.er(C,z,B,e)}function Ls(a){Bs.call(this,a);this.bb=Lk()}A(Ls,Bs);h=Ls.prototype;h.clip=function(a,b,c){var d=b.pixelRatio,e=b.size[0]*d,f=b.size[1]*d,g=b.viewState.rotation,k=sf(c),l=rf(c),m=pf(c);c=of(c);Qk(b.Pe,k);Qk(b.Pe,l);Qk(b.Pe,m);Qk(b.Pe,c);a.save();ge(a,-g,e/2,f/2);a.beginPath();a.moveTo(k[0]*d,k[1]*d);a.lineTo(l[0]*d,l[1]*d);a.lineTo(m[0]*d,m[1]*d);a.lineTo(c[0]*d,c[1]*d);a.clip();ge(a,g,e/2,f/
2)};h.kc=function(a,b,c,d){var e=this.getLayer();if(e.hasListener(a)){var f=c.size[0]*c.pixelRatio,g=c.size[1]*c.pixelRatio,k=c.viewState.rotation;ge(b,-k,f/2,g/2);d=void 0!==d?d:this.getTransform(c,0);e.dispatchEvent(new al(a,new cl(b,c.pixelRatio,c.extent,d,c.viewState.rotation),c,b,null));ge(b,k,f/2,g/2)}};h.Oo=function(a,b,c,d){if(this.za(a,b,0,Df,this))return c.call(d,this.getLayer(),null)};h.vm=function(a,b,c,d){this.kc("postcompose",a,b,d)};h.getTransform=function(a,b){var c=a.viewState,d=
a.pixelRatio,e=d/c.resolution;return Uk(this.bb,d*a.size[0]/2,d*a.size[1]/2,e,-e,-c.rotation,-c.center[0]+b,-c.center[1])};function Ms(a,b){return D(a)-D(b)}function Ns(a,b){a=.5*a/b;return a*a}function Os(a,b,c,d,e,f){var g=!1,k,l;if(k=c.getImage())l=k.cg(),2==l||3==l?k.vw(e,f):(0==l&&k.load(),k.eu(e,f),g=!0);if(e=c.getGeometryFunction()(b))d=e.$i(d),(0,Ps[d.getType()])(a,d,c,b);return g}function Qs(a,b,c,d){var e=c.getStroke();if(e){var f=a.Qa(c.getZIndex(),"LineString");f.Ua(null,e);f.Wc(b,d)}if(e=
c.getText())a=a.Qa(c.getZIndex(),"Text"),a.pd(e),a.ke(Sg(b),0,2,2,b,d)}function Rs(a,b,c,d){var e=c.getStroke();if(e){var f=a.Qa(c.getZIndex(),"LineString");f.Ua(null,e);f.Ue(b,d)}if(e=c.getText())a=a.Qa(c.getZIndex(),"Text"),a.pd(e),c=Ug(b),a.ke(c,0,c.length,2,b,d)}function Ss(a,b,c,d){var e=c.getFill(),f=c.getStroke();if(f||e){var g=a.Qa(c.getZIndex(),"Polygon");g.Ua(e,f);g.We(b,d)}if(e=c.getText())a=a.Qa(c.getZIndex(),"Text"),a.pd(e),c=bh(b),a.ke(c,0,c.length,2,b,d)}function Ts(a,b,c,d){var e=
c.getFill(),f=c.getStroke();if(e||f){var g=a.Qa(c.getZIndex(),"Polygon");g.Ua(e,f);g.Ye(b,d)}if(e=c.getText())a=a.Qa(c.getZIndex(),"Text"),a.pd(e),a.ke(Xg(b),0,2,2,b,d)}var Ps={Point:function(a,b,c,d){var e=c.getImage();if(e){if(2!=e.cg())return;var f=a.Qa(c.getZIndex(),"Image");f.Td(e);f.Xe(b,d)}if(e=c.getText())a=a.Qa(c.getZIndex(),"Text"),a.pd(e),a.ke(b.M(),0,2,2,b,d)},LineString:Qs,Polygon:Ts,MultiPoint:function(a,b,c,d){var e=c.getImage();if(e){if(2!=e.cg())return;var f=a.Qa(c.getZIndex(),"Image");
f.Td(e);f.Ve(b,d)}if(e=c.getText())a=a.Qa(c.getZIndex(),"Text"),a.pd(e),c=b.M(),a.ke(c,0,c.length,b.aa(),b,d)},MultiLineString:Rs,MultiPolygon:Ss,GeometryCollection:function(a,b,c,d){b=b.ma;var e,f;e=0;for(f=b.length;e<f;++e)(0,Ps[b[e].getType()])(a,b[e],c,d)},Circle:function(a,b,c,d){var e=c.getFill(),f=c.getStroke();if(e||f){var g=a.Qa(c.getZIndex(),"Circle");g.Ua(e,f);g.drawCircle(b,d)}if(e=c.getText())a=a.Qa(c.getZIndex(),"Text"),a.pd(e),a.ke(b.getCenter(),0,2,2,b,d)}};function Us(a){Ls.call(this,
a);this.Sb=!1;this.Za=-1;this.Uj=NaN;this.od=We();this.ib=this.Tj=null;this.J=Hd()}A(Us,Ls);h=Us.prototype;h.Xg=function(a,b,c){var d=a.extent,e=a.pixelRatio,f=b.Yl?a.Jg:{},g=a.viewState,k=g.projection,g=g.rotation,l=k.getExtent(),m=this.getLayer().getSource(),n=this.getTransform(a,0);this.kc("precompose",c,a,n);var q=b.extent,r=void 0!==q;r&&this.clip(c,a,q);if((q=this.ib)&&!q.isEmpty()){var t=0,u=0,y;if(this.getLayer().hasListener("render")){y=c.canvas.width;var z=c.canvas.height;if(g){var B=Math.round(Math.sqrt(y*
y+z*z)),t=(B-y)/2,u=(B-z)/2;y=z=B}this.J.canvas.width=y;this.J.canvas.height=z;y=this.J}else y=c;z=y.globalAlpha;y.globalAlpha=b.opacity;y!=c&&y.translate(t,u);var B=a.size[0]*e,C=a.size[1]*e;ge(y,-g,B/2,C/2);q.Ta(y,e,n,g,f);if(m.yn&&k.he&&!ef(l,d)){for(var k=d[0],m=vf(l),ia=0;k<l[0];)--ia,n=m*ia,n=this.getTransform(a,n),q.Ta(y,e,n,g,f),k+=m;ia=0;for(k=d[2];k>l[2];)++ia,n=m*ia,n=this.getTransform(a,n),q.Ta(y,e,n,g,f),k-=m;n=this.getTransform(a,0)}ge(y,g,B/2,C/2);y!=c&&(this.kc("render",y,a,n),c.drawImage(y.canvas,
-t,-u),y.translate(-t,-u));y.globalAlpha=z}r&&c.restore();this.vm(c,a,b,n)};h.za=function(a,b,c,d,e){if(this.ib){var f=b.viewState.resolution;b=b.viewState.rotation;var g=this.getLayer(),k={};return this.ib.za(a,f,b,c,{},function(a){var b=D(a).toString();if(!(b in k))return k[b]=!0,d.call(e,a,g)})}};h.df=function(){Ds(this)};h.Rd=function(a){function b(a){var b,d=a.getStyleFunction();d?b=d.call(a,m):(d=c.getStyleFunction())&&(b=d(a,m));b&&(a=this.Sj(a,m,n,b,r),this.Sb=this.Sb||a)}var c=this.getLayer(),
d=c.getSource();Gs(a.attributions,d.getAttributions());Hs(a,d);var e=a.Pc[0],f=a.Pc[1],g=c.Cw,k=c.Dw;if(!this.Sb&&!g&&e||!k&&f)return!0;var l=a.extent,k=a.viewState,e=k.projection,m=k.resolution,n=a.pixelRatio,f=c.getRevision(),q=c.zc,g=c.get(Vs);void 0===g&&(g=Ms);l=Ye(l,q*m);q=k.projection.getExtent();d.yn&&k.projection.he&&!ef(q,a.extent)&&(a=Math.max(vf(l)/2,vf(q)),l[0]=q[0]-a,l[2]=q[2]+a);if(!this.Sb&&this.Uj==m&&this.Za==f&&this.Tj==g&&ef(this.od,l))return!0;this.ib=null;this.Sb=!1;var r=new vs(.5*
m/n,l,m,d.Hh,c.zc);d.uj(l,m,e);if(g){var t=[];d.forEachFeatureInExtent(l,function(a){t.push(a)},this);t.sort(g);t.forEach(b,this)}else d.forEachFeatureInExtent(l,b,this);r.finish();this.Uj=m;this.Za=f;this.Tj=g;this.od=l;this.ib=r;return!0};h.Sj=function(a,b,c,d,e){if(!d)return!1;var f=!1;if(Array.isArray(d))for(var g=0,k=d.length;g<k;++g)f=Os(e,a,d[g],Ns(b,c),this.df,this)||f;else f=Os(e,a,d,Ns(b,c),this.df,this)||f;return f};function Ws(){this.O="precision mediump float;\nvarying vec2 v_texCoord;\n\n\nuniform float u_opacity;\nuniform sampler2D u_texture;\n\nvoid main(void) {\n  vec4 texColor \x3d texture2D(u_texture, v_texCoord);\n  gl_FragColor.rgb \x3d texColor.rgb;\n  gl_FragColor.a \x3d texColor.a * u_opacity;\n}\n"}
A(Ws,nl);var Xs=new Ws;function Ys(){this.O="varying vec2 v_texCoord;\n\n\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\n\nuniform mat4 u_texCoordMatrix;\nuniform mat4 u_projectionMatrix;\n\nvoid main(void) {\n  gl_Position \x3d u_projectionMatrix * vec4(a_position, 0., 1.);\n  v_texCoord \x3d (u_texCoordMatrix * vec4(a_texCoord, 0., 1.)).st;\n}\n\n\n"}A(Ys,pl);var Zs=new Ys;function $s(a,b){this.ki=a.getUniformLocation(b,"u_opacity");this.li=a.getUniformLocation(b,"u_projectionMatrix");
this.GE=a.getUniformLocation(b,"u_texCoordMatrix");this.br=a.getUniformLocation(b,"u_texture");this.Va=a.getAttribLocation(b,"a_position");this.ee=a.getAttribLocation(b,"a_texCoord")}function at(a,b){Bs.call(this,b);this.Jc=a;this.Fy=new Dl([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);this.ih=this.Oc=null;this.jh=void 0;this.Zm=Lk();this.Yp=Lk();this.gi=vl();this.qa=null}A(at,Bs);at.prototype.bindFramebuffer=function(a,b){var c=this.Jc.getGL();if(void 0===this.jh||this.jh!=b){var d=function(a,b,c){a.isContextLost()||
(a.deleteFramebuffer(b),a.deleteTexture(c))}.bind(null,c,this.ih,this.Oc);a.ld.push(d);a=Ol(c,b,b);d=c.createFramebuffer();c.bindFramebuffer(36160,d);c.framebufferTexture2D(36160,36064,3553,a,0);this.Oc=a;this.ih=d;this.jh=b}else c.bindFramebuffer(36160,this.ih)};at.prototype.Xg=function(a,b,c){this.kc("precompose",c,a);c.bindBuffer(34962,this.Fy);var d=c.getGL(),e=Gl(c,Xs,Zs),f;this.qa?f=this.qa:this.qa=f=new $s(d,e);c.useProgram(e)&&(d.enableVertexAttribArray(f.Va),d.vertexAttribPointer(f.Va,2,
5126,!1,16,0),d.enableVertexAttribArray(f.ee),d.vertexAttribPointer(f.ee,2,5126,!1,16,8),d.uniform1i(f.br,0));d.uniformMatrix4fv(f.GE,!1,wl(this.gi,this.Zm));d.uniformMatrix4fv(f.li,!1,wl(this.gi,this.Yp));d.uniform1f(f.ki,b.opacity);d.bindTexture(3553,this.Oc);d.drawArrays(5,0,4);this.kc("postcompose",c,a)};at.prototype.kc=function(a,b,c){var d=this.getLayer();if(d.hasListener(a)){var e=c.viewState;d.dispatchEvent(new al(a,new Zm(b,e.center,e.resolution,e.rotation,c.size,c.extent,c.pixelRatio),c,
null,b))}};at.prototype.fg=function(){this.ih=this.Oc=null;this.jh=void 0};function bt(a,b){at.call(this,a,b);this.Sb=!1;this.Za=-1;this.Uj=NaN;this.od=We();this.sj=this.ib=this.Tj=null}A(bt,at);h=bt.prototype;h.Xg=function(a,b,c){this.sj=b;var d=a.viewState,e=this.ib,f=a.size,g=a.pixelRatio,k=this.Jc.getGL();e&&!e.isEmpty()&&(k.enable(k.SCISSOR_TEST),k.scissor(0,0,f[0]*g,f[1]*g),e.Ta(c,d.center,d.resolution,d.rotation,f,g,b.opacity,b.Yl?a.Jg:{}),k.disable(k.SCISSOR_TEST))};h.T=function(){var a=this.ib;
if(a){var b=this.Jc.getContext();a.wb(b)();this.ib=null}at.prototype.T.call(this)};h.za=function(a,b,c,d,e){if(this.ib&&this.sj){c=this.Jc.getContext();var f=b.viewState,g=this.getLayer(),k={};return this.ib.za(a,c,f.center,f.resolution,f.rotation,b.size,b.pixelRatio,this.sj.opacity,{},function(a){var b=D(a).toString();if(!(b in k))return k[b]=!0,d.call(e,a,g)})}};h.ue=function(a,b){if(this.ib&&this.sj){var c=this.Jc.getContext(),d=b.viewState;return this.ib.ue(a,c,d.center,d.resolution,d.rotation,
b.size,b.pixelRatio,this.sj.opacity,b.Jg)}return!1};h.forEachLayerAtPixel=function(a,b,c,d){a=Qk(b.Ih,a.slice());if(this.ue(a,b))return c.call(d,this.getLayer(),null)};h.df=function(){Ds(this)};h.Rd=function(a,b,c){function d(a){var b,c=a.getStyleFunction();c?b=c.call(a,m):(c=e.getStyleFunction())&&(b=c(a,m));b&&(a=this.Sj(a,m,n,b,r),this.Sb=this.Sb||a)}var e=this.getLayer();b=e.getSource();Gs(a.attributions,b.getAttributions());Hs(a,b);var f=a.Pc[0],g=a.Pc[1],k=e.Cw,l=e.Dw;if(!this.Sb&&!k&&f||!l&&
g)return!0;var g=a.extent,k=a.viewState,f=k.projection,m=k.resolution,n=a.pixelRatio,k=e.getRevision(),q=e.zc,l=e.get(Vs);void 0===l&&(l=Ms);g=Ye(g,q*m);if(!this.Sb&&this.Uj==m&&this.Za==k&&this.Tj==l&&ef(this.od,g))return!0;this.ib&&a.ld.push(this.ib.wb(c));this.Sb=!1;var r=new Wm(.5*m/n,g,e.zc);b.uj(g,m,f);if(l){var t=[];b.forEachFeatureInExtent(g,function(a){t.push(a)},this);t.sort(l);t.forEach(d,this)}else b.forEachFeatureInExtent(g,d,this);r.finish(c);this.Uj=m;this.Za=k;this.Tj=l;this.od=g;
this.ib=r;return!0};h.Sj=function(a,b,c,d,e){if(!d)return!1;var f=!1;if(Array.isArray(d))for(var g=d.length-1;0<=g;--g)f=Os(e,a,d[g],Ns(b,c),this.df,this)||f;else f=Os(e,a,d,Ns(b,c),this.df,this)||f;return f};function W(a){a=a?a:{};var b=le({},a);delete b.style;delete b.renderBuffer;delete b.updateWhileAnimating;delete b.updateWhileInteracting;Gk.call(this,b);this.zc=void 0!==a.renderBuffer?a.renderBuffer:100;this.style_=null;this.Yd=void 0;this.setStyle(a.style);this.Cw=void 0!==a.updateWhileAnimating?
a.updateWhileAnimating:!1;this.Dw=void 0!==a.updateWhileInteracting?a.updateWhileInteracting:!1}A(W,Gk);W.prototype.Ci=function(a){var b=null,c=a.getType();"canvas"===c?b=new Us(this):"webgl"===c&&(b=new bt(a,this));return b};W.prototype.getStyle=function(){return this.style_};W.prototype.getStyleFunction=function(){return this.Yd};W.prototype.setStyle=function(a){this.style_=void 0!==a?a:qg;this.Yd=null===a?void 0:og(this.style_);this.changed()};var Vs="renderOrder";function ct(a,b,c,d){return function(e,
f,g){var k=new XMLHttpRequest;k.open("GET","function"===typeof a?a(e,f,g):a,!0);"arraybuffer"==b.getType()&&(k.responseType="arraybuffer");k.onload=function(){if(!k.status||200<=k.status&&300>k.status){var a=b.getType(),e;"json"==a||"text"==a?e=k.responseText:"xml"==a?(e=k.responseXML)||(e=zg(k.responseText)):"arraybuffer"==a&&(e=k.response);e?c.call(this,b.readFeatures(e,{featureProjection:g}),b.readProjection(e)):d.call(this)}else d.call(this)}.bind(this);k.send()}}function dt(a,b){return ct(a,
b,function(a){this.addFeatures(a)},nd)}function et(){return[[-Infinity,-Infinity,Infinity,Infinity]]}function kj(a,b,c,d){this.K=a;this.H=b;this.N=c;this.S=d}h=kj.prototype;h.contains=function(a){return this.containsXY(a[1],a[2])};h.containsXY=function(a,b){return this.K<=a&&a<=this.H&&this.N<=b&&b<=this.S};h.equals=function(a){return this.K==a.K&&this.N==a.N&&this.H==a.H&&this.S==a.S};h.extend=function(a){a.K<this.K&&(this.K=a.K);a.H>this.H&&(this.H=a.H);a.N<this.N&&(this.N=a.N);a.S>this.S&&(this.S=
a.S)};h.getHeight=function(){return this.S-this.N+1};h.getSize=function(){return[this.getWidth(),this.getHeight()]};h.getWidth=function(){return this.H-this.K+1};h.intersects=function(a){return this.K<=a.H&&this.H>=a.K&&this.N<=a.S&&this.S>=a.N};function ft(a,b,c,d){return void 0!==d?(d[0]=a,d[1]=b,d[2]=c,d):[a,b,c]}function gt(a){var b=a[0],c=Array(b),d=1<<b-1,e,f;for(e=0;e<b;++e)f=48,a[1]&d&&(f+=1),a[2]&d&&(f+=2),c[e]=String.fromCharCode(f),d>>=1;return c.join("")}function ht(a){this.minZoom=void 0!==
a.minZoom?a.minZoom:0;this.P=a.resolutions;qd(Ue(this.P,function(a,b){return b-a}),17);this.maxZoom=this.P.length-1;this.zb=void 0!==a.origin?a.origin:null;this.Gh=null;void 0!==a.origins&&(this.Gh=a.origins,qd(this.Gh.length==this.P.length,20));var b=a.extent;void 0===b||this.zb||this.Gh||(this.zb=sf(b));qd(!this.zb&&this.Gh||this.zb&&!this.Gh,18);this.fi=null;void 0!==a.tileSizes&&(this.fi=a.tileSizes,qd(this.fi.length==this.P.length,19));this.ei=void 0!==a.tileSize?a.tileSize:this.fi?null:256;
qd(!this.ei&&this.fi||this.ei&&!this.fi,22);this.extent_=void 0!==b?b:null;this.kh=null;this.hi=[0,0];void 0!==a.sizes?this.kh=a.sizes.map(function(a){return new kj(Math.min(0,a[0]),Math.max(a[0]-1,-1),Math.min(0,a[1]),Math.max(a[1]-1,-1))},this):b&&it(this,b)}var jt=[0,0,0];h=ht.prototype;h.forEachTileCoord=function(a,b,c){a=ij(this,a,b);for(var d=a.K,e=a.H;d<=e;++d)for(var f=a.N,g=a.S;f<=g;++f)c([b,d,f])};function kt(a,b,c,d,e){e=a.getTileCoordExtent(b,e);for(b=b[0]-1;b>=a.minZoom;){if(c.call(null,
b,ij(a,e,b,d)))return!0;--b}return!1}h.getExtent=function(){return this.extent_};h.getMaxZoom=function(){return this.maxZoom};h.getMinZoom=function(){return this.minZoom};h.getOrigin=function(a){return this.zb?this.zb:this.Gh[a]};h.getResolution=function(a){return this.P[a]};h.getResolutions=function(){return this.P};function lt(a,b,c,d){return b[0]<a.maxZoom?(d=a.getTileCoordExtent(b,d),ij(a,d,b[0]+1,c)):null}function mt(a,b,c,d){nt(a,b[0],b[1],c,!1,jt);var e=jt[1],f=jt[2];nt(a,b[2],b[3],c,!0,jt);
a=jt[1];b=jt[2];void 0!==d?(d.K=e,d.H=a,d.N=f,d.S=b):d=new kj(e,a,f,b);return d}function ij(a,b,c,d){c=a.getResolution(c);return mt(a,b,c,d)}function Ks(a,b){var c=a.getOrigin(b[0]),d=a.getResolution(b[0]);a=fn(a.getTileSize(b[0]),a.hi);return[c[0]+(b[1]+.5)*a[0]*d,c[1]+(b[2]+.5)*a[1]*d]}h.getTileCoordExtent=function(a,b){var c=this.getOrigin(a[0]),d=this.getResolution(a[0]),e=fn(this.getTileSize(a[0]),this.hi),f=c[0]+a[1]*e[0]*d;a=c[1]+a[2]*e[1]*d;return gf(f,a,f+e[0]*d,a+e[1]*d,b)};h.getTileCoordForCoordAndResolution=
function(a,b,c){return nt(this,a[0],a[1],b,!1,c)};function nt(a,b,c,d,e,f){var g=a.getZForResolution(d),k=d/a.getResolution(g),l=a.getOrigin(g);a=fn(a.getTileSize(g),a.hi);b=k*Math.floor((b-l[0])/d+(e?.5:0))/a[0];c=k*Math.floor((c-l[1])/d+(e?0:.5))/a[1];e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));return ft(g,b,c,f)}h.getTileCoordForCoordAndZ=function(a,b,c){b=this.getResolution(b);return nt(this,a[0],a[1],b,!1,c)};h.getTileSize=function(a){return this.ei?this.ei:this.fi[a]};
h.getZForResolution=function(a,b){return rd(Ne(this.P,a,b||0),this.minZoom,this.maxZoom)};function it(a,b){for(var c=a.P.length,d=Array(c),e=a.minZoom;e<c;++e)d[e]=ij(a,b,e);a.kh=d}function ot(a){var b=a.Fs;if(!b){var b=jj(a),c=pt(b,void 0,void 0),b=new ht({extent:b,origin:sf(b),resolutions:c,tileSize:void 0});a.Fs=b}return b}function qt(a){var b={};le(b,void 0!==a?a:{});void 0===b.extent&&(b.extent=H("EPSG:3857").getExtent());b.resolutions=pt(b.extent,b.maxZoom,b.tileSize);delete b.maxZoom;return new ht(b)}
function pt(a,b,c){b=void 0!==b?b:42;var d=wf(a);a=vf(a);c=fn(void 0!==c?c:256);c=Math.max(a/c[0],d/c[1]);b+=1;d=Array(b);for(a=0;a<b;++a)d[a]=c/Math.pow(2,a);return d}function jj(a){a=H(a);var b=a.getExtent();b||(a=180*Hf.degrees/a.getMetersPerUnit(),b=gf(-a,-a,a,a));return b}function rt(a){this.$A=a.html;this.bn=a.an?a.an:null}rt.prototype.getHTML=function(){return this.$A};function st(a){Ge.call(this);this.Ga=H(a.projection);this.Kk=tt(a.attributions);this.hu=a.logo;this.g=void 0!==a.state?a.state:
"ready";this.yn=void 0!==a.wrapX?a.wrapX:!1}A(st,Ge);function tt(a){if("string"===typeof a)return[new rt({html:a})];if(a instanceof rt)return[a];if(Array.isArray(a)){for(var b=a.length,c=Array(b),d=0;d<b;d++){var e=a[d];c[d]="string"===typeof e?new rt({html:e}):e}return c}return null}h=st.prototype;h.za=nd;h.getAttributions=function(){return this.Kk};h.getLogo=function(){return this.hu};h.getProjection=function(){return this.Ga};h.getState=function(){return this.g};h.refresh=function(){this.changed()};
h.setAttributions=function(a){this.Kk=tt(a);this.changed()};h.Db=function(a){this.g=a;this.changed()};function X(a){a=a||{};st.call(this,{attributions:a.attributions,logo:a.logo,projection:void 0,state:"ready",wrapX:void 0!==a.wrapX?a.wrapX:!0});this.Xb=nd;this.sb=a.format;this.Hh=void 0==a.overlaps?!0:a.overlaps;this.fa=a.url;void 0!==a.loader?this.Xb=a.loader:void 0!==this.fa&&(qd(this.sb,7),this.Xb=dt(this.fa,this.sb));this.cE=void 0!==a.strategy?a.strategy:et;var b=void 0!==a.useSpatialIndex?
a.useSpatialIndex:!0;this.sa=b?new Cm:null;this.gu=new Cm;this.$b={};this.fd={};this.If={};this.fh={};this.Xc=null;var c,d;a.features instanceof Jh?(c=a.features,d=c.getArray()):Array.isArray(a.features)&&(d=a.features);b||void 0!==c||(c=new Jh(d));void 0!==d&&ut(this,d);void 0!==c&&vt(this,c)}A(X,st);h=X.prototype;h.addFeature=function(a){var b=D(a).toString();if(wt(this,b,a)){xt(this,b,a);var c=a.getGeometry();c?(b=c.getExtent(),this.sa&&this.sa.ta(b,a)):this.$b[b]=a;this.dispatchEvent(new yt("addfeature",
a))}this.changed()};function xt(a,b,c){a.fh[b]=[G(c,Ce.CHANGE,a.eg,a),G(c,"propertychange",a.eg,a)]}function wt(a,b,c){var d=!0,e=c.getId();void 0!==e?e.toString()in a.fd?d=!1:a.fd[e.toString()]=c:(qd(!(b in a.If),30),a.If[b]=c);return d}h.addFeatures=function(a){ut(this,a);this.changed()};function ut(a,b){var c,d,e,f,g=[],k=[],l=[];d=0;for(e=b.length;d<e;d++)f=b[d],c=D(f).toString(),wt(a,c,f)&&k.push(f);d=0;for(e=k.length;d<e;d++)f=k[d],c=D(f).toString(),xt(a,c,f),(b=f.getGeometry())?(c=b.getExtent(),
g.push(c),l.push(f)):a.$b[c]=f;a.sa&&a.sa.load(g,l);d=0;for(e=k.length;d<e;d++)a.dispatchEvent(new yt("addfeature",k[d]))}function vt(a,b){var c=!1;G(a,"addfeature",function(a){c||(c=!0,b.push(a.feature),c=!1)});G(a,"removefeature",function(a){c||(c=!0,b.remove(a.feature),c=!1)});G(b,"add",function(a){c||(c=!0,this.addFeature(a.element),c=!1)},a);G(b,"remove",function(a){c||(c=!0,this.removeFeature(a.element),c=!1)},a);a.Xc=b}h.clear=function(a){if(a){for(var b in this.fh)this.fh[b].forEach(qe);this.Xc||
(this.fh={},this.fd={},this.If={})}else if(this.sa){this.sa.forEach(this.pq,this);for(var c in this.$b)this.pq(this.$b[c])}this.Xc&&this.Xc.clear();this.sa&&this.sa.clear();this.gu.clear();this.$b={};this.dispatchEvent(new yt("clear"));this.changed()};h.forEachFeature=function(a,b){if(this.sa)return this.sa.forEach(a,b);if(this.Xc)return this.Xc.forEach(a,b)};function zt(a,b,c){a.forEachFeatureInExtent([b[0],b[1],b[0],b[1]],function(a){if(a.getGeometry().intersectsCoordinate(b))return c.call(void 0,
a)})}h.forEachFeatureInExtent=function(a,b,c){if(this.sa)return Fm(this.sa,a,b,c);if(this.Xc)return this.Xc.forEach(b,c)};h.forEachFeatureIntersectingExtent=function(a,b,c){return this.forEachFeatureInExtent(a,function(d){if(d.getGeometry().intersectsExtent(a)&&(d=b.call(c,d)))return d})};h.getFeaturesCollection=function(){return this.Xc};h.getFeatures=function(){var a;this.Xc?a=this.Xc.getArray():this.sa&&(a=this.sa.getAll(),oe(this.$b)||Oe(a,ne(this.$b)));return a};h.getFeaturesAtCoordinate=function(a){var b=
[];zt(this,a,function(a){b.push(a)});return b};h.getFeaturesInExtent=function(a){return Dm(this.sa,a)};h.getClosestFeatureToCoordinate=function(a,b){var c=a[0],d=a[1],e=null,f=[NaN,NaN],g=Infinity,k=[-Infinity,-Infinity,Infinity,Infinity],l=b?b:Df;Fm(this.sa,k,function(a){if(l(a)){var b=a.getGeometry(),m=g;g=b.Uc(c,d,f,g);g<m&&(e=a,a=Math.sqrt(g),k[0]=c-a,k[1]=d-a,k[2]=c+a,k[3]=d+a)}});return e};h.getExtent=function(){return this.sa.getExtent()};h.getFeatureById=function(a){a=this.fd[a.toString()];
return void 0!==a?a:null};h.getFormat=function(){return this.sb};h.getResolutions=function(){};h.getUrl=function(){return this.fa};h.eg=function(a){a=a.target;var b=D(a).toString(),c=a.getGeometry();c?(c=c.getExtent(),b in this.$b?(delete this.$b[b],this.sa&&this.sa.ta(c,a)):this.sa&&this.sa.update(c,a)):b in this.$b||(this.sa&&this.sa.remove(a),this.$b[b]=a);c=a.getId();void 0!==c?(c=c.toString(),b in this.If?(delete this.If[b],this.fd[c]=a):this.fd[c]!==a&&(At(this,a),this.fd[c]=a)):b in this.If||
(At(this,a),this.If[b]=a);this.changed();this.dispatchEvent(new yt("changefeature",a))};h.isEmpty=function(){return this.sa.isEmpty()&&oe(this.$b)};h.uj=function(a,b,c){var d=this.gu;a=this.cE(a,b);var e,f;e=0;for(f=a.length;e<f;++e){var g=a[e];Fm(d,g,function(a){return ef(a.extent,g)})||(this.Xb.call(this,g,b,c),d.ta(g,{extent:g.slice()}))}};h.removeFeature=function(a){var b=D(a).toString();b in this.$b?delete this.$b[b]:this.sa&&this.sa.remove(a);this.pq(a);this.changed()};h.pq=function(a){var b=
D(a).toString();this.fh[b].forEach(qe);delete this.fh[b];var c=a.getId();void 0!==c?delete this.fd[c.toString()]:delete this.If[b];this.dispatchEvent(new yt("removefeature",a))};function At(a,b){for(var c in a.fd)if(a.fd[c]===b){delete a.fd[c];break}}function yt(a,b){ze.call(this,a);this.feature=b}A(yt,ze);function Bt(a){qj.call(this,{handleEvent:Ct});a=a?a:{};this.rb=a.condition?a.condition:zj;this.yy=a.addCondition?a.addCondition:Ef;this.rD=a.removeCondition?a.removeCondition:Ef;this.uE=a.toggleCondition?
a.toggleCondition:Bj;this.Gu=a.multi?a.multi:!1;this.Ze=a.filter?a.filter:Df;this.ff=a.hitTolerance?a.hitTolerance:0;this.Wi=new W({source:new X({useSpatialIndex:!1,features:a.features,wrapX:a.wrapX}),style:a.style?a.style:Dt(),updateWhileAnimating:!0,updateWhileInteracting:!0});if(a.layers)if("function"===typeof a.layers)a=a.layers;else{var b=a.layers;a=function(a){return Me(b,a)}}else a=Df;this.Rl=a;this.Vi={};a=this.Wi.getSource().getFeaturesCollection();G(a,"add",this.ti,this);G(a,"remove",this.Fm,
this)}A(Bt,qj);h=Bt.prototype;h.getFeatures=function(){return this.Wi.getSource().getFeaturesCollection()};h.getHitTolerance=function(){return this.ff};h.getLayer=function(a){a=D(a);return this.Vi[a]};function Ct(a){if(!this.rb(a))return!0;var b=this.yy(a),c=this.rD(a),d=this.uE(a),e=!b&&!c&&!d,f=a.map,g=this.Wi.getSource().getFeaturesCollection(),k=[],l=[];if(e){me(this.Vi);f.forEachFeatureAtPixel(a.pixel,function(a,b){if(this.Ze(a,b))return l.push(a),a=D(a),this.Vi[a]=b,!this.Gu}.bind(this),{layerFilter:this.Rl,
hitTolerance:this.ff});for(e=g.getLength()-1;0<=e;--e){var f=g.item(e),m=l.indexOf(f);-1<m?l.splice(m,1):(g.remove(f),k.push(f))}0!==l.length&&g.extend(l)}else{f.forEachFeatureAtPixel(a.pixel,function(a,e){if(this.Ze(a,e))return!b&&!d||Me(g.getArray(),a)?(c||d)&&Me(g.getArray(),a)&&(k.push(a),e=D(a),delete this.Vi[e]):(l.push(a),a=D(a),this.Vi[a]=e),!this.Gu}.bind(this),{layerFilter:this.Rl,hitTolerance:this.ff});for(e=k.length-1;0<=e;--e)g.remove(k[e]);g.extend(l)}(0<l.length||0<k.length)&&this.dispatchEvent(new Et(Ft,
l,k,a));return yj(a)}h.setHitTolerance=function(a){this.ff=a};h.setMap=function(a){var b=this.getMap(),c=this.Wi.getSource().getFeaturesCollection();b&&c.forEach(b.yw,b);qj.prototype.setMap.call(this,a);this.Wi.setMap(a);a&&c.forEach(a.Yv,a)};function Dt(){var a=rg();Oe(a.Polygon,a.LineString);Oe(a.GeometryCollection,a.LineString);return function(b){return b.getGeometry()?a[b.getGeometry().getType()]:null}}h.ti=function(a){var b=this.getMap();b&&b.Yv(a.element)};h.Fm=function(a){var b=this.getMap();
b&&b.yw(a.element)};function Et(a,b,c,d){ze.call(this,a);this.selected=b;this.deselected=c;this.mapBrowserEvent=d}A(Et,ze);var Ft="select";M.impl.interaction={};function Gt(a){a=a||{};this.map=a.map;this.tm=a.tm||12;this.ko=a.ko||10;this.su=a.su||60;this.cw=!1!==a.cw;this.animate=a.animate;this.animationDuration=a.animationDuration||500;this.LD=!1!==a.selectCluster;this.maxFeaturesToSelect=a.maxFeaturesToSelect;this.Ui=a.vz;this.style_=a.style;var b=this.Ab=new W({source:new X({features:new Jh,useSpatialIndex:!0}),
name:"Cluster overlay",updateWhileAnimating:!0,updateWhileInteracting:!0,displayInLayerSwitcher:!1,style:a.QH});if(a.layers)if("function"==typeof a.layers){var c=a.layers;a.layers=function(a){return a===b||c(a)}}else a.layers.push&&a.layers.push(this.Ab);if(a.filter){var d=a.filter;a.filter=function(a,b){return!b&&a.get("selectclusterlink")?!1:d(a,b)}}else a.filter=function(a,b){return!b&&a.get("selectclusterlink")?!1:!0};this.Ze=a.filter;Bt.call(this,a);this.on("select",this.selectCluster,this)}
A(Gt,Bt);h=Gt.prototype;h.setMap=function(a){this.getMap()&&(this.getMap().getView()&&this.getMap().getView().un("change:resolution",this.clear,this),this.getMap().removeLayer(this.Ab));Bt.prototype.setMap.call(this,a);this.Ab.setMap(a);if(a&&a.getView())a.getView().on("change:resolution",this.clear,this)};h.clear=function(){this.getFeatures().clear();this.Ab.getSource().clear()};h.getLayer=function(){return this.Ab};h.refreshViewEvents=function(){if(this.getMap()&&this.getMap().getView())this.getMap().getView().on("change:resolution",
this.clear,this)};h.selectCluster=function(a){var b=this;if(a.selected.length){var c=a.selected[0];if(!c.get("selectclusterfeature")&&(a=c.get("features"))&&1!=a.length)if((!a||a.length>this.maxFeaturesToSelect)&&1!==this.Ui.getImpl().getNumZoomLevels()-this.map.getZoom())a=M.impl.utils.getFeaturesExtent(a),this.map.setBbox(a);else{this.Ab.getSource().clear();this.LD||this.getFeatures().clear();var c=c.getGeometry().getCoordinates(),d=this.getMap().getView().getResolution(),e=d*this.tm*(.5+a.length/
4);!this.cw||a.length<=this.ko?Ht(this,a,d,e,c):It(this,a,d,c);this.animate&&this.animateCluster_(c,function(){return b.Ab.getSource().refresh()})}}else this.clear()};function Ht(a,b,c,d,e){for(var f=Math.min(b.length,a.ko),g=0;g<f;g++){var k=2*Math.PI*g/f;if(2==f||4==f)k+=Math.PI/4;Jt(a,b[g],c,e,[e[0]+d*Math.sin(k),e[1]+d*Math.cos(k)])}}function It(a,b,c,d){for(var e=0,f,g=2*a.tm,k=Math.min(a.su,b.length),l=0;l<k;l++)f=g/2+g*e/(2*Math.PI),e+=(g+.1)/f,Jt(a,b[l],c,d,[d[0]+c*f*Math.sin(e),d[1]+c*f*
Math.cos(e)])}function Jt(a,b,c,d,e){var f=new E;b.getKeys().forEach(function(a){f.set(a,b.get(a))});var g=b.getStyle();g||(g=a.Ui.getStyle().getImpl().oldOLLayer_.getStyle());c=g(b,c);c=c.map?c.map(function(a){return a.clone()}):[c.clone()];f.setId(b.getId());f.setStyle(c);f.set("features",[b]);f.set("geometry",new F(e));a.Ab.getSource().addFeature(f);d=new E({selectclusterlink:!0,geometry:new P([d,e])});a.Ab.getSource().addFeature(d)}h.animateCluster_=function(a,b){this.uc&&(this.Ab.setVisible(!0),
Ee(this.uc));var c=this.Ab.getSource().getFeatures();if(c.length){this.Ab.setVisible(!1);var d=this.animationDuration||500,e=(new Date).getTime();this.uc=this.getMap().on("postcompose",function(f){for(var g=f.vectorContext,k=f.target.getView().getResolution(),l=Vi.easeOut((f.frameState.time-e)/d),m=0;m<c.length;m++)if(c[m].get("features")){var n=c[m],q=n.get("features")[0],r=n.getGeometry().getCoordinates();r[0]=a[0]+l*(r[0]-a[0]);r[1]=a[1]+l*(r[1]-a[1]);for(var n=new F(r),t=this.Ab.getStyle()(q,
k).map(function(a){return a.clone()}),u=0;u<t.length;u++){var y=t[u];y.getImage().X||(y.getImage().X=[42,42]);y.getImage();g.setStyle(y);g.Wc(new P([a,r]))}(r=q.getStyle())||(r=this.Ui.getStyle().getImpl().oldOLLayer_.getStyle());q=r(q,k);q=q.map?q.map(function(a){return a.clone()}):[q.clone()];for(r=0;r<q.length;r++){t=q[r];if(u=t.getImage())null==u.getOrigin()&&(u.zb=[]),null==u.getAnchor()&&(u.Eh=[]),null==u.getSize()&&(u.X=[42,42]);g.setStyle(t);g.drawGeometry(n)}}1<l?(Ee(this.uc),this.Ab.setVisible(!0),
b()):f.frameState.animate=!0},this)}};M.impl.Label={};M.impl.Label=function(a,b,c){this.oa=a;this.Ec=[b.x,b.y];this.facadeMap_=this.Fa=null;this.panMapIfOutOfView=c};h=M.impl.Label.prototype;h.show=function(a){this.facadeMap_=a;M.template.compile(M.Label.POPUP_TEMPLATE,{jsonp:!0,vars:{info:this.oa},parseToHtml:!1}).then(function(b){a.removePopup();this.Fa=new M.Popup({panMapIfOutOfView:this.panMapIfOutOfView});this.Fa.addTab({icon:"g-cartografia-comentarios",title:"Informaci\u00f3n",content:b});a.addPopup(this.Fa,
this.Ec)}.bind(this))};h.hide=function(){this.facadeMap_.removePopup()};h.getPopup=function(){return this.Fa};h.getCoordinate=function(){var a=this.Ec;M.utils.isNullOrEmpty(a)&&(a=this.getPopup().getCoordinate());return a};h.setCoordinate=function(a){this.Ec=a;var b=this.getPopup();M.utils.isNullOrEmpty(b)||b.setCoordinate(a)};M.impl.layer={};function hs(a){a=void 0===a?{}:a;this.styleCluster_=a.style;W.call(this,a);this.oldCluster_=new X;this.clusters_=[];this.animation_={start:!1};this.set("animationDuration",
"number"==typeof a.animationDuration?a.animationDuration:700);this.set("animationMethod",a.animationMethod||Vi.easeOut);this.getSource().on("change",this.saveCluster_,this);this.on("precompose",this.animate,this);this.on("postcompose",this.postanimate,this)}v(hs,W);h=hs.prototype;h.saveCluster_=function(){this.oldCluster_.clear();if(this.get("animationDuration")){var a=this.getSource().getFeatures();a.length&&a[0].get("features")&&(this.oldCluster_.addFeatures(this.clusters_),this.clusters_=a.slice(0),
this.$v=!0)}};function Kt(a,b){return b.find(function(b){b=b.get("features");if(!M.utils.isNullOrEmpty(b))return b.find(function(b){return b===a})})}h.animate=function(a){var b=this.get("animationDuration");if(b){this.animation_.resolution!=a.frameState.viewState.resolution&&this.$v&&(this.animation_.reverse=this.animation_.resolution>=a.frameState.viewState.resolution,this.prepareAnimation_(a.frameState.extent,a.frameState.viewState.resolution),a.frameState.time=this.animation_.start);var c=this.animation_.Sk.length;
if(0<c&&1E3>=c&&this.animation_.start){var d=a.vectorContext,e=(a.frameState.time-this.animation_.start)/b;1<e&&(this.animation_.start=!1,e=1);e=this.get("animationMethod")(e);a.context.save();a.context.globalAlpha=this.getOpacity();this.animation_.Sk.forEach(function(b,c){var f=b.getGeometry().getCoordinates();c=this.animation_.mo[c].getGeometry().getCoordinates();this.animation_.reverse?(f[0]=c[0]+e*(f[0]-c[0]),f[1]=c[1]+e*(f[1]-c[1])):(f[0]+=e*(c[0]-f[0]),f[1]+=e*(c[1]-f[1]));b=this.getStyle()(b,
a.frameState.viewState.resolution);var g=new F(f);M.utils.isNullOrEmpty(b)||b.forEach(function(a){var b=a.getImage();M.utils.isNullOrEmpty(b)||(null==b.getOrigin()&&(b.zb=[]),null==b.getAnchor()&&(b.Eh=[]),null==b.getSize()&&(b.X=[]));d.setStyle(a);d.drawGeometry(g)})},this);a.context.restore();a.frameState.animate=!0;a.context.save();a.context.beginPath();a.context.rect(0,0,0,0);a.context.clip();this.rs=!0}else this.animation_.Sk.length=0,this.animation_.mo.length=0,this.animation_.start=!1}};h.prepareAnimation_=
function(a,b){this.animation_.Sk=[];this.animation_.mo=[];var c=Ye(a,100*b);a=this.oldCluster_.getFeaturesInExtent(c);var c=this.getSource().getFeaturesInExtent(c),d=this.animation_.reverse?a:c;(this.animation_.reverse?c:a).forEach(function(a){var b=a.get("features");M.utils.isNullOrEmpty(b)||(b=Kt(b[0],d),M.utils.isNullOrEmpty(b)||!1===b||(this.animation_.Sk.push(a),this.animation_.mo.push(b)))},this);this.animation_.resolution=b;this.$v=!1;this.animation_.start=(new Date).getTime()};h.postanimate=
function(a){this.rs&&(a.context.restore(),this.rs=!1)};h.setStyle=function(){hs.ab.setStyle.call(this,this.styleCluster_)};M.impl.Popup={};M.impl.Popup=function(a){a=a||{};this.panMapIfOutOfView=a.panMapIfOutOfView;void 0===this.panMapIfOutOfView&&(this.panMapIfOutOfView=!0);this.ani_opts=a.ani_opts;void 0===this.ani_opts&&(this.ani_opts={duration:250});this.facadeMap_=null};v(M.impl.Popup,jn);h=M.impl.Popup.prototype;h.addTo=function(a,b){this.facadeMap_=a;this.container=b;this.content=this.ot(b);
M.utils.enableTouchScroll(this.content);jn.call(this,{element:this.container,stopEvent:!0});a.getMapImpl().addOverlay(this)};h.show=function(a,b){this.setPosition(a);this.panMapIfOutOfView&&this.Lp(a);this.content.scrollTop=0;M.utils.isFunction(b)&&b();return this};h.centerByStatus=function(a,b){var c=this.getMap().getView().getResolution();b=[].concat(b);if(a===M.Popup.status.COLLAPSED)b[1]-=.1*M.window.HEIGHT*c;else if(a===M.Popup.status.DEFAULT)b[1]-=.275*M.window.HEIGHT*c;else return;a=this.facadeMap_.Tg;
this.facadeMap_.setCenter({x:b[0],y:b[1]});M.utils.isNullOrEmpty(a)||this.facadeMap_.drawFeatures([a])};h.ot=function(a){return a.querySelector("div.m-body")};h.Lp=function(a){this.sC().then(function(){this.Qt=!0;if(768<M.window.WIDTH){var b=this.getElement(),c=b.clientWidth+20,d=b.clientHeight+20+30,e=this.getMap().getSize(),b=this.getMap().getView().getCenter(),f=c-60,g=this.getOffset(),k=this.getMap().getPixelFromCoordinate(a);M.utils.isNullOrEmpty(k)||(c=k[0]-60,f=e[0]-(k[0]+f),d=k[1]-d+g[1],
e=e[1]-(k[1]+20)-g[1],g=this.getMap().getPixelFromCoordinate(b),k=g.slice(),0>f?k[0]-=f:0>c&&(k[0]+=c),0>d?k[1]+=d:0>e&&(k[1]-=e),M.utils.isNullOrEmpty(this.ani_opts)||M.utils.isNullOrEmpty(this.ani_opts.source)||(this.ani_opts.source=b,this.getMap().getView().animate(this.ani_opts)),k[0]===g[0]&&k[1]===g[1]||this.getMap().getView().setCenter(this.getMap().getCoordinateFromPixel(k)))}this.Qt=!1}.bind(this));return this.getMap().getView().getCenter()};h.sC=function(){return new Promise(function(a){if(!0===
this.Qt){var b=300;M.utils.isNullOrEmpty(this.ani_opts)||(b=this.ani_opts.duration);setTimeout(a,b)}else a()}.bind(this))};h.hide=function(){this.facadeMap_.removePopup()};h.setContainer=function(a){this.setElement(a);this.content=this.ot(a);M.utils.enableTouchScroll(this.content)};h.setContent=function(a){this.content.innerHTML=a};h.getContent=function(){return this.content};M.impl.layer.Draw={};M.impl.layer.Draw=function(){this.jt=new vb;this.name="drawLayer";this.Zj=[];M.impl.Layer.call(this)};
v(M.impl.layer.Draw,M.impl.Layer);M.impl.layer.Draw.prototype.addTo=function(a){this.map=a;this.ol3Layer=new W({source:new X({}),style:new mg({fill:new ke({color:"rgba(0, 158, 0, 0.1)"}),stroke:new lg({color:"#fcfcfc",width:2}),image:new je({radius:7,fill:new ke({color:"#009E00"}),stroke:new lg({color:"#fcfcfc",width:2})})}),zIndex:M.impl.Map.Z_INDEX[M.layer.type.WFS]+999});!1!==this.options.visibility&&this.setVisible(this.inRange());this.map.getMapImpl().addLayer(this.ol3Layer)};M.impl.layer.Draw.prototype.selectFeatures=
function(a){this.Zj=a;M.utils.isFunction(this.Zj[0].click)&&this.Zj[0].click()};M.impl.layer.Draw.prototype.unselectFeatures=function(){0<this.Zj.length&&(this.Zj.length=0,this.map.removePopup())};h=M.impl.layer.Draw.prototype;h.drawPoints=function(a){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan punto");M.utils.isArray(a)||(a=[a]);a=this.IC(a);this.drawGeoJSON(a)};h.drawGeoJSON=function(a){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan GeoJSON");M.utils.isArray(a)||
(a=[a]);var b=H(this.map.getProjection().code),c=[];a.forEach(function(a){a=this.jt.readFeatures(a,{dataProjection:b});c=c.concat(a)},this);this.ol3Layer.getSource().addFeatures(c)};h.drawFeatures=function(a){M.utils.isNullOrEmpty(a)||(M.utils.isArray(a)||(a=[a]),this.ol3Layer.getSource().addFeatures(a))};h.removeFeatures=function(a){if(!M.utils.isNullOrEmpty(a)){M.utils.isArray(a)||(a=[a]);var b=this.ol3Layer.getSource();a.forEach(function(a){try{this.removeFeature(a)}catch(d){}},b)}};h.getPoints=
function(a){var b=this.ol3Layer.getSource();M.utils.isNullOrEmpty(a)?b.getFeatures():b.getFeaturesAtCoordinate(a);return[]};h.destroy=function(){var a=this.map.getMapImpl();M.utils.isNullOrEmpty(this.ol3Layer)||(a.removeLayer(this.ol3Layer),this.ol3Layer=null);this.map=this.options=null};h.equals=function(a){var b=!1;a instanceof M.impl.layer.Draw&&(b=b&&this.name===a.name);return b};h.IC=function(a){var b=[],c=H(this.map.getProjection().code);return b=a.map(function(a){var b=a.data,d=new F([a.x,
a.y]);return{type:"Feature",geometry:this.jt.writeGeometryObject(d,{dataProjection:c}),properties:b,click:a.click,showPopup:a.mJ}},this)};M.impl.textpath={};M.impl.textpath.render=function(a,b){function c(a,b){if(!e||f+e<b)for(;g<a.length;){e=d(a[g-2],a[g-1],a[g],a[g+1]);if(f+e>b)break;g+=2;if(g>=a.length)break;f+=e}b-=f;g>=a.length&&(g=a.length-2);return[b?a[g-2]+(a[g]-a[g-2])*b/e:a[g-2],b?a[g-1]+(a[g+1]-a[g-1])*b/e:a[g-1],Math.atan2(a[g+1]-a[g-1],a[g]-a[g-2])]}function d(a,b,c,d){b=ja([c-a,d-b]);
a=b.next().value;b=b.next().value;return Math.sqrt(a*a+b*b)}for(var e=0,f=0,g=2,k=.25*this.measureText(" ").width,l=0,m=0,n=2;n<b.length;n+=2)m+=d(b[n-2],b[n-1],b[n],b[n+1]);if(!(m<this.minWidth)){n=a.split(" ").length-1;if("visible"!==this.textOverflow&&m<this.measureText(a).width+(a.length-1+n)*k){var q="ellipsis"===this.textOverflow?"\u2026":this.textOverflow;do n=a.split(" ").length-1,a=a.slice(0,a.length-1);while(a&&m<this.measureText(a+q).width+(a.length+q.length-1+n)*k);a+=q}switch(this.nw||
this.textAlign){case !0:case "center":case "end":case "right":this.nw?(l=0,k=(m-this.measureText(a).width)/(a.length-1+n)):(l=m-this.measureText(a).width-(a.length+n)*k,"center"===this.textAlign&&(l/=2))}for(m=0;m<a.length;m++){var n=a[m],q=this.measureText(n).width,r=c(b,l+q/2);this.save();this.textAlign="center";this.translate(r[0],r[1]);this.rotate(r[2]);this.lineWidth&&this.strokeText(n,0,0);this.fillText(n,0,0);this.restore();l+=q+k*(" "===n?2:1)}}};M.impl.textpath.getPath_=function(a,b,c){var d=
[];b.forEach(function(b){d.push(a[0]*b[0]+a[1]*b[1]+a[4]);d.push(a[2]*b[0]+a[3]*b[1]+a[5])});if(c&&d[0]>d[d.length-2]){b=[];for(c=d.length-2;0<=c;c-=2)b.push(d[c]),b.push(d[c+1]);return b}return d};M.impl.textpath.formatStyle=function(a){if(null==a)return null;"undefined"===typeof a&&(a=[new mg({text:new go})]);return"function"==typeof a?a:function(){return[a]}};M.impl.textpath.draw=function(a,b,c,d){b=this.getPath_(b,d,c.getRotateWithView());a.font=c.getFont();a.textBaseline=c.getTextBaseline();
a.textAlign=c.getTextAlign();a.lineWidth=c.getStroke()?c.getStroke().getWidth()||M.impl.textpath.DEFAULT.lineWidth:M.impl.textpath.DEFAULT.lineWidth;a.strokeStyle=c.getStroke()?c.getStroke().getColor()||M.impl.textpath.DEFAULT.bu:M.impl.textpath.DEFAULT.bu;a.fillStyle=c.getFill()?c.getFill().getColor()||M.impl.textpath.DEFAULT.fillColor:M.impl.textpath.DEFAULT.fillColor;a.nw="justify"==c.getTextAlign();a.textOverflow=c.getTextOverflow?c.getTextOverflow():M.impl.textpath.DEFAULT.textOverflow;a.minWidth=
c.getMinWidth?c.getMinWidth():M.impl.textpath.DEFAULT.minWidth;"function"===typeof a.textPath&&a.textPath(c.getText(),b);a.restore()};M.impl.textpath.DEFAULT={lineWidth:0,bu:"#fff",fillColor:"#000",textOverflow:"",minWidth:0};M.impl.renderutils={};M.impl.renderutils.postRender=function(a){a=void 0===a?null:a;var b=this;M.utils.isUndefined(CanvasRenderingContext2D.prototype.textPath)&&(CanvasRenderingContext2D.prototype.textPath=M.impl.textpath.render);if(!(a.frameState.viewState.resolution>this.qJ)){var c=
a.frameState.extent,d=a.context;d.save();d.scale(a.frameState.pixelRatio,a.frameState.pixelRatio);if(null!=this.getSource()&&0==this.getSource().getFeatures().length)return!1;this.getSource().getFeaturesInExtent(c).forEach(function(c){var e=null!=c.getStyle()?c.getStyle():b.getStyle(),e="function"===typeof e?e(c,a.frameState.viewState.resolution):e;e instanceof Array||(e=[e]);e.forEach(function(b){var e=(b instanceof M.style.Line?b.options_.geometry:b.getGeometry())||c.getGeometry();switch(e.getType()){case "MultiLineString":e=
e.getLineString(0).getCoordinates();break;default:e=e.getCoordinates()}b=b instanceof M.style.Line?b.options_.text:b.textPath;null!=b&&b instanceof M.impl.style.TextPath&&M.impl.textpath.draw(d,a.frameState.Pe,b,e)})});d.restore()}};M.impl.layer.Vector={};M.impl.layer.Vector=function(a){this.facadeVector_=null;this.features_=[];this.cv=null;this.loaded_=!1;M.impl.Layer.call(this,a)};v(M.impl.layer.Vector,M.impl.Layer);M.impl.layer.Vector.prototype.addTo=function(a){this.map=a;a.on(M.evt.CHANGE_PROJ,
this.SD,this);this.ol3Layer=new W;this.Lg();this.setVisible(this.visibility);this.map.getMapImpl().addLayer(this.ol3Layer)};M.impl.layer.Vector.prototype.Lg=function(){M.utils.isNullOrEmpty(this.ol3Layer.getSource())&&this.ol3Layer.setSource(new X);this.redraw();this.loaded_=!0;this.fire(M.evt.LOAD,[this.features_])};M.impl.layer.Vector.prototype.inRange=function(){return!0};h=M.impl.layer.Vector.prototype;h.addFeatures=function(a,b){a.forEach(function(a){var b=this.features_.find(function(b){return b.equals(a)});
M.utils.isNullOrEmpty(b)&&this.features_.push(a)}.bind(this));b&&this.updateLayer_();a=this.facadeVector_.getStyle();a instanceof M.style.Cluster?(a.getImpl().deactivateTemporarilyChangeEvent(this.redraw.bind(this)),a.refresh()):this.redraw()};h.updateLayer_=function(){var a=this.facadeVector_.getStyle();M.utils.isNullOrEmpty(a)||(a instanceof M.style.Simple?this.facadeVector_.setStyle(a):(a instanceof M.style.Cluster&&(a=this.facadeVector_.getStyle(),a.unapply(this.facadeVector_),a.getOldStyle().apply(this.facadeVector_)),
a.apply(this.facadeVector_)))};h.getFeatures=function(a,b){var c=this.features_;a||(c=b.execute(c));return c};h.getFeatureById=function(a){return this.features_.find(function(b){return b.getId()===a})};h.removeFeatures=function(a){this.features_=this.features_.filter(function(b){return!a.includes(b)});var b=this.facadeVector_.getStyle();b instanceof M.style.Cluster?(b.getImpl().deactivateTemporarilyChangeEvent(this.redraw.bind(this)),b.refresh()):this.redraw()};h.redraw=function(){var a=this.getOL3Layer();
if(!M.utils.isNullOrEmpty(a)){var b=this.facadeVector_.getStyle(),a=a.getSource();a instanceof Y&&(a=a.getSource());b instanceof M.style.Cluster&&b.getImpl().deactivateChangeEvent();[].concat(la(a.getFeatures())).forEach(a.removeFeature,a);var c=this.facadeVector_.getFeatures();a.addFeatures(c.map(M.impl.Feature.facade2OLFeature));b instanceof M.style.Cluster&&b.getImpl().activateChangeEvent()}};h.getFeaturesExtent=function(a,b){a=this.getFeatures(a,b);return M.impl.utils.getFeaturesExtent(a)};M.impl.layer.Vector.prototype.selectFeatures=
function(a,b,c){a=a[0];M.utils.isNullOrEmpty(a)||(b=a.getAttribute("vendor.mapea.click"),M.utils.isFunction(b)&&b(c,a))};M.impl.layer.Vector.prototype.unselectFeatures=function(){this.map.removePopup()};h=M.impl.layer.Vector.prototype;h.setFacadeObj=function(a){this.facadeVector_=a};h.SD=function(a,b){if(a.code!==b.code){var c=H(a.code),d=H(b.code);a=this.facadeVector_.getStyle();a instanceof M.style.Cluster&&a.getImpl().deactivateChangeEvent();this.facadeVector_.getFeatures().forEach(function(a){return a.getImpl().getOLFeature().getGeometry().transform(c,
d)});a instanceof M.style.Cluster&&a.getImpl().activateChangeEvent()}};h.equals=function(){return!1};h.refresh=function(){this.getOL3Layer().getSource().clear()};h.isLoaded=function(){return this.loaded_};h.destroy=function(){var a=this.map.getMapImpl();M.utils.isNullOrEmpty(this.ol3Layer)||(a.removeLayer(this.ol3Layer),this.ol3Layer=null);this.map=null};M.impl.loader={};M.impl.loader.JSONP={};M.impl.loader.JSONP=function(a,b,c){this.map_=a;this.fa=b;this.sb=c;M.Object.call(this)};v(M.impl.loader.JSONP,
M.Object);M.impl.loader.JSONP.prototype.getLoaderFn=function(a){var b=this;return function(c,d,e){var f=this;b.pf(e).then(function(b){a.apply(f,b)})}};M.impl.loader.JSONP.prototype.pf=function(a){return new Promise(function(b){M.remote.get(this.fa).then(function(c){M.utils.isNullOrEmpty(c.text)?M.exception("No hubo respuesta del servicio"):(c=this.sb.read(c.text,{featureProjection:a}),b.call(this,[c]))}.bind(this))}.bind(this))};M.impl.layer.GeoJSON={};M.impl.layer.GeoJSON=function(a,b){this.Xb=this.Zc=
this.Fa=null;this.loaded_=!1;this.op=[];M.utils.isNullOrEmpty(b.hide)||(this.op=b.hide);this.Bq=[];M.utils.isNullOrEmpty(b.show)||(this.Bq=b.show);M.impl.layer.Vector.call(this,b)};v(M.impl.layer.GeoJSON,M.impl.layer.Vector);M.impl.layer.GeoJSON.prototype.addTo=function(a){this.Zc=new M.format.GeoJSON({defaultDataProjection:H(a.getProjection().code)});M.utils.isNullOrEmpty(this.url)||(this.Xb=new M.impl.loader.JSONP(a,this.url,this.Zc));M.impl.layer.GeoJSON.ab.addTo.call(this,a)};M.impl.layer.GeoJSON.prototype.refresh=
function(a){a=void 0===a?null:a;var b=this.Zc.write(this.facadeVector_.getFeatures()),c=this.map.getProjection().code.split(":")[1],b={type:"FeatureCollection",features:b,crs:{properties:{code:c},type:"EPSG"}};M.utils.isObject(a)&&(b=a);this.source=b;this.Lg()};M.impl.layer.GeoJSON.prototype.setSource=function(a){this.source=a;M.utils.isNullOrEmpty(this.map)||this.Lg()};M.impl.layer.GeoJSON.prototype.Lg=function(){var a,b=this;if(!M.utils.isNullOrEmpty(this.url))a={format:this.Zc,loader:this.Xb.getLoaderFn(function(a){b.loaded_=
!0;b.facadeVector_.addFeatures(a);b.fire(M.evt.LOAD,[a])}),strategy:et},this.ol3Layer.setSource(new X(a));else if(!M.utils.isNullOrEmpty(this.source)){var c=this.Zc.read(this.source,this.map.getProjection());this.ol3Layer.setSource(new X({loader:function(){b.loaded_=!0;b.facadeVector_.clear();b.facadeVector_.addFeatures(c);b.fire(M.evt.LOAD,[c])}}));this.facadeVector_.addFeatures(c)}};M.impl.layer.GeoJSON.prototype.selectFeatures=function(a,b,c){var d=a[0];if(!(d instanceof M.ClusteredFeature||!0!==
this.extract||(this.unselectFeatures(),M.utils.isNullOrEmpty(d)))){var e=d.getAttribute("vendor.mapea.click");M.utils.isFunction(e)?e(c,d):M.template.compile(M.layer.GeoJSON.POPUP_TEMPLATE,{jsonp:!0,vars:this.uC(a),parseToHtml:!1}).then(function(a){a={icon:"g-cartografia-pin",title:this.name,content:a};var c=this.map.getPopup();M.utils.isNullOrEmpty(c)?(c=new M.Popup,c.addTab(a),this.map.addPopup(c,b)):c.addTab(a)}.bind(this))}};M.impl.layer.GeoJSON.prototype.uC=function(a){var b={features:[]};a.forEach(function(a){if(!(a instanceof
M.ClusteredFeature)){var c=a.getAttributes(),e=[],f;for(f in c){var g=!0;M.utils.isNullOrEmpty(this.Bq)?M.utils.isNullOrEmpty(this.op)||(g=!M.utils.includes(this.op,f)):g=M.utils.includes(this.Bq,f);g&&e.push({key:M.utils.beautifyAttributeName(f),value:c[f]})}a={id:a.getId(),attributes:e};b.features.push(a)}},this);return b};M.impl.layer.GeoJSON.prototype.isLoaded=function(){return this.loaded_};M.impl.layer.GeoJSON.prototype.equals=function(a){var b=!1;a instanceof M.impl.layer.GeoJSON&&(b=(b=b&&
this.name===a.name)&&this.extract===a.extract);return b};function Z(a){a=a?a:{};var b=le({},a);delete b.gradient;delete b.radius;delete b.blur;delete b.shadow;delete b.weight;W.call(this,b);this.bf=null;this.Vv=void 0!==a.shadow?a.shadow:250;this.jo=void 0;this.bk=null;G(this,Ie(Lt),this.qA,this);this.setGradient(a.gradient?a.gradient:Mt);this.setBlur(void 0!==a.blur?a.blur:15);this.setRadius(void 0!==a.radius?a.radius:8);G(this,Ie(Nt),this.lp,this);G(this,Ie(Ot),this.lp,this);this.lp();var c=a.weight?
a.weight:"weight",d;d="string"===typeof c?function(a){return a.get(c)}:c;this.setStyle(function(a){a=d(a);a=void 0!==a?rd(a,0,1):1;var b=255*a|0,c=this.bk[b];c||(c=[new mg({image:new $n({opacity:a,src:this.jo})})],this.bk[b]=c);return c}.bind(this));this.set(Vs,null);G(this,"render",this.JA,this)}A(Z,W);var Mt=["#00f","#0ff","#0f0","#ff0","#f00"];h=Z.prototype;h.getBlur=function(){return this.get(Nt)};h.getGradient=function(){return this.get(Lt)};h.getRadius=function(){return this.get(Ot)};h.qA=function(){for(var a=
this.getGradient(),b=Hd(1,256),c=b.createLinearGradient(0,0,1,256),d=1/(a.length-1),e=0,f=a.length;e<f;++e)c.addColorStop(e*d,a[e]);b.fillStyle=c;b.fillRect(0,0,1,256);this.bf=b.getImageData(0,0,1,256).data};h.lp=function(){var a=this.getRadius(),b=this.getBlur(),c=a+b+1,d=2*c,d=Hd(d,d);d.shadowOffsetX=d.shadowOffsetY=this.Vv;d.shadowBlur=b;d.shadowColor="#000";d.beginPath();b=c-this.Vv;d.arc(b,b,a,0,2*Math.PI,!0);d.fill();this.jo=d.canvas.toDataURL();this.bk=Array(256);this.changed()};h.JA=function(a){a=
a.context;var b=a.canvas,b=a.getImageData(0,0,b.width,b.height),c=b.data,d,e,f;d=0;for(e=c.length;d<e;d+=4)if(f=4*c[d+3])c[d]=this.bf[f],c[d+1]=this.bf[f+1],c[d+2]=this.bf[f+2];a.putImageData(b,0,0)};h.setBlur=function(a){this.set(Nt,a)};h.setGradient=function(a){this.set(Lt,a)};h.setRadius=function(a){this.set(Ot,a)};var Nt="blur",Lt="gradient",Ot="radius";M.impl.layer.Heatmap={};M.impl.layer.Heatmap=function(a){a=void 0===a?{}:a;Z.call(this,a);var b=a.weight?a.weight:"weight",c;if("string"===typeof b){var d=
1,e=this.getSource().getFeatures();0<e.length&&(this.LB=d=e.map(function(b){return b.get(a.weight)}).filter(function(a){return null!=a}).reduce(function(a,b){return Math.max(a,b)}),this.PB=e.map(function(b){return b.get(a.weight)}).filter(function(a){return null!=a}).reduce(function(a,b){return Math.min(a,b)}),c=function(a){var c;a instanceof E?c=a.get(b):a instanceof M.Feature&&(c=a.getAttribute(b));return parseFloat(c/d)})}else c=b;this.setStyle(function(a){a=M.impl.style.Simple.getValue(c,a);a=
void 0!==a?rd(a,0,1):1;var b=255*a|0,d=this.bk[b];d||(d=[new mg({image:new $n({opacity:a,src:this.jo})})],this.bk[b]=d);return d}.bind(this))};v(M.impl.layer.Heatmap,Z);M.impl.layer.Heatmap.prototype.ap=function(){return this.PB};M.impl.layer.Heatmap.prototype.$o=function(){return this.LB};M.impl.loader.KML={};M.impl.loader.KML=function(a,b,c){this.map_=a;this.fa=b;this.sb=c;M.Object.call(this)};v(M.impl.loader.KML,M.Object);M.impl.loader.KML.prototype.getLoaderFn=function(a){var b=this;return function(c,
d,e){var f=this;b.pf(e).then(function(b){a.apply(f,b)})}};M.impl.loader.KML.prototype.pf=function(a){var b=this;return new Promise(function(c){M.remote.get(b.fa).then(function(d){if(M.utils.isNullOrEmpty(d.text))M.exception("No hubo respuesta del KML");else{d=b.sb.readFeatures(d.text,{featureProjection:a});var e=b.sb.getScreenOverlay();c.call(this,[d.map(function(a){var b=new M.Feature(a.getId(),{geometry:{coordinates:a.getGeometry().getCoordinates(),type:a.getGeometry().getType()},properties:a.getProperties()});
b.getImpl().getOLFeature().setStyle(a.getStyle());return b}),e])}})})};M.impl.layer.KML={};M.impl.layer.KML=function(a){this.yq=this.Vm=this.Fa=null;M.impl.layer.Vector.call(this,a)};v(M.impl.layer.KML,M.impl.layer.Vector);M.impl.layer.KML.prototype.setVisible=function(a){this.visibility=a;M.utils.isNullOrEmpty(this.ol3Layer)||this.ol3Layer.setVisible(a);if(!M.utils.isNullOrEmpty(this.yq)){var b="none";!0===a&&(b="inherit");x.setStyle(this.yq,"display",b)}};M.impl.layer.KML.prototype.addTo=function(a){M.impl.layer.KML.ab.addTo.call(this,
a);var b=new qq,c=new M.impl.loader.KML(a,this.url,b),d=this;this.ol3Layer=new W({source:new X({url:this.url,format:b,loader:c.getLoaderFn(function(b,c){d.facadeVector_.clear();d.facadeVector_.addFeatures(b);d.fire(M.evt.LOAD,[b]);M.utils.isNullOrEmpty(c)||(b=M.impl.utils.addOverlayImage(c,a),d.setScreenOverlayImg(b))})})});!1!==this.options.visibility&&this.setVisible(this.inRange());null!==this.zIndex_&&this.setZIndex(this.zIndex_);this.map.getMapImpl().addLayer(this.ol3Layer)};M.impl.layer.KML.prototype.selectFeatures=
function(a){a=a[0];if(!(a instanceof M.ClusteredFeature)&&!0===this.extract){var b=a.getAttribute("name"),c=a.getAttribute("description"),d=a.getImpl().getOLFeature().getGeometry().getFirstCoordinate(),e=this;M.template.compile(M.layer.KML.POPUP_TEMPLATE,{jsonp:!0,vars:{name:b,desc:c},parseToHtml:!1}).then(function(a){e.Vm={icon:"g-cartografia-comentarios",title:b,content:a};a=e.map.getPopup();M.utils.isNullOrEmpty(a)?(e.Fa=new M.Popup,e.Fa.addTab(e.Vm),e.map.addPopup(e.Fa,d)):a.addTab(e.Vm)})}};
M.impl.layer.KML.prototype.unselectFeatures=function(){M.utils.isNullOrEmpty(this.Fa)||(this.Fa.hide(),this.Fa=null)};M.impl.layer.KML.prototype.setScreenOverlayImg=function(a){this.yq=a};M.impl.layer.KML.prototype.destroy=function(){var a=this.map.getMapImpl();M.utils.isNullOrEmpty(this.ol3Layer)||(a.removeLayer(this.ol3Layer),this.ol3Layer=null);this.removePopup();this.map=this.options=null};M.impl.layer.KML.prototype.removePopup=function(){M.utils.isNullOrEmpty(this.Fa)||(1<this.Fa.getTabs().length?
this.Fa.removeTab(this.Vm):this.map.removePopup())};M.impl.layer.KML.prototype.equals=function(a){var b=!1;a instanceof M.impl.layer.KML&&(b=(b=(b=this.url===a.url)&&this.name===a.name)&&this.extract===a.extract);return b};function Pt(a,b){Be.call(this);this.Ka=a;this.state=b;this.Kb=null;this.key=""}A(Pt,Be);Pt.prototype.changed=function(){this.dispatchEvent(Ce.CHANGE)};Pt.prototype.getKey=function(){return this.key+"/"+this.Ka};function Qt(a){if(!a.Kb)return a;var b=a.Kb;do{if(2==b.getState())return b;
b=b.Kb}while(b);return a}Pt.prototype.getTileCoord=function(){return this.Ka};Pt.prototype.getState=function(){return this.state};function Rt(a,b,c,d,e){Pt.call(this,a,b);this.rd=c;this.f=new Image;null!==d&&(this.f.crossOrigin=d);this.jg=null;this.Rq=e}A(Rt,Pt);h=Rt.prototype;h.T=function(){1==this.state&&eo(this);this.Kb&&this.Kb.Ib();this.state=5;this.changed();Pt.prototype.T.call(this)};h.getImage=function(){return this.f};h.getKey=function(){return this.rd};h.rh=function(){this.state=3;eo(this);
this.changed()};h.ej=function(){this.state=this.f.naturalWidth&&this.f.naturalHeight?2:4;eo(this);this.changed()};h.load=function(){if(0==this.state||3==this.state)this.state=1,this.changed(),this.jg=[ve(this.f,"error",this.rh,this),ve(this.f,Ce.LOAD,this.ej,this)],this.Rq(this,this.rd)};function St(a){$m.call(this);this.VA=void 0!==a?a:2048}A(St,$m);St.prototype.Rf=function(){return this.lh()>this.VA};St.prototype.eh=function(a){for(var b,c;this.Rf()&&!(b=this.vc.Jf,c=b.Ka[0].toString(),c in a&&
a[c].contains(b.Ka));)this.pop().Ib()};function Tt(a,b,c,d){var e=eg(c,b,a);c=Of(b,d,c);b=b.getMetersPerUnit();void 0!==b&&(c*=b);b=a.getMetersPerUnit();void 0!==b&&(c/=b);a=Of(a,c,e)/c;isFinite(a)&&0<a&&(c/=a);return c}function Ut(a,b,c,d){a=c-a;b=d-b;var e=Math.sqrt(a*a+b*b);return[Math.round(c+a/e),Math.round(d+b/e)]}function Vt(a,b,c,d,e,f,g,k,l,m,n){var q=Hd(Math.round(c*a),Math.round(c*b));if(0===l.length)return q.canvas;q.scale(c,c);var r=We();l.forEach(function(a){mf(r,a.extent)});var t=Hd(Math.round(c*
vf(r)/d),Math.round(c*wf(r)/d)),u=c/d;l.forEach(function(a){t.drawImage(a.image,m,m,a.image.width-2*m,a.image.height-2*m,(a.extent[0]-r[0])*u,-(a.extent[3]-r[3])*u,vf(a.extent)*u,wf(a.extent)*u)});var y=sf(g);k.Hf.forEach(function(a){var b=a.source,e=a.target,g=b[1][0],k=b[1][1],l=b[2][0],m=b[2][1];a=(e[0][0]-y[0])/f;var n=-(e[0][1]-y[1])/f,u=(e[1][0]-y[0])/f,z=-(e[1][1]-y[1])/f,ka=(e[2][0]-y[0])/f,db=-(e[2][1]-y[1])/f,e=b[0][0],b=b[0][1],g=g-e,k=k-b,l=l-e,m=m-b;a:{g=[[g,k,0,0,u-a],[l,m,0,0,ka-a],
[0,0,g,k,z-n],[0,0,l,m,db-n]];k=g.length;for(l=0;l<k;l++){for(var m=l,Qb=Math.abs(g[l][l]),Cc=l+1;Cc<k;Cc++){var ud=Math.abs(g[Cc][l]);ud>Qb&&(Qb=ud,m=Cc)}if(0===Qb){g=null;break a}Qb=g[m];g[m]=g[l];g[l]=Qb;for(m=l+1;m<k;m++)for(Qb=-g[m][l]/g[l][l],Cc=l;Cc<k+1;Cc++)g[m][Cc]=l==Cc?0:g[m][Cc]+Qb*g[l][Cc]}l=Array(k);for(m=k-1;0<=m;m--)for(l[m]=g[m][k]/g[m][m],Qb=m-1;0<=Qb;Qb--)g[Qb][k]-=g[Qb][m]*l[m];g=l}g&&(q.save(),q.beginPath(),l=(a+u+ka)/3,m=(n+z+db)/3,k=Ut(l,m,a,n),u=Ut(l,m,u,z),ka=Ut(l,m,ka,db),
q.moveTo(u[0],u[1]),q.lineTo(k[0],k[1]),q.lineTo(ka[0],ka[1]),q.clip(),q.transform(g[0],g[2],g[1],g[3],a,n),q.translate(r[0]-e,r[3]-b),q.scale(d/c,-d/c),q.drawImage(t.canvas,0,0),q.restore())});n&&(q.save(),q.strokeStyle="black",q.lineWidth=1,k.Hf.forEach(function(a){var b=a.target;a=(b[0][0]-y[0])/f;var c=-(b[0][1]-y[1])/f,d=(b[1][0]-y[0])/f,e=-(b[1][1]-y[1])/f,g=(b[2][0]-y[0])/f,b=-(b[2][1]-y[1])/f;q.beginPath();q.moveTo(d,e);q.lineTo(a,c);q.lineTo(g,b);q.closePath();q.stroke()}),q.restore());return q.canvas}
function Wt(a,b,c,d,e){this.Cf=a;this.di=b;var f={},g=cg(this.di,this.Cf);this.He=function(a){var b=a[0]+"/"+a[1];f[b]||(f[b]=g(a));return f[b]};this.hm=d;this.mz=e*e;this.Hf=[];this.Pw=!1;this.Ly=this.Cf.he&&!!d&&!!this.Cf.getExtent()&&vf(d)==vf(this.Cf.getExtent());this.qd=this.Cf.getExtent()?vf(this.Cf.getExtent()):null;this.jw=this.di.getExtent()?vf(this.di.getExtent()):null;a=sf(c);b=rf(c);d=pf(c);c=of(c);e=this.He(a);var k=this.He(b),l=this.He(d),m=this.He(c);Xt(this,a,b,d,c,e,k,l,m,10);if(this.Pw){var n=
Infinity;this.Hf.forEach(function(a){n=Math.min(n,a.source[0][0],a.source[1][0],a.source[2][0])});this.Hf.forEach(function(a){if(Math.max(a.source[0][0],a.source[1][0],a.source[2][0])-n>this.qd/2){var b=[[a.source[0][0],a.source[0][1]],[a.source[1][0],a.source[1][1]],[a.source[2][0],a.source[2][1]]];b[0][0]-n>this.qd/2&&(b[0][0]-=this.qd);b[1][0]-n>this.qd/2&&(b[1][0]-=this.qd);b[2][0]-n>this.qd/2&&(b[2][0]-=this.qd);Math.max(b[0][0],b[1][0],b[2][0])-Math.min(b[0][0],b[1][0],b[2][0])<this.qd/2&&(a.source=
b)}},this)}f={}}function Xt(a,b,c,d,e,f,g,k,l,m){var n=Ve([f,g,k,l]),q=a.qd?vf(n)/a.qd:null,r=a.qd,t=a.Cf.he&&.5<q&&1>q,u=!1;if(0<m){if(a.di.isGlobal()&&a.jw)var y=Ve([b,c,d,e]),u=u|.25<vf(y)/a.jw;!t&&a.Cf.isGlobal()&&q&&(u|=.25<q)}if(u||!a.hm||Af(n,a.hm)){if(!(u||isFinite(f[0])&&isFinite(f[1])&&isFinite(g[0])&&isFinite(g[1])&&isFinite(k[0])&&isFinite(k[1])&&isFinite(l[0])&&isFinite(l[1])))if(0<m)u=!0;else return;if(0<m&&(u||(n=a.He([(b[0]+d[0])/2,(b[1]+d[1])/2]),r=t?(yd(f[0],r)+yd(k[0],r))/2-yd(n[0],
r):(f[0]+k[0])/2-n[0],n=(f[1]+k[1])/2-n[1],u=r*r+n*n>a.mz),u)){Math.abs(b[0]-d[0])<=Math.abs(b[1]-d[1])?(t=[(c[0]+d[0])/2,(c[1]+d[1])/2],r=a.He(t),n=[(e[0]+b[0])/2,(e[1]+b[1])/2],q=a.He(n),Xt(a,b,c,t,n,f,g,r,q,m-1),Xt(a,n,t,d,e,q,r,k,l,m-1)):(t=[(b[0]+c[0])/2,(b[1]+c[1])/2],r=a.He(t),n=[(d[0]+e[0])/2,(d[1]+e[1])/2],q=a.He(n),Xt(a,b,t,n,e,f,r,q,l,m-1),Xt(a,t,c,d,n,r,g,k,q,m-1));return}if(t){if(!a.Ly)return;a.Pw=!0}a.Hf.push({source:[f,k,l],target:[b,d,e]});a.Hf.push({source:[f,g,k],target:[b,c,d]})}}
function Yt(a){var b=We();a.Hf.forEach(function(a){a=a.source;Xe(b,a[0]);Xe(b,a[1]);Xe(b,a[2])});return b}function Zt(a,b,c,d,e,f,g,k,l,m,n){Pt.call(this,e,0);this.vD=void 0!==n?n:!1;this.Ja=g;this.dj=k;this.j=null;this.Sm=b;this.Xm=d;this.zn=f?f:e;this.ai=[];this.bi=null;this.Tm=0;f=d.getTileCoordExtent(this.zn);k=this.Xm.getExtent();e=this.Sm.getExtent();f=k?zf(f,k):f;if(0===tf(f))this.state=4;else if((k=a.getExtent())&&(e=e?zf(e,k):k),d=d.getResolution(this.zn[0]),d=Tt(a,c,xf(f),d),!isFinite(d)||
0>=d)this.state=4;else if(this.ji=new Wt(a,c,f,e,d*(void 0!==m?m:.5)),0===this.ji.Hf.length)this.state=4;else if(this.Tm=b.getZForResolution(d),c=Yt(this.ji),e&&(a.he?(c[1]=rd(c[1],e[1],e[3]),c[3]=rd(c[3],e[1],e[3])):c=zf(c,e)),tf(c)){a=ij(b,c,this.Tm);for(b=a.K;b<=a.H;b++)for(c=a.N;c<=a.S;c++)(m=l(this.Tm,b,c,g))&&this.ai.push(m);0===this.ai.length&&(this.state=4)}else this.state=4}A(Zt,Pt);Zt.prototype.T=function(){1==this.state&&(this.bi.forEach(qe),this.bi=null);Pt.prototype.T.call(this)};Zt.prototype.getImage=
function(){return this.j};Zt.prototype.Wj=function(){var a=[];this.ai.forEach(function(b){b&&2==b.getState()&&a.push({extent:this.Sm.getTileCoordExtent(b.Ka),image:b.getImage()})},this);this.ai.length=0;if(0===a.length)this.state=3;else{var b=this.zn[0],c=this.Xm.getTileSize(b),d="number"===typeof c?c:c[0],c="number"===typeof c?c:c[1],b=this.Xm.getResolution(b),e=this.Sm.getResolution(this.Tm),f=this.Xm.getTileCoordExtent(this.zn);this.j=Vt(d,c,this.Ja,e,this.Sm.getExtent(),b,f,this.ji,a,this.dj,
this.vD);this.state=2}this.changed()};Zt.prototype.load=function(){if(0==this.state){this.state=1;this.changed();var a=0;this.bi=[];this.ai.forEach(function(b){var c=b.getState();if(0==c||1==c){a++;var d;d=G(b,Ce.CHANGE,function(){var c=b.getState();if(2==c||3==c||4==c)qe(d),a--,0===a&&(this.bi.forEach(qe),this.bi=null,this.Wj())},this);this.bi.push(d)}},this);this.ai.forEach(function(a){0==a.getState()&&a.load()});0===a&&setTimeout(this.Wj.bind(this),0)}};function $t(a,b){var c=/\{z\}/g,d=/\{x\}/g,
e=/\{y\}/g,f=/\{-y\}/g;return function(g){if(g)return a.replace(c,g[0].toString()).replace(d,g[1].toString()).replace(e,function(){return(-g[2]-1).toString()}).replace(f,function(){var a=b.kh?b.kh[g[0]]:null;qd(a,55);return(a.getHeight()+g[2]).toString()})}}function au(a,b){for(var c=a.length,d=Array(c),e=0;e<c;++e)d[e]=$t(a[e],b);return bu(d)}function bu(a){return 1===a.length?a[0]:function(b,c,d){if(b)return a[yd((b[1]<<b[0])+b[2],a.length)](b,c,d)}}function cu(){}function du(a){var b=[],c=/\{([a-z])-([a-z])\}/.exec(a);
if(c){var d=c[2].charCodeAt(0),e;for(e=c[1].charCodeAt(0);e<=d;++e)b.push(a.replace(c[0],String.fromCharCode(e)));return b}if(c=c=/\{(\d+)-(\d+)\}/.exec(a)){d=parseInt(c[2],10);for(e=parseInt(c[1],10);e<=d;e++)b.push(a.replace(c[0],e.toString()));return b}b.push(a);return b}function eu(a){st.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state,wrapX:a.wrapX});this.jC=void 0!==a.opaque?a.opaque:!1;this.rE=void 0!==a.tilePixelRatio?a.tilePixelRatio:
1;this.tileGrid=void 0!==a.tileGrid?a.tileGrid:null;this.pa=new St(a.cacheSize);this.Ge=[0,0];this.jf=""}A(eu,st);h=eu.prototype;h.Rf=function(){return this.pa.Rf()};h.eh=function(a,b){(a=this.aj(a))&&a.eh(b)};function Cs(a,b,c,d,e){b=a.aj(b);if(!b)return!1;for(var f=!0,g,k,l=d.K;l<=d.H;++l)for(var m=d.N;m<=d.S;++m)g=a.Fd(c,l,m),k=!1,b.jc(g)&&(g=b.get(g),(k=2===g.getState())&&(k=!1!==e(g))),k||(f=!1);return f}h.Uo=function(){return 0};h.getKey=function(){return this.jf};function fu(a,b){a.jf!==b&&
(a.jf=b,a.changed())}h.Fd=function(a,b,c){return a+"/"+b+"/"+c};h.bp=function(){return this.jC};h.getResolutions=function(){return this.tileGrid.getResolutions()};h.getTileGrid=function(){return this.tileGrid};h.ad=function(a){return this.tileGrid?this.tileGrid:ot(a)};h.aj=function(a){var b=this.getProjection();return b&&!bg(b,a)?null:this.pa};h.oc=function(){return this.rE};h.bj=function(a,b,c){c=this.ad(c);b=this.oc(b);a=fn(c.getTileSize(a),this.Ge);return 1==b?a:en(a,b,this.Ge)};function gu(a,
b,c){var d=void 0!==c?c:a.getProjection();c=a.ad(d);if(a.yn&&d.isGlobal()){var e=b;b=e[0];a=Ks(c,e);d=jj(d);cf(d,a)?b=e:(e=vf(d),a[0]+=e*Math.ceil((d[0]-a[0])/e),b=c.getTileCoordForCoordAndZ(a,b))}e=b[0];d=b[1];a=b[2];if(c.getMinZoom()>e||e>c.getMaxZoom())c=!1;else{var f=c.getExtent();c=(c=f?ij(c,f,e):c.kh?c.kh[e]:null)?c.containsXY(d,a):!0}return c?b:null}h.refresh=function(){this.pa.clear();this.changed()};h.er=nd;function hu(a,b){ze.call(this,a);this.tile=b}A(hu,ze);function iu(a){eu.call(this,
{attributions:a.attributions,cacheSize:a.cacheSize,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,state:a.state,tileGrid:a.tileGrid,tilePixelRatio:a.tilePixelRatio,wrapX:a.wrapX});this.tileLoadFunction=a.tileLoadFunction;this.tileUrlFunction=this.Zf?this.Zf.bind(this):cu;this.urls=null;a.urls?this.setUrls(a.urls):a.url&&this.setUrl(a.url);a.tileUrlFunction&&this.setTileUrlFunction(a.tileUrlFunction)}A(iu,eu);h=iu.prototype;h.getTileLoadFunction=function(){return this.tileLoadFunction};
h.getTileUrlFunction=function(){return this.tileUrlFunction};h.getUrls=function(){return this.urls};h.fj=function(a){a=a.target;switch(a.getState()){case 1:this.dispatchEvent(new hu("tileloadstart",a));break;case 2:this.dispatchEvent(new hu("tileloadend",a));break;case 3:this.dispatchEvent(new hu("tileloaderror",a))}};h.setTileLoadFunction=function(a){this.pa.clear();this.tileLoadFunction=a;this.changed()};h.setTileUrlFunction=function(a,b){this.tileUrlFunction=a;"undefined"!==typeof b?fu(this,b):
this.changed()};h.setUrl=function(a){var b=this.urls=du(a);this.setTileUrlFunction(this.Zf?this.Zf.bind(this):au(b,this.tileGrid),a)};h.setUrls=function(a){this.urls=a;var b=a.join("\n");this.setTileUrlFunction(this.Zf?this.Zf.bind(this):au(a,this.tileGrid),b)};h.er=function(a,b,c){a=this.Fd(a,b,c);this.pa.jc(a)&&this.pa.get(a)};function ju(a){iu.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,state:a.state,tileGrid:a.tileGrid,
tileLoadFunction:a.tileLoadFunction?a.tileLoadFunction:ku,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:a.tileUrlFunction,url:a.url,urls:a.urls,wrapX:a.wrapX});this.crossOrigin=void 0!==a.crossOrigin?a.crossOrigin:null;this.tileClass=void 0!==a.tileClass?a.tileClass:Rt;this.Fe={};this.jk={};this.DD=a.reprojectionErrorThreshold;this.rq=!1}A(ju,iu);h=ju.prototype;h.Rf=function(){if(this.pa.Rf())return!0;for(var a in this.Fe)if(this.Fe[a].Rf())return!0;return!1};h.eh=function(a,b){a=this.aj(a);this.pa.eh(this.pa==
a?b:{});for(var c in this.Fe){var d=this.Fe[c];d.eh(d==a?b:{})}};h.Uo=function(a){return this.getProjection()&&a&&!bg(this.getProjection(),a)?0:this.Vo()};h.Vo=function(){return 0};h.bp=function(a){return this.getProjection()&&a&&!bg(this.getProjection(),a)?!1:iu.prototype.bp.call(this,a)};h.ad=function(a){var b=this.getProjection();return!this.tileGrid||b&&!bg(b,a)?(b=D(a).toString(),b in this.jk||(this.jk[b]=ot(a)),this.jk[b]):this.tileGrid};h.aj=function(a){var b=this.getProjection();if(!b||bg(b,
a))return this.pa;a=D(a).toString();a in this.Fe||(this.Fe[a]=new St);return this.Fe[a]};function lu(a,b,c,d,e,f,g){b=[b,c,d];e=(c=gu(a,b,f))?a.tileUrlFunction(c,e,f):void 0;e=new a.tileClass(b,void 0!==e?0:4,void 0!==e?e:"",a.crossOrigin,a.tileLoadFunction);e.key=g;G(e,Ce.CHANGE,a.fj,a);return e}h.dg=function(a,b,c,d,e){if(this.getProjection()&&e&&!bg(this.getProjection(),e)){var f=this.aj(e);c=[a,b,c];var g;a=this.Fd.apply(this,c);f.jc(a)&&(g=f.get(a));b=this.getKey();if(g&&g.key==b)return g;var k=
this.getProjection(),l=this.ad(k),m=this.ad(e),n=gu(this,c,e);d=new Zt(k,l,e,m,c,n,this.oc(d),this.Vo(),function(a,b,c,d){return mu(this,a,b,c,d,k)}.bind(this),this.DD,this.rq);d.key=b;g?(d.Kb=g,f.replace(a,d)):f.set(a,d);return d}return mu(this,a,b,c,d,e)};function mu(a,b,c,d,e,f){var g,k=a.Fd(b,c,d),l=a.getKey();if(a.pa.jc(k)){if(g=a.pa.get(k),g.key!=l){var m=g;g=lu(a,b,c,d,e,f,l);0==m.getState()?g.Kb=m.Kb:g.Kb=m;if(g.Kb){b=g.Kb;c=g;do{if(2==b.getState()){b.Kb=null;break}else 1==b.getState()?c=
b:0==b.getState()?c.Kb=b.Kb:c=b;b=c.Kb}while(b)}a.pa.replace(k,g)}}else g=lu(a,b,c,d,e,f,l),a.pa.set(k,g);return g}h.setRenderReprojectionEdges=function(a){if(this.rq!=a){this.rq=a;for(var b in this.Fe)this.Fe[b].clear();this.changed()}};h.setTileGridForProjection=function(a,b){if(a=H(a))a=D(a).toString(),a in this.jk||(this.jk[a]=b)};function ku(a,b){a.getImage().src=b}function nu(a){a=a||{};var b=void 0!==a.projection?a.projection:"EPSG:3857",c=void 0!==a.tileGrid?a.tileGrid:qt({extent:jj(b),maxZoom:a.maxZoom,
minZoom:a.minZoom,tileSize:a.tileSize});ju.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,opaque:a.opaque,projection:b,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:a.tileUrlFunction,url:a.url,urls:a.urls,wrapX:void 0!==a.wrapX?a.wrapX:!0})}A(nu,ju);function ou(a){a=a||{};nu.call(this,{attributions:void 0!==a.attributions?a.attributions:[pu],
cacheSize:a.cacheSize,crossOrigin:void 0!==a.crossOrigin?a.crossOrigin:"anonymous",opaque:void 0!==a.opaque?a.opaque:!0,maxZoom:void 0!==a.maxZoom?a.maxZoom:19,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileLoadFunction:a.tileLoadFunction,url:void 0!==a.url?a.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:a.wrapX})}A(ou,nu);var pu=new rt({html:'\x26copy; \x3ca href\x3d"https://www.openstreetmap.org/copyright"\x3eOpenStreetMap\x3c/a\x3e contributors.'});M.impl.source=
{};function qu(a){this.options=a||{};a=void 0!==this.options.attributions?this.options.attributions:[ru];var b=this.options.url,b=b+this.options.name,b=b+"/{z}/{x}/{y}."+(void 0!==this.options.lc?this.options.lc:M.config.MAPBOX_EXTENSION);ou.call(this,{attributions:a,url:b})}v(qu,ou);qu.prototype.setUrl=function(a){var b=this.options.accessToken,c=au(du(a),this.tileGrid);this.setTileUrlFunction(function(){var a=c.apply(this,arguments),e={};e[M.config.MAPBOX_TOKEN_NAME]=b;return M.utils.addParameters(a,
e)});this.urls=[a]};var ru=new rt({html:'\x26copy; \x3ca href\x3d"https://www.mapbox.com/about/maps/"\x3eMapbox\x3c/a\x3e'});function su(a){Ls.call(this,a);this.ro=Lk();this.ed=null}A(su,Ls);su.prototype.Xg=function(a,b,c){this.kc("precompose",c,a,void 0);var d=this.getImage();if(d){var e=b.extent,f=void 0!==e;f&&this.clip(c,a,e);var e=this.Il,g=c.globalAlpha;c.globalAlpha=b.opacity;c.drawImage(d,0,0,+d.width,+d.height,Math.round(e[4]),Math.round(e[5]),Math.round(d.width*e[0]),Math.round(d.height*
e[3]));c.globalAlpha=g;f&&c.restore()}this.vm(c,a,b)};su.prototype.za=function(a,b,c,d,e){var f=this.getLayer();return f.getSource().za(a,b.viewState.resolution,b.viewState.rotation,c,b.Jg,function(a){return d.call(e,a,f)})};su.prototype.Oo=function(a,b,c,d){if(this.getImage()){if(this.getLayer().getSource().za!==nd)return Ls.prototype.Oo.apply(this,arguments);var e=Qk(this.ro,a.slice());Ri(e,b.viewState.resolution/this.Th);this.ed||(this.ed=Hd(1,1));this.ed.clearRect(0,0,1,1);this.ed.drawImage(this.getImage(),
e[0],e[1],1,1,0,0,1,1);e=this.ed.getImageData(0,0,1,1).data;if(0<e[3])return c.call(d,this.getLayer(),e)}};function tu(a){su.call(this,a);this.context=Hd();this.od=null;this.Eg=[];this.en=We();this.tE=new kj(0,0,0,0);this.Il=Lk();this.Zw=0}A(tu,su);function uu(a,b){b=b.getState();a=a.getLayer().getUseInterimTilesOnError();return 2==b||4==b||3==b&&!a}tu.prototype.Rd=function(a,b){var c=a.pixelRatio,d=a.size,e=a.viewState,f=e.projection,g=e.resolution,e=e.center,k=this.getLayer(),l=k.getSource(),m=
l.getRevision(),n=l.ad(f),q=n.getZForResolution(g,this.Zw),r=n.getResolution(q),t=Math.round(g/r)||1,u=a.extent;void 0!==b.extent&&(u=zf(u,b.extent));if(uf(u))return!1;var y=mt(n,u,r),z;z=n.getOrigin(q);var B=n.getResolution(q),C=fn(n.getTileSize(q),n.hi);z=gf(z[0]+y.K*C[0]*B,z[1]+y.N*C[1]*B,z[0]+(y.H+1)*C[0]*B,z[1]+(y.S+1)*C[1]*B,void 0);B=l.oc(c);C={};C[q]={};var ia=this.to(l,f,C),Aa=this.en,Ea=this.tE,Pb=!1,J,Hb,jc;for(Hb=y.K;Hb<=y.H;++Hb)for(jc=y.N;jc<=y.S;++jc)J=l.dg(q,Hb,jc,c,f),uu(this,J)||
(J=Qt(J)),uu(this,J)?2==J.getState()&&(C[q][J.Ka.toString()]=J,Pb||-1!=this.Eg.indexOf(J)||(Pb=!0)):kt(n,J.Ka,ia,Ea,Aa)||(J=lt(n,J.Ka,Ea,Aa))&&ia(q+1,J);ia=a.Pc;if(!(this.Th&&16<Date.now()-a.time&&(ia[0]||ia[1])||!Pb&&this.od&&ef(this.od,u)&&this.Hm==m)||t!=this.Su){Pb=l.bj(q,c,f);Hb=Math.round(y.getWidth()*Pb[0]/t);J=Math.round(y.getHeight()*Pb[0]/t);Pb=this.context;jc=Pb.canvas;ia=l.bp(f);jc.width!=Hb||jc.height!=J?(this.Su=t,jc.width=Hb,jc.height=J):(Pb.clearRect(0,0,Hb,J),t=this.Su);this.Eg.length=
0;Ea=Object.keys(C).map(Number);Ea.sort(Le);var ka,db,Qb,Cc,ud,Fe,qf,Ze;Qb=0;for(Cc=Ea.length;Qb<Cc;++Qb){Hb=Ea[Qb];db=l.bj(Hb,c,f);J=n.getResolution(Hb);ka=J/r;ud=B*l.Uo(f);Fe=C[Hb];for(var $e in Fe)J=Fe[$e],jc=n.getTileCoordExtent(J.getTileCoord(),Aa),Hb=(jc[0]-z[0])/r*B/t,jc=(z[3]-jc[3])/r*B/t,qf=db[0]*ka/t,Ze=db[1]*ka/t,ia||Pb.clearRect(Hb,jc,qf,Ze),this.Bo(J,a,b,Hb,jc,qf,Ze,ud),this.Eg.push(J)}this.Hm=m;this.Th=r*c/B*t;this.od=z}b=this.Th/g;b=Uk(this.Il,c*d[0]/2,c*d[1]/2,b,b,0,(this.od[0]-e[0])/
this.Th*c,(e[1]-this.od[3])/this.Th*c);Uk(this.ro,c*d[0]/2-b[4],c*d[1]/2-b[5],c/g,-c/g,0,-e[0],-e[1]);Is(a.pk,l,q,y);Js(a,l,n,c,f,u,q,k.getPreload());Fs(a,l);Hs(a,l);return 0<this.Eg.length};tu.prototype.Bo=function(a,b,c,d,e,f,g,k){(a=a.getImage())&&this.context.drawImage(a,k,k,a.width-2*k,a.height-2*k,d,e,f,g)};tu.prototype.getImage=function(){return this.context.canvas};function vu(){this.O="precision mediump float;\nvarying vec2 v_texCoord;\n\n\nuniform sampler2D u_texture;\n\nvoid main(void) {\n  gl_FragColor \x3d texture2D(u_texture, v_texCoord);\n}\n"}
A(vu,nl);var wu=new vu;function xu(){this.O="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 \x3d vec4(a_position * u_tileOffset.xy + u_tileOffset.zw, 0., 1.);\n  v_texCoord \x3d a_texCoord;\n}\n\n\n"}A(xu,pl);var yu=new xu;function zu(a,b){this.br=a.getUniformLocation(b,"u_texture");this.HE=a.getUniformLocation(b,"u_tileOffset");this.Va=a.getAttribLocation(b,"a_position");this.ee=a.getAttribLocation(b,
"a_texCoord")}function Au(a,b){at.call(this,a,b);this.Mz=wu;this.TE=yu;this.ze=null;this.Bv=new Dl([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]);this.sq=this.Im=null;this.Za=-1;this.hi=[0,0]}A(Au,at);h=Au.prototype;h.T=function(){this.Jc.getContext().deleteBuffer(this.Bv);at.prototype.T.call(this)};h.to=function(a,b,c){var d=this.Jc;return function(e,f){return Cs(a,b,e,f,function(a){var b=d.fc.jc(a.getKey());b&&(c[e]||(c[e]={}),c[e][a.Ka.toString()]=a);return b})}};h.fg=function(){at.prototype.fg.call(this);
this.ze=null};h.Rd=function(a,b,c){var d=this.Jc,e=c.getGL(),f=a.viewState,g=f.projection,k=this.getLayer(),l=k.getSource(),m=l.ad(g),n=m.getZForResolution(f.resolution),q=m.getResolution(n),r=l.bj(n,a.pixelRatio,g),t=r[0]/fn(m.getTileSize(n),this.hi)[0],u=q/t,y=l.oc(t)*l.Uo(g),z=f.center,B=a.extent,C=mt(m,B,q);if(this.Im&&this.Im.equals(C)&&this.Za==l.getRevision())u=this.sq;else{var ia=C.getSize(),Aa=td(Math.max(ia[0]*r[0],ia[1]*r[1])),ia=u*Aa,Ea=m.getOrigin(n),Pb=Ea[0]+C.K*r[0]*u,u=Ea[1]+C.N*r[1]*
u,u=[Pb,u,Pb+ia,u+ia];this.bindFramebuffer(a,Aa);e.viewport(0,0,Aa,Aa);e.clearColor(0,0,0,0);e.clear(16384);e.disable(3042);Aa=Gl(c,this.Mz,this.TE);c.useProgram(Aa);this.ze||(this.ze=new zu(e,Aa));c.bindBuffer(34962,this.Bv);e.enableVertexAttribArray(this.ze.Va);e.vertexAttribPointer(this.ze.Va,2,5126,!1,16,0);e.enableVertexAttribArray(this.ze.ee);e.vertexAttribPointer(this.ze.ee,2,5126,!1,16,8);e.uniform1i(this.ze.br,0);c={};c[n]={};var J=this.to(l,g,c),Hb=k.getUseInterimTilesOnError(),Aa=!0,Pb=
We(),jc=new kj(0,0,0,0),ka,db,Qb;for(db=C.K;db<=C.H;++db)for(Qb=C.N;Qb<=C.S;++Qb){Ea=l.dg(n,db,Qb,t,g);if(void 0!==b.extent&&(ka=m.getTileCoordExtent(Ea.Ka,Pb),!Af(ka,b.extent)))continue;ka=Ea.getState();(ka=2==ka||4==ka||3==ka&&!Hb)||(Ea=Qt(Ea));ka=Ea.getState();if(2==ka){if(d.fc.jc(Ea.getKey())){c[n][Ea.Ka.toString()]=Ea;continue}}else if(4==ka||3==ka&&!Hb)continue;Aa=!1;ka=kt(m,Ea.Ka,J,jc,Pb);ka||(Ea=lt(m,Ea.Ka,jc,Pb))&&J(n+1,Ea)}b=Object.keys(c).map(Number);b.sort(Le);for(var J=new Float32Array(4),
Cc,Hb=0,jc=b.length;Hb<jc;++Hb)for(Cc in db=c[b[Hb]],db)Ea=db[Cc],ka=m.getTileCoordExtent(Ea.Ka,Pb),J[0]=2*(ka[2]-ka[0])/ia,J[1]=2*(ka[3]-ka[1])/ia,J[2]=2*(ka[0]-u[0])/ia-1,J[3]=2*(ka[1]-u[1])/ia-1,e.uniform4fv(this.ze.HE,J),bn(d,Ea,r,y*t),e.drawArrays(5,0,4);Aa?(this.Im=C,this.sq=u,this.Za=l.getRevision()):(this.sq=this.Im=null,this.Za=-1,a.animate=!0)}Is(a.pk,l,n,C);var ud=d.kk;Js(a,l,m,t,g,B,n,k.getPreload(),function(a){var b;(b=2!=a.getState()||d.fc.jc(a.getKey()))||(b=a.getKey()in ud.Bg);b||
ud.enqueue([a,Ks(m,a.Ka),m.getResolution(a.Ka[0]),r,y*t])},this);Fs(a,l);Hs(a,l);e=this.Zm;Mk(e);Tk(e,(Math.round(z[0]/q)*q-u[0])/(u[2]-u[0]),(Math.round(z[1]/q)*q-u[1])/(u[3]-u[1]));0!==f.rotation&&Rk(e,f.rotation);Sk(e,a.size[0]*f.resolution/(u[2]-u[0]),a.size[1]*f.resolution/(u[3]-u[1]));Tk(e,-.5,-.5);return!0};h.forEachLayerAtPixel=function(a,b,c,d){if(this.ih){a=Qk(this.Zm,[a[0]/b.size[0],(b.size[1]-a[1])/b.size[1]].slice());a=[a[0]*this.jh,a[1]*this.jh];b=this.Jc.getContext().getGL();b.bindFramebuffer(b.FRAMEBUFFER,
this.ih);var e=new Uint8Array(4);b.readPixels(a[0],a[1],1,1,b.RGBA,b.UNSIGNED_BYTE,e);if(0<e[3])return c.call(d,this.getLayer(),e)}};function Bu(a){a=a?a:{};var b=le({},a);delete b.preload;delete b.useInterimTilesOnError;Gk.call(this,b);this.setPreload(void 0!==a.preload?a.preload:0);this.setUseInterimTilesOnError(void 0!==a.useInterimTilesOnError?a.useInterimTilesOnError:!0)}A(Bu,Gk);h=Bu.prototype;h.Ci=function(a){var b=null,c=a.getType();"canvas"===c?b=new tu(this):"webgl"===c&&(b=new Au(a,this));
return b};h.getPreload=function(){return this.get("preload")};h.setPreload=function(a){this.set("preload",a)};h.getUseInterimTilesOnError=function(){return this.get("useInterimTilesOnError")};h.setUseInterimTilesOnError=function(a){this.set("useInterimTilesOnError",a)};M.impl.layer.Mapbox={};M.impl.layer.Mapbox=function(a,b){this.P=null;this.gj=this.gg=!1;!1===b.visibility&&(this.visibility=!1);M.impl.Layer.call(this,b);this.zIndex_=M.impl.Map.Z_INDEX[M.layer.type.Mapbox]};v(M.impl.layer.Mapbox,M.impl.Layer);
M.impl.layer.Mapbox.prototype.setVisible=function(a){this.visibility=a;!0===this.inRange()&&(!0===a&&!0!==this.transparent?(this.map.getBaseLayers().forEach(function(a){!a.equals(this)&&a.isVisible()&&a.setVisible(!1)}),M.utils.isNullOrEmpty(this.ol3Layer)||this.ol3Layer.setVisible(a),a=this.map.getBbox(),this.map.getImpl().updateResolutionsFromBaseLayer(),M.utils.isNullOrEmpty(a)||this.map.setBbox(a)):M.utils.isNullOrEmpty(this.ol3Layer)||this.ol3Layer.setVisible(a))};h=M.impl.layer.Mapbox.prototype;
h.addTo=function(a){this.map=a;this.ol3Layer=new Bu({source:new qu({url:this.url,name:this.name,accessToken:this.accessToken})});this.map.getMapImpl().addLayer(this.ol3Layer);this.map.getMapImpl().getControls().getArray().forEach(function(a){a instanceof gj&&(this.gg=!0)},this);this.gg||(this.map.getMapImpl().addControl(new gj({className:"ol-attribution ol-unselectable ol-control ol-collapsed m-attribution"})),this.gg=!1);this.P=M.utils.generateResolutionsFromExtent(this.getExtent(),this.map.getMapImpl().getSize(),
16,this.map.getProjection().units);this.isVisible()&&!this.inRange()&&this.setVisible(!1);null!==this.zIndex_&&this.setZIndex(this.zIndex_);null!==this.P&&this.setResolutions(this.P);this.ol3Layer.set("animated",!1===this.transparent||!0===this.options.animated)};h.setResolutions=function(a){this.P=a;if(!M.utils.isNullOrEmpty(this.ol3Layer)){var b=this;(new Promise(function(a){var c=b.map.getMaxExtent();M.utils.isNullOrEmpty(c)?M.impl.envolvedExtent.calculate(b.map,b).then(a):a.call(b,c)})).then(function(c){c=
M.utils.isArray(c)?c:[c.x.min,c.y.min,c.x.max,c.y.max];c=new qu({url:b.url,name:b.name,accessToken:b.accessToken,tileGrid:new ht({resolutions:a,extent:c,origin:of(c)}),extent:c,wH:!0});b.ol3Layer.setSource(c)})}};h.getExtent=function(){var a=null;M.utils.isNullOrEmpty(this.ol3Layer)||(a=H(this.map.getProjection().code).getExtent());return{x:{min:a[0],max:a[2]},y:{min:a[1],max:a[3]}}};h.getMinResolution=function(){return this.P[0]};h.getMaxResolution=function(){return this.P[this.P.length-1]};h.destroy=
function(){var a=this.map.getMapImpl();M.utils.isNullOrEmpty(this.ol3Layer)||(a.removeLayer(this.ol3Layer),this.ol3Layer=null);this.map.getLayers().forEach(function(a){if(a instanceof M.layer.Mapbox||a instanceof M.layer.OSM)this.gj=!0},this);this.gj||this.map.getImpl().getMapImpl().getControls().getArray().forEach(function(a){a instanceof gj&&this.map.getImpl().getMapImpl().removeControl(a)});this.map=null};h.equals=function(a){var b=!1;a instanceof M.impl.layer.Mapbox&&(b=(b=this.url===a.url)&&
this.name===a.name);return b};M.impl.layer.OSM={};M.impl.layer.OSM=function(a,b){b=b||{};this.P=null;this.gj=this.gg=!1;!1===b.visibility&&(this.visibility=!1);M.impl.Layer.call(this,b);this.zIndex_=M.impl.Map.Z_INDEX[M.layer.type.OSM]};v(M.impl.layer.OSM,M.impl.Layer);M.impl.layer.OSM.prototype.setVisible=function(a){this.visibility=a;!0===this.inRange()&&(!0===a&&!0!==this.transparent?(this.map.getBaseLayers().forEach(function(a){!a.equals(this)&&a.isVisible()&&a.setVisible(!1)}),M.utils.isNullOrEmpty(this.ol3Layer)||
this.ol3Layer.setVisible(a),a=this.map.getBbox(),this.map.getImpl().updateResolutionsFromBaseLayer(),M.utils.isNullOrEmpty(a)||this.map.setBbox(a)):M.utils.isNullOrEmpty(this.ol3Layer)||this.ol3Layer.setVisible(a))};h=M.impl.layer.OSM.prototype;h.addTo=function(a){this.map=a;this.ol3Layer=new Bu({source:new ou});this.map.getMapImpl().addLayer(this.ol3Layer);this.map.getImpl().getMapImpl().getControls().getArray().forEach(function(a){a instanceof gj&&(this.gg=!0)},this);this.gg||(this.map.getMapImpl().addControl(new gj({className:"ol-attribution ol-unselectable ol-control ol-collapsed m-attribution"})),
this.gg=!1);this.P=M.utils.generateResolutionsFromExtent(this.getExtent(),this.map.getMapImpl().getSize(),16,this.map.getProjection().units);this.isVisible()&&!this.inRange()&&this.setVisible(!1);null!==this.zIndex_&&this.setZIndex(this.zIndex_);null!==this.P&&this.setResolutions(this.P);this.ol3Layer.set("animated",!1===this.transparent||!0===this.options.animated)};h.setResolutions=function(a){this.P=a;if(!0===this.tiled&&!M.utils.isNullOrEmpty(this.ol3Layer)){var b=this;(new Promise(function(a){var c=
b.map.getMaxExtent();M.utils.isNullOrEmpty(c)?M.impl.envolvedExtent.calculate(b.map,b).then(a):a.call(b,c)})).then(function(c){c=[c.x.min,c.y.min,c.x.max,c.y.max];c=new ou({tileGrid:new ht({resolutions:a,extent:c,origin:of(c)}),extent:c});b.ol3Layer.setSource(c)})}};h.getExtent=function(){var a=null;M.utils.isNullOrEmpty(this.ol3Layer)||(a=H(this.map.getProjection().code).getExtent());return a};h.getMinResolution=function(){return this.P[0]};h.getMaxResolution=function(){return this.P[this.P.length-
1]};h.destroy=function(){var a=this.map.getMapImpl();M.utils.isNullOrEmpty(this.ol3Layer)||(a.removeLayer(this.ol3Layer),this.ol3Layer=null);this.map.getLayers().forEach(function(a){if(a instanceof M.layer.OSM||a instanceof M.layer.Mapbox)this.gj=!0},this);this.gj||this.map.getImpl().getMapImpl().getControls().getArray().forEach(function(a){a instanceof gj&&this.map.getImpl().getMapImpl().removeControl(a)},this);this.map=null};h.equals=function(a){var b=!1;a instanceof M.impl.layer.OSM&&(b=(b=this.url===
a.url)&&this.name===a.name);return b};M.impl.service={};M.impl.service.WFS={};M.impl.service.WFS=function(a,b){this.fa=a.url;this.Hu=a.namespace;this.mk=this.lm=a.name;M.utils.isNullOrEmpty(this.Hu)||(this.mk=this.Hu.concat(":").concat(this.lm));this.qk=a.version;this.Gt=a.ids;this.xs=a.cql;this.Ga=a.projection;this.To=a.getFeatureOutputFormat;M.utils.isNullOrEmpty(this.To)&&(this.To="application/json");this.yo=a.describeFeatureTypeOutputFormat;this.st={};M.utils.isNullOrEmpty(b)||M.utils.isNullOrEmpty(b.getFeature)||
(this.st=b.getFeature);this.Gs={};M.utils.isNullOrEmpty(b)||M.utils.isNullOrEmpty(b.describeFeatureType)||(this.Gs=b.describeFeatureType)};M.impl.service.WFS.prototype.getDescribeFeatureType=function(){var a={service:"WFS",version:this.qk,request:"DescribeFeatureType",typename:this.mk};M.utils.isNullOrEmpty(this.yo)||(a.outputFormat=this.yo);var b=M.utils.addParameters(M.utils.addParameters(this.fa,a),this.Gs),c=new M.impl.format.DescribeFeatureType(this.lm,this.yo,this.Ga);return new Promise(function(a){M.remote.get(b).then(function(b){a(c.read(b))})})};
M.impl.service.WFS.prototype.getFeatureUrl=function(a,b){var c={service:"WFS",version:this.qk,request:"GetFeature",typename:this.mk,outputFormat:this.To,srsname:b.getCode()};M.utils.isNullOrEmpty(this.Gt)||(c.featureId=this.Gt.map(function(a){return this.lm.concat(".").concat(a)},this));M.utils.isNullOrEmpty(this.xs)?M.utils.isNullOrEmpty(a)||(c.bbox=a.join(",")+","+b.getCode()):c.CQL_FILTER=this.xs;return M.utils.addParameters(M.utils.addParameters(this.fa,c),this.st)};M.impl.loader.WFS={};M.impl.loader.WFS=
function(a,b,c){this.map_=a;this.$j=b;this.sb=c;M.Object.call(this)};v(M.impl.loader.WFS,M.Object);M.impl.loader.WFS.prototype.getLoaderFn=function(a){var b=this;return function(c,d,e){c=b.$c(c,e);b.pf(c,e).then(a.bind(this))}};M.impl.loader.WFS.prototype.pf=function(a,b){return new Promise(function(c){M.remote.get(a).then(function(a){!M.utils.isNullOrEmpty(a.text)&&0>a.text.indexOf("ServiceExceptionReport")?(a=this.sb.read(a.text,b),c(a)):401===a.code?M.dialog.error("Ha ocurrido un error al cargar la capa: Usuario no autorizado."):
0<=a.text.indexOf("featureId and cql_filter")?M.dialog.error("FeatureID y CQL son mutuamente excluyentes. Indicar s\u00f3lo un tipo de filtrado."):M.exception("No hubo respuesta en la operaci\u00f3n GetFeature")}.bind(this))}.bind(this))};M.impl.loader.WFS.prototype.$c=function(a,b){return this.$j.getFeatureUrl(null,b)};M.impl.layer.WFS={};M.impl.layer.WFS=function(a){this.options=a||{};this.$j=this.Xb=this.Zc=this.zo=null;this.loaded_=!1;M.utils.isNullOrEmpty(this.options.getFeatureOutputFormat)&&
(this.options.getFeatureOutputFormat="application/json");M.impl.layer.Vector.call(this,this.options)};v(M.impl.layer.WFS,M.impl.layer.Vector);h=M.impl.layer.WFS.prototype;h.addTo=function(a){M.impl.layer.WFS.ab.addTo.call(this,a);this.Lg();a.getImpl().on(M.evt.CHANGE,function(){this.refresh()},this)};h.refresh=function(a){a&&this.facadeVector_.removeFeatures(this.facadeVector_.getFeatures(!0));this.Lg(a)};h.Lg=function(a){var b=this;this.$j=new M.impl.service.WFS({url:this.url,namespace:this.namespace,
name:this.name,version:this.version,ids:this.ids,cql:this.cql,projection:this.map.getProjection(),getFeatureOutputFormat:this.options.getFeatureOutputFormat,describeFeatureTypeOutputFormat:this.options.describeFeatureTypeOutputFormat},this.options.vendor);this.Zc=/json/gi.test(this.options.getFeatureOutputFormat)?new M.format.GeoJSON({defaultDataProjection:H(this.map.getProjection().code)}):new ao(this.name,this.map.getProjection());this.Xb=new M.impl.loader.WFS(this.map,this.$j,this.Zc);var c=this.facadeVector_.getStyle()instanceof
M.style.Cluster,d=this.ol3Layer.getSource();!0===a||M.utils.isNullOrEmpty(d)?(a=new X({format:this.Zc.getImpl(),loader:this.Xb.getLoaderFn(function(a){b.loaded_=!0;b.facadeVector_.addFeatures(a);b.fire(M.evt.LOAD,[a]);b.facadeVector_.redraw()}),strategy:et}),c?(c=this.facadeVector_.getStyle().getOptions().distance,c=new Y({distance:c,source:a}),this.ol3Layer.setStyle(this.facadeVector_.getStyle().getImpl().Da),this.ol3Layer.setSource(c)):this.ol3Layer.setSource(a)):(c&&(d=d.getSource()),d.set("format",
this.Zc),d.set("loader",this.Xb.getLoaderFn(function(a){this.loaded_=!0;this.facadeVector_.addFeatures(a);this.fire(M.evt.LOAD,[a]);b.facadeVector_.redraw()})),d.set("strategy",et),d.changed())};h.setCQL=function(a){this.cql=a;this.refresh(!0)};h.getDescribeFeatureType=function(){M.utils.isNullOrEmpty(this.zo)&&(this.zo=this.$j.getDescribeFeatureType().then(function(a){M.utils.isNullOrEmpty(a)||(this.Zc=new vb({geometryName:a.geometryName,defaultDataProjection:H(this.map.getProjection().code)}));
return a}.bind(this)));return this.zo};h.getDefaultValue=function(a){return"dateTime"==a?"0000-00-00T00:00:00":"date"==a?"0000-00-00":"time"==a?"00:00:00":"duration"==a?"P0Y":"int"==a||"number"==a||"float"==a||"double"==a||"decimal"==a||"short"==a||"byte"==a||"integer"==a||"long"==a||"negativeInteger"==a||"nonNegativeInteger"==a||"nonPositiveInteger"==a||"positiveInteger"==a||"unsignedLong"==a||"unsignedInt"==a||"unsignedShort"==a||"unsignedByte"==a?0:"hexBinary"==a?null:"-"};h.isLoaded=function(){return this.loaded_};
h.equals=function(a){var b=!1;a instanceof M.layer.WFS&&(b=(b=(b=(b=(b=(b=this.url===a.url)&&this.namespace===a.namespace)&&this.name===a.name)&&this.ids===a.ids)&&this.cql===a.cql)&&this.version===a.version);return b};M.impl.layer.WMC={};M.impl.layer.WMC=function(a){this.selected=!1;this.layers=[];this.me=this.maxExtent=this.Hp=null;M.impl.Layer.call(this,a)};v(M.impl.layer.WMC,M.impl.Layer);h=M.impl.layer.WMC.prototype;h.addTo=function(a){this.map=a};h.select=function(){if(!1===this.selected){var a=
this.map.getBbox();this.map.getWMC().forEach(function(a){a.unselect()});this.selected=!0;this.Hp=new Promise(function(a){M.remote.get(this.url).then(function(b){var c;!1===this.map._defaultProj&&(c=this.map.getProjection().code);b=(new Wq({projection:c})).readFromDocument(b.xml);a.call(this,b)}.bind(this))}.bind(this));this.Hp.then(function(b){if(this.map._defaultProj){var c=H(b.projection);this.map.setProjection({code:c.getCode(),units:c.getUnits()},!0)}this.loadLayers(b);M.utils.isNullOrEmpty(a)||
this.map.setBbox(a,{nearest:!0});this.map.fire(M.evt.CHANGE_WMC,this)}.bind(this))}};h.unselect=function(){!0===this.selected&&(this.selected=!1,M.utils.isNullOrEmpty(this.layers)||this.map.removeLayers(this.layers))};h.loadLayers=function(a){var b=this;this.layers=a.layers;this.maxExtent=a.maxExtent;this.map.addWMS(this.layers,!0);this.layers.forEach(function(a,d){return a.setZIndex(b.getZIndex()+d)});this.Ui.fire(M.evt.LOAD,[this.layers])};h.setFacadeObj=function(a){this.Ui=a};h.getMaxExtent=function(){var a=
this,b=H(this.map.getProjection().code);return new Promise(function(c){M.utils.isNullOrEmpty(a.maxExtent)?a.Hp.then(function(d){a.maxExtent=d.maxExtent;M.utils.isNullOrEmpty(a.me)&&(a.me=M.parameter.projection(M.config.DEFAULT_PROJ).code);a.maxExtent=fg(a.maxExtent,a.me,b);a.me=b;c(a.maxExtent)}):(a.me=b,c(a.maxExtent))})};h.getLayers=function(){return this.layers};h.destroy=function(){M.utils.isNullOrEmpty(this.layers)||this.map.removeLayers(this.layers);this.map=null;this.layers.length=0};h.equals=
function(a){var b=!1;a instanceof M.impl.layer.WMC&&(b=(b=this.url===a.url)&&this.name===a.name);return b};M.impl.GetCapabilities={};M.impl.GetCapabilities=function(a,b,c){this.ls=a;this.Ga=c;this.MD=b};M.impl.GetCapabilities.prototype.getLayerExtent=function(a){return this.So(this.ls.Capability.Layer,a)};M.impl.GetCapabilities.prototype.So=function(a,b){var c=null,d,e;if(!M.utils.isNullOrEmpty(a))if(M.utils.isArray(a))for(d=0,e=a.length;d<e&&null===c;d++)c=this.So(a[d],b);else if(M.utils.isObject(a))if(M.utils.isNullOrEmpty(b)||
a.Name===b)if(c=[],M.utils.isNullOrEmpty(a.SRS)?M.utils.isNullOrEmpty(a.CRS)||(c=a.CRS):c=a.SRS,-1!==c.indexOf(this.Ga.code)){b=null;c=a.BoundingBox;d=0;for(e=c.length;d<e&&null===b;d++)a=c[d],a.crs===this.Ga.code&&(b=a);null===b&&(b=c[0]);c=b.extent;b.crs!==this.Ga.code&&(d=H(b.crs),e=H(this.Ga.code),c=fg(c,d,e))}else c=a.hG[0].extent,c=fg(c,H("EPSG:4326"),H(this.Ga.code));else M.utils.isUndefined(a.Layer)||(c=this.So(a.Layer,b));return c};M.impl.GetCapabilities.prototype.getLayers=function(){return this.Xo(this.ls.Capability.Layer)};
M.impl.GetCapabilities.prototype.Xo=function(a){var b=[];M.utils.isNullOrEmpty(a.Layer)?M.utils.isArray(a)?a.forEach(function(a){b=b.concat(this.Xo(a))},this):b.push(new M.layer.WMS({url:this.MD,name:a.Name})):b=this.Xo(a.Layer);return b};function Cu(a,b){var c=[];Object.keys(b).forEach(function(a){null!==b[a]&&void 0!==b[a]&&c.push(a+"\x3d"+encodeURIComponent(b[a]))});var d=c.join("\x26");a=a.replace(/[?&]$/,"");a=-1===a.indexOf("?")?a+"?":a+"\x26";return a+d}function Du(a){a=a||{};var b=a.params||
{};ju.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,opaque:!("TRANSPARENT"in b?b.TRANSPARENT:1),projection:a.projection,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,url:a.url,urls:a.urls,wrapX:void 0!==a.wrapX?a.wrapX:!0});this.dj=void 0!==a.gutter?a.gutter:0;this.ea=b;this.be=!0;this.Wh=a.serverType;this.cd=void 0!==a.hidpi?a.hidpi:!0;this.vs="";Eu(this);this.gn=We();Fu(this);fu(this,
this.Zi())}A(Du,ju);h=Du.prototype;h.getGetFeatureInfoUrl=function(a,b,c,d){c=H(c);var e=this.getTileGrid();e||(e=this.ad(c));b=e.getTileCoordForCoordAndResolution(a,b);if(!(e.getResolutions().length<=b[0])){var f=e.getResolution(b[0]),g=e.getTileCoordExtent(b,this.gn),e=fn(e.getTileSize(b[0]),this.Ge),k=this.dj;0!==k&&(e=dn(e,k,this.Ge),g=Ye(g,f*k,g));k={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.ea.LAYERS};le(k,this.ea,d);d=Math.floor((g[3]-
a[1])/f);k[this.be?"I":"X"]=Math.floor((a[0]-g[0])/f);k[this.be?"J":"Y"]=d;return this.$c(b,e,g,1,c,k)}};h.Vo=function(){return this.dj};h.Fd=function(a,b,c){return this.vs+ju.prototype.Fd.call(this,a,b,c)};h.getParams=function(){return this.ea};h.$c=function(a,b,c,d,e,f){var g=this.urls;if(g){f.WIDTH=b[0];f.HEIGHT=b[1];f[this.be?"CRS":"SRS"]=e.getCode();"STYLES"in this.ea||(f.STYLES="");if(1!=d)switch(this.Wh){case "geoserver":b=90*d+.5|0;f.FORMAT_OPTIONS="FORMAT_OPTIONS"in f?f.FORMAT_OPTIONS+(";dpi:"+
b):"dpi:"+b;break;case "mapserver":f.MAP_RESOLUTION=90*d;break;case "carmentaserver":case "qgis":f.DPI=90*d;break;default:qd(!1,52)}e=e.ge;this.be&&"ne"==e.substr(0,2)&&(e=c[0],c[0]=c[1],c[1]=e,e=c[2],c[2]=c[3],c[3]=e);f.BBOX=c.join(",");return Cu(1==g.length?g[0]:g[yd((a[1]<<a[0])+a[2],g.length)],f)}};h.oc=function(a){return this.cd&&void 0!==this.Wh?a:1};function Eu(a){var b=0,c=[];if(a.urls){var d,e;d=0;for(e=a.urls.length;d<e;++d)c[b++]=a.urls[d]}a.vs=c.join("#")}h.Zi=function(){var a=0,b=[],
c;for(c in this.ea)b[a++]=c+"-"+this.ea[c];return b.join("/")};h.Zf=function(a,b,c){var d=this.getTileGrid();d||(d=this.ad(c));if(!(d.getResolutions().length<=a[0])){1==b||this.cd&&void 0!==this.Wh||(b=1);var e=d.getResolution(a[0]),f=d.getTileCoordExtent(a,this.gn),d=fn(d.getTileSize(a[0]),this.Ge),g=this.dj;0!==g&&(d=dn(d,g,this.Ge),f=Ye(f,e*g,f));1!=b&&(d=en(d,b,this.Ge));e={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};le(e,this.ea);return this.$c(a,d,f,b,c,
e)}};h.setUrls=function(a){ju.prototype.setUrls.call(this,a);Eu(this)};h.updateParams=function(a){le(this.ea,a);Eu(this);Fu(this);fu(this,this.Zi())};function Fu(a){var b;a:{b=(""+(a.ea.VERSION||"1.3.0")).split(".");for(var c=["1","3"],d=0;d<Math.max(b.length,c.length);d++){var e=parseInt(b[d]||"0",10),f=parseInt(c[d]||"0",10);if(e>f){b=1;break a}if(f>e){b=-1;break a}}b=0}a.be=0<=b}function Gu(a){a=a||{};M.utils.isNullOrEmpty(a.tileLoadFunction)&&(a.tileLoadFunction=Hu.bind(this));Du.call(this,a)}
v(Gu,Du);Gu.prototype.changed=function(){M.utils.isNullOrEmpty(this.pa)||this.pa.clear();Gu.ab.changed.call(this)};function Hu(a,b){a.getImage().src=b+"\x26_\x3d"+this.Km}function Iu(a,b,c,d,e){Be.call(this);this.Kk=e;this.extent=a;this.Ja=c;this.resolution=b;this.state=d}A(Iu,Be);h=Iu.prototype;h.changed=function(){this.dispatchEvent(Ce.CHANGE)};h.getAttributions=function(){return this.Kk};h.getExtent=function(){return this.extent};h.getResolution=function(){return this.resolution};h.getState=function(){return this.state};
function Ju(a,b,c,d,e,f,g){Iu.call(this,a,b,c,0,d);this.rd=e;this.f=new Image;null!==f&&(this.f.crossOrigin=f);this.Gl={};this.jg=null;this.state=0;this.rc=g}A(Ju,Iu);h=Ju.prototype;h.getImage=function(a){if(void 0!==a){var b=D(a);if(b in this.Gl)return this.Gl[b];a=oe(this.Gl)?this.f:this.f.cloneNode(!1);return this.Gl[b]=a}return this.f};h.rh=function(){this.state=3;eo(this);this.changed()};h.ej=function(){void 0===this.resolution&&(this.resolution=wf(this.extent)/this.f.height);this.state=2;eo(this);
this.changed()};h.load=function(){if(0==this.state||3==this.state)this.state=1,this.changed(),this.jg=[ve(this.f,"error",this.rh,this),ve(this.f,Ce.LOAD,this.ej,this)],this.rc(this,this.rd)};h.setImage=function(a){this.f=a};function Ku(a,b,c,d,e,f){this.di=b;this.hm=a.getExtent();var g=b.getExtent(),k=g?zf(c,g):c,g=Tt(a,b,xf(k),d);this.ji=new Wt(a,b,k,this.hm,.5*g);this.Mq=d;this.Lq=c;a=Yt(this.ji);this.aw=(this.Mc=f(a,g,e))?this.Mc.Ja:1;this.ak=this.j=null;e=2;f=[];this.Mc&&(e=0,f=this.Mc.getAttributions());
Iu.call(this,c,d,this.aw,e,f)}A(Ku,Iu);h=Ku.prototype;h.T=function(){1==this.state&&(qe(this.ak),this.ak=null);Iu.prototype.T.call(this)};h.getImage=function(){return this.j};h.getProjection=function(){return this.di};h.Wj=function(){var a=this.Mc.getState();2==a&&(this.j=Vt(vf(this.Lq)/this.Mq,wf(this.Lq)/this.Mq,this.aw,this.Mc.getResolution(),0,this.Mq,this.Lq,this.ji,[{extent:this.Mc.getExtent(),image:this.Mc.getImage()}],0));this.state=a;this.changed()};h.load=function(){if(0==this.state){this.state=
1;this.changed();var a=this.Mc.getState();2==a||3==a?this.Wj():(this.ak=G(this.Mc,Ce.CHANGE,function(){var a=this.Mc.getState();if(2==a||3==a)qe(this.ak),this.ak=null,this.Wj()},this),this.Mc.load())}};function Lu(a){st.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.P=void 0!==a.resolutions?a.resolutions:null;this.Sd=null;this.Iv=0}A(Lu,st);Lu.prototype.getResolutions=function(){return this.P};function Mu(a,b){a.P&&(b=a.P[Ne(a.P,b,0)]);
return b}Lu.prototype.getImage=function(a,b,c,d){var e=this.getProjection();if(e&&d&&!bg(e,d)){if(this.Sd){if(this.Iv==this.getRevision()&&bg(this.Sd.getProjection(),d)&&this.Sd.getResolution()==b&&this.Sd.Ja==c&&lf(this.Sd.getExtent(),a))return this.Sd;this.Sd.Ib();this.Sd=null}this.Sd=new Ku(e,d,a,b,c,function(a,b,c){return this.bg(a,b,c,e)}.bind(this));this.Iv=this.getRevision();return this.Sd}e&&(d=e);return this.bg(a,b,c,d)};Lu.prototype.qh=function(a){a=a.target;switch(a.getState()){case 1:this.dispatchEvent(new Nu(Ou,
a));break;case 2:this.dispatchEvent(new Nu(Pu,a));break;case 3:this.dispatchEvent(new Nu(Qu,a))}};function Ru(a,b){a.getImage().src=b}function Nu(a,b){ze.call(this,a);this.image=b}A(Nu,ze);var Ou="imageloadstart",Pu="imageloadend",Qu="imageloaderror";function Su(a){a=a||{};Lu.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions});this.ie=void 0!==a.crossOrigin?a.crossOrigin:null;this.fa=a.url;this.rc=void 0!==a.imageLoadFunction?a.imageLoadFunction:
Ru;this.ea=a.params||{};this.be=!0;Fu(this);this.Wh=a.serverType;this.cd=void 0!==a.hidpi?a.hidpi:!0;this.f=null;this.Ub=[0,0];this.Za=0;this.md=void 0!==a.ratio?a.ratio:1.5}A(Su,Lu);var Tu=[101,101];h=Su.prototype;h.getGetFeatureInfoUrl=function(a,b,c,d){if(void 0!==this.fa){var e=yf(a,b,0,Tu),f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.ea.LAYERS};le(f,this.ea,d);d=Math.floor((e[3]-a[1])/b);f[this.be?"I":"X"]=Math.floor((a[0]-e[0])/
b);f[this.be?"J":"Y"]=d;return this.$c(e,Tu,1,H(c),f)}};h.getParams=function(){return this.ea};h.bg=function(a,b,c,d){if(void 0===this.fa)return null;b=Mu(this,b);1==c||this.cd&&void 0!==this.Wh||(c=1);var e=b/c,f=xf(a),g=yf(f,b,0,[Math.ceil(vf(a)/e),Math.ceil(wf(a)/e)]);a=yf(f,b,0,[Math.ceil(this.md*vf(a)/e),Math.ceil(this.md*wf(a)/e)]);if((f=this.f)&&this.Za==this.getRevision()&&f.getResolution()==b&&f.Ja==c&&ef(f.getExtent(),g))return f;g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",
TRANSPARENT:!0};le(g,this.ea);this.Ub[0]=Math.round(vf(a)/e);this.Ub[1]=Math.round(wf(a)/e);d=this.$c(a,this.Ub,c,d,g);this.f=new Ju(a,b,c,this.getAttributions(),d,this.ie,this.rc);this.Za=this.getRevision();G(this.f,Ce.CHANGE,this.qh,this);return this.f};h.getImageLoadFunction=function(){return this.rc};h.$c=function(a,b,c,d,e){qd(void 0!==this.fa,9);e[this.be?"CRS":"SRS"]=d.getCode();"STYLES"in this.ea||(e.STYLES="");if(1!=c)switch(this.Wh){case "geoserver":c=90*c+.5|0;e.FORMAT_OPTIONS="FORMAT_OPTIONS"in
e?e.FORMAT_OPTIONS+(";dpi:"+c):"dpi:"+c;break;case "mapserver":e.MAP_RESOLUTION=90*c;break;case "carmentaserver":case "qgis":e.DPI=90*c;break;default:qd(!1,8)}e.WIDTH=b[0];e.HEIGHT=b[1];b=d.ge;e.BBOX=(this.be&&"ne"==b.substr(0,2)?[a[1],a[0],a[3],a[2]]:a).join(",");return Cu(this.fa,e)};h.getUrl=function(){return this.fa};h.setImageLoadFunction=function(a){this.f=null;this.rc=a;this.changed()};h.setUrl=function(a){a!=this.fa&&(this.fa=a,this.f=null,this.changed())};h.updateParams=function(a){le(this.ea,
a);Fu(this);this.f=null;this.changed()};function Uu(a){a=a||{};M.utils.isNullOrEmpty(a.imageLoadFunction)&&(a.imageLoadFunction=Vu.bind(this));Su.call(this,a)}v(Uu,Su);Uu.prototype.changed=function(){Uu.ab.changed.call(this)};function Vu(a,b){a.getImage().src=b+"\x26_\x3d"+this.Km}function Wu(a){su.call(this,a);this.f=null;this.Il=Lk()}A(Wu,su);Wu.prototype.getImage=function(){return this.f?this.f.getImage():null};Wu.prototype.Rd=function(a,b){var c=a.pixelRatio,d=a.size,e=a.viewState,f=e.center,
g=e.resolution,k=this.getLayer().getSource(),l=a.Pc,m=a.extent;void 0!==b.extent&&(m=zf(m,b.extent));l[0]||l[1]||uf(m)||(b=k.getImage(m,g,c,e.projection))&&Es(this,b)&&(this.f=b);if(this.f){b=this.f;var l=b.getExtent(),m=b.getResolution(),e=b.Ja,n=c*m/(g*e),l=Uk(this.Il,c*d[0]/2,c*d[1]/2,n,n,0,e*(l[0]-f[0])/m,e*(f[1]-l[3])/m);Uk(this.ro,c*d[0]/2-l[4],c*d[1]/2-l[5],c/g,-c/g,0,-f[0],-f[1]);Gs(a.attributions,b.getAttributions());Hs(a,k);this.Th=g*c/e}return!!this.f};function Xu(a,b,c,d,e,f){this.Xb=
void 0!==f?f:null;Iu.call(this,a,b,c,void 0!==f?0:2,d);this.j=e;this.Ns=null}A(Xu,Iu);Xu.prototype.getError=function(){return this.Ns};Xu.prototype.yl=function(a){a?(this.Ns=a,this.state=3):this.state=2;this.changed()};Xu.prototype.load=function(){0==this.state&&(this.state=1,this.changed(),this.Xb(this.yl.bind(this)))};Xu.prototype.getImage=function(){return this.j};function Yu(a){Lu.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions,state:a.state});
this.Ny=a.canvasFunction;this.j=null;this.Za=0;this.md=void 0!==a.ratio?a.ratio:1.5}A(Yu,Lu);Yu.prototype.bg=function(a,b,c,d){b=Mu(this,b);var e=this.j;if(e&&this.Za==this.getRevision()&&e.getResolution()==b&&e.Ja==c&&ef(e.getExtent(),a))return e;a=a.slice();Bf(a,this.md);(d=this.Ny(a,b,c,[vf(a)/b*c,wf(a)/b*c],d))&&(e=new Xu(a,b,c,this.getAttributions(),d));this.j=e;this.Za=this.getRevision();return e};function Zu(a){this.O=a.source;this.bb=Lk();this.Me=Hd();this.Qk=[0,0];this.zc=void 0==a.renderBuffer?
100:a.renderBuffer;this.ib=null;Yu.call(this,{attributions:a.attributions,canvasFunction:this.My.bind(this),logo:a.logo,projection:a.projection,ratio:a.ratio,resolutions:a.resolutions,state:this.O.getState()});this.style_=null;this.Yd=void 0;this.setStyle(a.style);G(this.O,Ce.CHANGE,this.kp,this)}A(Zu,Yu);h=Zu.prototype;h.My=function(a,b,c,d,e){var f=new vs(.5*b/c,a,b,this.O.Hh,this.zc);this.O.uj(a,b,e);var g=!1;this.O.forEachFeatureInExtent(a,function(a){var d;if(!(d=g)){var e;(d=a.getStyleFunction())?
e=d.call(a,b):this.Yd&&(e=this.Yd(a,b));if(e){var k,q=!1;Array.isArray(e)||(e=[e]);d=0;for(k=e.length;d<k;++d)q=Os(f,a,e[d],Ns(b,c),this.ip,this)||q;d=q}else d=!1}g=d},this);f.finish();if(g)return null;this.Qk[0]!=d[0]||this.Qk[1]!=d[1]?(this.Me.canvas.width=d[0],this.Me.canvas.height=d[1],this.Qk[0]=d[0],this.Qk[1]=d[1]):this.Me.clearRect(0,0,d[0],d[1]);a=$u(this,xf(a),b,c,d);f.Ta(this.Me,c,a,0,{});this.ib=f;return this.Me.canvas};h.za=function(a,b,c,d,e,f){if(this.ib){var g={};return this.ib.za(a,
b,0,d,e,function(a){var b=D(a).toString();if(!(b in g))return g[b]=!0,f(a)})}};h.getSource=function(){return this.O};h.getStyle=function(){return this.style_};h.getStyleFunction=function(){return this.Yd};function $u(a,b,c,d,e){c=d/c;return Uk(a.bb,e[0]/2,e[1]/2,c,-c,0,-b[0],-b[1])}h.ip=function(){this.changed()};h.kp=function(){this.Db(this.O.getState())};h.setStyle=function(a){this.style_=void 0!==a?a:qg;this.Yd=a?og(this.style_):void 0;this.changed()};function av(a,b){at.call(this,a,b);this.Dl=
this.ed=this.f=null}A(av,at);function bv(a,b){b=b.getImage();a=a.Jc.getGL();return Rl(a,b)}av.prototype.za=function(a,b,c,d,e){var f=this.getLayer();return f.getSource().za(a,b.viewState.resolution,b.viewState.rotation,c,b.Jg,function(a){return d.call(e,a,f)})};av.prototype.Rd=function(a,b){var c=this.Jc.getGL(),d=a.pixelRatio,e=a.viewState,f=e.center,g=e.resolution,k=e.rotation,l=this.f,m=this.Oc,n=this.getLayer().getSource(),q=a.Pc,r=a.extent;void 0!==b.extent&&(r=zf(r,b.extent));q[0]||q[1]||uf(r)||
(b=n.getImage(r,g,d,e.projection))&&Es(this,b)&&(l=b,m=bv(this,b),this.Oc&&(c=function(a,b){a.isContextLost()||a.deleteTexture(b)}.bind(null,c,this.Oc),a.ld.push(c)));l&&(c=this.Jc.getContext().j,cv(this,c.width,c.height,d,f,g,k,l.getExtent()),this.Dl=null,d=this.Zm,Mk(d),Sk(d,1,-1),Tk(d,0,-1),this.f=l,this.Oc=m,Gs(a.attributions,l.getAttributions()),Hs(a,n));return!!l};function cv(a,b,c,d,e,f,g,k){b*=f;c*=f;a=a.Yp;Mk(a);Sk(a,2*d/b,2*d/c);Rk(a,-g);Tk(a,k[0]-e[0],k[1]-e[1]);Sk(a,(k[2]-k[0])/2,(k[3]-
k[1])/2);Tk(a,1,1)}av.prototype.ue=function(a,b){return void 0!==this.za(a,b,0,Df,this)};av.prototype.forEachLayerAtPixel=function(a,b,c,d){if(this.f&&this.f.getImage())if(this.getLayer().getSource()instanceof Zu){var e=Qk(b.Ih,a.slice());if(this.za(e,b,0,Df,this))return c.call(d,this.getLayer(),null)}else{e=[this.f.getImage().width,this.f.getImage().height];if(!this.Dl){var f=b.size;b=Lk();Tk(b,-1,-1);Sk(b,2/f[0],2/f[1]);Tk(b,0,f[1]);Sk(b,1,-1);var f=Vk(this.Yp.slice()),g=Lk();Tk(g,0,e[1]);Sk(g,
1,-1);Sk(g,e[0]/2,e[1]/2);Tk(g,1,1);Ok(g,f);Ok(g,b);this.Dl=g}a=Qk(this.Dl,a.slice());if(!(0>a[0]||a[0]>e[0]||0>a[1]||a[1]>e[1])&&(this.ed||(this.ed=Hd(1,1)),this.ed.clearRect(0,0,1,1),this.ed.drawImage(this.f.getImage(),a[0],a[1],1,1,0,0,1,1),e=this.ed.getImageData(0,0,1,1).data,0<e[3]))return c.call(d,this.getLayer(),e)}};function dv(a){Gk.call(this,a?a:{})}A(dv,Gk);dv.prototype.Ci=function(a){var b=null,c=a.getType();"canvas"===c?b=new Wu(this):"webgl"===c&&(b=new av(a,this));return b};M.impl.layer.WMS=
{};M.impl.layer.WMS=function(a){this.layers=[];this.options=a||{};this.displayInLayerSwitcher=!0;this.me=this.legendUrl_=this.P=this.extent=this.Us=this.Ro=null;!1===this.options.visibility&&(this.visibility=!1);M.utils.isNullOrEmpty(this.tiled)&&(this.tiled=!0!==this.options.singleTile);M.utils.isNullOrEmpty(this.options.numZoomLevels)&&(this.options.numZoomLevels=16);M.utils.isNullOrEmpty(this.options.animated)&&(this.options.animated=!1);M.impl.Layer.call(this,this.options);this.zIndex_=M.impl.Map.Z_INDEX[M.layer.type.WMS]};
v(M.impl.layer.WMS,M.impl.Layer);M.impl.layer.WMS.prototype.setVisible=function(a){this.visibility=a;!0===this.inRange()&&(!0===a&&!0!==this.transparent?(this.map.getBaseLayers().filter(function(a){return!a.equals(this)&&a.isVisible()}).forEach(function(a){a.setVisible(!1)}),M.utils.isNullOrEmpty(this.ol3Layer)||this.ol3Layer.setVisible(a),a=this.map.getBbox(),this.map.getImpl().updateResolutionsFromBaseLayer(),M.utils.isNullOrEmpty(a)||this.map.setBbox(a)):M.utils.isNullOrEmpty(this.ol3Layer)||this.ol3Layer.setVisible(a))};
M.impl.layer.WMS.prototype.isQueryable=function(){return!1!==this.options.queryable};h=M.impl.layer.WMS.prototype;h.addTo=function(a){this.map=a;M.utils.isNull(this.options)||M.utils.isNull(this.options.minScale)||M.utils.isNull(this.options.maxScale)||(a=this.map.getProjection().units,this.options.minResolution=M.utils.getResolutionFromScale(this.options.minScale,a),this.options.maxResolution=M.utils.getResolutionFromScale(this.options.maxScale,a));M.utils.isNullOrEmpty(this.name)?this.xy():this.Ay();
this.legendUrl_===M.utils.concatUrlPaths([M.config.THEME_URL,M.Layer.LEGEND_DEFAULT])&&(this.legendUrl_=M.utils.addParameters(this.url,{SERVICE:"WMS",VERSION:this.version,REQUEST:"GetLegendGraphic",LAYER:this.name,FORMAT:"image/png",EXCEPTIONS:"image/png"}))};h.setResolutions=function(a){this.P=a;if(!0===this.tiled&&!M.utils.isNullOrEmpty(this.ol3Layer)){var b=this;this.ut().then(function(c){var d={},e=b.options.params;if(M.utils.isNullOrEmpty(e))d={LAYERS:b.name,TILED:!0,VERSION:b.version,TRANSPARENT:b.transparent,
FORMAT:"image/png"};else for(var f in e)e.hasOwnProperty(f)&&(d[f.toUpperCase()]=e[f]);d=!0===b.tiled?new Gu({url:b.url,params:d,tileGrid:new ht({resolutions:a,extent:c,origin:of(c)}),extent:c,minResolution:b.options.minResolution,maxResolution:b.options.maxResolution,opacity:this.opacity_,zIndex:this.zIndex_}):new Uu({url:b.url,params:d,resolutions:a});b.ol3Layer.setSource(d);b.ol3Layer.setExtent(c)})}};h.Ay=function(){var a=this.map.getResolutions();this.ut().then(function(b){var c;M.utils.isNullOrEmpty(a)&&
!M.utils.isNullOrEmpty(this.P)&&(a=this.P);M.utils.isNullOrEmpty(a)||(c=new ht({resolutions:a,extent:b,origin:of(b)}));var d={},e=this.options.params;if(M.utils.isNullOrEmpty(e))d={LAYERS:this.name,TILED:!0,VERSION:this.version,TRANSPARENT:this.transparent,FORMAT:"image/png"};else for(var f in e)e.hasOwnProperty(f)&&(d[f.toUpperCase()]=e[f]);this.ol3Layer=!0===this.tiled?new Bu({visible:this.visibility&&!1!==this.options.visibility,source:new Gu({url:this.url,params:d,tileGrid:c}),extent:b,minResolution:this.options.minResolution,
maxResolution:this.options.maxResolution,opacity:this.opacity_,zIndex:this.zIndex_}):new dv({visible:this.visibility&&!1!==this.options.visibility,source:new Uu({url:this.url,params:d}),extent:b,minResolution:this.options.minResolution,maxResolution:this.options.maxResolution,opacity:this.opacity_,zIndex:this.zIndex_});b=this.zIndex_;this.map.getMapImpl().addLayer(this.ol3Layer);this.isVisible()&&!this.inRange()&&this.setVisible(!1);null!==b&&this.setZIndex(b);null!==this.P&&this.setResolutions(this.P);
this.ol3Layer.set("animated",!1===this.transparent||!0===this.options.animated)}.bind(this))};h.xy=function(){this.getCapabilities().then(function(a){a.getLayers().forEach(function(a){a=new M.layer.WMS({url:this.url,name:a.name,version:a.version,tiled:this.tiled},this.options);this.layers.push(a)},this);this.map.addWMS(this.layers);var b=this.layers.length;this.layers.forEach(function(a){a.setZIndex(M.impl.Map.Z_INDEX[M.layer.type.WMS]+b);b++})}.bind(this))};h.getExtent=function(){var a=H(this.map.getProjection().code);
return this.Us=new Promise(function(b){M.utils.isNullOrEmpty(this.extent_)?this.getCapabilities().then(function(c){this.extent_=c.getLayerExtent(this.name);this.me=a;b(this.extent_)}.bind(this)):(this.extent_=fg(this.extent_,this.me,a),this.me=a,b(this.extent_))}.bind(this))};h.getMinResolution=function(){return this.options.minResolution};h.getMaxResolution=function(){return this.options.maxResolution};h.updateMinMaxResolution=function(a){M.utils.isNullOrEmpty(this.options.minResolution)||(this.options.minResolution=
M.utils.getResolutionFromScale(this.options.minScale,a.units),this.ol3Layer.setMinResolution(this.options.minResolution));M.utils.isNullOrEmpty(this.options.maxResolution)||(this.options.maxResolution=M.utils.getResolutionFromScale(this.options.maxScale,a.units),this.ol3Layer.setMaxResolution(this.options.maxResolution))};h.getNumZoomLevels=function(){return this.options.numZoomLevels};h.getLayers=function(){return this.layers};h.getCapabilities=function(){if(M.utils.isNullOrEmpty(this.Ro)){var a=
this.url,b=this.version,c=this.map.getProjection();this.Ro=new Promise(function(d){var e=M.utils.getWMSGetCapabilitiesUrl(a,b);M.remote.get(e).then(function(b){b=b.xml;b=(new M.impl.format.WMSCapabilities).read(b);b=new M.impl.GetCapabilities(b,a,c);d(b)})})}return this.Ro};h.ut=function(){var a=this.map.getMaxExtent();return new Promise(function(b){M.utils.isNullOrEmpty(a)?M.impl.envolvedExtent.calculate(this.map,this).then(function(a){if(!M.utils.isNullOrEmpty(this.map)){var c=this.map.getMaxExtent();
M.utils.isNullOrEmpty(c)?b.call(this,a):(M.utils.isArray(c)||(c=[c.x.min,c.y.min,c.x.max,c.y.max]),b.call(this,c))}}.bind(this)):(M.utils.isArray(a)||(a=[a.x.min,a.y.min,a.x.max,a.y.max]),b.call(this,a))}.bind(this))};M.impl.layer.WMS.prototype.getLegendURL=function(){return this.legendUrl_};M.impl.layer.WMS.prototype.setLegendURL=function(a){this.legendUrl_=a};M.impl.layer.WMS.prototype.refresh=function(){var a=this.getOL3Layer();M.utils.isNullOrEmpty(a)||a.getSource().changed()};M.impl.layer.WMS.prototype.destroy=
function(){var a=this.map.getMapImpl();M.utils.isNullOrEmpty(this.ol3Layer)||(a.removeLayer(this.ol3Layer),this.ol3Layer=null);M.utils.isNullOrEmpty(this.layers)||(this.layers.map(this.map.removeLayers,this.map),this.layers.length=0);this.map=null};M.impl.layer.WMS.prototype.equals=function(a){var b=!1;a instanceof M.impl.layer.WMS&&(b=(b=(b=(b=this.url===a.url)&&this.name===a.name)&&this.cql===a.cql)&&this.version===a.version);return b};M.impl.layer.WMS.YF=null;function ev(a){this.ou=a.matrixIds;
ht.call(this,{extent:a.extent,origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes,sizes:a.sizes})}A(ev,ht);ev.prototype.getMatrixIds=function(){return this.ou};function fv(a,b,c){var d=[],e=[],f=[],g=[],k=[],l=void 0!==c?c:[];c=H(a.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var m=c.getMetersPerUnit(),n="ne"==c.ge.substr(0,2);a.TileMatrix.sort(function(a,b){return b.ScaleDenominator-a.ScaleDenominator});a.TileMatrix.forEach(function(a){if(0<
l.length?Pe(l,function(b){return a.Identifier==b.TileMatrix}):1){e.push(a.Identifier);var b=2.8E-4*a.ScaleDenominator/m,c=a.TileWidth,q=a.TileHeight;n?f.push([a.TopLeftCorner[1],a.TopLeftCorner[0]]):f.push(a.TopLeftCorner);d.push(b);g.push(c==q?c:[c,q]);k.push([a.MatrixWidth,-a.MatrixHeight])}});return new ev({extent:b,origins:f,resolutions:d,matrixIds:e,tileSizes:g,sizes:k})}function gv(a){function b(a){a="KVP"==d?Cu(a,f):a.replace(/\{(\w+?)\}/g,function(a,b){return b.toLowerCase()in f?f[b.toLowerCase()]:
a});return function(b){if(b){var c={TileMatrix:e.ou[b[0]],TileCol:b[1],TileRow:-b[2]-1};le(c,g);b=a;return b="KVP"==d?Cu(b,c):b.replace(/\{(\w+?)\}/g,function(a,b){return c[b]})}}}this.qk=void 0!==a.version?a.version:"1.0.0";this.sb=void 0!==a.format?a.format:"image/jpeg";this.Mi=void 0!==a.dimensions?a.dimensions:{};this.i=a.layer;this.pu=a.matrixSet;this.style_=a.style;var c=a.urls;void 0===c&&void 0!==a.url&&(c=du(a.url));var d=this.Jv=void 0!==a.requestEncoding?a.requestEncoding:"KVP",e=a.tileGrid,
f={layer:this.i,style:this.style_,tilematrixset:this.pu};"KVP"==d&&le(f,{Service:"WMTS",Request:"GetTile",Version:this.qk,Format:this.sb});var g=this.Mi,k=c&&0<c.length?bu(c.map(b)):cu;ju.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,projection:a.projection,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileClass:a.tileClass,tileGrid:e,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:k,urls:c,wrapX:void 0!==
a.wrapX?a.wrapX:!1});fu(this,hv(this))}A(gv,ju);h=gv.prototype;h.getDimensions=function(){return this.Mi};h.getFormat=function(){return this.sb};h.getLayer=function(){return this.i};h.getMatrixSet=function(){return this.pu};h.getRequestEncoding=function(){return this.Jv};h.getStyle=function(){return this.style_};h.getVersion=function(){return this.qk};function hv(a){var b=0,c=[],d;for(d in a.Mi)c[b++]=d+"-"+a.Mi[d];return c.join("/")}h.updateDimensions=function(a){le(this.Mi,a);fu(this,hv(this))};
function gs(a,b){var c=Pe(a.Contents.Layer,function(a){return a.Identifier==b.layer}),d=a.Contents.TileMatrixSet,e,f,g;e=1<c.TileMatrixSetLink.length?"projection"in b?Te(c.TileMatrixSetLink,function(a){var c=Pe(d,function(b){return b.Identifier==a.TileMatrixSet}).SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"),e=H(c),f=H(b.projection);return e&&f?bg(e,f):c==b.projection}):Te(c.TileMatrixSetLink,function(a){return a.TileMatrixSet==b.matrixSet}):0;0>e&&(e=0);f=c.TileMatrixSetLink[e].TileMatrixSet;
g=c.TileMatrixSetLink[e].TileMatrixSetLimits;var k=c.Format[0];"format"in b&&(k=b.format);e=Te(c.Style,function(a){return"style"in b?a.Title==b.style:a.isDefault});0>e&&(e=0);e=c.Style[e].Identifier;var l={};"Dimension"in c&&c.Dimension.forEach(function(a){var b=a.Identifier,c=a.Default;void 0===c&&(c=a.Value[0]);l[b]=c});var m=Pe(a.Contents.TileMatrixSet,function(a){return a.Identifier==f}),n;n="projection"in b?H(b.projection):H(m.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));
var q=c.WGS84BoundingBox,r,t;void 0!==q&&(t=H("EPSG:4326").getExtent(),t=q[0]==t[0]&&q[2]==t[2],r=fg(q,"EPSG:4326",n),(q=n.getExtent())&&(ef(q,r)||(r=void 0)));g=fv(m,r,g);var u=[],m=b.requestEncoding,m=void 0!==m?m:"";if("OperationsMetadata"in a&&"GetTile"in a.OperationsMetadata)for(a=a.OperationsMetadata.GetTile.DCP.HTTP.Get,r=0,q=a.length;r<q;++r){var y=Pe(a[r].Constraint,function(a){return"GetEncoding"==a.name}).AllowedValues.Value;""===m&&(m=y[0]);if("KVP"===m)Me(y,"KVP")&&u.push(a[r].href);
else break}0===u.length&&(m="REST",c.ResourceURL.forEach(function(a){"tile"===a.resourceType&&(k=a.format,u.push(a.template))}));return{urls:u,layer:b.layer,matrixSet:f,format:k,projection:n,requestEncoding:m,tileGrid:g,style:e,dimensions:l,wrapX:t}}M.impl.layer.WMTS={};M.impl.layer.WMTS=function(a){M.impl.Layer.call(this,a)};v(M.impl.layer.WMTS,M.impl.Layer);M.impl.layer.WMTS.prototype.addTo=function(a){this.map=a;M.utils.isNull(this.options)||M.utils.isNull(this.options.minScale)||M.utils.isNull(this.options.maxScale)||
(a=this.map.getMapImpl().getView().getProjection().getUnits(),this.options.minResolution=M.utils.getResolutionFromScale(this.options.minScale,a),this.options.maxResolution=M.utils.getResolutionFromScale(this.options.maxScale,a));var b=this;this.Rz().then(function(a){b.Hk(a)})};M.impl.layer.WMTS.prototype.setResolutions=function(a){var b=H(this.map.getProjection().code),c=this.map.getMaxExtent(),d;d=M.utils.isNullOrEmpty(c)?b.getExtent():[c.x.min,c.y.min,c.x.max,c.y.max];if(M.utils.isNull(this.Sf)){var e=
this;this.ZH().then(function(c){console.log(c);e.Sf=c;c=e.Sf.getMatrixSet(e.name);var f=e.Sf.getMatrixIds(e.name),g=e.Sf.getFormat(e.name);c=new gv({url:e.url,layer:e.name,matrixSet:c,format:g,projection:b,tileGrid:new ev({origin:of(d),resolutions:a,matrixIds:f}),extent:d});e.ol3Layer.setSource(c)})}else{var c=this.Sf.getMatrixSet(this.name),f=this.Sf.getMatrixIds(this.name),g=this.Sf.getFormat(this.name),c=new gv({url:this.url,layer:this.name,matrixSet:c,format:g,projection:b,tileGrid:new ev({origin:of(d),
resolutions:a,matrixIds:f}),extent:d});this.ol3Layer.setSource(c)}};M.impl.layer.WMTS.prototype.setVisible=function(a){this.visibility=a;!0===this.inRange()&&(!0===a&&!0!==this.transparent?(this.map.getBaseLayers().filter(function(a){return!a.equals(this)&&a.isVisible()}).forEach(function(a){a.setVisible(!1)}),M.utils.isNullOrEmpty(this.ol3Layer)||this.ol3Layer.setVisible(a),a=this.map.getBbox(),this.map.getImpl().updateResolutionsFromBaseLayer(),M.utils.isNullOrEmpty(a)||this.map.setBbox(a)):M.utils.isNullOrEmpty(this.ol3Layer)||
this.ol3Layer.setVisible(a))};h=M.impl.layer.WMTS.prototype;h.Hk=function(a){var b=this.options.minResolution,c=this.options.maxResolution;a.format=this.options.format||a.format;this.ol3Layer=new Bu({visible:this.options.visibility,source:new gv(a),minResolution:b,maxResolution:c});a=this.zIndex_;this.map.getMapImpl().addLayer(this.ol3Layer);null!==a&&this.setZIndex(a);this.ol3Layer.set("animated",!0);this.fire(M.evt.ADDED_TO_MAP,this)};h.Rz=function(){var a=this.name,b=this.matrixSet;M.utils.isNullOrEmpty(b)&&
(b=this.map.getProjection().code);return this.getCapabilities().then(function(c){return gs(c,{layer:a,matrixSet:b})})};h.getCapabilities=function(){var a=M.utils.getWMTSGetCapabilitiesUrl(this.url),b=new Sr,c=this;return new Promise(function(d){M.remote.get(a).then(function(a){a=b.read(a.xml);d.call(c,a)})})};h.getMinResolution=function(){return this.options.minResolution};h.getMaxResolution=function(){return this.options.maxResolution};h.destroy=function(){var a=this.map.getMapImpl();M.utils.isNullOrEmpty(this.ol3Layer)||
(a.removeLayer(this.ol3Layer),this.ol3Layer=null);this.map=null};h.equals=function(a){var b=!1;a instanceof M.impl.layer.WMTS&&(b=(b=(b=this.url===a.url)&&this.name===a.name)&&this.matrixSet===a.matrixSet);return b};M.impl.utils={};M.impl.utils.generateResolutions=function(a,b,c,d){M.utils.isNullOrEmpty(b)&&(b=a.getExtent());a=vf(b)/256;M.utils.isNullOrEmpty(c)&&(c=0);M.utils.isNullOrEmpty(d)&&(d=28);d-=c;c=Array(d);for(b=0;b<d;b++)c[b]=a/Math.pow(2,b);return c};M.impl.utils.addOverlayImage=function(a,
b){var c=b.getMapImpl().getSize(),d=a.screenXY,e=a.screenXUnits,f=a.screenYUnits,g=a.overlayXY,k=a.overlayXUnits,l=a.overlayYUnits,m=a.size;a=mc("img",{src:a.src});x.setWidth(a,m[0]);x.Rv(a,m[1]);var n=g[0];"fraction"===k&&(n*=m[0]);g=g[1];"fraction"===l&&(g=m[1]-g*m[1]);x.setStyle(a,"position","absolute");l=d[0];"fraction"===e&&(l=l*c[0]-n);d=d[1];"fraction"===f&&(d=c[1]-d*c[1]-g);x.setPosition(a,l,d);b.getMapImpl().yg.appendChild(a);return a};M.impl.utils.getExtentHeight=function(a){return a[3]-
a[1]};M.impl.utils.getExtentWidth=function(a){return a[2]-a[0]};M.impl.utils.getCentroid=function(a){var b;if(M.utils.isNullOrEmpty(a))return null;switch(a.getType()){case "Point":a=a.getCoordinates();break;case "LineString":case "LinearRing":b=a.getCoordinates();a=Math.floor(b.length/2);a=b[a];break;case "Polygon":a=M.impl.utils.getCentroid(a.getInteriorPoint());break;case "MultiPoint":b=a.getPoints();a=Math.floor(b.length/2);a=M.impl.utils.getCentroid(b[a]);break;case "MultiLineString":b=a.getLineStrings();
a=Math.floor(b.length/2);a=M.impl.utils.getCentroid(b[a]);break;case "MultiPolygon":b=a.getInteriorPoints();a=M.impl.utils.getCentroid(b);break;case "Circle":a=a.getCenter();break;default:return null}return a};M.impl.utils.getFeaturesExtent=function(a){a=a.map(function(a){return a instanceof M.Feature?a.getImpl().getOLFeature():a}).map(function(a){return a.getGeometry().getExtent().slice(0)});return 0===a.length?null:a.reduce(function(a,c){return mf(a,c)})};M.impl.utils.getCentroidCoordinate=function(a){var b;
a.getType()===M.geom.wkt.type.POINT?b=a.getCoordinates():a.getType()===M.geom.wkt.type.LINE_STRING?(b=a.getCoordinates(),a=Math.floor(b.length/2),b=b[a]):a.getType()===M.geom.wkt.type.LINEAR_RING?(b=a.getCoordinates(),a=Math.floor(b.length/2),b=b[a]):a.getType()===M.geom.wkt.type.POLYGON?b=M.impl.utils.getCentroidCoordinate(a.getInteriorPoint()):a.getType()===M.geom.wkt.type.MULTI_POINT?(b=a.getPoints(),a=Math.floor(b.length/2),b=M.impl.utils.getCentroidCoordinate(b[a])):a.getType()===M.geom.wkt.type.MULTI_LINE_STRING?
(b=a.getLineStrings(),a=Math.floor(b.length/2),b=M.impl.utils.getCentroidCoordinate(b[a])):a.getType()===M.geom.wkt.type.MULTI_POLYGON?(b=a.getInteriorPoints(),b=M.impl.utils.getCentroidCoordinate(b)):a.getType()===M.geom.wkt.type.CIRCLE?b=a.getCenter():a.getType()===M.geom.wkt.type.GEOMETRY_COLLECTION&&(b=a.getGeometries(),a=Math.floor(b.length/2),b=M.impl.utils.getCentroidCoordinate(b[a]));return b};M.impl.View={};M.impl.View=function(a){this.hr=null;Wi.call(this,a)};v(M.impl.View,Wi);h=M.impl.View.prototype;
h.setUserZoom=function(a){this.hr=a;this.setZoom(a)};h.getUserZoom=function(){return this.hr};h.setProjection=function(a){this.Ga=a};h.getResolutions=function(){return this.get("resolutions")};h.setResolutions=function(a){this.set("resolutions",a);this.Ld=a[0];this.Aj=a[a.length-1];this.Vk.resolution=Bi(a);this.setZoom(this.hr);this.setCenter(this.getCenter())};M.impl.projections={};proj4.defs("EPSG:25830","+proj\x3dutm +zone\x3d30 +ellps\x3dGRS80 +towgs84\x3d0,0,0,0,0,0,0 +units\x3dm +no_defs");
var iv=new Jf({code:"EPSG:25830",extent:[-729785.83,3715125.82,940929.67,9518470.69]});Kf["urn:ogc:def:crs:EPSG::25830"]=iv;Kf["http://www.opengis.net/gml/srs/epsg.xml#25830"]=iv;Yf(iv);proj4.defs("EPSG:23030","+proj\x3dutm +zone\x3d30 +ellps\x3dintl +towgs84\x3d-87,-98,-121,0,0,0,0 +units\x3dm +no_defs");var jv=new Jf({code:"EPSG:23030",extent:[-99844.71,3879626.63,1682737.72,8251830.8]});Kf["urn:ogc:def:crs:EPSG::23030"]=jv;Kf["http://www.opengis.net/gml/srs/epsg.xml#23030"]=jv;Yf(jv);proj4.defs("EPSG:4258",
"+proj\x3dlonglat +ellps\x3dGRS80 +towgs84\x3d0,0,0,0,0,0,0 +no_defs");var kv=new Jf({code:"EPSG:4258",extent:[-16.1,32.88,39.65,84.17]});Kf["urn:ogc:def:crs:EPSG::4258"]=kv;Kf["http://www.opengis.net/gml/srs/epsg.xml#4258"]=kv;Yf(kv);proj4.defs("EPSG:25829","+proj\x3dutm +zone\x3d29 +ellps\x3dGRS80 +towgs84\x3d0,0,0,0,0,0,0 +units\x3dm +no_defs");var lv=new Jf({code:"EPSG:25829",extent:[-164850.78,3660417.01,988728.57,9567111.85]});Kf["urn:ogc:def:crs:EPSG::25829"]=lv;Kf["http://www.opengis.net/gml/srs/epsg.xml#25829"]=
lv;Yf(lv);proj4.defs("EPSG:23029","+proj\x3dutm +zone\x3d29 +ellps\x3dintl +towgs84\x3d-87,-98,-121,0,0,0,0 +units\x3dm +no_defs");var mv=new Jf({code:"EPSG:23029",extent:[448933.91,3860083.93,1860436.11,8381369.16]});Kf["urn:ogc:def:crs:EPSG::23029"]=mv;Kf["http://www.opengis.net/gml/srs/epsg.xml#23029"]=mv;Yf(mv);proj4.defs("EPSG:4230","+proj\x3dlonglat +ellps\x3dintl +no_defs");var nv=new Jf({code:"EPSG:4230",extent:[-16.09882145355955,25.711114310330917,48.60999527749605,84.16977336415472]});
Kf["urn:ogc:def:crs:EPSG::4230"]=nv;Kf["http://www.opengis.net/gml/srs/epsg.xml#4230"]=nv;Yf(nv);proj4.defs("EPSG:32628","+proj\x3dutm +zone\x3d28 +ellps\x3dWGS84 +datum\x3dWGS84 +units\x3dm +no_defs");var ov=new Jf({code:"EPSG:32628",extent:[166021.44317933178,0,833978.5568206678,9329005.18301614]});Kf["urn:ogc:def:crs:EPSG::32628"]=ov;Kf["http://www.opengis.net/gml/srs/epsg.xml#32628"]=ov;Yf(ov);proj4.defs("urn:ogc:def:crs:EPSG::4326","+proj\x3dlonglat +datum\x3dWGS84 +no_defs");proj4.defs("urn:ogc:def:crs:OGC:1.3:CRS84",
"+proj\x3dlonglat +datum\x3dWGS84 +no_defs");M.impl.envolvedExtent={};M.impl.envolvedExtent.DH=!1;M.impl.envolvedExtent.Ti=null;M.impl.envolvedExtent.calculate=function(a){return new Promise(function(b){var c=a.getWMC().filter(function(a){return!0===a.selected})[0],d=[],e=a.getBaseLayers().filter(function(a){return a.isVisible()});0<e.length?d.push(e[0]):d=a.getWMS();M.utils.isNullOrEmpty(c)?0<d.length?M.impl.envolvedExtent.calculateFromWMS(d).then(function(a){M.utils.isNullOrEmpty(M.impl.envolvedExtent.Ti)?
b(a):b(M.impl.envolvedExtent.Ti)}):M.impl.envolvedExtent.calculateFromProjection(a).then(function(a){M.utils.isNullOrEmpty(M.impl.envolvedExtent.Ti)?b(a):b(M.impl.envolvedExtent.Ti)}):M.impl.envolvedExtent.calculateFromWMC(c).then(function(a){M.impl.envolvedExtent.Ti=a;b(a)})})};M.impl.envolvedExtent.calculateFromWMC=function(a){return new Promise(function(b){a.getImpl().getMaxExtent().then(function(a){b(a)})})};M.impl.envolvedExtent.calculateFromProjection=function(a){return new Promise(function(b){var c=
H(a.getProjection().code).getExtent();M.utils.isNullOrEmpty(c)&&(c=[-180,-90,180,90]);b(c)})};M.impl.envolvedExtent.calculateFromWMS=function(a){return new Promise(function(b){function c(a){M.impl.envolvedExtent.OE(f,a);d===e-1&&b(f);d++}var d=0,e=a.length,f=[Infinity,Infinity,-Infinity,-Infinity];if(M.utils.isNullOrEmpty(a))b(f);else for(var g=0;g<e;g++){var k=a[g].getImpl().getExtent();k instanceof Promise?k.then(c):c(k)}})};M.impl.envolvedExtent.OE=function(a,b){M.utils.isArray(b)?(a[0]=Math.min(a[0],
b[0]),a[1]=Math.min(a[1],b[1]),a[2]=Math.max(a[2],b[2]),a[3]=Math.max(a[3],b[3])):M.utils.isObject(b)&&(a[0]=Math.min(a[0],b.x.min),a[1]=Math.min(a[1],b.y.min),a[2]=Math.max(a[2],b.x.max),a[3]=Math.max(a[3],b.y.max))};function pv(a){this.Ff=a}function qv(a,b){this.Ff=a;this.Uk=Array.prototype.slice.call(arguments,1);qd(2<=this.Uk.length,57)}A(qv,pv);function rv(a){var b=["And"].concat(Array.prototype.slice.call(arguments));qv.apply(this,b)}A(rv,qv);function sv(a,b,c){this.Ff="BBOX";this.geometryName=
a;this.extent=b;this.srsName=c}A(sv,pv);function tv(a,b){this.Ff=a;this.propertyName=b}A(tv,pv);function uv(a,b,c,d){tv.call(this,a,b);this.tz=c;this.xj=d}A(uv,tv);function vv(a,b,c){uv.call(this,"PropertyIsEqualTo",a,b,c)}A(vv,uv);function wv(a,b){uv.call(this,"PropertyIsGreaterThan",a,b)}A(wv,uv);function xv(a,b){uv.call(this,"PropertyIsGreaterThanOrEqualTo",a,b)}A(xv,uv);function yv(a,b,c,d){this.Ff=a;this.geometryName=b||"the_geom";this.geometry=c;this.srsName=d}A(yv,pv);function zv(a,b,c){yv.call(this,
"Intersects",a,b,c)}A(zv,yv);function Av(a,b,c){tv.call(this,"PropertyIsBetween",a);this.FB=b;this.PE=c}A(Av,tv);function Bv(a,b,c,d,e,f){tv.call(this,"PropertyIsLike",a);this.pattern=b;this.UE=void 0!==c?c:"*";this.WD=void 0!==d?d:".";this.nz=void 0!==e?e:"!";this.xj=f}A(Bv,tv);function Cv(a){tv.call(this,"PropertyIsNull",a)}A(Cv,tv);function Dv(a,b){uv.call(this,"PropertyIsLessThan",a,b)}A(Dv,uv);function Ev(a,b){uv.call(this,"PropertyIsLessThanOrEqualTo",a,b)}A(Ev,uv);function Fv(a){this.Ff="Not";
this.condition=a}A(Fv,pv);function Gv(a,b,c){uv.call(this,"PropertyIsNotEqualTo",a,b,c)}A(Gv,uv);function Hv(a){var b=["Or"].concat(Array.prototype.slice.call(arguments));qv.apply(this,b)}A(Hv,qv);function Iv(a,b,c){yv.call(this,"Within",a,b,c)}A(Iv,yv);function Jv(a){var b=[null].concat(Array.prototype.slice.call(arguments));return new (Function.prototype.bind.apply(rv,b))}function Kv(a,b,c){return new sv(a,b,c)}function Ah(a){a=a?a:{};this.xz=a.featureType;this.gh=a.featureNS;this.bd=a.gmlFormat?
a.gmlFormat:new rh;this.Ov=a.schemaLocation?a.schemaLocation:"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";Lg.call(this)}A(Ah,Lg);Ah.prototype.xf=function(a,b){var c={featureType:this.xz,featureNS:this.gh};le(c,ig(this,a,b?b:{}));b=[c];this.bd.Kf["http://www.opengis.net/gml"].featureMember=Bg(dh.prototype.Nj);(a=O([],this.bd.Kf,a,b,this.bd))||(a=[]);return a};Ah.prototype.readTransactionResponse=function(a){if(xg(a))return Lv(a);if(yg(a))return O({},Mv,a,[]);if("string"===
typeof a)return a=zg(a),Lv(a)};Ah.prototype.readFeatureCollectionMetadata=function(a){if(xg(a))return Nv(this,a);if(yg(a))return Ov(this,a);if("string"===typeof a)return a=zg(a),Nv(this,a)};function Nv(a,b){for(b=b.firstChild;b;b=b.nextSibling)if(b.nodeType==Node.ELEMENT_NODE)return Ov(a,b)}var Pv={"http://www.opengis.net/gml":{boundedBy:K(dh.prototype.zm,"bounds")}};function Ov(a,b){var c={},d=mh(b.getAttribute("numberOfFeatures"));c.numberOfFeatures=d;return O(c,Pv,b,[],a.bd)}var Qv={"http://www.opengis.net/wfs":{totalInserted:K(lh),
totalUpdated:K(lh),totalDeleted:K(lh)}},Rv={"http://www.opengis.net/ogc":{FeatureId:Bg(function(a){return a.getAttribute("fid")})}},Sv={"http://www.opengis.net/wfs":{Feature:function(a,b){Jg(Rv,a,b)}}},Mv={"http://www.opengis.net/wfs":{TransactionSummary:K(function(a,b){return O({},Qv,a,b)},"transactionSummary"),InsertResults:K(function(a,b){return O([],Sv,a,b)},"insertIds")}};function Lv(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType==Node.ELEMENT_NODE)return O({},Mv,a,[])}var Tv={"http://www.opengis.net/wfs":{PropertyName:L(oh)}};
function Uv(a,b){var c=ug("http://www.opengis.net/ogc","Filter"),d=ug("http://www.opengis.net/ogc","FeatureId");c.appendChild(d);d.setAttribute("fid",b);a.appendChild(c)}var Vv={"http://www.opengis.net/wfs":{Insert:L(function(a,b,c){var d=c[c.length-1],d=ug(d.featureNS,d.featureType);a.appendChild(d);rh.prototype.Qw(d,b,c)}),Update:L(function(a,b,c){var d=c[c.length-1];qd(void 0!==b.getId(),27);var e=d.featureType,f=d.featurePrefix,f=f?f:"feature",g=d.featureNS;a.setAttribute("typeName",f+":"+e);
a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+f,g);e=b.getId();if(void 0!==e){for(var f=b.getKeys(),g=[],k=0,l=f.length;k<l;k++){var m=b.get(f[k]);void 0!==m&&g.push({name:f[k],value:m})}Kg({node:a,srsName:d.srsName},Vv,Fg("Property"),g,c);Uv(a,e)}}),Delete:L(function(a,b,c){var d=c[c.length-1];qd(void 0!==b.getId(),26);c=d.featureType;var e=d.featurePrefix,e=e?e:"feature",d=d.featureNS;a.setAttribute("typeName",e+":"+c);a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+e,d);b=
b.getId();void 0!==b&&Uv(a,b)}),Property:L(function(a,b,c){var d=ug("http://www.opengis.net/wfs","Name");a.appendChild(d);oh(d,b.name);void 0!==b.value&&null!==b.value&&(d=ug("http://www.opengis.net/wfs","Value"),a.appendChild(d),b.value instanceof gg?rh.prototype.ri(d,b.value,c):oh(d,b.value))}),Native:L(function(a,b){b.SE&&a.setAttribute("vendorId",b.SE);void 0!==b.KD&&a.setAttribute("safeToIgnore",b.KD);void 0!==b.value&&oh(a,b.value)})}};function Wv(a,b,c){var d={node:a};b.Uk.forEach(function(a){Kg(d,
Xv,Fg(a.Ff),[a],c)})}function Yv(a,b){void 0!==b.xj&&a.setAttribute("matchCase",b.xj.toString());Zv(a,b.propertyName);$v(a,""+b.tz)}function aw(a,b,c){a=ug("http://www.opengis.net/ogc",a);oh(a,c);b.appendChild(a)}function Zv(a,b){aw("PropertyName",a,b)}function $v(a,b){aw("Literal",a,b)}var Xv={"http://www.opengis.net/wfs":{Query:L(function(a,b,c){var d=c[c.length-1],e=d.featurePrefix,f=d.featureNS,g=d.propertyNames,k=d.srsName;a.setAttribute("typeName",(e?e+":":"")+b);k&&a.setAttribute("srsName",
k);f&&a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+e,f);b=le({},d);b.node=a;Kg(b,Tv,Fg("PropertyName"),g,c);if(d=d.filter)g=ug("http://www.opengis.net/ogc","Filter"),a.appendChild(g),Kg({node:g},Xv,Fg(d.Ff),[d],c)})},"http://www.opengis.net/ogc":{And:L(Wv),Or:L(Wv),Not:L(function(a,b,c){b=b.condition;Kg({node:a},Xv,Fg(b.Ff),[b],c)}),BBOX:L(function(a,b,c){c[c.length-1].srsName=b.srsName;Zv(a,b.geometryName);rh.prototype.ri(a,b.extent,c)}),Intersects:L(function(a,b,c){c[c.length-1].srsName=
b.srsName;Zv(a,b.geometryName);rh.prototype.ri(a,b.geometry,c)}),Within:L(function(a,b,c){c[c.length-1].srsName=b.srsName;Zv(a,b.geometryName);rh.prototype.ri(a,b.geometry,c)}),PropertyIsEqualTo:L(Yv),PropertyIsNotEqualTo:L(Yv),PropertyIsLessThan:L(Yv),PropertyIsLessThanOrEqualTo:L(Yv),PropertyIsGreaterThan:L(Yv),PropertyIsGreaterThanOrEqualTo:L(Yv),PropertyIsNull:L(function(a,b){Zv(a,b.propertyName)}),PropertyIsBetween:L(function(a,b){Zv(a,b.propertyName);var c=ug("http://www.opengis.net/ogc","LowerBoundary");
a.appendChild(c);$v(c,""+b.FB);c=ug("http://www.opengis.net/ogc","UpperBoundary");a.appendChild(c);$v(c,""+b.PE)}),PropertyIsLike:L(function(a,b){a.setAttribute("wildCard",b.UE);a.setAttribute("singleChar",b.WD);a.setAttribute("escapeChar",b.nz);void 0!==b.xj&&a.setAttribute("matchCase",b.xj.toString());Zv(a,b.propertyName);$v(a,""+b.pattern)})}};Ah.prototype.writeGetFeature=function(a){var b=ug("http://www.opengis.net/wfs","GetFeature");b.setAttribute("service","WFS");b.setAttribute("version","1.1.0");
var c;if(a&&(a.handle&&b.setAttribute("handle",a.handle),a.outputFormat&&b.setAttribute("outputFormat",a.outputFormat),void 0!==a.maxFeatures&&b.setAttribute("maxFeatures",a.maxFeatures),a.resultType&&b.setAttribute("resultType",a.resultType),void 0!==a.startIndex&&b.setAttribute("startIndex",a.startIndex),void 0!==a.count&&b.setAttribute("count",a.count),c=a.filter,a.bbox)){qd(a.geometryName,12);var d=Kv(a.geometryName,a.bbox,a.srsName);c=c?Jv(c,d):d}b.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance",
"xsi:schemaLocation",this.Ov);c={node:b,srsName:a.srsName,featureNS:a.featureNS?a.featureNS:this.gh,featurePrefix:a.featurePrefix,geometryName:a.geometryName,filter:c,propertyNames:a.propertyNames?a.propertyNames:[]};qd(Array.isArray(a.featureTypes),11);a=a.featureTypes;c=[c];d=le({},c[c.length-1]);d.node=b;Kg(d,Xv,Fg("Query"),a,c);return b};Ah.prototype.writeTransaction=function(a,b,c,d){var e=[],f=ug("http://www.opengis.net/wfs","Transaction");f.setAttribute("service","WFS");f.setAttribute("version",
"1.1.0");var g,k;d&&(g=d.gmlOptions?d.gmlOptions:{},d.handle&&f.setAttribute("handle",d.handle));f.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.Ov);a&&(k={node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix,srsName:d.srsName},le(k,g),Kg(k,Vv,Fg("Insert"),a,e));b&&(k={node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix,srsName:d.srsName},le(k,g),Kg(k,Vv,Fg("Update"),b,e));c&&Kg({node:f,featureNS:d.featureNS,
featureType:d.featureType,featurePrefix:d.featurePrefix,srsName:d.srsName},Vv,Fg("Delete"),c,e);d.nativeElements&&Kg({node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix,srsName:d.srsName},Vv,Fg("Native"),d.nativeElements,e);return f};Ah.prototype.gq=function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType==Node.ELEMENT_NODE)return this.Dm(a);return null};Ah.prototype.Dm=function(a){if(a.firstElementChild&&a.firstElementChild.firstElementChild)for(a=a.firstElementChild.firstElementChild,
a=a.firstElementChild;a;a=a.nextElementSibling)if(0!==a.childNodes.length&&(1!==a.childNodes.length||3!==a.firstChild.nodeType)){var b=[{}];this.bd.zm(a,b);return H(b.pop().srsName)}return null};M.impl.wc={};Hk=function(a,b){return a.visible&&b>=a.minResolution&&b<=a.maxResolution};rh.prototype.Ww=function(a,b){b=b.getCoordinates();oh(a,b[0]+" "+b[1])};rh.prototype.qt=function(a){return a[0]+" "+a[1]};rn.prototype.ef=function(){tb(this.element,"ol-collapsed");var a=this.element.querySelector("button");
tb(a,this.openedButtonClass_);tb(a,this.collapsedButtonClass_);setTimeout(function(){this.xa?Id(this.ic,this.ua):Id(this.ua,this.ic);this.xa=!this.xa;var a=this.Nb;this.xa||a.la||(a.updateSize(),tn(this),ve(a,"postrender",function(){un(this)},this))}.bind(this),this.toggleDelay_)};Fj.prototype.Bw=function(a){if(Ij(a)){var b=a.Lj,c=b.pointerId.toString();"pointerup"==a.type?delete this.ae[c]:"pointerdown"==a.type?this.ae[c]=b:c in this.ae&&(this.ae[c]=b);this.ub=ne(this.ae)}};M.impl.wc.AD=function(a,
b,c,d){c instanceof M.impl.style.CentroidStyle&&null!=c.getImage()?M.impl.wc.al(a,c,d):Ts(a,b,c,d)};M.impl.wc.zD=function(a,b,c,d){c instanceof M.impl.style.CentroidStyle&&null!=c.getImage()?M.impl.wc.al(a,c,d):Ss(a,b,c,d)};M.impl.wc.xD=function(a,b,c,d){c instanceof M.impl.style.CentroidStyle&&null!=c.getImage()?M.impl.wc.al(a,c,d):Qs(a,b,c,d)};M.impl.wc.yD=function(a,b,c,d){c instanceof M.impl.style.CentroidStyle&&null!=c.getImage()?M.impl.wc.al(a,c,d):Rs(a,b,c,d)};M.impl.wc.al=function(a,b,c){var d=
(new jsts.io.OL3Parser).read(c.getGeometry()),d=Object.values(d.getCentroid().getCoordinates()[0]).filter(function(a){return void 0!=a}),d=new F(d);Ps[d.getType()](a,d,b,c)};Object.assign(Ps,{LineString:M.impl.wc.xD,Polygon:M.impl.wc.AD,MultiPolygon:M.impl.wc.zD,MultiLineString:M.impl.wc.yD});function bw(a,b){var c=a.canvas,d=b?b:{};b=d.pixelRatio||Sd;if(d=d.size)c.width=d[0]*b,c.height=d[1]*b,c.style.width=d[0]+"px",c.style.height=d[1]+"px";c=[0,0,c.width,c.height];d=Sk(Lk(),b,b);return new cl(a,
b,c,d,0)}M.impl.Style={};M.impl.Style=function(a){this.options_=a=void 0===a?{}:a;this.i=null;this.updateFacadeOptions(a)};h=M.impl.Style.prototype;h.updateFacadeOptions=function(){};h.applyToLayer=function(a){this.i=a;a.getFeatures().forEach(this.applyToFeature,this)};h.applyToFeature=function(a){a.getImpl().getOLFeature().setStyle(this.Da)};h.updateCanvas=function(a){var b=this.getCanvasSize();a=bw(a.getContext("2d"),{size:b});a.setStyle(this.Da()[0]);this.drawGeometryToCanvas(a)};h.drawGeometryToCanvas=
function(){};h.getCanvasSize=function(){return[100,100]};h.clone=function(){return new this.constructor(Object.assign({},this.options_))};M.impl.style.Feature={};M.impl.style.Feature=function(a,b){M.impl.Style.call(this,a,b)};v(M.impl.style.Feature,M.impl.Style);M.impl.style.CentroidStyle={};M.impl.style.CentroidStyle=function(a){a=void 0===a?{}:a;mg.call(this,a)};A(M.impl.style.CentroidStyle,mg);M.impl.style.CentroidStyle.prototype.clone=function(){var a=this.getGeometry();a&&a.clone&&(a=a.clone());
return new M.impl.style.CentroidStyle({geometry:a,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})};M.impl.style.Chart={};M.impl.style.Chart=function(a){a=void 0===a?{}:a;this.Da=null;this.ir=a.variables||[];this.no=a.scheme||[];this.extend_(a,M.style.Chart.DEFAULT);M.impl.style.Feature.call(this,a)};v(M.impl.style.Chart,
M.impl.style.Feature);h=M.impl.style.Chart.prototype;h.updateCanvas=function(a){if(M.utils.isNullOrEmpty(a))return!1;a=a.getContext("2d");this.drawGeometryToCanvas(a)};h.drawGeometryToCanvas=function(a){function b(b,f,l){var m=ja(b);b=m.next().value;m=m.next().value;m+=e.Rt;g.push(function(a,b,c,d,e,f,g){a.beginPath();a.strokeStyle=b;a.lineWidth=c;a.fillStyle=d;a.rect(e,f,g,g);a.closePath();a.stroke();a.fill()}.bind(d,a,"#000",e.lD,l,b,m,e.lq));b+=k.nB+e.lq;m+=e.lq/1.5;l=m+e.Rt;f=c(a,[b,m],f,k.MB,
e.kE);return[f[0],f[1]>l?f[1]:l]}function c(a,b,c,f,k){c=c.split(" ");var l="";b=ja(b);var m=b.next().value,n=b.next().value;g.push(function(a,b,c,d,e,f){a.font=b+"px "+c;a.strokeStyle=d;a.Um=e;a.fillStyle=f}.bind(d,a,e.Fz,e.Ez,e.lE,e.mE,e.jE));c.forEach(function(b,c){a.measureText(l+b+" ").width>f&&0<c?(g.push(function(a,b,c,d){a.strokeText(b,c,d);a.fillText(b,c,d)}.bind(d,a,l,m,n)),l=b+" ",n+=k):l=l+b+" "});g.push(function(a,b,c,d){a.strokeText(b,c,d);a.fillText(b,c,d)}.bind(d,a,l,m,n));return[m,
n]}var d=this;if(M.utils.isNullOrEmpty(a)||M.utils.isNullOrEmpty(a.canvas))return null;var e=M.impl.style.Chart.uk.Cz,f=M.impl.style.Chart.uk.width;a.canvas.setAttribute("width",f);a.width=f;var g=[],k={};Object.keys(M.impl.style.Chart.uk.Zu).forEach(function(a){return k[a]=M.impl.style.Chart.uk.Zu[a]/100*f});var l=ja([k.Yt,e.sw]),m=l.next().value,n=l.next().value;this.ir.forEach(function(a,c){var e=M.utils.isNullOrEmpty(a.legend)?a.attribute:a.legend;a=M.utils.isNullOrEmpty(a.fillColor)?d.no[c%d.no.length]||
d.no[0]:a.fillColor;e=ja(b([m,n],e,a));m=e.next().value;n=e.next().value;m=k.Yt});n+=e.sw;a.canvas.setAttribute("height",n);a.save();g.forEach(function(a){return a()});a.restore()};h.updateFacadeOptions=function(a){var b=this;a.rotateWithView=!1;this.Da=function(c){c instanceof E||(c=b);var d=M.impl.style.Simple.getValue,e=b.formatDataRecursively_(a,c),f=[];b.ir.forEach(function(a){a=c.get(a.attribute);a=parseFloat(a);f=f.concat(a instanceof Array?a:[a]).filter(function(a){return null!=a})});if(0==
f.length)throw Error("cannot draw an empty data chart");e.data=f;M.utils.isNullOrEmpty(a.stroke)||(e.stroke=new lg(a.stroke));var g=[new M.impl.style.CentroidStyle({geometry:function(a){var b=a.getGeometry();a.getGeometry()instanceof S&&(b=b.getPolygons()[0].getInteriorPoint());return b},image:new M.impl.style.OLChart(e)})];if((1===a.variables.length||a.variables.length===f.length)&&e.type!==M.style.chart.types.BAR)var k=0,l=e.data.reduce(function(a,b){return a+b}),g=g.concat(e.data.map(function(a,
b){var f=e.variables.length===e.data.length?e.variables[b]:e.variables[0];b=f.label||{};var g=b.radius?b.radius:e.radius,m=(2*k+a)/l*Math.PI-Math.PI/2;k+=a;if(!f.label)return null;var f="number"===typeof b.radiusIncrement?b.radiusIncrement:3,n="function"===typeof b.textAlign?b.textAlign(m):null;M.utils.isNullOrEmpty(n)&&(n=b.textAlign||(m<Math.PI/2?"left":"right"));a="function"===typeof b.text?b.text(a,e.data,c):""+d(b.text,c)||"";a=e.type!==M.style.chart.types.BAR&&"0"===a?"":a;var q=d(b.font,c);
return new M.impl.style.CentroidStyle({text:new go({text:"string"===typeof a?""+a:"",offsetX:"number"===typeof b.offsetX?d(b.offsetX,c):Math.cos(m)*(g+f)+e.offsetX||0,offsetY:"number"===typeof b.offsetY?d(b.offsetY,c):Math.sin(m)*(g+f)+e.offsetY||0,textAlign:d(n,c),textBaseline:d(b.textBaseline,c)||"middle",stroke:b.stroke?new lg({color:d(b.stroke.color,c)||"#000",width:d(b.stroke.width,c)||1}):void 0,font:/^([1-9])[0-9]*px ./.test(q)?q:"12px "+q,scale:"number"===typeof b.scale?d(b.scale,c):void 0,
fill:new ke({color:d(b.fill,c)||"#000"})})})})).filter(function(a){return null!=a});else if(e.type===M.style.chart.types.BAR){var m=0,n=null,g=g.concat(e.data.map(function(a,b){var d=e.variables.length===e.data.length?e.variables[b]:e.variables[0],f=d.label||{};if(!d.label)return null;d=M.impl.style.Simple.getValue;a="function"===typeof f.text?f.text(a,e.data,c):""+d(f.text,c)||"";a="0"===a?"":a;if(M.utils.isNullOrEmpty(a))return null;var k=d(f.font,c);n=M.utils.isNullOrEmpty(n)?g[0].getImage().getImage().height/
2-6:n-15;m=m+9+6;return new M.impl.style.CentroidStyle({text:new go({text:"string"===typeof a?""+a:"",offsetY:n+e.offsetY||0,offsetX:-(g[0].getImage().getImage().width/2)-1+e.offsetX||0,textBaseline:"middle",rotateWithView:!1,textAlign:"center",stroke:f.stroke?new lg({}):void 0,font:"9px "+k,scale:"number"===typeof f.scale?d(f.scale,c):void 0,fill:new ke({color:e.scheme[b%e.scheme.length]})})})})).filter(function(a){return null!=a}),m=Math.max(m,1);g.push(new mg({image:new $n({anchor:[-(g[0].getImage().getImage().width/
2)+10+e.offsetX,g[0].getImage().getImage().height/2+e.offsetY],anchorOrigin:"bottom-right",offsetOrigin:"bottom-left",anchorXUnits:"pixels",anchorYUnits:"pixels",rotateWithView:!1,src:"data:image/svg+xml;base64,"+btoa('\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"'+g[0].getImage().getImage().width/2+'" height\x3d"'+m+'"\x3e\x3crect width\x3d"'+g[0].getImage().getImage().width/2+'" height\x3d"'+m+'" fill\x3d"rgba(255, 255, 255, 0.75)" stroke-width\x3d"0" stroke\x3d"rgba(0, 0, 0, 0.34)"/\x3e\x3c/svg\x3e'),
size:[g[0].getImage().getImage().width/2,m]})}))}if(!M.utils.isNullOrEmpty(a.label)){var q=new mg,r=d(a.label.text,c),t=d(a.label.align,c),u=d(a.label.baseline,c),r=new go({font:d(a.label.font,c),rotateWithView:d(a.label.rotate,c),scale:d(a.label.scale,c),offsetX:d(a.label.offset?a.label.offset[0]:void 0,c),offsetY:d(a.label.offset?a.label.offset[1]:void 0,c),fill:new ke({color:d(a.label.color||"#000000",c)}),textAlign:Object.values(M.style.align).includes(t)?t:"center",textBaseline:Object.values(M.style.baseline).includes(u)?
u:"top",text:void 0===r?void 0:String(r),rotation:d(a.label.rotation,c)});M.utils.isNullOrEmpty(a.label.stroke)||r.setStroke(new lg({color:d(a.label.stroke.color,c),width:d(a.label.stroke.width,c),lineCap:d(a.label.stroke.linecap,c),lineJoin:d(a.label.stroke.linejoin,c),lineDash:d(a.label.stroke.linedash,c),lineDashOffset:d(a.label.stroke.linedashoffset,c),miterLimit:d(a.label.stroke.miterlimit,c)}));q.setText(r);g.push(q)}return g}};h.applyToLayer=function(a){a.getFeatures().forEach(this.applyToFeature,
this)};h.applyToFeature=function(a){a=a.getImpl().getOLFeature();a.setStyle(this.Da.bind(this,a))};h.formatDataRecursively_=function(a,b){var c=this;return Object.keys(a).reduce(function(d,e){function f(a,d,e){a[e]="object"!==typeof d[e]||null==d[e]||d[e]instanceof Array?M.impl.style.Simple.getValue(d[e],b):c.formatDataRecursively_(d[e],b)}var g=d;"object"!==typeof d&&(g={},"object"!==typeof a[d]&&f(g,a,d));f(g,a,e);return g})};h.extend_=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=
arguments[d];if(null==a)throw new TypeError("Cannot convert undefined or null to object");d=Object(a);c.filter(function(a){return null!=a}).forEach(function(b){return Object.keys(b).forEach(function(c){Object.prototype.hasOwnProperty.call(b,c)&&!Object.prototype.hasOwnProperty.call(a,c)&&(a[c]=b[c])})});return d};M.impl.style.Chart.uk={width:200,Zu:{Yt:5,nB:5,MB:70},Cz:{lD:2,Fz:10,Ez:"sans-serif",lE:"#fff",mE:1,jE:"#000",sw:10,Rt:10,kE:15,lq:15}};M.impl.style.Simple={};M.impl.style.Simple=function(a){a=
void 0===a?{}:a;this.updateFacadeOptions(a)};v(M.impl.style.Simple,M.impl.Style);M.impl.style.Simple.prototype.updateFacadeOptions=function(){};M.impl.style.Simple.prototype.applyToLayer=function(a){a=a.getImpl().getOL3Layer();M.utils.isNullOrEmpty(a)||a.setStyle(this.Da)};M.impl.style.Simple.prototype.applyToFeature=function(a){a.getImpl().getOLFeature().setStyle(this.Da)};M.impl.style.Simple.getValue=function(a,b){var c=/^\{\{([^\}]+)\}\}$/,d=a;if(c.test(a)||M.utils.isFunction(a))b instanceof E?
(b=M.impl.Feature.olFeature2Facade(b,!1),c.test(a)?(a=a.replace(c,"$1"),d=b.getAttribute(a)):M.utils.isFunction(a)&&(d=a(b))):d=void 0;M.utils.isNullOrEmpty(d)&&(d=void 0);return d};M.impl.style.PointCircle={};M.impl.style.PointCircle=function(a){a=void 0===a?{}:a;je.call(this,{points:Infinity,fill:a.fill,radius:a.radius,snapToPixel:a.snapToPixel,stroke:a.stroke,atlasManager:a.atlasManager})};A(M.impl.style.PointCircle,je);M.impl.style.PointCircle.prototype.clone=function(){var a=new M.impl.style.PointCircle({fill:this.getFill()?
this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),snapToPixel:this.getSnapToPixel(),atlasManager:this.xi});a.setOpacity(this.getOpacity());a.setScale(this.getScale());return a};M.impl.style.PointIcon={};M.impl.style.PointIcon=function(a){a=void 0===a?{}:a;$n.call(this,{anchor:a.anchor?a.anchor.slice():void 0,anchorOrigin:a.anchorOrigin,anchorXUnits:a.anchorXUnits,anchorYUnits:a.anchorYUnits,crossOrigin:a.crossOrigin||null,color:a.color&&
a.color.slice?a.color.slice():a.color||void 0,src:a.src,offset:a.offset?a.offset.slice():void 0,offsetOrigin:a.offsetOrigin,size:a.size?a.size.slice():void 0,imgSize:a.imgSize,opacity:a.opacity,scale:a.scale,snapToPixel:a.snapToPixel,rotation:a.rotation,rotateWithView:a.rotateWithView})};A(M.impl.style.PointIcon,$n);M.impl.style.PointIcon.prototype.clone=function(){return new M.impl.style.PointIcon({anchor:this.lb.slice(),anchorOrigin:this.Mf,anchorXUnits:this.Ik,anchorYUnits:this.Jk,crossOrigin:this.ie,
color:this.Y&&this.Y.slice?this.Y.slice():this.Y||void 0,src:this.getSrc(),offset:this.Mb.slice(),offsetOrigin:this.xg,size:null!==this.X?this.X.slice():void 0,opacity:this.getOpacity(),scale:this.getScale(),snapToPixel:this.getSnapToPixel(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})};M.impl.style.PointFontSymbol={};M.impl.style.PointFontSymbol=function(a){a=void 0===a?{}:a;a.anchor||(a.anchor=[]);a.offset||(a.offset=[]);In.call(this,{cj:a.cj,color:a.color,fontSize:a.fontSize,
stroke:a.stroke,fill:a.fill,radius:a.radius,form:a.form,gradient:a.gradient,offsetX:a.offset[0],offsetY:a.offset[1],opacity:a.opacity,rotation:a.rotation,rotateWithView:a.rotateWithView})};A(M.impl.style.PointFontSymbol,In);M.impl.style.PointFontSymbol.prototype.clone=function(){var a=new In({cj:"",color:this.Y,fontSize:this.No,stroke:this.L,fill:this.ga,radius:this.B+(this.L?this.L.getWidth():0),form:this.Yc,gradient:this.bf,offsetX:this.Mb[0],offsetY:this.Mb[1],opacity:this.getOpacity(),rotation:this.getRotation(),
rotateWithView:this.getRotateWithView()});a.setScale(this.getScale());a.re=this.re;Jn(a);return a};M.impl.style.Point={};M.impl.style.Point=function(a){this.Da=null;M.impl.style.Simple.call(this,a)};v(M.impl.style.Point,M.impl.style.Simple);h=M.impl.style.Point.prototype;h.toImage=function(){if(M.utils.isNullOrEmpty(this.Da))return null;var a=this.Da()[1],b=null;a.getImage&&null!=a.getImage()&&a.getImage()instanceof he?a.getImage()instanceof M.impl.style.PointFontSymbol?(a=a.getImage().getImage(),
null!=a&&a&&(b=a.toDataURL())):a.getImage()instanceof M.impl.style.PointIcon&&(a=a.getImage(),M.utils.isNullOrEmpty(a)||(b=a.getSrc(),b.startsWith(window.location.origin)||(a=M.utils.concatUrlPaths([M.config.PROXY_URL,"/image"]),b=M.utils.addParameters(a,{url:b})))):(a=this.Da()[0],null!=a.getImage()&&null!=a.getImage().getStroke()&&(a.getImage().getStroke().getWidth()>this.wr&&a.getImage().getStroke().setWidth(this.wr),a.getImage().Rh()),a=a.getImage().getImage(),null!=a&&(b=a.toDataURL()));return b};
h.updateFacadeOptions=function(a){this.Da=function(b){b instanceof E||(b=this);var c=new M.impl.style.CentroidStyle({zIndex:M.impl.style.Simple.getValue(a.zindex,b)}),d=new M.impl.style.CentroidStyle,e;if(!M.utils.isNullOrEmpty(a.fill)){var f=M.impl.style.Simple.getValue(a.fill.color,b)||"white",g=M.impl.style.Simple.getValue(a.fill.opacity,b)||1;M.utils.isNullOrEmpty(f)||(e=new ke({color:chroma(f).alpha(g).css()}))}var k;M.utils.isNullOrEmpty(a.stroke)||(f=M.impl.style.Simple.getValue(a.stroke.color,
b),M.utils.isNullOrEmpty(f)||(k=new lg({color:f,width:M.impl.style.Simple.getValue(a.stroke.width,b),lineDash:M.impl.style.Simple.getValue(a.stroke.linedash,b),lineDashOffset:M.impl.style.Simple.getValue(a.stroke.linedashoffset,b),lineCap:M.impl.style.Simple.getValue(a.stroke.linecap,b),lineJoin:M.impl.style.Simple.getValue(a.stroke.linejoin,b),miterLimit:M.impl.style.Simple.getValue(a.stroke.miterlimit,b)})));if(!M.utils.isNullOrEmpty(a.label)){var f=M.impl.style.Simple.getValue(a.label.text,b),
g=M.impl.style.Simple.getValue(a.label.align,b),l=M.impl.style.Simple.getValue(a.label.baseline,b),f=new go({font:M.impl.style.Simple.getValue(a.label.font,b),rotateWithView:M.impl.style.Simple.getValue(a.label.rotate,b),scale:M.impl.style.Simple.getValue(a.label.scale,b),offsetX:M.impl.style.Simple.getValue(a.label.offset?a.label.offset[0]:void 0,b),offsetY:M.impl.style.Simple.getValue(a.label.offset?a.label.offset[1]:void 0,b),fill:new ke({color:M.impl.style.Simple.getValue(a.label.color||"#000000",
b)}),textAlign:Object.values(M.style.align).includes(g)?g:"center",textBaseline:Object.values(M.style.baseline).includes(l)?l:"top",text:void 0===f?void 0:String(f),rotation:M.impl.style.Simple.getValue(a.label.rotation,b)});M.utils.isNullOrEmpty(a.label.stroke)||f.setStroke(new lg({color:M.impl.style.Simple.getValue(a.label.stroke.color,b),width:M.impl.style.Simple.getValue(a.label.stroke.width,b),lineCap:M.impl.style.Simple.getValue(a.label.stroke.linecap,b),lineJoin:M.impl.style.Simple.getValue(a.label.stroke.linejoin,
b),lineDash:M.impl.style.Simple.getValue(a.label.stroke.linedash,b),lineDashOffset:M.impl.style.Simple.getValue(a.label.stroke.linedashoffset,b),miterLimit:M.impl.style.Simple.getValue(a.label.stroke.miterlimit,b)}));c.setText(f)}c.setImage(new M.impl.style.PointCircle({fill:e,stroke:k,radius:M.impl.style.Simple.getValue(a.radius,b),snapToPixel:M.impl.style.Simple.getValue(a.snapToPixel,b)}));M.utils.isNullOrEmpty(a.icon)||(M.utils.isNullOrEmpty(a.icon.src)?M.utils.isNullOrEmpty(a.icon.form)||d.setImage(new M.impl.style.PointFontSymbol({form:M.utils.isNullOrEmpty(M.impl.style.Simple.getValue(a.icon.form,
b))?"":M.impl.style.Simple.getValue(a.icon.form,b).toLowerCase(),gradient:M.impl.style.Simple.getValue(a.icon.gradient,b),cj:M.impl.style.Simple.getValue(a.icon.class,b),fontSize:M.impl.style.Simple.getValue(a.icon.fontsize,b),radius:M.impl.style.Simple.getValue(a.icon.radius,b),rotation:M.impl.style.Simple.getValue(a.icon.rotation,b),rotateWithView:M.impl.style.Simple.getValue(a.icon.rotate,b),offsetX:M.impl.style.Simple.getValue(a.icon.offset?a.icon.offset[0]:void 0,b),offsetY:M.impl.style.Simple.getValue(a.icon.offset?
a.icon.offset[1]:void 0,b),fill:new ke({color:M.impl.style.Simple.getValue(a.icon.fill,b)||"white"}),stroke:a.icon.gradientcolor?new lg({color:M.impl.style.Simple.getValue(a.icon.gradientcolor,b),width:1}):void 0,anchor:M.impl.style.Simple.getValue(a.icon.anchor,b),anchorXUnits:M.impl.style.Simple.getValue(a.icon.anchorxunits,b),anchorYUnits:M.impl.style.Simple.getValue(a.icon.anchoryunits,b),src:M.impl.style.Simple.getValue(a.icon.src,b),opacity:M.impl.style.Simple.getValue(a.icon.opacity,b),scale:M.impl.style.Simple.getValue(a.icon.scale,
b),snapToPixel:M.impl.style.Simple.getValue(a.icon.snaptopixel,b),offsetOrigin:M.impl.style.Simple.getValue(a.icon.offsetorigin,b),offset:M.impl.style.Simple.getValue(a.icon.offset,b),crossOrigin:M.impl.style.Simple.getValue(a.icon.crossorigin,b),anchorOrigin:M.impl.style.Simple.getValue(a.icon.anchororigin,b),size:M.impl.style.Simple.getValue(a.icon.size,b)})):d.setImage(new M.impl.style.PointIcon({anchor:M.impl.style.Simple.getValue(a.icon.anchor,b),anchorXUnits:M.impl.style.Simple.getValue(a.icon.anchorxunits,
b),anchorYUnits:M.impl.style.Simple.getValue(a.icon.anchoryunits,b),src:M.impl.style.Simple.getValue(a.icon.src,b),opacity:M.impl.style.Simple.getValue(a.icon.opacity,b),scale:M.impl.style.Simple.getValue(a.icon.scale,b),rotation:M.impl.style.Simple.getValue(a.icon.rotation,b),rotateWithView:M.impl.style.Simple.getValue(a.icon.rotate,b),snapToPixel:M.impl.style.Simple.getValue(a.icon.snaptopixel,b),offsetOrigin:M.impl.style.Simple.getValue(a.icon.offsetorigin,b),offset:M.impl.style.Simple.getValue(a.icon.offset,
b),crossOrigin:M.impl.style.Simple.getValue(a.icon.crossorigin,b),anchorOrigin:M.impl.style.Simple.getValue(a.icon.anchororigin,b),size:M.impl.style.Simple.getValue(a.icon.size,b)})));return[c,d]}};h.drawGeometryToCanvas=function(a){this.Da()[1].getImage()instanceof In?a.drawGeometry(new F([10,10])):a.drawCircle(new Pn([this.getCanvasSize()[0]/2,this.getCanvasSize()[1]/2],this.getRadius_()))};h.updateCanvas=function(a){var b=this.getCanvasSize();a=bw(a.getContext("2d"),{size:b});b=this.Da()[0];M.utils.isNullOrEmpty(b.getText())||
b.setText(null);!M.utils.isNullOrEmpty(this.Da()[1])&&this.Da()[1].getImage()instanceof In&&(b=this.Da()[1]);var c=b.getImage().getStroke();M.utils.isNullOrEmpty(c)||M.utils.isNullOrEmpty(c.getWidth())||c.setWidth(3);a.setStyle(b);this.drawGeometryToCanvas(a)};h.getCanvasSize=function(){var a=this.Da()[1].getImage();a instanceof In?a=[90,90]:(a=this.getRadius_(a),a=[2*a+4,2*a+4]);return a};h.getRadius_=function(a){return a instanceof $n?25:a instanceof In?a.getRadius():this.Da()[0].getImage().getRadius()};
h.wr=3;M.impl.style.TextPath={};M.impl.style.TextPath=function(a){a=void 0===a?{}:a;go.call(this,a);this.iE="undefined"!==typeof a.textOverflow?a.textOverflow:"";this.Cj=a.minWidth||0};A(M.impl.style.TextPath,go);M.impl.style.TextPath.prototype.getTextOverflow=function(){return this.iE};M.impl.style.TextPath.prototype.getMinWidth=function(){return this.Cj};M.impl.style.Line={};M.impl.style.Line=function(a){M.impl.style.Simple.call(this,a);this.Da=this.updateFacadeOptions(a)};v(M.impl.style.Line,M.impl.style.Simple);
h=M.impl.style.Line.prototype;h.updateFacadeOptions=function(a){return function(b){b instanceof E||(b=this);var c=a.stroke,d=a.label,e=new M.impl.style.CentroidStyle,f=new M.impl.style.CentroidStyle,g=M.impl.style.Simple.getValue;M.utils.isNullOrEmpty(c)||e.setStroke(new lg({color:g(c.color,b),width:g(c.width,b),lineDash:g(c.linedash,b),lineDashOffset:g(c.linedashoffset,b),lineCap:g(c.linecap,b),lineJoin:g(c.linejoin,b),miterLimit:g(c.miterlimit,b)}));M.utils.isNullOrEmpty(d)||(c={text:void 0===g(d.text,
b)?void 0:String(g(d.text,b)),font:g(d.font,b),fill:new ke({color:g(d.color||"#000000",b)}),textBaseline:(g(d.baseline,b)||"").toLowerCase(),textAlign:g(d.align,b),rotateWithView:g(d.rotate,b)||!1,textOverflow:g(d.textoverflow,b)||"",minWidth:g(d.minwidth,b)||0,geometry:g(d.geometry,b),offsetX:M.impl.style.Simple.getValue(a.label.offset?a.label.offset[0]:void 0,b),offsetY:M.impl.style.Simple.getValue(a.label.offset?a.label.offset[1]:void 0,b)},c=new M.impl.style.TextPath(c),M.utils.isNullOrEmpty(d.stroke)||
c.setStroke(new lg({color:g(d.stroke.color,b),width:g(d.stroke.width,b),lineCap:g(d.stroke.linecap,b),lineJoin:g(d.stroke.linejoin,b),lineDash:g(d.stroke.linedash,b),lineDashOffset:g(d.stroke.linedashoffset,b),miterLimit:g(d.stroke.miterlimit,b)})),g=g(d.path,b),"boolean"===typeof g&&g?(e.textPath=c,!M.utils.isNullOrEmpty(d.smooth)&&!0===d.smooth&&M.utils.isFunction(b.getGeometry)&&e.setGeometry(En(b.getGeometry()))):e.setText(c));var k;M.utils.isNullOrEmpty(a.fill)||(d=M.impl.style.Simple.getValue(a.fill.color,
b),g=M.impl.style.Simple.getValue(a.fill.opacity,b)||1,b=M.impl.style.Simple.getValue(a.fill.width,b),M.utils.isNullOrEmpty(d)||(k=new lg({color:chroma(d).alpha(g).css(),width:b})));f.setStroke(k);return[e,f]}};h.applyToLayer=function(a){M.impl.style.Line.ab.applyToLayer.call(this,a);a=a.getImpl().getOL3Layer();M.utils.isNullOrEmpty(a)||(this.cv=a.on("postcompose",M.impl.renderutils.postRender,a))};h.unapply=function(){Ee(this.cv)};h.drawGeometryToCanvas=function(a,b,c,d){var e=this.getCanvasSize()[0],
f=this.getCanvasSize()[1];a.drawGeometry(new P([[0+d/2,0+d/2],[e/3,f/2-d/2],[2*e/3,0+d/2],[e-d/2,f/2-d/2]]));M.utils.isNullOrEmpty(c)||(d=c.width,b=b.getContext("2d"),b.lineWidth=c.width,e=a.J.canvas.width,f=a.J.canvas.height,b.strokeStyle=c.color,b.beginPath(),b.lineTo(0+d,0+d),b.lineTo(e/3,f/2-d),b.lineTo(2*e/3,0+d),b.lineTo(e-d,f/2-d),b.stroke())};h.updateCanvas=function(a){var b=this.getCanvasSize(),b=bw(a.getContext("2d"),{size:b}),c,d=this.Da()[1];M.utils.isNullOrEmpty(d)||M.utils.isNullOrEmpty(d.getStroke())||
(c={color:d.getStroke().getColor(),width:1});d=this.Da()[0];M.utils.isNullOrEmpty(d.getText())||d.setText(null);var e=d.getStroke(),f;M.utils.isNullOrEmpty(e)||(M.utils.isNullOrEmpty(e.getWidth())?f=1:(f=e.getWidth(),e.getWidth()>this.vr&&(f=this.vr)),c={color:d.getStroke().getColor(),width:f},d.getStroke().setWidth(f),b.setStyle(d));this.drawGeometryToCanvas(b,a,c,f)};h.getCanvasSize=function(){return[25,15]};h.vr=3;M.impl.style.Polygon={};M.impl.style.Polygon=function(a){M.impl.style.Simple.call(this,
a);this.Da=this.updateFacadeOptions(a)};v(M.impl.style.Polygon,M.impl.style.Simple);h=M.impl.style.Polygon.prototype;h.updateFacadeOptions=function(a){return function(b){b instanceof E||(b=this);var c=new M.impl.style.CentroidStyle;M.utils.isNullOrEmpty(a.stroke)||c.setStroke(new lg({color:M.impl.style.Simple.getValue(a.stroke.color,b),width:M.impl.style.Simple.getValue(a.stroke.width,b),lineDash:M.impl.style.Simple.getValue(a.stroke.linedash,b),lineDashOffset:M.impl.style.Simple.getValue(a.stroke.linedashoffset,
b),lineCap:M.impl.style.Simple.getValue(a.stroke.linecap,b),lineJoin:M.impl.style.Simple.getValue(a.stroke.linejoin,b),miterLimit:M.impl.style.Simple.getValue(a.stroke.miterlimit,b)}));if(!M.utils.isNullOrEmpty(a.label)){var d=M.impl.style.Simple.getValue(a.label.text,b),e=M.impl.style.Simple.getValue(a.label.align,b),f=M.impl.style.Simple.getValue(a.label.baseline,b);c.setText(new go({font:M.impl.style.Simple.getValue(a.label.font,b),rotateWithView:M.impl.style.Simple.getValue(a.label.rotate,b),
scale:M.impl.style.Simple.getValue(a.label.scale,b),offsetX:M.impl.style.Simple.getValue(a.label.offset?a.label.offset[0]:void 0,b),offsetY:M.impl.style.Simple.getValue(a.label.OI?a.label.offset[1]:void 0,b),fill:new ke({color:M.impl.style.Simple.getValue(a.label.color||"#000000",b)}),textAlign:Object.values(M.style.align).includes(e)?e:"center",textBaseline:Object.values(M.style.baseline).includes(f)?f:"top",text:void 0===d?void 0:String(d),rotation:M.impl.style.Simple.getValue(a.label.rotation,
b)}));M.utils.isNullOrEmpty(a.label.stroke)||c.getText().setStroke(new lg({color:M.impl.style.Simple.getValue(a.label.stroke.color,b),width:M.impl.style.Simple.getValue(a.label.stroke.width,b),lineCap:M.impl.style.Simple.getValue(a.label.stroke.linecap,b),lineJoin:M.impl.style.Simple.getValue(a.label.stroke.linejoin,b),lineDash:M.impl.style.Simple.getValue(a.label.stroke.linedash,b),lineDashOffset:M.impl.style.Simple.getValue(a.label.stroke.linedashoffset,b),miterLimit:M.impl.style.Simple.getValue(a.label.stroke.miterlimit,
b)}))}if(!M.utils.isNullOrEmpty(a.fill)){var d=M.impl.style.Simple.getValue(a.fill.color,b),e=M.impl.style.Simple.getValue(a.fill.opacity,b)||1,g;M.utils.isNullOrEmpty(d)||(g=new ke({color:chroma(d).alpha(e).css()}));M.utils.isNullOrEmpty(a.fill.pattern)?c.setFill(g):(d="rgba(0,0,0,1)",M.utils.isNullOrEmpty(a.fill.pattern.color)||(d=M.impl.style.Simple.getValue(a.fill.pattern.opacity,b)||1,d=chroma(a.fill.pattern.color).alpha(d).css()),c.setFill(new Gn({pattern:(M.impl.style.Simple.getValue(a.fill.pattern.name,
b)||"").toLowerCase(),color:d,size:M.impl.style.Simple.getValue(a.fill.pattern.size,b),spacing:M.impl.style.Simple.getValue(a.fill.pattern.spacing,b),image:"Image"==M.impl.style.Simple.getValue(a.fill.pattern.name,b)?new $n({src:M.impl.style.Simple.getValue(a.fill.pattern.src,b)}):void 0,angle:M.impl.style.Simple.getValue(a.fill.pattern.rotation,b),scale:M.impl.style.Simple.getValue(a.fill.pattern.scale,b),offset:M.impl.style.Simple.getValue(a.fill.pattern.offset,b),fill:g})))}return[c]}};h.updateCanvas=
function(a){var b=this.getCanvasSize();a=bw(a.getContext("2d"),{size:b});b=this.Da()[0];M.utils.isNullOrEmpty(b.getText())||b.setText(null);var c=b.getStroke();M.utils.isNullOrEmpty(c)||M.utils.isNullOrEmpty(c.getWidth())||c.getWidth()>this.xr&&b.getStroke().setWidth(this.xr);a.setStyle(b);this.drawGeometryToCanvas(a)};h.drawGeometryToCanvas=function(a){var b=this.getCanvasSize(),c=Math.floor(b[0]),d=Math.floor(b[1]),e=b[0]-c,b=b[1]-d;a.drawGeometry(new R([[[e+3,b+3],[c-3,b+3],[c-3,d-3],[e+3,d-3],
[e+3,b+3]]]))};h.getCanvasSize=function(){return[25,15]};h.xr=3;function Y(a){X.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,wrapX:a.wrapX});this.bc=void 0;this.Is=void 0!==a.distance?a.distance:20;this.features_=[];this.tb=a.geometryFunction||function(a){a=a.getGeometry();qd(a instanceof F,10);return a};this.O=a.source;this.O.on(Ce.CHANGE,Y.prototype.Rj,this)}A(Y,X);Y.prototype.getSource=function(){return this.O};Y.prototype.uj=function(a,b,c){this.O.uj(a,
b,c);b!==this.bc&&(this.clear(),this.bc=b,cw(this),this.addFeatures(this.features_))};Y.prototype.setDistance=function(a){this.Is=a;this.Rj()};Y.prototype.Rj=function(){this.clear();cw(this);this.addFeatures(this.features_);this.changed()};function cw(a){if(void 0!==a.bc){a.features_.length=0;for(var b=We(),c=a.Is*a.bc,d=a.O.getFeatures(),e={},f=0,g=d.length;f<g;f++){var k=d[f];D(k).toString()in e||!(k=a.tb(k))||(k=k.getCoordinates(),hf(k,b),Ye(b,c,b),k=a.O.getFeaturesInExtent(b),k=k.filter(function(a){a=
D(a).toString();return a in e?!1:e[a]=!0}),a.features_.push(dw(a,k)))}}}function dw(a,b){for(var c=[0,0],d=b.length-1;0<=d;--d){var e=a.tb(b[d]);e?Ki(c,e.getCoordinates()):b.splice(d,1)}Ri(c,1/b.length);a=new E(new F(c));a.set("features",b);return a}I.convexhull={};Hi=function(a,b,c){return 0>=(a[0]-c[0])*(b[1]-c[1])-(a[1]-c[1])*(b[0]-c[0])};Ii=function(a){a.sort(function(a,b){return a[0]==b[0]?a[1]-b[1]:a[0]-b[0]});for(var b=[],c=0;c<a.length;c++){for(;2<=b.length&&Hi(b[b.length-2],b[b.length-1],
a[c]);)b.pop();b.push(a[c])}for(var c=[],d=a.length-1;0<=d;d--){for(;2<=c.length&&Hi(c[c.length-2],c[c.length-1],a[d]);)c.pop();c.push(a[d])}c.pop();b.pop();return b.concat(c)};Ji=function(a){var b=[];switch(a.getType()){case "Point":b.push(a.getCoordinates());break;case "LineString":case "LinearRing":case "MultiPoint":b=a.getCoordinates();break;case "MultiLineString":a=a.getLineStrings();for(var c=0;c<a.length;c++)b.concat(Ji(a[c]));break;case "Polygon":b=Ji(a.getLinearRing(0));break;case "MultiPolygon":a=
a.getPolygons();for(c=0;c<a.length;c++)b.concat(Ji(a[c]));break;case "GeometryCollection":for(a=a.getGeometries(),c=0;c<a.length;c++)b.concat(Ji(a[c]))}return b};gg.prototype.convexHull=function(){return Ii(Ji(this))};M.impl.style.Cluster={};M.impl.style.Cluster=function(a,b){this.convexHullLayer_=null;M.impl.Style.call(this,{});this.oldOLLayer_=null;this.optionsVendor_=b;this.options_=a;this.hoverInteraction_=this.selectClusterInteraction_=this.clusterLayer_=null};v(M.impl.style.Cluster,M.impl.Style);
h=M.impl.style.Cluster.prototype;h.applyToLayer=function(a){this.i=a;this.options_=this.updateLastRange_();M.utils.isNullOrEmpty(this.selectClusterInteraction_)||this.selectClusterInteraction_.clear();this.updateCanvas();a=a.getFeatures();if(0<a.length)this.clusterize_(a);else this.i.on(M.evt.LOAD,this.clusterize_,this)};h.clusterize_=function(a){a=a.map(function(a){return a.getImpl().getOLFeature()});this.clusterLayer_=new hs({name:"Cluster",source:new Y({distance:this.options_.distance,source:new X({features:a})}),
animationDuration:this.optionsVendor_.animationDuration,style:this.clusterStyleFn_.bind(this),animationMethod:Vi[this.optionsVendor_.animationMethod]});!1===this.options_.animated&&this.clusterLayer_.set("animationDuration",void 0);this.clusterLayer_.setZIndex(99999);a=this.i.getImpl().getOL3Layer();a instanceof hs||(this.oldOLLayer_=a);this.i.getImpl().setOL3Layer(this.clusterLayer_);M.utils.isNullOrEmpty(this.options_.ranges)&&(this.options_.ranges=this.getDefaultRanges_());!1!==this.options_.hoverInteraction&&
this.addCoverInteraction_();!1!==this.options_.selectInteraction&&this.addSelectInteraction_()};h.setRanges=function(a){M.utils.isNullOrEmpty(a)?this.options_.ranges=this.getDefaultRanges_():this.options_.ranges=a};h.updateLastRange_=function(){var a=M.utils.extends({},this.options_);if(!M.utils.isNullOrEmpty(this.options_)&&!M.utils.isNullOrEmpty(this.options_.ranges)){var b=a.ranges;if(0<b.length){b=b.sort(function(a,b){return a.min-b.min});b=b.pop();if(M.utils.isNullOrEmpty(b.max)){var c=this.i.getFeatures().length;
b.max=c}a.ranges.push(b)}}return a};h.updateRangeImpl=function(a,b,c,d,e){return(d=e.options_.ranges.find(function(c){return c.min==a&&c.max==b}))?(d.style=c,d):!1};h.setAnimated=function(a,b,c){c.options_.animated=a;!1===a?this.clusterLayer_.set("animationDuration",void 0):this.clusterLayer_.set("animationDuration",this.optionsVendor_.animationDuration);return this};h.addSelectInteraction_=function(){var a=this,b=this.i.getImpl().getMap();this.selectClusterInteraction_=new Gt({vz:this.i,map:b,maxFeaturesToSelect:this.options_.maxFeaturesToSelect,
tm:this.optionsVendor_.distanceSelectFeatures,animate:!0,style:this.clusterStyleFn_.bind(this)});this.selectClusterInteraction_.on("select",this.selectClusterFeature_,this);b.getMapImpl().addInteraction(this.selectClusterInteraction_);b.getMapImpl().on("change:view",function(){return a.selectClusterInteraction_.refreshViewEvents()})};h.removeSelectInteraction_=function(){this.i.getImpl().getMap().getMapImpl().removeInteraction(this.selectClusterInteraction_)};h.hoverFeatureFn_=function(a){if(!M.utils.isNullOrEmpty(a)){var b=
[];a.forEach(function(a){a instanceof M.ClusteredFeature?b=b.concat(a.getAttribute("features")):b.push(a)});a=Ii(b.map(function(a){return a.getImpl().getOLFeature().getGeometry().getCoordinates()}));2<a.length&&(a=new E(new R([a])),a=M.impl.Feature.olFeature2Facade(a),M.utils.isNullOrEmpty(this.convexHullLayer_)?(this.convexHullLayer_=new M.layer.Vector({name:"cluster_cover",extract:!1},{displayInLayerSwitcher:!1,style:new M.style.Polygon(this.optionsVendor_.convexHullStyle)}),this.convexHullLayer_.addFeatures(a),
this.i.getImpl().getMap().addLayers(this.convexHullLayer_),this.i.getImpl().getMap().getMapImpl().getView().on("change:resolution",this.Rk,this),this.convexHullLayer_.setStyle(new M.style.Polygon(this.optionsVendor_.convexHullStyle)),this.convexHullLayer_.setZIndex(99990)):(this.convexHullLayer_.removeFeatures(this.convexHullLayer_.getFeatures()),this.convexHullLayer_.addFeatures(a)))}};h.leaveFeatureFn_=function(){M.utils.isNullOrEmpty(this.convexHullLayer_)||this.convexHullLayer_.removeFeatures(this.convexHullLayer_.getFeatures())};
h.addCoverInteraction_=function(){this.i.on(M.evt.HOVER_FEATURES,this.hoverFeatureFn_,this);this.i.on(M.evt.LEAVE_FEATURES,this.leaveFeatureFn_,this)};h.removeCoverInteraction_=function(){this.i.un(M.evt.UF,this.hoverFeatureFn_,this);this.i.un(M.evt.XF,this.leaveFeatureFn_,this)};h.clusterStyleFn_=function(a,b,c){var d,e=a.get("features");if(!e)return new M.impl.style.CentroidStyle;var f=e.length,g=this.options_.ranges.find(function(a){return a.min<=f&&a.max>=f});M.utils.isNullOrEmpty(g)?1===f&&((a=
e[0].getStyle())||(a=this.oldOLLayer_.getStyle()),d=a(e[0],b)):(e=g.style.clone(),c?e.set("fill.opacity",.33):this.options_.displayAmount&&(e.set("label",this.options_.label),c=e.get("label.color"),M.utils.isNullOrEmpty(c)&&(c=e.get("fill.color"),c=M.utils.isNullOrEmpty(c)?"#000":M.utils.inverseColor(c),e.set("label.color",c))),d=e.getImpl().Da(a,b));return d};h.getDefaultRanges_=function(){var a=this.i.getFeatures().length,b=Math.floor(a/3),b=Math.max(b,3),a=[{min:2,max:b,style:new M.style.Point(M.style.Cluster.RANGE_1_DEFAULT)},
{min:b,max:2*b,style:new M.style.Point(M.style.Cluster.RANGE_2_DEFAULT)},{min:2*b,max:a+1,style:new M.style.Point(M.style.Cluster.RANGE_3_DEFAULT)}];return this.options_.ranges=a};h.selectClusterFeature_=function(){this.Rk()};h.unapply=function(){if(M.utils.isNullOrEmpty(this.clusterLayer_))M.utils.isNullOrEmpty(this.i)||this.i.un(M.evt.LOAD,this.clusterize_,this);else{var a=this.clusterLayer_.getSource();this.i.getImpl().setOL3Layer(this.oldOLLayer_);this.removeCoverInteraction_();this.removeSelectInteraction_();
this.Rk();this.i.getImpl().getMap().getMapImpl().getView().un("change:resolution",this.Rk,this);this.i.redraw();a.getSource().un(Ce.CHANGE,Y.prototype.Rj,a)}};h.Rk=function(){null!==this.convexHullLayer_&&(this.i.getImpl().getMap().removeLayers(this.convexHullLayer_),this.convexHullLayer_=null)};h.updateCanvas=function(){};h.activateChangeEvent=function(){var a=this.clusterLayer_.getSource();a.getSource().on(Ce.CHANGE,Y.prototype.Rj,a)};h.deactivateChangeEvent=function(){var a=this.clusterLayer_.getSource();
a.getSource().un(Ce.CHANGE,Y.prototype.Rj,a)};h.deactivateTemporarilyChangeEvent=function(a,b){this.deactivateChangeEvent();M.utils.isFunction(a)&&(null==b?a():a.apply(null,[].concat(la(b))))};M.impl.style.Heatmap={};M.impl.style.Heatmap=function(a,b,c){this.hj=null;this.qm=M.utils.extends(b,c);this.qm.zIndex=999999;this.oldOLLayer_=null;M.impl.Style.call(this,{})};v(M.impl.style.Heatmap,M.impl.Style);h=M.impl.style.Heatmap.prototype;h.applyToLayer=function(a){this.i=a;M.utils.isNullOrEmpty(a)||(a=
this.i.getImpl().getOL3Layer(),a instanceof Z||(this.oldOLLayer_=a),a=this.i.getFeatures().map(function(a){return a.getImpl().getOLFeature()}),a.forEach(function(a){return a.setStyle(null)}),this.createHeatmapLayer_(a),this.i.getImpl().setOL3Layer(this.hj))};h.unapply=function(){M.utils.isNullOrEmpty(this.oldOLLayer_)||(this.i.getImpl().setOL3Layer(this.oldOLLayer_),this.i.redraw(),this.hj=this.oldOLLayer_=this.i=null)};h.createHeatmapLayer_=function(a){this.qm.source=new X({features:a});this.hj=
new M.impl.layer.Heatmap(this.qm)};h.RD=function(a,b){this.qm=M.utils.extends(a,b)};h.ap=function(){return this.hj.ap()};h.$o=function(){return this.hj.$o()};M.impl.Map={};M.impl.Map=function(a,b){var c=this;M.Object.call(this);this.facadeMap_=null;this.layers_=[];this.Bd=[];this.options_=b||{};this.Do=this.fr=this.gr=null;this.Pr=this.Ak=!1;b="canvas";M.utils.isNullOrEmpty(this.options_.renderer)||(b=this.options_.renderer);this.map_=new U({controls:[],target:a.id,renderer:b,view:new M.impl.View});
this.map_.on("singleclick",this.Ou,this);this.map_.addInteraction(new qj({handleEvent:function(a){"pointermove"===a.type&&c.gC(a);return!0}}))};v(M.impl.Map,M.Object);h=M.impl.Map.prototype;h.getLayers=function(a){var b=this.getWMC(a),c=this.getKML(a),d=this.getWMS(a),e=this.getWFS(a),f=this.getWMTS(a),g=this.getMBtiles(a);a=this.aA(a);return b.concat(c).concat(d).concat(e).concat(f).concat(g).concat(a)};h.getBaseLayers=function(){return this.getLayers().filter(function(a){var b=!1;if(a.type===M.layer.type.WMS||
a.type===M.layer.type.OSM||a.type===M.layer.type.Mapbox||a.type===M.layer.type.WMTS)b=!0!==a.transparent;return b})};h.addLayers=function(a){var b=a.filter(function(a){return!M.layer.type.qj(a.type)});a=a.filter(function(a){return M.layer.type.qj(a.type)});this.By(b);this.facadeMap_.addWMC(a.filter(function(a){return a.type===M.layer.type.WMC}));this.facadeMap_.addMBtiles(a.filter(function(a){return a.type===M.layer.type.MBtiles}));this.facadeMap_.addWMS(a.filter(function(a){return a.type===M.layer.type.WMS}));
this.facadeMap_.addWMTS(a.filter(function(a){return a.type===M.layer.type.WMTS}));this.facadeMap_.addKML(a.filter(function(a){return a.type===M.layer.type.KML}));this.facadeMap_.addWFS(a.filter(function(a){return a.type===M.layer.type.WFS}));return this};h.removeLayers=function(a){var b=a.filter(function(a){return!M.layer.type.qj(a.type)});a=a.filter(function(a){return M.layer.type.qj(a.type)});0<a.length&&(this.removeWMC(a),this.removeKML(a),this.removeWMS(a),this.removeWFS(a),this.removeWMTS(a),
this.removeMBtiles(a));0<b.length&&this.tD(b);return this};h.getWMC=function(a){var b=[],c=this.layers_.filter(function(a){return a.type===M.layer.type.WMC});M.utils.isNullOrEmpty(a)&&(a=[]);M.utils.isArray(a)||(a=[a]);0===a.length?b=c:a.forEach(function(a){b=b.concat(c.filter(function(c){var d=!0;b.includes(c)?d=!1:(M.utils.isNullOrEmpty(a.type)||(d=d&&a.type===c.type),M.utils.isNullOrEmpty(a.url)||(d=d&&a.url===c.url),M.utils.isNullOrEmpty(a.name)||(d=d&&a.name===c.name));return d}))},this);return b};
h.addWMC=function(a){a.forEach(function(a){a.type!=M.layer.type.WMC||M.utils.includes(this.layers_,a)||(a.setZIndex(M.impl.Map.Z_INDEX[M.layer.type.WMC]),a.getImpl().addTo(this.facadeMap_),this.layers_.push(a))},this);return this};h.removeWMC=function(a){this.getWMC(a).forEach(function(a){var b=this;if(!0===a.selected&&!1===a.isLoaded())a.on(M.evt.LOAD,function(){a.setLoaded(!1);b.layers_.remove(a);b.facadeMap_.removeWMS(a.layers);b.facadeMap_.yv()});else a.setLoaded(!1),this.layers_.remove(a),this.facadeMap_.removeWMS(a.layers);
this.facadeMap_.yv()},this);return this};h.getKML=function(a){var b=[],c=this.layers_.filter(function(a){return a.type===M.layer.type.KML});M.utils.isNullOrEmpty(a)&&(a=[]);M.utils.isArray(a)||(a=[a]);0===a.length?b=c:a.forEach(function(a){var d=c.filter(function(c){var d=!0;b.includes(c)?d=!1:(M.utils.isNullOrEmpty(a.type)||(d=d&&a.type===c.type),M.utils.isNullOrEmpty(a.url)||(d=d&&a.url===c.url),M.utils.isNullOrEmpty(a.name)||(d=d&&a.name===c.name),M.utils.isNullOrEmpty(a.extract)||(d=d&&a.extract===
c.extract));return d});b=b.concat(d)},this);return b};h.addKML=function(a){a.forEach(function(a){a.type!==M.layer.type.KML||M.utils.includes(this.layers_,a)||(a.getImpl().addTo(this.facadeMap_),this.layers_.push(a),null==a.getZIndex()&&a.setZIndex(this.layers_.length+M.impl.Map.Z_INDEX[M.layer.type.KML]))},this);return this};h.removeKML=function(a){this.getKML(a).forEach(function(a){this.layers_.remove(a);a.getImpl().destroy()},this);return this};h.getWMS=function(a){var b=[],c=this.layers_.filter(function(a){return a.type===
M.layer.type.WMS});M.utils.isNullOrEmpty(a)&&(a=[]);M.utils.isArray(a)||(a=[a]);0===a.length?b=c:a.forEach(function(a){var d=c.filter(function(c){var d=!0;b.includes(c)?d=!1:a instanceof M.layer.WMS?d=a===c:(M.utils.isNullOrEmpty(a.type)||(d=d&&a.type===c.type),M.utils.isNullOrEmpty(a.url)||(d=d&&a.url===c.url),M.utils.isNullOrEmpty(a.name)||(d=d&&a.name===c.name),M.utils.isNullOrEmpty(a.legend)||(d=d&&a.legend===c.legend),M.utils.isNullOrEmpty(a.transparent)||(d=d&&a.transparent===c.transparent),
M.utils.isNullOrEmpty(a.tiled)||(d=d&&a.tiled===c.tiled),M.utils.isNullOrEmpty(a.cql)||(d=d&&a.cql===c.cql),M.utils.isNullOrEmpty(a.version)||(d=d&&a.version===c.version));return d});b=b.concat(d)},this);return b};h.addWMS=function(a){var b=0<this.getBaseLayers().length;a.forEach(function(a){a.type!=M.layer.type.WMS||M.utils.includes(this.layers_,a)||(a.getImpl().addTo(this.facadeMap_),this.layers_.push(a),!0!==a.transparent?(a.setVisible(!b),b=!0,a.isVisible()&&this.updateResolutionsFromBaseLayer(),
a.setZIndex(M.impl.Map.Jn)):(null==a.getZIndex()&&a.setZIndex(this.layers_.length+M.impl.Map.Z_INDEX[M.layer.type.WMS]),b||this.updateResolutionsFromBaseLayer()))},this);return this};h.removeWMS=function(a){this.getWMS(a).forEach(function(a){this.layers_.remove(a);a.getImpl().destroy()},this);return this};h.getWFS=function(a){var b=[],c=this.layers_.filter(function(a){return a.type===M.layer.type.WFS});M.utils.isNullOrEmpty(a)&&(a=[]);M.utils.isArray(a)||(a=[a]);0===a.length?b=c:a.forEach(function(a){var d=
c.filter(function(c){var d=!0;b.includes(c)?d=!1:(M.utils.isNullOrEmpty(a.type)||(d=d&&a.type===c.type),M.utils.isNullOrEmpty(a.url)||(d=d&&a.url===c.url),M.utils.isNullOrEmpty(a.name)||(d=d&&a.name===c.name),M.utils.isNullOrEmpty(a.namespace)||(d=d&&a.namespace===c.namespace),M.utils.isNullOrEmpty(a.legend)||(d=d&&a.legend===c.legend),M.utils.isNullOrEmpty(a.cql)||(d=d&&a.cql===c.cql),M.utils.isNullOrEmpty(a.geometry)||(d=d&&a.geometry===c.geometry),M.utils.isNullOrEmpty(a.ids)||(d=d&&a.ids===c.ids),
M.utils.isNullOrEmpty(a.version)||(d=d&&a.version===c.version));return d});b=b.concat(d)},this);return b};h.addWFS=function(a){a.forEach(function(a){a.type!=M.layer.type.WFS||M.utils.includes(this.layers_,a)||(a.getImpl().addTo(this.facadeMap_),this.layers_.push(a),a.setZIndex(a.getZIndex()),null==a.getZIndex()&&a.setZIndex(this.layers_.length+M.impl.Map.Z_INDEX[M.layer.type.WFS]))},this);return this};h.removeWFS=function(a){this.getWFS(a).forEach(function(a){this.layers_.remove(a);a.getImpl().destroy()},
this);return this};h.getWMTS=function(a){var b=[],c=this.layers_.filter(function(a){return a.type===M.layer.type.WMTS});M.utils.isNullOrEmpty(a)&&(a=[]);M.utils.isArray(a)||(a=[a]);0===a.length?b=c:a.forEach(function(a){var d=c.filter(function(c){var d=!0;b.includes(c)?d=!1:(M.utils.isNullOrEmpty(a.type)||(d=d&&a.type===c.type),M.utils.isNullOrEmpty(a.url)||(d=d&&a.url===c.url),M.utils.isNullOrEmpty(a.name)||(d=d&&a.name===c.name),M.utils.isNullOrEmpty(a.matrixSet)||(d=d&&a.matrixSet===c.matrixSet),
M.utils.isNullOrEmpty(a.legend)||(d=d&&a.legend===c.legend));return d});b=b.concat(d)},this);return b};h.addWMTS=function(a){var b=0<this.getBaseLayers().length;a.forEach(function(a){a.type!=M.layer.type.WMTS||M.utils.includes(this.layers_,a)||(a.getImpl().addTo(this.facadeMap_),this.layers_.push(a),!0!==a.transparent?(a.setVisible(!b),b=!0,a.isVisible()&&this.updateResolutionsFromBaseLayer(),a.setZIndex(M.impl.iG.Jn)):(null==a.getZIndex()&&a.setZIndex(this.layers_.length+M.impl.Map.Z_INDEX[M.layer.type.WMTS]),
b||this.updateResolutionsFromBaseLayer()))},this);return this};h.removeWMTS=function(a){this.getWMTS(a).forEach(function(a){this.layers_.remove(a);a.getImpl().destroy()},this);return this};h.getMBtiles=function(){return[]};h.addMBtiles=function(a){a.forEach(function(a){a.type!=M.layer.type.MBtiles||M.utils.includes(this.layers_,a)||this.layers_.push(a)},this);return this};h.removeMBtiles=function(a){this.getMBtiles(a).forEach(function(a){this.layers_.remove(a)},this);return this};h.aA=function(a){var b=
[],c=this.layers_.filter(function(a){return!M.layer.type.qj(a.type)});M.utils.isNullOrEmpty(a)&&(a=[]);M.utils.isArray(a)||(a=[a]);0===a.length?b=c:a.forEach(function(a){var d=c.filter(function(c){var d=!0;b.includes(c)?d=!1:a instanceof M.Layer?d=a.equals(c):(M.utils.isNullOrEmpty(a.type)||(d=d&&a.type===c.type),M.utils.isNullOrEmpty(a.name)||(d=d&&a.name===c.name));return d});b=b.concat(d)},this);return b};h.By=function(a){var b=0<this.getBaseLayers().length;a.forEach(function(a){M.utils.includes(this.layers_,
a)||(a.getImpl().addTo(this.facadeMap_),this.layers_.push(a),!0!==a.transparent?(a.setVisible(!b),b=!0,a.isVisible()&&this.updateResolutionsFromBaseLayer(),a.setZIndex(M.impl.Map.Jn)):(a.setZIndex(a.getZIndex()),null==a.getZIndex()&&a.setZIndex(this.layers_.length+M.impl.Map.Z_INDEX[a.type]),b||this.updateResolutionsFromBaseLayer()))},this)};h.tD=function(a){a.forEach(function(a){M.utils.includes(this.layers_,a)&&(this.layers_.remove(a),a.getImpl().destroy(),!0!==a.transparent&&(a=this.facadeMap_.getBaseLayers(),
0<a.length&&a[0].setVisible(!0)))},this)};h.getControls=function(a){var b=[],c=this.facadeMap_.getPanels().map(function(a){return a.getControls()});0<c.length&&(c=c.reduce(function(a,b){return a.concat(b)}));var d=this.Bd.concat(c);M.utils.isNullOrEmpty(a)&&(a=[]);M.utils.isArray(a)||(a=[a]);0===a.length?b=d:a.forEach(function(a){b=b.concat(d.filter(function(c){var d=!1;M.utils.includes(b,c)||(M.utils.isString(a)?d=a===c.name:a instanceof M.Control?d=a===c:M.utils.isObject(a)&&(d=a.name===c.name));
return d}))},this);var e=[];b.forEach(function(a){e.map(function(a){return a.name}).includes(a.name)||e.push(a)});return e};h.addControls=function(a){a.forEach(function(a){a instanceof M.control.Panzoombar&&this.facadeMap_.addControls("panzoom");M.utils.includes(this.Bd,a)||this.Bd.push(a)},this);return this};h.removeControls=function(a){this.getControls(a).forEach(function(a){a.destroy();this.Bd.remove(a)},this);return this};h.setMaxExtent=function(a,b){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan maxExtent");
a=[a.x.min,a.y.min,a.x.max,a.y.max];this.getMapImpl().getView().set("extent",a);this.updateResolutionsFromBaseLayer();!1!==b&&this.setBbox(a);return this};h.getMaxExtent=function(){var a=this.getMapImpl().getView().get("extent");return M.utils.isNullOrEmpty(a)?this.Do:{x:{min:a[0],max:a[2]},y:{min:a[1],max:a[3]}}};h.setBbox=function(a,b){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan bbox");this.fr=a;var c;M.utils.isArray(a)?c=a:M.utils.isObject(a)&&(c=[a.x.min,a.y.min,a.x.max,
a.y.max]);this.getMapImpl().getView().fit(c,b);return this};h.getBbox=function(){var a=null,b=this.getMapImpl(),c=b.getView();M.utils.isNullOrEmpty(c.getCenter())||(b=c.calculateExtent(b.getSize()),M.utils.isNullOrEmpty(b)||(a={x:{min:b[0],max:b[2]},y:{min:b[1],max:b[3]}}));return a};h.setZoom=function(a){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan zoom");this.getMapImpl().getView().setUserZoom(a);return this};h.getZoom=function(){for(var a=this.getMapImpl().getView().getResolution(),
b=this.getResolutions(),c=null,d=0,e=b.length;d<e;d++)if(b[d]<=a){c=d;break}return c};h.setCenter=function(a){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ning\u00fan center");a=[a.x,a.y];var b=this.getMapImpl().getView(),c=b.getCenter();M.utils.isNullOrEmpty(c)||this.getMapImpl().getView().animate({duration:250,source:c});b.setCenter(a);return this};h.getCenter=function(){var a=null,b=this.getMapImpl().getView().getCenter();M.utils.isNullOrEmpty(b)||(a={x:b[0],y:b[1]});return a};h.getResolutions=
function(){return this.getMapImpl().getView().getResolutions()};h.setResolutions=function(a,b){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ninguna resoluci\u00f3n");M.utils.isNullOrEmpty(b)&&(this.gr=a);var c=H(this.getProjection().code);b=this.getMapImpl();var d=b.getView().getProperties(),e=b.getView().getUserZoom(),c=new M.impl.View({projection:c});c.setProperties(d);c.setResolutions(a);c.setUserZoom(e);b.setView(c);this.getWMS().forEach(function(b){b.getImpl().setResolutions(a)});
M.utils.isNullOrEmpty(this.fr)||this.facadeMap_.setBbox(this.fr,{nearest:!0});return this};h.getScale=function(){var a=this.getMapImpl().getView().getResolution(),b=this.getProjection().units,a=M.utils.getScaleFromResolution(a,b);M.utils.isNullOrEmpty(a)||(a=1E3<=a&&95E4>=a?1E3*Math.round(a/1E3):95E4<=a?1E6*Math.round(a/1E6):Math.round(a));return a};h.setProjection=function(a){M.utils.isNullOrEmpty(a)&&M.exception("No ha especificado ninguna projection");var b=H(a.code);M.utils.isNullOrEmpty(b)&&
(b=new Jf(a));var c=H(this.getProjection().code),d=this.facadeMap_.getBbox(),e=this.facadeMap_.getMaxExtent(),f=this.facadeMap_.getCenter(),g=this.facadeMap_.getResolutions(),k=this.getMapImpl(),l=k.getView().getProperties(),m=k.getView().getUserZoom(),n=k.getView().getResolution(),q=new M.impl.View({projection:b});q.setProperties(l);q.setUserZoom(m);M.utils.isNullOrEmpty(g)||q.setResolutions(g);M.utils.isNullOrEmpty(n)||q.setResolution(n);k.setView(q);this.facadeMap_.getWMS().forEach(function(b){b.updateMinMaxResolution(a)});
M.utils.isNullOrEmpty(e)||(M.utils.isArray(e)||(e=[e.x.min,e.y.min,e.x.max,e.y.max]),this.facadeMap_.setMaxExtent(fg(e,c,b)));M.utils.isNullOrEmpty(d)||(M.utils.isArray(d)||(d=[d.x.min,d.y.min,d.x.max,d.y.max]),this.facadeMap_.setBbox(fg(d,c,b),{nearest:!0}));M.utils.isNullOrEmpty(f)||(d=!1,M.utils.isNullOrEmpty(this.facadeMap_.Tg)||(d=!0),this.facadeMap_.setCenter(eg([f.x,f.y],c,b)+"*"+d));this.updateResolutionsFromBaseLayer();f=this.facadeMap_.getPopup();M.utils.isNullOrEmpty(f)||(d=f.getCoordinate(),
M.utils.isNullOrEmpty(d)||(d=eg(d,c,b),f.setCoordinate(d)));f=this.facadeMap_.getLabel();M.utils.isNullOrEmpty(f)||(d=f.getCoordinate(),M.utils.isNullOrEmpty(d)||(d=eg(d,c,b),f.setCoordinate(d)));this.fire(M.evt.CHANGE);return this};h.getProjection=function(){var a=this.getMapImpl().getView().getProjection(),b=null;M.utils.isNullOrEmpty(a)||(b={code:a.getCode(),units:a.getUnits()});return b};h.getMapImpl=function(){return this.map_};h.removePopup=function(a){M.utils.isNullOrEmpty(a)||(a=a.getImpl(),
this.getMapImpl().removeOverlay(a));return this};h.getEnvolvedExtent=function(){return M.impl.envolvedExtent.calculate(this).then(function(a){return this.Do=a}.bind(this))};h.destroy=function(){this.layers_.length=0;this.Bd.length=0;this.options_=this.Fa=null;this.map_.setTarget(null);this.map_=null};h.updateResolutionsFromBaseLayer=function(){var a=[],b=16,c=this.getProjection().units,d=this.getMapImpl().getSize(),e=this.getBaseLayers().filter(function(a){return a.isVisible()})[0],f=null,g=null;
M.utils.isNullOrEmpty(e)||(g=e.getImpl().getMinResolution(),f=e.getImpl().getMaxResolution(),b=e.getImpl().getNumZoomLevels());null===this.gr&&(M.utils.isNullOrEmpty(g)||M.utils.isNullOrEmpty(f)?M.impl.envolvedExtent.calculate(this).then(function(e){this.Pr||null!==this.gr||(a=M.utils.generateResolutionsFromExtent(e,d,b,c),this.setResolutions(a,!0),!1===this.Ak&&(this.Ak=!0,this.fire(M.evt.COMPLETED)))}.bind(this)):(a=M.utils.fillResolutions(g,f,b),this.setResolutions(a,!0),this.Pr=!0,!1===this.Ak&&
(this.Ak=!0,this.fire(M.evt.COMPLETED))))};h.addLabel=function(a){this.label=a;a.show(this.facadeMap_);return this};h.getLabel=function(){return this.label};h.removeLabel=function(){if(!M.utils.isNullOrEmpty(this.label)){var a=this.label.getPopup();this.removePopup(a);this.label=null}};h.refresh=function(){this.map_.updateSize();return this};h.getContainer=function(){return this.map_.yg};h.setFacadeMap=function(a){this.facadeMap_=a};h.Ou=function(a){var b=a.pixel,c=this.map_.getCoordinateFromPixel(b),
d=this.facadeMap_.getLabel();M.utils.isNullOrEmpty(d)||d.hide();this.facadeMap_.fire(M.evt.CLICK,[{pixel:b,coord:c,vendor:a}])};h.gC=function(a){var b=a.pixel,c=this.map_.getCoordinateFromPixel(b);this.facadeMap_.fire(M.evt.MOVE,[{pixel:b,coord:c,vendor:a}])};M.impl.Map.Z_INDEX={};M.impl.Map.Jn=0;M.impl.Map.Z_INDEX[M.layer.type.WMC]=1;M.impl.Map.Z_INDEX[M.layer.type.WMS]=1E3;M.impl.Map.Z_INDEX[M.layer.type.WMTS]=2E3;M.impl.Map.Z_INDEX[M.layer.type.OSM]=2E3;M.impl.Map.Z_INDEX[M.layer.type.KML]=3E3;
M.impl.Map.Z_INDEX[M.layer.type.WFS]=9999;M.impl.Map.Z_INDEX[M.layer.type.Vector]=9999;M.impl.Map.Z_INDEX[M.layer.type.GeoJSON]=9999;function ew(a){a=a?a:{};this.Xk=void 0!==a.className?a.className:"ol-full-screen";var b=void 0!==a.label?a.label:"\u2922";this.xp="string"===typeof b?document.createTextNode(b):b;b=void 0!==a.labelActive?a.labelActive:"\u00d7";this.Tt="string"===typeof b?document.createTextNode(b):b;var c=a.tipLabel?a.tipLabel:"Toggle full-screen",b=document.createElement("button");
b.className=this.Xk+"-"+fw();b.setAttribute("type","button");b.title=c;b.appendChild(this.xp);G(b,Ce.CLICK,this.Gc,this);c=document.createElement("div");c.className=this.Xk+" ol-unselectable ol-control "+(gw()?"":"ol-unsupported");c.appendChild(b);Ke.call(this,{element:c,target:a.target});this.vh=void 0!==a.keys?a.keys:!1;this.O=a.source}A(ew,Ke);ew.prototype.Gc=function(a){a.preventDefault();gw()&&(a=this.getMap())&&(fw()?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?
document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():(a=this.O?"string"===typeof this.O?document.getElementById(this.O):this.O:a.getTargetElement(),this.vh?a.mozRequestFullScreenWithKeys?a.mozRequestFullScreenWithKeys():a.webkitRequestFullscreen?a.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):hw(a):hw(a)))};ew.prototype.oA=function(){var a=this.element.firstElementChild,b=this.getMap();fw()?(a.className=
this.Xk+"-true",Id(this.Tt,this.xp)):(a.className=this.Xk+"-false",Id(this.xp,this.Tt));b&&b.updateSize()};ew.prototype.setMap=function(a){Ke.prototype.setMap.call(this,a);a&&this.sg.push(G(document,iw(),this.oA,this))};function gw(){var a=document.body;return!!(a.webkitRequestFullscreen||a.mozRequestFullScreen&&document.mozFullScreenEnabled||a.msRequestFullscreen&&document.msFullscreenEnabled||a.requestFullscreen&&document.fullscreenEnabled)}function fw(){return!!(document.webkitIsFullScreen||document.mozFullScreen||
document.msFullscreenElement||document.fullscreenElement)}function hw(a){a.requestFullscreen?a.requestFullscreen():a.msRequestFullscreen?a.msRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullscreen&&a.webkitRequestFullscreen()}var iw=function(){var a;return function(){if(!a){var b=document.body;b.webkitRequestFullscreen?a="webkitfullscreenchange":b.mozRequestFullScreen?a="mozfullscreenchange":b.msRequestFullscreen?a="MSFullscreenChange":b.requestFullscreen&&(a=
"fullscreenchange")}return a}}();function jw(a){a=a?a:{};this.extent_=a.extent?a.extent:null;var b=void 0!==a.className?a.className:"ol-zoom-extent",c=void 0!==a.label?a.label:"E",d=void 0!==a.tipLabel?a.tipLabel:"Fit to extent",e=document.createElement("button");e.setAttribute("type","button");e.title=d;e.appendChild("string"===typeof c?document.createTextNode(c):c);G(e,Ce.CLICK,this.Gc,this);c=document.createElement("div");c.className=b+" ol-unselectable ol-control";c.appendChild(e);Ke.call(this,
{element:c,target:a.target})}A(jw,Ke);jw.prototype.Gc=function(a){a.preventDefault();a=this.getMap().getView();var b=this.extent_?this.extent_:a.getProjection().getExtent();a.fit(b)};function kw(a){Ge.call(this);a=a?a:{};this.uc=null;G(this,Ie(lw),this.mp,this);this.setTracking(void 0!==a.tracking?a.tracking:!1)}A(kw,Ge);h=kw.prototype;h.T=function(){this.setTracking(!1);Ge.prototype.T.call(this)};h.mC=function(a){if(null!==a.alpha){var b=xd(a.alpha);this.set(mw,b);"boolean"===typeof a.absolute&&
a.absolute?this.set(nw,b):"number"===typeof a.webkitCompassHeading&&-1!=a.webkitCompassAccuracy&&this.set(nw,xd(a.webkitCompassHeading))}null!==a.beta&&this.set(ow,xd(a.beta));null!==a.gamma&&this.set(pw,xd(a.gamma));this.changed()};h.getAlpha=function(){return this.get(mw)};h.getBeta=function(){return this.get(ow)};h.getGamma=function(){return this.get(pw)};h.getHeading=function(){return this.get(nw)};h.getTracking=function(){return this.get(lw)};h.mp=function(){if(Vd){var a=this.getTracking();a&&
!this.uc?this.uc=G(window,"deviceorientation",this.mC,this):a||null===this.uc||(qe(this.uc),this.uc=null)}};h.setTracking=function(a){this.set(lw,a)};var mw="alpha",ow="beta",pw="gamma",nw="heading",lw="tracking";function qw(a){a=a?a:{};hg.call(this);this.Xa=a.geometryName}A(qw,Qn);function rw(a,b){if(!a)return null;var c;if("number"===typeof a.x&&"number"===typeof a.y)c="Point";else if(a.points)c="MultiPoint";else if(a.paths)c=1===a.paths.length?"LineString":"MultiLineString";else if(a.rings){var d=
a.rings,e=sw(a),f=[],g=[];c=[];var k,l;k=0;for(l=d.length;k<l;++k)f.length=0,I.a.Hb.coordinates(f,0,d[k],e.length),I.a.gb.qg(f,0,f.length,e.length)?g.push([d[k]]):c.push(d[k]);for(;c.length;){d=c.shift();e=!1;for(k=g.length-1;0<=k;k--)if(ef((new Tg(g[k][0])).getExtent(),(new Tg(d)).getExtent())){g[k].push(d);e=!0;break}e||g.push([d.reverse()])}a=le({},a);1===g.length?(c="Polygon",a.rings=g[0]):(c="MultiPolygon",a.rings=g)}return kg((0,tw[c])(a),!1,b)}function sw(a){var b="XY";!0===a.hasZ&&!0===a.hasM?
b="XYZM":!0===a.hasZ?b="XYZ":!0===a.hasM&&(b="XYM");return b}function uw(a){a=a.getLayout();return{hasZ:"XYZ"===a||"XYZM"===a,hasM:"XYM"===a||"XYZM"===a}}var tw={Point:function(a){return void 0!==a.m&&void 0!==a.z?new F([a.x,a.y,a.z,a.m],"XYZM"):void 0!==a.z?new F([a.x,a.y,a.z],"XYZ"):void 0!==a.m?new F([a.x,a.y,a.m],"XYM"):new F([a.x,a.y])},LineString:function(a){return new P(a.paths[0],sw(a))},Polygon:function(a){return new R(a.rings,sw(a))},MultiPoint:function(a){return new Wg(a.points,sw(a))},
MultiLineString:function(a){return new Q(a.paths,sw(a))},MultiPolygon:function(a){return new S(a.rings,sw(a))}},vw={Point:function(a){var b=a.getCoordinates(),c;a=a.getLayout();"XYZ"===a?c={x:b[0],y:b[1],z:b[2]}:"XYM"===a?c={x:b[0],y:b[1],m:b[2]}:"XYZM"===a?c={x:b[0],y:b[1],z:b[2],m:b[3]}:"XY"===a?c={x:b[0],y:b[1]}:qd(!1,34);return c},LineString:function(a){var b=uw(a);return{hasZ:b.hasZ,hasM:b.hasM,paths:[a.getCoordinates()]}},Polygon:function(a){var b=uw(a);return{hasZ:b.hasZ,hasM:b.hasM,rings:a.getCoordinates(!1)}},
MultiPoint:function(a){var b=uw(a);return{hasZ:b.hasZ,hasM:b.hasM,points:a.getCoordinates()}},MultiLineString:function(a){var b=uw(a);return{hasZ:b.hasZ,hasM:b.hasM,paths:a.getCoordinates()}},MultiPolygon:function(a){var b=uw(a);a=a.getCoordinates(!1);for(var c=[],d=0;d<a.length;d++)for(var e=a[d].length-1;0<=e;e--)c.push(a[d][e]);return{hasZ:b.hasZ,hasM:b.hasM,rings:c}}};h=qw.prototype;h.wf=function(a,b){var c=rw(a.geometry,b),d=new E;this.Xa&&d.setGeometryName(this.Xa);d.setGeometry(c);b&&b.rp&&
a.attributes[b.rp]&&d.setId(a.attributes[b.rp]);a.attributes&&d.setProperties(a.attributes);return d};h.aq=function(a,b){b=b?b:{};if(a.features){var c=[],d=a.features,e;b.rp=a.objectIdFieldName;a=0;for(e=d.length;a<e;++a)c.push(this.wf(d[a],b));return c}return[this.wf(a,b)]};h.Am=function(a,b){return rw(a,b)};h.Pj=function(a){return a.spatialReference&&a.spatialReference.wkid?H("EPSG:"+a.spatialReference.wkid):null};function ww(a,b){return(0,vw[a.getType()])(kg(a,!0,b),b)}h.writeGeometryObject=function(a,
b){return ww(a,jg(this,b))};h.writeFeatureObject=function(a,b){b=jg(this,b);var c={},d=a.getGeometry();d&&(c.geometry=ww(d,b));d=a.getProperties();delete d[a.getGeometryName()];c.attributes=oe(d)?{}:d;b&&b.featureProjection&&(c.spatialReference={wkid:H(b.featureProjection).getCode().split(":").pop()});return c};h.writeFeaturesObject=function(a,b){b=jg(this,b);var c=[],d,e;d=0;for(e=a.length;d<e;++d)c.push(this.writeFeatureObject(a[d],b));return{features:c}};function xw(a){a=a?a:{};dh.call(this,a);
this.Kf["http://www.opengis.net/gml"].featureMember=Bg(dh.prototype.Nj);this.schemaLocation=a.schemaLocation?a.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd"}A(xw,dh);h=xw.prototype;h.pv=function(a,b){var c=vg(a,!1).replace(/^\s*|\s*$/g,""),d=b[0].srsName,e=a.parentNode.getAttribute("srsDimension");b="enu";d&&(d=H(d))&&(b=d.ge);c=c.split(/[\s,]+/);d=2;a.getAttribute("srsDimension")?d=mh(a.getAttribute("srsDimension")):a.getAttribute("dimension")?d=mh(a.getAttribute("dimension")):
e&&(d=mh(e));for(var f,g=[],k=0,l=c.length;k<l;k+=d)a=parseFloat(c[k]),e=parseFloat(c[k+1]),f=3===d?parseFloat(c[k+2]):0,"en"===b.substr(0,2)?g.push(a,e,f):g.push(e,a,f);return g};h.VC=function(a,b){a=O([null],this.ax,a,b,this);return gf(a[1][0],a[1][1],a[1][3],a[1][4])};h.eB=function(a,b){(a=O(void 0,this.yk,a,b,this))&&b[b.length-1].push(a)};h.oC=function(a,b){(a=O(void 0,this.yk,a,b,this))&&(b[b.length-1][0]=a)};h.wk={"http://www.opengis.net/gml":{coordinates:Cg(xw.prototype.pv)}};h.Fn={"http://www.opengis.net/gml":{innerBoundaryIs:xw.prototype.eB,
outerBoundaryIs:xw.prototype.oC}};h.ax={"http://www.opengis.net/gml":{coordinates:Bg(xw.prototype.pv)}};h.zr={"http://www.opengis.net/gml":{Point:Cg(dh.prototype.vv),MultiPoint:Cg(dh.prototype.tv),LineString:Cg(dh.prototype.Bm),MultiLineString:Cg(dh.prototype.sv),LinearRing:Cg(dh.prototype.rv),Polygon:Cg(dh.prototype.Cm),MultiPolygon:Cg(dh.prototype.uv),Box:Cg(xw.prototype.VC)}};function yw(a){a=a?a:{};Lg.call(this);this.defaultDataProjection=H("EPSG:4326");this.ov=a.readExtensions}A(yw,Lg);var zw=
[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function Aw(a,b,c,d){a.push(parseFloat(c.getAttribute("lon")),parseFloat(c.getAttribute("lat")));"ele"in d?(a.push(d.ele),delete d.ele,b.hasZ=!0):a.push(0);"time"in d?(a.push(d.time),delete d.time,b.hasM=!0):a.push(0);return a}function Bw(a,b,c){var d="XY",e=2;a.hasZ&&a.hasM?(d="XYZM",e=4):a.hasZ?(d="XYZ",e=3):a.hasM&&(d="XYM",e=3);if(4!==e){var f,g;f=0;for(g=b.length/4;f<g;f++)b[f*e]=b[4*f],b[f*e+1]=b[4*f+1],a.hasZ&&(b[f*
e+2]=b[4*f+2]),a.hasM&&(b[f*e+2]=b[4*f+3]);b.length=b.length/4*e;if(c)for(f=0,g=c.length;f<g;f++)c[f]=c[f]/4*e}return d}function Cw(a,b){var c=b[b.length-1],d=a.getAttribute("href");null!==d&&(c.link=d);Jg(Dw,a,b)}function Ew(a,b){b[b.length-1].extensionsNode_=a}function Fw(a,b){var c=b[0];if(a=O({flatCoordinates:[],layoutOptions:{}},Gw,a,b)){b=a.flatCoordinates;delete a.flatCoordinates;var d=a.layoutOptions;delete a.layoutOptions;var d=Bw(d,b),e=new P(null);e.u(d,b);kg(e,!1,c);c=new E(e);c.setProperties(a);
return c}}function Hw(a,b){var c=b[0];if(a=O({flatCoordinates:[],ends:[],layoutOptions:{}},Iw,a,b)){b=a.flatCoordinates;delete a.flatCoordinates;var d=a.ends;delete a.ends;var e=a.layoutOptions;delete a.layoutOptions;var e=Bw(e,b,d),f=new Q(null);f.u(e,b,d);kg(f,!1,c);c=new E(f);c.setProperties(a);return c}}function Jw(a,b){var c=b[0];if(b=O({},Kw,a,b)){var d={};a=Aw([],d,a,b);d=Bw(d,a);a=new F(a,d);kg(a,!1,c);c=new E(a);c.setProperties(b);return c}}var Lw={rte:Fw,trk:Hw,wpt:Jw},Mw=N(zw,{rte:Bg(Fw),
trk:Bg(Hw),wpt:Bg(Jw)}),Dw=N(zw,{text:K(T,"linkText"),type:K(T,"linkType")}),Gw=N(zw,{name:K(T),cmt:K(T),desc:K(T),src:K(T),link:Cw,number:K(lh),extensions:Ew,type:K(T),rtept:function(a,b){var c=O({},Nw,a,b);c&&(b=b[b.length-1],Aw(b.flatCoordinates,b.layoutOptions,a,c))}}),Nw=N(zw,{ele:K(jh),time:K(ih)}),Iw=N(zw,{name:K(T),cmt:K(T),desc:K(T),src:K(T),link:Cw,number:K(lh),type:K(T),extensions:Ew,trkseg:function(a,b){var c=b[b.length-1];Jg(Ow,a,b);c.ends.push(c.flatCoordinates.length)}}),Ow=N(zw,{trkpt:function(a,
b){var c=O({},Pw,a,b);c&&(b=b[b.length-1],Aw(b.flatCoordinates,b.layoutOptions,a,c))}}),Pw=N(zw,{ele:K(jh),time:K(ih)}),Kw=N(zw,{ele:K(jh),time:K(ih),magvar:K(jh),geoidheight:K(jh),name:K(T),cmt:K(T),desc:K(T),src:K(T),link:Cw,sym:K(T),type:K(T),fix:K(T),sat:K(lh),hdop:K(jh),vdop:K(jh),pdop:K(jh),ageofdgpsdata:K(jh),dgpsid:K(lh),extensions:Ew});function Qw(a,b){b||(b=[]);for(var c=0,d=b.length;c<d;++c){var e=b[c];if(a.ov){var f=e.get("extensionsNode_")||null;a.ov(e,f)}e.set("extensionsNode_",void 0)}}
yw.prototype.$p=function(a,b){if(!Me(zw,a.namespaceURI))return null;var c=Lw[a.localName];if(!c)return null;a=c(a,[ig(this,a,b)]);if(!a)return null;Qw(this,[a]);return a};yw.prototype.xf=function(a,b){return Me(zw,a.namespaceURI)?"gpx"==a.localName&&(a=O([],Mw,a,[ig(this,a,b)]))?(Qw(this,a),a):[]:[]};function Rw(a,b,c){a.setAttribute("href",b);b=c[c.length-1].properties;Kg({node:a},Sw,Hg,[b.linkText,b.linkType],c,Tw)}function Uw(a,b,c){var d=c[c.length-1],e=d.node.namespaceURI,f=d.properties;a.setAttributeNS(null,
"lat",b[1]);a.setAttributeNS(null,"lon",b[0]);switch(d.geometryLayout){case "XYZM":0!==b[3]&&(f.time=b[3]);case "XYZ":0!==b[2]&&(f.ele=b[2]);break;case "XYM":0!==b[2]&&(f.time=b[2])}b="rtept"==a.nodeName?Vw[e]:Ww[e];d=Ig(f,b);Kg({node:a,properties:f},Xw,Hg,d,c,b)}var Tw=["text","type"],Sw=N(zw,{text:L(oh),type:L(oh)}),Yw=N(zw,"name cmt desc src link number type rtept".split(" ")),Zw=N(zw,{name:L(oh),cmt:L(oh),desc:L(oh),src:L(oh),link:L(Rw),number:L(qh),type:L(oh),rtept:Eg(L(Uw))}),Vw=N(zw,["ele",
"time"]),$w=N(zw,"name cmt desc src link number type trkseg".split(" ")),cx=N(zw,{name:L(oh),cmt:L(oh),desc:L(oh),src:L(oh),link:L(Rw),number:L(qh),type:L(oh),trkseg:Eg(L(function(a,b,c){a={node:a,geometryLayout:b.getLayout(),properties:{}};Kg(a,ax,bx,b.getCoordinates(),c)}))}),bx=Fg("trkpt"),ax=N(zw,{trkpt:L(Uw)}),Ww=N(zw,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),Xw=N(zw,{ele:L(ph),time:L(function(a,b){b=new Date(1E3*b);
b=b.getUTCFullYear()+"-"+fh(b.getUTCMonth()+1)+"-"+fh(b.getUTCDate())+"T"+fh(b.getUTCHours())+":"+fh(b.getUTCMinutes())+":"+fh(b.getUTCSeconds())+"Z";a.appendChild(tg.createTextNode(b))}),magvar:L(ph),geoidheight:L(ph),name:L(oh),cmt:L(oh),desc:L(oh),src:L(oh),link:L(Rw),sym:L(oh),type:L(oh),fix:L(oh),sat:L(qh),hdop:L(ph),vdop:L(ph),pdop:L(ph),ageofdgpsdata:L(ph),dgpsid:L(qh)}),dx={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function ex(a,b){if(a=a.getGeometry())if(a=dx[a.getType()])return ug(b[b.length-
1].node.namespaceURI,a)}var fx=N(zw,{rte:L(function(a,b,c){var d=c[0],e=b.getProperties();a={node:a,properties:e};if(b=b.getGeometry())b=kg(b,!0,d),a.geometryLayout=b.getLayout(),e.rtept=b.getCoordinates();d=Yw[c[c.length-1].node.namespaceURI];e=Ig(e,d);Kg(a,Zw,Hg,e,c,d)}),trk:L(function(a,b,c){var d=c[0],e=b.getProperties();a={node:a,properties:e};if(b=b.getGeometry())b=kg(b,!0,d),e.trkseg=b.getLineStrings();d=$w[c[c.length-1].node.namespaceURI];e=Ig(e,d);Kg(a,cx,Hg,e,c,d)}),wpt:L(function(a,b,c){var d=
c[0],e=c[c.length-1];e.properties=b.getProperties();if(b=b.getGeometry())b=kg(b,!0,d),e.geometryLayout=b.getLayout(),Uw(a,b.getCoordinates(),c)})});yw.prototype.writeFeaturesNode=function(a,b){b=jg(this,b);var c=ug("http://www.topografix.com/GPX/1/1","gpx");c.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance");c.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd");
c.setAttribute("version","1.1");c.setAttribute("creator","OpenLayers");Kg({node:c},fx,ex,a,[b]);return c};function gx(a){a=a?a:{};hg.call(this);this.defaultDataProjection=H("EPSG:4326");this.Cy=a.altitudeMode?a.altitudeMode:"none"}A(gx,Cq);var hx=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,ix=/^H.([A-Z]{3}).*?:(.*)/,jx=/^HFDTE(\d{2})(\d{2})(\d{2})/,kx=/\r\n|\r|\n/;h=gx.prototype;h.Mj=function(a,b){var c=this.Cy,d=a.split(kx);a={};var e=[],f=2E3,g=0,k=1,l=
-1,m,n;m=0;for(n=d.length;m<n;++m){var q=d[m],r;if("B"==q.charAt(0)){if(r=hx.exec(q)){var q=parseInt(r[1],10),t=parseInt(r[2],10),u=parseInt(r[3],10),y=parseInt(r[4],10)+parseInt(r[5],10)/6E4;"S"==r[6]&&(y=-y);var z=parseInt(r[7],10)+parseInt(r[8],10)/6E4;"W"==r[9]&&(z=-z);e.push(z,y);"none"!=c&&e.push("gps"==c?parseInt(r[11],10):"barometric"==c?parseInt(r[12],10):0);r=Date.UTC(f,g,k,q,t,u);r<l&&(r=Date.UTC(f,g,k+1,q,t,u));e.push(r/1E3);l=r}}else"H"==q.charAt(0)&&((r=jx.exec(q))?(k=parseInt(r[1],
10),g=parseInt(r[2],10)-1,f=2E3+parseInt(r[3],10)):(r=ix.exec(q))&&(a[r[1]]=r[2].trim()))}if(0===e.length)return null;d=new P(null);d.u("none"==c?"XYM":"XYZM",e);b=new E(kg(d,!1,b));b.setProperties(a);return b};h.bq=function(a,b){return(a=this.Mj(a,b))?[a]:[]};h.sk=function(){};h.kr=function(){};h.Ng=function(){};h.Ph=function(){};(function(){var a={},b={v:a};(function(c){"object"===typeof a&&"undefined"!==typeof b?b.v=c():("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==
typeof self?self:this).RI=c()})(function(){return function(){function a(b,c,f){function d(g,k){if(!c[g]){if(!b[g]){var l="function"==typeof require&&require;if(!k&&l)return l(g,!0);if(e)return e(g,!0);k=Error("Cannot find module '"+g+"'");throw k.code="MODULE_NOT_FOUND",k;}k=c[g]={v:{}};b[g][0].call(k.v,function(a){return d(b[g][1][a]||a)},k,k.v,a,b,c,f)}return c[g].v}for(var e="function"==typeof require&&require,l=0;l<f.length;l++)d(f[l]);return d}return a}()({1:[function(a,b){function c(a){this.wd=
ArrayBuffer.isView&&ArrayBuffer.isView(a)?a:new Uint8Array(a||0);this.type=this.I=0;this.length=this.wd.length}function d(a,b,c){var d=c.wd,e,f;f=d[c.I++];e=(f&112)>>4;if(128>f)return g(a,e,b);f=d[c.I++];e|=(f&127)<<3;if(128>f)return g(a,e,b);f=d[c.I++];e|=(f&127)<<10;if(128>f)return g(a,e,b);f=d[c.I++];e|=(f&127)<<17;if(128>f)return g(a,e,b);f=d[c.I++];e|=(f&127)<<24;if(128>f)return g(a,e,b);f=d[c.I++];if(128>f)return g(a,e|(f&1)<<31,b);throw Error("Expected varint not more than 10 bytes");}function g(a,
b,c){return c?4294967296*b+(a>>>0):4294967296*(b>>>0)+(a>>>0)}b.v=c;var k=a("ieee754");c.by=0;c.mx=1;c.bx=2;c.lx=5;c.prototype={destroy:function(){this.wd=null},cq:function(a,b,c){for(c=c||this.length;this.I<c;){var d=this.Sa(),e=d>>3,f=this.I;this.type=d&7;a(e,b,this);this.I===f&&this.XD(d)}return b},$C:function(){var a=k.read(this.wd,this.I,!0,23,4);this.I+=4;return a},WC:function(){var a=k.read(this.wd,this.I,!0,52,8);this.I+=8;return a},Sa:function(a){var b=this.wd,c,e;e=b[this.I++];c=e&127;if(128>
e)return c;e=b[this.I++];c|=(e&127)<<7;if(128>e)return c;e=b[this.I++];c|=(e&127)<<14;if(128>e)return c;e=b[this.I++];c|=(e&127)<<21;if(128>e)return c;e=b[this.I];return d(c|(e&15)<<28,a,this)},kD:function(){return this.Sa(!0)},Qj:function(){var a=this.Sa();return 1===a%2?(a+1)/-2:a/2},TC:function(){return!!this.Sa()},jq:function(){for(var a=this.Sa()+this.I,b=this.wd,c="",d=this.I;d<a;){var e=b[d],f=null,g=239<e?4:223<e?3:191<e?2:1;if(d+g>a)break;var k,z,B;if(1===g)128>e&&(f=e);else if(2===g)k=b[d+
1],128===(k&192)&&(f=(e&31)<<6|k&63,127>=f&&(f=null));else if(3===g){if(k=b[d+1],z=b[d+2],128===(k&192)&&128===(z&192)&&(f=(e&15)<<12|(k&63)<<6|z&63,2047>=f||55296<=f&&57343>=f))f=null}else 4===g&&(k=b[d+1],z=b[d+2],B=b[d+3],128===(k&192)&&128===(z&192)&&128===(B&192)&&(f=(e&15)<<18|(k&63)<<12|(z&63)<<6|B&63,65535>=f||1114112<=f))&&(f=null);null===f?(f=65533,g=1):65535<f&&(f-=65536,c+=String.fromCharCode(f>>>10&1023|55296),f=56320|f&1023);c+=String.fromCharCode(f);d+=g}this.I=a;return c},XD:function(a){a&=
7;if(a===c.by)for(;127<this.wd[this.I++];);else if(a===c.bx)this.I=this.Sa()+this.I;else if(a===c.lx)this.I+=4;else if(a===c.mx)this.I+=8;else throw Error("Unimplemented type: "+a);},finish:function(){this.length=this.I;this.I=0;return this.wd.subarray(0,this.length)}}},{ieee754:2}],2:[function(a,b,e){e.read=function(a,b,c,d,e){var f;f=8*e-d-1;var g=(1<<f)-1,k=g>>1,l=-7;e=c?e-1:0;var m=c?-1:1,y=a[b+e];e+=m;c=y&(1<<-l)-1;y>>=-l;for(l+=f;0<l;c=256*c+a[b+e],e+=m,l-=8);f=c&(1<<-l)-1;c>>=-l;for(l+=d;0<
l;f=256*f+a[b+e],e+=m,l-=8);if(0===c)c=1-k;else{if(c===g)return f?NaN:Infinity*(y?-1:1);f+=Math.pow(2,d);c-=k}return(y?-1:1)*f*Math.pow(2,c-d)};e.write=function(a,b,c,d,e,n){var f,g=8*n-e-1,k=(1<<g)-1,l=k>>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0;n=d?0:n-1;var z=d?1:-1,B=0>b||0===b&&0>1/b?1:0;b=Math.abs(b);isNaN(b)||Infinity===b?(b=isNaN(b)?1:0,d=k):(d=Math.floor(Math.log(b)/Math.LN2),1>b*(f=Math.pow(2,-d))&&(d--,f*=2),b=1<=d+l?b+m/f:b+m*Math.pow(2,1-l),2<=b*f&&(d++,f/=2),d+l>=k?(b=0,d=k):1<=
d+l?(b=(b*f-1)*Math.pow(2,e),d+=l):(b=b*Math.pow(2,l-1)*Math.pow(2,e),d=0));for(;8<=e;a[c+n]=b&255,n+=z,b/=256,e-=8);d=d<<e|b;for(g+=e;0<g;a[c+n]=d&255,n+=z,d/=256,g-=8);a[c+n-z]|=128*B}},{}]},{},[1])(1)});zm=b.v})();(function(){var a={},b={v:a};(function(c){"object"===typeof a&&"undefined"!==typeof b?b.v=c():("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).BJ=c()})(function(){return function(){function a(b,c,f){function d(g,k){if(!c[g]){if(!b[g]){var l=
"function"==typeof require&&require;if(!k&&l)return l(g,!0);if(e)return e(g,!0);k=Error("Cannot find module '"+g+"'");throw k.code="MODULE_NOT_FOUND",k;}k=c[g]={v:{}};b[g][0].call(k.v,function(a){return d(b[g][1][a]||a)},k,k.v,a,b,c,f)}return c[g].v}for(var e="function"==typeof require&&require,l=0;l<f.length;l++)d(f[l]);return d}return a}()({1:[function(a,b){b.v.VectorTile=a("./lib/vectortile.js");b.v.rH=a("./lib/vectortilefeature.js");b.v.VectorTileLayer=a("./lib/vectortilelayer.js")},{"./lib/vectortile.js":2,
"./lib/vectortilefeature.js":3,"./lib/vectortilelayer.js":4}],2:[function(a,b){function c(a,b,c){3===a&&(a=new d(c,c.Sa()+c.I),a.length&&(b[a.name]=a))}var d=a("./vectortilelayer");b.v=function(a,b){this.layers=a.cq(c,{},b)}},{"./vectortilelayer":4}],3:[function(a,b){function c(a,b,c,e,f){this.properties={};this.extent=c;this.type=0;this.Lf=a;this.On=-1;this.Ck=e;this.Ek=f;a.cq(d,this,b)}function d(a,b,c){if(1==a)b.id=c.Sa();else if(2==a)for(a=c.Sa()+c.I;c.I<a;){var d=b.Ck[c.Sa()],e=b.Ek[c.Sa()];
b.properties[d]=e}else 3==a?b.type=c.Sa():4==a&&(b.On=c.I)}var g=a("point-geometry");b.v=c;c.types=["Unknown","Point","LineString","Polygon"];c.prototype.fu=function(){var a=this.Lf;a.I=this.On;for(var b=a.Sa()+a.I,c=1,d=0,e=0,f=0,t=[],u;a.I<b;)if(d||(d=a.Sa(),c=d&7,d>>=3),d--,1===c||2===c)e+=a.Qj(),f+=a.Qj(),1===c&&(u&&t.push(u),u=[]),u.push(new g(e,f));else if(7===c)u&&u.push(u[0].clone());else throw Error("unknown command "+c);u&&t.push(u);return t};c.prototype.bbox=function(){var a=this.Lf;a.I=
this.On;for(var b=a.Sa()+a.I,c=1,d=0,e=0,f=0,g=Infinity,u=-Infinity,y=Infinity,z=-Infinity;a.I<b;)if(d||(d=a.Sa(),c=d&7,d>>=3),d--,1===c||2===c)e+=a.Qj(),f+=a.Qj(),e<g&&(g=e),e>u&&(u=e),f<y&&(y=f),f>z&&(z=f);else if(7!==c)throw Error("unknown command "+c);return[g,y,u,z]}},{"point-geometry":5}],4:[function(a,b){function c(a,b){this.version=1;this.name=null;this.extent=4096;this.length=0;this.Lf=a;this.Ck=[];this.Ek=[];this.Bk=[];a.cq(d,this,b);this.length=this.Bk.length}function d(a,b,c){15===a?b.version=
c.Sa():1===a?b.name=c.jq():5===a?b.extent=c.Sa():2===a?b.Bk.push(c.I):3===a?b.Ck.push(c.jq()):4===a&&b.Ek.push(g(c))}function g(a){for(var b=null,c=a.Sa()+a.I;a.I<c;)b=a.Sa()>>3,b=1===b?a.jq():2===b?a.$C():3===b?a.WC():4===b?a.kD():5===b?a.Sa():6===b?a.Qj():7===b?a.TC():null;return b}var k=a("./vectortilefeature.js");b.v=c;c.prototype.feature=function(a){if(0>a||a>=this.Bk.length)throw Error("feature index out of bounds");this.Lf.I=this.Bk[a];a=this.Lf.Sa()+this.Lf.I;return new k(this.Lf,a,this.extent,
this.Ck,this.Ek)}},{"./vectortilefeature.js":3}],5:[function(a,b){function c(a,b){this.x=a;this.y=b}b.v=c;c.prototype={clone:function(){return new c(this.x,this.y)},add:function(a){return this.clone().dy(a)},sub:function(a){return this.clone().vy(a)},rotate:function(a){return this.clone().sy(a)},round:function(){return this.clone().ty()},equals:function(a){return this.x===a.x&&this.y===a.y},angle:function(){return Math.atan2(this.y,this.x)},dy:function(a){this.x+=a.x;this.y+=a.y;return this},vy:function(a){this.x-=
a.x;this.y-=a.y;return this},sy:function(a){var b=Math.cos(a);a=Math.sin(a);var c=a*this.x+b*this.y;this.x=b*this.x-a*this.y;this.y=c;return this},ty:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}};c.HH=function(a){return a instanceof c?a:Array.isArray(a)?new c(a[0],a[1]):a}},{}]},{},[1])(1)});Am=b.v})();function lx(a,b,c,d){this.gc=a;this.il=b;this.G=c;this.lv=d}h=lx.prototype;h.get=function(a){return this.lv[a]};h.getExtent=function(){this.extent_||(this.extent_="Point"===
this.gc?hf(this.il):jf(this.il,0,this.il.length,2));return this.extent_};h.nb=function(){return this.il};h.M=lx.prototype.nb;h.getGeometry=function(){return this};h.getProperties=function(){return this.lv};h.$i=lx.prototype.getGeometry;h.aa=function(){return 2};h.getStyleFunction=nd;h.getType=function(){return this.gc};function mx(a){hg.call(this);a=a?a:{};this.defaultDataProjection=new Jf({code:"",units:"tile-pixels"});this.Fo=a.featureClass?a.featureClass:lx;this.Xa=a.geometryName;this.Wt=a.layerName?
a.layerName:"layer";this.layers_=a.layers?a.layers:null}A(mx,hg);h=mx.prototype;h.getType=function(){return"arraybuffer"};h.readFeatures=function(a,b){var c=this.layers_;a=new zm(a);a=new Am.VectorTile(a);var d=[],e=this.Fo,f,g,k;for(k in a.layers)if(!c||-1!=c.indexOf(k)){f=a.layers[k];for(var l=0,m=f.length;l<m;++l){if(e===lx){g=void 0;var n=f.feature(l),q=k,r=n.fu(),t=[],u=[];nx(r,u,t);var y=n.type;1===y?g=1===r.length?"Point":"MultiPoint":2===y?g=1===r.length?"LineString":"MultiLineString":3===
y&&(g="Polygon");n=n.properties;n[this.Wt]=q;g=new this.Fo(g,u,t,n)}else{y=f.feature(l);n=k;u=b;g=new this.Fo;q=y.id;t=y.properties;t[this.Wt]=n;this.Xa&&g.setGeometryName(this.Xa);n=void 0;r=y.type;if(0===r)n=null;else{var y=y.fu(),z=[],B=[];nx(y,B,z);1===r?n=1===y.length?new F(null):new Wg(null):2===r?n=1===y.length?new P(null):new Q(null):3===r&&(n=new R(null));n.u("XY",B,z)}u=kg(n,!1,jg(this,u));g.setGeometry(u);g.setId(q);g.setProperties(t)}d.push(g)}}return d};h.readProjection=function(){return this.defaultDataProjection};
h.setLayers=function(a){this.layers_=a};function nx(a,b,c){for(var d=0,e=0,f=a.length;e<f;++e){var g=a[e],k,l;k=0;for(l=g.length;k<l;++k){var m=g[k];b.push(m.x,m.y)}d+=2*k;c.push(d)}}h.readFeature=function(){};h.readGeometry=function(){};h.writeFeature=function(){};h.writeGeometry=function(){};h.writeFeatures=function(){};function ox(){Lg.call(this);this.defaultDataProjection=H("EPSG:4326")}A(ox,Lg);function px(a,b){b[b.length-1].ck[a.getAttribute("k")]=a.getAttribute("v")}var qx=[null],rx=N(qx,{nd:function(a,
b){b[b.length-1].Dh.push(a.getAttribute("ref"))},tag:px}),tx=N(qx,{node:function(a,b){var c=b[0],d=b[b.length-1],e=a.getAttribute("id"),f=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];d.Ju[e]=f;a=O({ck:{}},sx,a,b);oe(a.ck)||(f=new F(f),kg(f,!1,c),c=new E(f),c.setId(e),c.setProperties(a.ck),d.features.push(c))},way:function(a,b){var c=b[0],d=a.getAttribute("id");a=O({Dh:[],ck:{}},rx,a,b);b=b[b.length-1];for(var e=[],f=0,g=a.Dh.length;f<g;f++)Oe(e,b.Ju[a.Dh[f]]);a.Dh[0]==a.Dh[a.Dh.length-
1]?(f=new R(null),f.u("XY",e,[e.length])):(f=new P(null),f.u("XY",e));kg(f,!1,c);c=new E(f);c.setId(d);c.setProperties(a.ck);b.features.push(c)}}),sx=N(qx,{tag:px});ox.prototype.xf=function(a,b){b=ig(this,a,b);return"osm"==a.localName&&(a=O({Ju:{},features:[]},tx,a,[b]),a.features)?a.features:[]};ox.prototype.jr=function(){};ox.prototype.writeFeaturesNode=function(){};ox.prototype.writeGeometryNode=function(){};I.a.Mo={};I.a.Mo.et=function(a,b,c,d){var e;d=void 0!==d?d:[];for(var f=e=0;f<b;){var g=
a[f++];d[e++]=a[f++];d[e++]=g;for(g=2;g<c;++g)d[e++]=a[f++]}d.length=e};function ux(a){a=a?a:{};hg.call(this);this.defaultDataProjection=H("EPSG:4326");this.Xs=a.factor?a.factor:1E5;this.kt=a.geometryLayout?a.geometryLayout:"XY"}A(ux,Cq);function vx(a,b,c){var d,e=Array(b);for(d=0;d<b;++d)e[d]=0;var f,g;f=0;for(g=a.length;f<g;)for(d=0;d<b;++d,++f){var k=a[f],l=k-e[d];e[d]=k;a[f]=l}return wx(a,c?c:1E5)}function xx(a,b,c){var d,e=Array(b);for(d=0;d<b;++d)e[d]=0;a=yx(a,c?c:1E5);var f;c=0;for(f=a.length;c<
f;)for(d=0;d<b;++d,++c)e[d]+=a[c],a[c]=e[d];return a}function wx(a,b){b=b?b:1E5;var c,d;c=0;for(d=a.length;c<d;++c)a[c]=Math.round(a[c]*b);b=0;for(c=a.length;b<c;++b)d=a[b],a[b]=0>d?~(d<<1):d<<1;b="";c=0;for(d=a.length;c<d;++c){for(var e,f=a[c],g="";32<=f;)e=(32|f&31)+63,g+=String.fromCharCode(e),f>>=5;g+=String.fromCharCode(f+63);b+=g}return b}function yx(a,b){b=b?b:1E5;var c=[],d=0,e=0,f,g;f=0;for(g=a.length;f<g;++f){var k=a.charCodeAt(f)-63,d=d|(k&31)<<e;32>k?(c.push(d),e=d=0):e+=5}a=0;for(d=c.length;a<
d;++a)e=c[a],c[a]=e&1?~(e>>1):e>>1;a=0;for(d=c.length;a<d;++a)c[a]/=b;return c}h=ux.prototype;h.Mj=function(a,b){a=this.Ph(a,b);return new E(a)};h.bq=function(a,b){return[this.Mj(a,b)]};h.Ph=function(a,b){var c=Pg(this.kt);a=xx(a,c,this.Xs);I.a.Mo.et(a,a.length,c,a);c=I.a.Hc.coordinates(a,0,a.length,c);return kg(new P(c,this.kt),!1,jg(this,b))};h.sk=function(a,b){if(a=a.getGeometry())return this.Ng(a,b);qd(!1,40);return""};h.kr=function(a,b){return this.sk(a[0],b)};h.Ng=function(a,b){a=kg(a,!0,jg(this,
b));b=a.M();a=a.aa();I.a.Mo.et(b,b.length,a,b);return vx(b,a,this.Xs)};function zx(a){a=a?a:{};hg.call(this);this.defaultDataProjection=H(a.defaultDataProjection?a.defaultDataProjection:"EPSG:4326")}A(zx,Qn);function Ax(a,b){var c=[],d,e,f;e=0;for(f=a.length;e<f;++e)d=a[e],0<e&&c.pop(),d=0<=d?b[d]:b[~d].slice().reverse(),c.push.apply(c,d);a=0;for(b=c.length;a<b;++a)c[a]=c[a].slice();return c}function Bx(a,b,c,d,e){a=a.geometries;var f=[],g,k;g=0;for(k=a.length;g<k;++g)f[g]=Cx(a[g],b,c,d,e);return f}
function Cx(a,b,c,d,e){var f=a.type,g=Dx[f];b="Point"===f||"MultiPoint"===f?g(a,c,d):g(a,b);c=new E;c.setGeometry(kg(b,!1,e));void 0!==a.id&&c.setId(a.id);a.properties&&c.setProperties(a.properties);return c}zx.prototype.aq=function(a,b){if("Topology"==a.type){var c,d=null,e=null;a.transform&&(c=a.transform,d=c.scale,e=c.translate);var f=a.arcs;if(c){c=d;var g=e,k,l;k=0;for(l=f.length;k<l;++k){var m,n,q,r=f[k],t=c,u=g,y=0,z=0;n=0;for(m=r.length;n<m;++n)q=r[n],y+=q[0],z+=q[1],q[0]=y,q[1]=z,Ex(q,t,
u)}}c=[];a=ne(a.objects);g=0;for(k=a.length;g<k;++g)"GeometryCollection"===a[g].type?(l=a[g],c.push.apply(c,Bx(l,f,d,e,b))):(l=a[g],c.push(Cx(l,f,d,e,b)));return c}return[]};function Ex(a,b,c){a[0]=a[0]*b[0]+c[0];a[1]=a[1]*b[1]+c[1]}zx.prototype.Pj=function(){return this.defaultDataProjection};var Dx={Point:function(a,b,c){a=a.coordinates;b&&c&&Ex(a,b,c);return new F(a)},LineString:function(a,b){a=Ax(a.arcs,b);return new P(a)},Polygon:function(a,b){var c=[],d,e;d=0;for(e=a.arcs.length;d<e;++d)c[d]=
Ax(a.arcs[d],b);return new R(c)},MultiPoint:function(a,b,c){a=a.coordinates;var d,e;if(b&&c)for(d=0,e=a.length;d<e;++d)Ex(a[d],b,c);return new Wg(a)},MultiLineString:function(a,b){var c=[],d,e;d=0;for(e=a.arcs.length;d<e;++d)c[d]=Ax(a.arcs[d],b);return new Q(c)},MultiPolygon:function(a,b){var c=[],d,e,f,g,k,l;k=0;for(l=a.arcs.length;k<l;++k){d=a.arcs[k];e=[];f=0;for(g=d.length;f<g;++f)e[f]=Ax(d[f],b);c[k]=e}return new S(c)}};h=zx.prototype;h.writeFeatureObject=function(){};h.writeFeaturesObject=function(){};
h.writeGeometryObject=function(){};h.Am=function(){};h.wf=function(){};function Fx(a){a=a?a:{};this.gh="http://mapserver.gis.umn.edu/mapserver";this.bd=new xw;this.layers_=a.layers?a.layers:null;Lg.call(this)}A(Fx,Lg);Fx.prototype.xf=function(a,b){var c={};b&&le(c,ig(this,a,b));c=[c];a.setAttribute("namespaceURI",this.gh);var d=a.localName;b=[];if(0!==a.childNodes.length){if("msGMLOutput"==d)for(var e=0,f=a.childNodes.length;e<f;e++){var g=a.childNodes[e];if(g.nodeType===Node.ELEMENT_NODE){var k=
c[0],l=g.localName.replace("_layer","");if(!this.layers_||Me(this.layers_,l)){l+="_feature";k.featureType=l;k.featureNS=this.gh;var m={};m[l]=Bg(this.bd.Zp,this.bd);k=N([k.featureNS,null],m);g.setAttribute("namespaceURI",this.gh);(g=O([],k,g,c,this.bd))&&Oe(b,g)}}}"FeatureCollection"==d&&(a=O([],this.bd.Kf,a,[{}],this.bd))&&(b=a)}return b};Fx.prototype.jr=function(){};Fx.prototype.writeFeaturesNode=function(){};Fx.prototype.writeGeometryNode=function(){};function Pn(a,b,c){Og.call(this);this.setCenterAndRadius(a,
b?b:0,c)}A(Pn,Og);h=Pn.prototype;h.clone=function(){var a=new Pn(null);a.u(this.Ca,this.b.slice());return a};h.Uc=function(a,b,c,d){var e=this.b;a-=e[0];var f=b-e[1];b=a*a+f*f;if(b<d){0===b?d=0:(d=this.getRadius()/Math.sqrt(b),c[0]=e[0]+d*a,c[1]=e[1]+d*f,d=2);for(;d<this.l;++d)c[d]=e[d];c.length=this.l;return b}return d};h.containsXY=function(a,b){var c=this.b;a-=c[0];b-=c[1];return a*a+b*b<=Gx(this)};h.getCenter=function(){return this.b.slice(0,this.l)};h.Tk=function(a){var b=this.b,c=b[this.l]-
b[0];return gf(b[0]-c,b[1]-c,b[0]+c,b[1]+c,a)};h.getRadius=function(){return Math.sqrt(Gx(this))};function Gx(a){var b=a.b[a.l]-a.b[0];a=a.b[a.l+1]-a.b[1];return b*b+a*a}h.getType=function(){return"Circle"};h.intersectsExtent=function(a){var b=this.getExtent();return Af(a,b)?(b=this.getCenter(),a[0]<=b[0]&&a[2]>=b[0]||a[1]<=b[1]&&a[3]>=b[1]?!0:nf(a,this.intersectsCoordinate,this)):!1};h.setCenter=function(a){var b=this.l,c=this.b[b]-this.b[0],d=a.slice();d[b]=d[0]+c;for(c=1;c<b;++c)d[b+c]=a[c];this.u(this.Ca,
d)};h.setCenterAndRadius=function(a,b,c){if(a){Rg(this,c,a,0);this.b||(this.b=[]);c=this.b;a=I.a.Hb.coordinate(c,0,a,this.l);c[a++]=c[0]+b;var d;b=1;for(d=this.l;b<d;++b)c[a++]=c[b];c.length=a;this.changed()}else this.u("XY",null)};h.getCoordinates=function(){};h.setCoordinates=function(){};h.u=function(a,b){Qg(this,a,b);this.changed()};h.setRadius=function(a){this.b[this.l]=this.b[0]+a;this.changed()};I.a.pe={};I.a.pe.Fp=function(a,b,c){for(var d=[],e=a(0),f=a(1),g=b(e),k=b(f),l=[f,e],m=[k,g],n=
[1,0],q={},r=1E5,t,u,y,z,B;0<--r&&0<n.length;)y=n.pop(),e=l.pop(),g=m.pop(),f=y.toString(),f in q||(d.push(g[0],g[1]),q[f]=!0),z=n.pop(),f=l.pop(),k=m.pop(),B=(y+z)/2,t=a(B),u=b(t),vd(u[0],u[1],g[0],g[1],k[0],k[1])<c?(d.push(k[0],k[1]),f=z.toString(),q[f]=!0):(n.push(z,B,B,y),m.push(k,u,u,g),l.push(f,t,t,e));return d};I.a.pe.uI=function(a,b,c,d,e,f){var g=H("EPSG:4326"),k=Math.cos(xd(b)),l=Math.sin(xd(b)),m=Math.cos(xd(d)),n=Math.sin(xd(d)),q=Math.cos(xd(c-a)),r=Math.sin(xd(c-a)),t=l*n+k*m*q;return I.a.pe.Fp(function(b){if(1<=
t)return[c,d];var e=b*Math.acos(t);b=Math.cos(e);var e=Math.sin(e),f=Math.atan2(r*m,k*n-l*m*q),g=Math.asin(l*b+k*e*Math.cos(f));return[180*(xd(a)+Math.atan2(Math.sin(f)*e*k,b-l*Math.sin(g)))/Math.PI,180*g/Math.PI]},cg(g,e),f)};I.a.pe.OB=function(a,b,c,d,e){var f=H("EPSG:4326");return I.a.pe.Fp(function(d){return[a,b+(c-b)*d]},cg(f,d),e)};I.a.pe.tC=function(a,b,c,d,e){var f=H("EPSG:4326");return I.a.pe.Fp(function(d){return[b+(c-b)*d,a]},cg(f,d),e)};function Hx(a){a=a||{};this.Ga=this.map_=null;this.zh=
this.yj=Infinity;this.Bh=this.zj=-Infinity;this.ru=this.qu=Infinity;this.Au=this.zu=-Infinity;this.gE=void 0!==a.targetSize?a.targetSize:100;this.KB=void 0!==a.maxLines?a.maxLines:100;this.rf=[];this.tf=[];this.Ef=void 0!==a.strokeStyle?a.strokeStyle:Ix;this.Uq=this.Po=void 0;this.Xp=null;this.setMap(void 0!==a.map?a.map:null)}var Ix=new lg({color:"rgba(0,0,0,0.2)"}),Jx=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001];function Kx(a,b,c,d,e,f,g){var k=g;b=I.a.pe.OB(b,c,d,a.Ga,e);k=void 0!==a.rf[k]?
a.rf[k]:new P(null);k.u("XY",b);Af(k.getExtent(),f)&&(a.rf[g++]=k);return g}function Lx(a,b,c,d,e){var f=e;b=I.a.pe.tC(b,a.Bh,a.zh,a.Ga,c);f=void 0!==a.tf[f]?a.tf[f]:new P(null);f.u("XY",b);Af(f.getExtent(),d)&&(a.tf[e++]=f);return e}Hx.prototype.getMap=function(){return this.map_};Hx.prototype.getMeridians=function(){return this.rf};Hx.prototype.getParallels=function(){return this.tf};Hx.prototype.Dt=function(a){var b=a.vectorContext,c=a.frameState,d=c.extent;a=c.viewState;var e=a.center,f=a.projection,
g=a.resolution;a=c.pixelRatio;a=g*g/(4*a*a);if(!this.Ga||!bg(this.Ga,f)){var k=H("EPSG:4326"),l=f.getExtent(),m=f.getWorldExtent(),n=fg(m,k,f),q=m[2],r=m[1],t=m[0],u=n[3],y=n[2],z=n[1],n=n[0];this.yj=m[3];this.zh=q;this.zj=r;this.Bh=t;this.qu=u;this.ru=y;this.zu=z;this.Au=n;this.Po=cg(k,f);this.Uq=cg(f,k);this.Xp=this.Uq(xf(l));this.Ga=f}f.he&&(f=f.getExtent(),k=vf(f),c=c.focus[0],c<f[0]||c>f[2])&&(c=k*Math.ceil((f[0]-c)/k),d=[d[0]+c,d[1],d[2]+c,d[3]]);c=this.Xp[0];f=this.Xp[1];k=-1;m=Math.pow(this.gE*
g,2);q=[];r=[];g=0;for(l=Jx.length;g<l;++g){t=Jx[g]/2;q[0]=c-t;q[1]=f-t;r[0]=c+t;r[1]=f+t;this.Po(q,q);this.Po(r,r);t=Math.pow(r[0]-q[0],2)+Math.pow(r[1]-q[1],2);if(t<=m)break;k=Jx[g]}g=k;if(-1==g)this.rf.length=this.tf.length=0;else{c=this.Uq(e);e=c[0];c=c[1];f=this.KB;k=[Math.max(d[0],this.Au),Math.max(d[1],this.zu),Math.min(d[2],this.ru),Math.min(d[3],this.qu)];k=fg(k,this.Ga,"EPSG:4326");m=k[3];r=k[1];e=Math.floor(e/g)*g;q=rd(e,this.Bh,this.zh);l=Kx(this,q,r,m,a,d,0);for(k=0;q!=this.Bh&&k++<f;)q=
Math.max(q-g,this.Bh),l=Kx(this,q,r,m,a,d,l);q=rd(e,this.Bh,this.zh);for(k=0;q!=this.zh&&k++<f;)q=Math.min(q+g,this.zh),l=Kx(this,q,r,m,a,d,l);this.rf.length=l;c=Math.floor(c/g)*g;e=rd(c,this.zj,this.yj);l=Lx(this,e,a,d,0);for(k=0;e!=this.zj&&k++<f;)e=Math.max(e-g,this.zj),l=Lx(this,e,a,d,l);e=rd(c,this.zj,this.yj);for(k=0;e!=this.yj&&k++<f;)e=Math.min(e+g,this.yj),l=Lx(this,e,a,d,l);this.tf.length=l}b.Ua(null,this.Ef);a=0;for(e=this.rf.length;a<e;++a)g=this.rf[a],b.Wc(g,null);a=0;for(e=this.tf.length;a<
e;++a)g=this.tf[a],b.Wc(g,null)};Hx.prototype.setMap=function(a){this.map_&&(this.map_.un("postcompose",this.Dt,this),this.map_.render());a&&(a.on("postcompose",this.Dt,this),a.render());this.map_=a};function Nx(a){a=a?a:{};qj.call(this,{handleEvent:Df});this.Iz=a.formatConstructors?a.formatConstructors:[];this.Ga=a.projection?H(a.projection):null;this.dl=null;this.target=a.target?a.target:null}A(Nx,qj);function Ox(a){a=a.dataTransfer.files;var b,c,d;b=0;for(c=a.length;b<c;++b){d=a.item(b);var e=
new FileReader;e.addEventListener(Ce.LOAD,this.KA.bind(this,d));e.readAsText(d)}}function Px(a){a.stopPropagation();a.preventDefault();a.dataTransfer.dropEffect="copy"}Nx.prototype.KA=function(a,b){b=b.target.result;var c=this.getMap(),d=this.Ga;d||(d=c.getView().getProjection());var c=this.Iz,e=[],f,g;f=0;for(g=c.length;f<g;++f){var k=new c[f];var l={featureProjection:d};try{e=k.readFeatures(b,l)}catch(m){e=null}if(e&&0<e.length)break}this.dispatchEvent(new Qx(Rx,a,e,d))};Nx.prototype.setMap=function(a){this.dl&&
(this.dl.forEach(qe),this.dl=null);qj.prototype.setMap.call(this,a);a&&(a=this.target?this.target:a.getViewport(),this.dl=[G(a,"drop",Ox,this),G(a,"dragenter",Px,this),G(a,"dragover",Px,this),G(a,"drop",Px,this)])};var Rx="addfeatures";function Qx(a,b,c,d){ze.call(this,a);this.features=c;this.file=b;this.projection=d}A(Qx,ze);function Sx(a){a=a?a:{};Fj.call(this,{handleDownEvent:Tx,handleDragEvent:Ux,handleUpEvent:Vx});this.rb=a.condition?a.condition:Bj;this.xh=this.Vb=void 0;this.og=0;this.ra=void 0!==
a.duration?a.duration:400}A(Sx,Fj);function Ux(a){if(Dj(a)){var b=a.map,c=b.getSize(),d=a.pixel;a=d[0]-c[0]/2;d=c[1]/2-d[1];c=Math.atan2(d,a);a=Math.sqrt(a*a+d*d);b=b.getView();void 0!==this.Vb&&(d=c-this.Vb,rj(b,b.getRotation()-d));this.Vb=c;void 0!==this.xh&&(c=this.xh*(b.getResolution()/a),tj(b,c));void 0!==this.xh&&(this.og=this.xh/a);this.xh=a}}function Vx(a){if(!Dj(a))return!0;a=a.map.getView();Xi(a,1,-1);var b=this.og-1,c=a.getRotation(),c=a.constrainRotation(c,0);rj(a,c,void 0,void 0);var c=
a.getResolution(),d=this.ra,c=a.constrainResolution(c,0,b);tj(a,c,void 0,d);this.og=0;return!1}function Tx(a){return Dj(a)&&this.rb(a)?(Xi(a.map.getView(),1,1),this.xh=this.Vb=void 0,!0):!1}function Wx(a){Fj.call(this,{handleDownEvent:Xx,handleEvent:Yx,handleUpEvent:Zx});this.Ao=null;this.oe=!1;this.O=a.source?a.source:null;this.features_=a.features?a.features:null;this.YD=a.snapTolerance?a.snapTolerance:12;this.gc=a.type;this.Ia=$x(this.gc);this.Bu=a.minPoints?a.minPoints:this.Ia===ay?3:2;this.tu=
a.maxPoints?a.maxPoints:Infinity;this.Bz=a.finishCondition?a.finishCondition:Df;var b=a.geometryFunction;if(!b)if("Circle"===this.gc)b=function(a,b){b=b?b:new Pn([NaN,NaN]);b.setCenterAndRadius(a[0],Math.sqrt(Si(a[0],a[1])));return b};else{var c,d=this.Ia;d===by?c=F:d===cy?c=P:d===ay&&(c=R);b=function(a,b){b?d===ay?b.setCoordinates([a[0].concat([a[0][0]])]):b.setCoordinates(a):b=new c(a);return b}}this.tb=b;this.Zh=this.De=this.wa=this.Af=this.Pb=this.nc=null;this.dw=a.clickTolerance?a.clickTolerance*
a.clickTolerance:36;this.Od=new W({source:new X({useSpatialIndex:!1,wrapX:a.wrapX?a.wrapX:!1}),style:a.style?a.style:dy()});this.Xa=a.geometryName;this.rb=a.condition?a.condition:Aj;this.Oz=a.freehand?Df:a.freehandCondition?a.freehandCondition:Bj;G(this,Ie("active"),this.Aw,this)}A(Wx,Fj);function dy(){var a=rg();return function(b){return a[b.getGeometry().getType()]}}h=Wx.prototype;h.setMap=function(a){Fj.prototype.setMap.call(this,a);this.Aw()};function Yx(a){this.oe=this.Ia!==by&&this.Oz(a);var b=
!this.oe;this.oe&&"pointerdrag"===a.type&&null!==this.Pb?(ey(this,a),b=!1):"pointermove"===a.type?b=this.cf(a):"dblclick"===a.type&&(b=!1);return Gj.call(this,a)&&b}function Xx(a){return this.oe?(this.Ao=a.pixel,this.nc||fy(this,a),!0):this.rb(a)?(this.Ao=a.pixel,!0):!1}function Zx(a){var b=this.Ao,c=a.pixel,d=b[0]-c[0],b=b[1]-c[1],d=d*d+b*b,b=!0,c=this.Ia===gy;(this.oe?d>this.dw:d<=this.dw)?(this.cf(a),this.nc?this.oe||c?this.finishDrawing():hy(this,a)?this.Bz(a)&&this.finishDrawing():ey(this,a):
(fy(this,a),this.Ia===by&&this.finishDrawing()),b=!1):c&&(this.nc=null);return b}h.cf=function(a){if(this.nc){var b=a.coordinate,c=this.Pb.getGeometry(),d;this.Ia===by?d=this.wa:this.Ia===ay?(d=this.wa[0],d=d[d.length-1],hy(this,a)&&(b=this.nc.slice())):(d=this.wa,d=d[d.length-1]);d[0]=b[0];d[1]=b[1];this.tb(this.wa,c);this.Af&&this.Af.getGeometry().setCoordinates(b);c instanceof R&&this.Ia!==ay?(this.De||(this.De=new E(new P(null))),b=c.getLinearRing(0),a=this.De.getGeometry(),a.u(b.getLayout(),
b.M())):this.Zh&&(a=this.De.getGeometry(),a.setCoordinates(this.Zh));iy(this)}else a=a.coordinate.slice(),this.Af?this.Af.getGeometry().setCoordinates(a):(this.Af=new E(new F(a)),iy(this));return!0};function hy(a,b){var c=!1;if(a.Pb){var d=!1,e=[a.nc];a.Ia===cy?d=a.wa.length>a.Bu:a.Ia===ay&&(d=a.wa[0].length>a.Bu,e=[a.wa[0][0],a.wa[0][a.wa[0].length-2]]);if(d)for(var d=b.map,f=0,g=e.length;f<g;f++){var k=e[f],l=d.getPixelFromCoordinate(k),m=b.pixel,c=m[0]-l[0],l=m[1]-l[1];if(c=Math.sqrt(c*c+l*l)<=
(a.oe?1:a.YD)){a.nc=k;break}}}return c}function fy(a,b){b=b.coordinate;a.nc=b;a.Ia===by?a.wa=b.slice():a.Ia===ay?(a.wa=[[b.slice(),b.slice()]],a.Zh=a.wa[0]):(a.wa=[b.slice(),b.slice()],a.Ia===gy&&(a.Zh=a.wa));a.Zh&&(a.De=new E(new P(a.Zh)));b=a.tb(a.wa);a.Pb=new E;a.Xa&&a.Pb.setGeometryName(a.Xa);a.Pb.setGeometry(b);iy(a);a.dispatchEvent(new jy("drawstart",a.Pb))}function ey(a,b){b=b.coordinate;var c=a.Pb.getGeometry(),d,e;a.Ia===cy?(a.nc=b.slice(),e=a.wa,e.length>=a.tu&&(a.oe?e.pop():d=!0),e.push(b.slice()),
a.tb(e,c)):a.Ia===ay&&(e=a.wa[0],e.length>=a.tu&&(a.oe?e.pop():d=!0),e.push(b.slice()),d&&(a.nc=e[0]),a.tb(a.wa,c));iy(a);d&&a.finishDrawing()}h.removeLastPoint=function(){var a=this.Pb.getGeometry(),b,c;this.Ia===cy?(b=this.wa,b.splice(-2,1),this.tb(b,a)):this.Ia===ay&&(b=this.wa[0],b.splice(-2,1),c=this.De.getGeometry(),c.setCoordinates(b),this.tb(this.wa,a));0===b.length&&(this.nc=null);iy(this)};h.finishDrawing=function(){var a=ky(this),b=this.wa,c=a.getGeometry();this.Ia===cy?(b.pop(),this.tb(b,
c)):this.Ia===ay&&(b[0].pop(),this.tb(b,c),b=c.getCoordinates());"MultiPoint"===this.gc?a.setGeometry(new Wg([b])):"MultiLineString"===this.gc?a.setGeometry(new Q([b])):"MultiPolygon"===this.gc&&a.setGeometry(new S([b]));this.dispatchEvent(new jy("drawend",a));this.features_&&this.features_.push(a);this.O&&this.O.addFeature(a)};function ky(a){a.nc=null;var b=a.Pb;b&&(a.Pb=null,a.Af=null,a.De=null,a.Od.getSource().clear(!0));return b}h.extend=function(a){var b=a.getGeometry();this.Pb=a;this.wa=b.getCoordinates();
a=this.wa[this.wa.length-1];this.nc=a.slice();this.wa.push(a.slice());iy(this);this.dispatchEvent(new jy("drawstart",this.Pb))};h.Ig=Ef;function iy(a){var b=[];a.Pb&&b.push(a.Pb);a.De&&b.push(a.De);a.Af&&b.push(a.Af);a=a.Od.getSource();a.clear(!0);a.addFeatures(b)}h.Aw=function(){var a=this.getMap(),b=this.getActive();a&&b||ky(this);this.Od.setMap(b?a:null)};function $x(a){var b;"Point"===a||"MultiPoint"===a?b=by:"LineString"===a||"MultiLineString"===a?b=cy:"Polygon"===a||"MultiPolygon"===a?b=ay:
"Circle"===a&&(b=gy);return b}var by="Point",cy="LineString",ay="Polygon",gy="Circle";function jy(a,b){ze.call(this,a);this.feature=b}A(jy,ze);function ly(a){this.zg=this.extent_=null;this.ac=10;this.$h=!1;this.kb=this.Ss=null;a||(a={});a.extent&&this.setExtent(a.extent);Fj.call(this,{handleDownEvent:my,handleDragEvent:ny,handleEvent:oy,handleUpEvent:py});this.Ts=new W({source:new X({useSpatialIndex:!1,wrapX:!!a.wrapX}),style:a.boxStyle?a.boxStyle:qy(),updateWhileAnimating:!0,updateWhileInteracting:!0});
this.Hw=new W({source:new X({useSpatialIndex:!1,wrapX:!!a.wrapX}),style:a.pointerStyle?a.pointerStyle:ry(),updateWhileAnimating:!0,updateWhileInteracting:!0})}A(ly,Fj);function oy(a){if(!(a instanceof Qh))return!0;"pointermove"!=a.type||this.te||this.cf(a);Gj.call(this,a);return!1}function my(a){function b(a){var b=null,c=null;a[0]==e[0]?b=e[2]:a[0]==e[2]&&(b=e[0]);a[1]==e[1]?c=e[3]:a[1]==e[3]&&(c=e[1]);return null!==b&&null!==c?[b,c]:null}var c=a.pixel,d=a.map,e=this.getExtent();(a=sy(this,c,d))&&
e?(c=a[0]==e[0]||a[0]==e[2]?a[0]:null,d=a[1]==e[1]||a[1]==e[3]?a[1]:null,null!==c&&null!==d?this.zg=ty(b(a)):null!==c?this.zg=uy(b([c,e[1]]),b([c,e[3]])):null!==d&&(this.zg=uy(b([e[0],d]),b([e[2],d])))):(a=d.getCoordinateFromPixel(c),this.setExtent([a[0],a[1],a[0],a[1]]),this.zg=ty(a));return!0}function ny(a){this.zg&&(a=a.coordinate,this.setExtent(this.zg(a)),vy(this,a));return!0}function py(){this.zg=null;var a=this.getExtent();a&&0!==tf(a)||this.setExtent(null);return!1}function qy(){var a=rg();
return function(){return a.Polygon}}function ry(){var a=rg();return function(){return a.Point}}function ty(a){return function(b){return Ve([a,b])}}function uy(a,b){return a[0]==b[0]?function(c){return Ve([a,[c[0],b[1]]])}:a[1]==b[1]?function(c){return Ve([a,[b[0],c[1]]])}:null}function sy(a,b,c){function d(a,b){return Ui(e,a)-Ui(e,b)}var e=c.getCoordinateFromPixel(b),f=a.getExtent();if(f){f=[[[f[0],f[1]],[f[0],f[3]]],[[f[0],f[3]],[f[2],f[3]]],[[f[2],f[3]],[f[2],f[1]]],[[f[2],f[1]],[f[0],f[1]]]];f.sort(d);
var f=f[0],g=Li(e,f),k=c.getPixelFromCoordinate(g);if(Ti(b,k)<=a.ac)return b=c.getPixelFromCoordinate(f[0]),c=c.getPixelFromCoordinate(f[1]),b=Si(k,b),c=Si(k,c),a.$h=Math.sqrt(Math.min(b,c))<=a.ac,a.$h&&(g=b>c?f[1]:f[0]),g}return null}ly.prototype.cf=function(a){var b=a.pixel;a=a.map;var c=sy(this,b,a);c||(c=a.getCoordinateFromPixel(b));vy(this,c)};function vy(a,b){var c=a.kb;c?c.getGeometry().setCoordinates(b):(c=new E(new F(b)),a.kb=c,a.Hw.getSource().addFeature(c))}ly.prototype.setMap=function(a){this.Ts.setMap(a);
this.Hw.setMap(a);Fj.prototype.setMap.call(this,a)};ly.prototype.getExtent=function(){return this.extent_};ly.prototype.setExtent=function(a){this.extent_=a?a:null;var b=this.Ss;b?a?b.setGeometry(Zg(a)):b.setGeometry(void 0):(this.Ss=b=a?new E(Zg(a)):new E({}),this.Ts.getSource().addFeature(b));this.dispatchEvent(new wy(this.extent_))};function wy(a){ze.call(this,xy);this.extent_=a}A(wy,ze);var xy="extentchanged";function yy(a){Fj.call(this,{handleDownEvent:zy,handleDragEvent:Ay,handleEvent:By,handleUpEvent:Cy});
this.rb=a.condition?a.condition:Ej;this.iz=function(a){return Aj(a)&&zj(a)};this.kz=a.deleteCondition?a.deleteCondition:this.iz;this.Iw=this.kb=null;this.Ut=[0,0];this.Ch=this.Fl=!1;this.ka=new Cm;this.ac=void 0!==a.pixelTolerance?a.pixelTolerance:10;this.xd=this.$h=!1;this.Vc=[];this.Od=new W({source:new X({useSpatialIndex:!1,wrapX:!!a.wrapX}),style:a.style?a.style:Dy(),updateWhileAnimating:!0,updateWhileInteracting:!0});this.Pg={Point:this.qr,LineString:this.tk,LinearRing:this.tk,Polygon:this.rr,
MultiPoint:this.nr,MultiLineString:this.mr,MultiPolygon:this.pr,Circle:this.VE,GeometryCollection:this.lr};this.features_=a.features;this.features_.forEach(this.ti,this);G(this.features_,"add",this.ul,this);G(this.features_,"remove",this.vl,this);this.Ql=null}A(yy,Fj);h=yy.prototype;h.ti=function(a){var b=a.getGeometry();b&&b.getType()in this.Pg&&this.Pg[b.getType()].call(this,a,b);(b=this.getMap())&&b.la&&this.getActive()&&Ey(this,this.Ut,b);G(a,Ce.CHANGE,this.eg,this)};function Fy(a,b){a.Ch||(a.Ch=
!0,a.dispatchEvent(new Gy("modifystart",a.features_,b)))}h.Fm=function(a){Hy(this,a);this.kb&&0===this.features_.getLength()&&(this.Od.getSource().removeFeature(this.kb),this.kb=null);we(a,Ce.CHANGE,this.eg,this)};function Hy(a,b){a=a.ka;var c=[];a.forEach(function(a){b===a.feature&&c.push(a)});for(var d=c.length-1;0<=d;--d)a.remove(c[d])}h.setActive=function(a){this.kb&&!a&&(this.Od.getSource().removeFeature(this.kb),this.kb=null);Fj.prototype.setActive.call(this,a)};h.setMap=function(a){this.Od.setMap(a);
Fj.prototype.setMap.call(this,a)};h.ul=function(a){this.ti(a.element)};h.eg=function(a){this.xd||(a=a.target,this.Fm(a),this.ti(a))};h.vl=function(a){this.Fm(a.element)};h.qr=function(a,b){var c=b.getCoordinates();a={feature:a,geometry:b,W:[c,c]};this.ka.ta(b.getExtent(),a)};h.nr=function(a,b){var c=b.getCoordinates(),d,e,f;e=0;for(f=c.length;e<f;++e)d=c[e],d={feature:a,geometry:b,depth:[e],index:e,W:[d,d]},this.ka.ta(b.getExtent(),d)};h.tk=function(a,b){var c=b.getCoordinates(),d,e,f,g;d=0;for(e=
c.length-1;d<e;++d)f=c.slice(d,d+2),g={feature:a,geometry:b,index:d,W:f},this.ka.ta(Ve(f),g)};h.mr=function(a,b){var c=b.getCoordinates(),d,e,f,g,k,l,m;g=0;for(k=c.length;g<k;++g)for(d=c[g],e=0,f=d.length-1;e<f;++e)l=d.slice(e,e+2),m={feature:a,geometry:b,depth:[g],index:e,W:l},this.ka.ta(Ve(l),m)};h.rr=function(a,b){var c=b.getCoordinates(),d,e,f,g,k,l,m;g=0;for(k=c.length;g<k;++g)for(d=c[g],e=0,f=d.length-1;e<f;++e)l=d.slice(e,e+2),m={feature:a,geometry:b,depth:[g],index:e,W:l},this.ka.ta(Ve(l),
m)};h.pr=function(a,b){var c=b.getCoordinates(),d,e,f,g,k,l,m,n,q,r;l=0;for(m=c.length;l<m;++l)for(n=c[l],g=0,k=n.length;g<k;++g)for(d=n[g],e=0,f=d.length-1;e<f;++e)q=d.slice(e,e+2),r={feature:a,geometry:b,depth:[g,l],index:e,W:q},this.ka.ta(Ve(q),r)};h.VE=function(a,b){var c=b.getCenter(),d={feature:a,geometry:b,index:0,W:[c,c]};a={feature:a,geometry:b,index:1,W:[c,c]};d.Go=a.Go=[d,a];this.ka.ta(hf(c),d);this.ka.ta(b.getExtent(),a)};h.lr=function(a,b){var c=b.ma;for(b=0;b<c.length;++b)this.Pg[c[b].getType()].call(this,
a,c[b])};function Iy(a,b){var c=a.kb;c?c.getGeometry().setCoordinates(b):(c=new E(new F(b)),a.kb=c,a.Od.getSource().addFeature(c))}function Jy(a,b){return a.index-b.index}function zy(a){if(!this.rb(a))return!1;Ey(this,a.pixel,a.map);this.Vc.length=0;this.Ch=!1;var b=this.kb;if(b){var c=[],b=b.getGeometry().getCoordinates(),d=Ve([b]),d=Dm(this.ka,d),e={};d.sort(Jy);for(var f=0,g=d.length;f<g;++f){var k=d[f],l=k.W,m=D(k.feature),n=k.depth;n&&(m+="-"+n.join("-"));e[m]||(e[m]=Array(2));if("Circle"===
k.geometry.getType()&&1===k.index)l=Ky(b,k),Pi(l,b)&&!e[m][0]&&(this.Vc.push([k,0]),e[m][0]=k);else if(Pi(l[0],b)&&!e[m][0])this.Vc.push([k,0]),e[m][0]=k;else if(Pi(l[1],b)&&!e[m][1]){if("LineString"!==k.geometry.getType()&&"MultiLineString"!==k.geometry.getType()||!e[m][0]||0!==e[m][0].index)this.Vc.push([k,1]),e[m][1]=k}else D(l)in this.Iw&&!e[m][0]&&!e[m][1]&&c.push([k,b])}c.length&&Fy(this,a);for(a=c.length-1;0<=a;--a)this.gB.apply(this,c[a])}return!!this.kb}function Ay(a){this.Fl=!1;Fy(this,
a);a=a.coordinate;for(var b=0,c=this.Vc.length;b<c;++b){for(var d=this.Vc[b],e=d[0],f=e.depth,g=e.geometry,k,l=e.W,d=d[1];a.length<g.aa();)a.push(l[d][a.length]);switch(g.getType()){case "Point":k=a;l[0]=l[1]=a;break;case "MultiPoint":k=g.getCoordinates();k[e.index]=a;l[0]=l[1]=a;break;case "LineString":k=g.getCoordinates();k[e.index+d]=a;l[d]=a;break;case "MultiLineString":k=g.getCoordinates();k[f[0]][e.index+d]=a;l[d]=a;break;case "Polygon":k=g.getCoordinates();k[f[0]][e.index+d]=a;l[d]=a;break;
case "MultiPolygon":k=g.getCoordinates();k[f[1]][f[0]][e.index+d]=a;l[d]=a;break;case "Circle":l[0]=l[1]=a,0===e.index?(this.xd=!0,g.setCenter(a)):(this.xd=!0,g.setRadius(Ti(g.getCenter(),a))),this.xd=!1}k&&(e=g,f=k,this.xd=!0,e.setCoordinates(f),this.xd=!1)}Iy(this,a)}function Cy(a){for(var b,c,d=this.Vc.length-1;0<=d;--d)if(b=this.Vc[d][0],c=b.geometry,"Circle"===c.getType()){var e=c.getCenter(),f=b.Go[0];b=b.Go[1];f.W[0]=f.W[1]=e;b.W[0]=b.W[1]=e;this.ka.update(hf(e),f);this.ka.update(c.getExtent(),
b)}else this.ka.update(Ve(b.W),b);this.Ch&&(this.dispatchEvent(new Gy("modifyend",this.features_,a)),this.Ch=!1);return!1}function By(a){if(!(a instanceof Qh))return!0;this.Ql=a;var b;Zi(a.map.getView())[1]||"pointermove"!=a.type||this.te||this.cf(a);this.kb&&this.kz(a)&&(b="singleclick"==a.type&&this.Fl?!0:this.removePoint());"singleclick"==a.type&&(this.Fl=!1);return Gj.call(this,a)&&!b}h.cf=function(a){this.Ut=a.pixel;Ey(this,a.pixel,a.map)};function Ey(a,b,c){function d(a,b){return Ly(e,a)-Ly(e,
b)}var e=c.getCoordinateFromPixel(b),f=Ye(hf(e),c.getView().getResolution()*a.ac),f=Dm(a.ka,f);if(0<f.length){f.sort(d);var g=f[0],k=g.W,l=Ky(e,g),m=c.getPixelFromCoordinate(l),n=Ti(b,m);if(n<=a.ac){b={};if("Circle"===g.geometry.getType()&&1===g.index)a.$h=!0,Iy(a,l);else for(n=c.getPixelFromCoordinate(k[0]),g=c.getPixelFromCoordinate(k[1]),c=Si(m,n),m=Si(m,g),n=Math.sqrt(Math.min(c,m)),a.$h=n<=a.ac,a.$h&&(l=c>m?k[1]:k[0]),Iy(a,l),m=1,c=f.length;m<c;++m)if(l=f[m].W,Pi(k[0],l[0])&&Pi(k[1],l[1])||Pi(k[0],
l[1])&&Pi(k[1],l[0]))b[D(l)]=!0;else break;b[D(k)]=!0;a.Iw=b;return}}a.kb&&(a.Od.getSource().removeFeature(a.kb),a.kb=null)}function Ly(a,b){var c=b.geometry;return"Circle"===c.getType()&&1===b.index?(a=Si(c.getCenter(),a),c=Math.sqrt(a)-c.getRadius(),c*c):Ui(a,b.W)}function Ky(a,b){var c=b.geometry;return"Circle"===c.getType()&&1===b.index?c.getClosestPoint(a):Li(a,b.W)}h.gB=function(a,b){for(var c=a.W,d=a.feature,e=a.geometry,f=a.depth,g=a.index,k;b.length<e.aa();)b.push(0);switch(e.getType()){case "MultiLineString":k=
e.getCoordinates();k[f[0]].splice(g+1,0,b);break;case "Polygon":k=e.getCoordinates();k[f[0]].splice(g+1,0,b);break;case "MultiPolygon":k=e.getCoordinates();k[f[1]][f[0]].splice(g+1,0,b);break;case "LineString":k=e.getCoordinates();k.splice(g+1,0,b);break;default:return}this.xd=!0;e.setCoordinates(k);this.xd=!1;k=this.ka;k.remove(a);My(this,e,g,f,1);a={W:[c[0],b],feature:d,geometry:e,depth:f,index:g};k.ta(Ve(a.W),a);this.Vc.push([a,1]);b={W:[b,c[1]],feature:d,geometry:e,depth:f,index:g+1};k.ta(Ve(b.W),
b);this.Vc.push([b,0]);this.Fl=!0};h.removePoint=function(){if(this.Ql&&"pointerdrag"!=this.Ql.type){var a=this.Ql;Fy(this,a);var b=this.Vc,c={},d,e,f,g,k,l,m,n,q;for(k=b.length-1;0<=k;--k)g=b[k],n=g[0],q=D(n.feature),n.depth&&(q+="-"+n.depth.join("-")),q in c||(c[q]={}),0===g[1]?(c[q].right=n,c[q].index=n.index):1==g[1]&&(c[q].left=n,c[q].index=n.index+1);for(q in c){m=c[q].right;k=c[q].left;g=c[q].index;l=g-1;n=void 0!==k?k:m;0>l&&(l=0);b=n.geometry;e=f=b.getCoordinates();d=!1;switch(b.getType()){case "MultiLineString":2<
f[n.depth[0]].length&&(f[n.depth[0]].splice(g,1),d=!0);break;case "LineString":2<f.length&&(f.splice(g,1),d=!0);break;case "MultiPolygon":e=e[n.depth[1]];case "Polygon":e=e[n.depth[0]],4<e.length&&(g==e.length-1&&(g=0),e.splice(g,1),d=!0,0===g&&(e.pop(),e.push(e[0]),l=e.length-1))}d&&(d=b,this.xd=!0,d.setCoordinates(f),this.xd=!1,f=[],void 0!==k&&(this.ka.remove(k),f.push(k.W[0])),void 0!==m&&(this.ka.remove(m),f.push(m.W[1])),void 0!==k&&void 0!==m&&(k={depth:n.depth,feature:n.feature,geometry:n.geometry,
index:l,W:f},this.ka.ta(Ve(k.W),k)),My(this,b,g,n.depth,-1),this.kb&&(this.Od.getSource().removeFeature(this.kb),this.kb=null))}this.dispatchEvent(new Gy("modifyend",this.features_,a));this.Ch=!1;return!0}return!1};function My(a,b,c,d,e){Fm(a.ka,b.getExtent(),function(a){a.geometry===b&&(void 0===d||void 0===a.depth||Qe(a.depth,d))&&a.index>c&&(a.index+=e)})}function Dy(){var a=rg();return function(){return a.Point}}function Gy(a,b,c){ze.call(this,a);this.features=b;this.mapBrowserEvent=c}A(Gy,ze);
function Ny(a){Fj.call(this,{handleEvent:Oy,handleDownEvent:Df,handleUpEvent:Py});a=a?a:{};this.O=a.source?a.source:null;this.Jw=void 0!==a.vertex?a.vertex:!0;this.Ms=void 0!==a.edge?a.edge:!0;this.features_=a.features?a.features:null;this.yz=[];this.Eo={};this.Ot={};this.sm={};this.Rp=null;this.ac=void 0!==a.pixelTolerance?a.pixelTolerance:10;this.ZD=Qy.bind(this);this.ka=new Cm;this.Pg={Point:this.qr,LineString:this.tk,LinearRing:this.tk,Polygon:this.rr,MultiPoint:this.nr,MultiLineString:this.mr,
MultiPolygon:this.pr,GeometryCollection:this.lr}}A(Ny,Fj);h=Ny.prototype;h.addFeature=function(a,b){b=void 0!==b?b:!0;var c=D(a),d=a.getGeometry();if(d){var e=this.Pg[d.getType()];e&&(this.Ot[c]=d.getExtent(We()),e.call(this,a,d))}b&&(this.Eo[c]=G(a,Ce.CHANGE,this.eg,this))};h.Gz=function(a){this.addFeature(a)};h.Hz=function(a){this.removeFeature(a)};h.ul=function(a){var b;a instanceof yt?b=a.feature:a instanceof Mh&&(b=a.element);this.addFeature(b)};h.vl=function(a){var b;a instanceof yt?b=a.feature:
a instanceof Mh&&(b=a.element);this.removeFeature(b)};h.eg=function(a){a=a.target;if(this.te){var b=D(a);b in this.sm||(this.sm[b]=a)}else this.zw(a)};h.removeFeature=function(a,b){b=void 0!==b?b:!0;var c=D(a),d=this.Ot[c];if(d){var e=this.ka,f=[];Fm(e,d,function(b){a===b.feature&&f.push(b)});for(d=f.length-1;0<=d;--d)e.remove(f[d])}b&&(qe(this.Eo[c]),delete this.Eo[c])};h.setMap=function(a){var b=this.getMap(),c=this.yz,d;this.features_?d=this.features_:this.O&&(d=this.O.getFeatures());b&&(c.forEach(qe),
c.length=0,d.forEach(this.Hz,this));Fj.prototype.setMap.call(this,a);a&&(this.features_?c.push(G(this.features_,"add",this.ul,this),G(this.features_,"remove",this.vl,this)):this.O&&c.push(G(this.O,"addfeature",this.ul,this),G(this.O,"removefeature",this.vl,this)),d.forEach(this.Gz,this))};h.Ig=Ef;h.zw=function(a){this.removeFeature(a,!1);this.addFeature(a,!1)};h.lr=function(a,b){var c=b.ma;for(b=0;b<c.length;++b)this.Pg[c[b].getType()].call(this,a,c[b])};h.tk=function(a,b){b=b.getCoordinates();var c,
d,e,f;c=0;for(d=b.length-1;c<d;++c)e=b.slice(c,c+2),f={feature:a,W:e},this.ka.ta(Ve(e),f)};h.mr=function(a,b){b=b.getCoordinates();var c,d,e,f,g,k,l;f=0;for(g=b.length;f<g;++f)for(c=b[f],d=0,e=c.length-1;d<e;++d)k=c.slice(d,d+2),l={feature:a,W:k},this.ka.ta(Ve(k),l)};h.nr=function(a,b){var c=b.getCoordinates(),d,e,f;e=0;for(f=c.length;e<f;++e)d=c[e],d={feature:a,W:[d,d]},this.ka.ta(b.getExtent(),d)};h.pr=function(a,b){b=b.getCoordinates();var c,d,e,f,g,k,l,m,n,q;k=0;for(l=b.length;k<l;++k)for(m=b[k],
f=0,g=m.length;f<g;++f)for(c=m[f],d=0,e=c.length-1;d<e;++d)n=c.slice(d,d+2),q={feature:a,W:n},this.ka.ta(Ve(n),q)};h.qr=function(a,b){var c=b.getCoordinates();a={feature:a,W:[c,c]};this.ka.ta(b.getExtent(),a)};h.rr=function(a,b){b=b.getCoordinates();var c,d,e,f,g,k,l;f=0;for(g=b.length;f<g;++f)for(c=b[f],d=0,e=c.length-1;d<e;++d)k=c.slice(d,d+2),l={feature:a,W:k},this.ka.ta(Ve(k),l)};function Oy(a){var b,c,d=a.pixel,e=a.coordinate;b=a.map;var f=b.getCoordinateFromPixel([d[0]-this.ac,d[1]+this.ac]);
c=b.getCoordinateFromPixel([d[0]+this.ac,d[1]-this.ac]);var f=Ve([f,c]),g=Dm(this.ka,f),k,f=!1,l=null;c=null;if(0<g.length){this.Rp=e;g.sort(this.ZD);g=g[0].W;if(this.Jw&&!this.Ms){if(e=b.getPixelFromCoordinate(g[0]),k=b.getPixelFromCoordinate(g[1]),e=Si(d,e),d=Si(d,k),k=Math.sqrt(Math.min(e,d)),k=k<=this.ac)f=!0,l=e>d?g[1]:g[0],c=b.getPixelFromCoordinate(l)}else this.Ms&&(l=Li(e,g),c=b.getPixelFromCoordinate(l),Ti(d,c)<=this.ac&&(f=!0,this.Jw&&(e=b.getPixelFromCoordinate(g[0]),k=b.getPixelFromCoordinate(g[1]),
e=Si(c,e),d=Si(c,k),k=Math.sqrt(Math.min(e,d)),k=k<=this.ac)))&&(l=e>d?g[1]:g[0],c=b.getPixelFromCoordinate(l));f&&(c=[Math.round(c[0]),Math.round(c[1])])}b=l;f&&(a.coordinate=b.slice(0,2),a.pixel=c);return Gj.call(this,a)}function Py(){var a=ne(this.sm);a.length&&(a.forEach(this.zw,this),this.sm={});return!1}function Qy(a,b){return Ui(this.Rp,a.W)-Ui(this.Rp,b.W)}function Ry(a){Fj.call(this,{handleDownEvent:Sy,handleDragEvent:Ty,handleMoveEvent:Uy,handleUpEvent:Vy});a=a?a:{};this.Lh=void 0;this.Id=
null;this.features_=void 0!==a.features?a.features:null;var b;if(a.layers)if("function"===typeof a.layers)b=a.layers;else{var c=a.layers;b=function(a){return Me(c,a)}}else b=Df;this.Rl=b;this.ff=a.hitTolerance?a.hitTolerance:0;this.rj=null}A(Ry,Fj);function Sy(a){this.rj=Wy(this,a.pixel,a.map);if(!this.Id&&this.rj){this.Id=a.coordinate;Uy.call(this,a);var b=this.features_||new Jh([this.rj]);this.dispatchEvent(new Xy("translatestart",b,a.coordinate));return!0}return!1}function Vy(a){if(this.Id){this.Id=
null;Uy.call(this,a);var b=this.features_||new Jh([this.rj]);this.dispatchEvent(new Xy("translateend",b,a.coordinate));return!0}return!1}function Ty(a){if(this.Id){a=a.coordinate;var b=a[0]-this.Id[0],c=a[1]-this.Id[1],d=this.features_||new Jh([this.rj]);d.forEach(function(a){var d=a.getGeometry();d.translate(b,c);a.setGeometry(d)});this.Id=a;this.dispatchEvent(new Xy("translating",d,a))}}function Uy(a){var b=a.map.getTargetElement();Wy(this,a.pixel,a.map)?(this.Lh=void 0!==this.Lh?this.Lh:b.style.cursor,
b.style.cursor=this.Id?"-webkit-grabbing":"-webkit-grab",b.style.cursor=this.Id?"grabbing":"grab"):void 0!==this.Lh&&(b.style.cursor=this.Lh,this.Lh=void 0)}function Wy(a,b,c){return c.forEachFeatureAtPixel(b,function(a){if(!this.features_||Me(this.features_.getArray(),a))return a}.bind(a),{layerFilter:a.Rl,hitTolerance:a.ff})}Ry.prototype.getHitTolerance=function(){return this.ff};Ry.prototype.setHitTolerance=function(a){this.ff=a};function Xy(a,b,c){ze.call(this,a);this.features=b;this.coordinate=
c}A(Xy,ze);function Yy(a){tu.call(this,a);this.Sb=!1;this.qw=Lk();this.Zw="vector"==a.Gm?1:0}A(Yy,tu);var Zy={image:kl,hybrid:["Polygon","LineString"]},$y={hybrid:["Image","Text"],vector:kl};h=Yy.prototype;h.Rd=function(a,b){var c=this.getLayer().getRevision();this.BD!=c&&(this.Eg.length=0);this.BD=c;return tu.prototype.Rd.apply(this,arguments)};function az(a,b,c){function d(a){var b,c=a.getStyleFunction();c?b=c.call(a,t):(c=e.getStyleFunction())&&(b=c(a,t));b&&(Array.isArray(b)||(b=[b]),a=this.Sj(a,
C,b,B),this.Sb=this.Sb||a,l.Oi=l.Oi||a)}var e=a.getLayer(),f=c.pixelRatio;c=c.viewState.projection;var g=e.getRevision(),k=e.get(Vs)||null,l=b.Vh;if(l.Oi||l.Hm!=g||l.tq!=k){l.Uh=null;l.Oi=!1;var m=e.getSource(),n=m.getTileGrid(),q=b.Ka,r=b.getProjection(),t=n.getResolution(q[0]),u,y,z;"tile-pixels"==r.getUnits()?(u=z=m.oc(),n=fn(n.getTileSize(q[0])),u=[0,0,n[0]*u,n[1]*u]):(z=t,u=n.getTileCoordExtent(q),bg(c,r)||(y=!0,b.setProjection(c)));l.Oi=!1;var B=new vs(0,u,z,m.Hh,e.zc),C=Ns(z,f);b=b.getFeatures();
k&&k!==l.tq&&b.sort(k);m=0;for(z=b.length;m<z;++m)f=b[m],y&&f.getGeometry().transform(r,c),d.call(a,f);B.finish();l.Hm=g;l.tq=k;l.Uh=B;l.resolution=NaN}}h.Bo=function(a,b,c,d,e,f,g,k){var l=a;az(this,l,b);if("vector"!=this.getLayer().Gm){var m=l,n=b,q=this.getLayer(),l=m.Vh,r=q.getRevision(),t=Zy[q.Gm];if(t&&l.uq!==r){l.uq=r;var u=m.Ka,y=m.Ka[0],r=n.pixelRatio,z=q.getSource(),B=z.getTileGrid(),C=z.oc(),q=Mk(this.qw);"tile-pixels"==m.getProjection().getUnits()?(u=r/C,Sk(q,u,u)):(C=B.getResolution(y),
C=r/C,u=B.getTileCoordExtent(u,this.en),Sk(q,C,-C),Tk(q,-u[0],-u[3]));m=m.getContext();n=z.bj(y,r,n.viewState.projection);m.canvas.width=n[0];m.canvas.height=n[1];l.Uh.Ta(m,r,q,0,{},t)}}tu.prototype.Bo.apply(this,arguments)};h.za=function(a,b,c,d,e){var f=b.viewState.resolution;b=b.viewState.rotation;c=void 0==c?0:c;var g=this.getLayer(),k={},l=this.Eg,m=g.getSource(),n=m.getTileGrid(),q,r,t,u,y,z;t=0;for(u=l.length;t<u;++t)z=l[t],r=z.Ka,y=m.getTileGrid().getTileCoordExtent(r,this.en),cf(Ye(y,c*f),
a)&&("tile-pixels"===z.getProjection().getUnits()?(y=sf(y),f=m.oc(),r=n.getResolution(r[0])/f,r=[(a[0]-y[0])/r,(y[1]-a[1])/r]):r=a,z=z.Vh.Uh,q=q||z.za(r,f,b,c,{},function(a){var b=D(a).toString();if(!(b in k))return k[b]=!0,d.call(e,a,g)}));return q};h.df=function(){Ds(this)};h.vm=function(a,b,c){var d=this.getLayer().Gm;if(d=$y[d])for(var e=b.pixelRatio,f=b.viewState.rotation,g=b.size,k=Math.round(e*g[0]/2),g=Math.round(e*g[1]/2),l=this.Eg,m=[],n=[],q=l.length-1;0<=q;--q){var r=l[q],t;var u=r;t=
b;if("tile-pixels"==u.getProjection().getUnits()){var y=this.getLayer().getSource(),z=y.getTileGrid(),B=u.Ka,y=z.getResolution(B[0])/y.oc(),u=t.viewState,C=t.pixelRatio,ia=u.resolution/C,B=z.getTileCoordExtent(B,this.en),z=u.center,B=sf(B);t=t.size;t=Uk(this.qw,Math.round(C*t[0]/2),Math.round(C*t[1]/2),y/ia,y/ia,u.rotation,(B[0]-z[0])/y,(z[1]-B[1])/y)}else t=this.getTransform(t,0);y=zs(r.Vh.Uh,t);u=r.Ka[0];a.save();a.globalAlpha=c.opacity;ge(a,-f,k,g);C=0;for(ia=m.length;C<ia;++C)z=m[C],u<n[C]&&(a.beginPath(),
a.moveTo(y[0],y[1]),a.lineTo(y[2],y[3]),a.lineTo(y[4],y[5]),a.lineTo(y[6],y[7]),a.moveTo(z[6],z[7]),a.lineTo(z[4],z[5]),a.lineTo(z[2],z[3]),a.lineTo(z[0],z[1]),a.clip());r.Vh.Uh.Ta(a,e,t,f,{},d);a.restore();m.push(y);n.push(u)}tu.prototype.vm.apply(this,arguments)};h.Sj=function(a,b,c,d){if(!c)return!1;var e=!1;if(Array.isArray(c))for(var f=0,g=c.length;f<g;++f)e=Os(d,a,c[f],b,this.df,this)||e;else e=Os(d,a,c,b,this.df,this)||e;return e};function bz(a){a=a?a:{};var b=le({},a);delete b.preload;delete b.useInterimTilesOnError;
W.call(this,b);this.setPreload(a.preload?a.preload:0);this.setUseInterimTilesOnError(a.useInterimTilesOnError?a.useInterimTilesOnError:!0);qd(void 0==a.renderMode||"image"==a.renderMode||"hybrid"==a.renderMode||"vector"==a.renderMode,28);this.Gm=a.renderMode||"hybrid"}A(bz,W);h=bz.prototype;h.Ci=function(a){var b=null;"canvas"===a.getType()&&(b=new Yy(this));return b};h.getPreload=function(){return this.get(cz)};h.getUseInterimTilesOnError=function(){return this.get(dz)};h.setPreload=function(a){this.set("preload",
a)};h.setUseInterimTilesOnError=function(a){this.set("useInterimTilesOnError",a)};var cz="preload",dz="useInterimTilesOnError";function ez(a,b,c,d){function e(){delete window[g];f.parentNode.removeChild(f)}var f=document.createElement("script"),g="olc_"+D(b);f.async=!0;f.src=a+(-1==a.indexOf("?")?"?":"\x26")+(d||"callback")+"\x3d"+g;var k=setTimeout(function(){e();c&&c()},1E4);window[g]=function(a){clearTimeout(k);e();b(a)};document.getElementsByTagName("head")[0].appendChild(f)}function fz(a){this.cd=
void 0!==a.hidpi?a.hidpi:!1;ju.call(this,{cacheSize:a.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:H("EPSG:3857"),reprojectionErrorThreshold:a.reprojectionErrorThreshold,state:"loading",tileLoadFunction:a.tileLoadFunction,tilePixelRatio:this.cd?2:1,wrapX:void 0!==a.wrapX?a.wrapX:!0});this.dz=void 0!==a.culture?a.culture:"en-us";this.vu=void 0!==a.maxZoom?a.maxZoom:-1;this.$r=a.key;this.Nt=a.imagerySet;ez("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.Nt+"?uriScheme\x3dhttps\x26include\x3dImageryProviders\x26key\x3d"+
this.$r,this.rA.bind(this),void 0,"jsonp")}A(fz,ju);var gz=new rt({html:'\x3ca class\x3d"ol-attribution-bing-tos" href\x3d"http://www.microsoft.com/maps/product/terms.html"\x3eTerms of Use\x3c/a\x3e'});fz.prototype.getApiKey=function(){return this.$r};fz.prototype.getImagerySet=function(){return this.Nt};fz.prototype.rA=function(a){if(200!=a.statusCode||"OK"!=a.statusDescription||"ValidCredentials"!=a.authenticationResultCode||1!=a.resourceSets.length||1!=a.resourceSets[0].resources.length)this.Db("error");
else{var b=a.brandLogoUri;-1==b.indexOf("https")&&(b=b.replace("http","https"));var c=a.resourceSets[0].resources[0],d=-1==this.vu?c.zoomMax:this.vu;a=this.getProjection();a=jj(a);var e=qt({extent:a,minZoom:c.zoomMin,maxZoom:d,tileSize:(c.imageWidth==c.imageHeight?c.imageWidth:[c.imageWidth,c.imageHeight])/this.oc()});this.tileGrid=e;var f=this.dz,g=this.cd;this.tileUrlFunction=bu(c.imageUrlSubdomains.map(function(a){var b=[0,0,0],d=c.imageUrl.replace("{subdomain}",a).replace("{culture}",f);return function(a){if(a)return ft(a[0],
a[1],-a[2]-1,b),a=d,g&&(a+="\x26dpi\x3dd1\x26device\x3dmobile"),a.replace("{quadkey}",gt(b))}}));if(c.imageryProviders){var k=Pf(H("EPSG:4326"),this.getProjection());a=c.imageryProviders.map(function(a){var b=a.attribution,c={};a.coverageAreas.forEach(function(a){var b=a.zoomMin,f=Math.min(a.zoomMax,d);a=a.bbox;a=Cf([a[1],a[0],a[3],a[2]],k);var g,l;for(g=b;g<=f;++g)l=g.toString(),b=ij(e,a,g),l in c?c[l].push(b):c[l]=[b]});return new rt({html:b,an:c})});a.push(gz);this.setAttributions(a)}this.hu=b;
this.Db("ready")}};function hz(a){this.Ur=a.account;this.nu=a.map||"";this.Bi=a.config||{};this.Oq={};nu.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,maxZoom:void 0!==a.maxZoom?a.maxZoom:18,minZoom:a.minZoom,projection:a.projection,state:"loading",wrapX:a.wrapX});iz(this)}A(hz,nu);h=hz.prototype;h.getConfig=function(){return this.Bi};h.updateConfig=function(a){le(this.Bi,a);iz(this)};h.setConfig=function(a){this.Bi=a||{};iz(this)};function iz(a){var b=
JSON.stringify(a.Bi);if(a.Oq[b])jz(a,a.Oq[b]);else{var c="https://"+a.Ur+".cartodb.com/api/v1/map";a.nu&&(c+="/named/"+a.nu);var d=new XMLHttpRequest;d.addEventListener("load",a.tA.bind(a,b));d.addEventListener("error",a.sA.bind(a));d.open("POST",c);d.setRequestHeader("Content-type","application/json");d.send(JSON.stringify(a.Bi))}}h.tA=function(a,b){b=b.target;if(!b.status||200<=b.status&&300>b.status){var c;try{c=JSON.parse(b.responseText)}catch(d){this.Db("error");return}jz(this,c);this.Oq[a]=
c;this.Db("ready")}else this.Db("error")};h.sA=function(){this.Db("error")};function jz(a,b){a.setUrl("https://"+b.cdn_url.yI+"/"+a.Ur+"/api/v1/map/"+b.layergroupid+"/{z}/{x}/{y}.png")}function kz(a){a=a||{};Lu.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions});this.ie=void 0!==a.crossOrigin?a.crossOrigin:null;this.cd=void 0!==a.hidpi?a.hidpi:!0;this.fa=a.url;this.rc=void 0!==a.imageLoadFunction?a.imageLoadFunction:Ru;this.ea=a.params||{};this.f=
null;this.Ub=[0,0];this.Za=0;this.md=void 0!==a.ratio?a.ratio:1.5}A(kz,Lu);h=kz.prototype;h.getParams=function(){return this.ea};h.bg=function(a,b,c,d){if(void 0===this.fa)return null;b=Mu(this,b);c=this.cd?c:1;var e=this.f;if(e&&this.Za==this.getRevision()&&e.getResolution()==b&&e.Ja==c&&ef(e.getExtent(),a))return e;e={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};le(e,this.ea);a=a.slice();var f=(a[0]+a[2])/2,g=(a[1]+a[3])/2;if(1!=this.md){var k=this.md*vf(a)/2,l=this.md*wf(a)/2;a[0]=f-k;a[1]=g-l;a[2]=
f+k;a[3]=g+l}var k=b/c,l=Math.ceil(vf(a)/k),m=Math.ceil(wf(a)/k);a[0]=f-k*l/2;a[2]=f+k*l/2;a[1]=g-k*m/2;a[3]=g+k*m/2;this.Ub[0]=l;this.Ub[1]=m;d=this.$c(a,this.Ub,c,d,e);this.f=new Ju(a,b,c,this.getAttributions(),d,this.ie,this.rc);this.Za=this.getRevision();G(this.f,Ce.CHANGE,this.qh,this);return this.f};h.getImageLoadFunction=function(){return this.rc};h.$c=function(a,b,c,d,e){d=d.getCode().split(":").pop();e.SIZE=b[0]+","+b[1];e.BBOX=a.join(",");e.BBOXSR=d;e.IMAGESR=d;e.DPI=Math.round(90*c);a=
this.fa;b=a.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");b==a&&qd(!1,50);return Cu(b,e)};h.getUrl=function(){return this.fa};h.setImageLoadFunction=function(a){this.f=null;this.rc=a;this.changed()};h.setUrl=function(a){a!=this.fa&&(this.fa=a,this.f=null,this.changed())};h.updateParams=function(a){le(this.ea,a);this.f=null;this.changed()};function lz(a){Lu.call(this,{projection:a.projection,resolutions:a.resolutions});this.ie=void 0!==a.crossOrigin?
a.crossOrigin:null;this.Hs=void 0!==a.displayDpi?a.displayDpi:96;this.ea=a.params||{};this.fa=a.url;this.rc=void 0!==a.imageLoadFunction?a.imageLoadFunction:Ru;this.cd=void 0!==a.hidpi?a.hidpi:!0;this.im=void 0!==a.metersPerUnit?a.metersPerUnit:1;this.md=void 0!==a.ratio?a.ratio:1;this.RE=void 0!==a.useOverlay?a.useOverlay:!1;this.f=null;this.Za=0}A(lz,Lu);h=lz.prototype;h.getParams=function(){return this.ea};h.bg=function(a,b,c,d){b=Mu(this,b);c=this.cd?c:1;var e=this.f;if(e&&this.Za==this.getRevision()&&
e.getResolution()==b&&e.Ja==c&&ef(e.getExtent(),a))return e;1!=this.md&&(a=a.slice(),Bf(a,this.md));e=[vf(a)/b*c,wf(a)/b*c];void 0!==this.fa?(d=this.getUrl(this.fa,this.ea,a,e,d),e=new Ju(a,b,c,this.getAttributions(),d,this.ie,this.rc),G(e,Ce.CHANGE,this.qh,this)):e=null;this.f=e;this.Za=this.getRevision();return e};h.getImageLoadFunction=function(){return this.rc};h.updateParams=function(a){le(this.ea,a);this.changed()};h.getUrl=function(a,b,c,d){var e=xf(c),f=this.im,g=vf(c);c=wf(c);var k=d[0],
l=d[1],m=.0254/this.Hs;d={OPERATION:this.RE?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.Hs,SETDISPLAYWIDTH:Math.round(d[0]),SETDISPLAYHEIGHT:Math.round(d[1]),SETVIEWSCALE:l*g>k*c?g*f/(k*m):c*f/(l*m),SETVIEWCENTERX:e[0],SETVIEWCENTERY:e[1]};le(d,b);return Cu(a,d)};h.setImageLoadFunction=function(a){this.f=null;this.rc=a;this.changed()};function mz(a){var b=a.imageExtent,c=void 0!==a.crossOrigin?a.crossOrigin:
null,d=void 0!==a.imageLoadFunction?a.imageLoadFunction:Ru;Lu.call(this,{attributions:a.attributions,logo:a.logo,projection:H(a.projection)});this.f=new Ju(b,void 0,1,this.getAttributions(),a.url,c,d);this.Ub=a.imageSize?a.imageSize:null;G(this.f,Ce.CHANGE,this.qh,this)}A(mz,Lu);mz.prototype.bg=function(a){return Af(a,this.f.getExtent())?this.f:null};mz.prototype.qh=function(a){if(2==this.f.getState()){var b=this.f.getExtent(),c=this.f.getImage(),d,e;this.Ub?(d=this.Ub[0],e=this.Ub[1]):(d=c.width,
e=c.height);b=Math.ceil(vf(b)/(wf(b)/e));if(b!=d){var b=Hd(b,e),f=b.canvas;b.drawImage(c,0,0,d,e,0,0,f.width,f.height);this.f.setImage(f)}}Lu.prototype.qh.call(this,a)};(function(){var a={},b={v:a};(function(c){"object"===typeof a&&"undefined"!==typeof b?b.v=c():("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).SI=c()})(function(){return function(){function a(b,c,f){function d(g,k){if(!c[g]){if(!b[g]){var l="function"==typeof require&&require;
if(!k&&l)return l(g,!0);if(e)return e(g,!0);k=Error("Cannot find module '"+g+"'");throw k.code="MODULE_NOT_FOUND",k;}k=c[g]={v:{}};b[g][0].call(k.v,function(a){return d(b[g][1][a]||a)},k,k.v,a,b,c,f)}return c[g].v}for(var e="function"==typeof require&&require,l=0;l<f.length;l++)d(f[l]);return d}return a}()({1:[function(a,b,e){a=a("./processor");e.Qx=a},{"./processor":2}],2:[function(a,b){function c(a){var b=!0;try{new ImageData(10,10)}catch(q){b=!1}return function(c){var d=c.buffers,e=c.meta,f=c.width,
g=c.height,k=d.length,l=d[0].byteLength;if(c.imageOps){l=Array(k);for(c=0;c<k;++c){var m=l,n=c,q;q=new Uint8ClampedArray(d[c]);var Ea=f,Pb=g;q=b?new ImageData(q,Ea,Pb):{data:q,width:Ea,height:Pb};m[n]=q}f=a(l,e).data}else{f=new Uint8ClampedArray(l);g=Array(k);m=Array(k);for(c=0;c<k;++c)g[c]=new Uint8ClampedArray(d[c]),m[c]=[0,0,0,0];for(d=0;d<l;d+=4){for(c=0;c<k;++c)n=g[c],m[c][0]=n[d],m[c][1]=n[d+1],m[c][2]=n[d+2],m[c][3]=n[d+3];c=a(m,e);f[d]=c[0];f[d+1]=c[1];f[d+2]=c[2];f[d+3]=c[3]}}return f.buffer}}
function d(a,b){var d=Object.keys(a.lib||{}).map(function(b){return"var "+b+" \x3d "+a.lib[b].toString()+";"}).concat(["var __minion__ \x3d ("+c.toString()+")(",a.operation.toString(),");",'self.addEventListener("message", function(event) {',"  var buffer \x3d __minion__(event.data);","  self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),d=URL.createObjectURL(new Blob(d,{type:"text/javascript"})),d=new Worker(d);d.addEventListener("message",b);return d}function g(a,b){var d=
c(a.operation);return{postMessage:function(a){setTimeout(function(){b({data:{buffer:d(a),meta:a.meta}})},0)}}}function k(a){this.Pn=!!a.bB;var b;b=0===a.threads?0:this.Pn?1:a.threads||1;var c=[];if(b)for(var e=0;e<b;++e)c[e]=d(a,this.Nr.bind(this,e));else c[0]=g(a,this.Nr.bind(this,0));this.Fk=c;this.si=[];this.ny=a.queue||Infinity;this.Dk=0;this.Qg={};this.Qn=null}var l=a("./util").aC;k.prototype.NC=function(a,b,c){this.ly({inputs:a,wu:b,Sg:c});this.Hr()};k.prototype.destroy=function(){for(var a in this)this[a]=
null;this.ky=!0};k.prototype.ly=function(a){for(this.si.push(a);this.si.length>this.ny;)this.si.shift().Sg(null,null)};k.prototype.Hr=function(){if(0===this.Dk&&0<this.si.length){var a=this.Qn=this.si.shift(),b=a.inputs[0].width,c=a.inputs[0].height,d=a.inputs.map(function(a){return a.data.buffer}),e=this.Fk.length;this.Dk=e;if(1===e)this.Fk[0].postMessage({buffers:d,meta:a.wu,imageOps:this.Pn,width:b,height:c},d);else for(var f=4*Math.ceil(a.inputs[0].data.length/4/e),g=0;g<e;++g){for(var k=g*f,
l=[],C=0,ia=d.length;C<ia;++C)l.push(d[g].slice(k,k+f));this.Fk[g].postMessage({buffers:l,meta:a.wu,imageOps:this.Pn,width:b,height:c},l)}}};k.prototype.Nr=function(a,b){this.ky||(this.Qg[a]=b.data,--this.Dk,0===this.Dk&&this.ry())};k.prototype.ry=function(){var a=this.Qn,b=this.Fk.length,c,d;if(1===b)c=new Uint8ClampedArray(this.Qg[0].buffer),d=this.Qg[0].meta;else{var e=a.inputs[0].data.length;c=new Uint8ClampedArray(e);d=Array(e);for(var e=4*Math.ceil(e/4/b),f=0;f<b;++f){var g=f*e;c.set(new Uint8ClampedArray(this.Qg[f].buffer),
g);d[f]=this.Qg[f].meta}}this.Qn=null;this.Qg={};a.Sg(null,l(c,a.inputs[0].width,a.inputs[0].height),d);this.Hr()};b.v=k},{"./util":3}],3:[function(a,b,e){var c=!0;try{new ImageData(10,10)}catch(k){c=!1}var d=document.createElement("canvas").getContext("2d");e.aC=function(a,b,e){if(c)return new ImageData(a,b,e);b=d.createImageData(b,e);b.data.set(a);return b}},{}]},{},[1])(1)});Bm=b.v})();function nz(a){this.Nw=null;this.lC=void 0!==a.operationType?a.operationType:"pixel";this.oE=void 0!==a.threads?
a.threads:1;this.Fg=oz(a.sources);for(var b=0,c=this.Fg.length;b<c;++b)G(this.Fg[b],Ce.CHANGE,this.changed,this);this.Me=Hd();this.$m=new wi(function(){return 1},this.changed.bind(this));for(var b=pz(this.Fg),c={},d=0,e=b.length;d<e;++d)c[D(b[d].layer)]=b[d];this.Cv=this.Dv=null;this.la={animate:!1,attributions:{},Pe:Lk(),extent:null,focus:null,index:0,tj:c,gd:b,wg:{},pixelRatio:1,Ih:Lk(),ld:[],size:[0,0],Jg:{},Sq:this.$m,time:Date.now(),pk:{},viewState:{rotation:0},Pc:[],pi:{}};Lu.call(this,{});
void 0!==a.operation&&this.setOperation(a.operation,a.lib)}A(nz,Lu);nz.prototype.setOperation=function(a,b){this.Nw=new Bm.Qx({operation:a,bB:"image"===this.lC,queue:1,lib:b,threads:this.oE});this.changed()};function qz(a,b,c){var d=a.Dv;return!d||a.getRevision()!==d.HD||c!==d.resolution||!lf(b,d.extent)}nz.prototype.getImage=function(a,b,c,d){c=!0;for(var e,f=0,g=this.Fg.length;f<g;++f)if(e=this.Fg[f].getLayer().getSource(),"ready"!==e.getState()){c=!1;break}if(!c)return null;a=a.slice();if(!qz(this,
a,b))return this.Cv;c=this.Me.canvas;e=Math.round(vf(a)/b);f=Math.round(wf(a)/b);if(e!==c.width||f!==c.height)c.width=e,c.height=f;e=le({},this.la);e.viewState=le({},e.viewState);var f=xf(a),g=Math.round(vf(a)/b),k=Math.round(wf(a)/b);e.extent=a;e.focus=xf(a);e.size[0]=g;e.size[1]=k;g=e.viewState;g.center=f;g.projection=d;g.resolution=b;this.Cv=d=new Xu(a,b,1,this.getAttributions(),c,this.Uy.bind(this,e));this.Dv={extent:a,resolution:b,HD:this.getRevision()};return d};nz.prototype.Uy=function(a,b){for(var c=
this.Fg.length,d=Array(c),e=0;e<c;++e){var f;f=this.Fg[e];var g=a,k=a.gd[e];if(f.Rd(g,k)){var l=g.size[0],m=g.size[1];if(rz){var n=rz.canvas;n.width!==l||n.height!==m?rz=Hd(l,m):rz.clearRect(0,0,l,m)}else rz=Hd(l,m);f.Xg(g,k,rz);f=rz.getImageData(0,0,l,m)}else f=null;if(f)d[e]=f;else{d=null;break}}d&&(c={},this.dispatchEvent(new sz(tz,a,c)),this.Nw.NC(d,c,this.hC.bind(this,a,b)));xi(a.Sq,16,16)};nz.prototype.hC=function(a,b,c,d,e){c?b(c):d&&(this.dispatchEvent(new sz(uz,a,e)),qz(this,a.extent,a.viewState.resolution/
a.pixelRatio)||this.Me.putImageData(d,0,0),b(null))};var rz=null;function pz(a){return a.map(function(a){return vk(a.getLayer())})}function oz(a){for(var b=a.length,c=Array(b),d=0;d<b;++d){var e=d,f=a[d],g=null;f instanceof eu?(f=new Bu({source:f}),g=new tu(f)):f instanceof Lu&&(f=new dv({source:f}),g=new Wu(f));c[e]=g}return c}function sz(a,b,c){ze.call(this,a);this.extent=b.extent;this.resolution=b.viewState.resolution/b.pixelRatio;this.data=c}A(sz,ze);nz.prototype.bg=function(){return null};var tz=
"beforeoperations",uz="afteroperations";function vz(a){var b=a.layer.indexOf("-"),b=-1==b?a.layer:a.layer.slice(0,b),b=wz[b],c=xz[a.layer];nu.call(this,{attributions:yz,cacheSize:a.cacheSize,crossOrigin:"anonymous",maxZoom:void 0!=a.maxZoom?a.maxZoom:b.maxZoom,minZoom:void 0!=a.minZoom?a.minZoom:b.minZoom,opaque:c.opaque,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileLoadFunction:a.tileLoadFunction,url:void 0!==a.url?a.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+a.layer+"/{z}/{x}/{y}."+
c.lc})}A(vz,nu);var yz=[new rt({html:'Map tiles by \x3ca href\x3d"http://stamen.com/"\x3eStamen Design\x3c/a\x3e, under \x3ca href\x3d"http://creativecommons.org/licenses/by/3.0/"\x3eCC BY 3.0\x3c/a\x3e.'}),pu],xz={terrain:{lc:"jpg",opaque:!0},"terrain-background":{lc:"jpg",opaque:!0},"terrain-labels":{lc:"png",opaque:!1},"terrain-lines":{lc:"png",opaque:!1},"toner-background":{lc:"png",opaque:!0},toner:{lc:"png",opaque:!0},"toner-hybrid":{lc:"png",opaque:!1},"toner-labels":{lc:"png",opaque:!1},"toner-lines":{lc:"png",
opaque:!1},"toner-lite":{lc:"png",opaque:!0},watercolor:{lc:"jpg",opaque:!0}},wz={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:1,maxZoom:16}};function zz(a){a=a||{};ju.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,projection:a.projection,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,url:a.url,urls:a.urls,wrapX:void 0!==a.wrapX?a.wrapX:!0});this.ea=
a.params||{};this.gn=We();fu(this,this.Zi())}A(zz,ju);h=zz.prototype;h.Zi=function(){var a=0,b=[],c;for(c in this.ea)b[a++]=c+"-"+this.ea[c];return b.join("/")};h.getParams=function(){return this.ea};h.$c=function(a,b,c,d,e,f){var g=this.urls;if(g)return e=e.getCode().split(":").pop(),f.SIZE=b[0]+","+b[1],f.BBOX=c.join(","),f.BBOXSR=e,f.IMAGESR=e,f.DPI=Math.round(f.DPI?f.DPI*d:90*d),a=(1==g.length?g[0]:g[yd((a[1]<<a[0])+a[2],g.length)]).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,
"ImageServer/exportImage"),Cu(a,f)};h.oc=function(a){return a};h.Zf=function(a,b,c){var d=this.getTileGrid();d||(d=this.ad(c));if(!(d.getResolutions().length<=a[0])){var e=d.getTileCoordExtent(a,this.gn),d=fn(d.getTileSize(a[0]),this.Ge);1!=b&&(d=en(d,b,this.Ge));var f={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};le(f,this.ea);return this.$c(a,d,e,b,c,f)}};h.updateParams=function(a){le(this.ea,a);fu(this,this.Zi())};function Az(a){eu.call(this,{opaque:!1,projection:a.projection,tileGrid:a.tileGrid,wrapX:void 0!==
a.wrapX?a.wrapX:!0})}A(Az,eu);Az.prototype.dg=function(a,b,c){var d=this.Fd(a,b,c);if(this.pa.jc(d))return this.pa.get(d);var e=fn(this.tileGrid.getTileSize(a));a=[a,b,c];b=(b=gu(this,a))?gu(this,b).toString():"";e=new Bz(a,e,b);this.pa.set(d,e);return e};function Bz(a,b,c){Pt.call(this,a,2);this.ei=b;this.oa=c;this.j=null}A(Bz,Pt);Bz.prototype.getImage=function(){if(this.j)return this.j;var a=this.ei,b=Hd(a[0],a[1]);b.strokeStyle="black";b.strokeRect(.5,.5,a[0]+.5,a[1]+.5);b.fillStyle="black";b.textAlign=
"center";b.textBaseline="middle";b.font="24px sans-serif";b.fillText(this.oa,a[0]/2,a[1]/2);return this.j=b.canvas};Bz.prototype.load=function(){};function Cz(a){this.ow=null;ju.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,projection:H("EPSG:3857"),reprojectionErrorThreshold:a.reprojectionErrorThreshold,state:"loading",tileLoadFunction:a.tileLoadFunction,wrapX:void 0!==a.wrapX?a.wrapX:!0});if(a.jsonp)ez(a.url,this.sh.bind(this),this.se.bind(this));else{var b=
new XMLHttpRequest;b.addEventListener("load",this.Gj.bind(this));b.addEventListener("error",this.Fj.bind(this));b.open("GET",a.url);b.send()}}A(Cz,ju);h=Cz.prototype;h.Gj=function(a){a=a.target;if(!a.status||200<=a.status&&300>a.status){var b;try{b=JSON.parse(a.responseText)}catch(c){this.se();return}this.sh(b)}else this.se()};h.Fj=function(){this.se()};h.getTileJSON=function(){return this.ow};h.sh=function(a){var b=H("EPSG:4326"),c=this.getProjection(),d;if(void 0!==a.bounds){var e=Pf(b,c);d=Cf(a.bounds,
e)}var f=a.minzoom||0,e=a.maxzoom||22;this.tileGrid=c=qt({extent:jj(c),maxZoom:e,minZoom:f});this.tileUrlFunction=au(a.tiles,c);if(void 0!==a.attribution&&!this.getAttributions()){b=void 0!==d?d:b.getExtent();d={};for(var g;f<=e;++f)g=f.toString(),d[g]=[ij(c,b,f)];this.setAttributions([new rt({html:a.attribution,an:d})])}this.ow=a;this.Db("ready")};h.se=function(){this.Db("error")};function Dz(a){eu.call(this,{projection:H("EPSG:3857"),state:"loading"});this.Tp=void 0!==a.preemptive?a.preemptive:
!0;this.pw=cu;this.kw=void 0;this.uh=a.jsonp||!1;if(a.url)if(this.uh)ez(a.url,this.sh.bind(this),this.se.bind(this));else{var b=new XMLHttpRequest;b.addEventListener("load",this.Gj.bind(this));b.addEventListener("error",this.Fj.bind(this));b.open("GET",a.url);b.send()}else a.tileJSON?this.sh(a.tileJSON):qd(!1,51)}A(Dz,eu);h=Dz.prototype;h.Gj=function(a){a=a.target;if(!a.status||200<=a.status&&300>a.status){var b;try{b=JSON.parse(a.responseText)}catch(c){this.se();return}this.sh(b)}else this.se()};
h.Fj=function(){this.se()};h.getTemplate=function(){return this.kw};h.forDataAtCoordinateAndResolution=function(a,b,c,d,e){this.tileGrid?(b=this.tileGrid.getTileCoordForCoordAndResolution(a,b),Ez(this.dg(b[0],b[1],b[2],1,this.getProjection()),a,c,d,e)):!0===e?setTimeout(function(){c.call(d,null)},0):c.call(d,null)};h.se=function(){this.Db("error")};h.sh=function(a){var b=H("EPSG:4326"),c=this.getProjection(),d;if(void 0!==a.bounds){var e=Pf(b,c);d=Cf(a.bounds,e)}var f=a.minzoom||0,e=a.maxzoom||22;
this.tileGrid=c=qt({extent:jj(c),maxZoom:e,minZoom:f});this.kw=a.template;var g=a.grids;if(g){this.pw=au(g,c);if(void 0!==a.attribution){b=void 0!==d?d:b.getExtent();for(d={};f<=e;++f)g=f.toString(),d[g]=[ij(c,b,f)];this.setAttributions([new rt({html:a.attribution,an:d})])}this.Db("ready")}else this.Db("error")};h.dg=function(a,b,c,d,e){var f=this.Fd(a,b,c);if(this.pa.jc(f))return this.pa.get(f);a=[a,b,c];b=gu(this,a,e);d=this.pw(b,d,e);d=new Fz(a,void 0!==d?0:4,void 0!==d?d:"",this.tileGrid.getTileCoordExtent(a),
this.Tp,this.uh);this.pa.set(f,d);return d};h.er=function(a,b,c){a=this.Fd(a,b,c);this.pa.jc(a)&&this.pa.get(a)};function Fz(a,b,c,d,e,f){Pt.call(this,a,b);this.rd=c;this.extent_=d;this.Tp=e;this.eb=this.vh=this.sl=null;this.uh=f}A(Fz,Pt);h=Fz.prototype;h.getImage=function(){return null};h.getData=function(a){if(!this.sl||!this.vh)return null;var b=this.sl[Math.floor((1-(a[1]-this.extent_[1])/(this.extent_[3]-this.extent_[1]))*this.sl.length)];if("string"!==typeof b)return null;a=b.charCodeAt(Math.floor((a[0]-
this.extent_[0])/(this.extent_[2]-this.extent_[0])*b.length));93<=a&&a--;35<=a&&a--;a-=32;b=null;a in this.vh&&(a=this.vh[a],b=this.eb&&a in this.eb?this.eb[a]:a);return b};function Ez(a,b,c,d,e){0==a.state&&!0===e?(ve(a,Ce.CHANGE,function(){c.call(d,this.getData(b))},a),a.pf()):!0===e?setTimeout(function(){c.call(d,this.getData(b))}.bind(a),0):c.call(d,a.getData(b))}h.getKey=function(){return this.rd};h.tl=function(){this.state=3;this.changed()};h.yl=function(a){this.sl=a.grid;this.vh=a.keys;this.eb=
a.data;this.state=4;this.changed()};h.pf=function(){if(0==this.state)if(this.state=1,this.uh)ez(this.rd,this.yl.bind(this),this.tl.bind(this));else{var a=new XMLHttpRequest;a.addEventListener("load",this.Gj.bind(this));a.addEventListener("error",this.Fj.bind(this));a.open("GET",this.rd);a.send()}};h.Gj=function(a){a=a.target;if(!a.status||200<=a.status&&300>a.status){var b;try{b=JSON.parse(a.responseText)}catch(c){this.tl();return}this.yl(b)}else this.tl()};h.Fj=function(){this.tl()};h.load=function(){this.Tp&&
this.pf()};function Gz(a,b,c,d,e){Pt.call(this,a,b);this.J=Hd();this.sb=d;this.features_=null;this.Vh={Oi:!1,tq:null,Hm:-1,uq:-1,Uh:null};this.Rq=e;this.fa=c}A(Gz,Pt);h=Gz.prototype;h.getContext=function(){return this.J};h.getImage=function(){return-1==this.Vh.uq?null:this.J.canvas};h.getFormat=function(){return this.sb};h.getFeatures=function(){return this.features_};h.getKey=function(){return this.fa};h.getProjection=function(){return this.Ga};h.load=function(){0==this.state&&(this.Db(1),this.Rq(this,
this.fa),this.Xb(null,NaN,null))};h.fC=function(a,b){this.setProjection(b);this.setFeatures(a)};h.eC=function(){this.Db(3)};h.setFeatures=function(a){this.features_=a;this.Db(2)};h.setProjection=function(a){this.Ga=a};h.Db=function(a){this.state=a;this.changed()};h.setLoader=function(a){this.Xb=a};function Hz(a,b){b=ct(b,a.getFormat(),a.fC.bind(a),a.eC.bind(a));a.setLoader(b)}function Iz(a){iu.call(this,{attributions:a.attributions,cacheSize:void 0!==a.cacheSize?a.cacheSize:128,extent:a.extent,logo:a.logo,
opaque:!1,projection:a.projection,state:a.state,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction?a.tileLoadFunction:Hz,tileUrlFunction:a.tileUrlFunction,tilePixelRatio:a.tilePixelRatio,url:a.url,urls:a.urls,wrapX:void 0===a.wrapX?!0:a.wrapX});this.sb=a.format?a.format:null;this.Hh=void 0==a.overlaps?!0:a.overlaps;this.tileClass=a.tileClass?a.tileClass:Gz}A(Iz,iu);Iz.prototype.dg=function(a,b,c,d,e){var f=this.Fd(a,b,c);if(this.pa.jc(f))return this.pa.get(f);a=[a,b,c];d=(b=gu(this,a,e))?this.tileUrlFunction(b,
d,e):void 0;d=new this.tileClass(a,void 0!==d?0:4,void 0!==d?d:"",this.sb,this.tileLoadFunction);G(d,Ce.CHANGE,this.fj,this);this.pa.set(f,d);return d};Iz.prototype.oc=function(a){return void 0==a?iu.prototype.oc.call(this,a):a};Iz.prototype.bj=function(a,b){a=fn(this.tileGrid.getTileSize(a));return[Math.round(a[0]*b),Math.round(a[1]*b)]};function Jz(a){a=a||{};var b=a.size,c=b[0],d=b[1],e=[],f=256;switch(void 0!==a.tierSizeCalculation?a.tierSizeCalculation:Kz){case Kz:for(;c>f||d>f;)e.push([Math.ceil(c/
f),Math.ceil(d/f)]),f+=f;break;case Lz:for(;c>f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),c>>=1,d>>=1;break;default:qd(!1,53)}e.push([1,1]);e.reverse();for(var f=[1],g=[0],d=1,c=e.length;d<c;d++)f.push(1<<d),g.push(e[d-1][0]*e[d-1][1]+g[d-1]);f.reverse();b=[0,-b[1],b[0],0];b=new ht({extent:b,origin:sf(b),resolutions:f});(f=a.url)&&-1==f.indexOf("{TileGroup}")&&(f+="{TileGroup}/{z}-{x}-{y}.jpg");f=du(f);f=bu(f.map(function(a){return function(b){if(b){var c=b[0],d=b[1];b=-b[2]-1;var f={z:c,x:d,
y:b,TileGroup:"TileGroup"+((d+b*e[c][0]+g[c])/256|0)};return a.replace(/\{(\w+?)\}/g,function(a,b){return f[b]})}}}));ju.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,projection:a.projection,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileClass:Mz,tileGrid:b,tileUrlFunction:f})}A(Jz,ju);function Mz(a,b,c,d,e){Rt.call(this,a,b,c,d,e);this.En=null}A(Mz,Rt);Mz.prototype.getImage=function(){if(this.En)return this.En;var a=Rt.prototype.getImage.call(this);
if(2==this.state){if(256==a.width&&256==a.height)return this.En=a;var b=Hd(256,256);b.drawImage(a,0,0);return this.En=b.canvas}return a};var Kz="default",Lz="truncated";function Nz(a,b){this.cc=b;this.el=[{x:0,y:0,width:a,height:a}];this.Ed={};this.J=Hd(a,a);this.j=this.J.canvas}Nz.prototype.get=function(a){return this.Ed[a]||null};Nz.prototype.add=function(a,b,c,d,e){var f,g,k;g=0;for(k=this.el.length;g<k;++g)if(f=this.el[g],f.width>=b+this.cc&&f.height>=c+this.cc)return k={offsetX:f.x+this.cc,offsetY:f.y+
this.cc,image:this.j},this.Ed[a]=k,d.call(e,this.J,f.x+this.cc,f.y+this.cc),a=b+this.cc,b=c+this.cc,f.width-a>f.height-b?(c={x:f.x+a,y:f.y,width:f.width-a,height:f.height},f={x:f.x,y:f.y+b,width:a,height:f.height-b}):(c={x:f.x+a,y:f.y,width:f.width-a,height:b},f={x:f.x,y:f.y+b,width:f.width,height:f.height-b}),g=[g,1],0<c.width&&0<c.height&&g.push(c),0<f.width&&0<f.height&&g.push(f),this.el.splice.apply(this.el,g),k;return null};function Oz(a){a=a||{};this.Yk=void 0!==a.initialSize?a.initialSize:
256;this.gm=void 0!==a.maxSize?a.maxSize:void 0!==gd?gd:2048;this.cc=void 0!==a.space?a.space:1;this.Iy=[new Nz(this.Yk,this.cc)];this.vo=this.Yk;this.WA=[new Nz(this.vo,this.cc)]}Oz.prototype.add=function(a,b,c,d,e,f){if(b+this.cc>this.gm||c+this.cc>this.gm)return null;d=Pz(this,!1,a,b,c,d,f);if(!d)return null;a=Pz(this,!0,a,b,c,void 0!==e?e:nd,f);return{offsetX:d.offsetX,offsetY:d.offsetY,image:d.image,ZA:a.image}};function Pz(a,b,c,d,e,f,g){var k=b?a.WA:a.Iy,l,m,n;m=0;for(n=k.length;m<n;++m){l=
k[m];if(l=l.add(c,d,e,f,g))return l;l||m!==n-1||(b?(l=Math.min(2*a.vo,a.gm),a.vo=l):(l=Math.min(2*a.Yk,a.gm),a.Yk=l),l=new Nz(l,a.cc),k.push(l),++n)}return null}p("M.dialog.show",M.dialog.show);p("M.dialog.remove",M.dialog.remove);p("M.dialog.info",M.dialog.info);p("M.dialog.error",M.dialog.error);p("M.dialog.success",M.dialog.success);p("M.evt.ADDED_TO_MAP",M.evt.ADDED_TO_MAP);p("M.evt.ADDED_TO_PANEL",M.evt.ADDED_TO_PANEL);p("M.evt.ADDED_LAYER",M.evt.ADDED_LAYER);p("M.evt.ADDED_WMC",M.evt.ADDED_WMC);
p("M.evt.ADDED_KML",M.evt.ADDED_KML);p("M.evt.ADDED_WMS",M.evt.ADDED_WMS);p("M.evt.ADDED_WFS",M.evt.ADDED_WFS);p("M.evt.ADDED_WMTS",M.evt.ADDED_WMTS);p("M.evt.ACTIVATED",M.evt.ACTIVATED);p("M.evt.DEACTIVATED",M.evt.DEACTIVATED);p("M.evt.SHOW",M.evt.SHOW);p("M.evt.HIDE",M.evt.HIDE);p("M.evt.DESTROY",M.evt.DESTROY);p("M.evt.SELECT_FEATURES",M.evt.SELECT_FEATURES);p("M.evt.UNSELECT_FEATURES",M.evt.UNSELECT_FEATURES);p("M.evt.HOVER_FEATURES",M.evt.HOVER_FEATURES);p("M.evt.LEAVE_FEATURES",M.evt.LEAVE_FEATURES);
p("M.evt.LOAD",M.evt.LOAD);p("M.evt.COMPLETED",M.evt.COMPLETED);p("M.evt.CHANGE",M.evt.CHANGE);p("M.evt.CHANGE_WMC",M.evt.CHANGE_WMC);p("M.evt.CHANGE_PROJ",M.evt.CHANGE_PROJ);p("M.evt.CHANGE_STYLE",M.evt.CHANGE_STYLE);p("M.evt.CLICK",M.evt.CLICK);p("M.evt.MOVE",M.evt.MOVE);p("M.evt.EventsManager",M.evt.EventsManager);M.evt.EventsManager.prototype.add=M.evt.EventsManager.prototype.add;M.evt.EventsManager.prototype.remove=M.evt.EventsManager.prototype.remove;M.evt.EventsManager.prototype.fire=M.evt.EventsManager.prototype.fire;
M.evt.EventsManager.prototype.indexOf=M.evt.EventsManager.prototype.indexOf;p("M.evt.Listener",M.evt.Listener);M.evt.Listener.prototype.fire=M.evt.Listener.prototype.fire;M.evt.Listener.prototype.getEventKey=M.evt.Listener.prototype.getEventKey;M.evt.Listener.prototype.isOnce=M.evt.Listener.prototype.isOnce;M.evt.Listener.prototype.has=M.evt.Listener.prototype.has;p("M.facade.Base",M.facade.Base);M.facade.Base.prototype.getImpl=M.facade.Base.prototype.getImpl;M.facade.Base.prototype.setImpl=M.facade.Base.prototype.setImpl;
M.facade.Base.prototype.destroy=M.facade.Base.prototype.destroy;p("M.impl.Label",M.impl.Label);M.impl.Label.prototype.panMapIfOutOfView=M.impl.Label.prototype.panMapIfOutOfView;M.impl.Label.prototype.show=M.impl.Label.prototype.show;M.impl.Label.prototype.hide=M.impl.Label.prototype.hide;M.impl.Label.prototype.getPopup=M.impl.Label.prototype.getPopup;M.impl.Label.prototype.getCoordinate=M.impl.Label.prototype.getCoordinate;M.impl.Label.prototype.setCoordinate=M.impl.Label.prototype.setCoordinate;
p("M.geom.wfs.type.POINT",M.geom.wfs.type.POINT);p("M.geom.wfs.type.LINE",M.geom.wfs.type.LINE);p("M.geom.wfs.type.POLYGON",M.geom.wfs.type.POLYGON);p("M.geom.wfs.type.MPOINT",M.geom.wfs.type.MPOINT);p("M.geom.wfs.type.MLINE",M.geom.wfs.type.MLINE);p("M.geom.wfs.type.MPOLYGON",M.geom.wfs.type.MPOLYGON);p("M.geom.wkt.type.GEOMETRY",M.geom.wkt.type.GEOMETRY);p("M.geom.wkt.type.POINT",M.geom.wkt.type.POINT);p("M.geom.wkt.type.LINE_STRING",M.geom.wkt.type.LINE_STRING);p("M.geom.wkt.type.LINEAR_RING",
M.geom.wkt.type.LINEAR_RING);p("M.geom.wkt.type.POLYGON",M.geom.wkt.type.POLYGON);p("M.geom.wkt.type.MULTI_POINT",M.geom.wkt.type.MULTI_POINT);p("M.geom.wkt.type.MULTI_LINE_STRING",M.geom.wkt.type.MULTI_LINE_STRING);p("M.geom.wkt.type.MULTI_POLYGON",M.geom.wkt.type.MULTI_POLYGON);p("M.geom.wkt.type.GEOMETRY_COLLECTION",M.geom.wkt.type.GEOMETRY_COLLECTION);p("M.geom.wkt.type.CIRCLE",M.geom.wkt.type.CIRCLE);p("M.geom.parse",M.geom.parse);p("M.geom.parseWFS",M.geom.parseWFS);p("M.Label",M.Label);M.Label.prototype.hide=
M.Label.prototype.hide;M.Label.prototype.show=M.Label.prototype.show;M.Label.prototype.getPopup=M.Label.prototype.getPopup;M.Label.prototype.getCoordinate=M.Label.prototype.getCoordinate;M.Label.prototype.setCoordinate=M.Label.prototype.setCoordinate;p("M.Label.POPUP_TEMPLATE",M.Label.POPUP_TEMPLATE);p("M.DOTS_PER_INCH",M.DOTS_PER_INCH);p("M.INCHES_PER_UNIT",M.INCHES_PER_UNIT);p("M.proxy",M.proxy);p("M.lang",M.lang);p("M.impl",M.impl);p("M.config",M.config);p("M.map",M.map);p("M.Object",M.Object);
M.Object.prototype.on=M.Object.prototype.on;M.Object.prototype.once=M.Object.prototype.once;M.Object.prototype.once=M.Object.prototype.once;M.Object.prototype.un=M.Object.prototype.un;M.Object.prototype.fire=M.Object.prototype.fire;p("M.plugin",M.plugin);p("M.Plugin",M.Plugin);M.Plugin.prototype.addTo=M.Plugin.prototype.addTo;M.Plugin.prototype.createView=M.Plugin.prototype.createView;p("M.Popup",M.Popup);M.Popup.prototype.getTabs=M.Popup.prototype.getTabs;M.Popup.prototype.removeTab=M.Popup.prototype.removeTab;
M.Popup.prototype.addTab=M.Popup.prototype.addTab;M.Popup.prototype.addTo=M.Popup.prototype.addTo;M.Popup.prototype.update=M.Popup.prototype.update;M.Popup.prototype.show=M.Popup.prototype.show;M.Popup.prototype.hide=M.Popup.prototype.hide;M.Popup.prototype.switchTab=M.Popup.prototype.switchTab;M.Popup.prototype.getCoordinate=M.Popup.prototype.getCoordinate;M.Popup.prototype.setCoordinate=M.Popup.prototype.setCoordinate;M.Popup.prototype.destroy=M.Popup.prototype.destroy;p("M.Popup.TEMPLATE",M.Popup.TEMPLATE);
p("M.Popup.status",M.Popup.status);p("M.Popup.status.COLLAPSED",M.Popup.status.COLLAPSED);p("M.Popup.status.DEFAULT",M.Popup.status.DEFAULT);p("M.Popup.status.FULL",M.Popup.status.FULL);M.Popup.Tab.prototype.icon=M.Popup.Tab.prototype.icon;M.Popup.Tab.prototype.title=M.Popup.Tab.prototype.title;M.Popup.Tab.prototype.content=M.Popup.Tab.prototype.content;p("M.impl.View",M.impl.View);M.impl.View.prototype.setUserZoom=M.impl.View.prototype.setUserZoom;M.impl.View.prototype.getUserZoom=M.impl.View.prototype.getUserZoom;
M.impl.View.prototype.setProjection=M.impl.View.prototype.setProjection;M.impl.View.prototype.getResolutions=M.impl.View.prototype.getResolutions;M.impl.View.prototype.setResolutions=M.impl.View.prototype.setResolutions;pd.prototype.code=pd.prototype.code;p("ol.Attribution",rt);rt.prototype.getHTML=rt.prototype.getHTML;Array.prototype.forEach=Array.prototype.forEach;Array.prototype.filter=Array.prototype.filter;Array.prototype.includes=Array.prototype.includes;Array.prototype.remove=Array.prototype.remove;
Array.prototype.map=Array.prototype.map;p("Object.equals",Object.equals);p("M.remote.get",M.remote.get);p("M.remote.post",M.remote.post);p("M.remote.Response",M.remote.Response);M.remote.Response.prototype.text=M.remote.Response.prototype.text;M.remote.Response.prototype.xml=M.remote.Response.prototype.xml;M.remote.Response.prototype.headers=M.remote.Response.prototype.headers;M.remote.Response.prototype.error=M.remote.Response.prototype.error;M.remote.Response.prototype.code=M.remote.Response.prototype.code;
M.remote.Response.prototype.parseXmlHttp=M.remote.Response.prototype.parseXmlHttp;M.remote.Response.prototype.parseProxy=M.remote.Response.prototype.parseProxy;p("M.remote.method.GET",M.remote.method.GET);p("M.remote.method.POST",M.remote.method.POST);p("M.template.compile",M.template.compile);p("M.template.get",M.template.get);p("M.template.add",M.template.add);p("ol.Collection",Jh);Jh.prototype.clear=Jh.prototype.clear;Jh.prototype.extend=Jh.prototype.extend;Jh.prototype.forEach=Jh.prototype.forEach;
Jh.prototype.getArray=Jh.prototype.getArray;Jh.prototype.item=Jh.prototype.item;Jh.prototype.getLength=Jh.prototype.getLength;Jh.prototype.insertAt=Jh.prototype.insertAt;Jh.prototype.pop=Jh.prototype.pop;Jh.prototype.push=Jh.prototype.push;Jh.prototype.remove=Jh.prototype.remove;Jh.prototype.removeAt=Jh.prototype.removeAt;Jh.prototype.setAt=Jh.prototype.setAt;Mh.prototype.element=Mh.prototype.element;p("M.utils.isNullOrEmpty",M.utils.isNullOrEmpty);p("M.utils.isNull",M.utils.isNull);p("M.utils.isArray",
M.utils.isArray);p("M.utils.isFunction",M.utils.isFunction);p("M.utils.isObject",M.utils.isObject);p("M.utils.isString",M.utils.isString);p("M.utils.isBoolean",M.utils.isBoolean);p("M.utils.isUrl",M.utils.isUrl);p("M.utils.isUndefined",M.utils.isUndefined);p("M.utils.normalize",M.utils.normalize);p("M.utils.getParameterValue",M.utils.getParameterValue);p("M.utils.addParameters",M.utils.addParameters);p("M.utils.generateRandom",M.utils.generateRandom);p("M.utils.getWMSGetCapabilitiesUrl",M.utils.getWMSGetCapabilitiesUrl);
p("M.utils.getWMTSGetCapabilitiesUrl",M.utils.getWMTSGetCapabilitiesUrl);p("M.utils.generateResolutionsFromScales",M.utils.generateResolutionsFromScales);p("M.utils.generateResolutionsFromExtent",M.utils.generateResolutionsFromExtent);p("M.utils.fillResolutions",M.utils.fillResolutions);p("M.utils.getResolutionFromScale",M.utils.getResolutionFromScale);p("M.utils.getScaleFromResolution",M.utils.getScaleFromResolution);p("M.utils.stringToHtml",M.utils.stringToHtml);p("M.utils.htmlToString",M.utils.htmlToString);
p("M.utils.beautifyString",M.utils.beautifyString);p("M.utils.beautifyAttribute",M.utils.beautifyAttribute);p("M.utils.beautifyAttributeName",M.utils.beautifyAttributeName);p("M.utils.concatUrlPaths",M.utils.concatUrlPaths);p("M.utils.includes",M.utils.includes);p("M.utils.extend",M.utils.extend);p("M.utils.escapeXSS",M.utils.escapeXSS);p("M.utils.escapeJSCode",M.utils.escapeJSCode);p("M.utils.enableTouchScroll",M.utils.enableTouchScroll);p("M.utils.rgbToHex",M.utils.rgbToHex);p("M.utils.rgbaToHex",
M.utils.rgbaToHex);p("M.utils.getOpacityFromRgba",M.utils.getOpacityFromRgba);p("M.utils.sameUrl",M.utils.sameUrl);p("M.utils.isGeometryType",M.utils.isGeometryType);p("M.utils.decodeHtml",M.utils.decodeHtml);p("M.utils.getTextFromHtml",M.utils.getTextFromHtml);p("M.utils.generateColorScale",M.utils.generateColorScale);p("M.utils.inverseColor",M.utils.inverseColor);p("M.utils.getGeometryType",M.utils.getGeometryType);p("M.utils.generateStyleLayer",M.utils.generateStyleLayer);p("M.utils.getRgba",M.utils.getRgba);
p("M.utils.setEquals",M.utils.setEquals);p("M.utils.extends",M.utils.extends);p("M.utils.generateIntervals",M.utils.generateIntervals);p("M.utils.styleComparator",M.utils.styleComparator);p("M.utils.getImageSize",M.utils.getImageSize);p("M.utils.generateRandomStyle",M.utils.generateRandomStyle);p("M.window.WIDTH",M.window.WIDTH);p("M.window.HEIGHT",M.window.HEIGHT);p("ol.color.asArray",Cd);p("ol.color.asString",Ed);p("ol.colorlike.asColorLike",Gd);p("ol.control.defaults",oj);p("ol.coordinate.add",
Ki);p("ol.coordinate.createStringXY",Ih);p("ol.coordinate.format",Oi);p("ol.coordinate.rotate",Qi);p("ol.coordinate.toStringHDMS",function(a,b){return a?Ni(a[1],"NS",b)+" "+Ni(a[0],"EW",b):""});p("ol.coordinate.toStringXY",Mi);p("ol.DeviceOrientation",kw);kw.prototype.getAlpha=kw.prototype.getAlpha;kw.prototype.getBeta=kw.prototype.getBeta;kw.prototype.getGamma=kw.prototype.getGamma;kw.prototype.getHeading=kw.prototype.getHeading;kw.prototype.getTracking=kw.prototype.getTracking;kw.prototype.setTracking=
kw.prototype.setTracking;p("ol.easing.easeIn",Vi.easeIn);p("ol.easing.easeOut",Vi.easeOut);p("ol.easing.inAndOut",Vi.inAndOut);p("ol.easing.linear",Vi.linear);p("ol.easing.upAndDown",Vi.upAndDown);p("M.impl.envolvedExtent.calculate",M.impl.envolvedExtent.calculate);p("M.impl.envolvedExtent.calculateFromWMC",M.impl.envolvedExtent.calculateFromWMC);p("M.impl.envolvedExtent.calculateFromProjection",M.impl.envolvedExtent.calculateFromProjection);p("M.impl.envolvedExtent.calculateFromWMS",M.impl.envolvedExtent.calculateFromWMS);
p("ol.coordinate.convexHull",Ii);gg.prototype.convexHull=gg.prototype.convexHull;p("M.impl.renderutils.postRender",M.impl.renderutils.postRender);p("M.impl.textpath.render",M.impl.textpath.render);p("M.impl.textpath.getPath_",M.impl.textpath.getPath_);p("M.impl.textpath.formatStyle",M.impl.textpath.formatStyle);p("M.impl.textpath.draw",M.impl.textpath.draw);p("M.impl.textpath.DEFAULT",M.impl.textpath.DEFAULT);p("M.impl.utils.generateResolutions",M.impl.utils.generateResolutions);p("M.impl.utils.addOverlayImage",
M.impl.utils.addOverlayImage);p("M.impl.utils.getExtentHeight",M.impl.utils.getExtentHeight);p("M.impl.utils.getExtentWidth",M.impl.utils.getExtentWidth);p("M.impl.utils.getCentroid",M.impl.utils.getCentroid);p("M.impl.utils.getFeaturesExtent",M.impl.utils.getFeaturesExtent);p("M.impl.utils.getCentroidCoordinate",M.impl.utils.getCentroidCoordinate);p("ol.extent.boundingExtent",Ve);p("ol.extent.buffer",Ye);p("ol.extent.containsCoordinate",cf);p("ol.extent.containsExtent",ef);p("ol.extent.containsXY",
df);p("ol.extent.createEmpty",We);p("ol.extent.equals",lf);p("ol.extent.extend",mf);p("ol.extent.getBottomLeft",of);p("ol.extent.getBottomRight",pf);p("ol.extent.getCenter",xf);p("ol.extent.getHeight",wf);p("ol.extent.getIntersection",zf);p("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]});p("ol.extent.getTopLeft",sf);p("ol.extent.getTopRight",rf);p("ol.extent.getWidth",vf);p("ol.extent.intersects",Af);p("ol.extent.isEmpty",uf);p("ol.extent.applyTransform",Cf);p("M.impl.GetCapabilities",
M.impl.GetCapabilities);M.impl.GetCapabilities.prototype.getLayerExtent=M.impl.GetCapabilities.prototype.getLayerExtent;p("M.ui.Panel",M.ui.Panel);M.ui.Panel.prototype.name=M.ui.Panel.prototype.name;M.ui.Panel.prototype.position=M.ui.Panel.prototype.position;M.ui.Panel.prototype.destroy=M.ui.Panel.prototype.destroy;M.ui.Panel.prototype.addTo=M.ui.Panel.prototype.addTo;M.ui.Panel.prototype.getControls=M.ui.Panel.prototype.getControls;M.ui.Panel.prototype.addControls=M.ui.Panel.prototype.addControls;
M.ui.Panel.prototype.hasControl=M.ui.Panel.prototype.hasControl;M.ui.Panel.prototype.removeControls=M.ui.Panel.prototype.removeControls;M.ui.Panel.prototype._removeControl=M.ui.Panel.prototype._removeControl;M.ui.Panel.prototype.removeClassName=M.ui.Panel.prototype.removeClassName;M.ui.Panel.prototype.addClassName=M.ui.Panel.prototype.addClassName;M.ui.Panel.prototype._moveControlView=M.ui.Panel.prototype._moveControlView;M.ui.Panel.prototype._manageActivation=M.ui.Panel.prototype._manageActivation;
M.ui.Panel.prototype.equals=M.ui.Panel.prototype.equals;M.ui.Panel.prototype.getTemplatePanel=M.ui.Panel.prototype.getTemplatePanel;M.ui.Panel.prototype.isCollapsed=M.ui.Panel.prototype.isCollapsed;p("M.ui.Panel.TEMPLATE",M.ui.Panel.TEMPLATE);p("ol.Feature",E);E.prototype.clone=E.prototype.clone;E.prototype.getGeometry=E.prototype.getGeometry;E.prototype.getId=E.prototype.getId;E.prototype.getGeometryName=E.prototype.getGeometryName;E.prototype.getStyle=E.prototype.getStyle;E.prototype.getStyleFunction=
E.prototype.getStyleFunction;E.prototype.setGeometry=E.prototype.setGeometry;E.prototype.setStyle=E.prototype.setStyle;E.prototype.setId=E.prototype.setId;E.prototype.setGeometryName=E.prototype.setGeometryName;p("M.ui.position.TL",M.ui.position.TL);p("M.ui.position.TR",M.ui.position.TR);p("M.ui.position.BL",M.ui.position.BL);p("M.ui.position.BR",M.ui.position.BR);p("ol.featureloader.xhr",dt);p("M.impl.style.Icon",fo);fo.prototype.getImageSize=fo.prototype.getImageSize;p("M.impl.style.CentroidStyle",
M.impl.style.CentroidStyle);M.impl.style.CentroidStyle.prototype.clone=M.impl.style.CentroidStyle.prototype.clone;p("ol.Geolocation",Ch);Ch.prototype.getAccuracy=Ch.prototype.getAccuracy;Ch.prototype.getAccuracyGeometry=Ch.prototype.getAccuracyGeometry;Ch.prototype.getAltitude=Ch.prototype.getAltitude;Ch.prototype.getAltitudeAccuracy=Ch.prototype.getAltitudeAccuracy;Ch.prototype.getHeading=Ch.prototype.getHeading;Ch.prototype.getPosition=Ch.prototype.getPosition;Ch.prototype.getProjection=Ch.prototype.getProjection;
Ch.prototype.getSpeed=Ch.prototype.getSpeed;Ch.prototype.getTracking=Ch.prototype.getTracking;Ch.prototype.getTrackingOptions=Ch.prototype.getTrackingOptions;Ch.prototype.setProjection=Ch.prototype.setProjection;Ch.prototype.setTracking=Ch.prototype.setTracking;Ch.prototype.setTrackingOptions=Ch.prototype.setTrackingOptions;p("M.impl.Style",M.impl.Style);M.impl.Style.prototype.updateFacadeOptions=M.impl.Style.prototype.updateFacadeOptions;M.impl.Style.prototype.applyToLayer=M.impl.Style.prototype.applyToLayer;
M.impl.Style.prototype.applyToFeature=M.impl.Style.prototype.applyToFeature;M.impl.Style.prototype.updateCanvas=M.impl.Style.prototype.updateCanvas;M.impl.Style.prototype.drawGeometryToCanvas=M.impl.Style.prototype.drawGeometryToCanvas;M.impl.Style.prototype.getCanvasSize=M.impl.Style.prototype.getCanvasSize;M.impl.Style.prototype.clone=M.impl.Style.prototype.clone;p("M.impl.style.Chart",M.impl.style.Chart);M.impl.style.Chart.prototype.updateCanvas=M.impl.style.Chart.prototype.updateCanvas;M.impl.style.Chart.prototype.formatDataRecursively_=
M.impl.style.Chart.prototype.formatDataRecursively_;M.impl.style.Chart.prototype.extend_=M.impl.style.Chart.prototype.extend_;p("M.impl.style.Cluster",M.impl.style.Cluster);M.impl.style.Cluster.prototype.applyToLayer=M.impl.style.Cluster.prototype.applyToLayer;M.impl.style.Cluster.prototype.clusterize_=M.impl.style.Cluster.prototype.clusterize_;M.impl.style.Cluster.prototype.setRanges=M.impl.style.Cluster.prototype.setRanges;M.impl.style.Cluster.prototype.updateLastRange_=M.impl.style.Cluster.prototype.updateLastRange_;
M.impl.style.Cluster.prototype.updateRangeImpl=M.impl.style.Cluster.prototype.updateRangeImpl;M.impl.style.Cluster.prototype.setAnimated=M.impl.style.Cluster.prototype.setAnimated;M.impl.style.Cluster.prototype.addSelectInteraction_=M.impl.style.Cluster.prototype.addSelectInteraction_;M.impl.style.Cluster.prototype.removeSelectInteraction_=M.impl.style.Cluster.prototype.removeSelectInteraction_;M.impl.style.Cluster.prototype.hoverFeatureFn_=M.impl.style.Cluster.prototype.hoverFeatureFn_;M.impl.style.Cluster.prototype.leaveFeatureFn_=
M.impl.style.Cluster.prototype.leaveFeatureFn_;M.impl.style.Cluster.prototype.addCoverInteraction_=M.impl.style.Cluster.prototype.addCoverInteraction_;M.impl.style.Cluster.prototype.removeCoverInteraction_=M.impl.style.Cluster.prototype.removeCoverInteraction_;M.impl.style.Cluster.prototype.clusterStyleFn_=M.impl.style.Cluster.prototype.clusterStyleFn_;M.impl.style.Cluster.prototype.getDefaultRanges_=M.impl.style.Cluster.prototype.getDefaultRanges_;M.impl.style.Cluster.prototype.selectClusterFeature_=
M.impl.style.Cluster.prototype.selectClusterFeature_;M.impl.style.Cluster.prototype.unapply=M.impl.style.Cluster.prototype.unapply;M.impl.style.Cluster.prototype.updateCanvas=M.impl.style.Cluster.prototype.updateCanvas;M.impl.style.Cluster.prototype.activateChangeEvent=M.impl.style.Cluster.prototype.activateChangeEvent;M.impl.style.Cluster.prototype.deactivateChangeEvent=M.impl.style.Cluster.prototype.deactivateChangeEvent;M.impl.style.Cluster.prototype.deactivateTemporarilyChangeEvent=M.impl.style.Cluster.prototype.deactivateTemporarilyChangeEvent;
p("ol.Graticule",Hx);Hx.prototype.getMap=Hx.prototype.getMap;Hx.prototype.getMeridians=Hx.prototype.getMeridians;Hx.prototype.getParallels=Hx.prototype.getParallels;Hx.prototype.setMap=Hx.prototype.setMap;p("M.impl.style.Feature",M.impl.style.Feature);p("ol.has.DEVICE_PIXEL_RATIO",Sd);p("ol.has.CANVAS",Ud);p("ol.has.DEVICE_ORIENTATION",Vd);p("ol.has.GEOLOCATION",Wd);p("ol.has.TOUCH",Xd);p("ol.has.WEBGL",Md);p("M.impl.style.Heatmap",M.impl.style.Heatmap);M.impl.style.Heatmap.prototype.applyToLayer=
M.impl.style.Heatmap.prototype.applyToLayer;M.impl.style.Heatmap.prototype.unapply=M.impl.style.Heatmap.prototype.unapply;M.impl.style.Heatmap.prototype.createHeatmapLayer_=M.impl.style.Heatmap.prototype.createHeatmapLayer_;p("M.impl.style.Line",M.impl.style.Line);M.impl.style.Line.prototype.updateFacadeOptions=M.impl.style.Line.prototype.updateFacadeOptions;M.impl.style.Line.prototype.applyToLayer=M.impl.style.Line.prototype.applyToLayer;M.impl.style.Line.prototype.unapply=M.impl.style.Line.prototype.unapply;
M.impl.style.Line.prototype.drawGeometryToCanvas=M.impl.style.Line.prototype.drawGeometryToCanvas;M.impl.style.Line.prototype.updateCanvas=M.impl.style.Line.prototype.updateCanvas;M.impl.style.Line.prototype.getCanvasSize=M.impl.style.Line.prototype.getCanvasSize;Ju.prototype.getImage=Ju.prototype.getImage;Ju.prototype.load=Ju.prototype.load;p("M.impl.style.TextPath",M.impl.style.TextPath);M.impl.style.TextPath.prototype.getTextOverflow=M.impl.style.TextPath.prototype.getTextOverflow;M.impl.style.TextPath.prototype.getMinWidth=
M.impl.style.TextPath.prototype.getMinWidth;p("M.impl.style.Point",M.impl.style.Point);M.impl.style.Point.prototype.toImage=M.impl.style.Point.prototype.toImage;M.impl.style.Point.prototype.updateFacadeOptions=M.impl.style.Point.prototype.updateFacadeOptions;M.impl.style.Point.prototype.drawGeometryToCanvas=M.impl.style.Point.prototype.drawGeometryToCanvas;M.impl.style.Point.prototype.updateCanvas=M.impl.style.Point.prototype.updateCanvas;M.impl.style.Point.prototype.getCanvasSize=M.impl.style.Point.prototype.getCanvasSize;
M.impl.style.Point.prototype.getRadius_=M.impl.style.Point.prototype.getRadius_;p("M.impl.style.Polygon",M.impl.style.Polygon);M.impl.style.Polygon.prototype.updateCanvas=M.impl.style.Polygon.prototype.updateCanvas;M.impl.style.Polygon.prototype.drawGeometryToCanvas=M.impl.style.Polygon.prototype.drawGeometryToCanvas;M.impl.style.Polygon.prototype.getCanvasSize=M.impl.style.Polygon.prototype.getCanvasSize;p("M.impl.style.Simple",M.impl.style.Simple);M.impl.style.Simple.prototype.updateFacadeOptions=
M.impl.style.Simple.prototype.updateFacadeOptions;M.impl.style.Simple.prototype.applyToLayer=M.impl.style.Simple.prototype.applyToLayer;M.impl.style.Simple.prototype.applyToFeature=M.impl.style.Simple.prototype.applyToFeature;p("M.impl.style.Simple.getValue",M.impl.style.Simple.getValue);Rt.prototype.getImage=Rt.prototype.getImage;Rt.prototype.load=Rt.prototype.load;p("M.style.state.DEFAULT",M.style.state.DEFAULT);p("M.style.state.NEW",M.style.state.NEW);p("M.style.state.SELECTED",M.style.state.SELECTED);
p("ol.inherits",A);p("M.Style",M.Style);M.Style.prototype.apply=M.Style.prototype.apply;M.Style.prototype.unapply=M.Style.prototype.unapply;M.Style.prototype.set=M.Style.prototype.set;M.Style.prototype.refresh=M.Style.prototype.refresh;M.Style.prototype.getOptions=M.Style.prototype.getOptions;M.Style.prototype.updateCanvas=M.Style.prototype.updateCanvas;M.Style.prototype.clone=M.Style.prototype.clone;p("M.style.align.LEFT",M.style.align.LEFT);p("M.style.align.CENTER",M.style.align.CENTER);p("M.style.align.RIGHT",
M.style.align.RIGHT);p("M.style.align.JUSTIFY",M.style.align.JUSTIFY);p("ol.interaction.defaults",tk);p("M.style.baseline.TOP",M.style.baseline.TOP);p("M.style.baseline.MIDDLE",M.style.baseline.MIDDLE);p("M.style.baseline.BOTTOM",M.style.baseline.BOTTOM);p("M.style.baseline.ALPHABETIC",M.style.baseline.ALPHABETIC);p("M.style.baseline.HANGING",M.style.baseline.HANGING);p("M.style.baseline.IDEOGRAPHIC",M.style.baseline.IDEOGRAPHIC);p("ol.Kinetic",pj);p("M.style.Category",M.style.Category);M.style.Category.prototype.attributeName_=
M.style.Category.prototype.attributeName_;M.style.Category.prototype.categoryStyles_=M.style.Category.prototype.categoryStyles_;M.style.Category.prototype.applyInternal_=M.style.Category.prototype.applyInternal_;M.style.Category.prototype.getAttributeName=M.style.Category.prototype.getAttributeName;M.style.Category.prototype.setAttributeName=M.style.Category.prototype.setAttributeName;M.style.Category.prototype.getCategories=M.style.Category.prototype.getCategories;M.style.Category.prototype.setCategories=
M.style.Category.prototype.setCategories;M.style.Category.prototype.getStyleForCategory=M.style.Category.prototype.getStyleForCategory;M.style.Category.prototype.setStyleForCategory=M.style.Category.prototype.setStyleForCategory;M.style.Category.prototype.updateCanvas=M.style.Category.prototype.updateCanvas;M.style.Category.prototype.drawGeometryToCanvas=M.style.Category.prototype.drawGeometryToCanvas;M.style.Category.prototype.update_=M.style.Category.prototype.update_;M.style.Category.prototype.generateRandomCategories_=
M.style.Category.prototype.generateRandomCategories_;p("M.style.Category.RANDOM_RADIUS_OPTION",M.style.Category.RANDOM_RADIUS_OPTION);p("M.style.Category.RANDOM_STROKE_WIDTH_OPTION",M.style.Category.RANDOM_STROKE_WIDTH_OPTION);p("M.style.Category.RANDOM_STROKE_COLOR_OPTION",M.style.Category.RANDOM_STROKE_COLOR_OPTION);p("M.style.Chart",M.style.Chart);M.style.Chart.prototype.formatVariable_=M.style.Chart.prototype.formatVariable_;M.style.Chart.prototype.updateCanvas=M.style.Chart.prototype.updateCanvas;
p("M.style.Chart.DEFAULT",M.style.Chart.DEFAULT);p("ol.loadingstrategy.all",et);p("ol.loadingstrategy.bbox",function(a){return[a]});p("ol.loadingstrategy.tile",function(a){return function(b,c){c=a.getZForResolution(c);b=ij(a,b,c);var d=[];c=[c,0,0];for(c[1]=b.K;c[1]<=b.H;++c[1])for(c[2]=b.N;c[2]<=b.S;++c[2])d.push(a.getTileCoordExtent(c));return d}});p("M.style.Choropleth",M.style.Choropleth);M.style.Choropleth.prototype.attributeName_=M.style.Choropleth.prototype.attributeName_;M.style.Choropleth.prototype.choroplethStyles_=
M.style.Choropleth.prototype.choroplethStyles_;M.style.Choropleth.prototype.quantification_=M.style.Choropleth.prototype.quantification_;M.style.Choropleth.prototype.dataValues_=M.style.Choropleth.prototype.dataValues_;M.style.Choropleth.prototype.breakPoints_=M.style.Choropleth.prototype.breakPoints_;M.style.Choropleth.prototype.applyInternal_=M.style.Choropleth.prototype.applyInternal_;M.style.Choropleth.prototype.getAttributeName=M.style.Choropleth.prototype.getAttributeName;M.style.Choropleth.prototype.setAttributeName=
M.style.Choropleth.prototype.setAttributeName;M.style.Choropleth.prototype.getQuantification=M.style.Choropleth.prototype.getQuantification;M.style.Choropleth.prototype.setQuantification=M.style.Choropleth.prototype.setQuantification;M.style.Choropleth.prototype.getChoroplethStyles=M.style.Choropleth.prototype.getChoroplethStyles;M.style.Choropleth.prototype.setStyles=M.style.Choropleth.prototype.setStyles;M.style.Choropleth.prototype.updateCanvas=M.style.Choropleth.prototype.updateCanvas;M.style.Choropleth.prototype.drawGeometryToCanvas=
M.style.Choropleth.prototype.drawGeometryToCanvas;M.style.Choropleth.prototype.getValues=M.style.Choropleth.prototype.getValues;M.style.Choropleth.prototype.update_=M.style.Choropleth.prototype.update_;p("M.style.Choropleth.DEFAULT_STYLE_POINT",M.style.Choropleth.DEFAULT_STYLE_POINT);p("M.style.Choropleth.DEFAULT_STYLE_LINE",M.style.Choropleth.DEFAULT_STYLE_LINE);p("M.style.Choropleth.DEFAULT_STYLE_POLYGON",M.style.Choropleth.DEFAULT_STYLE_POLYGON);p("M.style.Choropleth.START_COLOR_DEFAULT",M.style.Choropleth.START_COLOR_DEFAULT);
p("M.style.Choropleth.END_COLOR_DEFAULT",M.style.Choropleth.END_COLOR_DEFAULT);p("M.style.Choropleth.ACCURACY_NUMBER_CANVAS",M.style.Choropleth.ACCURACY_NUMBER_CANVAS);p("M.style.Choropleth.CALC_CANVAS_NUMBER_",M.style.Choropleth.CALC_CANVAS_NUMBER_);p("M.style.Cluster",M.style.Cluster);M.style.Cluster.prototype.applyInternal_=M.style.Cluster.prototype.applyInternal_;M.style.Cluster.prototype.getOldStyle=M.style.Cluster.prototype.getOldStyle;M.style.Cluster.prototype.getRanges=M.style.Cluster.prototype.getRanges;
M.style.Cluster.prototype.getOptions=M.style.Cluster.prototype.getOptions;M.style.Cluster.prototype.setRanges=M.style.Cluster.prototype.setRanges;M.style.Cluster.prototype.getRange=M.style.Cluster.prototype.getRange;M.style.Cluster.prototype.updateRange=M.style.Cluster.prototype.updateRange;M.style.Cluster.prototype.setAnimated=M.style.Cluster.prototype.setAnimated;M.style.Cluster.prototype.isAnimated=M.style.Cluster.prototype.isAnimated;M.style.Cluster.prototype.refresh=M.style.Cluster.prototype.refresh;
p("M.style.Cluster.DEFAULT",M.style.Cluster.DEFAULT);p("M.style.Cluster.DEFAULT_VENDOR",M.style.Cluster.DEFAULT_VENDOR);p("M.style.Cluster.RANGE_1_DEFAULT",M.style.Cluster.RANGE_1_DEFAULT);p("M.style.Cluster.RANGE_2_DEFAULT",M.style.Cluster.RANGE_2_DEFAULT);p("M.style.Cluster.RANGE_3_DEFAULT",M.style.Cluster.RANGE_3_DEFAULT);p("ol.Map",U);U.prototype.addControl=U.prototype.addControl;U.prototype.addInteraction=U.prototype.addInteraction;U.prototype.addLayer=U.prototype.addLayer;U.prototype.addOverlay=
U.prototype.addOverlay;U.prototype.forEachFeatureAtPixel=U.prototype.forEachFeatureAtPixel;U.prototype.forEachLayerAtPixel=U.prototype.forEachLayerAtPixel;U.prototype.hasFeatureAtPixel=U.prototype.hasFeatureAtPixel;U.prototype.getEventCoordinate=U.prototype.getEventCoordinate;U.prototype.getEventPixel=U.prototype.getEventPixel;U.prototype.getTarget=U.prototype.getTarget;U.prototype.getTargetElement=U.prototype.getTargetElement;U.prototype.getCoordinateFromPixel=U.prototype.getCoordinateFromPixel;
U.prototype.getControls=U.prototype.getControls;U.prototype.getOverlays=U.prototype.getOverlays;U.prototype.getOverlayById=U.prototype.getOverlayById;U.prototype.getInteractions=U.prototype.getInteractions;U.prototype.getLayerGroup=U.prototype.getLayerGroup;U.prototype.getLayers=U.prototype.getLayers;U.prototype.getPixelFromCoordinate=U.prototype.getPixelFromCoordinate;U.prototype.getSize=U.prototype.getSize;U.prototype.getView=U.prototype.getView;U.prototype.getViewport=U.prototype.getViewport;U.prototype.renderSync=
U.prototype.renderSync;U.prototype.render=U.prototype.render;U.prototype.removeControl=U.prototype.removeControl;U.prototype.removeInteraction=U.prototype.removeInteraction;U.prototype.removeLayer=U.prototype.removeLayer;U.prototype.removeOverlay=U.prototype.removeOverlay;U.prototype.setLayerGroup=U.prototype.setLayerGroup;U.prototype.setSize=U.prototype.setSize;U.prototype.setTarget=U.prototype.setTarget;U.prototype.setView=U.prototype.setView;U.prototype.updateSize=U.prototype.updateSize;p("M.style.Composite",
M.style.Composite);M.style.Composite.prototype.apply=M.style.Composite.prototype.apply;M.style.Composite.prototype.add=M.style.Composite.prototype.add;M.style.Composite.prototype.remove=M.style.Composite.prototype.remove;M.style.Composite.prototype.getStyles=M.style.Composite.prototype.getStyles;M.style.Composite.prototype.getOldStyle=M.style.Composite.prototype.getOldStyle;M.style.Composite.prototype.clear=M.style.Composite.prototype.clear;M.style.Composite.prototype.unapplyInternal=M.style.Composite.prototype.unapplyInternal;
M.style.Composite.prototype.unapplySoft=M.style.Composite.prototype.unapplySoft;M.style.Composite.prototype.unapply=M.style.Composite.prototype.unapply;M.style.Composite.prototype.updateInternal_=M.style.Composite.prototype.updateInternal_;Oh.prototype.originalEvent=Oh.prototype.originalEvent;Oh.prototype.pixel=Oh.prototype.pixel;Oh.prototype.coordinate=Oh.prototype.coordinate;Oh.prototype.dragging=Oh.prototype.dragging;Oh.prototype.preventDefault=Oh.prototype.preventDefault;Oh.prototype.stopPropagation=
Oh.prototype.stopPropagation;p("M.style.Feature",M.style.Feature);M.style.Feature.prototype.applyToFeature=M.style.Feature.prototype.applyToFeature;p("M.style.form.CIRCLE",M.style.form.CIRCLE);p("M.style.form.BUBBLE",M.style.form.BUBBLE);p("M.style.form.MARKER",M.style.form.MARKER);p("M.style.form.SHIELD",M.style.form.SHIELD);p("M.style.form.BLAZON",M.style.form.BLAZON);p("M.style.form.TRIANGLE",M.style.form.TRIANGLE);p("M.style.form.SIGN",M.style.form.SIGN);p("M.style.form.BAN",M.style.form.BAN);
p("M.style.form.LOZENGE",M.style.form.LOZENGE);p("M.style.form.SQUARE",M.style.form.SQUARE);p("M.style.form.NONE",M.style.form.NONE);p("M.style.Heatmap",M.style.Heatmap);M.style.Heatmap.prototype.attribute=M.style.Heatmap.prototype.attribute;M.style.Heatmap.prototype.unapply=M.style.Heatmap.prototype.unapply;M.style.Heatmap.prototype.getAttributeName=M.style.Heatmap.prototype.getAttributeName;M.style.Heatmap.prototype.setAttributeName=M.style.Heatmap.prototype.setAttributeName;M.style.Heatmap.prototype.getGradient=
M.style.Heatmap.prototype.getGradient;M.style.Heatmap.prototype.setGradient=M.style.Heatmap.prototype.setGradient;M.style.Heatmap.prototype.getRadius=M.style.Heatmap.prototype.getRadius;M.style.Heatmap.prototype.setRadius=M.style.Heatmap.prototype.setRadius;M.style.Heatmap.prototype.getBlurSize=M.style.Heatmap.prototype.getBlurSize;M.style.Heatmap.prototype.setBlurSize=M.style.Heatmap.prototype.setBlurSize;M.style.Heatmap.prototype.drawGeometryToCanvas=M.style.Heatmap.prototype.drawGeometryToCanvas;
M.style.Heatmap.prototype.updateCanvas=M.style.Heatmap.prototype.updateCanvas;p("M.style.Heatmap.DEFAULT_OPTIONS",M.style.Heatmap.DEFAULT_OPTIONS);Nh.prototype.map=Nh.prototype.map;Nh.prototype.frameState=Nh.prototype.frameState;p("M.style.Line",M.style.Line);M.style.Line.prototype.unapply=M.style.Line.prototype.unapply;p("M.style.Line.DEFAULT_NULL",M.style.Line.DEFAULT_NULL);p("M.style.overflow.HIDDEN",M.style.overflow.HIDDEN);p("M.style.overflow.VISIBLE",M.style.overflow.VISIBLE);p("M.style.overflow.ELLIPSIS",
M.style.overflow.ELLIPSIS);p("M.style.overflow.CUSTOM",M.style.overflow.CUSTOM);p("M.impl.source.ImageWMS",Uu);Uu.prototype.changed=Uu.prototype.changed;p("M.impl.source.ImageWMS.imageLoadFunction",Vu);p("M.style.pattern.HATCH",M.style.pattern.HATCH);p("M.style.pattern.CROSS",M.style.pattern.CROSS);p("M.style.pattern.DOT",M.style.pattern.DOT);p("M.style.pattern.CIRCLE",M.style.pattern.CIRCLE);p("M.style.pattern.SQUARE",M.style.pattern.SQUARE);p("M.style.pattern.TILE",M.style.pattern.TILE);p("M.style.pattern.WOVEN",
M.style.pattern.WOVEN);p("M.style.pattern.CROSSES",M.style.pattern.CROSSES);p("M.style.pattern.CAPS",M.style.pattern.CAPS);p("M.style.pattern.NYLON",M.style.pattern.NYLON);p("M.style.pattern.HEXAGON",M.style.pattern.HEXAGON);p("M.style.pattern.CEMETRY",M.style.pattern.CEMETRY);p("M.style.pattern.SAND",M.style.pattern.SAND);p("M.style.pattern.CONGLOMERATE",M.style.pattern.CONGLOMERATE);p("M.style.pattern.GRAVEL",M.style.pattern.GRAVEL);p("M.style.pattern.BRICK",M.style.pattern.BRICK);p("M.style.pattern.DOLOMITE",
M.style.pattern.DOLOMITE);p("M.style.pattern.COAL",M.style.pattern.COAL);p("M.style.pattern.BRECCIA",M.style.pattern.BRECCIA);p("M.style.pattern.CLAY",M.style.pattern.CLAY);p("M.style.pattern.FLOODED",M.style.pattern.FLOODED);p("M.style.pattern.CHAOS",M.style.pattern.CHAOS);p("M.style.pattern.GRASS",M.style.pattern.GRASS);p("M.style.pattern.SWAMP",M.style.pattern.SWAMP);p("M.style.pattern.WAVE",M.style.pattern.WAVE);p("M.style.pattern.VINE",M.style.pattern.VINE);p("M.style.pattern.FOREST",M.style.pattern.FOREST);
p("M.style.pattern.SCRUB",M.style.pattern.SCRUB);p("M.style.pattern.TREE",M.style.pattern.TREE);p("M.style.pattern.PINE",M.style.pattern.PINE);p("M.style.pattern.PINES",M.style.pattern.PINES);p("M.style.pattern.ROCK",M.style.pattern.ROCK);p("M.style.pattern.ROCKS",M.style.pattern.ROCKS);p("M.style.pattern.CHARACTER",M.style.pattern.CHARACTER);p("M.style.pattern.ICON",M.style.pattern.ICON);p("M.style.pattern.IMAGE",M.style.pattern.IMAGE);p("M.impl.source.Mapbox",qu);qu.prototype.setUrl=qu.prototype.setUrl;
p("M.impl.source.Mapbox.ATTRIBUTION",ru);p("M.style.Point",M.style.Point);M.style.Point.prototype.toImage=M.style.Point.prototype.toImage;p("M.style.Point.DEFAULT",M.style.Point.DEFAULT);p("M.style.Point.DEFAULT_NULL",M.style.Point.DEFAULT_NULL);p("M.impl.source.TileWMS",Gu);Gu.prototype.changed=Gu.prototype.changed;p("M.impl.source.TileWMS.tileLoadFunction",Hu);p("M.style.Polygon",M.style.Polygon);p("M.style.Polygon.DEFAULT_NULL",M.style.Polygon.DEFAULT_NULL);p("M.style.Proportional",M.style.Proportional);
M.style.Proportional.prototype.attributeName_=M.style.Proportional.prototype.attributeName_;M.style.Proportional.prototype.minRadius_=M.style.Proportional.prototype.minRadius_;M.style.Proportional.prototype.maxRadius_=M.style.Proportional.prototype.maxRadius_;M.style.Proportional.prototype.style_=M.style.Proportional.prototype.style_;M.style.Proportional.prototype.proportionalFunction_=M.style.Proportional.prototype.proportionalFunction_;M.style.Proportional.prototype.applyInternal_=M.style.Proportional.prototype.applyInternal_;
M.style.Proportional.prototype.applyToFeature=M.style.Proportional.prototype.applyToFeature;M.style.Proportional.prototype.update_=M.style.Proportional.prototype.update_;M.style.Proportional.prototype.getAttributeName=M.style.Proportional.prototype.getAttributeName;M.style.Proportional.prototype.setAttributeName=M.style.Proportional.prototype.setAttributeName;M.style.Proportional.prototype.setStyle=M.style.Proportional.prototype.setStyle;M.style.Proportional.prototype.getMinRadius=M.style.Proportional.prototype.getMinRadius;
M.style.Proportional.prototype.setProportionalFunction=M.style.Proportional.prototype.setProportionalFunction;M.style.Proportional.prototype.getProportionalFunction=M.style.Proportional.prototype.getProportionalFunction;M.style.Proportional.prototype.setMinRadius=M.style.Proportional.prototype.setMinRadius;M.style.Proportional.prototype.getMaxRadius=M.style.Proportional.prototype.getMaxRadius;M.style.Proportional.prototype.setMaxRadius=M.style.Proportional.prototype.setMaxRadius;M.style.Proportional.prototype.updateCanvas=
M.style.Proportional.prototype.updateCanvas;M.style.Proportional.prototype.loadCanvasImage_=M.style.Proportional.prototype.loadCanvasImage_;M.style.Proportional.prototype.drawGeometryToCanvas=M.style.Proportional.prototype.drawGeometryToCanvas;p("M.style.Proportional.getMinMaxValues_",M.style.Proportional.getMinMaxValues_);p("M.style.Proportional.getSizeAttribute_",M.style.Proportional.getSizeAttribute_);M.style.Proportional.prototype.calculateStyle_=M.style.Proportional.prototype.calculateStyle_;
p("M.style.Proportional.SCALE_PROPORTION",M.style.Proportional.SCALE_PROPORTION);p("ol.Object",Ge);Ge.prototype.get=Ge.prototype.get;Ge.prototype.getKeys=Ge.prototype.getKeys;Ge.prototype.getProperties=Ge.prototype.getProperties;Ge.prototype.set=Ge.prototype.set;Ge.prototype.setProperties=Ge.prototype.setProperties;Ge.prototype.unset=Ge.prototype.unset;Je.prototype.key=Je.prototype.key;Je.prototype.oldValue=Je.prototype.oldValue;p("M.style.quantification.JENKS",M.style.quantification.JENKS);p("M.style.quantification.QUANTILE",
M.style.quantification.QUANTILE);p("M.style.quantification.getMatrices_",M.style.quantification.getMatrices_);p("M.style.quantification.jenksBreaks_",M.style.quantification.jenksBreaks_);p("M.style.quantification.uniqueArray_",M.style.quantification.uniqueArray_);p("M.style.quantification.DEFAULT_CLASES_JENKS",M.style.quantification.DEFAULT_CLASES_JENKS);p("M.style.quantification.DEFAULT_CLASES_QUANTILE",M.style.quantification.DEFAULT_CLASES_QUANTILE);p("M.style.Simple",M.style.Simple);p("ol.Observable",
De);p("ol.Observable.unByKey",Ee);De.prototype.changed=De.prototype.changed;De.prototype.dispatchEvent=De.prototype.dispatchEvent;De.prototype.getRevision=De.prototype.getRevision;De.prototype.on=De.prototype.on;De.prototype.once=De.prototype.once;De.prototype.un=De.prototype.un;p("M.style.textoverflow.ELLIPSIS",M.style.textoverflow.ELLIPSIS);p("M.style.textoverflow.VISIBLE",M.style.textoverflow.VISIBLE);p("M.style.textoverflow.HIDDEN",M.style.textoverflow.HIDDEN);p("ol.Overlay",jn);jn.prototype.getElement=
jn.prototype.getElement;jn.prototype.getId=jn.prototype.getId;jn.prototype.getMap=jn.prototype.getMap;jn.prototype.getOffset=jn.prototype.getOffset;jn.prototype.getPosition=jn.prototype.getPosition;jn.prototype.getPositioning=jn.prototype.getPositioning;jn.prototype.setElement=jn.prototype.setElement;jn.prototype.setMap=jn.prototype.setMap;jn.prototype.setOffset=jn.prototype.setOffset;jn.prototype.setPosition=jn.prototype.setPosition;jn.prototype.setPositioning=jn.prototype.setPositioning;p("M.impl.service.WFS",
M.impl.service.WFS);M.impl.service.WFS.prototype.getDescribeFeatureType=M.impl.service.WFS.prototype.getDescribeFeatureType;M.impl.service.WFS.prototype.getFeatureUrl=M.impl.service.WFS.prototype.getFeatureUrl;p("ol.proj.METERS_PER_UNIT",Hf);p("ol.proj.setProj4",function(a){If=a});p("ol.proj.getPointResolution",Of);p("ol.proj.addEquivalentProjections",Qf);p("ol.proj.addProjection",Yf);p("ol.proj.addCoordinateTransforms",$f);p("ol.proj.fromLonLat",function(a,b){return eg(a,"EPSG:4326",void 0!==b?b:
"EPSG:3857")});p("ol.proj.toLonLat",function(a,b){return eg(a,void 0!==b?b:"EPSG:3857","EPSG:4326")});p("ol.proj.get",H);p("ol.proj.equivalent",bg);p("ol.proj.getTransform",cg);p("ol.proj.transform",eg);p("ol.proj.transformExtent",fg);p("ol.render.toContext",bw);p("ol.size.toSize",fn);p("ol.Sphere",Ff);Ff.prototype.geodesicArea=Ff.prototype.geodesicArea;Ff.prototype.haversineDistance=Ff.prototype.haversineDistance;Pt.prototype.getTileCoord=Pt.prototype.getTileCoord;Pt.prototype.load=Pt.prototype.load;
p("ol.tilegrid.createXYZ",qt);p("M.parameter.center",M.parameter.center);Gz.prototype.getFormat=Gz.prototype.getFormat;Gz.prototype.setFeatures=Gz.prototype.setFeatures;Gz.prototype.setProjection=Gz.prototype.setProjection;Gz.prototype.setLoader=Gz.prototype.setLoader;p("ol.View",Wi);Wi.prototype.animate=Wi.prototype.animate;Wi.prototype.constrainCenter=Wi.prototype.constrainCenter;Wi.prototype.constrainResolution=Wi.prototype.constrainResolution;Wi.prototype.constrainRotation=Wi.prototype.constrainRotation;
Wi.prototype.getCenter=Wi.prototype.getCenter;Wi.prototype.calculateExtent=Wi.prototype.calculateExtent;Wi.prototype.getMaxResolution=Wi.prototype.getMaxResolution;Wi.prototype.getMinResolution=Wi.prototype.getMinResolution;Wi.prototype.getProjection=Wi.prototype.getProjection;Wi.prototype.getResolution=Wi.prototype.getResolution;Wi.prototype.getResolutions=Wi.prototype.getResolutions;Wi.prototype.getRotation=Wi.prototype.getRotation;Wi.prototype.getZoom=Wi.prototype.getZoom;Wi.prototype.fit=Wi.prototype.fit;
Wi.prototype.centerOn=Wi.prototype.centerOn;Wi.prototype.rotate=Wi.prototype.rotate;Wi.prototype.setCenter=Wi.prototype.setCenter;Wi.prototype.setResolution=Wi.prototype.setResolution;Wi.prototype.setRotation=Wi.prototype.setRotation;Wi.prototype.setZoom=Wi.prototype.setZoom;p("M.parameter.layer",M.parameter.layer);p("M.parameter.maxExtent",M.parameter.maxExtent);p("M.Parameters",M.Parameters);M.Parameters.prototype.container=M.Parameters.prototype.container;M.Parameters.prototype.layers=M.Parameters.prototype.layers;
M.Parameters.prototype.wmc=M.Parameters.prototype.wmc;M.Parameters.prototype.wms=M.Parameters.prototype.wms;M.Parameters.prototype.wmts=M.Parameters.prototype.wmts;M.Parameters.prototype.kml=M.Parameters.prototype.kml;M.Parameters.prototype.controls=M.Parameters.prototype.controls;M.Parameters.prototype.getfeatureinfo=M.Parameters.prototype.getfeatureinfo;M.Parameters.prototype.maxExtent=M.Parameters.prototype.maxExtent;M.Parameters.prototype.bbox=M.Parameters.prototype.bbox;M.Parameters.prototype.zoom=
M.Parameters.prototype.zoom;M.Parameters.prototype.center=M.Parameters.prototype.center;M.Parameters.prototype.resolutions=M.Parameters.prototype.resolutions;M.Parameters.prototype.projection=M.Parameters.prototype.projection;M.Parameters.prototype.label=M.Parameters.prototype.label;M.Parameters.prototype.ticket=M.Parameters.prototype.ticket;p("M.parameter.projection",M.parameter.projection);p("M.parameter.resolutions",M.parameter.resolutions);p("ol.xml.getAllTextContent",vg);p("ol.xml.parse",zg);
p("M.parameter.zoom",M.parameter.zoom);Ml.prototype.getGL=Ml.prototype.getGL;Ml.prototype.useProgram=Ml.prototype.useProgram;p("M.impl.Popup",M.impl.Popup);M.impl.Popup.prototype.panMapIfOutOfView=M.impl.Popup.prototype.panMapIfOutOfView;M.impl.Popup.prototype.ani_opts=M.impl.Popup.prototype.ani_opts;M.impl.Popup.prototype.addTo=M.impl.Popup.prototype.addTo;M.impl.Popup.prototype.show=M.impl.Popup.prototype.show;M.impl.Popup.prototype.centerByStatus=M.impl.Popup.prototype.centerByStatus;M.impl.Popup.prototype.hide=
M.impl.Popup.prototype.hide;M.impl.Popup.prototype.setContainer=M.impl.Popup.prototype.setContainer;M.impl.Popup.prototype.setContent=M.impl.Popup.prototype.setContent;M.impl.Popup.prototype.getContent=M.impl.Popup.prototype.getContent;p("M.parameter.kml",M.parameter.kml);p("M.parameter.mapbox",M.parameter.mapbox);p("M.parameter.osm",M.parameter.osm);p("M.parameter.wfs",M.parameter.wfs);p("M.parameter.wmc",M.parameter.wmc);p("M.parameter.wms",M.parameter.wms);p("M.parameter.wmts",M.parameter.wmts);
p("M.impl.style.PointCircle",M.impl.style.PointCircle);M.impl.style.PointCircle.prototype.clone=M.impl.style.PointCircle.prototype.clone;p("ol.tilegrid.TileGrid",ht);ht.prototype.forEachTileCoord=ht.prototype.forEachTileCoord;ht.prototype.getMaxZoom=ht.prototype.getMaxZoom;ht.prototype.getMinZoom=ht.prototype.getMinZoom;ht.prototype.getOrigin=ht.prototype.getOrigin;ht.prototype.getResolution=ht.prototype.getResolution;ht.prototype.getResolutions=ht.prototype.getResolutions;ht.prototype.getTileCoordExtent=
ht.prototype.getTileCoordExtent;ht.prototype.getTileCoordForCoordAndResolution=ht.prototype.getTileCoordForCoordAndResolution;ht.prototype.getTileCoordForCoordAndZ=ht.prototype.getTileCoordForCoordAndZ;ht.prototype.getTileSize=ht.prototype.getTileSize;ht.prototype.getZForResolution=ht.prototype.getZForResolution;p("M.Map",M.Map);M.Map.prototype._defaultProj=M.Map.prototype._defaultProj;M.Map.prototype.panel=M.Map.prototype.panel;M.Map.prototype.getLayers=M.Map.prototype.getLayers;M.Map.prototype.getBaseLayers=
M.Map.prototype.getBaseLayers;M.Map.prototype.getFeatureHandler=M.Map.prototype.getFeatureHandler;M.Map.prototype.addLayers=M.Map.prototype.addLayers;M.Map.prototype.removeLayers=M.Map.prototype.removeLayers;M.Map.prototype.getWMC=M.Map.prototype.getWMC;M.Map.prototype.addWMC=M.Map.prototype.addWMC;M.Map.prototype.removeWMC=M.Map.prototype.removeWMC;M.Map.prototype.getKML=M.Map.prototype.getKML;M.Map.prototype.addKML=M.Map.prototype.addKML;M.Map.prototype.removeKML=M.Map.prototype.removeKML;M.Map.prototype.getWMS=
M.Map.prototype.getWMS;M.Map.prototype.addWMS=M.Map.prototype.addWMS;M.Map.prototype.removeWMS=M.Map.prototype.removeWMS;M.Map.prototype.getWFS=M.Map.prototype.getWFS;M.Map.prototype.addWFS=M.Map.prototype.addWFS;M.Map.prototype.removeWFS=M.Map.prototype.removeWFS;M.Map.prototype.getWMTS=M.Map.prototype.getWMTS;M.Map.prototype.addWMTS=M.Map.prototype.addWMTS;M.Map.prototype.removeWMTS=M.Map.prototype.removeWMTS;M.Map.prototype.getMBtiles=M.Map.prototype.getMBtiles;M.Map.prototype.addMBtiles=M.Map.prototype.addMBtiles;
M.Map.prototype.removeMBtiles=M.Map.prototype.removeMBtiles;M.Map.prototype.getControls=M.Map.prototype.getControls;M.Map.prototype.removeControls=M.Map.prototype.removeControls;M.Map.prototype.getMaxExtent=M.Map.prototype.getMaxExtent;M.Map.prototype.setMaxExtent=M.Map.prototype.setMaxExtent;M.Map.prototype.getBbox=M.Map.prototype.getBbox;M.Map.prototype.setBbox=M.Map.prototype.setBbox;M.Map.prototype.getZoom=M.Map.prototype.getZoom;M.Map.prototype.setZoom=M.Map.prototype.setZoom;M.Map.prototype.getCenter=
M.Map.prototype.getCenter;M.Map.prototype.setCenter=M.Map.prototype.setCenter;M.Map.prototype.removeCenter=M.Map.prototype.removeCenter;M.Map.prototype.getResolutions=M.Map.prototype.getResolutions;M.Map.prototype.setResolutions=M.Map.prototype.setResolutions;M.Map.prototype.getScale=M.Map.prototype.getScale;M.Map.prototype.getProjection=M.Map.prototype.getProjection;M.Map.prototype.setProjection=M.Map.prototype.setProjection;M.Map.prototype.getPlugins=M.Map.prototype.getPlugins;M.Map.prototype.addPlugin=
M.Map.prototype.addPlugin;M.Map.prototype.removePlugins=M.Map.prototype.removePlugins;M.Map.prototype.getEnvolvedExtent=M.Map.prototype.getEnvolvedExtent;M.Map.prototype.zoomToMaxExtent=M.Map.prototype.zoomToMaxExtent;M.Map.prototype.setTicket=M.Map.prototype.setTicket;M.Map.prototype.destroy=M.Map.prototype.destroy;M.Map.prototype.addLabel=M.Map.prototype.addLabel;M.Map.prototype.getLabel=M.Map.prototype.getLabel;M.Map.prototype.removeLabel=M.Map.prototype.removeLabel;M.Map.prototype.drawPoints=
M.Map.prototype.drawPoints;M.Map.prototype.drawFeatures=M.Map.prototype.drawFeatures;M.Map.prototype.removeFeatures=M.Map.prototype.removeFeatures;M.Map.prototype.addPanels=M.Map.prototype.addPanels;M.Map.prototype.removePanel=M.Map.prototype.removePanel;M.Map.prototype.getPanels=M.Map.prototype.getPanels;M.Map.prototype.getContainer=M.Map.prototype.getContainer;M.Map.prototype.getMapImpl=M.Map.prototype.getMapImpl;M.Map.prototype.getPopup=M.Map.prototype.getPopup;M.Map.prototype.removePopup=M.Map.prototype.removePopup;
M.Map.prototype.addPopup=M.Map.prototype.addPopup;M.Map.prototype.on=M.Map.prototype.on;M.Map.prototype.refresh=M.Map.prototype.refresh;p("M.Map.LAYER_SORT",M.Map.LAYER_SORT);p("M.Map.DRAWLAYER_STYLE",M.Map.DRAWLAYER_STYLE);p("M.impl.style.PointFontSymbol",M.impl.style.PointFontSymbol);M.impl.style.PointFontSymbol.prototype.clone=M.impl.style.PointFontSymbol.prototype.clone;p("ol.tilegrid.WMTS",ev);ev.prototype.getMatrixIds=ev.prototype.getMatrixIds;p("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",
fv);p("M.impl.style.PointIcon",M.impl.style.PointIcon);M.impl.style.PointIcon.prototype.clone=M.impl.style.PointIcon.prototype.clone;p("M.layer.GeoJSON",M.layer.GeoJSON);M.layer.GeoJSON.prototype.equals=M.layer.GeoJSON.prototype.equals;M.layer.GeoJSON.prototype.setSource=M.layer.GeoJSON.prototype.setSource;p("M.layer.GeoJSON.POPUP_TEMPLATE",M.layer.GeoJSON.POPUP_TEMPLATE);p("M.layer.GeoJSON.DEFAULT_OPTIONS_STYLE",M.layer.GeoJSON.DEFAULT_OPTIONS_STYLE);p("M.impl.Map",M.impl.Map);M.impl.Map.prototype.getLayers=
M.impl.Map.prototype.getLayers;M.impl.Map.prototype.getBaseLayers=M.impl.Map.prototype.getBaseLayers;M.impl.Map.prototype.removeLayers=M.impl.Map.prototype.removeLayers;M.impl.Map.prototype.getWMC=M.impl.Map.prototype.getWMC;M.impl.Map.prototype.addWMC=M.impl.Map.prototype.addWMC;M.impl.Map.prototype.removeWMC=M.impl.Map.prototype.removeWMC;M.impl.Map.prototype.getKML=M.impl.Map.prototype.getKML;M.impl.Map.prototype.addKML=M.impl.Map.prototype.addKML;M.impl.Map.prototype.removeKML=M.impl.Map.prototype.removeKML;
M.impl.Map.prototype.getWMS=M.impl.Map.prototype.getWMS;M.impl.Map.prototype.addWMS=M.impl.Map.prototype.addWMS;M.impl.Map.prototype.removeWMS=M.impl.Map.prototype.removeWMS;M.impl.Map.prototype.getWFS=M.impl.Map.prototype.getWFS;M.impl.Map.prototype.addWFS=M.impl.Map.prototype.addWFS;M.impl.Map.prototype.removeWFS=M.impl.Map.prototype.removeWFS;M.impl.Map.prototype.getWMTS=M.impl.Map.prototype.getWMTS;M.impl.Map.prototype.addWMTS=M.impl.Map.prototype.addWMTS;M.impl.Map.prototype.removeWMTS=M.impl.Map.prototype.removeWMTS;
M.impl.Map.prototype.getMBtiles=M.impl.Map.prototype.getMBtiles;M.impl.Map.prototype.addMBtiles=M.impl.Map.prototype.addMBtiles;M.impl.Map.prototype.removeMBtiles=M.impl.Map.prototype.removeMBtiles;M.impl.Map.prototype.getControls=M.impl.Map.prototype.getControls;M.impl.Map.prototype.addControls=M.impl.Map.prototype.addControls;M.impl.Map.prototype.removeControls=M.impl.Map.prototype.removeControls;M.impl.Map.prototype.setMaxExtent=M.impl.Map.prototype.setMaxExtent;M.impl.Map.prototype.getMaxExtent=
M.impl.Map.prototype.getMaxExtent;M.impl.Map.prototype.setBbox=M.impl.Map.prototype.setBbox;M.impl.Map.prototype.getBbox=M.impl.Map.prototype.getBbox;M.impl.Map.prototype.setZoom=M.impl.Map.prototype.setZoom;M.impl.Map.prototype.getZoom=M.impl.Map.prototype.getZoom;M.impl.Map.prototype.setCenter=M.impl.Map.prototype.setCenter;M.impl.Map.prototype.getCenter=M.impl.Map.prototype.getCenter;M.impl.Map.prototype.getResolutions=M.impl.Map.prototype.getResolutions;M.impl.Map.prototype.setResolutions=M.impl.Map.prototype.setResolutions;
M.impl.Map.prototype.getScale=M.impl.Map.prototype.getScale;M.impl.Map.prototype.setProjection=M.impl.Map.prototype.setProjection;M.impl.Map.prototype.getProjection=M.impl.Map.prototype.getProjection;M.impl.Map.prototype.getMapImpl=M.impl.Map.prototype.getMapImpl;M.impl.Map.prototype.removePopup=M.impl.Map.prototype.removePopup;M.impl.Map.prototype.getEnvolvedExtent=M.impl.Map.prototype.getEnvolvedExtent;M.impl.Map.prototype.destroy=M.impl.Map.prototype.destroy;M.impl.Map.prototype.updateResolutionsFromBaseLayer=
M.impl.Map.prototype.updateResolutionsFromBaseLayer;M.impl.Map.prototype.addLabel=M.impl.Map.prototype.addLabel;M.impl.Map.prototype.getLabel=M.impl.Map.prototype.getLabel;M.impl.Map.prototype.removeLabel=M.impl.Map.prototype.removeLabel;M.impl.Map.prototype.refresh=M.impl.Map.prototype.refresh;M.impl.Map.prototype.getContainer=M.impl.Map.prototype.getContainer;M.impl.Map.prototype.setFacadeMap=M.impl.Map.prototype.setFacadeMap;p("M.impl.Map.Z_INDEX",M.impl.Map.Z_INDEX);p("M.layer.KML",M.layer.KML);
M.layer.KML.prototype.equals=M.layer.KML.prototype.equals;p("M.layer.KML.POPUP_TEMPLATE",M.layer.KML.POPUP_TEMPLATE);p("ol.style.AtlasManager",Oz);p("M.Layer",M.Layer);M.Layer.prototype.isVisible=M.Layer.prototype.isVisible;M.Layer.prototype.isQueryable=M.Layer.prototype.isQueryable;M.Layer.prototype.setVisible=M.Layer.prototype.setVisible;M.Layer.prototype.inRange=M.Layer.prototype.inRange;M.Layer.prototype.getLegendURL=M.Layer.prototype.getLegendURL;M.Layer.prototype.setLegendURL=M.Layer.prototype.setLegendURL;
M.Layer.prototype.getZIndex=M.Layer.prototype.getZIndex;M.Layer.prototype.setZIndex=M.Layer.prototype.setZIndex;M.Layer.prototype.getOpacity=M.Layer.prototype.getOpacity;M.Layer.prototype.setOpacity=M.Layer.prototype.setOpacity;M.Layer.prototype.refresh=M.Layer.prototype.refresh;p("M.Layer.LEGEND_DEFAULT",M.Layer.LEGEND_DEFAULT);p("M.Layer.LEGEND_ERROR",M.Layer.LEGEND_ERROR);p("ol.style.Circle",je);je.prototype.clone=je.prototype.clone;je.prototype.setRadius=je.prototype.setRadius;p("M.layer.type.WMC",
M.layer.type.WMC);p("M.layer.type.KML",M.layer.type.KML);p("M.layer.type.WMS",M.layer.type.WMS);p("M.layer.type.WFS",M.layer.type.WFS);p("M.layer.type.WMTS",M.layer.type.WMTS);p("M.layer.type.MBtiles",M.layer.type.MBtiles);p("M.layer.type.OSM",M.layer.type.OSM);p("M.layer.type.Mapbox",M.layer.type.Mapbox);p("M.layer.type.GeoJSON",M.layer.type.GeoJSON);p("M.layer.type.Vector",M.layer.type.Vector);p("ol.style.Fill",ke);ke.prototype.clone=ke.prototype.clone;ke.prototype.getColor=ke.prototype.getColor;
ke.prototype.setColor=ke.prototype.setColor;p("M.layer.Mapbox",M.layer.Mapbox);M.layer.Mapbox.prototype.equals=M.layer.Mapbox.prototype.equals;p("ol.style.Icon",$n);$n.prototype.clone=$n.prototype.clone;$n.prototype.getAnchor=$n.prototype.getAnchor;$n.prototype.getColor=$n.prototype.getColor;$n.prototype.getImage=$n.prototype.getImage;$n.prototype.getOrigin=$n.prototype.getOrigin;$n.prototype.getSrc=$n.prototype.getSrc;$n.prototype.getSize=$n.prototype.getSize;$n.prototype.load=$n.prototype.load;
p("M.layer.OSM",M.layer.OSM);M.layer.OSM.prototype.equals=M.layer.OSM.prototype.equals;p("M.layer.Vector",M.layer.Vector);M.layer.Vector.prototype.addFeatures=M.layer.Vector.prototype.addFeatures;M.layer.Vector.prototype.getFeatures=M.layer.Vector.prototype.getFeatures;M.layer.Vector.prototype.getFeatureById=M.layer.Vector.prototype.getFeatureById;M.layer.Vector.prototype.removeFeatures=M.layer.Vector.prototype.removeFeatures;M.layer.Vector.prototype.clear=M.layer.Vector.prototype.clear;M.layer.Vector.prototype.refresh=
M.layer.Vector.prototype.refresh;M.layer.Vector.prototype.redraw=M.layer.Vector.prototype.redraw;M.layer.Vector.prototype.setFilter=M.layer.Vector.prototype.setFilter;M.layer.Vector.prototype.getFilter=M.layer.Vector.prototype.getFilter;M.layer.Vector.prototype.getFeaturesExtent=M.layer.Vector.prototype.getFeaturesExtent;M.layer.Vector.prototype.removeFilter=M.layer.Vector.prototype.removeFilter;M.layer.Vector.prototype.equals=M.layer.Vector.prototype.equals;M.layer.Vector.prototype.getStyle=M.layer.Vector.prototype.getStyle;
M.layer.Vector.prototype.clearStyle=M.layer.Vector.prototype.clearStyle;M.layer.Vector.prototype.getLegendURL=M.layer.Vector.prototype.getLegendURL;p("M.layer.WFS",M.layer.WFS);M.layer.WFS.prototype.setCQL=M.layer.WFS.prototype.setCQL;M.layer.WFS.prototype.equals=M.layer.WFS.prototype.equals;p("M.layer.WFS.DEFAULT_OPTIONS_STYLE",M.layer.WFS.DEFAULT_OPTIONS_STYLE);p("M.layer.WMC",M.layer.WMC);M.layer.WMC.prototype.loaded_=M.layer.WMC.prototype.loaded_;M.layer.WMC.prototype.select=M.layer.WMC.prototype.select;
M.layer.WMC.prototype.unselect=M.layer.WMC.prototype.unselect;M.layer.WMC.prototype.equals=M.layer.WMC.prototype.equals;M.layer.WMC.prototype.isLoaded=M.layer.WMC.prototype.isLoaded;M.layer.WMC.prototype.setLoaded=M.layer.WMC.prototype.setLoaded;p("M.layer.WMS",M.layer.WMS);M.layer.WMS.prototype.getNoChacheUrl=M.layer.WMS.prototype.getNoChacheUrl;M.layer.WMS.prototype.getNoChacheName=M.layer.WMS.prototype.getNoChacheName;M.layer.WMS.prototype.updateMinMaxResolution=M.layer.WMS.prototype.updateMinMaxResolution;
M.layer.WMS.prototype.equals=M.layer.WMS.prototype.equals;p("ol.style.Image",he);he.prototype.getOpacity=he.prototype.getOpacity;he.prototype.getRotateWithView=he.prototype.getRotateWithView;he.prototype.getRotation=he.prototype.getRotation;he.prototype.getScale=he.prototype.getScale;he.prototype.getSnapToPixel=he.prototype.getSnapToPixel;he.prototype.setOpacity=he.prototype.setOpacity;he.prototype.setRotation=he.prototype.setRotation;he.prototype.setScale=he.prototype.setScale;p("M.layer.WMTS",M.layer.WMTS);
M.layer.WMTS.prototype.equals=M.layer.WMTS.prototype.equals;p("ol.style.RegularShape",ie);ie.prototype.clone=ie.prototype.clone;ie.prototype.getAnchor=ie.prototype.getAnchor;ie.prototype.getAngle=ie.prototype.getAngle;ie.prototype.getFill=ie.prototype.getFill;ie.prototype.getImage=ie.prototype.getImage;ie.prototype.getOrigin=ie.prototype.getOrigin;ie.prototype.getPoints=ie.prototype.getPoints;ie.prototype.getRadius=ie.prototype.getRadius;ie.prototype.getRadius2=ie.prototype.getRadius2;ie.prototype.getSize=
ie.prototype.getSize;ie.prototype.getStroke=ie.prototype.getStroke;p("ol.style.Stroke",lg);lg.prototype.clone=lg.prototype.clone;lg.prototype.getColor=lg.prototype.getColor;lg.prototype.getLineCap=lg.prototype.getLineCap;lg.prototype.getLineDash=lg.prototype.getLineDash;lg.prototype.getLineDashOffset=lg.prototype.getLineDashOffset;lg.prototype.getLineJoin=lg.prototype.getLineJoin;lg.prototype.getMiterLimit=lg.prototype.getMiterLimit;lg.prototype.getWidth=lg.prototype.getWidth;lg.prototype.setColor=
lg.prototype.setColor;lg.prototype.setLineCap=lg.prototype.setLineCap;lg.prototype.setLineDash=lg.prototype.setLineDash;lg.prototype.setLineDashOffset=lg.prototype.setLineDashOffset;lg.prototype.setLineJoin=lg.prototype.setLineJoin;lg.prototype.setMiterLimit=lg.prototype.setMiterLimit;lg.prototype.setWidth=lg.prototype.setWidth;p("ol.style.Style",mg);mg.prototype.clone=mg.prototype.clone;mg.prototype.getGeometry=mg.prototype.getGeometry;mg.prototype.getGeometryFunction=mg.prototype.getGeometryFunction;
mg.prototype.getFill=mg.prototype.getFill;mg.prototype.setFill=mg.prototype.setFill;mg.prototype.getImage=mg.prototype.getImage;mg.prototype.setImage=mg.prototype.setImage;mg.prototype.getStroke=mg.prototype.getStroke;mg.prototype.setStroke=mg.prototype.setStroke;mg.prototype.getText=mg.prototype.getText;mg.prototype.setText=mg.prototype.setText;mg.prototype.getZIndex=mg.prototype.getZIndex;mg.prototype.setGeometry=mg.prototype.setGeometry;mg.prototype.setZIndex=mg.prototype.setZIndex;p("ol.style.Text",
go);go.prototype.clone=go.prototype.clone;go.prototype.getFont=go.prototype.getFont;go.prototype.getOffsetX=go.prototype.getOffsetX;go.prototype.getOffsetY=go.prototype.getOffsetY;go.prototype.getFill=go.prototype.getFill;go.prototype.getRotateWithView=go.prototype.getRotateWithView;go.prototype.getRotation=go.prototype.getRotation;go.prototype.getScale=go.prototype.getScale;go.prototype.getStroke=go.prototype.getStroke;go.prototype.getText=go.prototype.getText;go.prototype.getTextAlign=go.prototype.getTextAlign;
go.prototype.getTextBaseline=go.prototype.getTextBaseline;go.prototype.setFont=go.prototype.setFont;go.prototype.setOffsetX=go.prototype.setOffsetX;go.prototype.setOffsetY=go.prototype.setOffsetY;go.prototype.setFill=go.prototype.setFill;go.prototype.setRotation=go.prototype.setRotation;go.prototype.setScale=go.prototype.setScale;go.prototype.setStroke=go.prototype.setStroke;go.prototype.setText=go.prototype.setText;go.prototype.setTextAlign=go.prototype.setTextAlign;go.prototype.setTextBaseline=
go.prototype.setTextBaseline;p("M.impl.loader.JSONP",M.impl.loader.JSONP);M.impl.loader.JSONP.prototype.getLoaderFn=M.impl.loader.JSONP.prototype.getLoaderFn;p("M.impl.loader.KML",M.impl.loader.KML);M.impl.loader.KML.prototype.getLoaderFn=M.impl.loader.KML.prototype.getLoaderFn;p("M.impl.loader.WFS",M.impl.loader.WFS);M.impl.loader.WFS.prototype.getLoaderFn=M.impl.loader.WFS.prototype.getLoaderFn;p("M.handler.Features",M.handler.Features);M.handler.Features.prototype.addTo=M.handler.Features.prototype.addTo;
M.handler.Features.prototype.selectFeatures=M.handler.Features.prototype.selectFeatures;M.handler.Features.prototype.unselectFeatures=M.handler.Features.prototype.unselectFeatures;M.handler.Features.prototype.hoverFeatures_=M.handler.Features.prototype.hoverFeatures_;M.handler.Features.prototype.leaveFeatures_=M.handler.Features.prototype.leaveFeatures_;M.handler.Features.prototype.activate=M.handler.Features.prototype.activate;M.handler.Features.prototype.deactivate=M.handler.Features.prototype.deactivate;
M.handler.Features.prototype.addLayer=M.handler.Features.prototype.addLayer;M.handler.Features.prototype.removeLayer=M.handler.Features.prototype.removeLayer;M.handler.Features.prototype.destroy=M.handler.Features.prototype.destroy;p("M.impl.layer.AnimatedCluster",hs);hs.prototype.saveCluster_=hs.prototype.saveCluster_;p("M.impl.layer.AnimatedCluster.getClusterForFeature_",Kt);hs.prototype.animate=hs.prototype.animate;hs.prototype.prepareAnimation_=hs.prototype.prepareAnimation_;hs.prototype.postanimate=
hs.prototype.postanimate;hs.prototype.setStyle=hs.prototype.setStyle;p("M.format.GeoJSON",M.format.GeoJSON);M.format.GeoJSON.prototype.write=M.format.GeoJSON.prototype.write;M.format.GeoJSON.prototype.read=M.format.GeoJSON.prototype.read;p("M.format.WKT",M.format.WKT);M.format.WKT.prototype.write=M.format.WKT.prototype.write;p("M.impl.layer.Draw",M.impl.layer.Draw);M.impl.layer.Draw.prototype.addTo=M.impl.layer.Draw.prototype.addTo;M.impl.layer.Draw.prototype.selectFeatures=M.impl.layer.Draw.prototype.selectFeatures;
M.impl.layer.Draw.prototype.unselectFeatures=M.impl.layer.Draw.prototype.unselectFeatures;M.impl.layer.Draw.prototype.drawPoints=M.impl.layer.Draw.prototype.drawPoints;M.impl.layer.Draw.prototype.drawGeoJSON=M.impl.layer.Draw.prototype.drawGeoJSON;M.impl.layer.Draw.prototype.drawFeatures=M.impl.layer.Draw.prototype.drawFeatures;M.impl.layer.Draw.prototype.removeFeatures=M.impl.layer.Draw.prototype.removeFeatures;M.impl.layer.Draw.prototype.getPoints=M.impl.layer.Draw.prototype.getPoints;M.impl.layer.Draw.prototype.destroy=
M.impl.layer.Draw.prototype.destroy;M.impl.layer.Draw.prototype.equals=M.impl.layer.Draw.prototype.equals;p("M.impl.layer.GeoJSON",M.impl.layer.GeoJSON);M.impl.layer.GeoJSON.prototype.addTo=M.impl.layer.GeoJSON.prototype.addTo;M.impl.layer.GeoJSON.prototype.refresh=M.impl.layer.GeoJSON.prototype.refresh;M.impl.layer.GeoJSON.prototype.setSource=M.impl.layer.GeoJSON.prototype.setSource;M.impl.layer.GeoJSON.prototype.selectFeatures=M.impl.layer.GeoJSON.prototype.selectFeatures;M.impl.layer.GeoJSON.prototype.isLoaded=
M.impl.layer.GeoJSON.prototype.isLoaded;M.impl.layer.GeoJSON.prototype.equals=M.impl.layer.GeoJSON.prototype.equals;p("M.impl.layer.KML",M.impl.layer.KML);M.impl.layer.KML.prototype.setVisible=M.impl.layer.KML.prototype.setVisible;M.impl.layer.KML.prototype.addTo=M.impl.layer.KML.prototype.addTo;M.impl.layer.KML.prototype.selectFeatures=M.impl.layer.KML.prototype.selectFeatures;M.impl.layer.KML.prototype.unselectFeatures=M.impl.layer.KML.prototype.unselectFeatures;M.impl.layer.KML.prototype.setScreenOverlayImg=
M.impl.layer.KML.prototype.setScreenOverlayImg;M.impl.layer.KML.prototype.destroy=M.impl.layer.KML.prototype.destroy;M.impl.layer.KML.prototype.removePopup=M.impl.layer.KML.prototype.removePopup;M.impl.layer.KML.prototype.equals=M.impl.layer.KML.prototype.equals;p("M.impl.Layer",M.impl.Layer);M.impl.Layer.prototype.isVisible=M.impl.Layer.prototype.isVisible;M.impl.Layer.prototype.isQueryable=M.impl.Layer.prototype.isQueryable;M.impl.Layer.prototype.inRange=M.impl.Layer.prototype.inRange;M.impl.Layer.prototype.setVisible=
M.impl.Layer.prototype.setVisible;M.impl.Layer.prototype.getZIndex=M.impl.Layer.prototype.getZIndex;M.impl.Layer.prototype.setZIndex=M.impl.Layer.prototype.setZIndex;M.impl.Layer.prototype.getOpacity=M.impl.Layer.prototype.getOpacity;M.impl.Layer.prototype.setOpacity=M.impl.Layer.prototype.setOpacity;M.impl.Layer.prototype.getOL3Layer=M.impl.Layer.prototype.getOL3Layer;M.impl.Layer.prototype.setOL3Layer=M.impl.Layer.prototype.setOL3Layer;M.impl.Layer.prototype.getMap=M.impl.Layer.prototype.getMap;
M.impl.Layer.prototype.setOL3Layer=M.impl.Layer.prototype.setOL3Layer;M.impl.Layer.prototype.getLegendURL=M.impl.Layer.prototype.getLegendURL;M.impl.Layer.prototype.setLegendURL=M.impl.Layer.prototype.setLegendURL;M.impl.Layer.prototype.getNumZoomLevels=M.impl.Layer.prototype.getNumZoomLevels;M.impl.Layer.prototype.unselectFeatures=M.impl.Layer.prototype.unselectFeatures;M.impl.Layer.prototype.selectFeatures=M.impl.Layer.prototype.selectFeatures;p("M.filter.AND",M.filter.AND);p("M.filter.OR",M.filter.OR);
p("M.filter.NOT",M.filter.NOT);p("M.filter.EQUAL",M.filter.EQUAL);p("M.filter.LIKE",M.filter.LIKE);p("M.filter.LT",M.filter.LT);p("M.filter.GT",M.filter.GT);p("M.filter.LTE",M.filter.LTE);p("M.filter.GTE",M.filter.GTE);p("M.filter.Function",M.filter.Function);M.filter.Function.prototype.setFunction=M.filter.Function.prototype.setFunction;M.filter.Function.prototype.getFunctionFilter=M.filter.Function.prototype.getFunctionFilter;M.filter.Function.prototype.execute=M.filter.Function.prototype.execute;
M.filter.Function.prototype.toCQL=M.filter.Function.prototype.toCQL;p("M.impl.layer.Mapbox",M.impl.layer.Mapbox);M.impl.layer.Mapbox.prototype.setVisible=M.impl.layer.Mapbox.prototype.setVisible;M.impl.layer.Mapbox.prototype.addTo=M.impl.layer.Mapbox.prototype.addTo;M.impl.layer.Mapbox.prototype.setResolutions=M.impl.layer.Mapbox.prototype.setResolutions;M.impl.layer.Mapbox.prototype.getExtent=M.impl.layer.Mapbox.prototype.getExtent;M.impl.layer.Mapbox.prototype.getMinResolution=M.impl.layer.Mapbox.prototype.getMinResolution;
M.impl.layer.Mapbox.prototype.getMaxResolution=M.impl.layer.Mapbox.prototype.getMaxResolution;M.impl.layer.Mapbox.prototype.destroy=M.impl.layer.Mapbox.prototype.destroy;M.impl.layer.Mapbox.prototype.equals=M.impl.layer.Mapbox.prototype.equals;p("M.Filter",M.Filter);p("M.filter.spatial.CONTAIN",M.filter.spatial.CONTAIN);p("M.filter.spatial.DISJOINT",M.filter.spatial.DISJOINT);p("M.filter.spatial.WITHIN",M.filter.spatial.WITHIN);p("M.filter.spatial.INTERSECT",M.filter.spatial.INTERSECT);p("M.filter.spatial.parseParamToGeometries",
M.filter.spatial.parseParamToGeometries);p("M.impl.layer.OSM",M.impl.layer.OSM);M.impl.layer.OSM.prototype.setVisible=M.impl.layer.OSM.prototype.setVisible;M.impl.layer.OSM.prototype.addTo=M.impl.layer.OSM.prototype.addTo;M.impl.layer.OSM.prototype.setResolutions=M.impl.layer.OSM.prototype.setResolutions;M.impl.layer.OSM.prototype.getExtent=M.impl.layer.OSM.prototype.getExtent;M.impl.layer.OSM.prototype.getMinResolution=M.impl.layer.OSM.prototype.getMinResolution;M.impl.layer.OSM.prototype.getMaxResolution=
M.impl.layer.OSM.prototype.getMaxResolution;M.impl.layer.OSM.prototype.destroy=M.impl.layer.OSM.prototype.destroy;M.impl.layer.OSM.prototype.equals=M.impl.layer.OSM.prototype.equals;p("M.filter.Spatial",M.filter.Spatial);p("M.impl.layer.Vector",M.impl.layer.Vector);M.impl.layer.Vector.prototype.addTo=M.impl.layer.Vector.prototype.addTo;M.impl.layer.Vector.prototype.inRange=M.impl.layer.Vector.prototype.inRange;M.impl.layer.Vector.prototype.addFeatures=M.impl.layer.Vector.prototype.addFeatures;M.impl.layer.Vector.prototype.updateLayer_=
M.impl.layer.Vector.prototype.updateLayer_;M.impl.layer.Vector.prototype.getFeatures=M.impl.layer.Vector.prototype.getFeatures;M.impl.layer.Vector.prototype.getFeatureById=M.impl.layer.Vector.prototype.getFeatureById;M.impl.layer.Vector.prototype.removeFeatures=M.impl.layer.Vector.prototype.removeFeatures;M.impl.layer.Vector.prototype.redraw=M.impl.layer.Vector.prototype.redraw;M.impl.layer.Vector.prototype.getFeaturesExtent=M.impl.layer.Vector.prototype.getFeaturesExtent;M.impl.layer.Vector.prototype.selectFeatures=
M.impl.layer.Vector.prototype.selectFeatures;M.impl.layer.Vector.prototype.unselectFeatures=M.impl.layer.Vector.prototype.unselectFeatures;M.impl.layer.Vector.prototype.setFacadeObj=M.impl.layer.Vector.prototype.setFacadeObj;M.impl.layer.Vector.prototype.equals=M.impl.layer.Vector.prototype.equals;M.impl.layer.Vector.prototype.refresh=M.impl.layer.Vector.prototype.refresh;M.impl.layer.Vector.prototype.isLoaded=M.impl.layer.Vector.prototype.isLoaded;M.impl.layer.Vector.prototype.destroy=M.impl.layer.Vector.prototype.destroy;
p("M.impl.layer.WFS",M.impl.layer.WFS);M.impl.layer.WFS.prototype.addTo=M.impl.layer.WFS.prototype.addTo;M.impl.layer.WFS.prototype.refresh=M.impl.layer.WFS.prototype.refresh;M.impl.layer.WFS.prototype.setCQL=M.impl.layer.WFS.prototype.setCQL;M.impl.layer.WFS.prototype.getDescribeFeatureType=M.impl.layer.WFS.prototype.getDescribeFeatureType;M.impl.layer.WFS.prototype.getDefaultValue=M.impl.layer.WFS.prototype.getDefaultValue;M.impl.layer.WFS.prototype.isLoaded=M.impl.layer.WFS.prototype.isLoaded;
M.impl.layer.WFS.prototype.equals=M.impl.layer.WFS.prototype.equals;p("M.impl.layer.WMC",M.impl.layer.WMC);M.impl.layer.WMC.prototype.addTo=M.impl.layer.WMC.prototype.addTo;M.impl.layer.WMC.prototype.select=M.impl.layer.WMC.prototype.select;M.impl.layer.WMC.prototype.unselect=M.impl.layer.WMC.prototype.unselect;M.impl.layer.WMC.prototype.loadLayers=M.impl.layer.WMC.prototype.loadLayers;M.impl.layer.WMC.prototype.setFacadeObj=M.impl.layer.WMC.prototype.setFacadeObj;M.impl.layer.WMC.prototype.getMaxExtent=
M.impl.layer.WMC.prototype.getMaxExtent;M.impl.layer.WMC.prototype.getLayers=M.impl.layer.WMC.prototype.getLayers;M.impl.layer.WMC.prototype.destroy=M.impl.layer.WMC.prototype.destroy;M.impl.layer.WMC.prototype.equals=M.impl.layer.WMC.prototype.equals;p("M.impl.layer.WMS",M.impl.layer.WMS);M.impl.layer.WMS.prototype.setVisible=M.impl.layer.WMS.prototype.setVisible;M.impl.layer.WMS.prototype.isQueryable=M.impl.layer.WMS.prototype.isQueryable;M.impl.layer.WMS.prototype.addTo=M.impl.layer.WMS.prototype.addTo;
M.impl.layer.WMS.prototype.setResolutions=M.impl.layer.WMS.prototype.setResolutions;M.impl.layer.WMS.prototype.getExtent=M.impl.layer.WMS.prototype.getExtent;M.impl.layer.WMS.prototype.getMinResolution=M.impl.layer.WMS.prototype.getMinResolution;M.impl.layer.WMS.prototype.getMaxResolution=M.impl.layer.WMS.prototype.getMaxResolution;M.impl.layer.WMS.prototype.updateMinMaxResolution=M.impl.layer.WMS.prototype.updateMinMaxResolution;M.impl.layer.WMS.prototype.getNumZoomLevels=M.impl.layer.WMS.prototype.getNumZoomLevels;
M.impl.layer.WMS.prototype.getLayers=M.impl.layer.WMS.prototype.getLayers;M.impl.layer.WMS.prototype.getCapabilities=M.impl.layer.WMS.prototype.getCapabilities;M.impl.layer.WMS.prototype.getLegendURL=M.impl.layer.WMS.prototype.getLegendURL;M.impl.layer.WMS.prototype.setLegendURL=M.impl.layer.WMS.prototype.setLegendURL;M.impl.layer.WMS.prototype.refresh=M.impl.layer.WMS.prototype.refresh;M.impl.layer.WMS.prototype.destroy=M.impl.layer.WMS.prototype.destroy;M.impl.layer.WMS.prototype.equals=M.impl.layer.WMS.prototype.equals;
p("M.impl.layer.WMTS",M.impl.layer.WMTS);M.impl.layer.WMTS.prototype.addTo=M.impl.layer.WMTS.prototype.addTo;M.impl.layer.WMTS.prototype.setResolutions=M.impl.layer.WMTS.prototype.setResolutions;M.impl.layer.WMTS.prototype.setVisible=M.impl.layer.WMTS.prototype.setVisible;M.impl.layer.WMTS.prototype.getCapabilities=M.impl.layer.WMTS.prototype.getCapabilities;M.impl.layer.WMTS.prototype.getMinResolution=M.impl.layer.WMTS.prototype.getMinResolution;M.impl.layer.WMTS.prototype.getMaxResolution=M.impl.layer.WMTS.prototype.getMaxResolution;
M.impl.layer.WMTS.prototype.destroy=M.impl.layer.WMTS.prototype.destroy;M.impl.layer.WMTS.prototype.equals=M.impl.layer.WMTS.prototype.equals;p("ol.source.BingMaps",fz);p("ol.source.BingMaps.TOS_ATTRIBUTION",gz);fz.prototype.getApiKey=fz.prototype.getApiKey;fz.prototype.getImagerySet=fz.prototype.getImagerySet;p("ol.source.CartoDB",hz);hz.prototype.getConfig=hz.prototype.getConfig;hz.prototype.updateConfig=hz.prototype.updateConfig;hz.prototype.setConfig=hz.prototype.setConfig;p("ol.source.Cluster",
Y);Y.prototype.getSource=Y.prototype.getSource;Y.prototype.setDistance=Y.prototype.setDistance;p("ol.source.Image",Lu);Nu.prototype.image=Nu.prototype.image;p("ol.source.ImageArcGISRest",kz);kz.prototype.getParams=kz.prototype.getParams;kz.prototype.getImageLoadFunction=kz.prototype.getImageLoadFunction;kz.prototype.getUrl=kz.prototype.getUrl;kz.prototype.setImageLoadFunction=kz.prototype.setImageLoadFunction;kz.prototype.setUrl=kz.prototype.setUrl;kz.prototype.updateParams=kz.prototype.updateParams;
p("ol.source.ImageCanvas",Yu);p("M.ClusteredFeature",M.ClusteredFeature);p("ol.source.ImageMapGuide",lz);lz.prototype.getParams=lz.prototype.getParams;lz.prototype.getImageLoadFunction=lz.prototype.getImageLoadFunction;lz.prototype.updateParams=lz.prototype.updateParams;lz.prototype.setImageLoadFunction=lz.prototype.setImageLoadFunction;p("M.Feature",M.Feature);M.Feature.prototype.setId=M.Feature.prototype.setId;M.Feature.prototype.getId=M.Feature.prototype.getId;M.Feature.prototype.getGeometry=M.Feature.prototype.getGeometry;
M.Feature.prototype.setGeometry=M.Feature.prototype.setGeometry;M.Feature.prototype.getGeoJSON=M.Feature.prototype.getGeoJSON;M.Feature.prototype.getAttributes=M.Feature.prototype.getAttributes;M.Feature.prototype.setAttributes=M.Feature.prototype.setAttributes;M.Feature.prototype.getAttribute=M.Feature.prototype.getAttribute;M.Feature.prototype.setAttribute=M.Feature.prototype.setAttribute;M.Feature.prototype.setStyle=M.Feature.prototype.setStyle;M.Feature.prototype.getStyle=M.Feature.prototype.getStyle;
M.Feature.prototype.clearStyle=M.Feature.prototype.clearStyle;M.Feature.prototype.getCentroid=M.Feature.prototype.getCentroid;p("ol.source.ImageStatic",mz);p("ol.source.ImageVector",Zu);Zu.prototype.getSource=Zu.prototype.getSource;Zu.prototype.getStyle=Zu.prototype.getStyle;Zu.prototype.getStyleFunction=Zu.prototype.getStyleFunction;Zu.prototype.setStyle=Zu.prototype.setStyle;p("M.impl.interaction.SelectCluster",Gt);Gt.prototype.setMap=Gt.prototype.setMap;Gt.prototype.clear=Gt.prototype.clear;Gt.prototype.getLayer=
Gt.prototype.getLayer;Gt.prototype.refreshViewEvents=Gt.prototype.refreshViewEvents;Gt.prototype.selectCluster=Gt.prototype.selectCluster;Gt.prototype.animateCluster_=Gt.prototype.animateCluster_;p("ol.source.ImageWMS",Su);Su.prototype.getGetFeatureInfoUrl=Su.prototype.getGetFeatureInfoUrl;Su.prototype.getParams=Su.prototype.getParams;Su.prototype.getImageLoadFunction=Su.prototype.getImageLoadFunction;Su.prototype.getUrl=Su.prototype.getUrl;Su.prototype.setImageLoadFunction=Su.prototype.setImageLoadFunction;
Su.prototype.setUrl=Su.prototype.setUrl;Su.prototype.updateParams=Su.prototype.updateParams;p("ol.source.OSM",ou);p("ol.source.OSM.ATTRIBUTION",pu);p("ol.source.Raster",nz);nz.prototype.setOperation=nz.prototype.setOperation;sz.prototype.extent=sz.prototype.extent;sz.prototype.resolution=sz.prototype.resolution;sz.prototype.data=sz.prototype.data;p("ol.source.Source",st);st.prototype.getAttributions=st.prototype.getAttributions;st.prototype.getLogo=st.prototype.getLogo;st.prototype.getProjection=
st.prototype.getProjection;st.prototype.getState=st.prototype.getState;st.prototype.refresh=st.prototype.refresh;st.prototype.setAttributions=st.prototype.setAttributions;p("ol.source.Stamen",vz);p("ol.source.Tile",eu);eu.prototype.getTileGrid=eu.prototype.getTileGrid;hu.prototype.tile=hu.prototype.tile;p("ol.source.TileArcGISRest",zz);zz.prototype.getParams=zz.prototype.getParams;zz.prototype.updateParams=zz.prototype.updateParams;p("ol.source.TileDebug",Az);p("ol.source.TileImage",ju);ju.prototype.setRenderReprojectionEdges=
ju.prototype.setRenderReprojectionEdges;ju.prototype.setTileGridForProjection=ju.prototype.setTileGridForProjection;p("ol.source.TileJSON",Cz);Cz.prototype.getTileJSON=Cz.prototype.getTileJSON;p("ol.source.TileUTFGrid",Dz);Dz.prototype.getTemplate=Dz.prototype.getTemplate;Dz.prototype.forDataAtCoordinateAndResolution=Dz.prototype.forDataAtCoordinateAndResolution;p("ol.source.TileWMS",Du);Du.prototype.getGetFeatureInfoUrl=Du.prototype.getGetFeatureInfoUrl;Du.prototype.getParams=Du.prototype.getParams;
Du.prototype.updateParams=Du.prototype.updateParams;iu.prototype.getTileLoadFunction=iu.prototype.getTileLoadFunction;iu.prototype.getTileUrlFunction=iu.prototype.getTileUrlFunction;iu.prototype.getUrls=iu.prototype.getUrls;iu.prototype.setTileLoadFunction=iu.prototype.setTileLoadFunction;iu.prototype.setTileUrlFunction=iu.prototype.setTileUrlFunction;iu.prototype.setUrl=iu.prototype.setUrl;iu.prototype.setUrls=iu.prototype.setUrls;p("ol.source.Vector",X);X.prototype.addFeature=X.prototype.addFeature;
X.prototype.addFeatures=X.prototype.addFeatures;X.prototype.clear=X.prototype.clear;X.prototype.forEachFeature=X.prototype.forEachFeature;X.prototype.forEachFeatureInExtent=X.prototype.forEachFeatureInExtent;X.prototype.forEachFeatureIntersectingExtent=X.prototype.forEachFeatureIntersectingExtent;X.prototype.getFeaturesCollection=X.prototype.getFeaturesCollection;X.prototype.getFeatures=X.prototype.getFeatures;X.prototype.getFeaturesAtCoordinate=X.prototype.getFeaturesAtCoordinate;X.prototype.getFeaturesInExtent=
X.prototype.getFeaturesInExtent;X.prototype.getClosestFeatureToCoordinate=X.prototype.getClosestFeatureToCoordinate;X.prototype.getExtent=X.prototype.getExtent;X.prototype.getFeatureById=X.prototype.getFeatureById;X.prototype.getFormat=X.prototype.getFormat;X.prototype.getUrl=X.prototype.getUrl;X.prototype.removeFeature=X.prototype.removeFeature;yt.prototype.feature=yt.prototype.feature;p("ol.source.VectorTile",Iz);p("ol.source.WMTS",gv);gv.prototype.getDimensions=gv.prototype.getDimensions;gv.prototype.getFormat=
gv.prototype.getFormat;gv.prototype.getLayer=gv.prototype.getLayer;gv.prototype.getMatrixSet=gv.prototype.getMatrixSet;gv.prototype.getRequestEncoding=gv.prototype.getRequestEncoding;gv.prototype.getStyle=gv.prototype.getStyle;gv.prototype.getVersion=gv.prototype.getVersion;gv.prototype.updateDimensions=gv.prototype.updateDimensions;p("ol.source.WMTS.optionsFromCapabilities",gs);p("ol.source.XYZ",nu);p("ol.source.Zoomify",Jz);p("M.impl.handler.Features",M.impl.handler.Features);M.impl.handler.Features.prototype.addTo=
M.impl.handler.Features.prototype.addTo;M.impl.handler.Features.prototype.getFeaturesByLayer=M.impl.handler.Features.prototype.getFeaturesByLayer;M.impl.handler.Features.prototype.addCursorPointer=M.impl.handler.Features.prototype.addCursorPointer;M.impl.handler.Features.prototype.removeCursorPointer=M.impl.handler.Features.prototype.removeCursorPointer;M.impl.handler.Features.prototype.destroy=M.impl.handler.Features.prototype.destroy;p("M.exception",M.exception);p("M.Control",M.Control);M.Control.prototype.name=
M.Control.prototype.name;M.Control.prototype.activated=M.Control.prototype.activated;M.Control.prototype.setImpl=M.Control.prototype.setImpl;M.Control.prototype.addTo=M.Control.prototype.addTo;M.Control.prototype.createView=M.Control.prototype.createView;M.Control.prototype.manageActivation=M.Control.prototype.manageActivation;M.Control.prototype.getActivationButton=M.Control.prototype.getActivationButton;M.Control.prototype.activate=M.Control.prototype.activate;M.Control.prototype.deactivate=M.Control.prototype.deactivate;
M.Control.prototype.getElement=M.Control.prototype.getElement;M.Control.prototype.setPanel=M.Control.prototype.setPanel;M.Control.prototype.getPanel=M.Control.prototype.getPanel;M.Control.prototype.destroy=M.Control.prototype.destroy;p("M.impl.format.GeoJSON",vb);vb.prototype.read=vb.prototype.read;p("M.control.GetFeatureInfo",M.control.GetFeatureInfo);M.control.GetFeatureInfo.prototype.createView=M.control.GetFeatureInfo.prototype.createView;M.control.GetFeatureInfo.prototype.getActivationButton=
M.control.GetFeatureInfo.prototype.getActivationButton;M.control.GetFeatureInfo.prototype.equals=M.control.GetFeatureInfo.prototype.equals;p("M.control.GetFeatureInfo.NAME",M.control.GetFeatureInfo.NAME);p("M.control.GetFeatureInfo.POPUP_TITLE",M.control.GetFeatureInfo.POPUP_TITLE);p("M.control.GetFeatureInfo.TEMPLATE",M.control.GetFeatureInfo.TEMPLATE);p("M.control.GetFeatureInfo.POPUP_TEMPLATE",M.control.GetFeatureInfo.POPUP_TEMPLATE);p("M.impl.format.GML",ao);p("M.control.LayerSwitcher",M.control.LayerSwitcher);
M.control.LayerSwitcher.prototype.createView=M.control.LayerSwitcher.prototype.createView;M.control.LayerSwitcher.prototype.equals=M.control.LayerSwitcher.prototype.equals;M.control.LayerSwitcher.prototype.render=M.control.LayerSwitcher.prototype.render;M.control.LayerSwitcher.prototype.registerEvents=M.control.LayerSwitcher.prototype.registerEvents;M.control.LayerSwitcher.prototype.unregisterEvents=M.control.LayerSwitcher.prototype.unregisterEvents;p("M.control.LayerSwitcher.NAME",M.control.LayerSwitcher.NAME);
p("M.control.LayerSwitcher.TEMPLATE",M.control.LayerSwitcher.TEMPLATE);p("M.control.Location",M.control.Location);M.control.Location.prototype.createView=M.control.Location.prototype.createView;M.control.Location.prototype.getActivationButton=M.control.Location.prototype.getActivationButton;M.control.Location.prototype.equals=M.control.Location.prototype.equals;p("M.control.Location.NAME",M.control.Location.NAME);p("M.control.Location.TEMPLATE",M.control.Location.TEMPLATE);p("M.control.Mouse",M.control.Mouse);
M.control.Mouse.prototype.createView=M.control.Mouse.prototype.createView;M.control.Mouse.prototype.equals=M.control.Mouse.prototype.equals;p("M.control.Mouse.NAME",M.control.Mouse.NAME);p("M.control.Mouse.TEMPLATE",M.control.Mouse.TEMPLATE);p("M.impl.format.WKT",wb);p("M.control.Navtoolbar",M.control.Navtoolbar);M.control.Navtoolbar.prototype.createView=M.control.Navtoolbar.prototype.createView;M.control.Navtoolbar.prototype.equals=M.control.Navtoolbar.prototype.equals;p("M.control.Navtoolbar.NAME",
M.control.Navtoolbar.NAME);p("M.control.Navtoolbar.TEMPLATE",M.control.Navtoolbar.TEMPLATE);p("M.control.OverviewMap",M.control.OverviewMap);M.control.OverviewMap.prototype.createView=M.control.OverviewMap.prototype.createView;M.control.OverviewMap.prototype.equals=M.control.OverviewMap.prototype.equals;p("M.control.OverviewMap.NAME",M.control.OverviewMap.NAME);p("M.control.OverviewMap.TEMPLATE",M.control.OverviewMap.TEMPLATE);p("M.control.Panzoom",M.control.Panzoom);M.control.Panzoom.prototype.createView=
M.control.Panzoom.prototype.createView;M.control.Panzoom.prototype.equals=M.control.Panzoom.prototype.equals;p("M.control.Panzoom.NAME",M.control.Panzoom.NAME);p("M.control.Panzoom.TEMPLATE",M.control.Panzoom.TEMPLATE);p("M.control.Panzoombar",M.control.Panzoombar);M.control.Panzoombar.prototype.createView=M.control.Panzoombar.prototype.createView;M.control.Panzoombar.prototype.equals=M.control.Panzoombar.prototype.equals;p("M.control.Panzoombar.NAME",M.control.Panzoombar.NAME);p("M.control.Panzoombar.TEMPLATE",
M.control.Panzoombar.TEMPLATE);p("M.impl.format.XML",Aq);Aq.prototype.read=Aq.prototype.read;Aq.prototype.read_root=Aq.prototype.read_root;Aq.prototype.runChildNodes=Aq.prototype.runChildNodes;Aq.prototype.getNamespacePrefix=Aq.prototype.getNamespacePrefix;Aq.prototype.getChildValue=Aq.prototype.getChildValue;Aq.prototype.getAttributeNS=Aq.prototype.getAttributeNS;p("M.control.Scale",M.control.Scale);M.control.Scale.prototype.createView=M.control.Scale.prototype.createView;M.control.Scale.prototype.equals=
M.control.Scale.prototype.equals;p("M.control.Scale.NAME",M.control.Scale.NAME);p("M.control.Scale.TEMPLATE",M.control.Scale.TEMPLATE);p("M.control.ScaleLine",M.control.ScaleLine);M.control.ScaleLine.prototype.createView=M.control.ScaleLine.prototype.createView;M.control.ScaleLine.prototype.equals=M.control.ScaleLine.prototype.equals;p("M.control.ScaleLine.NAME",M.control.ScaleLine.NAME);p("M.control.ScaleLine.TEMPLATE",M.control.ScaleLine.TEMPLATE);p("M.control.WMCSelector",M.control.WMCSelector);
M.control.WMCSelector.prototype.createView=M.control.WMCSelector.prototype.createView;M.control.WMCSelector.prototype.equals=M.control.WMCSelector.prototype.equals;p("M.control.WMCSelector.TEMPLATE",M.control.WMCSelector.TEMPLATE);p("M.impl.format.WMTSCapabilities",M.impl.format.WMTSCapabilities);M.impl.format.WMTSCapabilities.prototype.read=M.impl.format.WMTSCapabilities.prototype.read;M.impl.format.WMTSCapabilities.prototype.getMatrixSet=M.impl.format.WMTSCapabilities.prototype.getMatrixSet;M.impl.format.WMTSCapabilities.prototype.getMatrixIds=
M.impl.format.WMTSCapabilities.prototype.getMatrixIds;M.impl.format.WMTSCapabilities.prototype.getFormat=M.impl.format.WMTSCapabilities.prototype.getFormat;M.impl.format.WMTSCapabilities.prototype.getOptionsFromCapabilities=M.impl.format.WMTSCapabilities.prototype.getOptionsFromCapabilities;p("M.style.chart.types",M.style.chart.types);p("M.style.chart.schemes",M.style.chart.schemes);p("M.style.chart.Variable",M.style.chart.Variable);p("M.impl.format.WMSCapabilities",M.impl.format.WMSCapabilities);
p("M.impl.format.WMC",Wq);Wq.prototype.readFromDocument=Wq.prototype.readFromDocument;p("M.impl.format.WMC.v110",V);V.prototype.read_sld_MinScaleDenominator=V.prototype.read_sld_MinScaleDenominator;V.prototype.read_wmc_Layer=V.prototype.read_wmc_Layer;V.prototype.getLayerFromInfo=V.prototype.getLayerFromInfo;V.prototype.read_ol_units=V.prototype.read_ol_units;V.prototype.read_ol_tileSize=V.prototype.read_ol_tileSize;V.prototype.read_ol_groupDisplayLayerSwitcher=V.prototype.read_ol_groupDisplayLayerSwitcher;
V.prototype.read_ol_orderInsideGroupDisplayLayerSwitcher=V.prototype.read_ol_orderInsideGroupDisplayLayerSwitcher;V.prototype.read_sld_MaxScaleDenominator=V.prototype.read_sld_MaxScaleDenominator;V.prototype.read_wmc_Style=V.prototype.read_wmc_Style;V.prototype.read_wmc_General=V.prototype.read_wmc_General;V.prototype.read_wmc_BoundingBox=V.prototype.read_wmc_BoundingBox;V.prototype.read_wmc_LayerList=V.prototype.read_wmc_LayerList;V.prototype.read_wmc_Extension=V.prototype.read_wmc_Extension;V.prototype.read_ol_maxExtent=
V.prototype.read_ol_maxExtent;V.prototype.read_ol_transparent=V.prototype.read_ol_transparent;V.prototype.read_ol_numZoomLevels=V.prototype.read_ol_numZoomLevels;V.prototype.read_ol_opacity=V.prototype.read_ol_opacity;V.prototype.read_ol_singleTile=V.prototype.read_ol_singleTile;V.prototype.read_ol_isBaseLayer=V.prototype.read_ol_isBaseLayer;V.prototype.read_ol_displayInLayerSwitcher=V.prototype.read_ol_displayInLayerSwitcher;V.prototype.read_wmc_Server=V.prototype.read_wmc_Server;V.prototype.read_wmc_FormatList=
V.prototype.read_wmc_FormatList;V.prototype.read_wmc_Format=V.prototype.read_wmc_Format;V.prototype.read_wmc_StyleList=V.prototype.read_wmc_StyleList;V.prototype.read_wmc_SLD=V.prototype.read_wmc_SLD;V.prototype.read_sld_StyledLayerDescriptor=V.prototype.read_sld_StyledLayerDescriptor;V.prototype.read_wmc_OnlineResource=V.prototype.read_wmc_OnlineResource;V.prototype.read_wmc_Name=V.prototype.read_wmc_Name;V.prototype.read_wmc_Title=V.prototype.read_wmc_Title;V.prototype.read_wmc_MetadataURL=V.prototype.read_wmc_MetadataURL;
V.prototype.read_wmc_Abstract=V.prototype.read_wmc_Abstract;V.prototype.read_wmc_LatLonBoundingBox=V.prototype.read_wmc_LatLonBoundingBox;V.prototype.read_wmc_LegendURL=V.prototype.read_wmc_LegendURL;V.prototype.read_sld_FeatureTypeStyle=V.prototype.read_sld_FeatureTypeStyle;V.prototype.read_wmc_KeywordList=V.prototype.read_wmc_KeywordList;V.prototype.read_wmc_Keyword=V.prototype.read_wmc_Keyword;V.prototype.read_wmc_LogoURL=V.prototype.read_wmc_LogoURL;V.prototype.read_wmc_DescriptionURL=V.prototype.read_wmc_DescriptionURL;
V.prototype.read_wmc_ContactInformation=V.prototype.read_wmc_ContactInformation;V.prototype.read_wmc_ContactPersonPrimary=V.prototype.read_wmc_ContactPersonPrimary;V.prototype.read_wmc_ContactPerson=V.prototype.read_wmc_ContactPerson;V.prototype.read_wmc_ContactOrganization=V.prototype.read_wmc_ContactOrganization;V.prototype.read_wmc_ContactPosition=V.prototype.read_wmc_ContactPosition;V.prototype.read_wmc_ContactAddress=V.prototype.read_wmc_ContactAddress;V.prototype.read_wmc_AddressType=V.prototype.read_wmc_AddressType;
V.prototype.read_wmc_Address=V.prototype.read_wmc_Address;V.prototype.read_wmc_City=V.prototype.read_wmc_City;V.prototype.read_wmc_StateOrProvince=V.prototype.read_wmc_StateOrProvince;V.prototype.read_wmc_PostCode=V.prototype.read_wmc_PostCode;V.prototype.read_wmc_Country=V.prototype.read_wmc_Country;V.prototype.read_wmc_ContactVoiceTelephone=V.prototype.read_wmc_ContactVoiceTelephone;V.prototype.read_wmc_ContactFacsimileTelephone=V.prototype.read_wmc_ContactFacsimileTelephone;V.prototype.read_wmc_ContactElectronicMailAddress=
V.prototype.read_wmc_ContactElectronicMailAddress;V.prototype.read_wmc_DataURL=V.prototype.read_wmc_DataURL;V.prototype.read_wmc_DimensionList=V.prototype.read_wmc_DimensionList;V.prototype.read_wmc_Dimension=V.prototype.read_wmc_Dimension;p("M.impl.format.DescribeFeatureType",M.impl.format.DescribeFeatureType);M.impl.format.DescribeFeatureType.prototype.read=M.impl.format.DescribeFeatureType.prototype.read;p("M.impl.format.DescribeFeatureTypeXML",Bq);Bq.prototype.read_root=Bq.prototype.read_root;
Bq.prototype.read_ogc_ServiceException=Bq.prototype.read_ogc_ServiceException;Bq.prototype.read_xsd_schema=Bq.prototype.read_xsd_schema;Bq.prototype.read_xsd_import=Bq.prototype.read_xsd_import;Bq.prototype.read_xsd_complexType=Bq.prototype.read_xsd_complexType;Bq.prototype.read_xsd_complexContent=Bq.prototype.read_xsd_complexContent;Bq.prototype.read_xsd_extension=Bq.prototype.read_xsd_extension;Bq.prototype.read_xsd_sequence=Bq.prototype.read_xsd_sequence;Bq.prototype.read_xsd_element=Bq.prototype.read_xsd_element;
p("M.impl.format.KML",qq);qq.prototype.getScreenOverlay=qq.prototype.getScreenOverlay;p("M.impl.Feature",M.impl.Feature);M.impl.Feature.prototype.getOLFeature=M.impl.Feature.prototype.getOLFeature;M.impl.Feature.prototype.setOLFeature=M.impl.Feature.prototype.setOLFeature;M.impl.Feature.prototype.getAttributes=M.impl.Feature.prototype.getAttributes;M.impl.Feature.prototype.getId=M.impl.Feature.prototype.getId;M.impl.Feature.prototype.setId=M.impl.Feature.prototype.setId;M.impl.Feature.prototype.setAttributes=
M.impl.Feature.prototype.setAttributes;p("M.impl.Feature.olFeature2Facade",M.impl.Feature.olFeature2Facade);p("M.impl.Feature.facade2OLFeature",M.impl.Feature.facade2OLFeature);M.impl.Feature.prototype.getAttribute=M.impl.Feature.prototype.getAttribute;M.impl.Feature.prototype.setAttribute=M.impl.Feature.prototype.setAttribute;M.impl.Feature.prototype.getGeometry=M.impl.Feature.prototype.getGeometry;M.impl.Feature.prototype.setGeometry=M.impl.Feature.prototype.setGeometry;M.impl.Feature.prototype.setFacadeObj=
M.impl.Feature.prototype.setFacadeObj;M.impl.Feature.prototype.getCentroid=M.impl.Feature.prototype.getCentroid;M.impl.Feature.prototype.clearStyle=M.impl.Feature.prototype.clearStyle;p("ol.style.FillPattern",Gn);p("ol.style.FontSymbol",In);In.prototype.getFill=In.prototype.getFill;In.prototype.getStroke=In.prototype.getStroke;In.prototype.getGlyph=In.prototype.getGlyph;In.prototype.getGlyphName=In.prototype.getGlyphName;In.prototype.getFontInfo=In.prototype.getFontInfo;al.prototype.vectorContext=
al.prototype.vectorContext;al.prototype.frameState=al.prototype.frameState;al.prototype.context=al.prototype.context;al.prototype.glContext=al.prototype.glContext;lx.prototype.get=lx.prototype.get;lx.prototype.getExtent=lx.prototype.getExtent;lx.prototype.getGeometry=lx.prototype.getGeometry;lx.prototype.getProperties=lx.prototype.getProperties;lx.prototype.getType=lx.prototype.getType;p("ol.render.VectorContext",bl);p("M.impl.Control",M.impl.Control);M.impl.Control.prototype.addTo=M.impl.Control.prototype.addTo;
M.impl.Control.prototype.destroy=M.impl.Control.prototype.destroy;M.impl.Control.prototype.getElement=M.impl.Control.prototype.getElement;p("M.impl.control.GetFeatureInfo",M.impl.control.GetFeatureInfo);M.impl.control.GetFeatureInfo.prototype.userFormat=M.impl.control.GetFeatureInfo.prototype.userFormat;M.impl.control.GetFeatureInfo.prototype.buffer=M.impl.control.GetFeatureInfo.prototype.buffer;M.impl.control.GetFeatureInfo.prototype.activate=M.impl.control.GetFeatureInfo.prototype.activate;M.impl.control.GetFeatureInfo.prototype.deactivate=
M.impl.control.GetFeatureInfo.prototype.deactivate;p("M.impl.control.GetFeatureInfo.LOADING_MESSAGE",M.impl.control.GetFeatureInfo.LOADING_MESSAGE);p("M.impl.control.LayerSwitcher",M.impl.control.LayerSwitcher);M.impl.control.LayerSwitcher.prototype.addTo=M.impl.control.LayerSwitcher.prototype.addTo;M.impl.control.LayerSwitcher.prototype.clickLayer=M.impl.control.LayerSwitcher.prototype.clickLayer;M.impl.control.LayerSwitcher.prototype.renderPanel=M.impl.control.LayerSwitcher.prototype.renderPanel;
M.impl.control.LayerSwitcher.prototype.registerEvents=M.impl.control.LayerSwitcher.prototype.registerEvents;M.impl.control.LayerSwitcher.prototype.unregisterEvents=M.impl.control.LayerSwitcher.prototype.unregisterEvents;p("M.impl.control.LayerSwitcher.PANEL_ID",M.impl.control.LayerSwitcher.PANEL_ID);p("M.impl.control.Location",M.impl.control.Location);M.impl.control.Location.prototype.activate=M.impl.control.Location.prototype.activate;M.impl.control.Location.prototype.deactivate=M.impl.control.Location.prototype.deactivate;
M.impl.control.Location.prototype.destroy=M.impl.control.Location.prototype.destroy;p("M.impl.control.Location.POSITION_STYLE",M.impl.control.Location.POSITION_STYLE);p("M.impl.control.Mouse",M.impl.control.Mouse);M.impl.control.Mouse.prototype.addTo=M.impl.control.Mouse.prototype.addTo;M.impl.control.Mouse.prototype.getElement=M.impl.control.Mouse.prototype.getElement;M.impl.control.Mouse.prototype.destroy=M.impl.control.Mouse.prototype.destroy;p("M.impl.control.Navtoolbar",M.impl.control.Navtoolbar);
M.impl.control.Navtoolbar.prototype.addTo=M.impl.control.Navtoolbar.prototype.addTo;M.impl.control.Navtoolbar.prototype.getElement=M.impl.control.Navtoolbar.prototype.getElement;M.impl.control.Navtoolbar.prototype.destroy=M.impl.control.Navtoolbar.prototype.destroy;p("M.impl.control.OverviewMap",M.impl.control.OverviewMap);M.impl.control.OverviewMap.prototype.addTo=M.impl.control.OverviewMap.prototype.addTo;M.impl.control.OverviewMap.prototype.getElement=M.impl.control.OverviewMap.prototype.getElement;
M.impl.control.OverviewMap.prototype.destroy=M.impl.control.OverviewMap.prototype.destroy;p("M.impl.control.Panzoom",M.impl.control.Panzoom);M.impl.control.Panzoom.prototype.addTo=M.impl.control.Panzoom.prototype.addTo;M.impl.control.Panzoom.prototype.getElement=M.impl.control.Panzoom.prototype.getElement;M.impl.control.Panzoom.prototype.destroy=M.impl.control.Panzoom.prototype.destroy;p("M.impl.control.Panzoombar",M.impl.control.Panzoombar);M.impl.control.Panzoombar.prototype.addTo=M.impl.control.Panzoombar.prototype.addTo;
M.impl.control.Panzoombar.prototype.getElement=M.impl.control.Panzoombar.prototype.getElement;M.impl.control.Panzoombar.prototype.destroy=M.impl.control.Panzoombar.prototype.destroy;p("M.impl.control.Scale",M.impl.control.Scale);M.impl.control.Scale.prototype.addTo=M.impl.control.Scale.prototype.addTo;M.impl.control.Scale.prototype.render=M.impl.control.Scale.prototype.render;M.impl.control.Scale.prototype.destroy=M.impl.control.Scale.prototype.destroy;p("M.impl.control.ScaleLine",M.impl.control.ScaleLine);
M.impl.control.ScaleLine.prototype.addTo=M.impl.control.ScaleLine.prototype.addTo;M.impl.control.ScaleLine.prototype.getElement=M.impl.control.ScaleLine.prototype.getElement;M.impl.control.ScaleLine.prototype.destroy=M.impl.control.ScaleLine.prototype.destroy;p("M.impl.control.WMCSelector",M.impl.control.WMCSelector);M.impl.control.WMCSelector.prototype.addTo=M.impl.control.WMCSelector.prototype.addTo;Zm.prototype.setStyle=Zm.prototype.setStyle;Zm.prototype.drawGeometry=Zm.prototype.drawGeometry;
Zm.prototype.drawFeature=Zm.prototype.drawFeature;p("M.impl.style.OLChart",M.impl.style.OLChart);M.impl.style.OLChart.prototype.clone=M.impl.style.OLChart.prototype.clone;M.impl.style.OLChart.prototype.setRadius=M.impl.style.OLChart.prototype.setRadius;M.impl.style.OLChart.prototype.setAnimation=M.impl.style.OLChart.prototype.setAnimation;M.impl.style.OLChart.prototype.renderChart_=M.impl.style.OLChart.prototype.renderChart_;M.impl.style.OLChart.prototype.forceRender_=M.impl.style.OLChart.prototype.forceRender_;
cl.prototype.drawCircle=cl.prototype.drawCircle;cl.prototype.setStyle=cl.prototype.setStyle;cl.prototype.drawGeometry=cl.prototype.drawGeometry;cl.prototype.drawFeature=cl.prototype.drawFeature;p("ol.proj.common.add",Fk);p("ol.proj.Projection",Jf);Jf.prototype.getCode=Jf.prototype.getCode;Jf.prototype.getExtent=Jf.prototype.getExtent;Jf.prototype.getUnits=Jf.prototype.getUnits;Jf.prototype.getMetersPerUnit=Jf.prototype.getMetersPerUnit;Jf.prototype.getWorldExtent=Jf.prototype.getWorldExtent;Jf.prototype.isGlobal=
Jf.prototype.isGlobal;Jf.prototype.setGlobal=Jf.prototype.setGlobal;Jf.prototype.setExtent=Jf.prototype.setExtent;Jf.prototype.setWorldExtent=Jf.prototype.setWorldExtent;Jf.prototype.setGetPointResolution=Jf.prototype.setGetPointResolution;p("ol.proj.Units.METERS_PER_UNIT",Hf);p("ol.layer.Base",uk);uk.prototype.getExtent=uk.prototype.getExtent;uk.prototype.getMaxResolution=uk.prototype.getMaxResolution;uk.prototype.getMinResolution=uk.prototype.getMinResolution;uk.prototype.getOpacity=uk.prototype.getOpacity;
uk.prototype.getVisible=uk.prototype.getVisible;uk.prototype.getZIndex=uk.prototype.getZIndex;uk.prototype.setExtent=uk.prototype.setExtent;uk.prototype.setMaxResolution=uk.prototype.setMaxResolution;uk.prototype.setMinResolution=uk.prototype.setMinResolution;uk.prototype.setOpacity=uk.prototype.setOpacity;uk.prototype.setVisible=uk.prototype.setVisible;uk.prototype.setZIndex=uk.prototype.setZIndex;p("ol.layer.Group",wk);wk.prototype.getLayers=wk.prototype.getLayers;wk.prototype.setLayers=wk.prototype.setLayers;
p("ol.layer.Heatmap",Z);Z.prototype.getBlur=Z.prototype.getBlur;Z.prototype.getGradient=Z.prototype.getGradient;Z.prototype.getRadius=Z.prototype.getRadius;Z.prototype.setBlur=Z.prototype.setBlur;Z.prototype.setGradient=Z.prototype.setGradient;Z.prototype.setRadius=Z.prototype.setRadius;p("ol.layer.Image",dv);dv.prototype.getSource=dv.prototype.getSource;p("ol.layer.Layer",Gk);Gk.prototype.getSource=Gk.prototype.getSource;Gk.prototype.setMap=Gk.prototype.setMap;Gk.prototype.setSource=Gk.prototype.setSource;
p("ol.layer.Tile",Bu);Bu.prototype.getPreload=Bu.prototype.getPreload;Bu.prototype.getSource=Bu.prototype.getSource;Bu.prototype.setPreload=Bu.prototype.setPreload;Bu.prototype.getUseInterimTilesOnError=Bu.prototype.getUseInterimTilesOnError;Bu.prototype.setUseInterimTilesOnError=Bu.prototype.setUseInterimTilesOnError;p("ol.layer.Vector",W);W.prototype.getSource=W.prototype.getSource;W.prototype.getStyle=W.prototype.getStyle;W.prototype.getStyleFunction=W.prototype.getStyleFunction;W.prototype.setStyle=
W.prototype.setStyle;p("ol.layer.VectorTile",bz);bz.prototype.getPreload=bz.prototype.getPreload;bz.prototype.getUseInterimTilesOnError=bz.prototype.getUseInterimTilesOnError;bz.prototype.setPreload=bz.prototype.setPreload;bz.prototype.setUseInterimTilesOnError=bz.prototype.setUseInterimTilesOnError;p("ol.interaction.DoubleClickZoom",uj);p("ol.interaction.DoubleClickZoom.handleEvent",vj);p("ol.interaction.DragAndDrop",Nx);p("ol.interaction.DragAndDrop.handleEvent",Df);Qx.prototype.features=Qx.prototype.features;
Qx.prototype.file=Qx.prototype.file;Qx.prototype.projection=Qx.prototype.projection;p("ol.interaction.DragBox",Tj);Tj.prototype.getGeometry=Tj.prototype.getGeometry;Yj.prototype.coordinate=Yj.prototype.coordinate;Yj.prototype.mapBrowserEvent=Yj.prototype.mapBrowserEvent;p("ol.interaction.DragPan",Jj);p("ol.interaction.DragRotate",Nj);p("ol.interaction.DragRotateAndZoom",Sx);p("ol.interaction.DragZoom",ck);p("ol.interaction.Draw",Wx);p("ol.interaction.Draw.handleEvent",Yx);Wx.prototype.removeLastPoint=
Wx.prototype.removeLastPoint;Wx.prototype.finishDrawing=Wx.prototype.finishDrawing;Wx.prototype.extend=Wx.prototype.extend;p("ol.interaction.Draw.createRegularPolygon",function(a,b){return function(c,d){var e=c[0];c=c[1];var f=Math.sqrt(Si(e,c));d=d?d:$g(new Pn(e),a);ah(d,e,f,b?b:Math.atan((c[1]-e[1])/(c[0]-e[0])));return d}});p("ol.interaction.Draw.createBox",function(){return function(a,b){a=Ve(a);b=b||new R(null);b.setCoordinates([[of(a),pf(a),rf(a),sf(a),of(a)]]);return b}});jy.prototype.feature=
jy.prototype.feature;p("ol.interaction.Extent",ly);ly.prototype.getExtent=ly.prototype.getExtent;ly.prototype.setExtent=ly.prototype.setExtent;wy.prototype.extent_=wy.prototype.extent_;p("ol.interaction.Interaction",qj);qj.prototype.getActive=qj.prototype.getActive;qj.prototype.getMap=qj.prototype.getMap;qj.prototype.setActive=qj.prototype.setActive;p("ol.interaction.KeyboardPan",dk);p("ol.interaction.KeyboardPan.handleEvent",ek);p("ol.interaction.KeyboardZoom",fk);p("ol.interaction.KeyboardZoom.handleEvent",
gk);p("ol.interaction.Modify",yy);p("ol.interaction.Modify.handleEvent",By);yy.prototype.removePoint=yy.prototype.removePoint;Gy.prototype.features=Gy.prototype.features;Gy.prototype.mapBrowserEvent=Gy.prototype.mapBrowserEvent;p("ol.interaction.MouseWheelZoom",hk);p("ol.interaction.MouseWheelZoom.handleEvent",ik);hk.prototype.setMouseAnchor=hk.prototype.setMouseAnchor;p("ol.interaction.PinchRotate",lk);p("ol.interaction.PinchZoom",pk);p("ol.interaction.Pointer",Fj);p("ol.interaction.Pointer.handleEvent",
Gj);p("ol.interaction.Select",Bt);Bt.prototype.getFeatures=Bt.prototype.getFeatures;Bt.prototype.getHitTolerance=Bt.prototype.getHitTolerance;Bt.prototype.getLayer=Bt.prototype.getLayer;p("ol.interaction.Select.handleEvent",Ct);Bt.prototype.setHitTolerance=Bt.prototype.setHitTolerance;Bt.prototype.setMap=Bt.prototype.setMap;Et.prototype.selected=Et.prototype.selected;Et.prototype.deselected=Et.prototype.deselected;Et.prototype.mapBrowserEvent=Et.prototype.mapBrowserEvent;p("ol.interaction.Snap",Ny);
Ny.prototype.addFeature=Ny.prototype.addFeature;Ny.prototype.removeFeature=Ny.prototype.removeFeature;p("ol.interaction.Translate",Ry);Ry.prototype.getHitTolerance=Ry.prototype.getHitTolerance;Ry.prototype.setHitTolerance=Ry.prototype.setHitTolerance;Xy.prototype.features=Xy.prototype.features;Xy.prototype.coordinate=Xy.prototype.coordinate;p("ol.geom.Circle",Pn);Pn.prototype.clone=Pn.prototype.clone;Pn.prototype.getCenter=Pn.prototype.getCenter;Pn.prototype.getRadius=Pn.prototype.getRadius;Pn.prototype.getType=
Pn.prototype.getType;Pn.prototype.intersectsExtent=Pn.prototype.intersectsExtent;Pn.prototype.setCenter=Pn.prototype.setCenter;Pn.prototype.setCenterAndRadius=Pn.prototype.setCenterAndRadius;Pn.prototype.setRadius=Pn.prototype.setRadius;Pn.prototype.transform=Pn.prototype.transform;p("ol.geom.Geometry",gg);gg.prototype.getClosestPoint=gg.prototype.getClosestPoint;gg.prototype.intersectsCoordinate=gg.prototype.intersectsCoordinate;gg.prototype.getExtent=gg.prototype.getExtent;gg.prototype.rotate=gg.prototype.rotate;
gg.prototype.scale=gg.prototype.scale;gg.prototype.simplify=gg.prototype.simplify;gg.prototype.transform=gg.prototype.transform;p("ol.geom.GeometryCollection",Fn);Fn.prototype.clone=Fn.prototype.clone;Fn.prototype.getGeometries=Fn.prototype.getGeometries;Fn.prototype.getType=Fn.prototype.getType;Fn.prototype.intersectsExtent=Fn.prototype.intersectsExtent;Fn.prototype.rotate=Fn.prototype.rotate;Fn.prototype.scale=Fn.prototype.scale;Fn.prototype.setGeometries=Fn.prototype.setGeometries;Fn.prototype.applyTransform=
Fn.prototype.applyTransform;Fn.prototype.translate=Fn.prototype.translate;p("ol.geom.LinearRing",Tg);Tg.prototype.clone=Tg.prototype.clone;Tg.prototype.getArea=Tg.prototype.getArea;Tg.prototype.getCoordinates=Tg.prototype.getCoordinates;Tg.prototype.getType=Tg.prototype.getType;Tg.prototype.setCoordinates=Tg.prototype.setCoordinates;p("ol.geom.LineString",P);P.prototype.appendCoordinate=P.prototype.appendCoordinate;P.prototype.clone=P.prototype.clone;P.prototype.forEachSegment=P.prototype.forEachSegment;
P.prototype.getCoordinateAtM=P.prototype.getCoordinateAtM;P.prototype.getCoordinates=P.prototype.getCoordinates;P.prototype.getCoordinateAt=P.prototype.getCoordinateAt;P.prototype.getLength=P.prototype.getLength;P.prototype.getType=P.prototype.getType;P.prototype.intersectsExtent=P.prototype.intersectsExtent;P.prototype.setCoordinates=P.prototype.setCoordinates;p("ol.geom.MultiLineString",Q);Q.prototype.appendLineString=Q.prototype.appendLineString;Q.prototype.clone=Q.prototype.clone;Q.prototype.getCoordinateAtM=
Q.prototype.getCoordinateAtM;Q.prototype.getCoordinates=Q.prototype.getCoordinates;Q.prototype.getLineString=Q.prototype.getLineString;Q.prototype.getLineStrings=Q.prototype.getLineStrings;Q.prototype.getType=Q.prototype.getType;Q.prototype.intersectsExtent=Q.prototype.intersectsExtent;Q.prototype.setCoordinates=Q.prototype.setCoordinates;p("ol.geom.MultiPoint",Wg);Wg.prototype.appendPoint=Wg.prototype.appendPoint;Wg.prototype.clone=Wg.prototype.clone;Wg.prototype.getCoordinates=Wg.prototype.getCoordinates;
Wg.prototype.getPoint=Wg.prototype.getPoint;Wg.prototype.getPoints=Wg.prototype.getPoints;Wg.prototype.getType=Wg.prototype.getType;Wg.prototype.intersectsExtent=Wg.prototype.intersectsExtent;Wg.prototype.setCoordinates=Wg.prototype.setCoordinates;p("ol.geom.MultiPolygon",S);S.prototype.appendPolygon=S.prototype.appendPolygon;S.prototype.clone=S.prototype.clone;S.prototype.getArea=S.prototype.getArea;S.prototype.getCoordinates=S.prototype.getCoordinates;S.prototype.getInteriorPoints=S.prototype.getInteriorPoints;
S.prototype.getPolygon=S.prototype.getPolygon;S.prototype.getPolygons=S.prototype.getPolygons;S.prototype.getType=S.prototype.getType;S.prototype.intersectsExtent=S.prototype.intersectsExtent;S.prototype.setCoordinates=S.prototype.setCoordinates;p("ol.geom.Point",F);F.prototype.clone=F.prototype.clone;F.prototype.getCoordinates=F.prototype.getCoordinates;F.prototype.getType=F.prototype.getType;F.prototype.intersectsExtent=F.prototype.intersectsExtent;F.prototype.setCoordinates=F.prototype.setCoordinates;
p("ol.geom.Polygon",R);R.prototype.appendLinearRing=R.prototype.appendLinearRing;R.prototype.clone=R.prototype.clone;R.prototype.getArea=R.prototype.getArea;R.prototype.getCoordinates=R.prototype.getCoordinates;R.prototype.getInteriorPoint=R.prototype.getInteriorPoint;R.prototype.getLinearRingCount=R.prototype.getLinearRingCount;R.prototype.getLinearRing=R.prototype.getLinearRing;R.prototype.getLinearRings=R.prototype.getLinearRings;R.prototype.getType=R.prototype.getType;R.prototype.intersectsExtent=
R.prototype.intersectsExtent;R.prototype.setCoordinates=R.prototype.setCoordinates;p("ol.geom.Polygon.circular",Yg);p("ol.geom.Polygon.fromExtent",Zg);p("ol.geom.Polygon.fromCircle",$g);p("ol.geom.SimpleGeometry",Og);Og.prototype.getFirstCoordinate=Og.prototype.getFirstCoordinate;Og.prototype.getLastCoordinate=Og.prototype.getLastCoordinate;Og.prototype.getLayout=Og.prototype.getLayout;Og.prototype.applyTransform=Og.prototype.applyTransform;Og.prototype.rotate=Og.prototype.rotate;Og.prototype.scale=
Og.prototype.scale;Og.prototype.translate=Og.prototype.translate;p("ol.format.EsriJSON",qw);qw.prototype.readFeature=qw.prototype.readFeature;qw.prototype.readFeatures=qw.prototype.readFeatures;qw.prototype.readGeometry=qw.prototype.readGeometry;qw.prototype.readProjection=qw.prototype.readProjection;qw.prototype.writeGeometry=qw.prototype.writeGeometry;qw.prototype.writeGeometryObject=qw.prototype.writeGeometryObject;qw.prototype.writeFeature=qw.prototype.writeFeature;qw.prototype.writeFeatureObject=
qw.prototype.writeFeatureObject;qw.prototype.writeFeatures=qw.prototype.writeFeatures;qw.prototype.writeFeaturesObject=qw.prototype.writeFeaturesObject;p("ol.format.Feature",hg);p("ol.format.filter.and",Jv);p("ol.format.filter.or",function(a){var b=[null].concat(Array.prototype.slice.call(arguments));return new (Function.prototype.bind.apply(Hv,b))});p("ol.format.filter.not",function(a){return new Fv(a)});p("ol.format.filter.bbox",Kv);p("ol.format.filter.intersects",function(a,b,c){return new zv(a,
b,c)});p("ol.format.filter.within",function(a,b,c){return new Iv(a,b,c)});p("ol.format.filter.equalTo",function(a,b,c){return new vv(a,b,c)});p("ol.format.filter.notEqualTo",function(a,b,c){return new Gv(a,b,c)});p("ol.format.filter.lessThan",function(a,b){return new Dv(a,b)});p("ol.format.filter.lessThanOrEqualTo",function(a,b){return new Ev(a,b)});p("ol.format.filter.greaterThan",function(a,b){return new wv(a,b)});p("ol.format.filter.greaterThanOrEqualTo",function(a,b){return new xv(a,b)});p("ol.format.filter.isNull",
function(a){return new Cv(a)});p("ol.format.filter.between",function(a,b,c){return new Av(a,b,c)});p("ol.format.filter.like",function(a,b,c,d,e,f){return new Bv(a,b,c,d,e,f)});p("ol.format.GeoJSON",Vn);Vn.prototype.readFeature=Vn.prototype.readFeature;Vn.prototype.readFeatures=Vn.prototype.readFeatures;Vn.prototype.readGeometry=Vn.prototype.readGeometry;Vn.prototype.readProjection=Vn.prototype.readProjection;Vn.prototype.writeFeature=Vn.prototype.writeFeature;Vn.prototype.writeFeatureObject=Vn.prototype.writeFeatureObject;
Vn.prototype.writeFeatures=Vn.prototype.writeFeatures;Vn.prototype.writeFeaturesObject=Vn.prototype.writeFeaturesObject;Vn.prototype.writeGeometry=Vn.prototype.writeGeometry;Vn.prototype.writeGeometryObject=Vn.prototype.writeGeometryObject;p("ol.format.GML",rh);rh.prototype.writeFeatures=rh.prototype.writeFeatures;rh.prototype.writeFeaturesNode=rh.prototype.writeFeaturesNode;p("ol.format.GML2",xw);p("ol.format.GML3",rh);rh.prototype.writeGeometryNode=rh.prototype.writeGeometryNode;rh.prototype.writeFeatures=
rh.prototype.writeFeatures;rh.prototype.writeFeaturesNode=rh.prototype.writeFeaturesNode;dh.prototype.readFeatures=dh.prototype.readFeatures;p("ol.format.GPX",yw);yw.prototype.readFeature=yw.prototype.readFeature;yw.prototype.readFeatures=yw.prototype.readFeatures;yw.prototype.readProjection=yw.prototype.readProjection;yw.prototype.writeFeatures=yw.prototype.writeFeatures;yw.prototype.writeFeaturesNode=yw.prototype.writeFeaturesNode;p("ol.format.IGC",gx);gx.prototype.readFeature=gx.prototype.readFeature;
gx.prototype.readFeatures=gx.prototype.readFeatures;gx.prototype.readProjection=gx.prototype.readProjection;p("ol.format.KML",ho);ho.prototype.readFeature=ho.prototype.readFeature;ho.prototype.readFeatures=ho.prototype.readFeatures;ho.prototype.readName=ho.prototype.readName;ho.prototype.readNetworkLinks=ho.prototype.readNetworkLinks;ho.prototype.readRegion=ho.prototype.readRegion;ho.prototype.readRegionFromNode=ho.prototype.readRegionFromNode;ho.prototype.readProjection=ho.prototype.readProjection;
ho.prototype.writeFeatures=ho.prototype.writeFeatures;ho.prototype.writeFeaturesNode=ho.prototype.writeFeaturesNode;p("ol.format.MVT",mx);mx.prototype.readFeatures=mx.prototype.readFeatures;mx.prototype.readProjection=mx.prototype.readProjection;mx.prototype.setLayers=mx.prototype.setLayers;p("ol.format.OSMXML",ox);ox.prototype.readFeatures=ox.prototype.readFeatures;ox.prototype.readProjection=ox.prototype.readProjection;p("ol.format.Polyline",ux);p("ol.format.Polyline.encodeDeltas",vx);p("ol.format.Polyline.decodeDeltas",
xx);p("ol.format.Polyline.encodeFloats",wx);p("ol.format.Polyline.decodeFloats",yx);ux.prototype.readFeature=ux.prototype.readFeature;ux.prototype.readFeatures=ux.prototype.readFeatures;ux.prototype.readGeometry=ux.prototype.readGeometry;ux.prototype.readProjection=ux.prototype.readProjection;ux.prototype.writeGeometry=ux.prototype.writeGeometry;p("ol.format.TopoJSON",zx);zx.prototype.readFeatures=zx.prototype.readFeatures;zx.prototype.readProjection=zx.prototype.readProjection;p("ol.format.WFS",
Ah);Ah.prototype.readFeatures=Ah.prototype.readFeatures;Ah.prototype.readTransactionResponse=Ah.prototype.readTransactionResponse;Ah.prototype.readFeatureCollectionMetadata=Ah.prototype.readFeatureCollectionMetadata;Ah.prototype.writeGetFeature=Ah.prototype.writeGetFeature;Ah.prototype.writeTransaction=Ah.prototype.writeTransaction;Ah.prototype.readProjection=Ah.prototype.readProjection;p("ol.format.WKT",Eq);Eq.prototype.readFeature=Eq.prototype.readFeature;Eq.prototype.readFeatures=Eq.prototype.readFeatures;
Eq.prototype.readGeometry=Eq.prototype.readGeometry;Eq.prototype.writeFeature=Eq.prototype.writeFeature;Eq.prototype.writeFeatures=Eq.prototype.writeFeatures;Eq.prototype.writeGeometry=Eq.prototype.writeGeometry;p("ol.format.WMSCapabilities",Zq);Zq.prototype.read=Zq.prototype.read;p("ol.format.WMSGetFeatureInfo",Fx);Fx.prototype.readFeatures=Fx.prototype.readFeatures;p("ol.format.WMTSCapabilities",Sr);Sr.prototype.read=Sr.prototype.read;p("ol.format.filter.And",rv);p("ol.format.filter.Bbox",sv);p("ol.format.filter.Comparison",
tv);p("ol.format.filter.ComparisonBinary",uv);p("ol.format.filter.EqualTo",vv);p("ol.format.filter.Filter",pv);p("ol.format.filter.GreaterThan",wv);p("ol.format.filter.GreaterThanOrEqualTo",xv);p("ol.format.filter.Intersects",zv);p("ol.format.filter.IsBetween",Av);p("ol.format.filter.IsLike",Bv);p("ol.format.filter.IsNull",Cv);p("ol.format.filter.LessThan",Dv);p("ol.format.filter.LessThanOrEqualTo",Ev);p("ol.format.filter.Not",Fv);p("ol.format.filter.NotEqualTo",Gv);p("ol.format.filter.Or",Hv);p("ol.format.filter.Spatial",
yv);p("ol.format.filter.Within",Iv);p("ol.events.condition.altKeyOnly",function(a){a=a.originalEvent;return a.altKey&&!(a.metaKey||a.ctrlKey)&&!a.shiftKey});p("ol.events.condition.altShiftKeysOnly",wj);p("ol.events.condition.always",Df);p("ol.events.condition.click",function(a){return a.type==Ph.CLICK});p("ol.events.condition.never",Ef);p("ol.events.condition.pointerMove",yj);p("ol.events.condition.singleClick",zj);p("ol.events.condition.doubleClick",function(a){return"dblclick"==a.type});p("ol.events.condition.noModifierKeys",
Aj);p("ol.events.condition.platformModifierKeyOnly",function(a){a=a.originalEvent;return!a.altKey&&(Rd?a.metaKey:a.ctrlKey)&&!a.shiftKey});p("ol.events.condition.shiftKeyOnly",Bj);p("ol.events.condition.targetNotEditable",Cj);p("ol.events.condition.mouseOnly",Dj);p("ol.events.condition.primaryAction",Ej);ze.prototype.type=ze.prototype.type;ze.prototype.target=ze.prototype.target;ze.prototype.preventDefault=ze.prototype.preventDefault;ze.prototype.stopPropagation=ze.prototype.stopPropagation;p("ol.control.Attribution",
gj);p("ol.control.Attribution.render",hj);gj.prototype.getCollapsible=gj.prototype.getCollapsible;gj.prototype.setCollapsible=gj.prototype.setCollapsible;gj.prototype.setCollapsed=gj.prototype.setCollapsed;gj.prototype.getCollapsed=gj.prototype.getCollapsed;p("ol.control.Control",Ke);Ke.prototype.getMap=Ke.prototype.getMap;Ke.prototype.setMap=Ke.prototype.setMap;Ke.prototype.setTarget=Ke.prototype.setTarget;p("ol.control.FullScreen",ew);ew.prototype.setMap=ew.prototype.setMap;p("ol.control.MousePosition",
Dh);p("ol.control.MousePosition.render",Eh);Dh.prototype.getCoordinateFormat=Dh.prototype.getCoordinateFormat;Dh.prototype.getProjection=Dh.prototype.getProjection;Dh.prototype.setMap=Dh.prototype.setMap;Dh.prototype.setCoordinateFormat=Dh.prototype.setCoordinateFormat;Dh.prototype.setProjection=Dh.prototype.setProjection;p("ol.control.OverviewMap",rn);rn.prototype.setMap=rn.prototype.setMap;p("ol.control.OverviewMap.render",sn);rn.prototype.getCollapsible=rn.prototype.getCollapsible;rn.prototype.setCollapsible=
rn.prototype.setCollapsible;rn.prototype.setCollapsed=rn.prototype.setCollapsed;rn.prototype.getCollapsed=rn.prototype.getCollapsed;rn.prototype.getOverviewMap=rn.prototype.getOverviewMap;p("ol.control.Rotate",lj);p("ol.control.Rotate.render",mj);p("ol.control.ScaleLine",An);An.prototype.getUnits=An.prototype.getUnits;p("ol.control.ScaleLine.render",Bn);An.prototype.setUnits=An.prototype.setUnits;p("ol.control.Zoom",nj);p("ol.control.ZoomSlider",vn);p("ol.control.ZoomSlider.render",xn);p("ol.control.ZoomToExtent",
jw);M.impl.style.Chart.prototype.updateFacadeOptions=M.impl.style.Chart.prototype.updateFacadeOptions;M.impl.style.Chart.prototype.applyToLayer=M.impl.style.Chart.prototype.applyToLayer;M.impl.style.Chart.prototype.applyToFeature=M.impl.style.Chart.prototype.applyToFeature;In.prototype.getChecksum=In.prototype.getChecksum;M.impl.style.OLChart.prototype.getChecksum=M.impl.style.OLChart.prototype.getChecksum;M.facade.Base.prototype.on=M.facade.Base.prototype.on;M.facade.Base.prototype.once=M.facade.Base.prototype.once;
M.facade.Base.prototype.un=M.facade.Base.prototype.un;M.facade.Base.prototype.fire=M.facade.Base.prototype.fire;M.Label.prototype.getImpl=M.Label.prototype.getImpl;M.Label.prototype.setImpl=M.Label.prototype.setImpl;M.Label.prototype.destroy=M.Label.prototype.destroy;M.Label.prototype.on=M.Label.prototype.on;M.Label.prototype.once=M.Label.prototype.once;M.Label.prototype.un=M.Label.prototype.un;M.Label.prototype.fire=M.Label.prototype.fire;M.Plugin.prototype.getImpl=M.Plugin.prototype.getImpl;M.Plugin.prototype.setImpl=
M.Plugin.prototype.setImpl;M.Plugin.prototype.destroy=M.Plugin.prototype.destroy;M.Plugin.prototype.on=M.Plugin.prototype.on;M.Plugin.prototype.once=M.Plugin.prototype.once;M.Plugin.prototype.un=M.Plugin.prototype.un;M.Plugin.prototype.fire=M.Plugin.prototype.fire;M.Popup.prototype.getImpl=M.Popup.prototype.getImpl;M.Popup.prototype.setImpl=M.Popup.prototype.setImpl;M.Popup.prototype.on=M.Popup.prototype.on;M.Popup.prototype.once=M.Popup.prototype.once;M.Popup.prototype.un=M.Popup.prototype.un;M.Popup.prototype.fire=
M.Popup.prototype.fire;Ge.prototype.changed=Ge.prototype.changed;Ge.prototype.dispatchEvent=Ge.prototype.dispatchEvent;Ge.prototype.getRevision=Ge.prototype.getRevision;Ge.prototype.on=Ge.prototype.on;Ge.prototype.once=Ge.prototype.once;Ge.prototype.un=Ge.prototype.un;Wi.prototype.get=Wi.prototype.get;Wi.prototype.getKeys=Wi.prototype.getKeys;Wi.prototype.getProperties=Wi.prototype.getProperties;Wi.prototype.set=Wi.prototype.set;Wi.prototype.setProperties=Wi.prototype.setProperties;Wi.prototype.unset=
Wi.prototype.unset;Wi.prototype.changed=Wi.prototype.changed;Wi.prototype.dispatchEvent=Wi.prototype.dispatchEvent;Wi.prototype.getRevision=Wi.prototype.getRevision;Wi.prototype.on=Wi.prototype.on;Wi.prototype.once=Wi.prototype.once;Wi.prototype.un=Wi.prototype.un;M.impl.View.prototype.animate=M.impl.View.prototype.animate;M.impl.View.prototype.constrainCenter=M.impl.View.prototype.constrainCenter;M.impl.View.prototype.constrainResolution=M.impl.View.prototype.constrainResolution;M.impl.View.prototype.constrainRotation=
M.impl.View.prototype.constrainRotation;M.impl.View.prototype.getCenter=M.impl.View.prototype.getCenter;M.impl.View.prototype.calculateExtent=M.impl.View.prototype.calculateExtent;M.impl.View.prototype.getMaxResolution=M.impl.View.prototype.getMaxResolution;M.impl.View.prototype.getMinResolution=M.impl.View.prototype.getMinResolution;M.impl.View.prototype.getProjection=M.impl.View.prototype.getProjection;M.impl.View.prototype.getResolution=M.impl.View.prototype.getResolution;M.impl.View.prototype.getRotation=
M.impl.View.prototype.getRotation;M.impl.View.prototype.getZoom=M.impl.View.prototype.getZoom;M.impl.View.prototype.fit=M.impl.View.prototype.fit;M.impl.View.prototype.centerOn=M.impl.View.prototype.centerOn;M.impl.View.prototype.rotate=M.impl.View.prototype.rotate;M.impl.View.prototype.setCenter=M.impl.View.prototype.setCenter;M.impl.View.prototype.setResolution=M.impl.View.prototype.setResolution;M.impl.View.prototype.setRotation=M.impl.View.prototype.setRotation;M.impl.View.prototype.setZoom=M.impl.View.prototype.setZoom;
M.impl.View.prototype.get=M.impl.View.prototype.get;M.impl.View.prototype.getKeys=M.impl.View.prototype.getKeys;M.impl.View.prototype.getProperties=M.impl.View.prototype.getProperties;M.impl.View.prototype.set=M.impl.View.prototype.set;M.impl.View.prototype.setProperties=M.impl.View.prototype.setProperties;M.impl.View.prototype.unset=M.impl.View.prototype.unset;M.impl.View.prototype.changed=M.impl.View.prototype.changed;M.impl.View.prototype.dispatchEvent=M.impl.View.prototype.dispatchEvent;M.impl.View.prototype.getRevision=
M.impl.View.prototype.getRevision;M.impl.View.prototype.on=M.impl.View.prototype.on;M.impl.View.prototype.once=M.impl.View.prototype.once;M.impl.View.prototype.un=M.impl.View.prototype.un;M.remote.Response.prototype.on=M.remote.Response.prototype.on;M.remote.Response.prototype.once=M.remote.Response.prototype.once;M.remote.Response.prototype.un=M.remote.Response.prototype.un;M.remote.Response.prototype.fire=M.remote.Response.prototype.fire;Jh.prototype.get=Jh.prototype.get;Jh.prototype.getKeys=Jh.prototype.getKeys;
Jh.prototype.getProperties=Jh.prototype.getProperties;Jh.prototype.set=Jh.prototype.set;Jh.prototype.setProperties=Jh.prototype.setProperties;Jh.prototype.unset=Jh.prototype.unset;Jh.prototype.changed=Jh.prototype.changed;Jh.prototype.dispatchEvent=Jh.prototype.dispatchEvent;Jh.prototype.getRevision=Jh.prototype.getRevision;Jh.prototype.on=Jh.prototype.on;Jh.prototype.once=Jh.prototype.once;Jh.prototype.un=Jh.prototype.un;Mh.prototype.type=Mh.prototype.type;Mh.prototype.target=Mh.prototype.target;
kw.prototype.get=kw.prototype.get;kw.prototype.getKeys=kw.prototype.getKeys;kw.prototype.getProperties=kw.prototype.getProperties;kw.prototype.set=kw.prototype.set;kw.prototype.setProperties=kw.prototype.setProperties;kw.prototype.unset=kw.prototype.unset;kw.prototype.changed=kw.prototype.changed;kw.prototype.dispatchEvent=kw.prototype.dispatchEvent;kw.prototype.getRevision=kw.prototype.getRevision;kw.prototype.on=kw.prototype.on;kw.prototype.once=kw.prototype.once;kw.prototype.un=kw.prototype.un;
M.ui.Panel.prototype.on=M.ui.Panel.prototype.on;M.ui.Panel.prototype.once=M.ui.Panel.prototype.once;M.ui.Panel.prototype.un=M.ui.Panel.prototype.un;M.ui.Panel.prototype.fire=M.ui.Panel.prototype.fire;E.prototype.get=E.prototype.get;E.prototype.getKeys=E.prototype.getKeys;E.prototype.getProperties=E.prototype.getProperties;E.prototype.set=E.prototype.set;E.prototype.setProperties=E.prototype.setProperties;E.prototype.unset=E.prototype.unset;E.prototype.changed=E.prototype.changed;E.prototype.dispatchEvent=
E.prototype.dispatchEvent;E.prototype.getRevision=E.prototype.getRevision;E.prototype.on=E.prototype.on;E.prototype.once=E.prototype.once;E.prototype.un=E.prototype.un;$n.prototype.getOpacity=$n.prototype.getOpacity;$n.prototype.getRotateWithView=$n.prototype.getRotateWithView;$n.prototype.getRotation=$n.prototype.getRotation;$n.prototype.getScale=$n.prototype.getScale;$n.prototype.getSnapToPixel=$n.prototype.getSnapToPixel;$n.prototype.setOpacity=$n.prototype.setOpacity;$n.prototype.setRotation=
$n.prototype.setRotation;$n.prototype.setScale=$n.prototype.setScale;fo.prototype.clone=fo.prototype.clone;fo.prototype.getColor=fo.prototype.getColor;fo.prototype.getSrc=fo.prototype.getSrc;fo.prototype.getOpacity=fo.prototype.getOpacity;fo.prototype.getRotateWithView=fo.prototype.getRotateWithView;fo.prototype.getRotation=fo.prototype.getRotation;fo.prototype.getScale=fo.prototype.getScale;fo.prototype.getSnapToPixel=fo.prototype.getSnapToPixel;fo.prototype.setOpacity=fo.prototype.setOpacity;fo.prototype.setRotation=
fo.prototype.setRotation;fo.prototype.setScale=fo.prototype.setScale;Ch.prototype.get=Ch.prototype.get;Ch.prototype.getKeys=Ch.prototype.getKeys;Ch.prototype.getProperties=Ch.prototype.getProperties;Ch.prototype.set=Ch.prototype.set;Ch.prototype.setProperties=Ch.prototype.setProperties;Ch.prototype.unset=Ch.prototype.unset;Ch.prototype.changed=Ch.prototype.changed;Ch.prototype.dispatchEvent=Ch.prototype.dispatchEvent;Ch.prototype.getRevision=Ch.prototype.getRevision;Ch.prototype.on=Ch.prototype.on;
Ch.prototype.once=Ch.prototype.once;Ch.prototype.un=Ch.prototype.un;M.style.Cluster.prototype.apply=M.style.Cluster.prototype.apply;M.style.Cluster.prototype.unapply=M.style.Cluster.prototype.unapply;M.style.Cluster.prototype.set=M.style.Cluster.prototype.set;M.style.Cluster.prototype.updateCanvas=M.style.Cluster.prototype.updateCanvas;M.style.Cluster.prototype.clone=M.style.Cluster.prototype.clone;M.impl.style.TextPath.prototype.clone=M.impl.style.TextPath.prototype.clone;M.impl.style.TextPath.prototype.getFont=
M.impl.style.TextPath.prototype.getFont;M.impl.style.TextPath.prototype.getOffsetX=M.impl.style.TextPath.prototype.getOffsetX;M.impl.style.TextPath.prototype.getOffsetY=M.impl.style.TextPath.prototype.getOffsetY;M.impl.style.TextPath.prototype.getFill=M.impl.style.TextPath.prototype.getFill;M.impl.style.TextPath.prototype.getRotateWithView=M.impl.style.TextPath.prototype.getRotateWithView;M.impl.style.TextPath.prototype.getRotation=M.impl.style.TextPath.prototype.getRotation;M.impl.style.TextPath.prototype.getScale=
M.impl.style.TextPath.prototype.getScale;M.impl.style.TextPath.prototype.getStroke=M.impl.style.TextPath.prototype.getStroke;M.impl.style.TextPath.prototype.getText=M.impl.style.TextPath.prototype.getText;M.impl.style.TextPath.prototype.getTextAlign=M.impl.style.TextPath.prototype.getTextAlign;M.impl.style.TextPath.prototype.getTextBaseline=M.impl.style.TextPath.prototype.getTextBaseline;M.impl.style.TextPath.prototype.setFont=M.impl.style.TextPath.prototype.setFont;M.impl.style.TextPath.prototype.setOffsetX=
M.impl.style.TextPath.prototype.setOffsetX;M.impl.style.TextPath.prototype.setOffsetY=M.impl.style.TextPath.prototype.setOffsetY;M.impl.style.TextPath.prototype.setFill=M.impl.style.TextPath.prototype.setFill;M.impl.style.TextPath.prototype.setRotation=M.impl.style.TextPath.prototype.setRotation;M.impl.style.TextPath.prototype.setScale=M.impl.style.TextPath.prototype.setScale;M.impl.style.TextPath.prototype.setStroke=M.impl.style.TextPath.prototype.setStroke;M.impl.style.TextPath.prototype.setText=
M.impl.style.TextPath.prototype.setText;M.impl.style.TextPath.prototype.setTextAlign=M.impl.style.TextPath.prototype.setTextAlign;M.impl.style.TextPath.prototype.setTextBaseline=M.impl.style.TextPath.prototype.setTextBaseline;Rt.prototype.getTileCoord=Rt.prototype.getTileCoord;Rt.prototype.load=Rt.prototype.load;M.style.Category.prototype.apply=M.style.Category.prototype.apply;M.style.Category.prototype.unapply=M.style.Category.prototype.unapply;M.style.Category.prototype.set=M.style.Category.prototype.set;
M.style.Category.prototype.refresh=M.style.Category.prototype.refresh;M.style.Category.prototype.getOptions=M.style.Category.prototype.getOptions;M.style.Category.prototype.clone=M.style.Category.prototype.clone;M.style.Choropleth.prototype.apply=M.style.Choropleth.prototype.apply;M.style.Choropleth.prototype.unapply=M.style.Choropleth.prototype.unapply;M.style.Choropleth.prototype.set=M.style.Choropleth.prototype.set;M.style.Choropleth.prototype.refresh=M.style.Choropleth.prototype.refresh;M.style.Choropleth.prototype.getOptions=
M.style.Choropleth.prototype.getOptions;M.style.Choropleth.prototype.clone=M.style.Choropleth.prototype.clone;U.prototype.get=U.prototype.get;U.prototype.getKeys=U.prototype.getKeys;U.prototype.getProperties=U.prototype.getProperties;U.prototype.set=U.prototype.set;U.prototype.setProperties=U.prototype.setProperties;U.prototype.unset=U.prototype.unset;U.prototype.changed=U.prototype.changed;U.prototype.dispatchEvent=U.prototype.dispatchEvent;U.prototype.getRevision=U.prototype.getRevision;U.prototype.on=
U.prototype.on;U.prototype.once=U.prototype.once;U.prototype.un=U.prototype.un;Nh.prototype.type=Nh.prototype.type;Nh.prototype.target=Nh.prototype.target;Oh.prototype.map=Oh.prototype.map;Oh.prototype.frameState=Oh.prototype.frameState;Oh.prototype.type=Oh.prototype.type;Oh.prototype.target=Oh.prototype.target;Qh.prototype.originalEvent=Qh.prototype.originalEvent;Qh.prototype.pixel=Qh.prototype.pixel;Qh.prototype.coordinate=Qh.prototype.coordinate;Qh.prototype.dragging=Qh.prototype.dragging;Qh.prototype.map=
Qh.prototype.map;Qh.prototype.frameState=Qh.prototype.frameState;Qh.prototype.type=Qh.prototype.type;Qh.prototype.target=Qh.prototype.target;M.style.Heatmap.prototype.apply=M.style.Heatmap.prototype.apply;M.style.Heatmap.prototype.set=M.style.Heatmap.prototype.set;M.style.Heatmap.prototype.refresh=M.style.Heatmap.prototype.refresh;M.style.Heatmap.prototype.getOptions=M.style.Heatmap.prototype.getOptions;M.style.Heatmap.prototype.clone=M.style.Heatmap.prototype.clone;st.prototype.get=st.prototype.get;
st.prototype.getKeys=st.prototype.getKeys;st.prototype.getProperties=st.prototype.getProperties;st.prototype.set=st.prototype.set;st.prototype.setProperties=st.prototype.setProperties;st.prototype.unset=st.prototype.unset;st.prototype.changed=st.prototype.changed;st.prototype.dispatchEvent=st.prototype.dispatchEvent;st.prototype.getRevision=st.prototype.getRevision;st.prototype.on=st.prototype.on;st.prototype.once=st.prototype.once;st.prototype.un=st.prototype.un;Lu.prototype.getAttributions=Lu.prototype.getAttributions;
Lu.prototype.getLogo=Lu.prototype.getLogo;Lu.prototype.getProjection=Lu.prototype.getProjection;Lu.prototype.getState=Lu.prototype.getState;Lu.prototype.refresh=Lu.prototype.refresh;Lu.prototype.setAttributions=Lu.prototype.setAttributions;Lu.prototype.get=Lu.prototype.get;Lu.prototype.getKeys=Lu.prototype.getKeys;Lu.prototype.getProperties=Lu.prototype.getProperties;Lu.prototype.set=Lu.prototype.set;Lu.prototype.setProperties=Lu.prototype.setProperties;Lu.prototype.unset=Lu.prototype.unset;Lu.prototype.changed=
Lu.prototype.changed;Lu.prototype.dispatchEvent=Lu.prototype.dispatchEvent;Lu.prototype.getRevision=Lu.prototype.getRevision;Lu.prototype.on=Lu.prototype.on;Lu.prototype.once=Lu.prototype.once;Lu.prototype.un=Lu.prototype.un;Uu.prototype.getAttributions=Uu.prototype.getAttributions;Uu.prototype.getLogo=Uu.prototype.getLogo;Uu.prototype.getProjection=Uu.prototype.getProjection;Uu.prototype.getState=Uu.prototype.getState;Uu.prototype.refresh=Uu.prototype.refresh;Uu.prototype.setAttributions=Uu.prototype.setAttributions;
Uu.prototype.get=Uu.prototype.get;Uu.prototype.getKeys=Uu.prototype.getKeys;Uu.prototype.getProperties=Uu.prototype.getProperties;Uu.prototype.set=Uu.prototype.set;Uu.prototype.setProperties=Uu.prototype.setProperties;Uu.prototype.unset=Uu.prototype.unset;Uu.prototype.dispatchEvent=Uu.prototype.dispatchEvent;Uu.prototype.getRevision=Uu.prototype.getRevision;Uu.prototype.on=Uu.prototype.on;Uu.prototype.once=Uu.prototype.once;Uu.prototype.un=Uu.prototype.un;eu.prototype.getAttributions=eu.prototype.getAttributions;
eu.prototype.getLogo=eu.prototype.getLogo;eu.prototype.getProjection=eu.prototype.getProjection;eu.prototype.getState=eu.prototype.getState;eu.prototype.refresh=eu.prototype.refresh;eu.prototype.setAttributions=eu.prototype.setAttributions;eu.prototype.get=eu.prototype.get;eu.prototype.getKeys=eu.prototype.getKeys;eu.prototype.getProperties=eu.prototype.getProperties;eu.prototype.set=eu.prototype.set;eu.prototype.setProperties=eu.prototype.setProperties;eu.prototype.unset=eu.prototype.unset;eu.prototype.changed=
eu.prototype.changed;eu.prototype.dispatchEvent=eu.prototype.dispatchEvent;eu.prototype.getRevision=eu.prototype.getRevision;eu.prototype.on=eu.prototype.on;eu.prototype.once=eu.prototype.once;eu.prototype.un=eu.prototype.un;iu.prototype.getTileGrid=iu.prototype.getTileGrid;iu.prototype.refresh=iu.prototype.refresh;iu.prototype.getAttributions=iu.prototype.getAttributions;iu.prototype.getLogo=iu.prototype.getLogo;iu.prototype.getProjection=iu.prototype.getProjection;iu.prototype.getState=iu.prototype.getState;
iu.prototype.setAttributions=iu.prototype.setAttributions;iu.prototype.get=iu.prototype.get;iu.prototype.getKeys=iu.prototype.getKeys;iu.prototype.getProperties=iu.prototype.getProperties;iu.prototype.set=iu.prototype.set;iu.prototype.setProperties=iu.prototype.setProperties;iu.prototype.unset=iu.prototype.unset;iu.prototype.changed=iu.prototype.changed;iu.prototype.dispatchEvent=iu.prototype.dispatchEvent;iu.prototype.getRevision=iu.prototype.getRevision;iu.prototype.on=iu.prototype.on;iu.prototype.once=
iu.prototype.once;iu.prototype.un=iu.prototype.un;ju.prototype.getTileLoadFunction=ju.prototype.getTileLoadFunction;ju.prototype.getTileUrlFunction=ju.prototype.getTileUrlFunction;ju.prototype.getUrls=ju.prototype.getUrls;ju.prototype.setTileLoadFunction=ju.prototype.setTileLoadFunction;ju.prototype.setTileUrlFunction=ju.prototype.setTileUrlFunction;ju.prototype.setUrl=ju.prototype.setUrl;ju.prototype.setUrls=ju.prototype.setUrls;ju.prototype.getTileGrid=ju.prototype.getTileGrid;ju.prototype.refresh=
ju.prototype.refresh;ju.prototype.getAttributions=ju.prototype.getAttributions;ju.prototype.getLogo=ju.prototype.getLogo;ju.prototype.getProjection=ju.prototype.getProjection;ju.prototype.getState=ju.prototype.getState;ju.prototype.setAttributions=ju.prototype.setAttributions;ju.prototype.get=ju.prototype.get;ju.prototype.getKeys=ju.prototype.getKeys;ju.prototype.getProperties=ju.prototype.getProperties;ju.prototype.set=ju.prototype.set;ju.prototype.setProperties=ju.prototype.setProperties;ju.prototype.unset=
ju.prototype.unset;ju.prototype.changed=ju.prototype.changed;ju.prototype.dispatchEvent=ju.prototype.dispatchEvent;ju.prototype.getRevision=ju.prototype.getRevision;ju.prototype.on=ju.prototype.on;ju.prototype.once=ju.prototype.once;ju.prototype.un=ju.prototype.un;nu.prototype.setRenderReprojectionEdges=nu.prototype.setRenderReprojectionEdges;nu.prototype.setTileGridForProjection=nu.prototype.setTileGridForProjection;nu.prototype.getTileLoadFunction=nu.prototype.getTileLoadFunction;nu.prototype.getTileUrlFunction=
nu.prototype.getTileUrlFunction;nu.prototype.getUrls=nu.prototype.getUrls;nu.prototype.setTileLoadFunction=nu.prototype.setTileLoadFunction;nu.prototype.setTileUrlFunction=nu.prototype.setTileUrlFunction;nu.prototype.setUrl=nu.prototype.setUrl;nu.prototype.setUrls=nu.prototype.setUrls;nu.prototype.getTileGrid=nu.prototype.getTileGrid;nu.prototype.refresh=nu.prototype.refresh;nu.prototype.getAttributions=nu.prototype.getAttributions;nu.prototype.getLogo=nu.prototype.getLogo;nu.prototype.getProjection=
nu.prototype.getProjection;nu.prototype.getState=nu.prototype.getState;nu.prototype.setAttributions=nu.prototype.setAttributions;nu.prototype.get=nu.prototype.get;nu.prototype.getKeys=nu.prototype.getKeys;nu.prototype.getProperties=nu.prototype.getProperties;nu.prototype.set=nu.prototype.set;nu.prototype.setProperties=nu.prototype.setProperties;nu.prototype.unset=nu.prototype.unset;nu.prototype.changed=nu.prototype.changed;nu.prototype.dispatchEvent=nu.prototype.dispatchEvent;nu.prototype.getRevision=
nu.prototype.getRevision;nu.prototype.on=nu.prototype.on;nu.prototype.once=nu.prototype.once;nu.prototype.un=nu.prototype.un;qu.prototype.setRenderReprojectionEdges=qu.prototype.setRenderReprojectionEdges;qu.prototype.setTileGridForProjection=qu.prototype.setTileGridForProjection;qu.prototype.getTileLoadFunction=qu.prototype.getTileLoadFunction;qu.prototype.getTileUrlFunction=qu.prototype.getTileUrlFunction;qu.prototype.getUrls=qu.prototype.getUrls;qu.prototype.setTileLoadFunction=qu.prototype.setTileLoadFunction;
qu.prototype.setTileUrlFunction=qu.prototype.setTileUrlFunction;qu.prototype.setUrls=qu.prototype.setUrls;qu.prototype.getTileGrid=qu.prototype.getTileGrid;qu.prototype.refresh=qu.prototype.refresh;qu.prototype.getAttributions=qu.prototype.getAttributions;qu.prototype.getLogo=qu.prototype.getLogo;qu.prototype.getProjection=qu.prototype.getProjection;qu.prototype.getState=qu.prototype.getState;qu.prototype.setAttributions=qu.prototype.setAttributions;qu.prototype.get=qu.prototype.get;qu.prototype.getKeys=
qu.prototype.getKeys;qu.prototype.getProperties=qu.prototype.getProperties;qu.prototype.set=qu.prototype.set;qu.prototype.setProperties=qu.prototype.setProperties;qu.prototype.unset=qu.prototype.unset;qu.prototype.changed=qu.prototype.changed;qu.prototype.dispatchEvent=qu.prototype.dispatchEvent;qu.prototype.getRevision=qu.prototype.getRevision;qu.prototype.on=qu.prototype.on;qu.prototype.once=qu.prototype.once;qu.prototype.un=qu.prototype.un;Gu.prototype.setRenderReprojectionEdges=Gu.prototype.setRenderReprojectionEdges;
Gu.prototype.setTileGridForProjection=Gu.prototype.setTileGridForProjection;Gu.prototype.getTileLoadFunction=Gu.prototype.getTileLoadFunction;Gu.prototype.getTileUrlFunction=Gu.prototype.getTileUrlFunction;Gu.prototype.getUrls=Gu.prototype.getUrls;Gu.prototype.setTileLoadFunction=Gu.prototype.setTileLoadFunction;Gu.prototype.setTileUrlFunction=Gu.prototype.setTileUrlFunction;Gu.prototype.setUrl=Gu.prototype.setUrl;Gu.prototype.setUrls=Gu.prototype.setUrls;Gu.prototype.getTileGrid=Gu.prototype.getTileGrid;
Gu.prototype.refresh=Gu.prototype.refresh;Gu.prototype.getAttributions=Gu.prototype.getAttributions;Gu.prototype.getLogo=Gu.prototype.getLogo;Gu.prototype.getProjection=Gu.prototype.getProjection;Gu.prototype.getState=Gu.prototype.getState;Gu.prototype.setAttributions=Gu.prototype.setAttributions;Gu.prototype.get=Gu.prototype.get;Gu.prototype.getKeys=Gu.prototype.getKeys;Gu.prototype.getProperties=Gu.prototype.getProperties;Gu.prototype.set=Gu.prototype.set;Gu.prototype.setProperties=Gu.prototype.setProperties;
Gu.prototype.unset=Gu.prototype.unset;Gu.prototype.dispatchEvent=Gu.prototype.dispatchEvent;Gu.prototype.getRevision=Gu.prototype.getRevision;Gu.prototype.on=Gu.prototype.on;Gu.prototype.once=Gu.prototype.once;Gu.prototype.un=Gu.prototype.un;M.style.Proportional.prototype.apply=M.style.Proportional.prototype.apply;M.style.Proportional.prototype.unapply=M.style.Proportional.prototype.unapply;M.style.Proportional.prototype.set=M.style.Proportional.prototype.set;M.style.Proportional.prototype.refresh=
M.style.Proportional.prototype.refresh;M.style.Proportional.prototype.getOptions=M.style.Proportional.prototype.getOptions;M.style.Proportional.prototype.clone=M.style.Proportional.prototype.clone;Je.prototype.type=Je.prototype.type;Je.prototype.target=Je.prototype.target;jn.prototype.get=jn.prototype.get;jn.prototype.getKeys=jn.prototype.getKeys;jn.prototype.getProperties=jn.prototype.getProperties;jn.prototype.set=jn.prototype.set;jn.prototype.setProperties=jn.prototype.setProperties;jn.prototype.unset=
jn.prototype.unset;jn.prototype.changed=jn.prototype.changed;jn.prototype.dispatchEvent=jn.prototype.dispatchEvent;jn.prototype.getRevision=jn.prototype.getRevision;jn.prototype.on=jn.prototype.on;jn.prototype.once=jn.prototype.once;jn.prototype.un=jn.prototype.un;Gz.prototype.getTileCoord=Gz.prototype.getTileCoord;Gz.prototype.load=Gz.prototype.load;M.impl.Popup.prototype.getElement=M.impl.Popup.prototype.getElement;M.impl.Popup.prototype.getId=M.impl.Popup.prototype.getId;M.impl.Popup.prototype.getMap=
M.impl.Popup.prototype.getMap;M.impl.Popup.prototype.getOffset=M.impl.Popup.prototype.getOffset;M.impl.Popup.prototype.getPosition=M.impl.Popup.prototype.getPosition;M.impl.Popup.prototype.getPositioning=M.impl.Popup.prototype.getPositioning;M.impl.Popup.prototype.setElement=M.impl.Popup.prototype.setElement;M.impl.Popup.prototype.setMap=M.impl.Popup.prototype.setMap;M.impl.Popup.prototype.setOffset=M.impl.Popup.prototype.setOffset;M.impl.Popup.prototype.setPosition=M.impl.Popup.prototype.setPosition;
M.impl.Popup.prototype.setPositioning=M.impl.Popup.prototype.setPositioning;M.impl.Popup.prototype.get=M.impl.Popup.prototype.get;M.impl.Popup.prototype.getKeys=M.impl.Popup.prototype.getKeys;M.impl.Popup.prototype.getProperties=M.impl.Popup.prototype.getProperties;M.impl.Popup.prototype.set=M.impl.Popup.prototype.set;M.impl.Popup.prototype.setProperties=M.impl.Popup.prototype.setProperties;M.impl.Popup.prototype.unset=M.impl.Popup.prototype.unset;M.impl.Popup.prototype.changed=M.impl.Popup.prototype.changed;
M.impl.Popup.prototype.dispatchEvent=M.impl.Popup.prototype.dispatchEvent;M.impl.Popup.prototype.getRevision=M.impl.Popup.prototype.getRevision;M.impl.Popup.prototype.on=M.impl.Popup.prototype.on;M.impl.Popup.prototype.once=M.impl.Popup.prototype.once;M.impl.Popup.prototype.un=M.impl.Popup.prototype.un;ie.prototype.getOpacity=ie.prototype.getOpacity;ie.prototype.getRotateWithView=ie.prototype.getRotateWithView;ie.prototype.getRotation=ie.prototype.getRotation;ie.prototype.getScale=ie.prototype.getScale;
ie.prototype.getSnapToPixel=ie.prototype.getSnapToPixel;ie.prototype.setOpacity=ie.prototype.setOpacity;ie.prototype.setRotation=ie.prototype.setRotation;ie.prototype.setScale=ie.prototype.setScale;je.prototype.clone=je.prototype.clone;je.prototype.getAngle=je.prototype.getAngle;je.prototype.getFill=je.prototype.getFill;je.prototype.getPoints=je.prototype.getPoints;je.prototype.getRadius=je.prototype.getRadius;je.prototype.getRadius2=je.prototype.getRadius2;je.prototype.getStroke=je.prototype.getStroke;
je.prototype.getOpacity=je.prototype.getOpacity;je.prototype.getRotateWithView=je.prototype.getRotateWithView;je.prototype.getRotation=je.prototype.getRotation;je.prototype.getScale=je.prototype.getScale;je.prototype.getSnapToPixel=je.prototype.getSnapToPixel;je.prototype.setOpacity=je.prototype.setOpacity;je.prototype.setRotation=je.prototype.setRotation;je.prototype.setScale=je.prototype.setScale;M.impl.style.PointCircle.prototype.setRadius=M.impl.style.PointCircle.prototype.setRadius;M.impl.style.PointCircle.prototype.getAngle=
M.impl.style.PointCircle.prototype.getAngle;M.impl.style.PointCircle.prototype.getFill=M.impl.style.PointCircle.prototype.getFill;M.impl.style.PointCircle.prototype.getPoints=M.impl.style.PointCircle.prototype.getPoints;M.impl.style.PointCircle.prototype.getRadius=M.impl.style.PointCircle.prototype.getRadius;M.impl.style.PointCircle.prototype.getRadius2=M.impl.style.PointCircle.prototype.getRadius2;M.impl.style.PointCircle.prototype.getStroke=M.impl.style.PointCircle.prototype.getStroke;M.impl.style.PointCircle.prototype.getOpacity=
M.impl.style.PointCircle.prototype.getOpacity;M.impl.style.PointCircle.prototype.getRotateWithView=M.impl.style.PointCircle.prototype.getRotateWithView;M.impl.style.PointCircle.prototype.getRotation=M.impl.style.PointCircle.prototype.getRotation;M.impl.style.PointCircle.prototype.getScale=M.impl.style.PointCircle.prototype.getScale;M.impl.style.PointCircle.prototype.getSnapToPixel=M.impl.style.PointCircle.prototype.getSnapToPixel;M.impl.style.PointCircle.prototype.setOpacity=M.impl.style.PointCircle.prototype.setOpacity;
M.impl.style.PointCircle.prototype.setRotation=M.impl.style.PointCircle.prototype.setRotation;M.impl.style.PointCircle.prototype.setScale=M.impl.style.PointCircle.prototype.setScale;M.Map.prototype.getImpl=M.Map.prototype.getImpl;M.Map.prototype.setImpl=M.Map.prototype.setImpl;M.Map.prototype.once=M.Map.prototype.once;M.Map.prototype.un=M.Map.prototype.un;M.Map.prototype.fire=M.Map.prototype.fire;In.prototype.getAngle=In.prototype.getAngle;In.prototype.getPoints=In.prototype.getPoints;In.prototype.getRadius=
In.prototype.getRadius;In.prototype.getRadius2=In.prototype.getRadius2;In.prototype.getOpacity=In.prototype.getOpacity;In.prototype.getRotateWithView=In.prototype.getRotateWithView;In.prototype.getRotation=In.prototype.getRotation;In.prototype.getScale=In.prototype.getScale;In.prototype.getSnapToPixel=In.prototype.getSnapToPixel;In.prototype.setOpacity=In.prototype.setOpacity;In.prototype.setRotation=In.prototype.setRotation;In.prototype.setScale=In.prototype.setScale;M.impl.style.PointFontSymbol.prototype.getFill=
M.impl.style.PointFontSymbol.prototype.getFill;M.impl.style.PointFontSymbol.prototype.getStroke=M.impl.style.PointFontSymbol.prototype.getStroke;M.impl.style.PointFontSymbol.prototype.getGlyph=M.impl.style.PointFontSymbol.prototype.getGlyph;M.impl.style.PointFontSymbol.prototype.getGlyphName=M.impl.style.PointFontSymbol.prototype.getGlyphName;M.impl.style.PointFontSymbol.prototype.getFontInfo=M.impl.style.PointFontSymbol.prototype.getFontInfo;M.impl.style.PointFontSymbol.prototype.getAngle=M.impl.style.PointFontSymbol.prototype.getAngle;
M.impl.style.PointFontSymbol.prototype.getPoints=M.impl.style.PointFontSymbol.prototype.getPoints;M.impl.style.PointFontSymbol.prototype.getRadius=M.impl.style.PointFontSymbol.prototype.getRadius;M.impl.style.PointFontSymbol.prototype.getRadius2=M.impl.style.PointFontSymbol.prototype.getRadius2;M.impl.style.PointFontSymbol.prototype.getOpacity=M.impl.style.PointFontSymbol.prototype.getOpacity;M.impl.style.PointFontSymbol.prototype.getRotateWithView=M.impl.style.PointFontSymbol.prototype.getRotateWithView;
M.impl.style.PointFontSymbol.prototype.getRotation=M.impl.style.PointFontSymbol.prototype.getRotation;M.impl.style.PointFontSymbol.prototype.getScale=M.impl.style.PointFontSymbol.prototype.getScale;M.impl.style.PointFontSymbol.prototype.getSnapToPixel=M.impl.style.PointFontSymbol.prototype.getSnapToPixel;M.impl.style.PointFontSymbol.prototype.setOpacity=M.impl.style.PointFontSymbol.prototype.setOpacity;M.impl.style.PointFontSymbol.prototype.setRotation=M.impl.style.PointFontSymbol.prototype.setRotation;
M.impl.style.PointFontSymbol.prototype.setScale=M.impl.style.PointFontSymbol.prototype.setScale;ev.prototype.forEachTileCoord=ev.prototype.forEachTileCoord;ev.prototype.getMaxZoom=ev.prototype.getMaxZoom;ev.prototype.getMinZoom=ev.prototype.getMinZoom;ev.prototype.getOrigin=ev.prototype.getOrigin;ev.prototype.getResolution=ev.prototype.getResolution;ev.prototype.getResolutions=ev.prototype.getResolutions;ev.prototype.getTileCoordExtent=ev.prototype.getTileCoordExtent;ev.prototype.getTileCoordForCoordAndResolution=
ev.prototype.getTileCoordForCoordAndResolution;ev.prototype.getTileCoordForCoordAndZ=ev.prototype.getTileCoordForCoordAndZ;ev.prototype.getTileSize=ev.prototype.getTileSize;ev.prototype.getZForResolution=ev.prototype.getZForResolution;M.impl.style.PointIcon.prototype.getColor=M.impl.style.PointIcon.prototype.getColor;M.impl.style.PointIcon.prototype.getSrc=M.impl.style.PointIcon.prototype.getSrc;M.impl.style.PointIcon.prototype.getOpacity=M.impl.style.PointIcon.prototype.getOpacity;M.impl.style.PointIcon.prototype.getRotateWithView=
M.impl.style.PointIcon.prototype.getRotateWithView;M.impl.style.PointIcon.prototype.getRotation=M.impl.style.PointIcon.prototype.getRotation;M.impl.style.PointIcon.prototype.getScale=M.impl.style.PointIcon.prototype.getScale;M.impl.style.PointIcon.prototype.getSnapToPixel=M.impl.style.PointIcon.prototype.getSnapToPixel;M.impl.style.PointIcon.prototype.setOpacity=M.impl.style.PointIcon.prototype.setOpacity;M.impl.style.PointIcon.prototype.setRotation=M.impl.style.PointIcon.prototype.setRotation;M.impl.style.PointIcon.prototype.setScale=
M.impl.style.PointIcon.prototype.setScale;M.Layer.prototype.getImpl=M.Layer.prototype.getImpl;M.Layer.prototype.setImpl=M.Layer.prototype.setImpl;M.Layer.prototype.destroy=M.Layer.prototype.destroy;M.Layer.prototype.on=M.Layer.prototype.on;M.Layer.prototype.once=M.Layer.prototype.once;M.Layer.prototype.un=M.Layer.prototype.un;M.Layer.prototype.fire=M.Layer.prototype.fire;M.layer.Vector.prototype.isVisible=M.layer.Vector.prototype.isVisible;M.layer.Vector.prototype.isQueryable=M.layer.Vector.prototype.isQueryable;
M.layer.Vector.prototype.setVisible=M.layer.Vector.prototype.setVisible;M.layer.Vector.prototype.inRange=M.layer.Vector.prototype.inRange;M.layer.Vector.prototype.setLegendURL=M.layer.Vector.prototype.setLegendURL;M.layer.Vector.prototype.getZIndex=M.layer.Vector.prototype.getZIndex;M.layer.Vector.prototype.setZIndex=M.layer.Vector.prototype.setZIndex;M.layer.Vector.prototype.getOpacity=M.layer.Vector.prototype.getOpacity;M.layer.Vector.prototype.setOpacity=M.layer.Vector.prototype.setOpacity;M.layer.Vector.prototype.getImpl=
M.layer.Vector.prototype.getImpl;M.layer.Vector.prototype.setImpl=M.layer.Vector.prototype.setImpl;M.layer.Vector.prototype.destroy=M.layer.Vector.prototype.destroy;M.layer.Vector.prototype.on=M.layer.Vector.prototype.on;M.layer.Vector.prototype.once=M.layer.Vector.prototype.once;M.layer.Vector.prototype.un=M.layer.Vector.prototype.un;M.layer.Vector.prototype.fire=M.layer.Vector.prototype.fire;M.layer.GeoJSON.prototype.addFeatures=M.layer.GeoJSON.prototype.addFeatures;M.layer.GeoJSON.prototype.getFeatures=
M.layer.GeoJSON.prototype.getFeatures;M.layer.GeoJSON.prototype.getFeatureById=M.layer.GeoJSON.prototype.getFeatureById;M.layer.GeoJSON.prototype.removeFeatures=M.layer.GeoJSON.prototype.removeFeatures;M.layer.GeoJSON.prototype.clear=M.layer.GeoJSON.prototype.clear;M.layer.GeoJSON.prototype.refresh=M.layer.GeoJSON.prototype.refresh;M.layer.GeoJSON.prototype.redraw=M.layer.GeoJSON.prototype.redraw;M.layer.GeoJSON.prototype.setFilter=M.layer.GeoJSON.prototype.setFilter;M.layer.GeoJSON.prototype.getFilter=
M.layer.GeoJSON.prototype.getFilter;M.layer.GeoJSON.prototype.getFeaturesExtent=M.layer.GeoJSON.prototype.getFeaturesExtent;M.layer.GeoJSON.prototype.removeFilter=M.layer.GeoJSON.prototype.removeFilter;M.layer.GeoJSON.prototype.getStyle=M.layer.GeoJSON.prototype.getStyle;M.layer.GeoJSON.prototype.clearStyle=M.layer.GeoJSON.prototype.clearStyle;M.layer.GeoJSON.prototype.getLegendURL=M.layer.GeoJSON.prototype.getLegendURL;M.layer.GeoJSON.prototype.isVisible=M.layer.GeoJSON.prototype.isVisible;M.layer.GeoJSON.prototype.isQueryable=
M.layer.GeoJSON.prototype.isQueryable;M.layer.GeoJSON.prototype.setVisible=M.layer.GeoJSON.prototype.setVisible;M.layer.GeoJSON.prototype.inRange=M.layer.GeoJSON.prototype.inRange;M.layer.GeoJSON.prototype.setLegendURL=M.layer.GeoJSON.prototype.setLegendURL;M.layer.GeoJSON.prototype.getZIndex=M.layer.GeoJSON.prototype.getZIndex;M.layer.GeoJSON.prototype.setZIndex=M.layer.GeoJSON.prototype.setZIndex;M.layer.GeoJSON.prototype.getOpacity=M.layer.GeoJSON.prototype.getOpacity;M.layer.GeoJSON.prototype.setOpacity=
M.layer.GeoJSON.prototype.setOpacity;M.layer.GeoJSON.prototype.getImpl=M.layer.GeoJSON.prototype.getImpl;M.layer.GeoJSON.prototype.setImpl=M.layer.GeoJSON.prototype.setImpl;M.layer.GeoJSON.prototype.destroy=M.layer.GeoJSON.prototype.destroy;M.layer.GeoJSON.prototype.on=M.layer.GeoJSON.prototype.on;M.layer.GeoJSON.prototype.once=M.layer.GeoJSON.prototype.once;M.layer.GeoJSON.prototype.un=M.layer.GeoJSON.prototype.un;M.layer.GeoJSON.prototype.fire=M.layer.GeoJSON.prototype.fire;M.impl.Map.prototype.on=
M.impl.Map.prototype.on;M.impl.Map.prototype.once=M.impl.Map.prototype.once;M.impl.Map.prototype.un=M.impl.Map.prototype.un;M.impl.Map.prototype.fire=M.impl.Map.prototype.fire;M.layer.KML.prototype.addFeatures=M.layer.KML.prototype.addFeatures;M.layer.KML.prototype.getFeatures=M.layer.KML.prototype.getFeatures;M.layer.KML.prototype.getFeatureById=M.layer.KML.prototype.getFeatureById;M.layer.KML.prototype.removeFeatures=M.layer.KML.prototype.removeFeatures;M.layer.KML.prototype.clear=M.layer.KML.prototype.clear;
M.layer.KML.prototype.refresh=M.layer.KML.prototype.refresh;M.layer.KML.prototype.redraw=M.layer.KML.prototype.redraw;M.layer.KML.prototype.setFilter=M.layer.KML.prototype.setFilter;M.layer.KML.prototype.getFilter=M.layer.KML.prototype.getFilter;M.layer.KML.prototype.getFeaturesExtent=M.layer.KML.prototype.getFeaturesExtent;M.layer.KML.prototype.removeFilter=M.layer.KML.prototype.removeFilter;M.layer.KML.prototype.getStyle=M.layer.KML.prototype.getStyle;M.layer.KML.prototype.clearStyle=M.layer.KML.prototype.clearStyle;
M.layer.KML.prototype.getLegendURL=M.layer.KML.prototype.getLegendURL;M.layer.KML.prototype.isVisible=M.layer.KML.prototype.isVisible;M.layer.KML.prototype.isQueryable=M.layer.KML.prototype.isQueryable;M.layer.KML.prototype.setVisible=M.layer.KML.prototype.setVisible;M.layer.KML.prototype.inRange=M.layer.KML.prototype.inRange;M.layer.KML.prototype.setLegendURL=M.layer.KML.prototype.setLegendURL;M.layer.KML.prototype.getZIndex=M.layer.KML.prototype.getZIndex;M.layer.KML.prototype.setZIndex=M.layer.KML.prototype.setZIndex;
M.layer.KML.prototype.getOpacity=M.layer.KML.prototype.getOpacity;M.layer.KML.prototype.setOpacity=M.layer.KML.prototype.setOpacity;M.layer.KML.prototype.getImpl=M.layer.KML.prototype.getImpl;M.layer.KML.prototype.setImpl=M.layer.KML.prototype.setImpl;M.layer.KML.prototype.destroy=M.layer.KML.prototype.destroy;M.layer.KML.prototype.on=M.layer.KML.prototype.on;M.layer.KML.prototype.once=M.layer.KML.prototype.once;M.layer.KML.prototype.un=M.layer.KML.prototype.un;M.layer.KML.prototype.fire=M.layer.KML.prototype.fire;
M.layer.Mapbox.prototype.isVisible=M.layer.Mapbox.prototype.isVisible;M.layer.Mapbox.prototype.isQueryable=M.layer.Mapbox.prototype.isQueryable;M.layer.Mapbox.prototype.setVisible=M.layer.Mapbox.prototype.setVisible;M.layer.Mapbox.prototype.inRange=M.layer.Mapbox.prototype.inRange;M.layer.Mapbox.prototype.getLegendURL=M.layer.Mapbox.prototype.getLegendURL;M.layer.Mapbox.prototype.setLegendURL=M.layer.Mapbox.prototype.setLegendURL;M.layer.Mapbox.prototype.getZIndex=M.layer.Mapbox.prototype.getZIndex;
M.layer.Mapbox.prototype.setZIndex=M.layer.Mapbox.prototype.setZIndex;M.layer.Mapbox.prototype.getOpacity=M.layer.Mapbox.prototype.getOpacity;M.layer.Mapbox.prototype.setOpacity=M.layer.Mapbox.prototype.setOpacity;M.layer.Mapbox.prototype.refresh=M.layer.Mapbox.prototype.refresh;M.layer.Mapbox.prototype.getImpl=M.layer.Mapbox.prototype.getImpl;M.layer.Mapbox.prototype.setImpl=M.layer.Mapbox.prototype.setImpl;M.layer.Mapbox.prototype.destroy=M.layer.Mapbox.prototype.destroy;M.layer.Mapbox.prototype.on=
M.layer.Mapbox.prototype.on;M.layer.Mapbox.prototype.once=M.layer.Mapbox.prototype.once;M.layer.Mapbox.prototype.un=M.layer.Mapbox.prototype.un;M.layer.Mapbox.prototype.fire=M.layer.Mapbox.prototype.fire;M.layer.OSM.prototype.isVisible=M.layer.OSM.prototype.isVisible;M.layer.OSM.prototype.isQueryable=M.layer.OSM.prototype.isQueryable;M.layer.OSM.prototype.setVisible=M.layer.OSM.prototype.setVisible;M.layer.OSM.prototype.inRange=M.layer.OSM.prototype.inRange;M.layer.OSM.prototype.getLegendURL=M.layer.OSM.prototype.getLegendURL;
M.layer.OSM.prototype.setLegendURL=M.layer.OSM.prototype.setLegendURL;M.layer.OSM.prototype.getZIndex=M.layer.OSM.prototype.getZIndex;M.layer.OSM.prototype.setZIndex=M.layer.OSM.prototype.setZIndex;M.layer.OSM.prototype.getOpacity=M.layer.OSM.prototype.getOpacity;M.layer.OSM.prototype.setOpacity=M.layer.OSM.prototype.setOpacity;M.layer.OSM.prototype.refresh=M.layer.OSM.prototype.refresh;M.layer.OSM.prototype.getImpl=M.layer.OSM.prototype.getImpl;M.layer.OSM.prototype.setImpl=M.layer.OSM.prototype.setImpl;
M.layer.OSM.prototype.destroy=M.layer.OSM.prototype.destroy;M.layer.OSM.prototype.on=M.layer.OSM.prototype.on;M.layer.OSM.prototype.once=M.layer.OSM.prototype.once;M.layer.OSM.prototype.un=M.layer.OSM.prototype.un;M.layer.OSM.prototype.fire=M.layer.OSM.prototype.fire;M.layer.WFS.prototype.addFeatures=M.layer.WFS.prototype.addFeatures;M.layer.WFS.prototype.getFeatures=M.layer.WFS.prototype.getFeatures;M.layer.WFS.prototype.getFeatureById=M.layer.WFS.prototype.getFeatureById;M.layer.WFS.prototype.removeFeatures=
M.layer.WFS.prototype.removeFeatures;M.layer.WFS.prototype.clear=M.layer.WFS.prototype.clear;M.layer.WFS.prototype.refresh=M.layer.WFS.prototype.refresh;M.layer.WFS.prototype.redraw=M.layer.WFS.prototype.redraw;M.layer.WFS.prototype.setFilter=M.layer.WFS.prototype.setFilter;M.layer.WFS.prototype.getFilter=M.layer.WFS.prototype.getFilter;M.layer.WFS.prototype.getFeaturesExtent=M.layer.WFS.prototype.getFeaturesExtent;M.layer.WFS.prototype.removeFilter=M.layer.WFS.prototype.removeFilter;M.layer.WFS.prototype.getStyle=
M.layer.WFS.prototype.getStyle;M.layer.WFS.prototype.clearStyle=M.layer.WFS.prototype.clearStyle;M.layer.WFS.prototype.getLegendURL=M.layer.WFS.prototype.getLegendURL;M.layer.WFS.prototype.isVisible=M.layer.WFS.prototype.isVisible;M.layer.WFS.prototype.isQueryable=M.layer.WFS.prototype.isQueryable;M.layer.WFS.prototype.setVisible=M.layer.WFS.prototype.setVisible;M.layer.WFS.prototype.inRange=M.layer.WFS.prototype.inRange;M.layer.WFS.prototype.setLegendURL=M.layer.WFS.prototype.setLegendURL;M.layer.WFS.prototype.getZIndex=
M.layer.WFS.prototype.getZIndex;M.layer.WFS.prototype.setZIndex=M.layer.WFS.prototype.setZIndex;M.layer.WFS.prototype.getOpacity=M.layer.WFS.prototype.getOpacity;M.layer.WFS.prototype.setOpacity=M.layer.WFS.prototype.setOpacity;M.layer.WFS.prototype.getImpl=M.layer.WFS.prototype.getImpl;M.layer.WFS.prototype.setImpl=M.layer.WFS.prototype.setImpl;M.layer.WFS.prototype.destroy=M.layer.WFS.prototype.destroy;M.layer.WFS.prototype.on=M.layer.WFS.prototype.on;M.layer.WFS.prototype.once=M.layer.WFS.prototype.once;
M.layer.WFS.prototype.un=M.layer.WFS.prototype.un;M.layer.WFS.prototype.fire=M.layer.WFS.prototype.fire;M.layer.WMC.prototype.isVisible=M.layer.WMC.prototype.isVisible;M.layer.WMC.prototype.isQueryable=M.layer.WMC.prototype.isQueryable;M.layer.WMC.prototype.setVisible=M.layer.WMC.prototype.setVisible;M.layer.WMC.prototype.inRange=M.layer.WMC.prototype.inRange;M.layer.WMC.prototype.getLegendURL=M.layer.WMC.prototype.getLegendURL;M.layer.WMC.prototype.setLegendURL=M.layer.WMC.prototype.setLegendURL;
M.layer.WMC.prototype.getZIndex=M.layer.WMC.prototype.getZIndex;M.layer.WMC.prototype.setZIndex=M.layer.WMC.prototype.setZIndex;M.layer.WMC.prototype.getOpacity=M.layer.WMC.prototype.getOpacity;M.layer.WMC.prototype.setOpacity=M.layer.WMC.prototype.setOpacity;M.layer.WMC.prototype.refresh=M.layer.WMC.prototype.refresh;M.layer.WMC.prototype.getImpl=M.layer.WMC.prototype.getImpl;M.layer.WMC.prototype.setImpl=M.layer.WMC.prototype.setImpl;M.layer.WMC.prototype.destroy=M.layer.WMC.prototype.destroy;M.layer.WMC.prototype.on=
M.layer.WMC.prototype.on;M.layer.WMC.prototype.once=M.layer.WMC.prototype.once;M.layer.WMC.prototype.un=M.layer.WMC.prototype.un;M.layer.WMC.prototype.fire=M.layer.WMC.prototype.fire;M.layer.WMS.prototype.isVisible=M.layer.WMS.prototype.isVisible;M.layer.WMS.prototype.isQueryable=M.layer.WMS.prototype.isQueryable;M.layer.WMS.prototype.setVisible=M.layer.WMS.prototype.setVisible;M.layer.WMS.prototype.inRange=M.layer.WMS.prototype.inRange;M.layer.WMS.prototype.getLegendURL=M.layer.WMS.prototype.getLegendURL;
M.layer.WMS.prototype.setLegendURL=M.layer.WMS.prototype.setLegendURL;M.layer.WMS.prototype.getZIndex=M.layer.WMS.prototype.getZIndex;M.layer.WMS.prototype.setZIndex=M.layer.WMS.prototype.setZIndex;M.layer.WMS.prototype.getOpacity=M.layer.WMS.prototype.getOpacity;M.layer.WMS.prototype.setOpacity=M.layer.WMS.prototype.setOpacity;M.layer.WMS.prototype.refresh=M.layer.WMS.prototype.refresh;M.layer.WMS.prototype.getImpl=M.layer.WMS.prototype.getImpl;M.layer.WMS.prototype.setImpl=M.layer.WMS.prototype.setImpl;
M.layer.WMS.prototype.destroy=M.layer.WMS.prototype.destroy;M.layer.WMS.prototype.on=M.layer.WMS.prototype.on;M.layer.WMS.prototype.once=M.layer.WMS.prototype.once;M.layer.WMS.prototype.un=M.layer.WMS.prototype.un;M.layer.WMS.prototype.fire=M.layer.WMS.prototype.fire;M.layer.WMTS.prototype.isVisible=M.layer.WMTS.prototype.isVisible;M.layer.WMTS.prototype.isQueryable=M.layer.WMTS.prototype.isQueryable;M.layer.WMTS.prototype.setVisible=M.layer.WMTS.prototype.setVisible;M.layer.WMTS.prototype.inRange=
M.layer.WMTS.prototype.inRange;M.layer.WMTS.prototype.getLegendURL=M.layer.WMTS.prototype.getLegendURL;M.layer.WMTS.prototype.setLegendURL=M.layer.WMTS.prototype.setLegendURL;M.layer.WMTS.prototype.getZIndex=M.layer.WMTS.prototype.getZIndex;M.layer.WMTS.prototype.setZIndex=M.layer.WMTS.prototype.setZIndex;M.layer.WMTS.prototype.getOpacity=M.layer.WMTS.prototype.getOpacity;M.layer.WMTS.prototype.setOpacity=M.layer.WMTS.prototype.setOpacity;M.layer.WMTS.prototype.refresh=M.layer.WMTS.prototype.refresh;
M.layer.WMTS.prototype.getImpl=M.layer.WMTS.prototype.getImpl;M.layer.WMTS.prototype.setImpl=M.layer.WMTS.prototype.setImpl;M.layer.WMTS.prototype.destroy=M.layer.WMTS.prototype.destroy;M.layer.WMTS.prototype.on=M.layer.WMTS.prototype.on;M.layer.WMTS.prototype.once=M.layer.WMTS.prototype.once;M.layer.WMTS.prototype.un=M.layer.WMTS.prototype.un;M.layer.WMTS.prototype.fire=M.layer.WMTS.prototype.fire;M.impl.loader.JSONP.prototype.on=M.impl.loader.JSONP.prototype.on;M.impl.loader.JSONP.prototype.once=
M.impl.loader.JSONP.prototype.once;M.impl.loader.JSONP.prototype.un=M.impl.loader.JSONP.prototype.un;M.impl.loader.JSONP.prototype.fire=M.impl.loader.JSONP.prototype.fire;M.impl.loader.KML.prototype.on=M.impl.loader.KML.prototype.on;M.impl.loader.KML.prototype.once=M.impl.loader.KML.prototype.once;M.impl.loader.KML.prototype.un=M.impl.loader.KML.prototype.un;M.impl.loader.KML.prototype.fire=M.impl.loader.KML.prototype.fire;M.impl.loader.WFS.prototype.on=M.impl.loader.WFS.prototype.on;M.impl.loader.WFS.prototype.once=
M.impl.loader.WFS.prototype.once;M.impl.loader.WFS.prototype.un=M.impl.loader.WFS.prototype.un;M.impl.loader.WFS.prototype.fire=M.impl.loader.WFS.prototype.fire;M.handler.Features.prototype.getImpl=M.handler.Features.prototype.getImpl;M.handler.Features.prototype.setImpl=M.handler.Features.prototype.setImpl;M.handler.Features.prototype.on=M.handler.Features.prototype.on;M.handler.Features.prototype.once=M.handler.Features.prototype.once;M.handler.Features.prototype.un=M.handler.Features.prototype.un;
M.handler.Features.prototype.fire=M.handler.Features.prototype.fire;M.format.GeoJSON.prototype.getImpl=M.format.GeoJSON.prototype.getImpl;M.format.GeoJSON.prototype.setImpl=M.format.GeoJSON.prototype.setImpl;M.format.GeoJSON.prototype.destroy=M.format.GeoJSON.prototype.destroy;M.format.GeoJSON.prototype.on=M.format.GeoJSON.prototype.on;M.format.GeoJSON.prototype.once=M.format.GeoJSON.prototype.once;M.format.GeoJSON.prototype.un=M.format.GeoJSON.prototype.un;M.format.GeoJSON.prototype.fire=M.format.GeoJSON.prototype.fire;
M.format.WKT.prototype.getImpl=M.format.WKT.prototype.getImpl;M.format.WKT.prototype.setImpl=M.format.WKT.prototype.setImpl;M.format.WKT.prototype.destroy=M.format.WKT.prototype.destroy;M.format.WKT.prototype.on=M.format.WKT.prototype.on;M.format.WKT.prototype.once=M.format.WKT.prototype.once;M.format.WKT.prototype.un=M.format.WKT.prototype.un;M.format.WKT.prototype.fire=M.format.WKT.prototype.fire;M.impl.Layer.prototype.getImpl=M.impl.Layer.prototype.getImpl;M.impl.Layer.prototype.setImpl=M.impl.Layer.prototype.setImpl;
M.impl.Layer.prototype.destroy=M.impl.Layer.prototype.destroy;M.impl.Layer.prototype.on=M.impl.Layer.prototype.on;M.impl.Layer.prototype.once=M.impl.Layer.prototype.once;M.impl.Layer.prototype.un=M.impl.Layer.prototype.un;M.impl.Layer.prototype.fire=M.impl.Layer.prototype.fire;fz.prototype.setRenderReprojectionEdges=fz.prototype.setRenderReprojectionEdges;fz.prototype.setTileGridForProjection=fz.prototype.setTileGridForProjection;fz.prototype.getTileLoadFunction=fz.prototype.getTileLoadFunction;fz.prototype.getTileUrlFunction=
fz.prototype.getTileUrlFunction;fz.prototype.getUrls=fz.prototype.getUrls;fz.prototype.setTileLoadFunction=fz.prototype.setTileLoadFunction;fz.prototype.setTileUrlFunction=fz.prototype.setTileUrlFunction;fz.prototype.setUrl=fz.prototype.setUrl;fz.prototype.setUrls=fz.prototype.setUrls;fz.prototype.getTileGrid=fz.prototype.getTileGrid;fz.prototype.refresh=fz.prototype.refresh;fz.prototype.getAttributions=fz.prototype.getAttributions;fz.prototype.getLogo=fz.prototype.getLogo;fz.prototype.getProjection=
fz.prototype.getProjection;fz.prototype.getState=fz.prototype.getState;fz.prototype.setAttributions=fz.prototype.setAttributions;fz.prototype.get=fz.prototype.get;fz.prototype.getKeys=fz.prototype.getKeys;fz.prototype.getProperties=fz.prototype.getProperties;fz.prototype.set=fz.prototype.set;fz.prototype.setProperties=fz.prototype.setProperties;fz.prototype.unset=fz.prototype.unset;fz.prototype.changed=fz.prototype.changed;fz.prototype.dispatchEvent=fz.prototype.dispatchEvent;fz.prototype.getRevision=
fz.prototype.getRevision;fz.prototype.on=fz.prototype.on;fz.prototype.once=fz.prototype.once;fz.prototype.un=fz.prototype.un;hz.prototype.setRenderReprojectionEdges=hz.prototype.setRenderReprojectionEdges;hz.prototype.setTileGridForProjection=hz.prototype.setTileGridForProjection;hz.prototype.getTileLoadFunction=hz.prototype.getTileLoadFunction;hz.prototype.getTileUrlFunction=hz.prototype.getTileUrlFunction;hz.prototype.getUrls=hz.prototype.getUrls;hz.prototype.setTileLoadFunction=hz.prototype.setTileLoadFunction;
hz.prototype.setTileUrlFunction=hz.prototype.setTileUrlFunction;hz.prototype.setUrl=hz.prototype.setUrl;hz.prototype.setUrls=hz.prototype.setUrls;hz.prototype.getTileGrid=hz.prototype.getTileGrid;hz.prototype.refresh=hz.prototype.refresh;hz.prototype.getAttributions=hz.prototype.getAttributions;hz.prototype.getLogo=hz.prototype.getLogo;hz.prototype.getProjection=hz.prototype.getProjection;hz.prototype.getState=hz.prototype.getState;hz.prototype.setAttributions=hz.prototype.setAttributions;hz.prototype.get=
hz.prototype.get;hz.prototype.getKeys=hz.prototype.getKeys;hz.prototype.getProperties=hz.prototype.getProperties;hz.prototype.set=hz.prototype.set;hz.prototype.setProperties=hz.prototype.setProperties;hz.prototype.unset=hz.prototype.unset;hz.prototype.changed=hz.prototype.changed;hz.prototype.dispatchEvent=hz.prototype.dispatchEvent;hz.prototype.getRevision=hz.prototype.getRevision;hz.prototype.on=hz.prototype.on;hz.prototype.once=hz.prototype.once;hz.prototype.un=hz.prototype.un;X.prototype.getAttributions=
X.prototype.getAttributions;X.prototype.getLogo=X.prototype.getLogo;X.prototype.getProjection=X.prototype.getProjection;X.prototype.getState=X.prototype.getState;X.prototype.refresh=X.prototype.refresh;X.prototype.setAttributions=X.prototype.setAttributions;X.prototype.get=X.prototype.get;X.prototype.getKeys=X.prototype.getKeys;X.prototype.getProperties=X.prototype.getProperties;X.prototype.set=X.prototype.set;X.prototype.setProperties=X.prototype.setProperties;X.prototype.unset=X.prototype.unset;
X.prototype.changed=X.prototype.changed;X.prototype.dispatchEvent=X.prototype.dispatchEvent;X.prototype.getRevision=X.prototype.getRevision;X.prototype.on=X.prototype.on;X.prototype.once=X.prototype.once;X.prototype.un=X.prototype.un;Y.prototype.addFeature=Y.prototype.addFeature;Y.prototype.addFeatures=Y.prototype.addFeatures;Y.prototype.clear=Y.prototype.clear;Y.prototype.forEachFeature=Y.prototype.forEachFeature;Y.prototype.forEachFeatureInExtent=Y.prototype.forEachFeatureInExtent;Y.prototype.forEachFeatureIntersectingExtent=
Y.prototype.forEachFeatureIntersectingExtent;Y.prototype.getFeaturesCollection=Y.prototype.getFeaturesCollection;Y.prototype.getFeatures=Y.prototype.getFeatures;Y.prototype.getFeaturesAtCoordinate=Y.prototype.getFeaturesAtCoordinate;Y.prototype.getFeaturesInExtent=Y.prototype.getFeaturesInExtent;Y.prototype.getClosestFeatureToCoordinate=Y.prototype.getClosestFeatureToCoordinate;Y.prototype.getExtent=Y.prototype.getExtent;Y.prototype.getFeatureById=Y.prototype.getFeatureById;Y.prototype.getFormat=
Y.prototype.getFormat;Y.prototype.getUrl=Y.prototype.getUrl;Y.prototype.removeFeature=Y.prototype.removeFeature;Y.prototype.getAttributions=Y.prototype.getAttributions;Y.prototype.getLogo=Y.prototype.getLogo;Y.prototype.getProjection=Y.prototype.getProjection;Y.prototype.getState=Y.prototype.getState;Y.prototype.refresh=Y.prototype.refresh;Y.prototype.setAttributions=Y.prototype.setAttributions;Y.prototype.get=Y.prototype.get;Y.prototype.getKeys=Y.prototype.getKeys;Y.prototype.getProperties=Y.prototype.getProperties;
Y.prototype.set=Y.prototype.set;Y.prototype.setProperties=Y.prototype.setProperties;Y.prototype.unset=Y.prototype.unset;Y.prototype.changed=Y.prototype.changed;Y.prototype.dispatchEvent=Y.prototype.dispatchEvent;Y.prototype.getRevision=Y.prototype.getRevision;Y.prototype.on=Y.prototype.on;Y.prototype.once=Y.prototype.once;Y.prototype.un=Y.prototype.un;Nu.prototype.type=Nu.prototype.type;Nu.prototype.target=Nu.prototype.target;kz.prototype.getAttributions=kz.prototype.getAttributions;kz.prototype.getLogo=
kz.prototype.getLogo;kz.prototype.getProjection=kz.prototype.getProjection;kz.prototype.getState=kz.prototype.getState;kz.prototype.refresh=kz.prototype.refresh;kz.prototype.setAttributions=kz.prototype.setAttributions;kz.prototype.get=kz.prototype.get;kz.prototype.getKeys=kz.prototype.getKeys;kz.prototype.getProperties=kz.prototype.getProperties;kz.prototype.set=kz.prototype.set;kz.prototype.setProperties=kz.prototype.setProperties;kz.prototype.unset=kz.prototype.unset;kz.prototype.changed=kz.prototype.changed;
kz.prototype.dispatchEvent=kz.prototype.dispatchEvent;kz.prototype.getRevision=kz.prototype.getRevision;kz.prototype.on=kz.prototype.on;kz.prototype.once=kz.prototype.once;kz.prototype.un=kz.prototype.un;Yu.prototype.getAttributions=Yu.prototype.getAttributions;Yu.prototype.getLogo=Yu.prototype.getLogo;Yu.prototype.getProjection=Yu.prototype.getProjection;Yu.prototype.getState=Yu.prototype.getState;Yu.prototype.refresh=Yu.prototype.refresh;Yu.prototype.setAttributions=Yu.prototype.setAttributions;
Yu.prototype.get=Yu.prototype.get;Yu.prototype.getKeys=Yu.prototype.getKeys;Yu.prototype.getProperties=Yu.prototype.getProperties;Yu.prototype.set=Yu.prototype.set;Yu.prototype.setProperties=Yu.prototype.setProperties;Yu.prototype.unset=Yu.prototype.unset;Yu.prototype.changed=Yu.prototype.changed;Yu.prototype.dispatchEvent=Yu.prototype.dispatchEvent;Yu.prototype.getRevision=Yu.prototype.getRevision;Yu.prototype.on=Yu.prototype.on;Yu.prototype.once=Yu.prototype.once;Yu.prototype.un=Yu.prototype.un;
M.Feature.prototype.getImpl=M.Feature.prototype.getImpl;M.Feature.prototype.setImpl=M.Feature.prototype.setImpl;M.Feature.prototype.destroy=M.Feature.prototype.destroy;M.Feature.prototype.on=M.Feature.prototype.on;M.Feature.prototype.once=M.Feature.prototype.once;M.Feature.prototype.un=M.Feature.prototype.un;M.Feature.prototype.fire=M.Feature.prototype.fire;M.ClusteredFeature.prototype.setId=M.ClusteredFeature.prototype.setId;M.ClusteredFeature.prototype.getId=M.ClusteredFeature.prototype.getId;M.ClusteredFeature.prototype.getGeometry=
M.ClusteredFeature.prototype.getGeometry;M.ClusteredFeature.prototype.setGeometry=M.ClusteredFeature.prototype.setGeometry;M.ClusteredFeature.prototype.getGeoJSON=M.ClusteredFeature.prototype.getGeoJSON;M.ClusteredFeature.prototype.getAttributes=M.ClusteredFeature.prototype.getAttributes;M.ClusteredFeature.prototype.setAttributes=M.ClusteredFeature.prototype.setAttributes;M.ClusteredFeature.prototype.getAttribute=M.ClusteredFeature.prototype.getAttribute;M.ClusteredFeature.prototype.setAttribute=
M.ClusteredFeature.prototype.setAttribute;M.ClusteredFeature.prototype.setStyle=M.ClusteredFeature.prototype.setStyle;M.ClusteredFeature.prototype.getStyle=M.ClusteredFeature.prototype.getStyle;M.ClusteredFeature.prototype.clearStyle=M.ClusteredFeature.prototype.clearStyle;M.ClusteredFeature.prototype.getCentroid=M.ClusteredFeature.prototype.getCentroid;M.ClusteredFeature.prototype.getImpl=M.ClusteredFeature.prototype.getImpl;M.ClusteredFeature.prototype.setImpl=M.ClusteredFeature.prototype.setImpl;
M.ClusteredFeature.prototype.destroy=M.ClusteredFeature.prototype.destroy;M.ClusteredFeature.prototype.on=M.ClusteredFeature.prototype.on;M.ClusteredFeature.prototype.once=M.ClusteredFeature.prototype.once;M.ClusteredFeature.prototype.un=M.ClusteredFeature.prototype.un;M.ClusteredFeature.prototype.fire=M.ClusteredFeature.prototype.fire;lz.prototype.getAttributions=lz.prototype.getAttributions;lz.prototype.getLogo=lz.prototype.getLogo;lz.prototype.getProjection=lz.prototype.getProjection;lz.prototype.getState=
lz.prototype.getState;lz.prototype.refresh=lz.prototype.refresh;lz.prototype.setAttributions=lz.prototype.setAttributions;lz.prototype.get=lz.prototype.get;lz.prototype.getKeys=lz.prototype.getKeys;lz.prototype.getProperties=lz.prototype.getProperties;lz.prototype.set=lz.prototype.set;lz.prototype.setProperties=lz.prototype.setProperties;lz.prototype.unset=lz.prototype.unset;lz.prototype.changed=lz.prototype.changed;lz.prototype.dispatchEvent=lz.prototype.dispatchEvent;lz.prototype.getRevision=lz.prototype.getRevision;
lz.prototype.on=lz.prototype.on;lz.prototype.once=lz.prototype.once;lz.prototype.un=lz.prototype.un;mz.prototype.getAttributions=mz.prototype.getAttributions;mz.prototype.getLogo=mz.prototype.getLogo;mz.prototype.getProjection=mz.prototype.getProjection;mz.prototype.getState=mz.prototype.getState;mz.prototype.refresh=mz.prototype.refresh;mz.prototype.setAttributions=mz.prototype.setAttributions;mz.prototype.get=mz.prototype.get;mz.prototype.getKeys=mz.prototype.getKeys;mz.prototype.getProperties=
mz.prototype.getProperties;mz.prototype.set=mz.prototype.set;mz.prototype.setProperties=mz.prototype.setProperties;mz.prototype.unset=mz.prototype.unset;mz.prototype.changed=mz.prototype.changed;mz.prototype.dispatchEvent=mz.prototype.dispatchEvent;mz.prototype.getRevision=mz.prototype.getRevision;mz.prototype.on=mz.prototype.on;mz.prototype.once=mz.prototype.once;mz.prototype.un=mz.prototype.un;Zu.prototype.getAttributions=Zu.prototype.getAttributions;Zu.prototype.getLogo=Zu.prototype.getLogo;Zu.prototype.getProjection=
Zu.prototype.getProjection;Zu.prototype.getState=Zu.prototype.getState;Zu.prototype.refresh=Zu.prototype.refresh;Zu.prototype.setAttributions=Zu.prototype.setAttributions;Zu.prototype.get=Zu.prototype.get;Zu.prototype.getKeys=Zu.prototype.getKeys;Zu.prototype.getProperties=Zu.prototype.getProperties;Zu.prototype.set=Zu.prototype.set;Zu.prototype.setProperties=Zu.prototype.setProperties;Zu.prototype.unset=Zu.prototype.unset;Zu.prototype.changed=Zu.prototype.changed;Zu.prototype.dispatchEvent=Zu.prototype.dispatchEvent;
Zu.prototype.getRevision=Zu.prototype.getRevision;Zu.prototype.on=Zu.prototype.on;Zu.prototype.once=Zu.prototype.once;Zu.prototype.un=Zu.prototype.un;Su.prototype.getAttributions=Su.prototype.getAttributions;Su.prototype.getLogo=Su.prototype.getLogo;Su.prototype.getProjection=Su.prototype.getProjection;Su.prototype.getState=Su.prototype.getState;Su.prototype.refresh=Su.prototype.refresh;Su.prototype.setAttributions=Su.prototype.setAttributions;Su.prototype.get=Su.prototype.get;Su.prototype.getKeys=
Su.prototype.getKeys;Su.prototype.getProperties=Su.prototype.getProperties;Su.prototype.set=Su.prototype.set;Su.prototype.setProperties=Su.prototype.setProperties;Su.prototype.unset=Su.prototype.unset;Su.prototype.changed=Su.prototype.changed;Su.prototype.dispatchEvent=Su.prototype.dispatchEvent;Su.prototype.getRevision=Su.prototype.getRevision;Su.prototype.on=Su.prototype.on;Su.prototype.once=Su.prototype.once;Su.prototype.un=Su.prototype.un;ou.prototype.setRenderReprojectionEdges=ou.prototype.setRenderReprojectionEdges;
ou.prototype.setTileGridForProjection=ou.prototype.setTileGridForProjection;ou.prototype.getTileLoadFunction=ou.prototype.getTileLoadFunction;ou.prototype.getTileUrlFunction=ou.prototype.getTileUrlFunction;ou.prototype.getUrls=ou.prototype.getUrls;ou.prototype.setTileLoadFunction=ou.prototype.setTileLoadFunction;ou.prototype.setTileUrlFunction=ou.prototype.setTileUrlFunction;ou.prototype.setUrl=ou.prototype.setUrl;ou.prototype.setUrls=ou.prototype.setUrls;ou.prototype.getTileGrid=ou.prototype.getTileGrid;
ou.prototype.refresh=ou.prototype.refresh;ou.prototype.getAttributions=ou.prototype.getAttributions;ou.prototype.getLogo=ou.prototype.getLogo;ou.prototype.getProjection=ou.prototype.getProjection;ou.prototype.getState=ou.prototype.getState;ou.prototype.setAttributions=ou.prototype.setAttributions;ou.prototype.get=ou.prototype.get;ou.prototype.getKeys=ou.prototype.getKeys;ou.prototype.getProperties=ou.prototype.getProperties;ou.prototype.set=ou.prototype.set;ou.prototype.setProperties=ou.prototype.setProperties;
ou.prototype.unset=ou.prototype.unset;ou.prototype.changed=ou.prototype.changed;ou.prototype.dispatchEvent=ou.prototype.dispatchEvent;ou.prototype.getRevision=ou.prototype.getRevision;ou.prototype.on=ou.prototype.on;ou.prototype.once=ou.prototype.once;ou.prototype.un=ou.prototype.un;nz.prototype.getAttributions=nz.prototype.getAttributions;nz.prototype.getLogo=nz.prototype.getLogo;nz.prototype.getProjection=nz.prototype.getProjection;nz.prototype.getState=nz.prototype.getState;nz.prototype.refresh=
nz.prototype.refresh;nz.prototype.setAttributions=nz.prototype.setAttributions;nz.prototype.get=nz.prototype.get;nz.prototype.getKeys=nz.prototype.getKeys;nz.prototype.getProperties=nz.prototype.getProperties;nz.prototype.set=nz.prototype.set;nz.prototype.setProperties=nz.prototype.setProperties;nz.prototype.unset=nz.prototype.unset;nz.prototype.changed=nz.prototype.changed;nz.prototype.dispatchEvent=nz.prototype.dispatchEvent;nz.prototype.getRevision=nz.prototype.getRevision;nz.prototype.on=nz.prototype.on;
nz.prototype.once=nz.prototype.once;nz.prototype.un=nz.prototype.un;sz.prototype.type=sz.prototype.type;sz.prototype.target=sz.prototype.target;vz.prototype.setRenderReprojectionEdges=vz.prototype.setRenderReprojectionEdges;vz.prototype.setTileGridForProjection=vz.prototype.setTileGridForProjection;vz.prototype.getTileLoadFunction=vz.prototype.getTileLoadFunction;vz.prototype.getTileUrlFunction=vz.prototype.getTileUrlFunction;vz.prototype.getUrls=vz.prototype.getUrls;vz.prototype.setTileLoadFunction=
vz.prototype.setTileLoadFunction;vz.prototype.setTileUrlFunction=vz.prototype.setTileUrlFunction;vz.prototype.setUrl=vz.prototype.setUrl;vz.prototype.setUrls=vz.prototype.setUrls;vz.prototype.getTileGrid=vz.prototype.getTileGrid;vz.prototype.refresh=vz.prototype.refresh;vz.prototype.getAttributions=vz.prototype.getAttributions;vz.prototype.getLogo=vz.prototype.getLogo;vz.prototype.getProjection=vz.prototype.getProjection;vz.prototype.getState=vz.prototype.getState;vz.prototype.setAttributions=vz.prototype.setAttributions;
vz.prototype.get=vz.prototype.get;vz.prototype.getKeys=vz.prototype.getKeys;vz.prototype.getProperties=vz.prototype.getProperties;vz.prototype.set=vz.prototype.set;vz.prototype.setProperties=vz.prototype.setProperties;vz.prototype.unset=vz.prototype.unset;vz.prototype.changed=vz.prototype.changed;vz.prototype.dispatchEvent=vz.prototype.dispatchEvent;vz.prototype.getRevision=vz.prototype.getRevision;vz.prototype.on=vz.prototype.on;vz.prototype.once=vz.prototype.once;vz.prototype.un=vz.prototype.un;
hu.prototype.type=hu.prototype.type;hu.prototype.target=hu.prototype.target;zz.prototype.setRenderReprojectionEdges=zz.prototype.setRenderReprojectionEdges;zz.prototype.setTileGridForProjection=zz.prototype.setTileGridForProjection;zz.prototype.getTileLoadFunction=zz.prototype.getTileLoadFunction;zz.prototype.getTileUrlFunction=zz.prototype.getTileUrlFunction;zz.prototype.getUrls=zz.prototype.getUrls;zz.prototype.setTileLoadFunction=zz.prototype.setTileLoadFunction;zz.prototype.setTileUrlFunction=
zz.prototype.setTileUrlFunction;zz.prototype.setUrl=zz.prototype.setUrl;zz.prototype.setUrls=zz.prototype.setUrls;zz.prototype.getTileGrid=zz.prototype.getTileGrid;zz.prototype.refresh=zz.prototype.refresh;zz.prototype.getAttributions=zz.prototype.getAttributions;zz.prototype.getLogo=zz.prototype.getLogo;zz.prototype.getProjection=zz.prototype.getProjection;zz.prototype.getState=zz.prototype.getState;zz.prototype.setAttributions=zz.prototype.setAttributions;zz.prototype.get=zz.prototype.get;zz.prototype.getKeys=
zz.prototype.getKeys;zz.prototype.getProperties=zz.prototype.getProperties;zz.prototype.set=zz.prototype.set;zz.prototype.setProperties=zz.prototype.setProperties;zz.prototype.unset=zz.prototype.unset;zz.prototype.changed=zz.prototype.changed;zz.prototype.dispatchEvent=zz.prototype.dispatchEvent;zz.prototype.getRevision=zz.prototype.getRevision;zz.prototype.on=zz.prototype.on;zz.prototype.once=zz.prototype.once;zz.prototype.un=zz.prototype.un;Az.prototype.getTileGrid=Az.prototype.getTileGrid;Az.prototype.refresh=
Az.prototype.refresh;Az.prototype.getAttributions=Az.prototype.getAttributions;Az.prototype.getLogo=Az.prototype.getLogo;Az.prototype.getProjection=Az.prototype.getProjection;Az.prototype.getState=Az.prototype.getState;Az.prototype.setAttributions=Az.prototype.setAttributions;Az.prototype.get=Az.prototype.get;Az.prototype.getKeys=Az.prototype.getKeys;Az.prototype.getProperties=Az.prototype.getProperties;Az.prototype.set=Az.prototype.set;Az.prototype.setProperties=Az.prototype.setProperties;Az.prototype.unset=
Az.prototype.unset;Az.prototype.changed=Az.prototype.changed;Az.prototype.dispatchEvent=Az.prototype.dispatchEvent;Az.prototype.getRevision=Az.prototype.getRevision;Az.prototype.on=Az.prototype.on;Az.prototype.once=Az.prototype.once;Az.prototype.un=Az.prototype.un;Cz.prototype.setRenderReprojectionEdges=Cz.prototype.setRenderReprojectionEdges;Cz.prototype.setTileGridForProjection=Cz.prototype.setTileGridForProjection;Cz.prototype.getTileLoadFunction=Cz.prototype.getTileLoadFunction;Cz.prototype.getTileUrlFunction=
Cz.prototype.getTileUrlFunction;Cz.prototype.getUrls=Cz.prototype.getUrls;Cz.prototype.setTileLoadFunction=Cz.prototype.setTileLoadFunction;Cz.prototype.setTileUrlFunction=Cz.prototype.setTileUrlFunction;Cz.prototype.setUrl=Cz.prototype.setUrl;Cz.prototype.setUrls=Cz.prototype.setUrls;Cz.prototype.getTileGrid=Cz.prototype.getTileGrid;Cz.prototype.refresh=Cz.prototype.refresh;Cz.prototype.getAttributions=Cz.prototype.getAttributions;Cz.prototype.getLogo=Cz.prototype.getLogo;Cz.prototype.getProjection=
Cz.prototype.getProjection;Cz.prototype.getState=Cz.prototype.getState;Cz.prototype.setAttributions=Cz.prototype.setAttributions;Cz.prototype.get=Cz.prototype.get;Cz.prototype.getKeys=Cz.prototype.getKeys;Cz.prototype.getProperties=Cz.prototype.getProperties;Cz.prototype.set=Cz.prototype.set;Cz.prototype.setProperties=Cz.prototype.setProperties;Cz.prototype.unset=Cz.prototype.unset;Cz.prototype.changed=Cz.prototype.changed;Cz.prototype.dispatchEvent=Cz.prototype.dispatchEvent;Cz.prototype.getRevision=
Cz.prototype.getRevision;Cz.prototype.on=Cz.prototype.on;Cz.prototype.once=Cz.prototype.once;Cz.prototype.un=Cz.prototype.un;Dz.prototype.getTileGrid=Dz.prototype.getTileGrid;Dz.prototype.refresh=Dz.prototype.refresh;Dz.prototype.getAttributions=Dz.prototype.getAttributions;Dz.prototype.getLogo=Dz.prototype.getLogo;Dz.prototype.getProjection=Dz.prototype.getProjection;Dz.prototype.getState=Dz.prototype.getState;Dz.prototype.setAttributions=Dz.prototype.setAttributions;Dz.prototype.get=Dz.prototype.get;
Dz.prototype.getKeys=Dz.prototype.getKeys;Dz.prototype.getProperties=Dz.prototype.getProperties;Dz.prototype.set=Dz.prototype.set;Dz.prototype.setProperties=Dz.prototype.setProperties;Dz.prototype.unset=Dz.prototype.unset;Dz.prototype.changed=Dz.prototype.changed;Dz.prototype.dispatchEvent=Dz.prototype.dispatchEvent;Dz.prototype.getRevision=Dz.prototype.getRevision;Dz.prototype.on=Dz.prototype.on;Dz.prototype.once=Dz.prototype.once;Dz.prototype.un=Dz.prototype.un;Du.prototype.setRenderReprojectionEdges=
Du.prototype.setRenderReprojectionEdges;Du.prototype.setTileGridForProjection=Du.prototype.setTileGridForProjection;Du.prototype.getTileLoadFunction=Du.prototype.getTileLoadFunction;Du.prototype.getTileUrlFunction=Du.prototype.getTileUrlFunction;Du.prototype.getUrls=Du.prototype.getUrls;Du.prototype.setTileLoadFunction=Du.prototype.setTileLoadFunction;Du.prototype.setTileUrlFunction=Du.prototype.setTileUrlFunction;Du.prototype.setUrl=Du.prototype.setUrl;Du.prototype.setUrls=Du.prototype.setUrls;Du.prototype.getTileGrid=
Du.prototype.getTileGrid;Du.prototype.refresh=Du.prototype.refresh;Du.prototype.getAttributions=Du.prototype.getAttributions;Du.prototype.getLogo=Du.prototype.getLogo;Du.prototype.getProjection=Du.prototype.getProjection;Du.prototype.getState=Du.prototype.getState;Du.prototype.setAttributions=Du.prototype.setAttributions;Du.prototype.get=Du.prototype.get;Du.prototype.getKeys=Du.prototype.getKeys;Du.prototype.getProperties=Du.prototype.getProperties;Du.prototype.set=Du.prototype.set;Du.prototype.setProperties=
Du.prototype.setProperties;Du.prototype.unset=Du.prototype.unset;Du.prototype.changed=Du.prototype.changed;Du.prototype.dispatchEvent=Du.prototype.dispatchEvent;Du.prototype.getRevision=Du.prototype.getRevision;Du.prototype.on=Du.prototype.on;Du.prototype.once=Du.prototype.once;Du.prototype.un=Du.prototype.un;yt.prototype.type=yt.prototype.type;yt.prototype.target=yt.prototype.target;Iz.prototype.getTileLoadFunction=Iz.prototype.getTileLoadFunction;Iz.prototype.getTileUrlFunction=Iz.prototype.getTileUrlFunction;
Iz.prototype.getUrls=Iz.prototype.getUrls;Iz.prototype.setTileLoadFunction=Iz.prototype.setTileLoadFunction;Iz.prototype.setTileUrlFunction=Iz.prototype.setTileUrlFunction;Iz.prototype.setUrl=Iz.prototype.setUrl;Iz.prototype.setUrls=Iz.prototype.setUrls;Iz.prototype.getTileGrid=Iz.prototype.getTileGrid;Iz.prototype.refresh=Iz.prototype.refresh;Iz.prototype.getAttributions=Iz.prototype.getAttributions;Iz.prototype.getLogo=Iz.prototype.getLogo;Iz.prototype.getProjection=Iz.prototype.getProjection;Iz.prototype.getState=
Iz.prototype.getState;Iz.prototype.setAttributions=Iz.prototype.setAttributions;Iz.prototype.get=Iz.prototype.get;Iz.prototype.getKeys=Iz.prototype.getKeys;Iz.prototype.getProperties=Iz.prototype.getProperties;Iz.prototype.set=Iz.prototype.set;Iz.prototype.setProperties=Iz.prototype.setProperties;Iz.prototype.unset=Iz.prototype.unset;Iz.prototype.changed=Iz.prototype.changed;Iz.prototype.dispatchEvent=Iz.prototype.dispatchEvent;Iz.prototype.getRevision=Iz.prototype.getRevision;Iz.prototype.on=Iz.prototype.on;
Iz.prototype.once=Iz.prototype.once;Iz.prototype.un=Iz.prototype.un;gv.prototype.setRenderReprojectionEdges=gv.prototype.setRenderReprojectionEdges;gv.prototype.setTileGridForProjection=gv.prototype.setTileGridForProjection;gv.prototype.getTileLoadFunction=gv.prototype.getTileLoadFunction;gv.prototype.getTileUrlFunction=gv.prototype.getTileUrlFunction;gv.prototype.getUrls=gv.prototype.getUrls;gv.prototype.setTileLoadFunction=gv.prototype.setTileLoadFunction;gv.prototype.setTileUrlFunction=gv.prototype.setTileUrlFunction;
gv.prototype.setUrl=gv.prototype.setUrl;gv.prototype.setUrls=gv.prototype.setUrls;gv.prototype.getTileGrid=gv.prototype.getTileGrid;gv.prototype.refresh=gv.prototype.refresh;gv.prototype.getAttributions=gv.prototype.getAttributions;gv.prototype.getLogo=gv.prototype.getLogo;gv.prototype.getProjection=gv.prototype.getProjection;gv.prototype.getState=gv.prototype.getState;gv.prototype.setAttributions=gv.prototype.setAttributions;gv.prototype.get=gv.prototype.get;gv.prototype.getKeys=gv.prototype.getKeys;
gv.prototype.getProperties=gv.prototype.getProperties;gv.prototype.set=gv.prototype.set;gv.prototype.setProperties=gv.prototype.setProperties;gv.prototype.unset=gv.prototype.unset;gv.prototype.changed=gv.prototype.changed;gv.prototype.dispatchEvent=gv.prototype.dispatchEvent;gv.prototype.getRevision=gv.prototype.getRevision;gv.prototype.on=gv.prototype.on;gv.prototype.once=gv.prototype.once;gv.prototype.un=gv.prototype.un;Jz.prototype.setRenderReprojectionEdges=Jz.prototype.setRenderReprojectionEdges;
Jz.prototype.setTileGridForProjection=Jz.prototype.setTileGridForProjection;Jz.prototype.getTileLoadFunction=Jz.prototype.getTileLoadFunction;Jz.prototype.getTileUrlFunction=Jz.prototype.getTileUrlFunction;Jz.prototype.getUrls=Jz.prototype.getUrls;Jz.prototype.setTileLoadFunction=Jz.prototype.setTileLoadFunction;Jz.prototype.setTileUrlFunction=Jz.prototype.setTileUrlFunction;Jz.prototype.setUrl=Jz.prototype.setUrl;Jz.prototype.setUrls=Jz.prototype.setUrls;Jz.prototype.getTileGrid=Jz.prototype.getTileGrid;
Jz.prototype.refresh=Jz.prototype.refresh;Jz.prototype.getAttributions=Jz.prototype.getAttributions;Jz.prototype.getLogo=Jz.prototype.getLogo;Jz.prototype.getProjection=Jz.prototype.getProjection;Jz.prototype.getState=Jz.prototype.getState;Jz.prototype.setAttributions=Jz.prototype.setAttributions;Jz.prototype.get=Jz.prototype.get;Jz.prototype.getKeys=Jz.prototype.getKeys;Jz.prototype.getProperties=Jz.prototype.getProperties;Jz.prototype.set=Jz.prototype.set;Jz.prototype.setProperties=Jz.prototype.setProperties;
Jz.prototype.unset=Jz.prototype.unset;Jz.prototype.changed=Jz.prototype.changed;Jz.prototype.dispatchEvent=Jz.prototype.dispatchEvent;Jz.prototype.getRevision=Jz.prototype.getRevision;Jz.prototype.on=Jz.prototype.on;Jz.prototype.once=Jz.prototype.once;Jz.prototype.un=Jz.prototype.un;Zt.prototype.getTileCoord=Zt.prototype.getTileCoord;Zt.prototype.load=Zt.prototype.load;M.Control.prototype.getImpl=M.Control.prototype.getImpl;M.Control.prototype.on=M.Control.prototype.on;M.Control.prototype.once=M.Control.prototype.once;
M.Control.prototype.un=M.Control.prototype.un;M.Control.prototype.fire=M.Control.prototype.fire;M.control.GetFeatureInfo.prototype.name=M.control.GetFeatureInfo.prototype.name;M.control.GetFeatureInfo.prototype.activated=M.control.GetFeatureInfo.prototype.activated;M.control.GetFeatureInfo.prototype.setImpl=M.control.GetFeatureInfo.prototype.setImpl;M.control.GetFeatureInfo.prototype.addTo=M.control.GetFeatureInfo.prototype.addTo;M.control.GetFeatureInfo.prototype.manageActivation=M.control.GetFeatureInfo.prototype.manageActivation;
M.control.GetFeatureInfo.prototype.activate=M.control.GetFeatureInfo.prototype.activate;M.control.GetFeatureInfo.prototype.deactivate=M.control.GetFeatureInfo.prototype.deactivate;M.control.GetFeatureInfo.prototype.getElement=M.control.GetFeatureInfo.prototype.getElement;M.control.GetFeatureInfo.prototype.setPanel=M.control.GetFeatureInfo.prototype.setPanel;M.control.GetFeatureInfo.prototype.getPanel=M.control.GetFeatureInfo.prototype.getPanel;M.control.GetFeatureInfo.prototype.destroy=M.control.GetFeatureInfo.prototype.destroy;
M.control.GetFeatureInfo.prototype.getImpl=M.control.GetFeatureInfo.prototype.getImpl;M.control.GetFeatureInfo.prototype.on=M.control.GetFeatureInfo.prototype.on;M.control.GetFeatureInfo.prototype.once=M.control.GetFeatureInfo.prototype.once;M.control.GetFeatureInfo.prototype.un=M.control.GetFeatureInfo.prototype.un;M.control.GetFeatureInfo.prototype.fire=M.control.GetFeatureInfo.prototype.fire;M.control.LayerSwitcher.prototype.name=M.control.LayerSwitcher.prototype.name;M.control.LayerSwitcher.prototype.activated=
M.control.LayerSwitcher.prototype.activated;M.control.LayerSwitcher.prototype.setImpl=M.control.LayerSwitcher.prototype.setImpl;M.control.LayerSwitcher.prototype.addTo=M.control.LayerSwitcher.prototype.addTo;M.control.LayerSwitcher.prototype.manageActivation=M.control.LayerSwitcher.prototype.manageActivation;M.control.LayerSwitcher.prototype.getActivationButton=M.control.LayerSwitcher.prototype.getActivationButton;M.control.LayerSwitcher.prototype.activate=M.control.LayerSwitcher.prototype.activate;
M.control.LayerSwitcher.prototype.deactivate=M.control.LayerSwitcher.prototype.deactivate;M.control.LayerSwitcher.prototype.getElement=M.control.LayerSwitcher.prototype.getElement;M.control.LayerSwitcher.prototype.setPanel=M.control.LayerSwitcher.prototype.setPanel;M.control.LayerSwitcher.prototype.getPanel=M.control.LayerSwitcher.prototype.getPanel;M.control.LayerSwitcher.prototype.destroy=M.control.LayerSwitcher.prototype.destroy;M.control.LayerSwitcher.prototype.getImpl=M.control.LayerSwitcher.prototype.getImpl;
M.control.LayerSwitcher.prototype.on=M.control.LayerSwitcher.prototype.on;M.control.LayerSwitcher.prototype.once=M.control.LayerSwitcher.prototype.once;M.control.LayerSwitcher.prototype.un=M.control.LayerSwitcher.prototype.un;M.control.LayerSwitcher.prototype.fire=M.control.LayerSwitcher.prototype.fire;M.control.Location.prototype.name=M.control.Location.prototype.name;M.control.Location.prototype.activated=M.control.Location.prototype.activated;M.control.Location.prototype.setImpl=M.control.Location.prototype.setImpl;
M.control.Location.prototype.addTo=M.control.Location.prototype.addTo;M.control.Location.prototype.manageActivation=M.control.Location.prototype.manageActivation;M.control.Location.prototype.activate=M.control.Location.prototype.activate;M.control.Location.prototype.deactivate=M.control.Location.prototype.deactivate;M.control.Location.prototype.getElement=M.control.Location.prototype.getElement;M.control.Location.prototype.setPanel=M.control.Location.prototype.setPanel;M.control.Location.prototype.getPanel=
M.control.Location.prototype.getPanel;M.control.Location.prototype.destroy=M.control.Location.prototype.destroy;M.control.Location.prototype.getImpl=M.control.Location.prototype.getImpl;M.control.Location.prototype.on=M.control.Location.prototype.on;M.control.Location.prototype.once=M.control.Location.prototype.once;M.control.Location.prototype.un=M.control.Location.prototype.un;M.control.Location.prototype.fire=M.control.Location.prototype.fire;M.control.Mouse.prototype.name=M.control.Mouse.prototype.name;
M.control.Mouse.prototype.activated=M.control.Mouse.prototype.activated;M.control.Mouse.prototype.setImpl=M.control.Mouse.prototype.setImpl;M.control.Mouse.prototype.addTo=M.control.Mouse.prototype.addTo;M.control.Mouse.prototype.manageActivation=M.control.Mouse.prototype.manageActivation;M.control.Mouse.prototype.getActivationButton=M.control.Mouse.prototype.getActivationButton;M.control.Mouse.prototype.activate=M.control.Mouse.prototype.activate;M.control.Mouse.prototype.deactivate=M.control.Mouse.prototype.deactivate;
M.control.Mouse.prototype.getElement=M.control.Mouse.prototype.getElement;M.control.Mouse.prototype.setPanel=M.control.Mouse.prototype.setPanel;M.control.Mouse.prototype.getPanel=M.control.Mouse.prototype.getPanel;M.control.Mouse.prototype.destroy=M.control.Mouse.prototype.destroy;M.control.Mouse.prototype.getImpl=M.control.Mouse.prototype.getImpl;M.control.Mouse.prototype.on=M.control.Mouse.prototype.on;M.control.Mouse.prototype.once=M.control.Mouse.prototype.once;M.control.Mouse.prototype.un=M.control.Mouse.prototype.un;
M.control.Mouse.prototype.fire=M.control.Mouse.prototype.fire;M.control.Navtoolbar.prototype.name=M.control.Navtoolbar.prototype.name;M.control.Navtoolbar.prototype.activated=M.control.Navtoolbar.prototype.activated;M.control.Navtoolbar.prototype.setImpl=M.control.Navtoolbar.prototype.setImpl;M.control.Navtoolbar.prototype.addTo=M.control.Navtoolbar.prototype.addTo;M.control.Navtoolbar.prototype.manageActivation=M.control.Navtoolbar.prototype.manageActivation;M.control.Navtoolbar.prototype.getActivationButton=
M.control.Navtoolbar.prototype.getActivationButton;M.control.Navtoolbar.prototype.activate=M.control.Navtoolbar.prototype.activate;M.control.Navtoolbar.prototype.deactivate=M.control.Navtoolbar.prototype.deactivate;M.control.Navtoolbar.prototype.getElement=M.control.Navtoolbar.prototype.getElement;M.control.Navtoolbar.prototype.setPanel=M.control.Navtoolbar.prototype.setPanel;M.control.Navtoolbar.prototype.getPanel=M.control.Navtoolbar.prototype.getPanel;M.control.Navtoolbar.prototype.destroy=M.control.Navtoolbar.prototype.destroy;
M.control.Navtoolbar.prototype.getImpl=M.control.Navtoolbar.prototype.getImpl;M.control.Navtoolbar.prototype.on=M.control.Navtoolbar.prototype.on;M.control.Navtoolbar.prototype.once=M.control.Navtoolbar.prototype.once;M.control.Navtoolbar.prototype.un=M.control.Navtoolbar.prototype.un;M.control.Navtoolbar.prototype.fire=M.control.Navtoolbar.prototype.fire;M.control.OverviewMap.prototype.name=M.control.OverviewMap.prototype.name;M.control.OverviewMap.prototype.activated=M.control.OverviewMap.prototype.activated;
M.control.OverviewMap.prototype.setImpl=M.control.OverviewMap.prototype.setImpl;M.control.OverviewMap.prototype.addTo=M.control.OverviewMap.prototype.addTo;M.control.OverviewMap.prototype.manageActivation=M.control.OverviewMap.prototype.manageActivation;M.control.OverviewMap.prototype.getActivationButton=M.control.OverviewMap.prototype.getActivationButton;M.control.OverviewMap.prototype.activate=M.control.OverviewMap.prototype.activate;M.control.OverviewMap.prototype.deactivate=M.control.OverviewMap.prototype.deactivate;
M.control.OverviewMap.prototype.getElement=M.control.OverviewMap.prototype.getElement;M.control.OverviewMap.prototype.setPanel=M.control.OverviewMap.prototype.setPanel;M.control.OverviewMap.prototype.getPanel=M.control.OverviewMap.prototype.getPanel;M.control.OverviewMap.prototype.destroy=M.control.OverviewMap.prototype.destroy;M.control.OverviewMap.prototype.getImpl=M.control.OverviewMap.prototype.getImpl;M.control.OverviewMap.prototype.on=M.control.OverviewMap.prototype.on;M.control.OverviewMap.prototype.once=
M.control.OverviewMap.prototype.once;M.control.OverviewMap.prototype.un=M.control.OverviewMap.prototype.un;M.control.OverviewMap.prototype.fire=M.control.OverviewMap.prototype.fire;M.control.Panzoom.prototype.name=M.control.Panzoom.prototype.name;M.control.Panzoom.prototype.activated=M.control.Panzoom.prototype.activated;M.control.Panzoom.prototype.setImpl=M.control.Panzoom.prototype.setImpl;M.control.Panzoom.prototype.addTo=M.control.Panzoom.prototype.addTo;M.control.Panzoom.prototype.manageActivation=
M.control.Panzoom.prototype.manageActivation;M.control.Panzoom.prototype.getActivationButton=M.control.Panzoom.prototype.getActivationButton;M.control.Panzoom.prototype.activate=M.control.Panzoom.prototype.activate;M.control.Panzoom.prototype.deactivate=M.control.Panzoom.prototype.deactivate;M.control.Panzoom.prototype.getElement=M.control.Panzoom.prototype.getElement;M.control.Panzoom.prototype.setPanel=M.control.Panzoom.prototype.setPanel;M.control.Panzoom.prototype.getPanel=M.control.Panzoom.prototype.getPanel;
M.control.Panzoom.prototype.destroy=M.control.Panzoom.prototype.destroy;M.control.Panzoom.prototype.getImpl=M.control.Panzoom.prototype.getImpl;M.control.Panzoom.prototype.on=M.control.Panzoom.prototype.on;M.control.Panzoom.prototype.once=M.control.Panzoom.prototype.once;M.control.Panzoom.prototype.un=M.control.Panzoom.prototype.un;M.control.Panzoom.prototype.fire=M.control.Panzoom.prototype.fire;M.control.Panzoombar.prototype.name=M.control.Panzoombar.prototype.name;M.control.Panzoombar.prototype.activated=
M.control.Panzoombar.prototype.activated;M.control.Panzoombar.prototype.setImpl=M.control.Panzoombar.prototype.setImpl;M.control.Panzoombar.prototype.addTo=M.control.Panzoombar.prototype.addTo;M.control.Panzoombar.prototype.manageActivation=M.control.Panzoombar.prototype.manageActivation;M.control.Panzoombar.prototype.getActivationButton=M.control.Panzoombar.prototype.getActivationButton;M.control.Panzoombar.prototype.activate=M.control.Panzoombar.prototype.activate;M.control.Panzoombar.prototype.deactivate=
M.control.Panzoombar.prototype.deactivate;M.control.Panzoombar.prototype.getElement=M.control.Panzoombar.prototype.getElement;M.control.Panzoombar.prototype.setPanel=M.control.Panzoombar.prototype.setPanel;M.control.Panzoombar.prototype.getPanel=M.control.Panzoombar.prototype.getPanel;M.control.Panzoombar.prototype.destroy=M.control.Panzoombar.prototype.destroy;M.control.Panzoombar.prototype.getImpl=M.control.Panzoombar.prototype.getImpl;M.control.Panzoombar.prototype.on=M.control.Panzoombar.prototype.on;
M.control.Panzoombar.prototype.once=M.control.Panzoombar.prototype.once;M.control.Panzoombar.prototype.un=M.control.Panzoombar.prototype.un;M.control.Panzoombar.prototype.fire=M.control.Panzoombar.prototype.fire;M.control.Scale.prototype.name=M.control.Scale.prototype.name;M.control.Scale.prototype.activated=M.control.Scale.prototype.activated;M.control.Scale.prototype.setImpl=M.control.Scale.prototype.setImpl;M.control.Scale.prototype.addTo=M.control.Scale.prototype.addTo;M.control.Scale.prototype.manageActivation=
M.control.Scale.prototype.manageActivation;M.control.Scale.prototype.getActivationButton=M.control.Scale.prototype.getActivationButton;M.control.Scale.prototype.activate=M.control.Scale.prototype.activate;M.control.Scale.prototype.deactivate=M.control.Scale.prototype.deactivate;M.control.Scale.prototype.getElement=M.control.Scale.prototype.getElement;M.control.Scale.prototype.setPanel=M.control.Scale.prototype.setPanel;M.control.Scale.prototype.getPanel=M.control.Scale.prototype.getPanel;M.control.Scale.prototype.destroy=
M.control.Scale.prototype.destroy;M.control.Scale.prototype.getImpl=M.control.Scale.prototype.getImpl;M.control.Scale.prototype.on=M.control.Scale.prototype.on;M.control.Scale.prototype.once=M.control.Scale.prototype.once;M.control.Scale.prototype.un=M.control.Scale.prototype.un;M.control.Scale.prototype.fire=M.control.Scale.prototype.fire;M.control.ScaleLine.prototype.name=M.control.ScaleLine.prototype.name;M.control.ScaleLine.prototype.activated=M.control.ScaleLine.prototype.activated;M.control.ScaleLine.prototype.setImpl=
M.control.ScaleLine.prototype.setImpl;M.control.ScaleLine.prototype.addTo=M.control.ScaleLine.prototype.addTo;M.control.ScaleLine.prototype.manageActivation=M.control.ScaleLine.prototype.manageActivation;M.control.ScaleLine.prototype.getActivationButton=M.control.ScaleLine.prototype.getActivationButton;M.control.ScaleLine.prototype.activate=M.control.ScaleLine.prototype.activate;M.control.ScaleLine.prototype.deactivate=M.control.ScaleLine.prototype.deactivate;M.control.ScaleLine.prototype.getElement=
M.control.ScaleLine.prototype.getElement;M.control.ScaleLine.prototype.setPanel=M.control.ScaleLine.prototype.setPanel;M.control.ScaleLine.prototype.getPanel=M.control.ScaleLine.prototype.getPanel;M.control.ScaleLine.prototype.destroy=M.control.ScaleLine.prototype.destroy;M.control.ScaleLine.prototype.getImpl=M.control.ScaleLine.prototype.getImpl;M.control.ScaleLine.prototype.on=M.control.ScaleLine.prototype.on;M.control.ScaleLine.prototype.once=M.control.ScaleLine.prototype.once;M.control.ScaleLine.prototype.un=
M.control.ScaleLine.prototype.un;M.control.ScaleLine.prototype.fire=M.control.ScaleLine.prototype.fire;M.control.WMCSelector.prototype.name=M.control.WMCSelector.prototype.name;M.control.WMCSelector.prototype.activated=M.control.WMCSelector.prototype.activated;M.control.WMCSelector.prototype.setImpl=M.control.WMCSelector.prototype.setImpl;M.control.WMCSelector.prototype.addTo=M.control.WMCSelector.prototype.addTo;M.control.WMCSelector.prototype.manageActivation=M.control.WMCSelector.prototype.manageActivation;
M.control.WMCSelector.prototype.getActivationButton=M.control.WMCSelector.prototype.getActivationButton;M.control.WMCSelector.prototype.activate=M.control.WMCSelector.prototype.activate;M.control.WMCSelector.prototype.deactivate=M.control.WMCSelector.prototype.deactivate;M.control.WMCSelector.prototype.getElement=M.control.WMCSelector.prototype.getElement;M.control.WMCSelector.prototype.setPanel=M.control.WMCSelector.prototype.setPanel;M.control.WMCSelector.prototype.getPanel=M.control.WMCSelector.prototype.getPanel;
M.control.WMCSelector.prototype.destroy=M.control.WMCSelector.prototype.destroy;M.control.WMCSelector.prototype.getImpl=M.control.WMCSelector.prototype.getImpl;M.control.WMCSelector.prototype.on=M.control.WMCSelector.prototype.on;M.control.WMCSelector.prototype.once=M.control.WMCSelector.prototype.once;M.control.WMCSelector.prototype.un=M.control.WMCSelector.prototype.un;M.control.WMCSelector.prototype.fire=M.control.WMCSelector.prototype.fire;Bs.prototype.changed=Bs.prototype.changed;Bs.prototype.dispatchEvent=
Bs.prototype.dispatchEvent;Bs.prototype.getRevision=Bs.prototype.getRevision;Bs.prototype.on=Bs.prototype.on;Bs.prototype.once=Bs.prototype.once;Bs.prototype.un=Bs.prototype.un;V.prototype.read=V.prototype.read;V.prototype.read_root=V.prototype.read_root;V.prototype.runChildNodes=V.prototype.runChildNodes;V.prototype.getNamespacePrefix=V.prototype.getNamespacePrefix;V.prototype.getChildValue=V.prototype.getChildValue;V.prototype.getAttributeNS=V.prototype.getAttributeNS;at.prototype.changed=at.prototype.changed;
at.prototype.dispatchEvent=at.prototype.dispatchEvent;at.prototype.getRevision=at.prototype.getRevision;at.prototype.on=at.prototype.on;at.prototype.once=at.prototype.once;at.prototype.un=at.prototype.un;av.prototype.changed=av.prototype.changed;av.prototype.dispatchEvent=av.prototype.dispatchEvent;av.prototype.getRevision=av.prototype.getRevision;av.prototype.on=av.prototype.on;av.prototype.once=av.prototype.once;av.prototype.un=av.prototype.un;Au.prototype.changed=Au.prototype.changed;Au.prototype.dispatchEvent=
Au.prototype.dispatchEvent;Au.prototype.getRevision=Au.prototype.getRevision;Au.prototype.on=Au.prototype.on;Au.prototype.once=Au.prototype.once;Au.prototype.un=Au.prototype.un;bt.prototype.changed=bt.prototype.changed;bt.prototype.dispatchEvent=bt.prototype.dispatchEvent;bt.prototype.getRevision=bt.prototype.getRevision;bt.prototype.on=bt.prototype.on;bt.prototype.once=bt.prototype.once;bt.prototype.un=bt.prototype.un;Bq.prototype.read=Bq.prototype.read;Bq.prototype.runChildNodes=Bq.prototype.runChildNodes;
Bq.prototype.getNamespacePrefix=Bq.prototype.getNamespacePrefix;Bq.prototype.getChildValue=Bq.prototype.getChildValue;Bq.prototype.getAttributeNS=Bq.prototype.getAttributeNS;Ls.prototype.changed=Ls.prototype.changed;Ls.prototype.dispatchEvent=Ls.prototype.dispatchEvent;Ls.prototype.getRevision=Ls.prototype.getRevision;Ls.prototype.on=Ls.prototype.on;Ls.prototype.once=Ls.prototype.once;Ls.prototype.un=Ls.prototype.un;su.prototype.changed=su.prototype.changed;su.prototype.dispatchEvent=su.prototype.dispatchEvent;
su.prototype.getRevision=su.prototype.getRevision;su.prototype.on=su.prototype.on;su.prototype.once=su.prototype.once;su.prototype.un=su.prototype.un;Wu.prototype.changed=Wu.prototype.changed;Wu.prototype.dispatchEvent=Wu.prototype.dispatchEvent;Wu.prototype.getRevision=Wu.prototype.getRevision;Wu.prototype.on=Wu.prototype.on;Wu.prototype.once=Wu.prototype.once;Wu.prototype.un=Wu.prototype.un;qq.prototype.readFeature=qq.prototype.readFeature;qq.prototype.readFeatures=qq.prototype.readFeatures;qq.prototype.readName=
qq.prototype.readName;qq.prototype.readNetworkLinks=qq.prototype.readNetworkLinks;qq.prototype.readRegion=qq.prototype.readRegion;qq.prototype.readRegionFromNode=qq.prototype.readRegionFromNode;qq.prototype.readProjection=qq.prototype.readProjection;qq.prototype.writeFeatures=qq.prototype.writeFeatures;tu.prototype.changed=tu.prototype.changed;tu.prototype.dispatchEvent=tu.prototype.dispatchEvent;tu.prototype.getRevision=tu.prototype.getRevision;tu.prototype.on=tu.prototype.on;tu.prototype.once=tu.prototype.once;
tu.prototype.un=tu.prototype.un;Us.prototype.changed=Us.prototype.changed;Us.prototype.dispatchEvent=Us.prototype.dispatchEvent;Us.prototype.getRevision=Us.prototype.getRevision;Us.prototype.on=Us.prototype.on;Us.prototype.once=Us.prototype.once;Us.prototype.un=Us.prototype.un;Yy.prototype.changed=Yy.prototype.changed;Yy.prototype.dispatchEvent=Yy.prototype.dispatchEvent;Yy.prototype.getRevision=Yy.prototype.getRevision;Yy.prototype.on=Yy.prototype.on;Yy.prototype.once=Yy.prototype.once;Yy.prototype.un=
Yy.prototype.un;Gn.prototype.getColor=Gn.prototype.getColor;Gn.prototype.setColor=Gn.prototype.setColor;al.prototype.type=al.prototype.type;al.prototype.target=al.prototype.target;Ke.prototype.get=Ke.prototype.get;Ke.prototype.getKeys=Ke.prototype.getKeys;Ke.prototype.getProperties=Ke.prototype.getProperties;Ke.prototype.set=Ke.prototype.set;Ke.prototype.setProperties=Ke.prototype.setProperties;Ke.prototype.unset=Ke.prototype.unset;Ke.prototype.changed=Ke.prototype.changed;Ke.prototype.dispatchEvent=
Ke.prototype.dispatchEvent;Ke.prototype.getRevision=Ke.prototype.getRevision;Ke.prototype.on=Ke.prototype.on;Ke.prototype.once=Ke.prototype.once;Ke.prototype.un=Ke.prototype.un;M.impl.Control.prototype.getMap=M.impl.Control.prototype.getMap;M.impl.Control.prototype.setTarget=M.impl.Control.prototype.setTarget;M.impl.Control.prototype.get=M.impl.Control.prototype.get;M.impl.Control.prototype.getKeys=M.impl.Control.prototype.getKeys;M.impl.Control.prototype.getProperties=M.impl.Control.prototype.getProperties;
M.impl.Control.prototype.set=M.impl.Control.prototype.set;M.impl.Control.prototype.setProperties=M.impl.Control.prototype.setProperties;M.impl.Control.prototype.unset=M.impl.Control.prototype.unset;M.impl.Control.prototype.changed=M.impl.Control.prototype.changed;M.impl.Control.prototype.dispatchEvent=M.impl.Control.prototype.dispatchEvent;M.impl.Control.prototype.getRevision=M.impl.Control.prototype.getRevision;M.impl.Control.prototype.on=M.impl.Control.prototype.on;M.impl.Control.prototype.once=
M.impl.Control.prototype.once;M.impl.Control.prototype.un=M.impl.Control.prototype.un;M.impl.control.GetFeatureInfo.prototype.addTo=M.impl.control.GetFeatureInfo.prototype.addTo;M.impl.control.GetFeatureInfo.prototype.destroy=M.impl.control.GetFeatureInfo.prototype.destroy;M.impl.control.GetFeatureInfo.prototype.getElement=M.impl.control.GetFeatureInfo.prototype.getElement;M.impl.control.GetFeatureInfo.prototype.getMap=M.impl.control.GetFeatureInfo.prototype.getMap;M.impl.control.GetFeatureInfo.prototype.setTarget=
M.impl.control.GetFeatureInfo.prototype.setTarget;M.impl.control.GetFeatureInfo.prototype.get=M.impl.control.GetFeatureInfo.prototype.get;M.impl.control.GetFeatureInfo.prototype.getKeys=M.impl.control.GetFeatureInfo.prototype.getKeys;M.impl.control.GetFeatureInfo.prototype.getProperties=M.impl.control.GetFeatureInfo.prototype.getProperties;M.impl.control.GetFeatureInfo.prototype.set=M.impl.control.GetFeatureInfo.prototype.set;M.impl.control.GetFeatureInfo.prototype.setProperties=M.impl.control.GetFeatureInfo.prototype.setProperties;
M.impl.control.GetFeatureInfo.prototype.unset=M.impl.control.GetFeatureInfo.prototype.unset;M.impl.control.GetFeatureInfo.prototype.changed=M.impl.control.GetFeatureInfo.prototype.changed;M.impl.control.GetFeatureInfo.prototype.dispatchEvent=M.impl.control.GetFeatureInfo.prototype.dispatchEvent;M.impl.control.GetFeatureInfo.prototype.getRevision=M.impl.control.GetFeatureInfo.prototype.getRevision;M.impl.control.GetFeatureInfo.prototype.on=M.impl.control.GetFeatureInfo.prototype.on;M.impl.control.GetFeatureInfo.prototype.once=
M.impl.control.GetFeatureInfo.prototype.once;M.impl.control.GetFeatureInfo.prototype.un=M.impl.control.GetFeatureInfo.prototype.un;M.impl.control.LayerSwitcher.prototype.getMap=M.impl.control.LayerSwitcher.prototype.getMap;M.impl.control.LayerSwitcher.prototype.setTarget=M.impl.control.LayerSwitcher.prototype.setTarget;M.impl.control.LayerSwitcher.prototype.get=M.impl.control.LayerSwitcher.prototype.get;M.impl.control.LayerSwitcher.prototype.getKeys=M.impl.control.LayerSwitcher.prototype.getKeys;
M.impl.control.LayerSwitcher.prototype.getProperties=M.impl.control.LayerSwitcher.prototype.getProperties;M.impl.control.LayerSwitcher.prototype.set=M.impl.control.LayerSwitcher.prototype.set;M.impl.control.LayerSwitcher.prototype.setProperties=M.impl.control.LayerSwitcher.prototype.setProperties;M.impl.control.LayerSwitcher.prototype.unset=M.impl.control.LayerSwitcher.prototype.unset;M.impl.control.LayerSwitcher.prototype.changed=M.impl.control.LayerSwitcher.prototype.changed;M.impl.control.LayerSwitcher.prototype.dispatchEvent=
M.impl.control.LayerSwitcher.prototype.dispatchEvent;M.impl.control.LayerSwitcher.prototype.getRevision=M.impl.control.LayerSwitcher.prototype.getRevision;M.impl.control.LayerSwitcher.prototype.on=M.impl.control.LayerSwitcher.prototype.on;M.impl.control.LayerSwitcher.prototype.once=M.impl.control.LayerSwitcher.prototype.once;M.impl.control.LayerSwitcher.prototype.un=M.impl.control.LayerSwitcher.prototype.un;M.impl.control.Location.prototype.addTo=M.impl.control.Location.prototype.addTo;M.impl.control.Location.prototype.getElement=
M.impl.control.Location.prototype.getElement;M.impl.control.Location.prototype.getMap=M.impl.control.Location.prototype.getMap;M.impl.control.Location.prototype.setTarget=M.impl.control.Location.prototype.setTarget;M.impl.control.Location.prototype.get=M.impl.control.Location.prototype.get;M.impl.control.Location.prototype.getKeys=M.impl.control.Location.prototype.getKeys;M.impl.control.Location.prototype.getProperties=M.impl.control.Location.prototype.getProperties;M.impl.control.Location.prototype.set=
M.impl.control.Location.prototype.set;M.impl.control.Location.prototype.setProperties=M.impl.control.Location.prototype.setProperties;M.impl.control.Location.prototype.unset=M.impl.control.Location.prototype.unset;M.impl.control.Location.prototype.changed=M.impl.control.Location.prototype.changed;M.impl.control.Location.prototype.dispatchEvent=M.impl.control.Location.prototype.dispatchEvent;M.impl.control.Location.prototype.getRevision=M.impl.control.Location.prototype.getRevision;M.impl.control.Location.prototype.on=
M.impl.control.Location.prototype.on;M.impl.control.Location.prototype.once=M.impl.control.Location.prototype.once;M.impl.control.Location.prototype.un=M.impl.control.Location.prototype.un;M.impl.control.Mouse.prototype.getMap=M.impl.control.Mouse.prototype.getMap;M.impl.control.Mouse.prototype.setTarget=M.impl.control.Mouse.prototype.setTarget;M.impl.control.Mouse.prototype.get=M.impl.control.Mouse.prototype.get;M.impl.control.Mouse.prototype.getKeys=M.impl.control.Mouse.prototype.getKeys;M.impl.control.Mouse.prototype.getProperties=
M.impl.control.Mouse.prototype.getProperties;M.impl.control.Mouse.prototype.set=M.impl.control.Mouse.prototype.set;M.impl.control.Mouse.prototype.setProperties=M.impl.control.Mouse.prototype.setProperties;M.impl.control.Mouse.prototype.unset=M.impl.control.Mouse.prototype.unset;M.impl.control.Mouse.prototype.changed=M.impl.control.Mouse.prototype.changed;M.impl.control.Mouse.prototype.dispatchEvent=M.impl.control.Mouse.prototype.dispatchEvent;M.impl.control.Mouse.prototype.getRevision=M.impl.control.Mouse.prototype.getRevision;
M.impl.control.Mouse.prototype.on=M.impl.control.Mouse.prototype.on;M.impl.control.Mouse.prototype.once=M.impl.control.Mouse.prototype.once;M.impl.control.Mouse.prototype.un=M.impl.control.Mouse.prototype.un;M.impl.control.Navtoolbar.prototype.getMap=M.impl.control.Navtoolbar.prototype.getMap;M.impl.control.Navtoolbar.prototype.setTarget=M.impl.control.Navtoolbar.prototype.setTarget;M.impl.control.Navtoolbar.prototype.get=M.impl.control.Navtoolbar.prototype.get;M.impl.control.Navtoolbar.prototype.getKeys=
M.impl.control.Navtoolbar.prototype.getKeys;M.impl.control.Navtoolbar.prototype.getProperties=M.impl.control.Navtoolbar.prototype.getProperties;M.impl.control.Navtoolbar.prototype.set=M.impl.control.Navtoolbar.prototype.set;M.impl.control.Navtoolbar.prototype.setProperties=M.impl.control.Navtoolbar.prototype.setProperties;M.impl.control.Navtoolbar.prototype.unset=M.impl.control.Navtoolbar.prototype.unset;M.impl.control.Navtoolbar.prototype.changed=M.impl.control.Navtoolbar.prototype.changed;M.impl.control.Navtoolbar.prototype.dispatchEvent=
M.impl.control.Navtoolbar.prototype.dispatchEvent;M.impl.control.Navtoolbar.prototype.getRevision=M.impl.control.Navtoolbar.prototype.getRevision;M.impl.control.Navtoolbar.prototype.on=M.impl.control.Navtoolbar.prototype.on;M.impl.control.Navtoolbar.prototype.once=M.impl.control.Navtoolbar.prototype.once;M.impl.control.Navtoolbar.prototype.un=M.impl.control.Navtoolbar.prototype.un;M.impl.control.OverviewMap.prototype.getMap=M.impl.control.OverviewMap.prototype.getMap;M.impl.control.OverviewMap.prototype.setTarget=
M.impl.control.OverviewMap.prototype.setTarget;M.impl.control.OverviewMap.prototype.get=M.impl.control.OverviewMap.prototype.get;M.impl.control.OverviewMap.prototype.getKeys=M.impl.control.OverviewMap.prototype.getKeys;M.impl.control.OverviewMap.prototype.getProperties=M.impl.control.OverviewMap.prototype.getProperties;M.impl.control.OverviewMap.prototype.set=M.impl.control.OverviewMap.prototype.set;M.impl.control.OverviewMap.prototype.setProperties=M.impl.control.OverviewMap.prototype.setProperties;
M.impl.control.OverviewMap.prototype.unset=M.impl.control.OverviewMap.prototype.unset;M.impl.control.OverviewMap.prototype.changed=M.impl.control.OverviewMap.prototype.changed;M.impl.control.OverviewMap.prototype.dispatchEvent=M.impl.control.OverviewMap.prototype.dispatchEvent;M.impl.control.OverviewMap.prototype.getRevision=M.impl.control.OverviewMap.prototype.getRevision;M.impl.control.OverviewMap.prototype.on=M.impl.control.OverviewMap.prototype.on;M.impl.control.OverviewMap.prototype.once=M.impl.control.OverviewMap.prototype.once;
M.impl.control.OverviewMap.prototype.un=M.impl.control.OverviewMap.prototype.un;M.impl.control.Panzoom.prototype.getMap=M.impl.control.Panzoom.prototype.getMap;M.impl.control.Panzoom.prototype.setTarget=M.impl.control.Panzoom.prototype.setTarget;M.impl.control.Panzoom.prototype.get=M.impl.control.Panzoom.prototype.get;M.impl.control.Panzoom.prototype.getKeys=M.impl.control.Panzoom.prototype.getKeys;M.impl.control.Panzoom.prototype.getProperties=M.impl.control.Panzoom.prototype.getProperties;M.impl.control.Panzoom.prototype.set=
M.impl.control.Panzoom.prototype.set;M.impl.control.Panzoom.prototype.setProperties=M.impl.control.Panzoom.prototype.setProperties;M.impl.control.Panzoom.prototype.unset=M.impl.control.Panzoom.prototype.unset;M.impl.control.Panzoom.prototype.changed=M.impl.control.Panzoom.prototype.changed;M.impl.control.Panzoom.prototype.dispatchEvent=M.impl.control.Panzoom.prototype.dispatchEvent;M.impl.control.Panzoom.prototype.getRevision=M.impl.control.Panzoom.prototype.getRevision;M.impl.control.Panzoom.prototype.on=
M.impl.control.Panzoom.prototype.on;M.impl.control.Panzoom.prototype.once=M.impl.control.Panzoom.prototype.once;M.impl.control.Panzoom.prototype.un=M.impl.control.Panzoom.prototype.un;M.impl.control.Panzoombar.prototype.getMap=M.impl.control.Panzoombar.prototype.getMap;M.impl.control.Panzoombar.prototype.setTarget=M.impl.control.Panzoombar.prototype.setTarget;M.impl.control.Panzoombar.prototype.get=M.impl.control.Panzoombar.prototype.get;M.impl.control.Panzoombar.prototype.getKeys=M.impl.control.Panzoombar.prototype.getKeys;
M.impl.control.Panzoombar.prototype.getProperties=M.impl.control.Panzoombar.prototype.getProperties;M.impl.control.Panzoombar.prototype.set=M.impl.control.Panzoombar.prototype.set;M.impl.control.Panzoombar.prototype.setProperties=M.impl.control.Panzoombar.prototype.setProperties;M.impl.control.Panzoombar.prototype.unset=M.impl.control.Panzoombar.prototype.unset;M.impl.control.Panzoombar.prototype.changed=M.impl.control.Panzoombar.prototype.changed;M.impl.control.Panzoombar.prototype.dispatchEvent=
M.impl.control.Panzoombar.prototype.dispatchEvent;M.impl.control.Panzoombar.prototype.getRevision=M.impl.control.Panzoombar.prototype.getRevision;M.impl.control.Panzoombar.prototype.on=M.impl.control.Panzoombar.prototype.on;M.impl.control.Panzoombar.prototype.once=M.impl.control.Panzoombar.prototype.once;M.impl.control.Panzoombar.prototype.un=M.impl.control.Panzoombar.prototype.un;M.impl.control.Scale.prototype.getMap=M.impl.control.Scale.prototype.getMap;M.impl.control.Scale.prototype.setTarget=
M.impl.control.Scale.prototype.setTarget;M.impl.control.Scale.prototype.get=M.impl.control.Scale.prototype.get;M.impl.control.Scale.prototype.getKeys=M.impl.control.Scale.prototype.getKeys;M.impl.control.Scale.prototype.getProperties=M.impl.control.Scale.prototype.getProperties;M.impl.control.Scale.prototype.set=M.impl.control.Scale.prototype.set;M.impl.control.Scale.prototype.setProperties=M.impl.control.Scale.prototype.setProperties;M.impl.control.Scale.prototype.unset=M.impl.control.Scale.prototype.unset;
M.impl.control.Scale.prototype.changed=M.impl.control.Scale.prototype.changed;M.impl.control.Scale.prototype.dispatchEvent=M.impl.control.Scale.prototype.dispatchEvent;M.impl.control.Scale.prototype.getRevision=M.impl.control.Scale.prototype.getRevision;M.impl.control.Scale.prototype.on=M.impl.control.Scale.prototype.on;M.impl.control.Scale.prototype.once=M.impl.control.Scale.prototype.once;M.impl.control.Scale.prototype.un=M.impl.control.Scale.prototype.un;M.impl.control.ScaleLine.prototype.getMap=
M.impl.control.ScaleLine.prototype.getMap;M.impl.control.ScaleLine.prototype.setTarget=M.impl.control.ScaleLine.prototype.setTarget;M.impl.control.ScaleLine.prototype.get=M.impl.control.ScaleLine.prototype.get;M.impl.control.ScaleLine.prototype.getKeys=M.impl.control.ScaleLine.prototype.getKeys;M.impl.control.ScaleLine.prototype.getProperties=M.impl.control.ScaleLine.prototype.getProperties;M.impl.control.ScaleLine.prototype.set=M.impl.control.ScaleLine.prototype.set;M.impl.control.ScaleLine.prototype.setProperties=
M.impl.control.ScaleLine.prototype.setProperties;M.impl.control.ScaleLine.prototype.unset=M.impl.control.ScaleLine.prototype.unset;M.impl.control.ScaleLine.prototype.changed=M.impl.control.ScaleLine.prototype.changed;M.impl.control.ScaleLine.prototype.dispatchEvent=M.impl.control.ScaleLine.prototype.dispatchEvent;M.impl.control.ScaleLine.prototype.getRevision=M.impl.control.ScaleLine.prototype.getRevision;M.impl.control.ScaleLine.prototype.on=M.impl.control.ScaleLine.prototype.on;M.impl.control.ScaleLine.prototype.once=
M.impl.control.ScaleLine.prototype.once;M.impl.control.ScaleLine.prototype.un=M.impl.control.ScaleLine.prototype.un;M.impl.control.WMCSelector.prototype.getMap=M.impl.control.WMCSelector.prototype.getMap;M.impl.control.WMCSelector.prototype.setTarget=M.impl.control.WMCSelector.prototype.setTarget;M.impl.control.WMCSelector.prototype.get=M.impl.control.WMCSelector.prototype.get;M.impl.control.WMCSelector.prototype.getKeys=M.impl.control.WMCSelector.prototype.getKeys;M.impl.control.WMCSelector.prototype.getProperties=
M.impl.control.WMCSelector.prototype.getProperties;M.impl.control.WMCSelector.prototype.set=M.impl.control.WMCSelector.prototype.set;M.impl.control.WMCSelector.prototype.setProperties=M.impl.control.WMCSelector.prototype.setProperties;M.impl.control.WMCSelector.prototype.unset=M.impl.control.WMCSelector.prototype.unset;M.impl.control.WMCSelector.prototype.changed=M.impl.control.WMCSelector.prototype.changed;M.impl.control.WMCSelector.prototype.dispatchEvent=M.impl.control.WMCSelector.prototype.dispatchEvent;
M.impl.control.WMCSelector.prototype.getRevision=M.impl.control.WMCSelector.prototype.getRevision;M.impl.control.WMCSelector.prototype.on=M.impl.control.WMCSelector.prototype.on;M.impl.control.WMCSelector.prototype.once=M.impl.control.WMCSelector.prototype.once;M.impl.control.WMCSelector.prototype.un=M.impl.control.WMCSelector.prototype.un;M.impl.style.OLChart.prototype.getAngle=M.impl.style.OLChart.prototype.getAngle;M.impl.style.OLChart.prototype.getFill=M.impl.style.OLChart.prototype.getFill;M.impl.style.OLChart.prototype.getPoints=
M.impl.style.OLChart.prototype.getPoints;M.impl.style.OLChart.prototype.getRadius=M.impl.style.OLChart.prototype.getRadius;M.impl.style.OLChart.prototype.getRadius2=M.impl.style.OLChart.prototype.getRadius2;M.impl.style.OLChart.prototype.getStroke=M.impl.style.OLChart.prototype.getStroke;M.impl.style.OLChart.prototype.getOpacity=M.impl.style.OLChart.prototype.getOpacity;M.impl.style.OLChart.prototype.getRotateWithView=M.impl.style.OLChart.prototype.getRotateWithView;M.impl.style.OLChart.prototype.getRotation=
M.impl.style.OLChart.prototype.getRotation;M.impl.style.OLChart.prototype.getScale=M.impl.style.OLChart.prototype.getScale;M.impl.style.OLChart.prototype.getSnapToPixel=M.impl.style.OLChart.prototype.getSnapToPixel;M.impl.style.OLChart.prototype.setOpacity=M.impl.style.OLChart.prototype.setOpacity;M.impl.style.OLChart.prototype.setRotation=M.impl.style.OLChart.prototype.setRotation;M.impl.style.OLChart.prototype.setScale=M.impl.style.OLChart.prototype.setScale;$h.prototype.type=$h.prototype.type;
$h.prototype.target=$h.prototype.target;uk.prototype.get=uk.prototype.get;uk.prototype.getKeys=uk.prototype.getKeys;uk.prototype.getProperties=uk.prototype.getProperties;uk.prototype.set=uk.prototype.set;uk.prototype.setProperties=uk.prototype.setProperties;uk.prototype.unset=uk.prototype.unset;uk.prototype.changed=uk.prototype.changed;uk.prototype.dispatchEvent=uk.prototype.dispatchEvent;uk.prototype.getRevision=uk.prototype.getRevision;uk.prototype.on=uk.prototype.on;uk.prototype.once=uk.prototype.once;
uk.prototype.un=uk.prototype.un;wk.prototype.getExtent=wk.prototype.getExtent;wk.prototype.getMaxResolution=wk.prototype.getMaxResolution;wk.prototype.getMinResolution=wk.prototype.getMinResolution;wk.prototype.getOpacity=wk.prototype.getOpacity;wk.prototype.getVisible=wk.prototype.getVisible;wk.prototype.getZIndex=wk.prototype.getZIndex;wk.prototype.setExtent=wk.prototype.setExtent;wk.prototype.setMaxResolution=wk.prototype.setMaxResolution;wk.prototype.setMinResolution=wk.prototype.setMinResolution;
wk.prototype.setOpacity=wk.prototype.setOpacity;wk.prototype.setVisible=wk.prototype.setVisible;wk.prototype.setZIndex=wk.prototype.setZIndex;wk.prototype.get=wk.prototype.get;wk.prototype.getKeys=wk.prototype.getKeys;wk.prototype.getProperties=wk.prototype.getProperties;wk.prototype.set=wk.prototype.set;wk.prototype.setProperties=wk.prototype.setProperties;wk.prototype.unset=wk.prototype.unset;wk.prototype.changed=wk.prototype.changed;wk.prototype.dispatchEvent=wk.prototype.dispatchEvent;wk.prototype.getRevision=
wk.prototype.getRevision;wk.prototype.on=wk.prototype.on;wk.prototype.once=wk.prototype.once;wk.prototype.un=wk.prototype.un;Gk.prototype.getExtent=Gk.prototype.getExtent;Gk.prototype.getMaxResolution=Gk.prototype.getMaxResolution;Gk.prototype.getMinResolution=Gk.prototype.getMinResolution;Gk.prototype.getOpacity=Gk.prototype.getOpacity;Gk.prototype.getVisible=Gk.prototype.getVisible;Gk.prototype.getZIndex=Gk.prototype.getZIndex;Gk.prototype.setExtent=Gk.prototype.setExtent;Gk.prototype.setMaxResolution=
Gk.prototype.setMaxResolution;Gk.prototype.setMinResolution=Gk.prototype.setMinResolution;Gk.prototype.setOpacity=Gk.prototype.setOpacity;Gk.prototype.setVisible=Gk.prototype.setVisible;Gk.prototype.setZIndex=Gk.prototype.setZIndex;Gk.prototype.get=Gk.prototype.get;Gk.prototype.getKeys=Gk.prototype.getKeys;Gk.prototype.getProperties=Gk.prototype.getProperties;Gk.prototype.set=Gk.prototype.set;Gk.prototype.setProperties=Gk.prototype.setProperties;Gk.prototype.unset=Gk.prototype.unset;Gk.prototype.changed=
Gk.prototype.changed;Gk.prototype.dispatchEvent=Gk.prototype.dispatchEvent;Gk.prototype.getRevision=Gk.prototype.getRevision;Gk.prototype.on=Gk.prototype.on;Gk.prototype.once=Gk.prototype.once;Gk.prototype.un=Gk.prototype.un;W.prototype.setMap=W.prototype.setMap;W.prototype.setSource=W.prototype.setSource;W.prototype.getExtent=W.prototype.getExtent;W.prototype.getMaxResolution=W.prototype.getMaxResolution;W.prototype.getMinResolution=W.prototype.getMinResolution;W.prototype.getOpacity=W.prototype.getOpacity;
W.prototype.getVisible=W.prototype.getVisible;W.prototype.getZIndex=W.prototype.getZIndex;W.prototype.setExtent=W.prototype.setExtent;W.prototype.setMaxResolution=W.prototype.setMaxResolution;W.prototype.setMinResolution=W.prototype.setMinResolution;W.prototype.setOpacity=W.prototype.setOpacity;W.prototype.setVisible=W.prototype.setVisible;W.prototype.setZIndex=W.prototype.setZIndex;W.prototype.get=W.prototype.get;W.prototype.getKeys=W.prototype.getKeys;W.prototype.getProperties=W.prototype.getProperties;
W.prototype.set=W.prototype.set;W.prototype.setProperties=W.prototype.setProperties;W.prototype.unset=W.prototype.unset;W.prototype.changed=W.prototype.changed;W.prototype.dispatchEvent=W.prototype.dispatchEvent;W.prototype.getRevision=W.prototype.getRevision;W.prototype.on=W.prototype.on;W.prototype.once=W.prototype.once;W.prototype.un=W.prototype.un;Z.prototype.getSource=Z.prototype.getSource;Z.prototype.getStyle=Z.prototype.getStyle;Z.prototype.getStyleFunction=Z.prototype.getStyleFunction;Z.prototype.setStyle=
Z.prototype.setStyle;Z.prototype.setMap=Z.prototype.setMap;Z.prototype.setSource=Z.prototype.setSource;Z.prototype.getExtent=Z.prototype.getExtent;Z.prototype.getMaxResolution=Z.prototype.getMaxResolution;Z.prototype.getMinResolution=Z.prototype.getMinResolution;Z.prototype.getOpacity=Z.prototype.getOpacity;Z.prototype.getVisible=Z.prototype.getVisible;Z.prototype.getZIndex=Z.prototype.getZIndex;Z.prototype.setExtent=Z.prototype.setExtent;Z.prototype.setMaxResolution=Z.prototype.setMaxResolution;
Z.prototype.setMinResolution=Z.prototype.setMinResolution;Z.prototype.setOpacity=Z.prototype.setOpacity;Z.prototype.setVisible=Z.prototype.setVisible;Z.prototype.setZIndex=Z.prototype.setZIndex;Z.prototype.get=Z.prototype.get;Z.prototype.getKeys=Z.prototype.getKeys;Z.prototype.getProperties=Z.prototype.getProperties;Z.prototype.set=Z.prototype.set;Z.prototype.setProperties=Z.prototype.setProperties;Z.prototype.unset=Z.prototype.unset;Z.prototype.changed=Z.prototype.changed;Z.prototype.dispatchEvent=
Z.prototype.dispatchEvent;Z.prototype.getRevision=Z.prototype.getRevision;Z.prototype.on=Z.prototype.on;Z.prototype.once=Z.prototype.once;Z.prototype.un=Z.prototype.un;dv.prototype.setMap=dv.prototype.setMap;dv.prototype.setSource=dv.prototype.setSource;dv.prototype.getExtent=dv.prototype.getExtent;dv.prototype.getMaxResolution=dv.prototype.getMaxResolution;dv.prototype.getMinResolution=dv.prototype.getMinResolution;dv.prototype.getOpacity=dv.prototype.getOpacity;dv.prototype.getVisible=dv.prototype.getVisible;
dv.prototype.getZIndex=dv.prototype.getZIndex;dv.prototype.setExtent=dv.prototype.setExtent;dv.prototype.setMaxResolution=dv.prototype.setMaxResolution;dv.prototype.setMinResolution=dv.prototype.setMinResolution;dv.prototype.setOpacity=dv.prototype.setOpacity;dv.prototype.setVisible=dv.prototype.setVisible;dv.prototype.setZIndex=dv.prototype.setZIndex;dv.prototype.get=dv.prototype.get;dv.prototype.getKeys=dv.prototype.getKeys;dv.prototype.getProperties=dv.prototype.getProperties;dv.prototype.set=
dv.prototype.set;dv.prototype.setProperties=dv.prototype.setProperties;dv.prototype.unset=dv.prototype.unset;dv.prototype.changed=dv.prototype.changed;dv.prototype.dispatchEvent=dv.prototype.dispatchEvent;dv.prototype.getRevision=dv.prototype.getRevision;dv.prototype.on=dv.prototype.on;dv.prototype.once=dv.prototype.once;dv.prototype.un=dv.prototype.un;Bu.prototype.setMap=Bu.prototype.setMap;Bu.prototype.setSource=Bu.prototype.setSource;Bu.prototype.getExtent=Bu.prototype.getExtent;Bu.prototype.getMaxResolution=
Bu.prototype.getMaxResolution;Bu.prototype.getMinResolution=Bu.prototype.getMinResolution;Bu.prototype.getOpacity=Bu.prototype.getOpacity;Bu.prototype.getVisible=Bu.prototype.getVisible;Bu.prototype.getZIndex=Bu.prototype.getZIndex;Bu.prototype.setExtent=Bu.prototype.setExtent;Bu.prototype.setMaxResolution=Bu.prototype.setMaxResolution;Bu.prototype.setMinResolution=Bu.prototype.setMinResolution;Bu.prototype.setOpacity=Bu.prototype.setOpacity;Bu.prototype.setVisible=Bu.prototype.setVisible;Bu.prototype.setZIndex=
Bu.prototype.setZIndex;Bu.prototype.get=Bu.prototype.get;Bu.prototype.getKeys=Bu.prototype.getKeys;Bu.prototype.getProperties=Bu.prototype.getProperties;Bu.prototype.set=Bu.prototype.set;Bu.prototype.setProperties=Bu.prototype.setProperties;Bu.prototype.unset=Bu.prototype.unset;Bu.prototype.changed=Bu.prototype.changed;Bu.prototype.dispatchEvent=Bu.prototype.dispatchEvent;Bu.prototype.getRevision=Bu.prototype.getRevision;Bu.prototype.on=Bu.prototype.on;Bu.prototype.once=Bu.prototype.once;Bu.prototype.un=
Bu.prototype.un;bz.prototype.getSource=bz.prototype.getSource;bz.prototype.getStyle=bz.prototype.getStyle;bz.prototype.getStyleFunction=bz.prototype.getStyleFunction;bz.prototype.setStyle=bz.prototype.setStyle;bz.prototype.setMap=bz.prototype.setMap;bz.prototype.setSource=bz.prototype.setSource;bz.prototype.getExtent=bz.prototype.getExtent;bz.prototype.getMaxResolution=bz.prototype.getMaxResolution;bz.prototype.getMinResolution=bz.prototype.getMinResolution;bz.prototype.getOpacity=bz.prototype.getOpacity;
bz.prototype.getVisible=bz.prototype.getVisible;bz.prototype.getZIndex=bz.prototype.getZIndex;bz.prototype.setExtent=bz.prototype.setExtent;bz.prototype.setMaxResolution=bz.prototype.setMaxResolution;bz.prototype.setMinResolution=bz.prototype.setMinResolution;bz.prototype.setOpacity=bz.prototype.setOpacity;bz.prototype.setVisible=bz.prototype.setVisible;bz.prototype.setZIndex=bz.prototype.setZIndex;bz.prototype.get=bz.prototype.get;bz.prototype.getKeys=bz.prototype.getKeys;bz.prototype.getProperties=
bz.prototype.getProperties;bz.prototype.set=bz.prototype.set;bz.prototype.setProperties=bz.prototype.setProperties;bz.prototype.unset=bz.prototype.unset;bz.prototype.changed=bz.prototype.changed;bz.prototype.dispatchEvent=bz.prototype.dispatchEvent;bz.prototype.getRevision=bz.prototype.getRevision;bz.prototype.on=bz.prototype.on;bz.prototype.once=bz.prototype.once;bz.prototype.un=bz.prototype.un;qj.prototype.get=qj.prototype.get;qj.prototype.getKeys=qj.prototype.getKeys;qj.prototype.getProperties=
qj.prototype.getProperties;qj.prototype.set=qj.prototype.set;qj.prototype.setProperties=qj.prototype.setProperties;qj.prototype.unset=qj.prototype.unset;qj.prototype.changed=qj.prototype.changed;qj.prototype.dispatchEvent=qj.prototype.dispatchEvent;qj.prototype.getRevision=qj.prototype.getRevision;qj.prototype.on=qj.prototype.on;qj.prototype.once=qj.prototype.once;qj.prototype.un=qj.prototype.un;uj.prototype.getActive=uj.prototype.getActive;uj.prototype.getMap=uj.prototype.getMap;uj.prototype.setActive=
uj.prototype.setActive;uj.prototype.get=uj.prototype.get;uj.prototype.getKeys=uj.prototype.getKeys;uj.prototype.getProperties=uj.prototype.getProperties;uj.prototype.set=uj.prototype.set;uj.prototype.setProperties=uj.prototype.setProperties;uj.prototype.unset=uj.prototype.unset;uj.prototype.changed=uj.prototype.changed;uj.prototype.dispatchEvent=uj.prototype.dispatchEvent;uj.prototype.getRevision=uj.prototype.getRevision;uj.prototype.on=uj.prototype.on;uj.prototype.once=uj.prototype.once;uj.prototype.un=
uj.prototype.un;Nx.prototype.getActive=Nx.prototype.getActive;Nx.prototype.getMap=Nx.prototype.getMap;Nx.prototype.setActive=Nx.prototype.setActive;Nx.prototype.get=Nx.prototype.get;Nx.prototype.getKeys=Nx.prototype.getKeys;Nx.prototype.getProperties=Nx.prototype.getProperties;Nx.prototype.set=Nx.prototype.set;Nx.prototype.setProperties=Nx.prototype.setProperties;Nx.prototype.unset=Nx.prototype.unset;Nx.prototype.changed=Nx.prototype.changed;Nx.prototype.dispatchEvent=Nx.prototype.dispatchEvent;Nx.prototype.getRevision=
Nx.prototype.getRevision;Nx.prototype.on=Nx.prototype.on;Nx.prototype.once=Nx.prototype.once;Nx.prototype.un=Nx.prototype.un;Qx.prototype.type=Qx.prototype.type;Qx.prototype.target=Qx.prototype.target;Fj.prototype.getActive=Fj.prototype.getActive;Fj.prototype.getMap=Fj.prototype.getMap;Fj.prototype.setActive=Fj.prototype.setActive;Fj.prototype.get=Fj.prototype.get;Fj.prototype.getKeys=Fj.prototype.getKeys;Fj.prototype.getProperties=Fj.prototype.getProperties;Fj.prototype.set=Fj.prototype.set;Fj.prototype.setProperties=
Fj.prototype.setProperties;Fj.prototype.unset=Fj.prototype.unset;Fj.prototype.changed=Fj.prototype.changed;Fj.prototype.dispatchEvent=Fj.prototype.dispatchEvent;Fj.prototype.getRevision=Fj.prototype.getRevision;Fj.prototype.on=Fj.prototype.on;Fj.prototype.once=Fj.prototype.once;Fj.prototype.un=Fj.prototype.un;Tj.prototype.getActive=Tj.prototype.getActive;Tj.prototype.getMap=Tj.prototype.getMap;Tj.prototype.setActive=Tj.prototype.setActive;Tj.prototype.get=Tj.prototype.get;Tj.prototype.getKeys=Tj.prototype.getKeys;
Tj.prototype.getProperties=Tj.prototype.getProperties;Tj.prototype.set=Tj.prototype.set;Tj.prototype.setProperties=Tj.prototype.setProperties;Tj.prototype.unset=Tj.prototype.unset;Tj.prototype.changed=Tj.prototype.changed;Tj.prototype.dispatchEvent=Tj.prototype.dispatchEvent;Tj.prototype.getRevision=Tj.prototype.getRevision;Tj.prototype.on=Tj.prototype.on;Tj.prototype.once=Tj.prototype.once;Tj.prototype.un=Tj.prototype.un;Yj.prototype.type=Yj.prototype.type;Yj.prototype.target=Yj.prototype.target;
Jj.prototype.getActive=Jj.prototype.getActive;Jj.prototype.getMap=Jj.prototype.getMap;Jj.prototype.setActive=Jj.prototype.setActive;Jj.prototype.get=Jj.prototype.get;Jj.prototype.getKeys=Jj.prototype.getKeys;Jj.prototype.getProperties=Jj.prototype.getProperties;Jj.prototype.set=Jj.prototype.set;Jj.prototype.setProperties=Jj.prototype.setProperties;Jj.prototype.unset=Jj.prototype.unset;Jj.prototype.changed=Jj.prototype.changed;Jj.prototype.dispatchEvent=Jj.prototype.dispatchEvent;Jj.prototype.getRevision=
Jj.prototype.getRevision;Jj.prototype.on=Jj.prototype.on;Jj.prototype.once=Jj.prototype.once;Jj.prototype.un=Jj.prototype.un;Nj.prototype.getActive=Nj.prototype.getActive;Nj.prototype.getMap=Nj.prototype.getMap;Nj.prototype.setActive=Nj.prototype.setActive;Nj.prototype.get=Nj.prototype.get;Nj.prototype.getKeys=Nj.prototype.getKeys;Nj.prototype.getProperties=Nj.prototype.getProperties;Nj.prototype.set=Nj.prototype.set;Nj.prototype.setProperties=Nj.prototype.setProperties;Nj.prototype.unset=Nj.prototype.unset;
Nj.prototype.changed=Nj.prototype.changed;Nj.prototype.dispatchEvent=Nj.prototype.dispatchEvent;Nj.prototype.getRevision=Nj.prototype.getRevision;Nj.prototype.on=Nj.prototype.on;Nj.prototype.once=Nj.prototype.once;Nj.prototype.un=Nj.prototype.un;Sx.prototype.getActive=Sx.prototype.getActive;Sx.prototype.getMap=Sx.prototype.getMap;Sx.prototype.setActive=Sx.prototype.setActive;Sx.prototype.get=Sx.prototype.get;Sx.prototype.getKeys=Sx.prototype.getKeys;Sx.prototype.getProperties=Sx.prototype.getProperties;
Sx.prototype.set=Sx.prototype.set;Sx.prototype.setProperties=Sx.prototype.setProperties;Sx.prototype.unset=Sx.prototype.unset;Sx.prototype.changed=Sx.prototype.changed;Sx.prototype.dispatchEvent=Sx.prototype.dispatchEvent;Sx.prototype.getRevision=Sx.prototype.getRevision;Sx.prototype.on=Sx.prototype.on;Sx.prototype.once=Sx.prototype.once;Sx.prototype.un=Sx.prototype.un;ck.prototype.getGeometry=ck.prototype.getGeometry;ck.prototype.getActive=ck.prototype.getActive;ck.prototype.getMap=ck.prototype.getMap;
ck.prototype.setActive=ck.prototype.setActive;ck.prototype.get=ck.prototype.get;ck.prototype.getKeys=ck.prototype.getKeys;ck.prototype.getProperties=ck.prototype.getProperties;ck.prototype.set=ck.prototype.set;ck.prototype.setProperties=ck.prototype.setProperties;ck.prototype.unset=ck.prototype.unset;ck.prototype.changed=ck.prototype.changed;ck.prototype.dispatchEvent=ck.prototype.dispatchEvent;ck.prototype.getRevision=ck.prototype.getRevision;ck.prototype.on=ck.prototype.on;ck.prototype.once=ck.prototype.once;
ck.prototype.un=ck.prototype.un;Wx.prototype.getActive=Wx.prototype.getActive;Wx.prototype.getMap=Wx.prototype.getMap;Wx.prototype.setActive=Wx.prototype.setActive;Wx.prototype.get=Wx.prototype.get;Wx.prototype.getKeys=Wx.prototype.getKeys;Wx.prototype.getProperties=Wx.prototype.getProperties;Wx.prototype.set=Wx.prototype.set;Wx.prototype.setProperties=Wx.prototype.setProperties;Wx.prototype.unset=Wx.prototype.unset;Wx.prototype.changed=Wx.prototype.changed;Wx.prototype.dispatchEvent=Wx.prototype.dispatchEvent;
Wx.prototype.getRevision=Wx.prototype.getRevision;Wx.prototype.on=Wx.prototype.on;Wx.prototype.once=Wx.prototype.once;Wx.prototype.un=Wx.prototype.un;jy.prototype.type=jy.prototype.type;jy.prototype.target=jy.prototype.target;ly.prototype.getActive=ly.prototype.getActive;ly.prototype.getMap=ly.prototype.getMap;ly.prototype.setActive=ly.prototype.setActive;ly.prototype.get=ly.prototype.get;ly.prototype.getKeys=ly.prototype.getKeys;ly.prototype.getProperties=ly.prototype.getProperties;ly.prototype.set=
ly.prototype.set;ly.prototype.setProperties=ly.prototype.setProperties;ly.prototype.unset=ly.prototype.unset;ly.prototype.changed=ly.prototype.changed;ly.prototype.dispatchEvent=ly.prototype.dispatchEvent;ly.prototype.getRevision=ly.prototype.getRevision;ly.prototype.on=ly.prototype.on;ly.prototype.once=ly.prototype.once;ly.prototype.un=ly.prototype.un;wy.prototype.type=wy.prototype.type;wy.prototype.target=wy.prototype.target;dk.prototype.getActive=dk.prototype.getActive;dk.prototype.getMap=dk.prototype.getMap;
dk.prototype.setActive=dk.prototype.setActive;dk.prototype.get=dk.prototype.get;dk.prototype.getKeys=dk.prototype.getKeys;dk.prototype.getProperties=dk.prototype.getProperties;dk.prototype.set=dk.prototype.set;dk.prototype.setProperties=dk.prototype.setProperties;dk.prototype.unset=dk.prototype.unset;dk.prototype.changed=dk.prototype.changed;dk.prototype.dispatchEvent=dk.prototype.dispatchEvent;dk.prototype.getRevision=dk.prototype.getRevision;dk.prototype.on=dk.prototype.on;dk.prototype.once=dk.prototype.once;
dk.prototype.un=dk.prototype.un;fk.prototype.getActive=fk.prototype.getActive;fk.prototype.getMap=fk.prototype.getMap;fk.prototype.setActive=fk.prototype.setActive;fk.prototype.get=fk.prototype.get;fk.prototype.getKeys=fk.prototype.getKeys;fk.prototype.getProperties=fk.prototype.getProperties;fk.prototype.set=fk.prototype.set;fk.prototype.setProperties=fk.prototype.setProperties;fk.prototype.unset=fk.prototype.unset;fk.prototype.changed=fk.prototype.changed;fk.prototype.dispatchEvent=fk.prototype.dispatchEvent;
fk.prototype.getRevision=fk.prototype.getRevision;fk.prototype.on=fk.prototype.on;fk.prototype.once=fk.prototype.once;fk.prototype.un=fk.prototype.un;yy.prototype.getActive=yy.prototype.getActive;yy.prototype.getMap=yy.prototype.getMap;yy.prototype.setActive=yy.prototype.setActive;yy.prototype.get=yy.prototype.get;yy.prototype.getKeys=yy.prototype.getKeys;yy.prototype.getProperties=yy.prototype.getProperties;yy.prototype.set=yy.prototype.set;yy.prototype.setProperties=yy.prototype.setProperties;yy.prototype.unset=
yy.prototype.unset;yy.prototype.changed=yy.prototype.changed;yy.prototype.dispatchEvent=yy.prototype.dispatchEvent;yy.prototype.getRevision=yy.prototype.getRevision;yy.prototype.on=yy.prototype.on;yy.prototype.once=yy.prototype.once;yy.prototype.un=yy.prototype.un;Gy.prototype.type=Gy.prototype.type;Gy.prototype.target=Gy.prototype.target;hk.prototype.getActive=hk.prototype.getActive;hk.prototype.getMap=hk.prototype.getMap;hk.prototype.setActive=hk.prototype.setActive;hk.prototype.get=hk.prototype.get;
hk.prototype.getKeys=hk.prototype.getKeys;hk.prototype.getProperties=hk.prototype.getProperties;hk.prototype.set=hk.prototype.set;hk.prototype.setProperties=hk.prototype.setProperties;hk.prototype.unset=hk.prototype.unset;hk.prototype.changed=hk.prototype.changed;hk.prototype.dispatchEvent=hk.prototype.dispatchEvent;hk.prototype.getRevision=hk.prototype.getRevision;hk.prototype.on=hk.prototype.on;hk.prototype.once=hk.prototype.once;hk.prototype.un=hk.prototype.un;lk.prototype.getActive=lk.prototype.getActive;
lk.prototype.getMap=lk.prototype.getMap;lk.prototype.setActive=lk.prototype.setActive;lk.prototype.get=lk.prototype.get;lk.prototype.getKeys=lk.prototype.getKeys;lk.prototype.getProperties=lk.prototype.getProperties;lk.prototype.set=lk.prototype.set;lk.prototype.setProperties=lk.prototype.setProperties;lk.prototype.unset=lk.prototype.unset;lk.prototype.changed=lk.prototype.changed;lk.prototype.dispatchEvent=lk.prototype.dispatchEvent;lk.prototype.getRevision=lk.prototype.getRevision;lk.prototype.on=
lk.prototype.on;lk.prototype.once=lk.prototype.once;lk.prototype.un=lk.prototype.un;pk.prototype.getActive=pk.prototype.getActive;pk.prototype.getMap=pk.prototype.getMap;pk.prototype.setActive=pk.prototype.setActive;pk.prototype.get=pk.prototype.get;pk.prototype.getKeys=pk.prototype.getKeys;pk.prototype.getProperties=pk.prototype.getProperties;pk.prototype.set=pk.prototype.set;pk.prototype.setProperties=pk.prototype.setProperties;pk.prototype.unset=pk.prototype.unset;pk.prototype.changed=pk.prototype.changed;
pk.prototype.dispatchEvent=pk.prototype.dispatchEvent;pk.prototype.getRevision=pk.prototype.getRevision;pk.prototype.on=pk.prototype.on;pk.prototype.once=pk.prototype.once;pk.prototype.un=pk.prototype.un;Bt.prototype.getActive=Bt.prototype.getActive;Bt.prototype.getMap=Bt.prototype.getMap;Bt.prototype.setActive=Bt.prototype.setActive;Bt.prototype.get=Bt.prototype.get;Bt.prototype.getKeys=Bt.prototype.getKeys;Bt.prototype.getProperties=Bt.prototype.getProperties;Bt.prototype.set=Bt.prototype.set;Bt.prototype.setProperties=
Bt.prototype.setProperties;Bt.prototype.unset=Bt.prototype.unset;Bt.prototype.changed=Bt.prototype.changed;Bt.prototype.dispatchEvent=Bt.prototype.dispatchEvent;Bt.prototype.getRevision=Bt.prototype.getRevision;Bt.prototype.on=Bt.prototype.on;Bt.prototype.once=Bt.prototype.once;Bt.prototype.un=Bt.prototype.un;Et.prototype.type=Et.prototype.type;Et.prototype.target=Et.prototype.target;Ny.prototype.getActive=Ny.prototype.getActive;Ny.prototype.getMap=Ny.prototype.getMap;Ny.prototype.setActive=Ny.prototype.setActive;
Ny.prototype.get=Ny.prototype.get;Ny.prototype.getKeys=Ny.prototype.getKeys;Ny.prototype.getProperties=Ny.prototype.getProperties;Ny.prototype.set=Ny.prototype.set;Ny.prototype.setProperties=Ny.prototype.setProperties;Ny.prototype.unset=Ny.prototype.unset;Ny.prototype.changed=Ny.prototype.changed;Ny.prototype.dispatchEvent=Ny.prototype.dispatchEvent;Ny.prototype.getRevision=Ny.prototype.getRevision;Ny.prototype.on=Ny.prototype.on;Ny.prototype.once=Ny.prototype.once;Ny.prototype.un=Ny.prototype.un;
Ry.prototype.getActive=Ry.prototype.getActive;Ry.prototype.getMap=Ry.prototype.getMap;Ry.prototype.setActive=Ry.prototype.setActive;Ry.prototype.get=Ry.prototype.get;Ry.prototype.getKeys=Ry.prototype.getKeys;Ry.prototype.getProperties=Ry.prototype.getProperties;Ry.prototype.set=Ry.prototype.set;Ry.prototype.setProperties=Ry.prototype.setProperties;Ry.prototype.unset=Ry.prototype.unset;Ry.prototype.changed=Ry.prototype.changed;Ry.prototype.dispatchEvent=Ry.prototype.dispatchEvent;Ry.prototype.getRevision=
Ry.prototype.getRevision;Ry.prototype.on=Ry.prototype.on;Ry.prototype.once=Ry.prototype.once;Ry.prototype.un=Ry.prototype.un;Xy.prototype.type=Xy.prototype.type;Xy.prototype.target=Xy.prototype.target;gg.prototype.get=gg.prototype.get;gg.prototype.getKeys=gg.prototype.getKeys;gg.prototype.getProperties=gg.prototype.getProperties;gg.prototype.set=gg.prototype.set;gg.prototype.setProperties=gg.prototype.setProperties;gg.prototype.unset=gg.prototype.unset;gg.prototype.changed=gg.prototype.changed;gg.prototype.dispatchEvent=
gg.prototype.dispatchEvent;gg.prototype.getRevision=gg.prototype.getRevision;gg.prototype.on=gg.prototype.on;gg.prototype.once=gg.prototype.once;gg.prototype.un=gg.prototype.un;Og.prototype.convexHull=Og.prototype.convexHull;Og.prototype.getClosestPoint=Og.prototype.getClosestPoint;Og.prototype.intersectsCoordinate=Og.prototype.intersectsCoordinate;Og.prototype.getExtent=Og.prototype.getExtent;Og.prototype.rotate=Og.prototype.rotate;Og.prototype.scale=Og.prototype.scale;Og.prototype.simplify=Og.prototype.simplify;
Og.prototype.transform=Og.prototype.transform;Og.prototype.get=Og.prototype.get;Og.prototype.getKeys=Og.prototype.getKeys;Og.prototype.getProperties=Og.prototype.getProperties;Og.prototype.set=Og.prototype.set;Og.prototype.setProperties=Og.prototype.setProperties;Og.prototype.unset=Og.prototype.unset;Og.prototype.changed=Og.prototype.changed;Og.prototype.dispatchEvent=Og.prototype.dispatchEvent;Og.prototype.getRevision=Og.prototype.getRevision;Og.prototype.on=Og.prototype.on;Og.prototype.once=Og.prototype.once;
Og.prototype.un=Og.prototype.un;Pn.prototype.getFirstCoordinate=Pn.prototype.getFirstCoordinate;Pn.prototype.getLastCoordinate=Pn.prototype.getLastCoordinate;Pn.prototype.getLayout=Pn.prototype.getLayout;Pn.prototype.rotate=Pn.prototype.rotate;Pn.prototype.scale=Pn.prototype.scale;Pn.prototype.convexHull=Pn.prototype.convexHull;Pn.prototype.getClosestPoint=Pn.prototype.getClosestPoint;Pn.prototype.intersectsCoordinate=Pn.prototype.intersectsCoordinate;Pn.prototype.getExtent=Pn.prototype.getExtent;
Pn.prototype.simplify=Pn.prototype.simplify;Pn.prototype.get=Pn.prototype.get;Pn.prototype.getKeys=Pn.prototype.getKeys;Pn.prototype.getProperties=Pn.prototype.getProperties;Pn.prototype.set=Pn.prototype.set;Pn.prototype.setProperties=Pn.prototype.setProperties;Pn.prototype.unset=Pn.prototype.unset;Pn.prototype.changed=Pn.prototype.changed;Pn.prototype.dispatchEvent=Pn.prototype.dispatchEvent;Pn.prototype.getRevision=Pn.prototype.getRevision;Pn.prototype.on=Pn.prototype.on;Pn.prototype.once=Pn.prototype.once;
Pn.prototype.un=Pn.prototype.un;Fn.prototype.convexHull=Fn.prototype.convexHull;Fn.prototype.getClosestPoint=Fn.prototype.getClosestPoint;Fn.prototype.intersectsCoordinate=Fn.prototype.intersectsCoordinate;Fn.prototype.getExtent=Fn.prototype.getExtent;Fn.prototype.rotate=Fn.prototype.rotate;Fn.prototype.scale=Fn.prototype.scale;Fn.prototype.simplify=Fn.prototype.simplify;Fn.prototype.transform=Fn.prototype.transform;Fn.prototype.get=Fn.prototype.get;Fn.prototype.getKeys=Fn.prototype.getKeys;Fn.prototype.getProperties=
Fn.prototype.getProperties;Fn.prototype.set=Fn.prototype.set;Fn.prototype.setProperties=Fn.prototype.setProperties;Fn.prototype.unset=Fn.prototype.unset;Fn.prototype.changed=Fn.prototype.changed;Fn.prototype.dispatchEvent=Fn.prototype.dispatchEvent;Fn.prototype.getRevision=Fn.prototype.getRevision;Fn.prototype.on=Fn.prototype.on;Fn.prototype.once=Fn.prototype.once;Fn.prototype.un=Fn.prototype.un;Tg.prototype.getFirstCoordinate=Tg.prototype.getFirstCoordinate;Tg.prototype.getLastCoordinate=Tg.prototype.getLastCoordinate;
Tg.prototype.getLayout=Tg.prototype.getLayout;Tg.prototype.rotate=Tg.prototype.rotate;Tg.prototype.scale=Tg.prototype.scale;Tg.prototype.convexHull=Tg.prototype.convexHull;Tg.prototype.getClosestPoint=Tg.prototype.getClosestPoint;Tg.prototype.intersectsCoordinate=Tg.prototype.intersectsCoordinate;Tg.prototype.getExtent=Tg.prototype.getExtent;Tg.prototype.simplify=Tg.prototype.simplify;Tg.prototype.transform=Tg.prototype.transform;Tg.prototype.get=Tg.prototype.get;Tg.prototype.getKeys=Tg.prototype.getKeys;
Tg.prototype.getProperties=Tg.prototype.getProperties;Tg.prototype.set=Tg.prototype.set;Tg.prototype.setProperties=Tg.prototype.setProperties;Tg.prototype.unset=Tg.prototype.unset;Tg.prototype.changed=Tg.prototype.changed;Tg.prototype.dispatchEvent=Tg.prototype.dispatchEvent;Tg.prototype.getRevision=Tg.prototype.getRevision;Tg.prototype.on=Tg.prototype.on;Tg.prototype.once=Tg.prototype.once;Tg.prototype.un=Tg.prototype.un;P.prototype.getFirstCoordinate=P.prototype.getFirstCoordinate;P.prototype.getLastCoordinate=
P.prototype.getLastCoordinate;P.prototype.getLayout=P.prototype.getLayout;P.prototype.rotate=P.prototype.rotate;P.prototype.scale=P.prototype.scale;P.prototype.convexHull=P.prototype.convexHull;P.prototype.getClosestPoint=P.prototype.getClosestPoint;P.prototype.intersectsCoordinate=P.prototype.intersectsCoordinate;P.prototype.getExtent=P.prototype.getExtent;P.prototype.simplify=P.prototype.simplify;P.prototype.transform=P.prototype.transform;P.prototype.get=P.prototype.get;P.prototype.getKeys=P.prototype.getKeys;
P.prototype.getProperties=P.prototype.getProperties;P.prototype.set=P.prototype.set;P.prototype.setProperties=P.prototype.setProperties;P.prototype.unset=P.prototype.unset;P.prototype.changed=P.prototype.changed;P.prototype.dispatchEvent=P.prototype.dispatchEvent;P.prototype.getRevision=P.prototype.getRevision;P.prototype.on=P.prototype.on;P.prototype.once=P.prototype.once;P.prototype.un=P.prototype.un;Q.prototype.getFirstCoordinate=Q.prototype.getFirstCoordinate;Q.prototype.getLastCoordinate=Q.prototype.getLastCoordinate;
Q.prototype.getLayout=Q.prototype.getLayout;Q.prototype.rotate=Q.prototype.rotate;Q.prototype.scale=Q.prototype.scale;Q.prototype.convexHull=Q.prototype.convexHull;Q.prototype.getClosestPoint=Q.prototype.getClosestPoint;Q.prototype.intersectsCoordinate=Q.prototype.intersectsCoordinate;Q.prototype.getExtent=Q.prototype.getExtent;Q.prototype.simplify=Q.prototype.simplify;Q.prototype.transform=Q.prototype.transform;Q.prototype.get=Q.prototype.get;Q.prototype.getKeys=Q.prototype.getKeys;Q.prototype.getProperties=
Q.prototype.getProperties;Q.prototype.set=Q.prototype.set;Q.prototype.setProperties=Q.prototype.setProperties;Q.prototype.unset=Q.prototype.unset;Q.prototype.changed=Q.prototype.changed;Q.prototype.dispatchEvent=Q.prototype.dispatchEvent;Q.prototype.getRevision=Q.prototype.getRevision;Q.prototype.on=Q.prototype.on;Q.prototype.once=Q.prototype.once;Q.prototype.un=Q.prototype.un;Wg.prototype.getFirstCoordinate=Wg.prototype.getFirstCoordinate;Wg.prototype.getLastCoordinate=Wg.prototype.getLastCoordinate;
Wg.prototype.getLayout=Wg.prototype.getLayout;Wg.prototype.rotate=Wg.prototype.rotate;Wg.prototype.scale=Wg.prototype.scale;Wg.prototype.convexHull=Wg.prototype.convexHull;Wg.prototype.getClosestPoint=Wg.prototype.getClosestPoint;Wg.prototype.intersectsCoordinate=Wg.prototype.intersectsCoordinate;Wg.prototype.getExtent=Wg.prototype.getExtent;Wg.prototype.simplify=Wg.prototype.simplify;Wg.prototype.transform=Wg.prototype.transform;Wg.prototype.get=Wg.prototype.get;Wg.prototype.getKeys=Wg.prototype.getKeys;
Wg.prototype.getProperties=Wg.prototype.getProperties;Wg.prototype.set=Wg.prototype.set;Wg.prototype.setProperties=Wg.prototype.setProperties;Wg.prototype.unset=Wg.prototype.unset;Wg.prototype.changed=Wg.prototype.changed;Wg.prototype.dispatchEvent=Wg.prototype.dispatchEvent;Wg.prototype.getRevision=Wg.prototype.getRevision;Wg.prototype.on=Wg.prototype.on;Wg.prototype.once=Wg.prototype.once;Wg.prototype.un=Wg.prototype.un;S.prototype.getFirstCoordinate=S.prototype.getFirstCoordinate;S.prototype.getLastCoordinate=
S.prototype.getLastCoordinate;S.prototype.getLayout=S.prototype.getLayout;S.prototype.rotate=S.prototype.rotate;S.prototype.scale=S.prototype.scale;S.prototype.convexHull=S.prototype.convexHull;S.prototype.getClosestPoint=S.prototype.getClosestPoint;S.prototype.intersectsCoordinate=S.prototype.intersectsCoordinate;S.prototype.getExtent=S.prototype.getExtent;S.prototype.simplify=S.prototype.simplify;S.prototype.transform=S.prototype.transform;S.prototype.get=S.prototype.get;S.prototype.getKeys=S.prototype.getKeys;
S.prototype.getProperties=S.prototype.getProperties;S.prototype.set=S.prototype.set;S.prototype.setProperties=S.prototype.setProperties;S.prototype.unset=S.prototype.unset;S.prototype.changed=S.prototype.changed;S.prototype.dispatchEvent=S.prototype.dispatchEvent;S.prototype.getRevision=S.prototype.getRevision;S.prototype.on=S.prototype.on;S.prototype.once=S.prototype.once;S.prototype.un=S.prototype.un;F.prototype.getFirstCoordinate=F.prototype.getFirstCoordinate;F.prototype.getLastCoordinate=F.prototype.getLastCoordinate;
F.prototype.getLayout=F.prototype.getLayout;F.prototype.rotate=F.prototype.rotate;F.prototype.scale=F.prototype.scale;F.prototype.convexHull=F.prototype.convexHull;F.prototype.getClosestPoint=F.prototype.getClosestPoint;F.prototype.intersectsCoordinate=F.prototype.intersectsCoordinate;F.prototype.getExtent=F.prototype.getExtent;F.prototype.simplify=F.prototype.simplify;F.prototype.transform=F.prototype.transform;F.prototype.get=F.prototype.get;F.prototype.getKeys=F.prototype.getKeys;F.prototype.getProperties=
F.prototype.getProperties;F.prototype.set=F.prototype.set;F.prototype.setProperties=F.prototype.setProperties;F.prototype.unset=F.prototype.unset;F.prototype.changed=F.prototype.changed;F.prototype.dispatchEvent=F.prototype.dispatchEvent;F.prototype.getRevision=F.prototype.getRevision;F.prototype.on=F.prototype.on;F.prototype.once=F.prototype.once;F.prototype.un=F.prototype.un;R.prototype.getFirstCoordinate=R.prototype.getFirstCoordinate;R.prototype.getLastCoordinate=R.prototype.getLastCoordinate;
R.prototype.getLayout=R.prototype.getLayout;R.prototype.rotate=R.prototype.rotate;R.prototype.scale=R.prototype.scale;R.prototype.convexHull=R.prototype.convexHull;R.prototype.getClosestPoint=R.prototype.getClosestPoint;R.prototype.intersectsCoordinate=R.prototype.intersectsCoordinate;R.prototype.getExtent=R.prototype.getExtent;R.prototype.simplify=R.prototype.simplify;R.prototype.transform=R.prototype.transform;R.prototype.get=R.prototype.get;R.prototype.getKeys=R.prototype.getKeys;R.prototype.getProperties=
R.prototype.getProperties;R.prototype.set=R.prototype.set;R.prototype.setProperties=R.prototype.setProperties;R.prototype.unset=R.prototype.unset;R.prototype.changed=R.prototype.changed;R.prototype.dispatchEvent=R.prototype.dispatchEvent;R.prototype.getRevision=R.prototype.getRevision;R.prototype.on=R.prototype.on;R.prototype.once=R.prototype.once;R.prototype.un=R.prototype.un;rh.prototype.readFeatures=rh.prototype.readFeatures;xw.prototype.readFeatures=xw.prototype.readFeatures;rh.prototype.readFeatures=
rh.prototype.readFeatures;gj.prototype.getMap=gj.prototype.getMap;gj.prototype.setTarget=gj.prototype.setTarget;gj.prototype.get=gj.prototype.get;gj.prototype.getKeys=gj.prototype.getKeys;gj.prototype.getProperties=gj.prototype.getProperties;gj.prototype.set=gj.prototype.set;gj.prototype.setProperties=gj.prototype.setProperties;gj.prototype.unset=gj.prototype.unset;gj.prototype.changed=gj.prototype.changed;gj.prototype.dispatchEvent=gj.prototype.dispatchEvent;gj.prototype.getRevision=gj.prototype.getRevision;
gj.prototype.on=gj.prototype.on;gj.prototype.once=gj.prototype.once;gj.prototype.un=gj.prototype.un;ew.prototype.getMap=ew.prototype.getMap;ew.prototype.setTarget=ew.prototype.setTarget;ew.prototype.get=ew.prototype.get;ew.prototype.getKeys=ew.prototype.getKeys;ew.prototype.getProperties=ew.prototype.getProperties;ew.prototype.set=ew.prototype.set;ew.prototype.setProperties=ew.prototype.setProperties;ew.prototype.unset=ew.prototype.unset;ew.prototype.changed=ew.prototype.changed;ew.prototype.dispatchEvent=
ew.prototype.dispatchEvent;ew.prototype.getRevision=ew.prototype.getRevision;ew.prototype.on=ew.prototype.on;ew.prototype.once=ew.prototype.once;ew.prototype.un=ew.prototype.un;Dh.prototype.getMap=Dh.prototype.getMap;Dh.prototype.setTarget=Dh.prototype.setTarget;Dh.prototype.get=Dh.prototype.get;Dh.prototype.getKeys=Dh.prototype.getKeys;Dh.prototype.getProperties=Dh.prototype.getProperties;Dh.prototype.set=Dh.prototype.set;Dh.prototype.setProperties=Dh.prototype.setProperties;Dh.prototype.unset=Dh.prototype.unset;
Dh.prototype.changed=Dh.prototype.changed;Dh.prototype.dispatchEvent=Dh.prototype.dispatchEvent;Dh.prototype.getRevision=Dh.prototype.getRevision;Dh.prototype.on=Dh.prototype.on;Dh.prototype.once=Dh.prototype.once;Dh.prototype.un=Dh.prototype.un;rn.prototype.getMap=rn.prototype.getMap;rn.prototype.setTarget=rn.prototype.setTarget;rn.prototype.get=rn.prototype.get;rn.prototype.getKeys=rn.prototype.getKeys;rn.prototype.getProperties=rn.prototype.getProperties;rn.prototype.set=rn.prototype.set;rn.prototype.setProperties=
rn.prototype.setProperties;rn.prototype.unset=rn.prototype.unset;rn.prototype.changed=rn.prototype.changed;rn.prototype.dispatchEvent=rn.prototype.dispatchEvent;rn.prototype.getRevision=rn.prototype.getRevision;rn.prototype.on=rn.prototype.on;rn.prototype.once=rn.prototype.once;rn.prototype.un=rn.prototype.un;lj.prototype.getMap=lj.prototype.getMap;lj.prototype.setTarget=lj.prototype.setTarget;lj.prototype.get=lj.prototype.get;lj.prototype.getKeys=lj.prototype.getKeys;lj.prototype.getProperties=lj.prototype.getProperties;
lj.prototype.set=lj.prototype.set;lj.prototype.setProperties=lj.prototype.setProperties;lj.prototype.unset=lj.prototype.unset;lj.prototype.changed=lj.prototype.changed;lj.prototype.dispatchEvent=lj.prototype.dispatchEvent;lj.prototype.getRevision=lj.prototype.getRevision;lj.prototype.on=lj.prototype.on;lj.prototype.once=lj.prototype.once;lj.prototype.un=lj.prototype.un;An.prototype.getMap=An.prototype.getMap;An.prototype.setTarget=An.prototype.setTarget;An.prototype.get=An.prototype.get;An.prototype.getKeys=
An.prototype.getKeys;An.prototype.getProperties=An.prototype.getProperties;An.prototype.set=An.prototype.set;An.prototype.setProperties=An.prototype.setProperties;An.prototype.unset=An.prototype.unset;An.prototype.changed=An.prototype.changed;An.prototype.dispatchEvent=An.prototype.dispatchEvent;An.prototype.getRevision=An.prototype.getRevision;An.prototype.on=An.prototype.on;An.prototype.once=An.prototype.once;An.prototype.un=An.prototype.un;nj.prototype.getMap=nj.prototype.getMap;nj.prototype.setTarget=
nj.prototype.setTarget;nj.prototype.get=nj.prototype.get;nj.prototype.getKeys=nj.prototype.getKeys;nj.prototype.getProperties=nj.prototype.getProperties;nj.prototype.set=nj.prototype.set;nj.prototype.setProperties=nj.prototype.setProperties;nj.prototype.unset=nj.prototype.unset;nj.prototype.changed=nj.prototype.changed;nj.prototype.dispatchEvent=nj.prototype.dispatchEvent;nj.prototype.getRevision=nj.prototype.getRevision;nj.prototype.on=nj.prototype.on;nj.prototype.once=nj.prototype.once;nj.prototype.un=
nj.prototype.un;vn.prototype.getMap=vn.prototype.getMap;vn.prototype.setTarget=vn.prototype.setTarget;vn.prototype.get=vn.prototype.get;vn.prototype.getKeys=vn.prototype.getKeys;vn.prototype.getProperties=vn.prototype.getProperties;vn.prototype.set=vn.prototype.set;vn.prototype.setProperties=vn.prototype.setProperties;vn.prototype.unset=vn.prototype.unset;vn.prototype.changed=vn.prototype.changed;vn.prototype.dispatchEvent=vn.prototype.dispatchEvent;vn.prototype.getRevision=vn.prototype.getRevision;
vn.prototype.on=vn.prototype.on;vn.prototype.once=vn.prototype.once;vn.prototype.un=vn.prototype.un;jw.prototype.getMap=jw.prototype.getMap;jw.prototype.setTarget=jw.prototype.setTarget;jw.prototype.get=jw.prototype.get;jw.prototype.getKeys=jw.prototype.getKeys;jw.prototype.getProperties=jw.prototype.getProperties;jw.prototype.set=jw.prototype.set;jw.prototype.setProperties=jw.prototype.setProperties;jw.prototype.unset=jw.prototype.unset;jw.prototype.changed=jw.prototype.changed;jw.prototype.dispatchEvent=
jw.prototype.dispatchEvent;jw.prototype.getRevision=jw.prototype.getRevision;jw.prototype.on=jw.prototype.on;jw.prototype.once=jw.prototype.once;jw.prototype.un=jw.prototype.un;M.impl.style.Chart.prototype.updateFacadeOptions=M.impl.style.Chart.prototype.updateFacadeOptions;M.impl.style.Chart.prototype.applyToLayer=M.impl.style.Chart.prototype.applyToLayer;M.impl.style.Chart.prototype.applyToFeature=M.impl.style.Chart.prototype.applyToFeature;In.prototype.getChecksum=In.prototype.getChecksum;M.impl.style.OLChart.prototype.getChecksum=
M.impl.style.OLChart.prototype.getChecksum;return M});
!function(root,factory){if(typeof Liferay.Loader.define==="function"&&Liferay.Loader.define.amd)Liferay.Loader.define("Handlebars",[],factory);else if(typeof module==="object"&&module.exports)module.exports=factory();else root.Handlebars=factory()}(this,function(){return function(a){function b(d){if(c[d])return c[d].v;var e=c[d]={v:{},id:d,loaded:!1};a[d].call(e.v,e,e.v,b);e.loaded=!0;return e.v}var c={};b.m=a;b.CH=c;b.p="";return b(0)}([function(a,b,c){function d(){var a=q();a.compile=function(b,
c){return m.compile(b,c,a)};a.wm=function(b,c){return m.wm(b,c,a)};a.eF=k["default"];a.vk=m.vk;a.Ar=n["default"];a.Px=l.Be;a.parse=l.parse;return a}var e=c(1)["default"];b.ba=!0;var f=c(2),f=e(f),g=c(21),k=e(g),l=c(22),m=c(27),g=c(28),n=e(g),g=c(25),g=e(g);c=c(20);var e=e(c),q=f["default"].create,f=d();f.create=d;e["default"](f);f.sH=g["default"];f["default"]=f;b["default"]=f;a.v=b["default"]},function(a,b){b["default"]=function(a){return a&&a.ba?a:{"default":a}};b.ba=!0},function(a,b,c){function d(){var a=
new k.nx;n.extend(a,k);a.gH=l["default"];a.NF=m["default"];a.oH=n;a.escapeExpression=n.escapeExpression;a.zk=q;a.template=function(b){return q.template(b,a)};return a}var e=c(3)["default"],f=c(1)["default"];b.ba=!0;var g=c(4),k=e(g),g=c(18),l=f(g),g=c(6),m=f(g),g=c(5),n=e(g),g=c(19),q=e(g);c=c(20);f=f(c);c=d();c.create=d;f["default"](c);c["default"]=c;b["default"]=c;a.v=b["default"]},function(a,b){b["default"]=function(a){if(a&&a.ba)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,
c)&&(b[c]=a[c]);b["default"]=a;return b};b.ba=!0},function(a,b,c){function d(a,b,c){this.Ya=a||{};this.va=b||{};this.ia=c||{};k.nD(this);l.mD(this)}a=c(1)["default"];b.ba=!0;b.nx=d;var e=c(5),f=c(6),g=a(f),k=c(7),l=c(15);c=c(17);c=a(c);b.VERSION="4.0.5";b.tr=7;b.Hn={1:"\x3c\x3d 1.0.rc.2",2:"\x3d\x3d 1.0.0-rc.3",3:"\x3d\x3d 1.0.0-rc.4",4:"\x3d\x3d 1.x.x",5:"\x3d\x3d 2.0.0-alpha.x",6:"\x3e\x3d 2.0.0-beta.1",7:"\x3e\x3d 4.0.0"};d.prototype={constructor:d,BB:c["default"],log:c["default"].log,registerHelper:function(a,
b){if("[object Object]"===e.toString.call(a)){if(b)throw new g["default"]("Arg not supported with multiple helpers");e.extend(this.Ya,a)}else this.Ya[a]=b},unregisterHelper:function(a){delete this.Ya[a]},registerPartial:function(a,b){if("[object Object]"===e.toString.call(a))e.extend(this.va,a);else{if("undefined"===typeof b)throw new g["default"]('Attempting to register a partial called "'+a+'" as undefined');this.va[a]=b}},unregisterPartial:function(a){delete this.va[a]},registerDecorator:function(a,
b){if("[object Object]"===e.toString.call(a)){if(b)throw new g["default"]("Arg not supported with multiple decorators");e.extend(this.ia,a)}else this.ia[a]=b},unregisterDecorator:function(a){delete this.ia[a]}};b.log=c["default"].log;b.Vf=e.Vf;b.BB=c["default"]},function(a,b){function c(a){return"function"===typeof a}function d(a){return f[a]}function e(a){for(var b=1;b<arguments.length;b++)for(var c in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],c)&&(a[c]=arguments[b][c]);return a}
b.ba=!0;b.extend=e;b.indexOf=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1};b.escapeExpression=function(a){if("string"!==typeof a){if(a&&a.toHTML)return a.toHTML();if(null==a)return"";if(!a)return a+"";a=""+a}return k.test(a)?a.replace(g,d):a};b.isEmpty=function(a){return a||0===a?m(a)&&0===a.length?!0:!1:!0};b.Vf=function(a){var b=e({},a);b.qy=a;return b};b.Ha=function(a,b){a.path=b;return a};b.co=function(a,b){return(a?a+".":"")+b};var f={"\x26":"\x26amp;","\x3c":"\x26lt;",
"\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;","`":"\x26#x60;","\x3d":"\x26#x3D;"},g=/[&<>"'`=]/g,k=/[&<>"'`=]/,l=Object.prototype.toString;b.toString=l;c(/x/)&&(b.isFunction=c=function(a){return"function"===typeof a&&"[object Function]"===l.call(a)});b.isFunction=c;var m=Array.isArray||function(a){return a&&"object"===typeof a?"[object Array]"===l.call(a):!1};b.isArray=m},function(a,b){function c(a,b){b=b&&b.da;var e=void 0,f=void 0;b&&(e=b.start.hd,f=b.start.zd,a+=" - "+e+":"+f);a=Error.prototype.constructor.call(this,
a);for(var l=0;l<d.length;l++)this[d[l]]=a[d[l]];Error.captureStackTrace&&Error.captureStackTrace(this,c);b&&(this.lineNumber=e,this.zd=f)}b.ba=!0;var d="description fileName lineNumber message name number stack".split(" ");c.prototype=Error();b["default"]=c;a.v=b["default"]},function(a,b,c){a=c(1)["default"];b.ba=!0;b.nD=function(a){d["default"](a);e["default"](a);f["default"](a);g["default"](a);k["default"](a);l["default"](a);m["default"](a)};b=c(8);var d=a(b);b=c(9);var e=a(b);b=c(10);var f=a(b);
b=c(11);var g=a(b);b=c(12);var k=a(b);b=c(13);var l=a(b);c=c(14);var m=a(c)},function(a,b,c){b.ba=!0;var d=c(5);b["default"]=function(a){a.registerHelper("blockHelperMissing",function(b,c){var e=c.inverse,f=c.fn;if(!0===b)return f(this);if(!1===b||null==b)return e(this);if(d.isArray(b))return 0<b.length?(c.ids&&(c.ids=[c.name]),a.Ya.each(b,c)):e(this);c.data&&c.ids&&(e=d.Vf(c.data),e.Oe=d.co(c.data.Oe,c.name),c={data:e});return f(b,c)})};a.v=b["default"]},function(a,b,c){var d=c(1)["default"];b.ba=
!0;var e=c(5);c=c(6);var f=d(c);b["default"]=function(a){a.registerHelper("each",function(a,b){function c(b,c,f){u&&(u.key=b,u.index=c,u.first=0===c,u.last=!!f,y&&(u.Oe=y+b));l+=d(a[b],{data:u,Ha:e.Ha([a[b],b],[y+b,null])})}if(!b)throw new f["default"]("Must pass iterator to #each");var d=b.fn,g=b.inverse,k=0,l="",u=void 0,y=void 0;b.data&&b.ids&&(y=e.co(b.data.Oe,b.ids[0])+".");e.isFunction(a)&&(a=a.call(this));b.data&&(u=e.Vf(b.data));if(a&&"object"===typeof a)if(e.isArray(a))for(var z=a.length;k<
z;k++)k in a&&c(k,k,k===a.length-1);else{b=void 0;for(z in a)a.hasOwnProperty(z)&&(void 0!==b&&c(b,k-1),b=z,k++);void 0!==b&&c(b,k-1,!0)}0===k&&(l=g(this));return l})};a.v=b["default"]},function(a,b,c){var d=c(1)["default"];b.ba=!0;c=c(6);var e=d(c);b["default"]=function(a){a.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new e["default"]('Missing helper: "'+arguments[arguments.length-1].name+'"');})};a.v=b["default"]},function(a,b,c){b.ba=!0;var d=c(5);b["default"]=function(a){a.registerHelper("if",
function(a,b){d.isFunction(a)&&(a=a.call(this));return!b.hash.zI&&!a||d.isEmpty(a)?b.inverse(this):b.fn(this)});a.registerHelper("unless",function(b,c){return a.Ya["if"].call(this,b,{fn:c.inverse,inverse:c.fn,hash:c.hash})})};a.v=b["default"]},function(a,b){b.ba=!0;b["default"]=function(a){a.registerHelper("log",function(){for(var b=[void 0],c=arguments[arguments.length-1],f=0;f<arguments.length-1;f++)b.push(arguments[f]);f=1;null!=c.hash.level?f=c.hash.level:c.data&&null!=c.data.level&&(f=c.data.level);
b[0]=f;a.log.apply(a,b)})};a.v=b["default"]},function(a,b){b.ba=!0;b["default"]=function(a){a.registerHelper("lookup",function(a,b){return a&&a[b]})};a.v=b["default"]},function(a,b,c){b.ba=!0;var d=c(5);b["default"]=function(a){a.registerHelper("with",function(a,b){d.isFunction(a)&&(a=a.call(this));var c=b.fn;if(d.isEmpty(a))return b.inverse(this);var e=b.data;b.data&&b.ids&&(e=d.Vf(b.data),e.Oe=d.co(b.data.Oe,b.ids[0]));return c(a,{data:e,Ha:d.Ha([a],[e&&e.Oe])})})};a.v=b["default"]},function(a,
b,c){a=c(1)["default"];b.ba=!0;b.mD=function(a){d["default"](a)};b=c(16);var d=a(b)},function(a,b,c){b.ba=!0;var d=c(5);b["default"]=function(a){a.registerDecorator("inline",function(a,b,c,e){var f=a;b.va||(b.va={},f=function(e,f){var g=c.va;c.va=d.extend({},g,b.va);e=a(e,f);c.va=g;return e});b.va[e.wi[0]]=e.fn;return f})};a.v=b["default"]},function(a,b,c){b.ba=!0;var d=c(5),e={xu:["debug","info","warn","error"],level:"info",iu:function(a){if("string"===typeof a){var b=d.indexOf(e.xu,a.toLowerCase());
a=0<=b?b:parseInt(a,10)}return a},log:function(a){a=e.iu(a);if("undefined"!==typeof console&&e.iu(e.level)<=a){var b=e.xu[a];console[b]||(b="log");for(var c=arguments.length,d=Array(1<c?c-1:0),f=1;f<c;f++)d[f-1]=arguments[f];console[b].apply(console,d)}}};b["default"]=e;a.v=b["default"]},function(a,b){function c(a){this.dE=a}b.ba=!0;c.prototype.toString=c.prototype.toHTML=function(){return""+this.dE};b["default"]=c;a.v=b["default"]},function(a,b,c){function d(a,b,c,d,e,f,k){function l(b){var e=1>=
arguments.length||void 0===arguments[1]?{}:arguments[1],g=k;k&&b!==k[0]&&(g=[b].concat(k));return c(a,b,a.Ya,a.va,e.data||d,f&&[e.Ha].concat(f),g)}l=g(c,l,a,k,d,f);l.program=b;l.depth=k?k.length:0;l.Ha=e||0;return l}function e(){return""}function f(a,b){b&&"root"in b||(b=b?n.Vf(b):{},b.root=a);return b}function g(a,b,c,d,e,f){if(a.xo){var g={};b=a.xo(b,g,c,d&&d[0],e,f,d);l.extend(b,g)}return b}var k=c(3)["default"];a=c(1)["default"];b.ba=!0;b.Py=function(a){var b=a&&a[0]||1,c=n.tr;if(b!==c){if(b<
c)throw new m["default"]("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n.Hn[c]+") or downgrade your runtime to an older version ("+n.Hn[b]+").");throw new m["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+a[1]+").");}};b.template=function(a,b){function c(b){function d(b){return""+a.main(e,b,e.Ya,e.va,l,n,m)}
var k=1>=arguments.length||void 0===arguments[1]?{}:arguments[1],l=k.data;c.Un(k);!k.Xu&&a.useData&&(l=f(b,l));var m=void 0,n=a.Fb?[]:void 0;a.Na&&(m=k.Li?b!==k.Li[0]?[b].concat(k.Li):k.Li:[b]);d=g(a.main,d,e,k.Li||[],l,n);return d(b,k)}if(!b)throw new m["default"]("No environment passed to template");if(!a||!a.main)throw new m["default"]("Unknown template object: "+typeof a);a.main.xo=a.HB;b.zk.Py(a.compiler);var e={strict:function(a,b){if(!(b in a))throw new m["default"]('"'+b+'" not defined in '+
a);return a[b]},lookup:function(a,b){for(var c=a.length,d=0;d<c;d++)if(a[d]&&null!=a[d][b])return a[d][b]},lambda:function(a,b){return"function"===typeof a?a.call(b):a},escapeExpression:l.escapeExpression,invokePartial:function(c,d,e){e.hash&&(d=l.extend({},d,e.hash),e.ids&&(e.ids[0]=!0));c=b.zk.ED.call(this,c,0,e);var f=b.zk.invokePartial.call(this,c,d,e);null==f&&b.compile&&(e.va[e.name]=b.compile(c,a.Ty,b),f=e.va[e.name](d,e));if(null!=f){if(e.nj){c=f.split("\n");d=0;for(f=c.length;d<f&&(c[d]||
d+1!==f);d++)c[d]=e.nj+c[d];f=c.join("\n")}return f}throw new m["default"]("The partial "+e.name+" could not be compiled when running in runtime-only mode");},fn:function(b){var c=a[b];c.xo=a[b+"_d"];return c},programs:[],program:function(a,b,c,e,f){var g=this.programs[a],k=this.fn(a);b||f||e||c?g=d(this,a,k,b,c,e,f):g||(g=this.programs[a]=d(this,a,k));return g},data:function(a,b){for(;a&&b--;)a=a.qy;return a},merge:function(a,b){var c=a||b;a&&b&&a!==b&&(c=l.extend({},b,a));return c},noop:b.zk.noop,
compilerInfo:a.compiler};c.HI=!0;c.Un=function(c){if(c.Xu)e.Ya=c.Ya,e.va=c.va,e.ia=c.ia;else if(e.Ya=e.merge(c.Ya,b.Ya),a.Mg&&(e.va=e.merge(c.va,b.va)),a.Mg||a.nk)e.ia=e.merge(c.ia,b.ia)};c.Gr=function(b,c,f,g){if(a.Fb&&!f)throw new m["default"]("must pass block params");if(a.Na&&!g)throw new m["default"]("must pass parent depths");return d(e,b,a[b],c,0,f,g)};return c};b.CJ=d;b.ED=function(a,b,c){a?a.call||c.name||(c.name=a,a=c.va[a]):a="@partial-block"===c.name?c.data["partial-block"]:c.va[c.name];
return a};b.invokePartial=function(a,b,c){c.Xu=!0;c.ids&&(c.data.Oe=c.ids[0]||c.data.Oe);var d=void 0;c.fn&&c.fn!==e&&(c.data=n.Vf(c.data),d=c.data["partial-block"]=c.fn,d.va&&(c.va=l.extend({},c.va,d.va)));void 0===a&&d&&(a=d);if(void 0===a)throw new m["default"]("The partial "+c.name+" could not be found");if(a instanceof Function)return a(b,c)};b.noop=e;b=c(5);var l=k(b);b=c(6);var m=a(b),n=c(4)},function(a,b){(function(c){b.ba=!0;b["default"]=function(a){var b="undefined"!==typeof c?c:window,
d=b.xk;a.noConflict=function(){b.xk===a&&(b.xk=d);return a}};a.v=b["default"]}).call(b,function(){return this}())},function(a,b){b.ba=!0;var c={Ya:{TA:function(a){return"SubExpression"===a.type||("MustacheStatement"===a.type||"BlockStatement"===a.type)&&!!(a.params&&a.params.length||a.hash)},xq:function(a){return/^\.|this\b/.test(a.Ea)},Xv:function(a){return 1===a.Ob.length&&!c.Ya.xq(a)&&!a.depth}}};b["default"]=c;a.v=b["default"]},function(a,b,c){var d=c(1)["default"];a=c(3)["default"];b.ba=!0;b.parse=
function(a,b){if("Program"===a.type)return a;f["default"].Qc=k;k.yb=function(a){return new k.Yx(b&&b.Hq,a)};return(new g["default"](b)).accept(f["default"].parse(a))};var e=c(23),f=d(e),e=c(24),g=d(e),d=c(26);a=a(d);c=c(5);b.Be=f["default"];var k={};c.extend(k,a)},function(a,b){a=function(){function a(){this.Qc={}}var b={trace:function(){},Qc:{},fE:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,
openRawBlock:16,rawBlock_repetition_plus0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,
openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,
hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},dk:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",
54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},kv:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,
1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,1],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],Qp:function(a,b,c,d,l,m){a=m.length-1;switch(l){case 1:return m[a-
1];case 2:this.$=d.gv(m[a]);break;case 3:this.$=m[a];break;case 4:this.$=m[a];break;case 5:this.$=m[a];break;case 6:this.$=m[a];break;case 7:this.$=m[a];break;case 8:this.$=m[a];break;case 9:this.$={type:"CommentStatement",value:d.eE(m[a]),jb:d.Xd(m[a],m[a]),da:d.yb(this.Pa)};break;case 10:this.$={type:"ContentStatement",Ea:m[a],value:m[a],da:d.yb(this.Pa)};break;case 11:this.$=d.MC(m[a-2],m[a-1],m[a],this.Pa);break;case 12:this.$={path:m[a-3],params:m[a-2],hash:m[a-1]};break;case 13:this.$=d.Up(m[a-
3],m[a-2],m[a-1],m[a],!1,this.Pa);break;case 14:this.$=d.Up(m[a-3],m[a-2],m[a-1],m[a],!0,this.Pa);break;case 15:this.$={open:m[a-5],path:m[a-4],params:m[a-3],hash:m[a-2],Ha:m[a-1],jb:d.Xd(m[a-5],m[a])};break;case 16:this.$={path:m[a-4],params:m[a-3],hash:m[a-2],Ha:m[a-1],jb:d.Xd(m[a-5],m[a])};break;case 17:this.$={path:m[a-4],params:m[a-3],hash:m[a-2],Ha:m[a-1],jb:d.Xd(m[a-5],m[a])};break;case 18:this.$={jb:d.Xd(m[a-1],m[a-1]),program:m[a]};break;case 19:l=d.Up(m[a-2],m[a-1],m[a],m[a],!1,this.Pa);
d=d.gv([l],m[a-1].da);d.ms=!0;this.$={jb:m[a-2].jb,program:d,Oy:!0};break;case 20:this.$=m[a];break;case 21:this.$={path:m[a-1],jb:d.Xd(m[a-2],m[a])};break;case 22:this.$=d.ev(m[a-3],m[a-2],m[a-1],m[a-4],d.Xd(m[a-4],m[a]),this.Pa);break;case 23:this.$=d.ev(m[a-3],m[a-2],m[a-1],m[a-4],d.Xd(m[a-4],m[a]),this.Pa);break;case 24:this.$={type:"PartialStatement",name:m[a-3],params:m[a-2],hash:m[a-1],nj:"",jb:d.Xd(m[a-4],m[a]),da:d.yb(this.Pa)};break;case 25:this.$=d.LC(m[a-2],m[a-1],m[a],this.Pa);break;
case 26:this.$={path:m[a-3],params:m[a-2],hash:m[a-1],jb:d.Xd(m[a-4],m[a])};break;case 27:this.$=m[a];break;case 28:this.$=m[a];break;case 29:this.$={type:"SubExpression",path:m[a-3],params:m[a-2],hash:m[a-1],da:d.yb(this.Pa)};break;case 30:this.$={type:"Hash",Tu:m[a],da:d.yb(this.Pa)};break;case 31:this.$={type:"HashPair",key:d.id(m[a-2]),value:m[a],da:d.yb(this.Pa)};break;case 32:this.$=d.id(m[a-1]);break;case 33:this.$=m[a];break;case 34:this.$=m[a];break;case 35:this.$={type:"StringLiteral",value:m[a],
Ea:m[a],da:d.yb(this.Pa)};break;case 36:this.$={type:"NumberLiteral",value:Number(m[a]),Ea:Number(m[a]),da:d.yb(this.Pa)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===m[a],Ea:"true"===m[a],da:d.yb(this.Pa)};break;case 38:this.$={type:"UndefinedLiteral",Ea:void 0,value:void 0,da:d.yb(this.Pa)};break;case 39:this.$={type:"NullLiteral",Ea:null,value:null,da:d.yb(this.Pa)};break;case 40:this.$=m[a];break;case 41:this.$=m[a];break;case 42:this.$=d.fv(!0,m[a],this.Pa);break;case 43:this.$=
d.fv(!1,m[a],this.Pa);break;case 44:m[a-2].push({Wu:d.id(m[a]),Ea:m[a],separator:m[a-1]});this.$=m[a-2];break;case 45:this.$=[{Wu:d.id(m[a]),Ea:m[a]}];break;case 46:this.$=[];break;case 47:m[a-1].push(m[a]);break;case 48:this.$=[m[a]];break;case 49:m[a-1].push(m[a]);break;case 50:this.$=[];break;case 51:m[a-1].push(m[a]);break;case 58:this.$=[];break;case 59:m[a-1].push(m[a]);break;case 64:this.$=[];break;case 65:m[a-1].push(m[a]);break;case 70:this.$=[];break;case 71:m[a-1].push(m[a]);break;case 78:this.$=
[];break;case 79:m[a-1].push(m[a]);break;case 82:this.$=[];break;case 83:m[a-1].push(m[a]);break;case 86:this.$=[];break;case 87:m[a-1].push(m[a]);break;case 90:this.$=[];break;case 91:m[a-1].push(m[a]);break;case 94:this.$=[];break;case 95:m[a-1].push(m[a]);break;case 98:this.$=[m[a]];break;case 99:m[a-1].push(m[a]);break;case 100:this.$=[m[a]];break;case 101:m[a-1].push(m[a])}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},
{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,
4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],
47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,
46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{13:40,15:[1,20],17:39},{20:42,56:41,64:43,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:45,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:46,
72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:48,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:42,56:49,64:43,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:50,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,
33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,
36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],
82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,51]},{72:[1,35],86:52},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:53,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:54,38:56,39:[1,58],43:57,44:[1,59],45:55,47:[2,54]},{28:60,43:61,44:[1,59],47:[2,56]},{13:63,15:[1,20],18:[1,62]},{15:[2,48],18:[2,48]},{33:[2,86],57:64,65:[2,86],72:[2,86],80:[2,86],81:[2,
86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:65,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:66,47:[1,67]},{30:68,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:69,65:[2,64],72:[2,64],75:[2,64],80:[2,
64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:70,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:71,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:75,33:[2,80],50:72,63:73,64:76,65:[1,44],69:74,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,80]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,
42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,51]},{20:75,53:81,54:[2,84],63:82,64:76,65:[1,44],69:83,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:84,47:[1,67]},{47:[2,55]},{4:85,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:86,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:87,6:3,14:[2,46],15:[2,
46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:88,47:[1,67]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:75,33:[2,88],58:89,63:90,64:76,65:[1,44],69:91,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:92,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,
94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:93,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,31:94,33:[2,60],63:95,64:76,65:[1,44],69:96,70:77,71:78,72:[1,79],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,33:[2,66],36:97,63:98,64:76,65:[1,44],69:99,70:77,71:78,72:[1,79],75:[2,66],78:26,79:27,80:[1,
28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,22:100,23:[2,52],63:101,64:76,65:[1,44],69:102,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,33:[2,92],62:103,63:104,64:76,65:[1,44],69:105,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,106]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,
27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:107,72:[1,108],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,109],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],
84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,110]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:56,39:[1,58],43:57,44:[1,59],45:112,46:111,47:[2,76]},{33:[2,70],40:113,65:[2,
70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,114]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:75,63:116,64:76,65:[1,44],67:115,68:[2,96],69:117,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,
118]},{32:119,33:[2,62],74:120,75:[1,121]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:122,74:123,75:[1,121]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,124]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,125]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,
91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,109]},{20:75,63:126,64:76,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],
60:[2,23]},{47:[2,19]},{47:[2,77]},{20:75,33:[2,72],41:127,63:128,64:76,65:[1,44],69:129,70:77,71:78,72:[1,79],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,130]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,
21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,131]},{33:[2,63]},{72:[1,133],76:132},{33:[1,134]},{33:[2,69]},{15:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:135,74:136,75:[1,121]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],
54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,138],77:[1,137]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,139]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,
17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],Cs:{4:[2,1],55:[2,55],57:[2,20],61:[2,57],74:[2,81],83:[2,85],87:[2,18],91:[2,89],102:[2,53],105:[2,93],111:[2,19],112:[2,77],117:[2,97],120:[2,63],123:[2,69],124:[2,12],136:[2,75],137:[2,32]},parseError:function(a){throw Error(a);},parse:function(a){var b=[0],c=[null],d=[],e=this.table,m="",n=0,q=0,r=0;this.lexer.QD(a);this.lexer.Qc=this.Qc;this.Qc.lexer=this.lexer;this.Qc.Be=this;"undefined"==typeof this.lexer.cb&&(this.lexer.cb=
{});a=this.lexer.cb;d.push(a);var t=this.lexer.options&&this.lexer.options.ranges;"function"===typeof this.Qc.parseError&&(this.parseError=this.Qc.parseError);for(var u,y,z,B,C={},ia,Aa;;){z=b[b.length-1];if(this.Cs[z])B=this.Cs[z];else{if(null===u||"undefined"==typeof u)u=this.lexer.$t()||1,"number"!==typeof u&&(u=this.fE[u]||u);B=e[z]&&e[z][u]}if("undefined"===typeof B||!B.length||!B[0]){var Ea;if(!r){Aa=[];for(ia in e[z])this.dk[ia]&&2<ia&&Aa.push("'"+this.dk[ia]+"'");Ea=this.lexer.Cq?"Parse error on line "+
(n+1)+":\n"+this.lexer.Cq()+"\nExpecting "+Aa.join(", ")+", got '"+(this.dk[u]||u)+"'":"Parse error on line "+(n+1)+": Unexpected "+(1==u?"end of input":"'"+(this.dk[u]||u)+"'");this.parseError(Ea,{text:this.lexer.match,vE:this.dk[u]||u,hd:this.lexer.sd,da:a,OH:Aa})}}if(B[0]instanceof Array&&1<B.length)throw Error("Parse Error: multiple actions possible at state: "+z+", token: "+u);switch(B[0]){case 1:b.push(u);c.push(this.lexer.Oa);d.push(this.lexer.cb);b.push(B[1]);u=null;y?(u=y,y=null):(q=this.lexer.Og,
m=this.lexer.Oa,n=this.lexer.sd,a=this.lexer.cb,0<r&&r--);break;case 2:Aa=this.kv[B[1]][1];C.$=c[c.length-Aa];C.Pa={hh:d[d.length-(Aa||1)].hh,pg:d[d.length-1].pg,$e:d[d.length-(Aa||1)].$e,lf:d[d.length-1].lf};t&&(C.Pa.vf=[d[d.length-(Aa||1)].vf[0],d[d.length-1].vf[1]]);z=this.Qp.call(C,m,q,n,this.Qc,B[1],c,d);if("undefined"!==typeof z)return z;Aa&&(b=b.slice(0,-2*Aa),c=c.slice(0,-1*Aa),d=d.slice(0,-1*Aa));b.push(this.kv[B[1]][0]);c.push(C.$);d.push(C.Pa);B=e[b[b.length-2]][b[b.length-1]];b.push(B);
break;case 3:return!0}}}};b.lexer=function(){return{yr:1,parseError:function(a,b){if(this.Qc.Be)this.Qc.Be.parseError(a,b);else throw Error(a);},QD:function(a){this.Dc=a;this.Sn=this.done=!1;this.sd=this.Og=0;this.Oa=this.Ae=this.match="";this.Ad=["INITIAL"];this.cb={hh:1,$e:0,pg:1,lf:0};this.options.ranges&&(this.cb.vf=[0,0]);this.offset=0;return this},input:function(){var a=this.Dc[0];this.Oa+=a;this.Og++;this.offset++;this.match+=a;this.Ae+=a;a.match(/(?:\r\n?|\n).*/g)?(this.sd++,this.cb.pg++):
this.cb.lf++;this.options.ranges&&this.cb.vf[1]++;this.Dc=this.Dc.slice(1);return a},ww:function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this.Dc=a+this.Dc;this.Oa=this.Oa.substr(0,this.Oa.length-b-1);this.offset-=b;a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.Ae=this.Ae.substr(0,this.Ae.length-1);c.length-1&&(this.sd-=c.length-1);var d=this.cb.vf;this.cb={hh:this.cb.hh,pg:this.sd+1,$e:this.cb.$e,lf:c?(c.length===a.length?this.cb.$e:0)+a[a.length-
c.length].length-c[0].length:this.cb.$e-b};this.options.ranges&&(this.cb.vf=[d[0],d[0]+this.Og-b]);return this},LI:function(){this.Sn=!0;return this},KI:function(a){this.ww(this.match.slice(a))},yC:function(){var a=this.Ae.substr(0,this.Ae.length-this.match.length);return(20<a.length?"...":"")+a.substr(-20).replace(/\n/g,"")},NE:function(){var a=this.match;20>a.length&&(a+=this.Dc.substr(0,20-a.length));return(a.substr(0,20)+(20<a.length?"...":"")).replace(/\n/g,"")},Cq:function(){var a=this.yC(),
b=Array(a.length+1).join("-");return a+this.NE()+"\n"+b+"^"},next:function(){if(this.done)return this.yr;this.Dc||(this.done=!0);var a,b,c;this.Sn||(this.match=this.Oa="");for(var d=this.jy(),l=0;l<d.length&&(!(b=this.Dc.match(this.rules[d[l]]))||a&&!(b[0].length>a[0].length)||(a=b,c=l,this.options.flex));l++);if(a){if(b=a[0].match(/(?:\r\n?|\n).*/g))this.sd+=b.length;this.cb={hh:this.cb.pg,pg:this.sd+1,$e:this.cb.lf,lf:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.cb.lf+a[0].length};
this.Oa+=a[0];this.match+=a[0];this.matches=a;this.Og=this.Oa.length;this.options.ranges&&(this.cb.vf=[this.offset,this.offset+=this.Og]);this.Sn=!1;this.Dc=this.Dc.slice(a[0].length);this.Ae+=a[0];a=this.Qp.call(this,this.Qc,this,d[c],this.Ad[this.Ad.length-1]);this.done&&this.Dc&&(this.done=!1);if(a)return a}else return""===this.Dc?this.yr:this.parseError("Lexical error on line "+(this.sd+1)+". Unrecognized text.\n"+this.Cq(),{text:"",vE:null,hd:this.sd})},$t:function(){var a=this.next();return"undefined"!==
typeof a?a:this.$t()},Tc:function(a){this.Ad.push(a)},Qd:function(){return this.Ad.pop()},jy:function(){return this.Uk[this.Ad[this.Ad.length-1]].rules},wJ:function(){return this.Ad[this.Ad.length-2]},pushState:function(a){this.Tc(a)},options:{},Qp:function(a,b,c){function d(a,c){return b.Oa=b.Oa.substr(a,b.Og-c)}switch(c){case 0:"\\\\"===b.Oa.slice(-2)?(d(0,1),this.Tc("mu")):"\\"===b.Oa.slice(-1)?(d(0,1),this.Tc("emu")):this.Tc("mu");if(b.Oa)return 15;break;case 1:return 15;case 2:return this.Qd(),
15;case 3:return this.Tc("raw"),15;case 4:this.Qd();if("raw"===this.Ad[this.Ad.length-1])return 15;b.Oa=b.Oa.substr(5,b.Og-9);return"END_RAW_BLOCK";case 5:return 15;case 6:return this.Qd(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.Qd(),this.Tc("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.Qd(),44;case 16:return this.Qd(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.ww(b.Oa);
this.Qd();this.Tc("com");break;case 22:return this.Qd(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 29:return this.Qd(),54;case 30:return this.Qd(),33;case 31:return b.Oa=d(1,2).replace(/\\"/g,'"'),80;case 32:return b.Oa=d(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return b.Oa=b.Oa.replace(/\\([\\\]])/g,
"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,
/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,
/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],Uk:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}}}();a.prototype=b;b.Px=a;return new a}();b.ba=!0;b["default"]=a},function(a,b,c){function d(){this.options=0>=arguments.length||void 0===arguments[0]?{}:arguments[0]}function e(a,b,c){void 0===
b&&(b=a.length);var d=a[b-1];a=a[b-2];if(!d)return c;if("ContentStatement"===d.type)return(a||!c?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(d.Ea)}function f(a,b,c){void 0===b&&(b=-1);var d=a[b+1];a=a[b+2];if(!d)return c;if("ContentStatement"===d.type)return(a||!c?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(d.Ea)}function g(a,b,c){!(a=a[null==b?0:b+1])||"ContentStatement"!==a.type||!c&&a.JD||(b=a.value,a.value=a.value.replace(c?/^\s+/:/^[ \t]*\r?\n?/,""),a.JD=a.value!==b)}function k(a,b,c){if((a=a[null==b?a.length-
1:b-1])&&"ContentStatement"===a.type&&(c||!a.Xt))return b=a.value,a.value=a.value.replace(c?/\s+$/:/[ \t]+$/,""),a.Xt=a.value!==b,a.Xt}var l=c(1)["default"];b.ba=!0;c=c(25);l=l(c);d.prototype=new l["default"];d.prototype.Program=function(a){var b=!this.options.aB,c=!this.lB;this.lB=!0;for(var d=a.body,l=0,m=d.length;l<m;l++){var y=d[l],z=this.accept(y);if(z){var B=e(d,l,c),C=f(d,l,c),ia=z.kC&&B,Aa=z.Ry&&C,B=z.dB&&B&&C;z.close&&g(d,l,!0);z.open&&k(d,l,!0);b&&B&&(g(d,l),k(d,l)&&"PartialStatement"===
y.type&&(y.nj=/([ \t]+$)/.exec(d[l-1].Ea)[1]));b&&ia&&(g((y.program||y.inverse).body),k(d,l));b&&Aa&&(g(d,l),k((y.inverse||y.program).body))}}return a};d.prototype.BlockStatement=d.prototype.DecoratorBlock=d.prototype.PartialBlockStatement=function(a){this.accept(a.program);this.accept(a.inverse);var b=a.program||a.inverse,c=a.program&&a.inverse,d=c,l=c;if(c&&c.ms)for(d=c.body[0].program;l.ms;)l=l.body[l.body.length-1].program;var m={open:a.pm.open,close:a.Ug.close,kC:f(b.body),Ry:e((d||b).body)};
a.pm.close&&g(b.body,null,!0);c?(c=a.Pt,c.open&&k(b.body,null,!0),c.close&&g(d.body,null,!0),a.Ug.open&&k(l.body,null,!0),!this.options.aB&&e(b.body)&&f(d.body)&&(k(b.body),g(d.body))):a.Ug.open&&k(b.body,null,!0);return m};d.prototype.Decorator=d.prototype.MustacheStatement=function(a){return a.jb};d.prototype.PartialStatement=d.prototype.CommentStatement=function(a){a=a.jb||{};return{dB:!0,open:a.open,close:a.close}};b["default"]=d;a.v=b["default"]},function(a,b,c){function d(){this.parents=[]}
function e(a){this.acceptRequired(a,"path");this.acceptArray(a.params);this.acceptKey(a,"hash")}function f(a){e.call(this,a);this.acceptKey(a,"program");this.acceptKey(a,"inverse")}function g(a){this.acceptRequired(a,"name");this.acceptArray(a.params);this.acceptKey(a,"hash")}var k=c(1)["default"];b.ba=!0;c=c(6);var l=k(c);d.prototype={constructor:d,mutating:!1,acceptKey:function(a,b){var c=this.accept(a[b]);if(this.mutating){if(c&&!d.prototype[c.type])throw new l["default"]('Unexpected node type "'+
c.type+'" found when accepting '+b+" on "+a.type);a[b]=c}},acceptRequired:function(a,b){this.acceptKey(a,b);if(!a[b])throw new l["default"](a.type+" requires "+b);},acceptArray:function(a){for(var b=0,c=a.length;b<c;b++)this.acceptKey(a,b),a[b]||(a.splice(b,1),b--,c--)},accept:function(a){if(a){if(!this[a.type])throw new l["default"]("Unknown type: "+a.type,a);this.current&&this.parents.unshift(this.current);this.current=a;var b=this[a.type](a);this.current=this.parents.shift();if(!this.mutating||
b)return b;if(!1!==b)return a}},Program:function(a){this.acceptArray(a.body)},MustacheStatement:e,Decorator:e,BlockStatement:f,DecoratorBlock:f,PartialStatement:g,PartialBlockStatement:function(a){g.call(this,a);this.acceptKey(a,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:e,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(a){this.acceptArray(a.Tu)},
HashPair:function(a){this.acceptRequired(a,"value")}};b["default"]=d;a.v=b["default"]},function(a,b,c){function d(a,b){b=b.path?b.path.Ea:b;if(a.path.Ea!==b)throw new e["default"](a.path.Ea+" doesn't match "+b,{da:a.path.da});}a=c(1)["default"];b.ba=!0;b.Yx=function(a,b){this.source=a;this.start={hd:b.hh,zd:b.$e};this.end={hd:b.pg,zd:b.lf}};b.id=function(a){return/^\[.*\]$/.test(a)?a.substr(1,a.length-2):a};b.Xd=function(a,b){return{open:"~"===a.charAt(2),close:"~"===b.charAt(b.length-3)}};b.eE=function(a){return a.replace(/^\{\{~?!-?-?/,
"").replace(/-?-?~?\}\}$/,"")};b.fv=function(a,b,c){c=this.yb(c);for(var d=a?"@":"",f=[],g=0,k=0,r=b.length;k<r;k++){var t=b[k].Wu,u=b[k].Ea!==t,d=d+((b[k].separator||"")+t);if(u||".."!==t&&"."!==t&&"this"!==t)f.push(t);else{if(0<f.length)throw new e["default"]("Invalid path: "+d,{da:c});".."===t&&g++}}return{type:"PathExpression",data:a,depth:g,Ob:f,Ea:d,da:c}};b.ev=function(a,b,c,d,e,n){var f=d.charAt(3)||d.charAt(2),f="{"!==f&&"\x26"!==f;return{type:/\*/.test(d)?"Decorator":"MustacheStatement",
path:a,params:b,hash:c,oz:f,jb:e,da:this.yb(n)}};b.MC=function(a,b,c,e){d(a,c);e=this.yb(e);return{type:"BlockStatement",path:a.path,params:a.params,hash:a.hash,program:{type:"Program",body:b,jb:{},da:e},pm:{},Pt:{},Ug:{},da:e}};b.Up=function(a,b,c,l,m,n){l&&l.path&&d(a,l);var f=/\*/.test(a.open);b.Ha=a.Ha;var g=void 0,k=void 0;if(c){if(f)throw new e["default"]("Unexpected inverse block on decorator",c);c.Oy&&(c.program.body[0].Ug=l.jb);k=c.jb;g=c.program}m&&(m=g,g=b,b=m);return{type:f?"DecoratorBlock":
"BlockStatement",path:a.path,params:a.params,hash:a.hash,program:b,inverse:g,pm:a.jb,Pt:k,Ug:l&&l.jb,da:this.yb(n)}};b.gv=function(a,b){if(!b&&a.length){var c=a[0].da,d=a[a.length-1].da;c&&d&&(b={source:c.source,start:{hd:c.start.hd,zd:c.start.zd},end:{hd:d.end.hd,zd:d.end.zd}})}return{type:"Program",body:a,jb:{},da:b}};b.LC=function(a,b,c,e){d(a,c);return{type:"PartialBlockStatement",name:a.path,params:a.params,hash:a.hash,program:b,pm:a.jb,Ug:c&&c.jb,da:this.yb(e)}};b=c(6);var e=a(b)},function(a,
b,c){function d(){}function e(a,b){if(a===b)return!0;if(k.isArray(a)&&k.isArray(b)&&a.length===b.length){for(var c=0;c<a.length;c++)if(!e(a[c],b[c]))return!1;return!0}}function f(a){if(!a.path.Ob){var b=a.path;a.path={type:"PathExpression",data:!1,depth:0,Ob:[b.Ea+""],Ea:b.Ea+"",da:b.da}}}a=c(1)["default"];b.ba=!0;b.vk=d;b.wm=function(a,b,c){if(null==a||"string"!==typeof a&&"Program"!==a.type)throw new g["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+a);
b=b||{};"data"in b||(b.data=!0);b.Wg&&(b.Na=!0);a=c.parse(a,b);a=(new c.vk).compile(a,b);return(new c.Ar).compile(a,b)};b.compile=function(a,b,c){function d(){var d=c.parse(a,b),d=(new c.vk).compile(d,b),d=(new c.Ar).compile(d,b,void 0,!0);return c.template(d)}function e(a,b){f||(f=d());return f.call(this,a,b)}void 0===b&&(b={});if(null==a||"string"!==typeof a&&"Program"!==a.type)throw new g["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+a);"data"in b||(b.data=
!0);b.Wg&&(b.Na=!0);var f=void 0;e.Un=function(a){f||(f=d());return f.Un(a)};e.Gr=function(a,b,c,e){f||(f=d());return f.Gr(a,b,c,e)};return e};b=c(6);var g=a(b),k=c(5);c=c(21);var l=a(c),m=[].slice;d.prototype={compiler:d,equals:function(a){var b=this.Fh.length;if(a.Fh.length!==b)return!1;for(var c=0;c<b;c++){var d=this.Fh[c],f=a.Fh[c];if(d.opcode!==f.opcode||!e(d.wi,f.wi))return!1}b=this.children.length;for(c=0;c<b;c++)if(!this.children[c].equals(a.children[c]))return!1;return!0},guid:0,compile:function(a,
b){this.Fq=[];this.Fh=[];this.children=[];this.options=b;this.Wd=b.Wd;this.$d=b.$d;b.Ha=b.Ha||[];var c=b.Nl;b.Nl={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0,lookup:!0};if(c)for(var d in c)d in c&&(b.Nl[d]=c[d]);return this.accept(a)},compileProgram:function(a){a=(new this.compiler).compile(a,this.options);var b=this.guid++;this.Mg=this.Mg||a.Mg;this.children[b]=a;this.Na=this.Na||a.Na;return b},accept:function(a){if(!this[a.type])throw new g["default"]("Unknown type: "+
a.type,a);this.Fq.unshift(a);a=this[a.type](a);this.Fq.shift();return a},Program:function(a){this.options.Ha.unshift(a.Ha);for(var b=a.body,c=b.length,d=0;d<c;d++)this.accept(b[d]);this.options.Ha.shift();this.wp=1===c;this.Ha=a.Ha?a.Ha.length:0;return this},BlockStatement:function(a){f(a);var b=a.program,c=a.inverse,b=b&&this.compileProgram(b),c=c&&this.compileProgram(c),d=this.classifySexpr(a);"helper"===d?this.helperSexpr(a,b,c):"simple"===d?(this.simpleSexpr(a),this.opcode("pushProgram",b),this.opcode("pushProgram",
c),this.opcode("emptyHash"),this.opcode("blockValue",a.path.Ea)):(this.ambiguousSexpr(a,b,c),this.opcode("pushProgram",b),this.opcode("pushProgram",c),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue"));this.opcode("append")},DecoratorBlock:function(a){var b=a.program&&this.compileProgram(a.program),b=this.setupFullMustacheParams(a,b,void 0);a=a.path;this.nk=!0;this.opcode("registerDecorator",b.length,a.Ea)},PartialStatement:function(a){this.Mg=!0;var b=a.program;b&&(b=this.compileProgram(a.program));
var c=a.params;if(1<c.length)throw new g["default"]("Unsupported number of partial arguments: "+c.length,a);c.length||(this.options.PH?this.opcode("pushLiteral","undefined"):c.push({type:"PathExpression",Ob:[],depth:0}));var c=a.name.Ea,d="SubExpression"===a.name.type;d&&this.accept(a.name);this.setupFullMustacheParams(a,b,void 0,!0);a=a.nj||"";this.options.UI&&a&&(this.opcode("appendContent",a),a="");this.opcode("invokePartial",d,c,a);this.opcode("append")},PartialBlockStatement:function(a){this.PartialStatement(a)},
MustacheStatement:function(a){this.SubExpression(a);a.oz&&!this.options.NI?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(a){this.DecoratorBlock(a)},ContentStatement:function(a){a.value&&this.opcode("appendContent",a.value)},CommentStatement:function(){},SubExpression:function(a){f(a);var b=this.classifySexpr(a);"simple"===b?this.simpleSexpr(a):"helper"===b?this.helperSexpr(a):this.ambiguousSexpr(a)},ambiguousSexpr:function(a,b,c){a=a.path;var d=a.Ob[0],e=null!=b||null!=c;
this.opcode("getContext",a.depth);this.opcode("pushProgram",b);this.opcode("pushProgram",c);a.strict=!0;this.accept(a);this.opcode("invokeAmbiguous",d,e)},simpleSexpr:function(a){a=a.path;a.strict=!0;this.accept(a);this.opcode("resolvePossibleLambda")},helperSexpr:function(a,b,c){b=this.setupFullMustacheParams(a,b,c);c=a.path;var d=c.Ob[0];if(this.options.Nl[d])this.opcode("invokeKnownHelper",b.length,d);else{if(this.options.oB)throw new g["default"]("You specified knownHelpersOnly, but used the unknown helper "+
d,a);c.strict=!0;c.wz=!0;this.accept(c);this.opcode("invokeHelper",b.length,c.Ea,l["default"].Ya.Xv(c))}},PathExpression:function(a){this.addDepth(a.depth);this.opcode("getContext",a.depth);var b=a.Ob[0],c=l["default"].Ya.xq(a),d=!a.depth&&!c&&this.blockParamIndex(b);d?this.opcode("lookupBlockParam",d,a.Ob):b?a.data?(this.options.data=!0,this.opcode("lookupData",a.depth,a.Ob,a.strict)):this.opcode("lookupOnContext",a.Ob,a.wz,a.strict,c):this.opcode("pushContext")},StringLiteral:function(a){this.opcode("pushString",
a.value)},NumberLiteral:function(a){this.opcode("pushLiteral",a.value)},BooleanLiteral:function(a){this.opcode("pushLiteral",a.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(a){a=a.Tu;var b=0,c=a.length;for(this.opcode("pushHash");b<c;b++)this.pushParam(a[b].value);for(;b--;)this.opcode("assignToHash",a[b].key);this.opcode("popHash")},opcode:function(a){this.Fh.push({opcode:a,wi:m.call(arguments,1),
da:this.Fq[0].da})},addDepth:function(a){a&&(this.Na=!0)},classifySexpr:function(a){var b=l["default"].Ya.Xv(a.path),c=b&&!!this.blockParamIndex(a.path.Ob[0]),d=!c&&l["default"].Ya.TA(a);(b=!c&&(d||b))&&!d&&(c=this.options,c.Nl[a.path.Ob[0]]?d=!0:c.oB&&(b=!1));return d?"helper":b?"ambiguous":"simple"},pushParams:function(a){for(var b=0,c=a.length;b<c;b++)this.pushParam(a[b])},pushParam:function(a){var b=null!=a.value?a.value:a.Ea||"";if(this.Wd)b.replace&&(b=b.replace(/^(\.?\.\/)*/g,"").replace(/\//g,
".")),a.depth&&this.addDepth(a.depth),this.opcode("getContext",a.depth||0),this.opcode("pushStringParam",b,a.type),"SubExpression"===a.type&&this.accept(a);else{if(this.$d){var c=void 0;!a.Ob||l["default"].Ya.xq(a)||a.depth||(c=this.blockParamIndex(a.Ob[0]));c?(b=a.Ob.slice(1).join("."),this.opcode("pushId","BlockParam",c,b)):(b=a.Ea||b,b.replace&&(b=b.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",a.type,b))}this.accept(a)}},setupFullMustacheParams:function(a,
b,c,d){var e=a.params;this.pushParams(e);this.opcode("pushProgram",b);this.opcode("pushProgram",c);a.hash?this.accept(a.hash):this.opcode("emptyHash",d);return e},blockParamIndex:function(a){for(var b=0,c=this.options.Ha.length;b<c;b++){var d=this.options.Ha[b],e=d&&k.indexOf(d,a);if(d&&0<=e)return[b,e]}}}},function(a,b,c){function d(a){this.value=a}function e(){}function f(a,b,c,d){var e=b.popStack(),f=0,g=c.length;for(a&&g--;f<g;f++)e=b.nameLookup(e,c[f],d);return a?[b.aliasable("container.strict"),
"(",e,", ",b.quotedString(c[f]),")"]:e}var g=c(1)["default"];b.ba=!0;var k=c(4),l=c(6),m=g(l),n=c(5);c=c(29);var q=g(c);e.prototype={nameLookup:function(a,b){return e.mB(b)?[a,".",b]:[a,"[",JSON.stringify(b),"]"]},depthedLookup:function(a){return[this.aliasable("container.lookup"),'(depths, "',a,'")']},compilerInfo:function(){var a=k.tr;return[a,k.Hn[a]]},appendToBuffer:function(a,b,c){n.isArray(a)||(a=[a]);a=this.source.wrap(a,b);if(this.bh.wp)return["return ",a,";"];if(c)return["buffer +\x3d ",
a,";"];a.appendToBuffer=!0;return a},initializeBuffer:function(){return this.quotedString("")},compile:function(a,b,c,d){this.bh=a;this.options=b;this.Wd=this.options.Wd;this.$d=this.options.$d;this.wm=!d;this.name=this.bh.name;this.kB=!!c;this.context=c||{ia:[],programs:[],Co:[]};this.preamble();this.Df=0;this.Iq=[];this.vi={};this.Em={list:[]};this.Ft=[];this.Ai=[];this.mg=[];this.Ha=[];this.compileChildren(a,b);this.Na=this.Na||a.Na||a.nk||this.options.Wg;this.Fb=this.Fb||a.Fb;var e=a.Fh,f,g=void 0;
a=0;for(c=e.length;a<c;a++)f=e[a],this.source.Ii=f.da,g=g||f.da,this[f.opcode].apply(this,f.wi);this.source.Ii=g;this.pushSource("");if(this.Df||this.mg.length||this.Ai.length)throw new m["default"]("Compile completed with content left on stack");this.ia.isEmpty()?this.ia=void 0:(this.nk=!0,this.ia.prepend("var decorators \x3d container.decorators;\n"),this.ia.push("return fn;"),d?this.ia=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.ia.merge()]):(this.ia.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),
this.ia.push("}\n"),this.ia=this.ia.merge()));a=this.createFunctionContext(d);if(this.kB)return a;e={compiler:this.compilerInfo(),main:a};this.ia&&(e.HB=this.ia,e.nk=!0);a=this.context;f=a.programs;g=a.ia;a=0;for(c=f.length;a<c;a++)f[a]&&(e[a]=f[a],g[a]&&(e[a+"_d"]=g[a],e.nk=!0));this.bh.Mg&&(e.Mg=!0);this.options.data&&(e.useData=!0);this.Na&&(e.Na=!0);this.Fb&&(e.Fb=!0);this.options.Wg&&(e.Wg=!0);d?e.Ty=this.options:(e.compiler=JSON.stringify(e.compiler),this.source.Ii={start:{hd:1,zd:0}},e=this.objectLiteral(e),
b.Hq?(e=e.toStringWithSourceMap({file:b.LH}),e.map=e.map&&e.map.toString()):e=e.toString());return e},preamble:function(){this.yp=0;this.source=new q["default"](this.options.Hq);this.ia=new q["default"](this.options.Hq)},createFunctionContext:function(a){var b="",c=this.Iq.concat(this.Em.list);0<c.length&&(b+=", "+c.join(", "));var c=0,d;for(d in this.vi){var e=this.vi[d];this.vi.hasOwnProperty(d)&&e.children&&1<e.xv&&(b+=", alias"+ ++c+"\x3d"+d,e.children[0]="alias"+c)}d=["container","depth0","helpers",
"partials","data"];(this.Fb||this.Na)&&d.push("blockParams");this.Na&&d.push("depths");b=this.mergeSource(b);return a?(d.push(b),Function.apply(this,d)):this.source.wrap(["function(",d.join(","),") {\n  ",b,"}"])},mergeSource:function(a){var b=this.bh.wp,c=!this.TH,d=void 0,e=void 0,f=void 0,g=void 0;this.source.each(function(a){a.appendToBuffer?(f?a.prepend("  + "):f=a,g=a):(f&&(e?f.prepend("buffer +\x3d "):d=!0,g.add(";"),f=g=void 0),e=!0,b||(c=!1))});c?f?(f.prepend("return "),g.add(";")):e||this.source.push('return "";'):
(a+=", buffer \x3d "+(d?"":this.initializeBuffer()),f?(f.prepend("return buffer + "),g.add(";")):this.source.push("return buffer;"));a&&this.source.prepend("var "+a.substring(2)+(d?"":";\n"));return this.source.merge()},blockValue:function(a){var b=this.aliasable("helpers.blockHelperMissing"),c=[this.contextName(0)];this.setupHelperArgs(a,0,c);a=this.popStack();c.splice(1,0,a);this.push(this.source.functionCall(b,"call",c))},ambiguousBlockValue:function(){var a=this.aliasable("helpers.blockHelperMissing"),
b=[this.contextName(0)];this.setupHelperArgs("",0,b,!0);this.flushInline();var c=this.topStack();b.splice(1,0,c);this.pushSource(["if (!",this.qB,") { ",c," \x3d ",this.source.functionCall(a,"call",b),"}"])},appendContent:function(a){this.Jj?a=this.Jj+a:this.AC=this.source.Ii;this.Jj=a},append:function(){if(this.isInline())this.replaceStack(function(a){return[" !\x3d null ? ",a,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var a=this.popStack();this.pushSource(["if (",a," !\x3d null) { ",
this.appendToBuffer(a,void 0,!0)," }"]);this.bh.wp&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(a){this.yp=a},pushContext:function(){this.pushStackLiteral(this.contextName(this.yp))},lookupOnContext:function(a,b,c,d){var e=0;d||!this.options.Wg||this.yp?this.pushContext():this.push(this.depthedLookup(a[e++]));this.resolvePath("context",
a,e,b,c)},lookupBlockParam:function(a,b){this.Fb=!0;this.push(["blockParams[",a[0],"][",a[1],"]"]);this.resolvePath("context",b,1)},lookupData:function(a,b,c){a?this.pushStackLiteral("container.data(data, "+a+")"):this.pushStackLiteral("data");this.resolvePath("data",b,0,!0,c)},resolvePath:function(a,b,c,d,e){var g=this;if(this.options.strict||this.options.vH)this.push(f(this.options.strict&&e,this,b,a));else for(e=b.length;c<e;c++)this.replaceStack(function(e){var f=g.nameLookup(e,b[c],a);return d?
[" \x26\x26 ",f]:[" !\x3d null ? ",f," : ",e]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(a,b){this.pushContext();this.pushString(b);"SubExpression"!==b&&("string"===typeof a?this.pushString(a):this.pushStackLiteral(a))},emptyHash:function(a){this.$d&&this.push("{}");this.Wd&&(this.push("{}"),this.push("{}"));this.pushStackLiteral(a?"undefined":"{}")},pushHash:function(){this.hash&&this.Ft.push(this.hash);
this.hash={values:[],types:[],qo:[],ids:[]}},popHash:function(){var a=this.hash;this.hash=this.Ft.pop();this.$d&&this.push(this.objectLiteral(a.ids));this.Wd&&(this.push(this.objectLiteral(a.qo)),this.push(this.objectLiteral(a.types)));this.push(this.objectLiteral(a.values))},pushString:function(a){this.pushStackLiteral(this.quotedString(a))},pushLiteral:function(a){this.pushStackLiteral(a)},pushProgram:function(a){null!=a?this.pushStackLiteral(this.programExpression(a)):this.pushStackLiteral(null)},
registerDecorator:function(a,b){var c=this.nameLookup("decorators",b,"decorator");a=this.setupHelperArgs(b,a);this.ia.push(["fn \x3d ",this.ia.functionCall(c,"",["fn","props","container",a])," || fn;"])},invokeHelper:function(a,b,c){var d=this.popStack();a=this.setupHelper(a,b);c=["("].concat(c?[a.name," || "]:"",d);this.options.strict||c.push(" || ",this.aliasable("helpers.helperMissing"));c.push(")");this.push(this.source.functionCall(c,"call",a.fo))},invokeKnownHelper:function(a,b){a=this.setupHelper(a,
b);this.push(this.source.functionCall(a.name,"call",a.fo))},invokeAmbiguous:function(a,b){this.useRegister("helper");var c=this.popStack();this.emptyHash();b=this.setupHelper(0,a,b);a=["(","(helper \x3d ",this.qB=this.nameLookup("helpers",a,"helper")," || ",c,")"];this.options.strict||(a[0]="(helper \x3d ",a.push(" !\x3d null ? helper : ",this.aliasable("helpers.helperMissing")));this.push(["(",a,b.Uu?["),(",b.Uu]:[],"),","(typeof helper \x3d\x3d\x3d ",this.aliasable('"function"')," ? ",this.source.functionCall("helper",
"call",b.fo)," : helper))"])},invokePartial:function(a,b,c){var d=[],e=this.setupParams(b,1,d);a&&(b=this.popStack(),delete e.name);c&&(e.nj=JSON.stringify(c));e.Ya="helpers";e.va="partials";e.ia="container.decorators";a?d.unshift(b):d.unshift(this.nameLookup("partials",b,"partial"));this.options.Wg&&(e.Li="depths");e=this.objectLiteral(e);d.push(e);this.push(this.source.functionCall("container.invokePartial","",d))},assignToHash:function(a){var b=this.popStack(),c=void 0,d=void 0,e=void 0;this.$d&&
(e=this.popStack());this.Wd&&(d=this.popStack(),c=this.popStack());var f=this.hash;c&&(f.qo[a]=c);d&&(f.types[a]=d);e&&(f.ids[a]=e);f.values[a]=b},pushId:function(a,b,c){"BlockParam"===a?this.pushStackLiteral("blockParams["+b[0]+"].path["+b[1]+"]"+(c?" + "+JSON.stringify("."+c):"")):"PathExpression"===a?this.pushString(b):"SubExpression"===a?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:e,compileChildren:function(a,b){a=a.children;for(var c,d,e=0,f=a.length;e<f;e++){c=a[e];
d=new this.compiler;var g=this.matchExistingProgram(c);null==g?(this.context.programs.push(""),g=this.context.programs.length,c.index=g,c.name="program"+g,this.context.programs[g]=d.compile(c,b,this.context,!this.wm),this.context.ia[g]=d.ia,this.context.Co[g]=c,this.Na=this.Na||d.Na,this.Fb=this.Fb||d.Fb):(c.index=g,c.name="program"+g,this.Na=this.Na||c.Na,this.Fb=this.Fb||c.Fb)}},matchExistingProgram:function(a){for(var b=0,c=this.context.Co.length;b<c;b++){var d=this.context.Co[b];if(d&&d.equals(a))return b}},
programExpression:function(a){a=this.bh.children[a];a=[a.index,"data",a.Ha];(this.Fb||this.Na)&&a.push("blockParams");this.Na&&a.push("depths");return"container.program("+a.join(", ")+")"},useRegister:function(a){this.Em[a]||(this.Em[a]=!0,this.Em.list.push(a))},push:function(a){a instanceof d||(a=this.source.wrap(a));this.mg.push(a);return a},pushStackLiteral:function(a){this.push(new d(a))},pushSource:function(a){this.Jj&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.Jj),this.AC)),
this.Jj=void 0);a&&this.source.push(a)},replaceStack:function(a){var b,c,e=void 0,f=void 0;if(!this.isInline())throw new m["default"]("replaceStack on non-inline");b=this.popStack(!0);b instanceof d?(c=[b.value],b=["(",c],f=!0):(e=!0,c=this.incrStack(),b=["((",this.push(c)," \x3d ",b,")"],c=this.topStack());a=a.call(this,c);f||this.popStack();e&&this.Df--;this.push(b.concat(a,")"))},incrStack:function(){this.Df++;this.Df>this.Iq.length&&this.Iq.push("stack"+this.Df);return this.topStackName()},topStackName:function(){return"stack"+
this.Df},flushInline:function(){var a=this.mg;this.mg=[];for(var b=0,c=a.length;b<c;b++){var e=a[b];if(e instanceof d)this.Ai.push(e);else{var f=this.incrStack();this.pushSource([f," \x3d ",e,";"]);this.Ai.push(f)}}},isInline:function(){return this.mg.length},popStack:function(a){var b=this.isInline(),c=(b?this.mg:this.Ai).pop();if(!a&&c instanceof d)return c.value;if(!b){if(!this.Df)throw new m["default"]("Invalid stack pop");this.Df--}return c},topStack:function(){var a=this.isInline()?this.mg:
this.Ai,a=a[a.length-1];return a instanceof d?a.value:a},contextName:function(a){return this.Na&&a?"depths["+a+"]":"depth"+a},quotedString:function(a){return this.source.quotedString(a)},objectLiteral:function(a){return this.source.objectLiteral(a)},aliasable:function(a){var b=this.vi[a];if(b)return b.xv++,b;b=this.vi[a]=this.source.wrap(a);b.aliasable=!0;b.xv=1;return b},setupHelper:function(a,b,c){var d=[];a=this.setupHelperArgs(b,a,d,c);b=this.nameLookup("helpers",b,"helper");c=this.aliasable(this.contextName(0)+
" !\x3d null ? "+this.contextName(0)+" : {}");return{params:d,Uu:a,name:b,fo:[c].concat(d)}},setupParams:function(a,b,c){var d={},e=[],f=[],g=[],k=!c;k&&(c=[]);d.name=this.quotedString(a);d.hash=this.popStack();this.$d&&(d.wI=this.popStack());this.Wd&&(d.xI=this.popStack(),d.vI=this.popStack());a=this.popStack();var l=this.popStack();if(l||a)d.fn=l||"container.noop",d.inverse=a||"container.noop";for(a=b;a--;)b=this.popStack(),c[a]=b,this.$d&&(g[a]=this.popStack()),this.Wd&&(f[a]=this.popStack(),e[a]=
this.popStack());k&&(d.wi=this.source.generateArray(c));this.$d&&(d.ids=this.source.generateArray(g));this.Wd&&(d.types=this.source.generateArray(f),d.qo=this.source.generateArray(e));this.options.data&&(d.data="data");this.Fb&&(d.Ha="blockParams");return d},setupHelperArgs:function(a,b,c,d){a=this.setupParams(a,b,c);a=this.objectLiteral(a);return d?(this.useRegister("options"),c.push("options"),["options\x3d",a]):c?(c.push(a),""):a}};(function(){for(var a="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),
b=e.Rx={},c=0,d=a.length;c<d;c++)b[a[c]]=!0})();e.mB=function(a){return!e.Rx[a]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(a)};b["default"]=e;a.v=b["default"]},function(a,b,c){function d(a,b,c){if(f.isArray(a)){for(var d=[],e=0,g=a.length;e<g;e++)d.push(b.wrap(a[e],c));return d}return"boolean"===typeof a||"number"===typeof a?a+"":a}function e(a){this.ew=a;this.source=[]}b.ba=!0;var f=c(5),g=void 0;g||(g=function(a,b,c,d){this.src="";d&&this.add(d)},g.prototype={add:function(a){f.isArray(a)&&(a=a.join(""));
this.src+=a},prepend:function(a){f.isArray(a)&&(a=a.join(""));this.src=a+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});e.prototype={isEmpty:function(){return!this.source.length},prepend:function(a,b){this.source.unshift(this.wrap(a,b))},push:function(a,b){this.source.push(this.wrap(a,b))},merge:function(){var a=this.empty();this.each(function(b){a.add(["  ",b,"\n"])});return a},each:function(a){for(var b=0,c=this.source.length;b<c;b++)a(this.source[b])},
empty:function(){var a=this.Ii||{start:{}};return new g(a.start.hd,a.start.zd,this.ew)},wrap:function(a){var b=1>=arguments.length||void 0===arguments[1]?this.Ii||{start:{}}:arguments[1];if(a instanceof g)return a;a=d(a,this,b);return new g(b.start.hd,b.start.zd,this.ew,a)},functionCall:function(a,b,c){c=this.generateList(c);return this.wrap([a,b?"."+b+"(":"(",c,")"])},quotedString:function(a){return'"'+(a+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,
"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var e=d(a[c],this);"undefined"!==e&&b.push([this.quotedString(c),":",e])}a=this.generateList(b);a.prepend("{");a.add("}");return a},generateList:function(a){for(var b=this.empty(),c=0,e=a.length;c<e;c++)c&&b.add(","),b.add(d(a[c],this));return b},generateArray:function(a){a=this.generateList(a);a.prepend("[");a.add("]");return a}};b["default"]=e;a.v=b["default"]}])});
(function(root,factory){if(typeof Liferay.Loader.define==="function"&&Liferay.Loader.define.amd)Liferay.Loader.define("mapea@4.3.1",["mapea-core"],factory);else if(typeof module==="object"&&module.exports)module.exports=factory();else root.M=factory()})(this,function(M){(function(M){M.config("MOBILE_WIDTH",768);M.config("MAPEA_URL","http://mapea4-sigc.juntadeandalucia.es/mapea");M.config("PROXY_URL",location.protocol+"//mapea4-sigc.juntadeandalucia.es/mapea/api/proxy");M.config("PROXY_POST_URL",location.protocol+
"//mapea4-sigc.juntadeandalucia.es/mapea/proxyPost");M.config("TEMPLATES_PATH","/files/templates/");M.config("THEME_URL",location.protocol+"//mapea4-sigc.juntadeandalucia.es/mapea/assets/");M.config("GEOSEARCH_URL","http://geobusquedas-sigc.juntadeandalucia.es");M.config("GEOSEARCH_CORE","sigc");M.config("GEOSEARCH_HANDLER","/search?");M.config("GEOSEARCH_DISTANCE","600");M.config("GEOSEARCH_SPATIAL_FIELD","geom");M.config("GEOSEARCH_ROWS","20");M.config("GEOSEARCHBYLOCATION_ROWS","100");M.config("predefinedWMC",
{"urls":"http://mapea4-sigc.juntadeandalucia.es/mapea/files/wmc/context_cdau_callejero.xml,http://mapea4-sigc.juntadeandalucia.es/mapea/files/wmc/context_cdau_hibrido.xml,http://mapea4-sigc.juntadeandalucia.es/mapea/files/wmc/context_cdau_satelite.xml,http://mapea4-sigc.juntadeandalucia.es/mapea/files/wmc/contextCallejeroCache.xml,http://mapea4-sigc.juntadeandalucia.es/mapea/files/wmc/contextCallejero.xml,http://mapea4-sigc.juntadeandalucia.es/mapea/files/wmc/contextIDEA.xml,http://mapea4-sigc.juntadeandalucia.es/mapea/files/wmc/contextOrtofoto2009.xml,http://mapea4-sigc.juntadeandalucia.es/mapea/files/wmc/callejero2011cache.xml,http://mapea4-sigc.juntadeandalucia.es/mapea/files/wmc/ortofoto2011cache.xml,http://mapea4-sigc.juntadeandalucia.es/mapea/files/wmc/hibrido2011cache.xml,http://mapea4-sigc.juntadeandalucia.es/mapea/files/wmc/contextOrtofoto.xml".split(","),
"predefinedNames":"cdau,cdau_hibrido,cdau_satelite,callejerocacheado,callejero,idea,ortofoto09,callejero2011cache,ortofoto2011cache,hibrido2011cache,ortofoto".split(","),"names":"Callejero,Hibrido,Satelite,mapa callejero cache,mapa del callejero,mapa idea,mapa ortofoto09,Callejero,Ortofoto,H\u00c3\u0192\u00c2\u00adbrido,mapa ortofoto".split(",")});M.config("tileMappgins",{"tiledNames":"base,SPOT_Andalucia,orto_2010-11_25830,CallejeroCompleto,orto_2010-11_23030".split(","),"tiledUrls":"http://www.callejerodeandalucia.es/servicios/base/gwc/service/wms?,http://www.callejerodeandalucia.es/servicios/base/gwc/service/wms?,http://www.ideandalucia.es/geowebcache/service/wms?,http://www.juntadeandalucia.es/servicios/mapas/callejero/wms-tiled?,http://www.ideandalucia.es/geowebcache/service/wms?".split(","),
"names":"CDAU_base,mosaico_spot_2005,orto_2010-11,CallejeroCompleto,orto_2010-11".split(","),"urls":"http://www.callejerodeandalucia.es/servicios/base/wms?,http://www.juntadeandalucia.es/medioambiente/mapwms/REDIAM_SPOT_Andalucia_2005?,http://www.ideandalucia.es/wms/ortofoto2010?,http://www.juntadeandalucia.es/servicios/mapas/callejero/wms?,http://www.ideandalucia.es/wms/ortofoto2010?".split(",")});M.config("DEFAULT_PROJ","EPSG:25830*m");M.config("geoprint",{"URL":"http://geoprint-sigc.juntadeandalucia.es/geoprint/pdf",
"DPI":150,"FORMAT":"pdf","TEMPLATE":"A4 horizontal (Leyenda en una hoja)","FORCE_SCALE":false,"LEGEND":true});M.config("panels",{"TOOLS":"measurebar,getfeatureinfo".split(","),"EDITION":"drawfeature,modifyfeature,deletefeature,editattribute,savefeature,clearfeature".split(",")});M.config("SEARCHSTREET_URL","http://ws248.juntadeandalucia.es/EXT_PUB_CallejeroREST/geocoderMunProvSrs");M.config("SEARCHSTREET_URLCODINEAUTOCOMPLETE","http://ws248.juntadeandalucia.es/EXT_PUB_CallejeroREST/autocompletarDireccionMunicipio");
M.config("SEARCHSTREET_URLCOMPROBARINE","http://ws248.juntadeandalucia.es/EXT_PUB_CallejeroREST/comprobarCodIne");M.config("SEARCHSTREET_NORMALIZAR","http://ws248.juntadeandalucia.es/EXT_PUB_CallejeroREST/normalizar");M.config("AUTOCOMPLETE_MINLENGTH","3");M.config("AUTOCOMPLETE_DELAYTIME","750");M.config("AUTOCOMPLETE_LIMIT","10");M.config("MAPBOX_URL","https://api.mapbox.com/v4/");M.config("MAPBOX_EXTENSION","png");M.config("MAPBOX_TOKEN_NAME","access_token");M.config("MAPBOX_TOKEN_VALUE","pk.eyJ1Ijoic2lnY29ycG9yYXRpdm9qYSIsImEiOiJjaXczZ3hlc2YwMDBrMm9wYnRqd3gyMWQ0In0.wF12VawgDM31l5RcAGb6AA");
M.config("ATTRIBUTETABLE_PAGES","5")})(M);return M});
var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();
function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}
Liferay.Loader.define("media-gallery-selector@1.0.0/js/builder",["module","exports","require"],function(module,exports,require){var define=undefined;Object.defineProperty(exports,"__esModule",{value:true});var HtmlBuilder=function(){function HtmlBuilder(html){_classCallCheck(this,HtmlBuilder);this._html=new String(html)}_createClass(HtmlBuilder,[{key:"replace",value:function replace(name,value){this._html=this._html.replace(new RegExp("%"+name+"%","g"),value);return this}},{key:"get",value:function get(){return this._html}}]);
return HtmlBuilder}();exports.default=HtmlBuilder});
Liferay.Loader.define("media-gallery-selector@1.0.0/js/image",["module","exports","require","media-gallery-selector@1.0.0/js/builder"],function(module,exports,require){var define=undefined;Object.defineProperty(exports,"__esModule",{value:true});var _HtmlBuilder=require("media-gallery-selector@1.0.0/js/builder");var HtmlBuilder=_interopRequireDefault(_HtmlBuilder);var html='\x3cdiv id\x3d"%id%" class\x3d"col-md-2"\x3e\x3cdiv class\x3d"card-razuna"\x3e\x3cimg class\x3d"card-img-top" src\x3d"%url%"\x3e\x3c/div\x3e\x3c/div\x3e';var removeButtonHtml=
'\x3cbutton type\x3d"button" class\x3d"btn btn-secondary btn-hover"\x3e\x3cspan class\x3d"glyphicon glyphicon-plus"\x3e\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e';var _attrs=["id","local_url_org","local_url_thumb","title_es","title_en","title_de","title_fr"];var GalleryImage=function(){function GalleryImage(){_classCallCheck(this,GalleryImage);var props=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _this=this;_attrs.forEach(function(key){_this[key]=props[key]!==undefined?
props[key]:null});this._selected=props["selected"]!==undefined?props["selected"]:false}_createClass(GalleryImage,[{key:"asHTML",value:function asHTML(){var includeRemoveButton=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var builder=(new HtmlBuilder.default(html)).replace("id",this.id).replace("url",this.local_url_thumb);builder.replace("removeButton",includeRemoveButton?removeButtonHtml:"");return builder.get()}}]);return GalleryImage}();exports.default=GalleryImage});
Liferay.Loader.define("media-gallery-selector@1.0.0/js/handler",["module","exports","require","media-gallery-selector@1.0.0/js/image"],function(module,exports,require){var define=undefined;Object.defineProperty(exports,"__esModule",{value:true});var _GalleryImage=require("media-gallery-selector@1.0.0/js/image");var GalleryImage=_interopRequireDefault(_GalleryImage);var searchRequest=function(config,callback){var url=config.url+"?query\x3d"+config.query;if(config.page!==undefined)url+="\x26page\x3d"+
config.page;if(config.show!=undefined)url+="\x26show\x3d"+config.show;return window.jQuery.get(url,callback)};var GalleryHandler=function(){function GalleryHandler(){_classCallCheck(this,GalleryHandler);var _constructorArgs=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};this._page=_constructorArgs["page"]!==undefined?_constructorArgs["page"]:1;this._url=_constructorArgs["url"]!==undefined?_constructorArgs["url"]:null;this._images=[]}_createClass(GalleryHandler,[{key:"search",value:function search(query,
type){if(this._url===null)throw new Error("there is no url to search");var _this=this;_this._images=[];return new Promise(function(resolve,reject){searchRequest({url:_this._url,query:query,page:_this._page,show:type},function(data,status){if(data.items!==undefined&&data.items.constructor===Array&&data.items.length>0)_this._images=data.items.map(function(imgData){var _data=imgData;_data.title_de=imgData.title_gr;return new GalleryImage.default(_data)});resolve({page:_this.page,total:data.total!==undefined?
data.total:_this._images.length,images:_this._images,hasMorePages:data.hasMorePages!==undefined?data.hasMorePages:false,error:status!=="success"})}).fail(function(){resolve({page:_this.page,total:0,images:_this._images,hasMorePages:false,error:true})})})}},{key:"setPage",value:function setPage(page){this._page=page}},{key:"getPage",value:function getPage(){return this._page}},{key:"getImages",value:function getImages(){return this._images}},{key:"getSelected",value:function getSelected(){return this._images.filter(function(image){return image._selected})}},
{key:"select",value:function select(ids){var _ids=ids.constructor===Array?ids:[ids];var $this=this;this._images.forEach(function(image){if(_ids.some(function(id){return image.id===id}))image._selected=true})}},{key:"unselect",value:function unselect(ids){var _ids=ids.constructor===Array?ids:[ids];var $this=this;this._images.forEach(function(image){if(_ids.some(function(id){return image.id===id}))image._selected=false})}}]);return GalleryHandler}();exports.default=GalleryHandler});
Liferay.Loader.define("media-gallery-selector@1.0.0/js/dom",["module","exports","require","media-gallery-selector@1.0.0/js/handler","media-gallery-selector@1.0.0/js/builder"],function(module,exports,require){var define=undefined;Object.defineProperty(exports,"__esModule",{value:true});var _GalleryHandler=require("media-gallery-selector@1.0.0/js/handler");var GalleryHandler=_interopRequireDefault(_GalleryHandler);var _HtmlBuilder=require("media-gallery-selector@1.0.0/js/builder");var HtmlBuilder=_interopRequireDefault(_HtmlBuilder);
var unbindEvent=function unbindEvent(selector,evt,callback){selector!==undefined&&selector.off(evt,callback)};var bindEvent=function bindEvent(selector,evt,callback){var unbindBefore=arguments.length>0&&arguments[3]!==undefined?arguments[3]:true;if(unbindBefore)unbindEvent(selector,evt,callback);selector!==undefined&&selector.on(evt,callback)};var createUUID=function createUUID(){var dt=(new Date).getTime();var uuid="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var r=(dt+Math.random()*
16)%16|0;dt=Math.floor(dt/16);return(c=="x"?r:r&3|8).toString(16)});return uuid};var DEFAULTS={url:"/o/ext-api/external-rs/razuna/query",page:1,show:"all",appendTo:"body",selectionMode:"multiple"};var DOM={html:'\x3cdiv class\x3d"modal fade admin-elements" id\x3d"%id%" tabindex\x3d"-1" role\x3d"dialog" aria-labelledby\x3d"modalRazunaLabel"\x3e\x3cdiv class\x3d"modal-dialog" role\x3d"document"\x3e\x3cdiv class\x3d"modal-content"\x3e\x3cdiv class\x3d"modal-header"\x3e\x3ch4 class\x3d"modal-title"\x3e\x3cspan\x3eBuscar im\u00e1genes en razuna\x3c/span\x3e\x3c/h4\x3e\x3cbutton type\x3d"button" class\x3d"close" data-dismiss\x3d"modal" aria-label\x3d"Close"\x3e\x3cspan aria-hidden\x3d"true"\x3e\x26times;\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e\x3cdiv class\x3d"modal-body"\x3e\x3cdiv class\x3d"container group-gray"\x3e\x3cdiv class\x3d"form-group row"\x3e\x3cdiv class\x3d"filter col-md-2 text-md-right"\x3e\x3clabel for\x3d"filter-user-create"\x3e\x3cspan\x3eTexto\x3c/span\x3e\x3c/label\x3e\x3c/div\x3e\x3cdiv id\x3d"form-search-text" class\x3d"filter col-md-5"\x3e\x3cinput type\x3d"text" type\x3d"text" placeholder\x3d"..." class\x3d"form-control"\x3e\x3c/div\x3e\x3cdiv class\x3d"filter col-md-1 text-md-right"\x3e\x3clabel\x3e\x3cspan\x3eTipo\x3c/span\x3e\x3c/label\x3e\x3c/div\x3e\x3cdiv class\x3d"filter col-md-3" id\x3d"form-type"\x3e\x3cinput class\x3d"form-check-input" checked\x3d"checked" type\x3d"checkbox" id\x3d"video" value\x3d"vid"\x3e\x3clabel class\x3d"form-check-label" for\x3d"video"\x3e\x3cspan\x3eV\u00eddeo\x3c/span\x3e\x3c/label\x3e\x3cinput class\x3d"form-check-input" checked\x3d"checked" type\x3d"checkbox" id\x3d"image" value\x3d"img"\x3e\x3clabel class\x3d"form-check-label"  for\x3d"image"\x3e\x3cspan\x3eFoto\x3c/span\x3e\x3c/label\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"form-group row action-buttons"\x3e\x3cdiv class\x3d"filter col text-center"\x3e\x3cbutton id\x3d"search-button" class\x3d"btn" type\x3d"button"\x3e\x3ci class\x3d"glyphicon glyphicon-search"\x3e\x3c/i\x3e\x3cspan\x3eBuscar\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv id\x3d"modal-loader" class\x3d"load-bar hidden"\x3e\x3cdiv class\x3d"bar"\x3e\x3c/div\x3e\x3cdiv class\x3d"bar"\x3e\x3c/div\x3e\x3cdiv class\x3d"bar"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"row no-gutters" id\x3d"suggester"\x3e\x3c/div\x3e\x3cdiv id\x3d"load-more-container" class\x3d"panel-body text-center" style\x3d"display: none;"\x3e\x3cbutton type\x3d"button" class\x3d"btn inline" style\x3d"width: 100%; max-width: 300px;" \x3e\x3ci class\x3d"glyphicon glyphicon-chevron-down"\x3e\x3c/i\x3e\x3cspan\x3eM\u00e1s\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"modal-footer"\x3e\x3cbutton id\x3d"select-button" type\x3d"button" class\x3d"btn btn-primary"\x3e\x3cspan\x3eSeleccionar imagen(es)\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
noResults:"\x3cp\x3eNo se ha encontrado ning\u00fan resultado\x3c/p\x3e"};var selectors={loadMoreContainer:"#load-more-container",resultsContainer:"#suggester",typeCheck:"#form-type \x3e input[type\x3dcheckbox]",queryInput:"#form-search-text \x3e input",loader:"#modal-loader",searchButton:"#search-button",selectButton:"#select-button",image:function($image){return $image.find(".card-razuna")}};var $=window.jQuery||function(){throw new Error("unavailable jquery function");};var GalleryDOM=function(){function GalleryDOM(){_classCallCheck(this,
GalleryDOM);var _constructorArgs=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};this._handler=new GalleryHandler.default({url:_constructorArgs["url"]!==undefined?_constructorArgs["url"]:DEFAULTS.url,show:_constructorArgs["show"]!==undefined?_constructorArgs["show"]:DEFAULTS.show,page:_constructorArgs["page"]!==undefined?_constructorArgs["page"]:DEFAULTS.page});this._selectionMode=_constructorArgs["selectionMode"]!==undefined?_constructorArgs["selectionMode"]:DEFAULTS.selectionMode;this._lastQuery=
null;this._querying=false;this._closed=true;var id=_constructorArgs["id"]!==undefined?_constructorArgs["id"]:"modalRazuna-"+createUUID();var appendTo=_constructorArgs["appendTo"]!==undefined&&$(_constructorArgs["appendTo"]).length?_constructorArgs["appendTo"]:DEFAULTS.appendTo;$(appendTo).append((new HtmlBuilder.default(DOM.html)).replace("id",id).get());this._$instance=$("#"+id);this._selectors={};var _this=this;Object.keys(selectors).forEach(function(selector){_this._selectors[selector]=selector!==
"image"?_this._$instance.find(selectors[selector]):selectors[selector]});bindEvent(this._selectors.searchButton,"click",function(){_this._handler.setPage(DEFAULTS.page);_this.search(true)});bindEvent(this._selectors.loadMoreContainer.find("button"),"click",function(){_this._handler.setPage(_this._handler.getPage()+1);_this.search()});bindEvent(this._selectors.selectButton,"click",function(){if(typeof _this._onSelectCallback==="function")_this._onSelectCallback(_this._handler.getSelected());_this.hide()})}
_createClass(GalleryDOM,[{key:"show",value:function show(){var showArgs=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _this=this;this.clear();this._$instance.one("show.bs.modal",function(){_this._$instance.css("zIndex","9999");_this._closed=false});this._$instance.modal("show");this._onSelectCallback=showArgs["onSelect"]!==undefined?showArgs["onSelect"]:null;this._$instance.one("hidden.bs.modal",function(){_this.clear();_this._closed=true})}},{key:"hide",value:function hide(){this._$instance.css({"zIndex":"-1"});
this._$instance.modal("hide")}},{key:"clear",value:function clear(){this._handler.setPage(1);this._selectors.resultsContainer.empty();this._selectors.loadMoreContainer.hide();this._selectors.loader.hide()}},{key:"search",value:function search(){if(this._querying)return false;this._querying=true;var clearContainer=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var query=this._selectors.queryInput.val().trim();var type=this._selectors.typeCheck.parent().find("input:checked");var show=
DEFAULTS.show;if(!type.length)type=this._selectors.typeCheck.first();if(type.length===1)show=type.val();this._selectors.loader.show();if(query!==this._lastQuery)this._handler.setPage(DEFAULTS.page);this._lastQuery=query;var _this=this;this._handler.search(query,show).then(function(data){if(clearContainer){_this._handler.getImages().forEach(function(image){var $image=_this._$instance.find("#"+image.id);unbindEvent($image,"click");$image.remove()});_this._selectors.resultsContainer.empty()}if(_this.closed)return false;
if(data.error);if(data.total<=0&&clearContainer)_this._selectors.resultsContainer.append(DOM.noResults);else if(data.images!==undefined)data.images.forEach(function(image){_this._selectors.resultsContainer.append(image.asHTML());var $image=_this._$instance.find("#"+image.id);bindEvent(_this._selectors.image($image),"click",function(evt){if(_this._selectionMode!=="multiple")data.images.filter(function(image){return image._selected}).forEach(function(image){_this._selectors.image(_this._$instance.find("#"+
image.id)).removeClass("selected");_this._handler.unselect(image.id)});if(image._selected)_this._handler.unselect(image.id);else _this._handler.select(image.id);_this._selectors.image($image).toggleClass("selected")})});if(data.hasMorePages)_this._selectors.loadMoreContainer.show();else _this._selectors.loadMoreContainer.hide();_this._selectors.loader.hide();_this._querying=false})}}]);return GalleryDOM}();exports.default=GalleryDOM});
if("NodeList"in window&&!NodeList.prototype.forEach){console.info("polyfill for IE11");NodeList.prototype.forEach=function(callback,thisArg){thisArg=thisArg||window;for(var i=0;i<this.length;i++)callback.call(thisArg,this[i],i,this)}};
(function(){"use-strict";var breakpoints={sm:576,md:768,lg:992,xl:1200};var parseAttribute=function(attr,$item,defaultValue){var res;try{res=JSON.parse($item.attr(attr))}catch(ex){res=defaultValue}return res};var defaultConfig={prevArrow:'\x3cbutton type\x3d"button" class\x3d"slick-prev" aria-label\x3d"prev"\x3e\x3ci class\x3d"andalucia-i-angle-left"\x3e\x3c/i\x3e\x3c/button\x3e',nextArrow:'\x3cbutton type\x3d"button" class\x3d"slick-next" aria-label\x3d"next"\x3e\x3ci class\x3d"andalucia-i-angle-right"\x3e\x3c/i\x3e\x3c/button\x3e'};
var autostart=function(_$el){var slickConfig=Object.assign(defaultConfig,parseAttribute("data-slick-config",_$el,{}));Object.keys(breakpoints).forEach(function(breakpoint){var breakpointConfig=parseAttribute("data-slick-"+breakpoint,_$el,null);if(breakpointConfig!==null){if(slickConfig.responsive==null)slickConfig.responsive=[];slickConfig.responsive.push({breakpoint:breakpoints[breakpoint],settings:breakpointConfig})}});if(_$el.find(".slick-item").length)_$el.slick(slickConfig)};window.SlickAuto=
autostart;$(window).on("load",function(){if(window.jQuery!=null)$(".slick-carousel.autostart").not(".slick-initialized").each(function(){autostart($(this))});window.SlickAuto.triggered=true})})(window);
!function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'\x3cbutton class\x3d"slick-prev" aria-label\x3d"Previous" type\x3d"button"\x3ePrevious\x3c/button\x3e',nextArrow:'\x3cbutton class\x3d"slick-next" aria-label\x3d"Next" type\x3d"button"\x3eNext\x3c/button\x3e',
autoplay:!1,autoplaySpeed:3E3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('\x3cbutton type\x3d"button" /\x3e').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,
speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1E3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,
touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=
i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=
i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=
this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),
s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,
t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===
s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=
function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&
clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),
e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled",
"true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("\x3cul /\x3e").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("\x3cli /\x3e").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=
this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('\x3cdiv class\x3d"slick-track"/\x3e').appendTo(e.$slider):e.$slides.wrapAll('\x3cdiv class\x3d"slick-track"/\x3e').parent(),e.$list=e.$slideTrack.wrap('\x3cdiv class\x3d"slick-list"/\x3e').parent(),
e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>
1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,
t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||
t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&
(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case "previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-
s,!1,t);break;case "next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case "index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=
function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===
e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),
!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!\x3dtrue]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",
i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),
t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&
(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",
[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=
function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;
e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=
i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=
n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*
n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/
2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+
n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=
e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;
return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||
(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",
tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+
e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},
i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",
i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",
{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,
i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!\x3dtrue]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=
this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),
r=document.createElement("img");r.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?
!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),
a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),
i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=
function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=
function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=
function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),
i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,
e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),
e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),
e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=
o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===
i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===
i.options.variableWidth?i.$slideTrack.width(5E3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",
right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;
if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-
1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):
i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&
(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===
e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%
2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-
n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden",
"false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");
for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));
s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&
(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%
a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,
function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=
360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",
[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case "left":case "down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case "right":case "up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==
o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),
i.data.action){case "start":e.swipeStart(i);break;case "move":e.swipeMove(i);break;case "end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,
2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,
l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,
t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),
i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,
i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=
i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),
i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}});
