Updated
This commit is contained in:
@@ -0,0 +1,941 @@
|
||||
var COMPILED=!0,goog=goog||{};goog.NODE_JS=!1;goog.global=goog.NODE_JS?eval("global"):this;goog.DEBUG=!1;goog.LOCALE="en";goog.provide=function(a){if(!COMPILED){if(goog.isProvided_(a))throw Error('Namespace "'+a+'" already declared.');delete goog.implicitNamespaces_[a];for(var b=a;(b=b.substring(0,b.lastIndexOf(".")))&&!goog.getObjectByName(b);)goog.implicitNamespaces_[b]=!0}goog.exportPath_(a)};
|
||||
goog.setTestOnly=function(a){if(COMPILED&&!goog.DEBUG)throw a=a||"",Error("Importing test-only code into non-debug environment"+a?": "+a:".");};COMPILED||(goog.isProvided_=function(a){return!goog.implicitNamespaces_[a]&&!!goog.getObjectByName(a)},goog.implicitNamespaces_={});goog.isExistingGlobalVariable_=function(a){return"undefined"!==String(eval("typeof "+a))};
|
||||
goog.exportPath_=function(a,b,c){a=a.split(".");c=c||goog.global;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);goog.NODE_JS&&c===goog.global&&goog.isExistingGlobalVariable_(a[0])&&(c=eval(a[0]),a.shift());for(var d;a.length&&(d=a.shift());)!a.length&&goog.isDef(b)?c[d]=b:c=c[d]?c[d]:c[d]={}};
|
||||
goog.getObjectByName=function(a,b){var c=a.split("."),d=b||goog.global;goog.NODE_JS&&d===goog.global&&goog.isExistingGlobalVariable_(c[0])&&(d=eval(c[0]),c.shift());for(var e;e=c.shift();)if(goog.isDefAndNotNull(d[e]))d=d[e];else return null;return d};goog.globalize=function(a,b){var c=b||goog.global,d;for(d in a)c[d]=a[d]};
|
||||
goog.addDependency=function(a,b,c){if(!COMPILED){for(var d,a=a.replace(/\\/g,"/"),e=goog.dependencies_,f=0;d=b[f];f++)e.nameToPath[d]=a,a in e.pathToNames||(e.pathToNames[a]={}),e.pathToNames[a][d]=!0;for(d=0;b=c[d];d++)a in e.requires||(e.requires[a]={}),e.requires[a][b]=!0}};goog.ENABLE_DEBUG_LOADER=!0;
|
||||
goog.require=function(a){if(!COMPILED&&!goog.isProvided_(a)){if(goog.ENABLE_DEBUG_LOADER){var b=goog.getPathFromDeps_(a);if(b){goog.included_[b]=!0;goog.writeScripts_();return}}a="goog.require could not find: "+a;goog.global.console&&goog.global.console.error(a);throw Error(a);}};goog.basePath="";goog.nullFunction=function(){};goog.identityFunction=function(a){return a};goog.abstractMethod=function(){throw Error("unimplemented abstract method");};
|
||||
goog.addSingletonGetter=function(a){a.getInstance=function(){if(a.instance_)return a.instance_;goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=a);return a.instance_=new a}};goog.instantiatedSingletons_=[];
|
||||
!COMPILED&&goog.ENABLE_DEBUG_LOADER&&(goog.included_={},goog.dependencies_={pathToNames:{},nameToPath:{},requires:{},visited:{},written:{}},goog.inHtmlDocument_=function(){var a=goog.global.document;return"undefined"!=typeof a&&"write"in a},goog.findBasePath_=function(){if(goog.global.CLOSURE_BASE_PATH)goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_())for(var a=goog.global.document.getElementsByTagName("script"),b=a.length-1;0<=b;--b){var c=a[b].src,d=c.lastIndexOf("?"),d=
|
||||
-1==d?c.length:d;if("base.js"==c.substr(d-7,7)){goog.basePath=c.substr(0,d-7);break}}},goog.importScript_=function(a){var b=goog.global.CLOSURE_IMPORT_SCRIPT||goog.writeScriptTag_;!goog.dependencies_.written[a]&&b(a)&&(goog.dependencies_.written[a]=!0)},goog.writeScriptTag_=function(a){return goog.inHtmlDocument_()?(goog.global.document.write('<script type="text/javascript" src="'+a+'"><\/script>'),!0):!1},goog.writeScripts_=function(){function a(e){if(!(e in d.written)){if(!(e in d.visited)&&(d.visited[e]=
|
||||
!0,e in d.requires))for(var g in d.requires[e])if(!goog.isProvided_(g))if(g in d.nameToPath)a(d.nameToPath[g]);else throw Error("Undefined nameToPath for "+g);e in c||(c[e]=!0,b.push(e))}}var b=[],c={},d=goog.dependencies_,e;for(e in goog.included_)d.written[e]||a(e);for(e=0;e<b.length;e++)if(b[e])goog.importScript_(goog.basePath+b[e]);else throw Error("Undefined script input");},goog.getPathFromDeps_=function(a){return a in goog.dependencies_.nameToPath?goog.dependencies_.nameToPath[a]:null},goog.findBasePath_(),
|
||||
goog.global.CLOSURE_NO_DEPS||goog.importScript_(goog.basePath+"deps.js"));
|
||||
goog.typeOf=function(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};goog.isDef=function(a){return void 0!==a};goog.isNull=function(a){return null===a};goog.isDefAndNotNull=function(a){return null!=a};goog.isArray=function(a){return"array"==goog.typeOf(a)};goog.isArrayLike=function(a){var b=goog.typeOf(a);return"array"==b||"object"==b&&"number"==typeof a.length};goog.isDateLike=function(a){return goog.isObject(a)&&"function"==typeof a.getFullYear};goog.isString=function(a){return"string"==typeof a};
|
||||
goog.isBoolean=function(a){return"boolean"==typeof a};goog.isNumber=function(a){return"number"==typeof a};goog.isFunction=function(a){return"function"==goog.typeOf(a)};goog.isObject=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};goog.getUid=function(a){return a[goog.UID_PROPERTY_]||(a[goog.UID_PROPERTY_]=++goog.uidCounter_)};goog.removeUid=function(a){"removeAttribute"in a&&a.removeAttribute(goog.UID_PROPERTY_);try{delete a[goog.UID_PROPERTY_]}catch(b){}};
|
||||
goog.UID_PROPERTY_="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36);goog.uidCounter_=0;goog.getHashCode=goog.getUid;goog.removeHashCode=goog.removeUid;goog.cloneObject=function(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=goog.cloneObject(a[c]);return b}return a};goog.bindNative_=function(a,b,c){return a.call.apply(a.bind,arguments)};
|
||||
goog.bindJs_=function(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)}};goog.bind=function(a,b,c){goog.bind=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goog.bindNative_:goog.bindJs_;return goog.bind.apply(null,arguments)};
|
||||
goog.partial=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}};goog.mixin=function(a,b){for(var c in b)a[c]=b[c]};goog.now=Date.now||function(){return+new Date};
|
||||
goog.globalEval=function(a){if(goog.global.execScript)goog.global.execScript(a,"JavaScript");else if(goog.global.eval)if(null==goog.evalWorksForGlobals_&&(goog.global.eval("var _et_ = 1;"),"undefined"!=typeof goog.global._et_?(delete goog.global._et_,goog.evalWorksForGlobals_=!0):goog.evalWorksForGlobals_=!1),goog.evalWorksForGlobals_)goog.global.eval(a);else{var b=goog.global.document,c=b.createElement("script");c.type="text/javascript";c.defer=!1;c.appendChild(b.createTextNode(a));b.body.appendChild(c);
|
||||
b.body.removeChild(c)}else throw Error("goog.globalEval not available");};goog.evalWorksForGlobals_=null;goog.getCssName=function(a,b){var c=function(a){return goog.cssNameMapping_[a]||a},d=function(a){for(var a=a.split("-"),b=[],d=0;d<a.length;d++)b.push(c(a[d]));return b.join("-")},d=goog.cssNameMapping_?"BY_WHOLE"==goog.cssNameMappingStyle_?c:d:function(a){return a};return b?a+"-"+d(b):d(a)};goog.setCssNameMapping=function(a,b){goog.cssNameMapping_=a;goog.cssNameMappingStyle_=b};
|
||||
!COMPILED&&goog.global.CLOSURE_CSS_NAME_MAPPING&&(goog.cssNameMapping_=goog.global.CLOSURE_CSS_NAME_MAPPING);goog.getMsg=function(a,b){var c=b||{},d;for(d in c)var e=(""+c[d]).replace(/\$/g,"$$$$"),a=a.replace(RegExp("\\{\\$"+d+"\\}","gi"),e);return a};goog.exportSymbol=function(a,b,c){goog.exportPath_(a,b,c)};goog.exportProperty=function(a,b,c){a[b]=c};goog.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new c;a.prototype.constructor=a};
|
||||
goog.base=function(a,b,c){var d=arguments.callee.caller;if(d.superClass_)return d.superClass_.constructor.apply(a,Array.prototype.slice.call(arguments,1));for(var e=Array.prototype.slice.call(arguments,2),f=!1,g=a.constructor;g;g=g.superClass_&&g.superClass_.constructor)if(g.prototype[b]===d)f=!0;else if(f)return g.prototype[b].apply(a,e);if(a[b]===d)return a.constructor.prototype[b].apply(a,e);throw Error("goog.base called from a method of one name to a method of a different name");};
|
||||
goog.scope=function(a){a.call(goog.global)};goog.debug={};goog.debug.Error=function(a){Error.captureStackTrace?Error.captureStackTrace(this,goog.debug.Error):this.stack=Error().stack||"";a&&(this.message=String(a))};goog.inherits(goog.debug.Error,Error);goog.debug.Error.prototype.name="CustomError";goog.string={};goog.string.Unicode={NBSP:"\u00a0"};goog.string.startsWith=function(a,b){return 0==a.lastIndexOf(b,0)};goog.string.endsWith=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};goog.string.caseInsensitiveStartsWith=function(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(0,b.length))};goog.string.caseInsensitiveEndsWith=function(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(a.length-b.length,b.length))};
|
||||
goog.string.subs=function(a,b){for(var c=1;c<arguments.length;c++)var d=String(arguments[c]).replace(/\$/g,"$$$$"),a=a.replace(/\%s/,d);return a};goog.string.collapseWhitespace=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};goog.string.isEmpty=function(a){return/^[\s\xa0]*$/.test(a)};goog.string.isEmptySafe=function(a){return goog.string.isEmpty(goog.string.makeSafe(a))};goog.string.isBreakingWhitespace=function(a){return!/[^\t\n\r ]/.test(a)};goog.string.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};
|
||||
goog.string.isNumeric=function(a){return!/[^0-9]/.test(a)};goog.string.isAlphaNumeric=function(a){return!/[^a-zA-Z0-9]/.test(a)};goog.string.isSpace=function(a){return" "==a};goog.string.isUnicodeChar=function(a){return 1==a.length&&" "<=a&&"~">=a||"\u0080"<=a&&"\ufffd">=a};goog.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};goog.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};
|
||||
goog.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," ")};goog.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")};goog.string.collapseBreakingSpaces=function(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};goog.string.trim=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};goog.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};goog.string.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};
|
||||
goog.string.caseInsensitiveCompare=function(a,b){var c=String(a).toLowerCase(),d=String(b).toLowerCase();return c<d?-1:c==d?0:1};goog.string.numerateCompareRegExp_=/(\.\d+)|(\d+)|(\D+)/g;
|
||||
goog.string.numerateCompare=function(a,b){if(a==b)return 0;if(!a)return-1;if(!b)return 1;for(var c=a.toLowerCase().match(goog.string.numerateCompareRegExp_),d=b.toLowerCase().match(goog.string.numerateCompareRegExp_),e=Math.min(c.length,d.length),f=0;f<e;f++){var g=c[f],h=d[f];if(g!=h)return c=parseInt(g,10),!isNaN(c)&&(d=parseInt(h,10),!isNaN(d)&&c-d)?c-d:g<h?-1:1}return c.length!=d.length?c.length-d.length:a<b?-1:1};goog.string.urlEncode=function(a){return encodeURIComponent(String(a))};
|
||||
goog.string.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," "))};goog.string.newLineToBr=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")};
|
||||
goog.string.htmlEscape=function(a,b){if(b)return a.replace(goog.string.amperRe_,"&").replace(goog.string.ltRe_,"<").replace(goog.string.gtRe_,">").replace(goog.string.quotRe_,""");if(!goog.string.allRe_.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(goog.string.amperRe_,"&"));-1!=a.indexOf("<")&&(a=a.replace(goog.string.ltRe_,"<"));-1!=a.indexOf(">")&&(a=a.replace(goog.string.gtRe_,">"));-1!=a.indexOf('"')&&(a=a.replace(goog.string.quotRe_,"""));return a};
|
||||
goog.string.amperRe_=/&/g;goog.string.ltRe_=/</g;goog.string.gtRe_=/>/g;goog.string.quotRe_=/\"/g;goog.string.allRe_=/[&<>\"]/;goog.string.unescapeEntities=function(a){return goog.string.contains(a,"&")?"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(a):goog.string.unescapePureXmlEntities_(a):a};
|
||||
goog.string.unescapeEntitiesUsingDom_=function(a){var b={"&":"&","<":"<",">":">",""":'"'},c=document.createElement("div");return a.replace(goog.string.HTML_ENTITY_PATTERN_,function(a,e){var f=b[a];if(f)return f;if("#"==e.charAt(0)){var g=Number("0"+e.substr(1));isNaN(g)||(f=String.fromCharCode(g))}f||(c.innerHTML=a+" ",f=c.firstChild.nodeValue.slice(0,-1));return b[a]=f})};
|
||||
goog.string.unescapePureXmlEntities_=function(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==c.charAt(0)){var d=Number("0"+c.substr(1));if(!isNaN(d))return String.fromCharCode(d)}return a}})};goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g;goog.string.whitespaceEscape=function(a,b){return goog.string.newLineToBr(a.replace(/ /g,"  "),b)};
|
||||
goog.string.stripQuotes=function(a,b){for(var c=b.length,d=0;d<c;d++){var e=1==c?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a.length-1)}return a};goog.string.truncate=function(a,b,c){c&&(a=goog.string.unescapeEntities(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=goog.string.htmlEscape(a));return a};
|
||||
goog.string.truncateMiddle=function(a,b,c,d){c&&(a=goog.string.unescapeEntities(a));if(d&&a.length>b){d>b&&(d=b);var e=a.length-d,a=a.substring(0,b-d)+"..."+a.substring(e)}else a.length>b&&(d=Math.floor(b/2),e=a.length-d,a=a.substring(0,d+b%2)+"..."+a.substring(e));c&&(a=goog.string.htmlEscape(a));return a};goog.string.specialEscapeChars_={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\"};goog.string.jsEscapeCache_={"'":"\\'"};
|
||||
goog.string.quote=function(a){a=String(a);if(a.quote)return a.quote();for(var b=['"'],c=0;c<a.length;c++){var d=a.charAt(c),e=d.charCodeAt(0);b[c+1]=goog.string.specialEscapeChars_[d]||(31<e&&127>e?d:goog.string.escapeChar(d))}b.push('"');return b.join("")};goog.string.escapeString=function(a){for(var b=[],c=0;c<a.length;c++)b[c]=goog.string.escapeChar(a.charAt(c));return b.join("")};
|
||||
goog.string.escapeChar=function(a){if(a in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[a];if(a in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[a]=goog.string.specialEscapeChars_[a];var b=a,c=a.charCodeAt(0);if(31<c&&127>c)b=a;else{if(256>c){if(b="\\x",16>c||256<c)b+="0"}else b="\\u",4096>c&&(b+="0");b+=c.toString(16).toUpperCase()}return goog.string.jsEscapeCache_[a]=b};goog.string.toMap=function(a){for(var b={},c=0;c<a.length;c++)b[a.charAt(c)]=!0;return b};
|
||||
goog.string.contains=function(a,b){return-1!=a.indexOf(b)};goog.string.countOf=function(a,b){return a&&b?a.split(b).length-1:0};goog.string.removeAt=function(a,b,c){var d=a;0<=b&&(b<a.length&&0<c)&&(d=a.substr(0,b)+a.substr(b+c,a.length-b-c));return d};goog.string.remove=function(a,b){var c=RegExp(goog.string.regExpEscape(b),"");return a.replace(c,"")};goog.string.removeAll=function(a,b){var c=RegExp(goog.string.regExpEscape(b),"g");return a.replace(c,"")};
|
||||
goog.string.regExpEscape=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};goog.string.repeat=function(a,b){return Array(b+1).join(a)};goog.string.padNumber=function(a,b,c){a=goog.isDef(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return goog.string.repeat("0",Math.max(0,b-c))+a};goog.string.makeSafe=function(a){return null==a?"":String(a)};goog.string.buildString=function(a){return Array.prototype.join.call(arguments,"")};
|
||||
goog.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^goog.now()).toString(36)};
|
||||
goog.string.compareVersions=function(a,b){for(var c=0,d=goog.string.trim(String(a)).split("."),e=goog.string.trim(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var h=d[g]||"",i=e[g]||"",k=RegExp("(\\d*)(\\D*)","g"),j=RegExp("(\\d*)(\\D*)","g");do{var l=k.exec(h)||["","",""],m=j.exec(i)||["","",""];if(0==l[0].length&&0==m[0].length)break;var c=0==l[1].length?0:parseInt(l[1],10),p=0==m[1].length?0:parseInt(m[1],10),c=goog.string.compareElements_(c,p)||goog.string.compareElements_(0==
|
||||
l[2].length,0==m[2].length)||goog.string.compareElements_(l[2],m[2])}while(0==c)}return c};goog.string.compareElements_=function(a,b){return a<b?-1:a>b?1:0};goog.string.HASHCODE_MAX_=4294967296;goog.string.hashCode=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=goog.string.HASHCODE_MAX_;return b};goog.string.uniqueStringCounter_=2147483648*Math.random()|0;goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++};
|
||||
goog.string.toNumber=function(a){var b=Number(a);return 0==b&&goog.string.isEmpty(a)?NaN:b};goog.string.toCamelCase=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};goog.string.toSelectorCase=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};goog.string.toTitleCase=function(a,b){var c=goog.isString(b)?goog.string.regExpEscape(b):"\\s";return a.replace(RegExp("(^"+(c?"|["+c+"]+":"")+")([a-z])","g"),function(a,b,c){return b+c.toUpperCase()})};
|
||||
goog.string.parseInt=function(a){isFinite(a)&&(a=String(a));return goog.isString(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN};goog.asserts={};goog.asserts.ENABLE_ASSERTS=goog.DEBUG;goog.asserts.AssertionError=function(a,b){b.unshift(a);goog.debug.Error.call(this,goog.string.subs.apply(null,b));b.shift();this.messagePattern=a};goog.inherits(goog.asserts.AssertionError,goog.debug.Error);goog.asserts.AssertionError.prototype.name="AssertionError";goog.asserts.doAssertFailure_=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);throw new goog.asserts.AssertionError(""+e,f||[]);};
|
||||
goog.asserts.assert=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!a&&goog.asserts.doAssertFailure_("",null,b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.fail=function(a,b){if(goog.asserts.ENABLE_ASSERTS)throw new goog.asserts.AssertionError("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};
|
||||
goog.asserts.assertNumber=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isNumber(a)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.assertString=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isString(a)&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
|
||||
goog.asserts.assertFunction=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(a)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.assertObject=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isObject(a)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
|
||||
goog.asserts.assertArray=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isArray(a)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.assertBoolean=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(a)&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
|
||||
goog.asserts.assertInstanceof=function(a,b,c,d){goog.asserts.ENABLE_ASSERTS&&!(a instanceof b)&&goog.asserts.doAssertFailure_("instanceof check failed.",null,c,Array.prototype.slice.call(arguments,3));return a};goog.array={};goog.NATIVE_ARRAY_PROTOTYPES=!0;goog.array.peek=function(a){return a[a.length-1]};goog.array.ARRAY_PROTOTYPE_=Array.prototype;
|
||||
goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&goog.array.ARRAY_PROTOTYPE_.indexOf?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.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(goog.isString(a))return!goog.isString(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
|
||||
goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&goog.array.ARRAY_PROTOTYPE_.lastIndexOf?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.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(goog.isString(a))return!goog.isString(b)||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
|
||||
goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&goog.array.ARRAY_PROTOTYPE_.forEach?function(a,b,c){goog.asserts.assert(null!=a.length);goog.array.ARRAY_PROTOTYPE_.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};goog.array.forEachRight=function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,d=d-1;0<=d;--d)d in e&&b.call(c,e[d],d,a)};
|
||||
goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&goog.array.ARRAY_PROTOTYPE_.filter?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=goog.isString(a)?a.split(""):a,h=0;h<d;h++)if(h in g){var i=g[h];b.call(c,i,h,a)&&(e[f++]=i)}return e};
|
||||
goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&goog.array.ARRAY_PROTOTYPE_.map?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=goog.isString(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e};goog.array.reduce=function(a,b,c,d){if(a.reduce)return d?a.reduce(goog.bind(b,d),c):a.reduce(b,c);var e=c;goog.array.forEach(a,function(c,g){e=b.call(d,e,c,g,a)});return e};
|
||||
goog.array.reduceRight=function(a,b,c,d){if(a.reduceRight)return d?a.reduceRight(goog.bind(b,d),c):a.reduceRight(b,c);var e=c;goog.array.forEachRight(a,function(c,g){e=b.call(d,e,c,g,a)});return e};
|
||||
goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&goog.array.ARRAY_PROTOTYPE_.some?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1};
|
||||
goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&goog.array.ARRAY_PROTOTYPE_.every?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0};goog.array.find=function(a,b,c){b=goog.array.findIndex(a,b,c);return 0>b?null:goog.isString(a)?a.charAt(b):a[b]};
|
||||
goog.array.findIndex=function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};goog.array.findRight=function(a,b,c){b=goog.array.findIndexRight(a,b,c);return 0>b?null:goog.isString(a)?a.charAt(b):a[b]};goog.array.findIndexRight=function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,d=d-1;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};goog.array.contains=function(a,b){return 0<=goog.array.indexOf(a,b)};
|
||||
goog.array.isEmpty=function(a){return 0==a.length};goog.array.clear=function(a){if(!goog.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};goog.array.insert=function(a,b){goog.array.contains(a,b)||a.push(b)};goog.array.insertAt=function(a,b,c){goog.array.splice(a,c,0,b)};goog.array.insertArrayAt=function(a,b,c){goog.partial(goog.array.splice,a,c,0).apply(null,b)};
|
||||
goog.array.insertBefore=function(a,b,c){var d;2==arguments.length||0>(d=goog.array.indexOf(a,c))?a.push(b):goog.array.insertAt(a,b,d)};goog.array.remove=function(a,b){var c=goog.array.indexOf(a,b),d;(d=0<=c)&&goog.array.removeAt(a,c);return d};goog.array.removeAt=function(a,b){goog.asserts.assert(null!=a.length);return 1==goog.array.ARRAY_PROTOTYPE_.splice.call(a,b,1).length};goog.array.removeIf=function(a,b,c){b=goog.array.findIndex(a,b,c);return 0<=b?(goog.array.removeAt(a,b),!0):!1};
|
||||
goog.array.concat=function(a){return goog.array.ARRAY_PROTOTYPE_.concat.apply(goog.array.ARRAY_PROTOTYPE_,arguments)};goog.array.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[]};goog.array.clone=goog.array.toArray;
|
||||
goog.array.extend=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(goog.isArray(d)||(e=goog.isArrayLike(d))&&d.hasOwnProperty("callee"))a.push.apply(a,d);else if(e)for(var f=a.length,g=d.length,h=0;h<g;h++)a[f+h]=d[h];else a.push(d)}};goog.array.splice=function(a,b,c,d){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.splice.apply(a,goog.array.slice(arguments,1))};
|
||||
goog.array.slice=function(a,b,c){goog.asserts.assert(null!=a.length);return 2>=arguments.length?goog.array.ARRAY_PROTOTYPE_.slice.call(a,b):goog.array.ARRAY_PROTOTYPE_.slice.call(a,b,c)};goog.array.removeDuplicates=function(a,b){for(var c=b||a,d={},e=0,f=0;f<a.length;){var g=a[f++],h=goog.isObject(g)?"o"+goog.getUid(g):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(d,h)||(d[h]=!0,c[e++]=g)}c.length=e};
|
||||
goog.array.binarySearch=function(a,b,c){return goog.array.binarySearch_(a,c||goog.array.defaultCompare,!1,b)};goog.array.binarySelect=function(a,b,c){return goog.array.binarySearch_(a,b,!0,void 0,c)};goog.array.binarySearch_=function(a,b,c,d,e){for(var f=0,g=a.length,h;f<g;){var i=f+g>>1,k;k=c?b.call(e,a[i],i,a):b(d,a[i]);0<k?f=i+1:(g=i,h=!k)}return h?f:~f};goog.array.sort=function(a,b){goog.asserts.assert(null!=a.length);goog.array.ARRAY_PROTOTYPE_.sort.call(a,b||goog.array.defaultCompare)};
|
||||
goog.array.stableSort=function(a,b){for(var c=0;c<a.length;c++)a[c]={index:c,value:a[c]};var d=b||goog.array.defaultCompare;goog.array.sort(a,function(a,b){return d(a.value,b.value)||a.index-b.index});for(c=0;c<a.length;c++)a[c]=a[c].value};goog.array.sortObjectsByKey=function(a,b,c){var d=c||goog.array.defaultCompare;goog.array.sort(a,function(a,c){return d(a[b],c[b])})};
|
||||
goog.array.isSorted=function(a,b,c){for(var b=b||goog.array.defaultCompare,d=1;d<a.length;d++){var e=b(a[d-1],a[d]);if(0<e||0==e&&c)return!1}return!0};goog.array.equals=function(a,b,c){if(!goog.isArrayLike(a)||!goog.isArrayLike(b)||a.length!=b.length)return!1;for(var d=a.length,c=c||goog.array.defaultCompareEquality,e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0};goog.array.compare=function(a,b,c){return goog.array.equals(a,b,c)};
|
||||
goog.array.compare3=function(a,b,c){for(var c=c||goog.array.defaultCompare,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 goog.array.defaultCompare(a.length,b.length)};goog.array.defaultCompare=function(a,b){return a>b?1:a<b?-1:0};goog.array.defaultCompareEquality=function(a,b){return a===b};goog.array.binaryInsert=function(a,b,c){c=goog.array.binarySearch(a,b,c);return 0>c?(goog.array.insertAt(a,b,-(c+1)),!0):!1};
|
||||
goog.array.binaryRemove=function(a,b,c){b=goog.array.binarySearch(a,b,c);return 0<=b?goog.array.removeAt(a,b):!1};goog.array.bucket=function(a,b){for(var c={},d=0;d<a.length;d++){var e=a[d],f=b(e,d,a);goog.isDef(f)&&(c[f]||(c[f]=[])).push(e)}return c};goog.array.toObject=function(a,b,c){var d={};goog.array.forEach(a,function(e,f){d[b.call(c,e,f,a)]=e});return d};goog.array.repeat=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};
|
||||
goog.array.flatten=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];goog.isArray(d)?b.push.apply(b,goog.array.flatten.apply(null,d)):b.push(d)}return b};goog.array.rotate=function(a,b){goog.asserts.assert(null!=a.length);a.length&&(b%=a.length,0<b?goog.array.ARRAY_PROTOTYPE_.unshift.apply(a,a.splice(-b,b)):0>b&&goog.array.ARRAY_PROTOTYPE_.push.apply(a,a.splice(0,-b)));return a};
|
||||
goog.array.zip=function(a){if(!arguments.length)return[];for(var b=[],c=0;;c++){for(var d=[],e=0;e<arguments.length;e++){var f=arguments[e];if(c>=f.length)return b;d.push(f[c])}b.push(d)}};goog.array.shuffle=function(a,b){for(var c=b||Math.random,d=a.length-1;0<d;d--){var e=Math.floor(c()*(d+1)),f=a[d];a[d]=a[e];a[e]=f}};goog.object={};goog.object.forEach=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};goog.object.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};goog.object.map=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d};goog.object.some=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};goog.object.every=function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return!1;return!0};
|
||||
goog.object.getCount=function(a){var b=0,c;for(c in a)b++;return b};goog.object.getAnyKey=function(a){for(var b in a)return b};goog.object.getAnyValue=function(a){for(var b in a)return a[b]};goog.object.contains=function(a,b){return goog.object.containsValue(a,b)};goog.object.getValues=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};goog.object.getKeys=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
|
||||
goog.object.getValueByKeys=function(a,b){for(var c=goog.isArrayLike(b),d=c?b:arguments,c=c?0:1;c<d.length&&!(a=a[d[c]],!goog.isDef(a));c++);return a};goog.object.containsKey=function(a,b){return b in a};goog.object.containsValue=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};goog.object.findKey=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};goog.object.findValue=function(a,b,c){return(b=goog.object.findKey(a,b,c))&&a[b]};
|
||||
goog.object.isEmpty=function(a){for(var b in a)return!1;return!0};goog.object.clear=function(a){for(var b in a)delete a[b]};goog.object.remove=function(a,b){var c;(c=b in a)&&delete a[b];return c};goog.object.add=function(a,b,c){if(b in a)throw Error('The object already contains the key "'+b+'"');goog.object.set(a,b,c)};goog.object.get=function(a,b,c){return b in a?a[b]:c};goog.object.set=function(a,b,c){a[b]=c};goog.object.setIfUndefined=function(a,b,c){return b in a?a[b]:a[b]=c};
|
||||
goog.object.clone=function(a){var b={},c;for(c in a)b[c]=a[c];return b};goog.object.unsafeClone=function(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=goog.object.unsafeClone(a[c]);return b}return a};goog.object.transpose=function(a){var b={},c;for(c in a)b[a[c]]=c;return b};goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
|
||||
goog.object.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<goog.object.PROTOTYPE_FIELDS_.length;f++)c=goog.object.PROTOTYPE_FIELDS_[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
|
||||
goog.object.create=function(a){var b=arguments.length;if(1==b&&goog.isArray(arguments[0]))return goog.object.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};goog.object.createSet=function(a){var b=arguments.length;if(1==b&&goog.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};
|
||||
goog.object.createImmutableView=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};goog.object.isImmutableView=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};goog.structs={};goog.structs.getCount=function(a){return"function"==typeof a.getCount?a.getCount():goog.isArrayLike(a)||goog.isString(a)?a.length:goog.object.getCount(a)};goog.structs.getValues=function(a){if("function"==typeof a.getValues)return a.getValues();if(goog.isString(a))return a.split("");if(goog.isArrayLike(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return goog.object.getValues(a)};
|
||||
goog.structs.getKeys=function(a){if("function"==typeof a.getKeys)return a.getKeys();if("function"!=typeof a.getValues){if(goog.isArrayLike(a)||goog.isString(a)){for(var b=[],a=a.length,c=0;c<a;c++)b.push(c);return b}return goog.object.getKeys(a)}};goog.structs.contains=function(a,b){return"function"==typeof a.contains?a.contains(b):"function"==typeof a.containsValue?a.containsValue(b):goog.isArrayLike(a)||goog.isString(a)?goog.array.contains(a,b):goog.object.containsValue(a,b)};
|
||||
goog.structs.isEmpty=function(a){return"function"==typeof a.isEmpty?a.isEmpty():goog.isArrayLike(a)||goog.isString(a)?goog.array.isEmpty(a):goog.object.isEmpty(a)};goog.structs.clear=function(a){"function"==typeof a.clear?a.clear():goog.isArrayLike(a)?goog.array.clear(a):goog.object.clear(a)};
|
||||
goog.structs.forEach=function(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(goog.isArrayLike(a)||goog.isString(a))goog.array.forEach(a,b,c);else for(var d=goog.structs.getKeys(a),e=goog.structs.getValues(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)};
|
||||
goog.structs.filter=function(a,b,c){if("function"==typeof a.filter)return a.filter(b,c);if(goog.isArrayLike(a)||goog.isString(a))return goog.array.filter(a,b,c);var d,e=goog.structs.getKeys(a),f=goog.structs.getValues(a),g=f.length;if(e){d={};for(var h=0;h<g;h++)b.call(c,f[h],e[h],a)&&(d[e[h]]=f[h])}else{d=[];for(h=0;h<g;h++)b.call(c,f[h],void 0,a)&&d.push(f[h])}return d};
|
||||
goog.structs.map=function(a,b,c){if("function"==typeof a.map)return a.map(b,c);if(goog.isArrayLike(a)||goog.isString(a))return goog.array.map(a,b,c);var d,e=goog.structs.getKeys(a),f=goog.structs.getValues(a),g=f.length;if(e){d={};for(var h=0;h<g;h++)d[e[h]]=b.call(c,f[h],e[h],a)}else{d=[];for(h=0;h<g;h++)d[h]=b.call(c,f[h],void 0,a)}return d};
|
||||
goog.structs.some=function(a,b,c){if("function"==typeof a.some)return a.some(b,c);if(goog.isArrayLike(a)||goog.isString(a))return goog.array.some(a,b,c);for(var d=goog.structs.getKeys(a),e=goog.structs.getValues(a),f=e.length,g=0;g<f;g++)if(b.call(c,e[g],d&&d[g],a))return!0;return!1};
|
||||
goog.structs.every=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(goog.isArrayLike(a)||goog.isString(a))return goog.array.every(a,b,c);for(var d=goog.structs.getKeys(a),e=goog.structs.getValues(a),f=e.length,g=0;g<f;g++)if(!b.call(c,e[g],d&&d[g],a))return!1;return!0};goog.structs.Collection=function(){};goog.iter={};"StopIteration"in goog.global?goog.iter.StopIteration=goog.global.StopIteration:goog.iter.StopIteration=Error("StopIteration");goog.iter.Iterator=function(){};goog.iter.Iterator.prototype.goog_iter_Iterator_prototype$next=function(){throw goog.iter.StopIteration;};goog.iter.Iterator.prototype.__iterator__=function(){return this};
|
||||
goog.iter.toIterator=function(a){if(a instanceof goog.iter.Iterator)return a;if("function"==typeof a.__iterator__)return a.__iterator__(!1);if(goog.isArrayLike(a)){var b=0,c=new goog.iter.Iterator;c.goog_iter_Iterator_prototype$next=function(){for(;;){if(b>=a.length)throw goog.iter.StopIteration;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");};
|
||||
goog.iter.forEach=function(a,b,c){if(goog.isArrayLike(a))try{goog.array.forEach(a,b,c)}catch(d){if(d!==goog.iter.StopIteration)throw d;}else{a=goog.iter.toIterator(a);try{for(;;)b.call(c,a.goog_iter_Iterator_prototype$next(),void 0,a)}catch(e){if(e!==goog.iter.StopIteration)throw e;}}};
|
||||
goog.iter.filter=function(a,b,c){var d=goog.iter.toIterator(a),a=new goog.iter.Iterator;a.goog_iter_Iterator_prototype$next=function(){for(;;){var a=d.goog_iter_Iterator_prototype$next();if(b.call(c,a,void 0,d))return a}};return a};
|
||||
goog.iter.range=function(a,b,c){var d=0,e=a,f=c||1;1<arguments.length&&(d=a,e=b);if(0==f)throw Error("Range step argument must not be zero");var g=new goog.iter.Iterator;g.goog_iter_Iterator_prototype$next=function(){if(0<f&&d>=e||0>f&&d<=e)throw goog.iter.StopIteration;var a=d;d+=f;return a};return g};goog.iter.join=function(a,b){return goog.iter.toArray(a).join(b)};
|
||||
goog.iter.map=function(a,b,c){var d=goog.iter.toIterator(a),a=new goog.iter.Iterator;a.goog_iter_Iterator_prototype$next=function(){for(;;){var a=d.goog_iter_Iterator_prototype$next();return b.call(c,a,void 0,d)}};return a};goog.iter.reduce=function(a,b,c,d){var e=c;goog.iter.forEach(a,function(a){e=b.call(d,e,a)});return e};
|
||||
goog.iter.some=function(a,b,c){a=goog.iter.toIterator(a);try{for(;;)if(b.call(c,a.goog_iter_Iterator_prototype$next(),void 0,a))return!0}catch(d){if(d!==goog.iter.StopIteration)throw d;}return!1};goog.iter.every=function(a,b,c){a=goog.iter.toIterator(a);try{for(;;)if(!b.call(c,a.goog_iter_Iterator_prototype$next(),void 0,a))return!1}catch(d){if(d!==goog.iter.StopIteration)throw d;}return!0};
|
||||
goog.iter.chain=function(a){var b=arguments,c=b.length,d=0,e=new goog.iter.Iterator;e.goog_iter_Iterator_prototype$next=function(){try{if(d>=c)throw goog.iter.StopIteration;return goog.iter.toIterator(b[d]).goog_iter_Iterator_prototype$next()}catch(a){if(a!==goog.iter.StopIteration||d>=c)throw a;d++;return this.goog_iter_Iterator_prototype$next()}};return e};
|
||||
goog.iter.dropWhile=function(a,b,c){var d=goog.iter.toIterator(a),a=new goog.iter.Iterator,e=!0;a.goog_iter_Iterator_prototype$next=function(){for(;;){var a=d.goog_iter_Iterator_prototype$next();if(!e||!b.call(c,a,void 0,d))return e=!1,a}};return a};
|
||||
goog.iter.takeWhile=function(a,b,c){var d=goog.iter.toIterator(a),a=new goog.iter.Iterator,e=!0;a.goog_iter_Iterator_prototype$next=function(){for(;;)if(e){var a=d.goog_iter_Iterator_prototype$next();if(b.call(c,a,void 0,d))return a;e=!1}else throw goog.iter.StopIteration;};return a};goog.iter.toArray=function(a){if(goog.isArrayLike(a))return goog.array.toArray(a);var a=goog.iter.toIterator(a),b=[];goog.iter.forEach(a,function(a){b.push(a)});return b};
|
||||
goog.iter.equals=function(a,b){var a=goog.iter.toIterator(a),b=goog.iter.toIterator(b),c,d;try{for(;;){c=d=!1;var e=a.goog_iter_Iterator_prototype$next();c=!0;var f=b.goog_iter_Iterator_prototype$next();d=!0;if(e!=f)break}}catch(g){if(g!==goog.iter.StopIteration)throw g;if(c&&!d)return!1;if(!d)try{b.goog_iter_Iterator_prototype$next()}catch(h){if(h!==goog.iter.StopIteration)throw h;return!0}}return!1};
|
||||
goog.iter.nextOrValue=function(a,b){try{return goog.iter.toIterator(a).goog_iter_Iterator_prototype$next()}catch(c){if(c!=goog.iter.StopIteration)throw c;return b}};
|
||||
goog.iter.product=function(a){if(goog.array.some(arguments,function(a){return!a.length})||!arguments.length)return new goog.iter.Iterator;var b=new goog.iter.Iterator,c=arguments,d=goog.array.repeat(0,c.length);b.goog_iter_Iterator_prototype$next=function(){if(d){for(var a=goog.array.map(d,function(a,b){return c[b][a]}),b=d.length-1;0<=b;b--){goog.asserts.assert(d);if(d[b]<c[b].length-1){d[b]++;break}if(0==b){d=null;break}d[b]=0}return a}throw goog.iter.StopIteration;};return b};
|
||||
goog.iter.cycle=function(a){var b=goog.iter.toIterator(a),c=[],d=0,a=new goog.iter.Iterator,e=!1;a.goog_iter_Iterator_prototype$next=function(){var a=null;if(!e)try{return a=b.goog_iter_Iterator_prototype$next(),c.push(a),a}catch(g){if(g!=goog.iter.StopIteration||goog.array.isEmpty(c))throw g;e=!0}a=c[d];d=(d+1)%c.length;return a};return a};goog.structs.Map=function(a,b){this.goog_structs_Map$map_={};this.keys_=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.goog_structs_Map_prototype$addAll(a)};goog.structs.Map.prototype.count_=0;goog.structs.Map.prototype.version_=0;goog.structs.Map.prototype.getCount=function(){return this.count_};
|
||||
goog.structs.Map.prototype.getValues=function(){this.cleanupKeysArray_();for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.goog_structs_Map$map_[this.keys_[b]]);return a};goog.structs.Map.prototype.getKeys=function(){this.cleanupKeysArray_();return this.keys_.concat()};goog.structs.Map.prototype.containsKey=function(a){return goog.structs.Map.hasKey_(this.goog_structs_Map$map_,a)};
|
||||
goog.structs.Map.prototype.containsValue=function(a){for(var b=0;b<this.keys_.length;b++){var c=this.keys_[b];if(goog.structs.Map.hasKey_(this.goog_structs_Map$map_,c)&&this.goog_structs_Map$map_[c]==a)return!0}return!1};goog.structs.Map.prototype.equals=function(a,b){if(this===a)return!0;if(this.count_!=a.getCount())return!1;var c=b||goog.structs.Map.defaultEquals;this.cleanupKeysArray_();for(var d,e=0;d=this.keys_[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};
|
||||
goog.structs.Map.defaultEquals=function(a,b){return a===b};goog.structs.Map.prototype.isEmpty=function(){return 0==this.count_};goog.structs.Map.prototype.clear=function(){this.goog_structs_Map$map_={};this.version_=this.count_=this.keys_.length=0};goog.structs.Map.prototype.remove=function(a){return goog.structs.Map.hasKey_(this.goog_structs_Map$map_,a)?(delete this.goog_structs_Map$map_[a],this.count_--,this.version_++,this.keys_.length>2*this.count_&&this.cleanupKeysArray_(),!0):!1};
|
||||
goog.structs.Map.prototype.cleanupKeysArray_=function(){if(this.count_!=this.keys_.length){for(var a=0,b=0;a<this.keys_.length;){var c=this.keys_[a];goog.structs.Map.hasKey_(this.goog_structs_Map$map_,c)&&(this.keys_[b++]=c);a++}this.keys_.length=b}if(this.count_!=this.keys_.length){for(var d={},b=a=0;a<this.keys_.length;)c=this.keys_[a],goog.structs.Map.hasKey_(d,c)||(this.keys_[b++]=c,d[c]=1),a++;this.keys_.length=b}};
|
||||
goog.structs.Map.prototype.get=function(a,b){return goog.structs.Map.hasKey_(this.goog_structs_Map$map_,a)?this.goog_structs_Map$map_[a]:b};goog.structs.Map.prototype.set=function(a,b){goog.structs.Map.hasKey_(this.goog_structs_Map$map_,a)||(this.count_++,this.keys_.push(a),this.version_++);this.goog_structs_Map$map_[a]=b};
|
||||
goog.structs.Map.prototype.goog_structs_Map_prototype$addAll=function(a){var b;a instanceof goog.structs.Map?(b=a.getKeys(),a=a.getValues()):(b=goog.object.getKeys(a),a=goog.object.getValues(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};goog.structs.Map.prototype.clone=function(){return new goog.structs.Map(this)};goog.structs.Map.prototype.transpose=function(){for(var a=new goog.structs.Map,b=0;b<this.keys_.length;b++){var c=this.keys_[b];a.set(this.goog_structs_Map$map_[c],c)}return a};
|
||||
goog.structs.Map.prototype.toObject=function(){this.cleanupKeysArray_();for(var a={},b=0;b<this.keys_.length;b++){var c=this.keys_[b];a[c]=this.goog_structs_Map$map_[c]}return a};goog.structs.Map.prototype.getKeyIterator=function(){return this.__iterator__(!0)};goog.structs.Map.prototype.getValueIterator=function(){return this.__iterator__(!1)};
|
||||
goog.structs.Map.prototype.__iterator__=function(a){this.cleanupKeysArray_();var b=0,c=this.keys_,d=this.goog_structs_Map$map_,e=this.version_,f=this,g=new goog.iter.Iterator;g.goog_iter_Iterator_prototype$next=function(){for(;;){if(e!=f.version_)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw goog.iter.StopIteration;var g=c[b++];return a?g:d[g]}};return g};goog.structs.Map.hasKey_=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};goog.structs.Set=function(a){this.goog_structs_Set$map_=new goog.structs.Map;a&&this.goog_structs_Set_prototype$addAll(a)};goog.structs.Set.getKey_=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+goog.getUid(a):b.substr(0,1)+a};goog.structs.Set.prototype.getCount=function(){return this.goog_structs_Set$map_.getCount()};goog.structs.Set.prototype.add=function(a){this.goog_structs_Set$map_.set(goog.structs.Set.getKey_(a),a)};
|
||||
goog.structs.Set.prototype.goog_structs_Set_prototype$addAll=function(a){for(var a=goog.structs.getValues(a),b=a.length,c=0;c<b;c++)this.add(a[c])};goog.structs.Set.prototype.removeAll=function(a){for(var a=goog.structs.getValues(a),b=a.length,c=0;c<b;c++)this.remove(a[c])};goog.structs.Set.prototype.remove=function(a){return this.goog_structs_Set$map_.remove(goog.structs.Set.getKey_(a))};goog.structs.Set.prototype.clear=function(){this.goog_structs_Set$map_.clear()};
|
||||
goog.structs.Set.prototype.isEmpty=function(){return this.goog_structs_Set$map_.isEmpty()};goog.structs.Set.prototype.contains=function(a){return this.goog_structs_Set$map_.containsKey(goog.structs.Set.getKey_(a))};goog.structs.Set.prototype.containsAll=function(a){return goog.structs.every(a,this.contains,this)};
|
||||
goog.structs.Set.prototype.goog_structs_Set_prototype$intersection=function(a){for(var b=new goog.structs.Set,a=goog.structs.getValues(a),c=0;c<a.length;c++){var d=a[c];this.contains(d)&&b.add(d)}return b};goog.structs.Set.prototype.goog_structs_Set_prototype$difference=function(a){var b=this.clone();b.removeAll(a);return b};goog.structs.Set.prototype.getValues=function(){return this.goog_structs_Set$map_.getValues()};goog.structs.Set.prototype.clone=function(){return new goog.structs.Set(this)};
|
||||
goog.structs.Set.prototype.equals=function(a){return this.getCount()==goog.structs.getCount(a)&&this.isSubsetOf(a)};goog.structs.Set.prototype.isSubsetOf=function(a){var b=goog.structs.getCount(a);if(this.getCount()>b)return!1;!(a instanceof goog.structs.Set)&&5<b&&(a=new goog.structs.Set(a));return goog.structs.every(this,function(b){return goog.structs.contains(a,b)})};goog.structs.Set.prototype.__iterator__=function(){return this.goog_structs_Set$map_.__iterator__(!1)};goog.userAgent={};goog.userAgent.ASSUME_IE=!1;goog.userAgent.ASSUME_GECKO=!1;goog.userAgent.ASSUME_WEBKIT=!1;goog.userAgent.ASSUME_MOBILE_WEBKIT=!1;goog.userAgent.ASSUME_OPERA=!1;goog.userAgent.ASSUME_ANY_VERSION=!1;goog.userAgent.BROWSER_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_GECKO||goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_OPERA;
|
||||
goog.userAgent.getUserAgentString=function(){return goog.global.navigator?goog.global.navigator.userAgent:null};goog.userAgent.getNavigator=function(){return goog.global.navigator};
|
||||
goog.userAgent.init_=function(){goog.userAgent.detectedOpera_=!1;goog.userAgent.detectedIe_=!1;goog.userAgent.detectedWebkit_=!1;goog.userAgent.detectedMobile_=!1;goog.userAgent.detectedGecko_=!1;var a;if(!goog.userAgent.BROWSER_KNOWN_&&(a=goog.userAgent.getUserAgentString())){var b=goog.userAgent.getNavigator();goog.userAgent.detectedOpera_=0==a.indexOf("Opera");goog.userAgent.detectedIe_=!goog.userAgent.detectedOpera_&&-1!=a.indexOf("MSIE");goog.userAgent.detectedWebkit_=!goog.userAgent.detectedOpera_&&
|
||||
-1!=a.indexOf("WebKit");goog.userAgent.detectedMobile_=goog.userAgent.detectedWebkit_&&-1!=a.indexOf("Mobile");goog.userAgent.detectedGecko_=!goog.userAgent.detectedOpera_&&!goog.userAgent.detectedWebkit_&&"Gecko"==b.product}};goog.userAgent.BROWSER_KNOWN_||goog.userAgent.init_();goog.userAgent.OPERA=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_OPERA:goog.userAgent.detectedOpera_;goog.userAgent.IE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_IE:goog.userAgent.detectedIe_;
|
||||
goog.userAgent.GECKO=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_GECKO:goog.userAgent.detectedGecko_;goog.userAgent.WEBKIT=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_MOBILE_WEBKIT:goog.userAgent.detectedWebkit_;goog.userAgent.MOBILE=goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.detectedMobile_;goog.userAgent.SAFARI=goog.userAgent.WEBKIT;goog.userAgent.determinePlatform_=function(){var a=goog.userAgent.getNavigator();return a&&a.platform||""};
|
||||
goog.userAgent.PLATFORM=goog.userAgent.determinePlatform_();goog.userAgent.ASSUME_MAC=!1;goog.userAgent.ASSUME_WINDOWS=!1;goog.userAgent.ASSUME_LINUX=!1;goog.userAgent.ASSUME_X11=!1;goog.userAgent.PLATFORM_KNOWN_=goog.userAgent.ASSUME_MAC||goog.userAgent.ASSUME_WINDOWS||goog.userAgent.ASSUME_LINUX||goog.userAgent.ASSUME_X11;
|
||||
goog.userAgent.initPlatform_=function(){goog.userAgent.detectedMac_=goog.string.contains(goog.userAgent.PLATFORM,"Mac");goog.userAgent.detectedWindows_=goog.string.contains(goog.userAgent.PLATFORM,"Win");goog.userAgent.detectedLinux_=goog.string.contains(goog.userAgent.PLATFORM,"Linux");goog.userAgent.detectedX11_=!!goog.userAgent.getNavigator()&&goog.string.contains(goog.userAgent.getNavigator().appVersion||"","X11")};goog.userAgent.PLATFORM_KNOWN_||goog.userAgent.initPlatform_();
|
||||
goog.userAgent.MAC=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_MAC:goog.userAgent.detectedMac_;goog.userAgent.WINDOWS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_WINDOWS:goog.userAgent.detectedWindows_;goog.userAgent.LINUX=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_LINUX:goog.userAgent.detectedLinux_;goog.userAgent.X11=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_X11:goog.userAgent.detectedX11_;
|
||||
goog.userAgent.determineVersion_=function(){var a="",b;goog.userAgent.OPERA&&goog.global.opera?(a=goog.global.opera.version,a="function"==typeof a?a():a):(goog.userAgent.GECKO?b=/rv\:([^\);]+)(\)|;)/:goog.userAgent.IE?b=/MSIE\s+([^\);]+)(\)|;)/:goog.userAgent.WEBKIT&&(b=/WebKit\/(\S+)/),b&&(a=(a=b.exec(goog.userAgent.getUserAgentString()))?a[1]:""));return goog.userAgent.IE&&(b=goog.userAgent.getDocumentMode_(),b>parseFloat(a))?String(b):a};
|
||||
goog.userAgent.getDocumentMode_=function(){var a=goog.global.document;return a?a.documentMode:void 0};goog.userAgent.VERSION=goog.userAgent.determineVersion_();goog.userAgent.compare=function(a,b){return goog.string.compareVersions(a,b)};goog.userAgent.isVersionCache_={};goog.userAgent.isVersion=function(a){return goog.userAgent.ASSUME_ANY_VERSION||goog.userAgent.isVersionCache_[a]||(goog.userAgent.isVersionCache_[a]=0<=goog.string.compareVersions(goog.userAgent.VERSION,a))};
|
||||
goog.userAgent.isDocumentModeCache_={};goog.userAgent.isDocumentMode=function(a){return goog.userAgent.isDocumentModeCache_[a]||(goog.userAgent.isDocumentModeCache_[a]=goog.userAgent.IE&&!!document.documentMode&&document.documentMode>=a)};goog.debug.catchErrors=function(a,b,c){var c=c||goog.global,d=c.onerror,e=!!b;goog.userAgent.WEBKIT&&!goog.userAgent.isVersion("535.3")&&(e=!e);c.onerror=function(b,c,h){d&&d(b,c,h);a({message:b,fileName:c,line:h});return e}};goog.debug.expose=function(a,b){if("undefined"==typeof a)return"undefined";if(null==a)return"NULL";var c=[],d;for(d in a)if(b||!goog.isFunction(a[d])){var e=d+" = ";try{e+=a[d]}catch(f){e+="*** "+f+" ***"}c.push(e)}return c.join("\n")};
|
||||
goog.debug.deepExpose=function(a,b){var c=new goog.structs.Set,d=[],e=function(a,g){var h=g+" ";try{if(goog.isDef(a))if(goog.isNull(a))d.push("NULL");else if(goog.isString(a))d.push('"'+a.replace(/\n/g,"\n"+g)+'"');else if(goog.isFunction(a))d.push(String(a).replace(/\n/g,"\n"+g));else if(goog.isObject(a))if(c.contains(a))d.push("*** reference loop detected ***");else{c.add(a);d.push("{");for(var i in a)if(b||!goog.isFunction(a[i]))d.push("\n"),d.push(h),d.push(i+" = "),e(a[i],h);d.push("\n"+g+"}")}else d.push(a);
|
||||
else d.push("undefined")}catch(k){d.push("*** "+k+" ***")}};e(a,"");return d.join("")};goog.debug.exposeArray=function(a){for(var b=[],c=0;c<a.length;c++)goog.isArray(a[c])?b.push(goog.debug.exposeArray(a[c])):b.push(a[c]);return"[ "+b.join(", ")+" ]"};
|
||||
goog.debug.exposeException=function(a,b){try{var c=goog.debug.normalizeErrorObject(a);return"Message: "+goog.string.htmlEscape(c.message)+'\nUrl: <a href="view-source:'+c.fileName+'" target="_new">'+c.fileName+"</a>\nLine: "+c.lineNumber+"\n\nBrowser stack:\n"+goog.string.htmlEscape(c.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+goog.string.htmlEscape(goog.debug.getStacktrace(b)+"-> ")}catch(d){return"Exception trying to expose exception! You win, we lose. "+d}};
|
||||
goog.debug.normalizeErrorObject=function(a){var b=goog.getObjectByName("window.location.href");if(goog.isString(a))return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c,d,e=!1;try{c=a.lineNumber||a.line||"Not available"}catch(f){c="Not available",e=!0}try{d=a.fileName||a.filename||a.sourceURL||b}catch(g){d="Not available",e=!0}return e||!a.lineNumber||!a.fileName||!a.stack?{message:a.message,name:a.name,lineNumber:c,fileName:d,stack:a.stack||"Not available"}:
|
||||
a};goog.debug.enhanceError=function(a,b){var c="string"==typeof a?Error(a):a;c.stack||(c.stack=goog.debug.getStacktrace(arguments.callee.caller));if(b){for(var d=0;c["message"+d];)++d;c["message"+d]=String(b)}return c};
|
||||
goog.debug.getStacktraceSimple=function(a){for(var b=[],c=arguments.callee.caller,d=0;c&&(!a||d<a);){b.push(goog.debug.getFunctionName(c));b.push("()\n");try{c=c.caller}catch(e){b.push("[exception trying to get caller]\n");break}d++;if(d>=goog.debug.MAX_STACK_DEPTH){b.push("[...long stack...]");break}}a&&d>=a?b.push("[...reached max depth limit...]"):b.push("[end]");return b.join("")};goog.debug.MAX_STACK_DEPTH=50;
|
||||
goog.debug.getStacktrace=function(a){return goog.debug.getStacktraceHelper_(a||arguments.callee.caller,[])};
|
||||
goog.debug.getStacktraceHelper_=function(a,b){var c=[];if(goog.array.contains(b,a))c.push("[...circular reference...]");else if(a&&b.length<goog.debug.MAX_STACK_DEPTH){c.push(goog.debug.getFunctionName(a)+"(");for(var d=a.arguments,e=0;e<d.length;e++){0<e&&c.push(", ");var f;f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":break;case "number":f=String(f);break;case "boolean":f=f?"true":"false";break;case "function":f=(f=goog.debug.getFunctionName(f))?f:"[fn]";break;default:f=
|
||||
typeof f}40<f.length&&(f=f.substr(0,40)+"...");c.push(f)}b.push(a);c.push(")\n");try{c.push(goog.debug.getStacktraceHelper_(a.caller,b))}catch(g){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")};goog.debug.setFunctionResolver=function(a){goog.debug.fnNameResolver_=a};
|
||||
goog.debug.getFunctionName=function(a){if(goog.debug.fnNameCache_[a])return goog.debug.fnNameCache_[a];if(goog.debug.fnNameResolver_){var b=goog.debug.fnNameResolver_(a);if(b)return goog.debug.fnNameCache_[a]=b}a=String(a);goog.debug.fnNameCache_[a]||(b=/function ([^\(]+)/.exec(a),goog.debug.fnNameCache_[a]=b?b[1]:"[Anonymous]");return goog.debug.fnNameCache_[a]};
|
||||
goog.debug.makeWhitespaceVisible=function(a){return a.replace(/ /g,"[_]").replace(/\f/g,"[f]").replace(/\n/g,"[n]\n").replace(/\r/g,"[r]").replace(/\t/g,"[t]")};goog.debug.fnNameCache_={};goog.debug.LogRecord=function(a,b,c,d,e){this.goog_debug_LogRecord_prototype$reset(a,b,c,d,e)};goog.debug.LogRecord.prototype.sequenceNumber_=0;goog.debug.LogRecord.prototype.exception_=null;goog.debug.LogRecord.prototype.exceptionText_=null;goog.debug.LogRecord.ENABLE_SEQUENCE_NUMBERS=!0;goog.debug.LogRecord.nextSequenceNumber_=0;
|
||||
goog.debug.LogRecord.prototype.goog_debug_LogRecord_prototype$reset=function(a,b,c,d,e){goog.debug.LogRecord.ENABLE_SEQUENCE_NUMBERS&&(this.sequenceNumber_="number"==typeof e?e:goog.debug.LogRecord.nextSequenceNumber_++);this.time_=d||goog.now();this.goog_debug_LogRecord_prototype$level_=a;this.msg_=b;this.loggerName_=c;delete this.exception_;delete this.exceptionText_};goog.debug.LogRecord.prototype.getLoggerName=function(){return this.loggerName_};goog.debug.LogRecord.prototype.getException=function(){return this.exception_};
|
||||
goog.debug.LogRecord.prototype.setException=function(a){this.exception_=a};goog.debug.LogRecord.prototype.getExceptionText=function(){return this.exceptionText_};goog.debug.LogRecord.prototype.setExceptionText=function(a){this.exceptionText_=a};goog.debug.LogRecord.prototype.setLoggerName=function(a){this.loggerName_=a};goog.debug.LogRecord.prototype.goog_debug_LogRecord_prototype$getLevel=function(){return this.goog_debug_LogRecord_prototype$level_};
|
||||
goog.debug.LogRecord.prototype.goog_debug_LogRecord_prototype$setLevel=function(a){this.goog_debug_LogRecord_prototype$level_=a};goog.debug.LogRecord.prototype.getMessage=function(){return this.msg_};goog.debug.LogRecord.prototype.setMessage=function(a){this.msg_=a};goog.debug.LogRecord.prototype.getMillis=function(){return this.time_};goog.debug.LogRecord.prototype.setMillis=function(a){this.time_=a};goog.debug.LogRecord.prototype.getSequenceNumber=function(){return this.sequenceNumber_};goog.debug.LogBuffer=function(){goog.asserts.assert(goog.debug.LogBuffer.isBufferingEnabled(),"Cannot use goog.debug.LogBuffer without defining goog.debug.LogBuffer.CAPACITY.");this.clear()};goog.debug.LogBuffer.getInstance=function(){goog.debug.LogBuffer.instance_||(goog.debug.LogBuffer.instance_=new goog.debug.LogBuffer);return goog.debug.LogBuffer.instance_};goog.debug.LogBuffer.CAPACITY=0;
|
||||
goog.debug.LogBuffer.prototype.addRecord=function(a,b,c){var d=(this.curIndex_+1)%goog.debug.LogBuffer.CAPACITY;this.curIndex_=d;if(this.isFull_)return d=this.buffer_[d],d.goog_debug_LogRecord_prototype$reset(a,b,c),d;this.isFull_=d==goog.debug.LogBuffer.CAPACITY-1;return this.buffer_[d]=new goog.debug.LogRecord(a,b,c)};goog.debug.LogBuffer.isBufferingEnabled=function(){return 0<goog.debug.LogBuffer.CAPACITY};
|
||||
goog.debug.LogBuffer.prototype.clear=function(){this.buffer_=Array(goog.debug.LogBuffer.CAPACITY);this.curIndex_=-1;this.isFull_=!1};goog.debug.LogBuffer.prototype.forEachRecord=function(a){var b=this.buffer_;if(b[0]){var c=this.curIndex_,d=this.isFull_?c:-1;do d=(d+1)%goog.debug.LogBuffer.CAPACITY,a(b[d]);while(d!=c)}};goog.debug.Logger=function(a){this.name_=a};goog.debug.Logger.prototype.goog_debug_Logger_prototype$parent_=null;goog.debug.Logger.prototype.goog_debug_Logger_prototype$level_=null;goog.debug.Logger.prototype.children_=null;goog.debug.Logger.prototype.handlers_=null;goog.debug.Logger.ENABLE_HIERARCHY=!0;goog.debug.Logger.ENABLE_HIERARCHY||(goog.debug.Logger.rootHandlers_=[]);goog.debug.Logger.Level=function(a,b){this.name=a;this.value=b};goog.debug.Logger.Level.prototype.toString=function(){return this.name};
|
||||
goog.debug.Logger.Level.function__new_goog_debug_Logger_Level__string__number___undefined$OFF=new goog.debug.Logger.Level("OFF",Infinity);goog.debug.Logger.Level.SHOUT=new goog.debug.Logger.Level("SHOUT",1200);goog.debug.Logger.Level.SEVERE=new goog.debug.Logger.Level("SEVERE",1E3);goog.debug.Logger.Level.WARNING=new goog.debug.Logger.Level("WARNING",900);goog.debug.Logger.Level.INFO=new goog.debug.Logger.Level("INFO",800);goog.debug.Logger.Level.CONFIG=new goog.debug.Logger.Level("CONFIG",700);
|
||||
goog.debug.Logger.Level.FINE=new goog.debug.Logger.Level("FINE",500);goog.debug.Logger.Level.FINER=new goog.debug.Logger.Level("FINER",400);goog.debug.Logger.Level.FINEST=new goog.debug.Logger.Level("FINEST",300);goog.debug.Logger.Level.ALL=new goog.debug.Logger.Level("ALL",0);
|
||||
goog.debug.Logger.Level.PREDEFINED_LEVELS=[goog.debug.Logger.Level.function__new_goog_debug_Logger_Level__string__number___undefined$OFF,goog.debug.Logger.Level.SHOUT,goog.debug.Logger.Level.SEVERE,goog.debug.Logger.Level.WARNING,goog.debug.Logger.Level.INFO,goog.debug.Logger.Level.CONFIG,goog.debug.Logger.Level.FINE,goog.debug.Logger.Level.FINER,goog.debug.Logger.Level.FINEST,goog.debug.Logger.Level.ALL];goog.debug.Logger.Level.predefinedLevelsCache_=null;
|
||||
goog.debug.Logger.Level.createPredefinedLevelsCache_=function(){goog.debug.Logger.Level.predefinedLevelsCache_={};for(var a=0,b;b=goog.debug.Logger.Level.PREDEFINED_LEVELS[a];a++)goog.debug.Logger.Level.predefinedLevelsCache_[b.value]=b,goog.debug.Logger.Level.predefinedLevelsCache_[b.name]=b};
|
||||
goog.debug.Logger.Level.getPredefinedLevel=function(a){goog.debug.Logger.Level.predefinedLevelsCache_||goog.debug.Logger.Level.createPredefinedLevelsCache_();return goog.debug.Logger.Level.predefinedLevelsCache_[a]||null};
|
||||
goog.debug.Logger.Level.getPredefinedLevelByValue=function(a){goog.debug.Logger.Level.predefinedLevelsCache_||goog.debug.Logger.Level.createPredefinedLevelsCache_();if(a in goog.debug.Logger.Level.predefinedLevelsCache_)return goog.debug.Logger.Level.predefinedLevelsCache_[a];for(var b=0;b<goog.debug.Logger.Level.PREDEFINED_LEVELS.length;++b){var c=goog.debug.Logger.Level.PREDEFINED_LEVELS[b];if(c.value<=a)return c}return null};goog.debug.Logger.getLogger=function(a){return goog.debug.LogManager.getLogger(a)};
|
||||
goog.debug.Logger.logToProfilers=function(a){goog.global.console&&(goog.global.console.timeStamp?goog.global.console.timeStamp(a):goog.global.console.markTimeline&&goog.global.console.markTimeline(a));goog.global.msWriteProfilerMark&&goog.global.msWriteProfilerMark(a)};goog.debug.Logger.prototype.goog_debug_Logger_prototype$getName=function(){return this.name_};
|
||||
goog.debug.Logger.prototype.addHandler=function(a){goog.debug.Logger.ENABLE_HIERARCHY?(this.handlers_||(this.handlers_=[]),this.handlers_.push(a)):(goog.asserts.assert(!this.name_,"Cannot call addHandler on a non-root logger when goog.debug.Logger.ENABLE_HIERARCHY is false."),goog.debug.Logger.rootHandlers_.push(a))};goog.debug.Logger.prototype.removeHandler=function(a){var b=goog.debug.Logger.ENABLE_HIERARCHY?this.handlers_:goog.debug.Logger.rootHandlers_;return!!b&&goog.array.remove(b,a)};
|
||||
goog.debug.Logger.prototype.goog_debug_Logger_prototype$getParent=function(){return this.goog_debug_Logger_prototype$parent_};goog.debug.Logger.prototype.getChildren=function(){this.children_||(this.children_={});return this.children_};
|
||||
goog.debug.Logger.prototype.goog_debug_Logger_prototype$setLevel=function(a){goog.debug.Logger.ENABLE_HIERARCHY?this.goog_debug_Logger_prototype$level_=a:(goog.asserts.assert(!this.name_,"Cannot call setLevel() on a non-root logger when goog.debug.Logger.ENABLE_HIERARCHY is false."),goog.debug.Logger.rootLevel_=a)};goog.debug.Logger.prototype.goog_debug_Logger_prototype$getLevel=function(){return this.goog_debug_Logger_prototype$level_};
|
||||
goog.debug.Logger.prototype.getEffectiveLevel=function(){if(!goog.debug.Logger.ENABLE_HIERARCHY)return goog.debug.Logger.rootLevel_;if(this.goog_debug_Logger_prototype$level_)return this.goog_debug_Logger_prototype$level_;if(this.goog_debug_Logger_prototype$parent_)return this.goog_debug_Logger_prototype$parent_.getEffectiveLevel();goog.asserts.fail("Root logger has no level set.");return null};goog.debug.Logger.prototype.isLoggable=function(a){return a.value>=this.getEffectiveLevel().value};
|
||||
goog.debug.Logger.prototype.log=function(a,b,c){this.isLoggable(a)&&this.doLogRecord_(this.getLogRecord(a,b,c))};goog.debug.Logger.prototype.getLogRecord=function(a,b,c){var d=goog.debug.LogBuffer.isBufferingEnabled()?goog.debug.LogBuffer.getInstance().addRecord(a,b,this.name_):new goog.debug.LogRecord(a,String(b),this.name_);c&&(d.setException(c),d.setExceptionText(goog.debug.exposeException(c,arguments.callee.caller)));return d};
|
||||
goog.debug.Logger.prototype.shout=function(a,b){this.log(goog.debug.Logger.Level.SHOUT,a,b)};goog.debug.Logger.prototype.severe=function(a,b){this.log(goog.debug.Logger.Level.SEVERE,a,b)};goog.debug.Logger.prototype.warning=function(a,b){this.log(goog.debug.Logger.Level.WARNING,a,b)};goog.debug.Logger.prototype.goog_debug_Logger_prototype$info=function(a,b){this.log(goog.debug.Logger.Level.INFO,a,b)};goog.debug.Logger.prototype.config=function(a,b){this.log(goog.debug.Logger.Level.CONFIG,a,b)};
|
||||
goog.debug.Logger.prototype.fine=function(a,b){this.log(goog.debug.Logger.Level.FINE,a,b)};goog.debug.Logger.prototype.finer=function(a,b){this.log(goog.debug.Logger.Level.FINER,a,b)};goog.debug.Logger.prototype.finest=function(a,b){this.log(goog.debug.Logger.Level.FINEST,a,b)};goog.debug.Logger.prototype.logRecord=function(a){this.isLoggable(a.goog_debug_LogRecord_prototype$getLevel())&&this.doLogRecord_(a)};
|
||||
goog.debug.Logger.prototype.doLogRecord_=function(a){goog.debug.Logger.logToProfilers("log:"+a.getMessage());if(goog.debug.Logger.ENABLE_HIERARCHY)for(var b=this;b;)b.callPublish_(a),b=b.goog_debug_Logger_prototype$getParent();else for(var b=0,c;c=goog.debug.Logger.rootHandlers_[b++];)c(a)};goog.debug.Logger.prototype.callPublish_=function(a){if(this.handlers_)for(var b=0,c;c=this.handlers_[b];b++)c(a)};goog.debug.Logger.prototype.setParent_=function(a){this.goog_debug_Logger_prototype$parent_=a};
|
||||
goog.debug.Logger.prototype.addChild_=function(a,b){this.getChildren()[a]=b};goog.debug.LogManager={};goog.debug.LogManager.loggers_={};goog.debug.LogManager.rootLogger_=null;goog.debug.LogManager.initialize=function(){goog.debug.LogManager.rootLogger_||(goog.debug.LogManager.rootLogger_=new goog.debug.Logger(""),goog.debug.LogManager.loggers_[""]=goog.debug.LogManager.rootLogger_,goog.debug.LogManager.rootLogger_.goog_debug_Logger_prototype$setLevel(goog.debug.Logger.Level.CONFIG))};
|
||||
goog.debug.LogManager.getLoggers=function(){return goog.debug.LogManager.loggers_};goog.debug.LogManager.getRoot=function(){goog.debug.LogManager.initialize();return goog.debug.LogManager.rootLogger_};goog.debug.LogManager.getLogger=function(a){goog.debug.LogManager.initialize();return goog.debug.LogManager.loggers_[a]||goog.debug.LogManager.createLogger_(a)};
|
||||
goog.debug.LogManager.createFunctionForCatchErrors=function(a){return function(b){(a||goog.debug.LogManager.getRoot()).severe("Error: "+b.message+" ("+b.fileName+" @ Line: "+b.line+")")}};goog.debug.LogManager.createLogger_=function(a){var b=new goog.debug.Logger(a);if(goog.debug.Logger.ENABLE_HIERARCHY){var c=a.lastIndexOf("."),d=a.substr(0,c),c=a.substr(c+1),d=goog.debug.LogManager.getLogger(d);d.addChild_(c,b);b.setParent_(d)}return goog.debug.LogManager.loggers_[a]=b};var ol={};if(goog.DEBUG){var logger=goog.debug.Logger.getLogger("ol");logger.goog_debug_Logger_prototype$setLevel(goog.debug.Logger.Level.FINEST)};goog.dom={};goog.dom.BrowserFeature={CAN_ADD_NAME_OR_TYPE_ATTRIBUTES:!goog.userAgent.IE||goog.userAgent.isDocumentMode(9),CAN_USE_CHILDREN_ATTRIBUTE:!goog.userAgent.GECKO&&!goog.userAgent.IE||goog.userAgent.IE&&goog.userAgent.isDocumentMode(9)||goog.userAgent.GECKO&&goog.userAgent.isVersion("1.9.1"),CAN_USE_INNER_TEXT:goog.userAgent.IE&&!goog.userAgent.isVersion("9"),CAN_USE_PARENT_ELEMENT_PROPERTY:goog.userAgent.IE||goog.userAgent.OPERA||goog.userAgent.WEBKIT,INNER_HTML_NEEDS_SCOPED_ELEMENT:goog.userAgent.IE};goog.dom.TagName={A:"A",ABBR:"ABBR",ACRONYM:"ACRONYM",ADDRESS:"ADDRESS",APPLET:"APPLET",AREA:"AREA",ARTICLE:"ARTICLE",ASIDE:"ASIDE",AUDIO:"AUDIO",B:"B",BASE:"BASE",BASEFONT:"BASEFONT",BDI:"BDI",BDO:"BDO",BIG:"BIG",BLOCKQUOTE:"BLOCKQUOTE",BODY:"BODY",BR:"BR",BUTTON:"BUTTON",CANVAS:"CANVAS",CAPTION:"CAPTION",CENTER:"CENTER",CITE:"CITE",CODE:"CODE",COL:"COL",COLGROUP:"COLGROUP",COMMAND:"COMMAND",DATA:"DATA",DATALIST:"DATALIST",DD:"DD",DEL:"DEL",DETAILS:"DETAILS",DFN:"DFN",DIALOG:"DIALOG",DIR:"DIR",DIV:"DIV",
|
||||
DL:"DL",DT:"DT",EM:"EM",EMBED:"EMBED",FIELDSET:"FIELDSET",FIGCAPTION:"FIGCAPTION",FIGURE:"FIGURE",FONT:"FONT",FOOTER:"FOOTER",FORM:"FORM",FRAME:"FRAME",FRAMESET:"FRAMESET",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",HEAD:"HEAD",HEADER:"HEADER",HGROUP:"HGROUP",HR:"HR",HTML:"HTML",I:"I",IFRAME:"IFRAME",IMG:"IMG",INPUT:"INPUT",INS:"INS",ISINDEX:"ISINDEX",KBD:"KBD",KEYGEN:"KEYGEN",LABEL:"LABEL",LEGEND:"LEGEND",LI:"LI",LINK:"LINK",MAP:"MAP",MARK:"MARK",MATH:"MATH",MENU:"MENU",META:"META",METER:"METER",
|
||||
NAV:"NAV",NOFRAMES:"NOFRAMES",NOSCRIPT:"NOSCRIPT",OBJECT:"OBJECT",OL:"OL",OPTGROUP:"OPTGROUP",OPTION:"OPTION",OUTPUT:"OUTPUT",P:"P",PARAM:"PARAM",PRE:"PRE",PROGRESS:"PROGRESS",Q:"Q",RP:"RP",RT:"RT",RUBY:"RUBY",S:"S",SAMP:"SAMP",SCRIPT:"SCRIPT",SECTION:"SECTION",SELECT:"SELECT",SMALL:"SMALL",SOURCE:"SOURCE",SPAN:"SPAN",STRIKE:"STRIKE",STRONG:"STRONG",STYLE:"STYLE",SUB:"SUB",SUMMARY:"SUMMARY",SUP:"SUP",SVG:"SVG",TABLE:"TABLE",TBODY:"TBODY",TD:"TD",TEXTAREA:"TEXTAREA",TFOOT:"TFOOT",TH:"TH",THEAD:"THEAD",
|
||||
TIME:"TIME",TITLE:"TITLE",TR:"TR",TRACK:"TRACK",TT:"TT",U:"U",UL:"UL",VAR:"VAR",VIDEO:"VIDEO",WBR:"WBR"};goog.dom.classes={};goog.dom.classes.set=function(a,b){a.className=b};goog.dom.classes.get=function(a){a=a.className;return goog.isString(a)&&a.match(/\S+/g)||[]};goog.dom.classes.add=function(a,b){var c=goog.dom.classes.get(a),d=goog.array.slice(arguments,1),e=c.length+d.length;goog.dom.classes.add_(c,d);a.className=c.join(" ");return c.length==e};
|
||||
goog.dom.classes.remove=function(a,b){var c=goog.dom.classes.get(a),d=goog.array.slice(arguments,1),e=goog.dom.classes.getDifference_(c,d);a.className=e.join(" ");return e.length==c.length-d.length};goog.dom.classes.add_=function(a,b){for(var c=0;c<b.length;c++)goog.array.contains(a,b[c])||a.push(b[c])};goog.dom.classes.getDifference_=function(a,b){return goog.array.filter(a,function(a){return!goog.array.contains(b,a)})};
|
||||
goog.dom.classes.swap=function(a,b,c){for(var d=goog.dom.classes.get(a),e=!1,f=0;f<d.length;f++)d[f]==b&&(goog.array.splice(d,f--,1),e=!0);e&&(d.push(c),a.className=d.join(" "));return e};goog.dom.classes.addRemove=function(a,b,c){var d=goog.dom.classes.get(a);goog.isString(b)?goog.array.remove(d,b):goog.isArray(b)&&(d=goog.dom.classes.getDifference_(d,b));goog.isString(c)&&!goog.array.contains(d,c)?d.push(c):goog.isArray(c)&&goog.dom.classes.add_(d,c);a.className=d.join(" ")};
|
||||
goog.dom.classes.has=function(a,b){return goog.array.contains(goog.dom.classes.get(a),b)};goog.dom.classes.enable=function(a,b,c){c?goog.dom.classes.add(a,b):goog.dom.classes.remove(a,b)};goog.dom.classes.toggle=function(a,b){var c=!goog.dom.classes.has(a,b);goog.dom.classes.enable(a,b,c);return c};goog.math={};goog.math.randomInt=function(a){return Math.floor(Math.random()*a)};goog.math.uniformRandom=function(a,b){return a+Math.random()*(b-a)};goog.math.clamp=function(a,b,c){return Math.min(Math.max(a,b),c)};goog.math.modulo=function(a,b){var c=a%b;return 0>c*b?c+b:c};goog.math.lerp=function(a,b,c){return a+c*(b-a)};goog.math.nearlyEquals=function(a,b,c){return Math.abs(a-b)<=(c||1E-6)};goog.math.standardAngle=function(a){return goog.math.modulo(a,360)};
|
||||
goog.math.toRadians=function(a){return a*Math.PI/180};goog.math.toDegrees=function(a){return 180*a/Math.PI};goog.math.angleDx=function(a,b){return b*Math.cos(goog.math.toRadians(a))};goog.math.angleDy=function(a,b){return b*Math.sin(goog.math.toRadians(a))};goog.math.angle=function(a,b,c,d){return goog.math.standardAngle(goog.math.toDegrees(Math.atan2(d-b,c-a)))};goog.math.angleDifference=function(a,b){var c=goog.math.standardAngle(b)-goog.math.standardAngle(a);180<c?c-=360:-180>=c&&(c=360+c);return c};
|
||||
goog.math.sign=function(a){return 0==a?0:0>a?-1:1};goog.math.longestCommonSubsequence=function(a,b,c,d){for(var c=c||function(a,b){return a==b},d=d||function(b){return a[b]},e=a.length,f=b.length,g=[],h=0;h<e+1;h++)g[h]=[],g[h][0]=0;for(var i=0;i<f+1;i++)g[0][i]=0;for(h=1;h<=e;h++)for(i=1;i<=e;i++)g[h][i]=c(a[h-1],b[i-1])?g[h-1][i-1]+1:Math.max(g[h-1][i],g[h][i-1]);for(var k=[],h=e,i=f;0<h&&0<i;)c(a[h-1],b[i-1])?(k.unshift(d(h-1,i-1)),h--,i--):g[h-1][i]>g[h][i-1]?h--:i--;return k};
|
||||
goog.math.sum=function(a){return goog.array.reduce(arguments,function(a,c){return a+c},0)};goog.math.average=function(a){return goog.math.sum.apply(null,arguments)/arguments.length};goog.math.standardDeviation=function(a){var b=arguments.length;if(2>b)return 0;var c=goog.math.average.apply(null,arguments),b=goog.math.sum.apply(null,goog.array.map(arguments,function(a){return Math.pow(a-c,2)}))/(b-1);return Math.sqrt(b)};goog.math.isInt=function(a){return isFinite(a)&&0==a%1};
|
||||
goog.math.isFiniteNumber=function(a){return isFinite(a)&&!isNaN(a)};goog.math.Coordinate=function(a,b){this.x=goog.isDef(a)?a:0;this.y=goog.isDef(b)?b:0};goog.math.Coordinate.prototype.clone=function(){return new goog.math.Coordinate(this.x,this.y)};goog.DEBUG&&(goog.math.Coordinate.prototype.toString=function(){return"("+this.x+", "+this.y+")"});goog.math.Coordinate.equals=function(a,b){return a==b?!0:!a||!b?!1:a.x==b.x&&a.y==b.y};goog.math.Coordinate.distance=function(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)};
|
||||
goog.math.Coordinate.magnitude=function(a){return Math.sqrt(a.x*a.x+a.y*a.y)};goog.math.Coordinate.function__new_goog_math_Coordinate__number___number____undefined$azimuth=function(a){return goog.math.angle(0,0,a.x,a.y)};goog.math.Coordinate.function__new_goog_math_Coordinate__number___number____undefined$squaredDistance=function(a,b){var c=a.x-b.x,d=a.y-b.y;return c*c+d*d};
|
||||
goog.math.Coordinate.function__new_goog_math_Coordinate__number___number____undefined$difference=function(a,b){return new goog.math.Coordinate(a.x-b.x,a.y-b.y)};goog.math.Coordinate.sum=function(a,b){return new goog.math.Coordinate(a.x+b.x,a.y+b.y)};goog.math.Size=function(a,b){this.width=a;this.height=b};goog.math.Size.equals=function(a,b){return a==b?!0:!a||!b?!1:a.width==b.width&&a.height==b.height};goog.math.Size.prototype.clone=function(){return new goog.math.Size(this.width,this.height)};goog.DEBUG&&(goog.math.Size.prototype.toString=function(){return"("+this.width+" x "+this.height+")"});goog.math.Size.prototype.getLongest=function(){return Math.max(this.width,this.height)};
|
||||
goog.math.Size.prototype.getShortest=function(){return Math.min(this.width,this.height)};goog.math.Size.prototype.area=function(){return this.width*this.height};goog.math.Size.prototype.perimeter=function(){return 2*(this.width+this.height)};goog.math.Size.prototype.aspectRatio=function(){return this.width/this.height};goog.math.Size.prototype.isEmpty=function(){return!this.area()};goog.math.Size.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
|
||||
goog.math.Size.prototype.fitsInside=function(a){return this.width<=a.width&&this.height<=a.height};goog.math.Size.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};goog.math.Size.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};goog.math.Size.prototype.scale=function(a){this.width*=a;this.height*=a;return this};
|
||||
goog.math.Size.prototype.scaleToFit=function(a){a=this.aspectRatio()>a.aspectRatio()?a.width/this.width:a.height/this.height;return this.scale(a)};goog.dom.ASSUME_QUIRKS_MODE=!1;goog.dom.ASSUME_STANDARDS_MODE=!0;goog.dom.COMPAT_MODE_KNOWN_=goog.dom.ASSUME_QUIRKS_MODE||goog.dom.ASSUME_STANDARDS_MODE;goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};goog.dom.getDomHelper=function(a){return a?new goog.dom.DomHelper(goog.dom.getOwnerDocument(a)):goog.dom.defaultDomHelper_||(goog.dom.defaultDomHelper_=new goog.dom.DomHelper)};
|
||||
goog.dom.getDocument=function(){return document};goog.dom.getElement=function(a){return goog.isString(a)?document.getElementById(a):a};goog.dom.$=goog.dom.getElement;goog.dom.getElementsByTagNameAndClass=function(a,b,c){return goog.dom.getElementsByTagNameAndClass_(document,a,b,c)};
|
||||
goog.dom.getElementsByClass=function(a,b){var c=b||document;return goog.dom.canUseQuerySelector_(c)?c.querySelectorAll("."+a):c.getElementsByClassName?c.getElementsByClassName(a):goog.dom.getElementsByTagNameAndClass_(document,"*",a,b)};goog.dom.getElementByClass=function(a,b){var c=b||document,d=null;return(d=goog.dom.canUseQuerySelector_(c)?c.querySelector("."+a):goog.dom.getElementsByClass(a,b)[0])||null};goog.dom.canUseQuerySelector_=function(a){return!(!a.querySelectorAll||!a.querySelector)};
|
||||
goog.dom.getElementsByTagNameAndClass_=function(a,b,c,d){a=d||a;b=b&&"*"!=b?b.toUpperCase():"";if(goog.dom.canUseQuerySelector_(a)&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){for(var d={},e=0,f=0,g;g=a[f];f++)b==g.nodeName&&(d[e++]=g);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;g=a[f];f++)b=g.className,"function"==typeof b.split&&goog.array.contains(b.split(/\s+/),c)&&(d[e++]=g);d.length=
|
||||
e;return d}return a};goog.dom.$$=goog.dom.getElementsByTagNameAndClass;goog.dom.setProperties=function(a,b){goog.object.forEach(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in goog.dom.DIRECT_ATTRIBUTE_MAP_?a.setAttribute(goog.dom.DIRECT_ATTRIBUTE_MAP_[d],b):goog.string.startsWith(d,"aria-")||goog.string.startsWith(d,"data-")?a.setAttribute(d,b):a[d]=b})};
|
||||
goog.dom.DIRECT_ATTRIBUTE_MAP_={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};goog.dom.getViewportSize=function(a){return goog.dom.getViewportSize_(a||window)};goog.dom.getViewportSize_=function(a){a=a.document;a=goog.dom.isCss1CompatMode_(a)?a.documentElement:a.body;return new goog.math.Size(a.clientWidth,a.clientHeight)};
|
||||
goog.dom.getDocumentHeight=function(){return goog.dom.getDocumentHeight_(window)};goog.dom.getDocumentHeight_=function(a){var b=a.document,c=0;if(b){var a=goog.dom.getViewportSize_(a).height,c=b.body,d=b.documentElement;if(goog.dom.isCss1CompatMode_(b)&&d.scrollHeight)c=d.scrollHeight!=a?d.scrollHeight:d.offsetHeight;else{var b=d.scrollHeight,e=d.offsetHeight;d.clientHeight!=e&&(b=c.scrollHeight,e=c.offsetHeight);c=b>a?b>e?b:e:b<e?b:e}}return c};
|
||||
goog.dom.getPageScroll=function(a){return goog.dom.getDomHelper((a||goog.global||window).document).getDocumentScroll()};goog.dom.getDocumentScroll=function(){return goog.dom.getDocumentScroll_(document)};goog.dom.getDocumentScroll_=function(a){var b=goog.dom.getDocumentScrollElement_(a),a=goog.dom.getWindow_(a);return new goog.math.Coordinate(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};goog.dom.getDocumentScrollElement=function(){return goog.dom.getDocumentScrollElement_(document)};
|
||||
goog.dom.getDocumentScrollElement_=function(a){return!goog.userAgent.WEBKIT&&goog.dom.isCss1CompatMode_(a)?a.documentElement:a.body};goog.dom.getWindow=function(a){return a?goog.dom.getWindow_(a):window};goog.dom.getWindow_=function(a){return a.parentWindow||a.defaultView};goog.dom.createDom=function(a,b,c){return goog.dom.createDom_(document,arguments)};
|
||||
goog.dom.createDom_=function(a,b){var c=b[0],d=b[1];if(!goog.dom.BrowserFeature.CAN_ADD_NAME_OR_TYPE_ATTRIBUTES&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',goog.string.htmlEscape(d.name),'"');if(d.type){c.push(' type="',goog.string.htmlEscape(d.type),'"');var e={};goog.object.extend(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(goog.isString(d)?c.className=d:goog.isArray(d)?goog.dom.classes.add.apply(null,[c].concat(d)):goog.dom.setProperties(c,d));2<b.length&&
|
||||
goog.dom.append_(a,c,b,2);return c};goog.dom.append_=function(a,b,c,d){function e(c){c&&b.appendChild(goog.isString(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];goog.isArrayLike(f)&&!goog.dom.isNodeLike(f)?goog.array.forEach(goog.dom.isNodeList(f)?goog.array.toArray(f):f,e):e(f)}};goog.dom.$dom=goog.dom.createDom;goog.dom.createElement=function(a){return document.createElement(a)};goog.dom.createTextNode=function(a){return document.createTextNode(a)};
|
||||
goog.dom.createTable=function(a,b,c){return goog.dom.createTable_(document,a,b,!!c)};goog.dom.createTable_=function(a,b,c,d){for(var e=["<tr>"],f=0;f<c;f++)e.push(d?"<td> </td>":"<td></td>");e.push("</tr>");e=e.join("");c=["<table>"];for(f=0;f<b;f++)c.push(e);c.push("</table>");a=a.createElement(goog.dom.TagName.DIV);a.innerHTML=c.join("");return a.removeChild(a.firstChild)};goog.dom.htmlToDocumentFragment=function(a){return goog.dom.htmlToDocumentFragment_(document,a)};
|
||||
goog.dom.htmlToDocumentFragment_=function(a,b){var c=a.createElement("div");goog.dom.BrowserFeature.INNER_HTML_NEEDS_SCOPED_ELEMENT?(c.innerHTML="<br>"+b,c.removeChild(c.firstChild)):c.innerHTML=b;if(1==c.childNodes.length)return c.removeChild(c.firstChild);for(var d=a.createDocumentFragment();c.firstChild;)d.appendChild(c.firstChild);return d};goog.dom.getCompatMode=function(){return goog.dom.isCss1CompatMode()?"CSS1Compat":"BackCompat"};goog.dom.isCss1CompatMode=function(){return goog.dom.isCss1CompatMode_(document)};
|
||||
goog.dom.isCss1CompatMode_=function(a){return goog.dom.COMPAT_MODE_KNOWN_?goog.dom.ASSUME_STANDARDS_MODE:"CSS1Compat"==a.compatMode};goog.dom.canHaveChildren=function(a){if(a.nodeType!=goog.dom.NodeType.ELEMENT)return!1;switch(a.tagName){case goog.dom.TagName.APPLET:case goog.dom.TagName.AREA:case goog.dom.TagName.BASE:case goog.dom.TagName.BR:case goog.dom.TagName.COL:case goog.dom.TagName.COMMAND:case goog.dom.TagName.EMBED:case goog.dom.TagName.FRAME:case goog.dom.TagName.HR:case goog.dom.TagName.IMG:case goog.dom.TagName.INPUT:case goog.dom.TagName.IFRAME:case goog.dom.TagName.ISINDEX:case goog.dom.TagName.KEYGEN:case goog.dom.TagName.LINK:case goog.dom.TagName.NOFRAMES:case goog.dom.TagName.NOSCRIPT:case goog.dom.TagName.META:case goog.dom.TagName.OBJECT:case goog.dom.TagName.PARAM:case goog.dom.TagName.SCRIPT:case goog.dom.TagName.SOURCE:case goog.dom.TagName.STYLE:case goog.dom.TagName.TRACK:case goog.dom.TagName.WBR:return!1}return!0};
|
||||
goog.dom.appendChild=function(a,b){a.appendChild(b)};goog.dom.append=function(a,b){goog.dom.append_(goog.dom.getOwnerDocument(a),a,arguments,1)};goog.dom.removeChildren=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};goog.dom.insertSiblingBefore=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)};goog.dom.insertSiblingAfter=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)};goog.dom.insertChildAt=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
|
||||
goog.dom.removeNode=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};goog.dom.replaceNode=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};goog.dom.flattenElement=function(a){var b,c=a.parentNode;if(c&&c.nodeType!=goog.dom.NodeType.DOCUMENT_FRAGMENT){if(a.removeNode)return a.removeNode(!1);for(;b=a.firstChild;)c.insertBefore(b,a);return goog.dom.removeNode(a)}};
|
||||
goog.dom.getChildren=function(a){return goog.dom.BrowserFeature.CAN_USE_CHILDREN_ATTRIBUTE&&void 0!=a.children?a.children:goog.array.filter(a.childNodes,function(a){return a.nodeType==goog.dom.NodeType.ELEMENT})};goog.dom.getFirstElementChild=function(a){return void 0!=a.firstElementChild?a.firstElementChild:goog.dom.getNextElementNode_(a.firstChild,!0)};goog.dom.getLastElementChild=function(a){return void 0!=a.lastElementChild?a.lastElementChild:goog.dom.getNextElementNode_(a.lastChild,!1)};
|
||||
goog.dom.getNextElementSibling=function(a){return void 0!=a.nextElementSibling?a.nextElementSibling:goog.dom.getNextElementNode_(a.nextSibling,!0)};goog.dom.getPreviousElementSibling=function(a){return void 0!=a.previousElementSibling?a.previousElementSibling:goog.dom.getNextElementNode_(a.previousSibling,!1)};goog.dom.getNextElementNode_=function(a,b){for(;a&&a.nodeType!=goog.dom.NodeType.ELEMENT;)a=b?a.nextSibling:a.previousSibling;return a};
|
||||
goog.dom.getNextNode=function(a){if(!a)return null;if(a.firstChild)return a.firstChild;for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null};goog.dom.getPreviousNode=function(a){if(!a)return null;if(!a.previousSibling)return a.parentNode;for(a=a.previousSibling;a&&a.lastChild;)a=a.lastChild;return a};goog.dom.isNodeLike=function(a){return goog.isObject(a)&&0<a.nodeType};goog.dom.isElement=function(a){return goog.isObject(a)&&a.nodeType==goog.dom.NodeType.ELEMENT};
|
||||
goog.dom.isWindow=function(a){return goog.isObject(a)&&a.window==a};goog.dom.getParentElement=function(a){if(goog.dom.BrowserFeature.CAN_USE_PARENT_ELEMENT_PROPERTY)return a.parentElement;a=a.parentNode;return goog.dom.isElement(a)?a:null};goog.dom.contains=function(a,b){if(a.contains&&b.nodeType==goog.dom.NodeType.ELEMENT)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
|
||||
goog.dom.compareNodeOrder=function(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if((a.nodeType==goog.dom.NodeType.DOCUMENT||b.nodeType==goog.dom.NodeType.DOCUMENT)&&goog.userAgent.IE&&!goog.userAgent.isVersion(9)){if(a.nodeType==goog.dom.NodeType.DOCUMENT)return-1;if(b.nodeType==goog.dom.NodeType.DOCUMENT)return 1}if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=a.nodeType==goog.dom.NodeType.ELEMENT,d=b.nodeType==goog.dom.NodeType.ELEMENT;
|
||||
if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e==f?goog.dom.compareSiblingOrder_(a,b):!c&&goog.dom.contains(e,b)?-1*goog.dom.compareParentsDescendantNodeIe_(a,b):!d&&goog.dom.contains(f,a)?goog.dom.compareParentsDescendantNodeIe_(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=goog.dom.getOwnerDocument(a);c=d.createRange();c.selectNode(a);c.collapse(!0);d=d.createRange();d.selectNode(b);d.collapse(!0);return c.compareBoundaryPoints(goog.global.Range.START_TO_END,
|
||||
d)};goog.dom.compareParentsDescendantNodeIe_=function(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return goog.dom.compareSiblingOrder_(d,a)};goog.dom.compareSiblingOrder_=function(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1};
|
||||
goog.dom.findCommonAncestor=function(a){var b,c=arguments.length;if(c){if(1==c)return arguments[0]}else return null;var d=[],e=Infinity;for(b=0;b<c;b++){for(var f=[],g=arguments[b];g;)f.unshift(g),g=g.parentNode;d.push(f);e=Math.min(e,f.length)}f=null;for(b=0;b<e;b++){for(var g=d[0][b],h=1;h<c;h++)if(g!=d[h][b])return f;f=g}return f};goog.dom.getOwnerDocument=function(a){return a.nodeType==goog.dom.NodeType.DOCUMENT?a:a.ownerDocument||a.document};
|
||||
goog.dom.getFrameContentDocument=function(a){return a.contentDocument||a.contentWindow.document};goog.dom.getFrameContentWindow=function(a){return a.contentWindow||goog.dom.getWindow_(goog.dom.getFrameContentDocument(a))};
|
||||
goog.dom.setTextContent=function(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&a.firstChild.nodeType==goog.dom.NodeType.TEXT){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{goog.dom.removeChildren(a);var c=goog.dom.getOwnerDocument(a);a.appendChild(c.createTextNode(b))}};goog.dom.getOuterHtml=function(a){if("outerHTML"in a)return a.outerHTML;var b=goog.dom.getOwnerDocument(a).createElement("div");b.appendChild(a.cloneNode(!0));return b.innerHTML};
|
||||
goog.dom.findNode=function(a,b){var c=[];return goog.dom.findNodes_(a,b,c,!0)?c[0]:void 0};goog.dom.findNodes=function(a,b){var c=[];goog.dom.findNodes_(a,b,c,!1);return c};goog.dom.findNodes_=function(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||goog.dom.findNodes_(a,b,c,d))return!0;a=a.nextSibling}return!1};goog.dom.TAGS_TO_IGNORE_={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};goog.dom.PREDEFINED_TAG_VALUES_={IMG:" ",BR:"\n"};
|
||||
goog.dom.isFocusableTabIndex=function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?(a=a.tabIndex,goog.isNumber(a)&&0<=a&&32768>a):!1};goog.dom.setFocusableTabIndex=function(a,b){b?a.tabIndex=0:(a.tabIndex=-1,a.removeAttribute("tabIndex"))};
|
||||
goog.dom.getTextContent=function(a){if(goog.dom.BrowserFeature.CAN_USE_INNER_TEXT&&"innerText"in a)a=goog.string.canonicalizeNewlines(a.innerText);else{var b=[];goog.dom.getTextContent_(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");goog.dom.BrowserFeature.CAN_USE_INNER_TEXT||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a};goog.dom.getRawTextContent=function(a){var b=[];goog.dom.getTextContent_(a,b,!1);return b.join("")};
|
||||
goog.dom.getTextContent_=function(a,b,c){if(!(a.nodeName in goog.dom.TAGS_TO_IGNORE_))if(a.nodeType==goog.dom.NodeType.TEXT)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in goog.dom.PREDEFINED_TAG_VALUES_)b.push(goog.dom.PREDEFINED_TAG_VALUES_[a.nodeName]);else for(a=a.firstChild;a;)goog.dom.getTextContent_(a,b,c),a=a.nextSibling};goog.dom.getNodeTextLength=function(a){return goog.dom.getTextContent(a).length};
|
||||
goog.dom.getNodeTextOffset=function(a,b){for(var c=b||goog.dom.getOwnerDocument(a).body,d=[];a&&a!=c;){for(var e=a;e=e.previousSibling;)d.unshift(goog.dom.getTextContent(e));a=a.parentNode}return goog.string.trimLeft(d.join("")).replace(/ +/g," ").length};
|
||||
goog.dom.getNodeAtOffset=function(a,b,c){for(var a=[a],d=0,e;0<a.length&&d<b;)if(e=a.pop(),!(e.nodeName in goog.dom.TAGS_TO_IGNORE_))if(e.nodeType==goog.dom.NodeType.TEXT)var f=e.nodeValue.replace(/(\r\n|\r|\n)/g,"").replace(/ +/g," "),d=d+f.length;else if(e.nodeName in goog.dom.PREDEFINED_TAG_VALUES_)d+=goog.dom.PREDEFINED_TAG_VALUES_[e.nodeName].length;else for(f=e.childNodes.length-1;0<=f;f--)a.push(e.childNodes[f]);goog.isObject(c)&&(c.remainder=e?e.nodeValue.length+b-d-1:0,c.node=e);return e};
|
||||
goog.dom.isNodeList=function(a){if(a&&"number"==typeof a.length){if(goog.isObject(a))return"function"==typeof a.item||"string"==typeof a.item;if(goog.isFunction(a))return"function"==typeof a.item}return!1};goog.dom.getAncestorByTagNameAndClass=function(a,b,c){if(!b&&!c)return null;var d=b?b.toUpperCase():null;return goog.dom.getAncestor(a,function(a){return(!d||a.nodeName==d)&&(!c||goog.dom.classes.has(a,c))},!0)};
|
||||
goog.dom.getAncestorByClass=function(a,b){return goog.dom.getAncestorByTagNameAndClass(a,null,b)};goog.dom.getAncestor=function(a,b,c,d){c||(a=a.parentNode);for(var c=null==d,e=0;a&&(c||e<=d);){if(b(a))return a;a=a.parentNode;e++}return null};goog.dom.getActiveElement=function(a){try{return a&&a.activeElement}catch(b){}return null};goog.dom.DomHelper=function(a){this.document_=a||goog.global.document||document};goog.dom.DomHelper.prototype.getDomHelper=goog.dom.getDomHelper;
|
||||
goog.dom.DomHelper.prototype.setDocument=function(a){this.document_=a};goog.dom.DomHelper.prototype.getDocument=function(){return this.document_};goog.dom.DomHelper.prototype.getElement=function(a){return goog.isString(a)?this.document_.getElementById(a):a};goog.dom.DomHelper.prototype.$=goog.dom.DomHelper.prototype.getElement;goog.dom.DomHelper.prototype.getElementsByTagNameAndClass=function(a,b,c){return goog.dom.getElementsByTagNameAndClass_(this.document_,a,b,c)};
|
||||
goog.dom.DomHelper.prototype.getElementsByClass=function(a,b){return goog.dom.getElementsByClass(a,b||this.document_)};goog.dom.DomHelper.prototype.getElementByClass=function(a,b){return goog.dom.getElementByClass(a,b||this.document_)};goog.dom.DomHelper.prototype.$$=goog.dom.DomHelper.prototype.getElementsByTagNameAndClass;goog.dom.DomHelper.prototype.setProperties=goog.dom.setProperties;goog.dom.DomHelper.prototype.getViewportSize=function(a){return goog.dom.getViewportSize(a||this.getWindow())};
|
||||
goog.dom.DomHelper.prototype.getDocumentHeight=function(){return goog.dom.getDocumentHeight_(this.getWindow())};goog.dom.DomHelper.prototype.createDom=function(a,b,c){return goog.dom.createDom_(this.document_,arguments)};goog.dom.DomHelper.prototype.$dom=goog.dom.DomHelper.prototype.createDom;goog.dom.DomHelper.prototype.createElement=function(a){return this.document_.createElement(a)};goog.dom.DomHelper.prototype.createTextNode=function(a){return this.document_.createTextNode(a)};
|
||||
goog.dom.DomHelper.prototype.createTable=function(a,b,c){return goog.dom.createTable_(this.document_,a,b,!!c)};goog.dom.DomHelper.prototype.htmlToDocumentFragment=function(a){return goog.dom.htmlToDocumentFragment_(this.document_,a)};goog.dom.DomHelper.prototype.getCompatMode=function(){return this.isCss1CompatMode()?"CSS1Compat":"BackCompat"};goog.dom.DomHelper.prototype.isCss1CompatMode=function(){return goog.dom.isCss1CompatMode_(this.document_)};goog.dom.DomHelper.prototype.getWindow=function(){return goog.dom.getWindow_(this.document_)};
|
||||
goog.dom.DomHelper.prototype.getDocumentScrollElement=function(){return goog.dom.getDocumentScrollElement_(this.document_)};goog.dom.DomHelper.prototype.getDocumentScroll=function(){return goog.dom.getDocumentScroll_(this.document_)};goog.dom.DomHelper.prototype.getActiveElement=function(a){return goog.dom.getActiveElement(a||this.document_)};goog.dom.DomHelper.prototype.appendChild=goog.dom.appendChild;goog.dom.DomHelper.prototype.append=goog.dom.append;
|
||||
goog.dom.DomHelper.prototype.canHaveChildren=goog.dom.canHaveChildren;goog.dom.DomHelper.prototype.removeChildren=goog.dom.removeChildren;goog.dom.DomHelper.prototype.insertSiblingBefore=goog.dom.insertSiblingBefore;goog.dom.DomHelper.prototype.insertSiblingAfter=goog.dom.insertSiblingAfter;goog.dom.DomHelper.prototype.insertChildAt=goog.dom.insertChildAt;goog.dom.DomHelper.prototype.removeNode=goog.dom.removeNode;goog.dom.DomHelper.prototype.replaceNode=goog.dom.replaceNode;
|
||||
goog.dom.DomHelper.prototype.flattenElement=goog.dom.flattenElement;goog.dom.DomHelper.prototype.getChildren=goog.dom.getChildren;goog.dom.DomHelper.prototype.getFirstElementChild=goog.dom.getFirstElementChild;goog.dom.DomHelper.prototype.getLastElementChild=goog.dom.getLastElementChild;goog.dom.DomHelper.prototype.getNextElementSibling=goog.dom.getNextElementSibling;goog.dom.DomHelper.prototype.getPreviousElementSibling=goog.dom.getPreviousElementSibling;
|
||||
goog.dom.DomHelper.prototype.getNextNode=goog.dom.getNextNode;goog.dom.DomHelper.prototype.getPreviousNode=goog.dom.getPreviousNode;goog.dom.DomHelper.prototype.isNodeLike=goog.dom.isNodeLike;goog.dom.DomHelper.prototype.isElement=goog.dom.isElement;goog.dom.DomHelper.prototype.isWindow=goog.dom.isWindow;goog.dom.DomHelper.prototype.getParentElement=goog.dom.getParentElement;goog.dom.DomHelper.prototype.contains=goog.dom.contains;goog.dom.DomHelper.prototype.compareNodeOrder=goog.dom.compareNodeOrder;
|
||||
goog.dom.DomHelper.prototype.findCommonAncestor=goog.dom.findCommonAncestor;goog.dom.DomHelper.prototype.getOwnerDocument=goog.dom.getOwnerDocument;goog.dom.DomHelper.prototype.getFrameContentDocument=goog.dom.getFrameContentDocument;goog.dom.DomHelper.prototype.getFrameContentWindow=goog.dom.getFrameContentWindow;goog.dom.DomHelper.prototype.setTextContent=goog.dom.setTextContent;goog.dom.DomHelper.prototype.getOuterHtml=goog.dom.getOuterHtml;goog.dom.DomHelper.prototype.findNode=goog.dom.findNode;
|
||||
goog.dom.DomHelper.prototype.findNodes=goog.dom.findNodes;goog.dom.DomHelper.prototype.isFocusableTabIndex=goog.dom.isFocusableTabIndex;goog.dom.DomHelper.prototype.setFocusableTabIndex=goog.dom.setFocusableTabIndex;goog.dom.DomHelper.prototype.getTextContent=goog.dom.getTextContent;goog.dom.DomHelper.prototype.getNodeTextLength=goog.dom.getNodeTextLength;goog.dom.DomHelper.prototype.getNodeTextOffset=goog.dom.getNodeTextOffset;goog.dom.DomHelper.prototype.getNodeAtOffset=goog.dom.getNodeAtOffset;
|
||||
goog.dom.DomHelper.prototype.isNodeList=goog.dom.isNodeList;goog.dom.DomHelper.prototype.getAncestorByTagNameAndClass=goog.dom.getAncestorByTagNameAndClass;goog.dom.DomHelper.prototype.getAncestorByClass=goog.dom.getAncestorByClass;goog.dom.DomHelper.prototype.getAncestor=goog.dom.getAncestor;goog.debug.entryPointRegistry={};goog.debug.EntryPointMonitor=function(){};goog.debug.entryPointRegistry.refList_=[];goog.debug.entryPointRegistry.monitors_=[];goog.debug.entryPointRegistry.monitorsMayExist_=!1;goog.debug.entryPointRegistry.register=function(a){goog.debug.entryPointRegistry.refList_[goog.debug.entryPointRegistry.refList_.length]=a;if(goog.debug.entryPointRegistry.monitorsMayExist_)for(var b=goog.debug.entryPointRegistry.monitors_,c=0;c<b.length;c++)a(goog.bind(b[c].wrap,b[c]))};
|
||||
goog.debug.entryPointRegistry.monitorAll=function(a){goog.debug.entryPointRegistry.monitorsMayExist_=!0;for(var b=goog.bind(a.wrap,a),c=0;c<goog.debug.entryPointRegistry.refList_.length;c++)goog.debug.entryPointRegistry.refList_[c](b);goog.debug.entryPointRegistry.monitors_.push(a)};
|
||||
goog.debug.entryPointRegistry.unmonitorAllIfPossible=function(a){var b=goog.debug.entryPointRegistry.monitors_;goog.asserts.assert(a==b[b.length-1],"Only the most recent monitor can be unwrapped.");for(var a=goog.bind(a.unwrap,a),c=0;c<goog.debug.entryPointRegistry.refList_.length;c++)goog.debug.entryPointRegistry.refList_[c](a);b.length--};goog.debug.errorHandlerWeakDep={protectEntryPoint:function(a){return a}};goog.events={};
|
||||
goog.events.BrowserFeature={HAS_W3C_BUTTON:!goog.userAgent.IE||goog.userAgent.isDocumentMode(9),HAS_W3C_EVENT_SUPPORT:!goog.userAgent.IE||goog.userAgent.isDocumentMode(9),SET_KEY_CODE_TO_PREVENT_DEFAULT:goog.userAgent.IE&&!goog.userAgent.isVersion("9"),HAS_NAVIGATOR_ONLINE_PROPERTY:!goog.userAgent.WEBKIT||goog.userAgent.isVersion("528"),HAS_HTML5_NETWORK_EVENT_SUPPORT:goog.userAgent.GECKO&&goog.userAgent.isVersion("1.9b")||goog.userAgent.IE&&goog.userAgent.isVersion("8")||goog.userAgent.OPERA&&goog.userAgent.isVersion("9.5")||
|
||||
goog.userAgent.WEBKIT&&goog.userAgent.isVersion("528"),HTML5_NETWORK_EVENTS_FIRE_ON_BODY:goog.userAgent.GECKO&&!goog.userAgent.isVersion("8")||goog.userAgent.IE&&!goog.userAgent.isVersion("9")};goog.disposable={};goog.disposable.IDisposable=function(){};goog.Disposable=function(){goog.Disposable.MONITORING_MODE!=goog.Disposable.MonitoringMode.OFF&&(this.goog_Disposable_prototype$creationStack=Error().stack,goog.Disposable.instances_[goog.getUid(this)]=this)};goog.Disposable.MonitoringMode={OFF:0,PERMANENT:1,INTERACTIVE:2};goog.Disposable.MONITORING_MODE=0;goog.Disposable.instances_={};
|
||||
goog.Disposable.getUndisposedObjects=function(){var a=[],b;for(b in goog.Disposable.instances_)goog.Disposable.instances_.hasOwnProperty(b)&&a.push(goog.Disposable.instances_[Number(b)]);return a};goog.Disposable.clearUndisposedObjects=function(){goog.Disposable.instances_={}};goog.Disposable.prototype.disposed_=!1;goog.Disposable.prototype.isDisposed=function(){return this.disposed_};goog.Disposable.prototype.getDisposed=goog.Disposable.prototype.isDisposed;
|
||||
goog.Disposable.prototype.dispose=function(){if(!this.disposed_&&(this.disposed_=!0,this.goog_Disposable_prototype$disposeInternal(),goog.Disposable.MONITORING_MODE!=goog.Disposable.MonitoringMode.OFF)){var a=goog.getUid(this);if(goog.Disposable.MONITORING_MODE==goog.Disposable.MonitoringMode.PERMANENT&&!goog.Disposable.instances_.hasOwnProperty(a))throw Error(this+" did not call the goog.Disposable base constructor or was disposed of after a clearUndisposedObjects call");delete goog.Disposable.instances_[a]}};
|
||||
goog.Disposable.prototype.registerDisposable=function(a){this.dependentDisposables_||(this.dependentDisposables_=[]);this.dependentDisposables_.push(a)};goog.Disposable.prototype.addOnDisposeCallback=function(a,b){this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]);this.onDisposeCallbacks_.push(goog.bind(a,b))};goog.Disposable.prototype.goog_Disposable_prototype$disposeInternal=function(){this.dependentDisposables_&&goog.disposeAll.apply(null,this.dependentDisposables_);if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};
|
||||
goog.Disposable.isDisposed=function(a){return a&&"function"==typeof a.isDisposed?a.isDisposed():!1};goog.dispose=function(a){a&&"function"==typeof a.dispose&&a.dispose()};goog.disposeAll=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];goog.isArrayLike(d)?goog.disposeAll.apply(null,d):goog.dispose(d)}};goog.events.Event=function(a,b){this.type=a;this.goog_events_Event$currentTarget=this.target=b};goog.events.Event.prototype.goog_events_Event_prototype$disposeInternal=function(){};goog.events.Event.prototype.dispose=function(){};goog.events.Event.prototype.propagationStopped_=!1;goog.events.Event.prototype.goog_events_Event_prototype$defaultPrevented=!1;goog.events.Event.prototype.returnValue_=!0;
|
||||
goog.events.Event.prototype.goog_events_Event_prototype$stopPropagation=function(){this.propagationStopped_=!0};goog.events.Event.prototype.goog_events_Event_prototype$preventDefault=function(){this.goog_events_Event_prototype$defaultPrevented=!0;this.returnValue_=!1};goog.events.Event.function__new_goog_events_Event__string___Object_null_____undefined$stopPropagation=function(a){a.goog_events_Event_prototype$stopPropagation()};
|
||||
goog.events.Event.function__new_goog_events_Event__string___Object_null_____undefined$preventDefault=function(a){a.goog_events_Event_prototype$preventDefault()};goog.events.EventType={CLICK:"click",DBLCLICK:"dblclick",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEMOVE:"mousemove",SELECTSTART:"selectstart",KEYPRESS:"keypress",KEYDOWN:"keydown",KEYUP:"keyup",BLUR:"blur",FOCUS:"focus",DEACTIVATE:"deactivate",FOCUSIN:goog.userAgent.IE?"focusin":"DOMFocusIn",FOCUSOUT:goog.userAgent.IE?"focusout":"DOMFocusOut",CHANGE:"change",SELECT:"select",SUBMIT:"submit",INPUT:"input",PROPERTYCHANGE:"propertychange",DRAGSTART:"dragstart",
|
||||
DRAGENTER:"dragenter",DRAGOVER:"dragover",DRAGLEAVE:"dragleave",DROP:"drop",TOUCHSTART:"touchstart",TOUCHMOVE:"touchmove",TOUCHEND:"touchend",TOUCHCANCEL:"touchcancel",CONTEXTMENU:"contextmenu",ERROR:"error",HELP:"help",LOAD:"load",LOSECAPTURE:"losecapture",READYSTATECHANGE:"readystatechange",RESIZE:"resize",SCROLL:"scroll",UNLOAD:"unload",HASHCHANGE:"hashchange",PAGEHIDE:"pagehide",PAGESHOW:"pageshow",POPSTATE:"popstate",COPY:"copy",PASTE:"paste",CUT:"cut",BEFORECOPY:"beforecopy",BEFORECUT:"beforecut",
|
||||
BEFOREPASTE:"beforepaste",ONLINE:"online",OFFLINE:"offline",MESSAGE:"message",CONNECT:"connect",TRANSITIONEND:goog.userAgent.WEBKIT?"webkitTransitionEnd":goog.userAgent.OPERA?"oTransitionEnd":"transitionend"};goog.reflect={};goog.reflect.object=function(a,b){return b};goog.reflect.sinkValue=function(a){goog.reflect.sinkValue[" "](a);return a};goog.reflect.sinkValue[" "]=goog.nullFunction;goog.reflect.canAccessProperty=function(a,b){try{return goog.reflect.sinkValue(a[b]),!0}catch(c){}return!1};goog.events.BrowserEvent=function(a,b){a&&this.goog_events_BrowserEvent_prototype$init(a,b)};goog.inherits(goog.events.BrowserEvent,goog.events.Event);goog.events.BrowserEvent.MouseButton={LEFT:0,MIDDLE:1,RIGHT:2};goog.events.BrowserEvent.IEButtonMap=[1,4,2];goog.events.BrowserEvent.prototype.target=null;goog.events.BrowserEvent.prototype.goog_events_BrowserEvent_prototype$relatedTarget=null;goog.events.BrowserEvent.prototype.goog_events_BrowserEvent_prototype$offsetX=0;
|
||||
goog.events.BrowserEvent.prototype.goog_events_BrowserEvent_prototype$offsetY=0;goog.events.BrowserEvent.prototype.clientX=0;goog.events.BrowserEvent.prototype.clientY=0;goog.events.BrowserEvent.prototype.goog_events_BrowserEvent_prototype$screenX=0;goog.events.BrowserEvent.prototype.goog_events_BrowserEvent_prototype$screenY=0;goog.events.BrowserEvent.prototype.goog_events_BrowserEvent_prototype$button=0;goog.events.BrowserEvent.prototype.goog_events_BrowserEvent_prototype$keyCode=0;
|
||||
goog.events.BrowserEvent.prototype.goog_events_BrowserEvent_prototype$charCode=0;goog.events.BrowserEvent.prototype.goog_events_BrowserEvent_prototype$ctrlKey=!1;goog.events.BrowserEvent.prototype.goog_events_BrowserEvent_prototype$altKey=!1;goog.events.BrowserEvent.prototype.goog_events_BrowserEvent_prototype$shiftKey=!1;goog.events.BrowserEvent.prototype.goog_events_BrowserEvent_prototype$metaKey=!1;goog.events.BrowserEvent.prototype.platformModifierKey=!1;
|
||||
goog.events.BrowserEvent.prototype.event_=null;
|
||||
goog.events.BrowserEvent.prototype.goog_events_BrowserEvent_prototype$init=function(a,b){var c=this.type=a.type;goog.events.Event.call(this,c);this.target=a.target||a.srcElement;this.goog_events_Event$currentTarget=b;var d=a.relatedTarget;d?goog.userAgent.GECKO&&(goog.reflect.canAccessProperty(d,"nodeName")||(d=null)):c==goog.events.EventType.MOUSEOVER?d=a.fromElement:c==goog.events.EventType.MOUSEOUT&&(d=a.toElement);this.goog_events_BrowserEvent_prototype$relatedTarget=d;this.goog_events_BrowserEvent_prototype$offsetX=
|
||||
goog.userAgent.WEBKIT||void 0!==a.offsetX?a.offsetX:a.layerX;this.goog_events_BrowserEvent_prototype$offsetY=goog.userAgent.WEBKIT||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.goog_events_BrowserEvent_prototype$screenX=a.screenX||0;this.goog_events_BrowserEvent_prototype$screenY=a.screenY||0;this.goog_events_BrowserEvent_prototype$button=a.button;this.goog_events_BrowserEvent_prototype$keyCode=a.keyCode||
|
||||
0;this.goog_events_BrowserEvent_prototype$charCode=a.charCode||("keypress"==c?a.keyCode:0);this.goog_events_BrowserEvent_prototype$ctrlKey=a.ctrlKey;this.goog_events_BrowserEvent_prototype$altKey=a.altKey;this.goog_events_BrowserEvent_prototype$shiftKey=a.shiftKey;this.goog_events_BrowserEvent_prototype$metaKey=a.metaKey;this.platformModifierKey=goog.userAgent.MAC?a.metaKey:a.ctrlKey;this.goog_events_BrowserEvent_prototype$state=a.state;this.event_=a;a.defaultPrevented&&this.goog_events_Event_prototype$preventDefault();
|
||||
delete this.propagationStopped_};goog.events.BrowserEvent.prototype.isButton=function(a){return goog.events.BrowserFeature.HAS_W3C_BUTTON?this.event_.button==a:"click"==this.type?a==goog.events.BrowserEvent.MouseButton.LEFT:!!(this.event_.button&goog.events.BrowserEvent.IEButtonMap[a])};goog.events.BrowserEvent.prototype.goog_events_BrowserEvent_prototype$isMouseActionButton=function(){return this.isButton(goog.events.BrowserEvent.MouseButton.LEFT)&&!(goog.userAgent.WEBKIT&&goog.userAgent.MAC&&this.goog_events_BrowserEvent_prototype$ctrlKey)};
|
||||
goog.events.BrowserEvent.prototype.goog_events_Event_prototype$stopPropagation=function(){goog.events.BrowserEvent.superClass_.goog_events_Event_prototype$stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
|
||||
goog.events.BrowserEvent.prototype.goog_events_Event_prototype$preventDefault=function(){goog.events.BrowserEvent.superClass_.goog_events_Event_prototype$preventDefault.call(this);var a=this.event_;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,goog.events.BrowserFeature.SET_KEY_CODE_TO_PREVENT_DEFAULT)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};goog.events.BrowserEvent.prototype.getBrowserEvent=function(){return this.event_};
|
||||
goog.events.BrowserEvent.prototype.goog_events_Event_prototype$disposeInternal=function(){};goog.events.EventWrapper=function(){};goog.events.EventWrapper.prototype.listen=function(){};goog.events.EventWrapper.prototype.unlisten=function(){};goog.events.Listener=function(){goog.events.Listener.ENABLE_MONITORING&&(this.goog_events_Listener_prototype$creationStack=Error().stack)};goog.events.Listener.counter_=0;goog.events.Listener.ENABLE_MONITORING=!1;goog.events.Listener.prototype.key=0;goog.events.Listener.prototype.removed=!1;goog.events.Listener.prototype.goog_events_Listener_prototype$callOnce=!1;
|
||||
goog.events.Listener.prototype.goog_events_Listener_prototype$init=function(a,b,c,d,e,f){if(goog.isFunction(a))this.isFunctionListener_=!0;else if(a&&a.handleEvent&&goog.isFunction(a.handleEvent))this.isFunctionListener_=!1;else throw Error("Invalid listener argument");this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.handler=f;this.goog_events_Listener_prototype$callOnce=!1;this.key=++goog.events.Listener.counter_;this.removed=!1};
|
||||
goog.events.Listener.prototype.handleEvent=function(a){return this.isFunctionListener_?this.listener.call(this.handler||this.src,a):this.listener.handleEvent.call(this.listener,a)};goog.events.listeners_={};goog.events.listenerTree_={};goog.events.sources_={};goog.events.onString_="on";goog.events.onStringMap_={};goog.events.keySeparator_="_";
|
||||
goog.events.listen=function(a,b,c,d,e){if(b){if(goog.isArray(b)){for(var f=0;f<b.length;f++)goog.events.listen(a,b[f],c,d,e);return null}var d=!!d,g=goog.events.listenerTree_;b in g||(g[b]={count_:0,remaining_:0});g=g[b];d in g||(g[d]={count_:0,remaining_:0},g.count_++);var g=g[d],h=goog.getUid(a),i;g.remaining_++;if(g[h]){i=g[h];for(f=0;f<i.length;f++)if(g=i[f],g.listener==c&&g.handler==e){if(g.removed)break;return i[f].key}}else i=g[h]=[],g.count_++;f=goog.events.getProxy();f.src=a;g=new goog.events.Listener;
|
||||
g.goog_events_Listener_prototype$init(c,f,a,b,d,e);c=g.key;f.key=c;i.push(g);goog.events.listeners_[c]=g;goog.events.sources_[h]||(goog.events.sources_[h]=[]);goog.events.sources_[h].push(g);a.addEventListener?(a==goog.global||!a.customEvent_)&&a.addEventListener(b,f,d):a.attachEvent(goog.events.getOnString_(b),f);return c}throw Error("Invalid event type");};
|
||||
goog.events.getProxy=function(){var a=goog.events.handleBrowserEvent_,b=goog.events.BrowserFeature.HAS_W3C_EVENT_SUPPORT?function(c){return a.call(b.src,b.key,c)}:function(c){c=a.call(b.src,b.key,c);if(!c)return c};return b};goog.events.listenOnce=function(a,b,c,d,e){if(goog.isArray(b)){for(var f=0;f<b.length;f++)goog.events.listenOnce(a,b[f],c,d,e);return null}a=goog.events.listen(a,b,c,d,e);goog.events.listeners_[a].goog_events_Listener_prototype$callOnce=!0;return a};
|
||||
goog.events.listenWithWrapper=function(a,b,c,d,e){b.listen(a,c,d,e)};goog.events.unlisten=function(a,b,c,d,e){if(goog.isArray(b)){for(var f=0;f<b.length;f++)goog.events.unlisten(a,b[f],c,d,e);return null}d=!!d;a=goog.events.getListeners_(a,b,d);if(!a)return!1;for(f=0;f<a.length;f++)if(a[f].listener==c&&a[f].capture==d&&a[f].handler==e)return goog.events.unlistenByKey(a[f].key);return!1};
|
||||
goog.events.unlistenByKey=function(a){if(!goog.events.listeners_[a])return!1;var b=goog.events.listeners_[a];if(b.removed)return!1;var c=b.src,d=b.type,e=b.proxy,f=b.capture;c.removeEventListener?(c==goog.global||!c.customEvent_)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(goog.events.getOnString_(d),e);c=goog.getUid(c);goog.events.sources_[c]&&(e=goog.events.sources_[c],goog.array.remove(e,b),0==e.length&&delete goog.events.sources_[c]);b.removed=!0;if(b=goog.events.listenerTree_[d][f][c])b.needsCleanup_=
|
||||
!0,goog.events.cleanUp_(d,f,c,b);delete goog.events.listeners_[a];return!0};goog.events.unlistenWithWrapper=function(a,b,c,d,e){b.unlisten(a,c,d,e)};
|
||||
goog.events.cleanUp_=function(a,b,c,d){if(!d.locked_&&d.needsCleanup_){for(var e=0,f=0;e<d.length;e++)d[e].removed?d[e].proxy.src=null:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.needsCleanup_=!1;0==f&&(delete goog.events.listenerTree_[a][b][c],goog.events.listenerTree_[a][b].count_--,0==goog.events.listenerTree_[a][b].count_&&(delete goog.events.listenerTree_[a][b],goog.events.listenerTree_[a].count_--),0==goog.events.listenerTree_[a].count_&&delete goog.events.listenerTree_[a])}};
|
||||
goog.events.removeAll=function(a,b,c){var d=0,e=null==b,f=null==c,c=!!c;if(null==a)goog.object.forEach(goog.events.sources_,function(a){for(var g=a.length-1;0<=g;g--){var h=a[g];if((e||b==h.type)&&(f||c==h.capture))goog.events.unlistenByKey(h.key),d++}});else if(a=goog.getUid(a),goog.events.sources_[a])for(var a=goog.events.sources_[a],g=a.length-1;0<=g;g--){var h=a[g];if((e||b==h.type)&&(f||c==h.capture))goog.events.unlistenByKey(h.key),d++}return d};
|
||||
goog.events.getListeners=function(a,b,c){return goog.events.getListeners_(a,b,c)||[]};goog.events.getListeners_=function(a,b,c){var d=goog.events.listenerTree_;return b in d&&(d=d[b],c in d&&(d=d[c],a=goog.getUid(a),d[a]))?d[a]:null};goog.events.getListener=function(a,b,c,d,e){d=!!d;if(a=goog.events.getListeners_(a,b,d))for(b=0;b<a.length;b++)if(!a[b].removed&&a[b].listener==c&&a[b].capture==d&&a[b].handler==e)return a[b];return null};
|
||||
goog.events.hasListener=function(a,b,c){var a=goog.getUid(a),d=goog.events.sources_[a];if(d){var e=goog.isDef(b),f=goog.isDef(c);return e&&f?(d=goog.events.listenerTree_[b],!!d&&!!d[c]&&a in d[c]):!e&&!f?!0:goog.array.some(d,function(a){return e&&a.type==b||f&&a.capture==c})}return!1};goog.events.expose=function(a){var b=[],c;for(c in a)a[c]&&a[c].id?b.push(c+" = "+a[c]+" ("+a[c].id+")"):b.push(c+" = "+a[c]);return b.join("\n")};
|
||||
goog.events.getOnString_=function(a){return a in goog.events.onStringMap_?goog.events.onStringMap_[a]:goog.events.onStringMap_[a]=goog.events.onString_+a};goog.events.fireListeners=function(a,b,c,d){var e=goog.events.listenerTree_;return b in e&&(e=e[b],c in e)?goog.events.fireListeners_(e[c],a,b,c,d):!0};
|
||||
goog.events.fireListeners_=function(a,b,c,d,e){var f=1,b=goog.getUid(b);if(a[b]){a.remaining_--;a=a[b];a.locked_?a.locked_++:a.locked_=1;try{for(var g=a.length,h=0;h<g;h++){var i=a[h];i&&!i.removed&&(f&=!1!==goog.events.fireListener(i,e))}}finally{a.locked_--,goog.events.cleanUp_(c,d,b,a)}}return Boolean(f)};goog.events.fireListener=function(a,b){a.goog_events_Listener_prototype$callOnce&&goog.events.unlistenByKey(a.key);return a.handleEvent(b)};goog.events.getTotalListenerCount=function(){return goog.object.getCount(goog.events.listeners_)};
|
||||
goog.events.dispatchEvent=function(a,b){var c=b.type||b,d=goog.events.listenerTree_;if(!(c in d))return!0;if(goog.isString(b))b=new goog.events.Event(b,a);else if(b instanceof goog.events.Event)b.target=b.target||a;else{var e=b,b=new goog.events.Event(c,a);goog.object.extend(b,e)}var e=1,f,d=d[c],c=!0 in d,g;if(c){f=[];for(g=a;g;g=g.getParentEventTarget())f.push(g);g=d[!0];g.remaining_=g.count_;for(var h=f.length-1;!b.propagationStopped_&&0<=h&&g.remaining_;h--)b.goog_events_Event$currentTarget=f[h],
|
||||
e&=goog.events.fireListeners_(g,f[h],b.type,!0,b)&&!1!=b.returnValue_}if(!1 in d)if(g=d[!1],g.remaining_=g.count_,c)for(h=0;!b.propagationStopped_&&h<f.length&&g.remaining_;h++)b.goog_events_Event$currentTarget=f[h],e&=goog.events.fireListeners_(g,f[h],b.type,!1,b)&&!1!=b.returnValue_;else for(d=a;!b.propagationStopped_&&d&&g.remaining_;d=d.getParentEventTarget())b.goog_events_Event$currentTarget=d,e&=goog.events.fireListeners_(g,d,b.type,!1,b)&&!1!=b.returnValue_;return Boolean(e)};
|
||||
goog.events.protectBrowserEventEntryPoint=function(a){goog.events.handleBrowserEvent_=a.protectEntryPoint(goog.events.handleBrowserEvent_)};
|
||||
goog.events.handleBrowserEvent_=function(a,b){if(!goog.events.listeners_[a])return!0;var c=goog.events.listeners_[a],d=c.type,e=goog.events.listenerTree_;if(!(d in e))return!0;var e=e[d],f,g;if(!goog.events.BrowserFeature.HAS_W3C_EVENT_SUPPORT){f=b||goog.getObjectByName("window.event");var h=!0 in e,i=!1 in e;if(h){if(goog.events.isMarkedIeEvent_(f))return!0;goog.events.markIeEvent_(f)}var k=new goog.events.BrowserEvent;k.goog_events_BrowserEvent_prototype$init(f,this);f=!0;try{if(h){for(var j=[],
|
||||
l=k.goog_events_Event$currentTarget;l;l=l.parentNode)j.push(l);g=e[!0];g.remaining_=g.count_;for(var m=j.length-1;!k.propagationStopped_&&0<=m&&g.remaining_;m--)k.goog_events_Event$currentTarget=j[m],f&=goog.events.fireListeners_(g,j[m],d,!0,k);if(i){g=e[!1];g.remaining_=g.count_;for(m=0;!k.propagationStopped_&&m<j.length&&g.remaining_;m++)k.goog_events_Event$currentTarget=j[m],f&=goog.events.fireListeners_(g,j[m],d,!1,k)}}else f=goog.events.fireListener(c,k)}finally{j&&(j.length=0)}return f}d=new goog.events.BrowserEvent(b,
|
||||
this);return f=goog.events.fireListener(c,d)};goog.events.markIeEvent_=function(a){var b=!1;if(0==a.keyCode)try{a.keyCode=-1;return}catch(c){b=!0}if(b||void 0==a.returnValue)a.returnValue=!0};goog.events.isMarkedIeEvent_=function(a){return 0>a.keyCode||void 0!=a.returnValue};goog.events.uniqueIdCounter_=0;goog.events.getUniqueId=function(a){return a+"_"+goog.events.uniqueIdCounter_++};goog.debug.entryPointRegistry.register(function(a){goog.events.handleBrowserEvent_=a(goog.events.handleBrowserEvent_)});goog.math.Box=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};goog.math.Box.boundingBox=function(a){for(var b=new goog.math.Box(arguments[0].y,arguments[0].x,arguments[0].y,arguments[0].x),c=1;c<arguments.length;c++){var d=arguments[c];b.top=Math.min(b.top,d.y);b.right=Math.max(b.right,d.x);b.bottom=Math.max(b.bottom,d.y);b.left=Math.min(b.left,d.x)}return b};goog.math.Box.prototype.clone=function(){return new goog.math.Box(this.top,this.right,this.bottom,this.left)};
|
||||
goog.DEBUG&&(goog.math.Box.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"});goog.math.Box.prototype.contains=function(a){return goog.math.Box.contains(this,a)};goog.math.Box.prototype.goog_math_Box_prototype$expand=function(a,b,c,d){goog.isObject(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=b,this.bottom+=c,this.left-=d);return this};
|
||||
goog.math.Box.prototype.expandToInclude=function(a){this.left=Math.min(this.left,a.left);this.top=Math.min(this.top,a.top);this.right=Math.max(this.right,a.right);this.bottom=Math.max(this.bottom,a.bottom)};goog.math.Box.equals=function(a,b){return a==b?!0:!a||!b?!1:a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left};
|
||||
goog.math.Box.contains=function(a,b){return!a||!b?!1:b instanceof goog.math.Box?b.left>=a.left&&b.right<=a.right&&b.top>=a.top&&b.bottom<=a.bottom:b.x>=a.left&&b.x<=a.right&&b.y>=a.top&&b.y<=a.bottom};goog.math.Box.relativePositionX=function(a,b){return b.x<a.left?b.x-a.left:b.x>a.right?b.x-a.right:0};goog.math.Box.relativePositionY=function(a,b){return b.y<a.top?b.y-a.top:b.y>a.bottom?b.y-a.bottom:0};
|
||||
goog.math.Box.distance=function(a,b){var c=goog.math.Box.relativePositionX(a,b),d=goog.math.Box.relativePositionY(a,b);return Math.sqrt(c*c+d*d)};goog.math.Box.intersects=function(a,b){return a.left<=b.right&&b.left<=a.right&&a.top<=b.bottom&&b.top<=a.bottom};goog.math.Box.intersectsWithPadding=function(a,b,c){return a.left<=b.right+c&&b.left<=a.right+c&&a.top<=b.bottom+c&&b.top<=a.bottom+c};goog.math.Rect=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};goog.math.Rect.prototype.clone=function(){return new goog.math.Rect(this.left,this.top,this.width,this.height)};goog.math.Rect.prototype.toBox=function(){return new goog.math.Box(this.top,this.left+this.width,this.top+this.height,this.left)};goog.math.Rect.createFromBox=function(a){return new goog.math.Rect(a.left,a.top,a.right-a.left,a.bottom-a.top)};
|
||||
goog.DEBUG&&(goog.math.Rect.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"});goog.math.Rect.equals=function(a,b){return a==b?!0:!a||!b?!1:a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height};
|
||||
goog.math.Rect.prototype.goog_math_Rect_prototype$intersection=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top),a=Math.min(this.top+this.height,a.top+a.height);if(d<=a)return this.left=b,this.top=d,this.width=c-b,this.height=a-d,!0}return!1};
|
||||
goog.math.Rect.function__new_goog_math_Rect__number__number__number__number___undefined$intersection=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top),f=Math.min(a.top+a.height,b.top+b.height);if(e<=f)return new goog.math.Rect(c,e,d-c,f-e)}return null};goog.math.Rect.intersects=function(a,b){return a.left<=b.left+b.width&&b.left<=a.left+a.width&&a.top<=b.top+b.height&&b.top<=a.top+a.height};
|
||||
goog.math.Rect.prototype.intersects=function(a){return goog.math.Rect.intersects(this,a)};
|
||||
goog.math.Rect.function__new_goog_math_Rect__number__number__number__number___undefined$difference=function(a,b){var c=goog.math.Rect.function__new_goog_math_Rect__number__number__number__number___undefined$intersection(a,b);if(!c||!c.height||!c.width)return[a.clone()];var c=[],d=a.top,e=a.height,f=a.left+a.width,g=a.top+a.height,h=b.left+b.width,i=b.top+b.height;b.top>a.top&&(c.push(new goog.math.Rect(a.left,a.top,a.width,b.top-a.top)),d=b.top,e-=b.top-a.top);i<g&&(c.push(new goog.math.Rect(a.left,
|
||||
i,a.width,g-i)),e=i-d);b.left>a.left&&c.push(new goog.math.Rect(a.left,d,b.left-a.left,e));h<f&&c.push(new goog.math.Rect(h,d,f-h,e));return c};goog.math.Rect.prototype.goog_math_Rect_prototype$difference=function(a){return goog.math.Rect.function__new_goog_math_Rect__number__number__number__number___undefined$difference(this,a)};
|
||||
goog.math.Rect.prototype.goog_math_Rect_prototype$boundingRect=function(a){var b=Math.max(this.left+this.width,a.left+a.width),c=Math.max(this.top+this.height,a.top+a.height);this.left=Math.min(this.left,a.left);this.top=Math.min(this.top,a.top);this.width=b-this.left;this.height=c-this.top};goog.math.Rect.function__new_goog_math_Rect__number__number__number__number___undefined$boundingRect=function(a,b){if(!a||!b)return null;var c=a.clone();c.goog_math_Rect_prototype$boundingRect(b);return c};
|
||||
goog.math.Rect.prototype.contains=function(a){return a instanceof goog.math.Rect?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};goog.math.Rect.prototype.getSize=function(){return new goog.math.Size(this.width,this.height)};goog.style={};goog.style.setStyle=function(a,b,c){goog.isString(b)?goog.style.setStyle_(a,c,b):goog.object.forEach(b,goog.partial(goog.style.setStyle_,a))};goog.style.setStyle_=function(a,b,c){a.style[goog.string.toCamelCase(c)]=b};goog.style.getStyle=function(a,b){return a.style[goog.string.toCamelCase(b)]||""};
|
||||
goog.style.getComputedStyle=function(a,b){var c=goog.dom.getOwnerDocument(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};goog.style.getCascadedStyle=function(a,b){return a.currentStyle?a.currentStyle[b]:null};goog.style.getStyle_=function(a,b){return goog.style.getComputedStyle(a,b)||goog.style.getCascadedStyle(a,b)||a.style&&a.style[b]};
|
||||
goog.style.getComputedPosition=function(a){return goog.style.getStyle_(a,"position")};goog.style.getBackgroundColor=function(a){return goog.style.getStyle_(a,"backgroundColor")};goog.style.getComputedOverflowX=function(a){return goog.style.getStyle_(a,"overflowX")};goog.style.getComputedOverflowY=function(a){return goog.style.getStyle_(a,"overflowY")};goog.style.getComputedZIndex=function(a){return goog.style.getStyle_(a,"zIndex")};
|
||||
goog.style.getComputedTextAlign=function(a){return goog.style.getStyle_(a,"textAlign")};goog.style.getComputedCursor=function(a){return goog.style.getStyle_(a,"cursor")};goog.style.setPosition=function(a,b,c){var d,e=goog.userAgent.GECKO&&(goog.userAgent.MAC||goog.userAgent.X11)&&goog.userAgent.isVersion("1.9");b instanceof goog.math.Coordinate?(d=b.x,b=b.y):(d=b,b=c);a.style.left=goog.style.getPixelStyleValue_(d,e);a.style.top=goog.style.getPixelStyleValue_(b,e)};
|
||||
goog.style.getPosition=function(a){return new goog.math.Coordinate(a.offsetLeft,a.offsetTop)};goog.style.getClientViewportElement=function(a){a=a?goog.dom.getOwnerDocument(a):goog.dom.getDocument();return goog.userAgent.IE&&!goog.userAgent.isDocumentMode(9)&&!goog.dom.getDomHelper(a).isCss1CompatMode()?a.body:a.documentElement};goog.style.getViewportPageOffset=function(a){var b=a.body,a=a.documentElement;return new goog.math.Coordinate(b.scrollLeft||a.scrollLeft,b.scrollTop||a.scrollTop)};
|
||||
goog.style.getBoundingClientRect_=function(a){var b=a.getBoundingClientRect();goog.userAgent.IE&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b};
|
||||
goog.style.getOffsetParent=function(a){if(goog.userAgent.IE&&!goog.userAgent.isDocumentMode(8))return a.offsetParent;for(var b=goog.dom.getOwnerDocument(a),c=goog.style.getStyle_(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=goog.style.getStyle_(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};
|
||||
goog.style.getVisibleRectForElement=function(a){for(var b=new goog.math.Box(0,Infinity,Infinity,0),c=goog.dom.getDomHelper(a),d=c.getDocument().body,e=c.getDocument().documentElement,f=c.getDocumentScrollElement();a=goog.style.getOffsetParent(a);)if((!goog.userAgent.IE||0!=a.clientWidth)&&(!goog.userAgent.WEBKIT||0!=a.clientHeight||a!=d)&&a!=d&&a!=e&&"visible"!=goog.style.getStyle_(a,"overflow")){var g=goog.style.getPageOffset(a),h=goog.style.getClientLeftTop(a);g.x+=h.x;g.y+=h.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=c.getViewportSize();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};
|
||||
goog.style.getContainerOffsetToScrollInto=function(a,b,c){var d=goog.style.getPageOffset(a),e=goog.style.getPageOffset(b),f=goog.style.getBorderBox(b),g=d.x-e.x-f.left,d=d.y-e.y-f.top,e=b.clientWidth-a.offsetWidth,a=b.clientHeight-a.offsetHeight,f=b.scrollLeft,b=b.scrollTop;c?(f+=g-e/2,b+=d-a/2):(f+=Math.min(g,Math.max(g-e,0)),b+=Math.min(d,Math.max(d-a,0)));return new goog.math.Coordinate(f,b)};
|
||||
goog.style.scrollIntoContainerView=function(a,b,c){a=goog.style.getContainerOffsetToScrollInto(a,b,c);b.scrollLeft=a.x;b.scrollTop=a.y};
|
||||
goog.style.getClientLeftTop=function(a){if(goog.userAgent.GECKO&&!goog.userAgent.isVersion("1.9")){var b=parseFloat(goog.style.getComputedStyle(a,"borderLeftWidth"));if(goog.style.isRightToLeft(a))var c=a.offsetWidth-a.clientWidth-b-parseFloat(goog.style.getComputedStyle(a,"borderRightWidth")),b=b+c;return new goog.math.Coordinate(b,parseFloat(goog.style.getComputedStyle(a,"borderTopWidth")))}return new goog.math.Coordinate(a.clientLeft,a.clientTop)};
|
||||
goog.style.getPageOffset=function(a){var b,c=goog.dom.getOwnerDocument(a),d=goog.style.getStyle_(a,"position");goog.asserts.assertObject(a,"Parameter is required");var e=goog.userAgent.GECKO&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new goog.math.Coordinate(0,0),g=goog.style.getClientViewportElement(c);if(a==g)return f;if(a.getBoundingClientRect)b=goog.style.getBoundingClientRect_(a),a=goog.dom.getDomHelper(c).getDocumentScroll(),
|
||||
f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(g),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{b=a;do{f.x+=b.offsetLeft;f.y+=b.offsetTop;b!=a&&(f.x+=b.clientLeft||0,f.y+=b.clientTop||0);if(goog.userAgent.WEBKIT&&"fixed"==goog.style.getComputedPosition(b)){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(goog.userAgent.OPERA||goog.userAgent.WEBKIT&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=goog.style.getOffsetParent(b))&&
|
||||
b!=c.body&&b!=g;)if(f.x-=b.scrollLeft,!goog.userAgent.OPERA||"TR"!=b.tagName)f.y-=b.scrollTop}return f};goog.style.getPageOffsetLeft=function(a){return goog.style.getPageOffset(a).x};goog.style.getPageOffsetTop=function(a){return goog.style.getPageOffset(a).y};
|
||||
goog.style.getFramedPageOffset=function(a,b){var c=new goog.math.Coordinate(0,0),d=goog.dom.getWindow(goog.dom.getOwnerDocument(a)),e=a;do{var f=d==b?goog.style.getPageOffset(e):goog.style.getClientPosition(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&(e=d.frameElement)&&(d=d.parent));return c};
|
||||
goog.style.translateRectForAnotherFrame=function(a,b,c){if(b.getDocument()!=c.getDocument()){var d=b.getDocument().body,c=goog.style.getFramedPageOffset(d,c.getWindow()),c=goog.math.Coordinate.function__new_goog_math_Coordinate__number___number____undefined$difference(c,goog.style.getPageOffset(d));goog.userAgent.IE&&!b.isCss1CompatMode()&&(c=goog.math.Coordinate.function__new_goog_math_Coordinate__number___number____undefined$difference(c,b.getDocumentScroll()));a.left+=c.x;a.top+=c.y}};
|
||||
goog.style.getRelativePosition=function(a,b){var c=goog.style.getClientPosition(a),d=goog.style.getClientPosition(b);return new goog.math.Coordinate(c.x-d.x,c.y-d.y)};
|
||||
goog.style.getClientPosition=function(a){var b=new goog.math.Coordinate;if(a.nodeType==goog.dom.NodeType.ELEMENT){if(a.getBoundingClientRect){var c=goog.style.getBoundingClientRect_(a);b.x=c.left;b.y=c.top}else{var c=goog.dom.getDomHelper(a).getDocumentScroll(),d=goog.style.getPageOffset(a);b.x=d.x-c.x;b.y=d.y-c.y}goog.userAgent.GECKO&&!goog.userAgent.isVersion(12)&&(b=goog.math.Coordinate.sum(b,goog.style.getCssTranslation(a)))}else c=goog.isFunction(a.getBrowserEvent),d=a,a.targetTouches?d=a.targetTouches[0]:
|
||||
c&&a.getBrowserEvent().targetTouches&&(d=a.getBrowserEvent().targetTouches[0]),b.x=d.clientX,b.y=d.clientY;return b};goog.style.setPageOffset=function(a,b,c){var d=goog.style.getPageOffset(a);b instanceof goog.math.Coordinate&&(c=b.y,b=b.x);goog.style.setPosition(a,a.offsetLeft+(b-d.x),a.offsetTop+(c-d.y))};
|
||||
goog.style.setSize=function(a,b,c){if(b instanceof goog.math.Size)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");goog.style.setWidth(a,b);goog.style.setHeight(a,c)};goog.style.getPixelStyleValue_=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};goog.style.setHeight=function(a,b){a.style.height=goog.style.getPixelStyleValue_(b,!0)};goog.style.setWidth=function(a,b){a.style.width=goog.style.getPixelStyleValue_(b,!0)};
|
||||
goog.style.getSize=function(a){if("none"!=goog.style.getStyle_(a,"display"))return goog.style.getSizeWithDisplay_(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=goog.style.getSizeWithDisplay_(a);b.display=c;b.position=e;b.visibility=d;return a};
|
||||
goog.style.getSizeWithDisplay_=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=goog.userAgent.WEBKIT&&!b&&!c;return(!goog.isDef(b)||d)&&a.getBoundingClientRect?(a=goog.style.getBoundingClientRect_(a),new goog.math.Size(a.right-a.left,a.bottom-a.top)):new goog.math.Size(b,c)};goog.style.getBounds=function(a){var b=goog.style.getPageOffset(a),a=goog.style.getSize(a);return new goog.math.Rect(b.x,b.y,a.width,a.height)};goog.style.toCamelCase=function(a){return goog.string.toCamelCase(String(a))};
|
||||
goog.style.toSelectorCase=function(a){return goog.string.toSelectorCase(a)};goog.style.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)};goog.style.setOpacity=function(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity="+100*b+")")};
|
||||
goog.style.setTransparentBackgroundImage=function(a,b){var c=a.style;goog.userAgent.IE&&!goog.userAgent.isVersion("8")?c.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+b+'", sizingMethod="crop")':(c.backgroundImage="url("+b+")",c.backgroundPosition="top left",c.backgroundRepeat="no-repeat")};goog.style.clearTransparentBackgroundImage=function(a){a=a.style;"filter"in a?a.filter="":a.backgroundImage="none"};goog.style.showElement=function(a,b){a.style.display=b?"":"none"};
|
||||
goog.style.isElementShown=function(a){return"none"!=a.style.display};goog.style.installStyles=function(a,b){var c=goog.dom.getDomHelper(b),d=null;if(goog.userAgent.IE)d=c.getDocument().createStyleSheet(),goog.style.setStyles(d,a);else{var e=c.getElementsByTagNameAndClass("head")[0];e||(d=c.getElementsByTagNameAndClass("body")[0],e=c.createDom("head"),d.parentNode.insertBefore(e,d));d=c.createDom("style");goog.style.setStyles(d,a);c.appendChild(e,d)}return d};
|
||||
goog.style.uninstallStyles=function(a){goog.dom.removeNode(a.ownerNode||a.owningElement||a)};goog.style.setStyles=function(a,b){goog.userAgent.IE?a.cssText=b:a.innerHTML=b};goog.style.setPreWrap=function(a){a=a.style;goog.userAgent.IE&&!goog.userAgent.isVersion("8")?(a.whiteSpace="pre",a.wordWrap="break-word"):a.whiteSpace=goog.userAgent.GECKO?"-moz-pre-wrap":"pre-wrap"};
|
||||
goog.style.setInlineBlock=function(a){a=a.style;a.position="relative";goog.userAgent.IE&&!goog.userAgent.isVersion("8")?(a.zoom="1",a.display="inline"):a.display=goog.userAgent.GECKO?goog.userAgent.isVersion("1.9a")?"inline-block":"-moz-inline-box":"inline-block"};goog.style.isRightToLeft=function(a){return"rtl"==goog.style.getStyle_(a,"direction")};goog.style.unselectableStyle_=goog.userAgent.GECKO?"MozUserSelect":goog.userAgent.WEBKIT?"WebkitUserSelect":null;
|
||||
goog.style.isUnselectable=function(a){return goog.style.unselectableStyle_?"none"==a.style[goog.style.unselectableStyle_].toLowerCase():goog.userAgent.IE||goog.userAgent.OPERA?"on"==a.getAttribute("unselectable"):!1};
|
||||
goog.style.setUnselectable=function(a,b,c){var c=!c?a.getElementsByTagName("*"):null,d=goog.style.unselectableStyle_;if(d){if(b=b?"none":"",a.style[d]=b,c)for(var a=0,e;e=c[a];a++)e.style[d]=b}else if(goog.userAgent.IE||goog.userAgent.OPERA)if(b=b?"on":"",a.setAttribute("unselectable",b),c)for(a=0;e=c[a];a++)e.setAttribute("unselectable",b)};goog.style.getBorderBoxSize=function(a){return new goog.math.Size(a.offsetWidth,a.offsetHeight)};
|
||||
goog.style.setBorderBoxSize=function(a,b){var c=goog.dom.getOwnerDocument(a),d=goog.dom.getDomHelper(c).isCss1CompatMode();if(goog.userAgent.IE&&(!d||!goog.userAgent.isVersion("8")))if(c=a.style,d){var d=goog.style.getPaddingBox(a),e=goog.style.getBorderBox(a);c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c.pixelWidth=b.width,c.pixelHeight=b.height;else goog.style.setBoxSizingSize_(a,b,"border-box")};
|
||||
goog.style.getContentBoxSize=function(a){var b=goog.dom.getOwnerDocument(a),c=goog.userAgent.IE&&a.currentStyle;if(c&&goog.dom.getDomHelper(b).isCss1CompatMode()&&"auto"!=c.width&&"auto"!=c.height&&!c.boxSizing)return b=goog.style.getIePixelValue_(a,c.width,"width","pixelWidth"),a=goog.style.getIePixelValue_(a,c.height,"height","pixelHeight"),new goog.math.Size(b,a);c=goog.style.getBorderBoxSize(a);b=goog.style.getPaddingBox(a);a=goog.style.getBorderBox(a);return new goog.math.Size(c.width-a.left-
|
||||
b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)};
|
||||
goog.style.setContentBoxSize=function(a,b){var c=goog.dom.getOwnerDocument(a),d=goog.dom.getDomHelper(c).isCss1CompatMode();if(goog.userAgent.IE&&(!d||!goog.userAgent.isVersion("8")))if(c=a.style,d)c.pixelWidth=b.width,c.pixelHeight=b.height;else{var d=goog.style.getPaddingBox(a),e=goog.style.getBorderBox(a);c.pixelWidth=b.width+e.left+d.left+d.right+e.right;c.pixelHeight=b.height+e.top+d.top+d.bottom+e.bottom}else goog.style.setBoxSizingSize_(a,b,"content-box")};
|
||||
goog.style.setBoxSizingSize_=function(a,b,c){a=a.style;goog.userAgent.GECKO?a.MozBoxSizing=c:goog.userAgent.WEBKIT?a.WebkitBoxSizing=c:a.boxSizing=c;a.width=Math.max(b.width,0)+"px";a.height=Math.max(b.height,0)+"px"};goog.style.getIePixelValue_=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};
|
||||
goog.style.getIePixelDistance_=function(a,b){return goog.style.getIePixelValue_(a,goog.style.getCascadedStyle(a,b),"left","pixelLeft")};
|
||||
goog.style.getBox_=function(a,b){if(goog.userAgent.IE){var c=goog.style.getIePixelDistance_(a,b+"Left"),d=goog.style.getIePixelDistance_(a,b+"Right"),e=goog.style.getIePixelDistance_(a,b+"Top"),f=goog.style.getIePixelDistance_(a,b+"Bottom");return new goog.math.Box(e,d,f,c)}c=goog.style.getComputedStyle(a,b+"Left");d=goog.style.getComputedStyle(a,b+"Right");e=goog.style.getComputedStyle(a,b+"Top");f=goog.style.getComputedStyle(a,b+"Bottom");return new goog.math.Box(parseFloat(e),parseFloat(d),parseFloat(f),
|
||||
parseFloat(c))};goog.style.getPaddingBox=function(a){return goog.style.getBox_(a,"padding")};goog.style.getMarginBox=function(a){return goog.style.getBox_(a,"margin")};goog.style.ieBorderWidthKeywords_={thin:2,medium:4,thick:6};
|
||||
goog.style.getIePixelBorder_=function(a,b){if("none"==goog.style.getCascadedStyle(a,b+"Style"))return 0;var c=goog.style.getCascadedStyle(a,b+"Width");return c in goog.style.ieBorderWidthKeywords_?goog.style.ieBorderWidthKeywords_[c]:goog.style.getIePixelValue_(a,c,"left","pixelLeft")};
|
||||
goog.style.getBorderBox=function(a){if(goog.userAgent.IE){var b=goog.style.getIePixelBorder_(a,"borderLeft"),c=goog.style.getIePixelBorder_(a,"borderRight"),d=goog.style.getIePixelBorder_(a,"borderTop"),a=goog.style.getIePixelBorder_(a,"borderBottom");return new goog.math.Box(d,c,a,b)}b=goog.style.getComputedStyle(a,"borderLeftWidth");c=goog.style.getComputedStyle(a,"borderRightWidth");d=goog.style.getComputedStyle(a,"borderTopWidth");a=goog.style.getComputedStyle(a,"borderBottomWidth");return new goog.math.Box(parseFloat(d),
|
||||
parseFloat(c),parseFloat(a),parseFloat(b))};goog.style.getFontFamily=function(a){var b=goog.dom.getOwnerDocument(a),c="";if(b.body.createTextRange){b=b.body.createTextRange();b.moveToElementText(a);try{c=b.queryCommandValue("FontName")}catch(d){c=""}}c||(c=goog.style.getStyle_(a,"fontFamily"));a=c.split(",");1<a.length&&(c=a[0]);return goog.string.stripQuotes(c,"\"'")};goog.style.lengthUnitRegex_=/[^\d]+$/;
|
||||
goog.style.getLengthUnits=function(a){return(a=a.match(goog.style.lengthUnitRegex_))&&a[0]||null};goog.style.ABSOLUTE_CSS_LENGTH_UNITS_={cm:1,"in":1,mm:1,pc:1,pt:1};goog.style.CONVERTIBLE_RELATIVE_CSS_UNITS_={em:1,ex:1};
|
||||
goog.style.getFontSize=function(a){var b=goog.style.getStyle_(a,"fontSize"),c=goog.style.getLengthUnits(b);if(b&&"px"==c)return parseInt(b,10);if(goog.userAgent.IE){if(c in goog.style.ABSOLUTE_CSS_LENGTH_UNITS_)return goog.style.getIePixelValue_(a,b,"left","pixelLeft");if(a.parentNode&&a.parentNode.nodeType==goog.dom.NodeType.ELEMENT&&c in goog.style.CONVERTIBLE_RELATIVE_CSS_UNITS_)return a=a.parentNode,c=goog.style.getStyle_(a,"fontSize"),goog.style.getIePixelValue_(a,b==c?"1em":b,"left","pixelLeft")}c=
|
||||
goog.dom.createDom("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});goog.dom.appendChild(a,c);b=c.offsetHeight;goog.dom.removeNode(c);return b};goog.style.parseStyleAttribute=function(a){var b={};goog.array.forEach(a.split(/\s*;\s*/),function(a){a=a.split(/\s*:\s*/);2==a.length&&(b[goog.string.toCamelCase(a[0].toLowerCase())]=a[1])});return b};
|
||||
goog.style.toStyleAttribute=function(a){var b=[];goog.object.forEach(a,function(a,d){b.push(goog.string.toSelectorCase(d),":",a,";")});return b.join("")};goog.style.setFloat=function(a,b){a.style[goog.userAgent.IE?"styleFloat":"cssFloat"]=b};goog.style.getFloat=function(a){return a.style[goog.userAgent.IE?"styleFloat":"cssFloat"]||""};
|
||||
goog.style.getScrollbarWidth=function(a){var b=goog.dom.createElement("div");a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=goog.dom.createElement("div");goog.style.setSize(a,"200px","200px");b.appendChild(a);goog.dom.appendChild(goog.dom.getDocument().body,b);a=b.offsetWidth-b.clientWidth;goog.dom.removeNode(b);return a};goog.style.MATRIX_TRANSLATION_REGEX_=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;
|
||||
goog.style.getCssTranslation=function(a){var b;goog.userAgent.IE?b="-ms-transform":goog.userAgent.WEBKIT?b="-webkit-transform":goog.userAgent.OPERA?b="-o-transform":goog.userAgent.GECKO&&(b="-moz-transform");var c;b&&(c=goog.style.getStyle_(a,b));c||(c=goog.style.getStyle_(a,"transform"));if(!c)return new goog.math.Coordinate(0,0);a=c.match(goog.style.MATRIX_TRANSLATION_REGEX_);return!a?new goog.math.Coordinate(0,0):new goog.math.Coordinate(parseFloat(a[1]),parseFloat(a[2]))};goog.math.Vec2=function(a,b){this.x=a;this.y=b};goog.inherits(goog.math.Vec2,goog.math.Coordinate);goog.math.Vec2.randomUnit=function(){var a=2*Math.random()*Math.PI;return new goog.math.Vec2(Math.cos(a),Math.sin(a))};goog.math.Vec2.random=function(){var a=Math.sqrt(Math.random()),b=2*Math.random()*Math.PI;return new goog.math.Vec2(Math.cos(b)*a,Math.sin(b)*a)};goog.math.Vec2.fromCoordinate=function(a){return new goog.math.Vec2(a.x,a.y)};
|
||||
goog.math.Vec2.prototype.clone=function(){return new goog.math.Vec2(this.x,this.y)};goog.math.Vec2.prototype.magnitude=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};goog.math.Vec2.prototype.squaredMagnitude=function(){return this.x*this.x+this.y*this.y};goog.math.Vec2.prototype.scale=function(a){this.x*=a;this.y*=a;return this};goog.math.Vec2.prototype.invert=function(){this.x=-this.x;this.y=-this.y;return this};goog.math.Vec2.prototype.normalize=function(){return this.scale(1/this.magnitude())};
|
||||
goog.math.Vec2.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};goog.math.Vec2.prototype.subtract=function(a){this.x-=a.x;this.y-=a.y;return this};goog.math.Vec2.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};goog.math.Vec2.rotateAroundPoint=function(a,b,c){return a.clone().subtract(b).rotate(c).add(b)};goog.math.Vec2.prototype.equals=function(a){return this==a||!!a&&this.x==a.x&&this.y==a.y};
|
||||
goog.math.Vec2.distance=goog.math.Coordinate.distance;goog.math.Vec2.function__new_goog_math_Vec2__number__number___undefined$squaredDistance=goog.math.Coordinate.function__new_goog_math_Coordinate__number___number____undefined$squaredDistance;goog.math.Vec2.equals=goog.math.Coordinate.equals;goog.math.Vec2.sum=function(a,b){return new goog.math.Vec2(a.x+b.x,a.y+b.y)};
|
||||
goog.math.Vec2.function__new_goog_math_Vec2__number__number___undefined$difference=function(a,b){return new goog.math.Vec2(a.x-b.x,a.y-b.y)};goog.math.Vec2.dot=function(a,b){return a.x*b.x+a.y*b.y};goog.math.Vec2.lerp=function(a,b,c){return new goog.math.Vec2(goog.math.lerp(a.x,b.x,c),goog.math.lerp(a.y,b.y,c))};ol.Coordinate=function(a,b){goog.math.Vec2.call(this,a,b)};goog.inherits(ol.Coordinate,goog.math.Vec2);ol.Coordinate.ZERO=new ol.Coordinate(0,0);ol.Coordinate.createStringXY=function(a){return function(b){return ol.Coordinate.toStringXY(b,a)}};ol.Coordinate.degreesToStringHDMS_=function(a,b){var c=goog.math.modulo(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};
|
||||
ol.Coordinate.toStringHDMS=function(a){return goog.isDef(a)?ol.Coordinate.degreesToStringHDMS_(a.y,"NS")+" "+ol.Coordinate.degreesToStringHDMS_(a.x,"EW"):""};ol.Coordinate.toStringXY=function(a,b){if(goog.isDef(a)){var c=b||0;return a.x.toFixed(c)+", "+a.y.toFixed(c)}return""};ol.Coordinate.fromProjectedArray=function(a,b){var c=b.charAt(0);return"n"===c||"s"===c?new ol.Coordinate(a[1],a[0]):new ol.Coordinate(a[0],a[1])};goog.uri={};goog.uri.utils={};goog.uri.utils.CharCode_={AMPERSAND:38,EQUAL:61,HASH:35,QUESTION:63};goog.uri.utils.buildFromEncodedParts=function(a,b,c,d,e,f,g){var h="";a&&(h+=a+":");c&&(h+="//",b&&(h+=b+"@"),h+=c,d&&(h+=":"+d));e&&(h+=e);f&&(h+="?"+f);g&&(h+="#"+g);return h};goog.uri.utils.splitRe_=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");
|
||||
goog.uri.utils.ComponentIndex={SCHEME:1,USER_INFO:2,DOMAIN:3,PORT:4,PATH:5,QUERY_DATA:6,FRAGMENT:7};goog.uri.utils.split=function(a){return a.match(goog.uri.utils.splitRe_)};goog.uri.utils.decodeIfPossible_=function(a){return a&&decodeURIComponent(a)};goog.uri.utils.getComponentByIndex_=function(a,b){return goog.uri.utils.split(b)[a]||null};goog.uri.utils.getScheme=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.SCHEME,a)};
|
||||
goog.uri.utils.getEffectiveScheme=function(a){a=goog.uri.utils.getScheme(a);!a&&self.location&&(a=self.location.protocol,a=a.substr(0,a.length-1));return a?a.toLowerCase():""};goog.uri.utils.getUserInfoEncoded=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.USER_INFO,a)};goog.uri.utils.getUserInfo=function(a){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getUserInfoEncoded(a))};
|
||||
goog.uri.utils.getDomainEncoded=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.DOMAIN,a)};goog.uri.utils.getDomain=function(a){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getDomainEncoded(a))};goog.uri.utils.getPort=function(a){return Number(goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.PORT,a))||null};goog.uri.utils.getPathEncoded=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.PATH,a)};
|
||||
goog.uri.utils.getPath=function(a){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getPathEncoded(a))};goog.uri.utils.getQueryData=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.QUERY_DATA,a)};goog.uri.utils.getFragmentEncoded=function(a){var b=a.indexOf("#");return 0>b?null:a.substr(b+1)};goog.uri.utils.setFragmentEncoded=function(a,b){return goog.uri.utils.removeFragment(a)+(b?"#"+b:"")};goog.uri.utils.getFragment=function(a){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getFragmentEncoded(a))};
|
||||
goog.uri.utils.getHost=function(a){a=goog.uri.utils.split(a);return goog.uri.utils.buildFromEncodedParts(a[goog.uri.utils.ComponentIndex.SCHEME],a[goog.uri.utils.ComponentIndex.USER_INFO],a[goog.uri.utils.ComponentIndex.DOMAIN],a[goog.uri.utils.ComponentIndex.PORT])};goog.uri.utils.getPathAndAfter=function(a){a=goog.uri.utils.split(a);return goog.uri.utils.buildFromEncodedParts(null,null,null,null,a[goog.uri.utils.ComponentIndex.PATH],a[goog.uri.utils.ComponentIndex.QUERY_DATA],a[goog.uri.utils.ComponentIndex.FRAGMENT])};
|
||||
goog.uri.utils.removeFragment=function(a){var b=a.indexOf("#");return 0>b?a:a.substr(0,b)};goog.uri.utils.haveSameDomain=function(a,b){var c=goog.uri.utils.split(a),d=goog.uri.utils.split(b);return c[goog.uri.utils.ComponentIndex.DOMAIN]==d[goog.uri.utils.ComponentIndex.DOMAIN]&&c[goog.uri.utils.ComponentIndex.SCHEME]==d[goog.uri.utils.ComponentIndex.SCHEME]&&c[goog.uri.utils.ComponentIndex.PORT]==d[goog.uri.utils.ComponentIndex.PORT]};
|
||||
goog.uri.utils.assertNoFragmentsOrQueries_=function(a){if(goog.DEBUG&&(0<=a.indexOf("#")||0<=a.indexOf("?")))throw Error("goog.uri.utils: Fragment or query identifiers are not supported: ["+a+"]");};goog.uri.utils.appendQueryData_=function(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")};
|
||||
goog.uri.utils.appendKeyValuePairs_=function(a,b,c){if(goog.isArray(b)){goog.asserts.assertArray(b);for(var d=0;d<b.length;d++)goog.uri.utils.appendKeyValuePairs_(a,String(b[d]),c)}else null!=b&&c.push("&",a,""===b?"":"=",goog.string.urlEncode(b))};goog.uri.utils.buildQueryDataBuffer_=function(a,b,c){goog.asserts.assert(0==Math.max(b.length-(c||0),0)%2,"goog.uri.utils: Key/value lists must be even in length.");for(c=c||0;c<b.length;c+=2)goog.uri.utils.appendKeyValuePairs_(b[c],b[c+1],a);return a};
|
||||
goog.uri.utils.buildQueryData=function(a,b){var c=goog.uri.utils.buildQueryDataBuffer_([],a,b);c[0]="";return c.join("")};goog.uri.utils.buildQueryDataBufferFromMap_=function(a,b){for(var c in b)goog.uri.utils.appendKeyValuePairs_(c,b[c],a);return a};goog.uri.utils.buildQueryDataFromMap=function(a){a=goog.uri.utils.buildQueryDataBufferFromMap_([],a);a[0]="";return a.join("")};
|
||||
goog.uri.utils.appendParams=function(a,b){return goog.uri.utils.appendQueryData_(2==arguments.length?goog.uri.utils.buildQueryDataBuffer_([a],arguments[1],0):goog.uri.utils.buildQueryDataBuffer_([a],arguments,1))};goog.uri.utils.appendParamsFromMap=function(a,b){return goog.uri.utils.appendQueryData_(goog.uri.utils.buildQueryDataBufferFromMap_([a],b))};goog.uri.utils.appendParam=function(a,b,c){return goog.uri.utils.appendQueryData_([a,"&",b,"=",goog.string.urlEncode(c)])};
|
||||
goog.uri.utils.findParam_=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(f==goog.uri.utils.CharCode_.AMPERSAND||f==goog.uri.utils.CharCode_.QUESTION)if(f=a.charCodeAt(b+e),!f||f==goog.uri.utils.CharCode_.EQUAL||f==goog.uri.utils.CharCode_.AMPERSAND||f==goog.uri.utils.CharCode_.HASH)return b;b+=e+1}return-1};goog.uri.utils.hashOrEndRe_=/#|$/;goog.uri.utils.hasParam=function(a,b){return 0<=goog.uri.utils.findParam_(a,0,b,a.search(goog.uri.utils.hashOrEndRe_))};
|
||||
goog.uri.utils.getParamValue=function(a,b){var c=a.search(goog.uri.utils.hashOrEndRe_),d=goog.uri.utils.findParam_(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return goog.string.urlDecode(a.substr(d,e-d))};goog.uri.utils.getParamValues=function(a,b){for(var c=a.search(goog.uri.utils.hashOrEndRe_),d=0,e,f=[];0<=(e=goog.uri.utils.findParam_(a,d,b,c));){d=a.indexOf("&",e);if(0>d||d>c)d=c;e+=b.length+1;f.push(goog.string.urlDecode(a.substr(e,d-e)))}return f};
|
||||
goog.uri.utils.trailingQueryPunctuationRe_=/[?&]($|#)/;goog.uri.utils.removeParam=function(a,b){for(var c=a.search(goog.uri.utils.hashOrEndRe_),d=0,e,f=[];0<=(e=goog.uri.utils.findParam_(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(goog.uri.utils.trailingQueryPunctuationRe_,"$1")};goog.uri.utils.setParam=function(a,b,c){return goog.uri.utils.appendParam(goog.uri.utils.removeParam(a,b),b,c)};
|
||||
goog.uri.utils.appendPath=function(a,b){goog.uri.utils.assertNoFragmentsOrQueries_(a);goog.string.endsWith(a,"/")&&(a=a.substr(0,a.length-1));goog.string.startsWith(b,"/")&&(b=b.substr(1));return goog.string.buildString(a,"/",b)};goog.uri.utils.StandardQueryParam={RANDOM:"zx"};goog.uri.utils.makeUnique=function(a){return goog.uri.utils.setParam(a,goog.uri.utils.StandardQueryParam.RANDOM,goog.string.getRandomString())};goog.Uri=function(a,b){var c;a instanceof goog.Uri?(this.goog_Uri_prototype$ignoreCase_=goog.isDef(b)?b:a.getIgnoreCase(),this.setScheme(a.getScheme()),this.setUserInfo(a.getUserInfo()),this.setDomain(a.getDomain()),this.setPort(a.getPort()),this.setPath(a.getPath()),this.setQueryData(a.getQueryData().clone()),this.setFragment(a.getFragment())):a&&(c=goog.uri.utils.split(String(a)))?(this.goog_Uri_prototype$ignoreCase_=!!b,this.setScheme(c[goog.uri.utils.ComponentIndex.SCHEME]||"",!0),this.setUserInfo(c[goog.uri.utils.ComponentIndex.USER_INFO]||
|
||||
"",!0),this.setDomain(c[goog.uri.utils.ComponentIndex.DOMAIN]||"",!0),this.setPort(c[goog.uri.utils.ComponentIndex.PORT]),this.setPath(c[goog.uri.utils.ComponentIndex.PATH]||"",!0),this.setQueryData(c[goog.uri.utils.ComponentIndex.QUERY_DATA]||"",!0),this.setFragment(c[goog.uri.utils.ComponentIndex.FRAGMENT]||"",!0)):(this.goog_Uri_prototype$ignoreCase_=!!b,this.queryData_=new goog.Uri.QueryData(null,null,this.goog_Uri_prototype$ignoreCase_))};goog.Uri.preserveParameterTypesCompatibilityFlag=!1;
|
||||
goog.Uri.RANDOM_PARAM=goog.uri.utils.StandardQueryParam.RANDOM;goog.Uri.prototype.scheme_="";goog.Uri.prototype.userInfo_="";goog.Uri.prototype.domain_="";goog.Uri.prototype.port_=null;goog.Uri.prototype.path_="";goog.Uri.prototype.fragment_="";goog.Uri.prototype.isReadOnly_=!1;goog.Uri.prototype.goog_Uri_prototype$ignoreCase_=!1;
|
||||
goog.Uri.prototype.toString=function(){var a=[],b=this.getScheme();b&&a.push(goog.Uri.encodeSpecialChars_(b,goog.Uri.reDisallowedInSchemeOrUserInfo_),":");if(b=this.getDomain()){a.push("//");var c=this.getUserInfo();c&&a.push(goog.Uri.encodeSpecialChars_(c,goog.Uri.reDisallowedInSchemeOrUserInfo_),"@");a.push(goog.string.urlEncode(b));b=this.getPort();null!=b&&a.push(":",String(b))}if(b=this.getPath())this.hasDomain()&&"/"!=b.charAt(0)&&a.push("/"),a.push(goog.Uri.encodeSpecialChars_(b,"/"==b.charAt(0)?
|
||||
goog.Uri.reDisallowedInAbsolutePath_:goog.Uri.reDisallowedInRelativePath_));(b=this.getEncodedQuery())&&a.push("?",b);(b=this.getFragment())&&a.push("#",goog.Uri.encodeSpecialChars_(b,goog.Uri.reDisallowedInFragment_));return a.join("")};
|
||||
goog.Uri.prototype.goog_Uri_prototype$resolve=function(a){var b=this.clone(),c=a.hasScheme();c?b.setScheme(a.getScheme()):c=a.hasUserInfo();c?b.setUserInfo(a.getUserInfo()):c=a.hasDomain();c?b.setDomain(a.getDomain()):c=a.hasPort();var d=a.getPath();if(c)b.setPort(a.getPort());else if(c=a.hasPath()){if("/"!=d.charAt(0))if(this.hasDomain()&&!this.hasPath())d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().substr(0,e+1)+d)}d=goog.Uri.removeDotSegments(d)}c?b.setPath(d):c=a.hasQuery();
|
||||
c?b.setQueryData(a.getDecodedQuery()):c=a.hasFragment();c&&b.setFragment(a.getFragment());return b};goog.Uri.prototype.clone=function(){return new goog.Uri(this)};goog.Uri.prototype.getScheme=function(){return this.scheme_};goog.Uri.prototype.setScheme=function(a,b){this.enforceReadOnly();if(this.scheme_=b?goog.Uri.decodeOrEmpty_(a):a)this.scheme_=this.scheme_.replace(/:$/,"");return this};goog.Uri.prototype.hasScheme=function(){return!!this.scheme_};goog.Uri.prototype.getUserInfo=function(){return this.userInfo_};
|
||||
goog.Uri.prototype.setUserInfo=function(a,b){this.enforceReadOnly();this.userInfo_=b?goog.Uri.decodeOrEmpty_(a):a;return this};goog.Uri.prototype.hasUserInfo=function(){return!!this.userInfo_};goog.Uri.prototype.getDomain=function(){return this.domain_};goog.Uri.prototype.setDomain=function(a,b){this.enforceReadOnly();this.domain_=b?goog.Uri.decodeOrEmpty_(a):a;return this};goog.Uri.prototype.hasDomain=function(){return!!this.domain_};goog.Uri.prototype.getPort=function(){return this.port_};
|
||||
goog.Uri.prototype.setPort=function(a){this.enforceReadOnly();if(a){a=Number(a);if(isNaN(a)||0>a)throw Error("Bad port number "+a);this.port_=a}else this.port_=null;return this};goog.Uri.prototype.hasPort=function(){return null!=this.port_};goog.Uri.prototype.getPath=function(){return this.path_};goog.Uri.prototype.setPath=function(a,b){this.enforceReadOnly();this.path_=b?goog.Uri.decodeOrEmpty_(a):a;return this};goog.Uri.prototype.hasPath=function(){return!!this.path_};
|
||||
goog.Uri.prototype.hasQuery=function(){return""!==this.queryData_.toString()};goog.Uri.prototype.setQueryData=function(a,b){this.enforceReadOnly();a instanceof goog.Uri.QueryData?(this.queryData_=a,this.queryData_.goog_Uri_QueryData_prototype$setIgnoreCase(this.goog_Uri_prototype$ignoreCase_)):(b||(a=goog.Uri.encodeSpecialChars_(a,goog.Uri.reDisallowedInQuery_)),this.queryData_=new goog.Uri.QueryData(a,null,this.goog_Uri_prototype$ignoreCase_));return this};
|
||||
goog.Uri.prototype.setQuery=function(a,b){return this.setQueryData(a,b)};goog.Uri.prototype.getEncodedQuery=function(){return this.queryData_.toString()};goog.Uri.prototype.getDecodedQuery=function(){return this.queryData_.toDecodedString()};goog.Uri.prototype.getQueryData=function(){return this.queryData_};goog.Uri.prototype.getQuery=function(){return this.getEncodedQuery()};goog.Uri.prototype.setParameterValue=function(a,b){this.enforceReadOnly();this.queryData_.set(a,b);return this};
|
||||
goog.Uri.prototype.setParameterValues=function(a,b){this.enforceReadOnly();goog.isArray(b)||(b=[String(b)]);this.queryData_.goog_Uri_QueryData_prototype$setValues(a,b);return this};goog.Uri.prototype.getParameterValues=function(a){return this.queryData_.getValues(a)};goog.Uri.prototype.getParameterValue=function(a){return this.queryData_.get(a)};goog.Uri.prototype.getFragment=function(){return this.fragment_};
|
||||
goog.Uri.prototype.setFragment=function(a,b){this.enforceReadOnly();this.fragment_=b?goog.Uri.decodeOrEmpty_(a):a;return this};goog.Uri.prototype.hasFragment=function(){return!!this.fragment_};goog.Uri.prototype.hasSameDomainAs=function(a){return(!this.hasDomain()&&!a.hasDomain()||this.getDomain()==a.getDomain())&&(!this.hasPort()&&!a.hasPort()||this.getPort()==a.getPort())};
|
||||
goog.Uri.prototype.makeUnique=function(){this.enforceReadOnly();this.setParameterValue(goog.Uri.RANDOM_PARAM,goog.string.getRandomString());return this};goog.Uri.prototype.removeParameter=function(a){this.enforceReadOnly();this.queryData_.remove(a);return this};goog.Uri.prototype.setReadOnly=function(a){this.isReadOnly_=a;return this};goog.Uri.prototype.isReadOnly=function(){return this.isReadOnly_};
|
||||
goog.Uri.prototype.enforceReadOnly=function(){if(this.isReadOnly_)throw Error("Tried to modify a read-only Uri");};goog.Uri.prototype.goog_Uri_prototype$setIgnoreCase=function(a){this.goog_Uri_prototype$ignoreCase_=a;this.queryData_&&this.queryData_.goog_Uri_QueryData_prototype$setIgnoreCase(a);return this};goog.Uri.prototype.getIgnoreCase=function(){return this.goog_Uri_prototype$ignoreCase_};goog.Uri.parse=function(a,b){return a instanceof goog.Uri?a.clone():new goog.Uri(a,b)};
|
||||
goog.Uri.create=function(a,b,c,d,e,f,g,h){h=new goog.Uri(null,h);a&&h.setScheme(a);b&&h.setUserInfo(b);c&&h.setDomain(c);d&&h.setPort(d);e&&h.setPath(e);f&&h.setQueryData(f);g&&h.setFragment(g);return h};goog.Uri.function__new_goog_Uri______boolean____undefined$resolve=function(a,b){a instanceof goog.Uri||(a=goog.Uri.parse(a));b instanceof goog.Uri||(b=goog.Uri.parse(b));return a.goog_Uri_prototype$resolve(b)};
|
||||
goog.Uri.removeDotSegments=function(a){if(".."==a||"."==a)return"";if(!goog.string.contains(a,"./")&&!goog.string.contains(a,"/."))return a;for(var b=goog.string.startsWith(a,"/"),a=a.split("/"),c=[],d=0;d<a.length;){var e=a[d++];"."==e?b&&d==a.length&&c.push(""):".."==e?((1<c.length||1==c.length&&""!=c[0])&&c.pop(),b&&d==a.length&&c.push("")):(c.push(e),b=!0)}return c.join("/")};goog.Uri.decodeOrEmpty_=function(a){return a?decodeURIComponent(a):""};
|
||||
goog.Uri.encodeSpecialChars_=function(a,b){return goog.isString(a)?encodeURI(a).replace(b,goog.Uri.encodeChar_):null};goog.Uri.encodeChar_=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};goog.Uri.reDisallowedInSchemeOrUserInfo_=/[#\/\?@]/g;goog.Uri.reDisallowedInRelativePath_=/[\#\?:]/g;goog.Uri.reDisallowedInAbsolutePath_=/[\#\?]/g;goog.Uri.reDisallowedInQuery_=/[\#\?@]/g;goog.Uri.reDisallowedInFragment_=/#/g;
|
||||
goog.Uri.haveSameDomain=function(a,b){var c=goog.uri.utils.split(a),d=goog.uri.utils.split(b);return c[goog.uri.utils.ComponentIndex.DOMAIN]==d[goog.uri.utils.ComponentIndex.DOMAIN]&&c[goog.uri.utils.ComponentIndex.PORT]==d[goog.uri.utils.ComponentIndex.PORT]};goog.Uri.QueryData=function(a,b,c){this.encodedQuery_=a||null;this.goog_Uri_QueryData$ignoreCase_=!!c};
|
||||
goog.Uri.QueryData.prototype.ensureKeyMapInitialized_=function(){if(!this.keyMap_&&(this.keyMap_=new goog.structs.Map,this.count_=0,this.encodedQuery_))for(var a=this.encodedQuery_.split("&"),b=0;b<a.length;b++){var c=a[b].indexOf("="),d=null,e=null;0<=c?(d=a[b].substring(0,c),e=a[b].substring(c+1)):d=a[b];d=goog.string.urlDecode(d);d=this.getKeyName_(d);this.add(d,e?goog.string.urlDecode(e):"")}};
|
||||
goog.Uri.QueryData.createFromMap=function(a,b,c){b=goog.structs.getKeys(a);if("undefined"==typeof b)throw Error("Keys are undefined");for(var c=new goog.Uri.QueryData(null,null,c),a=goog.structs.getValues(a),d=0;d<b.length;d++){var e=b[d],f=a[d];goog.isArray(f)?c.goog_Uri_QueryData_prototype$setValues(e,f):c.add(e,f)}return c};
|
||||
goog.Uri.QueryData.createFromKeysValues=function(a,b,c,d){if(a.length!=b.length)throw Error("Mismatched lengths for keys/values");c=new goog.Uri.QueryData(null,null,d);for(d=0;d<a.length;d++)c.add(a[d],b[d]);return c};goog.Uri.QueryData.prototype.keyMap_=null;goog.Uri.QueryData.prototype.count_=null;goog.Uri.QueryData.prototype.getCount=function(){this.ensureKeyMapInitialized_();return this.count_};
|
||||
goog.Uri.QueryData.prototype.add=function(a,b){this.ensureKeyMapInitialized_();this.invalidateCache_();var a=this.getKeyName_(a),c=this.keyMap_.get(a);c||this.keyMap_.set(a,c=[]);c.push(b);this.count_++;return this};goog.Uri.QueryData.prototype.remove=function(a){this.ensureKeyMapInitialized_();a=this.getKeyName_(a);return this.keyMap_.containsKey(a)?(this.invalidateCache_(),this.count_-=this.keyMap_.get(a).length,this.keyMap_.remove(a)):!1};
|
||||
goog.Uri.QueryData.prototype.clear=function(){this.invalidateCache_();this.keyMap_=null;this.count_=0};goog.Uri.QueryData.prototype.isEmpty=function(){this.ensureKeyMapInitialized_();return 0==this.count_};goog.Uri.QueryData.prototype.containsKey=function(a){this.ensureKeyMapInitialized_();a=this.getKeyName_(a);return this.keyMap_.containsKey(a)};goog.Uri.QueryData.prototype.containsValue=function(a){var b=this.getValues();return goog.array.contains(b,a)};
|
||||
goog.Uri.QueryData.prototype.getKeys=function(){this.ensureKeyMapInitialized_();for(var a=this.keyMap_.getValues(),b=this.keyMap_.getKeys(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};goog.Uri.QueryData.prototype.getValues=function(a){this.ensureKeyMapInitialized_();var b=[];if(a)this.containsKey(a)&&(b=goog.array.concat(b,this.keyMap_.get(this.getKeyName_(a))));else for(var a=this.keyMap_.getValues(),c=0;c<a.length;c++)b=goog.array.concat(b,a[c]);return b};
|
||||
goog.Uri.QueryData.prototype.set=function(a,b){this.ensureKeyMapInitialized_();this.invalidateCache_();a=this.getKeyName_(a);this.containsKey(a)&&(this.count_-=this.keyMap_.get(a).length);this.keyMap_.set(a,[b]);this.count_++;return this};goog.Uri.QueryData.prototype.get=function(a,b){var c=a?this.getValues(a):[];return goog.Uri.preserveParameterTypesCompatibilityFlag?0<c.length?c[0]:b:0<c.length?String(c[0]):b};
|
||||
goog.Uri.QueryData.prototype.goog_Uri_QueryData_prototype$setValues=function(a,b){this.remove(a);0<b.length&&(this.invalidateCache_(),this.keyMap_.set(this.getKeyName_(a),goog.array.clone(b)),this.count_+=b.length)};
|
||||
goog.Uri.QueryData.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var a=[],b=this.keyMap_.getKeys(),c=0;c<b.length;c++)for(var d=b[c],e=goog.string.urlEncode(d),d=this.getValues(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+goog.string.urlEncode(d[f]));a.push(g)}return this.encodedQuery_=a.join("&")};goog.Uri.QueryData.prototype.toDecodedString=function(){return goog.Uri.decodeOrEmpty_(this.toString())};
|
||||
goog.Uri.QueryData.prototype.invalidateCache_=function(){this.encodedQuery_=null};goog.Uri.QueryData.prototype.filterKeys=function(a){this.ensureKeyMapInitialized_();goog.structs.forEach(this.keyMap_,function(b,c){goog.array.contains(a,c)||this.remove(c)},this);return this};goog.Uri.QueryData.prototype.clone=function(){var a=new goog.Uri.QueryData;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=this.keyMap_.clone());return a};
|
||||
goog.Uri.QueryData.prototype.getKeyName_=function(a){a=String(a);this.goog_Uri_QueryData$ignoreCase_&&(a=a.toLowerCase());return a};goog.Uri.QueryData.prototype.goog_Uri_QueryData_prototype$setIgnoreCase=function(a){a&&!this.goog_Uri_QueryData$ignoreCase_&&(this.ensureKeyMapInitialized_(),this.invalidateCache_(),goog.structs.forEach(this.keyMap_,function(a,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.goog_Uri_QueryData_prototype$setValues(d,a))},this));this.goog_Uri_QueryData$ignoreCase_=a};
|
||||
goog.Uri.QueryData.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)goog.structs.forEach(arguments[b],function(a,b){this.add(b,a)},this)};goog.events.EventTarget=function(){goog.Disposable.call(this)};goog.inherits(goog.events.EventTarget,goog.Disposable);goog.events.EventTarget.prototype.customEvent_=!0;goog.events.EventTarget.prototype.parentEventTarget_=null;goog.events.EventTarget.prototype.getParentEventTarget=function(){return this.parentEventTarget_};goog.events.EventTarget.prototype.setParentEventTarget=function(a){this.parentEventTarget_=a};
|
||||
goog.events.EventTarget.prototype.addEventListener=function(a,b,c,d){goog.events.listen(this,a,b,c,d)};goog.events.EventTarget.prototype.removeEventListener=function(a,b,c,d){goog.events.unlisten(this,a,b,c,d)};goog.events.EventTarget.prototype.dispatchEvent=function(a){return goog.events.dispatchEvent(this,a)};
|
||||
goog.events.EventTarget.prototype.goog_Disposable_prototype$disposeInternal=function(){goog.events.EventTarget.superClass_.goog_Disposable_prototype$disposeInternal.call(this);goog.events.removeAll(this);this.parentEventTarget_=null};goog.Timer=function(a,b){goog.events.EventTarget.call(this);this.goog_Timer$interval_=a||1;this.timerObject_=b||goog.Timer.defaultTimerObject;this.boundTick_=goog.bind(this.tick_,this);this.last_=goog.now()};goog.inherits(goog.Timer,goog.events.EventTarget);goog.Timer.MAX_TIMEOUT_=2147483647;goog.Timer.prototype.goog_Timer_prototype$enabled=!1;goog.Timer.defaultTimerObject=goog.global.window;goog.Timer.intervalScale=0.8;goog.Timer.prototype.timer_=null;goog.Timer.prototype.getInterval=function(){return this.goog_Timer$interval_};
|
||||
goog.Timer.prototype.goog_Timer_prototype$setInterval=function(a){this.goog_Timer$interval_=a;this.timer_&&this.goog_Timer_prototype$enabled?(this.goog_Timer_prototype$stop(),this.start()):this.timer_&&this.goog_Timer_prototype$stop()};
|
||||
goog.Timer.prototype.tick_=function(){if(this.goog_Timer_prototype$enabled){var a=goog.now()-this.last_;0<a&&a<this.goog_Timer$interval_*goog.Timer.intervalScale?this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.goog_Timer$interval_-a):(this.dispatchTick(),this.goog_Timer_prototype$enabled&&(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.goog_Timer$interval_),this.last_=goog.now()))}};goog.Timer.prototype.dispatchTick=function(){this.dispatchEvent(goog.Timer.TICK)};
|
||||
goog.Timer.prototype.start=function(){this.goog_Timer_prototype$enabled=!0;this.timer_||(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.goog_Timer$interval_),this.last_=goog.now())};goog.Timer.prototype.goog_Timer_prototype$stop=function(){this.goog_Timer_prototype$enabled=!1;this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null)};
|
||||
goog.Timer.prototype.goog_Disposable_prototype$disposeInternal=function(){goog.Timer.superClass_.goog_Disposable_prototype$disposeInternal.call(this);this.goog_Timer_prototype$stop();delete this.timerObject_};goog.Timer.TICK="tick";
|
||||
goog.Timer.function__new_goog_Timer__number____Object_null_____undefined$callOnce=function(a,b,c){if(goog.isFunction(a))c&&(a=goog.bind(a,c));else if(a&&"function"==typeof a.handleEvent)a=goog.bind(a.handleEvent,a);else throw Error("Invalid listener argument");return b>goog.Timer.MAX_TIMEOUT_?-1:goog.Timer.defaultTimerObject.setTimeout(a,b||0)};goog.Timer.clear=function(a){goog.Timer.defaultTimerObject.clearTimeout(a)};goog.async={};goog.async.Delay=function(a,b,c){goog.Disposable.call(this);this.goog_async_Delay$listener_=a;this.goog_async_Delay$interval_=b||0;this.goog_async_Delay$handler_=c;this.goog_async_Delay$callback_=goog.bind(this.goog_async_Delay_prototype$doAction_,this)};goog.inherits(goog.async.Delay,goog.Disposable);goog.Delay=goog.async.Delay;goog.async.Delay.prototype.id_=0;
|
||||
goog.async.Delay.prototype.goog_Disposable_prototype$disposeInternal=function(){goog.async.Delay.superClass_.goog_Disposable_prototype$disposeInternal.call(this);this.goog_async_Delay_prototype$stop();delete this.goog_async_Delay$listener_;delete this.goog_async_Delay$handler_};
|
||||
goog.async.Delay.prototype.start=function(a){this.goog_async_Delay_prototype$stop();this.id_=goog.Timer.function__new_goog_Timer__number____Object_null_____undefined$callOnce(this.goog_async_Delay$callback_,goog.isDef(a)?a:this.goog_async_Delay$interval_)};goog.async.Delay.prototype.goog_async_Delay_prototype$stop=function(){this.goog_async_Delay_prototype$isActive()&&goog.Timer.clear(this.id_);this.id_=0};
|
||||
goog.async.Delay.prototype.goog_async_Delay_prototype$fire=function(){this.goog_async_Delay_prototype$stop();this.goog_async_Delay_prototype$doAction_()};goog.async.Delay.prototype.goog_async_Delay_prototype$fireIfActive=function(){this.goog_async_Delay_prototype$isActive()&&this.goog_async_Delay_prototype$fire()};goog.async.Delay.prototype.goog_async_Delay_prototype$isActive=function(){return 0!=this.id_};
|
||||
goog.async.Delay.prototype.goog_async_Delay_prototype$doAction_=function(){this.id_=0;this.goog_async_Delay$listener_&&this.goog_async_Delay$listener_.call(this.goog_async_Delay$handler_)};goog.functions={};goog.functions.constant=function(a){return function(){return a}};goog.functions.FALSE=goog.functions.constant(!1);goog.functions.TRUE=goog.functions.constant(!0);goog.functions.NULL=goog.functions.constant(null);goog.functions.identity=function(a){return a};goog.functions.error=function(a){return function(){throw Error(a);}};goog.functions.lock=function(a,b){b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
|
||||
goog.functions.withReturnValue=function(a,b){return goog.functions.sequence(a,goog.functions.constant(b))};goog.functions.compose=function(a){var b=arguments,c=b.length;return function(){var a;c&&(a=b[c-1].apply(this,arguments));for(var e=c-2;0<=e;e--)a=b[e].call(this,a);return a}};goog.functions.sequence=function(a){var b=arguments,c=b.length;return function(){for(var a,e=0;e<c;e++)a=b[e].apply(this,arguments);return a}};
|
||||
goog.functions.and=function(a){var b=arguments,c=b.length;return function(){for(var a=0;a<c;a++)if(!b[a].apply(this,arguments))return!1;return!0}};goog.functions.or=function(a){var b=arguments,c=b.length;return function(){for(var a=0;a<c;a++)if(b[a].apply(this,arguments))return!0;return!1}};goog.functions.not=function(a){return function(){return!a.apply(this,arguments)}};
|
||||
goog.functions.create=function(a,b){var c=function(){};c.prototype=a.prototype;c=new c;a.apply(c,Array.prototype.slice.call(arguments,1));return c};goog.async.AnimationDelay=function(a,b,c){goog.Disposable.call(this);this.goog_async_AnimationDelay$listener_=a;this.goog_async_AnimationDelay$handler_=c;this.win_=b||window;this.goog_async_AnimationDelay$callback_=goog.bind(this.goog_async_AnimationDelay_prototype$doAction_,this)};goog.inherits(goog.async.AnimationDelay,goog.Disposable);goog.async.AnimationDelay.prototype.id_=null;goog.async.AnimationDelay.prototype.usingListeners_=!1;
|
||||
goog.async.AnimationDelay.function__new_goog_async_AnimationDelay__function__number_______Window_null_____Object_null_____undefined$TIMEOUT=20;goog.async.AnimationDelay.MOZ_BEFORE_PAINT_EVENT_="MozBeforePaint";
|
||||
goog.async.AnimationDelay.prototype.start=function(){this.goog_async_AnimationDelay_prototype$stop();this.usingListeners_=!1;var a=this.getRaf_(),b=this.getCancelRaf_();a&&!b&&this.win_.mozRequestAnimationFrame?(this.id_=goog.events.listen(this.win_,goog.async.AnimationDelay.MOZ_BEFORE_PAINT_EVENT_,this.goog_async_AnimationDelay$callback_),this.win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.id_=a&&b?a.call(this.win_,this.goog_async_AnimationDelay$callback_):this.win_.setTimeout(goog.functions.lock(this.goog_async_AnimationDelay$callback_),
|
||||
goog.async.AnimationDelay.function__new_goog_async_AnimationDelay__function__number_______Window_null_____Object_null_____undefined$TIMEOUT)};goog.async.AnimationDelay.prototype.goog_async_AnimationDelay_prototype$stop=function(){if(this.goog_async_AnimationDelay_prototype$isActive()){var a=this.getRaf_(),b=this.getCancelRaf_();a&&!b&&this.win_.mozRequestAnimationFrame?goog.events.unlistenByKey(this.id_):a&&b?b.call(this.win_,this.id_):this.win_.clearTimeout(this.id_)}this.id_=null};
|
||||
goog.async.AnimationDelay.prototype.goog_async_AnimationDelay_prototype$fire=function(){this.goog_async_AnimationDelay_prototype$stop();this.goog_async_AnimationDelay_prototype$doAction_()};goog.async.AnimationDelay.prototype.goog_async_AnimationDelay_prototype$fireIfActive=function(){this.goog_async_AnimationDelay_prototype$isActive()&&this.goog_async_AnimationDelay_prototype$fire()};goog.async.AnimationDelay.prototype.goog_async_AnimationDelay_prototype$isActive=function(){return null!=this.id_};
|
||||
goog.async.AnimationDelay.prototype.goog_async_AnimationDelay_prototype$doAction_=function(){this.usingListeners_&&this.id_&&goog.events.unlistenByKey(this.id_);this.id_=null;this.goog_async_AnimationDelay$listener_.call(this.goog_async_AnimationDelay$handler_,goog.now())};goog.async.AnimationDelay.prototype.goog_Disposable_prototype$disposeInternal=function(){this.goog_async_AnimationDelay_prototype$stop();goog.async.AnimationDelay.superClass_.goog_Disposable_prototype$disposeInternal.call(this)};
|
||||
goog.async.AnimationDelay.prototype.getRaf_=function(){var a=this.win_;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};goog.async.AnimationDelay.prototype.getCancelRaf_=function(){var a=this.win_;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};goog.dom.ViewportSizeMonitor=function(a){goog.events.EventTarget.call(this);this.window_=a||window;this.listenerKey_=goog.events.listen(this.window_,goog.events.EventType.RESIZE,this.handleResize_,!1,this);this.size_=goog.dom.getViewportSize(this.window_);this.isPollingRequired_()&&(this.windowSizePollInterval_=window.setInterval(goog.bind(this.checkForSizeChange_,this),goog.dom.ViewportSizeMonitor.WINDOW_SIZE_POLL_RATE))};goog.inherits(goog.dom.ViewportSizeMonitor,goog.events.EventTarget);
|
||||
goog.dom.ViewportSizeMonitor.getInstanceForWindow=function(a){var a=a||window,b=goog.getUid(a);return goog.dom.ViewportSizeMonitor.windowInstanceMap_[b]=goog.dom.ViewportSizeMonitor.windowInstanceMap_[b]||new goog.dom.ViewportSizeMonitor(a)};goog.dom.ViewportSizeMonitor.removeInstanceForWindow=function(a){a=goog.getUid(a||window);goog.dispose(goog.dom.ViewportSizeMonitor.windowInstanceMap_[a]);delete goog.dom.ViewportSizeMonitor.windowInstanceMap_[a]};
|
||||
goog.dom.ViewportSizeMonitor.windowInstanceMap_={};goog.dom.ViewportSizeMonitor.WINDOW_SIZE_POLL_RATE=500;goog.dom.ViewportSizeMonitor.prototype.listenerKey_=null;goog.dom.ViewportSizeMonitor.prototype.window_=null;goog.dom.ViewportSizeMonitor.prototype.size_=null;goog.dom.ViewportSizeMonitor.prototype.windowSizePollInterval_=null;goog.dom.ViewportSizeMonitor.prototype.isPollingRequired_=function(){return goog.userAgent.WEBKIT&&goog.userAgent.WINDOWS||goog.userAgent.OPERA&&this.window_.self!=this.window_.top};
|
||||
goog.dom.ViewportSizeMonitor.prototype.getSize=function(){return this.size_?this.size_.clone():null};
|
||||
goog.dom.ViewportSizeMonitor.prototype.goog_Disposable_prototype$disposeInternal=function(){goog.dom.ViewportSizeMonitor.superClass_.goog_Disposable_prototype$disposeInternal.call(this);this.listenerKey_&&(goog.events.unlistenByKey(this.listenerKey_),this.listenerKey_=null);this.windowSizePollInterval_&&(window.clearInterval(this.windowSizePollInterval_),this.windowSizePollInterval_=null);this.size_=this.window_=null};goog.dom.ViewportSizeMonitor.prototype.handleResize_=function(){this.checkForSizeChange_()};
|
||||
goog.dom.ViewportSizeMonitor.prototype.checkForSizeChange_=function(){var a=goog.dom.getViewportSize(this.window_);goog.math.Size.equals(a,this.size_)||(this.size_=a,this.dispatchEvent(goog.events.EventType.RESIZE))};goog.events.KeyCodes={WIN_KEY_FF_LINUX:0,MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,FF_SEMICOLON:59,FF_EQUALS:61,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,
|
||||
X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SCROLL_LOCK:145,FIRST_MEDIA_KEY:166,LAST_MEDIA_KEY:183,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,TILDE:192,
|
||||
SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,PHANTOM:255};
|
||||
goog.events.KeyCodes.isTextModifyingKeyEvent=function(a){if(a.goog_events_BrowserEvent_prototype$altKey&&!a.goog_events_BrowserEvent_prototype$ctrlKey||a.goog_events_BrowserEvent_prototype$metaKey||a.goog_events_BrowserEvent_prototype$keyCode>=goog.events.KeyCodes.F1&&a.goog_events_BrowserEvent_prototype$keyCode<=goog.events.KeyCodes.F12)return!1;switch(a.goog_events_BrowserEvent_prototype$keyCode){case goog.events.KeyCodes.ALT:case goog.events.KeyCodes.CAPS_LOCK:case goog.events.KeyCodes.CONTEXT_MENU:case goog.events.KeyCodes.CTRL:case goog.events.KeyCodes.DOWN:case goog.events.KeyCodes.END:case goog.events.KeyCodes.ESC:case goog.events.KeyCodes.HOME:case goog.events.KeyCodes.INSERT:case goog.events.KeyCodes.LEFT:case goog.events.KeyCodes.MAC_FF_META:case goog.events.KeyCodes.META:case goog.events.KeyCodes.NUMLOCK:case goog.events.KeyCodes.NUM_CENTER:case goog.events.KeyCodes.PAGE_DOWN:case goog.events.KeyCodes.PAGE_UP:case goog.events.KeyCodes.PAUSE:case goog.events.KeyCodes.PHANTOM:case goog.events.KeyCodes.PRINT_SCREEN:case goog.events.KeyCodes.RIGHT:case goog.events.KeyCodes.SCROLL_LOCK:case goog.events.KeyCodes.SHIFT:case goog.events.KeyCodes.UP:case goog.events.KeyCodes.WIN_KEY:case goog.events.KeyCodes.WIN_KEY_RIGHT:return!1;case goog.events.KeyCodes.WIN_KEY_FF_LINUX:return!goog.userAgent.GECKO;
|
||||
default:return a.goog_events_BrowserEvent_prototype$keyCode<goog.events.KeyCodes.FIRST_MEDIA_KEY||a.goog_events_BrowserEvent_prototype$keyCode>goog.events.KeyCodes.LAST_MEDIA_KEY}};
|
||||
goog.events.KeyCodes.firesKeyPressEvent=function(a,b,c,d,e){if(!goog.userAgent.IE&&(!goog.userAgent.WEBKIT||!goog.userAgent.isVersion("525")))return!0;if(goog.userAgent.MAC&&e)return goog.events.KeyCodes.isCharacterKey(a);if(e&&!d||!c&&(b==goog.events.KeyCodes.CTRL||b==goog.events.KeyCodes.ALT)||goog.userAgent.IE&&d&&b==a)return!1;switch(a){case goog.events.KeyCodes.ENTER:return!(goog.userAgent.IE&&goog.userAgent.isDocumentMode(9));case goog.events.KeyCodes.ESC:return!goog.userAgent.WEBKIT}return goog.events.KeyCodes.isCharacterKey(a)};
|
||||
goog.events.KeyCodes.isCharacterKey=function(a){if(a>=goog.events.KeyCodes.ZERO&&a<=goog.events.KeyCodes.NINE||a>=goog.events.KeyCodes.NUM_ZERO&&a<=goog.events.KeyCodes.NUM_MULTIPLY||a>=goog.events.KeyCodes.A&&a<=goog.events.KeyCodes.Z||goog.userAgent.WEBKIT&&0==a)return!0;switch(a){case goog.events.KeyCodes.SPACE:case goog.events.KeyCodes.QUESTION_MARK:case goog.events.KeyCodes.NUM_PLUS:case goog.events.KeyCodes.NUM_MINUS:case goog.events.KeyCodes.NUM_PERIOD:case goog.events.KeyCodes.NUM_DIVISION:case goog.events.KeyCodes.SEMICOLON:case goog.events.KeyCodes.FF_SEMICOLON:case goog.events.KeyCodes.DASH:case goog.events.KeyCodes.EQUALS:case goog.events.KeyCodes.FF_EQUALS:case goog.events.KeyCodes.COMMA:case goog.events.KeyCodes.PERIOD:case goog.events.KeyCodes.SLASH:case goog.events.KeyCodes.APOSTROPHE:case goog.events.KeyCodes.SINGLE_QUOTE:case goog.events.KeyCodes.OPEN_SQUARE_BRACKET:case goog.events.KeyCodes.BACKSLASH:case goog.events.KeyCodes.CLOSE_SQUARE_BRACKET:return!0;
|
||||
default:return!1}};goog.events.KeyCodes.normalizeGeckoKeyCode=function(a){switch(a){case goog.events.KeyCodes.FF_EQUALS:return goog.events.KeyCodes.EQUALS;case goog.events.KeyCodes.FF_SEMICOLON:return goog.events.KeyCodes.SEMICOLON;case goog.events.KeyCodes.MAC_FF_META:return goog.events.KeyCodes.META;case goog.events.KeyCodes.WIN_KEY_FF_LINUX:return goog.events.KeyCodes.WIN_KEY;default:return a}};goog.events.KeyHandler=function(a,b){goog.events.EventTarget.call(this);a&&this.attach(a,b)};goog.inherits(goog.events.KeyHandler,goog.events.EventTarget);goog.events.KeyHandler.prototype.goog_events_KeyHandler_prototype$element_=null;goog.events.KeyHandler.prototype.keyPressKey_=null;goog.events.KeyHandler.prototype.keyDownKey_=null;goog.events.KeyHandler.prototype.keyUpKey_=null;goog.events.KeyHandler.prototype.lastKey_=-1;goog.events.KeyHandler.prototype.keyCode_=-1;
|
||||
goog.events.KeyHandler.prototype.altKey_=!1;goog.events.KeyHandler.EventType={KEY:"key"};
|
||||
goog.events.KeyHandler.safariKey_={3:goog.events.KeyCodes.ENTER,12:goog.events.KeyCodes.NUMLOCK,63232:goog.events.KeyCodes.UP,63233:goog.events.KeyCodes.DOWN,63234:goog.events.KeyCodes.LEFT,63235:goog.events.KeyCodes.RIGHT,63236:goog.events.KeyCodes.F1,63237:goog.events.KeyCodes.F2,63238:goog.events.KeyCodes.F3,63239:goog.events.KeyCodes.F4,63240:goog.events.KeyCodes.F5,63241:goog.events.KeyCodes.F6,63242:goog.events.KeyCodes.F7,63243:goog.events.KeyCodes.F8,63244:goog.events.KeyCodes.F9,63245:goog.events.KeyCodes.F10,
|
||||
63246:goog.events.KeyCodes.F11,63247:goog.events.KeyCodes.F12,63248:goog.events.KeyCodes.PRINT_SCREEN,63272:goog.events.KeyCodes.DELETE,63273:goog.events.KeyCodes.HOME,63275:goog.events.KeyCodes.END,63276:goog.events.KeyCodes.PAGE_UP,63277:goog.events.KeyCodes.PAGE_DOWN,63289:goog.events.KeyCodes.NUMLOCK,63302:goog.events.KeyCodes.INSERT};
|
||||
goog.events.KeyHandler.keyIdentifier_={Up:goog.events.KeyCodes.UP,Down:goog.events.KeyCodes.DOWN,Left:goog.events.KeyCodes.LEFT,Right:goog.events.KeyCodes.RIGHT,Enter:goog.events.KeyCodes.ENTER,F1:goog.events.KeyCodes.F1,F2:goog.events.KeyCodes.F2,F3:goog.events.KeyCodes.F3,F4:goog.events.KeyCodes.F4,F5:goog.events.KeyCodes.F5,F6:goog.events.KeyCodes.F6,F7:goog.events.KeyCodes.F7,F8:goog.events.KeyCodes.F8,F9:goog.events.KeyCodes.F9,F10:goog.events.KeyCodes.F10,F11:goog.events.KeyCodes.F11,F12:goog.events.KeyCodes.F12,
|
||||
"U+007F":goog.events.KeyCodes.DELETE,Home:goog.events.KeyCodes.HOME,End:goog.events.KeyCodes.END,PageUp:goog.events.KeyCodes.PAGE_UP,PageDown:goog.events.KeyCodes.PAGE_DOWN,Insert:goog.events.KeyCodes.INSERT};goog.events.KeyHandler.USES_KEYDOWN_=goog.userAgent.IE||goog.userAgent.WEBKIT&&goog.userAgent.isVersion("525");goog.events.KeyHandler.SAVE_ALT_FOR_KEYPRESS_=goog.userAgent.MAC&&goog.userAgent.GECKO;
|
||||
goog.events.KeyHandler.prototype.handleKeyDown_=function(a){if(goog.userAgent.WEBKIT&&(this.lastKey_==goog.events.KeyCodes.CTRL&&!a.goog_events_BrowserEvent_prototype$ctrlKey||this.lastKey_==goog.events.KeyCodes.ALT&&!a.goog_events_BrowserEvent_prototype$altKey))this.keyCode_=this.lastKey_=-1;goog.events.KeyHandler.USES_KEYDOWN_&&!goog.events.KeyCodes.firesKeyPressEvent(a.goog_events_BrowserEvent_prototype$keyCode,this.lastKey_,a.goog_events_BrowserEvent_prototype$shiftKey,a.goog_events_BrowserEvent_prototype$ctrlKey,
|
||||
a.goog_events_BrowserEvent_prototype$altKey)?this.handleEvent(a):(this.keyCode_=goog.userAgent.GECKO?goog.events.KeyCodes.normalizeGeckoKeyCode(a.goog_events_BrowserEvent_prototype$keyCode):a.goog_events_BrowserEvent_prototype$keyCode,goog.events.KeyHandler.SAVE_ALT_FOR_KEYPRESS_&&(this.altKey_=a.goog_events_BrowserEvent_prototype$altKey))};goog.events.KeyHandler.prototype.handleKeyup_=function(a){this.keyCode_=this.lastKey_=-1;this.altKey_=a.goog_events_BrowserEvent_prototype$altKey};
|
||||
goog.events.KeyHandler.prototype.handleEvent=function(a){var b=a.getBrowserEvent(),c,d,e=b.altKey;goog.userAgent.IE&&a.type==goog.events.EventType.KEYPRESS?(c=this.keyCode_,d=c!=goog.events.KeyCodes.ENTER&&c!=goog.events.KeyCodes.ESC?b.keyCode:0):goog.userAgent.WEBKIT&&a.type==goog.events.EventType.KEYPRESS?(c=this.keyCode_,d=0<=b.charCode&&63232>b.charCode&&goog.events.KeyCodes.isCharacterKey(c)?b.charCode:0):goog.userAgent.OPERA?(c=this.keyCode_,d=goog.events.KeyCodes.isCharacterKey(c)?b.keyCode:
|
||||
0):(c=b.keyCode||this.keyCode_,d=b.charCode||0,goog.events.KeyHandler.SAVE_ALT_FOR_KEYPRESS_&&(e=this.altKey_),goog.userAgent.MAC&&(d==goog.events.KeyCodes.QUESTION_MARK&&c==goog.events.KeyCodes.WIN_KEY)&&(c=goog.events.KeyCodes.SLASH));var f=c,g=b.keyIdentifier;c?63232<=c&&c in goog.events.KeyHandler.safariKey_?f=goog.events.KeyHandler.safariKey_[c]:25==c&&a.goog_events_BrowserEvent_prototype$shiftKey&&(f=9):g&&g in goog.events.KeyHandler.keyIdentifier_&&(f=goog.events.KeyHandler.keyIdentifier_[g]);
|
||||
a=f==this.lastKey_;this.lastKey_=f;b=new goog.events.KeyEvent(f,d,a,b);b.goog_events_BrowserEvent_prototype$altKey=e;this.dispatchEvent(b)};goog.events.KeyHandler.prototype.getElement=function(){return this.goog_events_KeyHandler_prototype$element_};
|
||||
goog.events.KeyHandler.prototype.attach=function(a,b){this.keyUpKey_&&this.goog_events_KeyHandler_prototype$detach();this.goog_events_KeyHandler_prototype$element_=a;this.keyPressKey_=goog.events.listen(this.goog_events_KeyHandler_prototype$element_,goog.events.EventType.KEYPRESS,this,b);this.keyDownKey_=goog.events.listen(this.goog_events_KeyHandler_prototype$element_,goog.events.EventType.KEYDOWN,this.handleKeyDown_,b,this);this.keyUpKey_=goog.events.listen(this.goog_events_KeyHandler_prototype$element_,
|
||||
goog.events.EventType.KEYUP,this.handleKeyup_,b,this)};goog.events.KeyHandler.prototype.goog_events_KeyHandler_prototype$detach=function(){this.keyPressKey_&&(goog.events.unlistenByKey(this.keyPressKey_),goog.events.unlistenByKey(this.keyDownKey_),goog.events.unlistenByKey(this.keyUpKey_),this.keyUpKey_=this.keyDownKey_=this.keyPressKey_=null);this.goog_events_KeyHandler_prototype$element_=null;this.keyCode_=this.lastKey_=-1};
|
||||
goog.events.KeyHandler.prototype.goog_Disposable_prototype$disposeInternal=function(){goog.events.KeyHandler.superClass_.goog_Disposable_prototype$disposeInternal.call(this);this.goog_events_KeyHandler_prototype$detach()};goog.events.KeyEvent=function(a,b,c,d){goog.events.BrowserEvent.call(this,d);this.type=goog.events.KeyHandler.EventType.KEY;this.goog_events_BrowserEvent_prototype$keyCode=a;this.goog_events_BrowserEvent_prototype$charCode=b;this.repeat=c};goog.inherits(goog.events.KeyEvent,goog.events.BrowserEvent);goog.events.MouseWheelHandler=function(a){goog.events.EventTarget.call(this);this.goog_events_MouseWheelHandler$element_=a;a=goog.dom.isElement(this.goog_events_MouseWheelHandler$element_)?this.goog_events_MouseWheelHandler$element_:this.goog_events_MouseWheelHandler$element_?this.goog_events_MouseWheelHandler$element_.body:null;this.isRtl_=!!a&&goog.style.isRightToLeft(a);this.listenKey_=goog.events.listen(this.goog_events_MouseWheelHandler$element_,goog.userAgent.GECKO?"DOMMouseScroll":"mousewheel",
|
||||
this)};goog.inherits(goog.events.MouseWheelHandler,goog.events.EventTarget);goog.events.MouseWheelHandler.EventType={MOUSEWHEEL:"mousewheel"};goog.events.MouseWheelHandler.prototype.setMaxDeltaX=function(a){this.maxDeltaX_=a};goog.events.MouseWheelHandler.prototype.setMaxDeltaY=function(a){this.maxDeltaY_=a};
|
||||
goog.events.MouseWheelHandler.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.getBrowserEvent();if("mousewheel"==a.type){c=1;if(goog.userAgent.IE||goog.userAgent.WEBKIT&&(goog.userAgent.WINDOWS||goog.userAgent.isVersion("532.0")))c=40;d=goog.events.MouseWheelHandler.smartScale_(-a.wheelDelta,c);goog.isDef(a.wheelDeltaX)?(b=goog.events.MouseWheelHandler.smartScale_(-a.wheelDeltaX,c),c=goog.events.MouseWheelHandler.smartScale_(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),goog.isDef(a.axis)&&
|
||||
a.axis===a.HORIZONTAL_AXIS?b=d:c=d;goog.isNumber(this.maxDeltaX_)&&(b=goog.math.clamp(b,-this.maxDeltaX_,this.maxDeltaX_));goog.isNumber(this.maxDeltaY_)&&(c=goog.math.clamp(c,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(b=-b);b=new goog.events.MouseWheelEvent(d,a,b,c);this.dispatchEvent(b)};goog.events.MouseWheelHandler.smartScale_=function(a,b){return goog.userAgent.WEBKIT&&(goog.userAgent.MAC||goog.userAgent.LINUX)&&0!=a%b?a:a/b};
|
||||
goog.events.MouseWheelHandler.prototype.goog_Disposable_prototype$disposeInternal=function(){goog.events.MouseWheelHandler.superClass_.goog_Disposable_prototype$disposeInternal.call(this);goog.events.unlistenByKey(this.listenKey_);delete this.listenKey_};goog.events.MouseWheelEvent=function(a,b,c,d){goog.events.BrowserEvent.call(this,b);this.type=goog.events.MouseWheelHandler.EventType.MOUSEWHEEL;this.goog_events_MouseWheelEvent$detail=a;this.deltaX=c;this.deltaY=d};
|
||||
goog.inherits(goog.events.MouseWheelEvent,goog.events.BrowserEvent);ol.ASSUME_TOUCH=!1;ol.BrowserFeature={HAS_TOUCH:ol.ASSUME_TOUCH||document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled};ol.ObjectEventType={CHANGED:"changed"};ol.ObjectProperty={ACCESSORS:"ol_accessors_",BINDINGS:"ol_bindings_"};ol.Object=function(a){goog.events.EventTarget.call(this);this.values_={};goog.isDef(a)&&this.ol_Object_prototype$setValues(a)};goog.inherits(ol.Object,goog.events.EventTarget);ol.Object.changedEventTypeCache_={};ol.Object.getterNameCache_={};ol.Object.setterNameCache_={};ol.Object.capitalize=function(a){return a.substr(0,1).toUpperCase()+a.substr(1)};
|
||||
ol.Object.getAccessors=function(a){return a[ol.ObjectProperty.ACCESSORS]||(a[ol.ObjectProperty.ACCESSORS]={})};ol.Object.getChangedEventType=function(a){return ol.Object.changedEventTypeCache_.hasOwnProperty(a)?ol.Object.changedEventTypeCache_[a]:ol.Object.changedEventTypeCache_[a]=a.toLowerCase()+"_changed"};ol.Object.getGetterName=function(a){return ol.Object.getterNameCache_.hasOwnProperty(a)?ol.Object.getterNameCache_[a]:ol.Object.getterNameCache_[a]="get"+ol.Object.capitalize(a)};
|
||||
ol.Object.getListeners=function(a){return a[ol.ObjectProperty.BINDINGS]||(a[ol.ObjectProperty.BINDINGS]={})};ol.Object.getSetterName=function(a){return ol.Object.setterNameCache_.hasOwnProperty(a)?ol.Object.setterNameCache_[a]:ol.Object.setterNameCache_[a]="set"+ol.Object.capitalize(a)};
|
||||
ol.Object.prototype.bindTo=function(a,b,c,d){c=c||a;this.unbind(a);var e=ol.Object.getChangedEventType(c);ol.Object.getListeners(this)[a]=goog.events.listen(b,e,function(){this.notifyInternal_(a)},void 0,this);ol.Object.getAccessors(this)[a]={target:b,key:c};d||this.notifyInternal_(a)};ol.Object.prototype.changed=goog.nullFunction;
|
||||
ol.Object.prototype.get=function(a){var b,c=ol.Object.getAccessors(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=ol.Object.getGetterName(b),b=a[c]?a[c]():a.get(b)):this.values_.hasOwnProperty(a)&&(b=this.values_[a]);return b};ol.Object.prototype.getKeys=function(){var a=goog.object.getKeys(ol.Object.getAccessors(this)).concat(goog.object.getKeys(this.values_));goog.array.removeDuplicates(a);return a};
|
||||
ol.Object.prototype.notify=function(a){var b=ol.Object.getAccessors(this);b.hasOwnProperty(a)?(a=b[a],a.target.notify(a.key)):this.notifyInternal_(a)};ol.Object.prototype.notifyInternal_=function(a){a=ol.Object.getChangedEventType(a);this.dispatchEvent(a);this.dispatchEvent(ol.ObjectEventType.CHANGED)};
|
||||
ol.Object.prototype.set=function(a,b){var c=ol.Object.getAccessors(this);if(c.hasOwnProperty(a)){var d=c[a],c=d.target,d=d.key,e=ol.Object.getSetterName(d);if(c[e])c[e](b);else c.set(d,b)}else this.values_[a]=b,this.notifyInternal_(a)};ol.Object.prototype.setOptions=function(a){var b,c,d;for(b in a)if(c=a[b],d=ol.Object.getSetterName(b),this[d])this[d](c);else this.set(b,c)};ol.Object.prototype.ol_Object_prototype$setValues=ol.Object.prototype.setOptions;
|
||||
ol.Object.prototype.unbind=function(a){var b=ol.Object.getListeners(this),c=b[a];c&&(delete b[a],goog.events.unlistenByKey(c),b=this.get(a),delete ol.Object.getAccessors(this)[a],this.values_[a]=b)};ol.Object.prototype.unbindAll=function(){for(var a in ol.Object.getListeners(this))this.unbind(a)};ol.CollectionEventType={ADD:"add",INSERT_AT:"insert_at",REMOVE:"remove",REMOVE_AT:"remove_at",SET_AT:"set_at"};ol.CollectionEvent=function(a,b,c,d,e){goog.events.Event.call(this,a,e);this.elem=b;this.index=c;this.prev=d};goog.inherits(ol.CollectionEvent,goog.events.Event);ol.CollectionProperty={LENGTH:"length"};ol.Collection=function(a){ol.Object.call(this);this.array_=a||[];this.updateLength_()};goog.inherits(ol.Collection,ol.Object);ol.Collection.prototype.clear=function(){for(;0<this.getLength();)this.ol_Collection_prototype$pop()};
|
||||
ol.Collection.prototype.forEach=function(a,b){goog.array.forEach(this.array_,a,b)};ol.Collection.prototype.getArray=function(){return this.array_};ol.Collection.prototype.getAt=function(a){return this.array_[a]};ol.Collection.prototype.getLength=function(){return this.get(ol.CollectionProperty.LENGTH)};
|
||||
ol.Collection.prototype.insertAt=function(a,b){goog.array.insertAt(this.array_,b,a);this.updateLength_();this.dispatchEvent(new ol.CollectionEvent(ol.CollectionEventType.ADD,b,void 0,void 0,this));this.dispatchEvent(new ol.CollectionEvent(ol.CollectionEventType.INSERT_AT,b,a,void 0,this))};ol.Collection.prototype.ol_Collection_prototype$pop=function(){return this.removeAt(this.getLength()-1)};ol.Collection.prototype.push=function(a){var b=this.array_.length;this.insertAt(b,a);return b};
|
||||
ol.Collection.prototype.removeAt=function(a){var b=this.array_[a];goog.array.removeAt(this.array_,a);this.updateLength_();this.dispatchEvent(new ol.CollectionEvent(ol.CollectionEventType.REMOVE,b,void 0,void 0,this));this.dispatchEvent(new ol.CollectionEvent(ol.CollectionEventType.REMOVE_AT,void 0,a,b,this));return b};
|
||||
ol.Collection.prototype.setAt=function(a,b){var c=this.getLength();if(a<c)c=this.array_[a],this.array_[a]=b,this.dispatchEvent(new ol.CollectionEvent(ol.CollectionEventType.SET_AT,b,a,c,this)),this.dispatchEvent(new ol.CollectionEvent(ol.CollectionEventType.REMOVE,c,void 0,void 0,this)),this.dispatchEvent(new ol.CollectionEvent(ol.CollectionEventType.ADD,b,void 0,void 0,this));else{for(;c<a;++c)this.insertAt(c,void 0);this.insertAt(a,b)}};
|
||||
ol.Collection.prototype.updateLength_=function(){this.set(ol.CollectionProperty.LENGTH,this.array_.length)};goog.color={};
|
||||
goog.color.names={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:"#9370d8",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:"#d87093",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"};goog.color.parse=function(a){var b={},a=String(a),c=goog.color.prependHashIfNecessaryHelper(a);if(goog.color.isValidHexColor_(c))return b.hex=goog.color.normalizeHex(c),b.type="hex",b;c=goog.color.isValidRgbColor_(a);if(c.length)return b.hex=goog.color.rgbArrayToHex(c),b.type="rgb",b;if(goog.color.names&&(c=goog.color.names[a.toLowerCase()]))return b.hex=c,b.type="named",b;throw Error(a+" is not a valid color string");};
|
||||
goog.color.isValidColor=function(a){var b=goog.color.prependHashIfNecessaryHelper(a);return!(!goog.color.isValidHexColor_(b)&&!(goog.color.isValidRgbColor_(a).length||goog.color.names&&goog.color.names[a.toLowerCase()]))};goog.color.parseRgb=function(a){var b=goog.color.isValidRgbColor_(a);if(!b.length)throw Error(a+" is not a valid RGB color");return b};goog.color.hexToRgbStyle=function(a){return goog.color.rgbStyle_(goog.color.hexToRgb(a))};goog.color.hexTripletRe_=/#(.)(.)(.)/;
|
||||
goog.color.normalizeHex=function(a){if(!goog.color.isValidHexColor_(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(goog.color.hexTripletRe_,"#$1$1$2$2$3$3"));return a.toLowerCase()};goog.color.hexToRgb=function(a){var a=goog.color.normalizeHex(a),b=parseInt(a.substr(1,2),16),c=parseInt(a.substr(3,2),16),a=parseInt(a.substr(5,2),16);return[b,c,a]};
|
||||
goog.color.rgbToHex=function(a,b,c){a=Number(a);b=Number(b);c=Number(c);if(isNaN(a)||0>a||255<a||isNaN(b)||0>b||255<b||isNaN(c)||0>c||255<c)throw Error('"('+a+","+b+","+c+'") is not a valid RGB color');a=goog.color.prependZeroIfNecessaryHelper(a.toString(16));b=goog.color.prependZeroIfNecessaryHelper(b.toString(16));c=goog.color.prependZeroIfNecessaryHelper(c.toString(16));return"#"+a+b+c};goog.color.rgbArrayToHex=function(a){return goog.color.rgbToHex(a[0],a[1],a[2])};
|
||||
goog.color.rgbToHsl=function(a,b,c){var a=a/255,b=b/255,c=c/255,d=Math.max(a,b,c),e=Math.min(a,b,c),f=0,g=0,h=0.5*(d+e);d!=e&&(d==a?f=60*(b-c)/(d-e):d==b?f=60*(c-a)/(d-e)+120:d==c&&(f=60*(a-b)/(d-e)+240),g=0<h&&0.5>=h?(d-e)/(2*h):(d-e)/(2-2*h));return[Math.round(f+360)%360,g,h]};goog.color.rgbArrayToHsl=function(a){return goog.color.rgbToHsl(a[0],a[1],a[2])};goog.color.hueToRgb_=function(a,b,c){0>c?c+=1:1<c&&(c-=1);return 1>6*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a};
|
||||
goog.color.hslToRgb=function(a,b,c){var d=0,e=0,f=0,a=a/360;if(0==b)d=e=f=255*c;else var g=f=0,g=0.5>c?c*(1+b):c+b-b*c,f=2*c-g,d=255*goog.color.hueToRgb_(f,g,a+1/3),e=255*goog.color.hueToRgb_(f,g,a),f=255*goog.color.hueToRgb_(f,g,a-1/3);return[Math.round(d),Math.round(e),Math.round(f)]};goog.color.hslArrayToRgb=function(a){return goog.color.hslToRgb(a[0],a[1],a[2])};goog.color.validHexColorRe_=/^#(?:[0-9a-f]{3}){1,2}$/i;goog.color.isValidHexColor_=function(a){return goog.color.validHexColorRe_.test(a)};
|
||||
goog.color.normalizedHexColorRe_=/^#[0-9a-f]{6}$/;goog.color.isNormalizedHexColor_=function(a){return goog.color.normalizedHexColorRe_.test(a)};goog.color.rgbColorRe_=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;goog.color.isValidRgbColor_=function(a){var b=a.match(goog.color.rgbColorRe_);if(b){var a=Number(b[1]),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[]};
|
||||
goog.color.prependZeroIfNecessaryHelper=function(a){return 1==a.length?"0"+a:a};goog.color.prependHashIfNecessaryHelper=function(a){return"#"==a.charAt(0)?a:"#"+a};goog.color.rgbStyle_=function(a){return"rgb("+a.join(",")+")"};
|
||||
goog.color.hsvToRgb=function(a,b,c){var d=0,e=0,f=0;if(0==b)f=e=d=c;else{var g=Math.floor(a/60),h=a/60-g,a=c*(1-b),i=c*(1-b*h),b=c*(1-b*(1-h));switch(g){case 1:d=i;e=c;f=a;break;case 2:d=a;e=c;f=b;break;case 3:d=a;e=i;f=c;break;case 4:d=b;e=a;f=c;break;case 5:d=c;e=a;f=i;break;case 6:case 0:d=c,e=b,f=a}}return[Math.floor(d),Math.floor(e),Math.floor(f)]};
|
||||
goog.color.rgbToHsv=function(a,b,c){var d=Math.max(Math.max(a,b),c),e=Math.min(Math.min(a,b),c);if(e==d)e=a=0;else{var f=d-e,e=f/d,a=60*(a==d?(b-c)/f:b==d?2+(c-a)/f:4+(a-b)/f);0>a&&(a+=360);360<a&&(a-=360)}return[a,e,d]};goog.color.rgbArrayToHsv=function(a){return goog.color.rgbToHsv(a[0],a[1],a[2])};goog.color.hsvArrayToRgb=function(a){return goog.color.hsvToRgb(a[0],a[1],a[2])};goog.color.hexToHsl=function(a){a=goog.color.hexToRgb(a);return goog.color.rgbToHsl(a[0],a[1],a[2])};
|
||||
goog.color.hslToHex=function(a,b,c){return goog.color.rgbArrayToHex(goog.color.hslToRgb(a,b,c))};goog.color.hslArrayToHex=function(a){return goog.color.rgbArrayToHex(goog.color.hslToRgb(a[0],a[1],a[2]))};goog.color.hexToHsv=function(a){return goog.color.rgbArrayToHsv(goog.color.hexToRgb(a))};goog.color.hsvToHex=function(a,b,c){return goog.color.rgbArrayToHex(goog.color.hsvToRgb(a,b,c))};goog.color.hsvArrayToHex=function(a){return goog.color.hsvToHex(a[0],a[1],a[2])};
|
||||
goog.color.hslDistance=function(a,b){var c,d;c=0.5>=a[2]?a[1]*a[2]:a[1]*(1-a[2]);d=0.5>=b[2]?b[1]*b[2]:b[1]*(1-b[2]);return(a[2]-b[2])*(a[2]-b[2])+c*c+d*d-2*c*d*Math.cos(2*(a[0]/360-b[0]/360)*Math.PI)};goog.color.blend=function(a,b,c){c=goog.math.clamp(c,0,1);return[Math.round(c*a[0]+(1-c)*b[0]),Math.round(c*a[1]+(1-c)*b[1]),Math.round(c*a[2]+(1-c)*b[2])]};goog.color.darken=function(a,b){return goog.color.blend([0,0,0],a,b)};
|
||||
goog.color.lighten=function(a,b){return goog.color.blend([255,255,255],a,b)};goog.color.highContrast=function(a,b){for(var c=[],d=0;d<b.length;d++)c.push({color:b[d],diff:goog.color.yiqBrightnessDiff_(b[d],a)+goog.color.colorDiff_(b[d],a)});c.sort(function(a,b){return b.diff-a.diff});return c[0].color};goog.color.yiqBrightness_=function(a){return Math.round((299*a[0]+587*a[1]+114*a[2])/1E3)};goog.color.yiqBrightnessDiff_=function(a,b){return Math.abs(goog.color.yiqBrightness_(a)-goog.color.yiqBrightness_(b))};
|
||||
goog.color.colorDiff_=function(a,b){return Math.abs(a[0]-b[0])+Math.abs(a[1]-b[1])+Math.abs(a[2]-b[2])};ol.Color=function(a,b,c,d){this.r=goog.math.clamp(a,0,255);this.g=goog.math.clamp(b,0,255);this.ol_Color$b=goog.math.clamp(c,0,255);this.ol_Color$a=goog.math.clamp(d,0,1)};ol.Color.function__new_ol_Color__number__number__number__number___undefined$createFromString=function(a,b){var c=goog.color.hexToRgb(goog.color.parse(a).hex);return new ol.Color(c[0],c[1],c[2],b||255)};ol.Color.equals=function(a,b){return a.r==b.r&&a.g==b.g&&a.ol_Color$b==b.ol_Color$b&&a.ol_Color$a==b.ol_Color$a};ol.Size=function(a,b){goog.math.Size.call(this,a,b)};goog.inherits(ol.Size,goog.math.Size);ol.Size.prototype.equals=function(a){return this.width==a.width&&this.height==a.height};ol.Rectangle=function(a,b,c,d){goog.asserts.assert(a<=c);goog.asserts.assert(b<=d);this.minX=a;this.minY=b;this.maxX=c;this.maxY=d};ol.Rectangle.prototype.equals=function(a){return this.minX==a.minX&&this.minY==a.minY&&this.maxX==a.maxX&&this.maxY==a.maxY};ol.Rectangle.prototype.extend=function(a){this.minX=Math.min(this.minX,a.minX);this.minY=Math.min(this.minY,a.minY);this.maxX=Math.max(this.maxX,a.maxX);this.maxY=Math.max(this.maxY,a.maxY)};
|
||||
ol.Rectangle.prototype.ol_Rectangle_prototype$getCenter=function(){return new ol.Coordinate((this.minX+this.maxX)/2,(this.minY+this.maxY)/2)};ol.Rectangle.prototype.getHeight=function(){return this.maxY-this.minY};ol.Rectangle.prototype.getSize=function(){return new ol.Size(this.getWidth(),this.getHeight())};ol.Rectangle.prototype.getWidth=function(){return this.maxX-this.minX};
|
||||
ol.Rectangle.prototype.intersects=function(a){return this.minX<=a.maxX&&this.maxX>=a.minX&&this.minY<=a.maxY&&this.maxY>=a.minY};ol.Rectangle.prototype.normalize=function(a){return new ol.Coordinate((a.x-this.minX)/this.getWidth(),(a.y-this.minY)/this.getHeight())};ol.Rectangle.prototype.toString=function(){return"("+[this.minX,this.minY,this.maxX,this.maxY].join(", ")+")"};
|
||||
ol.Rectangle.prototype.scaleFromCenter=function(a){var b=this.getWidth()/2*(a-1),a=this.getHeight()/2*(a-1);this.minX-=b;this.minY-=a;this.maxX+=b;this.maxY+=a};ol.Extent=function(a,b,c,d){ol.Rectangle.call(this,a,b,c,d)};goog.inherits(ol.Extent,ol.Rectangle);ol.Extent.boundingExtent=function(a){var b=arguments[0],b=new ol.Extent(b.x,b.y,b.x,b.y),c;for(c=1;c<arguments.length;++c){var d=arguments[c];b.minX=Math.min(b.minX,d.x);b.minY=Math.min(b.minY,d.y);b.maxX=Math.max(b.maxX,d.x);b.maxY=Math.max(b.maxY,d.y)}return b};ol.Extent.prototype.containsCoordinate=function(a){return this.minX<=a.x&&a.x<=this.maxX&&this.minY<=a.y&&a.y<=this.maxY};
|
||||
ol.Extent.prototype.containsExtent=function(a){return this.minX<=a.minX&&a.maxX<=this.maxX&&this.minY<=a.minY&&a.maxY<=this.maxY};ol.Extent.prototype.getBottomLeft=function(){return new ol.Coordinate(this.minX,this.minY)};ol.Extent.prototype.getBottomRight=function(){return new ol.Coordinate(this.maxX,this.minY)};ol.Extent.prototype.getTopLeft=function(){return new ol.Coordinate(this.minX,this.maxY)};ol.Extent.prototype.getTopRight=function(){return new ol.Coordinate(this.maxX,this.maxY)};
|
||||
ol.Extent.prototype.transform=function(a){var b=a(new ol.Coordinate(this.minX,this.minY)),a=a(new ol.Coordinate(this.maxX,this.maxY));return new ol.Extent(Math.min(b.x,a.x),Math.min(b.y,a.y),Math.max(b.x,a.x),Math.max(b.y,a.y))};goog.vec={};goog.vec.Float32Array=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};goog.vec.Float32Array.function__new_goog_vec_Float32Array___Array_ArrayBuffer_goog_vec_Float32Array_null_number____undefined$BYTES_PER_ELEMENT=4;goog.vec.Float32Array.prototype.goog_vec_Float32Array_prototype$BYTES_PER_ELEMENT=4;goog.vec.Float32Array.prototype.set=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
|
||||
goog.vec.Float32Array.prototype.toString=Array.prototype.join;
|
||||
"undefined"==typeof Float32Array&&(goog.exportProperty(goog.vec.Float32Array,"BYTES_PER_ELEMENT",goog.vec.Float32Array.function__new_goog_vec_Float32Array___Array_ArrayBuffer_goog_vec_Float32Array_null_number____undefined$BYTES_PER_ELEMENT),goog.exportProperty(goog.vec.Float32Array.prototype,"BYTES_PER_ELEMENT",goog.vec.Float32Array.prototype.goog_vec_Float32Array_prototype$BYTES_PER_ELEMENT),goog.exportProperty(goog.vec.Float32Array.prototype,"set",goog.vec.Float32Array.prototype.set),goog.exportProperty(goog.vec.Float32Array.prototype,
|
||||
"toString",goog.vec.Float32Array.prototype.toString),goog.exportSymbol("Float32Array",goog.vec.Float32Array));goog.vec.Float64Array=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};goog.vec.Float64Array.function__new_goog_vec_Float64Array___Array_ArrayBuffer_goog_vec_Float64Array_null_number____undefined$BYTES_PER_ELEMENT=8;goog.vec.Float64Array.prototype.goog_vec_Float64Array_prototype$BYTES_PER_ELEMENT=8;goog.vec.Float64Array.prototype.set=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};goog.vec.Float64Array.prototype.toString=Array.prototype.join;
|
||||
"undefined"==typeof Float64Array&&(goog.exportProperty(goog.vec.Float64Array,"BYTES_PER_ELEMENT",goog.vec.Float64Array.function__new_goog_vec_Float64Array___Array_ArrayBuffer_goog_vec_Float64Array_null_number____undefined$BYTES_PER_ELEMENT),goog.exportProperty(goog.vec.Float64Array.prototype,"BYTES_PER_ELEMENT",goog.vec.Float64Array.prototype.goog_vec_Float64Array_prototype$BYTES_PER_ELEMENT),goog.exportProperty(goog.vec.Float64Array.prototype,"set",goog.vec.Float64Array.prototype.set),goog.exportProperty(goog.vec.Float64Array.prototype,
|
||||
"toString",goog.vec.Float64Array.prototype.toString),goog.exportSymbol("Float64Array",goog.vec.Float64Array));goog.vec.EPSILON=1E-6;goog.vec.Vec3={};goog.vec.Vec3.createFloat32=function(){return new Float32Array(3)};goog.vec.Vec3.createFloat64=function(){return new Float64Array(3)};goog.vec.Vec3.createNumber=function(){var a=Array(3);goog.vec.Vec3.setFromValues(a,0,0,0);return a};goog.vec.Vec3.create=function(){return new Float32Array(3)};goog.vec.Vec3.createFloat32FromArray=function(a){var b=goog.vec.Vec3.createFloat32();goog.vec.Vec3.setFromArray(b,a);return b};
|
||||
goog.vec.Vec3.createFloat32FromValues=function(a,b,c){var d=goog.vec.Vec3.createFloat32();goog.vec.Vec3.setFromValues(d,a,b,c);return d};goog.vec.Vec3.cloneFloat32=goog.vec.Vec3.createFloat32FromArray;goog.vec.Vec3.createFloat64FromArray=function(a){var b=goog.vec.Vec3.createFloat64();goog.vec.Vec3.setFromArray(b,a);return b};goog.vec.Vec3.createFloat64FromValues=function(a,b,c){var d=goog.vec.Vec3.createFloat64();goog.vec.Vec3.setFromValues(d,a,b,c);return d};goog.vec.Vec3.cloneFloat64=goog.vec.Vec3.createFloat64FromArray;
|
||||
goog.vec.Vec3.createFromArray=function(a){var b=goog.vec.Vec3.create();goog.vec.Vec3.setFromArray(b,a);return b};goog.vec.Vec3.createFromValues=function(a,b,c){var d=goog.vec.Vec3.create();goog.vec.Vec3.setFromValues(d,a,b,c);return d};goog.vec.Vec3.clone=function(a){var b=goog.vec.Vec3.create();goog.vec.Vec3.setFromArray(b,a);return b};goog.vec.Vec3.setFromValues=function(a,b,c,d){a[0]=b;a[1]=c;a[2]=d;return a};goog.vec.Vec3.setFromArray=function(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];return a};
|
||||
goog.vec.Vec3.add=function(a,b,c){c[0]=a[0]+b[0];c[1]=a[1]+b[1];c[2]=a[2]+b[2];return c};goog.vec.Vec3.subtract=function(a,b,c){c[0]=a[0]-b[0];c[1]=a[1]-b[1];c[2]=a[2]-b[2];return c};goog.vec.Vec3.negate=function(a,b){b[0]=-a[0];b[1]=-a[1];b[2]=-a[2];return b};goog.vec.Vec3.scale=function(a,b,c){c[0]=a[0]*b;c[1]=a[1]*b;c[2]=a[2]*b;return c};goog.vec.Vec3.magnitudeSquared=function(a){var b=a[0],c=a[1],a=a[2];return b*b+c*c+a*a};
|
||||
goog.vec.Vec3.magnitude=function(a){var b=a[0],c=a[1],a=a[2];return Math.sqrt(b*b+c*c+a*a)};goog.vec.Vec3.normalize=function(a,b){var c=1/goog.vec.Vec3.magnitude(a);b[0]=a[0]*c;b[1]=a[1]*c;b[2]=a[2]*c;return b};goog.vec.Vec3.dot=function(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]};goog.vec.Vec3.cross=function(a,b,c){var d=a[0],e=a[1],a=a[2],f=b[0],g=b[1],b=b[2];c[0]=e*b-a*g;c[1]=a*f-d*b;c[2]=d*g-e*f;return c};
|
||||
goog.vec.Vec3.distanceSquared=function(a,b){var c=a[0]-b[0],d=a[1]-b[1],e=a[2]-b[2];return c*c+d*d+e*e};goog.vec.Vec3.distance=function(a,b){return Math.sqrt(goog.vec.Vec3.distanceSquared(a,b))};goog.vec.Vec3.direction=function(a,b,c){var d=b[0]-a[0],e=b[1]-a[1],a=b[2]-a[2];(b=Math.sqrt(d*d+e*e+a*a))?(b=1/b,c[0]=d*b,c[1]=e*b,c[2]=a*b):c[0]=c[1]=c[2]=0;return c};goog.vec.Vec3.lerp=function(a,b,c,d){var e=a[0],f=a[1],a=a[2];d[0]=(b[0]-e)*c+e;d[1]=(b[1]-f)*c+f;d[2]=(b[2]-a)*c+a;return d};
|
||||
goog.vec.Vec3.equals=function(a,b){return a.length==b.length&&a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2]};goog.vec.Vec4={};goog.vec.Vec4.createFloat32=function(){return new Float32Array(4)};goog.vec.Vec4.createFloat64=function(){return new Float64Array(4)};goog.vec.Vec4.createNumber=function(){var a=Array(4);goog.vec.Vec4.setFromValues(a,0,0,0,0);return a};goog.vec.Vec4.create=function(){return new Float32Array(4)};goog.vec.Vec4.createFromArray=function(a){var b=goog.vec.Vec4.create();goog.vec.Vec4.setFromArray(b,a);return b};
|
||||
goog.vec.Vec4.createFloat32FromArray=function(a){var b=goog.vec.Vec4.createFloat32();goog.vec.Vec4.setFromArray(b,a);return b};goog.vec.Vec4.createFloat32FromValues=function(a,b,c,d){var e=goog.vec.Vec4.createFloat32();goog.vec.Vec4.setFromValues(e,a,b,c,d);return e};goog.vec.Vec4.cloneFloat32=goog.vec.Vec4.createFloat32FromArray;goog.vec.Vec4.createFloat64FromArray=function(a){var b=goog.vec.Vec4.createFloat64();goog.vec.Vec4.setFromArray(b,a);return b};
|
||||
goog.vec.Vec4.createFloat64FromValues=function(a,b,c,d){var e=goog.vec.Vec4.createFloat64();goog.vec.Vec4.setFromValues(e,a,b,c,d);return e};goog.vec.Vec4.cloneFloat64=goog.vec.Vec4.createFloat64FromArray;goog.vec.Vec4.createFromValues=function(a,b,c,d){var e=goog.vec.Vec4.create();goog.vec.Vec4.setFromValues(e,a,b,c,d);return e};goog.vec.Vec4.clone=goog.vec.Vec4.createFromArray;goog.vec.Vec4.setFromValues=function(a,b,c,d,e){a[0]=b;a[1]=c;a[2]=d;a[3]=e;return a};
|
||||
goog.vec.Vec4.setFromArray=function(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];return a};goog.vec.Vec4.add=function(a,b,c){c[0]=a[0]+b[0];c[1]=a[1]+b[1];c[2]=a[2]+b[2];c[3]=a[3]+b[3];return c};goog.vec.Vec4.subtract=function(a,b,c){c[0]=a[0]-b[0];c[1]=a[1]-b[1];c[2]=a[2]-b[2];c[3]=a[3]-b[3];return c};goog.vec.Vec4.negate=function(a,b){b[0]=-a[0];b[1]=-a[1];b[2]=-a[2];b[3]=-a[3];return b};goog.vec.Vec4.scale=function(a,b,c){c[0]=a[0]*b;c[1]=a[1]*b;c[2]=a[2]*b;c[3]=a[3]*b;return c};
|
||||
goog.vec.Vec4.magnitudeSquared=function(a){var b=a[0],c=a[1],d=a[2],a=a[3];return b*b+c*c+d*d+a*a};goog.vec.Vec4.magnitude=function(a){var b=a[0],c=a[1],d=a[2],a=a[3];return Math.sqrt(b*b+c*c+d*d+a*a)};goog.vec.Vec4.normalize=function(a,b){var c=1/goog.vec.Vec4.magnitude(a);b[0]=a[0]*c;b[1]=a[1]*c;b[2]=a[2]*c;b[3]=a[3]*c;return b};goog.vec.Vec4.dot=function(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]+a[3]*b[3]};
|
||||
goog.vec.Vec4.lerp=function(a,b,c,d){var e=a[0],f=a[1],g=a[2],a=a[3];d[0]=(b[0]-e)*c+e;d[1]=(b[1]-f)*c+f;d[2]=(b[2]-g)*c+g;d[3]=(b[3]-a)*c+a;return d};goog.vec.Vec4.equals=function(a,b){return a.length==b.length&&a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2]&&a[3]==b[3]};goog.vec.Mat4={};goog.vec.Mat4.createFloat32=function(){return new Float32Array(16)};goog.vec.Mat4.createFloat64=function(){return new Float64Array(16)};goog.vec.Mat4.createNumber=function(){var a=Array(16);goog.vec.Mat4.setFromValues(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a};goog.vec.Mat4.create=function(){return goog.vec.Mat4.createFloat32()};goog.vec.Mat4.createFloat32Identity=function(){var a=goog.vec.Mat4.createFloat32();a[0]=a[5]=a[10]=a[15]=1;return a};
|
||||
goog.vec.Mat4.createFloat64Identity=function(){var a=goog.vec.Mat4.createFloat64();a[0]=a[5]=a[10]=a[15]=1;return a};goog.vec.Mat4.createNumberIdentity=function(){var a=Array(16);goog.vec.Mat4.setFromValues(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a};goog.vec.Mat4.createIdentity=function(){return goog.vec.Mat4.createFloat32Identity()};goog.vec.Mat4.createFloat32FromArray=function(a){var b=goog.vec.Mat4.createFloat32();goog.vec.Mat4.setFromArray(b,a);return b};
|
||||
goog.vec.Mat4.createFloat32FromValues=function(a,b,c,d,e,f,g,h,i,k,j,l,m,p,n,q){var r=goog.vec.Mat4.createFloat32();goog.vec.Mat4.setFromValues(r,a,b,c,d,e,f,g,h,i,k,j,l,m,p,n,q);return r};goog.vec.Mat4.cloneFloat32=goog.vec.Mat4.createFloat32FromArray;goog.vec.Mat4.createFloat64FromArray=function(a){var b=goog.vec.Mat4.createFloat64();goog.vec.Mat4.setFromArray(b,a);return b};
|
||||
goog.vec.Mat4.createFloat64FromValues=function(a,b,c,d,e,f,g,h,i,k,j,l,m,p,n,q){var r=goog.vec.Mat4.createFloat64();goog.vec.Mat4.setFromValues(r,a,b,c,d,e,f,g,h,i,k,j,l,m,p,n,q);return r};goog.vec.Mat4.cloneFloat64=goog.vec.Mat4.createFloat64FromArray;goog.vec.Mat4.createFromArray=function(a){var b=goog.vec.Mat4.createFloat32();goog.vec.Mat4.setFromArray(b,a);return b};
|
||||
goog.vec.Mat4.createFromValues=function(a,b,c,d,e,f,g,h,i,k,j,l,m,p,n,q){return goog.vec.Mat4.createFloat32FromValues(a,b,c,d,e,f,g,h,i,k,j,l,m,p,n,q)};goog.vec.Mat4.clone=goog.vec.Mat4.createFromArray;goog.vec.Mat4.getElement=function(a,b,c){return a[b+4*c]};goog.vec.Mat4.setElement=function(a,b,c,d){a[b+4*c]=d;return a};
|
||||
goog.vec.Mat4.setFromValues=function(a,b,c,d,e,f,g,h,i,k,j,l,m,p,n,q,r){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=h;a[7]=i;a[8]=k;a[9]=j;a[10]=l;a[11]=m;a[12]=p;a[13]=n;a[14]=q;a[15]=r;return a};goog.vec.Mat4.setFromArray=function(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];a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15];return a};
|
||||
goog.vec.Mat4.setFromRowMajorArray=function(a,b){a[0]=b[0];a[1]=b[4];a[2]=b[8];a[3]=b[12];a[4]=b[1];a[5]=b[5];a[6]=b[9];a[7]=b[13];a[8]=b[2];a[9]=b[6];a[10]=b[10];a[11]=b[14];a[12]=b[3];a[13]=b[7];a[14]=b[11];a[15]=b[15];return a};goog.vec.Mat4.setDiagonalValues=function(a,b,c,d,e){a[0]=b;a[5]=c;a[10]=d;a[15]=e;return a};goog.vec.Mat4.setDiagonal=function(a,b){a[0]=b[0];a[5]=b[1];a[10]=b[2];a[15]=b[3];return a};
|
||||
goog.vec.Mat4.getDiagonal=function(a,b,c){if(c)for(var d=0<c?4*c:-c,e=0;e<4-Math.abs(c);e++)b[e]=a[d+5*e];else b[0]=a[0],b[1]=a[5],b[2]=a[10],b[3]=a[15];return b};goog.vec.Mat4.setColumnValues=function(a,b,c,d,e,f){b*=4;a[b]=c;a[b+1]=d;a[b+2]=e;a[b+3]=f;return a};goog.vec.Mat4.setColumn=function(a,b,c){b*=4;a[b]=c[0];a[b+1]=c[1];a[b+2]=c[2];a[b+3]=c[3];return a};goog.vec.Mat4.getColumn=function(a,b,c){b*=4;c[0]=a[b];c[1]=a[b+1];c[2]=a[b+2];c[3]=a[b+3];return c};
|
||||
goog.vec.Mat4.setColumns=function(a,b,c,d,e){goog.vec.Mat4.setColumn(a,0,b);goog.vec.Mat4.setColumn(a,1,c);goog.vec.Mat4.setColumn(a,2,d);goog.vec.Mat4.setColumn(a,3,e);return a};goog.vec.Mat4.getColumns=function(a,b,c,d,e){goog.vec.Mat4.getColumn(a,0,b);goog.vec.Mat4.getColumn(a,1,c);goog.vec.Mat4.getColumn(a,2,d);goog.vec.Mat4.getColumn(a,3,e)};goog.vec.Mat4.setRowValues=function(a,b,c,d,e,f){a[b]=c;a[b+4]=d;a[b+8]=e;a[b+12]=f;return a};
|
||||
goog.vec.Mat4.setRow=function(a,b,c){a[b]=c[0];a[b+4]=c[1];a[b+8]=c[2];a[b+12]=c[3];return a};goog.vec.Mat4.getRow=function(a,b,c){c[0]=a[b];c[1]=a[b+4];c[2]=a[b+8];c[3]=a[b+12];return c};goog.vec.Mat4.setRows=function(a,b,c,d,e){goog.vec.Mat4.setRow(a,0,b);goog.vec.Mat4.setRow(a,1,c);goog.vec.Mat4.setRow(a,2,d);goog.vec.Mat4.setRow(a,3,e);return a};
|
||||
goog.vec.Mat4.getRows=function(a,b,c,d,e){goog.vec.Mat4.getRow(a,0,b);goog.vec.Mat4.getRow(a,1,c);goog.vec.Mat4.getRow(a,2,d);goog.vec.Mat4.getRow(a,3,e)};goog.vec.Mat4.makeZero=function(a){a[0]=0;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=0;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=0;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=0;return a};goog.vec.Mat4.makeIdentity=function(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1;return a};
|
||||
goog.vec.Mat4.addMat=function(a,b,c){c[0]=a[0]+b[0];c[1]=a[1]+b[1];c[2]=a[2]+b[2];c[3]=a[3]+b[3];c[4]=a[4]+b[4];c[5]=a[5]+b[5];c[6]=a[6]+b[6];c[7]=a[7]+b[7];c[8]=a[8]+b[8];c[9]=a[9]+b[9];c[10]=a[10]+b[10];c[11]=a[11]+b[11];c[12]=a[12]+b[12];c[13]=a[13]+b[13];c[14]=a[14]+b[14];c[15]=a[15]+b[15];return c};
|
||||
goog.vec.Mat4.subMat=function(a,b,c){c[0]=a[0]-b[0];c[1]=a[1]-b[1];c[2]=a[2]-b[2];c[3]=a[3]-b[3];c[4]=a[4]-b[4];c[5]=a[5]-b[5];c[6]=a[6]-b[6];c[7]=a[7]-b[7];c[8]=a[8]-b[8];c[9]=a[9]-b[9];c[10]=a[10]-b[10];c[11]=a[11]-b[11];c[12]=a[12]-b[12];c[13]=a[13]-b[13];c[14]=a[14]-b[14];c[15]=a[15]-b[15];return c};
|
||||
goog.vec.Mat4.multScalar=function(a,b,c){c[0]=a[0]*b;c[1]=a[1]*b;c[2]=a[2]*b;c[3]=a[3]*b;c[4]=a[4]*b;c[5]=a[5]*b;c[6]=a[6]*b;c[7]=a[7]*b;c[8]=a[8]*b;c[9]=a[9]*b;c[10]=a[10]*b;c[11]=a[11]*b;c[12]=a[12]*b;c[13]=a[13]*b;c[14]=a[14]*b;c[15]=a[15]*b;return c};
|
||||
goog.vec.Mat4.multMat=function(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],h=a[4],i=a[5],k=a[6],j=a[7],l=a[8],m=a[9],p=a[10],n=a[11],q=a[12],r=a[13],t=a[14],a=a[15],v=b[0],s=b[1],y=b[2],x=b[3],z=b[4],w=b[5],A=b[6],B=b[7],C=b[8],D=b[9],E=b[10],F=b[11],u=b[12],G=b[13],H=b[14],b=b[15];c[0]=d*v+h*s+l*y+q*x;c[1]=e*v+i*s+m*y+r*x;c[2]=f*v+k*s+p*y+t*x;c[3]=g*v+j*s+n*y+a*x;c[4]=d*z+h*w+l*A+q*B;c[5]=e*z+i*w+m*A+r*B;c[6]=f*z+k*w+p*A+t*B;c[7]=g*z+j*w+n*A+a*B;c[8]=d*C+h*D+l*E+q*F;c[9]=e*C+i*D+m*E+r*F;c[10]=f*C+k*D+
|
||||
p*E+t*F;c[11]=g*C+j*D+n*E+a*F;c[12]=d*u+h*G+l*H+q*b;c[13]=e*u+i*G+m*H+r*b;c[14]=f*u+k*G+p*H+t*b;c[15]=g*u+j*G+n*H+a*b;return c};
|
||||
goog.vec.Mat4.transpose=function(a,b){if(b==a){var c=a[1],d=a[2],e=a[3],f=a[6],g=a[7],h=a[11];b[1]=a[4];b[2]=a[8];b[3]=a[12];b[4]=c;b[6]=a[9];b[7]=a[13];b[8]=d;b[9]=f;b[11]=a[14];b[12]=e;b[13]=g;b[14]=h}else b[0]=a[0],b[1]=a[4],b[2]=a[8],b[3]=a[12],b[4]=a[1],b[5]=a[5],b[6]=a[9],b[7]=a[13],b[8]=a[2],b[9]=a[6],b[10]=a[10],b[11]=a[14],b[12]=a[3],b[13]=a[7],b[14]=a[11],b[15]=a[15];return b};
|
||||
goog.vec.Mat4.determinant=function(a){var b=a[0],c=a[1],d=a[2],e=a[3],f=a[4],g=a[5],h=a[6],i=a[7],k=a[8],j=a[9],l=a[10],m=a[11],p=a[12],n=a[13],q=a[14],a=a[15];return(b*g-c*f)*(l*a-m*q)-(b*h-d*f)*(j*a-m*n)+(b*i-e*f)*(j*q-l*n)+(c*h-d*g)*(k*a-m*p)-(c*i-e*g)*(k*q-l*p)+(d*i-e*h)*(k*n-j*p)};
|
||||
goog.vec.Mat4.invert=function(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5],i=a[6],k=a[7],j=a[8],l=a[9],m=a[10],p=a[11],n=a[12],q=a[13],r=a[14],t=a[15],v=c*h-d*g,s=c*i-e*g,y=c*k-f*g,x=d*i-e*h,z=d*k-f*h,w=e*k-f*i,A=j*q-l*n,B=j*r-m*n,C=j*t-p*n,D=l*r-m*q,E=l*t-p*q,F=m*t-p*r,u=v*F-s*E+y*D+x*C-z*B+w*A;if(0==u)return!1;u=1/u;b[0]=(h*F-i*E+k*D)*u;b[1]=(-d*F+e*E-f*D)*u;b[2]=(q*w-r*z+t*x)*u;b[3]=(-l*w+m*z-p*x)*u;b[4]=(-g*F+i*C-k*B)*u;b[5]=(c*F-e*C+f*B)*u;b[6]=(-n*w+r*y-t*s)*u;b[7]=(j*w-m*y+p*s)*u;b[8]=
|
||||
(g*E-h*C+k*A)*u;b[9]=(-c*E+d*C-f*A)*u;b[10]=(n*z-q*y+t*v)*u;b[11]=(-j*z+l*y-p*v)*u;b[12]=(-g*D+h*B-i*A)*u;b[13]=(c*D-d*B+e*A)*u;b[14]=(-n*x+q*s-r*v)*u;b[15]=(j*x-l*s+m*v)*u;return!0};goog.vec.Mat4.equals=function(a,b){return a.length==b.length&&a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2]&&a[3]==b[3]&&a[4]==b[4]&&a[5]==b[5]&&a[6]==b[6]&&a[7]==b[7]&&a[8]==b[8]&&a[9]==b[9]&&a[10]==b[10]&&a[11]==b[11]&&a[12]==b[12]&&a[13]==b[13]&&a[14]==b[14]&&a[15]==b[15]};
|
||||
goog.vec.Mat4.multVec3=function(a,b,c){var d=b[0],e=b[1],b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8]+a[12];c[1]=d*a[1]+e*a[5]+b*a[9]+a[13];c[2]=d*a[2]+e*a[6]+b*a[10]+a[14];return c};goog.vec.Mat4.multVec3NoTranslate=function(a,b,c){var d=b[0],e=b[1],b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8];c[1]=d*a[1]+e*a[5]+b*a[9];c[2]=d*a[2]+e*a[6]+b*a[10];return c};
|
||||
goog.vec.Mat4.multVec3Projective=function(a,b,c){var d=b[0],e=b[1],b=b[2],f=1/(d*a[3]+e*a[7]+b*a[11]+a[15]);c[0]=(d*a[0]+e*a[4]+b*a[8]+a[12])*f;c[1]=(d*a[1]+e*a[5]+b*a[9]+a[13])*f;c[2]=(d*a[2]+e*a[6]+b*a[10]+a[14])*f;return c};goog.vec.Mat4.multVec4=function(a,b,c){var d=b[0],e=b[1],f=b[2],b=b[3];c[0]=d*a[0]+e*a[4]+f*a[8]+b*a[12];c[1]=d*a[1]+e*a[5]+f*a[9]+b*a[13];c[2]=d*a[2]+e*a[6]+f*a[10]+b*a[14];c[3]=d*a[3]+e*a[7]+f*a[11]+b*a[15];return c};
|
||||
goog.vec.Mat4.makeTranslate=function(a,b,c,d){goog.vec.Mat4.makeIdentity(a);return goog.vec.Mat4.setColumnValues(a,3,b,c,d,1)};goog.vec.Mat4.makeScale=function(a,b,c,d){goog.vec.Mat4.makeIdentity(a);return goog.vec.Mat4.setDiagonalValues(a,b,c,d,1)};goog.vec.Mat4.makeRotate=function(a,b,c,d,e){var f=Math.cos(b),g=1-f,b=Math.sin(b);return goog.vec.Mat4.setFromValues(a,c*c*g+f,c*d*g+e*b,c*e*g-d*b,0,c*d*g-e*b,d*d*g+f,d*e*g+c*b,0,c*e*g+d*b,d*e*g-c*b,e*e*g+f,0,0,0,0,1)};
|
||||
goog.vec.Mat4.makeRotateX=function(a,b){var c=Math.cos(b),d=Math.sin(b);return goog.vec.Mat4.setFromValues(a,1,0,0,0,0,c,d,0,0,-d,c,0,0,0,0,1)};goog.vec.Mat4.makeRotateY=function(a,b){var c=Math.cos(b),d=Math.sin(b);return goog.vec.Mat4.setFromValues(a,c,0,-d,0,0,1,0,0,d,0,c,0,0,0,0,1)};goog.vec.Mat4.makeRotateZ=function(a,b){var c=Math.cos(b),d=Math.sin(b);return goog.vec.Mat4.setFromValues(a,c,d,0,0,-d,c,0,0,0,0,1,0,0,0,0,1)};
|
||||
goog.vec.Mat4.makeFrustum=function(a,b,c,d,e,f,g){return goog.vec.Mat4.setFromValues(a,2*f/(c-b),0,0,0,0,2*f/(e-d),0,0,(c+b)/(c-b),(e+d)/(e-d),-(g+f)/(g-f),-1,0,0,-(2*g*f)/(g-f),0)};goog.vec.Mat4.makePerspective=function(a,b,c,d,e){var f=b/2,b=e-d,g=Math.sin(f);if(0==b||0==g||0==c)return a;f=Math.cos(f)/g;return goog.vec.Mat4.setFromValues(a,f/c,0,0,0,0,f,0,0,0,0,-(e+d)/b,-1,0,0,-(2*d*e)/b,0)};
|
||||
goog.vec.Mat4.makeOrtho=function(a,b,c,d,e,f,g){return goog.vec.Mat4.setFromValues(a,2/(c-b),0,0,0,0,2/(e-d),0,0,0,0,-2/(g-f),0,-(c+b)/(c-b),-(e+d)/(e-d),-(g+f)/(g-f),1)};
|
||||
goog.vec.Mat4.makeLookAt=function(a,b,c,d){var e=goog.vec.Mat4.tmpVec4_[0];goog.vec.Vec3.subtract(c,b,e);goog.vec.Vec3.normalize(e,e);e[3]=0;c=goog.vec.Mat4.tmpVec4_[1];goog.vec.Vec3.cross(e,d,c);goog.vec.Vec3.normalize(c,c);c[3]=0;d=goog.vec.Mat4.tmpVec4_[2];goog.vec.Vec3.cross(c,e,d);goog.vec.Vec3.normalize(d,d);d[3]=0;goog.vec.Vec3.negate(e,e);goog.vec.Mat4.setRow(a,0,c);goog.vec.Mat4.setRow(a,1,d);goog.vec.Mat4.setRow(a,2,e);goog.vec.Mat4.setRowValues(a,3,0,0,0,1);goog.vec.Mat4.translate(a,-b[0],
|
||||
-b[1],-b[2]);return a};goog.vec.Mat4.toLookAt=function(a,b,c,d){var e=goog.vec.Mat4.tmpMat4_[0];if(!goog.vec.Mat4.invert(a,e))return!1;b&&(b[0]=e[12],b[1]=e[13],b[2]=e[14]);if(c||d)c||(c=goog.vec.Mat4.tmpVec3_[0]),c[0]=-a[2],c[1]=-a[6],c[2]=-a[10],goog.vec.Vec3.normalize(c,c);d&&(b=goog.vec.Mat4.tmpVec3_[1],b[0]=a[0],b[1]=a[4],b[2]=a[8],goog.vec.Vec3.cross(b,c,d),goog.vec.Vec3.normalize(d,d));return!0};
|
||||
goog.vec.Mat4.makeEulerZXZ=function(a,b,c,d){var e=Math.cos(b),b=Math.sin(b),f=Math.cos(c),c=Math.sin(c),g=Math.cos(d),d=Math.sin(d);a[0]=e*g-f*b*d;a[1]=f*e*d+g*b;a[2]=d*c;a[3]=0;a[4]=-e*d-g*f*b;a[5]=e*f*g-b*d;a[6]=g*c;a[7]=0;a[8]=c*b;a[9]=-e*c;a[10]=f;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1;return a};
|
||||
goog.vec.Mat4.toEulerZXZ=function(a,b,c){var d=Math.sqrt(a[2]*a[2]+a[6]*a[6]),c=c?-1:1;d>goog.vec.EPSILON?(b[2]=Math.atan2(a[2]*c,a[6]*c),b[1]=Math.atan2(d*c,a[10]),b[0]=Math.atan2(a[8]*c,-a[9]*c)):(b[0]=0,b[1]=Math.atan2(d*c,a[10]),b[2]=Math.atan2(a[1],a[0]));b[0]=(b[0]+2*Math.PI)%(2*Math.PI);b[2]=(b[2]+2*Math.PI)%(2*Math.PI);b[1]=(b[1]*c+2*Math.PI)%(2*Math.PI)*c;return b};
|
||||
goog.vec.Mat4.translate=function(a,b,c,d){return goog.vec.Mat4.setColumnValues(a,3,a[0]*b+a[4]*c+a[8]*d+a[12],a[1]*b+a[5]*c+a[9]*d+a[13],a[2]*b+a[6]*c+a[10]*d+a[14],a[3]*b+a[7]*c+a[11]*d+a[15])};goog.vec.Mat4.scale=function(a,b,c,d){return goog.vec.Mat4.setFromValues(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,a[8]*d,a[9]*d,a[10]*d,a[11]*d,a[12],a[13],a[14],a[15])};
|
||||
goog.vec.Mat4.rotate=function(a,b,c,d,e){var f=a[0],g=a[1],h=a[2],i=a[3],k=a[4],j=a[5],l=a[6],m=a[7],p=a[8],n=a[9],q=a[10],r=a[11],t=a[12],v=a[13],s=a[14],y=a[15],x=Math.cos(b),z=Math.sin(b),w=1-x,b=c*c*w+x,A=c*d*w+e*z,B=c*e*w-d*z,C=c*d*w-e*z,D=d*d*w+x,E=d*e*w+c*z,F=c*e*w+d*z,c=d*e*w-c*z,e=e*e*w+x;return goog.vec.Mat4.setFromValues(a,f*b+k*A+p*B,g*b+j*A+n*B,h*b+l*A+q*B,i*b+m*A+r*B,f*C+k*D+p*E,g*C+j*D+n*E,h*C+l*D+q*E,i*C+m*D+r*E,f*F+k*c+p*e,g*F+j*c+n*e,h*F+l*c+q*e,i*F+m*c+r*e,t,v,s,y)};
|
||||
goog.vec.Mat4.rotateX=function(a,b){var c=a[4],d=a[5],e=a[6],f=a[7],g=a[8],h=a[9],i=a[10],k=a[11],j=Math.cos(b),l=Math.sin(b);a[4]=c*j+g*l;a[5]=d*j+h*l;a[6]=e*j+i*l;a[7]=f*j+k*l;a[8]=c*-l+g*j;a[9]=d*-l+h*j;a[10]=e*-l+i*j;a[11]=f*-l+k*j;return a};goog.vec.Mat4.rotateY=function(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[8],h=a[9],i=a[10],k=a[11],j=Math.cos(b),l=Math.sin(b);a[0]=c*j+g*-l;a[1]=d*j+h*-l;a[2]=e*j+i*-l;a[3]=f*j+k*-l;a[8]=c*l+g*j;a[9]=d*l+h*j;a[10]=e*l+i*j;a[11]=f*l+k*j;return a};
|
||||
goog.vec.Mat4.rotateZ=function(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5],i=a[6],k=a[7],j=Math.cos(b),l=Math.sin(b);a[0]=c*j+g*l;a[1]=d*j+h*l;a[2]=e*j+i*l;a[3]=f*j+k*l;a[4]=c*-l+g*j;a[5]=d*-l+h*j;a[6]=e*-l+i*j;a[7]=f*-l+k*j;return a};goog.vec.Mat4.getTranslation=function(a,b){b[0]=a[12];b[1]=a[13];b[2]=a[14];return b};goog.vec.Mat4.tmpVec3_=[goog.vec.Vec3.createFloat64(),goog.vec.Vec3.createFloat64()];goog.vec.Mat4.tmpVec4_=[goog.vec.Vec4.createFloat64(),goog.vec.Vec4.createFloat64(),goog.vec.Vec4.createFloat64()];
|
||||
goog.vec.Mat4.tmpMat4_=[goog.vec.Mat4.createFloat64()];ol.QuadKeyCharCode={ZERO:48,ONE:49,TWO:50,THREE:51};ol.TileCoord=function(a,b,c){ol.Coordinate.call(this,b,c);this.z=a};goog.inherits(ol.TileCoord,ol.Coordinate);ol.TileCoord.createFromQuadKey=function(a){var b=a.length,c=0,d=0,e=1<<b-1,f;for(f=0;f<b;++f){switch(a.charCodeAt(f)){case ol.QuadKeyCharCode.ONE:c+=e;break;case ol.QuadKeyCharCode.TWO:d+=e;break;case ol.QuadKeyCharCode.THREE:c+=e,d+=e}e>>=1}return new ol.TileCoord(b,c,d)};
|
||||
ol.TileCoord.function__new_ol_TileCoord__number__number__number___undefined$createFromString=function(a){a=a.split("/");a=goog.array.map(a,function(a){return parseInt(a,10)});return new ol.TileCoord(a[0],a[1],a[2])};ol.TileCoord.prototype.hash=function(){return(this.x<<this.z)+this.y};ol.TileCoord.prototype.quadKey=function(){var a=Array(this.z),b=1<<this.z-1,c,d;for(c=0;c<this.z;++c)d=ol.QuadKeyCharCode.ZERO,this.x&b&&(d+=1),this.y&b&&(d+=2),a[c]=String.fromCharCode(d),b>>=1;return a.join("")};
|
||||
ol.TileCoord.prototype.toString=function(){return[this.z,this.x,this.y].join("/")};ol.TileRange=function(a,b,c,d){this.minX=a;this.minY=b;this.maxX=c;this.maxY=d};goog.inherits(ol.TileRange,ol.Rectangle);ol.TileRange.boundingTileRange=function(a){var b=arguments[0],c=new ol.TileRange(b.x,b.y,b.x,b.y),d,e;for(d=1;d<arguments.length;++d)e=arguments[d],goog.asserts.assert(e.z==b.z),c.minX=Math.min(c.minX,e.x),c.minY=Math.min(c.minY,e.y),c.maxX=Math.max(c.maxX,e.x),c.maxY=Math.max(c.maxY,e.y);return c};
|
||||
ol.TileRange.prototype.contains=function(a){return this.minX<=a.x&&a.x<=this.maxX&&this.minY<=a.y&&a.y<=this.maxY};ol.TileRange.prototype.containsTileRange=function(a){return this.minX<=a.minX&&a.maxX<=this.maxX&&this.minY<=a.minY&&a.minY<=this.maxY};ol.TileRange.prototype.getHeight=function(){return this.maxY-this.minY+1};ol.TileRange.prototype.getWidth=function(){return this.maxX-this.minX+1};ol.Attribution=function(a,b){this.html_=a;this.tileRanges_=b||null};ol.Attribution.prototype.getHTML=function(){return this.html_};ol.Attribution.prototype.intersectsAnyTileRange=function(a){if(goog.isNull(this.tileRanges_))return!0;var b,c,d;for(d in a)if(d in this.tileRanges_){c=a[d];for(b=0;b<this.tileRanges_[d].length;++b)if(this.tileRanges_[d][b].intersects(c))return!0}return!1};ol.TileState={IDLE:0,LOADING:1,LOADED:2,ERROR:3};ol.Tile=function(a){goog.events.EventTarget.call(this);this.tileCoord=a;this.ol_Tile$state=ol.TileState.IDLE};goog.inherits(ol.Tile,goog.events.EventTarget);ol.Tile.prototype.ol_Tile_prototype$dispatchChangeEvent=function(){this.dispatchEvent(goog.events.EventType.CHANGE)};ol.Tile.prototype.ol_Tile_prototype$getKey=function(){return goog.getUid(this).toString()};ol.Tile.prototype.getState=function(){return this.ol_Tile$state};ol.TileQueue=function(a){this.tilePriorityFunction_=a;this.maxTilesLoading_=8;this.tilesLoading_=0;this.heap_=[];this.queuedTileKeys_={}};ol.TileQueue.function__new_ol_TileQueue__function___null_ol_Tile___string___null_ol_Coordinate____number___undefined$DROP=Infinity;ol.TileQueue.prototype.dequeue_=function(){var a=this.heap_;goog.asserts.assert(0<a.length);var b=a[0][1];1==a.length?a.length=0:(a[0]=a.pop(),this.siftUp_(0));a=b.ol_Tile_prototype$getKey();delete this.queuedTileKeys_[a];return b};
|
||||
ol.TileQueue.prototype.ol_TileQueue_prototype$enqueue=function(a,b,c){if(a.getState()==ol.TileState.IDLE){var d=a.ol_Tile_prototype$getKey();if(!(d in this.queuedTileKeys_)){var e=this.tilePriorityFunction_(a,b,c);e!=ol.TileQueue.function__new_ol_TileQueue__function___null_ol_Tile___string___null_ol_Coordinate____number___undefined$DROP&&(this.heap_.push([e,a,b,c]),this.queuedTileKeys_[d]=!0,this.siftDown_(0,this.heap_.length-1))}}};ol.TileQueue.prototype.ol_TileQueue_prototype$handleTileChange=function(){--this.tilesLoading_};
|
||||
ol.TileQueue.prototype.ol_TileQueue_prototype$getLeftChildIndex_=function(a){return 2*a+1};ol.TileQueue.prototype.ol_TileQueue_prototype$getRightChildIndex_=function(a){return 2*a+2};ol.TileQueue.prototype.ol_TileQueue_prototype$getParentIndex_=function(a){return a-1>>1};ol.TileQueue.prototype.heapify_=function(){for(var a=(this.heap_.length>>1)-1;0<=a;a--)this.siftUp_(a)};
|
||||
ol.TileQueue.prototype.loadMoreTiles=function(){for(var a;0<this.heap_.length&&this.tilesLoading_<this.maxTilesLoading_;)a=this.dequeue_(),goog.events.listenOnce(a,goog.events.EventType.CHANGE,this.ol_TileQueue_prototype$handleTileChange,!1,this),a.load(),++this.tilesLoading_};
|
||||
ol.TileQueue.prototype.siftUp_=function(a){for(var b=this.heap_,c=b.length,d=b[a],e=a;a<c>>1;){var f=this.ol_TileQueue_prototype$getLeftChildIndex_(a),g=this.ol_TileQueue_prototype$getRightChildIndex_(a),f=g<c&&b[g][0]<b[f][0]?g:f;b[a]=b[f];a=f}b[a]=d;this.siftDown_(e,a)};ol.TileQueue.prototype.siftDown_=function(a,b){for(var c=this.heap_,d=c[b];b>a;){var e=this.ol_TileQueue_prototype$getParentIndex_(b);if(c[e][0]>d[0])c[b]=c[e],b=e;else break}c[b]=d};
|
||||
ol.TileQueue.prototype.reprioritize=function(){var a=this.heap_,b,c=0,d,e,f,g;for(b=0;b<a.length;++b)d=a[b],f=d[1],g=d[2],e=d[3],e=this.tilePriorityFunction_(f,g,e),e==ol.TileQueue.function__new_ol_TileQueue__function___null_ol_Tile___string___null_ol_Coordinate____number___undefined$DROP?(d=f.ol_Tile_prototype$getKey(),delete this.queuedTileKeys_[d]):(d[0]=e,a[c++]=d);a.length=c;this.heapify_()};ol.projection={};ol.ENABLE_PROJ4JS=!0;ol.HAVE_PROJ4JS=ol.ENABLE_PROJ4JS&&"object"==typeof Proj4js;ol.ProjectionUnits={DEGREES:"degrees",METERS:"m"};ol.Projection=function(a,b,c,d){this.code_=a;this.units_=b;this.ol_Projection$extent_=c;this.axisOrientation_=goog.isDef(d)?d:"enu"};ol.Projection.prototype.getCode=function(){return this.code_};ol.Projection.prototype.getExtent=function(){return this.ol_Projection$extent_};ol.Projection.prototype.getUnits=function(){return this.units_};
|
||||
ol.Projection.prototype.getAxisOrientation=function(){return this.axisOrientation_};ol.Proj4jsProjection_=function(a,b){ol.Projection.call(this,a,b.units,null,b.axis);this.proj4jsProj_=b};goog.inherits(ol.Proj4jsProjection_,ol.Projection);ol.Proj4jsProjection_.prototype.getProj4jsProj=function(){return this.proj4jsProj_};ol.projection.proj4jsProjections_={};ol.projection.projections_={};ol.projection.transforms_={};
|
||||
ol.projection.addEquivalentProjections=function(a){ol.projection.addProjections(a);goog.array.forEach(a,function(b){goog.array.forEach(a,function(a){b!==a&&ol.projection.addTransform(b,a,ol.projection.cloneTransform)})})};ol.projection.addEquivalentTransforms=function(a,b,c,d){goog.array.forEach(a,function(a){goog.array.forEach(b,function(b){ol.projection.addTransform(a,b,c);ol.projection.addTransform(b,a,d)})})};
|
||||
ol.projection.addProj4jsProjection_=function(a){var b=ol.projection.proj4jsProjections_,c=a.getCode();goog.asserts.assert(!goog.object.containsKey(b,c));b[c]=a};ol.projection.addProjection=function(a){var b=ol.projection.projections_,c=a.getCode();goog.asserts.assert(!goog.object.containsKey(b,c));b[c]=a;ol.projection.addTransform(a,a,ol.projection.cloneTransform)};ol.projection.addProjections=function(a){goog.array.forEach(a,function(a){ol.projection.addProjection(a)})};
|
||||
ol.projection.clearAllProjections=function(){ol.ENABLE_PROJ4JS&&(ol.projection.proj4jsProjections_={});ol.projection.projections_={};ol.projection.transforms_={}};ol.projection.createProjection=function(a,b){if(goog.isDefAndNotNull(a)){if(goog.isString(a))return ol.projection.getFromCode(a);goog.asserts.assert(a instanceof ol.Projection);return a}return ol.projection.getFromCode(b)};
|
||||
ol.projection.addTransform=function(a,b,c){var a=a.getCode(),b=b.getCode(),d=ol.projection.transforms_;goog.object.containsKey(d,a)||(d[a]={});goog.asserts.assert(!goog.object.containsKey(d[a],b));d[a][b]=c};ol.projection.removeTransform=function(a,b){var c=a.getCode(),d=b.getCode(),e=ol.projection.transforms_;goog.asserts.assert(c in e);goog.asserts.assert(d in e[c]);var f=e[c][d];delete e[c][d];0==goog.object.getKeys(e[c]).length&&delete e[c];return f};
|
||||
ol.projection.getFromCode=function(a){var b=ol.projection.projections_[a];ol.HAVE_PROJ4JS&&!goog.isDef(b)&&(b=ol.projection.getProj4jsProjectionFromCode_(a));goog.isDef(b)||(goog.asserts.assert(goog.isDef(b)),b=null);return b};ol.projection.getProj4jsProjectionFromCode_=function(a){var b=ol.projection.proj4jsProjections_,c=b[a];goog.isDef(c)||(c=new Proj4js.Proj(a),c=new ol.Proj4jsProjection_(a,c),b[a]=c);return c};
|
||||
ol.projection.equivalent=function(a,b){return a===b?!0:a.getUnits()!=b.getUnits()?!1:ol.projection.getTransform(a,b)===ol.projection.cloneTransform};
|
||||
ol.projection.getTransform=function(a,b){var c=ol.projection.transforms_,d=a.getCode(),e=b.getCode(),f;goog.object.containsKey(c,d)&&goog.object.containsKey(c[d],e)&&(f=c[d][e]);if(ol.HAVE_PROJ4JS&&!goog.isDef(f)){var g=(a instanceof ol.Proj4jsProjection_?a:ol.projection.getProj4jsProjectionFromCode_(a.getCode())).getProj4jsProj(),h=(b instanceof ol.Proj4jsProjection_?b:ol.projection.getProj4jsProjectionFromCode_(b.getCode())).getProj4jsProj();f=function(a){a=new Proj4js.Point(a.x,a.y);a=Proj4js.transform(g,
|
||||
h,a);return new ol.Coordinate(a.x,a.y)};ol.projection.addTransform(a,b,f)}goog.isDef(f)||(goog.asserts.assert(goog.isDef(f)),f=ol.projection.identityTransform);return f};ol.projection.getTransformFromCodes=function(a,b){var c=ol.projection.getFromCode(a),d=ol.projection.getFromCode(b);return ol.projection.getTransform(c,d)};ol.projection.identityTransform=function(a){return a};ol.projection.cloneTransform=function(a){return new ol.Coordinate(a.x,a.y)};
|
||||
ol.projection.transform=function(a,b,c){return ol.projection.getTransform(b,c)(a)};ol.projection.transformWithCodes=function(a,b,c){return ol.projection.getTransformFromCodes(b,c)(a)};ol.IView2D=function(){};ol.IView2D.prototype.ol_IView2D_prototype$getCenter=function(){};ol.IView2D.prototype.ol_IView2D_prototype$getProjection=function(){};ol.IView2D.prototype.ol_IView2D_prototype$getResolution=function(){};ol.IView2D.prototype.getRotation=function(){};ol.IView2D.prototype.getView2DState=function(){};ol.source={};ol.source.Source=function(a){goog.events.EventTarget.call(this);this.ol_source_Source$projection_=goog.isDef(a.projection)?a.projection:null;this.ol_source_Source$extent_=goog.isDef(a.extent)?a.extent:a.projection.getExtent();this.ol_source_Source$attributions_=goog.isDef(a.attributions)?a.attributions:null};goog.inherits(ol.source.Source,goog.events.EventTarget);ol.source.Source.prototype.dispatchLoadEvent=function(){this.dispatchEvent(goog.events.EventType.LOAD)};
|
||||
ol.source.Source.prototype.getAttributions=function(){return this.ol_source_Source$attributions_};ol.source.Source.prototype.getExtent=function(){return this.ol_source_Source$extent_};ol.source.Source.prototype.ol_source_Source_prototype$getProjection=function(){return this.ol_source_Source$projection_};ol.source.Source.prototype.ol_source_Source_prototype$isReady=goog.functions.TRUE;ol.source.Source.prototype.setAttributions=function(a){this.ol_source_Source$attributions_=a};
|
||||
ol.source.Source.prototype.setExtent=function(a){this.ol_source_Source$extent_=a};ol.source.Source.prototype.ol_source_Source_prototype$setProjection=function(a){this.ol_source_Source$projection_=a};ol.layer={};ol.layer.LayerProperty={BRIGHTNESS:"brightness",CONTRAST:"contrast",HUE:"hue",OPACITY:"opacity",SATURATION:"saturation",VISIBLE:"visible"};
|
||||
ol.layer.Layer=function(a){ol.Object.call(this);this.ol_layer_Layer$source_=a.source;this.setBrightness(goog.isDef(a.brightness)?a.brightness:0);this.setContrast(goog.isDef(a.contrast)?a.contrast:1);this.setHue(goog.isDef(a.hue)?a.hue:0);this.setOpacity(goog.isDef(a.opacity)?a.opacity:1);this.setSaturation(goog.isDef(a.saturation)?a.saturation:1);this.setVisible(goog.isDef(a.visible)?a.visible:!0);this.ol_layer_Layer$source_.ol_source_Source_prototype$isReady()||goog.events.listenOnce(this.ol_layer_Layer$source_,
|
||||
goog.events.EventType.LOAD,this.handleSourceLoad_,!1,this)};goog.inherits(ol.layer.Layer,ol.Object);ol.layer.Layer.prototype.dispatchLoadEvent_=function(){this.dispatchEvent(goog.events.EventType.LOAD)};ol.layer.Layer.prototype.getBrightness=function(){return this.get(ol.layer.LayerProperty.BRIGHTNESS)};goog.exportProperty(ol.layer.Layer.prototype,"getBrightness",ol.layer.Layer.prototype.getBrightness);ol.layer.Layer.prototype.getContrast=function(){return this.get(ol.layer.LayerProperty.CONTRAST)};
|
||||
goog.exportProperty(ol.layer.Layer.prototype,"getContrast",ol.layer.Layer.prototype.getContrast);ol.layer.Layer.prototype.getHue=function(){return this.get(ol.layer.LayerProperty.HUE)};goog.exportProperty(ol.layer.Layer.prototype,"getHue",ol.layer.Layer.prototype.getHue);
|
||||
ol.layer.Layer.prototype.getLayerState=function(){var a=this.getBrightness(),b=this.getContrast(),c=this.getHue(),d=this.getOpacity(),e=this.ol_layer_Layer_prototype$isReady(),f=this.getSaturation(),g=this.getVisible();return{brightness:goog.isDef(a)?a:0,contrast:goog.isDef(b)?b:1,hue:goog.isDef(c)?c:0,opacity:goog.isDef(d)?d:1,ready:e,saturation:goog.isDef(f)?f:1,visible:goog.isDef(g)?g:!0}};ol.layer.Layer.prototype.getOpacity=function(){return this.get(ol.layer.LayerProperty.OPACITY)};
|
||||
goog.exportProperty(ol.layer.Layer.prototype,"getOpacity",ol.layer.Layer.prototype.getOpacity);ol.layer.Layer.prototype.getSaturation=function(){return this.get(ol.layer.LayerProperty.SATURATION)};goog.exportProperty(ol.layer.Layer.prototype,"getSaturation",ol.layer.Layer.prototype.getSaturation);ol.layer.Layer.prototype.getSource=function(){return this.ol_layer_Layer$source_};ol.layer.Layer.prototype.getVisible=function(){return this.get(ol.layer.LayerProperty.VISIBLE)};
|
||||
goog.exportProperty(ol.layer.Layer.prototype,"getVisible",ol.layer.Layer.prototype.getVisible);ol.layer.Layer.prototype.handleSourceLoad_=function(){this.dispatchLoadEvent_()};ol.layer.Layer.prototype.ol_layer_Layer_prototype$isReady=function(){return this.getSource().ol_source_Source_prototype$isReady()};ol.layer.Layer.prototype.setBrightness=function(a){a=goog.math.clamp(a,-1,1);a!=this.getBrightness()&&this.set(ol.layer.LayerProperty.BRIGHTNESS,a)};
|
||||
goog.exportProperty(ol.layer.Layer.prototype,"setBrightness",ol.layer.Layer.prototype.setBrightness);ol.layer.Layer.prototype.setContrast=function(a){a=Math.max(0,a);a!=this.getContrast()&&this.set(ol.layer.LayerProperty.CONTRAST,a)};goog.exportProperty(ol.layer.Layer.prototype,"setContrast",ol.layer.Layer.prototype.setContrast);ol.layer.Layer.prototype.setHue=function(a){a!=this.getHue()&&this.set(ol.layer.LayerProperty.HUE,a)};goog.exportProperty(ol.layer.Layer.prototype,"setHue",ol.layer.Layer.prototype.setHue);
|
||||
ol.layer.Layer.prototype.setOpacity=function(a){a=goog.math.clamp(a,0,1);a!=this.getOpacity()&&this.set(ol.layer.LayerProperty.OPACITY,a)};goog.exportProperty(ol.layer.Layer.prototype,"setOpacity",ol.layer.Layer.prototype.setOpacity);ol.layer.Layer.prototype.setSaturation=function(a){a=Math.max(0,a);a!=this.getSaturation()&&this.set(ol.layer.LayerProperty.SATURATION,a)};goog.exportProperty(ol.layer.Layer.prototype,"setSaturation",ol.layer.Layer.prototype.setSaturation);
|
||||
ol.layer.Layer.prototype.setVisible=function(a){a=!!a;a!=this.getVisible()&&this.set(ol.layer.LayerProperty.VISIBLE,a)};goog.exportProperty(ol.layer.Layer.prototype,"setVisible",ol.layer.Layer.prototype.setVisible);ol.IView3D=function(){};ol.IView=function(){};ol.IView.prototype.getView2D=function(){};ol.IView.prototype.getView3D=function(){};goog.fx={};goog.fx.easing={};goog.fx.easing.easeIn=function(a){return a*a*a};goog.fx.easing.easeOut=function(a){return 1-Math.pow(1-a,3)};goog.fx.easing.inAndOut=function(a){return 3*a*a-2*a*a*a};ol.ViewHint={ANIMATING:0,PANNING:1};ol.View=function(){ol.Object.call(this);this.hints_=[0,0]};goog.inherits(ol.View,ol.Object);ol.View.prototype.getHints=function(){return goog.array.clone(this.hints_)};ol.View.prototype.setHint=function(a,b){goog.asserts.assert(0<=a&&a<this.hints_.length);this.hints_[a]+=b;goog.asserts.assert(0<=this.hints_[a])};ol.easing={};ol.easing.linear=function(a){return a};ol.easing.upAndDown=function(a){return 0.5>a?goog.fx.easing.inAndOut(2*a):1-goog.fx.easing.inAndOut(2*(a-0.5))};ol.easing.elastic=function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1};ol.easing.bounce=function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a};ol.animation={};ol.animation.bounce=function(a){var b=a.resolution,c=goog.isDef(a.start)?a.start:goog.now(),d=goog.isDef(a.duration)?a.duration:1E3,e=goog.isDef(a.easing)?a.easing:ol.easing.upAndDown;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[ol.ViewHint.ANIMATING]+=1,!0;if(g.time<c+d){var h=e((g.time-c)/d),i=b-g.view2DState.resolution;g.animate=!0;g.view2DState.resolution+=h*i;g.viewHints[ol.ViewHint.ANIMATING]+=1;return!0}return!1}};
|
||||
ol.animation.pan=function(a){var b=a.source,c=goog.isDef(a.start)?a.start:goog.now(),d=b.x,e=b.y,f=goog.isDef(a.duration)?a.duration:1E3,g=goog.isDef(a.easing)?a.easing:goog.fx.easing.inAndOut;return function(a,b){if(b.time<c)return b.animate=!0,b.viewHints[ol.ViewHint.ANIMATING]+=1,!0;if(b.time<c+f){var k=1-g((b.time-c)/f),j=d-b.view2DState.center.x,l=e-b.view2DState.center.y;b.animate=!0;b.view2DState.center.x+=k*j;b.view2DState.center.y+=k*l;b.viewHints[ol.ViewHint.ANIMATING]+=1;return!0}return!1}};
|
||||
ol.animation.rotate=function(a){var b=a.rotation,c=goog.isDef(a.start)?a.start:goog.now(),d=goog.isDef(a.duration)?a.duration:1E3,e=goog.isDef(a.easing)?a.easing:goog.fx.easing.inAndOut;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[ol.ViewHint.ANIMATING]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),i=b-g.view2DState.rotation;g.animate=!0;g.view2DState.rotation+=h*i;g.viewHints[ol.ViewHint.ANIMATING]+=1;return!0}return!1}};
|
||||
ol.animation.zoom=function(a){var b=a.resolution,c=goog.isDef(a.start)?a.start:goog.now(),d=goog.isDef(a.duration)?a.duration:1E3,e=goog.isDef(a.easing)?a.easing:ol.easing.linear;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[ol.ViewHint.ANIMATING]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),i=b-g.view2DState.resolution;g.animate=!0;g.view2DState.resolution+=h*i;g.viewHints[ol.ViewHint.ANIMATING]+=1;return!0}return!1}};ol.Kinetic=function(a,b,c){this.decay_=a;this.minVelocity_=b;this.delay_=c;this.points_=[];this.initialVelocity_=this.angle_=0};ol.Kinetic.prototype.begin=function(){this.initialVelocity_=this.angle_=this.points_.length=0};ol.Kinetic.prototype.ol_Kinetic_prototype$update=function(a,b){this.points_.push({x:a,y:b,t:goog.now()})};
|
||||
ol.Kinetic.prototype.ol_Kinetic_prototype$end=function(){for(var a=goog.now(),b=this.points_.length-1,c=b-1;0<=c&&this.points_[c].t>a-this.delay_;)c--;if(0<=c){var a=this.points_[c],b=this.points_[b],c=b.x-a.x,d=b.y-a.y;this.angle_=Math.atan2(d,c);this.initialVelocity_=Math.sqrt(c*c+d*d)/(b.t-a.t);return this.initialVelocity_>this.minVelocity_}return!1};
|
||||
ol.Kinetic.prototype.pan=function(a){var b=this.decay_,c=this.initialVelocity_,d=this.minVelocity_,e=this.getDuration_();return ol.animation.pan({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};ol.Kinetic.prototype.getDuration_=function(){return Math.log(this.minVelocity_/this.initialVelocity_)/this.decay_};ol.Kinetic.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_};ol.Kinetic.prototype.getAngle=function(){return this.angle_};ol.MapEventType={POSTRENDER:"postrender"};ol.MapEvent=function(a,b,c){goog.events.Event.call(this,a);this.map=b;this.goog_events_Event_prototype$defaultPrevented=!1;this.frameState=goog.isDef(c)?c:null};goog.inherits(ol.MapEvent,goog.events.Event);ol.MapEvent.prototype.goog_events_Event_prototype$preventDefault=function(){ol.MapEvent.superClass_.goog_events_Event_prototype$preventDefault.call(this);this.goog_events_Event_prototype$defaultPrevented=!0};ol.Pixel=function(a,b){goog.math.Coordinate.call(this,a,b)};goog.inherits(ol.Pixel,goog.math.Coordinate);ol.MapBrowserEvent=function(a,b,c,d){ol.MapEvent.call(this,a,b,d);this.browserEvent=c;this.pixel_=this.coordinate_=null};goog.inherits(ol.MapBrowserEvent,ol.MapEvent);ol.MapBrowserEvent.IEEventType={MSPOINTERDOWN:"MSPointerDown",MSPOINTERMOVE:"MSPointerMove",MSPOINTERUP:"MSPointerUp"};ol.MapBrowserEvent.prototype.getCoordinate=function(){goog.isNull(this.coordinate_)&&(this.coordinate_=this.map.getCoordinateFromPixel(this.getPixel()));return this.coordinate_};
|
||||
ol.MapBrowserEvent.prototype.getPixel=function(){if(goog.isNull(this.pixel_)){var a=goog.style.getRelativePosition(this.browserEvent,this.map.getViewport());this.pixel_=new ol.Pixel(a.x,a.y)}return this.pixel_};ol.MapBrowserEvent.prototype.ol_MapBrowserEvent_prototype$isMouseActionButton=function(){return ol.BrowserFeature.HAS_TOUCH||this.browserEvent.goog_events_BrowserEvent_prototype$isMouseActionButton()};
|
||||
ol.MapBrowserEventHandler=function(a){this.ol_MapBrowserEventHandler$map_=a;this.previous_=null;this.dragged_=!1;this.down_=this.touchListenerKeys_=this.dragListenerKeys_=this.downListenerKey_=this.clickListenerKey_=this.timestamp_=null;a=this.ol_MapBrowserEventHandler$map_.getViewport();this.clickListenerKey_=goog.events.listen(a,[goog.events.EventType.CLICK,goog.events.EventType.DBLCLICK],this.click_,!1,this);this.downListenerKey_=goog.events.listen(a,goog.events.EventType.MOUSEDOWN,this.handleMouseDown_,
|
||||
!1,this);this.touchListenerKeys_=[goog.events.listen(a,[goog.events.EventType.TOUCHSTART,ol.MapBrowserEvent.IEEventType.MSPOINTERDOWN],this.handleTouchStart_,!1,this),goog.events.listen(a,[goog.events.EventType.TOUCHMOVE,ol.MapBrowserEvent.IEEventType.MSPOINTERMOVE],this.handleTouchMove_,!1,this),goog.events.listen(a,[goog.events.EventType.TOUCHEND,ol.MapBrowserEvent.IEEventType.MSPOINTERUP],this.handleTouchEnd_,!1,this)]};goog.inherits(ol.MapBrowserEventHandler,goog.events.EventTarget);
|
||||
ol.MapBrowserEventHandler.prototype.click_=function(a){if(!this.dragged_){var b=a.type;0==this.timestamp_||b==goog.events.EventType.DBLCLICK?(a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DBLCLICK,this.ol_MapBrowserEventHandler$map_,a),this.dispatchEvent(a)):b==goog.events.EventType.CLICK&&(a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.CLICK,this.ol_MapBrowserEventHandler$map_,a),this.dispatchEvent(a))}};
|
||||
ol.MapBrowserEventHandler.prototype.handleMouseUp_=function(a){this.previous_&&(this.down_=null,goog.array.forEach(this.dragListenerKeys_,goog.events.unlistenByKey),this.previous_=this.dragListenerKeys_=null,this.dragged_&&(a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DRAGEND,this.ol_MapBrowserEventHandler$map_,a),this.dispatchEvent(a)))};
|
||||
ol.MapBrowserEventHandler.prototype.handleMouseDown_=function(a){var b=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DOWN,this.ol_MapBrowserEventHandler$map_,a);this.dispatchEvent(b);this.previous_||(this.down_=a,this.previous_={clientX:a.clientX,clientY:a.clientY},this.dragged_=!1,this.dragListenerKeys_=[goog.events.listen(document,goog.events.EventType.MOUSEMOVE,this.handleMouseMove_,!1,this),goog.events.listen(document,goog.events.EventType.MOUSEUP,this.handleMouseUp_,!1,this)],a.goog_events_Event_prototype$preventDefault())};
|
||||
ol.MapBrowserEventHandler.prototype.handleMouseMove_=function(a){var b;this.dragged_||(this.dragged_=!0,b=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DRAGSTART,this.ol_MapBrowserEventHandler$map_,this.down_),this.dispatchEvent(b));this.previous_={clientX:a.clientX,clientY:a.clientY};b=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DRAG,this.ol_MapBrowserEventHandler$map_,a);this.dispatchEvent(b)};
|
||||
ol.MapBrowserEventHandler.prototype.handleTouchStart_=function(a){a.goog_events_Event_prototype$preventDefault();this.down_=a;this.dragged_=!1;a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.TOUCHSTART,this.ol_MapBrowserEventHandler$map_,a);this.dispatchEvent(a)};ol.MapBrowserEventHandler.prototype.handleTouchMove_=function(a){this.dragged_=!0;a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.TOUCHMOVE,this.ol_MapBrowserEventHandler$map_,a);this.dispatchEvent(a)};
|
||||
ol.MapBrowserEventHandler.prototype.handleTouchEnd_=function(a){a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.TOUCHEND,this.ol_MapBrowserEventHandler$map_,a);this.dispatchEvent(a);this.dragged_||(a=goog.now(),this.timestamp_=!this.timestamp_||250<a-this.timestamp_?a:0,this.click_(this.down_));this.down_=null};
|
||||
ol.MapBrowserEventHandler.prototype.goog_Disposable_prototype$disposeInternal=function(){goog.events.unlistenByKey(this.clickListenerKey_);goog.events.unlistenByKey(this.downListenerKey_);goog.isNull(this.dragListenerKeys_)||(goog.array.forEach(this.dragListenerKeys_,goog.events.unlistenByKey),this.dragListenerKeys_=null);goog.isNull(this.touchListenerKeys_)||(goog.array.forEach(this.touchListenerKeys_,goog.events.unlistenByKey),this.touchListenerKeys_=null);ol.MapBrowserEventHandler.superClass_.goog_Disposable_prototype$disposeInternal.call(this)};
|
||||
ol.MapBrowserEvent.EventType={CLICK:goog.events.EventType.CLICK,DBLCLICK:goog.events.EventType.DBLCLICK,DOWN:"down",DRAGSTART:"dragstart",DRAG:"drag",DRAGEND:"dragend",TOUCHSTART:goog.events.EventType.TOUCHSTART,TOUCHMOVE:goog.events.EventType.TOUCHMOVE,TOUCHEND:goog.events.EventType.TOUCHEND};ol.array={};ol.array.binaryFindNearest=function(a,b){var c=goog.array.binarySearch(a,b,function(a,b){return b-a});if(0<=c)return c;if(-1==c)return 0;if(c==-a.length-1)return a.length-1;var d=-c-2,c=-c-1;return a[d]-b<b-a[c]?d:c};ol.array.linearFindNearest=function(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d<c;++d){if(a[d]==b)return d;if(a[d]<b)return a[d-1]-b<b-a[d]?d-1:d}}return c-1};ol.ResolutionConstraint={};ol.ResolutionConstraint.createContinuous=function(a,b,c){var d=c||0;return function(c,f){if(goog.isDef(c))return c/=Math.pow(a,f),goog.math.clamp(c,d,b)}};ol.ResolutionConstraint.createSnapToResolutions=function(a){return function(b,c){if(goog.isDef(b)){var d=ol.array.linearFindNearest(a,b),d=goog.math.clamp(d+c,0,a.length-1);return a[d]}}};
|
||||
ol.ResolutionConstraint.createSnapToPower=function(a,b,c){return function(d,e){if(goog.isDef(d)){var f=Math.floor(Math.log(b/d)/Math.log(a)+0.5),f=Math.max(f+e,0);goog.isDef(c)&&(f=Math.min(f,c));return b/Math.pow(a,f)}}};ol.RotationConstraint={};ol.RotationConstraint.none=function(a,b){if(goog.isDef(a))return a+b};ol.RotationConstraint.createSnapToN=function(a){var b=2*Math.PI/a;return function(a,d){if(goog.isDef(a))return a=Math.floor((a+d)/b+0.5)*b}};ol.Constraints=function(a,b){this.resolution=a;this.rotation=b};ol.View2DProperty={CENTER:"center",PROJECTION:"projection",RESOLUTION:"resolution",ROTATION:"rotation"};
|
||||
ol.View2D=function(a){ol.View.call(this);var a=a||{},b={};b[ol.View2DProperty.CENTER]=goog.isDef(a.center)?a.center:null;b[ol.View2DProperty.PROJECTION]=ol.projection.createProjection(a.projection,"EPSG:3857");if(goog.isDef(a.resolution))b[ol.View2DProperty.RESOLUTION]=a.resolution;else if(goog.isDef(a.zoom)){var c=b[ol.View2DProperty.PROJECTION].getExtent(),c=Math.max(c.maxX-c.minX,c.maxY-c.minY);b[ol.View2DProperty.RESOLUTION]=c/(ol.DEFAULT_TILE_SIZE*Math.pow(2,a.zoom))}b[ol.View2DProperty.ROTATION]=
|
||||
a.rotation;this.ol_Object_prototype$setValues(b);this.constraints_=ol.View2D.createConstraints_(a)};goog.inherits(ol.View2D,ol.View);ol.View2D.prototype.ol_IView2D_prototype$getCenter=function(){return this.get(ol.View2DProperty.CENTER)};goog.exportProperty(ol.View2D.prototype,"getCenter",ol.View2D.prototype.ol_IView2D_prototype$getCenter);
|
||||
ol.View2D.prototype.getExtent=function(a){goog.asserts.assert(this.isDef());var b=this.ol_IView2D_prototype$getCenter(),c=this.ol_IView2D_prototype$getResolution();return new ol.Extent(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};ol.View2D.prototype.ol_IView2D_prototype$getProjection=function(){return this.get(ol.View2DProperty.PROJECTION)};goog.exportProperty(ol.View2D.prototype,"getProjection",ol.View2D.prototype.ol_IView2D_prototype$getProjection);
|
||||
ol.View2D.prototype.ol_IView2D_prototype$getResolution=function(){return this.get(ol.View2DProperty.RESOLUTION)};goog.exportProperty(ol.View2D.prototype,"getResolution",ol.View2D.prototype.ol_IView2D_prototype$getResolution);ol.View2D.prototype.getResolutionForExtent=function(a,b){return Math.max((a.maxX-a.minX)/b.width,(a.maxY-a.minY)/b.height)};ol.View2D.prototype.getRotation=function(){return this.get(ol.View2DProperty.ROTATION)||0};goog.exportProperty(ol.View2D.prototype,"getRotation",ol.View2D.prototype.getRotation);
|
||||
ol.View2D.prototype.getView2D=function(){return this};ol.View2D.prototype.getView2DState=function(){goog.asserts.assert(this.isDef());var a=this.ol_IView2D_prototype$getCenter(),b=this.ol_IView2D_prototype$getProjection(),c=this.ol_IView2D_prototype$getResolution(),d=this.getRotation();return{center:new ol.Coordinate(a.x,a.y),projection:b,resolution:c,rotation:d}};ol.View2D.prototype.getView3D=function(){};
|
||||
ol.View2D.prototype.fitExtent=function(a,b){this.setCenter(a.ol_Rectangle_prototype$getCenter());var c=this.getResolutionForExtent(a,b),c=this.constraints_.resolution(c,0);this.setResolution(c)};ol.View2D.prototype.isDef=function(){return goog.isDefAndNotNull(this.ol_IView2D_prototype$getCenter())&&goog.isDef(this.ol_IView2D_prototype$getResolution())};ol.View2D.prototype.setCenter=function(a){this.set(ol.View2DProperty.CENTER,a)};goog.exportProperty(ol.View2D.prototype,"setCenter",ol.View2D.prototype.setCenter);
|
||||
ol.View2D.prototype.ol_View2D_prototype$setProjection=function(a){this.set(ol.View2DProperty.PROJECTION,a)};goog.exportProperty(ol.View2D.prototype,"setProjection",ol.View2D.prototype.ol_View2D_prototype$setProjection);ol.View2D.prototype.setResolution=function(a){this.set(ol.View2DProperty.RESOLUTION,a)};goog.exportProperty(ol.View2D.prototype,"setResolution",ol.View2D.prototype.setResolution);ol.View2D.prototype.setRotation=function(a){this.set(ol.View2DProperty.ROTATION,a)};
|
||||
goog.exportProperty(ol.View2D.prototype,"setRotation",ol.View2D.prototype.setRotation);ol.View2D.prototype.rotate=function(a,b,c){b=this.constraints_.rotation(b,0);if(goog.isDefAndNotNull(c)){var d=this.ol_IView2D_prototype$getCenter(),e=new ol.Coordinate(d.x-c.x,d.y-c.y);e.rotate(b-this.getRotation());e.x+=c.x;e.y+=c.y;a.withFrozenRendering(function(){this.setCenter(e);this.setRotation(b)},this)}else this.setRotation(b)};
|
||||
ol.View2D.prototype.zoom_=function(a,b,c){if(goog.isDefAndNotNull(b)&&goog.isDefAndNotNull(c)){var d=this.ol_IView2D_prototype$getCenter(),e=this.ol_IView2D_prototype$getResolution(),f=new ol.Coordinate(c.x-b*(c.x-d.x)/e,c.y-b*(c.y-d.y)/e);a.withFrozenRendering(function(){this.setCenter(f);this.setResolution(b)},this)}else this.setResolution(b)};
|
||||
ol.View2D.prototype.zoom=function(a,b,c,d){var e=this.ol_IView2D_prototype$getResolution();goog.isDef(e)&&goog.isDef(d)&&(a.requestRenderFrame(),a.addPreRenderFunction(ol.animation.zoom({resolution:e,duration:d})));b=this.constraints_.resolution(e,b);this.zoom_(a,b,c)};ol.View2D.prototype.zoomToResolution=function(a,b,c){b=this.constraints_.resolution(b,0);this.zoom_(a,b,c)};
|
||||
ol.View2D.createConstraints_=function(a){var b;if(goog.isDef(a.resolutions))b=ol.ResolutionConstraint.createSnapToResolutions(a.resolutions);else{var c;goog.isDef(a.maxResolution)&&goog.isDef(a.numZoomLevels)&&goog.isDef(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels,a=a.zoomFactor):(b=ol.projection.createProjection(a.projection,"EPSG:3857").getExtent(),b=Math.max(b.maxX-b.minX,b.maxY-b.minY)/ol.DEFAULT_TILE_SIZE,c=116,a=Math.exp(Math.log(2)/4));b=ol.ResolutionConstraint.createSnapToPower(a,b,
|
||||
c-1)}return new ol.Constraints(b,ol.RotationConstraint.none)};ol.control={};ol.control.Control=function(a){goog.Disposable.call(this);this.element=goog.isDef(a.element)?a.element:null;this.ol_control_Control$target_=a.target;this.ol_control_Control$map_=null;goog.isDef(a.map)&&this.ol_control_Control_prototype$setMap(a.map)};goog.inherits(ol.control.Control,goog.Disposable);ol.control.Control.prototype.goog_Disposable_prototype$disposeInternal=function(){goog.dom.removeNode(this.element);ol.control.Control.superClass_.goog_Disposable_prototype$disposeInternal.call(this)};
|
||||
ol.control.Control.prototype.ol_control_Control_prototype$getMap=function(){return this.ol_control_Control$map_};ol.control.Control.prototype.ol_control_Control_prototype$setMap=function(a){goog.isNull(this.ol_control_Control$map_)||goog.dom.removeNode(this.element);this.ol_control_Control$map_=a;goog.isNull(this.ol_control_Control$map_)||(a=goog.isDef(this.ol_control_Control$target_)?this.ol_control_Control$target_:a.getOverlayContainer(),goog.dom.appendChild(a,this.element))};ol.control.Attribution=function(a){this.ulElement_=goog.dom.createElement(goog.dom.TagName.UL);var b=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"ol-attribution ol-unselectable"},this.ulElement_);ol.control.Control.call(this,{element:b,map:a.map,target:a.target});this.ol_control_Attribution$renderedVisible_=!0;this.attributionElements_={};this.attributionElementRenderedVisible_={};this.ol_control_Attribution$listenerKeys_=null};goog.inherits(ol.control.Attribution,ol.control.Control);
|
||||
ol.control.Attribution.prototype.getTileSourceAttributions=function(a,b){var c={},d,e,f,g,h,i;for(i in a)if(goog.asserts.assert(i in b),d=b[i],h=d.getAttributions(),!goog.isNull(h)){e=a[i];for(d=0;d<h.length;++d)f=h[d],g=goog.getUid(f).toString(),g in c||f.intersectsAnyTileRange(e)&&(c[g]=f)}return c};ol.control.Attribution.prototype.ol_control_Attribution_prototype$handleMapPostrender=function(a){this.updateElement_(a.frameState)};
|
||||
ol.control.Attribution.prototype.ol_control_Control_prototype$setMap=function(a){goog.isNull(this.ol_control_Attribution$listenerKeys_)||(goog.array.forEach(this.ol_control_Attribution$listenerKeys_,goog.events.unlistenByKey),this.ol_control_Attribution$listenerKeys_=null);ol.control.Attribution.superClass_.ol_control_Control_prototype$setMap.call(this,a);goog.isNull(a)||(this.ol_control_Attribution$listenerKeys_=[goog.events.listen(a,ol.MapEventType.POSTRENDER,this.ol_control_Attribution_prototype$handleMapPostrender,
|
||||
!1,this)])};
|
||||
ol.control.Attribution.prototype.updateElement_=function(a){if(goog.isNull(a))this.ol_control_Attribution$renderedVisible_&&(goog.style.showElement(this.element,!1),this.ol_control_Attribution$renderedVisible_=!1);else{var b={},c={},d=this.ol_control_Control_prototype$getMap().getLayers();goog.isDef(d)&&d.forEach(function(a){a=a.getSource();c[goog.getUid(a).toString()]=a;a=a.getAttributions();if(!goog.isNull(a)){var d,e;for(e=0;e<a.length;++e)d=a[e],g=goog.getUid(d).toString(),b[g]=!0}});d=goog.object.clone(a.attributions);
|
||||
a=this.getTileSourceAttributions(a.usedTiles,c);goog.object.extend(d,a);a=goog.array.map(goog.object.getKeys(d),Number);goog.array.sort(a);var e,f,g;for(e=0;e<a.length;++e)g=a[e].toString(),g in this.attributionElements_?this.attributionElementRenderedVisible_[g]||(goog.style.showElement(this.attributionElements_[g],!0),this.attributionElementRenderedVisible_[g]=!0):(f=goog.dom.createElement(goog.dom.TagName.LI),f.innerHTML=d[g].getHTML(),goog.dom.appendChild(this.ulElement_,f),this.attributionElements_[g]=
|
||||
f,this.attributionElementRenderedVisible_[g]=!0),delete b[g];for(g in b)goog.dom.removeNode(this.attributionElements_[g]),delete this.attributionElements_[g],delete this.attributionElementRenderedVisible_[g];d=!goog.array.isEmpty(a);this.ol_control_Attribution$renderedVisible_!=d&&(goog.style.showElement(this.element,d),this.ol_control_Attribution$renderedVisible_=d)}};ol.control.ZOOM_DURATION=250;
|
||||
ol.control.Zoom=function(a){var b=ol.BrowserFeature.HAS_TOUCH?goog.events.EventType.TOUCHEND:goog.events.EventType.CLICK,c=goog.dom.createDom(goog.dom.TagName.A,{href:"#zoomIn","class":"ol-zoom-in"});goog.events.listen(c,b,this.handleIn_,!1,this);var d=goog.dom.createDom(goog.dom.TagName.A,{href:"#zoomOut","class":"ol-zoom-out"});goog.events.listen(d,b,this.handleOut_,!1,this);b=goog.dom.createDom(goog.dom.TagName.DIV,"ol-zoom ol-unselectable",c,d);ol.control.Control.call(this,{element:b,map:a.map,
|
||||
target:a.target});this.ol_control_Zoom$delta_=goog.isDef(a.delta)?a.delta:1};goog.inherits(ol.control.Zoom,ol.control.Control);ol.control.Zoom.prototype.handleIn_=function(a){a.goog_events_Event_prototype$preventDefault();a=this.ol_control_Control_prototype$getMap();a.requestRenderFrame();a.getView().zoom(a,this.ol_control_Zoom$delta_,void 0,ol.control.ZOOM_DURATION)};
|
||||
ol.control.Zoom.prototype.handleOut_=function(a){a.goog_events_Event_prototype$preventDefault();a=this.ol_control_Control_prototype$getMap();a.requestRenderFrame();a.getView().zoom(a,-this.ol_control_Zoom$delta_,void 0,ol.control.ZOOM_DURATION)};ol.interaction={};ol.interaction.Interaction=function(){};ol.interaction.DblClickZoom=function(a){this.ol_interaction_DblClickZoom$delta_=a;ol.interaction.Interaction.call(this)};goog.inherits(ol.interaction.DblClickZoom,ol.interaction.Interaction);
|
||||
ol.interaction.DblClickZoom.prototype.ol_interaction_Interaction_prototype$handleMapBrowserEvent=function(a){var b=a.browserEvent;if(a.type==ol.MapBrowserEvent.EventType.DBLCLICK&&a.ol_MapBrowserEvent_prototype$isMouseActionButton()){var c=a.map,d=a.getCoordinate(),e=a.browserEvent.goog_events_BrowserEvent_prototype$shiftKey?-this.ol_interaction_DblClickZoom$delta_:this.ol_interaction_DblClickZoom$delta_,f=c.getView();goog.asserts.assert(f instanceof ol.View2D);f.zoom(c,e,d);a.goog_events_Event_prototype$preventDefault();
|
||||
b.goog_events_Event_prototype$preventDefault()}};ol.interaction.condition={};ol.interaction.condition.altKeyOnly=function(a){return a.goog_events_BrowserEvent_prototype$altKey&&!a.platformModifierKey&&!a.goog_events_BrowserEvent_prototype$shiftKey};ol.interaction.condition.altShiftKeysOnly=function(a){return a.goog_events_BrowserEvent_prototype$altKey&&!a.platformModifierKey&&a.goog_events_BrowserEvent_prototype$shiftKey};
|
||||
ol.interaction.condition.noModifierKeys=function(a){return!a.goog_events_BrowserEvent_prototype$altKey&&!a.platformModifierKey&&!a.goog_events_BrowserEvent_prototype$shiftKey};ol.interaction.condition.platformModifierKeyOnly=function(a){return!a.goog_events_BrowserEvent_prototype$altKey&&a.platformModifierKey&&!a.goog_events_BrowserEvent_prototype$shiftKey};ol.interaction.condition.shiftKeyOnly=function(a){return!a.goog_events_BrowserEvent_prototype$altKey&&!a.platformModifierKey&&a.goog_events_BrowserEvent_prototype$shiftKey};ol.interaction.Drag=function(){ol.interaction.Interaction.call(this);this.dragging_=!1;this.ol_interaction_Drag$offsetY=this.ol_interaction_Drag$offsetX=this.startY=this.startX=0;this.startCoordinate=this.startCenter=null};goog.inherits(ol.interaction.Drag,ol.interaction.Interaction);ol.interaction.Drag.prototype.handleDrag=goog.nullFunction;ol.interaction.Drag.prototype.handleDragEnd=goog.nullFunction;ol.interaction.Drag.prototype.handleDragStart=goog.functions.FALSE;
|
||||
ol.interaction.Drag.prototype.handleDown=goog.nullFunction;
|
||||
ol.interaction.Drag.prototype.ol_interaction_Interaction_prototype$handleMapBrowserEvent=function(a){var b=a.map;if(b.isDef()){var b=b.getView(),c=a.browserEvent;a.type==ol.MapBrowserEvent.EventType.DOWN&&(goog.asserts.assert(c instanceof goog.events.BrowserEvent),this.handleDown(a));this.dragging_?a.type==ol.MapBrowserEvent.EventType.DRAG?(goog.asserts.assert(c instanceof goog.events.BrowserEvent),this.deltaX=c.clientX-this.startX,this.deltaY=c.clientY-this.startY,this.handleDrag(a)):a.type==ol.MapBrowserEvent.EventType.DRAGEND&&
|
||||
(goog.asserts.assert(c instanceof goog.events.BrowserEvent),this.deltaX=c.clientX-this.startX,this.deltaY=c.clientY-this.startY,this.handleDragEnd(a),this.dragging_=!1):a.type==ol.MapBrowserEvent.EventType.DRAGSTART&&(goog.asserts.assert(c instanceof goog.events.BrowserEvent),this.startX=c.clientX,this.startY=c.clientY,this.deltaY=this.deltaX=0,this.startCenter=b.ol_IView2D_prototype$getCenter(),this.startCoordinate=a.getCoordinate(),this.handleDragStart(a)&&(this.dragging_=!0,a.goog_events_Event_prototype$preventDefault()))}};ol.interaction.DragPan=function(a,b){ol.interaction.Drag.call(this);this.ol_interaction_DragPan$condition_=a;this.ol_interaction_DragPan$kinetic_=b;this.ol_interaction_DragPan$kineticPreRenderFn_=null};goog.inherits(ol.interaction.DragPan,ol.interaction.Drag);
|
||||
ol.interaction.DragPan.prototype.handleDrag=function(a){this.ol_interaction_DragPan$kinetic_&&this.ol_interaction_DragPan$kinetic_.ol_Kinetic_prototype$update(a.browserEvent.clientX,a.browserEvent.clientY);var a=a.map,b=a.getView();goog.asserts.assert(b instanceof ol.View2D);var c=b.ol_IView2D_prototype$getResolution(),d=b.getRotation(),c=new ol.Coordinate(-c*this.deltaX,c*this.deltaY);c.rotate(d);d=new ol.Coordinate(this.startCenter.x+c.x,this.startCenter.y+c.y);a.requestRenderFrame();b.setCenter(d)};
|
||||
ol.interaction.DragPan.prototype.handleDragEnd=function(a){var b=a.map,a=b.getView();a.setHint(ol.ViewHint.PANNING,-1);if(this.ol_interaction_DragPan$kinetic_&&this.ol_interaction_DragPan$kinetic_.ol_Kinetic_prototype$end()){var c=this.ol_interaction_DragPan$kinetic_.getDistance(),d=this.ol_interaction_DragPan$kinetic_.getAngle(),e=a.ol_IView2D_prototype$getCenter();this.ol_interaction_DragPan$kineticPreRenderFn_=this.ol_interaction_DragPan$kinetic_.pan(e);b.addPreRenderFunction(this.ol_interaction_DragPan$kineticPreRenderFn_);
|
||||
e=b.getPixelFromCoordinate(e);c=new ol.Pixel(e.x-c*Math.cos(d),e.y-c*Math.sin(d));b=b.getCoordinateFromPixel(c);a.setCenter(b)}};
|
||||
ol.interaction.DragPan.prototype.handleDragStart=function(a){var b=a.browserEvent;return this.ol_interaction_DragPan$condition_(b)?(this.ol_interaction_DragPan$kinetic_&&(this.ol_interaction_DragPan$kinetic_.begin(),this.ol_interaction_DragPan$kinetic_.ol_Kinetic_prototype$update(b.clientX,b.clientY)),a=a.map,a.requestRenderFrame(),a.getView().setHint(ol.ViewHint.PANNING,1),!0):!1};
|
||||
ol.interaction.DragPan.prototype.handleDown=function(a){var b=a.map,c=b.getView();goog.asserts.assert(c instanceof ol.View2D);goog.asserts.assert(!goog.isNull(a.frameState));!goog.isNull(this.ol_interaction_DragPan$kineticPreRenderFn_)&&b.removePreRenderFunction(this.ol_interaction_DragPan$kineticPreRenderFn_)&&(b.requestRenderFrame(),c.setCenter(a.frameState.view2DState.center),this.ol_interaction_DragPan$kineticPreRenderFn_=null)};ol.interaction.DragRotate=function(a){ol.interaction.Drag.call(this);this.ol_interaction_DragRotate$condition_=a};goog.inherits(ol.interaction.DragRotate,ol.interaction.Drag);
|
||||
ol.interaction.DragRotate.prototype.handleDrag=function(a){var b=a.map,c=b.getSize(),a=a.getPixel(),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(goog.isDef(this.ol_interaction_DragRotate$lastAngle_)){var a=c-this.ol_interaction_DragRotate$lastAngle_,d=b.getView();goog.asserts.assert(d instanceof ol.View2D);b.requestRenderFrame();d.rotate(b,d.getRotation()-a)}this.ol_interaction_DragRotate$lastAngle_=c};
|
||||
ol.interaction.DragRotate.prototype.handleDragStart=function(a){var b=a.browserEvent;return b.goog_events_BrowserEvent_prototype$isMouseActionButton()&&this.ol_interaction_DragRotate$condition_(b)?(a=a.map,b=a.getView(),goog.asserts.assert(b instanceof ol.View2D),a.requestRenderFrame(),this.ol_interaction_DragRotate$lastAngle_=void 0,!0):!1};ol.control.DragBox=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,"ol-dragbox");this.startPixel_=null;this.startCoordinate_=a.startCoordinate;this.dragListenKey_=null;ol.control.Control.call(this,{element:b,map:a.map})};goog.inherits(ol.control.DragBox,ol.control.Control);
|
||||
ol.control.DragBox.prototype.ol_control_Control_prototype$setMap=function(a){goog.isNull(this.dragListenKey_)||(goog.events.unlistenByKey(this.dragListenKey_),this.dragListenKey_=null);goog.isNull(a)||(this.startPixel_=a.getPixelFromCoordinate(this.startCoordinate_),goog.asserts.assert(goog.isDef(this.startPixel_)),goog.style.setPosition(this.element,this.startPixel_),goog.style.setBorderBoxSize(this.element,new ol.Size(0,0)),this.dragListenKey_=goog.events.listen(a,ol.MapBrowserEvent.EventType.DRAG,
|
||||
this.updateBox_,!1,this));ol.control.DragBox.superClass_.ol_control_Control_prototype$setMap.call(this,a)};
|
||||
ol.control.DragBox.prototype.updateBox_=function(a){var b=this.ol_control_Control_prototype$getMap(),a=a.getCoordinate();goog.asserts.assert(goog.isDef(a));b=b.getPixelFromCoordinate(a);goog.style.setPosition(this.element,new ol.Pixel(Math.min(b.x,this.startPixel_.x),Math.min(b.y,this.startPixel_.y)));goog.style.setBorderBoxSize(this.element,new ol.Size(Math.abs(b.x-this.startPixel_.x),Math.abs(b.y-this.startPixel_.y)))};ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS=8;ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS_SQUARED=ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS*ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS;ol.interaction.DragZoom=function(a){ol.interaction.Drag.call(this);this.ol_interaction_DragZoom$condition_=a;this.dragBox_=null};goog.inherits(ol.interaction.DragZoom,ol.interaction.Drag);
|
||||
ol.interaction.DragZoom.prototype.handleDragEnd=function(a){this.dragBox_.ol_control_Control_prototype$setMap(null);this.dragBox_=null;if(this.deltaX*this.deltaX+this.deltaY*this.deltaY>=ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS_SQUARED){var b=a.map,c=ol.Extent.boundingExtent(this.startCoordinate,a.getCoordinate());b.withFrozenRendering(function(){var a=b.getView();goog.asserts.assert(a instanceof ol.View2D);var e=b.getSize();a.fitExtent(c,e);a.setRotation(0)})}};
|
||||
ol.interaction.DragZoom.prototype.handleDragStart=function(a){var b=a.browserEvent;return b.goog_events_BrowserEvent_prototype$isMouseActionButton()&&this.ol_interaction_DragZoom$condition_(b)?(this.dragBox_=new ol.control.DragBox({map:a.map,startCoordinate:this.startCoordinate}),!0):!1};ol.interaction.KeyboardPan=function(a){ol.interaction.Interaction.call(this);this.pixelDelta_=a};goog.inherits(ol.interaction.KeyboardPan,ol.interaction.Interaction);
|
||||
ol.interaction.KeyboardPan.prototype.ol_interaction_Interaction_prototype$handleMapBrowserEvent=function(a){if(a.type==goog.events.KeyHandler.EventType.KEY){var b=a.browserEvent,c=b.goog_events_BrowserEvent_prototype$keyCode;if(c==goog.events.KeyCodes.DOWN||c==goog.events.KeyCodes.LEFT||c==goog.events.KeyCodes.RIGHT||c==goog.events.KeyCodes.UP){var d=a.map.getView();goog.asserts.assert(d instanceof ol.View2D);var e=d.ol_IView2D_prototype$getResolution()*this.pixelDelta_;c==goog.events.KeyCodes.DOWN?
|
||||
c=new ol.Coordinate(0,-e):c==goog.events.KeyCodes.LEFT?c=new ol.Coordinate(-e,0):c==goog.events.KeyCodes.RIGHT?c=new ol.Coordinate(e,0):(goog.asserts.assert(c==goog.events.KeyCodes.UP),c=new ol.Coordinate(0,e));e=d.ol_IView2D_prototype$getCenter();c=new ol.Coordinate(e.x+c.x,e.y+c.y);d.setCenter(c);b.goog_events_Event_prototype$preventDefault();a.goog_events_Event_prototype$preventDefault()}}};ol.interaction.KEYBOARD_ZOOM_DURATION=100;ol.interaction.KeyboardZoom=function(){ol.interaction.Interaction.call(this)};goog.inherits(ol.interaction.KeyboardZoom,ol.interaction.Interaction);
|
||||
ol.interaction.KeyboardZoom.prototype.ol_interaction_Interaction_prototype$handleMapBrowserEvent=function(a){if(a.type==goog.events.KeyHandler.EventType.KEY){var b=a.browserEvent,c=b.goog_events_BrowserEvent_prototype$charCode;if(43==c||45==c){var d=a.map,c=43==c?4:-4;d.requestRenderFrame();var e=d.getView();goog.asserts.assert(e instanceof ol.View2D);e.zoom(d,c,void 0,ol.interaction.KEYBOARD_ZOOM_DURATION);b.goog_events_Event_prototype$preventDefault();a.goog_events_Event_prototype$preventDefault()}}};ol.interaction.MouseWheelZoom=function(a){this.ol_interaction_MouseWheelZoom$delta_=a;ol.interaction.Interaction.call(this)};goog.inherits(ol.interaction.MouseWheelZoom,ol.interaction.Interaction);
|
||||
ol.interaction.MouseWheelZoom.prototype.ol_interaction_Interaction_prototype$handleMapBrowserEvent=function(a){if(a.type==goog.events.MouseWheelHandler.EventType.MOUSEWHEEL){var b=a.map,c=a.browserEvent;goog.asserts.assert(c instanceof goog.events.MouseWheelEvent);var d=a.getCoordinate(),e=0>c.deltaY?this.ol_interaction_MouseWheelZoom$delta_:-this.ol_interaction_MouseWheelZoom$delta_,f=b.getView();goog.asserts.assert(f instanceof ol.View2D);b.requestRenderFrame();f.zoom(b,e,d);a.goog_events_Event_prototype$preventDefault();
|
||||
c.goog_events_Event_prototype$preventDefault()}};ol.interaction.Touch=function(){ol.interaction.Interaction.call(this);this.handled_=!1;this.trackedTouches_={};this.targetTouches=[]};goog.inherits(ol.interaction.Touch,ol.interaction.Interaction);ol.interaction.Touch.centroid=function(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return new ol.Pixel(c/b,d/b)};
|
||||
ol.interaction.Touch.prototype.updateTrackedTouches_=function(a){var b=a.browserEvent.getBrowserEvent();goog.isDef(b.targetTouches)?this.targetTouches=b.targetTouches:(a.type==ol.MapBrowserEvent.EventType.TOUCHEND?delete this.trackedTouches_[b.pointerId]:this.trackedTouches_[b.pointerId]=b,this.targetTouches=goog.object.getValues(this.trackedTouches_))};ol.interaction.Touch.prototype.handleTouchMove=goog.nullFunction;ol.interaction.Touch.prototype.handleTouchEnd=goog.functions.FALSE;
|
||||
ol.interaction.Touch.prototype.handleTouchStart=goog.functions.FALSE;ol.interaction.Touch.prototype.ol_interaction_Interaction_prototype$handleMapBrowserEvent=function(a){a.browserEvent.getBrowserEvent();this.updateTrackedTouches_(a);this.handled_&&(a.type==ol.MapBrowserEvent.EventType.TOUCHMOVE?this.handleTouchMove(a):a.type==ol.MapBrowserEvent.EventType.TOUCHEND&&(this.handled_=this.handleTouchEnd(a)));a.type==ol.MapBrowserEvent.EventType.TOUCHSTART&&(this.handled_=this.handleTouchStart(a))};ol.interaction.TouchPan=function(){ol.interaction.Touch.call(this);this.ol_interaction_TouchPan$kinetic_=new ol.Kinetic(-0.005,0.05,100);this.lastCentroid=this.ol_interaction_TouchPan$kineticPreRenderFn_=null};goog.inherits(ol.interaction.TouchPan,ol.interaction.Touch);
|
||||
ol.interaction.TouchPan.prototype.handleTouchMove=function(a){goog.asserts.assert(1<=this.targetTouches.length);var b=ol.interaction.Touch.centroid(this.targetTouches);if(!goog.isNull(this.lastCentroid)){this.ol_interaction_TouchPan$kinetic_.ol_Kinetic_prototype$update(b.x,b.y);var c=this.lastCentroid.x-b.x,d=b.y-this.lastCentroid.y,a=a.map.getView(),c=(new ol.Coordinate(c,d)).scale(a.ol_IView2D_prototype$getResolution()).rotate(a.getRotation()).add(a.ol_IView2D_prototype$getCenter());a.setCenter(c)}this.lastCentroid=
|
||||
b};
|
||||
ol.interaction.TouchPan.prototype.handleTouchEnd=function(a){var b=a.map,a=b.getView();if(0==this.targetTouches.length){a.setHint(ol.ViewHint.PANNING,-1);if(this.ol_interaction_TouchPan$kinetic_.ol_Kinetic_prototype$end()){var c=this.ol_interaction_TouchPan$kinetic_.getDistance(),d=this.ol_interaction_TouchPan$kinetic_.getAngle(),e=a.ol_IView2D_prototype$getCenter();this.ol_interaction_TouchPan$kineticPreRenderFn_=this.ol_interaction_TouchPan$kinetic_.pan(e);b.addPreRenderFunction(this.ol_interaction_TouchPan$kineticPreRenderFn_);e=
|
||||
b.getPixelFromCoordinate(e);c=new ol.Pixel(e.x-c*Math.cos(d),e.y-c*Math.sin(d));b=b.getCoordinateFromPixel(c);a.setCenter(b)}return!1}return!0};
|
||||
ol.interaction.TouchPan.prototype.handleTouchStart=function(a){if(1<=this.targetTouches.length){var b=a.map,c=b.getView();this.lastCentroid=null;!goog.isNull(this.ol_interaction_TouchPan$kineticPreRenderFn_)&&b.removePreRenderFunction(this.ol_interaction_TouchPan$kineticPreRenderFn_)&&(b.requestRenderFrame(),c.setCenter(a.frameState.view2DState.center),this.ol_interaction_TouchPan$kineticPreRenderFn_=null);this.ol_interaction_TouchPan$kinetic_.begin();c.setHint(ol.ViewHint.PANNING,1);return!0}return!1};ol.interaction.TouchRotateAndZoom=function(){ol.interaction.Touch.call(this);this.rotating_=!1;this.rotationDelta_=0;this.rotationThreshold_=0.3};goog.inherits(ol.interaction.TouchRotateAndZoom,ol.interaction.Touch);
|
||||
ol.interaction.TouchRotateAndZoom.prototype.handleTouchMove=function(a){goog.asserts.assert(2<=this.targetTouches.length);var b=1,c=0,d=ol.interaction.Touch.centroid(this.targetTouches),e=this.targetTouches[0],f=this.targetTouches[1],g=e.clientX-f.clientX,h=e.clientY-f.clientY,e=Math.atan2(f.clientY-e.clientY,f.clientX-e.clientX),g=Math.sqrt(g*g+h*h);goog.isDef(this.lastDistance_)&&(b=this.lastDistance_/g);this.lastDistance_=g;goog.isDef(this.ol_interaction_TouchRotateAndZoom$lastAngle_)&&(c=e-this.ol_interaction_TouchRotateAndZoom$lastAngle_,
|
||||
this.rotationDelta_+=c,!this.rotating_&&Math.abs(this.rotationDelta_)>this.rotationThreshold_&&(this.rotating_=!0));this.ol_interaction_TouchRotateAndZoom$lastAngle_=e;a=a.map;g=a.getView();h=goog.style.getClientPosition(a.getViewport());d.x-=h.x;d.y-=h.y;d=a.getCoordinateFromPixel(d);g.zoom_(a,g.ol_IView2D_prototype$getResolution()*b,d);this.rotating_&&g.rotate(a,g.getRotation()+c,d)};
|
||||
ol.interaction.TouchRotateAndZoom.prototype.handleTouchEnd=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.getView();b.zoomToResolution(a,b.ol_IView2D_prototype$getResolution());b.setHint(ol.ViewHint.PANNING,-1);return!1}return!0};
|
||||
ol.interaction.TouchRotateAndZoom.prototype.handleTouchStart=function(a){return 2<=this.targetTouches.length?(a=a.map.getView(),this.ol_interaction_TouchRotateAndZoom$lastAngle_=this.lastDistance_=void 0,this.rotating_=!1,this.rotationDelta_=0,a.setHint(ol.ViewHint.PANNING,1),!0):!1};ol.projection.EPSG3857=function(a){ol.Projection.call(this,a,ol.ProjectionUnits.METERS,ol.projection.EPSG3857.function__new_ol_projection_EPSG3857__string___undefined$EXTENT)};goog.inherits(ol.projection.EPSG3857,ol.Projection);ol.projection.EPSG3857.RADIUS=6378137;ol.projection.EPSG3857.HALF_SIZE=Math.PI*ol.projection.EPSG3857.RADIUS;
|
||||
ol.projection.EPSG3857.function__new_ol_projection_EPSG3857__string___undefined$EXTENT=new ol.Extent(-ol.projection.EPSG3857.HALF_SIZE,-ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE);ol.projection.EPSG3857.CODES=["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"];ol.projection.EPSG3857.function__new_ol_projection_EPSG3857__string___undefined$PROJECTIONS=goog.array.map(ol.projection.EPSG3857.CODES,function(a){return new ol.projection.EPSG3857(a)});
|
||||
ol.projection.EPSG3857.fromEPSG4326=function(a){var b=ol.projection.EPSG3857.RADIUS*Math.PI*a.x/180,a=ol.projection.EPSG3857.RADIUS*Math.log(Math.tan(Math.PI*(a.y+90)/360));return new ol.Coordinate(b,a)};ol.projection.EPSG3857.toEPSG4326=function(a){var b=180*a.x/(ol.projection.EPSG3857.RADIUS*Math.PI),a=360*Math.atan(Math.exp(a.y/ol.projection.EPSG3857.RADIUS))/Math.PI-90;return new ol.Coordinate(b,a)};ol.projection.EPSG4326=function(a,b){ol.Projection.call(this,a,ol.ProjectionUnits.DEGREES,ol.projection.EPSG4326.function__new_ol_projection_EPSG4326__string__string____undefined$EXTENT,b)};goog.inherits(ol.projection.EPSG4326,ol.Projection);ol.projection.EPSG4326.function__new_ol_projection_EPSG4326__string__string____undefined$EXTENT=new ol.Extent(-180,-90,180,90);
|
||||
ol.projection.EPSG4326.function__new_ol_projection_EPSG4326__string__string____undefined$PROJECTIONS=[new ol.projection.EPSG4326("CRS:84"),new ol.projection.EPSG4326("EPSG:4326","neu"),new ol.projection.EPSG4326("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new ol.projection.EPSG4326("urn:ogc:def:crs:OGC:1.3:CRS84")];ol.projection.addCommonProjections=function(){ol.projection.addEquivalentProjections(ol.projection.EPSG3857.function__new_ol_projection_EPSG3857__string___undefined$PROJECTIONS);ol.projection.addEquivalentProjections(ol.projection.EPSG4326.function__new_ol_projection_EPSG4326__string__string____undefined$PROJECTIONS);ol.projection.addEquivalentTransforms(ol.projection.EPSG4326.function__new_ol_projection_EPSG4326__string__string____undefined$PROJECTIONS,ol.projection.EPSG3857.function__new_ol_projection_EPSG3857__string___undefined$PROJECTIONS,
|
||||
ol.projection.EPSG3857.fromEPSG4326,ol.projection.EPSG3857.toEPSG4326)};ol.ImageState={IDLE:0,LOADING:1,LOADED:2,ERROR:3};ol.Image=function(a,b,c,d,e){this.ol_Image$attributions_=e;this.ol_Image$extent_=a;this.ol_Image$src_=c;this.ol_Image$resolution_=b;this.ol_Image$image_=new Image;goog.isNull(d)||(this.ol_Image$image_.crossOrigin=d);this.ol_Image$imageByContext_={};this.ol_Image$imageListenerKeys_=null;this.ol_Image$state=ol.ImageState.IDLE};goog.inherits(ol.Image,goog.events.EventTarget);ol.Image.prototype.ol_Image_prototype$dispatchChangeEvent=function(){this.dispatchEvent(goog.events.EventType.CHANGE)};
|
||||
ol.Image.prototype.getAttributions=function(){return this.ol_Image$attributions_};ol.Image.prototype.getExtent=function(){return this.ol_Image$extent_};ol.Image.prototype.getImageElement=function(a){if(goog.isDef(a)){var b=goog.getUid(a);if(b in this.ol_Image$imageByContext_)return this.ol_Image$imageByContext_[b];a=goog.object.isEmpty(this.ol_Image$imageByContext_)?this.ol_Image$image_:this.ol_Image$image_.cloneNode(!1);return this.ol_Image$imageByContext_[b]=a}return this.ol_Image$image_};
|
||||
ol.Image.prototype.ol_Image_prototype$getResolution=function(){return this.ol_Image$resolution_};ol.Image.prototype.getState=function(){return this.ol_Image$state};ol.Image.prototype.ol_Image_prototype$handleImageError_=function(){this.ol_Image$state=ol.ImageState.ERROR;this.ol_Image_prototype$unlistenImage_();this.ol_Image_prototype$dispatchChangeEvent()};
|
||||
ol.Image.prototype.ol_Image_prototype$handleImageLoad_=function(){this.ol_Image$state=ol.ImageState.LOADED;this.ol_Image_prototype$unlistenImage_();this.ol_Image_prototype$dispatchChangeEvent()};
|
||||
ol.Image.prototype.load=function(){this.ol_Image$state==ol.ImageState.IDLE&&(this.ol_Image$state=ol.ImageState.LOADING,goog.asserts.assert(goog.isNull(this.ol_Image$imageListenerKeys_)),this.ol_Image$imageListenerKeys_=[goog.events.listenOnce(this.ol_Image$image_,goog.events.EventType.ERROR,this.ol_Image_prototype$handleImageError_,!1,this),goog.events.listenOnce(this.ol_Image$image_,goog.events.EventType.LOAD,this.ol_Image_prototype$handleImageLoad_,!1,this)],this.ol_Image$image_.src=this.ol_Image$src_)};
|
||||
ol.Image.prototype.ol_Image_prototype$unlistenImage_=function(){goog.asserts.assert(!goog.isNull(this.ol_Image$imageListenerKeys_));goog.array.forEach(this.ol_Image$imageListenerKeys_,goog.events.unlistenByKey);this.ol_Image$imageListenerKeys_=null};ol.PixelBounds=function(a,b,c,d){ol.Rectangle.call(this,a,b,c,d)};goog.inherits(ol.PixelBounds,ol.Rectangle);ol.tilegrid={};ol.DEFAULT_TILE_SIZE=256;
|
||||
ol.tilegrid.TileGrid=function(a){this.ol_tilegrid_TileGrid$resolutions_=a.resolutions;goog.asserts.assert(goog.array.isSorted(this.ol_tilegrid_TileGrid$resolutions_,function(a,c){return c-a},!0));this.numResolutions_=this.ol_tilegrid_TileGrid$resolutions_.length;this.ol_tilegrid_TileGrid$origin_=goog.isDef(a.origin)?a.origin:null;this.origins_=null;goog.isDef(a.origins)&&(this.origins_=a.origins,goog.asserts.assert(this.origins_.length==this.ol_tilegrid_TileGrid$resolutions_.length));this.ol_tilegrid_TileGrid$tileSize_=
|
||||
goog.isDef(a.tileSize)?a.tileSize:new ol.Size(ol.DEFAULT_TILE_SIZE,ol.DEFAULT_TILE_SIZE)};ol.tilegrid.TileGrid.prototype.forEachTileCoordParentTileRange=function(a,b,c){for(var d=this.getTileCoordExtent(a),a=a.z-1;0<=a&&!b.call(c,a,this.getTileRangeForExtentAndZ(d,a));)--a};
|
||||
ol.tilegrid.TileGrid.prototype.ol_tilegrid_TileGrid_prototype$getOrigin=function(a){return goog.isNull(this.ol_tilegrid_TileGrid$origin_)?(goog.asserts.assert(!goog.isNull(this.origins_)),goog.asserts.assert(0<=a&&a<this.origins_.length),this.origins_[a]):this.ol_tilegrid_TileGrid$origin_};
|
||||
ol.tilegrid.TileGrid.prototype.getPixelBoundsForTileCoordAndResolution=function(a,b){var c=b/this.ol_tilegrid_TileGrid_prototype$getResolution(a.z),d=this.getTileSize(),d=new ol.Size(d.width/c,d.height/c),e,f,c=Math.round(a.x*d.width);e=Math.round((a.x+1)*d.width);f=Math.round(a.y*d.height);d=Math.round((a.y+1)*d.height);return new ol.PixelBounds(c,f,e,d)};ol.tilegrid.TileGrid.prototype.ol_tilegrid_TileGrid_prototype$getResolution=function(a){goog.asserts.assert(0<=a&&a<this.numResolutions_);return this.ol_tilegrid_TileGrid$resolutions_[a]};
|
||||
ol.tilegrid.TileGrid.prototype.ol_tilegrid_TileGrid_prototype$getResolutions=function(){return this.ol_tilegrid_TileGrid$resolutions_};ol.tilegrid.TileGrid.prototype.getTileRangeExtent=function(a,b){var c=this.ol_tilegrid_TileGrid_prototype$getOrigin(a),d=this.ol_tilegrid_TileGrid_prototype$getResolution(a),e=this.ol_tilegrid_TileGrid$tileSize_;return new ol.Extent(c.x+b.minX*e.width*d,c.y+b.minY*e.height*d,c.x+(b.maxX+1)*e.width*d,c.y+(b.maxY+1)*e.height*d)};
|
||||
ol.tilegrid.TileGrid.prototype.getTileRangeForExtentAndResolution=function(a,b){var c=this.getTileCoordForCoordAndResolution_(new ol.Coordinate(a.minX,a.minY),b),d=this.getTileCoordForCoordAndResolution_(new ol.Coordinate(a.maxX,a.maxY),b,!0);return new ol.TileRange(c.x,c.y,d.x,d.y)};ol.tilegrid.TileGrid.prototype.getTileRangeForExtentAndZ=function(a,b){var c=this.ol_tilegrid_TileGrid_prototype$getResolution(b);return this.getTileRangeForExtentAndResolution(a,c)};
|
||||
ol.tilegrid.TileGrid.prototype.getTileCoordCenter=function(a){var b=this.ol_tilegrid_TileGrid_prototype$getOrigin(a.z),c=this.ol_tilegrid_TileGrid_prototype$getResolution(a.z),d=this.ol_tilegrid_TileGrid$tileSize_;return new ol.Coordinate(b.x+(a.x+0.5)*d.width*c,b.y+(a.y+0.5)*d.height*c)};
|
||||
ol.tilegrid.TileGrid.prototype.getTileCoordExtent=function(a){var b=this.ol_tilegrid_TileGrid_prototype$getOrigin(a.z),c=this.ol_tilegrid_TileGrid_prototype$getResolution(a.z),d=this.ol_tilegrid_TileGrid$tileSize_,e=b.x+a.x*d.width*c,a=b.y+a.y*d.height*c;return new ol.Extent(e,a,e+d.width*c,a+d.height*c)};ol.tilegrid.TileGrid.prototype.getTileCoordForCoordAndResolution=function(a,b){return this.getTileCoordForCoordAndResolution_(a,b)};
|
||||
ol.tilegrid.TileGrid.prototype.getTileCoordForCoordAndResolution_=function(a,b,c){var d=this.getZForResolution(b),e=b/this.ol_tilegrid_TileGrid_prototype$getResolution(d),f=this.ol_tilegrid_TileGrid_prototype$getOrigin(d),g=this.getTileSize(),h=e*(a.x-f.x)/(b*g.width),a=e*(a.y-f.y)/(b*g.height);c?(h=Math.ceil(h)-1,a=Math.ceil(a)-1):(h=Math.floor(h),a=Math.floor(a));return new ol.TileCoord(d,h,a)};
|
||||
ol.tilegrid.TileGrid.prototype.getTileCoordForCoordAndZ=function(a,b){var c=this.ol_tilegrid_TileGrid_prototype$getResolution(b);return this.getTileCoordForCoordAndResolution_(a,c)};ol.tilegrid.TileGrid.prototype.getTileCoordResolution=function(a){goog.asserts.assert(0<=a.z&&a.z<this.numResolutions_);return this.ol_tilegrid_TileGrid$resolutions_[a.z]};ol.tilegrid.TileGrid.prototype.getTileSize=function(){return this.ol_tilegrid_TileGrid$tileSize_};
|
||||
ol.tilegrid.TileGrid.prototype.getZForResolution=function(a){return ol.array.linearFindNearest(this.ol_tilegrid_TileGrid$resolutions_,a)};
|
||||
ol.tilegrid.createForProjection=function(a,b,c){var a=a.getExtent(),d=Math.max(a.maxX-a.minX,a.maxY-a.minY),b=goog.isDef(b)?b:18,c=goog.isDef(c)?c:new ol.Size(ol.DEFAULT_TILE_SIZE,ol.DEFAULT_TILE_SIZE),b=Array(b+1);goog.asserts.assert(c.width==c.height);for(var d=d/c.width,e=0,f=b.length;e<f;++e)b[e]=d/Math.pow(2,e);return new ol.tilegrid.TileGrid({origin:a.getTopLeft(),resolutions:b,tileSize:c})};ol.source.TileSource=function(a){ol.source.Source.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.tileGrid=goog.isDef(a.tileGrid)?a.tileGrid:null};goog.inherits(ol.source.TileSource,ol.source.Source);ol.source.TileSource.prototype.ol_source_TileSource_prototype$canExpireCache=goog.functions.FALSE;
|
||||
ol.source.TileSource.prototype.findLoadedTiles=function(a,b,c,d){var e=!0,f,g,h,i;for(h=d.minX;h<=d.maxX;++h)for(i=d.minY;i<=d.maxY;++i)if(f=new ol.TileCoord(c,h,i),g=f.toString(),!a[c]||!a[c][g])f=this.getTile(f),b(f)?(a[c]||(a[c]={}),a[c][g]=f):e=!1;return e};ol.source.TileSource.prototype.ol_source_Source_prototype$getResolutions=function(){return this.tileGrid.ol_tilegrid_TileGrid_prototype$getResolutions()};ol.source.TileSource.prototype.getTileGrid=function(){return this.tileGrid};
|
||||
ol.source.TileSource.prototype.useLowResolutionTiles=function(a,b){for(var c=this.getTileGrid(),d,e,f;0<=a;--a){d=c.getTileRangeForExtentAndZ(b,a);for(e=d.minX;e<=d.maxX;++e)for(f=d.minY;f<=d.maxY;++f)this.useTile(a+"/"+e+"/"+f)}};ol.source.TileSource.prototype.useTile=goog.nullFunction;ol.renderer={};
|
||||
ol.renderer.Layer=function(a,b){ol.Object.call(this);this.mapRenderer_=a;this.layer_=b;goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.BRIGHTNESS),this.handleLayerBrightnessChange,!1,this);goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.CONTRAST),this.handleLayerContrastChange,!1,this);goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.HUE),this.handleLayerHueChange,!1,this);goog.events.listen(this.layer_,goog.events.EventType.LOAD,
|
||||
this.handleLayerLoad,!1,this);goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.OPACITY),this.handleLayerOpacityChange,!1,this);goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.SATURATION),this.handleLayerSaturationChange,!1,this);goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.VISIBLE),this.handleLayerVisibleChange,!1,this)};goog.inherits(ol.renderer.Layer,ol.Object);
|
||||
ol.renderer.Layer.prototype.ol_renderer_Layer_prototype$dispatchChangeEvent=function(){this.dispatchEvent(goog.events.EventType.CHANGE)};ol.renderer.Layer.prototype.getLayer=function(){return this.layer_};ol.renderer.Layer.prototype.ol_renderer_Layer_prototype$getMap=function(){return this.mapRenderer_.ol_renderer_Map_prototype$getMap()};ol.renderer.Layer.prototype.getMapRenderer=function(){return this.mapRenderer_};ol.renderer.Layer.prototype.handleLayerBrightnessChange=goog.nullFunction;
|
||||
ol.renderer.Layer.prototype.handleLayerContrastChange=goog.nullFunction;ol.renderer.Layer.prototype.handleLayerHueChange=goog.nullFunction;ol.renderer.Layer.prototype.handleImageChange=function(a){a.target.getState()===ol.ImageState.LOADED&&this.ol_renderer_Layer_prototype$getMap().requestRenderFrame()};ol.renderer.Layer.prototype.handleLayerLoad=function(){this.ol_renderer_Layer_prototype$dispatchChangeEvent()};ol.renderer.Layer.prototype.handleLayerOpacityChange=function(){this.ol_renderer_Layer_prototype$dispatchChangeEvent()};
|
||||
ol.renderer.Layer.prototype.handleLayerSaturationChange=goog.nullFunction;ol.renderer.Layer.prototype.handleLayerVisibleChange=function(){this.ol_renderer_Layer_prototype$dispatchChangeEvent()};ol.renderer.Layer.prototype.ol_renderer_Layer_prototype$handleTileChange=function(a){a.target.getState()===ol.TileState.LOADED&&this.ol_renderer_Layer_prototype$getMap().requestRenderFrame()};
|
||||
ol.renderer.Layer.prototype.scheduleExpireCache=function(a,b){b.ol_source_TileSource_prototype$canExpireCache()&&a.postRenderFunctions.push(goog.partial(function(a,b,e){b=goog.getUid(a).toString();a.expireCache(e.usedTiles[b])},b))};ol.renderer.Layer.prototype.updateAttributions=function(a,b){var c,d;for(c=0;c<b.length;++c)d=b[c],a[goog.getUid(d).toString()]=d};
|
||||
ol.renderer.Layer.prototype.updateUsedTiles=function(a,b,c,d){b=goog.getUid(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)};ol.renderer.Layer.prototype.updateWantedTiles=function(a,b,c){b=goog.getUid(b).toString();c=c.toString();b in a||(a[b]={});a[b][c]=!0};ol.renderer.Map=function(a,b){goog.Disposable.call(this);this.container_=a;this.map=b;this.layerRenderers={};this.mapLayersChangedListenerKey_=goog.events.listen(b,ol.Object.getChangedEventType(ol.MapProperty.LAYERS),this.handleLayersChanged,!1,this);this.layersListenerKeys_=null;this.layerRendererChangeListenKeys_={}};goog.inherits(ol.renderer.Map,goog.Disposable);ol.renderer.Map.prototype.addLayer=function(a){var b=this.createLayerRenderer(a);this.setLayerRenderer(a,b)};
|
||||
ol.renderer.Map.prototype.calculateMatrices2D=function(a){var b=a.view2DState,c=a.coordinateToPixelMatrix;goog.vec.Mat4.makeIdentity(c);goog.vec.Mat4.translate(c,a.size.width/2,a.size.height/2,0);goog.vec.Mat4.scale(c,1/b.resolution,-1/b.resolution,1);goog.vec.Mat4.rotateZ(c,-b.rotation);goog.vec.Mat4.translate(c,-b.center.x,-b.center.y,0);a=goog.vec.Mat4.invert(c,a.pixelToCoordinateMatrix);goog.asserts.assert(a)};ol.renderer.Map.prototype.createLayerRenderer=goog.functions.NULL;
|
||||
ol.renderer.Map.prototype.goog_Disposable_prototype$disposeInternal=function(){goog.object.forEach(this.layerRenderers,function(a){goog.dispose(a)});goog.events.unlistenByKey(this.mapLayersChangedListenerKey_);goog.isNull(this.layersListenerKeys_)||goog.array.forEach(this.layersListenerKeys_,goog.events.unlistenByKey);ol.renderer.Map.superClass_.goog_Disposable_prototype$disposeInternal.call(this)};ol.renderer.Map.prototype.getCanvas=goog.functions.NULL;
|
||||
ol.renderer.Map.prototype.getLayerRenderer=function(a){a=goog.getUid(a);a=this.layerRenderers[a];goog.asserts.assert(goog.isDef(a));return a};ol.renderer.Map.prototype.ol_renderer_Map_prototype$getMap=function(){return this.map};ol.renderer.Map.prototype.handleLayerRendererChange=function(){this.ol_renderer_Map_prototype$getMap().render()};ol.renderer.Map.prototype.handleLayersAdd=function(a){this.addLayer(a.elem)};
|
||||
ol.renderer.Map.prototype.handleLayersChanged=function(){goog.disposeAll(goog.object.getValues(this.layerRenderers));this.layerRenderers={};goog.isNull(this.layersListenerKeys_)||(goog.array.forEach(this.layersListenerKeys_,goog.events.unlistenByKey),this.layersListenerKeys_=null);var a=this.map.getLayers();goog.isDefAndNotNull(a)&&(a.forEach(this.addLayer,this),this.layersListenerKeys_=[goog.events.listen(a,ol.CollectionEventType.ADD,this.handleLayersAdd,!1,this),goog.events.listen(a,ol.CollectionEventType.REMOVE,
|
||||
this.handleLayersRemove,!1,this)])};ol.renderer.Map.prototype.handleLayersRemove=function(a){this.removeLayer(a.elem)};ol.renderer.Map.prototype.removeLayer=function(a){goog.dispose(this.removeLayerRenderer(a))};ol.renderer.Map.prototype.removeLayerRenderer=function(a){a=goog.getUid(a);if(a in this.layerRenderers){var b=this.layerRenderers[a];delete this.layerRenderers[a];goog.events.unlistenByKey(this.layerRendererChangeListenKeys_[a]);delete this.layerRendererChangeListenKeys_[a];return b}return null};
|
||||
ol.renderer.Map.prototype.ol_renderer_Map_prototype$renderFrame=goog.nullFunction;ol.renderer.Map.prototype.setLayerRenderer=function(a,b){var c=goog.getUid(a);goog.asserts.assert(!(c in this.layerRenderers));this.layerRenderers[c]=b;goog.asserts.assert(!(c in this.layerRendererChangeListenKeys_));this.layerRendererChangeListenKeys_[c]=goog.events.listen(b,goog.events.EventType.CHANGE,this.handleLayerRendererChange,!1,this)};ol.ImageUrlFunction={};ol.ImageUrlFunction.createBboxParam=function(a,b){return function(c,d){var e="ne"==b.substr(0,2)?[c.minY,c.minX,c.maxY,c.maxX]:[c.minX,c.minY,c.maxX,c.maxY];return goog.uri.utils.appendParams(a,"BBOX",e.join(","),"HEIGHT",d.height,"WIDTH",d.width)}};ol.ImageUrlFunction.nullImageUrlFunction=function(){};ol.source.ImageSource=function(a){ol.source.Source.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.imageUrlFunction=goog.isDef(a.imageUrlFunction)?a.imageUrlFunction:ol.ImageUrlFunction.nullImageUrlFunction;this.ol_source_ImageSource$crossOrigin_=goog.isDef(a.crossOrigin)?a.crossOrigin:"anonymous";this.ol_source_ImageSource$resolutions_=goog.isDef(a.resolutions)?a.resolutions:null;goog.asserts.assert(goog.isNull(this.ol_source_ImageSource$resolutions_)||goog.array.isSorted(this.ol_source_ImageSource$resolutions_,
|
||||
function(a,c){return c-a},!0))};goog.inherits(ol.source.ImageSource,ol.source.Source);ol.source.ImageSource.prototype.createImage=function(a,b,c){var d=null,c=this.imageUrlFunction(a,c);goog.isDef(c)&&(d=new ol.Image(a,b,c,this.ol_source_ImageSource$crossOrigin_,this.getAttributions()));return d};
|
||||
ol.source.ImageSource.prototype.findNearestResolution=function(a){goog.isNull(this.ol_source_ImageSource$resolutions_)||(a=ol.array.linearFindNearest(this.ol_source_ImageSource$resolutions_,a),a=this.ol_source_ImageSource$resolutions_[a]);return a};ol.layer.ImageLayer=function(a){ol.layer.Layer.call(this,a)};goog.inherits(ol.layer.ImageLayer,ol.layer.Layer);ol.layer.ImageLayer.prototype.getImageSource=function(){return this.getSource()};ol.layer.TileLayer=function(a){ol.layer.Layer.call(this,a)};goog.inherits(ol.layer.TileLayer,ol.layer.Layer);ol.layer.TileLayer.prototype.getTileSource=function(){return this.getSource()};ol.renderer.canvas={};ol.renderer.canvas.Layer=function(a,b){ol.renderer.Layer.call(this,a,b)};goog.inherits(ol.renderer.canvas.Layer,ol.renderer.Layer);ol.renderer.canvas.ImageLayer=function(a,b){ol.renderer.canvas.Layer.call(this,a,b);this.ol_renderer_canvas_ImageLayer$image_=null;this.ol_renderer_canvas_ImageLayer$transform_=goog.vec.Mat4.createNumber()};goog.inherits(ol.renderer.canvas.ImageLayer,ol.renderer.canvas.Layer);ol.renderer.canvas.ImageLayer.prototype.getImage=function(){return goog.isNull(this.ol_renderer_canvas_ImageLayer$image_)?null:this.ol_renderer_canvas_ImageLayer$image_.getImageElement(this)};
|
||||
ol.renderer.canvas.ImageLayer.prototype.ol_renderer_canvas_ImageLayer_prototype$getImageLayer=function(){return this.getLayer()};ol.renderer.canvas.ImageLayer.prototype.getTransform=function(){return this.ol_renderer_canvas_ImageLayer$transform_};
|
||||
ol.renderer.canvas.ImageLayer.prototype.ol_renderer_Layer_prototype$renderFrame=function(a){var b=a.view2DState,c=b.center,d=b.resolution,b=b.rotation,e;e=this.ol_renderer_canvas_ImageLayer_prototype$getImageLayer().getImageSource();var f=a.viewHints;!f[ol.ViewHint.ANIMATING]&&!f[ol.ViewHint.PANNING]&&(e=e.getImage(a.extent,d),goog.isNull(e)||(f=e.getState(),f==ol.ImageState.IDLE?(goog.events.listenOnce(e,goog.events.EventType.CHANGE,this.handleImageChange,!1,this),e.load()):f==ol.ImageState.LOADED&&
|
||||
(this.ol_renderer_canvas_ImageLayer$image_=e)));if(!goog.isNull(this.ol_renderer_canvas_ImageLayer$image_)){e=this.ol_renderer_canvas_ImageLayer$image_;var f=e.getExtent(),g=e.ol_Image_prototype$getResolution(),h=this.ol_renderer_canvas_ImageLayer$transform_;goog.vec.Mat4.makeIdentity(h);goog.vec.Mat4.translate(h,a.size.width/2,a.size.height/2,0);goog.vec.Mat4.rotateZ(h,b);goog.vec.Mat4.scale(h,g/d,g/d,1);goog.vec.Mat4.translate(h,(f.minX-c.x)/g,(c.y-f.maxY)/g,0);this.updateAttributions(a.attributions,
|
||||
e.getAttributions())}};ol.renderer.canvas.TileLayer=function(a,b){ol.renderer.canvas.Layer.call(this,a,b);this.ol_renderer_canvas_TileLayer$context_=this.ol_renderer_canvas_TileLayer$canvasSize_=this.ol_renderer_canvas_TileLayer$canvas_=null;this.ol_renderer_canvas_TileLayer$transform_=goog.vec.Mat4.createNumber()};goog.inherits(ol.renderer.canvas.TileLayer,ol.renderer.canvas.Layer);ol.renderer.canvas.TileLayer.prototype.getImage=function(){return this.ol_renderer_canvas_TileLayer$canvas_};
|
||||
ol.renderer.canvas.TileLayer.prototype.ol_renderer_canvas_TileLayer_prototype$getTileLayer=function(){return this.getLayer()};ol.renderer.canvas.TileLayer.prototype.getTransform=function(){return this.ol_renderer_canvas_TileLayer$transform_};
|
||||
ol.renderer.canvas.TileLayer.prototype.ol_renderer_Layer_prototype$renderFrame=function(a){var b=a.view2DState,c=this.ol_renderer_canvas_TileLayer_prototype$getTileLayer().getTileSource(),d=goog.getUid(c).toString(),e=c.getTileGrid(),f=e.getTileSize(),g=e.getZForResolution(b.resolution),h=e.ol_tilegrid_TileGrid_prototype$getResolution(g),i=e.getTileRangeForExtentAndResolution(a.extent,h),k=new ol.Size(f.width*i.getWidth(),f.height*i.getHeight()),j,l;goog.isNull(this.ol_renderer_canvas_TileLayer$canvas_)?
|
||||
(j=goog.dom.createElement(goog.dom.TagName.CANVAS),j.width=k.width,j.height=k.height,l=j.getContext("2d"),this.ol_renderer_canvas_TileLayer$canvas_=j,this.ol_renderer_canvas_TileLayer$canvasSize_=k,this.ol_renderer_canvas_TileLayer$context_=l):(j=this.ol_renderer_canvas_TileLayer$canvas_,l=this.ol_renderer_canvas_TileLayer$context_,this.ol_renderer_canvas_TileLayer$canvasSize_.equals(k)||(j.width=k.width,j.height=k.height,this.ol_renderer_canvas_TileLayer$canvasSize_=k));l.clearRect(0,0,k.width,k.height);
|
||||
k={};k[g]={};var m=goog.bind(c.findLoadedTiles,c,k,function(a){return!goog.isNull(a)&&a.getState()==ol.TileState.LOADED}),p,n,q,r;for(q=i.minX;q<=i.maxX;++q)for(r=i.minY;r<=i.maxY;++r)if(n=new ol.TileCoord(g,q,r),j=c.getTile(n),!goog.isNull(j)){p=j.getState();if(p==ol.TileState.IDLE)goog.events.listenOnce(j,goog.events.EventType.CHANGE,this.ol_renderer_Layer_prototype$handleTileChange,!1,this),this.updateWantedTiles(a.wantedTiles,c,n),p=e.getTileCoordCenter(n),a.tileQueue.ol_TileQueue_prototype$enqueue(j,
|
||||
d,p);else if(p==ol.TileState.LOADED){k[g][n.toString()]=j;continue}else if(p==ol.TileState.ERROR)continue;e.forEachTileCoordParentTileRange(n,m)}m=goog.array.map(goog.object.getKeys(k),Number);goog.array.sort(m);var d=e.getTileCoordExtent(new ol.TileCoord(g,i.minX,i.maxY)).getTopLeft(),t;for(n=0;n<m.length;++n)if(j=m[n],q=k[j],j==g)for(t in q)j=q[t],l.drawImage(j.getImage(),f.width*(j.tileCoord.x-i.minX),f.height*(i.maxY-j.tileCoord.y));else for(t in r=e.ol_tilegrid_TileGrid_prototype$getResolution(j)/
|
||||
h,q)j=q[t],p=e.getTileCoordExtent(j.tileCoord),l.drawImage(j.getImage(),(p.minX-d.x)/h,(d.y-p.maxY)/h,r*f.width,r*f.height);this.updateUsedTiles(a.usedTiles,c,g,i);c.useLowResolutionTiles(g,a.extent);this.scheduleExpireCache(a,c);c=this.ol_renderer_canvas_TileLayer$transform_;goog.vec.Mat4.makeIdentity(c);goog.vec.Mat4.translate(c,a.size.width/2,a.size.height/2,0);goog.vec.Mat4.rotateZ(c,b.rotation);goog.vec.Mat4.scale(c,h/b.resolution,h/b.resolution,1);goog.vec.Mat4.translate(c,(d.x-b.center.x)/
|
||||
h,(b.center.y-d.y)/h,0)};ol.renderer.canvas.Map=function(a,b){ol.renderer.Map.call(this,a,b);this.ol_renderer_canvas_Map$canvasSize_=new ol.Size(a.clientHeight,a.clientWidth);this.ol_renderer_canvas_Map$canvas_=goog.dom.createElement(goog.dom.TagName.CANVAS);this.ol_renderer_canvas_Map$canvas_.height=this.ol_renderer_canvas_Map$canvasSize_.height;this.ol_renderer_canvas_Map$canvas_.width=this.ol_renderer_canvas_Map$canvasSize_.width;this.ol_renderer_canvas_Map$canvas_.className="ol-unselectable";goog.dom.insertChildAt(a,
|
||||
this.ol_renderer_canvas_Map$canvas_,0);this.ol_renderer_canvas_Map$renderedVisible_=!0;this.ol_renderer_canvas_Map$context_=this.ol_renderer_canvas_Map$canvas_.getContext("2d")};goog.inherits(ol.renderer.canvas.Map,ol.renderer.Map);ol.renderer.canvas.Map.prototype.createLayerRenderer=function(a){if(a instanceof ol.layer.ImageLayer)return new ol.renderer.canvas.ImageLayer(this,a);if(a instanceof ol.layer.TileLayer)return new ol.renderer.canvas.TileLayer(this,a);goog.asserts.assert(!1);return null};
|
||||
ol.renderer.canvas.Map.prototype.getCanvas=function(){return this.ol_renderer_canvas_Map$canvas_};
|
||||
ol.renderer.canvas.Map.prototype.ol_renderer_Map_prototype$renderFrame=function(a){if(goog.isNull(a))this.ol_renderer_canvas_Map$renderedVisible_&&(goog.style.showElement(this.ol_renderer_canvas_Map$canvas_,!1),this.ol_renderer_canvas_Map$renderedVisible_=!1);else{var b=a.size;this.ol_renderer_canvas_Map$canvasSize_.equals(b)||(this.ol_renderer_canvas_Map$canvas_.width=b.width,this.ol_renderer_canvas_Map$canvas_.height=b.height,this.ol_renderer_canvas_Map$canvasSize_=b);var c=this.ol_renderer_canvas_Map$context_;
|
||||
c.setTransform(1,0,0,1,0,0);var d=a.backgroundColor;c.fillStyle="rgb("+d.r.toFixed(0)+","+d.g.toFixed(0)+","+d.ol_Color$b.toFixed(0)+")";c.globalAlpha=1;c.fillRect(0,0,b.width,b.height);goog.array.forEach(a.layersArray,function(b){var d=a.layerStates[goog.getUid(b)];if(d.visible)if(d.ready){var g=this.getLayerRenderer(b);g.ol_renderer_Layer_prototype$renderFrame(a,d);b=g.getImage();goog.isNull(b)||(g=g.getTransform(),c.setTransform(goog.vec.Mat4.getElement(g,0,0),goog.vec.Mat4.getElement(g,1,0),goog.vec.Mat4.getElement(g,
|
||||
0,1),goog.vec.Mat4.getElement(g,1,1),goog.vec.Mat4.getElement(g,0,3),goog.vec.Mat4.getElement(g,1,3)),c.globalAlpha=d.opacity,c.drawImage(b,0,0))}else a.animate=!0},this);this.ol_renderer_canvas_Map$renderedVisible_||(goog.style.showElement(this.ol_renderer_canvas_Map$canvas_,!0),this.ol_renderer_canvas_Map$renderedVisible_=!0);this.calculateMatrices2D(a)}};ol.canvas={};ol.canvas.SUPPORTED=function(){if(!("HTMLCanvasElement"in goog.global))return!1;try{var a=goog.dom.createElement(goog.dom.TagName.CANVAS);return!goog.isNull(a.getContext("2d"))}catch(b){return!1}}();ol.renderer.canvas.SUPPORTED=ol.canvas.SUPPORTED;ol.dom={};ol.dom.BrowserFeature={CAN_USE_CSS_TRANSFORM:!1,CAN_USE_CSS_TRANSFORM3D:!0,CAN_USE_MATRIX_FILTER:!1};ol.dom.setTransform=function(a,b){var c=a.style;c.WebkitTransform=b;c.MozTransform=b;c.OTransform=b;c.transform=b};
|
||||
ol.dom.transformElement2D=function(a,b,c){var d;if(ol.dom.BrowserFeature.CAN_USE_CSS_TRANSFORM3D){if(goog.isDef(c)){var e=Array(16);for(d=0;16>d;++d)e[d]=b[d].toFixed(c);c=e.join(",")}else c=b.join(",");ol.dom.setTransform(a,"matrix3d("+c+")")}else if(ol.dom.BrowserFeature.CAN_USE_CSS_TRANSFORM){b=[goog.vec.Mat4.getElement(b,0,0),goog.vec.Mat4.getElement(b,1,0),goog.vec.Mat4.getElement(b,0,1),goog.vec.Mat4.getElement(b,1,1),goog.vec.Mat4.getElement(b,0,3),goog.vec.Mat4.getElement(b,1,3)];if(goog.isDef(c)){e=
|
||||
Array(6);for(d=0;6>d;++d)e[d]=b[d].toFixed(c);c=e.join(",")}else c=b.join(",");ol.dom.setTransform(a,"matrix("+c+")")}else ol.dom.BrowserFeature.CAN_USE_MATRIX_FILTER?goog.asserts.assert(!1):(a=a.style,a.left=Math.round(goog.vec.Mat4.getElement(b,0,3))+"px",a.top=Math.round(goog.vec.Mat4.getElement(b,1,3))+"px")};ol.renderer.dom={};ol.renderer.dom.Layer=function(a,b,c){ol.renderer.Layer.call(this,a,b);this.target=c};goog.inherits(ol.renderer.dom.Layer,ol.renderer.Layer);ol.renderer.dom.Layer.prototype.goog_Disposable_prototype$disposeInternal=function(){goog.dom.removeNode(this.target);ol.renderer.dom.Layer.superClass_.goog_Disposable_prototype$disposeInternal.call(this)};ol.renderer.dom.Layer.prototype.ol_renderer_dom_Layer_prototype$getTarget=function(){return this.target};ol.renderer.dom.ImageLayer=function(a,b){var c=goog.dom.createElement(goog.dom.TagName.DIV);c.className="ol-layer-image";c.style.position="absolute";ol.renderer.dom.Layer.call(this,a,b,c);this.ol_renderer_dom_ImageLayer$image_=null;this.ol_renderer_dom_ImageLayer$transform_=goog.vec.Mat4.createNumberIdentity()};goog.inherits(ol.renderer.dom.ImageLayer,ol.renderer.dom.Layer);ol.renderer.dom.ImageLayer.prototype.ol_renderer_dom_ImageLayer_prototype$getImageLayer=function(){return this.getLayer()};
|
||||
ol.renderer.dom.ImageLayer.prototype.ol_renderer_Layer_prototype$renderFrame=function(a){var b=a.view2DState,c=b.center,d=b.resolution,e=b.rotation,b=this.ol_renderer_dom_ImageLayer$image_,f=this.ol_renderer_dom_ImageLayer_prototype$getImageLayer().getImageSource(),g=a.viewHints;!g[ol.ViewHint.ANIMATING]&&!g[ol.ViewHint.PANNING]&&(f=f.getImage(a.extent,d),goog.isNull(f)||(g=f.getState(),g==ol.ImageState.IDLE?(goog.events.listenOnce(f,goog.events.EventType.CHANGE,this.handleImageChange,!1,this),f.load()):
|
||||
g==ol.ImageState.LOADED&&(b=f)));if(!goog.isNull(b)){var g=b.getExtent(),h=b.ol_Image_prototype$getResolution(),f=goog.vec.Mat4.createNumber();goog.vec.Mat4.makeIdentity(f);goog.vec.Mat4.translate(f,a.size.width/2,a.size.height/2,0);goog.vec.Mat4.rotateZ(f,e);goog.vec.Mat4.scale(f,h/d,h/d,1);goog.vec.Mat4.translate(f,(g.minX-c.x)/h,(c.y-g.maxY)/h,0);b!=this.ol_renderer_dom_ImageLayer$image_&&(c=b.getImageElement(this),c.style.position="absolute",goog.dom.removeChildren(this.target),goog.dom.appendChild(this.target,
|
||||
c),this.ol_renderer_dom_ImageLayer$image_=b);this.setTransform(f);this.updateAttributions(a.attributions,b.getAttributions())}};ol.renderer.dom.ImageLayer.prototype.setTransform=function(a){goog.vec.Mat4.equals(a,this.ol_renderer_dom_ImageLayer$transform_)||(ol.dom.transformElement2D(this.target,a,6),goog.vec.Mat4.setFromArray(this.ol_renderer_dom_ImageLayer$transform_,a))};ol.renderer.dom.TileLayer=function(a,b){var c=goog.dom.createElement(goog.dom.TagName.DIV);c.className="ol-layer-tile";c.style.position="absolute";ol.renderer.dom.Layer.call(this,a,b,c);this.ol_renderer_dom_TileLayer$renderedVisible_=!0;this.renderedOpacity_=1;this.tileLayerZs_={}};goog.inherits(ol.renderer.dom.TileLayer,ol.renderer.dom.Layer);ol.renderer.dom.TileLayer.prototype.ol_renderer_dom_TileLayer_prototype$getTileLayer=function(){return this.getLayer()};
|
||||
ol.renderer.dom.TileLayer.prototype.ol_renderer_Layer_prototype$renderFrame=function(a,b){if(b.visible){var c=a.view2DState,d=this.ol_renderer_dom_TileLayer_prototype$getTileLayer().getTileSource(),e=goog.getUid(d).toString(),f=d.getTileGrid(),g=f.getZForResolution(c.resolution),h=f.ol_tilegrid_TileGrid_prototype$getResolution(g),h=f.getTileRangeForExtentAndResolution(a.extent,h),i={};i[g]={};var k=goog.bind(d.findLoadedTiles,d,i,function(a){return!goog.isNull(a)&&a.getState()==ol.TileState.LOADED}),
|
||||
j,l,m,p,n;for(p=h.minX;p<=h.maxX;++p)for(n=h.minY;n<=h.maxY;++n)if(m=new ol.TileCoord(g,p,n),j=d.getTile(m),!goog.isNull(j)){l=j.getState();if(l==ol.TileState.IDLE)goog.events.listenOnce(j,goog.events.EventType.CHANGE,this.ol_renderer_Layer_prototype$handleTileChange,!1,this),this.updateWantedTiles(a.wantedTiles,d,m),l=f.getTileCoordCenter(m),a.tileQueue.ol_TileQueue_prototype$enqueue(j,e,l);else if(l==ol.TileState.LOADED){i[g][m.toString()]=j;continue}else if(l==ol.TileState.ERROR)continue;f.forEachTileCoordParentTileRange(m,
|
||||
k)}m=goog.array.map(goog.object.getKeys(i),Number);goog.array.sort(m);e={};f.getTileSize();var q;for(p=0;p<m.length;++p){j=m[p];j in this.tileLayerZs_?k=this.tileLayerZs_[j]:(k=f.getTileCoordForCoordAndZ(c.center,j),k=new ol.renderer.dom.TileLayerZ_(f,k),e[j]=!0,this.tileLayerZs_[j]=k);j=i[j];for(q in j)k.addTile(j[q]);k.finalizeAddTiles()}f=goog.array.map(goog.object.getKeys(this.tileLayerZs_),Number);goog.array.sort(f);m=goog.vec.Mat4.createNumber();for(q=0;q<f.length;++q)if(j=f[q],k=this.tileLayerZs_[j],
|
||||
j in i)if(n=k.ol_renderer_dom_TileLayerZ__prototype$getResolution(),p=k.ol_renderer_dom_TileLayerZ__prototype$getOrigin(),goog.vec.Mat4.makeIdentity(m),goog.vec.Mat4.translate(m,a.size.width/2,a.size.height/2,0),goog.vec.Mat4.rotateZ(m,c.rotation),goog.vec.Mat4.scale(m,n/c.resolution,n/c.resolution,1),goog.vec.Mat4.translate(m,(p.x-c.center.x)/n,(c.center.y-p.y)/n,0),k.setTransform(m),j in e){for(j-=1;0<=j;--j)if(j in this.tileLayerZs_){goog.dom.insertSiblingAfter(k.target,this.tileLayerZs_[j].target);
|
||||
break}0>j&&goog.dom.insertChildAt(this.target,k.target,0)}else!a.viewHints[ol.ViewHint.ANIMATING]&&!a.viewHints[ol.ViewHint.PANNING]&&k.removeTilesOutsideExtent(a.extent);else goog.dom.removeNode(k.target),delete this.tileLayerZs_[j];b.opacity!=this.renderedOpacity_&&(goog.style.setOpacity(this.target,b.opacity),this.renderedOpacity_=b.opacity);b.visible&&!this.ol_renderer_dom_TileLayer$renderedVisible_&&(goog.style.showElement(this.target,!0),this.ol_renderer_dom_TileLayer$renderedVisible_=!0);this.updateUsedTiles(a.usedTiles,
|
||||
d,g,h);d.useLowResolutionTiles(g,a.extent);this.scheduleExpireCache(a,d)}else this.ol_renderer_dom_TileLayer$renderedVisible_&&(goog.style.showElement(this.target,!1),this.ol_renderer_dom_TileLayer$renderedVisible_=!1)};
|
||||
ol.renderer.dom.TileLayerZ_=function(a,b){this.target=goog.dom.createElement(goog.dom.TagName.DIV);this.target.style.position="absolute";this.tileGrid_=a;this.tileCoordOrigin_=b;this.ol_renderer_dom_TileLayerZ_$origin_=a.getTileCoordExtent(b).getTopLeft();this.ol_renderer_dom_TileLayerZ_$resolution_=a.ol_tilegrid_TileGrid_prototype$getResolution(b.z);this.tiles_={};this.documentFragment_=null;this.ol_renderer_dom_TileLayerZ_$transform_=goog.vec.Mat4.createNumberIdentity()};
|
||||
ol.renderer.dom.TileLayerZ_.prototype.addTile=function(a){var b=a.tileCoord;goog.asserts.assert(b.z==this.tileCoordOrigin_.z);var c=b.toString();if(!(c in this.tiles_)){var d=this.tileGrid_.getTileSize(),e=a.getImage(this),f=e.style;f.position="absolute";f.left=(b.x-this.tileCoordOrigin_.x)*d.width+"px";f.top=(this.tileCoordOrigin_.y-b.y)*d.height+"px";goog.isNull(this.documentFragment_)&&(this.documentFragment_=document.createDocumentFragment());goog.dom.appendChild(this.documentFragment_,e);this.tiles_[c]=
|
||||
a}};ol.renderer.dom.TileLayerZ_.prototype.finalizeAddTiles=function(){goog.isNull(this.documentFragment_)||(goog.dom.appendChild(this.target,this.documentFragment_),this.documentFragment_=null)};ol.renderer.dom.TileLayerZ_.prototype.ol_renderer_dom_TileLayerZ__prototype$getOrigin=function(){return this.ol_renderer_dom_TileLayerZ_$origin_};ol.renderer.dom.TileLayerZ_.prototype.ol_renderer_dom_TileLayerZ__prototype$getResolution=function(){return this.ol_renderer_dom_TileLayerZ_$resolution_};
|
||||
ol.renderer.dom.TileLayerZ_.prototype.removeTilesOutsideExtent=function(a){var b=this.tileGrid_.getTileRangeForExtentAndZ(a,this.tileCoordOrigin_.z),a=[],c,d;for(d in this.tiles_)c=this.tiles_[d],b.contains(c.tileCoord)||a.push(c);for(b=0;b<a.length;++b)c=a[b],d=c.tileCoord.toString(),goog.dom.removeNode(c.getImage(this)),delete this.tiles_[d]};
|
||||
ol.renderer.dom.TileLayerZ_.prototype.setTransform=function(a){goog.vec.Mat4.equals(a,this.ol_renderer_dom_TileLayerZ_$transform_)||(ol.dom.transformElement2D(this.target,a,6),goog.vec.Mat4.setFromArray(this.ol_renderer_dom_TileLayerZ_$transform_,a))};ol.renderer.dom.Map=function(a,b){ol.renderer.Map.call(this,a,b);this.layersPane_=goog.dom.createElement(goog.dom.TagName.DIV);this.layersPane_.className="ol-layers ol-unselectable";var c=this.layersPane_.style;c.position="absolute";c.width="100%";c.height="100%";goog.dom.insertChildAt(a,this.layersPane_,0);this.ol_renderer_dom_Map$renderedVisible_=!0};goog.inherits(ol.renderer.dom.Map,ol.renderer.Map);
|
||||
ol.renderer.dom.Map.prototype.addLayer=function(a){ol.renderer.dom.Map.superClass_.addLayer.call(this,a);this.ol_renderer_Map_prototype$getMap().render()};ol.renderer.dom.Map.prototype.createLayerRenderer=function(a){var b;a instanceof ol.layer.TileLayer?b=new ol.renderer.dom.TileLayer(this,a):a instanceof ol.layer.ImageLayer&&(b=new ol.renderer.dom.ImageLayer(this,a));goog.asserts.assert(goog.isDef(b));goog.dom.appendChild(this.layersPane_,b.ol_renderer_dom_Layer_prototype$getTarget());return b};
|
||||
ol.renderer.dom.Map.prototype.ol_renderer_Map_prototype$renderFrame=function(a){goog.isNull(a)?this.ol_renderer_dom_Map$renderedVisible_&&(goog.style.showElement(this.layersPane_,!1),this.ol_renderer_dom_Map$renderedVisible_=!1):(goog.array.forEach(a.layersArray,function(b){var c=a.layerStates[goog.getUid(b)];c.ready&&this.getLayerRenderer(b).ol_renderer_Layer_prototype$renderFrame(a,c)},this),this.ol_renderer_dom_Map$renderedVisible_||(goog.style.showElement(this.layersPane_,!0),this.ol_renderer_dom_Map$renderedVisible_=
|
||||
!0),this.calculateMatrices2D(a))};ol.renderer.dom.SUPPORTED=!0;goog.webgl={};goog.webgl.DEPTH_BUFFER_BIT=256;goog.webgl.STENCIL_BUFFER_BIT=1024;goog.webgl.COLOR_BUFFER_BIT=16384;goog.webgl.POINTS=0;goog.webgl.LINES=1;goog.webgl.LINE_LOOP=2;goog.webgl.LINE_STRIP=3;goog.webgl.TRIANGLES=4;goog.webgl.TRIANGLE_STRIP=5;goog.webgl.TRIANGLE_FAN=6;goog.webgl.ZERO=0;goog.webgl.ONE=1;goog.webgl.SRC_COLOR=768;goog.webgl.ONE_MINUS_SRC_COLOR=769;goog.webgl.SRC_ALPHA=770;goog.webgl.ONE_MINUS_SRC_ALPHA=771;goog.webgl.DST_ALPHA=772;goog.webgl.ONE_MINUS_DST_ALPHA=773;
|
||||
goog.webgl.DST_COLOR=774;goog.webgl.ONE_MINUS_DST_COLOR=775;goog.webgl.SRC_ALPHA_SATURATE=776;goog.webgl.FUNC_ADD=32774;goog.webgl.BLEND_EQUATION=32777;goog.webgl.BLEND_EQUATION_RGB=32777;goog.webgl.BLEND_EQUATION_ALPHA=34877;goog.webgl.FUNC_SUBTRACT=32778;goog.webgl.FUNC_REVERSE_SUBTRACT=32779;goog.webgl.BLEND_DST_RGB=32968;goog.webgl.BLEND_SRC_RGB=32969;goog.webgl.BLEND_DST_ALPHA=32970;goog.webgl.BLEND_SRC_ALPHA=32971;goog.webgl.CONSTANT_COLOR=32769;goog.webgl.ONE_MINUS_CONSTANT_COLOR=32770;
|
||||
goog.webgl.CONSTANT_ALPHA=32771;goog.webgl.ONE_MINUS_CONSTANT_ALPHA=32772;goog.webgl.BLEND_COLOR=32773;goog.webgl.ARRAY_BUFFER=34962;goog.webgl.ELEMENT_ARRAY_BUFFER=34963;goog.webgl.ARRAY_BUFFER_BINDING=34964;goog.webgl.ELEMENT_ARRAY_BUFFER_BINDING=34965;goog.webgl.STREAM_DRAW=35040;goog.webgl.STATIC_DRAW=35044;goog.webgl.DYNAMIC_DRAW=35048;goog.webgl.BUFFER_SIZE=34660;goog.webgl.BUFFER_USAGE=34661;goog.webgl.CURRENT_VERTEX_ATTRIB=34342;goog.webgl.FRONT=1028;goog.webgl.BACK=1029;
|
||||
goog.webgl.FRONT_AND_BACK=1032;goog.webgl.CULL_FACE=2884;goog.webgl.BLEND=3042;goog.webgl.DITHER=3024;goog.webgl.STENCIL_TEST=2960;goog.webgl.DEPTH_TEST=2929;goog.webgl.SCISSOR_TEST=3089;goog.webgl.POLYGON_OFFSET_FILL=32823;goog.webgl.SAMPLE_ALPHA_TO_COVERAGE=32926;goog.webgl.SAMPLE_COVERAGE=32928;goog.webgl.NO_ERROR=0;goog.webgl.INVALID_ENUM=1280;goog.webgl.INVALID_VALUE=1281;goog.webgl.INVALID_OPERATION=1282;goog.webgl.OUT_OF_MEMORY=1285;goog.webgl.CW=2304;goog.webgl.CCW=2305;
|
||||
goog.webgl.LINE_WIDTH=2849;goog.webgl.ALIASED_POINT_SIZE_RANGE=33901;goog.webgl.ALIASED_LINE_WIDTH_RANGE=33902;goog.webgl.CULL_FACE_MODE=2885;goog.webgl.FRONT_FACE=2886;goog.webgl.DEPTH_RANGE=2928;goog.webgl.DEPTH_WRITEMASK=2930;goog.webgl.DEPTH_CLEAR_VALUE=2931;goog.webgl.DEPTH_FUNC=2932;goog.webgl.STENCIL_CLEAR_VALUE=2961;goog.webgl.STENCIL_FUNC=2962;goog.webgl.STENCIL_FAIL=2964;goog.webgl.STENCIL_PASS_DEPTH_FAIL=2965;goog.webgl.STENCIL_PASS_DEPTH_PASS=2966;goog.webgl.STENCIL_REF=2967;
|
||||
goog.webgl.STENCIL_VALUE_MASK=2963;goog.webgl.STENCIL_WRITEMASK=2968;goog.webgl.STENCIL_BACK_FUNC=34816;goog.webgl.STENCIL_BACK_FAIL=34817;goog.webgl.STENCIL_BACK_PASS_DEPTH_FAIL=34818;goog.webgl.STENCIL_BACK_PASS_DEPTH_PASS=34819;goog.webgl.STENCIL_BACK_REF=36003;goog.webgl.STENCIL_BACK_VALUE_MASK=36004;goog.webgl.STENCIL_BACK_WRITEMASK=36005;goog.webgl.VIEWPORT=2978;goog.webgl.SCISSOR_BOX=3088;goog.webgl.COLOR_CLEAR_VALUE=3106;goog.webgl.COLOR_WRITEMASK=3107;goog.webgl.UNPACK_ALIGNMENT=3317;
|
||||
goog.webgl.PACK_ALIGNMENT=3333;goog.webgl.MAX_TEXTURE_SIZE=3379;goog.webgl.MAX_VIEWPORT_DIMS=3386;goog.webgl.SUBPIXEL_BITS=3408;goog.webgl.RED_BITS=3410;goog.webgl.GREEN_BITS=3411;goog.webgl.BLUE_BITS=3412;goog.webgl.ALPHA_BITS=3413;goog.webgl.DEPTH_BITS=3414;goog.webgl.STENCIL_BITS=3415;goog.webgl.POLYGON_OFFSET_UNITS=10752;goog.webgl.POLYGON_OFFSET_FACTOR=32824;goog.webgl.TEXTURE_BINDING_2D=32873;goog.webgl.SAMPLE_BUFFERS=32936;goog.webgl.SAMPLES=32937;goog.webgl.SAMPLE_COVERAGE_VALUE=32938;
|
||||
goog.webgl.SAMPLE_COVERAGE_INVERT=32939;goog.webgl.COMPRESSED_TEXTURE_FORMATS=34467;goog.webgl.DONT_CARE=4352;goog.webgl.FASTEST=4353;goog.webgl.NICEST=4354;goog.webgl.GENERATE_MIPMAP_HINT=33170;goog.webgl.BYTE=5120;goog.webgl.UNSIGNED_BYTE=5121;goog.webgl.SHORT=5122;goog.webgl.UNSIGNED_SHORT=5123;goog.webgl.INT=5124;goog.webgl.UNSIGNED_INT=5125;goog.webgl.FLOAT=5126;goog.webgl.DEPTH_COMPONENT=6402;goog.webgl.ALPHA=6406;goog.webgl.RGB=6407;goog.webgl.RGBA=6408;goog.webgl.LUMINANCE=6409;
|
||||
goog.webgl.LUMINANCE_ALPHA=6410;goog.webgl.UNSIGNED_SHORT_4_4_4_4=32819;goog.webgl.UNSIGNED_SHORT_5_5_5_1=32820;goog.webgl.UNSIGNED_SHORT_5_6_5=33635;goog.webgl.FRAGMENT_SHADER=35632;goog.webgl.VERTEX_SHADER=35633;goog.webgl.MAX_VERTEX_ATTRIBS=34921;goog.webgl.MAX_VERTEX_UNIFORM_VECTORS=36347;goog.webgl.MAX_VARYING_VECTORS=36348;goog.webgl.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661;goog.webgl.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660;goog.webgl.MAX_TEXTURE_IMAGE_UNITS=34930;
|
||||
goog.webgl.MAX_FRAGMENT_UNIFORM_VECTORS=36349;goog.webgl.SHADER_TYPE=35663;goog.webgl.DELETE_STATUS=35712;goog.webgl.LINK_STATUS=35714;goog.webgl.VALIDATE_STATUS=35715;goog.webgl.ATTACHED_SHADERS=35717;goog.webgl.ACTIVE_UNIFORMS=35718;goog.webgl.ACTIVE_ATTRIBUTES=35721;goog.webgl.SHADING_LANGUAGE_VERSION=35724;goog.webgl.CURRENT_PROGRAM=35725;goog.webgl.NEVER=512;goog.webgl.LESS=513;goog.webgl.EQUAL=514;goog.webgl.LEQUAL=515;goog.webgl.GREATER=516;goog.webgl.NOTEQUAL=517;goog.webgl.GEQUAL=518;
|
||||
goog.webgl.ALWAYS=519;goog.webgl.KEEP=7680;goog.webgl.REPLACE=7681;goog.webgl.INCR=7682;goog.webgl.DECR=7683;goog.webgl.INVERT=5386;goog.webgl.INCR_WRAP=34055;goog.webgl.DECR_WRAP=34056;goog.webgl.VENDOR=7936;goog.webgl.RENDERER=7937;goog.webgl.VERSION=7938;goog.webgl.NEAREST=9728;goog.webgl.LINEAR=9729;goog.webgl.NEAREST_MIPMAP_NEAREST=9984;goog.webgl.LINEAR_MIPMAP_NEAREST=9985;goog.webgl.NEAREST_MIPMAP_LINEAR=9986;goog.webgl.LINEAR_MIPMAP_LINEAR=9987;goog.webgl.TEXTURE_MAG_FILTER=10240;
|
||||
goog.webgl.TEXTURE_MIN_FILTER=10241;goog.webgl.TEXTURE_WRAP_S=10242;goog.webgl.TEXTURE_WRAP_T=10243;goog.webgl.TEXTURE_2D=3553;goog.webgl.TEXTURE=5890;goog.webgl.TEXTURE_CUBE_MAP=34067;goog.webgl.TEXTURE_BINDING_CUBE_MAP=34068;goog.webgl.TEXTURE_CUBE_MAP_POSITIVE_X=34069;goog.webgl.TEXTURE_CUBE_MAP_NEGATIVE_X=34070;goog.webgl.TEXTURE_CUBE_MAP_POSITIVE_Y=34071;goog.webgl.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072;goog.webgl.TEXTURE_CUBE_MAP_POSITIVE_Z=34073;goog.webgl.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074;
|
||||
goog.webgl.MAX_CUBE_MAP_TEXTURE_SIZE=34076;goog.webgl.TEXTURE0=33984;goog.webgl.TEXTURE1=33985;goog.webgl.TEXTURE2=33986;goog.webgl.TEXTURE3=33987;goog.webgl.TEXTURE4=33988;goog.webgl.TEXTURE5=33989;goog.webgl.TEXTURE6=33990;goog.webgl.TEXTURE7=33991;goog.webgl.TEXTURE8=33992;goog.webgl.TEXTURE9=33993;goog.webgl.TEXTURE10=33994;goog.webgl.TEXTURE11=33995;goog.webgl.TEXTURE12=33996;goog.webgl.TEXTURE13=33997;goog.webgl.TEXTURE14=33998;goog.webgl.TEXTURE15=33999;goog.webgl.TEXTURE16=34E3;
|
||||
goog.webgl.TEXTURE17=34001;goog.webgl.TEXTURE18=34002;goog.webgl.TEXTURE19=34003;goog.webgl.TEXTURE20=34004;goog.webgl.TEXTURE21=34005;goog.webgl.TEXTURE22=34006;goog.webgl.TEXTURE23=34007;goog.webgl.TEXTURE24=34008;goog.webgl.TEXTURE25=34009;goog.webgl.TEXTURE26=34010;goog.webgl.TEXTURE27=34011;goog.webgl.TEXTURE28=34012;goog.webgl.TEXTURE29=34013;goog.webgl.TEXTURE30=34014;goog.webgl.TEXTURE31=34015;goog.webgl.ACTIVE_TEXTURE=34016;goog.webgl.REPEAT=10497;goog.webgl.CLAMP_TO_EDGE=33071;
|
||||
goog.webgl.MIRRORED_REPEAT=33648;goog.webgl.FLOAT_VEC2=35664;goog.webgl.FLOAT_VEC3=35665;goog.webgl.FLOAT_VEC4=35666;goog.webgl.INT_VEC2=35667;goog.webgl.INT_VEC3=35668;goog.webgl.INT_VEC4=35669;goog.webgl.BOOL=35670;goog.webgl.BOOL_VEC2=35671;goog.webgl.BOOL_VEC3=35672;goog.webgl.BOOL_VEC4=35673;goog.webgl.FLOAT_MAT2=35674;goog.webgl.FLOAT_MAT3=35675;goog.webgl.FLOAT_MAT4=35676;goog.webgl.SAMPLER_2D=35678;goog.webgl.SAMPLER_CUBE=35680;goog.webgl.VERTEX_ATTRIB_ARRAY_ENABLED=34338;
|
||||
goog.webgl.VERTEX_ATTRIB_ARRAY_SIZE=34339;goog.webgl.VERTEX_ATTRIB_ARRAY_STRIDE=34340;goog.webgl.VERTEX_ATTRIB_ARRAY_TYPE=34341;goog.webgl.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922;goog.webgl.VERTEX_ATTRIB_ARRAY_POINTER=34373;goog.webgl.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975;goog.webgl.COMPILE_STATUS=35713;goog.webgl.LOW_FLOAT=36336;goog.webgl.MEDIUM_FLOAT=36337;goog.webgl.HIGH_FLOAT=36338;goog.webgl.LOW_INT=36339;goog.webgl.MEDIUM_INT=36340;goog.webgl.HIGH_INT=36341;goog.webgl.FRAMEBUFFER=36160;
|
||||
goog.webgl.RENDERBUFFER=36161;goog.webgl.RGBA4=32854;goog.webgl.RGB5_A1=32855;goog.webgl.RGB565=36194;goog.webgl.DEPTH_COMPONENT16=33189;goog.webgl.STENCIL_INDEX=6401;goog.webgl.STENCIL_INDEX8=36168;goog.webgl.DEPTH_STENCIL=34041;goog.webgl.RENDERBUFFER_WIDTH=36162;goog.webgl.RENDERBUFFER_HEIGHT=36163;goog.webgl.RENDERBUFFER_INTERNAL_FORMAT=36164;goog.webgl.RENDERBUFFER_RED_SIZE=36176;goog.webgl.RENDERBUFFER_GREEN_SIZE=36177;goog.webgl.RENDERBUFFER_BLUE_SIZE=36178;
|
||||
goog.webgl.RENDERBUFFER_ALPHA_SIZE=36179;goog.webgl.RENDERBUFFER_DEPTH_SIZE=36180;goog.webgl.RENDERBUFFER_STENCIL_SIZE=36181;goog.webgl.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048;goog.webgl.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049;goog.webgl.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050;goog.webgl.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051;goog.webgl.COLOR_ATTACHMENT0=36064;goog.webgl.DEPTH_ATTACHMENT=36096;goog.webgl.STENCIL_ATTACHMENT=36128;goog.webgl.DEPTH_STENCIL_ATTACHMENT=33306;
|
||||
goog.webgl.NONE=0;goog.webgl.FRAMEBUFFER_COMPLETE=36053;goog.webgl.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054;goog.webgl.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055;goog.webgl.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057;goog.webgl.FRAMEBUFFER_UNSUPPORTED=36061;goog.webgl.FRAMEBUFFER_BINDING=36006;goog.webgl.RENDERBUFFER_BINDING=36007;goog.webgl.MAX_RENDERBUFFER_SIZE=34024;goog.webgl.INVALID_FRAMEBUFFER_OPERATION=1286;goog.webgl.UNPACK_FLIP_Y_WEBGL=37440;goog.webgl.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441;
|
||||
goog.webgl.CONTEXT_LOST_WEBGL=37442;goog.webgl.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443;goog.webgl.BROWSER_DEFAULT_WEBGL=37444;goog.webgl.HALF_FLOAT_OES=36193;goog.webgl.FRAGMENT_SHADER_DERIVATIVE_HINT_OES=35723;goog.webgl.VERTEX_ARRAY_BINDING_OES=34229;goog.webgl.UNMASKED_VENDOR_WEBGL=37445;goog.webgl.UNMASKED_RENDERER_WEBGL=37446;goog.webgl.COMPRESSED_RGB_S3TC_DXT1_EXT=33776;goog.webgl.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777;goog.webgl.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778;
|
||||
goog.webgl.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779;goog.webgl.TEXTURE_MAX_ANISOTROPY_EXT=34046;goog.webgl.MAX_TEXTURE_MAX_ANISOTROPY_EXT=34047;ol.renderer.webgl={};ol.renderer.webgl.Shader=function(a){this.ol_renderer_webgl_Shader$source_=a};ol.renderer.webgl.Shader.prototype.getSource=function(){return this.ol_renderer_webgl_Shader$source_};ol.renderer.webgl.Shader.prototype.isAnimated=goog.functions.FALSE;ol.renderer.webgl.FragmentShader=function(a){ol.renderer.webgl.Shader.call(this,a)};goog.inherits(ol.renderer.webgl.FragmentShader,ol.renderer.webgl.Shader);ol.renderer.webgl.FragmentShader.prototype.getType=function(){return goog.webgl.FRAGMENT_SHADER};
|
||||
ol.renderer.webgl.VertexShader=function(a){ol.renderer.webgl.Shader.call(this,a)};goog.inherits(ol.renderer.webgl.VertexShader,ol.renderer.webgl.Shader);ol.renderer.webgl.VertexShader.prototype.getType=function(){return goog.webgl.VERTEX_SHADER};ol.vec={};ol.vec.Mat4={};ol.vec.Mat4.makeBrightness=function(a,b){goog.vec.Mat4.makeTranslate(a,b,b,b);return a};ol.vec.Mat4.makeContrast=function(a,b){goog.vec.Mat4.makeScale(a,b,b,b);var c=-0.5*b+0.5;goog.vec.Mat4.setColumnValues(a,3,c,c,c,1);return a};
|
||||
ol.vec.Mat4.makeHue=function(a,b){var c=Math.cos(b),d=Math.sin(b);goog.vec.Mat4.setFromValues(a,0.213+0.787*c-0.213*d,0.213-0.213*c+0.143*d,0.213-0.213*c-0.787*d,0,0.715-0.715*c-0.715*d,0.715+0.285*c+0.14*d,0.715-0.715*c+0.715*d,0,0.072-0.072*c+0.928*d,0.072-0.072*c-0.283*d,0.072+0.928*c+0.072*d,0,0,0,0,1);return a};
|
||||
ol.vec.Mat4.makeSaturation=function(a,b){goog.vec.Mat4.setFromValues(a,0.213+0.787*b,0.213-0.213*b,0.213-0.213*b,0,0.715-0.715*b,0.715+0.285*b,0.715-0.715*b,0,0.072-0.072*b,0.072-0.072*b,0.072+0.928*b,0,0,0,0,1);return a};ol.renderer.webgl.Layer=function(a,b){ol.renderer.Layer.call(this,a,b);this.brightnessMatrix_=goog.vec.Mat4.createFloat32();this.contrastMatrix_=goog.vec.Mat4.createFloat32();this.hueMatrix_=goog.vec.Mat4.createFloat32();this.saturationMatrix_=goog.vec.Mat4.createFloat32();this.colorMatrix_=goog.vec.Mat4.createFloat32();this.colorMatrixDirty_=!0;this.handleLayerBrightnessChange();this.handleLayerContrastChange();this.handleLayerHueChange();this.handleLayerSaturationChange()};
|
||||
goog.inherits(ol.renderer.webgl.Layer,ol.renderer.Layer);ol.renderer.webgl.Layer.prototype.getColorMatrix=function(){this.colorMatrixDirty_&&this.updateColorMatrix_();return this.colorMatrix_};ol.renderer.webgl.Layer.prototype.getMapRenderer=function(){return ol.renderer.webgl.Layer.superClass_.getMapRenderer.call(this)};
|
||||
ol.renderer.webgl.Layer.prototype.handleLayerBrightnessChange=function(){var a=this.getLayer().getBrightness();ol.vec.Mat4.makeBrightness(this.brightnessMatrix_,a);this.colorMatrixDirty_=!0;this.ol_renderer_Layer_prototype$dispatchChangeEvent()};ol.renderer.webgl.Layer.prototype.handleLayerContrastChange=function(){var a=this.getLayer().getContrast();ol.vec.Mat4.makeContrast(this.contrastMatrix_,a);this.colorMatrixDirty_=!0;this.ol_renderer_Layer_prototype$dispatchChangeEvent()};
|
||||
ol.renderer.webgl.Layer.prototype.handleLayerHueChange=function(){var a=this.getLayer().getHue();ol.vec.Mat4.makeHue(this.hueMatrix_,a);this.colorMatrixDirty_=!0;this.ol_renderer_Layer_prototype$dispatchChangeEvent()};ol.renderer.webgl.Layer.prototype.handleLayerSaturationChange=function(){var a=this.getLayer().getSaturation();ol.vec.Mat4.makeSaturation(this.saturationMatrix_,a);this.colorMatrixDirty_=!0;this.ol_renderer_Layer_prototype$dispatchChangeEvent()};
|
||||
ol.renderer.webgl.Layer.prototype.handleWebGLContextLost=goog.nullFunction;ol.renderer.webgl.Layer.prototype.updateColorMatrix_=function(){var a=this.colorMatrix_;goog.vec.Mat4.makeIdentity(a);goog.vec.Mat4.multMat(a,this.contrastMatrix_,a);goog.vec.Mat4.multMat(a,this.brightnessMatrix_,a);goog.vec.Mat4.multMat(a,this.saturationMatrix_,a);goog.vec.Mat4.multMat(a,this.hueMatrix_,a);this.colorMatrixDirty_=!1};ol.renderer.webgl.ImageLayer=function(a,b){ol.renderer.webgl.Layer.call(this,a,b);this.ol_renderer_webgl_ImageLayer$texture_=this.ol_renderer_webgl_ImageLayer$image_=null;this.ol_renderer_webgl_ImageLayer$texCoordMatrix_=goog.vec.Mat4.createNumberIdentity();this.ol_renderer_webgl_ImageLayer$vertexCoordMatrix_=goog.vec.Mat4.createNumber()};goog.inherits(ol.renderer.webgl.ImageLayer,ol.renderer.webgl.Layer);
|
||||
ol.renderer.webgl.ImageLayer.prototype.createTexture_=function(a){var a=a.getImageElement(this),b=this.getMapRenderer().getGL(),c=b.createTexture();b.bindTexture(goog.webgl.TEXTURE_2D,c);b.texImage2D(goog.webgl.TEXTURE_2D,0,goog.webgl.RGBA,goog.webgl.RGBA,goog.webgl.UNSIGNED_BYTE,a);b.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_WRAP_S,goog.webgl.CLAMP_TO_EDGE);b.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_WRAP_T,goog.webgl.CLAMP_TO_EDGE);b.texParameteri(goog.webgl.TEXTURE_2D,
|
||||
goog.webgl.TEXTURE_MIN_FILTER,goog.webgl.LINEAR);b.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_MAG_FILTER,goog.webgl.LINEAR);return c};ol.renderer.webgl.ImageLayer.prototype.goog_Disposable_prototype$disposeInternal=function(){var a=this.getMapRenderer().getGL();a.isContextLost()||a.deleteTexture(this.ol_renderer_webgl_ImageLayer$texture_);ol.renderer.webgl.ImageLayer.superClass_.goog_Disposable_prototype$disposeInternal.call(this)};
|
||||
ol.renderer.webgl.ImageLayer.prototype.getTexCoordMatrix=function(){return this.ol_renderer_webgl_ImageLayer$texCoordMatrix_};ol.renderer.webgl.ImageLayer.prototype.getTexture=function(){return this.ol_renderer_webgl_ImageLayer$texture_};ol.renderer.webgl.ImageLayer.prototype.getVertexCoordMatrix=function(){return this.ol_renderer_webgl_ImageLayer$vertexCoordMatrix_};ol.renderer.webgl.ImageLayer.prototype.ol_renderer_webgl_ImageLayer_prototype$getImageLayer=function(){return this.getLayer()};
|
||||
ol.renderer.webgl.ImageLayer.prototype.handleWebGLContextLost=function(){this.ol_renderer_webgl_ImageLayer$texture_=null};
|
||||
ol.renderer.webgl.ImageLayer.prototype.ol_renderer_Layer_prototype$renderFrame=function(a){var b=this.getMapRenderer().getGL(),c=a.view2DState,d=c.center,e=c.resolution,f=c.rotation,c=this.ol_renderer_webgl_ImageLayer$image_,g=this.ol_renderer_webgl_ImageLayer$texture_,h=this.ol_renderer_webgl_ImageLayer_prototype$getImageLayer().getImageSource(),i=a.viewHints;!i[ol.ViewHint.ANIMATING]&&!i[ol.ViewHint.PANNING]&&(h=h.getImage(a.extent,e),goog.isNull(h)||(i=h.getState(),i==ol.ImageState.IDLE?(goog.events.listenOnce(h,
|
||||
goog.events.EventType.CHANGE,this.handleImageChange,!1,this),h.load()):i==ol.ImageState.LOADED&&(c=h,g=this.createTexture_(h),goog.isNull(this.ol_renderer_webgl_ImageLayer$texture_)||a.postRenderFunctions.push(goog.partial(function(a,b){a.isContextLost()||a.deleteTexture(b)},b,this.ol_renderer_webgl_ImageLayer$texture_)))));goog.isNull(c)||(goog.asserts.assert(!goog.isNull(g)),b=this.getMapRenderer().getCanvas(),this.updateVertexCoordMatrix_(b.width,b.height,d,e,f,c.getExtent()),d=this.ol_renderer_webgl_ImageLayer$texCoordMatrix_,
|
||||
goog.vec.Mat4.makeIdentity(d),goog.vec.Mat4.scale(d,1,-1,1),goog.vec.Mat4.translate(d,0,-1,0),this.ol_renderer_webgl_ImageLayer$image_=c,this.ol_renderer_webgl_ImageLayer$texture_=g,this.updateAttributions(a.attributions,c.getAttributions()))};
|
||||
ol.renderer.webgl.ImageLayer.prototype.updateVertexCoordMatrix_=function(a,b,c,d,e,f){a*=d;b*=d;d=this.ol_renderer_webgl_ImageLayer$vertexCoordMatrix_;goog.vec.Mat4.makeIdentity(d);goog.vec.Mat4.scale(d,2/a,2/b,1);goog.vec.Mat4.rotateZ(d,-e);goog.vec.Mat4.translate(d,f.minX-c.x,f.minY-c.y,0);goog.vec.Mat4.scale(d,f.getWidth()/2,f.getHeight()/2,1);goog.vec.Mat4.translate(d,1,1,0)};goog.structs.Node=function(a,b){this.key_=a;this.value_=b};goog.structs.Node.prototype.goog_structs_Node_prototype$getKey=function(){return this.key_};goog.structs.Node.prototype.getValue=function(){return this.value_};goog.structs.Node.prototype.clone=function(){return new goog.structs.Node(this.key_,this.value_)};goog.structs.Heap=function(a){this.nodes_=[];a&&this.insertAll(a)};goog.structs.Heap.prototype.insert=function(a,b){var c=new goog.structs.Node(a,b),d=this.nodes_;d.push(c);this.moveUp_(d.length-1)};
|
||||
goog.structs.Heap.prototype.insertAll=function(a){var b,c;if(a instanceof goog.structs.Heap){if(b=a.getKeys(),c=a.getValues(),0>=a.getCount()){for(var a=this.nodes_,d=0;d<b.length;d++)a.push(new goog.structs.Node(b[d],c[d]));return}}else b=goog.object.getKeys(a),c=goog.object.getValues(a);for(d=0;d<b.length;d++)this.insert(b[d],c[d])};goog.structs.Heap.prototype.remove=function(){var a=this.nodes_,b=a.length,c=a[0];if(!(0>=b))return 1==b?goog.array.clear(a):(a[0]=a.pop(),this.moveDown_(0)),c.getValue()};
|
||||
goog.structs.Heap.prototype.peek=function(){var a=this.nodes_;return 0==a.length?void 0:a[0].getValue()};goog.structs.Heap.prototype.peekKey=function(){return this.nodes_[0]&&this.nodes_[0].goog_structs_Node_prototype$getKey()};
|
||||
goog.structs.Heap.prototype.moveDown_=function(a){for(var b=this.nodes_,c=b.length,d=b[a];a<c>>1;){var e=this.goog_structs_Heap_prototype$getLeftChildIndex_(a),f=this.goog_structs_Heap_prototype$getRightChildIndex_(a),e=f<c&&b[f].goog_structs_Node_prototype$getKey()<b[e].goog_structs_Node_prototype$getKey()?f:e;if(b[e].goog_structs_Node_prototype$getKey()>d.goog_structs_Node_prototype$getKey())break;b[a]=b[e];a=e}b[a]=d};
|
||||
goog.structs.Heap.prototype.moveUp_=function(a){for(var b=this.nodes_,c=b[a];0<a;){var d=this.goog_structs_Heap_prototype$getParentIndex_(a);if(b[d].goog_structs_Node_prototype$getKey()>c.goog_structs_Node_prototype$getKey())b[a]=b[d],a=d;else break}b[a]=c};goog.structs.Heap.prototype.goog_structs_Heap_prototype$getLeftChildIndex_=function(a){return 2*a+1};goog.structs.Heap.prototype.goog_structs_Heap_prototype$getRightChildIndex_=function(a){return 2*a+2};
|
||||
goog.structs.Heap.prototype.goog_structs_Heap_prototype$getParentIndex_=function(a){return a-1>>1};goog.structs.Heap.prototype.getValues=function(){for(var a=this.nodes_,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};goog.structs.Heap.prototype.getKeys=function(){for(var a=this.nodes_,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].goog_structs_Node_prototype$getKey());return b};
|
||||
goog.structs.Heap.prototype.containsValue=function(a){return goog.array.some(this.nodes_,function(b){return b.getValue()==a})};goog.structs.Heap.prototype.containsKey=function(a){return goog.array.some(this.nodes_,function(b){return b.goog_structs_Node_prototype$getKey()==a})};goog.structs.Heap.prototype.clone=function(){return new goog.structs.Heap(this)};goog.structs.Heap.prototype.getCount=function(){return this.nodes_.length};goog.structs.Heap.prototype.isEmpty=function(){return goog.array.isEmpty(this.nodes_)};
|
||||
goog.structs.Heap.prototype.clear=function(){goog.array.clear(this.nodes_)};goog.structs.PriorityQueue=function(){goog.structs.Heap.call(this)};goog.inherits(goog.structs.PriorityQueue,goog.structs.Heap);goog.structs.PriorityQueue.prototype.goog_structs_PriorityQueue_prototype$enqueue=function(a,b){this.insert(a,b)};goog.structs.PriorityQueue.prototype.dequeue=function(){return this.remove()};ol.renderer.webgl.tilelayerrenderer={};ol.renderer.webgl.tilelayerrenderer.shader={};ol.renderer.webgl.tilelayerrenderer.shader.Fragment=function(){ol.renderer.webgl.FragmentShader.call(this,"precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}")};goog.inherits(ol.renderer.webgl.tilelayerrenderer.shader.Fragment,ol.renderer.webgl.FragmentShader);goog.addSingletonGetter(ol.renderer.webgl.tilelayerrenderer.shader.Fragment);
|
||||
ol.renderer.webgl.tilelayerrenderer.shader.Vertex=function(){ol.renderer.webgl.VertexShader.call(this,"attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nuniform vec4 uTileOffset;\n\nvoid main(void) {\n gl_Position.xy = aPosition * uTileOffset.xy + uTileOffset.zw;\n gl_Position.z = 0.;\n gl_Position.w = 1.;\n vTexCoord = aTexCoord;\n}")};goog.inherits(ol.renderer.webgl.tilelayerrenderer.shader.Vertex,ol.renderer.webgl.VertexShader);goog.addSingletonGetter(ol.renderer.webgl.tilelayerrenderer.shader.Vertex);
|
||||
ol.renderer.webgl.TileLayer=function(a,b){ol.renderer.webgl.Layer.call(this,a,b);this.ol_renderer_webgl_TileLayer$fragmentShader_=ol.renderer.webgl.tilelayerrenderer.shader.Fragment.getInstance();this.ol_renderer_webgl_TileLayer$vertexShader_=ol.renderer.webgl.tilelayerrenderer.shader.Vertex.getInstance();this.framebuffer_=this.ol_renderer_webgl_TileLayer$texture_=this.ol_renderer_webgl_TileLayer$arrayBuffer_=this.locations_=null;this.framebufferDimension_=void 0;this.ol_renderer_webgl_TileLayer$texCoordMatrix_=
|
||||
goog.vec.Mat4.createNumber();this.ol_renderer_webgl_TileLayer$vertexCoordMatrix_=goog.vec.Mat4.createNumberIdentity();this.renderedFramebufferExtent_=this.renderedTileRange_=null};goog.inherits(ol.renderer.webgl.TileLayer,ol.renderer.webgl.Layer);
|
||||
ol.renderer.webgl.TileLayer.prototype.bindFramebuffer_=function(a,b){var c=this.getMapRenderer().getGL();if(!goog.isDef(this.framebufferDimension_)||this.framebufferDimension_!=b){this.ol_renderer_Layer_prototype$getMap();a.postRenderFunctions.push(goog.partial(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},c,this.framebuffer_,this.ol_renderer_webgl_TileLayer$texture_));var d=c.createTexture();c.bindTexture(goog.webgl.TEXTURE_2D,d);c.texImage2D(goog.webgl.TEXTURE_2D,
|
||||
0,goog.webgl.RGBA,b,b,0,goog.webgl.RGBA,goog.webgl.UNSIGNED_BYTE,null);c.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_MAG_FILTER,goog.webgl.LINEAR);c.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_MIN_FILTER,goog.webgl.LINEAR);var e=c.createFramebuffer();c.bindFramebuffer(goog.webgl.FRAMEBUFFER,e);c.framebufferTexture2D(goog.webgl.FRAMEBUFFER,goog.webgl.COLOR_ATTACHMENT0,goog.webgl.TEXTURE_2D,d,0);this.ol_renderer_webgl_TileLayer$texture_=d;this.framebuffer_=e;this.framebufferDimension_=
|
||||
b}else c.bindFramebuffer(goog.webgl.FRAMEBUFFER,this.framebuffer_)};ol.renderer.webgl.TileLayer.prototype.goog_Disposable_prototype$disposeInternal=function(){var a=this.getMapRenderer().getGL();a.isContextLost()||(a.deleteBuffer(this.ol_renderer_webgl_TileLayer$arrayBuffer_),a.deleteFramebuffer(this.framebuffer_),a.deleteTexture(this.ol_renderer_webgl_TileLayer$texture_));ol.renderer.webgl.TileLayer.superClass_.goog_Disposable_prototype$disposeInternal.call(this)};
|
||||
ol.renderer.webgl.TileLayer.prototype.getTexCoordMatrix=function(){return this.ol_renderer_webgl_TileLayer$texCoordMatrix_};ol.renderer.webgl.TileLayer.prototype.getTexture=function(){return this.ol_renderer_webgl_TileLayer$texture_};ol.renderer.webgl.TileLayer.prototype.getVertexCoordMatrix=function(){return this.ol_renderer_webgl_TileLayer$vertexCoordMatrix_};ol.renderer.webgl.TileLayer.prototype.ol_renderer_webgl_TileLayer_prototype$getTileLayer=function(){return this.getLayer()};
|
||||
ol.renderer.webgl.TileLayer.prototype.handleWebGLContextLost=function(){this.framebuffer_=this.ol_renderer_webgl_TileLayer$texture_=this.ol_renderer_webgl_TileLayer$arrayBuffer_=this.locations_=null;this.framebufferDimension_=void 0};
|
||||
ol.renderer.webgl.TileLayer.prototype.ol_renderer_Layer_prototype$renderFrame=function(a){var b=this.getMapRenderer(),c=b.getGL(),d=a.view2DState,e=d.center,f=this.ol_renderer_webgl_TileLayer_prototype$getTileLayer().getTileSource(),g=goog.getUid(f).toString(),h=f.getTileGrid(),i=h.getZForResolution(d.resolution),k=h.ol_tilegrid_TileGrid_prototype$getResolution(i),j=h.getTileRangeForExtentAndResolution(a.extent,k),l;if(!goog.isNull(this.renderedTileRange_)&&this.renderedTileRange_.equals(j))l=this.renderedFramebufferExtent_;
|
||||
else{var m=j.getSize(),p=h.getTileSize(),m=Math.max(m.width*p.width,m.height*p.height),m=Math.pow(2,Math.ceil(Math.log(m)/Math.log(2))),n=new ol.Size(k*m,k*m),q=h.ol_tilegrid_TileGrid_prototype$getOrigin(i),r=q.x+j.minX*p.width*k,k=q.y+j.minY*p.height*k;l=new ol.Extent(r,k,r+n.width,k+n.height);this.bindFramebuffer_(a,m);c.viewport(0,0,m,m);c.clearColor(0,0,0,0);c.clear(goog.webgl.COLOR_BUFFER_BIT);c.disable(goog.webgl.BLEND);k=b.getProgram(this.ol_renderer_webgl_TileLayer$fragmentShader_,this.ol_renderer_webgl_TileLayer$vertexShader_);
|
||||
c.useProgram(k);goog.isNull(this.locations_)&&(this.locations_={aPosition:c.getAttribLocation(k,"aPosition"),aTexCoord:c.getAttribLocation(k,"aTexCoord"),uTileOffset:c.getUniformLocation(k,"uTileOffset"),uTexture:c.getUniformLocation(k,"uTexture")});goog.isNull(this.ol_renderer_webgl_TileLayer$arrayBuffer_)?(k=c.createBuffer(),c.bindBuffer(goog.webgl.ARRAY_BUFFER,k),c.bufferData(goog.webgl.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),goog.webgl.STATIC_DRAW),this.ol_renderer_webgl_TileLayer$arrayBuffer_=
|
||||
k):c.bindBuffer(goog.webgl.ARRAY_BUFFER,this.ol_renderer_webgl_TileLayer$arrayBuffer_);c.enableVertexAttribArray(this.locations_.aPosition);c.vertexAttribPointer(this.locations_.aPosition,2,goog.webgl.FLOAT,!1,16,0);c.enableVertexAttribArray(this.locations_.aTexCoord);c.vertexAttribPointer(this.locations_.aTexCoord,2,goog.webgl.FLOAT,!1,16,8);c.uniform1i(this.locations_.uTexture,0);var t={};t[i]={};for(var p=goog.bind(f.findLoadedTiles,f,t,function(a){return!goog.isNull(a)&&a.getState()==ol.TileState.LOADED&&
|
||||
b.isTileTextureLoaded(a)}),k=new goog.structs.PriorityQueue,v=!0,s,y,q=j.minX;q<=j.maxX;++q)for(y=j.minY;y<=j.maxY;++y)if(r=new ol.TileCoord(i,q,y),m=f.getTile(r),!goog.isNull(m)){s=m.getState();if(s==ol.TileState.IDLE)goog.events.listenOnce(m,goog.events.EventType.CHANGE,this.ol_renderer_Layer_prototype$handleTileChange,!1,this),this.updateWantedTiles(a.wantedTiles,f,r),s=h.getTileCoordCenter(r),a.tileQueue.ol_TileQueue_prototype$enqueue(m,g,s);else if(s==ol.TileState.LOADED)if(b.isTileTextureLoaded(m)){t[i][r.toString()]=
|
||||
m;continue}else s=h.getTileCoordCenter(r),v=s.x-e.x,s=s.y-e.y,v=Math.sqrt(v*v+s*s),k.goog_structs_PriorityQueue_prototype$enqueue(v,m);else if(s==ol.TileState.ERROR)continue;v=!1;h.forEachTileCoordParentTileRange(r,p)}e=goog.array.map(goog.object.getKeys(t),Number);goog.array.sort(e);var x=goog.vec.Vec4.createFloat32();goog.array.forEach(e,function(a){goog.object.forEach(t[a],function(a){var d=h.getTileCoordExtent(a.tileCoord),e=2*d.getWidth()/n.width,f=2*d.getHeight()/n.height;goog.vec.Vec4.setFromValues(x,
|
||||
e,f,2*(d.minX-l.minX)/n.width-1,2*(d.minY-l.minY)/n.height-1);c.uniform4fv(this.locations_.uTileOffset,x);b.bindTileTexture(a,goog.webgl.LINEAR,goog.webgl.LINEAR);c.drawArrays(goog.webgl.TRIANGLE_STRIP,0,4)},this)},this);k.isEmpty()||a.postRenderFunctions.push(goog.partial(function(a,b){var c,d;for(c=0;!b.isEmpty()&&4>c;++c)d=b.remove(),a.bindTileTexture(d,goog.webgl.LINEAR,goog.webgl.LINEAR)},b,k));v?(this.renderedTileRange_=j,this.renderedFramebufferExtent_=l):(this.renderedFramebufferExtent_=this.renderedTileRange_=
|
||||
null,a.animate=!0)}this.updateUsedTiles(a.usedTiles,f,i,j);f.useLowResolutionTiles(i,a.extent);this.scheduleExpireCache(a,f);goog.vec.Mat4.makeIdentity(this.ol_renderer_webgl_TileLayer$texCoordMatrix_);goog.vec.Mat4.translate(this.ol_renderer_webgl_TileLayer$texCoordMatrix_,(d.center.x-l.minX)/(l.maxX-l.minX),(d.center.y-l.minY)/(l.maxY-l.minY),0);goog.vec.Mat4.rotateZ(this.ol_renderer_webgl_TileLayer$texCoordMatrix_,d.rotation);goog.vec.Mat4.scale(this.ol_renderer_webgl_TileLayer$texCoordMatrix_,
|
||||
a.size.width*d.resolution/(l.maxX-l.minX),a.size.height*d.resolution/(l.maxY-l.minY),1);goog.vec.Mat4.translate(this.ol_renderer_webgl_TileLayer$texCoordMatrix_,-0.5,-0.5,0)};ol.structs={};ol.structs.LRUCache=function(){this.count_=0;this.entries_={};this.newest_=this.oldest_=null};
|
||||
ol.structs.LRUCache.prototype.assertValid=function(){if(0===this.count_)goog.asserts.assert(goog.object.isEmpty(this.entries_)),goog.asserts.assert(goog.isNull(this.oldest_)),goog.asserts.assert(goog.isNull(this.newest_));else{goog.asserts.assert(goog.object.getCount(this.entries_)==this.count_);goog.asserts.assert(!goog.isNull(this.oldest_));goog.asserts.assert(goog.isNull(this.oldest_.older));goog.asserts.assert(!goog.isNull(this.newest_));goog.asserts.assert(goog.isNull(this.newest_.newer));var a,
|
||||
b,c=null;a=0;for(b=this.oldest_;!goog.isNull(b);b=b.newer)goog.asserts.assert(b.older===c),c=b,++a;goog.asserts.assert(a==this.count_);c=null;a=0;for(b=this.newest_;!goog.isNull(b);b=b.older)goog.asserts.assert(b.newer===c),c=b,++a;goog.asserts.assert(a==this.count_)}};ol.structs.LRUCache.prototype.clear=function(){this.count_=0;this.entries_={};this.newest_=this.oldest_=null};ol.structs.LRUCache.prototype.containsKey=function(a){return this.entries_.hasOwnProperty(a)};
|
||||
ol.structs.LRUCache.prototype.forEach=function(a,b){for(var c=this.oldest_;!goog.isNull(c);)a.call(b,c.value_,c.key_,this),c=c.newer};ol.structs.LRUCache.prototype.get=function(a){a=this.entries_[a];goog.asserts.assert(goog.isDef(a));if(a===this.newest_)return a.value_;a===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(a.newer.older=a.older,a.older.newer=a.newer);a.newer=null;a.older=this.newest_;this.newest_=this.newest_.newer=a;return a.value_};
|
||||
ol.structs.LRUCache.prototype.getCount=function(){return this.count_};ol.structs.LRUCache.prototype.getKeys=function(){var a=Array(this.count_),b=0,c;for(c=this.newest_;!goog.isNull(c);c=c.older)a[b++]=c.key_;goog.asserts.assert(b==this.count_);return a};ol.structs.LRUCache.prototype.getValues=function(){var a=Array(this.count_),b=0,c;for(c=this.newest_;!goog.isNull(c);c=c.older)a[b++]=c.value_;goog.asserts.assert(b==this.count_);return a};
|
||||
ol.structs.LRUCache.prototype.peekLast=function(){goog.asserts.assert(!goog.isNull(this.oldest_));return this.oldest_.value_};ol.structs.LRUCache.prototype.peekLastKey=function(){goog.asserts.assert(!goog.isNull(this.oldest_));return this.oldest_.key_};
|
||||
ol.structs.LRUCache.prototype.ol_structs_LRUCache_prototype$pop=function(){goog.asserts.assert(!goog.isNull(this.oldest_));goog.asserts.assert(!goog.isNull(this.newest_));var a=this.oldest_;goog.asserts.assert(a.key_ in this.entries_);delete this.entries_[a.key_];goog.isNull(a.newer)||(a.newer.older=null);this.oldest_=a.newer;goog.isNull(this.oldest_)&&(this.newest_=null);--this.count_;return a.value_};
|
||||
ol.structs.LRUCache.prototype.set=function(a,b){goog.asserts.assert(!(a in{}));goog.asserts.assert(!(a in this.entries_));var c={key_:a,newer:null,older:this.newest_,value_:b};goog.isNull(this.newest_)?this.oldest_=c:this.newest_.newer=c;this.newest_=c;this.entries_[a]=c;++this.count_};ol.webgl={};ol.webgl.CONTEXT_IDS_=["webgl","webgl-experimental","webkit-3d","moz-webgl"];ol.webgl.WebGLContextEventType={LOST:"webglcontextlost",RESTORED:"webglcontextrestored"};ol.webgl.getContext=function(a,b){var c,d,e=ol.webgl.CONTEXT_IDS_.length;for(d=0;d<e;++d)try{if(c=a.getContext(ol.webgl.CONTEXT_IDS_[d],b),!goog.isNull(c))return c}catch(f){}return null};
|
||||
ol.webgl.SUPPORTED=function(){if(!("WebGLRenderingContext"in goog.global))return!1;try{var a=goog.dom.createElement(goog.dom.TagName.CANVAS);return!goog.isNull(ol.webgl.getContext(a))}catch(b){return!1}}();ol.renderer.webgl.map={};ol.renderer.webgl.map.shader={};ol.WEBGL_TEXTURE_CACHE_HIGH_WATER_MARK=1024;ol.renderer.webgl.map.shader.Fragment=function(){ol.renderer.webgl.FragmentShader.call(this,"precision mediump float;\n\nuniform mat4 uColorMatrix;\nuniform float uOpacity;\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n\n vec4 texColor = texture2D(uTexture, vTexCoord);\n vec4 color = uColorMatrix * vec4(texColor.rgb, 1.);\n color.a = texColor.a * uOpacity;\n\n gl_FragColor = color;\n\n}")};
|
||||
goog.inherits(ol.renderer.webgl.map.shader.Fragment,ol.renderer.webgl.FragmentShader);goog.addSingletonGetter(ol.renderer.webgl.map.shader.Fragment);ol.renderer.webgl.map.shader.Vertex=function(){ol.renderer.webgl.VertexShader.call(this,"attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nuniform mat4 uTexCoordMatrix;\nuniform mat4 uVertexCoordMatrix;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_Position = uVertexCoordMatrix * vec4(aPosition, 0., 1.);\n vTexCoord = (uTexCoordMatrix * vec4(aTexCoord, 0., 1.)).st;\n}")};
|
||||
goog.inherits(ol.renderer.webgl.map.shader.Vertex,ol.renderer.webgl.VertexShader);goog.addSingletonGetter(ol.renderer.webgl.map.shader.Vertex);
|
||||
ol.renderer.webgl.Map=function(a,b){ol.renderer.Map.call(this,a,b);goog.DEBUG&&(this.ol_renderer_webgl_Map$logger=goog.debug.Logger.getLogger("ol.renderer.webgl.maprenderer."+goog.getUid(this)));this.ol_renderer_webgl_Map$canvas_=goog.dom.createElement(goog.dom.TagName.CANVAS);this.ol_renderer_webgl_Map$canvas_.height=a.clientHeight;this.ol_renderer_webgl_Map$canvas_.width=a.clientWidth;this.ol_renderer_webgl_Map$canvas_.className="ol-unselectable";goog.dom.insertChildAt(a,this.ol_renderer_webgl_Map$canvas_,
|
||||
0);this.ol_renderer_webgl_Map$renderedVisible_=!0;this.ol_renderer_webgl_Map$canvasSize_=new ol.Size(a.clientHeight,a.clientWidth);this.gl_=ol.webgl.getContext(this.ol_renderer_webgl_Map$canvas_,{alpha:!1,antialias:!0,depth:!1,preserveDrawingBuffer:!1,stencil:!1});goog.asserts.assert(!goog.isNull(this.gl_));goog.events.listen(this.ol_renderer_webgl_Map$canvas_,ol.webgl.WebGLContextEventType.LOST,this.handleWebGLContextLost,!1,this);goog.events.listen(this.ol_renderer_webgl_Map$canvas_,ol.webgl.WebGLContextEventType.RESTORED,
|
||||
this.handleWebGLContextResourced,!1,this);this.ol_renderer_webgl_Map$arrayBuffer_=this.locations_=null;this.shaderCache_={};this.programCache_={};this.textureCache_=new ol.structs.LRUCache;this.textureCacheFrameMarkerCount_=0;this.ol_renderer_webgl_Map$fragmentShader_=ol.renderer.webgl.map.shader.Fragment.getInstance();this.ol_renderer_webgl_Map$vertexShader_=ol.renderer.webgl.map.shader.Vertex.getInstance();this.initializeGL_()};goog.inherits(ol.renderer.webgl.Map,ol.renderer.Map);
|
||||
ol.renderer.webgl.Map.prototype.addLayer=function(a){ol.renderer.webgl.Map.superClass_.addLayer.call(this,a);a.getVisible()&&this.ol_renderer_Map_prototype$getMap().render()};
|
||||
ol.renderer.webgl.Map.prototype.bindTileTexture=function(a,b,c){var d=this.getGL(),e=a.ol_Tile_prototype$getKey();if(this.textureCache_.containsKey(e))a=this.textureCache_.get(e),d.bindTexture(goog.webgl.TEXTURE_2D,a.texture),a.magFilter!=b&&(d.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_MAG_FILTER,b),a.magFilter=b),a.minFilter!=c&&(d.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_MAG_FILTER,c),a.minFilter=c);else{var f=d.createTexture();d.bindTexture(goog.webgl.TEXTURE_2D,f);d.texImage2D(goog.webgl.TEXTURE_2D,
|
||||
0,goog.webgl.RGBA,goog.webgl.RGBA,goog.webgl.UNSIGNED_BYTE,a.getImage());d.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_MAG_FILTER,b);d.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_MIN_FILTER,c);d.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_WRAP_S,goog.webgl.CLAMP_TO_EDGE);d.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_WRAP_T,goog.webgl.CLAMP_TO_EDGE);this.textureCache_.set(e,{texture:f,magFilter:b,minFilter:c})}};
|
||||
ol.renderer.webgl.Map.prototype.createLayerRenderer=function(a){var b=null;a instanceof ol.layer.TileLayer?b=new ol.renderer.webgl.TileLayer(this,a):a instanceof ol.layer.ImageLayer?b=new ol.renderer.webgl.ImageLayer(this,a):goog.asserts.assert(!1);return b};
|
||||
ol.renderer.webgl.Map.prototype.goog_Disposable_prototype$disposeInternal=function(){var a=this.getGL();a.isContextLost()||(goog.object.forEach(this.programCache_,function(b){a.deleteProgram(b)}),goog.object.forEach(this.shaderCache_,function(b){a.deleteShader(b)}),this.textureCache_.forEach(function(b){goog.isNull(b)||a.deleteTexture(b.texture)}));ol.renderer.webgl.Map.superClass_.goog_Disposable_prototype$disposeInternal.call(this)};
|
||||
ol.renderer.webgl.Map.prototype.expireCache_=function(a,b){for(var c=this.getGL(),d;this.textureCache_.getCount()-this.textureCacheFrameMarkerCount_>ol.WEBGL_TEXTURE_CACHE_HIGH_WATER_MARK;){d=this.textureCache_.peekLast();if(goog.isNull(d))if(+this.textureCache_.peekLastKey()==b.time)break;else--this.textureCacheFrameMarkerCount_;else c.deleteTexture(d.texture);this.textureCache_.ol_structs_LRUCache_prototype$pop()}};ol.renderer.webgl.Map.prototype.getCanvas=function(){return this.ol_renderer_webgl_Map$canvas_};
|
||||
ol.renderer.webgl.Map.prototype.getGL=function(){return this.gl_};
|
||||
ol.renderer.webgl.Map.prototype.getProgram=function(a,b){var c=goog.getUid(a)+"/"+goog.getUid(b);if(c in this.programCache_)return this.programCache_[c];var d=this.getGL(),e=d.createProgram();d.attachShader(e,this.getShader(a));d.attachShader(e,this.getShader(b));d.linkProgram(e);goog.DEBUG&&(!d.getProgramParameter(e,goog.webgl.LINK_STATUS)&&!d.isContextLost())&&(this.ol_renderer_webgl_Map$logger.severe(d.getProgramInfoLog(e)),goog.asserts.assert(d.getProgramParameter(e,goog.webgl.LINK_STATUS)));
|
||||
return this.programCache_[c]=e};
|
||||
ol.renderer.webgl.Map.prototype.getShader=function(a){var b=goog.getUid(a);if(b in this.shaderCache_)return this.shaderCache_[b];var c=this.getGL(),d=c.createShader(a.getType());c.shaderSource(d,a.getSource());c.compileShader(d);goog.DEBUG&&(!c.getShaderParameter(d,goog.webgl.COMPILE_STATUS)&&!c.isContextLost())&&(this.ol_renderer_webgl_Map$logger.severe(c.getShaderInfoLog(d)),goog.asserts.assert(c.getShaderParameter(d,goog.webgl.COMPILE_STATUS)));return this.shaderCache_[b]=d};
|
||||
ol.renderer.webgl.Map.prototype.handleWebGLContextLost=function(a){goog.DEBUG&&this.ol_renderer_webgl_Map$logger.goog_debug_Logger_prototype$info("WebGLContextLost");a.goog_events_Event_prototype$preventDefault();this.ol_renderer_webgl_Map$arrayBuffer_=this.locations_=null;this.shaderCache_={};this.programCache_={};this.textureCache_.clear();this.textureCacheFrameMarkerCount_=0;goog.object.forEach(this.layerRenderers,function(a){a.handleWebGLContextLost()})};
|
||||
ol.renderer.webgl.Map.prototype.handleWebGLContextResourced=function(){goog.DEBUG&&this.ol_renderer_webgl_Map$logger.goog_debug_Logger_prototype$info("WebGLContextResourced");this.initializeGL_();this.ol_renderer_Map_prototype$getMap().render()};ol.renderer.webgl.Map.prototype.initializeGL_=function(){var a=this.gl_;a.activeTexture(goog.webgl.TEXTURE0);a.blendFunc(goog.webgl.SRC_ALPHA,goog.webgl.ONE_MINUS_SRC_ALPHA);a.disable(goog.webgl.CULL_FACE);a.disable(goog.webgl.DEPTH_TEST);a.disable(goog.webgl.SCISSOR_TEST)};
|
||||
ol.renderer.webgl.Map.prototype.isTileTextureLoaded=function(a){return this.textureCache_.containsKey(a.ol_Tile_prototype$getKey())};ol.renderer.webgl.Map.prototype.removeLayer=function(a){ol.renderer.webgl.Map.superClass_.removeLayer.call(this,a);a.getVisible()&&this.ol_renderer_Map_prototype$getMap().render()};
|
||||
ol.renderer.webgl.Map.prototype.ol_renderer_Map_prototype$renderFrame=function(a){var b=this.getGL();if(goog.isNull(a))return this.ol_renderer_webgl_Map$renderedVisible_&&(goog.style.showElement(this.ol_renderer_webgl_Map$canvas_,!1),this.ol_renderer_webgl_Map$renderedVisible_=!1),!1;this.textureCache_.set(a.time.toString(),null);++this.textureCacheFrameMarkerCount_;goog.array.forEach(a.layersArray,function(b){var c=a.layerStates[goog.getUid(b)];c.visible&&c.ready&&this.getLayerRenderer(b).ol_renderer_Layer_prototype$renderFrame(a,
|
||||
c)},this);var c=a.size;this.ol_renderer_webgl_Map$canvasSize_.equals(c)||(this.ol_renderer_webgl_Map$canvas_.width=c.width,this.ol_renderer_webgl_Map$canvas_.height=c.height,this.ol_renderer_webgl_Map$canvasSize_=c);b.bindFramebuffer(goog.webgl.FRAMEBUFFER,null);var d=a.backgroundColor;b.clearColor(d.r/255,d.g/255,d.ol_Color$b/255,d.ol_Color$a);b.clear(goog.webgl.COLOR_BUFFER_BIT);b.enable(goog.webgl.BLEND);b.viewport(0,0,c.width,c.height);c=this.getProgram(this.ol_renderer_webgl_Map$fragmentShader_,
|
||||
this.ol_renderer_webgl_Map$vertexShader_);b.useProgram(c);goog.isNull(this.locations_)&&(this.locations_={aPosition:b.getAttribLocation(c,"aPosition"),aTexCoord:b.getAttribLocation(c,"aTexCoord"),uColorMatrix:b.getUniformLocation(c,"uColorMatrix"),uTexCoordMatrix:b.getUniformLocation(c,"uTexCoordMatrix"),uVertexCoordMatrix:b.getUniformLocation(c,"uVertexCoordMatrix"),uOpacity:b.getUniformLocation(c,"uOpacity"),uTexture:b.getUniformLocation(c,"uTexture")});goog.isNull(this.ol_renderer_webgl_Map$arrayBuffer_)?
|
||||
(c=b.createBuffer(),b.bindBuffer(goog.webgl.ARRAY_BUFFER,c),b.bufferData(goog.webgl.ARRAY_BUFFER,new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),goog.webgl.STATIC_DRAW),this.ol_renderer_webgl_Map$arrayBuffer_=c):b.bindBuffer(goog.webgl.ARRAY_BUFFER,this.ol_renderer_webgl_Map$arrayBuffer_);b.enableVertexAttribArray(this.locations_.aPosition);b.vertexAttribPointer(this.locations_.aPosition,2,goog.webgl.FLOAT,!1,16,0);b.enableVertexAttribArray(this.locations_.aTexCoord);b.vertexAttribPointer(this.locations_.aTexCoord,
|
||||
2,goog.webgl.FLOAT,!1,16,8);b.uniform1i(this.locations_.uTexture,0);goog.array.forEach(a.layersArray,function(c){var d=a.layerStates[goog.getUid(c)];d.visible&&d.ready&&(d=this.getLayerRenderer(c),b.uniformMatrix4fv(this.locations_.uTexCoordMatrix,!1,d.getTexCoordMatrix()),b.uniformMatrix4fv(this.locations_.uVertexCoordMatrix,!1,d.getVertexCoordMatrix()),b.uniformMatrix4fv(this.locations_.uColorMatrix,!1,d.getColorMatrix()),b.uniform1f(this.locations_.uOpacity,c.getOpacity()),b.bindTexture(goog.webgl.TEXTURE_2D,
|
||||
d.getTexture()),b.drawArrays(goog.webgl.TRIANGLE_STRIP,0,4))},this);this.ol_renderer_webgl_Map$renderedVisible_||(goog.style.showElement(this.ol_renderer_webgl_Map$canvas_,!0),this.ol_renderer_webgl_Map$renderedVisible_=!0);this.calculateMatrices2D(a);this.textureCache_.getCount()-this.textureCacheFrameMarkerCount_>ol.WEBGL_TEXTURE_CACHE_HIGH_WATER_MARK&&a.postRenderFunctions.push(goog.bind(this.expireCache_,this))};ol.renderer.webgl.SUPPORTED=ol.webgl.SUPPORTED;ol.RendererHints={};ol.ENABLE_CANVAS=!0;ol.ENABLE_DOM=!0;ol.ENABLE_WEBGL=!0;ol.RendererHint={CANVAS:"canvas",DOM:"dom",WEBGL:"webgl"};ol.DEFAULT_RENDERER_HINTS=[ol.RendererHint.WEBGL,ol.RendererHint.CANVAS,ol.RendererHint.DOM];ol.MapProperty={BACKGROUND_COLOR:"backgroundColor",LAYERS:"layers",SIZE:"size",VIEW:"view"};
|
||||
ol.Map=function(a){ol.Object.call(this);goog.DEBUG&&(this.ol_Map$logger=goog.debug.Logger.getLogger("ol.map."+goog.getUid(this)));a=ol.Map.createOptionsInternal(a);this.animationDelay_=new goog.async.AnimationDelay(this.renderFrame_,void 0,this);this.registerDisposable(this.animationDelay_);this.coordinateToPixelMatrix_=goog.vec.Mat4.createNumber();this.pixelToCoordinateMatrix_=goog.vec.Mat4.createNumber();this.frameState_=null;this.freezeRenderingCount_=0;this.dirty_=!1;this.ol_Map$target_=a.target;
|
||||
this.viewPropertyListenerKey_=null;this.viewport_=goog.dom.createDom(goog.dom.TagName.DIV,"ol-viewport");this.viewport_.style.position="relative";this.viewport_.style.overflow="hidden";this.viewport_.style.width="100%";this.viewport_.style.height="100%";this.viewport_.style.msTouchAction="none";goog.dom.appendChild(this.ol_Map$target_,this.viewport_);this.overlayContainer_=goog.dom.createDom(goog.dom.TagName.DIV,"ol-overlaycontainer");goog.events.listen(this.overlayContainer_,[goog.events.EventType.CLICK,
|
||||
ol.BrowserFeature.HAS_TOUCH?goog.events.EventType.TOUCHSTART:goog.events.EventType.MOUSEDOWN],goog.events.Event.function__new_goog_events_Event__string___Object_null_____undefined$stopPropagation);goog.dom.appendChild(this.viewport_,this.overlayContainer_);var b=new ol.MapBrowserEventHandler(this);goog.events.listen(b,goog.object.getValues(ol.MapBrowserEvent.EventType),this.ol_Map_prototype$handleMapBrowserEvent,!1,this);this.registerDisposable(b);b=new goog.events.KeyHandler(document);goog.events.listen(b,
|
||||
goog.events.KeyHandler.EventType.KEY,this.handleBrowserEvent,!1,this);this.registerDisposable(b);b=new goog.events.MouseWheelHandler(this.viewport_);goog.events.listen(b,goog.events.MouseWheelHandler.EventType.MOUSEWHEEL,this.handleBrowserEvent,!1,this);this.registerDisposable(b);this.interactions_=a.interactions;this.renderer_=new a.rendererConstructor(this.viewport_,this);this.registerDisposable(this.renderer_);this.viewportSizeMonitor_=new goog.dom.ViewportSizeMonitor;goog.events.listen(this.viewportSizeMonitor_,
|
||||
goog.events.EventType.RESIZE,this.handleBrowserWindowResize,!1,this);this.preRenderFunctions_=[];this.postRenderFunctions_=[];this.handlePostRender_=goog.bind(this.handlePostRender,this);this.tileQueue_=new ol.TileQueue(goog.bind(this.getTilePriority,this));goog.events.listen(this,ol.Object.getChangedEventType(ol.MapProperty.VIEW),this.handleViewChanged_,!1,this);goog.events.listen(this,ol.Object.getChangedEventType(ol.MapProperty.SIZE),this.handleSizeChanged_,!1,this);goog.events.listen(this,ol.Object.getChangedEventType(ol.MapProperty.BACKGROUND_COLOR),
|
||||
this.handleBackgroundColorChanged_,!1,this);this.ol_Object_prototype$setValues(a.values);this.handleBrowserWindowResize();goog.array.forEach(a.controls,function(a){a.ol_control_Control_prototype$setMap(this)},this)};goog.inherits(ol.Map,ol.Object);ol.Map.prototype.addPreRenderFunction=function(a){this.requestRenderFrame();this.preRenderFunctions_.push(a)};ol.Map.prototype.addPreRenderFunctions=function(a){this.requestRenderFrame();Array.prototype.push.apply(this.preRenderFunctions_,a)};
|
||||
ol.Map.prototype.removePreRenderFunction=function(a){return goog.array.remove(this.preRenderFunctions_,a)};ol.Map.prototype.goog_Disposable_prototype$disposeInternal=function(){goog.dom.removeNode(this.viewport_);ol.Map.superClass_.goog_Disposable_prototype$disposeInternal.call(this)};ol.Map.prototype.freezeRendering=function(){++this.freezeRenderingCount_};ol.Map.prototype.getBackgroundColor=function(){return this.get(ol.MapProperty.BACKGROUND_COLOR)};
|
||||
goog.exportProperty(ol.Map.prototype,"getBackgroundColor",ol.Map.prototype.getBackgroundColor);ol.Map.prototype.getRenderer=function(){return this.renderer_};ol.Map.prototype.ol_Map_prototype$getTarget=function(){return this.ol_Map$target_};ol.Map.prototype.getCoordinateFromPixel=function(a){var b=this.frameState_;if(goog.isNull(b))return null;a=[a.x,a.y,0];goog.vec.Mat4.multVec3(b.pixelToCoordinateMatrix,a,a);return new ol.Coordinate(a[0],a[1])};ol.Map.prototype.getInteractions=function(){return this.interactions_};
|
||||
ol.Map.prototype.getLayers=function(){return this.get(ol.MapProperty.LAYERS)};goog.exportProperty(ol.Map.prototype,"getLayers",ol.Map.prototype.getLayers);ol.Map.prototype.getPixelFromCoordinate=function(a){var b=this.frameState_;if(goog.isNull(b))return null;a=[a.x,a.y,0];goog.vec.Mat4.multVec3(b.coordinateToPixelMatrix,a,a);return new ol.Pixel(a[0],a[1])};ol.Map.prototype.getSize=function(){return this.get(ol.MapProperty.SIZE)};goog.exportProperty(ol.Map.prototype,"getSize",ol.Map.prototype.getSize);
|
||||
ol.Map.prototype.getView=function(){return this.get(ol.MapProperty.VIEW)};goog.exportProperty(ol.Map.prototype,"getView",ol.Map.prototype.getView);ol.Map.prototype.getViewport=function(){return this.viewport_};ol.Map.prototype.getOverlayContainer=function(){return this.overlayContainer_};
|
||||
ol.Map.prototype.getTilePriority=function(a,b,c){var d=this.frameState_;if(goog.isNull(d)||!(b in d.wantedTiles)||!d.wantedTiles[b][a.tileCoord.toString()])return ol.TileQueue.function__new_ol_TileQueue__function___null_ol_Tile___string___null_ol_Coordinate____number___undefined$DROP;b=d.view2DState.center;a=c.x-b.x;c=c.y-b.y;return a*a+c*c};ol.Map.prototype.handleBrowserEvent=function(a,b){var c=new ol.MapBrowserEvent(b||a.type,this,a);this.ol_Map_prototype$handleMapBrowserEvent(c)};
|
||||
ol.Map.prototype.ol_Map_prototype$handleMapBrowserEvent=function(a){a.frameState=this.frameState_;var b=this.getInteractions().getArray();if(!1!==this.dispatchEvent(a))for(var c=b.length-1;0<=c&&!(b[c].ol_interaction_Interaction_prototype$handleMapBrowserEvent(a),a.goog_events_Event_prototype$defaultPrevented);c--);};
|
||||
ol.Map.prototype.handlePostRender=function(){this.tileQueue_.reprioritize();this.tileQueue_.loadMoreTiles();var a=this.postRenderFunctions_,b;for(b=0;b<a.length;++b)a[b](this,this.frameState_);a.length=0};ol.Map.prototype.handleBackgroundColorChanged_=function(){this.render()};ol.Map.prototype.handleBrowserWindowResize=function(){var a=new ol.Size(this.ol_Map$target_.clientWidth,this.ol_Map$target_.clientHeight);this.setSize(a)};ol.Map.prototype.handleSizeChanged_=function(){this.render()};
|
||||
ol.Map.prototype.handleViewPropertyChanged_=function(){this.render()};ol.Map.prototype.handleViewChanged_=function(){goog.isNull(this.viewPropertyListenerKey_)||(goog.events.unlistenByKey(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null);var a=this.getView();goog.isDefAndNotNull(a)&&(this.viewPropertyListenerKey_=goog.events.listen(a,ol.ObjectEventType.CHANGED,this.handleViewPropertyChanged_,!1,this));this.render()};
|
||||
ol.Map.prototype.isDef=function(){var a=this.getView();return goog.isDef(a)&&a.isDef()&&goog.isDefAndNotNull(this.getSize())};ol.Map.prototype.render=function(){this.animationDelay_.goog_async_AnimationDelay_prototype$isActive()||(0===this.freezeRenderingCount_?this.animationDelay_.goog_async_AnimationDelay_prototype$fire():this.dirty_=!0)};
|
||||
ol.Map.prototype.requestRenderFrame=function(){0===this.freezeRenderingCount_?this.animationDelay_.goog_async_AnimationDelay_prototype$isActive()||this.animationDelay_.start():this.dirty_=!0};
|
||||
ol.Map.prototype.renderFrame_=function(a){var b;if(0==this.freezeRenderingCount_){goog.DEBUG&&this.ol_Map$logger.goog_debug_Logger_prototype$info("renderFrame_");var c=this.getSize();b=this.getLayers();var d=goog.isDef(b)?b.getArray():void 0;b=this.getView();var e=goog.isDef(b)?this.getView().getView2D():void 0,f=null;if(goog.isDef(d)&&goog.isDef(c)&&goog.isDef(e)&&e.isDef()){var f=this.getBackgroundColor(),g=b.getHints(),h={},i;for(b=0;b<d.length;++b)i=d[b],h[goog.getUid(i)]=i.getLayerState();i=
|
||||
e.getView2DState();f={animate:!1,attributions:{},backgroundColor:goog.isDef(f)?f:new ol.Color(255,255,255,1),coordinateToPixelMatrix:this.coordinateToPixelMatrix_,extent:null,layersArray:d,layerStates:h,pixelToCoordinateMatrix:this.pixelToCoordinateMatrix_,postRenderFunctions:[],size:c,tileQueue:this.tileQueue_,time:a,usedTiles:{},view2DState:i,viewHints:g,wantedTiles:{}}}a=this.preRenderFunctions_;for(b=d=0;b<a.length;++b)e=a[b],e(this,f)&&(a[d++]=e);a.length=d;if(!goog.isNull(f)){a=i.center;b=i.resolution;
|
||||
i=i.rotation;d=b*c.width/2;c=b*c.height/2;c=[new ol.Coordinate(-d,-c),new ol.Coordinate(-d,c),new ol.Coordinate(d,-c),new ol.Coordinate(d,c)];for(b=0;4>b;++b)d=c[b],d.rotate(i),d.add(a);f.extent=ol.Extent.boundingExtent.apply(null,c)}this.frameState_=f;this.renderer_.ol_renderer_Map_prototype$renderFrame(f);this.dirty_=!1;goog.isNull(f)||(f.animate&&this.requestRenderFrame(),Array.prototype.push.apply(this.postRenderFunctions_,f.postRenderFunctions));this.dispatchEvent(new ol.MapEvent(ol.MapEventType.POSTRENDER,
|
||||
this,f));goog.global.setTimeout(this.handlePostRender_,0)}};ol.Map.prototype.setBackgroundColor=function(a){this.set(ol.MapProperty.BACKGROUND_COLOR,a)};goog.exportProperty(ol.Map.prototype,"setBackgroundColor",ol.Map.prototype.setBackgroundColor);ol.Map.prototype.setLayers=function(a){this.set(ol.MapProperty.LAYERS,a)};goog.exportProperty(ol.Map.prototype,"setLayers",ol.Map.prototype.setLayers);ol.Map.prototype.setSize=function(a){this.set(ol.MapProperty.SIZE,a)};
|
||||
goog.exportProperty(ol.Map.prototype,"setSize",ol.Map.prototype.setSize);ol.Map.prototype.setView=function(a){this.set(ol.MapProperty.VIEW,a)};goog.exportProperty(ol.Map.prototype,"setView",ol.Map.prototype.setView);ol.Map.prototype.unfreezeRendering=function(){goog.asserts.assert(0<this.freezeRenderingCount_);0===--this.freezeRenderingCount_&&this.dirty_&&this.animationDelay_.goog_async_AnimationDelay_prototype$fire()};ol.Map.prototype.withFrozenRendering=function(a,b){this.freezeRendering();try{a.call(b)}finally{this.unfreezeRendering()}};
|
||||
ol.Map.createOptionsInternal=function(a){var b={};b[ol.MapProperty.LAYERS]=goog.isDef(a.layers)?a.layers:new ol.Collection;b[ol.MapProperty.VIEW]=goog.isDef(a.view)?a.view:new ol.View2D;var c=ol.renderer.Map,d;d=goog.isDef(a.renderers)?a.renderers:goog.isDef(a.renderer)?[a.renderer]:ol.DEFAULT_RENDERER_HINTS;var e,f;for(e=0;e<d.length;++e)if(f=d[e],f==ol.RendererHint.CANVAS){if(ol.ENABLE_CANVAS&&ol.renderer.canvas.SUPPORTED){c=ol.renderer.canvas.Map;break}}else if(f==ol.RendererHint.DOM){if(ol.ENABLE_DOM&&
|
||||
ol.renderer.dom.SUPPORTED){c=ol.renderer.dom.Map;break}}else if(f==ol.RendererHint.WEBGL&&ol.ENABLE_WEBGL&&ol.renderer.webgl.SUPPORTED){c=ol.renderer.webgl.Map;break}d=ol.Map.createControls_(a);e=goog.isDef(a.interactions)?a.interactions:ol.Map.createInteractions_(a);a=goog.dom.getElement(a.target);return{controls:d,interactions:e,rendererConstructor:c,target:a,values:b}};
|
||||
ol.Map.createControls_=function(a){var b=[];(goog.isDef(a.attributionControl)?a.attributionControl:1)&&b.push(new ol.control.Attribution({}));if(goog.isDef(a.zoomControl)?a.zoomControl:1)a=goog.isDef(a.zoomDelta)?a.zoomDelta:4,b.push(new ol.control.Zoom({delta:a}));return b};
|
||||
ol.Map.createInteractions_=function(a){var b=new ol.Collection;(goog.isDef(a.rotate)?a.rotate:1)&&b.push(new ol.interaction.DragRotate(ol.interaction.condition.altShiftKeysOnly));if(goog.isDef(a.doubleClickZoom)?a.doubleClickZoom:1){var c=goog.isDef(a.zoomDelta)?a.zoomDelta:4;b.push(new ol.interaction.DblClickZoom(c))}(goog.isDef(a.touchPan)?a.touchPan:1)&&b.push(new ol.interaction.TouchPan);(goog.isDef(a.touchRotateZoom)?a.touchRotateZoom:1)&&b.push(new ol.interaction.TouchRotateAndZoom);(goog.isDef(a.dragPan)?
|
||||
a.dragPan:1)&&b.push(new ol.interaction.DragPan(ol.interaction.condition.noModifierKeys,new ol.Kinetic(-0.005,0.05,100)));var c=goog.isDef(a.keyboard)?a.keyboard:!0,d=goog.isDef(a.keyboardPanOffset)?a.keyboardPanOffset:80;c&&(b.push(new ol.interaction.KeyboardPan(d)),b.push(new ol.interaction.KeyboardZoom));if(goog.isDef(a.mouseWheelZoom)?a.mouseWheelZoom:1)c=goog.isDef(a.mouseWheelZoomDelta)?a.mouseWheelZoomDelta:1,b.push(new ol.interaction.MouseWheelZoom(c));(goog.isDef(a.shiftDragZoom)?a.shiftDragZoom:
|
||||
1)&&b.push(new ol.interaction.DragZoom(ol.interaction.condition.shiftKeyOnly));return b};ol.RendererHints.createFromQueryData=function(a){var b=goog.global.location.search.substring(1),a=goog.isDef(a)?a:new goog.Uri.QueryData(b);return a.containsKey("renderers")?a.get("renderers").split(","):a.containsKey("renderer")?[a.get("renderer")]:ol.DEFAULT_RENDERER_HINTS};ol.projection.addCommonProjections();ol.AnchoredElementProperty={ELEMENT:"element",MAP:"map",POSITION:"position",POSITIONING:"positioning"};ol.AnchoredElementPositioning={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"};
|
||||
ol.AnchoredElement=function(a){ol.Object.call(this);this.ol_AnchoredElement$element_=goog.dom.createElement(goog.dom.TagName.DIV);this.ol_AnchoredElement$element_.style.position="absolute";this.rendered_={bottom_:"",left_:"",right_:"",top_:"",visible:!0};goog.events.listen(this,ol.Object.getChangedEventType(ol.AnchoredElementProperty.ELEMENT),this.handleElementChanged,!1,this);goog.events.listen(this,ol.Object.getChangedEventType(ol.AnchoredElementProperty.MAP),this.handleMapChanged,!1,this);goog.events.listen(this,
|
||||
ol.Object.getChangedEventType(ol.AnchoredElementProperty.POSITION),this.handlePositionChanged,!1,this);goog.events.listen(this,ol.Object.getChangedEventType(ol.AnchoredElementProperty.POSITIONING),this.handlePositioningChanged,!1,this);goog.isDef(a.element)&&this.setElement(a.element);goog.isDef(a.position)&&this.setPosition(a.position);goog.isDef(a.positioning)&&this.setPositioning(a.positioning);goog.isDef(a.map)&&this.ol_AnchoredElement_prototype$setMap(a.map)};
|
||||
goog.inherits(ol.AnchoredElement,ol.Object);ol.AnchoredElement.prototype.getElement=function(){return this.get(ol.AnchoredElementProperty.ELEMENT)};goog.exportProperty(ol.AnchoredElement.prototype,"getElement",ol.AnchoredElement.prototype.getElement);ol.AnchoredElement.prototype.ol_AnchoredElement_prototype$getMap=function(){return this.get(ol.AnchoredElementProperty.MAP)};goog.exportProperty(ol.AnchoredElement.prototype,"getMap",ol.AnchoredElement.prototype.ol_AnchoredElement_prototype$getMap);
|
||||
ol.AnchoredElement.prototype.getPosition=function(){return this.get(ol.AnchoredElementProperty.POSITION)};goog.exportProperty(ol.AnchoredElement.prototype,"getPosition",ol.AnchoredElement.prototype.getPosition);ol.AnchoredElement.prototype.getPositioning=function(){return this.get(ol.AnchoredElementProperty.POSITIONING)};goog.exportProperty(ol.AnchoredElement.prototype,"getPositioning",ol.AnchoredElement.prototype.getPositioning);
|
||||
ol.AnchoredElement.prototype.handleElementChanged=function(){goog.dom.removeChildren(this.ol_AnchoredElement$element_);var a=this.getElement();goog.isDefAndNotNull(a)&&goog.dom.append(this.ol_AnchoredElement$element_,a)};
|
||||
ol.AnchoredElement.prototype.handleMapChanged=function(){goog.isNull(this.mapPostrenderListenerKey_)||(goog.dom.removeNode(this.ol_AnchoredElement$element_),goog.events.unlistenByKey(this.mapPostrenderListenerKey_),this.mapPostrenderListenerKey_=null);var a=this.ol_AnchoredElement_prototype$getMap();goog.isDefAndNotNull(a)&&(this.mapPostrenderListenerKey_=goog.events.listen(a,ol.MapEventType.POSTRENDER,this.ol_AnchoredElement_prototype$handleMapPostrender,!1,this),this.updatePixelPosition_(),goog.dom.append(a.getOverlayContainer(),
|
||||
this.ol_AnchoredElement$element_))};ol.AnchoredElement.prototype.ol_AnchoredElement_prototype$handleMapPostrender=function(){this.updatePixelPosition_()};ol.AnchoredElement.prototype.handlePositionChanged=function(){this.updatePixelPosition_()};ol.AnchoredElement.prototype.handlePositioningChanged=function(){this.updatePixelPosition_()};ol.AnchoredElement.prototype.setElement=function(a){this.set(ol.AnchoredElementProperty.ELEMENT,a)};
|
||||
goog.exportProperty(ol.AnchoredElement.prototype,"setElement",ol.AnchoredElement.prototype.setElement);ol.AnchoredElement.prototype.ol_AnchoredElement_prototype$setMap=function(a){this.set(ol.AnchoredElementProperty.MAP,a)};goog.exportProperty(ol.AnchoredElement.prototype,"setMap",ol.AnchoredElement.prototype.ol_AnchoredElement_prototype$setMap);ol.AnchoredElement.prototype.setPosition=function(a){this.set(ol.AnchoredElementProperty.POSITION,a)};
|
||||
goog.exportProperty(ol.AnchoredElement.prototype,"setPosition",ol.AnchoredElement.prototype.setPosition);ol.AnchoredElement.prototype.setPositioning=function(a){this.set(ol.AnchoredElementProperty.POSITIONING,a)};
|
||||
ol.AnchoredElement.prototype.updatePixelPosition_=function(){var a=this.ol_AnchoredElement_prototype$getMap(),b=this.getPosition();if(!goog.isDef(a)||!a.isDef()||!goog.isDef(b))this.rendered_.visible&&(goog.style.showElement(this.ol_AnchoredElement$element_,!1),this.rendered_.visible=!1);else{var b=a.getPixelFromCoordinate(b),c=a.getSize();goog.asserts.assert(goog.isDef(c));var a=this.ol_AnchoredElement$element_.style,d=this.getPositioning();if(d==ol.AnchoredElementPositioning.BOTTOM_RIGHT||d==ol.AnchoredElementPositioning.TOP_RIGHT){""!==
|
||||
this.rendered_.left_&&(this.rendered_.left_=a.left="");var e=Math.round(c.width-b.x)+"px";this.rendered_.right_!=e&&(this.rendered_.right_=a.right=e)}else""!==this.rendered_.right_&&(this.rendered_.right_=a.right=""),e=Math.round(b.x)+"px",this.rendered_.left_!=e&&(this.rendered_.left_=a.left=e);d==ol.AnchoredElementPositioning.TOP_LEFT||d==ol.AnchoredElementPositioning.TOP_RIGHT?(""!==this.rendered_.bottom_&&(this.rendered_.bottom_=a.bottom=""),b=Math.round(b.y)+"px",this.rendered_.top_!=b&&(this.rendered_.top_=
|
||||
a.top=b)):(""!==this.rendered_.top_&&(this.rendered_.top_=a.top=""),b=Math.round(c.height-b.y)+"px",this.rendered_.bottom_!=b&&(this.rendered_.bottom_=a.bottom=b));this.rendered_.visible||(goog.style.showElement(this.ol_AnchoredElement$element_,!0),this.rendered_.visible=!0)}};/*
|
||||
Portions of this code are from MochiKit, received by
|
||||
The Closure Authors under the MIT license. All other code is Copyright
|
||||
2005-2009 The Closure Authors. All Rights Reserved.
|
||||
*/
|
||||
goog.async.Deferred=function(a,b){this.chain_=[];this.canceller_=a;this.defaultScope_=b||null};goog.async.Deferred.prototype.fired_=!1;goog.async.Deferred.prototype.hadError_=!1;goog.async.Deferred.prototype.paused_=0;goog.async.Deferred.prototype.silentlyCancelled_=!1;goog.async.Deferred.prototype.chained_=!1;goog.async.Deferred.prototype.branches_=0;
|
||||
goog.async.Deferred.prototype.cancel=function(a){if(this.hasFired())this.result_ instanceof goog.async.Deferred&&this.result_.cancel();else{if(this.goog_async_Deferred_prototype$parent_){var b=this.goog_async_Deferred_prototype$parent_;delete this.goog_async_Deferred_prototype$parent_;a?b.cancel(a):b.branchCancel_()}this.canceller_?this.canceller_.call(this.defaultScope_,this):this.silentlyCancelled_=!0;this.hasFired()||this.errback(new goog.async.Deferred.CancelledError(this))}};
|
||||
goog.async.Deferred.prototype.branchCancel_=function(){this.branches_--;0>=this.branches_&&this.cancel()};goog.async.Deferred.prototype.pause_=function(){this.paused_++};goog.async.Deferred.prototype.unpause_=function(){this.paused_--;0==this.paused_&&this.hasFired()&&this.fire_()};goog.async.Deferred.prototype.continue_=function(a,b){this.resback_(a,b);this.unpause_()};goog.async.Deferred.prototype.resback_=function(a,b){this.fired_=!0;this.result_=b;this.hadError_=!a;this.fire_()};
|
||||
goog.async.Deferred.prototype.check_=function(){if(this.hasFired()){if(!this.silentlyCancelled_)throw new goog.async.Deferred.AlreadyCalledError(this);this.silentlyCancelled_=!1}};goog.async.Deferred.prototype.callback=function(a){this.check_();this.assertNotDeferred_(a);this.resback_(!0,a)};goog.async.Deferred.prototype.errback=function(a){this.check_();this.assertNotDeferred_(a);this.resback_(!1,a)};
|
||||
goog.async.Deferred.prototype.assertNotDeferred_=function(a){goog.asserts.assert(!(a instanceof goog.async.Deferred),"Deferred instances can only be chained if they are the result of a callback")};goog.async.Deferred.prototype.goog_async_Deferred_prototype$addCallback=function(a,b){return this.addCallbacks(a,null,b)};goog.async.Deferred.prototype.addErrback=function(a,b){return this.addCallbacks(null,a,b)};
|
||||
goog.async.Deferred.prototype.addCallbacks=function(a,b,c){goog.asserts.assert(!this.chained_,"Chained Deferreds can not be re-used");this.chain_.push([a,b,c]);this.hasFired()&&this.fire_();return this};goog.async.Deferred.prototype.chainDeferred=function(a){this.addCallbacks(a.callback,a.errback,a);return this};goog.async.Deferred.prototype.awaitDeferred=function(a){return this.goog_async_Deferred_prototype$addCallback(goog.bind(a.branch,a))};
|
||||
goog.async.Deferred.prototype.branch=function(a){var b=new goog.async.Deferred;this.chainDeferred(b);a&&(b.goog_async_Deferred_prototype$parent_=this,this.branches_++);return b};goog.async.Deferred.prototype.addBoth=function(a,b){return this.addCallbacks(a,a,b)};goog.async.Deferred.prototype.hasFired=function(){return this.fired_};goog.async.Deferred.prototype.isError=function(a){return a instanceof Error};goog.async.Deferred.prototype.hasErrback_=function(){return goog.array.some(this.chain_,function(a){return goog.isFunction(a[1])})};
|
||||
goog.async.Deferred.prototype.fire_=function(){this.unhandledExceptionTimeoutId_&&(this.hasFired()&&this.hasErrback_())&&(goog.global.clearTimeout(this.unhandledExceptionTimeoutId_),delete this.unhandledExceptionTimeoutId_);this.goog_async_Deferred_prototype$parent_&&(this.goog_async_Deferred_prototype$parent_.branches_--,delete this.goog_async_Deferred_prototype$parent_);for(var a=this.result_,b=!1,c=!1;this.chain_.length&&0==this.paused_;){var d=this.chain_.shift(),e=d[0],f=d[1],d=d[2];if(e=this.hadError_?
|
||||
f:e)try{var g=e.call(d||this.defaultScope_,a);goog.isDef(g)&&(this.hadError_=this.hadError_&&(g==a||this.isError(g)),this.result_=a=g);a instanceof goog.async.Deferred&&(c=!0,this.pause_())}catch(h){a=h,this.hadError_=!0,this.hasErrback_()||(b=!0)}}this.result_=a;c&&this.paused_&&(a.addCallbacks(goog.bind(this.continue_,this,!0),goog.bind(this.continue_,this,!1)),a.chained_=!0);b&&(this.unhandledExceptionTimeoutId_=goog.global.setTimeout(function(){throw a;},0))};
|
||||
goog.async.Deferred.succeed=function(a){var b=new goog.async.Deferred;b.callback(a);return b};goog.async.Deferred.fail=function(a){var b=new goog.async.Deferred;b.errback(a);return b};goog.async.Deferred.cancelled=function(){var a=new goog.async.Deferred;a.cancel();return a};goog.async.Deferred.when=function(a,b,c){return a instanceof goog.async.Deferred?a.branch(!0).goog_async_Deferred_prototype$addCallback(b,c):goog.async.Deferred.succeed(a).goog_async_Deferred_prototype$addCallback(b,c)};
|
||||
goog.async.Deferred.AlreadyCalledError=function(a){goog.debug.Error.call(this);this.goog_async_Deferred_AlreadyCalledError$deferred=a};goog.inherits(goog.async.Deferred.AlreadyCalledError,goog.debug.Error);goog.async.Deferred.AlreadyCalledError.prototype.message="Deferred has already fired";goog.async.Deferred.AlreadyCalledError.prototype.name="AlreadyCalledError";goog.async.Deferred.CancelledError=function(a){goog.debug.Error.call(this);this.goog_async_Deferred_CancelledError$deferred=a};
|
||||
goog.inherits(goog.async.Deferred.CancelledError,goog.debug.Error);goog.async.Deferred.CancelledError.prototype.message="Deferred was cancelled";goog.async.Deferred.CancelledError.prototype.name="CancelledError";goog.net={};goog.net.jsloader={};goog.net.jsloader.GLOBAL_VERIFY_OBJS_="closure_verification";goog.net.jsloader.DEFAULT_TIMEOUT=5E3;goog.net.jsloader.scriptsToLoad_=[];goog.net.jsloader.loadMany=function(a,b){if(a.length){var c=goog.net.jsloader.scriptsToLoad_.length;goog.array.extend(goog.net.jsloader.scriptsToLoad_,a);if(!c){var a=goog.net.jsloader.scriptsToLoad_,d=function(){var c=a.shift(),c=goog.net.jsloader.load(c,b);a.length&&c.addBoth(d)};d()}}};
|
||||
goog.net.jsloader.load=function(a,b){var c=b||{},d=c.document||document,e=goog.dom.createElement(goog.dom.TagName.SCRIPT),f={script_:e,timeout_:void 0},g=new goog.async.Deferred(goog.net.jsloader.cancel_,f),h=null,i=goog.isDefAndNotNull(c.timeout)?c.timeout:goog.net.jsloader.DEFAULT_TIMEOUT;0<i&&(h=window.setTimeout(function(){goog.net.jsloader.cleanup_(e,!0);g.errback(new goog.net.jsloader.Error(goog.net.jsloader.ErrorCode.TIMEOUT,"Timeout reached for loading script "+a))},i),f.timeout_=h);e.onload=
|
||||
e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)goog.net.jsloader.cleanup_(e,c.cleanupWhenDone||!1,h),g.callback(null)};e.onerror=function(){goog.net.jsloader.cleanup_(e,!0,h);g.errback(new goog.net.jsloader.Error(goog.net.jsloader.ErrorCode.LOAD_ERROR,"Error while loading script "+a))};goog.dom.setProperties(e,{type:"text/javascript",charset:"UTF-8",src:a});goog.net.jsloader.getScriptParentElement_(d).appendChild(e);return g};
|
||||
goog.net.jsloader.loadAndVerify=function(a,b,c){goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_]||(goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_]={});var d=goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_];if(goog.isDef(d[b]))return goog.async.Deferred.fail(new goog.net.jsloader.Error(goog.net.jsloader.ErrorCode.VERIFY_OBJECT_ALREADY_EXISTS,"Verification object "+b+" already defined."));var c=goog.net.jsloader.load(a,c),e=new goog.async.Deferred(c.cancel);c.goog_async_Deferred_prototype$addCallback(function(){var c=
|
||||
d[b];goog.isDef(c)?(e.callback(c),delete d[b]):e.errback(new goog.net.jsloader.Error(goog.net.jsloader.ErrorCode.VERIFY_ERROR,"Script "+a+" loaded, but verification object "+b+" was not defined."))});c.addErrback(function(a){goog.isDef(d[b])&&delete d[b];e.errback(a)});return e};goog.net.jsloader.getScriptParentElement_=function(a){var b=a.getElementsByTagName(goog.dom.TagName.HEAD);return!b||goog.array.isEmpty(b)?a.documentElement:b[0]};
|
||||
goog.net.jsloader.cancel_=function(){if(this&&this.script_){var a=this.script_;a&&"SCRIPT"==a.tagName&&goog.net.jsloader.cleanup_(a,!0,this.timeout_)}};goog.net.jsloader.cleanup_=function(a,b,c){goog.isDefAndNotNull(c)&&goog.global.clearTimeout(c);a.onload=goog.nullFunction;a.onerror=goog.nullFunction;a.onreadystatechange=goog.nullFunction;b&&window.setTimeout(function(){goog.dom.removeNode(a)},0)};goog.net.jsloader.ErrorCode={LOAD_ERROR:0,TIMEOUT:1,VERIFY_ERROR:2,VERIFY_OBJECT_ALREADY_EXISTS:3};
|
||||
goog.net.jsloader.Error=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);goog.debug.Error.call(this,c);this.code=a};goog.inherits(goog.net.jsloader.Error,goog.debug.Error);goog.net.Jsonp=function(a,b){this.uri_=new goog.Uri(a);this.callbackParamName_=b?b:"callback";this.timeout_=5E3};goog.net.Jsonp.CALLBACKS="_callbacks_";goog.net.Jsonp.scriptCounter_=0;goog.net.Jsonp.prototype.setRequestTimeout=function(a){this.timeout_=a};goog.net.Jsonp.prototype.getRequestTimeout=function(){return this.timeout_};
|
||||
goog.net.Jsonp.prototype.goog_net_Jsonp_prototype$send=function(a,b,c,d){a=a||null;d=d||"_"+(goog.net.Jsonp.scriptCounter_++).toString(36)+goog.now().toString(36);goog.global[goog.net.Jsonp.CALLBACKS]||(goog.global[goog.net.Jsonp.CALLBACKS]={});var e=this.uri_.clone();a&&goog.net.Jsonp.addPayloadToUri_(a,e);b&&(b=goog.net.Jsonp.newReplyHandler_(d,b),goog.global[goog.net.Jsonp.CALLBACKS][d]=b,e.setParameterValues(this.callbackParamName_,goog.net.Jsonp.CALLBACKS+"."+d));b=goog.net.jsloader.load(e.toString(),
|
||||
{timeout:this.timeout_,cleanupWhenDone:!0});c=goog.net.Jsonp.newErrorHandler_(d,a,c);b.addErrback(c);return{id_:d,deferred_:b}};goog.net.Jsonp.prototype.cancel=function(a){a&&(a.deferred_&&a.deferred_.cancel(),a.id_&&goog.net.Jsonp.cleanup_(a.id_,!1))};goog.net.Jsonp.newErrorHandler_=function(a,b,c){return function(){goog.net.Jsonp.cleanup_(a,!1);c&&c(b)}};goog.net.Jsonp.newReplyHandler_=function(a,b){return function(c){goog.net.Jsonp.cleanup_(a,!0);b.apply(void 0,arguments)}};
|
||||
goog.net.Jsonp.cleanup_=function(a,b){goog.global[goog.net.Jsonp.CALLBACKS][a]&&(b?delete goog.global[goog.net.Jsonp.CALLBACKS][a]:goog.global[goog.net.Jsonp.CALLBACKS][a]=goog.nullFunction)};goog.net.Jsonp.addPayloadToUri_=function(a,b){for(var c in a)(!a.hasOwnProperty||a.hasOwnProperty(c))&&b.setParameterValues(c,a[c]);return b};ol.TileUrlFunction={};ol.TileUrlFunction.createFromTemplate=function(a){var b=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(b){for(var c=[],d=b[1].charCodeAt(0),e=b[2].charCodeAt(0);d<=e;++d)c.push(a.replace(b[0],String.fromCharCode(d)));return ol.TileUrlFunction.createFromTemplates(c)}return function(b){return goog.isNull(b)?void 0:a.replace("{z}",b.z).replace("{x}",b.x).replace("{y}",b.y)}};
|
||||
ol.TileUrlFunction.createFromTemplates=function(a){return ol.TileUrlFunction.createFromTileUrlFunctions(goog.array.map(a,ol.TileUrlFunction.createFromTemplate))};ol.TileUrlFunction.createFromTileUrlFunctions=function(a){return function(b){if(!goog.isNull(b)){var c=goog.math.modulo(b.hash(),a.length);return a[c](b)}}};
|
||||
ol.TileUrlFunction.createBboxParam=function(a,b,c){return function(d){if(!goog.isNull(d))return d=b.getTileCoordExtent(d),d="ne"==c.substr(0,2)?[d.minY,d.minX,d.maxY,d.maxX]:[d.minX,d.minY,d.maxX,d.maxY],goog.uri.utils.appendParam(a,"BBOX",d.join(","))}};ol.TileUrlFunction.nullTileUrlFunction=function(){};ol.TileUrlFunction.withTileCoordTransform=function(a,b){return function(c){return goog.isNull(c)?void 0:b(a(c))}};ol.ImageTile=function(a,b,c){ol.Tile.call(this,a);this.ol_ImageTile$src_=b;this.ol_ImageTile$image_=new Image;goog.isNull(c)||(this.ol_ImageTile$image_.crossOrigin=c);this.ol_ImageTile$imageByContext_={};this.ol_ImageTile$imageListenerKeys_=null};goog.inherits(ol.ImageTile,ol.Tile);
|
||||
ol.ImageTile.prototype.getImage=function(a){if(goog.isDef(a)){var b=goog.getUid(a);if(b in this.ol_ImageTile$imageByContext_)return this.ol_ImageTile$imageByContext_[b];a=goog.object.isEmpty(this.ol_ImageTile$imageByContext_)?this.ol_ImageTile$image_:this.ol_ImageTile$image_.cloneNode(!1);return this.ol_ImageTile$imageByContext_[b]=a}return this.ol_ImageTile$image_};ol.ImageTile.prototype.ol_Tile_prototype$getKey=function(){return this.ol_ImageTile$src_};
|
||||
ol.ImageTile.prototype.ol_ImageTile_prototype$handleImageError_=function(){this.ol_Tile$state=ol.TileState.ERROR;this.ol_ImageTile_prototype$unlistenImage_();this.ol_Tile_prototype$dispatchChangeEvent()};ol.ImageTile.prototype.ol_ImageTile_prototype$handleImageLoad_=function(){this.ol_Tile$state=ol.TileState.LOADED;this.ol_ImageTile_prototype$unlistenImage_();this.ol_Tile_prototype$dispatchChangeEvent()};
|
||||
ol.ImageTile.prototype.load=function(){this.ol_Tile$state==ol.TileState.IDLE&&(this.ol_Tile$state=ol.TileState.LOADING,goog.asserts.assert(goog.isNull(this.ol_ImageTile$imageListenerKeys_)),this.ol_ImageTile$imageListenerKeys_=[goog.events.listenOnce(this.ol_ImageTile$image_,goog.events.EventType.ERROR,this.ol_ImageTile_prototype$handleImageError_,!1,this),goog.events.listenOnce(this.ol_ImageTile$image_,goog.events.EventType.LOAD,this.ol_ImageTile_prototype$handleImageLoad_,!1,this)],this.ol_ImageTile$image_.src=
|
||||
this.ol_ImageTile$src_)};ol.ImageTile.prototype.ol_ImageTile_prototype$unlistenImage_=function(){goog.asserts.assert(!goog.isNull(this.ol_ImageTile$imageListenerKeys_));goog.array.forEach(this.ol_ImageTile$imageListenerKeys_,goog.events.unlistenByKey);this.ol_ImageTile$imageListenerKeys_=null};ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK=512;ol.TileCache=function(a){ol.structs.LRUCache.call(this);this.highWaterMark_=goog.isDef(a)?a:ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK};goog.inherits(ol.TileCache,ol.structs.LRUCache);ol.TileCache.prototype.ol_TileCache_prototype$canExpireCache=function(){return this.getCount()>this.highWaterMark_};ol.TileCache.prototype.expireCache=function(a){for(var b,c;this.ol_TileCache_prototype$canExpireCache()&&!(b=this.peekLast(),c=b.tileCoord.z.toString(),c in a&&a[c].contains(b.tileCoord));)this.ol_structs_LRUCache_prototype$pop()};ol.source.ImageTileSource=function(a){ol.source.TileSource.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.tileUrlFunction=goog.isDef(a.tileUrlFunction)?a.tileUrlFunction:ol.TileUrlFunction.nullTileUrlFunction;this.ol_source_ImageTileSource$crossOrigin_=goog.isDef(a.crossOrigin)?a.crossOrigin:"anonymous";this.ol_source_ImageTileSource$tileCache_=new ol.TileCache};goog.inherits(ol.source.ImageTileSource,ol.source.TileSource);
|
||||
ol.source.ImageTileSource.prototype.ol_source_TileSource_prototype$canExpireCache=function(){return this.ol_source_ImageTileSource$tileCache_.ol_TileCache_prototype$canExpireCache()};ol.source.ImageTileSource.prototype.expireCache=function(a){this.ol_source_ImageTileSource$tileCache_.expireCache(a)};
|
||||
ol.source.ImageTileSource.prototype.getTile=function(a){var b=a.toString();if(this.ol_source_ImageTileSource$tileCache_.containsKey(b))return this.ol_source_ImageTileSource$tileCache_.get(b);var c=this.getTileCoordUrl(a);goog.isDef(c)?(a=new ol.ImageTile(a,c,this.ol_source_ImageTileSource$crossOrigin_),this.ol_source_ImageTileSource$tileCache_.set(b,a)):a=null;return a};ol.source.ImageTileSource.prototype.getTileCoordUrl=function(a){return this.tileUrlFunction(a)};
|
||||
ol.source.ImageTileSource.prototype.useTile=function(a){a=a.toString();this.ol_source_ImageTileSource$tileCache_.containsKey(a)&&this.ol_source_ImageTileSource$tileCache_.get(a)};ol.tilegrid.XYZ=function(a){var b=Array(a.maxZoom+1),c,d=2*ol.projection.EPSG3857.HALF_SIZE/ol.DEFAULT_TILE_SIZE;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);ol.tilegrid.TileGrid.call(this,{origin:new ol.Coordinate(-ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE),resolutions:b,tileSize:new ol.Size(ol.DEFAULT_TILE_SIZE,ol.DEFAULT_TILE_SIZE)})};goog.inherits(ol.tilegrid.XYZ,ol.tilegrid.TileGrid);
|
||||
ol.tilegrid.XYZ.prototype.forEachTileCoordParentTileRange=function(a,b,c){for(var d=a.x,e=a.y,a=a.z,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new ol.TileRange(d,e,d,e);if(b.call(c,a,f))break}};ol.BingMapsStyle={AERIAL:"Aerial",AERIAL_WITH_LABELS:"AerialWithLabels",ROAD:"Road",ORDNANCE_SURVEY:"OrdnanceSurvey",COLLINS_BART:"CollinsBart"};
|
||||
ol.source.BingMaps=function(a){ol.source.ImageTileSource.call(this,{projection:ol.projection.getFromCode("EPSG:3857")});this.culture_=goog.isDef(a.culture)?a.culture:"en-us";this.ol_source_BingMaps$ready_=!1;var b=new goog.Uri("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style);(new goog.net.Jsonp(b,"jsonp")).goog_net_Jsonp_prototype$send({include:"ImageryProviders",key:a.key},goog.bind(this.handleImageryMetadataResponse,this))};goog.inherits(ol.source.BingMaps,ol.source.ImageTileSource);
|
||||
ol.source.BingMaps.prototype.handleImageryMetadataResponse=function(a){goog.asserts.assert("ValidCredentials"==a.authenticationResultCode);goog.asserts.assert(200==a.statusCode);goog.asserts.assert("OK"==a.statusDescription);goog.asserts.assert(1==a.resourceSets.length);a=a.resourceSets[0];goog.asserts.assert(1==a.resources.length);var b=a.resources[0],c=b.zoomMin,d=b.zoomMax,a=new ol.Size(b.imageWidth,b.imageHeight),e=new ol.tilegrid.XYZ({maxZoom:d,tileSize:a});this.tileGrid=e;this.tileUrlFunction=
|
||||
ol.TileUrlFunction.withTileCoordTransform(function(a){if(a.z<c||d<a.z)return null;var b=1<<a.z,e=-a.y-1;if(0>e||b<=e)return null;b=goog.math.modulo(a.x,b);return new ol.TileCoord(a.z,b,e)},ol.TileUrlFunction.createFromTileUrlFunctions(goog.array.map(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.culture_);return function(a){return goog.isNull(a)?void 0:c.replace("{quadkey}",a.quadKey())}})));var f=ol.projection.getTransform(ol.projection.getFromCode("EPSG:4326"),
|
||||
this.ol_source_Source_prototype$getProjection()),a=goog.array.map(b.imageryProviders,function(a){var b=a.attribution,c={};goog.array.forEach(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new ol.Extent(a[1],a[0],a[3],a[2])).transform(f),g,h;for(g=b;g<=d;++g)h=g.toString(),b=e.getTileRangeForExtentAndZ(a,g),h in c?c[h].push(b):c[h]=[b]});return new ol.Attribution(b,c)});this.setAttributions(a);this.ol_source_BingMaps$ready_=!0;this.dispatchLoadEvent()};
|
||||
ol.source.BingMaps.prototype.ol_source_Source_prototype$isReady=function(){return this.ol_source_BingMaps$ready_};ol.Ellipsoid=function(a,b){this.ol_Ellipsoid$a=a;this.flattening=b;this.ol_Ellipsoid$b=this.ol_Ellipsoid$a*(1-this.flattening)};
|
||||
ol.Ellipsoid.prototype.vincenty=function(a,b,c,d){var c=goog.isDef(c)?c:1E-12,e=goog.isDef(d)?d:100,f=this.flattening,g=goog.math.toRadians(a.y),d=goog.math.toRadians(b.y),h=goog.math.toRadians(b.x-a.x),b=Math.atan((1-f)*Math.tan(g)),a=Math.cos(b),b=Math.sin(b),g=Math.atan((1-f)*Math.tan(d)),d=Math.cos(g),g=Math.sin(g),i=h,k,j,l;j=Infinity;for(var m,p,n;0<e;--e){l=Math.cos(i);m=Math.sin(i);p=d*m;n=a*g-b*d*l;n=Math.sqrt(p*p+n*n);if(0===n)return{distance:0,initialBearing:0,finalBearing:0};l=b*g+a*d*
|
||||
l;p=Math.atan2(n,l);j=a*d*m/n;k=1-j*j;m=l-2*b*g/k;isNaN(m)&&(m=0);var q=f/16*k*(4+f*(4-3*k)),q=h+(1-q)*f*j*(p+q*n*(m+q*l*(2*m*m-1)));j=Math.abs(q-i);i=q;if(j<c)break}if(0===e)return{distance:NaN,finalBearing:NaN,initialBearing:NaN};c=this.ol_Ellipsoid$b*this.ol_Ellipsoid$b;f=k*(this.ol_Ellipsoid$a*this.ol_Ellipsoid$a-c)/c;c=1+f/16384*(4096+f*(f*(320-175*f)-768));f=f/1024*(256+f*(f*(74-47*f)-128));n=f*n*(m+f/4*(l*(2*m*m-1)-f/6*m*(4*n*n-3)*(4*m*m-3)));l=Math.cos(i);m=Math.sin(i);f=Math.atan2(d*m,a*
|
||||
g-b*d*l);a=Math.atan2(a*m,a*g*l-b*d);return{distance:this.ol_Ellipsoid$b*c*(p-n),initialBearing:goog.math.toDegrees(f),finalBearing:goog.math.toDegrees(a)}};ol.Ellipsoid.prototype.vincentyDistance=function(a,b,c,d){return this.vincenty(a,b,c,d).distance};ol.Ellipsoid.prototype.vincentyFinalBearing=function(a,b,c,d){return this.vincenty(a,b,c,d).finalBearing};ol.Ellipsoid.prototype.vincentyInitialBearing=function(a,b,c,d){return this.vincenty(a,b,c,d).initialBearing};ol.GeolocationProperty={ACCURACY:"accuracy",ALTITUDE:"altitude",ALTITUDE_ACCURACY:"altitudeAccuracy",HEADING:"heading",POSITION:"position",PROJECTION:"projection",SPEED:"speed"};
|
||||
ol.Geolocation=function(a){ol.Object.call(this);this.position_=null;ol.Geolocation.SUPPORTED&&(goog.events.listen(this,ol.Object.getChangedEventType(ol.GeolocationProperty.PROJECTION),this.handleProjectionChanged_,!1,this),this.watchId_=navigator.geolocation.watchPosition(goog.bind(this.positionChange_,this),goog.bind(this.positionError_,this),a))};goog.inherits(ol.Geolocation,ol.Object);
|
||||
ol.Geolocation.prototype.goog_Disposable_prototype$disposeInternal=function(){navigator.geolocation.clearWatch(this.watchId_);ol.Geolocation.superClass_.goog_Disposable_prototype$disposeInternal.call(this)};
|
||||
ol.Geolocation.prototype.handleProjectionChanged_=function(){var a=this.ol_Geolocation_prototype$getProjection();goog.isDefAndNotNull(a)&&(this.transformCoords_=ol.projection.getTransform(ol.projection.getFromCode("EPSG:4326"),a),goog.isNull(this.position_)||this.set(ol.GeolocationProperty.POSITION,this.transformCoords_(this.position_)))};ol.Geolocation.SUPPORTED="geolocation"in navigator;
|
||||
ol.Geolocation.prototype.positionChange_=function(a){a=a.coords;this.set(ol.GeolocationProperty.ACCURACY,a.accuracy);this.set(ol.GeolocationProperty.ALTITUDE,goog.isNull(a.altitude)?void 0:a.altitude);this.set(ol.GeolocationProperty.ALTITUDE_ACCURACY,goog.isNull(a.altitudeAccuracy)?void 0:a.altitudeAccuracy);this.set(ol.GeolocationProperty.HEADING,goog.isNull(a.heading)?void 0:goog.math.toRadians(a.heading));this.position_=new ol.Coordinate(a.longitude,a.latitude);this.set(ol.GeolocationProperty.POSITION,
|
||||
this.transformCoords_(this.position_));this.set(ol.GeolocationProperty.SPEED,goog.isNull(a.speed)?void 0:a.speed)};ol.Geolocation.prototype.positionError_=function(){};ol.Geolocation.prototype.getAccuracy=function(){return this.get(ol.GeolocationProperty.ACCURACY)};goog.exportProperty(ol.Geolocation.prototype,"getAccuracy",ol.Geolocation.prototype.getAccuracy);ol.Geolocation.prototype.getAltitude=function(){return this.get(ol.GeolocationProperty.ALTITUDE)};
|
||||
goog.exportProperty(ol.Geolocation.prototype,"getAltitude",ol.Geolocation.prototype.getAltitude);ol.Geolocation.prototype.getAltitudeAccuracy=function(){return this.get(ol.GeolocationProperty.ALTITUDE_ACCURACY)};goog.exportProperty(ol.Geolocation.prototype,"getAltitudeAccuracy",ol.Geolocation.prototype.getAltitudeAccuracy);ol.Geolocation.prototype.getHeading=function(){return this.get(ol.GeolocationProperty.HEADING)};goog.exportProperty(ol.Geolocation.prototype,"getHeading",ol.Geolocation.prototype.getHeading);
|
||||
ol.Geolocation.prototype.getPosition=function(){return this.get(ol.GeolocationProperty.POSITION)};goog.exportProperty(ol.Geolocation.prototype,"getPosition",ol.Geolocation.prototype.getPosition);ol.Geolocation.prototype.ol_Geolocation_prototype$getProjection=function(){return this.get(ol.GeolocationProperty.PROJECTION)};goog.exportProperty(ol.Geolocation.prototype,"getProjection",ol.Geolocation.prototype.ol_Geolocation_prototype$getProjection);ol.Geolocation.prototype.getSpeed=function(){return this.get(ol.GeolocationProperty.SPEED)};
|
||||
goog.exportProperty(ol.Geolocation.prototype,"getSpeed",ol.Geolocation.prototype.getSpeed);ol.Geolocation.prototype.ol_Geolocation_prototype$setProjection=function(a){this.set(ol.GeolocationProperty.PROJECTION,a)};goog.exportProperty(ol.Geolocation.prototype,"setProjection",ol.Geolocation.prototype.ol_Geolocation_prototype$setProjection);ol.Geolocation.prototype.transformCoords_=goog.functions.identity;/*
|
||||
|
||||
Latitude/longitude spherical geodesy formulae taken from
|
||||
http://www.movable-type.co.uk/scripts/latlong.html
|
||||
Licenced under CC-BY-3.0.
|
||||
*/
|
||||
ol.Sphere=function(a){this.radius=a};ol.Sphere.prototype.cosineDistance=function(a,b){var c=goog.math.toRadians(a.y),d=goog.math.toRadians(b.y),e=goog.math.toRadians(b.x-a.x);return this.radius*Math.acos(Math.sin(c)*Math.sin(d)+Math.cos(c)*Math.cos(d)*Math.cos(e))};
|
||||
ol.Sphere.prototype.crossTrackDistance=function(a,b,c){this.cosineDistance(a,b);var d=this.cosineDistance(a,b),b=goog.math.toRadians(this.initialBearing(a,b)),a=goog.math.toRadians(this.initialBearing(a,c));return this.radius*Math.asin(Math.sin(d/this.radius)*Math.sin(a-b))};ol.Sphere.prototype.equirectangularDistance=function(a,b){var c=goog.math.toRadians(a.y),d=goog.math.toRadians(b.y),e=goog.math.toRadians(b.x-a.x)*Math.cos((c+d)/2),c=d-c;return this.radius*Math.sqrt(e*e+c*c)};
|
||||
ol.Sphere.prototype.finalBearing=function(a,b){return(this.initialBearing(b,a)+180)%360};ol.Sphere.prototype.haversineDistance=function(a,b){var c=goog.math.toRadians(a.y),d=goog.math.toRadians(b.y),e=(d-c)/2,f=goog.math.toRadians(b.x-a.x)/2,c=Math.sin(e)*Math.sin(e)+Math.sin(f)*Math.sin(f)*Math.cos(c)*Math.cos(d);return 2*this.radius*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};
|
||||
ol.Sphere.prototype.initialBearing=function(a,b){var c=goog.math.toRadians(a.y),d=goog.math.toRadians(b.y),e=goog.math.toRadians(b.x-a.x),f=Math.sin(e)*Math.cos(d),c=Math.cos(c)*Math.sin(d)-Math.sin(c)*Math.cos(d)*Math.cos(e);return goog.math.toDegrees(Math.atan2(f,c))};ol.Sphere.prototype.maximumLatitude=function(a,b){return Math.cos(Math.abs(Math.sin(goog.math.toRadians(a))*Math.cos(goog.math.toRadians(b))))};
|
||||
ol.Sphere.prototype.midpoint=function(a,b){var c=goog.math.toRadians(a.y),d=goog.math.toRadians(b.y),e=goog.math.toRadians(a.x),f=goog.math.toRadians(b.x-a.x),g=Math.cos(d)*Math.cos(f),f=Math.cos(d)*Math.sin(f),g=Math.cos(c)+g,c=Math.atan2(Math.sin(c)+Math.sin(d),Math.sqrt(g*g+f*f)),e=e+Math.atan2(f,g);return new ol.Coordinate(goog.math.toDegrees(e),goog.math.toDegrees(c))};
|
||||
ol.Sphere.prototype.ol_Sphere_prototype$offset=function(a,b,c){var d=goog.math.toRadians(a.y),a=goog.math.toRadians(a.x),e=b/this.radius,b=Math.asin(Math.sin(d)*Math.cos(e)+Math.cos(d)*Math.sin(e)*Math.cos(c)),c=a+Math.atan2(Math.sin(c)*Math.sin(e)*Math.cos(d),Math.cos(e)-Math.sin(d)*Math.sin(b));return new ol.Coordinate(goog.math.toDegrees(c),goog.math.toDegrees(b))};ol.control.MousePosition=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"ol-mouse-position"});ol.control.Control.call(this,{element:b,map:a.map,target:a.target});this.ol_control_MousePosition$projection_=a.projection;this.coordinateFormat_=a.coordinateFormat;this.undefinedHTML_=goog.isDef(a.undefinedHTML)?a.undefinedHTML:"";this.renderedHTML_=b.innerHTML;this.mapProjection_=null;this.ol_control_MousePosition$transform_=ol.projection.identityTransform;this.ol_control_MousePosition$listenerKeys_=
|
||||
this.lastMouseMovePixel_=this.renderedProjection_=null};goog.inherits(ol.control.MousePosition,ol.control.Control);ol.control.MousePosition.prototype.ol_control_MousePosition_prototype$handleMapPostrender=function(a){a=a.frameState;goog.isNull(a)?this.mapProjection_=null:this.mapProjection_=a.view2DState.projection;this.updateHTML_(this.lastMouseMovePixel_)};
|
||||
ol.control.MousePosition.prototype.handleMouseMove=function(a){var b=this.ol_control_Control_prototype$getMap(),a=goog.style.getRelativePosition(a,b.getViewport()),a=new ol.Pixel(a.x,a.y);this.updateHTML_(a);this.lastMouseMovePixel_=a};ol.control.MousePosition.prototype.handleMouseOut=function(){this.updateHTML_(null);this.lastMouseMovePixel_=null};
|
||||
ol.control.MousePosition.prototype.ol_control_Control_prototype$setMap=function(a){goog.isNull(this.ol_control_MousePosition$listenerKeys_)||(goog.array.forEach(this.ol_control_MousePosition$listenerKeys_,goog.events.unlistenByKey),this.ol_control_MousePosition$listenerKeys_=null);ol.control.MousePosition.superClass_.ol_control_Control_prototype$setMap.call(this,a);if(!goog.isNull(a)){var b=a.getViewport();this.ol_control_MousePosition$listenerKeys_=[goog.events.listen(b,goog.events.EventType.MOUSEMOVE,
|
||||
this.handleMouseMove,!1,this),goog.events.listen(b,goog.events.EventType.MOUSEOUT,this.handleMouseOut,!1,this),goog.events.listen(a,ol.MapEventType.POSTRENDER,this.ol_control_MousePosition_prototype$handleMapPostrender,!1,this)]}};
|
||||
ol.control.MousePosition.prototype.updateHTML_=function(a){var b=this.undefinedHTML_;goog.isNull(a)||(this.renderedProjection_!=this.mapProjection_&&(this.ol_control_MousePosition$transform_=goog.isDef(this.ol_control_MousePosition$projection_)?ol.projection.getTransform(this.mapProjection_,this.ol_control_MousePosition$projection_):ol.projection.identityTransform,this.renderedProjection_=this.mapProjection_),a=this.ol_control_Control_prototype$getMap().getCoordinateFromPixel(a),goog.isNull(a)||(a=
|
||||
this.ol_control_MousePosition$transform_(a),b=goog.isDef(this.coordinateFormat_)?this.coordinateFormat_(a):a.toString()));if(!goog.isDef(this.renderedHTML_)||b!=this.renderedHTML_)this.renderedHTML_=this.element.innerHTML=b};ol.ellipsoid={};ol.ellipsoid.WGS84=new ol.Ellipsoid(6378137,1/298.257223563);ol.interaction.DragRotateAndZoom=function(a){ol.interaction.Drag.call(this);this.ol_interaction_DragRotateAndZoom$condition_=a};goog.inherits(ol.interaction.DragRotateAndZoom,ol.interaction.Drag);
|
||||
ol.interaction.DragRotateAndZoom.prototype.handleDrag=function(a){var b=a.browserEvent,a=a.map,c=a.getSize(),c=new goog.math.Vec2(b.goog_events_BrowserEvent_prototype$offsetX-c.width/2,c.height/2-b.goog_events_BrowserEvent_prototype$offsetY),b=Math.atan2(c.y,c.x),c=c.magnitude(),d=a.getView();goog.asserts.assert(d instanceof ol.View2D);a.requestRenderFrame();if(goog.isDef(this.ol_interaction_DragRotateAndZoom$lastAngle_)){var e=b-this.ol_interaction_DragRotateAndZoom$lastAngle_;d.rotate(a,d.getRotation()-
|
||||
e)}this.ol_interaction_DragRotateAndZoom$lastAngle_=b;goog.isDef(this.lastMagnitude_)&&(b=this.lastMagnitude_*(d.ol_IView2D_prototype$getResolution()/c),d.zoomToResolution(a,b));this.lastMagnitude_=c};ol.interaction.DragRotateAndZoom.prototype.handleDragStart=function(a){return this.ol_interaction_DragRotateAndZoom$condition_(a.browserEvent)?(this.lastMagnitude_=this.ol_interaction_DragRotateAndZoom$lastAngle_=void 0,!0):!1};ol.interaction.Keyboard=function(){ol.interaction.Interaction.call(this);this.charCodeCallbacks_={}};goog.inherits(ol.interaction.Keyboard,ol.interaction.Interaction);ol.interaction.Keyboard.prototype.ol_interaction_Keyboard_prototype$addCallback=function(a,b){var c;for(c=0;c<a.length;++c)this.charCodeCallbacks_[a.charCodeAt(c)]=b};
|
||||
ol.interaction.Keyboard.prototype.ol_interaction_Interaction_prototype$handleMapBrowserEvent=function(a){if(a.type==goog.events.KeyHandler.EventType.KEY){var b=this.charCodeCallbacks_[a.browserEvent.goog_events_BrowserEvent_prototype$charCode];b&&(b(),a.goog_events_Event_prototype$preventDefault())}};ol.parser={};ol.parser.XML=function(){this.regExes={trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g}};ol.parser.XML.prototype.readNode=function(a,b){b||(b={});var c=this.readers[a.namespaceURI]||this.readers[this.defaultNamespaceURI];if(c){var d=a.localName||a.nodeName.split(":").pop();(c=c[d]||c["*"])&&c.apply(this,[a,b])}return b};
|
||||
ol.parser.XML.prototype.readChildNodes=function(a,b){b||(b={});for(var c=a.childNodes,d,e=0,f=c.length;e<f;++e)d=c[e],1==d.nodeType&&this.readNode(d,b);return b};ol.parser.XML.prototype.getChildValue=function(a,b){var c=b||"";if(a)for(var d=a.firstChild;d;d=d.nextSibling)switch(d.nodeType){case 3:case 4:c+=d.nodeValue}return c};
|
||||
ol.parser.XML.prototype.ol_parser_XML_prototype$getAttributeNodeNS=function(a,b,c){var d=null;if(a.getAttributeNodeNS)d=a.getAttributeNodeNS(b,c);else for(var a=a.attributes,e,f,g=0,h=a.length;g<h;++g)if(e=a[g],e.namespaceURI==b&&(f=e.prefix?e.prefix+":"+c:c,f==e.nodeName)){d=e;break}return d};ol.parser.XML.prototype.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else if(a=this.ol_parser_XML_prototype$getAttributeNodeNS(a,b,c))d=a.nodeValue;return d};goog.dom.xml={};goog.dom.xml.MAX_XML_SIZE_KB=2048;goog.dom.xml.MAX_ELEMENT_DEPTH=256;
|
||||
goog.dom.xml.createDocument=function(a,b){if(b&&!a)throw Error("Can't create document with namespace and no root tag");if(document.implementation&&document.implementation.createDocument)return document.implementation.createDocument(b||"",a||"",null);if("undefined"!=typeof ActiveXObject){var c=goog.dom.xml.createMsXmlDocument_();if(c)return a&&c.appendChild(c.createNode(goog.dom.NodeType.ELEMENT,a,b||"")),c}throw Error("Your browser does not support creating new documents");};
|
||||
goog.dom.xml.loadXml=function(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=goog.dom.xml.createMsXmlDocument_();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
|
||||
goog.dom.xml.serialize=function(a){if("undefined"!=typeof XMLSerializer)return(new XMLSerializer).serializeToString(a);if(a=a.xml)return a;throw Error("Your browser does not support serializing XML documents");};
|
||||
goog.dom.xml.selectSingleNode=function(a,b){if("undefined"!=typeof a.selectSingleNode){var c=goog.dom.getOwnerDocument(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(document.implementation.hasFeature("XPath","3.0")){var c=goog.dom.getOwnerDocument(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null};
|
||||
goog.dom.xml.selectNodes=function(a,b){if("undefined"!=typeof a.selectNodes){var c=goog.dom.getOwnerDocument(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectNodes(b)}if(document.implementation.hasFeature("XPath","3.0")){for(var c=goog.dom.getOwnerDocument(a),d=c.createNSResolver(c.documentElement),c=c.evaluate(b,a,d,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),d=[],e=c.snapshotLength,f=0;f<e;f++)d.push(c.snapshotItem(f));return d}return[]};
|
||||
goog.dom.xml.setAttributes=function(a,b){for(var c in b)b.hasOwnProperty(c)&&a.setAttribute(c,b[c])};goog.dom.xml.createMsXmlDocument_=function(){var a=new ActiveXObject("MSXML2.DOMDocument");if(a){a.resolveExternals=!1;a.validateOnParse=!1;try{a.setProperty("ProhibitDTD",!0),a.setProperty("MaxXMLSize",goog.dom.xml.MAX_XML_SIZE_KB),a.setProperty("MaxElementDepth",goog.dom.xml.MAX_ELEMENT_DEPTH)}catch(b){}}return a};ol.parser.ogc={};
|
||||
ol.parser.ogc.ExceptionReport=function(){var a=function(a,b){var e={code:a.getAttribute("exceptionCode"),locator:a.getAttribute("locator"),texts:[]};b.exceptions.push(e);this.readChildNodes(a,e)},b=function(a,b){var e=this.getChildValue(a);b.texts.push(e)};this.readers={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];this.readChildNodes(a,b.exceptionReport)},ServiceException:function(a,b){var e={};e.code=a.getAttribute("code");e.locator=
|
||||
a.getAttribute("locator");e.text=this.getChildValue(a);b.exceptions.push(e)}},"http://www.opengis.net/ows":{ExceptionReport:function(a,b){b.success=!1;b.exceptionReport={version:a.getAttribute("version"),language:a.getAttribute("language"),exceptions:[]};this.readChildNodes(a,b.exceptionReport)},Exception:function(b,d){a.apply(this,arguments)},ExceptionText:function(a,d){b.apply(this,arguments)}},"http://www.opengis.net/ows/1.1":{ExceptionReport:function(a,b){b.exceptionReport={version:a.getAttribute("version"),
|
||||
language:a.getAttribute("xml:lang"),exceptions:[]};this.readChildNodes(a,b.exceptionReport)},Exception:function(b,d){a.apply(this,arguments)},ExceptionText:function(a,d){b.apply(this,arguments)}}};ol.parser.XML.call(this)};goog.inherits(ol.parser.ogc.ExceptionReport,ol.parser.XML);ol.parser.ogc.ExceptionReport.prototype.read=function(a){"string"==typeof a&&(a=goog.dom.xml.loadXml(a));var b={exceptionReport:null};a&&this.readChildNodes(a,b);return b};ol.parser.ogc.OWSCommon_v1=function(){this.readers={"http://www.opengis.net/ows":{ServiceIdentification:function(a,b){b.serviceIdentification={};this.readChildNodes(a,b.serviceIdentification)},Title:function(a,b){b.title=this.getChildValue(a)},Abstract:function(a,b){b["abstract"]=this.getChildValue(a)},Keywords:function(a,b){b.keywords={};this.readChildNodes(a,b.keywords)},Keyword:function(a,b){b[this.getChildValue(a)]=!0},ServiceType:function(a,b){b.serviceType={codeSpace:a.getAttribute("codeSpace"),
|
||||
value:this.getChildValue(a)}},ServiceTypeVersion:function(a,b){b.serviceTypeVersion=this.getChildValue(a)},Fees:function(a,b){b.fees=this.getChildValue(a)},AccessConstraints:function(a,b){b.accessConstraints=this.getChildValue(a)},ServiceProvider:function(a,b){b.serviceProvider={};this.readChildNodes(a,b.serviceProvider)},ProviderName:function(a,b){b.providerName=this.getChildValue(a)},ProviderSite:function(a,b){b.providerSite=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceContact:function(a,
|
||||
b){b.serviceContact={};this.readChildNodes(a,b.serviceContact)},IndividualName:function(a,b){b.individualName=this.getChildValue(a)},PositionName:function(a,b){b.positionName=this.getChildValue(a)},ContactInfo:function(a,b){b.contactInfo={};this.readChildNodes(a,b.contactInfo)},Phone:function(a,b){b.phone={};this.readChildNodes(a,b.phone)},Voice:function(a,b){b.voice=this.getChildValue(a)},Address:function(a,b){b.address={};this.readChildNodes(a,b.address)},DeliveryPoint:function(a,b){b.deliveryPoint=
|
||||
this.getChildValue(a)},City:function(a,b){b.city=this.getChildValue(a)},AdministrativeArea:function(a,b){b.administrativeArea=this.getChildValue(a)},PostalCode:function(a,b){b.postalCode=this.getChildValue(a)},Country:function(a,b){b.country=this.getChildValue(a)},ElectronicMailAddress:function(a,b){b.electronicMailAddress=this.getChildValue(a)},Role:function(a,b){b.role=this.getChildValue(a)},OperationsMetadata:function(a,b){b.operationsMetadata={};this.readChildNodes(a,b.operationsMetadata)},Operation:function(a,
|
||||
b){var c=a.getAttribute("name");b[c]={};this.readChildNodes(a,b[c])},DCP:function(a,b){b.dcp={};this.readChildNodes(a,b.dcp)},HTTP:function(a,b){b.http={};this.readChildNodes(a,b.http)},Get:function(a,b){b.get||(b.get=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};this.readChildNodes(a,c);b.get.push(c)},Post:function(a,b){b.post||(b.post=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};this.readChildNodes(a,c);b.post.push(c)},Parameter:function(a,
|
||||
b){b.parameters||(b.parameters={});var c=a.getAttribute("name");b.parameters[c]={};this.readChildNodes(a,b.parameters[c])},Constraint:function(a,b){b.constraints||(b.constraints={});var c=a.getAttribute("name");b.constraints[c]={};this.readChildNodes(a,b.constraints[c])},Value:function(a,b){b[this.getChildValue(a)]=!0},OutputFormat:function(a,b){b.formats.push({value:this.getChildValue(a)});this.readChildNodes(a,b)},WGS84BoundingBox:function(a,b){var c={};c.crs=a.getAttribute("crs");b.BoundingBox?
|
||||
b.BoundingBox.push(c):(b.projection=c.crs,c=b);this.readChildNodes(a,c)},BoundingBox:function(a,b){this.readers["http://www.opengis.net/ows"].WGS84BoundingBox.apply(this,[a,b])},LowerCorner:function(a,b){var c=this.getChildValue(a).replace(this.regExes.trimSpace,""),c=c.replace(this.regExes.trimComma,","),c=c.split(this.regExes.splitSpace);b.left=c[0];b.bottom=c[1]},UpperCorner:function(a,b){var c=this.getChildValue(a).replace(this.regExes.trimSpace,""),c=c.replace(this.regExes.trimComma,","),c=c.split(this.regExes.splitSpace);
|
||||
b.right=c[0];b.top=c[1];b.bounds=new ol.Extent(parseFloat(b.left),parseFloat(b.bottom),parseFloat(b.right),parseFloat(b.top));delete b.left;delete b.bottom;delete b.right;delete b.top},Language:function(a,b){b.language=this.getChildValue(a)}}};ol.parser.XML.call(this)};goog.inherits(ol.parser.ogc.OWSCommon_v1,ol.parser.XML);ol.parser.ogc.OWSCommon_v1_1_0=function(){ol.parser.ogc.OWSCommon_v1.call(this);this.readers["http://www.opengis.net/ows/1.1"]=this.readers["http://www.opengis.net/ows"];goog.object.extend(this.readers["http://www.opengis.net/ows/1.1"],{AllowedValues:function(a,b){b.allowedValues={};this.readChildNodes(a,b.allowedValues)},AnyValue:function(a,b){b.anyValue=!0},DataType:function(a,b){b.dataType=this.getChildValue(a)},Range:function(a,b){b.range={};this.readChildNodes(a,b.range)},MinimumValue:function(a,
|
||||
b){b.minValue=this.getChildValue(a)},MaximumValue:function(a,b){b.maxValue=this.getChildValue(a)},Identifier:function(a,b){b.identifier=this.getChildValue(a)},SupportedCRS:function(a,b){b.supportedCRS=this.getChildValue(a)}})};goog.inherits(ol.parser.ogc.OWSCommon_v1_1_0,ol.parser.ogc.OWSCommon_v1);ol.parser.ogc.Versioned=function(a){this.ol_parser_ogc_Versioned$options=a=a||{};this.defaultVersion=a.defaultVersion||null;this.version=a.version;this.profile=a.profile;void 0!==a.allowFallback?this.allowFallback=a.allowFallback:this.allowFallback=!1;void 0!==a.stringifyOutput?this.stringifyOutput=a.stringifyOutput:this.stringifyOutput=!1};
|
||||
ol.parser.ogc.Versioned.prototype.getVersion=function(a,b){var c;a?(c=this.version,c||(c=a.getAttribute("version"),c||(c=this.defaultVersion))):c=b&&b.version||this.version||this.defaultVersion;return c};
|
||||
ol.parser.ogc.Versioned.prototype.getParser=function(a){var a=a||this.defaultVersion,b=this.profile?"_"+this.profile:"";if(!this.parser||this.parser.VERSION!=a){var c=this.parsers["v"+a.replace(/\./g,"_")+b];if(!c&&(""!==b&&this.allowFallback&&(b="",c=this.parsers["v"+a.replace(/\./g,"_")+b]),!c))throw"Can't find a parser for version "+a+b;this.parser=new c(this.ol_parser_ogc_Versioned$options)}return this.parser};
|
||||
ol.parser.ogc.Versioned.prototype.write=function(a,b){var c=this.getVersion(null,b);this.parser=this.getParser(c);c=this.parser.write(a,b);return!1===this.stringifyOutput?c:goog.dom.xml.serialize(c)};
|
||||
ol.parser.ogc.Versioned.prototype.read=function(a,b){"string"==typeof a&&(a=goog.dom.xml.loadXml(a));var c=this.getVersion(a.documentElement);this.parser=this.getParser(c);var d=this.parser.read(a,b),e=this.parser.errorProperty||null;null!==e&&void 0===d[e]&&(e=new ol.parser.ogc.ExceptionReport,d.error=e.read(a));d.version=c;return d};ol.parser.ogc.WMSCapabilities_v1=function(){this.defaultNamespaceURI="http://www.opengis.net/wms";this.errorProperty="service";this.readers={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};this.readChildNodes(a,b.service)},Name:function(a,b){b.name=this.getChildValue(a)},Title:function(a,b){b.title=this.getChildValue(a)},Abstract:function(a,b){b["abstract"]=this.getChildValue(a)},BoundingBox:function(a){var b={};b.bbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),
|
||||
parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))];a={x:parseFloat(a.getAttribute("resx")),y:parseFloat(a.getAttribute("resy"))};if(!isNaN(a.x)||!isNaN(a.y))b.res=a;return b},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ContactInformation:function(a,b){b.contactInformation={};this.readChildNodes(a,b.contactInformation)},ContactPersonPrimary:function(a,b){b.personPrimary={};this.readChildNodes(a,b.personPrimary)},ContactPerson:function(a,
|
||||
b){b.person=this.getChildValue(a)},ContactOrganization:function(a,b){b.organization=this.getChildValue(a)},ContactPosition:function(a,b){b.position=this.getChildValue(a)},ContactAddress:function(a,b){b.contactAddress={};this.readChildNodes(a,b.contactAddress)},AddressType:function(a,b){b.type=this.getChildValue(a)},Address:function(a,b){b.address=this.getChildValue(a)},City:function(a,b){b.city=this.getChildValue(a)},StateOrProvince:function(a,b){b.stateOrProvince=this.getChildValue(a)},PostCode:function(a,
|
||||
b){b.postcode=this.getChildValue(a)},Country:function(a,b){b.country=this.getChildValue(a)},ContactVoiceTelephone:function(a,b){b.phone=this.getChildValue(a)},ContactFacsimileTelephone:function(a,b){b.fax=this.getChildValue(a)},ContactElectronicMailAddress:function(a,b){b.email=this.getChildValue(a)},Fees:function(a,b){var c=this.getChildValue(a);c&&"none"!=c.toLowerCase()&&(b.fees=c)},AccessConstraints:function(a,b){var c=this.getChildValue(a);c&&"none"!=c.toLowerCase()&&(b.accessConstraints=c)},
|
||||
Capability:function(a,b){b.capability={};b.capability.nestedLayers=[];b.capability.layers=[];this.readChildNodes(a,b.capability)},Request:function(a,b){b.request={};this.readChildNodes(a,b.request)},GetCapabilities:function(a,b){b.getcapabilities={};b.getcapabilities.formats=[];this.readChildNodes(a,b.getcapabilities)},Format:function(a,b){goog.isArray(b.formats)?b.formats.push(this.getChildValue(a)):b.format=this.getChildValue(a)},DCPType:function(a,b){this.readChildNodes(a,b)},HTTP:function(a,b){this.readChildNodes(a,
|
||||
b)},Get:function(a,b){b.get={};this.readChildNodes(a,b.get)},Post:function(a,b){b.post={};this.readChildNodes(a,b.post)},GetMap:function(a,b){b.getmap={};b.getmap.formats=[];this.readChildNodes(a,b.getmap)},GetFeatureInfo:function(a,b){b.getfeatureinfo={};b.getfeatureinfo.formats=[];this.readChildNodes(a,b.getfeatureinfo)},Exception:function(a,b){b.exception={};b.exception.formats=[];this.readChildNodes(a,b.exception)},Layer:function(a,b){var c,d;b.capability?(d=b.capability,c=b):d=b;var e=a.getAttributeNode("queryable"),
|
||||
f=e&&e.specified?a.getAttribute("queryable"):null,g=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):null,h=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):null,i=a.getAttribute("noSubsets"),k=a.getAttribute("fixedWidth"),j=a.getAttribute("fixedHeight"),e=c||{},f={nestedLayers:[],styles:c?[].concat(c.styles):[],srs:{},metadataURLs:[],bbox:{},llbbox:e.llbbox,dimensions:{},authorityURLs:{},identifiers:{},keywords:[],queryable:f&&""!==f?"1"===f||"true"===
|
||||
f:e.queryable||!1,cascaded:null!==g?parseInt(g,10):e.cascaded||0,opaque:h?"1"===h||"true"===h:e.opaque||!1,noSubsets:null!==i?"1"===i||"true"===i:e.noSubsets||!1,fixedWidth:null!==k?parseInt(k,10):e.fixedWidth||0,fixedHeight:null!==j?parseInt(j,10):e.fixedHeight||0,minScale:e.minScale,maxScale:e.maxScale,attribution:e.attribution};c&&(goog.object.extend(f.srs,e.srs),goog.object.extend(f.bbox,e.bbox),goog.object.extend(f.dimensions,e.dimensions),goog.object.extend(f.authorityURLs,e.authorityURLs));
|
||||
b.nestedLayers.push(f);f.capability=d;this.readChildNodes(a,f);delete f.capability;f.name&&(c=f.name.split(":"),g=d.request,e=g.getfeatureinfo,0<c.length&&(f.prefix=c[0]),d.layers.push(f),void 0===f.formats&&(f.formats=g.getmap.formats),void 0===f.infoFormats&&e&&(f.infoFormats=e.formats))},Attribution:function(a,b){b.attribution={};this.readChildNodes(a,b.attribution)},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};this.readChildNodes(a,b.logo)},Style:function(a,
|
||||
b){var c={};b.styles.push(c);this.readChildNodes(a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;this.readChildNodes(a,c)},MetadataURL:function(a,b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);this.readChildNodes(a,c)},DataURL:function(a,b){b.dataURL={};this.readChildNodes(a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};this.readChildNodes(a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),
|
||||
d={};this.readChildNodes(a,d);b.authorityURLs[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.identifiers[c]=this.getChildValue(a)},KeywordList:function(a,b){this.readChildNodes(a,b)},SRS:function(a,b){b.srs[this.getChildValue(a)]=!0}}};ol.parser.XML.call(this)};goog.inherits(ol.parser.ogc.WMSCapabilities_v1,ol.parser.XML);
|
||||
ol.parser.ogc.WMSCapabilities_v1.prototype.read=function(a){"string"==typeof a&&(a=goog.dom.xml.loadXml(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};this.readNode(a,b);return b};ol.parser.ogc.WMSCapabilities_v1_1=function(){ol.parser.ogc.WMSCapabilities_v1.call(this);var a=this.readers["http://www.opengis.net/wms"].BoundingBox;goog.object.extend(this.readers["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){this.readChildNodes(a,c)},Keyword:function(a,c){c.keywords&&c.keywords.push({value:this.getChildValue(a)})},DescribeLayer:function(a,c){c.describelayer={formats:[]};this.readChildNodes(a,c.describelayer)},GetLegendGraphic:function(a,c){c.getlegendgraphic=
|
||||
{formats:[]};this.readChildNodes(a,c.getlegendgraphic)},GetStyles:function(a,c){c.getstyles={formats:[]};this.readChildNodes(a,c.getstyles)},PutStyles:function(a,c){c.putstyles={formats:[]};this.readChildNodes(a,c.putstyles)},UserDefinedSymbolization:function(a,c){var d={supportSLD:1==parseInt(a.getAttribute("SupportSLD"),10),userLayer:1==parseInt(a.getAttribute("UserLayer"),10),userStyle:1==parseInt(a.getAttribute("UserStyle"),10),remoteWFS:1==parseInt(a.getAttribute("RemoteWFS"),10)};c.userSymbols=
|
||||
d},LatLonBoundingBox:function(a,c){c.llbbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))]},BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("SRS");c.bbox[d.srs]=d},ScaleHint:function(a,c){var d=parseFloat(a.getAttribute("min")),e=parseFloat(a.getAttribute("max")),f=Math.pow(2,0.5),g=25.4/0.28;0!==d&&(c.maxScale=parseFloat(39.37*(d/f)*g));e!=Number.POSITIVE_INFINITY&&(c.minScale=
|
||||
parseFloat(39.37*(e/f)*g))},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),unitsymbol:a.getAttribute("unitSymbol")};c.dimensions[d.name]=d},Extent:function(a,c){var d=a.getAttribute("name").toLowerCase();if(d in c.dimensions){d=c.dimensions[d];d.nearestVal="1"===a.getAttribute("nearestValue");d.multipleVal="1"===a.getAttribute("multipleValues");d.current="1"===a.getAttribute("current");d["default"]=a.getAttribute("default")||"";var e=this.getChildValue(a);
|
||||
d.values=e.split(",")}}})};goog.inherits(ol.parser.ogc.WMSCapabilities_v1_1,ol.parser.ogc.WMSCapabilities_v1);ol.parser.ogc.WMSCapabilities_v1_1_0=function(){ol.parser.ogc.WMSCapabilities_v1_1.call(this);this.version="1.1.0";goog.object.extend(this.readers["http://www.opengis.net/wms"],{SRS:function(a,b){for(var c=this.getChildValue(a).split(/ +/),d=0,e=c.length;d<e;d++)b.srs[c[d]]=!0}})};goog.inherits(ol.parser.ogc.WMSCapabilities_v1_1_0,ol.parser.ogc.WMSCapabilities_v1_1);ol.parser.ogc.WMSCapabilities_v1_1_1=function(){ol.parser.ogc.WMSCapabilities_v1_1.call(this);this.version="1.1.1";goog.object.extend(this.readers["http://www.opengis.net/wms"],{SRS:function(a,b){b.srs[this.getChildValue(a)]=!0}})};goog.inherits(ol.parser.ogc.WMSCapabilities_v1_1_1,ol.parser.ogc.WMSCapabilities_v1_1);ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC=function(){ol.parser.ogc.WMSCapabilities_v1_1_1.call(this);this.profile="WMSC";goog.object.extend(this.readers["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};this.readChildNodes(a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};this.readChildNodes(a,c);b.tileSets.push(c)},Resolutions:function(a,b){for(var c=this.getChildValue(a).split(" "),d=0,e=c.length;d<e;d++)""!==c[d]&&
|
||||
b.resolutions.push(parseFloat(c[d]))},Width:function(a,b){b.width=parseInt(this.getChildValue(a),10)},Height:function(a,b){b.height=parseInt(this.getChildValue(a),10)},Layers:function(a,b){b.layers=this.getChildValue(a)},Styles:function(a,b){b.styles=this.getChildValue(a)}})};goog.inherits(ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC,ol.parser.ogc.WMSCapabilities_v1_1_1);ol.parser.ogc.WMSCapabilities_v1_3_0=function(){ol.parser.ogc.WMSCapabilities_v1.call(this);var a=this.readers["http://www.opengis.net/wms"].BoundingBox;goog.object.extend(this.readers["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){this.readChildNodes(a,c)},LayerLimit:function(a,c){c.layerLimit=parseInt(this.getChildValue(a),10)},MaxWidth:function(a,c){c.maxWidth=parseInt(this.getChildValue(a),10)},MaxHeight:function(a,c){c.maxHeight=parseInt(this.getChildValue(a),10)},BoundingBox:function(b,
|
||||
c){var d=a.apply(this,arguments);d.srs=b.getAttribute("CRS");c.bbox[d.srs]=d},CRS:function(a,c){this.readers["http://www.opengis.net/wms"].SRS.apply(this,arguments)},EX_GeographicBoundingBox:function(a,c){c.llbbox=[];this.readChildNodes(a,c.llbbox)},westBoundLongitude:function(a,c){c[0]=this.getChildValue(a)},eastBoundLongitude:function(a,c){c[2]=this.getChildValue(a)},southBoundLatitude:function(a,c){c[1]=this.getChildValue(a)},northBoundLatitude:function(a,c){c[3]=this.getChildValue(a)},MinScaleDenominator:function(a,
|
||||
c){c.maxScale=parseFloat(this.getChildValue(a)).toPrecision(16)},MaxScaleDenominator:function(a,c){c.minScale=parseFloat(this.getChildValue(a)).toPrecision(16)},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),unitsymbol:a.getAttribute("unitSymbol"),nearestVal:"1"===a.getAttribute("nearestValue"),multipleVal:"1"===a.getAttribute("multipleValues"),"default":a.getAttribute("default")||"",current:"1"===a.getAttribute("current"),values:this.getChildValue(a).split(",")};
|
||||
c.dimensions[d.name]=d},Keyword:function(a,c){var d={value:this.getChildValue(a),vocabulary:a.getAttribute("vocabulary")};c.keywords&&c.keywords.push(d)}});this.readers.sld={UserDefinedSymbolization:function(a,c){this.readers["http://www.opengis.net/wms"].UserDefinedSymbolization.apply(this,arguments);var d=a.getAttribute("InlineFeature");c.userSymbols.inlineFeature=1==parseInt(d,10);d=a.getAttribute("RemoteWCS");c.userSymbols.remoteWCS=1==parseInt(d,10)},DescribeLayer:function(a,c){this.readers["http://www.opengis.net/wms"].DescribeLayer.apply(this,
|
||||
arguments)},GetLegendGraphic:function(a,c){this.readers["http://www.opengis.net/wms"].GetLegendGraphic.apply(this,arguments)}}};goog.inherits(ol.parser.ogc.WMSCapabilities_v1_3_0,ol.parser.ogc.WMSCapabilities_v1);ol.ENABLE_WMSCAPS_1_1_0=!0;ol.ENABLE_WMSCAPS_1_1_1=!0;ol.ENABLE_WMSCAPS_1_3_0=!0;ol.ENABLE_WMSCAPS_1_1_1_WMSC=!0;
|
||||
ol.parser.ogc.WMSCapabilities=function(a){a=a||{};a.defaultVersion="1.1.1";this.parsers={};ol.ENABLE_WMSCAPS_1_1_0&&(this.parsers.v1_1_0=ol.parser.ogc.WMSCapabilities_v1_1_0);ol.ENABLE_WMSCAPS_1_1_1&&(this.parsers.v1_1_1=ol.parser.ogc.WMSCapabilities_v1_1_1);ol.ENABLE_WMSCAPS_1_1_1_WMSC&&(this.parsers.v1_1_1_WMSC=ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC);ol.ENABLE_WMSCAPS_1_3_0&&(this.parsers.v1_3_0=ol.parser.ogc.WMSCapabilities_v1_3_0);ol.parser.ogc.Versioned.call(this,a)};
|
||||
goog.inherits(ol.parser.ogc.WMSCapabilities,ol.parser.ogc.Versioned);ol.parser.ogc.WMTSCapabilities_v1_0_0=function(){this.readers={"http://www.opengis.net/wmts/1.0":{Capabilities:function(a,c){this.readChildNodes(a,c)},Contents:function(a,c){c.contents={};c.contents.layers=[];c.contents.tileMatrixSets={};this.readChildNodes(a,c.contents)},Layer:function(a,c){var d={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};this.readChildNodes(a,d);c.layers.push(d)},Style:function(a,c){var d={};d.isDefault="true"===a.getAttribute("isDefault");this.readChildNodes(a,
|
||||
d);c.styles.push(d)},Format:function(a,c){c.formats.push(this.getChildValue(a))},TileMatrixSetLink:function(a,c){var d={};this.readChildNodes(a,d);c.tileMatrixSetLinks.push(d)},TileMatrixSet:function(a,c){if(c.layers){var d={matrixIds:[]};this.readChildNodes(a,d);c.tileMatrixSets[d.identifier]=d}else c.tileMatrixSet=this.getChildValue(a)},TileMatrix:function(a,c){var d={supportedCRS:c.supportedCRS};this.readChildNodes(a,d);c.matrixIds.push(d)},ScaleDenominator:function(a,c){c.scaleDenominator=parseFloat(this.getChildValue(a))},
|
||||
TopLeftCorner:function(a,c){var d=this.getChildValue(a).split(" "),e=ol.projection.getFromCode(c.supportedCRS).getAxisOrientation();c.topLeftCorner=ol.Coordinate.fromProjectedArray([parseFloat(d[0]),parseFloat(d[1])],e)},TileWidth:function(a,c){c.tileWidth=parseInt(this.getChildValue(a),10)},TileHeight:function(a,c){c.tileHeight=parseInt(this.getChildValue(a),10)},MatrixWidth:function(a,c){c.matrixWidth=parseInt(this.getChildValue(a),10)},MatrixHeight:function(a,c){c.matrixHeight=parseInt(this.getChildValue(a),
|
||||
10)},ResourceURL:function(a,c){c.resourceUrl=c.resourceUrl||{};var d=a.getAttribute("resourceType");c.resourceUrls||(c.resourceUrls=[]);d=c.resourceUrl[d]={format:a.getAttribute("format"),template:a.getAttribute("template"),resourceType:d};c.resourceUrls.push(d)},WSDL:function(a,c){c.wsdl={};c.wsdl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceMetadataURL:function(a,c){c.serviceMetadataUrl={};c.serviceMetadataUrl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink",
|
||||
"href")},LegendURL:function(a,c){c.legend={};c.legend.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href");c.legend.format=a.getAttribute("format")},Dimension:function(a,c){var d={values:[]};this.readChildNodes(a,d);c.dimensions.push(d)},Default:function(a,c){c["default"]=this.getChildValue(a)},Value:function(a,c){c.values.push(this.getChildValue(a))}}};var a=new ol.parser.ogc.OWSCommon_v1_1_0;this.readers["http://www.opengis.net/ows/1.1"]=a.readers["http://www.opengis.net/ows/1.1"];
|
||||
ol.parser.XML.call(this)};goog.inherits(ol.parser.ogc.WMTSCapabilities_v1_0_0,ol.parser.XML);ol.parser.ogc.WMTSCapabilities_v1_0_0.prototype.read=function(a){"string"==typeof a&&(a=goog.dom.xml.loadXml(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};this.readNode(a,b);return b};ol.parser.ogc.WMTSCapabilities=function(a){a=a||{};a.defaultVersion="1.0.0";this.parsers={};this.parsers.v1_0_0=ol.parser.ogc.WMTSCapabilities_v1_0_0;ol.parser.ogc.Versioned.call(this,a)};goog.inherits(ol.parser.ogc.WMTSCapabilities,ol.parser.ogc.Versioned);ol.DebugTile_=function(a,b){ol.Tile.call(this,a);this.ol_Tile$state=ol.TileState.LOADED;this.tileCoord_=a;this.ol_DebugTile_$tileSize_=b.getTileSize();this.canvasByContext_={}};goog.inherits(ol.DebugTile_,ol.Tile);
|
||||
ol.DebugTile_.prototype.getImage=function(a){a=goog.isDef(a)?goog.getUid(a):-1;if(a in this.canvasByContext_)return this.canvasByContext_[a];var b=this.ol_DebugTile_$tileSize_,c=goog.dom.createElement(goog.dom.TagName.CANVAS);c.width=b.width;c.height=b.height;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b.width+0.5,b.height+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.tileCoord_.toString(),b.width/2,b.height/
|
||||
2);return this.canvasByContext_[a]=c};ol.source.DebugTileSource=function(a){ol.source.TileSource.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.ol_source_DebugTileSource$tileCache_=new ol.TileCache};goog.inherits(ol.source.DebugTileSource,ol.source.TileSource);ol.source.DebugTileSource.prototype.ol_source_TileSource_prototype$canExpireCache=function(){return this.ol_source_DebugTileSource$tileCache_.ol_TileCache_prototype$canExpireCache()};
|
||||
ol.source.DebugTileSource.prototype.expireCache=function(a){this.ol_source_DebugTileSource$tileCache_.expireCache(a)};ol.source.DebugTileSource.prototype.getTile=function(a){var b=a.toString();if(this.ol_source_DebugTileSource$tileCache_.containsKey(b))return this.ol_source_DebugTileSource$tileCache_.get(b);a=new ol.DebugTile_(a,this.tileGrid);this.ol_source_DebugTileSource$tileCache_.set(b,a);return a};ol.source.XYZ=function(a){var b=a.projection||ol.projection.getFromCode("EPSG:3857"),c=ol.TileUrlFunction.nullTileUrlFunction;goog.isDef(a.tileUrlFunction)?c=a.tileUrlFunction:goog.isDef(a.urls)?c=ol.TileUrlFunction.createFromTemplates(a.urls):goog.isDef(a.url)&&(c=ol.TileUrlFunction.createFromTemplate(a.url));var d=new ol.tilegrid.XYZ({maxZoom:a.maxZoom}),e=a.extent,c=goog.isDefAndNotNull(e)?ol.TileUrlFunction.withTileCoordTransform(function(b){if(a.maxZoom<b.z)return null;var c=1<<b.z,h=-b.y-1;
|
||||
if(0>h||c<=h)return null;c=goog.math.modulo(b.x,c);return!d.getTileCoordExtent(new ol.TileCoord(b.z,c,b.y)).intersects(e)?null:new ol.TileCoord(b.z,c,h)},c):ol.TileUrlFunction.withTileCoordTransform(function(b){if(a.maxZoom<b.z)return null;var c=1<<b.z,d=-b.y-1;if(0>d||c<=d)return null;c=goog.math.modulo(b.x,c);return new ol.TileCoord(b.z,c,d)},c);ol.source.ImageTileSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:b,tileGrid:d,tileUrlFunction:c})};
|
||||
goog.inherits(ol.source.XYZ,ol.source.ImageTileSource);ol.source.MapQuestOSM=function(){var a=[new ol.Attribution('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new ol.Attribution('Data © <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')];ol.source.XYZ.call(this,{attributions:a,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})};
|
||||
goog.inherits(ol.source.MapQuestOSM,ol.source.XYZ);ol.source.MapQuestOpenAerial=function(){var a=[new ol.Attribution('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new ol.Attribution("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")];ol.source.XYZ.call(this,{attributions:a,maxZoom:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})};
|
||||
goog.inherits(ol.source.MapQuestOpenAerial,ol.source.XYZ);ol.source.OpenStreetMap=function(){var a=new ol.Attribution('© <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>');ol.source.XYZ.call(this,{attributions:[a],maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})};goog.inherits(ol.source.OpenStreetMap,ol.source.XYZ);ol.source.SingleImageWMS=function(a){var b=ol.projection.createProjection(a.projection,"EPSG:3857"),c=b.getExtent(),c=goog.isDef(a.extent)?a.extent:c,d=goog.isDef(a.version)?a.version:"1.3",e={SERVICE:"WMS",VERSION:d,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:!0};e["1.3"<=d?"CRS":"SRS"]=b.getCode();goog.object.extend(e,a.params);d=b.getAxisOrientation();a.url?(e=goog.uri.utils.appendParamsFromMap(a.url,e),e=ol.ImageUrlFunction.createBboxParam(e,d)):e=ol.ImageUrlFunction.nullImageUrlFunction;
|
||||
ol.source.ImageSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:c,projection:b,resolutions:a.resolutions,imageUrlFunction:e});this.ol_source_SingleImageWMS$image_=null;this.ratio_=1.5};goog.inherits(ol.source.SingleImageWMS,ol.source.ImageSource);
|
||||
ol.source.SingleImageWMS.prototype.getImage=function(a,b){var b=this.findNearestResolution(b),c=this.ol_source_SingleImageWMS$image_;if(!goog.isNull(c)&&c.ol_Image_prototype$getResolution()==b&&c.getExtent().containsExtent(a))return c;a=new ol.Extent(a.minX,a.minY,a.maxX,a.maxY);a.scaleFromCenter(this.ratio_);var c=a.getWidth()/b,d=a.getHeight()/b,c=new ol.Size(c,d);return this.ol_source_SingleImageWMS$image_=this.createImage(a,b,c)};ol.source.StamenFlavor={TERRAIN_BACKGROUND:"background",TERRAIN_LABELS:"labels",TERRAIN_LINES:"lines",TONER_2010:"2010",TONER_2011:"2011",TONER_2011_LABELS:"2011-labels",TONER_2011_LINES:"2011-lines",TONER_2011_LITE:"2011-lite",TONER_BACKGROUND:"background",TONER_HYBRID:"hybrid",TONER_LABELS:"labels",TONER_LINES:"lines",TONER_LITE:"lite"};ol.source.StamenProvider={TERRAIN:"terrain",TONER:"toner",WATERCOLOR:"watercolor"};ol.source.StamenProviderConfig={};
|
||||
ol.source.StamenProviderConfig[ol.source.StamenProvider.TERRAIN]={type:"jpg",minZoom:4,maxZoom:18};ol.source.StamenProviderConfig[ol.source.StamenProvider.TONER]={type:"png",minZoom:0,maxZoom:20};ol.source.StamenProviderConfig[ol.source.StamenProvider.WATERCOLOR]={type:"jpg",minZoom:3,maxZoom:16};
|
||||
ol.source.Stamen=function(a){var b=new ol.Attribution('Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'),c=a.provider;goog.isDef(a.flavor)&&(c+="-"+a.flavor);a=ol.source.StamenProviderConfig[a.provider];ol.source.XYZ.call(this,{attributions:[b],maxZoom:a.maxZoom,url:"http://{a-d}.tile.stamen.com/"+
|
||||
c+"/{z}/{x}/{y}."+a.type})};goog.inherits(ol.source.Stamen,ol.source.XYZ);ol.source.StaticImage=function(a){var b=ol.source.StaticImage.createImageFunction(a.url),c=a.imageExtent,d=a.imageSize,e=c.getHeight()/d.height;ol.source.ImageSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,imageUrlFunction:b,resolutions:[e]});this.ol_source_StaticImage$image_=this.createImage(c,e,d)};goog.inherits(ol.source.StaticImage,ol.source.ImageSource);
|
||||
ol.source.StaticImage.prototype.getImage=function(a){return a.intersects(this.ol_source_StaticImage$image_.getExtent())?this.ol_source_StaticImage$image_:null};ol.source.StaticImage.createImageFunction=function(a){return function(){return a}};ol.tilejson={};ol.tilejson.grids_=[];var grid=function(a){ol.tilejson.grids_.push(a)};goog.exportSymbol("grid",grid);ol.source.TileJSON=function(a){ol.source.ImageTileSource.call(this,{projection:ol.projection.getFromCode("EPSG:3857")});this.ol_source_TileJSON$ready_=!1;this.deferred_=goog.net.jsloader.load(a.uri,{cleanupWhenDone:!0});this.deferred_.goog_async_Deferred_prototype$addCallback(this.handleTileJSONResponse,this)};goog.inherits(ol.source.TileJSON,ol.source.ImageTileSource);
|
||||
ol.source.TileJSON.prototype.handleTileJSONResponse=function(){var a=ol.tilejson.grids_.pop(),b=ol.projection.getFromCode("EPSG:4326"),c,d;goog.isDef(a.bounds)?(c=a.bounds,c=new ol.Extent(c[0],c[1],c[2],c[3]),d=c.transform(ol.projection.getTransform(b,this.ol_source_Source_prototype$getProjection())),this.setExtent(d)):d=c=null;goog.isDef(a.scheme);goog.isDef(a.scheme)&&goog.asserts.assert("xyz"==a.scheme);var e=a.minzoom||0;goog.asserts.assert(0===e);var f=a.maxzoom||22,g=new ol.tilegrid.XYZ({maxZoom:f});
|
||||
this.tileGrid=g;this.tileUrlFunction=ol.TileUrlFunction.withTileCoordTransform(function(a){if(a.z<e||f<a.z)return null;var b=1<<a.z,c=-a.y-1;if(0>c||b<=c)return null;b=goog.math.modulo(a.x,b);return!goog.isNull(d)&&!g.getTileCoordExtent(new ol.TileCoord(a.z,b,a.y)).intersects(d)?null:new ol.TileCoord(a.z,b,c)},ol.TileUrlFunction.createFromTemplates(a.tiles));if(goog.isDef(a.attribution)){b=goog.isNull(d)?b.getExtent():d;c={};var h,i;for(h=e;h<=f;++h)i=h.toString(),c[i]=[g.getTileRangeForExtentAndZ(b,
|
||||
h)];this.setAttributions([new ol.Attribution(a.attribution,c)])}this.ol_source_TileJSON$ready_=!0;this.dispatchLoadEvent()};ol.source.TileJSON.prototype.ol_source_Source_prototype$isReady=function(){return this.ol_source_TileJSON$ready_};ol.source.TiledWMS=function(a){var b=ol.projection.createProjection(a.projection,"EPSG:3857"),c=b.getExtent(),d=goog.isDef(a.extent)?a.extent:c,e=goog.isDef(a.version)?a.version:"1.3",f;f=goog.isDef(a.tileGrid)?a.tileGrid:ol.tilegrid.createForProjection(b,a.maxZoom);var g={SERVICE:"WMS",VERSION:e,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:!0},h=f.getTileSize();g.WIDTH=h.width;g.HEIGHT=h.height;g["1.3"<=e?"CRS":"SRS"]=b.getCode();goog.object.extend(g,a.params);var i=b.getAxisOrientation();
|
||||
a.urls?(e=goog.array.map(a.urls,function(a){a=goog.uri.utils.appendParamsFromMap(a,g);return ol.TileUrlFunction.createBboxParam(a,f,i)}),e=ol.TileUrlFunction.createFromTileUrlFunctions(e)):a.url?(e=goog.uri.utils.appendParamsFromMap(a.url,g),e=ol.TileUrlFunction.createBboxParam(e,f,i)):e=ol.TileUrlFunction.nullTileUrlFunction;ol.source.ImageTileSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:f,projection:b,tileUrlFunction:ol.TileUrlFunction.withTileCoordTransform(function(a){if(f.ol_tilegrid_TileGrid_prototype$getResolutions().length<=
|
||||
a.z)return null;var b=a.x,e=f.getTileCoordExtent(a);d.minX===c.minX&&d.maxX===c.maxX&&(e=Math.ceil((d.maxX-d.minX)/(e.maxX-e.minX)),b=goog.math.modulo(b,e),e=f.getTileCoordExtent(new ol.TileCoord(a.z,b,a.y)));return!e.intersects(d)?null:new ol.TileCoord(a.z,b,a.y)},e)})};goog.inherits(ol.source.TiledWMS,ol.source.ImageTileSource);ol.AnchoredElementOptionsType={};ol.MapOptionsType={};ol.View2DOptionsType={};ol.animation.BounceOptionsType={};ol.animation.PanOptionsType={};ol.animation.RotateOptionsType={};ol.animation.ZoomOptionsType={};ol.control.AttributionOptionsType={};ol.control.MousePositionOptionsType={};ol.control.ZoomOptionsType={};ol.layer.LayerOptionsType={};ol.source.BingMapsOptionsType={};ol.source.DebugTileSourceOptionsType={};ol.source.SingleImageWMSOptionsType={};ol.source.StamenOptionsType={};
|
||||
ol.source.StaticImageOptionsType={};ol.source.TiledWMSOptionsType={};ol.tilegrid.TileGridOptionsType={};ol.tilegrid.XYZOptionsType={};
|
||||
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1 +1 @@
|
||||
.ol-attribution{position:absolute;font-size:10px;text-align:right;color:#eee;bottom:0;right:0;background:#130085;background:rgba(0,60,136,0.3);filter:alpha(opacity=30);font-family:'Lucida Grande',Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;padding:2px 4px}.ol-attribution a{color:white;text-decoration:none}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:"\2003"}.ol-dragbox{position:absolute;border:2px solid red}.ol-renderer-webgl-canvas{width:100%;height:100%}.ol-viewport .ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ol-zoom{position:absolute;top:8px;left:8px;background:rgba(255,255,255,0.4);border-radius:4px;padding:2px}.ol-zoom a{display:block;margin:1px;padding:0;color:white;font-size:18px;font-family:'Lucida Grande',Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;font-weight:bold;text-decoration:none;text-align:center;height:22px;width:22px;line-height:19px;background:#130085;background:rgba(0,60,136,0.5);filter:alpha(opacity=80)}.ol-zoom a:hover{background:#130085;background:rgba(0,60,136,0.7);filter:alpha(opacity=100)}@media only screen and (max-width:600px){.ol-zoom a:hover{background:rgba(0,60,136,0.5)}}.ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom-out{border-radius:0 0 2px 2px}
|
||||
.ol-attribution{position:absolute;font-size:10px;text-align:right;color:#eee;bottom:0;right:0;background:rgba(0,60,136,0.3);font-family:'Lucida Grande',Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;padding:2px 4px}.ol-attribution a{color:white;text-decoration:none}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:"\2003"}.ol-dragbox{position:absolute;border:2px solid red}.ol-renderer-webgl-canvas{width:100%;height:100%}.ol-viewport .ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ol-zoom{position:absolute;top:8px;left:8px;background:rgba(255,255,255,0.4);border-radius:4px;padding:2px}.ol-zoom a{display:block;margin:1px;padding:0;color:white;font-size:18px;font-family:'Lucida Grande',Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;font-weight:bold;text-decoration:none;text-align:center;height:22px;width:22px;line-height:19px;background:rgba(0,60,136,0.5)}.ol-zoom a:hover{background:rgba(0,60,136,0.7)}.ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom-in:before{content:"+"}.ol-zoom-out{border-radius:0 0 2px 2px}.ol-zoom-out:before{content:"\2212"}
|
||||
+220
-195
@@ -1,199 +1,224 @@
|
||||
(function(){var h=void 0,j=!0,k=null,p=!1;function q(a){return function(){return this[a]}}var s,w=this;function aa(){}function ba(a){a.Sa=function(){return a.qc?a.qc:a.qc=new a}}
|
||||
function ca(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 x(a){return a!==h}function da(a){return"array"==ca(a)}function ea(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ga(a){return"string"==typeof a}function ha(a){return"function"==ca(a)}function ia(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function y(a){return a[ja]||(a[ja]=++ka)}var ja="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ka=0;
|
||||
function la(a,b,c){return a.call.apply(a.bind,arguments)}function ma(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 na(a,b,c){na=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return na.apply(k,arguments)}
|
||||
function oa(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var pa=Date.now||function(){return+new Date};function A(a,b){var c=a.split("."),d=w;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&x(b)?d[e]=b:d=d[e]?d[e]:d[e]={}}function B(a,b){function c(){}c.prototype=b.prototype;a.s=b.prototype;a.prototype=new c};function qa(a){Error.captureStackTrace?Error.captureStackTrace(this,qa):this.stack=Error().stack||"";a&&(this.message=String(a))}B(qa,Error);qa.prototype.name="CustomError";function ra(a){if(!sa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ta,"&"));-1!=a.indexOf("<")&&(a=a.replace(ua,"<"));-1!=a.indexOf(">")&&(a=a.replace(va,">"));-1!=a.indexOf('"')&&(a=a.replace(wa,"""));return a}var ta=/&/g,ua=/</g,va=/>/g,wa=/\"/g,sa=/[&<>\"]/;var xa=Array.prototype,ya=xa.indexOf?function(a,b,c){return xa.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ga(a))return!ga(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},D=xa.forEach?function(a,b,c){xa.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ga(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},za=xa.map?function(a,b,c){return xa.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=
|
||||
ga(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Aa=xa.some?function(a,b,c){return xa.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ga(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return j;return p};function Ba(a){if(!da(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function Ca(a,b){var c=ya(a,b),d;(d=0<=c)&&xa.splice.call(a,c,1);return d}function Da(a){return xa.concat.apply(xa,arguments)}
|
||||
function Ea(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[]}function Ma(a,b,c,d){xa.splice.apply(a,Na(arguments,1))}function Na(a,b,c){return 2>=arguments.length?xa.slice.call(a,b):xa.slice.call(a,b,c)}function Oa(a){xa.sort.call(a,Pa)}function Pa(a,b){return a>b?1:a<b?-1:0};var Qa,Ra,Sa,Ta,Ua,Va,Wa;function Xa(){return w.navigator?w.navigator.userAgent:k}function Ya(){return w.navigator}Ta=Sa=Ra=Qa=p;var Za;if(Za=Xa()){var $a=Ya();Qa=0==Za.indexOf("Opera");Ra=!Qa&&-1!=Za.indexOf("MSIE");Sa=!Qa&&-1!=Za.indexOf("WebKit");Ta=!Qa&&!Sa&&"Gecko"==$a.product}var ab=Qa,E=Ra,bb=Ta,F=Sa,cb,db=Ya();cb=db&&db.platform||"";Ua=-1!=cb.indexOf("Mac");Va=-1!=cb.indexOf("Win");Wa=-1!=cb.indexOf("Linux");var eb=!!Ya()&&-1!=(Ya().appVersion||"").indexOf("X11"),fb;
|
||||
a:{var gb="",hb;if(ab&&w.opera)var ib=w.opera.version,gb="function"==typeof ib?ib():ib;else if(bb?hb=/rv\:([^\);]+)(\)|;)/:E?hb=/MSIE\s+([^\);]+)(\)|;)/:F&&(hb=/WebKit\/(\S+)/),hb)var jb=hb.exec(Xa()),gb=jb?jb[1]:"";if(E){var kb,lb=w.document;kb=lb?lb.documentMode:h;if(kb>parseFloat(gb)){fb=String(kb);break a}}fb=gb}var mb={};
|
||||
function nb(a){var b;if(!(b=mb[a])){b=0;for(var c=String(fb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",i=d[f]||"",r=RegExp("(\\d*)(\\D*)","g"),n=RegExp("(\\d*)(\\D*)","g");do{var l=r.exec(g)||["","",""],m=n.exec(i)||["","",""];if(0==l[0].length&&0==m[0].length)break;b=((0==l[1].length?0:parseInt(l[1],10))<(0==m[1].length?0:parseInt(m[1],10))?-1:(0==l[1].length?0:parseInt(l[1],
|
||||
10))>(0==m[1].length?0:parseInt(m[1],10))?1:0)||((0==l[2].length)<(0==m[2].length)?-1:(0==l[2].length)>(0==m[2].length)?1:0)||(l[2]<m[2]?-1:l[2]>m[2]?1:0)}while(0==b)}b=mb[a]=0<=b}return b}var ob={};function pb(a){return ob[a]||(ob[a]=E&&!!document.documentMode&&document.documentMode>=a)};var qb,rb=!E||pb(9);!bb&&!E||E&&pb(9)||bb&&nb("1.9.1");E&&nb("9");function sb(a,b){var c;c=a.className;c=ga(c)&&c.match(/\S+/g)||[];for(var d=Na(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=ya(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function tb(a,b,c){return Math.min(Math.max(a,b),c)}function ub(a,b){var c=a%b;return 0>c*b?c+b:c};function vb(a,b){this.x=x(a)?a:0;this.y=x(b)?b:0}vb.prototype.O=function(){return new vb(this.x,this.y)};function wb(a,b){this.width=a;this.height=b}s=wb.prototype;s.O=function(){return new wb(this.width,this.height)};s.Fa=function(){return!(this.width*this.height)};s.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};s.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};s.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function xb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function yb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function zb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Ab(a){for(var b in a)return p;return j}var Bb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
|
||||
function Cb(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.length;f++)c=Bb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Db(a){return a?new Eb(Fb(a)):qb||(qb=new Eb)}function Gb(a,b){xb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Hb?a.setAttribute(Hb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Hb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
|
||||
function Ib(a){a=a.document.documentElement;return new wb(a.clientWidth,a.clientHeight)}function Jb(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!rb&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',ra(g.name),'"');if(g.type){f.push(' type="',ra(g.type),'"');var i={};Cb(i,g);delete i.type;g=i}f.push(">");f=f.join("")}f=e.createElement(f);g&&(ga(g)?f.className=g:da(g)?sb.apply(k,[f].concat(g)):Gb(f,g));2<d.length&&Kb(e,f,d,2);return f}
|
||||
function Kb(a,b,c,d){function e(c){c&&b.appendChild(ga(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(ea(f)&&!(ia(f)&&0<f.nodeType)){var g=D,i;a:{if((i=f)&&"number"==typeof i.length){if(ia(i)){i="function"==typeof i.item||"string"==typeof i.item;break a}if(ha(i)){i="function"==typeof i.item;break a}}i=p}g(i?Ea(f):f,e)}else e(f)}}function Lb(a){return document.createElement(a)}function Mb(a,b){Kb(Fb(a),a,arguments,1)}function Nb(a){for(var b;b=a.firstChild;)a.removeChild(b)}
|
||||
function Ob(a,b){a.insertBefore(b,a.childNodes[0]||k)}function Pb(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Fb(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Eb(a){this.a=a||w.document||document}Eb.prototype.createElement=function(a){return this.a.createElement(a)};Eb.prototype.createTextNode=function(a){return this.a.createTextNode(a)};
|
||||
function Qb(a){var b=a.a,a=!F?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new vb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Eb.prototype.appendChild=function(a,b){a.appendChild(b)};Eb.prototype.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};var Rb=!E||pb(9),Sb=!E||pb(9),Tb=E&&!nb("9");!F||nb("528");bb&&nb("1.9b")||E&&nb("8")||ab&&nb("9.5")||F&&nb("528");bb&&!nb("8")||E&&nb("9");function G(){0!=Ub&&(this.Me=Error().stack,Vb[y(this)]=this)}var Ub=0,Vb={};G.prototype.Ac=p;G.prototype.Ab=function(){if(!this.Ac&&(this.Ac=j,this.p(),0!=Ub)){var a=y(this);delete Vb[a]}};function Wb(a,b){a.na||(a.na=[]);a.na.push(b)}G.prototype.p=function(){this.na&&Xb.apply(k,this.na);if(this.Fc)for(;this.Fc.length;)this.Fc.shift()()};function Yb(a){a&&"function"==typeof a.Ab&&a.Ab()}function Xb(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ea(d)?Xb.apply(k,d):Yb(d)}};function Zb(a,b){this.type=a;this.c=this.target=b}s=Zb.prototype;s.Ab=function(){};s.ia=p;s.Va=p;s.ob=j;s.Eb=function(){this.ia=j};s.w=function(){this.Va=j;this.ob=p};function $b(a){a.Eb()};function ac(a){ac[" "](a);return a}ac[" "]=aa;function bc(a,b){a&&cc(this,a,b)}B(bc,Zb);var dc=[1,4,2];s=bc.prototype;s.target=k;s.xd=k;s.vd=0;s.wd=0;s.clientX=0;s.clientY=0;s.yd=0;s.zd=0;s.td=0;s.ma=0;s.Ta=0;s.Ua=p;s.X=p;s.ha=p;s.ud=p;s.lb=p;s.H=k;
|
||||
function cc(a,b,c){var d=a.type=b.type;Zb.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(bb){var e;a:{try{ac(c.nodeName);e=j;break a}catch(f){}e=p}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.xd=c;a.vd=F||b.offsetX!==h?b.offsetX:b.layerX;a.wd=F||b.offsetY!==h?b.offsetY:b.layerY;a.clientX=b.clientX!==h?b.clientX:b.pageX;a.clientY=b.clientY!==h?b.clientY:b.pageY;a.yd=b.screenX||0;a.zd=b.screenY||0;a.td=b.button;a.ma=b.keyCode||0;a.Ta=b.charCode||
|
||||
("keypress"==d?b.keyCode:0);a.Ua=b.ctrlKey;a.X=b.altKey;a.ha=b.shiftKey;a.ud=b.metaKey;a.lb=Ua?b.metaKey:b.ctrlKey;a.a=b.state;a.H=b;b.defaultPrevented&&a.w();delete a.ia}function ec(a){return(Rb?0==a.H.button:"click"==a.type?j:!!(a.H.button&dc[0]))&&!(F&&Ua&&a.Ua)}s.Eb=function(){bc.s.Eb.call(this);this.H.stopPropagation?this.H.stopPropagation():this.H.cancelBubble=j};
|
||||
s.w=function(){bc.s.w.call(this);var a=this.H;if(a.preventDefault)a.preventDefault();else if(a.returnValue=p,Tb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};s.od=q("H");function fc(){}var gc=0;fc.prototype.key=0;fc.prototype.ra=p;fc.prototype.a=p;fc.prototype.handleEvent=function(a){return this.b?this.Ga.call(this.Mb||this.src,a):this.Ga.handleEvent.call(this.Ga,a)};var hc={},ic={},jc={},kc={};
|
||||
function H(a,b,c,d,e){if(b){if(da(b)){for(var f=0;f<b.length;f++)H(a,b[f],c,d,e);return k}var d=!!d,g=ic;b in g||(g[b]={l:0,M:0});g=g[b];d in g||(g[d]={l:0,M:0},g.l++);var g=g[d],i=y(a),r;g.M++;if(g[i]){r=g[i];for(f=0;f<r.length;f++)if(g=r[f],g.Ga==c&&g.Mb==e){if(g.ra)break;return r[f].key}}else r=g[i]=[],g.l++;var n=lc,l=Sb?function(a){return n.call(l.src,l.key,a)}:function(a){a=n.call(l.src,l.key,a);if(!a)return a},f=l;f.src=a;var m=g=new fc;if(ha(c))m.b=j;else if(c&&c.handleEvent&&ha(c.handleEvent))m.b=
|
||||
p;else throw Error("Invalid listener argument");m.Ga=c;m.c=f;m.src=a;m.type=b;m.capture=!!d;m.Mb=e;m.a=p;m.key=++gc;m.ra=p;c=g.key;f.key=c;r.push(g);hc[c]=g;jc[i]||(jc[i]=[]);jc[i].push(g);a.addEventListener?(a==w||!a.fc)&&a.addEventListener(b,f,d):a.attachEvent(b in kc?kc[b]:kc[b]="on"+b,f);return c}throw Error("Invalid event type");}function mc(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)mc(a,b[f],c,d,e);return k}a=H(a,b,c,d,e);hc[a].a=j;return a}
|
||||
function nc(a,b,c,d,e){if(da(b))for(var f=0;f<b.length;f++)nc(a,b[f],c,d,e);else{d=!!d;a:{f=ic;if(b in f&&(f=f[b],d in f&&(f=f[d],a=y(a),f[a]))){a=f[a];break a}a=k}if(a)for(f=0;f<a.length;f++)if(a[f].Ga==c&&a[f].capture==d&&a[f].Mb==e){I(a[f].key);break}}}
|
||||
function I(a){if(!hc[a])return p;var b=hc[a];if(b.ra)return p;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==w||!c.fc)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in kc?kc[d]:kc[d]="on"+d,e);c=y(c);jc[c]&&(e=jc[c],Ca(e,b),0==e.length&&delete jc[c]);b.ra=j;if(b=ic[d][f][c])b.uc=j,oc(d,f,c,b);delete hc[a];return j}
|
||||
function oc(a,b,c,d){if(!d.gb&&d.uc){for(var e=0,f=0;e<d.length;e++)d[e].ra?d[e].c.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.uc=p;0==f&&(delete ic[a][b][c],ic[a][b].l--,0==ic[a][b].l&&(delete ic[a][b],ic[a].l--),0==ic[a].l&&delete ic[a])}}function pc(a,b,c,d,e){var f=1,b=y(b);if(a[b]){a.M--;a=a[b];a.gb?a.gb++:a.gb=1;try{for(var g=a.length,i=0;i<g;i++){var r=a[i];r&&!r.ra&&(f&=qc(r,e)!==p)}}finally{a.gb--,oc(c,d,b,a)}}return Boolean(f)}function qc(a,b){a.a&&I(a.key);return a.handleEvent(b)}
|
||||
function J(a,b){var c=b.type||b,d=ic;if(!(c in d))return j;if(ga(b))b=new Zb(b,a);else if(b instanceof Zb)b.target=b.target||a;else{var e=b,b=new Zb(c,a);Cb(b,e)}var e=1,f,d=d[c],c=j in d,g;if(c){f=[];for(g=a;g;g=g.Rb)f.push(g);g=d[j];g.M=g.l;for(var i=f.length-1;!b.ia&&0<=i&&g.M;i--)b.c=f[i],e&=pc(g,f[i],b.type,j,b)&&b.ob!=p}if(p in d)if(g=d[p],g.M=g.l,c)for(i=0;!b.ia&&i<f.length&&g.M;i++)b.c=f[i],e&=pc(g,f[i],b.type,p,b)&&b.ob!=p;else for(d=a;!b.ia&&d&&g.M;d=d.Rb)b.c=d,e&=pc(g,d,b.type,p,b)&&b.ob!=
|
||||
p;return Boolean(e)}
|
||||
function lc(a,b){if(!hc[a])return j;var c=hc[a],d=c.type,e=ic;if(!(d in e))return j;var e=e[d],f,g;if(!Sb){var i;if(!(i=b))a:{i=["window","event"];for(var r=w;f=i.shift();)if(r[f]!=k)r=r[f];else{i=k;break a}i=r}f=i;i=j in e;r=p in e;if(i){if(0>f.keyCode||f.returnValue!=h)return j;a:{var n=p;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(l){n=j}if(n||f.returnValue==h)f.returnValue=j}}n=new bc;cc(n,f,this);f=j;try{if(i){for(var m=[],t=n.c;t;t=t.parentNode)m.push(t);g=e[j];g.M=g.l;for(var u=m.length-
|
||||
1;!n.ia&&0<=u&&g.M;u--)n.c=m[u],f&=pc(g,m[u],d,j,n);if(r){g=e[p];g.M=g.l;for(u=0;!n.ia&&u<m.length&&g.M;u++)n.c=m[u],f&=pc(g,m[u],d,p,n)}}else f=qc(c,n)}finally{m&&(m.length=0)}return f}d=new bc(b,this);return f=qc(c,d)};function rc(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}rc.prototype.O=function(){return new rc(this.top,this.right,this.bottom,this.left)};rc.prototype.contains=function(a){return!this||!a?p:a instanceof rc?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};function sc(a,b){var c=Fb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function tc(a,b){return a.currentStyle?a.currentStyle[b]:k}function uc(a,b){return sc(a,b)||tc(a,b)||a.style&&a.style[b]}function vc(a,b){var c,d,e=bb&&(Ua||eb)&&nb("1.9");b instanceof vb?(c=b.x,d=b.y):(c=b,d=h);a.style.left=wc(c,e);a.style.top=wc(d,e)}
|
||||
function xc(a){var b=a.getBoundingClientRect();E&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
|
||||
function yc(a){if(E&&!pb(8))return a.offsetParent;for(var b=Fb(a),c=uc(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=uc(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 k}function zc(a,b){var c=Ac(a),d=Ac(b);return new vb(c.x-d.x,c.y-d.y)}
|
||||
function Ac(a){var b=new vb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=xc(a);b.x=c.left;b.y=c.top}else{c=Qb(Db(a));var d,e=Fb(a),f=uc(a,"position"),g=bb&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),i=new vb(0,0),r;d=e?Fb(e):document;if(r=E)if(r=!pb(9))Db(d),r=p;r=r?d.body:d.documentElement;if(a!=r)if(a.getBoundingClientRect)d=xc(a),e=Qb(Db(e)),i.x=d.left+e.x,i.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),
|
||||
e=e.getBoxObjectFor(r),i.x=d.screenX-e.screenX,i.y=d.screenY-e.screenY;else{g=a;do{i.x+=g.offsetLeft;i.y+=g.offsetTop;g!=a&&(i.x+=g.clientLeft||0,i.y+=g.clientTop||0);if(F&&"fixed"==uc(g,"position")){i.x+=e.body.scrollLeft;i.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(ab||F&&"absolute"==f)i.y-=e.body.offsetTop;for(g=a;(g=yc(g))&&g!=e.body&&g!=r;)if(i.x-=g.scrollLeft,!ab||"TR"!=g.tagName)i.y-=g.scrollTop}b.x=i.x-c.x;b.y=i.y-c.y}if(bb&&!nb(12)){var n;E?n="-ms-transform":F?n="-webkit-transform":
|
||||
ab?n="-o-transform":bb&&(n="-moz-transform");var l;n&&(l=uc(a,n));l||(l=uc(a,"transform"));l?(a=l.match(Bc),a=!a?new vb(0,0):new vb(parseFloat(a[1]),parseFloat(a[2]))):a=new vb(0,0);b=new vb(b.x+a.x,b.y+a.y)}}else n=ha(a.od),l=a,a.targetTouches?l=a.targetTouches[0]:n&&a.H.targetTouches&&(l=a.H.targetTouches[0]),b.x=l.clientX,b.y=l.clientY;return b}function wc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Cc(a,b){a.style.display=b?"":"none"}
|
||||
function Dc(a,b){Db(Fb(a));if(E&&!nb("8")){var c=a.style,d;if(E){d=Ec(a,tc(a,"paddingLeft"));var e=Ec(a,tc(a,"paddingRight")),f=Ec(a,tc(a,"paddingTop")),g=Ec(a,tc(a,"paddingBottom"));d=new rc(f,e,g,d)}else d=sc(a,"paddingLeft"),e=sc(a,"paddingRight"),f=sc(a,"paddingTop"),g=sc(a,"paddingBottom"),d=new rc(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(E)var e=Fc(a,"borderLeft"),f=Fc(a,"borderRight"),g=Fc(a,"borderTop"),i=Fc(a,"borderBottom"),e=new rc(g,f,i,e);else e=sc(a,"borderLeftWidth"),
|
||||
f=sc(a,"borderRightWidth"),g=sc(a,"borderTopWidth"),i=sc(a,"borderBottomWidth"),e=new rc(parseFloat(g),parseFloat(f),parseFloat(i),parseFloat(e));c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c=a.style,bb?c.MozBoxSizing="border-box":F?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(b.width,0)+"px",c.height=Math.max(b.height,0)+"px"}
|
||||
function Ec(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}var Gc={thin:2,medium:4,thick:6};function Fc(a,b){if("none"==tc(a,b+"Style"))return 0;var c=tc(a,b+"Width");return c in Gc?Gc[c]:Ec(a,c)}var Bc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Hc(a,b){this.x=a;this.y=b}B(Hc,vb);Hc.prototype.O=function(){return new Hc(this.x,this.y)};Hc.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Hc.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function K(a,b){Hc.call(this,a,b)}B(K,Hc);function Ic(a,b){var c=ub(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};function Jc(a){if("function"==typeof a.K)return a.K();if(ga(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return yb(a)};function Kc(a,b){this.b={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof Kc?(c=a.V(),d=a.K()):(c=zb(a),d=yb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}s=Kc.prototype;s.l=0;s.$b=0;s.U=q("l");s.K=function(){Lc(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};s.V=function(){Lc(this);return this.a.concat()};s.Fa=function(){return 0==this.l};
|
||||
s.clear=function(){this.b={};this.$b=this.l=this.a.length=0};s.remove=function(a){return Mc(this.b,a)?(delete this.b[a],this.l--,this.$b++,this.a.length>2*this.l&&Lc(this),j):p};function Lc(a){if(a.l!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Mc(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.l!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],Mc(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}s.get=function(a,b){return Mc(this.b,a)?this.b[a]:b};
|
||||
s.set=function(a,b){Mc(this.b,a)||(this.l++,this.a.push(a),this.$b++);this.b[a]=b};s.O=function(){return new Kc(this)};function Mc(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Nc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Oc(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=h)}return a.join("")}function Pc(a,b,c){if(da(b))for(var d=0;d<b.length;d++)Pc(a,String(b[d]),c);else b!=k&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}
|
||||
function Qc(a,b,c){for(c=c||0;c<b.length;c+=2)Pc(b[c],b[c+1],a);return a}function Rc(a,b){for(var c in b)Pc(c,b[c],a);return a}function Sc(a,b){return Oc(2==arguments.length?Qc([a],arguments[1],0):Qc([a],arguments,1))};function Tc(a,b){var c;if(a instanceof Tc)this.ga=x(b)?b:a.ga,Uc(this,a.sa),c=a.ub,Vc(this),this.ub=c,c=a.xa,Vc(this),this.xa=c,Wc(this,a.mb),c=a.kb,Vc(this),this.kb=c,Xc(this,a.a.O()),c=a.Ra,Vc(this),this.Ra=c;else if(a&&(c=String(a).match(Nc))){this.ga=!!b;Uc(this,c[1]||"",j);var d=c[2]||"";Vc(this);this.ub=d?decodeURIComponent(d):"";d=c[3]||"";Vc(this);this.xa=d?decodeURIComponent(d):"";Wc(this,c[4]);d=c[5]||"";Vc(this);this.kb=d?decodeURIComponent(d):"";Xc(this,c[6]||"",j);c=c[7]||"";Vc(this);
|
||||
this.Ra=c?decodeURIComponent(c):""}else this.ga=!!b,this.a=new Yc(k,0,this.ga)}s=Tc.prototype;s.sa="";s.ub="";s.xa="";s.mb=k;s.kb="";s.Ra="";s.Wd=p;s.ga=p;
|
||||
s.toString=function(){var a=[],b=this.sa;b&&a.push(Zc(b,$c),":");if(b=this.xa){a.push("//");var c=this.ub;c&&a.push(Zc(c,$c),"@");a.push(encodeURIComponent(String(b)));b=this.mb;b!=k&&a.push(":",String(b))}if(b=this.kb)this.xa&&"/"!=b.charAt(0)&&a.push("/"),a.push(Zc(b,"/"==b.charAt(0)?ad:bd));(b=this.a.toString())&&a.push("?",b);(b=this.Ra)&&a.push("#",Zc(b,cd));return a.join("")};s.O=function(){return new Tc(this)};
|
||||
function Uc(a,b,c){Vc(a);a.sa=c?b?decodeURIComponent(b):"":b;a.sa&&(a.sa=a.sa.replace(/:$/,""))}function Wc(a,b){Vc(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.mb=b}else a.mb=k}
|
||||
function Xc(a,b,c){Vc(a);if(b instanceof Yc){a.a=b;b=a.a;if((a=a.ga)&&!b.b){gd(b);b.a=k;var d=b.t,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),hd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(ea(d)||ga(d))D(d,c,b);else{var e;if("function"==typeof d.V)e=d.V();else if("function"!=typeof d.K)if(ea(d)||ga(d)){e=[];for(var f=d.length,g=0;g<f;g++)e.push(g)}else e=zb(d);else e=h;d=Jc(d);f=d.length;for(g=0;g<f;g++)c.call(b,d[g],e&&e[g])}}b.b=a}else c||(b=Zc(b,id)),a.a=
|
||||
new Yc(b,0,a.ga)}function jd(a,b,c){Vc(a);da(c)||(c=[String(c)]);hd(a.a,b,c)}function Vc(a){if(a.Wd)throw Error("Tried to modify a read-only Uri");}function Zc(a,b){return ga(a)?encodeURI(a).replace(b,kd):k}function kd(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var $c=/[#\/\?@]/g,bd=/[\#\?:]/g,ad=/[\#\?]/g,id=/[\#\?@]/g,cd=/#/g;function Yc(a,b,c){this.a=a||k;this.b=!!c}
|
||||
function gd(a){if(!a.t&&(a.t=new Kc,a.l=0,a.a))for(var b=a.a.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=k,f=k;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=ld(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}s=Yc.prototype;s.t=k;s.l=k;s.U=function(){gd(this);return this.l};s.add=function(a,b){gd(this);this.a=k;var a=ld(this,a),c=this.t.get(a);c||this.t.set(a,c=[]);c.push(b);this.l++;return this};
|
||||
s.remove=function(a){gd(this);a=ld(this,a);return Mc(this.t.b,a)?(this.a=k,this.l-=this.t.get(a).length,this.t.remove(a)):p};s.clear=function(){this.t=this.a=k;this.l=0};s.Fa=function(){gd(this);return 0==this.l};function md(a,b){gd(a);b=ld(a,b);return Mc(a.t.b,b)}s.V=function(){gd(this);for(var a=this.t.K(),b=this.t.V(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
|
||||
s.K=function(a){gd(this);var b=[];if(a)md(this,a)&&(b=Da(b,this.t.get(ld(this,a))));else for(var a=this.t.K(),c=0;c<a.length;c++)b=Da(b,a[c]);return b};s.set=function(a,b){gd(this);this.a=k;a=ld(this,a);md(this,a)&&(this.l-=this.t.get(a).length);this.t.set(a,[b]);this.l++;return this};s.get=function(a,b){var c=a?this.K(a):[];return 0<c.length?String(c[0]):b};function hd(a,b,c){a.remove(b);0<c.length&&(a.a=k,a.t.set(ld(a,b),Ea(c)),a.l+=c.length)}
|
||||
s.toString=function(){if(this.a)return this.a;if(!this.t)return"";for(var a=[],b=this.t.V(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.K(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("&")};s.O=function(){var a=new Yc;a.a=this.a;this.t&&(a.t=this.t.O());return a};function ld(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};function nd(){G.call(this)}B(nd,G);s=nd.prototype;s.fc=j;s.Rb=k;s.addEventListener=function(a,b,c,d){H(this,a,b,c,d)};s.removeEventListener=function(a,b,c,d){nc(this,a,b,c,d)};s.p=function(){nd.s.p.call(this);var a,b=0,c=a==k;a=!!a;if(this==k)xb(jc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)I(f.key),b++}});else{var d=y(this);if(jc[d])for(var d=jc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)I(f.key),b++}}this.Rb=k};function od(a){return function(){return a}}var pd=od(p),qd=od(j),rd=od(k);function sd(a,b,c){G.call(this);this.d=a;this.c=c;this.a=b||window;this.b=na(this.Db,this)}B(sd,G);s=sd.prototype;s.L=k;s.Zb=p;s.start=function(){td(this);this.Zb=p;var a=ud(this),b=vd(this);if(a&&!b&&this.a.mozRequestAnimationFrame)this.L=H(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(k),this.Zb=j;else{if(a&&b)a=a.call(this.a,this.b);else{var c=this.b,d;d=d||0;a=this.a.setTimeout(function(){return c.apply(this,Array.prototype.slice.call(arguments,0,d))},20)}this.L=a}};
|
||||
function td(a){if(a.L!=k){var b=ud(a),c=vd(a);b&&!c&&a.a.mozRequestAnimationFrame?I(a.L):b&&c?c.call(a.a,a.L):a.a.clearTimeout(a.L)}a.L=k}s.Db=function(){this.Zb&&this.L&&I(this.L);this.L=k;this.d.call(this.c,pa())};s.p=function(){td(this);sd.s.p.call(this)};function ud(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}
|
||||
function vd(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function wd(a){G.call(this);this.ka=a||window;this.eb=H(this.ka,"resize",this.Od,p,this);this.ja=Ib(this.ka||window);if(F&&Va||ab&&this.ka.self!=this.ka.top)this.xb=window.setInterval(na(this.ac,this),xd)}B(wd,nd);var xd=500;s=wd.prototype;s.eb=k;s.ka=k;s.ja=k;s.xb=k;s.p=function(){wd.s.p.call(this);this.eb&&(I(this.eb),this.eb=k);this.xb&&(window.clearInterval(this.xb),this.xb=k);this.ja=this.ka=k};s.Od=function(){this.ac()};
|
||||
s.ac=function(){var a=Ib(this.ka||window);if(!(a==this.ja||(!a||!this.ja?0:a.width==this.ja.width&&a.height==this.ja.height)))this.ja=a,J(this,"resize")};function yd(a,b,c,d,e){if(!E&&(!F||!nb("525")))return j;if(Ua&&e)return zd(a);if(e&&!d||!c&&(17==b||18==b)||E&&d&&b==a)return p;switch(a){case 13:return!(E&&pb(9));case 27:return!F}return zd(a)}function zd(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||F&&0==a)return j;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return j;default:return p}}
|
||||
function Ad(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Bd(a,b){G.call(this);a&&(this.Za&&Cd(this),this.Aa=a,this.Ya=H(this.Aa,"keypress",this,b),this.Nb=H(this.Aa,"keydown",this.a,b,this),this.Za=H(this.Aa,"keyup",this.b,b,this))}B(Bd,nd);s=Bd.prototype;s.Aa=k;s.Ya=k;s.Nb=k;s.Za=k;s.ba=-1;s.aa=-1;s.yb=p;
|
||||
var Dd={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Ed={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Fd=E||F&&nb("525"),Gd=Ua&&bb;
|
||||
Bd.prototype.a=function(a){if(F&&(17==this.ba&&!a.Ua||18==this.ba&&!a.X))this.aa=this.ba=-1;Fd&&!yd(a.ma,this.ba,a.ha,a.Ua,a.X)?this.handleEvent(a):(this.aa=bb?Ad(a.ma):a.ma,Gd&&(this.yb=a.X))};Bd.prototype.b=function(a){this.aa=this.ba=-1;this.yb=a.X};
|
||||
Bd.prototype.handleEvent=function(a){var b=a.H,c,d,e=b.altKey;E&&"keypress"==a.type?(c=this.aa,d=13!=c&&27!=c?b.keyCode:0):F&&"keypress"==a.type?(c=this.aa,d=0<=b.charCode&&63232>b.charCode&&zd(c)?b.charCode:0):ab?(c=this.aa,d=zd(c)?b.keyCode:0):(c=b.keyCode||this.aa,d=b.charCode||0,Gd&&(e=this.yb),Ua&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Dd?f=Dd[c]:25==c&&a.ha&&(f=9):g&&g in Ed&&(f=Ed[g]);a=f==this.ba;this.ba=f;b=new Hd(f,d,a,b);b.X=e;J(this,b)};
|
||||
function Cd(a){a.Ya&&(I(a.Ya),I(a.Nb),I(a.Za),a.Ya=k,a.Nb=k,a.Za=k);a.Aa=k;a.ba=-1;a.aa=-1}Bd.prototype.p=function(){Bd.s.p.call(this);Cd(this)};function Hd(a,b,c,d){d&&cc(this,d,h);this.type="key";this.ma=a;this.Ta=b;this.b=c}B(Hd,bc);function Id(a){G.call(this);this.a=a;a=ia(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&"rtl"==uc(a,"direction");this.b=H(this.a,bb?"DOMMouseScroll":"mousewheel",this)}B(Id,nd);
|
||||
Id.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.H;if("mousewheel"==a.type){c=1;if(E||F&&(Va||nb("532.0")))c=40;d=Jd(-a.wheelDelta,c);x(a.wheelDeltaX)?(b=Jd(-a.wheelDeltaX,c),c=Jd(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),x(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=tb(b,-this.c,this.c));"number"==typeof this.d&&(c=tb(c,-this.d,this.d));this.e&&(b=-b);b=new Kd(d,a,b,c);J(this,b)};function Jd(a,b){return F&&(Ua||Wa)&&0!=a%b?a:a/b}
|
||||
Id.prototype.p=function(){Id.s.p.call(this);I(this.b);delete this.b};function Kd(a,b,c,d){b&&cc(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}B(Kd,bc);var Ld=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function L(a){G.call(this);x(a)&&this.hb(a)}B(L,nd);var Md={},Nd={},Od={};function Pd(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Qd(a){return a.ol_accessors_||(a.ol_accessors_={})}function Rd(a){return Md[a]||(Md[a]=a.toLowerCase()+"_changed")}function Sd(a){return a.ol_bindings_||(a.ol_bindings_={})}s=L.prototype;s.Sc=function(a,b,c,d){c=c||a;this.Yb(a);var e=Rd(c);Sd(this)[a]=H(b,e,function(){Td(this,a)},h,this);Qd(this)[a]={target:b,key:c};d||Td(this,a)};s.Xc=aa;
|
||||
s.get=function(a){var b=Qd(this);if(a in b){var b=b[a],a=b.target,b=b.key,c=Nd[b]||(Nd[b]="get"+Pd(b));return a[c]?a[c]():a.get(b)}return this[a]};s.wc=function(a){var b=Qd(this);a in b?(a=b[a],a.target.wc(a.key)):Td(this,a)};function Td(a,b){var c=Rd(b);J(a,c);J(a,"changed")}s.set=function(a,b){var c=Qd(this);if(a in c){var d=c[a],c=d.target,d=d.key,e=Od[d]||(Od[d]="set"+Pd(d));if(c[e])c[e](b);else c.set(d,b)}else this[a]=b,Td(this,a)};
|
||||
s.Ic=function(a){xb(a,function(a,c){var d=Od[c]||(Od[c]="set"+Pd(c));if(this[d])this[d](a);else this.set(c,a)},this)};s.hb=L.prototype.Ic;s.Yb=function(a){var b=Sd(this),c=b[a];c&&(delete b[a],I(c),b=this.get(a),delete Qd(this)[a],this[a]=b)};s.re=function(){var a=Sd(this);D(zb(a),function(a){this.Yb(a)},this)};function Ud(a,b,c,d,e){Zb.call(this,a,e);this.a=b;this.index=c;this.b=d}B(Ud,Zb);function M(a){L.call(this);this.a=a||[];Vd(this)}B(M,L);s=M.prototype;s.clear=function(){for(;this.length;)this.xc()};s.forEach=function(a,b){D(this.a,a,b)};s.md=q("a");s.nd=function(a){return this.a[a]};s.hc=function(){return this.get("length")};s.Xa=function(a,b){Ma(this.a,a,0,b);Vd(this);J(this,new Ud("add",b,h,h,this));J(this,new Ud("insert_at",b,a,h,this))};s.xc=function(){return this.Dc(this.hc()-1)};
|
||||
s.push=function(a){var b=this.a.length;this.Xa(b,a);return b};s.Dc=function(a){var b=this.a[a];xa.splice.call(this.a,a,1);Vd(this);J(this,new Ud("remove",b,h,h,this));J(this,new Ud("remove_at",h,a,b,this));return b};s.ie=function(a,b){var c=this.length;if(a<c)c=this.a[a],this.a[a]=b,J(this,new Ud("set_at",b,a,c,this)),J(this,new Ud("remove",c,h,h,this)),J(this,new Ud("add",b,h,h,this));else{for(;c<a;++c)this.Xa(c,h);this.Xa(a,b)}};function Vd(a){a.set("length",a.a.length)};function Wd(){this.c=tb(255,0,255);this.b=tb(255,0,255);this.a=tb(255,0,255);this.d=tb(1,0,1)};function Xd(a,b){wb.call(this,a,b)}B(Xd,wb);function Yd(a,b,c,d){this.h=a;this.k=b;this.m=c;this.j=d}Yd.prototype.a=function(){return this.j-this.k};Yd.prototype.b=function(){return this.m-this.h};function Zd(a,b){return a.h<=b.m&&a.m>=b.h&&a.k<=b.j&&a.j>=b.k}Yd.prototype.toString=function(){return"("+[this.h,this.k,this.m,this.j].join(", ")+")"};function $d(a,b,c,d){Yd.call(this,a,b,c,d)}B($d,Yd);function ae(a){var b=arguments[0],b=new $d(b.x,b.y,b.x,b.y),c;for(c=1;c<arguments.length;++c){var d=arguments[c];b.h=Math.min(b.h,d.x);b.k=Math.min(b.k,d.y);b.m=Math.max(b.m,d.x);b.j=Math.max(b.j,d.y)}return b}function be(a){return new K(a.h,a.j)}$d.prototype.transform=function(a){var b=a(new K(this.h,this.k)),a=a(new K(this.m,this.j));return new $d(Math.min(b.x,a.x),Math.min(b.y,a.y),Math.max(b.x,a.x),Math.max(b.y,a.y))};function ce(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}ce.prototype.a=4;ce.prototype.set=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};ce.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(ce.BYTES_PER_ELEMENT=4,ce.prototype.BYTES_PER_ELEMENT=ce.prototype.a,ce.prototype.set=ce.prototype.set,ce.prototype.toString=ce.prototype.toString,A("Float32Array",ce));function de(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}de.prototype.a=8;de.prototype.set=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};de.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(de.BYTES_PER_ELEMENT=8,de.prototype.BYTES_PER_ELEMENT=de.prototype.a,de.prototype.set=de.prototype.set,de.prototype.toString=de.prototype.toString,A("Float64Array",de));function ee(){var a=Array(16);fe(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function ge(){var a=Array(16);fe(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function fe(a,b,c,d,e,f,g,i,r,n,l,m,t,u,v,C,z){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=i;a[7]=r;a[8]=n;a[9]=l;a[10]=m;a[11]=t;a[12]=u;a[13]=v;a[14]=C;a[15]=z}
|
||||
function he(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];a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15]}function ie(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1}
|
||||
function je(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],i=a[4],r=a[5],n=a[6],l=a[7],m=a[8],t=a[9],u=a[10],v=a[11],C=a[12],z=a[13],N=a[14],a=a[15],S=b[0],P=b[1],Y=b[2],fa=b[3],Fa=b[4],Ga=b[5],Ha=b[6],Ia=b[7],Ja=b[8],Ka=b[9],La=b[10],U=b[11],dd=b[12],ed=b[13],fd=b[14],b=b[15];c[0]=d*S+i*P+m*Y+C*fa;c[1]=e*S+r*P+t*Y+z*fa;c[2]=f*S+n*P+u*Y+N*fa;c[3]=g*S+l*P+v*Y+a*fa;c[4]=d*Fa+i*Ga+m*Ha+C*Ia;c[5]=e*Fa+r*Ga+t*Ha+z*Ia;c[6]=f*Fa+n*Ga+u*Ha+N*Ia;c[7]=g*Fa+l*Ga+v*Ha+a*Ia;c[8]=d*Ja+i*Ka+m*La+C*U;c[9]=e*Ja+r*Ka+t*La+
|
||||
z*U;c[10]=f*Ja+n*Ka+u*La+N*U;c[11]=g*Ja+l*Ka+v*La+a*U;c[12]=d*dd+i*ed+m*fd+C*b;c[13]=e*dd+r*ed+t*fd+z*b;c[14]=f*dd+n*ed+u*fd+N*b;c[15]=g*dd+l*ed+v*fd+a*b}function ke(a,b){return a.length==b.length&&a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2]&&a[3]==b[3]&&a[4]==b[4]&&a[5]==b[5]&&a[6]==b[6]&&a[7]==b[7]&&a[8]==b[8]&&a[9]==b[9]&&a[10]==b[10]&&a[11]==b[11]&&a[12]==b[12]&&a[13]==b[13]&&a[14]==b[14]&&a[15]==b[15]}
|
||||
function le(a,b,c){var d=b[0],e=b[1],b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8]+a[12];c[1]=d*a[1]+e*a[5]+b*a[9]+a[13];c[2]=d*a[2]+e*a[6]+b*a[10]+a[14]}function me(a,b,c){var d=a[1]*b+a[5]*c+0*a[9]+a[13],e=a[2]*b+a[6]*c+0*a[10]+a[14],f=a[3]*b+a[7]*c+0*a[11]+a[15];a[12]=a[0]*b+a[4]*c+0*a[8]+a[12];a[13]=d;a[14]=e;a[15]=f}function ne(a,b,c){fe(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,1*a[8],1*a[9],1*a[10],1*a[11],a[12],a[13],a[14],a[15])}
|
||||
function oe(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],i=a[5],r=a[6],n=a[7],l=Math.cos(b),m=Math.sin(b);a[0]=c*l+g*m;a[1]=d*l+i*m;a[2]=e*l+r*m;a[3]=f*l+n*m;a[4]=c*-m+g*l;a[5]=d*-m+i*l;a[6]=e*-m+r*l;a[7]=f*-m+n*l}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function O(a,b,c){Hc.call(this,b,c);this.n=a}B(O,K);O.prototype.hash=function(){return(this.x<<this.n)+this.y};function pe(a){var b=Array(a.n),c=1<<a.n-1,d,e;for(d=0;d<a.n;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}O.prototype.toString=function(){return[this.n,this.x,this.y].join("/")};function qe(a){G.call(this);this.S=a;this.a=0}B(qe,nd);qe.prototype.c=function(){return y(this).toString()};function re(a){this.d=a;this.e=8;this.c=0;this.a=[];this.b={}}function se(a,b,c,d){if(0==b.a){var e=b.c();if(!(e in a.b)){var f=a.d(b,c,d);Infinity!=f&&(a.a.push([f,b,c,d]),a.b[e]=j,te(a,0,a.a.length-1))}}}re.prototype.f=function(){--this.c};function ue(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b<d>>1;){var g=2*b+1,i=2*b+2,g=i<d&&c[i][0]<c[g][0]?i:g;c[b]=c[g];b=g}c[b]=e;te(a,f,b)}function te(a,b,c){for(var a=a.a,d=a[c];c>b;){var e=c-1>>1;if(a[e][0]>d[0])a[c]=a[e],c=e;else break}a[c]=d};function ve(a,b,c,d){Yd.call(this,a,b,c,d)}B(ve,Yd);ve.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.m&&this.k<=a.y&&a.y<=this.j};ve.prototype.a=function(){return this.j-this.k+1};ve.prototype.b=function(){return this.m-this.h+1};var we="object"==typeof Proj4js,xe={Ee:"degrees",Ne:"m"};function Q(a,b,c){this.a=a;this.e=b;this.d=c}Q.prototype.b=q("a");Q.prototype.A=q("d");Q.prototype.c=q("e");function ye(a,b){Q.call(this,a,b.units,k);this.Cc=b}B(ye,Q);var ze={},Ae={},Be={};function Ce(a){D(a,function(a){De(a)});D(a,function(b){D(a,function(a){b!==a&&Ee(b,a,Fe)})})}function De(a){Ae[a.a]=a;Ee(a,a,Fe)}function Ge(a){return a!=k?ga(a)?He(a):a:He("EPSG:3857")}function Ee(a,b,c){a=a.a;b=b.a;a in Be||(Be[a]={});Be[a][b]=c}
|
||||
function He(a){var b=Ae[a];we&&!x(b)&&(b=Ie(a));x(b)||(b=k);return b}function Ie(a){var b=ze[a];x(b)||(b=new Proj4js.Proj(a),b=new ye(a,b),ze[a]=b);return b}function Je(a,b){var c=a.a,d=b.a,e;c in Be&&d in Be[c]&&(e=Be[c][d]);if(we&&!x(e)){var f;f=(a instanceof ye?a:Ie(a.a)).Cc;var g;g=(b instanceof ye?b:Ie(a.a)).Cc;e=function(a){a=new Proj4js.Point(a.x,a.y);a=Proj4js.transform(f,g,a);return new K(a.x,a.y)};Ee(a,b,e)}x(e)||(e=Ke);return e}function Le(a,b){var c=He(a),d=He(b);return Je(c,d)}
|
||||
function Ke(a){return a}function Fe(a){return new K(a.x,a.y)}var Me=6378137*Math.PI,Ne=new $d(-Me,-Me,Me,Me),Oe=za(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new Q(a,"m",Ne)}),Pe=new $d(-180,-90,180,90),Qe=za(["CRS:84","EPSG:4326","urn:ogc:def:crs:EPSG:6.6:4326"],function(a){return new Q(a,"degrees",Pe)});Ce(Oe);Ce(Qe);function Re(a){var b=6378137*Math.PI*a.x/180,a=6378137*Math.log(Math.tan(Math.PI*(a.y+90)/360));return new K(b,a)}
|
||||
function Se(a){return new K(180*a.x/(6378137*Math.PI),360*Math.atan(Math.exp(a.y/6378137))/Math.PI-90)}D(Qe,function(a){D(Oe,function(b){Ee(a,b,Re);Ee(b,a,Se)})});function Te(a,b){this.b=a;this.a=b||k};function Ue(a){G.call(this);this.g=x(a.projection)?a.projection:k;this.f=x(a.extent)?a.extent:a.projection.A();this.Na=x(a.attributions)?a.attributions:k}B(Ue,nd);Ue.prototype.A=q("f");Ue.prototype.c=qd;function R(a){L.call(this);this.g=a.source;this.i(x(a.brightness)?a.brightness:0);this.o(x(a.contrast)?a.contrast:1);this.r(x(a.hue)?a.hue:0);this.z(x(a.opacity)?a.opacity:1);this.B(x(a.saturation)?a.saturation:1);this.C(x(a.visible)?a.visible:j);this.g.c()||mc(this.g,"load",this.G,p,this)}B(R,L);R.prototype.b=function(){return this.get("brightness")};R.prototype.getBrightness=R.prototype.b;R.prototype.c=function(){return this.get("contrast")};R.prototype.getContrast=R.prototype.c;R.prototype.d=function(){return this.get("hue")};
|
||||
R.prototype.getHue=R.prototype.d;R.prototype.e=function(){return this.get("opacity")};R.prototype.getOpacity=R.prototype.e;R.prototype.f=function(){return this.get("saturation")};R.prototype.getSaturation=R.prototype.f;R.prototype.Q=q("g");R.prototype.a=function(){return this.get("visible")};R.prototype.getVisible=R.prototype.a;R.prototype.G=function(){J(this,"load")};R.prototype.i=function(a){a=tb(a,-1,1);a!=this.b()&&this.set("brightness",a)};R.prototype.setBrightness=R.prototype.i;
|
||||
R.prototype.o=function(a){a=Math.max(0,a);a!=this.c()&&this.set("contrast",a)};R.prototype.setContrast=R.prototype.o;R.prototype.r=function(a){a!=this.d()&&this.set("hue",a)};R.prototype.setHue=R.prototype.r;R.prototype.z=function(a){a=tb(a,0,1);a!=this.e()&&this.set("opacity",a)};R.prototype.setOpacity=R.prototype.z;R.prototype.B=function(a){a=Math.max(0,a);a!=this.f()&&this.set("saturation",a)};R.prototype.setSaturation=R.prototype.B;
|
||||
R.prototype.C=function(a){a=!!a;a!=this.a()&&this.set("visible",a)};R.prototype.setVisible=R.prototype.C;function Ve(a){return 3*a*a-2*a*a*a};function We(){this.b=[0,0]}B(We,L);function Xe(a){return a}function Ye(a){return 0.5>a?Ve(2*a):1-Ve(2*(a-0.5))};var Ze={Tc:function(a){var b=a.resolution,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:Ye;return function(a,g){if(g.time<c)return g.N=j,g.v[0]+=1,j;if(g.time<c+d){var i=e((g.time-c)/d),r=b-g.q.resolution;g.N=j;g.q.resolution+=i*r;g.v[0]+=1;return j}return p}},jb:function(a){var b=a.source,c=x(a.start)?a.start:pa(),d=b.x,e=b.y,f=x(a.duration)?a.duration:1E3,g=x(a.easing)?a.easing:Ve;return function(a,b){if(b.time<c)return b.N=j,b.v[0]+=1,j;if(b.time<c+f){var n=1-
|
||||
g((b.time-c)/f),l=d-b.q.center.x,m=e-b.q.center.y;b.N=j;b.q.center.x+=n*l;b.q.center.y+=n*m;b.v[0]+=1;return j}return p}},rotate:function(a){var b=a.rotation,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:Ve;return function(a,g){if(g.time<c)return g.N=j,g.v[0]+=1,j;if(g.time<c+d){var i=1-e((g.time-c)/d),r=b-g.q.rotation;g.N=j;g.q.rotation+=i*r;g.v[0]+=1;return j}return p}},zoom:function(a){var b=a.resolution,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,
|
||||
e=x(a.easing)?a.easing:Xe;return function(a,g){if(g.time<c)return g.N=j,g.v[0]+=1,j;if(g.time<c+d){var i=1-e((g.time-c)/d),r=b-g.q.resolution;g.N=j;g.q.resolution+=i*r;g.v[0]+=1;return j}return p}}};function $e(a,b,c){this.e=a;this.c=b;this.f=c;this.a=[];this.b=this.d=0}$e.prototype.jb=function(a){var b=this.e,c=this.b,d=this.c,e=Math.log(this.c/this.b)/this.e;return Ze.jb({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function af(a,b,c){Zb.call(this,a);this.map=b;this.Va=p;this.d=x(c)?c:k}B(af,Zb);af.prototype.w=function(){af.s.w.call(this);this.Va=j};function bf(a,b){vb.call(this,a,b)}B(bf,vb);function cf(a,b,c,d){af.call(this,a,b,d);this.a=c;this.f=this.e=k}B(cf,af);cf.prototype.b=function(){this.e===k&&(this.e=df(this.map,ef(this)));return this.e};function ef(a){if(a.f===k){var b=zc(a.a,a.map.b);a.f=new bf(b.x,b.y)}return a.f}function ff(a){this.a=a;this.d=k;this.c=p;this.f=0;this.e=this.b=this.i=this.g=k;a=this.a.b;Ld||(this.g=H(a,["click","dblclick"],this.cc,p,this));this.i=H(a,Ld?"touchstart":"mousedown",this.Bd,p,this)}B(ff,nd);
|
||||
function gf(a){if(Ld){var b=a.H;b.touches&&b.touches.length&&(b=b.touches[0],a.clientX=b.clientX,a.clientY=b.clientY)}}s=ff.prototype;s.cc=function(a){if(!this.c){var b;"dblclick"!==a.type&&(b=new cf(hf,this.a,a),J(this,b));this.f||(b=new cf(jf,this.a,a),J(this,b))}};s.Qd=function(a){if(this.d){if(!this.c){var b=(new Date).getTime();this.f=!this.f||250<b-this.f?b:0;Ld&&this.cc(this.e)}this.e=k;D(this.b,I);this.d=this.b=k;this.c&&J(this,new cf(kf,this.a,a))}};
|
||||
s.Bd=function(a){J(this,new cf(lf,this.a,a));this.d||(gf(a),this.e=a,this.d={clientX:a.clientX,clientY:a.clientY},this.c=p,this.b=[H(document,Ld?"touchmove":"mousemove",this.ed,p,this),H(document,Ld?"touchend":"mouseup",this.Qd,p,this)],"mousedown"===a.type&&a.w())};s.ed=function(a){var b;this.c||(this.c=j,b=new cf(mf,this.a,this.e),J(this,b));gf(a);this.d={clientX:a.clientX,clientY:a.clientY};a.w();b=new cf(nf,this.a,a);J(this,b)};
|
||||
s.p=function(){I(this.g);I(this.i);this.b!==k&&(D(this.b,I),this.b=k);ff.s.p.call(this)};var hf="click",jf="dblclick",mf="dragstart",nf="drag",kf="dragend",lf="down",of={Be:hf,De:jf,Je:mf,He:nf,Ie:kf,Ge:lf};function pf(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d<c;++d){if(a[d]==b)return d;if(a[d]<b)return a[d-1]-b<b-a[d]?d-1:d}}return c-1};function qf(a,b){if(x(a))return a+b};function rf(a){this.resolution=a;this.rotation=qf};function T(a){this.b=[0,0];var a=a||{},b={};b.center=x(a.center)?a.center:k;b.projection=Ge(a.projection);if(x(a.resolution))b.resolution=a.resolution;else if(x(a.zoom)){var c=b.projection.A(),c=Math.max(c.m-c.h,c.j-c.k);b.resolution=c/(256<<a.zoom)}b.rotation=a.rotation;this.hb(b);if(x(a.resolutions))var d=a.resolutions,a=function(a,b){if(x(a)){var c=pf(d,a),c=tb(c+b,0,d.length-1);return d[c]}};else{x(a.maxResolution)&&x(a.numZoomLevels)&&x(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels,a=a.zoomFactor):
|
||||
(a=Ge(a.projection).A(),b=Math.max(a.m-a.h,a.j-a.k)/256,c=116,a=Math.exp(Math.log(2)/4));var e=a,f=b,g=c-1,a=function(a,b){if(x(a)){var c=Math.floor(Math.log(f/a)/Math.log(e)+0.5),c=Math.max(c+b,0);x(g)&&(c=Math.min(c,g));return f/Math.pow(e,c)}}}this.e=new rf(a)}B(T,We);T.prototype.Y=function(){return this.get("center")};T.prototype.getCenter=T.prototype.Y;T.prototype.A=function(a){var b=this.Y(),c=this.ca();return new $d(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};
|
||||
T.prototype.yc=function(){return this.get("projection")};T.prototype.getProjection=T.prototype.yc;T.prototype.ca=function(){return this.get("resolution")};T.prototype.getResolution=T.prototype.ca;T.prototype.za=function(){return this.get("rotation")||0};T.prototype.getRotation=T.prototype.za;T.prototype.Ea=function(){return this.Y()!=k&&x(this.ca())};T.prototype.a=function(a){this.set("center",a)};T.prototype.setCenter=T.prototype.a;T.prototype.f=function(a){this.set("projection",a)};
|
||||
T.prototype.setProjection=T.prototype.f;T.prototype.c=function(a){this.set("resolution",a)};T.prototype.setResolution=T.prototype.c;T.prototype.d=function(a){this.set("rotation",a)};T.prototype.setRotation=T.prototype.d;T.prototype.rotate=function(a,b,c){b=this.e.rotation(b,0);if(c!=k){var d=this.Y(),e=new K(d.x-c.x,d.y-c.y);e.rotate(b-this.za());e.x+=c.x;e.y+=c.y;sf(a,function(){this.a(e);this.d(b)},this)}else this.d(b)};
|
||||
T.prototype.zoom=function(a,b,c,d){var e=this.ca();x(e)&&x(d)&&(tf(a),a.B(Ze.zoom({resolution:e,duration:d})));var f=this.e.resolution(e,b);if(f!=k&&c!=k){var b=this.Y(),d=this.ca(),g=new K(c.x-f*(c.x-b.x)/d,c.y-f*(c.y-b.y)/d);sf(a,function(){this.a(g);this.c(f)},this)}else this.c(f)};function uf(a){G.call(this);this.element=x(a.element)?a.element:k;this.i=a.target;this.b=k;x(a.map)&&this.a(a.map)}B(uf,G);uf.prototype.p=function(){Pb(this.element);uf.s.p.call(this)};uf.prototype.a=function(a){this.b===k||Pb(this.element);this.b=a;this.b!==k&&(x(this.i)?this.i:a.o).appendChild(this.element)};function vf(a,b,c,d){Yd.call(this,a,b,c,d)}B(vf,Yd);function wf(a){this.a=a.resolutions;this.g=this.a.length;this.f=x(a.extent)?a.extent:k;this.d=x(a.origin)?a.origin:k;this.e=k;x(a.origins)&&(this.e=a.origins);this.b=x(a.tileSize)?a.tileSize:new Xd(256,256)}wf.prototype.c=function(a,b,c){for(var d=xf(this,a),a=a.n-1;0<=a&&!b.call(c,a,yf(this,d,this.a[a]));)--a};wf.prototype.A=q("f");function zf(a,b){return a.d===k?a.e[b]:a.d}function yf(a,b,c){var d=Af(a,new K(b.h,b.k),c),a=Af(a,new K(b.m,b.j),c);return new ve(d.x,d.y,a.x,a.y)}
|
||||
function Bf(a,b){var c=zf(a,b.n),d=a.a[b.n],e=a.b;return new K(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function xf(a,b){var c=zf(a,b.n),d=a.a[b.n],e=a.b,f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new $d(f,c,f+e.width*d,c+e.height*d)}
|
||||
function Af(a,b,c){var d=pf(a.a,c),e=c/a.a[d],f=zf(a,d),b=new K(Math.floor((b.x-f.x)/c),Math.floor((b.y-f.y)/c)),f=a.b,f=new Xd(f.width/e,f.height/e),d=new O(d,Math.floor(b.x/f.width),Math.floor(b.y/f.height)),c=c/a.a[d.n],a=a.b,a=new Xd(a.width/c,a.height/c),c=Math.round(d.x*a.width),e=Math.round((d.x+1)*a.width),f=Math.round(d.y*a.height),a=Math.round((d.y+1)*a.height),a=new vf(c,f,e,a);b.x<a.h?d.x-=1:b.x>=a.m&&(d.x+=1);b.y<a.k?d.y-=1:b.y>=a.j&&(d.y+=1);return d};function Cf(a){Ue.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.tileGrid=x(a.tileGrid)?a.tileGrid:k}B(Cf,Ue);Cf.prototype.d=pd;function Df(a){this.g=Lb("UL");var b=Jb("DIV",{"class":"ol-attribution ol-unselectable"},this.g);uf.call(this,{element:b,map:a.map,target:a.target});this.f=j;this.c={};this.d={};this.e=k}B(Df,uf);Df.prototype.o=function(a){a=a.d;a===k?Ef(this,k):Ef(this,a.Ka)};Df.prototype.a=function(a){this.e!==k&&(D(this.e,I),this.e=k);Df.s.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.o,p,this)])};
|
||||
function Ef(a,b){if(b===k)a.f&&(Cc(a.element,p),a.f=p);else{var c={},d={},e=a.b.i();x(e)&&e.forEach(function(a){a=a.Q();a instanceof Cf&&(d[y(a).toString()]=a);a=a.Na;if(a!==k){var b,e;for(e=0;e<a.length;++e)b=a[e],v=y(b).toString(),c[v]=j}});var e={},f,g,i,r,n,l;for(l in b)if(f=d[l],n=f.Na,n!==k){g=b[l];for(f=0;f<n.length;++f)if(i=n[f],r=y(i).toString(),!(r in e)){var m;a:if(i.a===k)m=j;else{var t=m=h,u=h;for(u in g)if(u in i.a){t=g[u];for(m=0;m<i.a[u].length;++m)if(Zd(i.a[u][m],t)){m=j;break a}}m=
|
||||
p}m&&(e[r]=i)}}l=za(zb(e),Number);Oa(l);var v;for(f=0;f<l.length;++f)v=l[f].toString(),v in a.c?a.d[v]||(Cc(a.c[v],j),a.d[v]=j):(g=Lb("LI"),g.innerHTML=e[v].b,a.g.appendChild(g),a.c[v]=g,a.d[v]=j),delete c[v];for(v in c)Pb(a.c[v]),delete a.c[v],delete a.d[v];e=0!=l.length;a.f!=e&&(Cc(a.element,e),a.f=e)}};function Ff(a){var b=Ld?"touchend":"click",c=Jb("A",{href:"#zoomIn","class":"ol-zoom-in"},"+");H(c,b,this.d,p,this);var d=Jb("A",{href:"#zoomOut","class":"ol-zoom-out"},"\u2212");H(d,b,this.e,p,this);b=Jb("DIV","ol-zoom ol-unselectable",c,d);uf.call(this,{element:b,map:a.map,target:a.target});this.c=x(a.delta)?a.delta:1}B(Ff,uf);Ff.prototype.d=function(a){a.w();a=this.b;tf(a);a.a().zoom(a,this.c,h,250)};Ff.prototype.e=function(a){a.w();a=this.b;tf(a);a.a().zoom(a,-this.c,h,250)};function Gf(){};function Hf(a){this.a=a}B(Hf,Gf);Hf.prototype.oa=function(a){var b=a.a;if(a.type==jf&&(Ld||ec(a.a))){var c=a.map,d=a.b(),e=a.a.ha?-this.a:this.a;c.a().zoom(c,e,d);a.w();b.w()}};function If(a){return a.X&&!a.lb&&a.ha}function Jf(a){return!a.X&&!a.lb&&!a.ha}function Kf(a){return!a.X&&!a.lb&&a.ha};function Lf(){this.e=p;this.r=this.o=this.i=this.g=0;this.Ja=this.f=k}B(Lf,Gf);s=Lf.prototype;s.Fb=aa;s.Gb=aa;s.Wa=pd;s.pc=aa;s.oa=function(a){var b=a.map;if(b.Ea()){var b=b.a(),c=a.a;a.type==lf&&this.pc(a);this.e?a.type==nf?(this.d=c.clientX-this.g,this.b=c.clientY-this.i,this.Fb(a)):a.type==kf&&(this.d=c.clientX-this.g,this.b=c.clientY-this.i,this.Gb(a),this.e=p):a.type==mf&&(this.g=c.clientX,this.i=c.clientY,this.b=this.d=0,this.f=b.Y(),this.Ja=a.b(),this.Wa(a)&&(this.e=j,a.w()))}};function Mf(a,b){Lf.call(this);this.na=a;this.a=b;this.c=k}B(Mf,Lf);Mf.prototype.Fb=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,qb:pa()});var a=a.map,b=a.a(),c=b.ca(),d=b.za(),c=new K(-c*this.d,c*this.b);c.rotate(d);d=new K(this.f.x+c.x,this.f.y+c.y);tf(a);b.a(d)};
|
||||
Mf.prototype.Gb=function(a){var b=a.map,a=b.a();a.b[1]+=-1;var c;if(c=this.a){c=this.a;for(var d=pa(),e=c.a.length-1,f=e-1;0<=f&&c.a[f].qb>d-c.f;)f--;if(0<=f){var d=c.a[f],e=c.a[e],f=e.x-d.x,g=e.y-d.y;c.d=Math.atan2(g,f);c.b=Math.sqrt(f*f+g*g)/(e.qb-d.qb);c=c.b>c.c}else c=p}c&&(c=(this.a.c-this.a.b)/this.a.e,d=this.a.d,e=a.Y(),this.c=this.a.jb(e),b.B(this.c),e=Nf(b,e),b=df(b,new bf(e.x-c*Math.cos(d),e.y-c*Math.sin(d))),a.a(b))};
|
||||
Mf.prototype.Wa=function(a){var b=a.a;if(this.na(b)){if(this.a){var c=this.a;c.a.length=0;c.d=0;c.b=0;this.a.a.push({x:b.clientX,y:b.clientY,qb:pa()})}a=a.map;tf(a);a=a.a();a.b[1]+=1;return j}return p};Mf.prototype.pc=function(a){var b=a.map,c=b.a();this.c!==k&&Ca(b.r,this.c)&&(tf(b),c.a(a.d.q.center),this.c=k)};function Of(a){Lf.call(this);this.c=a}B(Of,Lf);Of.prototype.Fb=function(a){var b=a.map,c=b.e(),a=ef(a),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(x(this.a)){var a=c-this.a,d=b.a();tf(b);d.rotate(b,d.za()-a)}this.a=c};Of.prototype.Wa=function(a){var b=a.a;return ec(b)&&this.c(b)?(a=a.map,a.a(),tf(a),this.a=h,j):p};function Pf(a){var b=Jb("DIV","ol-dragbox");this.c=k;this.e=a.Ja;this.d=k;uf.call(this,{element:b,map:a.map})}B(Pf,uf);Pf.prototype.a=function(a){this.d!==k&&(I(this.d),this.d=k);a!==k&&(this.c=Nf(a,this.e),vc(this.element,this.c),Dc(this.element,new Xd(0,0)),this.d=H(a,nf,this.f,p,this));Pf.s.a.call(this,a)};Pf.prototype.f=function(a){var b=this.b,a=a.b(),b=Nf(b,a);vc(this.element,new bf(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Dc(this.element,new Xd(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Qf(a){Lf.call(this);this.c=a;this.a=k}B(Qf,Lf);Qf.prototype.Gb=function(a){this.a.a(k);this.a=k;if(64<=this.d*this.d+this.b*this.b){var b=a.map,c=ae(this.Ja,a.b());sf(b,function(){var a=b.a(),e=b.e();a.a(new K((c.h+c.m)/2,(c.k+c.j)/2));e=Math.max((c.m-c.h)/e.width,(c.j-c.k)/e.height);e=a.e.resolution(e,0);a.c(e);a.d(0)})}};Qf.prototype.Wa=function(a){var b=a.a;return ec(b)&&this.c(b)?(this.a=new Pf({map:a.map,Ja:this.Ja}),j):p};function Rf(a){this.a=a}B(Rf,Gf);Rf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.ma;if(40==c||37==c||39==c||38==c){var d=a.map.a(),e=d.ca()*this.a,c=40==c?new K(0,-e):37==c?new K(-e,0):39==c?new K(e,0):new K(0,e),e=d.Y();d.a(new K(e.x+c.x,e.y+c.y));b.w();a.w()}}};function Sf(){}B(Sf,Gf);Sf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.Ta;if(43==c||45==c){var d=a.map,c=43==c?4:-4;tf(d);d.a().zoom(d,c,h,100);b.w();a.w()}}};function Tf(a){this.a=a}B(Tf,Gf);Tf.prototype.oa=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a,d=a.b(),e=0>c.b?this.a:-this.a,f=b.a();tf(b);f.zoom(b,e,d);a.w();c.w()}};function Uf(a,b,c,d){this.f=a;this.g=c;this.e=b;this.b=new Image;d!==k&&(this.b.crossOrigin=d);this.d={};this.c=k;this.a=0}B(Uf,nd);Uf.prototype.A=q("f");function Vf(a,b){if(x(b)){var c,d=y(b);if(d in a.d)return a.d[d];c=Ab(a.d)?a.b:a.b.cloneNode(p);return a.d[d]=c}return a.b}Uf.prototype.i=function(){this.a=3;D(this.c,I);this.c=k;J(this,"change")};Uf.prototype.o=function(){this.a=2;D(this.c,I);this.c=k;J(this,"change")};
|
||||
function Wf(a){0==a.a&&(a.a=1,a.c=[mc(a.b,"error",a.i,p,a),mc(a.b,"load",a.o,p,a)],a.b.src=a.g)};function Xf(a,b){L.call(this);this.o=a;this.a=b;H(this.a,Rd("brightness"),this.Ib,p,this);H(this.a,Rd("contrast"),this.Jb,p,this);H(this.a,Rd("hue"),this.Kb,p,this);H(this.a,"load",this.Dd,p,this);H(this.a,Rd("opacity"),this.Ed,p,this);H(this.a,Rd("saturation"),this.Lb,p,this);H(this.a,Rd("visible"),this.Gd,p,this)}B(Xf,L);function Yf(a){J(a,"change")}s=Xf.prototype;s.W=q("o");s.Ib=aa;s.Jb=aa;s.Kb=aa;s.Hb=function(a){2===a.target.a&&tf(this.o.map)};s.Dd=function(){Yf(this)};s.Ed=function(){Yf(this)};
|
||||
s.Lb=aa;s.Gd=function(){Yf(this)};s.Qb=function(a){2===a.target.a&&tf(this.o.map)};function Zf(a,b){b.d()&&a.pa.push(oa(function(a,b,e){b=y(a).toString();a.ya(e.Ka[b])},b))}function $f(a,b,c,d){b=y(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],a.h=Math.min(a.h,d.h),a.k=Math.min(a.k,d.k),a.m=Math.max(a.m,d.m),a.j=Math.max(a.j,d.j)):a[b][c]=d:(a[b]={},a[b][c]=d)}function ag(a,b,c){b=y(b).toString();c=c.toString();b in a||(a[b]={});a[b][c]=j};function bg(a,b){G.call(this);this.qa=a;this.map=b;this.d={};this.C=H(b,Rd(cg),this.Id,p,this);this.e=k;this.z={}}B(bg,G);s=bg.prototype;s.la=function(a){var b=this.Pa(a),a=y(a);this.d[a]=b;this.z[a]=H(b,"change",this.Fd,p,this)};
|
||||
function dg(a){var b=a.q,c=a.ec;ie(c);me(c,a.size.width/2,a.size.height/2);ne(c,1/b.resolution,-1/b.resolution);oe(c,-b.rotation);me(c,-b.center.x,-b.center.y);var a=a.Bc,b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],i=c[5],r=c[6],n=c[7],l=c[8],m=c[9],t=c[10],u=c[11],v=c[12],C=c[13],z=c[14],c=c[15],N=b*i-d*g,S=b*r-e*g,P=b*n-f*g,Y=d*r-e*i,fa=d*n-f*i,Fa=e*n-f*r,Ga=l*C-m*v,Ha=l*z-t*v,Ia=l*c-u*v,Ja=m*z-t*C,Ka=m*c-u*C,La=t*c-u*z,U=N*La-S*Ka+P*Ja+Y*Ia-fa*Ha+Fa*Ga;0!=U&&(U=1/U,a[0]=(i*La-r*Ka+n*Ja)*U,a[1]=(-d*La+e*
|
||||
Ka-f*Ja)*U,a[2]=(C*Fa-z*fa+c*Y)*U,a[3]=(-m*Fa+t*fa-u*Y)*U,a[4]=(-g*La+r*Ia-n*Ha)*U,a[5]=(b*La-e*Ia+f*Ha)*U,a[6]=(-v*Fa+z*P-c*S)*U,a[7]=(l*Fa-t*P+u*S)*U,a[8]=(g*Ka-i*Ia+n*Ga)*U,a[9]=(-b*Ka+d*Ia-f*Ga)*U,a[10]=(v*fa-C*P+c*N)*U,a[11]=(-l*fa+m*P-u*N)*U,a[12]=(-g*Ja+i*Ha-r*Ga)*U,a[13]=(b*Ja-d*Ha+e*Ga)*U,a[14]=(-v*Y+C*S-z*N)*U,a[15]=(l*Y-m*S+t*N)*U)}s.Pa=rd;s.p=function(){xb(this.d,function(a){Yb(a)});I(this.C);this.e===k||D(this.e,I);bg.s.p.call(this)};s.Cb=rd;
|
||||
function eg(a,b){var c=y(b);return a.d[c]}s.Fd=function(){fg(this.map)};s.Hd=function(a){this.la(a.a)};s.Id=function(){Xb(yb(this.d));this.d={};this.e!==k&&(D(this.e,I),this.e=k);var a=this.map.i();a!=k&&(a.forEach(this.la,this),this.e=[H(a,"add",this.Hd,p,this),H(a,"remove",this.Jd,p,this)])};s.Jd=function(a){this.Sb(a.a)};s.Sb=function(a){a=y(a);if(a in this.d){var b=this.d[a];delete this.d[a];I(this.z[a]);delete this.z[a];a=b}else a=k;Yb(a)};s.ib=aa;function gg(){};function hg(a){Ue.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Da=x(a.Da)?a.Da:gg;this.d=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=x(a.resolutions)?a.resolutions:k}B(hg,Ue);function ig(a,b,c,d){var e=k,d=a.Da(b,d);x(d)&&(e=new Uf(b,c,d,a.d));return e};function jg(a){R.call(this,a)}B(jg,R);function kg(a){R.call(this,a)}B(kg,R);function lg(a,b){Xf.call(this,a,b)}B(lg,Xf);function mg(a,b){Xf.call(this,a,b);this.b=k;this.c=ee()}B(mg,lg);mg.prototype.F=function(){return this.b===k?k:Vf(this.b,this)};mg.prototype.G=q("c");mg.prototype.da=function(a){var b=a.q,c=b.center,d=b.resolution,b=b.rotation,e,f=this.a.Q();e=a.v;!e[0]&&!e[1]&&(e=f.F(a.extent,d),e!==k&&(f=e.a,0==f?(mc(e,"change",this.Hb,p,this),Wf(e)):2==f&&(this.b=e)));if(this.b!==k){e=this.b;f=e.A();e=e.e;var g=this.c;ie(g);me(g,a.size.width/2,a.size.height/2);oe(g,b);ne(g,e/d,e/d);me(g,(f.h-c.x)/e,(c.y-f.j)/e)}};function ng(a,b){Xf.call(this,a,b);this.d=this.b=this.c=k;this.e=ee()}B(ng,lg);ng.prototype.F=q("c");ng.prototype.G=q("e");
|
||||
ng.prototype.da=function(a){function b(a,b){var c=j,e,f,g,i;for(g=b.h;g<=b.m;++g)for(i=b.k;i<=b.j;++i){e=new O(a,g,i);f=e.toString();if(u[a]&&u[a][f])return;e=d.a(e);e!==k&&2==e.a?(u[a]||(u[a]={}),u[a][f]=e):c=p}return c}var c=a.q,d=this.a.Q(),e=y(d).toString(),f=d.tileGrid,g=f.b,i=pf(f.a,c.resolution),r=f.a[i],n=yf(f,a.extent,r),l=new Xd(g.width*n.b(),g.height*n.a()),m,t;this.c===k?(m=Lb("CANVAS"),m.width=l.width,m.height=l.height,t=m.getContext("2d"),this.c=m,this.b=l,this.d=t):(m=this.c,t=this.d,
|
||||
this.b.width==l.width&&this.b.height==l.height||(m.width=l.width,m.height=l.height,this.b=l));t.clearRect(0,0,l.width,l.height);var u={};u[i]={};var v,C,z;for(C=n.h;C<=n.m;++C)for(z=n.k;z<=n.j;++z)if(m=new O(i,C,z),l=d.a(m),l!==k){v=l.a;if(0==v)mc(l,"change",this.Qb,p,this),ag(a.La,d,m),v=Bf(f,m),se(a.Wb,l,e,v);else if(2==v){u[i][m.toString()]=l;continue}else if(3==v)continue;f.c(m,b)}m=za(zb(u),Number);Oa(m);var e=be(xf(f,new O(i,n.h,n.j))),N,S;for(C=0;C<m.length;++C)if(l=m[C],z=u[l],l==i)for(N in z)l=
|
||||
z[N],t.drawImage(l.F(),g.width*(l.S.x-n.h),g.height*(n.j-l.S.y));else for(N in v=f.a[l]/r,z)l=z[N],S=xf(f,l.S),t.drawImage(l.F(),(S.h-e.x)/r,(e.y-S.j)/r,v*g.width,v*g.height);$f(a.Ka,d,i,n);Zf(a,d);f=this.e;ie(f);me(f,a.size.width/2,a.size.height/2);oe(f,c.rotation);ne(f,r/c.resolution,r/c.resolution);me(f,(e.x-c.center.x)/r,(c.center.y-e.y)/r)};function og(a,b){bg.call(this,a,b);this.f=new Xd(a.clientHeight,a.clientWidth);this.c=Lb("CANVAS");this.c.height=this.f.height;this.c.width=this.f.width;this.c.className="ol-unselectable";Ob(a,this.c);this.g=j;this.i=this.c.getContext("2d")}B(og,bg);og.prototype.Pa=function(a){return a instanceof jg?new mg(this,a):a instanceof kg?new ng(this,a):k};og.prototype.Cb=q("c");
|
||||
og.prototype.ib=function(a){if(a===k)this.g&&(Cc(this.c,p),this.g=p);else{var b=a.size;this.f.width==b.width&&this.f.height==b.height||(this.c.width=b.width,this.c.height=b.height,this.f=b);var c=this.i;c.setTransform(1,0,0,1,0,0);var d=a.backgroundColor;c.fillStyle="rgb("+d.c.toFixed(0)+","+d.b.toFixed(0)+","+d.a.toFixed(0)+")";c.globalAlpha=1;c.fillRect(0,0,b.width,b.height);D(a.bb,function(b){var d=a.ab[y(b)];if(d.visible)if(d.nb){var g=eg(this,b);g.da(a,d);b=g.F();b!==k&&(g=g.G(),c.setTransform(g[0],
|
||||
g[1],g[4],g[5],g[12],g[13]),c.globalAlpha=d.opacity,c.drawImage(b,0,0))}else a.N=j},this);this.g||(Cc(this.c,j),this.g=j);dg(a)}};function pg(){if(!("HTMLCanvasElement"in w))return p;try{return Lb("CANVAS").getContext("2d")!==k}catch(a){return p}};function qg(a,b){var c;if(x(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function rg(a,b,c){Xf.call(this,a,b);this.target=c}B(rg,Xf);rg.prototype.p=function(){Pb(this.target);rg.s.p.call(this)};function sg(a,b){var c=Lb("DIV");c.className="ol-layer-image";c.style.position="absolute";rg.call(this,a,b,c);this.b=k;this.c=ge()}B(sg,rg);
|
||||
sg.prototype.da=function(a){var b=a.q,c=b.center,d=b.resolution,e=b.rotation,b=this.b,f=this.a.Q(),g=a.v;!g[0]&&!g[1]&&(f=f.F(a.extent,d),f!==k&&(g=f.a,0==g?(mc(f,"change",this.Hb,p,this),Wf(f)):2==g&&(b=f)));if(b!==k){var g=b.A(),i=b.e,f=ee();ie(f);me(f,a.size.width/2,a.size.height/2);oe(f,e);ne(f,i/d,i/d);me(f,(g.h-c.x)/i,(c.y-g.j)/i);b!=this.b&&(a=Vf(b,this),a.style.position="absolute",Nb(this.target),this.target.appendChild(a),this.b=b);ke(f,this.c)||(qg(this.target,f),he(this.c,f))}};function tg(a,b){var c=Lb("DIV");c.className="ol-layer-tile";c.style.position="absolute";rg.call(this,a,b,c);this.c=j;this.d=1;this.b={}}B(tg,rg);
|
||||
tg.prototype.da=function(a,b){if(b.visible){var c=a.q,d=this.a.Q(),e=y(d).toString(),f=d.tileGrid,g=pf(f.a,c.resolution),i=yf(f,a.extent,f.a[g]),r={};r[g]={};var n=function(a,b){var c=j,e,f,g,i;for(g=b.h;g<=b.m;++g)for(i=b.k;i<=b.j;++i){e=new O(a,g,i);f=e.toString();if(r[a]&&r[a][f])return;e=d.a(e);e!==k&&2==e.a?(r[a]||(r[a]={}),r[a][f]=e):c=p}return c},l,m,t,u,v;for(u=i.h;u<=i.m;++u)for(v=i.k;v<=i.j;++v)if(t=new O(g,u,v),l=d.a(t),l!==k){m=l.a;if(0==m)mc(l,"change",this.Qb,p,this),ag(a.La,d,t),m=
|
||||
Bf(f,t),se(a.Wb,l,e,m);else if(2==m){r[g][t.toString()]=l;continue}else if(3==m)continue;f.c(t,n)}l=za(zb(r),Number);Oa(l);var e={},C;for(t=0;t<l.length;++t){u=l[t];u in this.b?n=this.b[u]:(n=Af(f,c.center,f.a[u]),n=new ug(f,n),e[u]=j,this.b[u]=n);u=r[u];for(C in u){v=n;m=u[C];var z=m.S,N=z.toString();if(!(N in v.b)){var S=v.d.b,P=m.F(v),Y=P.style;Y.position="absolute";Y.left=(z.x-v.c.x)*S.width+"px";Y.top=(v.c.y-z.y)*S.height+"px";v.a===k&&(v.a=document.createDocumentFragment());v.a.appendChild(P);
|
||||
v.b[N]=m}}n.a!==k&&(n.target.appendChild(n.a),n.a=k)}f=za(zb(this.b),Number);Oa(f);l=ee();for(C=0;C<f.length;++C)if(u=f[C],n=this.b[u],u in r)if(v=n.g,t=n.f,ie(l),me(l,a.size.width/2,a.size.height/2),oe(l,c.rotation),ne(l,v/c.resolution,v/c.resolution),me(l,(t.x-c.center.x)/v,(c.center.y-t.y)/v),t=n,v=l,ke(v,t.e)||(qg(t.target,v),he(t.e,v)),u in e){for(t=u-1;0<=t;--t)if(t in this.b){u=this.b[t].target;u.parentNode&&u.parentNode.insertBefore(n.target,u.nextSibling);break}0>t&&Ob(this.target,n.target)}else{if(!a.v[0]&&
|
||||
!a.v[1]){m=yf(n.d,a.extent,n.d.a[n.c.n]);t=[];v=u=h;for(v in n.b)u=n.b[v],m.contains(u.S)||t.push(u);m=h;for(m=0;m<t.length;++m)u=t[m],v=u.S.toString(),Pb(u.F(n)),delete n.b[v]}}else Pb(n.target),delete this.b[u];b.opacity!=this.d&&(c=b.opacity,e=this.target.style,"opacity"in e?e.opacity=c:"MozOpacity"in e?e.MozOpacity=c:"filter"in e&&(e.filter=""===c?"":"alpha(opacity="+100*c+")"),this.d=b.opacity);b.visible&&!this.c&&(Cc(this.target,j),this.c=j);$f(a.Ka,d,g,i);Zf(a,d)}else this.c&&(Cc(this.target,
|
||||
p),this.c=p)};function ug(a,b){this.target=Lb("DIV");this.target.style.position="absolute";this.d=a;this.c=b;this.f=be(xf(a,b));this.g=a.a[b.n];this.b={};this.a=k;this.e=ge()};function vg(a,b){bg.call(this,a,b);this.c=Lb("DIV");this.c.className="ol-layers ol-unselectable";var c=this.c.style;c.position="absolute";c.width="100%";c.height="100%";Ob(a,this.c);this.f=j}B(vg,bg);vg.prototype.la=function(a){vg.s.la.call(this,a);fg(this.map)};vg.prototype.Pa=function(a){var b;a instanceof kg?b=new tg(this,a):a instanceof jg&&(b=new sg(this,a));this.c.appendChild(b.target);return b};
|
||||
vg.prototype.ib=function(a){a===k?this.f&&(Cc(this.c,p),this.f=p):(D(a.bb,function(b){var c=a.ab[y(b)];c.nb&&eg(this,b).da(a,c)},this),this.f||(Cc(this.c,j),this.f=j),dg(a))};function wg(a){this.a=a}wg.prototype.Q=q("a");function xg(a){this.a=a}B(xg,wg);xg.prototype.b=function(){return 35632};function yg(a){this.a=a}B(yg,wg);yg.prototype.b=function(){return 35633};function zg(a,b){Xf.call(this,a,b);this.z=new Float32Array(16);this.C=new Float32Array(16);this.Z=new Float32Array(16);this.qa=new Float32Array(16);this.B=new Float32Array(16);this.c=j;this.Ib();this.Jb();this.Kb();this.Lb()}B(zg,Xf);function Ag(a){if(a.c){var b=a.B;ie(b);je(b,a.C,b);je(b,a.z,b);je(b,a.qa,b);je(b,a.Z,b);a.c=p}return a.B}s=zg.prototype;s.W=function(){return zg.s.W.call(this)};s.Ib=function(){var a=this.a.b(),b=this.z;ie(b);b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=j;Yf(this)};
|
||||
s.Jb=function(){var a=this.a.c(),b=this.C;ie(b);b[0]=a;b[5]=a;b[10]=a;b[15]=1;a=-0.5*a+0.5;b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=j;Yf(this)};s.Kb=function(){var a=this.a.d(),b=Math.cos(a),a=Math.sin(a);fe(this.Z,0.213+0.787*b-0.213*a,0.213-0.213*b+0.143*a,0.213-0.213*b-0.787*a,0,0.715-0.715*b-0.715*a,0.715+0.285*b+0.14*a,0.715-0.715*b+0.715*a,0,0.072-0.072*b+0.928*a,0.072-0.072*b-0.283*a,0.072+0.928*b+0.072*a,0,0,0,0,1);this.c=j;Yf(this)};
|
||||
s.Lb=function(){var a=this.a.f();fe(this.qa,0.213+0.787*a,0.213-0.213*a,0.213-0.213*a,0,0.715-0.715*a,0.715+0.285*a,0.715-0.715*a,0,0.072-0.072*a,0.072-0.072*a,0.072+0.928*a,0,0,0,0,1);this.c=j;Yf(this)};s.Ca=aa;function Bg(a,b){zg.call(this,a,b);this.b=this.d=k;this.e=ge();this.f=ee()}B(Bg,zg);s=Bg.prototype;s.p=function(){var a=this.W().a;a.isContextLost()||a.deleteTexture(this.b);Bg.s.p.call(this)};s.ic=q("e");s.jc=q("b");s.kc=q("f");s.Ca=function(){this.b=k};
|
||||
s.da=function(a){var b=this.W().a,c=a.q,d=c.center,e=c.resolution,f=c.rotation,c=this.d,g=this.b,i=this.a.Q(),r=a.v;!r[0]&&!r[1]&&(i=i.F(a.extent,e),i!==k&&(r=i.a,0==r?(mc(i,"change",this.Hb,p,this),Wf(i)):2==r&&(c=i,g=Vf(i,this),i=this.W().a,r=i.createTexture(),i.bindTexture(3553,r),i.texImage2D(3553,0,6408,6408,5121,g),i.texParameteri(3553,10242,33071),i.texParameteri(3553,10243,33071),i.texParameteri(3553,10241,9729),i.texParameteri(3553,10240,9729),g=r,this.b===k||a.pa.push(oa(function(a,b){a.isContextLost()||
|
||||
a.deleteTexture(b)},b,this.b)))));c!==k&&(i=this.W().Cb(),a=c.A(),b=i.width*e,e*=i.height,i=this.f,ie(i),ne(i,2/b,2/e),oe(i,-f),me(i,a.h-d.x,a.k-d.y),ne(i,a.b()/2,a.a()/2),me(i,1,1),d=this.e,ie(d),ne(d,1,-1),me(d,0,-1),this.d=c,this.b=g)};function Cg(a,b){this.J=a;this.T=b}Cg.prototype.O=function(){return new Cg(this.J,this.T)};function Dg(a){this.a=[];if(a)a:{var b,c;if(a instanceof Dg){if(b=a.V(),c=a.K(),0>=a.U()){for(var a=this.a,d=0;d<b.length;d++)a.push(new Cg(b[d],c[d]));break a}}else b=zb(a),c=yb(a);for(d=0;d<b.length;d++)Eg(this,b[d],c[d])}}function Eg(a,b,c){var d=a.a;d.push(new Cg(b,c));b=d.length-1;a=a.a;for(c=a[b];0<b;)if(d=b-1>>1,a[d].J>c.J)a[b]=a[d],b=d;else break;a[b]=c}s=Dg.prototype;
|
||||
s.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ba(a);else{a[0]=a.pop();for(var a=0,b=this.a,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,g=2*a+2,f=g<d&&b[g].J<b[f].J?g:f;if(b[f].J>e.J)break;b[a]=b[f];a=f}b[a]=e}return c.T}};s.K=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].T);return b};s.V=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].J);return b};s.O=function(){return new Dg(this)};s.U=function(){return this.a.length};
|
||||
s.Fa=function(){return 0==this.a.length};s.clear=function(){Ba(this.a)};function Fg(){Dg.call(this)}B(Fg,Dg);function Gg(){this.a="precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}"}B(Gg,xg);ba(Gg);function Hg(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nuniform vec4 uTileOffset;\n\nvoid main(void) {\n gl_Position.xy = aPosition * uTileOffset.xy + uTileOffset.zw;\n gl_Position.z = 0.;\n gl_Position.w = 1.;\n vTexCoord = aTexCoord;\n}"}B(Hg,yg);ba(Hg);
|
||||
function Ig(a,b){zg.call(this,a,b);this.tb=Gg.Sa();this.wb=Hg.Sa();this.e=this.g=this.f=this.u=k;this.i=h;this.d=ee();this.vb=ge();this.r=this.b=k}B(Ig,zg);s=Ig.prototype;s.p=function(){var a=this.W().a;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.e),a.deleteTexture(this.g));Ig.s.p.call(this)};s.ic=q("d");s.jc=q("g");s.kc=q("vb");s.Ca=function(){this.e=this.g=this.f=this.u=k;this.i=h};
|
||||
s.da=function(a){var b=this.W(),c=b.a,d=a.q,e=d.center,f=this.a.Q(),g=y(f).toString(),i=f.tileGrid,r=pf(i.a,d.resolution),n=i.a[r],l=yf(i,a.extent,n),m;if(this.b!==k&&this.b.h==l.h&&this.b.k==l.k&&this.b.m==l.m&&this.b.j==l.j)m=this.r;else{var t=new Xd(l.b(),l.a()),u=i.b,t=Math.max(t.width*u.width,t.height*u.height),t=Math.pow(2,Math.ceil(Math.log(t)/Math.log(2))),v=new Xd(n*t,n*t),C=zf(i,r),z=C.x+l.h*u.width*n,n=C.y+l.k*u.height*n;m=new $d(z,n,z+v.width,n+v.height);n=this.W().a;!x(this.i)||this.i!=
|
||||
t?(a.pa.push(oa(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},n,this.e,this.g)),u=n.createTexture(),n.bindTexture(3553,u),n.texImage2D(3553,0,6408,t,t,0,6408,5121,k),n.texParameteri(3553,10240,9729),n.texParameteri(3553,10241,9729),z=n.createFramebuffer(),n.bindFramebuffer(36160,z),n.framebufferTexture2D(36160,36064,3553,u,0),this.g=u,this.e=z,this.i=t):n.bindFramebuffer(36160,this.e);c.viewport(0,0,t,t);c.clearColor(0,0,0,0);c.clear(16384);c.disable(3042);t=Jg(b,
|
||||
this.tb,this.wb);c.useProgram(t);this.u===k&&(this.u={ta:c.getAttribLocation(t,"aPosition"),ua:c.getAttribLocation(t,"aTexCoord"),pe:c.getUniformLocation(t,"uTileOffset"),Xb:c.getUniformLocation(t,"uTexture")});this.f===k?(t=c.createBuffer(),c.bindBuffer(34962,t),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=t):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.u.ta);c.vertexAttribPointer(this.u.ta,2,5126,p,16,0);c.enableVertexAttribArray(this.u.ua);c.vertexAttribPointer(this.u.ua,
|
||||
2,5126,p,16,8);c.uniform1i(this.u.Xb,0);var N={};N[r]={};for(var n=function(a,c){var d=j,e,g,i,n;for(i=c.h;i<=c.m;++i)for(n=c.k;n<=c.j;++n){e=new O(a,i,n);g=e.toString();if(N[a]&&N[a][g])return;e=f.a(e);e!==k&&2==e.a&&Kg(b.b,e.c())?(N[a]||(N[a]={}),N[a][g]=e):d=p}return d},t=new Fg,S=j,P,Y,C=l.h;C<=l.m;++C)for(Y=l.k;Y<=l.j;++Y)if(z=new O(r,C,Y),u=f.a(z),u!==k){P=u.a;if(0==P)mc(u,"change",this.Qb,p,this),ag(a.La,f,z),P=Bf(i,z),se(a.Wb,u,g,P);else if(2==P)if(Kg(b.b,u.c())){N[r][z.toString()]=u;continue}else P=
|
||||
Bf(i,z),S=P.x-e.x,P=P.y-e.y,S=Math.sqrt(S*S+P*P),Eg(t,S,u);else if(3==P)continue;S=p;i.c(z,n)}e=za(zb(N),Number);Oa(e);var fa=new Float32Array(4);D(e,function(a){xb(N[a],function(a){var d=xf(i,a.S),e=2*d.a()/v.height,f=2*(d.h-m.h)/v.width-1,g=2*(d.k-m.k)/v.height-1;fa[0]=2*d.b()/v.width;fa[1]=e;fa[2]=f;fa[3]=g;c.uniform4fv(this.u.pe,fa);Lg(b,a);c.drawArrays(5,0,4)},this)},this);t.Fa()||a.pa.push(oa(function(a,b){var c,d;for(c=0;!b.Fa()&&4>c;++c)d=b.remove(),Lg(a,d)},b,t));S?(this.b=l,this.r=m):(this.r=
|
||||
this.b=k,a.N=j)}$f(a.Ka,f,r,l);Zf(a,f);ie(this.d);me(this.d,(d.center.x-m.h)/(m.m-m.h),(d.center.y-m.k)/(m.j-m.k));oe(this.d,d.rotation);ne(this.d,a.size.width*d.resolution/(m.m-m.h),a.size.height*d.resolution/(m.j-m.k));me(this.d,-0.5,-0.5)};function Mg(){this.l=0;this.c={};this.b=this.a=k}s=Mg.prototype;s.clear=function(){this.l=0;this.c={};this.b=this.a=k};function Kg(a,b){return a.c.hasOwnProperty(b)}s.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.T,c.J,this),c=c.P};s.get=function(a){a=this.c[a];if(a===this.b)return a.T;a===this.a?(this.a=this.a.P,this.a.ea=k):(a.P.ea=a.ea,a.ea.P=a.P);a.P=k;a.ea=this.b;this.b=this.b.P=a;return a.T};s.U=q("l");
|
||||
s.V=function(){var a=Array(this.l),b=0,c;for(c=this.b;c!==k;c=c.ea)a[b++]=c.J;return a};s.K=function(){var a=Array(this.l),b=0,c;for(c=this.b;c!==k;c=c.ea)a[b++]=c.T;return a};function Ng(a){var b=a.a;delete a.c[b.J];b.P!==k&&(b.P.ea=k);a.a=b.P;a.a===k&&(a.b=k);--a.l}s.set=function(a,b){var c={J:a,P:k,ea:this.b,T:b};this.b===k?this.a=c:this.b.P=c;this.b=c;this.c[a]=c;++this.l};var Og=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function Pg(a,b){var c,d,e=Og.length;for(d=0;d<e;++d)try{if(c=a.getContext(Og[d],b),c!==k)return c}catch(f){}return k};function Qg(){this.a="precision mediump float;\n\nuniform mat4 uColorMatrix;\nuniform float uOpacity;\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n\n vec4 texColor = texture2D(uTexture, vTexCoord);\n vec4 color = uColorMatrix * vec4(texColor.rgb, 1.);\n color.a = texColor.a * uOpacity;\n\n gl_FragColor = color;\n\n}"}B(Qg,xg);ba(Qg);
|
||||
function Rg(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nuniform mat4 uTexCoordMatrix;\nuniform mat4 uVertexCoordMatrix;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_Position = uVertexCoordMatrix * vec4(aPosition, 0., 1.);\n vTexCoord = (uTexCoordMatrix * vec4(aTexCoord, 0., 1.)).st;\n}"}B(Rg,yg);ba(Rg);
|
||||
function Sg(a,b){bg.call(this,a,b);this.c=Lb("CANVAS");this.c.height=a.clientHeight;this.c.width=a.clientWidth;this.c.className="ol-unselectable";Ob(a,this.c);this.r=j;this.B=new Xd(a.clientHeight,a.clientWidth);this.a=Pg(this.c,{alpha:p,antialias:j,depth:p,preserveDrawingBuffer:p,stencil:p});H(this.c,"webglcontextlost",this.Ca,p,this);H(this.c,"webglcontextrestored",this.Td,p,this);this.o=this.u=k;this.g={};this.f={};this.b=new Mg;this.i=0;this.G=Qg.Sa();this.Z=Rg.Sa();Tg(this)}B(Sg,bg);s=Sg.prototype;
|
||||
s.la=function(a){Sg.s.la.call(this,a);a.a()&&fg(this.map)};
|
||||
function Lg(a,b){var c=a.a,d=b.c();if(Kg(a.b,d))d=a.b.get(d),c.bindTexture(3553,d.Vb),9729!=d.rc&&(c.texParameteri(3553,10240,9729),d.rc=9729),9729!=d.sc&&(c.texParameteri(3553,10240,9729),d.sc=9729);else{var e=c.createTexture();c.bindTexture(3553,e);c.texImage2D(3553,0,6408,6408,5121,b.F());c.texParameteri(3553,10240,9729);c.texParameteri(3553,10241,9729);c.texParameteri(3553,10242,33071);c.texParameteri(3553,10243,33071);a.b.set(d,{Vb:e,rc:9729,sc:9729})}}
|
||||
s.Pa=function(a){var b=k;a instanceof kg?b=new Ig(this,a):a instanceof jg&&(b=new Bg(this,a));return b};s.p=function(){var a=this.a;a.isContextLost()||(xb(this.f,function(b){a.deleteProgram(b)}),xb(this.g,function(b){a.deleteShader(b)}),this.b.forEach(function(b){b===k||a.deleteTexture(b.Vb)}));Sg.s.p.call(this)};s.hd=function(a,b){for(var c=this.a,d;1024<this.b.U()-this.i;){d=this.b.a.T;if(d===k)if(+this.b.a.J==b.time)break;else--this.i;else c.deleteTexture(d.Vb);Ng(this.b)}};s.Cb=q("c");
|
||||
function Jg(a,b,c){var d=y(b)+"/"+y(c);if(d in a.f)return a.f[d];var e=a.a,f=e.createProgram();e.attachShader(f,Ug(a,b));e.attachShader(f,Ug(a,c));e.linkProgram(f);return a.f[d]=f}function Ug(a,b){var c=y(b);if(c in a.g)return a.g[c];var d=a.a,e=d.createShader(b.b());d.shaderSource(e,b.Q());d.compileShader(e);return a.g[c]=e}s.Ca=function(a){a.w();this.o=this.u=k;this.g={};this.f={};this.b.clear();this.i=0;xb(this.d,function(a){a.Ca()})};s.Td=function(){Tg(this);fg(this.map)};
|
||||
function Tg(a){a=a.a;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}s.Sb=function(a){Sg.s.Sb.call(this,a);a.a()&&fg(this.map)};
|
||||
s.ib=function(a){var b=this.a;if(a===k)return this.r&&(Cc(this.c,p),this.r=p),p;this.b.set(a.time.toString(),k);++this.i;D(a.bb,function(b){var c=a.ab[y(b)];c.visible&&c.nb&&eg(this,b).da(a,c)},this);var c=a.size;this.B.width==c.width&&this.B.height==c.height||(this.c.width=c.width,this.c.height=c.height,this.B=c);b.bindFramebuffer(36160,k);var d=a.backgroundColor;b.clearColor(d.c/255,d.b/255,d.a/255,d.d);b.clear(16384);b.enable(3042);b.viewport(0,0,c.width,c.height);c=Jg(this,this.G,this.Z);b.useProgram(c);
|
||||
this.u===k&&(this.u={ta:b.getAttribLocation(c,"aPosition"),ua:b.getAttribLocation(c,"aTexCoord"),me:b.getUniformLocation(c,"uColorMatrix"),oe:b.getUniformLocation(c,"uTexCoordMatrix"),qe:b.getUniformLocation(c,"uVertexCoordMatrix"),ne:b.getUniformLocation(c,"uOpacity"),Xb:b.getUniformLocation(c,"uTexture")});this.o===k?(c=b.createBuffer(),b.bindBuffer(34962,c),b.bufferData(34962,new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),35044),this.o=c):b.bindBuffer(34962,this.o);b.enableVertexAttribArray(this.u.ta);
|
||||
b.vertexAttribPointer(this.u.ta,2,5126,p,16,0);b.enableVertexAttribArray(this.u.ua);b.vertexAttribPointer(this.u.ua,2,5126,p,16,8);b.uniform1i(this.u.Xb,0);D(a.bb,function(c){var d=a.ab[y(c)];d.visible&&d.nb&&(d=eg(this,c),b.uniformMatrix4fv(this.u.oe,p,d.ic()),b.uniformMatrix4fv(this.u.qe,p,d.kc()),b.uniformMatrix4fv(this.u.me,p,Ag(d)),b.uniform1f(this.u.ne,c.e()),b.bindTexture(3553,d.jc()),b.drawArrays(5,0,4))},this);this.r||(Cc(this.c,j),this.r=j);dg(a);1024<this.b.U()-this.i&&a.pa.push(na(this.hd,
|
||||
this))};function Vg(){if(!("WebGLRenderingContext"in w))return p;try{var a=Lb("CANVAS");return Pg(a)!==k}catch(b){return p}};var Wg={},Xg={Ae:"canvas",Fe:"dom",lf:"webgl"},Yg=["webgl","canvas","dom"],cg="layers";
|
||||
function V(a){var b,c;L.call(this);var d={};d[cg]=x(a.layers)?a.layers:new M;d.view=x(a.view)?a.view:new T;c=bg;var e;e=x(a.renderers)?a.renderers:x(a.renderer)?[a.renderer]:Yg;var f;for(b=0;b<e.length;++b)if(f=e[b],"canvas"==f){if(pg()){c=og;break}}else if("dom"==f){if(qd()){c=vg;break}}else if("webgl"==f&&Vg()){c=Sg;break}e=[];(x(a.attributionControl)?a.attributionControl:1)&&e.push(new Df({}));if(x(a.zoomControl)?a.zoomControl:1)e.push(new Ff({delta:x(a.zoomDelta)?a.zoomDelta:4}));if(x(a.interactions))b=
|
||||
a.interactions;else{b=new M;(x(a.rotate)?a.rotate:1)&&b.push(new Of(If));if(x(a.doubleClickZoom)?a.doubleClickZoom:1)b.push(new Hf(x(a.zoomDelta)?a.zoomDelta:4));(x(a.dragPan)?a.dragPan:1)&&b.push(new Mf(Jf,new $e(-0.005,0.05,100)));f=x(a.keyboardPanOffset)?a.keyboardPanOffset:80;if(x(a.keyboard)?a.keyboard:1)b.push(new Rf(f)),b.push(new Sf);if(x(a.mouseWheelZoom)?a.mouseWheelZoom:1)b.push(new Tf(x(a.mouseWheelZoomDelta)?a.mouseWheelZoomDelta:1));(x(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Qf(Kf))}a=
|
||||
ga(a.target)?document.getElementById(a.target):a.target;this.c=new sd(this.he,h,this);Wb(this,this.c);this.Lc=ee();this.Oc=ee();this.d=k;this.f=0;this.g=p;this.C=a;this.z=k;this.b=Jb("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.b.style.msTouchAction="none";this.C.appendChild(this.b);this.o=Jb("DIV","ol-overlaycontainer");H(this.o,["click",Ld?"touchstart":"mousedown"],$b);this.b.appendChild(this.o);a=
|
||||
new ff(this);H(a,yb(of),this.zc,p,this);Wb(this,a);a=new Bd(document);H(a,"key",this.nc,p,this);Wb(this,a);a=new Id(this.b);H(a,"mousewheel",this.nc,p,this);Wb(this,a);this.qa=b;this.vb=new c(this.b,this);Wb(this,this.vb);this.Rc=new wd;H(this.Rc,"resize",this.oc,p,this);this.r=[];this.tb=[];this.Nc=na(this.Nd,this);this.G=new re(na(this.pd,this));H(this,Rd("view"),this.Rd,p,this);H(this,Rd("size"),this.Pd,p,this);H(this,Rd("backgroundColor"),this.Ad,p,this);this.hb(d);this.oc();D(e,function(a){a.a(this)},
|
||||
this)}B(V,L);V.prototype.B=function(a){tf(this);this.r.push(a)};V.prototype.Kc=function(a){tf(this);Array.prototype.push.apply(this.r,a)};V.prototype.p=function(){Pb(this.b);V.s.p.call(this)};V.prototype.Z=function(){return this.get("backgroundColor")};V.prototype.getBackgroundColor=V.prototype.Z;function df(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];le(c.Bc,d,d);return new K(d[0],d[1])}V.prototype.Mc=q("qa");V.prototype.i=function(){return this.get(cg)};V.prototype.getLayers=V.prototype.i;
|
||||
function Nf(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];le(c.ec,d,d);return new bf(d[0],d[1])}V.prototype.e=function(){return this.get("size")};V.prototype.getSize=V.prototype.e;V.prototype.a=function(){return this.get("view")};V.prototype.getView=V.prototype.a;s=V.prototype;s.pd=function(a,b,c){var d=this.d;if(d===k||!(b in d.La)||!d.La[b][a.S.toString()])return Infinity;b=d.q.center;a=c.x-b.x;c=c.y-b.y;return a*a+c*c};s.nc=function(a,b){this.zc(new cf(b||a.type,this,a))};
|
||||
s.zc=function(a){a.d=this.d;var b=this.qa.a;if(J(this,a)!==p)for(var c=b.length-1;0<=c&&!(b[c].oa(a),a.Va);c--);};
|
||||
s.Nd=function(){var a=this.G,b=a.a,c,d=0,e,f,g,i;for(c=0;c<b.length;++c)e=b[c],g=e[1],i=e[2],f=e[3],f=a.d(g,i,f),Infinity==f?(e=g.c(),delete a.b[e]):(e[0]=f,b[d++]=e);b.length=d;for(b=(a.a.length>>1)-1;0<=b;b--)ue(a,b);for(a=this.G;0<a.a.length&&a.c<a.e;)b=a,d=b.a,c=d[0][1],1==d.length?d.length=0:(d[0]=d.pop(),ue(b,0)),d=c.c(),delete b.b[d],b=c,mc(b,"change",a.f,p,a),0==b.a&&(b.a=1,b.d=[mc(b.b,"error",b.g,p,b),mc(b.b,"load",b.i,p,b)],b.b.src=b.f),++a.c;a=this.tb;for(b=0;b<a.length;++b)a[b](this,this.d);
|
||||
a.length=0};s.Ad=function(){fg(this)};s.oc=function(){this.wb(new Xd(this.C.clientWidth,this.C.clientHeight))};s.Pd=function(){fg(this)};s.Sd=function(){fg(this)};s.Rd=function(){this.z!==k&&(I(this.z),this.z=k);var a=this.a();a!=k&&(this.z=H(a,"changed",this.Sd,p,this));fg(this)};s.Ea=function(){var a=this.a(),b;if(b=x(a)){if(a=a.Ea())a=this.e()!=k;b=a}return b};function fg(a){a.c.L==k&&(0===a.f?(a=a.c,td(a),a.Db()):a.g=j)}function tf(a){0===a.f?a.c.L!=k||a.c.start():a.g=j}
|
||||
s.he=function(a){var b;if(0==this.f){var c=this.e();b=this.i();var d=x(b)?b.a:h;b=this.a();var e=x(b)?this.a():h,f=k;if(x(d)&&x(c)&&x(e)&&e.Ea()){var f=this.Z(),g=Ea(b.b),i={},r;for(b=0;b<d.length;++b){r=d[b];var n=i,l=y(r),m=r;r=m.b();var t=m.c(),u=m.d(),v=m.e(),C=m.Q().c(),z=m.f(),m=m.a();n[l]={brightness:x(r)?r:0,contrast:x(t)?t:1,hue:x(u)?u:0,opacity:x(v)?v:1,nb:C,saturation:x(z)?z:1,visible:x(m)?m:j}}b=e.Y();n=e.yc();l=e.ca();e=e.za();n={center:new K(b.x,b.y),projection:n,resolution:l,rotation:e};
|
||||
f={N:p,backgroundColor:x(f)?f:new Wd,ec:this.Lc,extent:k,bb:d,ab:i,Bc:this.Oc,pa:[],size:c,Wb:this.G,time:a,Ka:{},q:n,v:g,La:{}}}a=this.r;for(b=d=0;b<a.length;++b)e=a[b],e(this,f)&&(a[d++]=e);a.length=d;if(f!==k){a=n.center;b=n.resolution;d=n.rotation;e=b*c.width/2;c=b*c.height/2;c=[new K(-e,-c),new K(-e,c),new K(e,-c),new K(e,c)];for(b=0;4>b;++b)e=c[b],e.rotate(d),e.add(a);f.extent=ae.apply(k,c)}this.d=f;this.vb.ib(f);this.g=p;f!==k&&(f.N&&tf(this),Array.prototype.push.apply(this.tb,f.pa));J(this,
|
||||
new af("postrender",this,f));w.setTimeout(this.Nc,0)}};s.je=function(a){this.set("backgroundColor",a)};V.prototype.setBackgroundColor=V.prototype.je;V.prototype.Pc=function(a){this.set(cg,a)};V.prototype.setLayers=V.prototype.Pc;V.prototype.wb=function(a){this.set("size",a)};V.prototype.setSize=V.prototype.wb;V.prototype.Qc=function(a){this.set("view",a)};V.prototype.setView=V.prototype.Qc;function sf(a,b,c){++a.f;try{b.call(c)}finally{0===--a.f&&a.g&&(a=a.c,td(a),a.Db())}}
|
||||
Wg.$c=function(a){var b=w.location.search.substring(1),a=x(a)?a:new Yc(b);return md(a,"renderers")?a.get("renderers").split(","):md(a,"renderer")?[a.get("renderer")]:Yg};var Zg={xe:"bottom-left",ye:"bottom-right",gf:"top-left",hf:"top-right"};function W(a){L.call(this);this.b=Lb("DIV");this.b.style.position="absolute";this.a={Oa:"",cb:"",pb:"",sb:"",visible:j};H(this,Rd("element"),this.Cd,p,this);H(this,Rd("map"),this.Kd,p,this);H(this,Rd("position"),this.Ld,p,this);H(this,Rd("positioning"),this.Md,p,this);x(a.element)&&this.Hc(a.element);x(a.position)&&this.o(a.position);x(a.positioning)&&this.set("positioning",a.positioning);x(a.map)&&this.i(a.map)}B(W,L);
|
||||
W.prototype.f=function(){return this.get("element")};W.prototype.getElement=W.prototype.f;W.prototype.d=function(){return this.get("map")};W.prototype.getMap=W.prototype.d;W.prototype.g=function(){return this.get("position")};W.prototype.getPosition=W.prototype.g;W.prototype.e=function(){return this.get("positioning")};W.prototype.getPositioning=W.prototype.e;s=W.prototype;s.Cd=function(){Nb(this.b);var a=this.f();a!=k&&Mb(this.b,a)};
|
||||
s.Kd=function(){this.c!==k&&(Pb(this.b),I(this.c),this.c=k);var a=this.d();a!=k&&(this.c=H(a,"postrender",this.be,p,this),$g(this),Mb(a.o,this.b))};s.be=function(){$g(this)};s.Ld=function(){$g(this)};s.Md=function(){$g(this)};s.Hc=function(a){this.set("element",a)};W.prototype.setElement=W.prototype.Hc;W.prototype.i=function(a){this.set("map",a)};W.prototype.setMap=W.prototype.i;W.prototype.o=function(a){this.set("position",a)};W.prototype.setPosition=W.prototype.o;
|
||||
function $g(a){var b=a.d(),c=a.g();if(!x(b)||!b.Ea()||!x(c))a.a.visible&&(Cc(a.b,p),a.a.visible=p);else{var c=Nf(b,c),d=b.e(),b=a.b.style,e=a.e();if("bottom-right"==e||"top-right"==e){""!==a.a.cb&&(a.a.cb=b.left="");var f=Math.round(d.width-c.x)+"px";a.a.pb!=f&&(a.a.pb=b.right=f)}else""!==a.a.pb&&(a.a.pb=b.right=""),f=Math.round(c.x)+"px",a.a.cb!=f&&(a.a.cb=b.left=f);"top-left"==e||"top-right"==e?(""!==a.a.Oa&&(a.a.Oa=b.bottom=""),c=Math.round(c.y)+"px",a.a.sb!=c&&(a.a.sb=b.top=c)):(""!==a.a.sb&&
|
||||
(a.a.sb=b.top=""),c=Math.round(d.height-c.y)+"px",a.a.Oa!=c&&(a.a.Oa=b.bottom=c));a.a.visible||(Cc(a.b,j),a.a.visible=j)}};/*
|
||||
(function(){var h=void 0,i=!0,k=null,m=!1;function q(a){return function(){return this[a]}}var s,v=this;function x(){}function aa(a){a.Ya=function(){return a.lc?a.lc:a.lc=new a}}
|
||||
function ba(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 y(a){return a!==h}function ca(a){return"array"==ba(a)}function da(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ea(a){return"string"==typeof a}function ga(a){return"function"==ba(a)}function ha(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function z(a){return a[ia]||(a[ia]=++ja)}var ia="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ja=0;
|
||||
function ka(a,b,c){return a.call.apply(a.bind,arguments)}function la(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 ma(a,b,c){ma=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ka:la;return ma.apply(k,arguments)}
|
||||
function na(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var oa=Date.now||function(){return+new Date};function A(a,b){var c=a.split("."),d=v;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&y(b)?d[e]=b:d=d[e]?d[e]:d[e]={}}function B(a,b){function c(){}c.prototype=b.prototype;a.v=b.prototype;a.prototype=new c};function pa(a){Error.captureStackTrace?Error.captureStackTrace(this,pa):this.stack=Error().stack||"";a&&(this.message=String(a))}B(pa,Error);pa.prototype.name="CustomError";function qa(a){if(!ra.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(sa,"&"));-1!=a.indexOf("<")&&(a=a.replace(ta,"<"));-1!=a.indexOf(">")&&(a=a.replace(ua,">"));-1!=a.indexOf('"')&&(a=a.replace(va,"""));return a}var sa=/&/g,ta=/</g,ua=/>/g,va=/\"/g,ra=/[&<>\"]/;var wa=Array.prototype,xa=wa.indexOf?function(a,b,c){return wa.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ea(a))return!ea(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},D=wa.forEach?function(a,b,c){wa.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ea(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},ya=wa.map?function(a,b,c){return wa.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=
|
||||
ea(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},za=wa.some?function(a,b,c){return wa.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ea(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return i;return m};function Aa(a){if(!ca(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function Ba(a,b){var c=xa(a,b),d;(d=0<=c)&&wa.splice.call(a,c,1);return d}function Ca(a){return wa.concat.apply(wa,arguments)}
|
||||
function Da(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[]}function Ea(a,b,c,d){wa.splice.apply(a,Fa(arguments,1))}function Fa(a,b,c){return 2>=arguments.length?wa.slice.call(a,b):wa.slice.call(a,b,c)}function Ga(a){wa.sort.call(a,Ha)}function Ha(a,b){return a>b?1:a<b?-1:0};function Pa(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Qa(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ra(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Sa(a){for(var b in a)return m;return i}var Ta="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
|
||||
function Ua(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<Ta.length;f++)c=Ta[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Va(a){if("function"==typeof a.N)return a.N();if(ea(a))return a.split("");if(da(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Qa(a)};function Wa(a,b){this.b={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)Xa(this,arguments[d],arguments[d+1])}else if(a){a instanceof Wa?(c=a.V(),d=a.N()):(c=Ra(a),d=Qa(a));for(var e=0;e<c.length;e++)Xa(this,c[e],d[e])}}s=Wa.prototype;s.m=0;s.Yb=0;s.Z=q("m");s.N=function(){Ya(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};s.V=function(){Ya(this);return this.a.concat()};s.Ia=function(){return 0==this.m};
|
||||
s.clear=function(){this.b={};this.Yb=this.m=this.a.length=0};s.remove=function(a){return Za(this.b,a)?(delete this.b[a],this.m--,this.Yb++,this.a.length>2*this.m&&Ya(this),i):m};function Ya(a){if(a.m!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Za(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.m!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],Za(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function $a(a,b){return Za(a.b,b)?a.b[b]:h}
|
||||
function Xa(a,b,c){Za(a.b,b)||(a.m++,a.a.push(b),a.Yb++);a.b[b]=c}s.R=function(){return new Wa(this)};function Za(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var ab,bb,cb,db,eb,fb,gb;function hb(){return v.navigator?v.navigator.userAgent:k}function ib(){return v.navigator}db=cb=bb=ab=m;var jb;if(jb=hb()){var kb=ib();ab=0==jb.indexOf("Opera");bb=!ab&&-1!=jb.indexOf("MSIE");cb=!ab&&-1!=jb.indexOf("WebKit");db=!ab&&!cb&&"Gecko"==kb.product}var lb=ab,F=bb,mb=db,G=cb,nb,ob=ib();nb=ob&&ob.platform||"";eb=-1!=nb.indexOf("Mac");fb=-1!=nb.indexOf("Win");gb=-1!=nb.indexOf("Linux");var pb=!!ib()&&-1!=(ib().appVersion||"").indexOf("X11"),qb;
|
||||
a:{var rb="",sb;if(lb&&v.opera)var tb=v.opera.version,rb="function"==typeof tb?tb():tb;else if(mb?sb=/rv\:([^\);]+)(\)|;)/:F?sb=/MSIE\s+([^\);]+)(\)|;)/:G&&(sb=/WebKit\/(\S+)/),sb)var ub=sb.exec(hb()),rb=ub?ub[1]:"";if(F){var vb,wb=v.document;vb=wb?wb.documentMode:h;if(vb>parseFloat(rb)){qb=String(vb);break a}}qb=rb}var xb={};
|
||||
function yb(a){var b;if(!(b=xb[a])){b=0;for(var c=String(qb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",j=d[f]||"",l=RegExp("(\\d*)(\\D*)","g"),p=RegExp("(\\d*)(\\D*)","g");do{var n=l.exec(g)||["","",""],r=p.exec(j)||["","",""];if(0==n[0].length&&0==r[0].length)break;b=((0==n[1].length?0:parseInt(n[1],10))<(0==r[1].length?0:parseInt(r[1],10))?-1:(0==n[1].length?0:parseInt(n[1],
|
||||
10))>(0==r[1].length?0:parseInt(r[1],10))?1:0)||((0==n[2].length)<(0==r[2].length)?-1:(0==n[2].length)>(0==r[2].length)?1:0)||(n[2]<r[2]?-1:n[2]>r[2]?1:0)}while(0==b)}b=xb[a]=0<=b}return b}var zb={};function Ab(a){return zb[a]||(zb[a]=F&&!!document.documentMode&&document.documentMode>=a)};var Bb,Cb=!F||Ab(9);!mb&&!F||F&&Ab(9)||mb&&yb("1.9.1");F&&yb("9");function Db(a,b){var c;c=a.className;c=ea(c)&&c.match(/\S+/g)||[];for(var d=Fa(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=xa(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function Eb(a,b,c){return Math.min(Math.max(a,b),c)}function Fb(a,b){var c=a%b;return 0>c*b?c+b:c};function Gb(a,b){this.x=y(a)?a:0;this.y=y(b)?b:0}Gb.prototype.R=function(){return new Gb(this.x,this.y)};function Hb(a,b){this.width=a;this.height=b}s=Hb.prototype;s.R=function(){return new Hb(this.width,this.height)};s.Ia=function(){return!(this.width*this.height)};s.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};s.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};s.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Ib(a){return a?new Jb(Kb(a)):Bb||(Bb=new Jb)}function Lb(a,b){Pa(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Mb?a.setAttribute(Mb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Mb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
|
||||
function Nb(a){a=a.document.documentElement;return new Hb(a.clientWidth,a.clientHeight)}function Ob(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Cb&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',qa(g.name),'"');if(g.type){f.push(' type="',qa(g.type),'"');var j={};Ua(j,g);delete j.type;g=j}f.push(">");f=f.join("")}f=e.createElement(f);g&&(ea(g)?f.className=g:ca(g)?Db.apply(k,[f].concat(g)):Lb(f,g));2<d.length&&Pb(e,f,d,2);return f}
|
||||
function Pb(a,b,c,d){function e(c){c&&b.appendChild(ea(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(da(f)&&!(ha(f)&&0<f.nodeType)){var g=D,j;a:{if((j=f)&&"number"==typeof j.length){if(ha(j)){j="function"==typeof j.item||"string"==typeof j.item;break a}if(ga(j)){j="function"==typeof j.item;break a}}j=m}g(j?Da(f):f,e)}else e(f)}}function Qb(a){return document.createElement(a)}function Rb(a,b){Pb(Kb(a),a,arguments,1)}function Sb(a){for(var b;b=a.firstChild;)a.removeChild(b)}
|
||||
function Tb(a,b){a.insertBefore(b,a.childNodes[0]||k)}function Ub(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Kb(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Jb(a){this.a=a||v.document||document}Jb.prototype.createElement=function(a){return this.a.createElement(a)};Jb.prototype.createTextNode=function(a){return this.a.createTextNode(a)};
|
||||
function Vb(a){var b=a.a,a=!G?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new Gb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Jb.prototype.appendChild=function(a,b){a.appendChild(b)};Jb.prototype.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};var Wb=!F||Ab(9),Xb=!F||Ab(9),Yb=F&&!yb("9");!G||yb("528");mb&&yb("1.9b")||F&&yb("8")||lb&&yb("9.5")||G&&yb("528");mb&&!yb("8")||F&&yb("9");function Zb(){0!=$b&&(this.ne=Error().stack,ac[z(this)]=this)}var $b=0,ac={};Zb.prototype.xc=m;Zb.prototype.Cb=function(){if(!this.xc&&(this.xc=i,this.q(),0!=$b)){var a=z(this);delete ac[a]}};function bc(a,b){a.la||(a.la=[]);a.la.push(b)}Zb.prototype.q=function(){this.la&&cc.apply(k,this.la);if(this.Hc)for(;this.Hc.length;)this.Hc.shift()()};function dc(a){a&&"function"==typeof a.Cb&&a.Cb()}function cc(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];da(d)?cc.apply(k,d):dc(d)}};function ec(a,b){this.type=a;this.c=this.target=b}s=ec.prototype;s.Cb=function(){};s.oa=m;s.bb=m;s.sb=i;s.Fb=function(){this.oa=i};s.B=function(){this.bb=i;this.sb=m};function fc(a){a.Fb()};function gc(a){gc[" "](a);return a}gc[" "]=x;function hc(a,b){a&&ic(this,a,b)}B(hc,ec);var jc=[1,4,2];s=hc.prototype;s.target=k;s.hd=k;s.fd=0;s.gd=0;s.clientX=0;s.clientY=0;s.jd=0;s.kd=0;s.dd=0;s.ua=0;s.$a=0;s.ab=m;s.aa=m;s.ka=m;s.ed=m;s.pb=m;s.K=k;
|
||||
function ic(a,b,c){var d=a.type=b.type;ec.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(mb){var e;a:{try{gc(c.nodeName);e=i;break a}catch(f){}e=m}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.hd=c;a.fd=G||b.offsetX!==h?b.offsetX:b.layerX;a.gd=G||b.offsetY!==h?b.offsetY:b.layerY;a.clientX=b.clientX!==h?b.clientX:b.pageX;a.clientY=b.clientY!==h?b.clientY:b.pageY;a.jd=b.screenX||0;a.kd=b.screenY||0;a.dd=b.button;a.ua=b.keyCode||0;a.$a=b.charCode||
|
||||
("keypress"==d?b.keyCode:0);a.ab=b.ctrlKey;a.aa=b.altKey;a.ka=b.shiftKey;a.ed=b.metaKey;a.pb=eb?b.metaKey:b.ctrlKey;a.a=b.state;a.K=b;b.defaultPrevented&&a.B();delete a.oa}function kc(a){return(Wb?0==a.K.button:"click"==a.type?i:!!(a.K.button&jc[0]))&&!(G&&eb&&a.ab)}s.Fb=function(){hc.v.Fb.call(this);this.K.stopPropagation?this.K.stopPropagation():this.K.cancelBubble=i};
|
||||
s.B=function(){hc.v.B.call(this);var a=this.K;if(a.preventDefault)a.preventDefault();else if(a.returnValue=m,Yb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};s.bd=q("K");function lc(){}var mc=0;lc.prototype.key=0;lc.prototype.xa=m;lc.prototype.a=m;lc.prototype.handleEvent=function(a){return this.b?this.Ja.call(this.Nb||this.src,a):this.Ja.handleEvent.call(this.Ja,a)};var nc={},oc={},pc={},qc={};
|
||||
function H(a,b,c,d,e){if(b){if(ca(b)){for(var f=0;f<b.length;f++)H(a,b[f],c,d,e);return k}var d=!!d,g=oc;b in g||(g[b]={m:0,P:0});g=g[b];d in g||(g[d]={m:0,P:0},g.m++);var g=g[d],j=z(a),l;g.P++;if(g[j]){l=g[j];for(f=0;f<l.length;f++)if(g=l[f],g.Ja==c&&g.Nb==e){if(g.xa)break;return l[f].key}}else l=g[j]=[],g.m++;var p=rc,n=Xb?function(a){return p.call(n.src,n.key,a)}:function(a){a=p.call(n.src,n.key,a);if(!a)return a},f=n;f.src=a;var r=g=new lc;if(ga(c))r.b=i;else if(c&&c.handleEvent&&ga(c.handleEvent))r.b=
|
||||
m;else throw Error("Invalid listener argument");r.Ja=c;r.c=f;r.src=a;r.type=b;r.capture=!!d;r.Nb=e;r.a=m;r.key=++mc;r.xa=m;c=g.key;f.key=c;l.push(g);nc[c]=g;pc[j]||(pc[j]=[]);pc[j].push(g);a.addEventListener?(a==v||!a.dc)&&a.addEventListener(b,f,d):a.attachEvent(b in qc?qc[b]:qc[b]="on"+b,f);return c}throw Error("Invalid event type");}function sc(a,b,c,d,e){if(ca(b)){for(var f=0;f<b.length;f++)sc(a,b[f],c,d,e);return k}a=H(a,b,c,d,e);nc[a].a=i;return a}
|
||||
function tc(a,b,c,d,e){if(ca(b))for(var f=0;f<b.length;f++)tc(a,b[f],c,d,e);else{d=!!d;a:{f=oc;if(b in f&&(f=f[b],d in f&&(f=f[d],a=z(a),f[a]))){a=f[a];break a}a=k}if(a)for(f=0;f<a.length;f++)if(a[f].Ja==c&&a[f].capture==d&&a[f].Nb==e){I(a[f].key);break}}}
|
||||
function I(a){if(!nc[a])return m;var b=nc[a];if(b.xa)return m;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==v||!c.dc)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in qc?qc[d]:qc[d]="on"+d,e);c=z(c);pc[c]&&(e=pc[c],Ba(e,b),0==e.length&&delete pc[c]);b.xa=i;if(b=oc[d][f][c])b.qc=i,uc(d,f,c,b);delete nc[a];return i}
|
||||
function uc(a,b,c,d){if(!d.lb&&d.qc){for(var e=0,f=0;e<d.length;e++)d[e].xa?d[e].c.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.qc=m;0==f&&(delete oc[a][b][c],oc[a][b].m--,0==oc[a][b].m&&(delete oc[a][b],oc[a].m--),0==oc[a].m&&delete oc[a])}}function vc(a,b,c,d,e){var f=1,b=z(b);if(a[b]){a.P--;a=a[b];a.lb?a.lb++:a.lb=1;try{for(var g=a.length,j=0;j<g;j++){var l=a[j];l&&!l.xa&&(f&=wc(l,e)!==m)}}finally{a.lb--,uc(c,d,b,a)}}return Boolean(f)}function wc(a,b){a.a&&I(a.key);return a.handleEvent(b)}
|
||||
function J(a,b){var c=b.type||b,d=oc;if(!(c in d))return i;if(ea(b))b=new ec(b,a);else if(b instanceof ec)b.target=b.target||a;else{var e=b,b=new ec(c,a);Ua(b,e)}var e=1,f,d=d[c],c=i in d,g;if(c){f=[];for(g=a;g;g=g.Qb)f.push(g);g=d[i];g.P=g.m;for(var j=f.length-1;!b.oa&&0<=j&&g.P;j--)b.c=f[j],e&=vc(g,f[j],b.type,i,b)&&b.sb!=m}if(m in d)if(g=d[m],g.P=g.m,c)for(j=0;!b.oa&&j<f.length&&g.P;j++)b.c=f[j],e&=vc(g,f[j],b.type,m,b)&&b.sb!=m;else for(d=a;!b.oa&&d&&g.P;d=d.Qb)b.c=d,e&=vc(g,d,b.type,m,b)&&b.sb!=
|
||||
m;return Boolean(e)}
|
||||
function rc(a,b){if(!nc[a])return i;var c=nc[a],d=c.type,e=oc;if(!(d in e))return i;var e=e[d],f,g;if(!Xb){var j;if(!(j=b))a:{j=["window","event"];for(var l=v;f=j.shift();)if(l[f]!=k)l=l[f];else{j=k;break a}j=l}f=j;j=i in e;l=m in e;if(j){if(0>f.keyCode||f.returnValue!=h)return i;a:{var p=m;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(n){p=i}if(p||f.returnValue==h)f.returnValue=i}}p=new hc;ic(p,f,this);f=i;try{if(j){for(var r=[],u=p.c;u;u=u.parentNode)r.push(u);g=e[i];g.P=g.m;for(var t=r.length-
|
||||
1;!p.oa&&0<=t&&g.P;t--)p.c=r[t],f&=vc(g,r[t],d,i,p);if(l){g=e[m];g.P=g.m;for(t=0;!p.oa&&t<r.length&&g.P;t++)p.c=r[t],f&=vc(g,r[t],d,m,p)}}else f=wc(c,p)}finally{r&&(r.length=0)}return f}d=new hc(b,this);return f=wc(c,d)};function xc(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}xc.prototype.R=function(){return new xc(this.top,this.right,this.bottom,this.left)};xc.prototype.contains=function(a){return!this||!a?m:a instanceof xc?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};function yc(a,b){var c=Kb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function zc(a,b){return a.currentStyle?a.currentStyle[b]:k}function Ac(a,b){return yc(a,b)||zc(a,b)||a.style&&a.style[b]}function Bc(a,b){var c,d,e=mb&&(eb||pb)&&yb("1.9");b instanceof Gb?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Cc(c,e);a.style.top=Cc(d,e)}
|
||||
function Dc(a){var b=a.getBoundingClientRect();F&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
|
||||
function Ec(a){if(F&&!Ab(8))return a.offsetParent;for(var b=Kb(a),c=Ac(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Ac(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 k}function Fc(a,b){var c=Gc(a),d=Gc(b);return new Gb(c.x-d.x,c.y-d.y)}
|
||||
function Gc(a){var b=new Gb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Dc(a);b.x=c.left;b.y=c.top}else{c=Vb(Ib(a));var d,e=Kb(a),f=Ac(a,"position"),g=mb&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),j=new Gb(0,0),l;d=e?Kb(e):document;if(l=F)if(l=!Ab(9))Ib(d),l=m;l=l?d.body:d.documentElement;if(a!=l)if(a.getBoundingClientRect)d=Dc(a),e=Vb(Ib(e)),j.x=d.left+e.x,j.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),
|
||||
e=e.getBoxObjectFor(l),j.x=d.screenX-e.screenX,j.y=d.screenY-e.screenY;else{g=a;do{j.x+=g.offsetLeft;j.y+=g.offsetTop;g!=a&&(j.x+=g.clientLeft||0,j.y+=g.clientTop||0);if(G&&"fixed"==Ac(g,"position")){j.x+=e.body.scrollLeft;j.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(lb||G&&"absolute"==f)j.y-=e.body.offsetTop;for(g=a;(g=Ec(g))&&g!=e.body&&g!=l;)if(j.x-=g.scrollLeft,!lb||"TR"!=g.tagName)j.y-=g.scrollTop}b.x=j.x-c.x;b.y=j.y-c.y}if(mb&&!yb(12)){var p;F?p="-ms-transform":G?p="-webkit-transform":
|
||||
lb?p="-o-transform":mb&&(p="-moz-transform");var n;p&&(n=Ac(a,p));n||(n=Ac(a,"transform"));n?(a=n.match(Hc),a=!a?new Gb(0,0):new Gb(parseFloat(a[1]),parseFloat(a[2]))):a=new Gb(0,0);b=new Gb(b.x+a.x,b.y+a.y)}}else p=ga(a.bd),n=a,a.targetTouches?n=a.targetTouches[0]:p&&a.K.targetTouches&&(n=a.K.targetTouches[0]),b.x=n.clientX,b.y=n.clientY;return b}function Cc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Ic(a,b){a.style.display=b?"":"none"}
|
||||
function Jc(a,b){Ib(Kb(a));if(F&&!yb("8")){var c=a.style,d;if(F){d=Kc(a,zc(a,"paddingLeft"));var e=Kc(a,zc(a,"paddingRight")),f=Kc(a,zc(a,"paddingTop")),g=Kc(a,zc(a,"paddingBottom"));d=new xc(f,e,g,d)}else d=yc(a,"paddingLeft"),e=yc(a,"paddingRight"),f=yc(a,"paddingTop"),g=yc(a,"paddingBottom"),d=new xc(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(F)var e=Lc(a,"borderLeft"),f=Lc(a,"borderRight"),g=Lc(a,"borderTop"),j=Lc(a,"borderBottom"),e=new xc(g,f,j,e);else e=yc(a,"borderLeftWidth"),
|
||||
f=yc(a,"borderRightWidth"),g=yc(a,"borderTopWidth"),j=yc(a,"borderBottomWidth"),e=new xc(parseFloat(g),parseFloat(f),parseFloat(j),parseFloat(e));c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c=a.style,mb?c.MozBoxSizing="border-box":G?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(b.width,0)+"px",c.height=Math.max(b.height,0)+"px"}
|
||||
function Kc(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}var Mc={thin:2,medium:4,thick:6};function Lc(a,b){if("none"==zc(a,b+"Style"))return 0;var c=zc(a,b+"Width");return c in Mc?Mc[c]:Kc(a,c)}var Hc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Nc(a,b){this.x=a;this.y=b}B(Nc,Gb);Nc.prototype.R=function(){return new Nc(this.x,this.y)};Nc.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Nc.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function K(a,b){Nc.call(this,a,b)}B(K,Nc);function Oc(a,b){var c=Fb(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};var Pc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Qc(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=h)}return a.join("")}function Rc(a,b,c){if(ca(b))for(var d=0;d<b.length;d++)Rc(a,String(b[d]),c);else b!=k&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}
|
||||
function Sc(a,b,c){for(c=c||0;c<b.length;c+=2)Rc(b[c],b[c+1],a);return a}function Tc(a,b){for(var c in b)Rc(c,b[c],a);return a}function Uc(a,b){return Qc(2==arguments.length?Sc([a],arguments[1],0):Sc([a],arguments,1))};function Vc(a,b){var c;if(a instanceof Vc)this.ja=y(b)?b:a.ja,Wc(this,a.ya),c=a.xb,Xc(this),this.xb=c,c=a.Ba,Xc(this),this.Ba=c,Yc(this,a.qb),c=a.ob,Xc(this),this.ob=c,Zc(this,a.a.R()),c=a.Wa,Xc(this),this.Wa=c;else if(a&&(c=String(a).match(Pc))){this.ja=!!b;Wc(this,c[1]||"",i);var d=c[2]||"";Xc(this);this.xb=d?decodeURIComponent(d):"";d=c[3]||"";Xc(this);this.Ba=d?decodeURIComponent(d):"";Yc(this,c[4]);d=c[5]||"";Xc(this);this.ob=d?decodeURIComponent(d):"";Zc(this,c[6]||"",i);c=c[7]||"";Xc(this);
|
||||
this.Wa=c?decodeURIComponent(c):""}else this.ja=!!b,this.a=new $c(k,0,this.ja)}s=Vc.prototype;s.ya="";s.xb="";s.Ba="";s.qb=k;s.ob="";s.Wa="";s.Jd=m;s.ja=m;
|
||||
s.toString=function(){var a=[],b=this.ya;b&&a.push(ad(b,bd),":");if(b=this.Ba){a.push("//");var c=this.xb;c&&a.push(ad(c,bd),"@");a.push(encodeURIComponent(String(b)));b=this.qb;b!=k&&a.push(":",String(b))}if(b=this.ob)this.Ba&&"/"!=b.charAt(0)&&a.push("/"),a.push(ad(b,"/"==b.charAt(0)?cd:dd));(b=this.a.toString())&&a.push("?",b);(b=this.Wa)&&a.push("#",ad(b,ed));return a.join("")};s.R=function(){return new Vc(this)};
|
||||
function Wc(a,b,c){Xc(a);a.ya=c?b?decodeURIComponent(b):"":b;a.ya&&(a.ya=a.ya.replace(/:$/,""))}function Yc(a,b){Xc(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.qb=b}else a.qb=k}
|
||||
function Zc(a,b,c){Xc(a);if(b instanceof $c){a.a=b;b=a.a;if((a=a.ja)&&!b.b){fd(b);b.a=k;var d=b.C,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),gd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(da(d)||ea(d))D(d,c,b);else{var e;if("function"==typeof d.V)e=d.V();else if("function"!=typeof d.N)if(da(d)||ea(d)){e=[];for(var f=d.length,g=0;g<f;g++)e.push(g)}else e=Ra(d);else e=h;d=Va(d);f=d.length;for(g=0;g<f;g++)c.call(b,d[g],e&&e[g])}}b.b=a}else c||(b=ad(b,hd)),a.a=
|
||||
new $c(b,0,a.ja)}function id(a,b,c){Xc(a);ca(c)||(c=[String(c)]);gd(a.a,b,c)}function Xc(a){if(a.Jd)throw Error("Tried to modify a read-only Uri");}function ad(a,b){return ea(a)?encodeURI(a).replace(b,jd):k}function jd(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var bd=/[#\/\?@]/g,dd=/[\#\?:]/g,cd=/[\#\?]/g,hd=/[\#\?@]/g,ed=/#/g;function $c(a,b,c){this.a=a||k;this.b=!!c}
|
||||
function fd(a){if(!a.C&&(a.C=new Wa,a.m=0,a.a))for(var b=a.a.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=k,f=k;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=kd(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}s=$c.prototype;s.C=k;s.m=k;s.Z=function(){fd(this);return this.m};s.add=function(a,b){fd(this);this.a=k;var a=kd(this,a),c=$a(this.C,a);c||Xa(this.C,a,c=[]);c.push(b);this.m++;return this};
|
||||
s.remove=function(a){fd(this);a=kd(this,a);return Za(this.C.b,a)?(this.a=k,this.m-=$a(this.C,a).length,this.C.remove(a)):m};s.clear=function(){this.C=this.a=k;this.m=0};s.Ia=function(){fd(this);return 0==this.m};function ld(a,b){fd(a);b=kd(a,b);return Za(a.C.b,b)}s.V=function(){fd(this);for(var a=this.C.N(),b=this.C.V(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
|
||||
s.N=function(a){fd(this);var b=[];if(a)ld(this,a)&&(b=Ca(b,$a(this.C,kd(this,a))));else for(var a=this.C.N(),c=0;c<a.length;c++)b=Ca(b,a[c]);return b};function md(a,b){var c=b?a.N(b):[];return 0<c.length?String(c[0]):h}function gd(a,b,c){a.remove(b);0<c.length&&(a.a=k,Xa(a.C,kd(a,b),Da(c)),a.m+=c.length)}
|
||||
s.toString=function(){if(this.a)return this.a;if(!this.C)return"";for(var a=[],b=this.C.V(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.N(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("&")};s.R=function(){var a=new $c;a.a=this.a;this.C&&(a.C=this.C.R());return a};function kd(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};function qd(){Zb.call(this)}B(qd,Zb);s=qd.prototype;s.dc=i;s.Qb=k;s.addEventListener=function(a,b,c,d){H(this,a,b,c,d)};s.removeEventListener=function(a,b,c,d){tc(this,a,b,c,d)};s.q=function(){qd.v.q.call(this);var a,b=0,c=a==k;a=!!a;if(this==k)Pa(pc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)I(f.key),b++}});else{var d=z(this);if(pc[d])for(var d=pc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)I(f.key),b++}}this.Qb=k};function rd(a){return function(){return a}}var sd=rd(m),td=rd(i),ud=rd(k);function vd(a,b,c){Zb.call(this);this.d=a;this.c=c;this.a=b||window;this.b=ma(this.Eb,this)}B(vd,Zb);s=vd.prototype;s.O=k;s.Xb=m;s.start=function(){wd(this);this.Xb=m;var a=xd(this),b=yd(this);if(a&&!b&&this.a.mozRequestAnimationFrame)this.O=H(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(k),this.Xb=i;else{if(a&&b)a=a.call(this.a,this.b);else{var c=this.b,d;d=d||0;a=this.a.setTimeout(function(){return c.apply(this,Array.prototype.slice.call(arguments,0,d))},20)}this.O=a}};
|
||||
function wd(a){if(a.O!=k){var b=xd(a),c=yd(a);b&&!c&&a.a.mozRequestAnimationFrame?I(a.O):b&&c?c.call(a.a,a.O):a.a.clearTimeout(a.O)}a.O=k}s.Eb=function(){this.Xb&&this.O&&I(this.O);this.O=k;this.d.call(this.c,oa())};s.q=function(){wd(this);vd.v.q.call(this)};function xd(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}
|
||||
function yd(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function zd(a){Zb.call(this);this.sa=a||window;this.kb=H(this.sa,"resize",this.Bd,m,this);this.ra=Nb(this.sa||window);if(G&&fb||lb&&this.sa.self!=this.sa.top)this.zb=window.setInterval(ma(this.Zb,this),Ad)}B(zd,qd);var Ad=500;s=zd.prototype;s.kb=k;s.sa=k;s.ra=k;s.zb=k;s.q=function(){zd.v.q.call(this);this.kb&&(I(this.kb),this.kb=k);this.zb&&(window.clearInterval(this.zb),this.zb=k);this.ra=this.sa=k};s.Bd=function(){this.Zb()};
|
||||
s.Zb=function(){var a=Nb(this.sa||window);if(!(a==this.ra||(!a||!this.ra?0:a.width==this.ra.width&&a.height==this.ra.height)))this.ra=a,J(this,"resize")};function Bd(a,b,c,d,e){if(!F&&(!G||!yb("525")))return i;if(eb&&e)return Cd(a);if(e&&!d||!c&&(17==b||18==b)||F&&d&&b==a)return m;switch(a){case 13:return!(F&&Ab(9));case 27:return!G}return Cd(a)}function Cd(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||G&&0==a)return i;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return i;default:return m}}
|
||||
function Dd(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Ed(a,b){Zb.call(this);a&&(this.gb&&Fd(this),this.Da=a,this.fb=H(this.Da,"keypress",this,b),this.Ob=H(this.Da,"keydown",this.a,b,this),this.gb=H(this.Da,"keyup",this.b,b,this))}B(Ed,qd);s=Ed.prototype;s.Da=k;s.fb=k;s.Ob=k;s.gb=k;s.da=-1;s.ca=-1;s.Ab=m;
|
||||
var Gd={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Hd={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Id=F||G&&yb("525"),Jd=eb&&mb;
|
||||
Ed.prototype.a=function(a){if(G&&(17==this.da&&!a.ab||18==this.da&&!a.aa))this.ca=this.da=-1;Id&&!Bd(a.ua,this.da,a.ka,a.ab,a.aa)?this.handleEvent(a):(this.ca=mb?Dd(a.ua):a.ua,Jd&&(this.Ab=a.aa))};Ed.prototype.b=function(a){this.ca=this.da=-1;this.Ab=a.aa};
|
||||
Ed.prototype.handleEvent=function(a){var b=a.K,c,d,e=b.altKey;F&&"keypress"==a.type?(c=this.ca,d=13!=c&&27!=c?b.keyCode:0):G&&"keypress"==a.type?(c=this.ca,d=0<=b.charCode&&63232>b.charCode&&Cd(c)?b.charCode:0):lb?(c=this.ca,d=Cd(c)?b.keyCode:0):(c=b.keyCode||this.ca,d=b.charCode||0,Jd&&(e=this.Ab),eb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Gd?f=Gd[c]:25==c&&a.ka&&(f=9):g&&g in Hd&&(f=Hd[g]);a=f==this.da;this.da=f;b=new Kd(f,d,a,b);b.aa=e;J(this,b)};
|
||||
function Fd(a){a.fb&&(I(a.fb),I(a.Ob),I(a.gb),a.fb=k,a.Ob=k,a.gb=k);a.Da=k;a.da=-1;a.ca=-1}Ed.prototype.q=function(){Ed.v.q.call(this);Fd(this)};function Kd(a,b,c,d){d&&ic(this,d,h);this.type="key";this.ua=a;this.$a=b;this.b=c}B(Kd,hc);function Ld(a){Zb.call(this);this.a=a;a=ha(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&"rtl"==Ac(a,"direction");this.b=H(this.a,mb?"DOMMouseScroll":"mousewheel",this)}B(Ld,qd);
|
||||
Ld.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.K;if("mousewheel"==a.type){c=1;if(F||G&&(fb||yb("532.0")))c=40;d=Md(-a.wheelDelta,c);y(a.wheelDeltaX)?(b=Md(-a.wheelDeltaX,c),c=Md(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),y(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=Eb(b,-this.c,this.c));"number"==typeof this.d&&(c=Eb(c,-this.d,this.d));this.e&&(b=-b);b=new Nd(d,a,b,c);J(this,b)};function Md(a,b){return G&&(eb||gb)&&0!=a%b?a:a/b}
|
||||
Ld.prototype.q=function(){Ld.v.q.call(this);I(this.b);delete this.b};function Nd(a,b,c,d){b&&ic(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}B(Nd,hc);var Od=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function L(a){Zb.call(this);this.o={};y(a)&&this.mb(a)}B(L,qd);var Pd={},Qd={},Rd={};function Sd(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Td(a){return a.ol_accessors_||(a.ol_accessors_={})}function Ud(a){return Pd.hasOwnProperty(a)?Pd[a]:Pd[a]=a.toLowerCase()+"_changed"}function Vd(a){return a.ol_bindings_||(a.ol_bindings_={})}s=L.prototype;
|
||||
s.Rc=function(a,b,c,d){c=c||a;this.Wb(a);var e=Ud(c);Vd(this)[a]=H(b,e,function(){Wd(this,a)},h,this);Td(this)[a]={target:b,key:c};d||Wd(this,a)};s.Uc=x;s.r=function(a){var b,c=Td(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Qd.hasOwnProperty(b)?Qd[b]:Qd[b]="get"+Sd(b),b=a[c]?a[c]():a.r(b)):this.o.hasOwnProperty(a)&&(b=this.o[a]);return b};
|
||||
s.V=function(){for(var a=Ra(Td(this)).concat(Ra(this.o)),b={},c=0,d=0;d<a.length;){var e=a[d++],f=ha(e)?"o"+z(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=i,a[c++]=e)}a.length=c;return a};s.rc=function(a){var b=Td(this);b.hasOwnProperty(a)?(a=b[a],a.target.rc(a.key)):Wd(this,a)};function Wd(a,b){var c=Ud(b);J(a,c);J(a,"changed")}
|
||||
s.p=function(a,b){var c=Td(this);if(c.hasOwnProperty(a)){var d=c[a],c=d.target,d=d.key,e=Rd.hasOwnProperty(d)?Rd[d]:Rd[d]="set"+Sd(d);if(c[e])c[e](b);else c.p(d,b)}else this.o[a]=b,Wd(this,a)};s.Bc=function(a){var b,c,d;for(b in a)if(c=a[b],d=Rd.hasOwnProperty(b)?Rd[b]:Rd[b]="set"+Sd(b),this[d])this[d](c);else this.p(b,c)};s.mb=L.prototype.Bc;s.Wb=function(a){var b=Vd(this),c=b[a];c&&(delete b[a],I(c),b=this.r(a),delete Td(this)[a],this.o[a]=b)};s.Wd=function(){for(var a in Vd(this))this.Wb(a)};function Xd(a,b,c,d,e){ec.call(this,a,e);this.a=b;this.index=c;this.b=d}B(Xd,ec);function M(a){L.call(this);this.a=a||[];Yd(this)}B(M,L);s=M.prototype;s.clear=function(){for(;0<this.Za();)this.sc()};s.forEach=function(a,b){D(this.a,a,b)};s.$c=q("a");s.ad=function(a){return this.a[a]};s.Za=function(){return this.r("length")};s.eb=function(a,b){Ea(this.a,a,0,b);Yd(this);J(this,new Xd("add",b,h,h,this));J(this,new Xd("insert_at",b,a,h,this))};s.sc=function(){return this.yc(this.Za()-1)};
|
||||
s.push=function(a){var b=this.a.length;this.eb(b,a);return b};s.yc=function(a){var b=this.a[a];wa.splice.call(this.a,a,1);Yd(this);J(this,new Xd("remove",b,h,h,this));J(this,new Xd("remove_at",h,a,b,this));return b};s.Od=function(a,b){var c=this.Za();if(a<c)c=this.a[a],this.a[a]=b,J(this,new Xd("set_at",b,a,c,this)),J(this,new Xd("remove",c,h,h,this)),J(this,new Xd("add",b,h,h,this));else{for(;c<a;++c)this.eb(c,h);this.eb(a,b)}};function Yd(a){a.p("length",a.a.length)};function Zd(){this.c=Eb(255,0,255);this.b=Eb(255,0,255);this.a=Eb(255,0,255);this.d=Eb(1,0,1)};function $d(a,b){Hb.call(this,a,b)}B($d,Hb);function ae(a,b,c,d){this.h=a;this.j=b;this.k=c;this.i=d}ae.prototype.a=function(){return this.i-this.j};ae.prototype.b=function(){return this.k-this.h};function be(a,b){return a.h<=b.k&&a.k>=b.h&&a.j<=b.i&&a.i>=b.j}ae.prototype.toString=function(){return"("+[this.h,this.j,this.k,this.i].join(", ")+")"};function N(a,b,c,d){ae.call(this,a,b,c,d)}B(N,ae);function ce(a){var b=arguments[0],b=new N(b.x,b.y,b.x,b.y),c;for(c=1;c<arguments.length;++c){var d=arguments[c];b.h=Math.min(b.h,d.x);b.j=Math.min(b.j,d.y);b.k=Math.max(b.k,d.x);b.i=Math.max(b.i,d.y)}return b}function de(a){return new K(a.h,a.i)}N.prototype.transform=function(a){var b=a(new K(this.h,this.j)),a=a(new K(this.k,this.i));return new N(Math.min(b.x,a.x),Math.min(b.y,a.y),Math.max(b.x,a.x),Math.max(b.y,a.y))};function ee(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}ee.prototype.a=4;ee.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};ee.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(ee.BYTES_PER_ELEMENT=4,ee.prototype.BYTES_PER_ELEMENT=ee.prototype.a,ee.prototype.set=ee.prototype.b,ee.prototype.toString=ee.prototype.toString,A("Float32Array",ee));function fe(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}fe.prototype.a=8;fe.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};fe.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(fe.BYTES_PER_ELEMENT=8,fe.prototype.BYTES_PER_ELEMENT=fe.prototype.a,fe.prototype.set=fe.prototype.b,fe.prototype.toString=fe.prototype.toString,A("Float64Array",fe));function ge(){var a=Array(16);he(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function ie(){var a=Array(16);he(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function he(a,b,c,d,e,f,g,j,l,p,n,r,u,t,w,E,C){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=j;a[7]=l;a[8]=p;a[9]=n;a[10]=r;a[11]=u;a[12]=t;a[13]=w;a[14]=E;a[15]=C}
|
||||
function je(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];a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15]}function ke(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1}
|
||||
function le(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],j=a[4],l=a[5],p=a[6],n=a[7],r=a[8],u=a[9],t=a[10],w=a[11],E=a[12],C=a[13],S=a[14],a=a[15],V=b[0],O=b[1],X=b[2],fa=b[3],Ia=b[4],Ja=b[5],Ka=b[6],La=b[7],Ma=b[8],Na=b[9],Oa=b[10],T=b[11],nd=b[12],od=b[13],pd=b[14],b=b[15];c[0]=d*V+j*O+r*X+E*fa;c[1]=e*V+l*O+u*X+C*fa;c[2]=f*V+p*O+t*X+S*fa;c[3]=g*V+n*O+w*X+a*fa;c[4]=d*Ia+j*Ja+r*Ka+E*La;c[5]=e*Ia+l*Ja+u*Ka+C*La;c[6]=f*Ia+p*Ja+t*Ka+S*La;c[7]=g*Ia+n*Ja+w*Ka+a*La;c[8]=d*Ma+j*Na+r*Oa+E*T;c[9]=e*Ma+l*Na+u*Oa+
|
||||
C*T;c[10]=f*Ma+p*Na+t*Oa+S*T;c[11]=g*Ma+n*Na+w*Oa+a*T;c[12]=d*nd+j*od+r*pd+E*b;c[13]=e*nd+l*od+u*pd+C*b;c[14]=f*nd+p*od+t*pd+S*b;c[15]=g*nd+n*od+w*pd+a*b}function me(a,b){return a.length==b.length&&a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2]&&a[3]==b[3]&&a[4]==b[4]&&a[5]==b[5]&&a[6]==b[6]&&a[7]==b[7]&&a[8]==b[8]&&a[9]==b[9]&&a[10]==b[10]&&a[11]==b[11]&&a[12]==b[12]&&a[13]==b[13]&&a[14]==b[14]&&a[15]==b[15]}
|
||||
function ne(a,b,c){var d=b[0],e=b[1],b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8]+a[12];c[1]=d*a[1]+e*a[5]+b*a[9]+a[13];c[2]=d*a[2]+e*a[6]+b*a[10]+a[14]}function oe(a,b,c){var d=a[1]*b+a[5]*c+0*a[9]+a[13],e=a[2]*b+a[6]*c+0*a[10]+a[14],f=a[3]*b+a[7]*c+0*a[11]+a[15];a[12]=a[0]*b+a[4]*c+0*a[8]+a[12];a[13]=d;a[14]=e;a[15]=f}function pe(a,b,c){he(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,1*a[8],1*a[9],1*a[10],1*a[11],a[12],a[13],a[14],a[15])}
|
||||
function qe(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],j=a[5],l=a[6],p=a[7],n=Math.cos(b),r=Math.sin(b);a[0]=c*n+g*r;a[1]=d*n+j*r;a[2]=e*n+l*r;a[3]=f*n+p*r;a[4]=c*-r+g*n;a[5]=d*-r+j*n;a[6]=e*-r+l*n;a[7]=f*-r+p*n}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function re(a,b,c){Nc.call(this,b,c);this.n=a}B(re,K);re.prototype.hash=function(){return(this.x<<this.n)+this.y};function se(a){var b=Array(a.n),c=1<<a.n-1,d,e;for(d=0;d<a.n;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}re.prototype.toString=function(){return[this.n,this.x,this.y].join("/")};function te(a,b,c,d){this.h=a;this.j=b;this.k=c;this.i=d}B(te,ae);te.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.k&&this.j<=a.y&&a.y<=this.i};te.prototype.a=function(){return this.i-this.j+1};te.prototype.b=function(){return this.k-this.h+1};function ue(a,b){this.b=a;this.a=b||k};function ve(a){Zb.call(this);this.X=a;this.b=0}B(ve,qd);ve.prototype.ma=function(){return z(this).toString()};ve.prototype.L=q("b");function we(a){this.d=a;this.e=8;this.c=0;this.a=[];this.b={}}function xe(a,b,c,d){if(0==b.L()){var e=b.ma();if(!(e in a.b)){var f=a.d(b,c,d);Infinity!=f&&(a.a.push([f,b,c,d]),a.b[e]=i,ye(a,0,a.a.length-1))}}}we.prototype.f=function(){--this.c};function ze(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b<d>>1;){var g=2*b+1,j=2*b+2,g=j<d&&c[j][0]<c[g][0]?j:g;c[b]=c[g];b=g}c[b]=e;ye(a,f,b)}function ye(a,b,c){for(var a=a.a,d=a[c];c>b;){var e=c-1>>1;if(a[e][0]>d[0])a[c]=a[e],c=e;else break}a[c]=d};var Ae="object"==typeof Proj4js,Be={fe:"degrees",oe:"m"};function P(a,b,c,d){this.a=a;this.g=b;this.f=c;this.b=y(d)?d:"enu"}P.prototype.d=q("a");P.prototype.G=q("f");P.prototype.e=q("g");P.prototype.c=q("b");function Ce(a,b){P.call(this,a,b.units,k,b.axis);this.wc=b}B(Ce,P);var De={},Ee={},Fe={};function Ge(a){D(a,function(a){He(a)});D(a,function(b){D(a,function(a){b!==a&&Ie(b,a,Je)})})}function He(a){Ee[a.a]=a;Ie(a,a,Je)}function Ke(a){return a!=k?ea(a)?Le(a):a:Le("EPSG:3857")}
|
||||
function Ie(a,b,c){a=a.a;b=b.a;a in Fe||(Fe[a]={});Fe[a][b]=c}function Le(a){var b=Ee[a];Ae&&!y(b)&&(b=Me(a));y(b)||(b=k);return b}function Me(a){var b=De[a];y(b)||(b=new Proj4js.Proj(a),b=new Ce(a,b),De[a]=b);return b}
|
||||
function Ne(a,b){var c=a.a,d=b.a,e;c in Fe&&d in Fe[c]&&(e=Fe[c][d]);if(Ae&&!y(e)){var f;f=(a instanceof Ce?a:Me(a.a)).wc;var g;g=(b instanceof Ce?b:Me(b.a)).wc;e=function(a){a=new Proj4js.Point(a.x,a.y);a=Proj4js.transform(f,g,a);return new K(a.x,a.y)};Ie(a,b,e)}y(e)||(e=Oe);return e}function Pe(a,b){var c=Le(a),d=Le(b);return Ne(c,d)}function Oe(a){return a}function Je(a){return new K(a.x,a.y)};function Qe(a){Zb.call(this);this.l=y(a.projection)?a.projection:k;this.o=y(a.extent)?a.extent:a.projection.G();this.e=y(a.attributions)?a.attributions:k}B(Qe,qd);Qe.prototype.ha=q("e");Qe.prototype.G=q("o");Qe.prototype.c=td;function Q(a){L.call(this);this.g=a.source;this.l(y(a.brightness)?a.brightness:0);this.s(y(a.contrast)?a.contrast:1);this.u(y(a.hue)?a.hue:0);this.D(y(a.opacity)?a.opacity:1);this.F(y(a.saturation)?a.saturation:1);this.H(y(a.visible)?a.visible:i);this.g.c()||sc(this.g,"load",this.J,m,this)}B(Q,L);Q.prototype.b=function(){return this.r("brightness")};Q.prototype.getBrightness=Q.prototype.b;Q.prototype.c=function(){return this.r("contrast")};Q.prototype.getContrast=Q.prototype.c;Q.prototype.d=function(){return this.r("hue")};
|
||||
Q.prototype.getHue=Q.prototype.d;Q.prototype.e=function(){return this.r("opacity")};Q.prototype.getOpacity=Q.prototype.e;Q.prototype.f=function(){return this.r("saturation")};Q.prototype.getSaturation=Q.prototype.f;Q.prototype.W=q("g");Q.prototype.a=function(){return this.r("visible")};Q.prototype.getVisible=Q.prototype.a;Q.prototype.J=function(){J(this,"load")};Q.prototype.l=function(a){a=Eb(a,-1,1);a!=this.b()&&this.p("brightness",a)};Q.prototype.setBrightness=Q.prototype.l;
|
||||
Q.prototype.s=function(a){a=Math.max(0,a);a!=this.c()&&this.p("contrast",a)};Q.prototype.setContrast=Q.prototype.s;Q.prototype.u=function(a){a!=this.d()&&this.p("hue",a)};Q.prototype.setHue=Q.prototype.u;Q.prototype.D=function(a){a=Eb(a,0,1);a!=this.e()&&this.p("opacity",a)};Q.prototype.setOpacity=Q.prototype.D;Q.prototype.F=function(a){a=Math.max(0,a);a!=this.f()&&this.p("saturation",a)};Q.prototype.setSaturation=Q.prototype.F;Q.prototype.H=function(a){a=!!a;a!=this.a()&&this.p("visible",a)};
|
||||
Q.prototype.setVisible=Q.prototype.H;function Re(a){return 3*a*a-2*a*a*a};function Se(){L.call(this);this.e=[0,0]}B(Se,L);function Te(a,b){a.e[1]+=b};var Ue={mc:function(a){return a},Gc:function(a){return 0.5>a?Re(2*a):1-Re(2*(a-0.5))},Xc:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Bb:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a}};var Ve={Bb:function(a){var b=a.resolution,c=y(a.start)?a.start:oa(),d=y(a.duration)?a.duration:1E3,e=y(a.easing)?a.easing:Ue.Gc;return function(a,g){if(g.time<c)return g.Q=i,g.A[0]+=1,i;if(g.time<c+d){var j=e((g.time-c)/d),l=b-g.t.resolution;g.Q=i;g.t.resolution+=j*l;g.A[0]+=1;return i}return m}},Ka:function(a){var b=a.source,c=y(a.start)?a.start:oa(),d=b.x,e=b.y,f=y(a.duration)?a.duration:1E3,g=y(a.easing)?a.easing:Re;return function(a,b){if(b.time<c)return b.Q=i,b.A[0]+=1,i;if(b.time<c+f){var p=
|
||||
1-g((b.time-c)/f),n=d-b.t.center.x,r=e-b.t.center.y;b.Q=i;b.t.center.x+=p*n;b.t.center.y+=p*r;b.A[0]+=1;return i}return m}},rotate:function(a){var b=a.rotation,c=y(a.start)?a.start:oa(),d=y(a.duration)?a.duration:1E3,e=y(a.easing)?a.easing:Re;return function(a,g){if(g.time<c)return g.Q=i,g.A[0]+=1,i;if(g.time<c+d){var j=1-e((g.time-c)/d),l=b-g.t.rotation;g.Q=i;g.t.rotation+=j*l;g.A[0]+=1;return i}return m}},zoom:function(a){var b=a.resolution,c=y(a.start)?a.start:oa(),d=y(a.duration)?a.duration:1E3,
|
||||
e=y(a.easing)?a.easing:Ue.mc;return function(a,g){if(g.time<c)return g.Q=i,g.A[0]+=1,i;if(g.time<c+d){var j=1-e((g.time-c)/d),l=b-g.t.resolution;g.Q=i;g.t.resolution+=j*l;g.A[0]+=1;return i}return m}}};function We(a,b,c){this.e=a;this.d=b;this.f=c;this.a=[];this.b=this.c=0}function Xe(a){for(var b=oa(),c=a.a.length-1,d=c-1;0<=d&&a.a[d].Oa>b-a.f;)d--;if(0<=d){var b=a.a[d],c=a.a[c],d=c.x-b.x,e=c.y-b.y;a.c=Math.atan2(e,d);a.b=Math.sqrt(d*d+e*e)/(c.Oa-b.Oa);return a.b>a.d}return m}We.prototype.Ka=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return Ve.Ka({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function Ye(a,b,c){ec.call(this,a);this.map=b;this.bb=m;this.d=y(c)?c:k}B(Ye,ec);Ye.prototype.B=function(){Ye.v.B.call(this);this.bb=i};function Ze(a,b){Gb.call(this,a,b)}B(Ze,Gb);function $e(a,b,c,d){Ye.call(this,a,b,d);this.a=c;this.f=this.e=k}B($e,Ye);$e.prototype.b=function(){this.e===k&&(this.e=af(this.map,bf(this)));return this.e};function bf(a){if(a.f===k){var b=Fc(a.a,a.map.b);a.f=new Ze(b.x,b.y)}return a.f}
|
||||
function cf(a){this.a=a;this.e=k;this.b=m;this.c=this.g=this.d=this.l=this.o=this.f=k;a=this.a.b;this.o=H(a,["click","dblclick"],this.ac,m,this);this.l=H(a,"mousedown",this.vd,m,this);this.g=[H(a,["touchstart","MSPointerDown"],this.Fd,m,this),H(a,["touchmove","MSPointerMove"],this.Ed,m,this),H(a,["touchend","MSPointerUp"],this.Dd,m,this)]}B(cf,qd);s=cf.prototype;
|
||||
s.ac=function(a){if(!this.b){var b=a.type;0==this.f||"dblclick"==b?(a=new $e(df,this.a,a),J(this,a)):"click"==b&&(a=new $e(ef,this.a,a),J(this,a))}};s.xd=function(a){this.e&&(this.c=k,D(this.d,I),this.e=this.d=k,this.b&&J(this,new $e(ff,this.a,a)))};s.vd=function(a){J(this,new $e(gf,this.a,a));this.e||(this.c=a,this.e={clientX:a.clientX,clientY:a.clientY},this.b=m,this.d=[H(document,"mousemove",this.wd,m,this),H(document,"mouseup",this.xd,m,this)],a.B())};
|
||||
s.wd=function(a){var b;this.b||(this.b=i,b=new $e(hf,this.a,this.c),J(this,b));this.e={clientX:a.clientX,clientY:a.clientY};b=new $e(jf,this.a,a);J(this,b)};s.Fd=function(a){a.B();this.c=a;this.b=m;J(this,new $e(kf,this.a,a))};s.Ed=function(a){this.b=i;J(this,new $e(lf,this.a,a))};s.Dd=function(a){J(this,new $e(mf,this.a,a));this.b||(a=oa(),this.f=!this.f||250<a-this.f?a:0,this.ac(this.c));this.c=k};
|
||||
s.q=function(){I(this.o);I(this.l);this.d!==k&&(D(this.d,I),this.d=k);this.g!==k&&(D(this.g,I),this.g=k);cf.v.q.call(this)};var ef="click",df="dblclick",gf="down",hf="dragstart",jf="drag",ff="dragend",kf="touchstart",lf="touchmove",mf="touchend",nf={ce:ef,ee:df,he:gf,ke:hf,ie:jf,je:ff,Me:kf,Le:lf,Ke:mf};function of(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d<c;++d){if(a[d]==b)return d;if(a[d]<b)return a[d-1]-b<b-a[d]?d-1:d}}return c-1};function pf(a,b){if(y(a))return a+b};function qf(a){this.resolution=a;this.rotation=pf};function R(a){Se.call(this);var a=a||{},b={};b.center=y(a.center)?a.center:k;b.projection=Ke(a.projection);if(y(a.resolution))b.resolution=a.resolution;else if(y(a.zoom)){var c=b.projection.G(),c=Math.max(c.k-c.h,c.i-c.j);b.resolution=c/(256*Math.pow(2,a.zoom))}b.rotation=a.rotation;this.mb(b);if(y(a.resolutions))var d=a.resolutions,a=function(a,b){if(y(a)){var c=of(d,a),c=Eb(c+b,0,d.length-1);return d[c]}};else{y(a.maxResolution)&&y(a.numZoomLevels)&&y(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels,
|
||||
a=a.zoomFactor):(a=Ke(a.projection).G(),b=Math.max(a.k-a.h,a.i-a.j)/256,c=116,a=Math.exp(Math.log(2)/4));var e=a,f=b,g=c-1,a=function(a,b){if(y(a)){var c=Math.floor(Math.log(f/a)/Math.log(e)+0.5),c=Math.max(c+b,0);y(g)&&(c=Math.min(c,g));return f/Math.pow(e,c)}}}this.b=new qf(a)}B(R,Se);R.prototype.T=function(){return this.r("center")};R.prototype.getCenter=R.prototype.T;
|
||||
R.prototype.G=function(a){var b=this.T(),c=this.U();return new N(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};R.prototype.tc=function(){return this.r("projection")};R.prototype.getProjection=R.prototype.tc;R.prototype.U=function(){return this.r("resolution")};R.prototype.getResolution=R.prototype.U;R.prototype.ia=function(){return this.r("rotation")||0};R.prototype.getRotation=R.prototype.ia;R.prototype.Ha=function(){return this.T()!=k&&y(this.U())};
|
||||
R.prototype.a=function(a){this.p("center",a)};R.prototype.setCenter=R.prototype.a;R.prototype.f=function(a){this.p("projection",a)};R.prototype.setProjection=R.prototype.f;R.prototype.c=function(a){this.p("resolution",a)};R.prototype.setResolution=R.prototype.c;R.prototype.d=function(a){this.p("rotation",a)};R.prototype.setRotation=R.prototype.d;
|
||||
R.prototype.rotate=function(a,b,c){b=this.b.rotation(b,0);if(c!=k){var d=this.T(),e=new K(d.x-c.x,d.y-c.y);e.rotate(b-this.ia());e.x+=c.x;e.y+=c.y;rf(a,function(){this.a(e);this.d(b)},this)}else this.d(b)};function sf(a,b,c,d){if(c!=k&&d!=k){var e=a.T(),f=a.U(),g=new K(d.x-c*(d.x-e.x)/f,d.y-c*(d.y-e.y)/f);rf(b,function(){this.a(g);this.c(c)},a)}else a.c(c)}
|
||||
R.prototype.zoom=function(a,b,c,d){var e=this.U();y(e)&&y(d)&&(tf(a),a.l(Ve.zoom({resolution:e,duration:d})));b=this.b.resolution(e,b);sf(this,a,b,c)};function uf(a){Zb.call(this);this.element=y(a.element)?a.element:k;this.o=a.target;this.b=k;y(a.map)&&this.a(a.map)}B(uf,Zb);uf.prototype.q=function(){Ub(this.element);uf.v.q.call(this)};uf.prototype.a=function(a){this.b===k||Ub(this.element);this.b=a;this.b!==k&&(y(this.o)?this.o:a.D).appendChild(this.element)};function vf(a){this.g=Qb("UL");var b=Ob("DIV",{"class":"ol-attribution ol-unselectable"},this.g);uf.call(this,{element:b,map:a.map,target:a.target});this.f=i;this.c={};this.d={};this.e=k}B(vf,uf);
|
||||
vf.prototype.l=function(a){var b=a.d;if(b===k)this.f&&(Ic(this.element,m),this.f=m);else{var c={},d={},a=this.b.u();y(a)&&a.forEach(function(a){a=a.W();d[z(a).toString()]=a;a=a.ha();if(a!==k){var b,e;for(e=0;e<a.length;++e)b=a[e],w=z(b).toString(),c[w]=i}});var e=b.attributions,a={},f;for(f in e)a[f]=e[f];f=b.Pa;var b={},g,j,l,p,n;for(n in f)if(e=d[n],p=e.ha(),p!==k){g=f[n];for(e=0;e<p.length;++e)if(j=p[e],l=z(j).toString(),!(l in b)){var r;a:if(j.a===k)r=i;else{var u=r=h,t=h;for(t in g)if(t in j.a){u=
|
||||
g[t];for(r=0;r<j.a[t].length;++r)if(be(j.a[t][r],u)){r=i;break a}}r=m}r&&(b[l]=j)}}Ua(a,b);n=ya(Ra(a),Number);Ga(n);var w;for(f=0;f<n.length;++f)w=n[f].toString(),w in this.c?this.d[w]||(Ic(this.c[w],i),this.d[w]=i):(b=Qb("LI"),b.innerHTML=a[w].b,this.g.appendChild(b),this.c[w]=b,this.d[w]=i),delete c[w];for(w in c)Ub(this.c[w]),delete this.c[w],delete this.d[w];a=0!=n.length;this.f!=a&&(Ic(this.element,a),this.f=a)}};
|
||||
vf.prototype.a=function(a){this.e!==k&&(D(this.e,I),this.e=k);vf.v.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.l,m,this)])};function wf(a){var b=Od?"touchend":"click",c=Ob("A",{href:"#zoomIn","class":"ol-zoom-in"});H(c,b,this.d,m,this);var d=Ob("A",{href:"#zoomOut","class":"ol-zoom-out"});H(d,b,this.e,m,this);b=Ob("DIV","ol-zoom ol-unselectable",c,d);uf.call(this,{element:b,map:a.map,target:a.target});this.c=y(a.delta)?a.delta:1}B(wf,uf);wf.prototype.d=function(a){a.B();a=this.b;tf(a);a.a().zoom(a,this.c,h,250)};wf.prototype.e=function(a){a.B();a=this.b;tf(a);a.a().zoom(a,-this.c,h,250)};function xf(){};function yf(a){this.a=a}B(yf,xf);yf.prototype.na=function(a){var b=a.a;if(a.type==df&&(Od||kc(a.a))){var c=a.map,d=a.b(),e=a.a.ka?-this.a:this.a;c.a().zoom(c,e,d);a.B();b.B()}};function zf(a){return a.aa&&!a.pb&&a.ka}function Af(a){return!a.aa&&!a.pb&&!a.ka}function Bf(a){return!a.aa&&!a.pb&&a.ka};function Cf(){this.e=m;this.s=this.la=this.o=this.g=0;this.Na=this.f=k}B(Cf,xf);s=Cf.prototype;s.Gb=x;s.Hb=x;s.cb=sd;s.kc=x;s.na=function(a){var b=a.map;if(b.Ha()){var b=b.a(),c=a.a;a.type==gf&&this.kc(a);this.e?a.type==jf?(this.d=c.clientX-this.g,this.b=c.clientY-this.o,this.Gb(a)):a.type==ff&&(this.d=c.clientX-this.g,this.b=c.clientY-this.o,this.Hb(a),this.e=m):a.type==hf&&(this.g=c.clientX,this.o=c.clientY,this.b=this.d=0,this.f=b.T(),this.Na=a.b(),this.cb(a)&&(this.e=i,a.B()))}};function Df(a,b){Cf.call(this);this.l=a;this.a=b;this.c=k}B(Df,Cf);Df.prototype.Gb=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,Oa:oa()});var a=a.map,b=a.a(),c=b.U(),d=b.ia(),c=new K(-c*this.d,c*this.b);c.rotate(d);d=new K(this.f.x+c.x,this.f.y+c.y);tf(a);b.a(d)};
|
||||
Df.prototype.Hb=function(a){var b=a.map,a=b.a();Te(a,-1);if(this.a&&Xe(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.T();this.c=this.a.Ka(e);b.l(this.c);e=Ef(b,e);b=af(b,new Ze(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}};Df.prototype.cb=function(a){var b=a.a;if(this.l(b)){if(this.a){var c=this.a;c.a.length=0;c.c=0;c.b=0;this.a.a.push({x:b.clientX,y:b.clientY,Oa:oa()})}a=a.map;tf(a);Te(a.a(),1);return i}return m};
|
||||
Df.prototype.kc=function(a){var b=a.map,c=b.a();this.c!==k&&Ba(b.g,this.c)&&(tf(b),c.a(a.d.t.center),this.c=k)};function Ff(a){Cf.call(this);this.c=a}B(Ff,Cf);Ff.prototype.Gb=function(a){var b=a.map,c=b.e(),a=bf(a),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(y(this.a)){var a=c-this.a,d=b.a();tf(b);d.rotate(b,d.ia()-a)}this.a=c};Ff.prototype.cb=function(a){var b=a.a;return kc(b)&&this.c(b)?(a=a.map,a.a(),tf(a),this.a=h,i):m};function Gf(a){var b=Ob("DIV","ol-dragbox");this.c=k;this.e=a.Na;this.d=k;uf.call(this,{element:b,map:a.map})}B(Gf,uf);Gf.prototype.a=function(a){this.d!==k&&(I(this.d),this.d=k);a!==k&&(this.c=Ef(a,this.e),Bc(this.element,this.c),Jc(this.element,new $d(0,0)),this.d=H(a,jf,this.f,m,this));Gf.v.a.call(this,a)};Gf.prototype.f=function(a){var b=this.b,a=a.b(),b=Ef(b,a);Bc(this.element,new Ze(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Jc(this.element,new $d(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Hf(a){Cf.call(this);this.c=a;this.a=k}B(Hf,Cf);Hf.prototype.Hb=function(a){this.a.a(k);this.a=k;if(64<=this.d*this.d+this.b*this.b){var b=a.map,c=ce(this.Na,a.b());rf(b,function(){var a=b.a(),e=b.e();a.a(new K((c.h+c.k)/2,(c.j+c.i)/2));e=Math.max((c.k-c.h)/e.width,(c.i-c.j)/e.height);e=a.b.resolution(e,0);a.c(e);a.d(0)})}};Hf.prototype.cb=function(a){var b=a.a;return kc(b)&&this.c(b)?(this.a=new Gf({map:a.map,Na:this.Na}),i):m};function If(a){this.a=a}B(If,xf);If.prototype.na=function(a){if("key"==a.type){var b=a.a,c=b.ua;if(40==c||37==c||39==c||38==c){var d=a.map.a(),e=d.U()*this.a,c=40==c?new K(0,-e):37==c?new K(-e,0):39==c?new K(e,0):new K(0,e),e=d.T();d.a(new K(e.x+c.x,e.y+c.y));b.B();a.B()}}};function Jf(){}B(Jf,xf);Jf.prototype.na=function(a){if("key"==a.type){var b=a.a,c=b.$a;if(43==c||45==c){var d=a.map,c=43==c?4:-4;tf(d);d.a().zoom(d,c,h,100);b.B();a.B()}}};function Kf(a){this.a=a}B(Kf,xf);Kf.prototype.na=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a,d=a.b(),e=0>c.b?this.a:-this.a,f=b.a();tf(b);f.zoom(b,e,d);a.B();c.B()}};function Lf(){this.g=m;this.l={};this.targetTouches=[]}B(Lf,xf);function Mf(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return new Ze(c/b,d/b)}Lf.prototype.e=x;Lf.prototype.d=sd;Lf.prototype.f=sd;Lf.prototype.na=function(a){var b=a.a.K;y(b.targetTouches)?this.targetTouches=b.targetTouches:(a.type==mf?delete this.l[b.pointerId]:this.l[b.pointerId]=b,this.targetTouches=Qa(this.l));this.g&&(a.type==lf?this.e(a):a.type==mf&&(this.g=this.d(a)));a.type==kf&&(this.g=this.f(a))};function Nf(){Lf.call(this);this.a=new We(-0.005,0.05,100);this.b=this.c=k}B(Nf,Lf);Nf.prototype.e=function(a){var b=Mf(this.targetTouches);if(this.b!==k){this.a.a.push({x:b.x,y:b.y,Oa:oa()});var c=this.b.x-b.x,d=b.y-this.b.y,a=a.map.a(),c=new K(c,d),d=a.U();c.x*=d;c.y*=d;c=c.rotate(a.ia()).add(a.T());a.a(c)}this.b=b};
|
||||
Nf.prototype.d=function(a){var b=a.map,a=b.a();if(0==this.targetTouches.length){Te(a,-1);if(Xe(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.T();this.c=this.a.Ka(e);b.l(this.c);e=Ef(b,e);b=af(b,new Ze(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}return m}return i};Nf.prototype.f=function(a){if(1<=this.targetTouches.length){var b=a.map,c=b.a();this.b=k;this.c!==k&&Ba(b.g,this.c)&&(tf(b),c.a(a.d.t.center),this.c=k);a=this.a;a.a.length=0;a.c=0;a.b=0;Te(c,1);return i}return m};function Of(){Lf.call(this);this.a=m;this.b=0;this.la=0.3}B(Of,Lf);
|
||||
Of.prototype.e=function(a){var b=1,c=0,d=Mf(this.targetTouches),e=this.targetTouches[0],f=this.targetTouches[1],g=e.clientX-f.clientX,j=e.clientY-f.clientY,e=Math.atan2(f.clientY-e.clientY,f.clientX-e.clientX),g=Math.sqrt(g*g+j*j);y(this.c)&&(b=this.c/g);this.c=g;y(this.o)&&(c=e-this.o,this.b+=c,!this.a&&Math.abs(this.b)>this.la&&(this.a=i));this.o=e;a=a.map;g=a.a();j=Gc(a.b);d.x-=j.x;d.y-=j.y;d=af(a,d);sf(g,a,g.U()*b,d);this.a&&g.rotate(a,g.ia()+c,d)};
|
||||
Of.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a(),c=b.U(),c=b.b.resolution(c,0);sf(b,a,c,h);Te(b,-1);return m}return i};Of.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.o=this.c=h,this.a=m,this.b=0,Te(a,1),i):m};function Pf(a){P.call(this,a,"m",Qf)}B(Pf,P);var Rf=6378137*Math.PI,Qf=new N(-Rf,-Rf,Rf,Rf),Sf=ya(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new Pf(a)});function Tf(a,b){P.call(this,a,"degrees",Uf,b)}B(Tf,P);var Uf=new N(-180,-90,180,90),Vf=[new Tf("CRS:84"),new Tf("EPSG:4326","neu"),new Tf("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Tf("urn:ogc:def:crs:OGC:1.3:CRS84")];function Wf(a,b,c,d,e){this.f=e;this.g=a;this.o=c;this.e=b;this.a=new Image;d!==k&&(this.a.crossOrigin=d);this.d={};this.b=k;this.c=0}B(Wf,qd);s=Wf.prototype;s.ha=q("f");s.G=q("g");function Xf(a,b){if(y(b)){var c,d=z(b);if(d in a.d)return a.d[d];c=Sa(a.d)?a.a:a.a.cloneNode(m);return a.d[d]=c}return a.a}s.L=q("c");s.Ld=function(){this.c=3;D(this.b,I);this.b=k;J(this,"change")};s.Md=function(){this.c=2;D(this.b,I);this.b=k;J(this,"change")};
|
||||
function Yf(a){0==a.c&&(a.c=1,a.b=[sc(a.a,"error",a.Ld,m,a),sc(a.a,"load",a.Md,m,a)],a.a.src=a.o)};function Zf(a){this.a=a.resolutions;this.f=this.a.length;this.d=y(a.origin)?a.origin:k;this.e=k;y(a.origins)&&(this.e=a.origins);this.b=y(a.tileSize)?a.tileSize:new $d(256,256)}Zf.prototype.c=function(a,b,c){for(var d=$f(this,a),a=a.n-1;0<=a&&!b.call(c,a,ag(this,d,this.a[a]));)--a};function bg(a,b){return a.d===k?a.e[b]:a.d}function ag(a,b,c){var d=cg(a,new K(b.h,b.j),c),a=cg(a,new K(b.k,b.i),c,i);return new te(d.x,d.y,a.x,a.y)}
|
||||
function dg(a,b){var c=bg(a,b.n),d=a.a[b.n],e=a.b;return new K(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function $f(a,b){var c=bg(a,b.n),d=a.a[b.n],e=a.b,f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new N(f,c,f+e.width*d,c+e.height*d)}function cg(a,b,c,d){var e=of(a.a,c),f=c/a.a[e],g=bg(a,e),j=a.b,a=f*(b.x-g.x)/(c*j.width),b=f*(b.y-g.y)/(c*j.height);d?(a=Math.ceil(a)-1,b=Math.ceil(b)-1):(a=Math.floor(a),b=Math.floor(b));return new re(e,a,b)};function eg(a){Qe.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.tileGrid=y(a.tileGrid)?a.tileGrid:k}B(eg,Qe);eg.prototype.f=sd;eg.prototype.d=function(a,b,c,d){var e=i,f,g,j,l;for(j=d.h;j<=d.k;++j)for(l=d.j;l<=d.i;++l)if(f=new re(c,j,l),g=f.toString(),!a[c]||!a[c][g])f=this.b(f),b(f)?(a[c]||(a[c]={}),a[c][g]=f):e=m;return e};
|
||||
function fg(a,b,c){for(var d=a.tileGrid,e,f,g;0<=b;--b){e=ag(d,c,d.a[b]);for(f=e.h;f<=e.k;++f)for(g=e.j;g<=e.i;++g)a.s(b+"/"+f+"/"+g)}}eg.prototype.s=x;function gg(a,b){L.call(this);this.s=a;this.a=b;H(this.a,Ud("brightness"),this.Jb,m,this);H(this.a,Ud("contrast"),this.Kb,m,this);H(this.a,Ud("hue"),this.Lb,m,this);H(this.a,"load",this.nd,m,this);H(this.a,Ud("opacity"),this.od,m,this);H(this.a,Ud("saturation"),this.Mb,m,this);H(this.a,Ud("visible"),this.qd,m,this)}B(gg,L);function hg(a){J(a,"change")}s=gg.prototype;s.$=q("s");s.Jb=x;s.Kb=x;s.Lb=x;s.Ib=function(a){2===a.target.L()&&tf(this.s.map)};s.nd=function(){hg(this)};s.od=function(){hg(this)};
|
||||
s.Mb=x;s.qd=function(){hg(this)};s.Pb=function(a){2===a.target.L()&&tf(this.s.map)};function ig(a,b){b.f()&&a.va.push(na(function(a,b,e){b=z(a).toString();a.Ca(e.Pa[b])},b))}function jg(a,b){var c,d;for(c=0;c<b.length;++c)d=b[c],a[z(d).toString()]=d}function kg(a,b,c,d){b=z(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],a.h=Math.min(a.h,d.h),a.j=Math.min(a.j,d.j),a.k=Math.max(a.k,d.k),a.i=Math.max(a.i,d.i)):a[b][c]=d:(a[b]={},a[b][c]=d)}
|
||||
function lg(a,b,c){b=z(b).toString();c=c.toString();b in a||(a[b]={});a[b][c]=i};function mg(a,b){Zb.call(this);this.pa=a;this.map=b;this.d={};this.F=H(b,Ud(ng),this.sd,m,this);this.e=k;this.u={}}B(mg,Zb);s=mg.prototype;s.ta=function(a){var b=this.Ua(a),a=z(a);this.d[a]=b;this.u[a]=H(b,"change",this.pd,m,this)};
|
||||
function og(a){var b=a.t,c=a.cc;ke(c);oe(c,a.size.width/2,a.size.height/2);pe(c,1/b.resolution,-1/b.resolution);qe(c,-b.rotation);oe(c,-b.center.x,-b.center.y);var a=a.vc,b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],j=c[5],l=c[6],p=c[7],n=c[8],r=c[9],u=c[10],t=c[11],w=c[12],E=c[13],C=c[14],c=c[15],S=b*j-d*g,V=b*l-e*g,O=b*p-f*g,X=d*l-e*j,fa=d*p-f*j,Ia=e*p-f*l,Ja=n*E-r*w,Ka=n*C-u*w,La=n*c-t*w,Ma=r*C-u*E,Na=r*c-t*E,Oa=u*c-t*C,T=S*Oa-V*Na+O*Ma+X*La-fa*Ka+Ia*Ja;0!=T&&(T=1/T,a[0]=(j*Oa-l*Na+p*Ma)*T,a[1]=(-d*Oa+e*
|
||||
Na-f*Ma)*T,a[2]=(E*Ia-C*fa+c*X)*T,a[3]=(-r*Ia+u*fa-t*X)*T,a[4]=(-g*Oa+l*La-p*Ka)*T,a[5]=(b*Oa-e*La+f*Ka)*T,a[6]=(-w*Ia+C*O-c*V)*T,a[7]=(n*Ia-u*O+t*V)*T,a[8]=(g*Na-j*La+p*Ja)*T,a[9]=(-b*Na+d*La-f*Ja)*T,a[10]=(w*fa-E*O+c*S)*T,a[11]=(-n*fa+r*O-t*S)*T,a[12]=(-g*Ma+j*Ka-l*Ja)*T,a[13]=(b*Ma-d*Ka+e*Ja)*T,a[14]=(-w*X+E*V-C*S)*T,a[15]=(n*X-r*V+u*S)*T)}s.Ua=ud;s.q=function(){Pa(this.d,function(a){dc(a)});I(this.F);this.e===k||D(this.e,I);mg.v.q.call(this)};s.Xa=ud;
|
||||
function pg(a,b){var c=z(b);return a.d[c]}s.pd=function(){qg(this.map)};s.rd=function(a){this.ta(a.a)};s.sd=function(){cc(Qa(this.d));this.d={};this.e!==k&&(D(this.e,I),this.e=k);var a=this.map.u();a!=k&&(a.forEach(this.ta,this),this.e=[H(a,"add",this.rd,m,this),H(a,"remove",this.td,m,this)])};s.td=function(a){this.Rb(a.a)};s.Rb=function(a){a=z(a);if(a in this.d){var b=this.d[a];delete this.d[a];I(this.u[a]);delete this.u[a];a=b}else a=k;dc(a)};s.nb=x;function rg(){};function sg(a){Qe.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Ga=y(a.Ga)?a.Ga:rg;this.d=y(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=y(a.resolutions)?a.resolutions:k}B(sg,Qe);function tg(a,b,c,d){var e=k,d=a.Ga(b,d);y(d)&&(e=new Wf(b,c,d,a.d,a.ha()));return e};function ug(a){Q.call(this,a)}B(ug,Q);function vg(a){Q.call(this,a)}B(vg,Q);function wg(a,b){gg.call(this,a,b)}B(wg,gg);function xg(a,b){gg.call(this,a,b);this.b=k;this.c=ge()}B(xg,wg);xg.prototype.I=function(){return this.b===k?k:Xf(this.b,this)};xg.prototype.J=q("c");
|
||||
xg.prototype.ea=function(a){var b=a.t,c=b.center,d=b.resolution,b=b.rotation,e;e=this.a.W();var f=a.A;!f[0]&&!f[1]&&(e=e.I(a.extent,d),e!==k&&(f=e.L(),0==f?(sc(e,"change",this.Ib,m,this),Yf(e)):2==f&&(this.b=e)));if(this.b!==k){e=this.b;var f=e.G(),g=e.e,j=this.c;ke(j);oe(j,a.size.width/2,a.size.height/2);qe(j,b);pe(j,g/d,g/d);oe(j,(f.h-c.x)/g,(c.y-f.i)/g);jg(a.attributions,e.ha())}};function yg(a,b){gg.call(this,a,b);this.d=this.b=this.c=k;this.e=ge()}B(yg,wg);yg.prototype.I=q("c");yg.prototype.J=q("e");
|
||||
yg.prototype.ea=function(a){var b=a.t,c=this.a.W(),d=z(c).toString(),e=c.tileGrid,f=e.b,g=of(e.a,b.resolution),j=e.a[g],l=ag(e,a.extent,j),p=new $d(f.width*l.b(),f.height*l.a()),n,r;this.c===k?(n=Qb("CANVAS"),n.width=p.width,n.height=p.height,r=n.getContext("2d"),this.c=n,this.b=p,this.d=r):(n=this.c,r=this.d,this.b.width==p.width&&this.b.height==p.height||(n.width=p.width,n.height=p.height,this.b=p));r.clearRect(0,0,p.width,p.height);p={};p[g]={};var u=ma(c.d,c,p,function(a){return a!==k&&2==a.L()}),
|
||||
t,w,E,C;for(E=l.h;E<=l.k;++E)for(C=l.j;C<=l.i;++C)if(w=new re(g,E,C),n=c.b(w),n!==k){t=n.L();if(0==t)sc(n,"change",this.Pb,m,this),lg(a.Qa,c,w),t=dg(e,w),xe(a.Ub,n,d,t);else if(2==t){p[g][w.toString()]=n;continue}else if(3==t)continue;e.c(w,u)}u=ya(Ra(p),Number);Ga(u);var d=de($f(e,new re(g,l.h,l.i))),S;for(w=0;w<u.length;++w)if(n=u[w],E=p[n],n==g)for(S in E)n=E[S],r.drawImage(n.I(),f.width*(n.X.x-l.h),f.height*(l.i-n.X.y));else for(S in C=e.a[n]/j,E)n=E[S],t=$f(e,n.X),r.drawImage(n.I(),(t.h-d.x)/
|
||||
j,(d.y-t.i)/j,C*f.width,C*f.height);kg(a.Pa,c,g,l);fg(c,g,a.extent);ig(a,c);c=this.e;ke(c);oe(c,a.size.width/2,a.size.height/2);qe(c,b.rotation);pe(c,j/b.resolution,j/b.resolution);oe(c,(d.x-b.center.x)/j,(b.center.y-d.y)/j)};function zg(a,b){mg.call(this,a,b);this.f=new $d(a.clientHeight,a.clientWidth);this.c=Qb("CANVAS");this.c.height=this.f.height;this.c.width=this.f.width;this.c.className="ol-unselectable";Tb(a,this.c);this.g=i;this.o=this.c.getContext("2d")}B(zg,mg);zg.prototype.Ua=function(a){return a instanceof ug?new xg(this,a):a instanceof vg?new yg(this,a):k};zg.prototype.Xa=q("c");
|
||||
zg.prototype.nb=function(a){if(a===k)this.g&&(Ic(this.c,m),this.g=m);else{var b=a.size;this.f.width==b.width&&this.f.height==b.height||(this.c.width=b.width,this.c.height=b.height,this.f=b);var c=this.o;c.setTransform(1,0,0,1,0,0);var d=a.backgroundColor;c.fillStyle="rgb("+d.c.toFixed(0)+","+d.b.toFixed(0)+","+d.a.toFixed(0)+")";c.globalAlpha=1;c.fillRect(0,0,b.width,b.height);D(a.ib,function(b){var d=a.hb[z(b)];if(d.visible)if(d.rb){var g=pg(this,b);g.ea(a,d);b=g.I();b!==k&&(g=g.J(),c.setTransform(g[0],
|
||||
g[1],g[4],g[5],g[12],g[13]),c.globalAlpha=d.opacity,c.drawImage(b,0,0))}else a.Q=i},this);this.g||(Ic(this.c,i),this.g=i);og(a)}};var Ag=function(){if(!("HTMLCanvasElement"in v))return m;try{return Qb("CANVAS").getContext("2d")!==k}catch(a){return m}}();function Bg(a,b){var c;if(y(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function Cg(a,b,c){gg.call(this,a,b);this.target=c}B(Cg,gg);Cg.prototype.q=function(){Ub(this.target);Cg.v.q.call(this)};function Dg(a,b){var c=Qb("DIV");c.className="ol-layer-image";c.style.position="absolute";Cg.call(this,a,b,c);this.b=k;this.c=ie()}B(Dg,Cg);
|
||||
Dg.prototype.ea=function(a){var b=a.t,c=b.center,d=b.resolution,e=b.rotation,b=this.b,f=this.a.W(),g=a.A;!g[0]&&!g[1]&&(f=f.I(a.extent,d),f!==k&&(g=f.L(),0==g?(sc(f,"change",this.Ib,m,this),Yf(f)):2==g&&(b=f)));if(b!==k){var g=b.G(),j=b.e,f=ge();ke(f);oe(f,a.size.width/2,a.size.height/2);qe(f,e);pe(f,j/d,j/d);oe(f,(g.h-c.x)/j,(c.y-g.i)/j);b!=this.b&&(c=Xf(b,this),c.style.position="absolute",Sb(this.target),this.target.appendChild(c),this.b=b);me(f,this.c)||(Bg(this.target,f),je(this.c,f));jg(a.attributions,
|
||||
b.ha())}};function Eg(a,b){var c=Qb("DIV");c.className="ol-layer-tile";c.style.position="absolute";Cg.call(this,a,b,c);this.c=i;this.d=1;this.b={}}B(Eg,Cg);
|
||||
Eg.prototype.ea=function(a,b){if(b.visible){var c=a.t,d=this.a.W(),e=z(d).toString(),f=d.tileGrid,g=of(f.a,c.resolution),j=ag(f,a.extent,f.a[g]),l={};l[g]={};var p=ma(d.d,d,l,function(a){return a!==k&&2==a.L()}),n,r,u,t,w;for(t=j.h;t<=j.k;++t)for(w=j.j;w<=j.i;++w)if(u=new re(g,t,w),n=d.b(u),n!==k){r=n.L();if(0==r)sc(n,"change",this.Pb,m,this),lg(a.Qa,d,u),r=dg(f,u),xe(a.Ub,n,e,r);else if(2==r){l[g][u.toString()]=n;continue}else if(3==r)continue;f.c(u,p)}n=ya(Ra(l),Number);Ga(n);var e={},E;for(u=0;u<
|
||||
n.length;++u){t=n[u];t in this.b?p=this.b[t]:(p=cg(f,c.center,f.a[t]),p=new Fg(f,p),e[t]=i,this.b[t]=p);t=l[t];for(E in t){w=p;r=t[E];var C=r.X,S=C.toString();if(!(S in w.b)){var V=w.d.b,O=r.I(w),X=O.style;X.position="absolute";X.left=(C.x-w.c.x)*V.width+"px";X.top=(w.c.y-C.y)*V.height+"px";w.a===k&&(w.a=document.createDocumentFragment());w.a.appendChild(O);w.b[S]=r}}p.a!==k&&(p.target.appendChild(p.a),p.a=k)}f=ya(Ra(this.b),Number);Ga(f);n=ge();for(E=0;E<f.length;++E)if(t=f[E],p=this.b[t],t in l)if(w=
|
||||
p.g,u=p.f,ke(n),oe(n,a.size.width/2,a.size.height/2),qe(n,c.rotation),pe(n,w/c.resolution,w/c.resolution),oe(n,(u.x-c.center.x)/w,(c.center.y-u.y)/w),u=p,w=n,me(w,u.e)||(Bg(u.target,w),je(u.e,w)),t in e){for(u=t-1;0<=u;--u)if(u in this.b){t=this.b[u].target;t.parentNode&&t.parentNode.insertBefore(p.target,t.nextSibling);break}0>u&&Tb(this.target,p.target)}else{if(!a.A[0]&&!a.A[1]){r=ag(p.d,a.extent,p.d.a[p.c.n]);u=[];w=t=h;for(w in p.b)t=p.b[w],r.contains(t.X)||u.push(t);r=h;for(r=0;r<u.length;++r)t=
|
||||
u[r],w=t.X.toString(),Ub(t.I(p)),delete p.b[w]}}else Ub(p.target),delete this.b[t];b.opacity!=this.d&&(c=b.opacity,l=this.target.style,"opacity"in l?l.opacity=c:"MozOpacity"in l?l.MozOpacity=c:"filter"in l&&(l.filter=""===c?"":"alpha(opacity="+100*c+")"),this.d=b.opacity);b.visible&&!this.c&&(Ic(this.target,i),this.c=i);kg(a.Pa,d,g,j);fg(d,g,a.extent);ig(a,d)}else this.c&&(Ic(this.target,m),this.c=m)};
|
||||
function Fg(a,b){this.target=Qb("DIV");this.target.style.position="absolute";this.d=a;this.c=b;this.f=de($f(a,b));this.g=a.a[b.n];this.b={};this.a=k;this.e=ie()};function Gg(a,b){mg.call(this,a,b);this.c=Qb("DIV");this.c.className="ol-layers ol-unselectable";var c=this.c.style;c.position="absolute";c.width="100%";c.height="100%";Tb(a,this.c);this.f=i}B(Gg,mg);Gg.prototype.ta=function(a){Gg.v.ta.call(this,a);qg(this.map)};Gg.prototype.Ua=function(a){var b;a instanceof vg?b=new Eg(this,a):a instanceof ug&&(b=new Dg(this,a));this.c.appendChild(b.target);return b};
|
||||
Gg.prototype.nb=function(a){a===k?this.f&&(Ic(this.c,m),this.f=m):(D(a.ib,function(b){var c=a.hb[z(b)];c.rb&&pg(this,b).ea(a,c)},this),this.f||(Ic(this.c,i),this.f=i),og(a))};function Hg(a){this.a=a}Hg.prototype.W=q("a");function Ig(a){this.a=a}B(Ig,Hg);Ig.prototype.b=function(){return 35632};function Jg(a){this.a=a}B(Jg,Hg);Jg.prototype.b=function(){return 35633};function Kg(a,b){gg.call(this,a,b);this.D=new Float32Array(16);this.H=new Float32Array(16);this.pa=new Float32Array(16);this.Ma=new Float32Array(16);this.F=new Float32Array(16);this.c=i;this.Jb();this.Kb();this.Lb();this.Mb()}B(Kg,gg);function Lg(a){if(a.c){var b=a.F;ke(b);le(b,a.H,b);le(b,a.D,b);le(b,a.Ma,b);le(b,a.pa,b);a.c=m}return a.F}s=Kg.prototype;s.$=function(){return Kg.v.$.call(this)};s.Jb=function(){var a=this.a.b(),b=this.D;ke(b);b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;hg(this)};
|
||||
s.Kb=function(){var a=this.a.c(),b=this.H;ke(b);b[0]=a;b[5]=a;b[10]=a;b[15]=1;a=-0.5*a+0.5;b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;hg(this)};s.Lb=function(){var a=this.a.d(),b=Math.cos(a),a=Math.sin(a);he(this.pa,0.213+0.787*b-0.213*a,0.213-0.213*b+0.143*a,0.213-0.213*b-0.787*a,0,0.715-0.715*b-0.715*a,0.715+0.285*b+0.14*a,0.715-0.715*b+0.715*a,0,0.072-0.072*b+0.928*a,0.072-0.072*b-0.283*a,0.072+0.928*b+0.072*a,0,0,0,0,1);this.c=i;hg(this)};
|
||||
s.Mb=function(){var a=this.a.f();he(this.Ma,0.213+0.787*a,0.213-0.213*a,0.213-0.213*a,0,0.715-0.715*a,0.715+0.285*a,0.715-0.715*a,0,0.072-0.072*a,0.072-0.072*a,0.072+0.928*a,0,0,0,0,1);this.c=i;hg(this)};s.Fa=x;function Mg(a,b){Kg.call(this,a,b);this.b=this.d=k;this.e=ie();this.f=ge()}B(Mg,Kg);s=Mg.prototype;s.q=function(){var a=this.$().a;a.isContextLost()||a.deleteTexture(this.b);Mg.v.q.call(this)};s.fc=q("e");s.gc=q("b");s.hc=q("f");s.Fa=function(){this.b=k};
|
||||
s.ea=function(a){var b=this.$().a,c=a.t,d=c.center,e=c.resolution,f=c.rotation,c=this.d,g=this.b,j=this.a.W(),l=a.A;!l[0]&&!l[1]&&(j=j.I(a.extent,e),j!==k&&(l=j.L(),0==l?(sc(j,"change",this.Ib,m,this),Yf(j)):2==l&&(c=j,g=Xf(j,this),j=this.$().a,l=j.createTexture(),j.bindTexture(3553,l),j.texImage2D(3553,0,6408,6408,5121,g),j.texParameteri(3553,10242,33071),j.texParameteri(3553,10243,33071),j.texParameteri(3553,10241,9729),j.texParameteri(3553,10240,9729),g=l,this.b===k||a.va.push(na(function(a,b){a.isContextLost()||
|
||||
a.deleteTexture(b)},b,this.b)))));c!==k&&(l=this.$().Xa(),b=c.G(),j=l.width*e,e*=l.height,l=this.f,ke(l),pe(l,2/j,2/e),qe(l,-f),oe(l,b.h-d.x,b.j-d.y),pe(l,b.b()/2,b.a()/2),oe(l,1,1),d=this.e,ke(d),pe(d,1,-1),oe(d,0,-1),this.d=c,this.b=g,jg(a.attributions,c.ha()))};function Ng(a,b){this.M=a;this.Y=b}Ng.prototype.R=function(){return new Ng(this.M,this.Y)};function Og(a){this.a=[];if(a)a:{var b,c;if(a instanceof Og){if(b=a.V(),c=a.N(),0>=a.Z()){for(var a=this.a,d=0;d<b.length;d++)a.push(new Ng(b[d],c[d]));break a}}else b=Ra(a),c=Qa(a);for(d=0;d<b.length;d++)Pg(this,b[d],c[d])}}function Pg(a,b,c){var d=a.a;d.push(new Ng(b,c));b=d.length-1;a=a.a;for(c=a[b];0<b;)if(d=b-1>>1,a[d].M>c.M)a[b]=a[d],b=d;else break;a[b]=c}s=Og.prototype;
|
||||
s.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Aa(a);else{a[0]=a.pop();for(var a=0,b=this.a,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,g=2*a+2,f=g<d&&b[g].M<b[f].M?g:f;if(b[f].M>e.M)break;b[a]=b[f];a=f}b[a]=e}return c.Y}};s.N=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Y);return b};s.V=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].M);return b};s.R=function(){return new Og(this)};s.Z=function(){return this.a.length};
|
||||
s.Ia=function(){return 0==this.a.length};s.clear=function(){Aa(this.a)};function Qg(){Og.call(this)}B(Qg,Og);function Rg(){this.a="precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}"}B(Rg,Ig);aa(Rg);function Sg(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nuniform vec4 uTileOffset;\n\nvoid main(void) {\n gl_Position.xy = aPosition * uTileOffset.xy + uTileOffset.zw;\n gl_Position.z = 0.;\n gl_Position.w = 1.;\n vTexCoord = aTexCoord;\n}"}B(Sg,Jg);aa(Sg);
|
||||
function Tg(a,b){Kg.call(this,a,b);this.wb=Rg.Ya();this.Ra=Sg.Ya();this.e=this.g=this.f=this.z=k;this.l=h;this.d=ge();this.yb=ie();this.u=this.b=k}B(Tg,Kg);s=Tg.prototype;s.q=function(){var a=this.$().a;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.e),a.deleteTexture(this.g));Tg.v.q.call(this)};s.fc=q("d");s.gc=q("g");s.hc=q("yb");s.Fa=function(){this.e=this.g=this.f=this.z=k;this.l=h};
|
||||
s.ea=function(a){var b=this.$(),c=b.a,d=a.t,e=d.center,f=this.a.W(),g=z(f).toString(),j=f.tileGrid,l=of(j.a,d.resolution),p=j.a[l],n=ag(j,a.extent,p),r;if(this.b!==k&&this.b.h==n.h&&this.b.j==n.j&&this.b.k==n.k&&this.b.i==n.i)r=this.u;else{var u=new $d(n.b(),n.a()),t=j.b,u=Math.max(u.width*t.width,u.height*t.height),u=Math.pow(2,Math.ceil(Math.log(u)/Math.log(2))),w=new $d(p*u,p*u),E=bg(j,l),C=E.x+n.h*t.width*p,p=E.y+n.j*t.height*p;r=new N(C,p,C+w.width,p+w.height);p=this.$().a;!y(this.l)||this.l!=
|
||||
u?(a.va.push(na(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},p,this.e,this.g)),t=p.createTexture(),p.bindTexture(3553,t),p.texImage2D(3553,0,6408,u,u,0,6408,5121,k),p.texParameteri(3553,10240,9729),p.texParameteri(3553,10241,9729),C=p.createFramebuffer(),p.bindFramebuffer(36160,C),p.framebufferTexture2D(36160,36064,3553,t,0),this.g=t,this.e=C,this.l=u):p.bindFramebuffer(36160,this.e);c.viewport(0,0,u,u);c.clearColor(0,0,0,0);c.clear(16384);c.disable(3042);u=Ug(b,
|
||||
this.wb,this.Ra);c.useProgram(u);this.z===k&&(this.z={za:c.getAttribLocation(u,"aPosition"),Aa:c.getAttribLocation(u,"aTexCoord"),Ud:c.getUniformLocation(u,"uTileOffset"),Vb:c.getUniformLocation(u,"uTexture")});this.f===k?(u=c.createBuffer(),c.bindBuffer(34962,u),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=u):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.z.za);c.vertexAttribPointer(this.z.za,2,5126,m,16,0);c.enableVertexAttribArray(this.z.Aa);c.vertexAttribPointer(this.z.Aa,
|
||||
2,5126,m,16,8);c.uniform1i(this.z.Vb,0);var S={};S[l]={};for(var p=ma(f.d,f,S,function(a){return a!==k&&2==a.L()&&Vg(b.b,a.ma())}),u=new Qg,V=i,O,X,E=n.h;E<=n.k;++E)for(X=n.j;X<=n.i;++X)if(C=new re(l,E,X),t=f.b(C),t!==k){O=t.L();if(0==O)sc(t,"change",this.Pb,m,this),lg(a.Qa,f,C),O=dg(j,C),xe(a.Ub,t,g,O);else if(2==O)if(Vg(b.b,t.ma())){S[l][C.toString()]=t;continue}else O=dg(j,C),V=O.x-e.x,O=O.y-e.y,V=Math.sqrt(V*V+O*O),Pg(u,V,t);else if(3==O)continue;V=m;j.c(C,p)}e=ya(Ra(S),Number);Ga(e);var fa=new Float32Array(4);
|
||||
D(e,function(a){Pa(S[a],function(a){var d=$f(j,a.X),e=2*d.a()/w.height,f=2*(d.h-r.h)/w.width-1,g=2*(d.j-r.j)/w.height-1;fa[0]=2*d.b()/w.width;fa[1]=e;fa[2]=f;fa[3]=g;c.uniform4fv(this.z.Ud,fa);Wg(b,a);c.drawArrays(5,0,4)},this)},this);u.Ia()||a.va.push(na(function(a,b){var c,d;for(c=0;!b.Ia()&&4>c;++c)d=b.remove(),Wg(a,d)},b,u));V?(this.b=n,this.u=r):(this.u=this.b=k,a.Q=i)}kg(a.Pa,f,l,n);fg(f,l,a.extent);ig(a,f);ke(this.d);oe(this.d,(d.center.x-r.h)/(r.k-r.h),(d.center.y-r.j)/(r.i-r.j));qe(this.d,
|
||||
d.rotation);pe(this.d,a.size.width*d.resolution/(r.k-r.h),a.size.height*d.resolution/(r.i-r.j));oe(this.d,-0.5,-0.5)};function Xg(){this.m=0;this.c={};this.b=this.a=k}s=Xg.prototype;s.clear=function(){this.m=0;this.c={};this.b=this.a=k};function Vg(a,b){return a.c.hasOwnProperty(b)}s.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.Y,c.M,this),c=c.S};function Yg(a,b){var c=a.c[b];if(c===a.b)return c.Y;c===a.a?(a.a=a.a.S,a.a.fa=k):(c.S.fa=c.fa,c.fa.S=c.S);c.S=k;c.fa=a.b;a.b.S=c;a.b=c;return c.Y}s.Z=q("m");s.V=function(){var a=Array(this.m),b=0,c;for(c=this.b;c!==k;c=c.fa)a[b++]=c.M;return a};
|
||||
s.N=function(){var a=Array(this.m),b=0,c;for(c=this.b;c!==k;c=c.fa)a[b++]=c.Y;return a};function Zg(a){var b=a.a;delete a.c[b.M];b.S!==k&&(b.S.fa=k);a.a=b.S;a.a===k&&(a.b=k);--a.m}function $g(a,b,c){c={M:b,S:k,fa:a.b,Y:c};a.b===k?a.a=c:a.b.S=c;a.b=c;a.c[b]=c;++a.m};var ah=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function bh(a,b){var c,d,e=ah.length;for(d=0;d<e;++d)try{if(c=a.getContext(ah[d],b),c!==k)return c}catch(f){}return k}var ch=function(){if(!("WebGLRenderingContext"in v))return m;try{var a=Qb("CANVAS");return bh(a)!==k}catch(b){return m}}();function dh(){this.a="precision mediump float;\n\nuniform mat4 uColorMatrix;\nuniform float uOpacity;\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n\n vec4 texColor = texture2D(uTexture, vTexCoord);\n vec4 color = uColorMatrix * vec4(texColor.rgb, 1.);\n color.a = texColor.a * uOpacity;\n\n gl_FragColor = color;\n\n}"}B(dh,Ig);aa(dh);
|
||||
function eh(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nuniform mat4 uTexCoordMatrix;\nuniform mat4 uVertexCoordMatrix;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_Position = uVertexCoordMatrix * vec4(aPosition, 0., 1.);\n vTexCoord = (uTexCoordMatrix * vec4(aTexCoord, 0., 1.)).st;\n}"}B(eh,Jg);aa(eh);
|
||||
function fh(a,b){mg.call(this,a,b);this.c=Qb("CANVAS");this.c.height=a.clientHeight;this.c.width=a.clientWidth;this.c.className="ol-unselectable";Tb(a,this.c);this.s=i;this.D=new $d(a.clientHeight,a.clientWidth);this.a=bh(this.c,{alpha:m,antialias:i,depth:m,preserveDrawingBuffer:m,stencil:m});H(this.c,"webglcontextlost",this.Fa,m,this);H(this.c,"webglcontextrestored",this.Id,m,this);this.l=this.z=k;this.g={};this.f={};this.b=new Xg;this.o=0;this.H=dh.Ya();this.J=eh.Ya();gh(this)}B(fh,mg);s=fh.prototype;
|
||||
s.ta=function(a){fh.v.ta.call(this,a);a.a()&&qg(this.map)};
|
||||
function Wg(a,b){var c=a.a,d=b.ma();if(Vg(a.b,d))d=Yg(a.b,d),c.bindTexture(3553,d.Tb),9729!=d.nc&&(c.texParameteri(3553,10240,9729),d.nc=9729),9729!=d.oc&&(c.texParameteri(3553,10240,9729),d.oc=9729);else{var e=c.createTexture();c.bindTexture(3553,e);c.texImage2D(3553,0,6408,6408,5121,b.I());c.texParameteri(3553,10240,9729);c.texParameteri(3553,10241,9729);c.texParameteri(3553,10242,33071);c.texParameteri(3553,10243,33071);$g(a.b,d,{Tb:e,nc:9729,oc:9729})}}
|
||||
s.Ua=function(a){var b=k;a instanceof vg?b=new Tg(this,a):a instanceof ug&&(b=new Mg(this,a));return b};s.q=function(){var a=this.a;a.isContextLost()||(Pa(this.f,function(b){a.deleteProgram(b)}),Pa(this.g,function(b){a.deleteShader(b)}),this.b.forEach(function(b){b===k||a.deleteTexture(b.Tb)}));fh.v.q.call(this)};s.Zc=function(a,b){for(var c=this.a,d;1024<this.b.Z()-this.o;){d=this.b.a.Y;if(d===k)if(+this.b.a.M==b.time)break;else--this.o;else c.deleteTexture(d.Tb);Zg(this.b)}};s.Xa=q("c");
|
||||
function Ug(a,b,c){var d=z(b)+"/"+z(c);if(d in a.f)return a.f[d];var e=a.a,f=e.createProgram();e.attachShader(f,hh(a,b));e.attachShader(f,hh(a,c));e.linkProgram(f);return a.f[d]=f}function hh(a,b){var c=z(b);if(c in a.g)return a.g[c];var d=a.a,e=d.createShader(b.b());d.shaderSource(e,b.W());d.compileShader(e);return a.g[c]=e}s.Fa=function(a){a.B();this.l=this.z=k;this.g={};this.f={};this.b.clear();this.o=0;Pa(this.d,function(a){a.Fa()})};s.Id=function(){gh(this);qg(this.map)};
|
||||
function gh(a){a=a.a;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}s.Rb=function(a){fh.v.Rb.call(this,a);a.a()&&qg(this.map)};
|
||||
s.nb=function(a){var b=this.a;if(a===k)return this.s&&(Ic(this.c,m),this.s=m),m;$g(this.b,a.time.toString(),k);++this.o;D(a.ib,function(b){var c=a.hb[z(b)];c.visible&&c.rb&&pg(this,b).ea(a,c)},this);var c=a.size;this.D.width==c.width&&this.D.height==c.height||(this.c.width=c.width,this.c.height=c.height,this.D=c);b.bindFramebuffer(36160,k);var d=a.backgroundColor;b.clearColor(d.c/255,d.b/255,d.a/255,d.d);b.clear(16384);b.enable(3042);b.viewport(0,0,c.width,c.height);c=Ug(this,this.H,this.J);b.useProgram(c);
|
||||
this.z===k&&(this.z={za:b.getAttribLocation(c,"aPosition"),Aa:b.getAttribLocation(c,"aTexCoord"),Rd:b.getUniformLocation(c,"uColorMatrix"),Td:b.getUniformLocation(c,"uTexCoordMatrix"),Vd:b.getUniformLocation(c,"uVertexCoordMatrix"),Sd:b.getUniformLocation(c,"uOpacity"),Vb:b.getUniformLocation(c,"uTexture")});this.l===k?(c=b.createBuffer(),b.bindBuffer(34962,c),b.bufferData(34962,new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),35044),this.l=c):b.bindBuffer(34962,this.l);b.enableVertexAttribArray(this.z.za);
|
||||
b.vertexAttribPointer(this.z.za,2,5126,m,16,0);b.enableVertexAttribArray(this.z.Aa);b.vertexAttribPointer(this.z.Aa,2,5126,m,16,8);b.uniform1i(this.z.Vb,0);D(a.ib,function(c){var d=a.hb[z(c)];d.visible&&d.rb&&(d=pg(this,c),b.uniformMatrix4fv(this.z.Td,m,d.fc()),b.uniformMatrix4fv(this.z.Vd,m,d.hc()),b.uniformMatrix4fv(this.z.Rd,m,Lg(d)),b.uniform1f(this.z.Sd,c.e()),b.bindTexture(3553,d.gc()),b.drawArrays(5,0,4))},this);this.s||(Ic(this.c,i),this.s=i);og(a);1024<this.b.Z()-this.o&&a.va.push(ma(this.Zc,
|
||||
this))};var ih={},jh={be:"canvas",ge:"dom",Pe:"webgl"},kh=["webgl","canvas","dom"],ng="layers";
|
||||
function U(a){var b,c;L.call(this);var d={};d[ng]=y(a.layers)?a.layers:new M;d.view=y(a.view)?a.view:new R;c=mg;var e;e=y(a.renderers)?a.renderers:y(a.renderer)?[a.renderer]:kh;var f;for(b=0;b<e.length;++b)if(f=e[b],"canvas"==f){if(Ag){c=zg;break}}else if("dom"==f){c=Gg;break}else if("webgl"==f&&ch){c=fh;break}e=[];(y(a.attributionControl)?a.attributionControl:1)&&e.push(new vf({}));if(y(a.zoomControl)?a.zoomControl:1)e.push(new wf({delta:y(a.zoomDelta)?a.zoomDelta:4}));if(y(a.interactions))b=a.interactions;
|
||||
else{b=new M;(y(a.rotate)?a.rotate:1)&&b.push(new Ff(zf));if(y(a.doubleClickZoom)?a.doubleClickZoom:1)b.push(new yf(y(a.zoomDelta)?a.zoomDelta:4));(y(a.touchPan)?a.touchPan:1)&&b.push(new Nf);(y(a.touchRotateZoom)?a.touchRotateZoom:1)&&b.push(new Of);(y(a.dragPan)?a.dragPan:1)&&b.push(new Df(Af,new We(-0.005,0.05,100)));f=y(a.keyboardPanOffset)?a.keyboardPanOffset:80;if(y(a.keyboard)?a.keyboard:1)b.push(new If(f)),b.push(new Jf);if(y(a.mouseWheelZoom)?a.mouseWheelZoom:1)b.push(new Kf(y(a.mouseWheelZoomDelta)?
|
||||
a.mouseWheelZoomDelta:1));(y(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Hf(Bf))}a=ea(a.target)?document.getElementById(a.target):a.target;this.c=new vd(this.Nd,h,this);bc(this,this.c);this.Jc=ge();this.Nc=ge();this.d=k;this.f=0;this.s=m;this.H=a;this.F=k;this.b=Ob("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.b.style.msTouchAction="none";this.H.appendChild(this.b);this.D=Ob("DIV","ol-overlaycontainer");
|
||||
H(this.D,["click",Od?"touchstart":"mousedown"],fc);this.b.appendChild(this.D);a=new cf(this);H(a,Qa(nf),this.uc,m,this);bc(this,a);a=new Ed(document);H(a,"key",this.ic,m,this);bc(this,a);a=new Ld(this.b);H(a,"mousewheel",this.ic,m,this);bc(this,a);this.wb=b;this.J=new c(this.b,this);bc(this,this.J);this.Qc=new zd;H(this.Qc,"resize",this.jc,m,this);this.g=[];this.yb=[];this.Mc=ma(this.Ad,this);this.pa=new we(ma(this.cd,this));H(this,Ud("view"),this.Gd,m,this);H(this,Ud("size"),this.Cd,m,this);H(this,
|
||||
Ud("backgroundColor"),this.ld,m,this);this.mb(d);this.jc();D(e,function(a){a.a(this)},this)}B(U,L);U.prototype.l=function(a){tf(this);this.g.push(a)};U.prototype.Ic=function(a){tf(this);Array.prototype.push.apply(this.g,a)};U.prototype.q=function(){Ub(this.b);U.v.q.call(this)};U.prototype.Ma=function(){return this.r("backgroundColor")};U.prototype.getBackgroundColor=U.prototype.Ma;U.prototype.Lc=q("J");
|
||||
function af(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];ne(c.vc,d,d);return new K(d[0],d[1])}U.prototype.Kc=q("wb");U.prototype.u=function(){return this.r(ng)};U.prototype.getLayers=U.prototype.u;function Ef(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];ne(c.cc,d,d);return new Ze(d[0],d[1])}U.prototype.e=function(){return this.r("size")};U.prototype.getSize=U.prototype.e;U.prototype.a=function(){return this.r("view")};U.prototype.getView=U.prototype.a;s=U.prototype;
|
||||
s.cd=function(a,b,c){var d=this.d;if(d===k||!(b in d.Qa)||!d.Qa[b][a.X.toString()])return Infinity;b=d.t.center;a=c.x-b.x;c=c.y-b.y;return a*a+c*c};s.ic=function(a,b){this.uc(new $e(b||a.type,this,a))};s.uc=function(a){a.d=this.d;var b=this.wb.a;if(J(this,a)!==m)for(var c=b.length-1;0<=c&&!(b[c].na(a),a.bb);c--);};
|
||||
s.Ad=function(){var a=this.pa,b=a.a,c,d=0,e,f,g,j;for(c=0;c<b.length;++c)e=b[c],g=e[1],j=e[2],f=e[3],f=a.d(g,j,f),Infinity==f?(e=g.ma(),delete a.b[e]):(e[0]=f,b[d++]=e);b.length=d;for(b=(a.a.length>>1)-1;0<=b;b--)ze(a,b);for(a=this.pa;0<a.a.length&&a.c<a.e;)b=a,d=b.a,c=d[0][1],1==d.length?d.length=0:(d[0]=d.pop(),ze(b,0)),d=c.ma(),delete b.b[d],b=c,sc(b,"change",a.f,m,a),0==b.b&&(b.b=1,b.c=[sc(b.a,"error",b.f,m,b),sc(b.a,"load",b.g,m,b)],b.a.src=b.e),++a.c;a=this.yb;for(b=0;b<a.length;++b)a[b](this,
|
||||
this.d);a.length=0};s.ld=function(){qg(this)};s.jc=function(){this.Ra(new $d(this.H.clientWidth,this.H.clientHeight))};s.Cd=function(){qg(this)};s.Hd=function(){qg(this)};s.Gd=function(){this.F!==k&&(I(this.F),this.F=k);var a=this.a();a!=k&&(this.F=H(a,"changed",this.Hd,m,this));qg(this)};s.Ha=function(){var a=this.a(),b;if(b=y(a)){if(a=a.Ha())a=this.e()!=k;b=a}return b};function qg(a){a.c.O==k&&(0===a.f?(a=a.c,wd(a),a.Eb()):a.s=i)}function tf(a){0===a.f?a.c.O!=k||a.c.start():a.s=i}
|
||||
s.Nd=function(a){var b;if(0==this.f){var c=this.e();b=this.u();var d=y(b)?b.a:h;b=this.a();var e=y(b)?this.a():h,f=k;if(y(d)&&y(c)&&y(e)&&e.Ha()){var f=this.Ma(),g=Da(b.e),j={},l;for(b=0;b<d.length;++b){l=d[b];var p=j,n=z(l),r=l;l=r.b();var u=r.c(),t=r.d(),w=r.e(),E=r.W().c(),C=r.f(),r=r.a();p[n]={brightness:y(l)?l:0,contrast:y(u)?u:1,hue:y(t)?t:0,opacity:y(w)?w:1,rb:E,saturation:y(C)?C:1,visible:y(r)?r:i}}b=e.T();p=e.tc();n=e.U();e=e.ia();p={center:new K(b.x,b.y),projection:p,resolution:n,rotation:e};
|
||||
f={Q:m,attributions:{},backgroundColor:y(f)?f:new Zd,cc:this.Jc,extent:k,ib:d,hb:j,vc:this.Nc,va:[],size:c,Ub:this.pa,time:a,Pa:{},t:p,A:g,Qa:{}}}a=this.g;for(b=d=0;b<a.length;++b)e=a[b],e(this,f)&&(a[d++]=e);a.length=d;if(f!==k){a=p.center;b=p.resolution;d=p.rotation;e=b*c.width/2;c=b*c.height/2;c=[new K(-e,-c),new K(-e,c),new K(e,-c),new K(e,c)];for(b=0;4>b;++b)e=c[b],e.rotate(d),e.add(a);f.extent=ce.apply(k,c)}this.d=f;this.J.nb(f);this.s=m;f!==k&&(f.Q&&tf(this),Array.prototype.push.apply(this.yb,
|
||||
f.va));J(this,new Ye("postrender",this,f));v.setTimeout(this.Mc,0)}};s.Pd=function(a){this.p("backgroundColor",a)};U.prototype.setBackgroundColor=U.prototype.Pd;U.prototype.Oc=function(a){this.p(ng,a)};U.prototype.setLayers=U.prototype.Oc;U.prototype.Ra=function(a){this.p("size",a)};U.prototype.setSize=U.prototype.Ra;U.prototype.Pc=function(a){this.p("view",a)};U.prototype.setView=U.prototype.Pc;function rf(a,b,c){++a.f;try{b.call(c)}finally{0===--a.f&&a.s&&(a=a.c,wd(a),a.Eb())}}
|
||||
ih.Vc=function(a){var b=v.location.search.substring(1),a=y(a)?a:new $c(b);return ld(a,"renderers")?md(a,"renderers").split(","):ld(a,"renderer")?[md(a,"renderer")]:kh};Ge(Sf);Ge(Vf);function lh(a){var b=6378137*Math.PI*a.x/180,a=6378137*Math.log(Math.tan(Math.PI*(a.y+90)/360));return new K(b,a)}function mh(a){return new K(180*a.x/(6378137*Math.PI),360*Math.atan(Math.exp(a.y/6378137))/Math.PI-90)}D(Vf,function(a){D(Sf,function(b){Ie(a,b,lh);Ie(b,a,mh)})});var nh={Zd:"bottom-left",$d:"bottom-right",Ie:"top-left",Je:"top-right"};function W(a){L.call(this);this.b=Qb("DIV");this.b.style.position="absolute";this.a={Ta:"",jb:"",tb:"",vb:"",visible:i};H(this,Ud("element"),this.md,m,this);H(this,Ud("map"),this.ud,m,this);H(this,Ud("position"),this.yd,m,this);H(this,Ud("positioning"),this.zd,m,this);y(a.element)&&this.Ac(a.element);y(a.position)&&this.s(a.position);y(a.positioning)&&this.p("positioning",a.positioning);y(a.map)&&this.l(a.map)}B(W,L);
|
||||
W.prototype.f=function(){return this.r("element")};W.prototype.getElement=W.prototype.f;W.prototype.d=function(){return this.r("map")};W.prototype.getMap=W.prototype.d;W.prototype.g=function(){return this.r("position")};W.prototype.getPosition=W.prototype.g;W.prototype.e=function(){return this.r("positioning")};W.prototype.getPositioning=W.prototype.e;s=W.prototype;s.md=function(){Sb(this.b);var a=this.f();a!=k&&Rb(this.b,a)};
|
||||
s.ud=function(){this.c!==k&&(Ub(this.b),I(this.c),this.c=k);var a=this.d();a!=k&&(this.c=H(a,"postrender",this.Kd,m,this),oh(this),Rb(a.D,this.b))};s.Kd=function(){oh(this)};s.yd=function(){oh(this)};s.zd=function(){oh(this)};s.Ac=function(a){this.p("element",a)};W.prototype.setElement=W.prototype.Ac;W.prototype.l=function(a){this.p("map",a)};W.prototype.setMap=W.prototype.l;W.prototype.s=function(a){this.p("position",a)};W.prototype.setPosition=W.prototype.s;
|
||||
function oh(a){var b=a.d(),c=a.g();if(!y(b)||!b.Ha()||!y(c))a.a.visible&&(Ic(a.b,m),a.a.visible=m);else{var c=Ef(b,c),d=b.e(),b=a.b.style,e=a.e();if("bottom-right"==e||"top-right"==e){""!==a.a.jb&&(a.a.jb=b.left="");var f=Math.round(d.width-c.x)+"px";a.a.tb!=f&&(a.a.tb=b.right=f)}else""!==a.a.tb&&(a.a.tb=b.right=""),f=Math.round(c.x)+"px",a.a.jb!=f&&(a.a.jb=b.left=f);"top-left"==e||"top-right"==e?(""!==a.a.Ta&&(a.a.Ta=b.bottom=""),c=Math.round(c.y)+"px",a.a.vb!=c&&(a.a.vb=b.top=c)):(""!==a.a.vb&&
|
||||
(a.a.vb=b.top=""),c=Math.round(d.height-c.y)+"px",a.a.Ta!=c&&(a.a.Ta=b.bottom=c));a.a.visible||(Ic(a.b,i),a.a.visible=i)}};/*
|
||||
Portions of this code are from MochiKit, received by
|
||||
The Closure Authors under the MIT license. All other code is Copyright
|
||||
2005-2009 The Closure Authors. All Rights Reserved.
|
||||
*/
|
||||
function ah(a,b){this.a=[];this.f=a;this.e=b||k}s=ah.prototype;s.fa=p;s.Ba=p;s.Ha=0;s.Jc=p;s.Wc=p;s.Uc=0;s.dc=function(a,b){bh(this,a,b);this.Ha--;0==this.Ha&&this.fa&&ch(this)};function bh(a,b,c){a.fa=j;a.b=c;a.Ba=!b;ch(a)}function dh(a){if(a.fa){if(!a.Jc)throw new eh(a);a.Jc=p}}function fh(a){return Aa(a.a,function(a){return ha(a[1])})}
|
||||
function ch(a){a.c&&(a.fa&&fh(a))&&(w.clearTimeout(a.c),delete a.c);a.d&&(a.d.Uc--,delete a.d);for(var b=a.b,c=p,d=p;a.a.length&&0==a.Ha;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Ba?g:f)try{var i=f.call(e||a.e,b);x(i)&&(a.Ba=a.Ba&&(i==b||i instanceof Error),a.b=b=i);b instanceof ah&&(d=j,a.Ha++)}catch(r){b=r,a.Ba=j,fh(a)||(c=j)}}a.b=b;d&&a.Ha&&(d=b,i=na(a.dc,a,j),f=na(a.dc,a,p),d.a.push([i,f,h]),d.fa&&ch(d),b.Wc=j);c&&(a.c=w.setTimeout(function(){throw b;},0))}
|
||||
function eh(a){qa.call(this);this.a=a}B(eh,qa);eh.prototype.message="Deferred has already fired";eh.prototype.name="AlreadyCalledError";function gh(a,b){var c=b||{},d=c.document||document,e=Lb("SCRIPT"),f={Gc:e,rb:h},g=new ah(hh,f),i=k,r=c.timeout!=k?c.timeout:5E3;0<r&&(i=window.setTimeout(function(){ih(e,j);var b=new jh(kh,"Timeout reached for loading script "+a);dh(g);bh(g,p,b)},r),f.rb=i);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)ih(e,c.bc||p,i),dh(g),bh(g,j,k)};e.onerror=function(){ih(e,j,i);var b=new jh(lh,"Error while loading script "+a);dh(g);bh(g,p,b)};Gb(e,
|
||||
{type:"text/javascript",charset:"UTF-8",src:a});f=d.getElementsByTagName("HEAD");(!f||0==f.length?d.documentElement:f[0]).appendChild(e);return g}function hh(){if(this&&this.Gc){var a=this.Gc;a&&"SCRIPT"==a.tagName&&ih(a,j,this.rb)}}function ih(a,b,c){c!=k&&w.clearTimeout(c);a.onload=aa;a.onerror=aa;a.onreadystatechange=aa;b&&window.setTimeout(function(){Pb(a)},0)}var lh=0,kh=1;function jh(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);qa.call(this,c);this.code=a}B(jh,qa);function mh(a){this.b=new Tc(a);this.a="jsonp";this.rb=5E3}var nh=0;function oh(a,b){w._callbacks_[a]&&(b?delete w._callbacks_[a]:w._callbacks_[a]=aa)};function ph(a){var b=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(b){var c=[],d=b[2].charCodeAt(0),e;for(e=b[1].charCodeAt(0);e<=d;++e)c.push(a.replace(b[0],String.fromCharCode(e)));return qh(za(c,ph))}return function(b){return b===k?h:a.replace("{z}",b.n).replace("{x}",b.x).replace("{y}",b.y)}}function qh(a){return function(b){if(b!==k){var c=ub(b.hash(),a.length);return a[c](b)}}}
|
||||
function rh(a,b){return function(c){if(c!==k)return c=xf(b,c),Oc([a,"&","BBOX","=",encodeURIComponent(String([c.h,c.k,c.m,c.j].join()))])}}function sh(){}function th(a,b){return function(c){return c===k?h:b(a(c))}};function uh(a,b,c){qe.call(this,a);this.f=b;this.b=new Image;c!==k&&(this.b.crossOrigin=c);this.e={};this.d=k}B(uh,qe);uh.prototype.F=function(a){if(x(a)){var b=y(a);if(b in this.e)return this.e[b];a=Ab(this.e)?this.b:this.b.cloneNode(p);return this.e[b]=a}return this.b};uh.prototype.c=q("f");uh.prototype.g=function(){this.a=3;D(this.d,I);this.d=k;J(this,"change")};uh.prototype.i=function(){this.a=2;D(this.d,I);this.d=k;J(this,"change")};function vh(a){Mg.call(this);this.d=x(a)?a:512}B(vh,Mg);vh.prototype.ya=function(a){for(var b,c;this.U()>this.d&&!(b=this.a.T,c=b.S.n.toString(),c in a&&a[c].contains(b.S));)Ng(this)};function wh(a){Cf.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.$=x(a.$)?a.$:sh;this.r=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.b=new vh}B(wh,Cf);wh.prototype.d=function(){return this.b.U()>this.b.d};wh.prototype.ya=function(a){this.b.ya(a)};wh.prototype.a=function(a){var b=a.toString();if(Kg(this.b,b))return this.b.get(b);var c=this.$(a);x(c)?(a=new uh(a,c,this.r),this.b.set(b,a)):a=k;return a};function xh(a){var b=Array(a.maxZoom+1),c;for(c=0;c<=a.maxZoom;++c)b[c]=2*Me/(256<<c);wf.call(this,{extent:Ne,origin:new K(-Me,Me),resolutions:b,tileSize:new Xd(256,256)})}B(xh,wf);xh.prototype.c=function(a,b,c){for(var d=a.x,e=a.y,a=a.n,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new ve(d,e,d,e);if(b.call(c,a,f))break}};var yh={ve:"Aerial",we:"AerialWithLabels",Qe:"Road",Oe:"OrdnanceSurvey",Ce:"CollinsBart"};
|
||||
function zh(a){wh.call(this,{projection:He("EPSG:3857")});this.ad=x(a.culture)?a.culture:"en-us";this.e=p;var b=new Tc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new mh(b),a={include:"ImageryProviders",key:a.key},c=na(this.i,this),a=a||k,d="_"+(nh++).toString(36)+pa().toString(36);w._callbacks_||(w._callbacks_={});var e=b.b.O();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&jd(e,f,a[f]);c&&(w._callbacks_[d]=function(a){oh(d,j);c.apply(h,arguments)},jd(e,b.a,"_callbacks_."+
|
||||
d));f=gh(e.toString(),{timeout:b.rb,bc:j});f.a.push([k,function(){oh(d,p)},h]);f.fa&&ch(f)}B(zh,wh);
|
||||
zh.prototype.i=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new xh({maxZoom:d,tileSize:new Xd(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.$=th(function(a){if(a.n<c||d<a.n)return k;var b=1<<a.n,e=-a.y-1;return 0>e||b<=e?k:new O(a.n,ub(a.x,b),e)},qh(za(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.ad);return function(a){return a===k?h:c.replace("{quadkey}",pe(a))}})));var f=Je(He("EPSG:4326"),this.g);this.Na=
|
||||
za(b.imageryProviders,function(a){var b=a.attribution,c={};D(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new $d(a[1],a[0],a[3],a[2])).transform(f),g,i;for(g=b;g<=d;++g)i=g.toString(),b=yf(e,a,e.a[g]),i in c?c[i].push(b):c[i]=[b]});return new Te(b,c)});this.e=j;J(this,"load")};zh.prototype.c=q("e");function X(a){L.call(this);this.a=k;Ah&&(H(this,Rd("projection"),this.o,p,this),this.G=navigator.geolocation.watchPosition(na(this.B,this),na(this.C,this),a))}B(X,L);X.prototype.p=function(){navigator.geolocation.clearWatch(this.G);X.s.p.call(this)};X.prototype.o=function(){var a=this.c();a!=k&&(this.b=Je(He("EPSG:4326"),a),this.a===k||this.set("position",this.b(this.a)))};var Ah="geolocation"in navigator;
|
||||
X.prototype.B=function(a){a=a.coords;this.set("accuracy",a.accuracy);this.set("altitude",a.altitude===k?h:a.altitude);this.set("altitudeAccuracy",a.altitudeAccuracy===k?h:a.altitudeAccuracy);this.set("heading",a.heading===k?h:a.heading*Math.PI/180);this.a=new K(a.longitude,a.latitude);this.set("position",this.b(this.a));this.set("speed",a.speed===k?h:a.speed)};X.prototype.C=function(){};X.prototype.d=function(){return this.get("accuracy")};X.prototype.getAccuracy=X.prototype.d;X.prototype.e=function(){return this.get("altitude")};
|
||||
X.prototype.getAltitude=X.prototype.e;X.prototype.f=function(){return this.get("altitudeAccuracy")};X.prototype.getAltitudeAccuracy=X.prototype.f;X.prototype.g=function(){return this.get("heading")};X.prototype.getHeading=X.prototype.g;X.prototype.r=function(){return this.get("position")};X.prototype.getPosition=X.prototype.r;X.prototype.c=function(){return this.get("projection")};X.prototype.getProjection=X.prototype.c;X.prototype.i=function(){return this.get("speed")};X.prototype.getSpeed=X.prototype.i;
|
||||
X.prototype.z=function(a){this.set("projection",a)};X.prototype.setProjection=X.prototype.z;X.prototype.b=function(a){return a};function Bh(a){var b=Jb("DIV",{"class":"ol-mouse-position"});uf.call(this,{element:b,map:a.map,target:a.target});this.o=a.projection;this.g=a.coordinateFormat;this.Z=x(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.r=Ke;this.d=this.e=this.z=k}B(Bh,uf);Bh.prototype.G=function(a){a=a.d;a===k?this.c=k:this.c=a.q.projection;Ch(this,this.e)};Bh.prototype.B=function(a){a=zc(a,this.b.b);a=new bf(a.x,a.y);Ch(this,a);this.e=a};Bh.prototype.C=function(){Ch(this,k);this.e=k};
|
||||
Bh.prototype.a=function(a){this.d!==k&&(D(this.d,I),this.d=k);Bh.s.a.call(this,a);if(a!==k){var b=a.b;this.d=[H(b,"mousemove",this.B,p,this),H(b,"mouseout",this.C,p,this),H(a,"postrender",this.G,p,this)]}};function Ch(a,b){var c=a.Z;if(b!==k){a.z!=a.c&&(a.r=x(a.o)?Je(a.c,a.o):Ke,a.z=a.c);var d=df(a.b,b);d!==k&&(d=a.r(d),c=x(a.g)?a.g(d):d.toString())}if(!x(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};function Dh(){this.a={}}B(Dh,Gf);Dh.prototype.b=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};Dh.prototype.oa=function(a){if("key"==a.type){var b=this.a[a.a.Ta];b&&(b(),a.w())}};function Eh(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=new ActiveXObject("MSXML2.DOMDocument");if(b){b.resolveExternals=p;b.validateOnParse=p;try{b.setProperty("ProhibitDTD",j),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");};function Fh(){}function Gh(a,b,c){c||(c={});var d=a.D[b.namespaceURI]||a.D[a.a];if(d){var e=b.localName||b.nodeName.split(":").pop();(d=d[e]||d["*"])&&d.apply(a,[b,c])}}function Z(a,b,c){c||(c={});for(var b=b.childNodes,d,e=0,f=b.length;e<f;++e)d=b[e],1==d.nodeType&&Gh(a,d,c)}function $(a){var b="";if(a)for(a=a.firstChild;a;a=a.nextSibling)switch(a.nodeType){case 3:case 4:b+=a.nodeValue}return b}
|
||||
Fh.prototype.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else{var e=k;if(a.getAttributeNodeNS)e=a.getAttributeNodeNS(b,c);else for(var a=a.attributes,f,g,i=0,r=a.length;i<r;++i)if(f=a[i],f.namespaceURI==b&&(g=f.prefix?f.prefix+":"+c:c,g==f.nodeName)){e=f;break}if(b=e)d=b.nodeValue}return d};function Hh(){function a(a,b){b.ke.push($(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),vf:a.getAttribute("locator"),ke:[]};b.gc.push(e);Z(this,a,e)}this.D={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];Z(this,a,b.exceptionReport)},ServiceException:function(a,b){var e={};e.code=a.getAttribute("code");e.locator=a.getAttribute("locator");e.text=$(a);b.exceptions.push(e)}},"http://www.opengis.net/ows":{ExceptionReport:function(a,
|
||||
b){b.Ef=p;b.Bb={version:a.getAttribute("version"),language:a.getAttribute("language"),gc:[]};Z(this,a,b.Bb)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}},"http://www.opengis.net/ows/1.1":{ExceptionReport:function(a,b){b.Bb={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),gc:[]};Z(this,a,b.Bb)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}}}B(Hh,Fh);
|
||||
Hh.prototype.Ia=function(a){"string"==typeof a&&(a=Eh(a));var b={exceptionReport:k};a&&Z(this,a,b);return b};function Ih(a){this.c=a=a||{};this.Qa=a.Qa||k;this.version=a.version;this.profile=a.profile;a.Ma!==h?this.Ma=a.Ma:this.Ma=p;a.Tb!==h?this.Tb=a.Tb:this.Tb=p}
|
||||
Ih.prototype.Ia=function(a,b){"string"==typeof a&&(a=Eh(a));var c;c=a.documentElement;var d;c?(d=this.version,d||(d=c.getAttribute("version"),d||(d=this.Qa))):d=this.version||this.Qa;d=(c=d)||this.Qa;var e=this.profile?"_"+this.profile:"";if(!this.a||this.a.VERSION!=d){var f=this.b["v"+d.replace(/\./g,"_")+e];if(!f&&(""!==e&&this.Ma&&(e="",f=this.b["v"+d.replace(/\./g,"_")+e]),!f))throw"Can't find a parser for version "+d+e;this.a=new f(this.c)}this.a=this.a;d=this.a.Ia(a,b);e=this.a.fd||k;e!==k&&
|
||||
d[e]===h&&(d.error=(new Hh).Ia(a));d.version=c;return d};function Jh(){this.a="http://www.opengis.net/wms";this.fd="service";this.D={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};Z(this,a,b.service)},Name:function(a,b){b.name=$(a)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},BoundingBox:function(a){var b={};b.bbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))];a={x:parseFloat(a.getAttribute("resx")),y:parseFloat(a.getAttribute("resy"))};
|
||||
if(!isNaN(a.x)||!isNaN(a.y))b.Cf=a;return b},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ContactInformation:function(a,b){b.Zc={};Z(this,a,b.Zc)},ContactPersonPrimary:function(a,b){b.de={};Z(this,a,b.de)},ContactPerson:function(a,b){b.xf=$(a)},ContactOrganization:function(a,b){b.wf=$(a)},ContactPosition:function(a,b){b.position=$(a)},ContactAddress:function(a,b){b.Yc={};Z(this,a,b.Yc)},AddressType:function(a,b){b.type=$(a)},Address:function(a,
|
||||
b){b.of=$(a)},City:function(a,b){b.city=$(a)},StateOrProvince:function(a,b){b.Df=$(a)},PostCode:function(a,b){b.zf=$(a)},Country:function(a,b){b.country=$(a)},ContactVoiceTelephone:function(a,b){b.yf=$(a)},ContactFacsimileTelephone:function(a,b){b.qf=$(a)},ContactElectronicMailAddress:function(a,b){b.pf=$(a)},Fees:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.rf=c)},AccessConstraints:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.nf=c)},Capability:function(a,b){b.va={vc:[],layers:[]};
|
||||
Z(this,a,b.va)},Request:function(a,b){b.Ec={};Z(this,a,b.Ec)},GetCapabilities:function(a,b){b.qd={I:[]};Z(this,a,b.qd)},Format:function(a,b){da(b.I)?b.I.push($(a)):b.sf=$(a)},DCPType:function(a,b){Z(this,a,b)},HTTP:function(a,b){Z(this,a,b)},Get:function(a,b){b.get={};Z(this,a,b.get);b.href||(b.href=b.get.href)},Post:function(a,b){b.ee={};Z(this,a,b.ee);b.href||(b.href=b.get.href)},GetMap:function(a,b){b.mc={I:[]};Z(this,a,b.mc)},GetFeatureInfo:function(a,b){b.lc={I:[]};Z(this,a,b.lc)},Exception:function(a,
|
||||
b){b.gd={I:[]};Z(this,a,b.gd)},Layer:function(a,b){var c,d;b.va?(d=b.va,c=b):d=b;var e=a.getAttributeNode("queryable"),f=e&&e.specified?a.getAttribute("queryable"):k,g=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):k,i=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):k,r=a.getAttribute("noSubsets"),n=a.getAttribute("fixedWidth"),l=a.getAttribute("fixedHeight"),e=c||{},f={vc:[],Ub:c?[].concat(c.Ub):[],R:{},Yd:[],bbox:{},fb:e.fb,wa:{},zb:{},Ud:{},$a:[],
|
||||
ge:f&&""!==f?"1"===f||"true"===f:e.ge||p,Vc:g!==k?parseInt(g,10):e.Vc||0,ce:i?"1"===i||"true"===i:e.ce||p,ae:r!==k?"1"===r||"true"===r:e.ae||p,ld:n!==k?parseInt(n,10):e.ld||0,kd:l!==k?parseInt(l,10):e.kd||0,Pb:e.Pb,Ob:e.Ob,attribution:e.attribution};c&&(Cb(f.R,e.R),Cb(f.bbox,e.bbox),Cb(f.wa,e.wa),Cb(f.zb,e.zb));b.vc.push(f);f.va=d;Z(this,a,f);delete f.va;f.name&&(c=f.name.split(":"),g=d.Ec,e=g.lc,0<c.length&&(f.prefix=c[0]),d.layers.push(f),f.I===h&&(f.I=g.mc.I),f.Vd===h&&e&&(f.Vd=e.I))},Attribution:function(a,
|
||||
b){b.attribution={};Z(this,a,b.attribution)},LogoURL:function(a,b){b.Xd={width:a.getAttribute("width"),height:a.getAttribute("height")};Z(this,a,b.Xd)},Style:function(a,b){var c={};b.Ub.push(c);Z(this,a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;Z(this,a,c)},MetadataURL:function(a,b){var c={type:a.getAttribute("type")};b.Yd.push(c);Z(this,a,c)},DataURL:function(a,b){b.cd={};Z(this,a,b.cd)},FeatureListURL:function(a,b){b.jd={};Z(this,
|
||||
a,b.jd)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};Z(this,a,d);b.zb[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.Ud[c]=$(a)},KeywordList:function(a,b){Z(this,a,b)},SRS:function(a,b){b.R[$(a)]=j}}}}B(Jh,Fh);Jh.prototype.Ia=function(a){"string"==typeof a&&(a=Eh(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Gh(this,a,b);return b};function Kh(){Jh.call(this);var a=this.D["http://www.opengis.net/wms"].BoundingBox;Cb(this.D["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){Z(this,a,c)},Keyword:function(a,c){c.$a&&c.$a.push({value:$(a)})},DescribeLayer:function(a,c){c.dd={I:[]};Z(this,a,c.dd)},GetLegendGraphic:function(a,c){c.rd={I:[]};Z(this,a,c.rd)},GetStyles:function(a,c){c.sd={I:[]};Z(this,a,c.sd)},PutStyles:function(a,c){c.fe={I:[]};Z(this,a,c.fe)},UserDefinedSymbolization:function(a,c){var d={Ff:1==parseInt(a.getAttribute("SupportSLD"),
|
||||
10),Gf:1==parseInt(a.getAttribute("UserLayer"),10),Hf:1==parseInt(a.getAttribute("UserStyle"),10),Bf:1==parseInt(a.getAttribute("RemoteWFS"),10)};c.If=d},LatLonBoundingBox:function(a,c){c.fb=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))]},BoundingBox:function(b,c){var d=a.apply(this,arguments);d.R=b.getAttribute("SRS");c.bbox[d.R]=d},ScaleHint:function(a,c){var d=parseFloat(a.getAttribute("min")),e=parseFloat(a.getAttribute("max")),
|
||||
f=Math.pow(2,0.5),g=25.4/0.28;0!==d&&(c.Ob=parseFloat(39.37*(d/f)*g));e!=Number.POSITIVE_INFINITY&&(c.Pb=parseFloat(39.37*(e/f)*g))},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),se:a.getAttribute("unitSymbol")};c.wa[d.name]=d},Extent:function(a,c){var d=a.getAttribute("name").toLowerCase();d in c.dimensions&&(d=c.wa[d],d.$d="1"===a.getAttribute("nearestValue"),d.Zd="1"===a.getAttribute("multipleValues"),d.bd="1"===a.getAttribute("current"),
|
||||
d["default"]=a.getAttribute("default")||"",d.te=$(a).split(","))}})}B(Kh,Jh);function Lh(){Kh.call(this);this.version="1.1.0";Cb(this.D["http://www.opengis.net/wms"],{SRS:function(a,b){for(var c=$(a).split(/ +/),d=0,e=c.length;d<e;d++)b.R[c[d]]=j}})}B(Lh,Kh);function Mh(){Kh.call(this);this.version="1.1.1";Cb(this.D["http://www.opengis.net/wms"],{SRS:function(a,b){b.R[$(a)]=j}})}B(Mh,Kh);function Nh(){Mh.call(this);this.profile="WMSC";Cb(this.D["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.ue={le:[]};Z(this,a,b.ue)},TileSet:function(a,b){var c={R:{},bbox:{},resolutions:[]};Z(this,a,c);b.le.push(c)},Resolutions:function(a,b){for(var c=$(a).split(" "),d=0,e=c.length;d<e;d++)""!==c[d]&&b.resolutions.push(parseFloat(c[d]))},Width:function(a,b){b.width=parseInt($(a),10)},Height:function(a,b){b.height=parseInt($(a),10)},Layers:function(a,b){b.layers=$(a)},Styles:function(a,
|
||||
b){b.Ub=$(a)}})}B(Nh,Mh);function Oh(){Jh.call(this);var a=this.D["http://www.opengis.net/wms"].BoundingBox;Cb(this.D["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){Z(this,a,c)},LayerLimit:function(a,c){c.uf=parseInt($(a),10)},MaxWidth:function(a,c){c.maxWidth=parseInt($(a),10)},MaxHeight:function(a,c){c.maxHeight=parseInt($(a),10)},BoundingBox:function(b,c){var d=a.apply(this,arguments);d.R=b.getAttribute("CRS");c.bbox[d.R]=d},CRS:function(a,c){this.D["http://www.opengis.net/wms"].SRS.apply(this,arguments)},
|
||||
EX_GeographicBoundingBox:function(a,c){c.fb=[];Z(this,a,c.fb)},westBoundLongitude:function(a,c){c[0]=$(a)},eastBoundLongitude:function(a,c){c[2]=$(a)},southBoundLatitude:function(a,c){c[1]=$(a)},northBoundLatitude:function(a,c){c[3]=$(a)},MinScaleDenominator:function(a,c){c.Ob=parseFloat($(a)).toPrecision(16)},MaxScaleDenominator:function(a,c){c.Pb=parseFloat($(a)).toPrecision(16)},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),se:a.getAttribute("unitSymbol"),
|
||||
$d:"1"===a.getAttribute("nearestValue"),Zd:"1"===a.getAttribute("multipleValues"),"default":a.getAttribute("default")||"",bd:"1"===a.getAttribute("current"),te:$(a).split(",")};c.wa[d.name]=d},Keyword:function(a,c){var d={value:$(a),Jf:a.getAttribute("vocabulary")};c.$a&&c.$a.push(d)}});this.D.sld={UserDefinedSymbolization:function(a,c){this.D["http://www.opengis.net/wms"].jf.apply(this,arguments);var d=a.getAttribute("InlineFeature");c.userSymbols.tf=1==parseInt(d,10);d=a.getAttribute("RemoteWCS");
|
||||
c.userSymbols.Af=1==parseInt(d,10)},DescribeLayer:function(a,c){this.D["http://www.opengis.net/wms"].Ke.apply(this,arguments)},GetLegendGraphic:function(a,c){this.D["http://www.opengis.net/wms"].Le.apply(this,arguments)}}}B(Oh,Jh);function Ph(a){a=a||{};a.defaultVersion="1.1.1";this.b={};this.b.v1_1_0=Lh;this.b.v1_1_1=Mh;this.b.v1_1_1_WMSC=Nh;this.b.v1_3_0=Oh;Ih.call(this,a)}B(Ph,Ih);function Qh(a,b){qe.call(this,a);this.a=2;this.e=a;this.d=b.b;this.b={}}B(Qh,qe);Qh.prototype.F=function(a){a=x(a)?y(a):-1;if(a in this.b)return this.b[a];var b=this.d,c=Lb("CANVAS");c.width=b.width;c.height=b.height;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b.width+0.5,b.height+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.e.toString(),b.width/2,b.height/2);return this.b[a]=c};
|
||||
function Rh(a){Cf.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.b=new vh}B(Rh,Cf);Rh.prototype.d=function(){return this.b.U()>this.b.d};Rh.prototype.ya=function(a){this.b.ya(a)};Rh.prototype.a=function(a){var b=a.toString();if(Kg(this.b,b))return this.b.get(b);a=new Qh(a,this.tileGrid);this.b.set(b,a);return a};function Sh(a){var b=a.projection||He("EPSG:3857"),c=sh;x(a.$)?c=a.$:x(a.urls)?c=qh(za(a.urls,ph)):x(a.url)&&(c=ph(a.url));var d=new xh({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?th(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,i=-b.y-1;if(0>i||c<=i)return k;c=ub(b.x,c);return!Zd(xf(d,new O(b.n,c,b.y)),e)?k:new O(b.n,c,i)},c):th(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,d=-b.y-1;return 0>d||c<=d?k:new O(b.n,ub(b.x,c),d)},c);wh.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
|
||||
extent:a.extent,projection:b,tileGrid:d,$:c})}B(Sh,wh);function Th(){Sh.call(this,{attributions:[new Te('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new Te('Data © <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}B(Th,Sh);
|
||||
function Uh(){Sh.call(this,{attributions:[new Te('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new Te("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}B(Uh,Sh);function Vh(){Sh.call(this,{attributions:[new Te('© <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}B(Vh,Sh);function Wh(a){var b=Ge(a.projection),c=b.A(),c=x(a.extent)?a.extent:c,d=x(a.version)?a.version:"1.3",e={SERVICE:"WMS",VERSION:d,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:j};e["1.3"<=d?"CRS":"SRS"]=b.a;Cb(e,a.params);if(a.url)var f=Oc(Rc([a.url],e)),d=function(a,b){return Sc(f,"BBOX",[a.h,a.k,a.m,a.j].join(),"HEIGHT",b.height,"WIDTH",b.width)};else d=gg;hg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:c,projection:b,resolutions:a.resolutions,Da:d});this.b=
|
||||
k;this.e=1.5}B(Wh,hg);Wh.prototype.F=function(a,b){var c=b;this.a===k||(c=this.a[pf(this.a,c)]);var b=c,c=this.b,d;if(d=c!==k)if(d=c.e==b)d=c.A(),d=d.h<=a.h&&a.m<=d.m&&d.k<=a.k&&a.j<=d.j;if(d)return c;var c=a=new $d(a.h,a.k,a.m,a.j),e=this.e;d=c.b()/2*(e-1);e=c.a()/2*(e-1);c.h-=d;c.k-=e;c.m+=d;c.j+=e;return this.b=ig(this,a,b,new Xd(a.b()/b,a.a()/b))};var Xh={Te:"background",Ue:"labels",Ve:"lines",Xe:"2010",Ye:"2011",Ze:"2011-labels",$e:"2011-lines",af:"2011-lite",bf:"background",cf:"hybrid",df:"labels",ef:"lines",ff:"lite"},Yh={Se:"terrain",We:"toner",kf:"watercolor"},Zh={terrain:{type:"jpg",tc:4,maxZoom:18},toner:{type:"png",tc:0,maxZoom:20},watercolor:{type:"jpg",tc:3,maxZoom:16}};
|
||||
function $h(a){var b=new Te('Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'),c=a.provider;x(a.flavor)&&(c+="-"+a.flavor);a=Zh[a.provider];Sh.call(this,{attributions:[b],maxZoom:a.maxZoom,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}B($h,Sh);function ai(a){var b=a.imageExtent,c=a.imageSize,d=b.a()/c.height,e=a.url;hg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Da:function(){return e},resolutions:[d]});this.b=ig(this,b,d,c)}B(ai,hg);ai.prototype.F=function(a){return Zd(a,this.b.A())?this.b:k};var bi=[];A("grid",function(a){bi.push(a)});function ci(a){wh.call(this,{projection:He("EPSG:3857")});this.e=p;a=this.i=gh(a.uri,{bc:j});a.a.push([this.o,k,this]);a.fa&&ch(a)}B(ci,wh);
|
||||
ci.prototype.o=function(){var a=bi.pop(),b=He("EPSG:4326"),c,d;x(a.bounds)?(c=a.bounds,c=new $d(c[0],c[1],c[2],c[3]),this.f=d=c.transform(Je(b,this.g))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new xh({maxZoom:f});this.tileGrid=g;this.$=th(function(a){if(a.n<e||f<a.n)return k;var b=1<<a.n,c=-a.y-1;if(0>c||b<=c)return k;b=ub(a.x,b);return d!==k&&!Zd(xf(g,new O(a.n,b,a.y)),d)?k:new O(a.n,b,c)},qh(za(a.tiles,ph)));if(x(a.attribution)){b=d===k?b.A():d;c={};var i,r;for(i=e;i<=f;++i)r=i.toString(),c[r]=
|
||||
[yf(g,b,g.a[i])];this.Na=[new Te(a.attribution,c)]}this.e=j;J(this,"load")};ci.prototype.c=q("e");function di(a){var b=Ge(a.projection),c=b.A(),d=x(a.extent)?a.extent:c,e=x(a.version)?a.version:"1.3",f,g;if(x(a.tileGrid))g=a.tileGrid;else{var i=a.maxZoom;g=b.A();for(var r=Math.max(g.m-g.h,g.j-g.k),n=x(h)?h:new Xd(256,256),i=Array((x(i)?i:18)+1),l=0,m=i.length;l<m;++l)i[l]=r/(n.width<<l);g=new wf({origin:be(g),resolutions:i,tileSize:n})}f=g;var t={SERVICE:"WMS",VERSION:e,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:j};g=f.b;t.WIDTH=g.width;t.HEIGHT=g.height;t["1.3"<=e?"CRS":"SRS"]=
|
||||
b.a;Cb(t,a.params);a.urls?(e=za(a.urls,function(a){a=Oc(Rc([a],t));return rh(a,f)}),e=qh(e)):a.url?(e=Oc(Rc([a.url],t)),e=rh(e,f)):e=sh;wh.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:f,projection:b,$:th(function(a){if(f.a.length<=a.n)return k;var b=a.x,e=xf(f,a);d.h===c.h&&d.m===c.m&&(e=Math.ceil((d.m-d.h)/(e.m-e.h)),b=ub(b,e),e=xf(f,new O(a.n,b,a.y)));return!Zd(e,d)?k:new O(a.n,b,a.y)},e)})}B(di,wh);A("goog.require",aa);function ei(a){W.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}B(ei,W);A("ol.AnchoredElement",ei);A("ol.AnchoredElementPositioning",Zg);Zg.BOTTOM_LEFT="bottom-left";Zg.BOTTOM_RIGHT="bottom-right";Zg.TOP_LEFT="top-left";Zg.TOP_RIGHT="top-right";A("ol.Attribution",Te);A("ol.BingMapsStyle",yh);yh.AERIAL="Aerial";yh.AERIAL_WITH_LABELS="AerialWithLabels";yh.COLLINS_BART="CollinsBart";yh.ORDNANCE_SURVEY="OrdnanceSurvey";yh.ROAD="Road";
|
||||
A("ol.Collection",M);M.prototype.clear=M.prototype.clear;M.prototype.forEach=M.prototype.forEach;M.prototype.getArray=M.prototype.md;M.prototype.getAt=M.prototype.nd;M.prototype.getLength=M.prototype.hc;M.prototype.insertAt=M.prototype.Xa;M.prototype.pop=M.prototype.xc;M.prototype.push=M.prototype.push;M.prototype.removeAt=M.prototype.Dc;M.prototype.setAt=M.prototype.ie;A("ol.Coordinate",K);K.toStringHDMS=function(a){return x(a)?Ic(a.y,"NS")+" "+Ic(a.x,"EW"):""};A("ol.Extent",$d);
|
||||
A("ol.Geolocation",X);function fi(a){V.call(this,{attributionControl:a.attributionControl,doubleClickZoom:a.doubleClickZoom,dragPan:a.dragPan,interactions:a.interactions,keyboard:a.keyboard,keyboardPanOffset:a.keyboardPanOffset,layers:a.layers,mouseWheelZoom:a.mouseWheelZoom,mouseWheelZoomDelta:a.mouseWheelZoomDelta,renderer:a.renderer,renderers:a.renderers,shiftDragZoom:a.shiftDragZoom,target:a.target,view:a.view,zoomControl:a.zoomControl,zoomDelta:a.zoomDelta})}B(fi,V);A("ol.Map",fi);
|
||||
V.prototype.addPreRenderFunction=V.prototype.B;V.prototype.addPreRenderFunctions=V.prototype.Kc;V.prototype.getInteractions=V.prototype.Mc;cf.prototype.getCoordinate=cf.prototype.b;A("ol.Object",L);L.prototype.bindTo=L.prototype.Sc;L.prototype.changed=L.prototype.Xc;L.prototype.get=L.prototype.get;L.prototype.notify=L.prototype.wc;L.prototype.set=L.prototype.set;L.prototype.setOptions=L.prototype.Ic;L.prototype.setValues=L.prototype.hb;L.prototype.unbind=L.prototype.Yb;L.prototype.unbindAll=L.prototype.re;
|
||||
A("ol.Projection",Q);Q.addProjection=De;Q.getFromCode=He;Q.getTransform=Je;Q.getTransformFromCodes=Le;Q.transform=function(a,b,c){return Je(b,c)(a)};Q.transformWithCodes=function(a,b,c){return Le(b,c)(a)};Q.prototype.getCode=Q.prototype.b;Q.prototype.getExtent=Q.prototype.A;Q.prototype.getUnits=Q.prototype.c;A("ol.ProjectionUnits",xe);xe.DEGREES="degrees";xe.METERS="m";A("ol.RendererHint",Xg);Xg.CANVAS="canvas";Xg.DOM="dom";Xg.WEBGL="webgl";A("ol.RendererHints",Wg);Wg.createFromQueryData=Wg.$c;
|
||||
function gi(a){T.call(this,{center:a.center,maxResolution:a.maxResolution,numZoomLevels:a.numZoomLevels,projection:a.projection,resolution:a.resolution,resolutions:a.resolutions,rotation:a.rotation,zoom:a.zoom,zoomFactor:a.zoomFactor})}B(gi,T);A("ol.View2D",gi);A("ol.animation",Ze);Ze.bounce=Ze.Tc;Ze.pan=Ze.jb;Ze.rotate=Ze.rotate;function hi(a){Df.call(this,{map:a.map,target:a.target})}B(hi,Df);A("ol.control.Attribution",hi);Df.prototype.setMap=Df.prototype.a;
|
||||
function ii(a){Bh.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}B(ii,Bh);A("ol.control.MousePosition",ii);Bh.prototype.setMap=Bh.prototype.a;function ji(a){Ff.call(this,{delta:a.delta,map:a.map,target:a.target})}B(ji,Ff);A("ol.control.Zoom",ji);Ff.prototype.setMap=Ff.prototype.a;A("ol.interaction.Keyboard",Dh);Dh.prototype.addCallback=Dh.prototype.b;
|
||||
function ki(a){R.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(ki,jg);A("ol.layer.ImageLayer",ki);function li(a){R.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(li,kg);A("ol.layer.TileLayer",li);A("ol.parser.ogc.WMSCapabilities",Ph);Ph.prototype.read=Ph.prototype.Ia;A("ol.source.BingMaps",zh);
|
||||
function mi(a){Rh.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}B(mi,Rh);A("ol.source.DebugTileSource",mi);A("ol.source.MapQuestOSM",Th);A("ol.source.MapQuestOpenAerial",Uh);A("ol.source.OpenStreetMap",Vh);A("ol.source.SingleImageWMS",Wh);A("ol.source.Stamen",$h);A("ol.source.StamenFlavor",Xh);Xh.TERRAIN_BACKGROUND="background";Xh.TERRAIN_LABELS="labels";Xh.TERRAIN_LINES="lines";Xh.TONER_2010="2010";Xh.TONER_2011="2011";Xh.TONER_2011_LABELS="2011-labels";
|
||||
Xh.TONER_2011_LINES="2011-lines";Xh.TONER_2011_LITE="2011-lite";Xh.TONER_BACKGROUND="background";Xh.TONER_HYBRID="hybrid";Xh.TONER_LABELS="labels";Xh.TONER_LINES="lines";Xh.TONER_LITE="lite";A("ol.source.StamenProvider",Yh);Yh.TERRAIN="terrain";Yh.TONER="toner";Yh.WATERCOLOR="watercolor";A("ol.source.StaticImage",ai);A("ol.source.TileJSON",ci);A("ol.source.TiledWMS",di);function ni(a){wf.call(this,{extent:a.extent,origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize})}
|
||||
B(ni,wf);A("ol.tilegrid.TileGrid",ni);function oi(a){xh.call(this,{maxZoom:a.maxZoom})}B(oi,xh);A("ol.tilegrid.XYZ",oi);Ze.ze={};Ze.Pe={};Ze.Re={};Ze.mf={};})();
|
||||
function ph(a,b){this.a=[];this.f=a;this.e=b||k}s=ph.prototype;s.ga=m;s.Ea=m;s.La=0;s.Cc=m;s.Tc=m;s.Sc=0;s.bc=function(a,b){qh(this,a,b);this.La--;0==this.La&&this.ga&&rh(this)};function qh(a,b,c){a.ga=i;a.b=c;a.Ea=!b;rh(a)}function sh(a){if(a.ga){if(!a.Cc)throw new th(a);a.Cc=m}}function uh(a){return za(a.a,function(a){return ga(a[1])})}
|
||||
function rh(a){a.c&&(a.ga&&uh(a))&&(v.clearTimeout(a.c),delete a.c);a.d&&(a.d.Sc--,delete a.d);for(var b=a.b,c=m,d=m;a.a.length&&0==a.La;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Ea?g:f)try{var j=f.call(e||a.e,b);y(j)&&(a.Ea=a.Ea&&(j==b||j instanceof Error),a.b=b=j);b instanceof ph&&(d=i,a.La++)}catch(l){b=l,a.Ea=i,uh(a)||(c=i)}}a.b=b;d&&a.La&&(d=b,j=ma(a.bc,a,i),f=ma(a.bc,a,m),d.a.push([j,f,h]),d.ga&&rh(d),b.Tc=i);c&&(a.c=v.setTimeout(function(){throw b;},0))}
|
||||
function th(a){pa.call(this);this.a=a}B(th,pa);th.prototype.message="Deferred has already fired";th.prototype.name="AlreadyCalledError";function vh(a,b){var c=b||{},d=c.document||document,e=Qb("SCRIPT"),f={zc:e,ub:h},g=new ph(wh,f),j=k,l=c.timeout!=k?c.timeout:5E3;0<l&&(j=window.setTimeout(function(){xh(e,i);var b=new yh(zh,"Timeout reached for loading script "+a);sh(g);qh(g,m,b)},l),f.ub=j);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)xh(e,c.$b||m,j),sh(g),qh(g,i,k)};e.onerror=function(){xh(e,i,j);var b=new yh(Ah,"Error while loading script "+a);sh(g);qh(g,m,b)};Lb(e,
|
||||
{type:"text/javascript",charset:"UTF-8",src:a});f=d.getElementsByTagName("HEAD");(!f||0==f.length?d.documentElement:f[0]).appendChild(e);return g}function wh(){if(this&&this.zc){var a=this.zc;a&&"SCRIPT"==a.tagName&&xh(a,i,this.ub)}}function xh(a,b,c){c!=k&&v.clearTimeout(c);a.onload=x;a.onerror=x;a.onreadystatechange=x;b&&window.setTimeout(function(){Ub(a)},0)}var Ah=0,zh=1;function yh(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);pa.call(this,c);this.code=a}B(yh,pa);function Bh(a){this.b=new Vc(a);this.a="jsonp";this.ub=5E3}var Ch=0;function Dh(a,b){v._callbacks_[a]&&(b?delete v._callbacks_[a]:v._callbacks_[a]=x)};function Eh(a){var b=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(b){var c=[],d=b[2].charCodeAt(0),e;for(e=b[1].charCodeAt(0);e<=d;++e)c.push(a.replace(b[0],String.fromCharCode(e)));return Fh(ya(c,Eh))}return function(b){return b===k?h:a.replace("{z}",b.n).replace("{x}",b.x).replace("{y}",b.y)}}function Fh(a){return function(b){if(b!==k){var c=Fb(b.hash(),a.length);return a[c](b)}}}
|
||||
function Gh(a,b,c){return function(d){if(d!==k)return d=$f(b,d),Qc([a,"&","BBOX","=",encodeURIComponent(String(("ne"==c.substr(0,2)?[d.j,d.h,d.i,d.k]:[d.h,d.j,d.k,d.i]).join(",")))])}}function Hh(){}function Ih(a,b){return function(c){return c===k?h:b(a(c))}};function Jh(a,b,c){ve.call(this,a);this.e=b;this.a=new Image;c!==k&&(this.a.crossOrigin=c);this.d={};this.c=k}B(Jh,ve);Jh.prototype.I=function(a){if(y(a)){var b=z(a);if(b in this.d)return this.d[b];a=Sa(this.d)?this.a:this.a.cloneNode(m);return this.d[b]=a}return this.a};Jh.prototype.ma=q("e");Jh.prototype.f=function(){this.b=3;D(this.c,I);this.c=k;J(this,"change")};Jh.prototype.g=function(){this.b=2;D(this.c,I);this.c=k;J(this,"change")};function Kh(a){Xg.call(this);this.d=y(a)?a:512}B(Kh,Xg);Kh.prototype.Ca=function(a){for(var b,c;this.Z()>this.d&&!(b=this.a.Y,c=b.X.n.toString(),c in a&&a[c].contains(b.X));)Zg(this)};function Lh(a){eg.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.ba=y(a.ba)?a.ba:Hh;this.F=y(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new Kh}B(Lh,eg);Lh.prototype.f=function(){return this.a.Z()>this.a.d};Lh.prototype.Ca=function(a){this.a.Ca(a)};Lh.prototype.b=function(a){var b=a.toString();if(Vg(this.a,b))return Yg(this.a,b);var c=this.ba(a);y(c)?(a=new Jh(a,c,this.F),$g(this.a,b,a)):a=k;return a};
|
||||
Lh.prototype.s=function(a){a=a.toString();Vg(this.a,a)&&Yg(this.a,a)};function Mh(a){var b=Array(a.maxZoom+1),c,d=2*Rf/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);Zf.call(this,{origin:new K(-Rf,Rf),resolutions:b,tileSize:new $d(256,256)})}B(Mh,Zf);Mh.prototype.c=function(a,b,c){for(var d=a.x,e=a.y,a=a.n,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new te(d,e,d,e);if(b.call(c,a,f))break}};var Nh={Xd:"Aerial",Yd:"AerialWithLabels",re:"Road",pe:"OrdnanceSurvey",de:"CollinsBart"};
|
||||
function Oh(a){Lh.call(this,{projection:Le("EPSG:3857")});this.Wc=y(a.culture)?a.culture:"en-us";this.g=m;var b=new Vc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new Bh(b),a={include:"ImageryProviders",key:a.key},c=ma(this.u,this),a=a||k,d="_"+(Ch++).toString(36)+oa().toString(36);v._callbacks_||(v._callbacks_={});var e=b.b.R();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&id(e,f,a[f]);c&&(v._callbacks_[d]=function(a){Dh(d,i);c.apply(h,arguments)},id(e,b.a,"_callbacks_."+
|
||||
d));f=vh(e.toString(),{timeout:b.ub,$b:i});f.a.push([k,function(){Dh(d,m)},h]);f.ga&&rh(f)}B(Oh,Lh);
|
||||
Oh.prototype.u=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new Mh({maxZoom:d,tileSize:new $d(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.ba=Ih(function(a){if(a.n<c||d<a.n)return k;var b=1<<a.n,e=-a.y-1;return 0>e||b<=e?k:new re(a.n,Fb(a.x,b),e)},Fh(ya(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.Wc);return function(a){return a===k?h:c.replace("{quadkey}",se(a))}})));var f=Ne(Le("EPSG:4326"),this.l);this.e=
|
||||
ya(b.imageryProviders,function(a){var b=a.attribution,c={};D(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new N(a[1],a[0],a[3],a[2])).transform(f),g,j;for(g=b;g<=d;++g)j=g.toString(),b=ag(e,a,e.a[g]),j in c?c[j].push(b):c[j]=[b]});return new ue(b,c)});this.g=i;J(this,"load")};Oh.prototype.c=q("g");function Y(a){L.call(this);this.a=k;Ph&&(H(this,Ud("projection"),this.s,m,this),this.J=navigator.geolocation.watchPosition(ma(this.F,this),ma(this.H,this),a))}B(Y,L);Y.prototype.q=function(){navigator.geolocation.clearWatch(this.J);Y.v.q.call(this)};Y.prototype.s=function(){var a=this.c();a!=k&&(this.b=Ne(Le("EPSG:4326"),a),this.a===k||this.p("position",this.b(this.a)))};var Ph="geolocation"in navigator;
|
||||
Y.prototype.F=function(a){a=a.coords;this.p("accuracy",a.accuracy);this.p("altitude",a.altitude===k?h:a.altitude);this.p("altitudeAccuracy",a.altitudeAccuracy===k?h:a.altitudeAccuracy);this.p("heading",a.heading===k?h:a.heading*Math.PI/180);this.a=new K(a.longitude,a.latitude);this.p("position",this.b(this.a));this.p("speed",a.speed===k?h:a.speed)};Y.prototype.H=function(){};Y.prototype.d=function(){return this.r("accuracy")};Y.prototype.getAccuracy=Y.prototype.d;Y.prototype.e=function(){return this.r("altitude")};
|
||||
Y.prototype.getAltitude=Y.prototype.e;Y.prototype.f=function(){return this.r("altitudeAccuracy")};Y.prototype.getAltitudeAccuracy=Y.prototype.f;Y.prototype.g=function(){return this.r("heading")};Y.prototype.getHeading=Y.prototype.g;Y.prototype.u=function(){return this.r("position")};Y.prototype.getPosition=Y.prototype.u;Y.prototype.c=function(){return this.r("projection")};Y.prototype.getProjection=Y.prototype.c;Y.prototype.l=function(){return this.r("speed")};Y.prototype.getSpeed=Y.prototype.l;
|
||||
Y.prototype.D=function(a){this.p("projection",a)};Y.prototype.setProjection=Y.prototype.D;Y.prototype.b=function(a){return a};function Qh(a){var b=Ob("DIV",{"class":"ol-mouse-position"});uf.call(this,{element:b,map:a.map,target:a.target});this.l=a.projection;this.g=a.coordinateFormat;this.J=y(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.s=Oe;this.d=this.e=this.u=k}B(Qh,uf);Qh.prototype.H=function(a){a=a.d;a===k?this.c=k:this.c=a.t.projection;Rh(this,this.e)};Qh.prototype.D=function(a){a=Fc(a,this.b.b);a=new Ze(a.x,a.y);Rh(this,a);this.e=a};Qh.prototype.F=function(){Rh(this,k);this.e=k};
|
||||
Qh.prototype.a=function(a){this.d!==k&&(D(this.d,I),this.d=k);Qh.v.a.call(this,a);if(a!==k){var b=a.b;this.d=[H(b,"mousemove",this.D,m,this),H(b,"mouseout",this.F,m,this),H(a,"postrender",this.H,m,this)]}};function Rh(a,b){var c=a.J;if(b!==k){a.u!=a.c&&(a.s=y(a.l)?Ne(a.c,a.l):Oe,a.u=a.c);var d=af(a.b,b);d!==k&&(d=a.s(d),c=y(a.g)?a.g(d):d.toString())}if(!y(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};function Sh(){this.a={}}B(Sh,xf);Sh.prototype.b=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};Sh.prototype.na=function(a){if("key"==a.type){var b=this.a[a.a.$a];b&&(b(),a.B())}};function Th(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=new ActiveXObject("MSXML2.DOMDocument");if(b){b.resolveExternals=m;b.validateOnParse=m;try{b.setProperty("ProhibitDTD",i),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");};function Uh(){this.wa={Fc:/^\s*|\s*$/g,a:/\s*/g,Dc:/\s+/,Ec:/\s*,\s*/g}}function Vh(a,b,c){c||(c={});var d=a.w[b.namespaceURI]||a.w[a.a];if(d){var e=b.localName||b.nodeName.split(":").pop();(d=d[e]||d["*"])&&d.apply(a,[b,c])}}function Z(a,b,c){c||(c={});for(var b=b.childNodes,d,e=0,f=b.length;e<f;++e)d=b[e],1==d.nodeType&&Vh(a,d,c)}function $(a){var b="";if(a)for(a=a.firstChild;a;a=a.nextSibling)switch(a.nodeType){case 3:case 4:b+=a.nodeValue}return b}
|
||||
Uh.prototype.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else{var e=k;if(a.getAttributeNodeNS)e=a.getAttributeNodeNS(b,c);else for(var a=a.attributes,f,g,j=0,l=a.length;j<l;++j)if(f=a[j],f.namespaceURI==b&&(g=f.prefix?f.prefix+":"+c:c,g==f.nodeName)){e=f;break}if(b=e)d=b.nodeValue}return d};function Wh(){function a(a,b){b.Qd.push($(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),Re:a.getAttribute("locator"),Qd:[]};b.ec.push(e);Z(this,a,e)}this.w={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];Z(this,a,b.exceptionReport)},ServiceException:function(a,b){var e={};e.code=a.getAttribute("code");e.locator=a.getAttribute("locator");e.text=$(a);b.exceptions.push(e)}},"http://www.opengis.net/ows":{ExceptionReport:function(a,
|
||||
b){b.Se=m;b.Db={version:a.getAttribute("version"),language:a.getAttribute("language"),ec:[]};Z(this,a,b.Db)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}},"http://www.opengis.net/ows/1.1":{ExceptionReport:function(a,b){b.Db={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),ec:[]};Z(this,a,b.Db)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}};Uh.call(this)}B(Wh,Uh);
|
||||
Wh.prototype.qa=function(a){"string"==typeof a&&(a=Th(a));var b={exceptionReport:k};a&&Z(this,a,b);return b};function Xh(a){this.c=a=a||{};this.Va=a.Va||k;this.version=a.version;this.profile=a.profile;a.Sa!==h?this.Sa=a.Sa:this.Sa=m;a.Sb!==h?this.Sb=a.Sb:this.Sb=m}
|
||||
Xh.prototype.qa=function(a,b){"string"==typeof a&&(a=Th(a));var c;c=a.documentElement;var d;c?(d=this.version,d||(d=c.getAttribute("version"),d||(d=this.Va))):d=this.version||this.Va;d=(c=d)||this.Va;var e=this.profile?"_"+this.profile:"";if(!this.b||this.b.VERSION!=d){var f=this.a["v"+d.replace(/\./g,"_")+e];if(!f&&(""!==e&&this.Sa&&(e="",f=this.a["v"+d.replace(/\./g,"_")+e]),!f))throw"Can't find a parser for version "+d+e;this.b=new f(this.c)}this.b=this.b;d=this.b.qa(a,b);e=this.b.Yc||k;e!==k&&
|
||||
d[e]===h&&(d.error=(new Wh).qa(a));d.version=c;return d};function Yh(){this.a="http://www.opengis.net/wms";this.Yc="service";this.w={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};Z(this,a,b.service)},Name:function(a,b){b.name=$(a)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},BoundingBox:function(a){var b={};b.bbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))];a={x:parseFloat(a.getAttribute("resx")),y:parseFloat(a.getAttribute("resy"))};
|
||||
if(!isNaN(a.x)||!isNaN(a.y))b.res=a;return b},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ContactInformation:function(a,b){b.contactInformation={};Z(this,a,b.contactInformation)},ContactPersonPrimary:function(a,b){b.personPrimary={};Z(this,a,b.personPrimary)},ContactPerson:function(a,b){b.person=$(a)},ContactOrganization:function(a,b){b.organization=$(a)},ContactPosition:function(a,b){b.position=$(a)},ContactAddress:function(a,b){b.contactAddress=
|
||||
{};Z(this,a,b.contactAddress)},AddressType:function(a,b){b.type=$(a)},Address:function(a,b){b.address=$(a)},City:function(a,b){b.city=$(a)},StateOrProvince:function(a,b){b.stateOrProvince=$(a)},PostCode:function(a,b){b.postcode=$(a)},Country:function(a,b){b.country=$(a)},ContactVoiceTelephone:function(a,b){b.phone=$(a)},ContactFacsimileTelephone:function(a,b){b.fax=$(a)},ContactElectronicMailAddress:function(a,b){b.email=$(a)},Fees:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.fees=c)},
|
||||
AccessConstraints:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.accessConstraints=c)},Capability:function(a,b){b.capability={};b.capability.nestedLayers=[];b.capability.layers=[];Z(this,a,b.capability)},Request:function(a,b){b.request={};Z(this,a,b.request)},GetCapabilities:function(a,b){b.getcapabilities={};b.getcapabilities.formats=[];Z(this,a,b.getcapabilities)},Format:function(a,b){ca(b.formats)?b.formats.push($(a)):b.format=$(a)},DCPType:function(a,b){Z(this,a,b)},HTTP:function(a,b){Z(this,
|
||||
a,b)},Get:function(a,b){b.get={};Z(this,a,b.get)},Post:function(a,b){b.post={};Z(this,a,b.post)},GetMap:function(a,b){b.getmap={};b.getmap.formats=[];Z(this,a,b.getmap)},GetFeatureInfo:function(a,b){b.getfeatureinfo={};b.getfeatureinfo.formats=[];Z(this,a,b.getfeatureinfo)},Exception:function(a,b){b.exception={};b.exception.formats=[];Z(this,a,b.exception)},Layer:function(a,b){var c,d;b.capability?(d=b.capability,c=b):d=b;var e=a.getAttributeNode("queryable"),f=e&&e.specified?a.getAttribute("queryable"):
|
||||
k,g=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):k,j=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):k,l=a.getAttribute("noSubsets"),p=a.getAttribute("fixedWidth"),n=a.getAttribute("fixedHeight"),e=c||{},f={nestedLayers:[],styles:c?[].concat(c.styles):[],srs:{},metadataURLs:[],bbox:{},llbbox:e.llbbox,dimensions:{},authorityURLs:{},identifiers:{},keywords:[],queryable:f&&""!==f?"1"===f||"true"===f:e.queryable||m,cascaded:g!==k?parseInt(g,10):e.cascaded||
|
||||
0,opaque:j?"1"===j||"true"===j:e.opaque||m,noSubsets:l!==k?"1"===l||"true"===l:e.noSubsets||m,fixedWidth:p!==k?parseInt(p,10):e.fixedWidth||0,fixedHeight:n!==k?parseInt(n,10):e.fixedHeight||0,minScale:e.minScale,maxScale:e.maxScale,attribution:e.attribution};c&&(Ua(f.srs,e.srs),Ua(f.bbox,e.bbox),Ua(f.dimensions,e.dimensions),Ua(f.authorityURLs,e.authorityURLs));b.nestedLayers.push(f);f.capability=d;Z(this,a,f);delete f.capability;f.name&&(c=f.name.split(":"),g=d.request,e=g.getfeatureinfo,0<c.length&&
|
||||
(f.prefix=c[0]),d.layers.push(f),f.formats===h&&(f.formats=g.getmap.formats),f.infoFormats===h&&e&&(f.infoFormats=e.formats))},Attribution:function(a,b){b.attribution={};Z(this,a,b.attribution)},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};Z(this,a,b.logo)},Style:function(a,b){var c={};b.styles.push(c);Z(this,a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;Z(this,a,c)},MetadataURL:function(a,
|
||||
b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);Z(this,a,c)},DataURL:function(a,b){b.dataURL={};Z(this,a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};Z(this,a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};Z(this,a,d);b.authorityURLs[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.identifiers[c]=$(a)},KeywordList:function(a,b){Z(this,a,b)},SRS:function(a,b){b.srs[$(a)]=i}}};Uh.call(this)}B(Yh,Uh);
|
||||
Yh.prototype.qa=function(a){"string"==typeof a&&(a=Th(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Vh(this,a,b);return b};function Zh(){Yh.call(this);var a=this.w["http://www.opengis.net/wms"].BoundingBox;Ua(this.w["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){Z(this,a,c)},Keyword:function(a,c){c.keywords&&c.keywords.push({value:$(a)})},DescribeLayer:function(a,c){c.describelayer={formats:[]};Z(this,a,c.describelayer)},GetLegendGraphic:function(a,c){c.getlegendgraphic={formats:[]};Z(this,a,c.getlegendgraphic)},GetStyles:function(a,c){c.getstyles={formats:[]};Z(this,a,c.getstyles)},PutStyles:function(a,
|
||||
c){c.putstyles={formats:[]};Z(this,a,c.putstyles)},UserDefinedSymbolization:function(a,c){var d={supportSLD:1==parseInt(a.getAttribute("SupportSLD"),10),userLayer:1==parseInt(a.getAttribute("UserLayer"),10),userStyle:1==parseInt(a.getAttribute("UserStyle"),10),remoteWFS:1==parseInt(a.getAttribute("RemoteWFS"),10)};c.userSymbols=d},LatLonBoundingBox:function(a,c){c.llbbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))]},
|
||||
BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("SRS");c.bbox[d.srs]=d},ScaleHint:function(a,c){var d=parseFloat(a.getAttribute("min")),e=parseFloat(a.getAttribute("max")),f=Math.pow(2,0.5),g=25.4/0.28;0!==d&&(c.maxScale=parseFloat(39.37*(d/f)*g));e!=Number.POSITIVE_INFINITY&&(c.minScale=parseFloat(39.37*(e/f)*g))},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),unitsymbol:a.getAttribute("unitSymbol")};c.dimensions[d.name]=
|
||||
d},Extent:function(a,c){var d=a.getAttribute("name").toLowerCase();d in c.dimensions&&(d=c.dimensions[d],d.nearestVal="1"===a.getAttribute("nearestValue"),d.multipleVal="1"===a.getAttribute("multipleValues"),d.current="1"===a.getAttribute("current"),d["default"]=a.getAttribute("default")||"",d.values=$(a).split(","))}})}B(Zh,Yh);function $h(){Zh.call(this);this.version="1.1.0";Ua(this.w["http://www.opengis.net/wms"],{SRS:function(a,b){for(var c=$(a).split(/ +/),d=0,e=c.length;d<e;d++)b.srs[c[d]]=i}})}B($h,Zh);function ai(){Zh.call(this);this.version="1.1.1";Ua(this.w["http://www.opengis.net/wms"],{SRS:function(a,b){b.srs[$(a)]=i}})}B(ai,Zh);function bi(){ai.call(this);this.profile="WMSC";Ua(this.w["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};Z(this,a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};Z(this,a,c);b.Ue.push(c)},Resolutions:function(a,b){for(var c=$(a).split(" "),d=0,e=c.length;d<e;d++)""!==c[d]&&b.resolutions.push(parseFloat(c[d]))},Width:function(a,b){b.width=parseInt($(a),10)},Height:function(a,b){b.height=parseInt($(a),10)},Layers:function(a,
|
||||
b){b.layers=$(a)},Styles:function(a,b){b.styles=$(a)}})}B(bi,ai);function ci(){Yh.call(this);var a=this.w["http://www.opengis.net/wms"].BoundingBox;Ua(this.w["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){Z(this,a,c)},LayerLimit:function(a,c){c.layerLimit=parseInt($(a),10)},MaxWidth:function(a,c){c.maxWidth=parseInt($(a),10)},MaxHeight:function(a,c){c.maxHeight=parseInt($(a),10)},BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("CRS");c.bbox[d.srs]=d},CRS:function(a,c){this.w["http://www.opengis.net/wms"].SRS.apply(this,
|
||||
arguments)},EX_GeographicBoundingBox:function(a,c){c.llbbox=[];Z(this,a,c.llbbox)},westBoundLongitude:function(a,c){c[0]=$(a)},eastBoundLongitude:function(a,c){c[2]=$(a)},southBoundLatitude:function(a,c){c[1]=$(a)},northBoundLatitude:function(a,c){c[3]=$(a)},MinScaleDenominator:function(a,c){c.maxScale=parseFloat($(a)).toPrecision(16)},MaxScaleDenominator:function(a,c){c.minScale=parseFloat($(a)).toPrecision(16)},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),
|
||||
unitsymbol:a.getAttribute("unitSymbol"),nearestVal:"1"===a.getAttribute("nearestValue"),multipleVal:"1"===a.getAttribute("multipleValues"),"default":a.getAttribute("default")||"",current:"1"===a.getAttribute("current"),values:$(a).split(",")};c.dimensions[d.name]=d},Keyword:function(a,c){var d={value:$(a),vocabulary:a.getAttribute("vocabulary")};c.keywords&&c.keywords.push(d)}});this.w.sld={UserDefinedSymbolization:function(a,c){this.w["http://www.opengis.net/wms"].Ne.apply(this,arguments);var d=
|
||||
a.getAttribute("InlineFeature");c.userSymbols.inlineFeature=1==parseInt(d,10);d=a.getAttribute("RemoteWCS");c.userSymbols.remoteWCS=1==parseInt(d,10)},DescribeLayer:function(a,c){this.w["http://www.opengis.net/wms"].le.apply(this,arguments)},GetLegendGraphic:function(a,c){this.w["http://www.opengis.net/wms"].me.apply(this,arguments)}}}B(ci,Yh);function di(a){a=a||{};a.defaultVersion="1.1.1";this.a={};this.a.v1_1_0=$h;this.a.v1_1_1=ai;this.a.v1_1_1_WMSC=bi;this.a.v1_3_0=ci;Xh.call(this,a)}B(di,Xh);function ei(){this.w={"http://www.opengis.net/ows":{ServiceIdentification:function(a,b){b.serviceIdentification={};Z(this,a,b.serviceIdentification)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},Keywords:function(a,b){b.keywords={};Z(this,a,b.keywords)},Keyword:function(a,b){b[$(a)]=i},ServiceType:function(a,b){b.serviceType={codeSpace:a.getAttribute("codeSpace"),value:$(a)}},ServiceTypeVersion:function(a,b){b.serviceTypeVersion=$(a)},Fees:function(a,b){b.fees=$(a)},
|
||||
AccessConstraints:function(a,b){b.accessConstraints=$(a)},ServiceProvider:function(a,b){b.serviceProvider={};Z(this,a,b.serviceProvider)},ProviderName:function(a,b){b.providerName=$(a)},ProviderSite:function(a,b){b.providerSite=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceContact:function(a,b){b.serviceContact={};Z(this,a,b.serviceContact)},IndividualName:function(a,b){b.individualName=$(a)},PositionName:function(a,b){b.positionName=$(a)},ContactInfo:function(a,b){b.contactInfo=
|
||||
{};Z(this,a,b.contactInfo)},Phone:function(a,b){b.phone={};Z(this,a,b.phone)},Voice:function(a,b){b.voice=$(a)},Address:function(a,b){b.address={};Z(this,a,b.address)},DeliveryPoint:function(a,b){b.deliveryPoint=$(a)},City:function(a,b){b.city=$(a)},AdministrativeArea:function(a,b){b.administrativeArea=$(a)},PostalCode:function(a,b){b.postalCode=$(a)},Country:function(a,b){b.country=$(a)},ElectronicMailAddress:function(a,b){b.electronicMailAddress=$(a)},Role:function(a,b){b.role=$(a)},OperationsMetadata:function(a,
|
||||
b){b.operationsMetadata={};Z(this,a,b.operationsMetadata)},Operation:function(a,b){var c=a.getAttribute("name");b[c]={};Z(this,a,b[c])},DCP:function(a,b){b.dcp={};Z(this,a,b.dcp)},HTTP:function(a,b){b.http={};Z(this,a,b.http)},Get:function(a,b){b.get||(b.get=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};Z(this,a,c);b.get.push(c)},Post:function(a,b){b.post||(b.post=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};Z(this,a,c);b.post.push(c)},
|
||||
Parameter:function(a,b){b.parameters||(b.parameters={});var c=a.getAttribute("name");b.parameters[c]={};Z(this,a,b.parameters[c])},Constraint:function(a,b){b.constraints||(b.constraints={});var c=a.getAttribute("name");b.constraints[c]={};Z(this,a,b.constraints[c])},Value:function(a,b){b[$(a)]=i},OutputFormat:function(a,b){b.formats.push({value:$(a)});Z(this,a,b)},WGS84BoundingBox:function(a,b){var c={};c.crs=a.getAttribute("crs");b.BoundingBox?b.BoundingBox.push(c):(b.projection=c.crs,c=b);Z(this,
|
||||
a,c)},BoundingBox:function(a,b){this.w["http://www.opengis.net/ows"].WGS84BoundingBox.apply(this,[a,b])},LowerCorner:function(a,b){var c=$(a).replace(this.wa.Fc,""),c=c.replace(this.wa.Ec,","),c=c.split(this.wa.Dc);b.left=c[0];b.bottom=c[1]},UpperCorner:function(a,b){var c=$(a).replace(this.wa.Fc,""),c=c.replace(this.wa.Ec,","),c=c.split(this.wa.Dc);b.right=c[0];b.top=c[1];b.bounds=new N(parseFloat(b.left),parseFloat(b.bottom),parseFloat(b.right),parseFloat(b.top));delete b.left;delete b.bottom;delete b.right;
|
||||
delete b.top},Language:function(a,b){b.language=$(a)}}};Uh.call(this)}B(ei,Uh);function fi(){ei.call(this);this.w["http://www.opengis.net/ows/1.1"]=this.w["http://www.opengis.net/ows"];Ua(this.w["http://www.opengis.net/ows/1.1"],{AllowedValues:function(a,b){b.allowedValues={};Z(this,a,b.allowedValues)},AnyValue:function(a,b){b.anyValue=i},DataType:function(a,b){b.dataType=$(a)},Range:function(a,b){b.range={};Z(this,a,b.range)},MinimumValue:function(a,b){b.minValue=$(a)},MaximumValue:function(a,b){b.maxValue=$(a)},Identifier:function(a,b){b.identifier=$(a)},SupportedCRS:function(a,
|
||||
b){b.supportedCRS=$(a)}})}B(fi,ei);function gi(){this.w={"http://www.opengis.net/wmts/1.0":{Capabilities:function(a,c){Z(this,a,c)},Contents:function(a,c){c.contents={};c.contents.layers=[];c.contents.tileMatrixSets={};Z(this,a,c.contents)},Layer:function(a,c){var d={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};Z(this,a,d);c.layers.push(d)},Style:function(a,c){var d={};d.isDefault="true"===a.getAttribute("isDefault");Z(this,a,d);c.styles.push(d)},Format:function(a,c){c.formats.push($(a))},TileMatrixSetLink:function(a,
|
||||
c){var d={};Z(this,a,d);c.tileMatrixSetLinks.push(d)},TileMatrixSet:function(a,c){if(c.layers){var d={matrixIds:[]};Z(this,a,d);c.tileMatrixSets[d.identifier]=d}else c.tileMatrixSet=$(a)},TileMatrix:function(a,c){var d={supportedCRS:c.Te};Z(this,a,d);c.matrixIds.push(d)},ScaleDenominator:function(a,c){c.scaleDenominator=parseFloat($(a))},TopLeftCorner:function(a,c){var d=$(a).split(" "),e=Le(c.supportedCRS).b,d=[parseFloat(d[0]),parseFloat(d[1])],e=e.charAt(0);c.topLeftCorner="n"===e||"s"===e?new K(d[1],
|
||||
d[0]):new K(d[0],d[1])},TileWidth:function(a,c){c.tileWidth=parseInt($(a),10)},TileHeight:function(a,c){c.tileHeight=parseInt($(a),10)},MatrixWidth:function(a,c){c.matrixWidth=parseInt($(a),10)},MatrixHeight:function(a,c){c.matrixHeight=parseInt($(a),10)},ResourceURL:function(a,c){c.resourceUrl=c.resourceUrl||{};var d=a.getAttribute("resourceType");c.resourceUrls||(c.resourceUrls=[]);d=c.resourceUrl[d]={format:a.getAttribute("format"),template:a.getAttribute("template"),resourceType:d};c.resourceUrls.push(d)},
|
||||
WSDL:function(a,c){c.wsdl={};c.wsdl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceMetadataURL:function(a,c){c.serviceMetadataUrl={};c.serviceMetadataUrl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},LegendURL:function(a,c){c.legend={};c.legend.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href");c.legend.format=a.getAttribute("format")},Dimension:function(a,c){var d={values:[]};Z(this,a,d);c.dimensions.push(d)},Default:function(a,c){c["default"]=
|
||||
$(a)},Value:function(a,c){c.values.push($(a))}}};var a=new fi;this.w["http://www.opengis.net/ows/1.1"]=a.w["http://www.opengis.net/ows/1.1"];Uh.call(this)}B(gi,Uh);gi.prototype.qa=function(a){"string"==typeof a&&(a=Th(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Vh(this,a,b);return b};function hi(a){a=a||{};a.defaultVersion="1.0.0";this.a={};this.a.v1_0_0=gi;Xh.call(this,a)}B(hi,Xh);function ii(a,b){ve.call(this,a);this.b=2;this.d=a;this.c=b.b;this.a={}}B(ii,ve);ii.prototype.I=function(a){a=y(a)?z(a):-1;if(a in this.a)return this.a[a];var b=this.c,c=Qb("CANVAS");c.width=b.width;c.height=b.height;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b.width+0.5,b.height+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.d.toString(),b.width/2,b.height/2);return this.a[a]=c};
|
||||
function ji(a){eg.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.a=new Kh}B(ji,eg);ji.prototype.f=function(){return this.a.Z()>this.a.d};ji.prototype.Ca=function(a){this.a.Ca(a)};ji.prototype.b=function(a){var b=a.toString();if(Vg(this.a,b))return Yg(this.a,b);a=new ii(a,this.tileGrid);$g(this.a,b,a);return a};function ki(a){var b=a.projection||Le("EPSG:3857"),c=Hh;y(a.ba)?c=a.ba:y(a.urls)?c=Fh(ya(a.urls,Eh)):y(a.url)&&(c=Eh(a.url));var d=new Mh({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?Ih(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,j=-b.y-1;if(0>j||c<=j)return k;c=Fb(b.x,c);return!be($f(d,new re(b.n,c,b.y)),e)?k:new re(b.n,c,j)},c):Ih(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,d=-b.y-1;return 0>d||c<=d?k:new re(b.n,Fb(b.x,c),d)},c);Lh.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
|
||||
extent:a.extent,projection:b,tileGrid:d,ba:c})}B(ki,Lh);function li(){ki.call(this,{attributions:[new ue('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new ue('Data © <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}B(li,ki);
|
||||
function mi(){ki.call(this,{attributions:[new ue('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new ue("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}B(mi,ki);function ni(){ki.call(this,{attributions:[new ue('© <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}B(ni,ki);function oi(a){var b=Ke(a.projection),c=b.G(),c=y(a.extent)?a.extent:c,d=y(a.version)?a.version:"1.3",e={SERVICE:"WMS",VERSION:d,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:i};e["1.3"<=d?"CRS":"SRS"]=b.a;Ua(e,a.params);var f=b.b;if(a.url)var g=Qc(Tc([a.url],e)),d=function(a,b){return Uc(g,"BBOX",("ne"==f.substr(0,2)?[a.j,a.h,a.i,a.k]:[a.h,a.j,a.k,a.i]).join(","),"HEIGHT",b.height,"WIDTH",b.width)};else d=rg;sg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:c,
|
||||
projection:b,resolutions:a.resolutions,Ga:d});this.b=k;this.f=1.5}B(oi,sg);oi.prototype.I=function(a,b){var c=b;this.a===k||(c=this.a[of(this.a,c)]);var b=c,c=this.b,d;if(d=c!==k)if(d=c.e==b)d=c.G(),d=d.h<=a.h&&a.k<=d.k&&d.j<=a.j&&a.i<=d.i;if(d)return c;var c=a=new N(a.h,a.j,a.k,a.i),e=this.f;d=c.b()/2*(e-1);e=c.a()/2*(e-1);c.h-=d;c.j-=e;c.k+=d;c.i+=e;return this.b=tg(this,a,b,new $d(a.b()/b,a.a()/b))};var pi={ue:"background",ve:"labels",we:"lines",ye:"2010",ze:"2011",Ae:"2011-labels",Be:"2011-lines",Ce:"2011-lite",De:"background",Ee:"hybrid",Fe:"labels",Ge:"lines",He:"lite"},qi={te:"terrain",xe:"toner",Oe:"watercolor"},ri={terrain:{type:"jpg",pc:4,maxZoom:18},toner:{type:"png",pc:0,maxZoom:20},watercolor:{type:"jpg",pc:3,maxZoom:16}};
|
||||
function si(a){var b=new ue('Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'),c=a.provider;y(a.flavor)&&(c+="-"+a.flavor);a=ri[a.provider];ki.call(this,{attributions:[b],maxZoom:a.maxZoom,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}B(si,ki);function ti(a){var b=a.imageExtent,c=a.imageSize,d=b.a()/c.height,e=a.url;sg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Ga:function(){return e},resolutions:[d]});this.b=tg(this,b,d,c)}B(ti,sg);ti.prototype.I=function(a){return be(a,this.b.G())?this.b:k};var ui=[];A("grid",function(a){ui.push(a)});function vi(a){Lh.call(this,{projection:Le("EPSG:3857")});this.g=m;a=this.u=vh(a.uri,{$b:i});a.a.push([this.D,k,this]);a.ga&&rh(a)}B(vi,Lh);
|
||||
vi.prototype.D=function(){var a=ui.pop(),b=Le("EPSG:4326"),c,d;y(a.bounds)?(c=a.bounds,c=new N(c[0],c[1],c[2],c[3]),this.o=d=c.transform(Ne(b,this.l))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new Mh({maxZoom:f});this.tileGrid=g;this.ba=Ih(function(a){if(a.n<e||f<a.n)return k;var b=1<<a.n,c=-a.y-1;if(0>c||b<=c)return k;b=Fb(a.x,b);return d!==k&&!be($f(g,new re(a.n,b,a.y)),d)?k:new re(a.n,b,c)},Fh(ya(a.tiles,Eh)));if(y(a.attribution)){b=d===k?b.G():d;c={};var j,l;for(j=e;j<=f;++j)l=j.toString(),
|
||||
c[l]=[ag(g,b,g.a[j])];this.e=[new ue(a.attribution,c)]}this.g=i;J(this,"load")};vi.prototype.c=q("g");function wi(a){var b=Ke(a.projection),c=b.G(),d=y(a.extent)?a.extent:c,e=y(a.version)?a.version:"1.3",f,g;if(y(a.tileGrid))g=a.tileGrid;else{var j=a.maxZoom;g=b.G();for(var l=Math.max(g.k-g.h,g.i-g.j),p=y(h)?h:new $d(256,256),j=Array((y(j)?j:18)+1),l=l/p.width,n=0,r=j.length;n<r;++n)j[n]=l/Math.pow(2,n);g=new Zf({origin:de(g),resolutions:j,tileSize:p})}f=g;var u={SERVICE:"WMS",VERSION:e,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:i};g=f.b;u.WIDTH=g.width;u.HEIGHT=g.height;u["1.3"<=e?
|
||||
"CRS":"SRS"]=b.a;Ua(u,a.params);var t=b.b;a.urls?(e=ya(a.urls,function(a){a=Qc(Tc([a],u));return Gh(a,f,t)}),e=Fh(e)):a.url?(e=Qc(Tc([a.url],u)),e=Gh(e,f,t)):e=Hh;Lh.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:f,projection:b,ba:Ih(function(a){if(f.a.length<=a.n)return k;var b=a.x,e=$f(f,a);d.h===c.h&&d.k===c.k&&(e=Math.ceil((d.k-d.h)/(e.k-e.h)),b=Fb(b,e),e=$f(f,new re(a.n,b,a.y)));return!be(e,d)?k:new re(a.n,b,a.y)},e)})}B(wi,Lh);A("goog.require",x);function xi(a){W.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}B(xi,W);A("ol.AnchoredElement",xi);A("ol.AnchoredElementPositioning",nh);nh.BOTTOM_LEFT="bottom-left";nh.BOTTOM_RIGHT="bottom-right";nh.TOP_LEFT="top-left";nh.TOP_RIGHT="top-right";A("ol.Attribution",ue);A("ol.BingMapsStyle",Nh);Nh.AERIAL="Aerial";Nh.AERIAL_WITH_LABELS="AerialWithLabels";Nh.COLLINS_BART="CollinsBart";Nh.ORDNANCE_SURVEY="OrdnanceSurvey";Nh.ROAD="Road";
|
||||
A("ol.Collection",M);M.prototype.clear=M.prototype.clear;M.prototype.forEach=M.prototype.forEach;M.prototype.getArray=M.prototype.$c;M.prototype.getAt=M.prototype.ad;M.prototype.getLength=M.prototype.Za;M.prototype.insertAt=M.prototype.eb;M.prototype.pop=M.prototype.sc;M.prototype.push=M.prototype.push;M.prototype.removeAt=M.prototype.yc;M.prototype.setAt=M.prototype.Od;A("ol.Coordinate",K);K.toStringHDMS=function(a){return y(a)?Oc(a.y,"NS")+" "+Oc(a.x,"EW"):""};A("ol.Extent",N);
|
||||
N.prototype.getHeight=N.prototype.a;N.prototype.getWidth=N.prototype.b;A("ol.Geolocation",Y);
|
||||
function yi(a){U.call(this,{attributionControl:a.attributionControl,doubleClickZoom:a.doubleClickZoom,dragPan:a.dragPan,interactions:a.interactions,keyboard:a.keyboard,keyboardPanOffset:a.keyboardPanOffset,layers:a.layers,mouseWheelZoom:a.mouseWheelZoom,mouseWheelZoomDelta:a.mouseWheelZoomDelta,renderer:a.renderer,renderers:a.renderers,shiftDragZoom:a.shiftDragZoom,target:a.target,touchPan:a.touchPan,touchRotateZoom:a.touchRotateZoom,view:a.view,zoomControl:a.zoomControl,zoomDelta:a.zoomDelta})}
|
||||
B(yi,U);A("ol.Map",yi);U.prototype.addPreRenderFunction=U.prototype.l;U.prototype.addPreRenderFunctions=U.prototype.Ic;U.prototype.getInteractions=U.prototype.Kc;U.prototype.getRenderer=U.prototype.Lc;$e.prototype.getCoordinate=$e.prototype.b;A("ol.Object",L);L.prototype.bindTo=L.prototype.Rc;L.prototype.changed=L.prototype.Uc;L.prototype.get=L.prototype.r;L.prototype.notify=L.prototype.rc;L.prototype.set=L.prototype.p;L.prototype.setOptions=L.prototype.Bc;L.prototype.setValues=L.prototype.mb;
|
||||
L.prototype.unbind=L.prototype.Wb;L.prototype.unbindAll=L.prototype.Wd;A("ol.Projection",P);P.prototype.getAxisOrientation=P.prototype.c;P.prototype.getCode=P.prototype.d;P.prototype.getExtent=P.prototype.G;P.prototype.getUnits=P.prototype.e;A("ol.ProjectionUnits",Be);Be.DEGREES="degrees";Be.METERS="m";A("ol.RendererHint",jh);jh.CANVAS="canvas";jh.DOM="dom";jh.WEBGL="webgl";A("ol.RendererHints",ih);ih.createFromQueryData=ih.Vc;
|
||||
function zi(a){R.call(this,{center:a.center,maxResolution:a.maxResolution,numZoomLevels:a.numZoomLevels,projection:a.projection,resolution:a.resolution,resolutions:a.resolutions,rotation:a.rotation,zoom:a.zoom,zoomFactor:a.zoomFactor})}B(zi,R);A("ol.View2D",zi);A("ol.animation",Ve);Ve.bounce=Ve.Bb;Ve.pan=Ve.Ka;Ve.rotate=Ve.rotate;Ve.zoom=Ve.zoom;function Ai(a){vf.call(this,{map:a.map,target:a.target})}B(Ai,vf);A("ol.control.Attribution",Ai);vf.prototype.setMap=vf.prototype.a;
|
||||
function Bi(a){Qh.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}B(Bi,Qh);A("ol.control.MousePosition",Bi);Qh.prototype.setMap=Qh.prototype.a;function Ci(a){wf.call(this,{delta:a.delta,map:a.map,target:a.target})}B(Ci,wf);A("ol.control.Zoom",Ci);wf.prototype.setMap=wf.prototype.a;A("ol.easing",Ue);Ue.bounce=Ue.Bb;Ue.elastic=Ue.Xc;Ue.linear=Ue.mc;Ue.upAndDown=Ue.Gc;A("ol.interaction.Keyboard",Sh);
|
||||
Sh.prototype.addCallback=Sh.prototype.b;function Di(a){Q.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Di,ug);A("ol.layer.ImageLayer",Di);function Ei(a){Q.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Ei,vg);A("ol.layer.TileLayer",Ei);A("ol.parser.ogc.WMSCapabilities",di);di.prototype.read=di.prototype.qa;
|
||||
A("ol.parser.ogc.WMTSCapabilities",hi);hi.prototype.read=hi.prototype.qa;A("ol.projection.addProjection",He);A("ol.projection.getFromCode",Le);A("ol.projection.getTransform",Ne);A("ol.projection.getTransformFromCodes",Pe);A("ol.projection.transform",function(a,b,c){return Ne(b,c)(a)});A("ol.projection.transformWithCodes",function(a,b,c){return Pe(b,c)(a)});zg.prototype.getCanvas=zg.prototype.Xa;A("ol.source.BingMaps",Oh);
|
||||
function Fi(a){ji.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}B(Fi,ji);A("ol.source.DebugTileSource",Fi);A("ol.source.MapQuestOSM",li);A("ol.source.MapQuestOpenAerial",mi);A("ol.source.OpenStreetMap",ni);A("ol.source.SingleImageWMS",oi);A("ol.source.Stamen",si);A("ol.source.StamenFlavor",pi);pi.TERRAIN_BACKGROUND="background";pi.TERRAIN_LABELS="labels";pi.TERRAIN_LINES="lines";pi.TONER_2010="2010";pi.TONER_2011="2011";pi.TONER_2011_LABELS="2011-labels";
|
||||
pi.TONER_2011_LINES="2011-lines";pi.TONER_2011_LITE="2011-lite";pi.TONER_BACKGROUND="background";pi.TONER_HYBRID="hybrid";pi.TONER_LABELS="labels";pi.TONER_LINES="lines";pi.TONER_LITE="lite";A("ol.source.StamenProvider",qi);qi.TERRAIN="terrain";qi.TONER="toner";qi.WATERCOLOR="watercolor";A("ol.source.StaticImage",ti);A("ol.source.TileJSON",vi);A("ol.source.TiledWMS",wi);function Gi(a){Zf.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize})}B(Gi,Zf);
|
||||
A("ol.tilegrid.TileGrid",Gi);function Hi(a){Mh.call(this,{maxZoom:a.maxZoom})}B(Hi,Mh);A("ol.tilegrid.XYZ",Hi);Ve.ae={};Ve.qe={};Ve.se={};Ve.Qe={};})();
|
||||
|
||||
Reference in New Issue
Block a user