vendor: 22,797 bytes, line 1
1!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=175)}([function(t,e,n){"use strict";t.exports=n(79)},function(t,e,n){t.exports=n(83)()},function(t,e,n){t.exports=function(){"use strict";var t,e,n;function r(r,o){if(t)if(e){var i="var sharedChunk = {}; ("+t+")(sharedChunk); ("+e+")(sharedChunk);",a={};t(a),n=o(a),"undefined"!=typeof window&&(n.workerUrl=window.URL.createObjectURL(new Blob([i],{type:"text/javascript"})))}else e=o;else t=o}return r(0,(function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=r;function r(t,e,n,r){this.cx=3*t,this.bx=3*(n-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(r-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=r,this.p2x=n,this.p2y=r}r.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},r.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},r.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},r.prototype.solveCurveX=function(t,e){var n,r,o,i,a;for(void 0===e&&(e=1e-6),o=t,a=0;a<8;a++){if(i=this.sampleCurveX(o)-t,Math.abs(i)<e)return o;var s=this.sampleCurveDerivativeX(o);if(Math.abs(s)<1e-6)break;o-=i/s}if((o=t)<(n=0))return n;if(o>(r=1))return r;for(;n<r;){if(i=this.sampleCurveX(o),Math.abs(i-t)<e)return o;t>i?n=o:r=o,o=.5*(r-n)+n}return o},r.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var o=i;function i(t,e){this.x=t,this.y=e}i.prototype={clone:function(){return new i(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,n=t.y-this.y;return e*e+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),n=Math.sin(t),r=n*this.x+e*this.y;return this.x=e*this.x-n*this.y,this.y=r,this},_rotateAround:function(t,e){var n=Math.cos(t),r=Math.sin(t),o=e.y+r*(this.x-e.x)+n*(this.y-e.y);return this.x=e.x+n*(this.x-e.x)-r*(this.y-e.y),this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},i.convert=function(t){return t instanceof i?t:Array.isArray(t)?new i(t[0],t[1]):t};var a="undefined"!=typeof self?self:{},s=Math.pow(2,53)-1;function l(t,e,r,o){var i=new n(t,e,r,o);return function(t){return i.solve(t)}}var u=l(.25,.1,.25,1);function c(t,e,n){return Math.min(n,Math.max(e,t))}function p(t,e,n){var r=n-e,o=((t-e)%r+r)%r+e;return o===e?n:o}function f(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];for(var r=0,o=e;r<o.length;r+=1){var i=o[r];for(var a in i)t[a]=i[a]}return t}var h=1;function d(){return h++}function m(){return function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function y(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function g(t,e){t.forEach((function(t){e[t]&&(e[t]=e[t].bind(e))}))}function v(t,e){return-1!==t.indexOf(e,t.length-e.length)}function _(t,e,n){var r={};for(var o in t)r[o]=e.call(n||this,t[o],o,t);return r}function b(t,e,n){var r={};for(var o in t)e.call(n||this,t[o],o,t)&&(r[o]=t[o]);return r}function x(t){return Array.isArray(t)?t.map(x):"object"==typeof t&&t?_(t,x):t}var w={};function E(t){w[t]||("undefined"!=typeof console&&console.warn(t),w[t]=!0)}function S(t,e,n){return(n.y-t.y)*(e.x-t.x)>(e.y-t.y)*(n.x-t.x)}function k(t){for(var e=0,n=0,r=t.length,o=r-1,i=void 0,a=void 0;n<r;o=n++)e+=((a=t[o]).x-(i=t[n]).x)*(i.y+a.y);return e}function T(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function C(t){var e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(function(t,n,r,o){var i=r||o;return e[n]=!i||i.toLowerCase(),""})),e["max-age"]){var n=parseInt(e["max-age"],10);isNaN(n)?delete e["max-age"]:e["max-age"]=n}return e}var P=null;function I(t){if(null==P){var e=t.navigator?t.navigator.userAgent:null;P=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return P}function O(t){try{var e=a[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch(t){return!1}}var A,z,M,R,D=a.performance&&a.performance.now?a.performance.now.bind(a.performance):Date.now.bind(Date),L=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||a.msRequestAnimationFrame,j=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame||a.msCancelAnimationFrame,B={now:D,frame:function(t){var e=L(t);return{cancel:function(){return j(e)}}},getImageData:function(t,e){void 0===e&&(e=0);var n=a.document.createElement("canvas"),r=n.getContext("2d");if(!r)throw new Error("failed to create canvas 2d context");return n.width=t.width,n.height=t.height,r.drawImage(t,0,0,t.width,t.height),r.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return A||(A=a.document.createElement("a")),A.href=t,A.href},hardwareConcurrency:a.navigator&&a.navigator.hardwareConcurrency||4,get devicePixelRatio(){return a.devicePixelRatio},get prefersReducedMotion(){return!!a.matchMedia&&(null==z&&(z=a.matchMedia("(prefers-reduced-motion: reduce)")),z.matches)}},N={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},F={supported:!1,testSupport:function(t){!U&&R&&(V?q(t):M=t)}},U=!1,V=!1;function q(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,R),t.isContextLost())return;F.supported=!0}catch(t){}t.deleteTexture(e),U=!0}a.document&&((R=a.document.createElement("img")).onload=function(){M&&q(M),M=null,V=!0},R.onerror=function(){U=!0,M=null},R.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var G="01",W=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function Z(t){return 0===t.indexOf("mapbox:")}W.prototype._createSkuToken=function(){var t=function(){for(var t="",e=0;e<10;e++)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",G,t].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},W.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},W.prototype.transformRequest=function(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}},W.prototype.normalizeStyleURL=function(t,e){if(!Z(t))return t;var n=K(t);return n.path="/styles/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||e)},W.prototype.normalizeGlyphsURL=function(t,e){if(!Z(t))return t;var n=K(t);return n.path="/fonts/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||e)},W.prototype.normalizeSourceURL=function(t,e){if(!Z(t))return t;var n=K(t);return n.path="/v4/"+n.authority+".json",n.params.push("secure"),this._makeAPIURL(n,this._customAccessToken||e)},W.prototype.normalizeSpriteURL=function(t,e,n,r){var o=K(t);return Z(t)?(o.path="/styles/v1"+o.path+"/sprite"+e+n,this._makeAPIURL(o,this._customAccessToken||r)):(o.path+=""+e+n,Y(o))},W.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!Z(t))return t;var n=K(t);n.path=n.path.replace(/(\.(png|jpg)\d*)(?=$)/,(B.devicePixelRatio>=2||512===e?"@2x":"")+(F.supported?".webp":"$1")),n.path=n.path.replace(/^.+\/v4\//,"/"),n.path="/v4"+n.path;var r=this._customAccessToken||function(t){for(var e=0,n=t;e<n.length;e+=1){var r=n[e].match(/^access_token=(.*)$/);if(r)return r[1]}return null}(n.params)||N.ACCESS_TOKEN;return N.REQUIRE_ACCESS_TOKEN&&r&&this._skuToken&&n.params.push("sku="+this._skuToken),this._makeAPIURL(n,r)},W.prototype.canonicalizeTileURL=function(t,e){var n=K(t);if(!n.path.match(/(^\/v4\/)/)||!n.path.match(/\.[\w]+$/))return t;var r="mapbox://tiles/";r+=n.path.replace("/v4/","");var o=n.params;return e&&(o=o.filter((function(t){return!t.match(/^access_token=/)}))),o.length&&(r+="?"+o.join("&")),r},W.prototype.canonicalizeTileset=function(t,e){for(var n=!!e&&Z(e),r=[],o=0,i=t.tiles||[];o<i.length;o+=1){var a=i[o];X(a)?r.push(this.canonicalizeTileURL(a,n)):r.push(a)}return r},W.prototype._makeAPIURL=function(t,e){var n="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",r=K(N.API_URL);if(t.protocol=r.protocol,t.authority=r.authority,"http"===t.protocol){var o=t.params.indexOf("secure");o>=0&&t.params.splice(o,1)}if("/"!==r.path&&(t.path=""+r.path+t.path),!N.REQUIRE_ACCESS_TOKEN)return Y(t);if(!(e=e||N.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+n);if("s"===e[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+n);return t.params=t.params.filter((function(t){return-1===t.indexOf("access_token")})),t.params.push("access_token="+e),Y(t)};var H=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function X(t){return H.test(t)}var $=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function K(t){var e=t.match($);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function Y(t){var e=t.params.length?"?"+t.params.join("&"):"";return t.protocol+"://"+t.authority+t.path+e}function J(t){if(!t)return null;var e=t.split(".");if(!e||3!==e.length)return null;try{return JSON.parse(decodeURIComponent(a.atob(e[1]).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join("")))}catch(t){return null}}var Q=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};Q.prototype.getStorageKey=function(t){var e,n=J(N.ACCESS_TOKEN);return e=n&&n.u?a.btoa(encodeURIComponent(n.u).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number("0x"+e))}))):N.ACCESS_TOKEN||"",t?"mapbox.eventData."+t+":"+e:"mapbox.eventData:"+e},Q.prototype.fetchEventData=function(){var t=O("localStorage"),e=this.getStorageKey(),n=this.getStorageKey("uuid");if(t)try{var r=a.localStorage.getItem(e);r&&(this.eventData=JSON.parse(r));var o=a.localStorage.getItem(n);o&&(this.anonId=o)}catch(t){E("Unable to read from LocalStorage")}},Q.prototype.saveEventData=function(){var t=O("localStorage"),e=this.getStorageKey(),n=this.getStorageKey("uuid");if(t)try{a.localStorage.setItem(n,this.anonId),Object.keys(this.eventData).length>=1&&a.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){E("Unable to write to LocalStorage")}},Q.prototype.processRequests=function(t){},Q.prototype.postEvent=function(t,e,n,r){var o=this;if(N.EVENTS_URL){var i=K(N.EVENTS_URL);i.params.push("access_token="+(r||N.ACCESS_TOKEN||""));var a={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.0",skuId:G,userId:this.anonId},s=e?f(a,e):a,l={url:Y(i),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=xt(l,(function(t){o.pendingRequest=null,n(t),o.saveEventData(),o.processRequests(r)}))}},Q.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var tt,et,nt=function(t){function e(){t.call(this,"map.load"),this.success={},this.skuToken=""}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.postMapLoadEvent=function(t,e,n,r){this.skuToken=n,(N.EVENTS_URL&&r||N.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return Z(t)||X(t)})))&&this.queueRequest({id:e,timestamp:Date.now()},r)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){var n=this.queue.shift(),r=n.id,o=n.timestamp;r&&this.success[r]||(this.anonId||this.fetchEventData(),y(this.anonId)||(this.anonId=m()),this.postEvent(o,{skuToken:this.skuToken},(function(t){t||r&&(e.success[r]=!0)}),t))}},e}(Q),rt=new(function(t){function e(e){t.call(this,"appUserTurnstile"),this._customAccessToken=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.postTurnstileEvent=function(t,e){N.EVENTS_URL&&N.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return Z(t)||X(t)}))&&this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var n=J(N.ACCESS_TOKEN),r=n?n.u:N.ACCESS_TOKEN,o=r!==this.eventData.tokenU;y(this.anonId)||(this.anonId=m(),o=!0);var i=this.queue.shift();if(this.eventData.lastSuccess){var a=new Date(this.eventData.lastSuccess),s=new Date(i),l=(i-this.eventData.lastSuccess)/864e5;o=o||l>=1||l<-1||a.getDate()!==s.getDate()}else o=!0;if(!o)return this.processRequests();this.postEvent(i,{"enabled.telemetry":!1},(function(t){t||(e.eventData.lastSuccess=i,e.eventData.tokenU=r)}),t)}},e}(Q)),ot=rt.postTurnstileEvent.bind(rt),it=new nt,at=it.postMapLoadEvent.bind(it),st=500,lt=50;function ut(){a.caches&&!tt&&(tt=a.caches.open("mapbox-tiles"))}function ct(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var pt,ft=1/0;function ht(){return null==pt&&(pt=a.OffscreenCanvas&&new a.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof a.createImageBitmap),pt}var dt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(dt);var mt,yt,gt=function(t){function e(e,n,r){401===n&&X(r)&&(e+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),t.call(this,e),this.status=n,this.url=r,this.name=this.constructor.name,this.message=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},e}(Error),vt=T()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===a.location.protocol?a.parent:a).location.href},_t=function(t,e){if(!(/^file:/.test(n=t.url)||/^file:/.test(vt())&&!/^\w+:/.test(n))){if(a.fetch&&a.Request&&a.AbortController&&a.Request.prototype.hasOwnProperty("signal"))return function(t,e){var n,r=new a.AbortController,o=new a.Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,referrer:vt(),signal:r.signal}),i=!1,s=!1,l=(n=o.url).indexOf("sku=")>0&&X(n);"json"===t.type&&o.headers.set("Accept","application/json");var u=function(n,r,i){if(!s){if(n&&"SecurityError"!==n.message&&E(n),r&&i)return c(r);var u=Date.now();a.fetch(o).then((function(n){if(n.ok){var r=l?n.clone():null;return c(n,r,u)}return e(new gt(n.statusText,n.status,t.url))})).catch((function(t){20!==t.code&&e(new Error(t.message))}))}},c=function(n,r,l){("arrayBuffer"===t.type?n.arrayBuffer():"json"===t.type?n.json():n.text()).then((function(t){s||(r&&l&&function(t,e,n){if(ut(),tt){var r={status:e.status,statusText:e.statusText,headers:new a.Headers};e.headers.forEach((function(t,e){return r.headers.set(e,t)}));var o=C(e.headers.get("Cache-Control")||"");o["no-store"]||(o["max-age"]&&r.headers.set("Expires",new Date(n+1e3*o["max-age"]).toUTCString()),new Date(r.headers.get("Expires")).getTime()-n<42e4||function(t,e){if(void 0===et)try{new Response(new ReadableStream),et=!0}catch(t){et=!1}et?e(t.body):t.blob().then(e)}(e,(function(e){var n=new a.Response(e,r);ut(),tt&&tt.then((function(e){return e.put(ct(t.url),n)})).catch((function(t){return E(t.message)}))})))}}(o,r,l),i=!0,e(null,t,n.headers.get("Cache-Control"),n.headers.get("Expires")))})).catch((function(t){s||e(new Error(t.message))}))};return l?function(t,e){if(ut(),!tt)return e(null);var n=ct(t.url);tt.then((function(t){t.match(n).then((function(r){var o=function(t){if(!t)return!1;var e=new Date(t.headers.get("Expires")||0),n=C(t.headers.get("Cache-Control")||"");return e>Date.now()&&!n["no-cache"]}(r);t.delete(n),o&&t.put(n,r.clone()),e(null,r,o)})).catch(e)})).catch(e)}(o,u):u(null,null),{cancel:function(){s=!0,i||r.abort()}}}(t,e);if(T()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e,void 0,!0)}var n;return function(t,e){var n=new a.XMLHttpRequest;for(var r in n.open(t.method||"GET",t.url,!0),"arrayBuffer"===t.type&&(n.responseType="arraybuffer"),t.headers)n.setRequestHeader(r,t.headers[r]);return"json"===t.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===t.credentials,n.onerror=function(){e(new Error(n.statusText))},n.onload=function(){if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){var r=n.response;if("json"===t.type)try{r=JSON.parse(n.response)}catch(t){return e(t)}e(null,r,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"))}else e(new gt(n.statusText,n.status,t.url))},n.send(t.body),{cancel:function(){return n.abort()}}}(t,e)},bt=function(t,e){return _t(f(t,{type:"arrayBuffer"}),e)},xt=function(t,e){return _t(f(t,{method:"POST"}),e)},wt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";mt=[],yt=0;var Et=function(t,e){if(F.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),yt>=N.MAX_PARALLEL_IMAGE_REQUESTS){var n={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return mt.push(n),n}yt++;var r=!1,o=function(){if(!r)for(r=!0,yt--;mt.length&&yt<N.MAX_PARALLEL_IMAGE_REQUESTS;){var t=mt.shift();t.cancelled||(t.cancel=Et(t.requestParameters,t.callback).cancel)}},i=bt(t,(function(t,n,r,i){o(),t?e(t):n&&(ht()?function(t,e){var n=new a.Blob([new Uint8Array(t)],{type:"image/png"});a.createImageBitmap(n).then((function(t){e(null,t)})).catch((function(t){e(new Error("Could not load image because of "+t.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))}))}(n,e):function(t,e,n,r){var o=new a.Image,i=a.URL;o.onload=function(){e(null,o),i.revokeObjectURL(o.src),o.onload=null,o.src=wt},o.onerror=function(){return e(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var s=new a.Blob([new Uint8Array(t)],{type:"image/png"});o.cacheControl=n,o.expires=r,o.src=t.byteLength?i.createObjectURL(s):wt}(n,e,r,i))}));return{cancel:function(){i.cancel(),o()}}};function St(t,e,n){n[t]&&-1!==n[t].indexOf(e)||(n[t]=n[t]||[],n[t].push(e))}function kt(t,e,n){if(n&&n[t]){var r=n[t].indexOf(e);-1!==r&&n[t].splice(r,1)}}var Tt=function(t,e){void 0===e&&(e={}),f(this,e),this.type=t},Ct=function(t){function e(e,n){void 0===n&&(n={}),t.call(this,"error",f({error:e},n))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Tt),Pt=function(){};Pt.prototype.on=function(t,e){return this._listeners=this._listeners||{},St(t,e,this._listeners),this},Pt.prototype.off=function(t,e){return kt(t,e,this._listeners),kt(t,e,this._oneTimeListeners),this},Pt.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},St(t,e,this._oneTimeListeners),this},Pt.prototype.fire=function(t,e){"string"==typeof t&&(t=new Tt(t,e||{}));var n=t.type;if(this.listens(n)){t.target=this;for(var r=0,o=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];r<o.length;r+=1)o[r].call(this,t);for(var i=0,a=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];i<a.length;i+=1){var s=a[i];kt(n,s,this._oneTimeListeners),s.call(this,t)}var l=this._eventedParent;l&&(f(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(t))}else t instanceof Ct&&console.error(t.error);return this},Pt.prototype.listens=function(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)},Pt.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var I
vendor: 19,006 bytes, line 1
1t={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}
vendor: 9,823 bytes, line 1
1,"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}}
vendor: 30,037 bytes, line 1
1,Ot=function(t,e,n,r){this.message=(t?t+": ":"")+n,r&&(this.identifier=r),null!=e&&e.__line__&&(this.line=e.__line__)};function At(t){var e=t.value;return e?[new Ot(t.key,e,"constants have been deprecated as of v8")]:[]}function zt(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];for(var r=0,o=e;r<o.length;r+=1){var i=o[r];for(var a in i)t[a]=i[a]}return t}function Mt(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function Rt(t){if(Array.isArray(t))return t.map(Rt);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var n in t)e[n]=Rt(t[n]);return e}return Mt(t)}var Dt=function(t){function e(e,n){t.call(this,n),this.message=n,this.key=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Error),Lt=function(t,e){void 0===e&&(e=[]),this.parent=t,this.bindings={};for(var n=0,r=e;n<r.length;n+=1){var o=r[n];this.bindings[o[0]]=o[1]}};Lt.prototype.concat=function(t){return new Lt(this,t)},Lt.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+" not found in scope.")},Lt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};var jt={kind:"null"},Bt={kind:"number"},Nt={kind:"string"},Ft={kind:"boolean"},Ut={kind:"color"},Vt={kind:"object"},qt={kind:"value"},Gt={kind:"collator"},Wt={kind:"formatted"},Zt={kind:"resolvedImage"};function Ht(t,e){return{kind:"array",itemType:t,N:e}}function Xt(t){if("array"===t.kind){var e=Xt(t.itemType);return"number"==typeof t.N?"array<"+e+", "+t.N+">":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var $t=[jt,Bt,Nt,Ft,Ut,Wt,Vt,Ht(qt),Zt];function Kt(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!Kt(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var n=0,r=$t;n<r.length;n+=1)if(!Kt(r[n],e))return null}return"Expected "+Xt(t)+" but found "+Xt(e)+" instead."}function Yt(t,e){return e.some((function(e){return e.kind===t.kind}))}function Jt(t,e){return e.some((function(e){return"null"===e?null===t:"array"===e?Array.isArray(t):"object"===e?t&&!Array.isArray(t)&&"object"==typeof t:e===typeof t}))}var Qt=e((function(t,e){var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(t){return(t=Math.round(t))<0?0:t>255?255:t}function o(t){return r("%"===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function i(t){return(e="%"===t[t.length-1]?parseFloat(t)/100:parseFloat(t))<0?0:e>1?1:e;var e}function a(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}try{e.parseCSSColor=function(t){var e,s=t.replace(/ /g,"").toLowerCase();if(s in n)return n[s].slice();if("#"===s[0])return 4===s.length?(e=parseInt(s.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===s.length&&(e=parseInt(s.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var l=s.indexOf("("),u=s.indexOf(")");if(-1!==l&&u+1===s.length){var c=s.substr(0,l),p=s.substr(l+1,u-(l+1)).split(","),f=1;switch(c){case"rgba":if(4!==p.length)return null;f=i(p.pop());case"rgb":return 3!==p.length?null:[o(p[0]),o(p[1]),o(p[2]),f];case"hsla":if(4!==p.length)return null;f=i(p.pop());case"hsl":if(3!==p.length)return null;var h=(parseFloat(p[0])%360+360)%360/360,d=i(p[1]),m=i(p[2]),y=m<=.5?m*(d+1):m+d-m*d,g=2*m-y;return[r(255*a(g,y,h+1/3)),r(255*a(g,y,h)),r(255*a(g,y,h-1/3)),f];default:return null}}return null}}catch(t){}})).parseCSSColor,te=function(t,e,n,r){void 0===r&&(r=1),this.r=t,this.g=e,this.b=n,this.a=r};te.parse=function(t){if(t){if(t instanceof te)return t;if("string"==typeof t){var e=Qt(t);if(e)return new te(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},te.prototype.toString=function(){var t=this.toArray(),e=t[1],n=t[2],r=t[3];return"rgba("+Math.round(t[0])+","+Math.round(e)+","+Math.round(n)+","+r+")"},te.prototype.toArray=function(){var t=this.a;return 0===t?[0,0,0,0]:[255*this.r/t,255*this.g/t,255*this.b/t,t]},te.black=new te(0,0,0,1),te.white=new te(1,1,1,1),te.transparent=new te(0,0,0,0),te.red=new te(1,0,0,1);var ee=function(t,e,n){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};ee.prototype.compare=function(t,e){return this.collator.compare(t,e)},ee.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var ne=function(t,e,n,r,o){this.text=t,this.image=e,this.scale=n,this.fontStack=r,this.textColor=o},re=function(t){this.sections=t};re.fromString=function(t){return new re([new ne(t,null,null,null,null)])},re.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&&0!==t.image.name.length}))},re.factory=function(t){return t instanceof re?t:re.fromString(t)},re.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(t){return t.text})).join("")},re.prototype.serialize=function(){for(var t=["format"],e=0,n=this.sections;e<n.length;e+=1){var r=n[e];if(r.image)t.push(["image",r.image.name]);else{t.push(r.text);var o={};r.fontStack&&(o["text-font"]=["literal",r.fontStack.split(",")]),r.scale&&(o["font-scale"]=r.scale),r.textColor&&(o["text-color"]=["rgba"].concat(r.textColor.toArray())),t.push(o)}}return t};var oe=function(t){this.name=t.name,this.available=t.available};function ie(t,e,n,r){return"number"==typeof t&&t>=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:"Invalid rgba value ["+[t,e,n,r].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof r?[t,e,n,r]:[t,e,n]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function ae(t){if(null===t)return!0;if("string"==typeof t)return!0;if("boolean"==typeof t)return!0;if("number"==typeof t)return!0;if(t instanceof te)return!0;if(t instanceof ee)return!0;if(t instanceof re)return!0;if(t instanceof oe)return!0;if(Array.isArray(t)){for(var e=0,n=t;e<n.length;e+=1)if(!ae(n[e]))return!1;return!0}if("object"==typeof t){for(var r in t)if(!ae(t[r]))return!1;return!0}return!1}function se(t){if(null===t)return jt;if("string"==typeof t)return Nt;if("boolean"==typeof t)return Ft;if("number"==typeof t)return Bt;if(t instanceof te)return Ut;if(t instanceof ee)return Gt;if(t instanceof re)return Wt;if(t instanceof oe)return Zt;if(Array.isArray(t)){for(var e,n=t.length,r=0,o=t;r<o.length;r+=1){var i=se(o[r]);if(e){if(e===i)continue;e=qt;break}e=i}return Ht(e||qt,n)}return Vt}function le(t){var e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof te||t instanceof re||t instanceof oe?t.toString():JSON.stringify(t)}oe.prototype.toString=function(){return this.name},oe.fromString=function(t){return t?new oe({name:t,available:!1}):null},oe.prototype.serialize=function(){return["image",this.name]};var ue=function(t,e){this.type=t,this.value=e};ue.parse=function(t,e){if(2!==t.length)return e.error("'literal' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(!ae(t[1]))return e.error("invalid value");var n=t[1],r=se(n),o=e.expectedType;return"array"!==r.kind||0!==r.N||!o||"array"!==o.kind||"number"==typeof o.N&&0!==o.N||(r=o),new ue(r,n)},ue.prototype.evaluate=function(){return this.value},ue.prototype.eachChild=function(){},ue.prototype.outputDefined=function(){return!0},ue.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof te?["rgba"].concat(this.value.toArray()):this.value instanceof re?this.value.serialize():this.value};var ce=function(t){this.name="ExpressionEvaluationError",this.message=t};ce.prototype.toJSON=function(){return this.message};var pe={string:Nt,number:Bt,boolean:Ft,object:Vt},fe=function(t,e){this.type=t,this.args=e};fe.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var n,r=1,o=t[0];if("array"===o){var i,a;if(t.length>2){var s=t[1];if("string"!=typeof s||!(s in pe)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);i=pe[s],r++}else i=qt;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],r++}n=Ht(i,a)}else n=pe[o];for(var l=[];r<t.length;r++){var u=e.parse(t[r],r,qt);if(!u)return null;l.push(u)}return new fe(n,l)},fe.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var n=this.args[e].evaluate(t);if(!Kt(this.type,se(n)))return n;if(e===this.args.length-1)throw new ce("Expected value to be of type "+Xt(this.type)+", but found "+Xt(se(n))+" instead.")}return null},fe.prototype.eachChild=function(t){this.args.forEach(t)},fe.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},fe.prototype.serialize=function(){var t=this.type,e=[t.kind];if("array"===t.kind){var n=t.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){e.push(n.kind);var r=t.N;("number"==typeof r||this.args.length>1)&&e.push(r)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var he=function(t){this.type=Wt,this.sections=t};he.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var n=t[1];if(!Array.isArray(n)&&"object"==typeof n)return e.error("First argument must be an image or text section.");for(var r=[],o=!1,i=1;i<=t.length-1;++i){var a=t[i];if(o&&"object"==typeof a&&!Array.isArray(a)){o=!1;var s=null;if(a["font-scale"]&&!(s=e.parse(a["font-scale"],1,Bt)))return null;var l=null;if(a["text-font"]&&!(l=e.parse(a["text-font"],1,Ht(Nt))))return null;var u=null;if(a["text-color"]&&!(u=e.parse(a["text-color"],1,Ut)))return null;var c=r[r.length-1];c.scale=s,c.font=l,c.textColor=u}else{var p=e.parse(t[i],1,qt);if(!p)return null;var f=p.type.kind;if("string"!==f&&"value"!==f&&"null"!==f&&"resolvedImage"!==f)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");o=!0,r.push({content:p,scale:null,font:null,textColor:null})}}return new he(r)},he.prototype.evaluate=function(t){return new re(this.sections.map((function(e){var n=e.content.evaluate(t);return se(n)===Zt?new ne("",n,null,null,null):new ne(le(n),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)})))},he.prototype.eachChild=function(t){for(var e=0,n=this.sections;e<n.length;e+=1){var r=n[e];t(r.content),r.scale&&t(r.scale),r.font&&t(r.font),r.textColor&&t(r.textColor)}},he.prototype.outputDefined=function(){return!1},he.prototype.serialize=function(){for(var t=["format"],e=0,n=this.sections;e<n.length;e+=1){var r=n[e];t.push(r.content.serialize());var o={};r.scale&&(o["font-scale"]=r.scale.serialize()),r.font&&(o["text-font"]=r.font.serialize()),r.textColor&&(o["text-color"]=r.textColor.serialize()),t.push(o)}return t};var de=function(t){this.type=Zt,this.input=t};de.parse=function(t,e){if(2!==t.length)return e.error("Expected two arguments.");var n=e.parse(t[1],1,Nt);return n?new de(n):e.error("No image name provided.")},de.prototype.evaluate=function(t){var e=this.input.evaluate(t),n=oe.fromString(e);return n&&t.availableImages&&(n.available=t.availableImages.indexOf(e)>-1),n},de.prototype.eachChild=function(t){t(this.input)},de.prototype.outputDefined=function(){return!1},de.prototype.serialize=function(){return["image",this.input.serialize()]};var me={"to-boolean":Ft,"to-color":Ut,"to-number":Bt,"to-string":Nt},ye=function(t,e){this.type=t,this.args=e};ye.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var n=t[0];if(("to-boolean"===n||"to-string"===n)&&2!==t.length)return e.error("Expected one argument.");for(var r=me[n],o=[],i=1;i<t.length;i++){var a=e.parse(t[i],i,qt);if(!a)return null;o.push(a)}return new ye(r,o)},ye.prototype.evaluate=function(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){for(var e,n,r=0,o=this.args;r<o.length;r+=1){if(n=null,(e=o[r].evaluate(t))instanceof te)return e;if("string"==typeof e){var i=t.parseColor(e);if(i)return i}else if(Array.isArray(e)&&!(n=e.length<3||e.length>4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":ie(e[0],e[1],e[2],e[3])))return new te(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new ce(n||"Could not parse color from value '"+("string"==typeof e?e:String(JSON.stringify(e)))+"'")}if("number"===this.type.kind){for(var a=null,s=0,l=this.args;s<l.length;s+=1){if(null===(a=l[s].evaluate(t)))return 0;var u=Number(a);if(!isNaN(u))return u}throw new ce("Could not convert "+JSON.stringify(a)+" to number.")}return"formatted"===this.type.kind?re.fromString(le(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?oe.fromString(le(this.args[0].evaluate(t))):le(this.args[0].evaluate(t))},ye.prototype.eachChild=function(t){this.args.forEach(t)},ye.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ye.prototype.serialize=function(){if("formatted"===this.type.kind)return new he([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new de(this.args[0]).serialize();var t=["to-"+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var ge=["Unknown","Point","LineString","Polygon"],ve=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};ve.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},ve.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?ge[this.feature.type]:this.feature.type:null},ve.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},ve.prototype.canonicalID=function(){return this.canonical},ve.prototype.properties=function(){return this.feature&&this.feature.properties||{}},ve.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=te.parse(t)),e};var _e=function(t,e,n,r){this.name=t,this.type=e,this._evaluate=n,this.args=r};_e.prototype.evaluate=function(t){return this._evaluate(t,this.args)},_e.prototype.eachChild=function(t){this.args.forEach(t)},_e.prototype.outputDefined=function(){return!1},_e.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},_e.parse=function(t,e){var n,r=t[0],o=_e.definitions[r];if(!o)return e.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0);for(var i=Array.isArray(o)?o[0]:o.type,a=Array.isArray(o)?[[o[1],o[2]]]:o.overloads,s=a.filter((function(e){var n=e[0];return!Array.isArray(n)||n.length===t.length-1})),l=null,u=0,c=s;u<c.length;u+=1){var p=c[u],f=p[0],h=p[1];l=new Ue(e.registry,e.path,null,e.scope);for(var d=[],m=!1,y=1;y<t.length;y++){var g=t[y],v=Array.isArray(f)?f[y-1]:f.type,_=l.parse(g,1+d.length,v);if(!_){m=!0;break}d.push(_)}if(!m)if(Array.isArray(f)&&f.length!==d.length)l.error("Expected "+f.length+" arguments, but found "+d.length+" instead.");else{for(var b=0;b<d.length;b++){var x=Array.isArray(f)?f[b]:f.type,w=d[b];l.concat(b+1).checkSubtype(x,w.type)}if(0===l.errors.length)return new _e(r,i,h,d)}}if(1===s.length)(n=e.errors).push.apply(n,l.errors);else{for(var E=(s.length?s:a).map((function(t){var e;return e=t[0],Array.isArray(e)?"("+e.map(Xt).join(", ")+")":"("+Xt(e.type)+"...)"})).join(" | "),S=[],k=1;k<t.length;k++){var T=e.parse(t[k],1+S.length);if(!T)return null;S.push(Xt(T.type))}e.error("Expected arguments of type "+E+", but found ("+S.join(", ")+") instead.")}return null},_e.register=function(t,e){for(var n in _e.definitions=e,e)t[n]=_e};var be=function(t,e,n){this.type=Gt,this.locale=n,this.caseSensitive=t,this.diacriticSensitive=e};function xe(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function we(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function Ee(t,e){var n=(180+t[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,o=Math.pow(2,e.z);return[Math.round(n*o*8192),Math.round(r*o*8192)]}function Se(t,e,n){return e[1]>t[1]!=n[1]>t[1]&&t[0]<(n[0]-e[0])*(t[1]-e[1])/(n[1]-e[1])+e[0]}function ke(t,e){for(var n,r,o,i,a,s,l,u=!1,c=0,p=e.length;c<p;c++)for(var f=e[c],h=0,d=f.length;h<d-1;h++){if((i=(n=t)[0]-(r=f[h])[0])*(l=n[1]-(o=f[h+1])[1])-(s=n[0]-o[0])*(a=n[1]-r[1])==0&&i*s<=0&&a*l<=0)return!1;Se(t,f[h],f[h+1])&&(u=!u)}return u}function Te(t,e){for(var n=0;n<e.length;n++)if(ke(t,e[n]))return!0;return!1}function Ce(t,e,n,r){var o=r[0]-n[0],i=r[1]-n[1],a=(t[0]-n[0])*i-o*(t[1]-n[1]),s=(e[0]-n[0])*i-o*(e[1]-n[1]);return a>0&&s<0||a<0&&s>0}function Pe(t,e,n){for(var r=0,o=n;r<o.length;r+=1)for(var i=o[r],a=0;a<i.length-1;++a)if(0!=(p=[(c=i[a+1])[0]-(u=i[a])[0],c[1]-u[1]])[0]*(f=[(l=e)[0]-(s=t)[0],l[1]-s[1]])[1]-p[1]*f[0]&&Ce(s,l,u,c)&&Ce(u,c,s,l))return!0;var s,l,u,c,p,f;return!1}function Ie(t,e){for(var n=0;n<t.length;++n)if(!ke(t[n],e))return!1;for(var r=0;r<t.length-1;++r)if(Pe(t[r],t[r+1],e))return!1;return!0}function Oe(t,e){for(var n=0;n<e.length;n++)if(Ie(t,e[n]))return!0;return!1}function Ae(t,e,n){for(var r=[],o=0;o<t.length;o++){for(var i=[],a=0;a<t[o].length;a++){var s=Ee(t[o][a],n);xe(e,s),i.push(s)}r.push(i)}return r}function ze(t,e,n){for(var r=[],o=0;o<t.length;o++){var i=Ae(t[o],e,n);r.push(i)}return r}function Me(t,e,n,r){if(t[0]<n[0]||t[0]>n[2]){var o=.5*r,i=t[0]-n[0]>o?-r:n[0]-t[0]>o?r:0;0===i&&(i=t[0]-n[2]>o?-r:n[2]-t[0]>o?r:0),t[0]+=i}xe(e,t)}function Re(t,e,n,r){for(var o=8192*Math.pow(2,r.z),i=[8192*r.x,8192*r.y],a=[],s=0,l=t;s<l.length;s+=1)for(var u=0,c=l[s];u<c.length;u+=1){var p=c[u],f=[p.x+i[0],p.y+i[1]];Me(f,e,n,o),a.push(f)}return a}function De(t,e,n,r){for(var o,i=8192*Math.pow(2,r.z),a=[8192*r.x,8192*r.y],s=[],l=0,u=t;l<u.length;l+=1){for(var c=[],p=0,f=u[l];p<f.length;p+=1){var h=f[p],d=[h.x+a[0],h.y+a[1]];xe(e,d),c.push(d)}s.push(c)}if(e[2]-e[0]<=i/2){(o=e)[0]=o[1]=1/0,o[2]=o[3]=-1/0;for(var m=0,y=s;m<y.length;m+=1)for(var g=0,v=y[m];g<v.length;g+=1)Me(v[g],e,n,i)}return s}be.parse=function(t,e){if(2!==t.length)return e.error("Expected one argument.");var n=t[1];if("object"!=typeof n||Array.isArray(n))return e.error("Collator options argument must be an object.");var r=e.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,Ft);if(!r)return null;var o=e.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,Ft);if(!o)return null;var i=null;return n.locale&&!(i=e.parse(n.locale,1,Nt))?null:new be(r,o,i)},be.prototype.evaluate=function(t){return new ee(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},be.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},be.prototype.outputDefined=function(){return!1},be.prototype.serialize=function(){var t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),["collator",t]};var Le=function(t,e){this.type=Ft,this.geojson=t,this.geometries=e};function je(t){if(t instanceof _e){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof Le)return!1;var e=!0;return t.eachChild((function(t){e&&!je(t)&&(e=!1)})),e}function Be(t){if(t instanceof _e&&"feature-state"===t.name)return!1;var e=!0;return t.eachChild((function(t){e&&!Be(t)&&(e=!1)})),e}function Ne(t,e){if(t instanceof _e&&e.indexOf(t.name)>=0)return!1;var n=!0;return t.eachChild((function(t){n&&!Ne(t,e)&&(n=!1)})),n}Le.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(ae(t[1])){var n=t[1];if("FeatureCollection"===n.type)for(var r=0;r<n.features.length;++r){var o=n.features[r].geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new Le(n,n.features[r].geometry)}else if("Feature"===n.type){var i=n.geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new Le(n,n.geometry)}else if("Polygon"===n.type||"MultiPolygon"===n.type)return new Le(n,n)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")},Le.prototype.evaluate=function(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return function(t,e){var n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],o=t.canonicalID();if("Polygon"===e.type){var i=Ae(e.coordinates,r,o),a=Re(t.geometry(),n,r,o);if(!we(n,r))return!1;for(var s=0,l=a;s<l.length;s+=1)if(!ke(l[s],i))return!1}if("MultiPolygon"===e.type){var u=ze(e.coordinates,r,o),c=Re(t.geometry(),n,r,o);if(!we(n,r))return!1;for(var p=0,f=c;p<f.length;p+=1)if(!Te(f[p],u))return!1}return!0}(t,this.geometries);if("LineString"===t.geometryType())return function(t,e){var n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],o=t.canonicalID();if("Polygon"===e.type){var i=Ae(e.coordinates,r,o),a=De(t.geometry(),n,r,o);if(!we(n,r))return!1;for(var s=0,l=a;s<l.length;s+=1)if(!Ie(l[s],i))return!1}if("MultiPolygon"===e.type){var u=ze(e.coordinates,r,o),c=De(t.geometry(),n,r,o);if(!we(n,r))return!1;for(var p=0,f=c;p<f.length;p+=1)if(!Oe(f[p],u))return!1}return!0}(t,this.geometries)}return!1},Le.prototype.eachChild=function(){},Le.prototype.outputDefined=function(){return!0},Le.prototype.serialize=function(){return["within",this.geojson]};var Fe=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};Fe.parse=function(t,e){if(2!==t.length||"string"!=typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");var n=t[1];return e.scope.has(n)?new Fe(n,e.scope.get(n)):e.error('Unknown variable "'+n+'". Make sure "'+n+'" has been bound in an enclosing "let" expression before using it.',1)},Fe.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},Fe.prototype.eachChild=function(){},Fe.prototype.outputDefined=function(){return!1},Fe.prototype.serialize=function(){return["var",this.name]};var Ue=function(t,e,n,r,o){void 0===e&&(e=[]),void 0===r&&(r=new Lt),void 0===o&&(o=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return"["+t+"]"})).join(""),this.scope=r,this.errors=o,this.expectedType=n};function Ve(t,e){for(var n,r=t.length-1,o=0,i=r,a=0;o<=i;)if((n=t[a=Math.floor((o+i)/2)])<=e){if(a===r||e<t[a+1])return a;o=a+1}else{if(!(n>e))throw new ce("Input is not a number.");i=a-1}return 0}Ue.prototype.parse=function(t,e,n,r,o){return void 0===o&&(o={}),e?this.concat(e,n,r)._parse(t,o):this._parse(t,o)},Ue.prototype._parse=function(t,e){function n(t,e,n){return"assert"===n?new fe(e,[t]):"coerce"===n?new ye(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var r=t[0];if("string"!=typeof r)return this.error("Expression name must be a string, but found "+typeof r+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var o=this.registry[r];if(o){var i=o.parse(t,this);if(!i)return null;if(this.expectedType){var a=this.expectedType,s=i.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else i=n(i,a,e.typeAnnotation||"coerce");else i=n(i,a,e.typeAnnotation||"assert")}if(!(i instanceof ue)&&"resolvedImage"!==i.type.kind&&function t(e){if(e instanceof Fe)return t(e.boundExpression);if(e instanceof _e&&"error"===e.name)return!1;if(e instanceof be)return!1;if(e instanceof Le)return!1;var n=e instanceof ye||e instanceof fe,r=!0;return e.eachChild((function(e){r=n?r&&t(e):r&&e instanceof ue})),!!r&&je(e)&&Ne(e,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(i)){var l=new ve;try{i=new ue(i.type,i.evaluate(l))}catch(t){return this.error(t.message),null}}return i}return this.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(void 0===t?"'undefined' value invalid. Use null instead.":"object"==typeof t?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof t+" instead.")},Ue.prototype.concat=function(t,e,n){var r="number"==typeof t?this.path.concat(t):this.path,o=n?this.scope.concat(n):this.scope;return new Ue(this.registry,r,e||null,o,this.errors)},Ue.prototype.error=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var r=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new Dt(r,t))},Ue.prototype.checkSubtype=function(t,e){var n=Kt(t,e);return n&&this.error(n),n};var qe=function(t,e,n){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var r=0,o=n;r<o.length;r+=1){var i=o[r],a=i[1];this.labels.push(i[0]),this.outputs.push(a)}};function Ge(t,e,n){return t*(1-n)+e*n}qe.parse=function(t,e){if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");var n=e.parse(t[1],1,Bt);if(!n)return null;var r=[],o=null;e.expectedType&&"value"!==e.expectedType.kind&&(o=e.expectedType);for(var i=1;i<t.length;i+=2){var a=1===i?-1/0:t[i],s=t[i+1],l=i,u=i+1;if("number"!=typeof a)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not c
1omputed expressions) for the input values.',l);if(r.length&&r[r.length-1][0]>=a)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var c=e.parse(s,u,o);if(!c)return null;o=o||c.type,r.push([a,c])}return new qe(o,n,r)},qe.prototype.evaluate=function(t){var e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);var r=this.input.evaluate(t);if(r<=e[0])return n[0].evaluate(t);var o=e.length;return r>=e[o-1]?n[o-1].evaluate(t):n[Ve(e,r)].evaluate(t)},qe.prototype.eachChild=function(t){t(this.input);for(var e=0,n=this.outputs;e<n.length;e+=1)t(n[e])},qe.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},qe.prototype.serialize=function(){for(var t=["step",this.input.serialize()],e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var We=Object.freeze({__proto__:null,number:Ge,color:function(t,e,n){return new te(Ge(t.r,e.r,n),Ge(t.g,e.g,n),Ge(t.b,e.b,n),Ge(t.a,e.a,n))},array:function(t,e,n){return t.map((function(t,r){return Ge(t,e[r],n)}))}}),Ze=6/29*3*(6/29),He=Math.PI/180,Xe=180/Math.PI;function $e(t){return t>.008856451679035631?Math.pow(t,1/3):t/Ze+4/29}function Ke(t){return t>6/29?t*t*t:Ze*(t-4/29)}
vendor: 187,334 bytes, line 1
1function Ye(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Je(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Qe(t){var e=Je(t.r),n=Je(t.g),r=Je(t.b),o=$e((.4124564*e+.3575761*n+.1804375*r)/.95047),i=$e((.2126729*e+.7151522*n+.072175*r)/1);return{l:116*i-16,a:500*(o-i),b:200*(i-$e((.0193339*e+.119192*n+.9503041*r)/1.08883)),alpha:t.a}}function tn(t){var e=(t.l+16)/116,n=isNaN(t.a)?e:e+t.a/500,r=isNaN(t.b)?e:e-t.b/200;return e=1*Ke(e),n=.95047*Ke(n),r=1.08883*Ke(r),new te(Ye(3.2404542*n-1.5371385*e-.4985314*r),Ye(-.969266*n+1.8760108*e+.041556*r),Ye(.0556434*n-.2040259*e+1.0572252*r),t.alpha)}function en(t,e,n){var r=e-t;return t+n*(r>180||r<-180?r-360*Math.round(r/360):r)}var nn={forward:Qe,reverse:tn,interpolate:function(t,e,n){return{l:Ge(t.l,e.l,n),a:Ge(t.a,e.a,n),b:Ge(t.b,e.b,n),alpha:Ge(t.alpha,e.alpha,n)}}},rn={forward:function(t){var e=Qe(t),n=e.l,r=e.a,o=e.b,i=Math.atan2(o,r)*Xe;return{h:i<0?i+360:i,c:Math.sqrt(r*r+o*o),l:n,alpha:t.a}},reverse:function(t){var e=t.h*He,n=t.c;return tn({l:t.l,a:Math.cos(e)*n,b:Math.sin(e)*n,alpha:t.alpha})},interpolate:function(t,e,n){return{h:en(t.h,e.h,n),c:Ge(t.c,e.c,n),l:Ge(t.l,e.l,n),alpha:Ge(t.alpha,e.alpha,n)}}},on=Object.freeze({__proto__:null,lab:nn,hcl:rn}),an=function(t,e,n,r,o){this.type=t,this.operator=e,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(var i=0,a=o;i<a.length;i+=1){var s=a[i],l=s[1];this.labels.push(s[0]),this.outputs.push(l)}};function sn(t,e,n,r){var o=r-n,i=t-n;return 0===o?0:1===e?i/o:(Math.pow(e,i)-1)/(Math.pow(e,o)-1)}an.interpolationFactor=function(t,e,r,o){var i=0;if("exponential"===t.name)i=sn(e,t.base,r,o);else if("linear"===t.name)i=sn(e,1,r,o);else if("cubic-bezier"===t.name){var a=t.controlPoints;i=new n(a[0],a[1],a[2],a[3]).solve(sn(e,1,r,o))}return i},an.parse=function(t,e){var n=t[0],r=t[1],o=t[2],i=t.slice(3);if(!Array.isArray(r)||0===r.length)return e.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){var a=r[1];if("number"!=typeof a)return e.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:a}}else{if("cubic-bezier"!==r[0])return e.error("Unknown interpolation type "+String(r[0]),1,0);var s=r.slice(1);if(4!==s.length||s.some((function(t){return"number"!=typeof t||t<0||t>1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(o=e.parse(o,2,Bt)))return null;var l=[],u=null;"interpolate-hcl"===n||"interpolate-lab"===n?u=Ut:e.expectedType&&"value"!==e.expectedType.kind&&(u=e.expectedType);for(var c=0;c<i.length;c+=2){var p=i[c],f=i[c+1],h=c+3,d=c+4;if("number"!=typeof p)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',h);if(l.length&&l[l.length-1][0]>=p)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',h);var m=e.parse(f,d,u);if(!m)return null;u=u||m.type,l.push([p,m])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"==typeof u.N?new an(u,n,r,o,l):e.error("Type "+Xt(u)+" is not interpolatable.")},an.prototype.evaluate=function(t){var e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);var r=this.input.evaluate(t);if(r<=e[0])return n[0].evaluate(t);var o=e.length;if(r>=e[o-1])return n[o-1].evaluate(t);var i=Ve(e,r),a=an.interpolationFactor(this.interpolation,r,e[i],e[i+1]),s=n[i].evaluate(t),l=n[i+1].evaluate(t);return"interpolate"===this.operator?We[this.type.kind.toLowerCase()](s,l,a):"interpolate-hcl"===this.operator?rn.reverse(rn.interpolate(rn.forward(s),rn.forward(l),a)):nn.reverse(nn.interpolate(nn.forward(s),nn.forward(l),a))},an.prototype.eachChild=function(t){t(this.input);for(var e=0,n=this.outputs;e<n.length;e+=1)t(n[e])},an.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},an.prototype.serialize=function(){var t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],n=0;n<this.labels.length;n++)e.push(this.labels[n],this.outputs[n].serialize());return e};var ln=function(t,e){this.type=t,this.args=e};ln.parse=function(t,e){if(t.length<2)return e.error("Expectected at least one argument.");var n=null,r=e.expectedType;r&&"value"!==r.kind&&(n=r);for(var o=[],i=0,a=t.slice(1);i<a.length;i+=1){var s=e.parse(a[i],1+o.length,n,void 0,{typeAnnotation:"omit"});if(!s)return null;n=n||s.type,o.push(s)}var l=r&&o.some((function(t){return Kt(r,t.type)}));return new ln(l?qt:n,o)},ln.prototype.evaluate=function(t){for(var e,n=null,r=0,o=0,i=this.args;o<i.length&&(r++,(n=i[o].evaluate(t))&&n instanceof oe&&!n.available&&(e||(e=n.name),n=null,r===this.args.length&&(n=e)),null===n);o+=1);return n},ln.prototype.eachChild=function(t){this.args.forEach(t)},ln.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ln.prototype.serialize=function(){var t=["coalesce"];return this.eachChild((function(e){t.push(e.serialize())})),t};var un=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};un.prototype.evaluate=function(t){return this.result.evaluate(t)},un.prototype.eachChild=function(t){for(var e=0,n=this.bindings;e<n.length;e+=1)t(n[e][1]);t(this.result)},un.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found "+(t.length-1)+" instead.");for(var n=[],r=1;r<t.length-1;r+=2){var o=t[r];if("string"!=typeof o)return e.error("Expected string, but found "+typeof o+" instead.",r);if(/[^a-zA-Z0-9_]/.test(o))return e.error("Variable names must contain only alphanumeric characters or '_'.",r);var i=e.parse(t[r+1],r+1);if(!i)return null;n.push([o,i])}var a=e.parse(t[t.length-1],t.length-1,e.expectedType,n);return a?new un(n,a):null},un.prototype.outputDefined=function(){return this.result.outputDefined()},un.prototype.serialize=function(){for(var t=["let"],e=0,n=this.bindings;e<n.length;e+=1){var r=n[e];t.push(r[0],r[1].serialize())}return t.push(this.result.serialize()),t};var cn=function(t,e,n){this.type=t,this.index=e,this.input=n};cn.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,Bt),r=e.parse(t[2],2,Ht(e.expectedType||qt));return n&&r?new cn(r.type.itemType,n,r):null},cn.prototype.evaluate=function(t){var e=this.index.evaluate(t),n=this.input.evaluate(t);if(e<0)throw new ce("Array index out of bounds: "+e+" < 0.");if(e>=n.length)throw new ce("Array index out of bounds: "+e+" > "+(n.length-1)+".");if(e!==Math.floor(e))throw new ce("Array index must be an integer, but found "+e+" instead.");return n[e]},cn.prototype.eachChild=function(t){t(this.index),t(this.input)},cn.prototype.outputDefined=function(){return!1},cn.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var pn=function(t,e){this.type=Ft,this.needle=t,this.haystack=e};pn.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,qt),r=e.parse(t[2],2,qt);return n&&r?Yt(n.type,[Ft,Nt,Bt,jt,qt])?new pn(n,r):e.error("Expected first argument to be of type boolean, string, number or null, but found "+Xt(n.type)+" instead"):null},pn.prototype.evaluate=function(t){var e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!n)return!1;if(!Jt(e,["boolean","string","number","null"]))throw new ce("Expected first argument to be of type boolean, string, number or null, but found "+Xt(se(e))+" instead.");if(!Jt(n,["string","array"]))throw new ce("Expected second argument to be of type array or string, but found "+Xt(se(n))+" instead.");return n.indexOf(e)>=0},pn.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},pn.prototype.outputDefined=function(){return!0},pn.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var fn=function(t,e,n){this.type=Bt,this.needle=t,this.haystack=e,this.fromIndex=n};fn.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,qt),r=e.parse(t[2],2,qt);if(!n||!r)return null;if(!Yt(n.type,[Ft,Nt,Bt,jt,qt]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+Xt(n.type)+" instead");if(4===t.length){var o=e.parse(t[3],3,Bt);return o?new fn(n,r,o):null}return new fn(n,r)},fn.prototype.evaluate=function(t){var e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!Jt(e,["boolean","string","number","null"]))throw new ce("Expected first argument to be of type boolean, string, number or null, but found "+Xt(se(e))+" instead.");if(!Jt(n,["string","array"]))throw new ce("Expected second argument to be of type array or string, but found "+Xt(se(n))+" instead.");if(this.fromIndex){var r=this.fromIndex.evaluate(t);return n.indexOf(e,r)}return n.indexOf(e)},fn.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},fn.prototype.outputDefined=function(){return!1},fn.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var hn=function(t,e,n,r,o,i){this.inputType=t,this.type=e,this.input=n,this.cases=r,this.outputs=o,this.otherwise=i};hn.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return e.error("Expected an even number of arguments.");var n,r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var o={},i=[],a=2;a<t.length-1;a+=2){var s=t[a],l=t[a+1];Array.isArray(s)||(s=[s]);var u=e.concat(a);if(0===s.length)return u.error("Expected at least one branch label.");for(var c=0,p=s;c<p.length;c+=1){var f=p[c];if("number"!=typeof f&&"string"!=typeof f)return u.error("Branch labels must be numbers or strings.");if("number"==typeof f&&Math.abs(f)>Number.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof f&&Math.floor(f)!==f)return u.error("Numeric branch labels must be integer values.");if(n){if(u.checkSubtype(n,se(f)))return null}else n=se(f);if(void 0!==o[String(f)])return u.error("Branch labels must be unique.");o[String(f)]=i.length}var h=e.parse(l,a,r);if(!h)return null;r=r||h.type,i.push(h)}var d=e.parse(t[1],1,qt);if(!d)return null;var m=e.parse(t[t.length-1],t.length-1,r);return m?"value"!==d.type.kind&&e.concat(1).checkSubtype(n,d.type)?null:new hn(n,r,d,o,i,m):null},hn.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(se(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},hn.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},hn.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},hn.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],n=[],r={},o=0,i=Object.keys(this.cases).sort();o<i.length;o+=1){var a=i[o];void 0===(p=r[this.cases[a]])?(r[this.cases[a]]=n.length,n.push([this.cases[a],[a]])):n[p][1].push(a)}for(var s=function(e){return"number"===t.inputType.kind?Number(e):e},l=0,u=n;l<u.length;l+=1){var c=u[l],p=c[0],f=c[1];e.push(1===f.length?s(f[0]):f.map(s)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var dn=function(t,e,n){this.type=t,this.branches=e,this.otherwise=n};dn.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found only "+(t.length-1)+".");if(t.length%2!=0)return e.error("Expected an odd number of arguments.");var n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);for(var r=[],o=1;o<t.length-1;o+=2){var i=e.parse(t[o],o,Ft);if(!i)return null;var a=e.parse(t[o+1],o+1,n);if(!a)return null;r.push([i,a]),n=n||a.type}var s=e.parse(t[t.length-1],t.length-1,n);return s?new dn(n,r,s):null},dn.prototype.evaluate=function(t){for(var e=0,n=this.branches;e<n.length;e+=1){var r=n[e],o=r[1];if(r[0].evaluate(t))return o.evaluate(t)}return this.otherwise.evaluate(t)},dn.prototype.eachChild=function(t){for(var e=0,n=this.branches;e<n.length;e+=1){var r=n[e],o=r[1];t(r[0]),t(o)}t(this.otherwise)},dn.prototype.outputDefined=function(){return this.branches.every((function(t){return t[1].outputDefined()}))&&this.otherwise.outputDefined()},dn.prototype.serialize=function(){var t=["case"];return this.eachChild((function(e){t.push(e.serialize())})),t};var mn=function(t,e,n,r){this.type=t,this.input=e,this.beginIndex=n,this.endIndex=r};function yn(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function gn(t,e,n,r){return 0===r.compare(e,n)}function vn(t,e,n){var r="=="!==t&&"!="!==t;return function(){function o(t,e,n){this.type=Ft,this.lhs=t,this.rhs=e,this.collator=n,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}return o.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");var n=t[0],i=e.parse(t[1],1,qt);if(!i)return null;if(!yn(n,i.type))return e.concat(1).error('"'+n+"\" comparisons are not supported for type '"+Xt(i.type)+"'.");var a=e.parse(t[2],2,qt);if(!a)return null;if(!yn(n,a.type))return e.concat(2).error('"'+n+"\" comparisons are not supported for type '"+Xt(a.type)+"'.");if(i.type.kind!==a.type.kind&&"value"!==i.type.kind&&"value"!==a.type.kind)return e.error("Cannot compare types '"+Xt(i.type)+"' and '"+Xt(a.type)+"'.");r&&("value"===i.type.kind&&"value"!==a.type.kind?i=new fe(a.type,[i]):"value"!==i.type.kind&&"value"===a.type.kind&&(a=new fe(i.type,[a])));var s=null;if(4===t.length){if("string"!==i.type.kind&&"string"!==a.type.kind&&"value"!==i.type.kind&&"value"!==a.type.kind)return e.error("Cannot use collator to compare non-string types.");if(!(s=e.parse(t[3],3,Gt)))return null}return new o(i,a,s)},o.prototype.evaluate=function(o){var i=this.lhs.evaluate(o),a=this.rhs.evaluate(o);if(r&&this.hasUntypedArgument){var s=se(i),l=se(a);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new ce('Expected arguments for "'+t+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&&!r&&this.hasUntypedArgument){var u=se(i),c=se(a);if("string"!==u.kind||"string"!==c.kind)return e(o,i,a)}return this.collator?n(o,i,a,this.collator.evaluate(o)):e(o,i,a)},o.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},o.prototype.outputDefined=function(){return!0},o.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},o}()}mn.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,qt),r=e.parse(t[2],2,Bt);if(!n||!r)return null;if(!Yt(n.type,[Ht(qt),Nt,qt]))return e.error("Expected first argument to be of type array or string, but found "+Xt(n.type)+" instead");if(4===t.length){var o=e.parse(t[3],3,Bt);return o?new mn(n.type,n,r,o):null}return new mn(n.type,n,r)},mn.prototype.evaluate=function(t){var e=this.input.evaluate(t),n=this.beginIndex.evaluate(t);if(!Jt(e,["string","array"]))throw new ce("Expected first argument to be of type array or string, but found "+Xt(se(e))+" instead.");if(this.endIndex){var r=this.endIndex.evaluate(t);return e.slice(n,r)}return e.slice(n)},mn.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},mn.prototype.outputDefined=function(){return!1},mn.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var _n=vn("==",(function(t,e,n){return e===n}),gn),bn=vn("!=",(function(t,e,n){return e!==n}),(function(t,e,n,r){return!gn(0,e,n,r)})),xn=vn("<",(function(t,e,n){return e<n}),(function(t,e,n,r){return r.compare(e,n)<0})),wn=vn(">",(function(t,e,n){return e>n}),(function(t,e,n,r){return r.compare(e,n)>0})),En=vn("<=",(function(t,e,n){return e<=n}),(function(t,e,n,r){return r.compare(e,n)<=0})),Sn=vn(">=",(function(t,e,n){return e>=n}),(function(t,e,n,r){return r.compare(e,n)>=0})),kn=function(t,e,n,r,o){this.type=Nt,this.number=t,this.locale=e,this.currency=n,this.minFractionDigits=r,this.maxFractionDigits=o};kn.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var n=e.parse(t[1],1,Bt);if(!n)return null;var r=t[2];if("object"!=typeof r||Array.isArray(r))return e.error("NumberFormat options argument must be an object.");var o=null;if(r.locale&&!(o=e.parse(r.locale,1,Nt)))return null;var i=null;if(r.currency&&!(i=e.parse(r.currency,1,Nt)))return null;var a=null;if(r["min-fraction-digits"]&&!(a=e.parse(r["min-fraction-digits"],1,Bt)))return null;var s=null;return r["max-fraction-digits"]&&!(s=e.parse(r["max-fraction-digits"],1,Bt))?null:new kn(n,o,i,a,s)},kn.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},kn.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},kn.prototype.outputDefined=function(){return!1},kn.prototype.serialize=function(){var t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};var Tn=function(t){this.type=Bt,this.input=t};Tn.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?e.error("Expected argument of type string or array, but found "+Xt(n.type)+" instead."):new Tn(n):null},Tn.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new ce("Expected value to be of type string or array, but found "+Xt(se(e))+" instead.")},Tn.prototype.eachChild=function(t){t(this.input)},Tn.prototype.outputDefined=function(){return!1},Tn.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var Cn={"==":_n,"!=":bn,">":wn,"<":xn,">=":Sn,"<=":En,array:fe,at:cn,boolean:fe,case:dn,coalesce:ln,collator:be,format:he,image:de,in:pn,"index-of":fn,interpolate:an,"interpolate-hcl":an,"interpolate-lab":an,length:Tn,let:un,literal:ue,match:hn,number:fe,"number-format":kn,object:fe,slice:mn,step:qe,string:fe,"to-boolean":ye,"to-color":ye,"to-number":ye,"to-string":ye,var:Fe,within:Le};function Pn(t,e){var n=e[0],r=e[1],o=e[2],i=e[3];n=n.evaluate(t),r=r.evaluate(t),o=o.evaluate(t);var a=i?i.evaluate(t):1,s=ie(n,r,o,a);if(s)throw new ce(s);return new te(n/255*a,r/255*a,o/255*a,a)}function In(t,e){return t in e}function On(t,e){var n=e[t];return void 0===n?null:n}function An(t){return{type:t}}function zn(t){return{result:"success",value:t}}function Mn(t){return{result:"error",value:t}}function Rn(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function Dn(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Ln(t){return!!t.expression&&t.expression.interpolated}function jn(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function Bn(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function Nn(t){return t}function Fn(t,e,n){return void 0!==t?t:void 0!==e?e:void 0!==n?n:void 0}function Un(t,e,n,r,o){return Fn(typeof n===o?r[n]:void 0,t.default,e.default)}function Vn(t,e,n){if("number"!==jn(n))return Fn(t.default,e.default);var r=t.stops.length;if(1===r)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[r-1][0])return t.stops[r-1][1];var o=Ve(t.stops.map((function(t){return t[0]})),n);return t.stops[o][1]}function qn(t,e,n){var r=void 0!==t.base?t.base:1;if("number"!==jn(n))return Fn(t.default,e.default);var o=t.stops.length;if(1===o)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[o-1][0])return t.stops[o-1][1];var i=Ve(t.stops.map((function(t){return t[0]})),n),a=function(t,e,n,r){var o=r-n,i=t-n;return 0===o?0:1===e?i/o:(Math.pow(e,i)-1)/(Math.pow(e,o)-1)}(n,r,t.stops[i][0],t.stops[i+1][0]),s=t.stops[i][1],l=t.stops[i+1][1],u=We[e.type]||Nn;if(t.colorSpace&&"rgb"!==t.colorSpace){var c=on[t.colorSpace];u=function(t,e){return c.reverse(c.interpolate(c.forward(t),c.forward(e),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=s.evaluate.apply(void 0,t),r=l.evaluate.apply(void 0,t);if(void 0!==n&&void 0!==r)return u(n,r,a)}}:u(s,l,a)}function Gn(t,e,n){return"color"===e.type?n=te.parse(n):"formatted"===e.type?n=re.fromString(n.toString()):"resolvedImage"===e.type?n=oe.fromString(n.toString()):jn(n)===e.type||"enum"===e.type&&e.values[n]||(n=void 0),Fn(n,t.default,e.default)}_e.register(Cn,{error:[{kind:"error"},[Nt],function(t,e){throw new ce(e[0].evaluate(t))}],typeof:[Nt,[qt],function(t,e){return Xt(se(e[0].evaluate(t)))}],"to-rgba":[Ht(Bt,4),[Ut],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Ut,[Bt,Bt,Bt],Pn],rgba:[Ut,[Bt,Bt,Bt,Bt],Pn],has:{type:Ft,overloads:[[[Nt],function(t,e){return In(e[0].evaluate(t),t.properties())}],[[Nt,Vt],function(t,e){var n=e[1];return In(e[0].evaluate(t),n.evaluate(t))}]]},get:{type:qt,overloads:[[[Nt],function(t,e){return On(e[0].evaluate(t),t.properties())}],[[Nt,Vt],function(t,e){var n=e[1];return On(e[0].evaluate(t),n.evaluate(t))}]]},"feature-state":[qt,[Nt],function(t,e){return On(e[0].evaluate(t),t.featureState||{})}],properties:[Vt,[],function(t){return t.properties()}],"geometry-type":[Nt,[],function(t){return t.geometryType()}],id:[qt,[],function(t){return t.id()}],zoom:[Bt,[],function(t){return t.globals.zoom}],"heatmap-density":[Bt,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[Bt,[],function(t){return t.globals.lineProgress||0}],accumulated:[qt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[Bt,An(Bt),function(t,e){for(var n=0,r=0,o=e;r<o.length;r+=1)n+=o[r].evaluate(t);return n}],"*":[Bt,An(Bt),function(t,e){for(var n=1,r=0,o=e;r<o.length;r+=1)n*=o[r].evaluate(t);return n}],"-":{type:Bt,overloads:[[[Bt,Bt],function(t,e){var n=e[1];return e[0].evaluate(t)-n.evaluate(t)}],[[Bt],function(t,e){return-e[0].evaluate(t)}]]},"/":[Bt,[Bt,Bt],function(t,e){var n=e[1];return e[0].evaluate(t)/n.evaluate(t)}],"%":[Bt,[Bt,Bt],function(t,e){var n=e[1];return e[0].evaluate(t)%n.evaluate(t)}],ln2:[Bt,[],function(){return Math.LN2}],pi:[Bt,[],function(){return Math.PI}],e:[Bt,[],function(){return Math.E}],"^":[Bt,[Bt,Bt],function(t,e){var n=e[1];return Math.pow(e[0].evaluate(t),n.evaluate(t))}],sqrt:[Bt,[Bt],function(t,e){return Math.sqrt(e[0].evaluate(t))}],log10:[Bt,[Bt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN10}],ln:[Bt,[Bt],function(t,e){return Math.log(e[0].evaluate(t))}],log2:[Bt,[Bt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN2}],sin:[Bt,[Bt],function(t,e){return Math.sin(e[0].evaluate(t))}],cos:[Bt,[Bt],function(t,e){return Math.cos(e[0].evaluate(t))}],tan:[Bt,[Bt],function(t,e){return Math.tan(e[0].evaluate(t))}],asin:[Bt,[Bt],function(t,e){return Math.asin(e[0].evaluate(t))}],acos:[Bt,[Bt],function(t,e){return Math.acos(e[0].evaluate(t))}],atan:[Bt,[Bt],function(t,e){return Math.atan(e[0].evaluate(t))}],min:[Bt,An(Bt),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[Bt,An(Bt),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[Bt,[Bt],function(t,e){return Math.abs(e[0].evaluate(t))}],round:[Bt,[Bt],function(t,e){var n=e[0].evaluate(t);return n<0?-Math.round(-n):Math.round(n)}],floor:[Bt,[Bt],function(t,e){return Math.floor(e[0].evaluate(t))}],ceil:[Bt,[Bt],function(t,e){return Math.ceil(e[0].evaluate(t))}],"filter-==":[Ft,[Nt,qt],function(t,e){var n=e[0],r=e[1];return t.properties()[n.value]===r.value}],"filter-id-==":[Ft,[qt],function(t,e){var n=e[0];return t.id()===n.value}],"filter-type-==":[Ft,[Nt],function(t,e){var n=e[0];return t.geometryType()===n.value}],"filter-<":[Ft,[Nt,qt],function(t,e){var n=e[0],r=e[1],o=t.properties()[n.value],i=r.value;return typeof o==typeof i&&o<i}],"filter-id-<":[Ft,[qt],function(t,e){var n=e[0],r=t.id(),o=n.value;return typeof r==typeof o&&r<o}],"filter->":[Ft,[Nt,qt],function(t,e){var n=e[0],r=e[1],o=t.properties()[n.value],i=r.value;return typeof o==typeof i&&o>i}],"filter-id->":[Ft,[qt],function(t,e){var n=e[0],r=t.id(),o=n.value;return typeof r==typeof o&&r>o}],"filter-<=":[Ft,[Nt,qt],function(t,e){var n=e[0],r=e[1],o=t.properties()[n.value],i=r.value;return typeof o==typeof i&&o<=i}],"filter-id-<=":[Ft,[qt],function(t,e){var n=e[0],r=t.id(),o=n.value;return typeof r==typeof o&&r<=o}],"filter->=":[Ft,[Nt,qt],function(t,e){var n=e[0],r=e[1],o=t.properties()[n.value],i=r.value;return typeof o==typeof i&&o>=i}],"filter-id->=":[Ft,[qt],function(t,e){var n=e[0],r=t.id(),o=n.value;return typeof r==typeof o&&r>=o}],"filter-has":[Ft,[qt],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[Ft,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[Ft,[Ht(Nt)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[Ft,[Ht(qt)],function(t,e){return e[0].value.indexOf(t.id())>=0}],"filter-in-small":[Ft,[Nt,Ht(qt)],function(t,e){var n=e[0];return e[1].value.indexOf(t.properties()[n.value])>=0}],"filter-in-large":[Ft,[Nt,Ht(qt)],function(t,e){var n=e[0],r=e[1];return function(t,e,n,r){for(;n<=r;){var o=n+r>>1;if(e[o]===t)return!0;e[o]>t?r=o-1:n=o+1}return!1}(t.properties()[n.value],r.value,0,r.value.length-1)}],all:{type:Ft,overloads:[[[Ft,Ft],function(t,e){var n=e[1];return e[0].evaluate(t)&&n.evaluate(t)}],[An(Ft),function(t,e){for(var n=0,r=e;n<r.length;n+=1)if(!r[n].evaluate(t))return!1;return!0}]]},any:{type:Ft,overloads:[[[Ft,Ft],function(t,e){var n=e[1];return e[0].evaluate(t)||n.evaluate(t)}],[An(Ft),function(t,e){for(var n=0,r=e;n<r.length;n+=1)if(r[n].evaluate(t))return!0;return!1}]]},"!":[Ft,[Ft],function(t,e){return!e[0].evaluate(t)}],"is-supported-script":[Ft,[Nt],function(t,e){var n=t.globals&&t.globals.isSupportedScript;return!n||n(e[0].evaluate(t))}],upcase:[Nt,[Nt],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Nt,[Nt],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Nt,An(qt),function(t,e){return e.map((function(e){return le(e.evaluate(t))})).join("")}],"resolved-locale":[Nt,[Gt],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var Wn=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new ve,this._defaultValue=e?function(t){return"color"===t.type&&Bn(t.default)?new te(0,0,0,0):"color"===t.type?te.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&&"enum"===e.type?e.values:null};function Zn(t){return Array.isArray(t)&&t.length>0&&"string"==typeof t[0]&&t[0]in Cn}function Hn(t,e){var n=new Ue(Cn,[],e?function(t){var e={color:Ut,string:Nt,number:Bt,enum:Nt,boolean:Ft,formatted:Wt,resolvedImage:Zt};return"array"===t.type?Ht(e[t.value]||qt,t.length):e[t.type]}(e):void 0),r=n.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return r?zn(new Wn(r,e)):Mn(n.errors)}Wn.prototype.evaluateWithoutErrorHandling=function(t,e,n,r,o,i){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=n,this._evaluator.canonical=r,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=i,this.expression.evaluate(this._evaluator)},Wn.prototype.evaluate=function(t,e,n,r,o,i){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=i||null;try{var a=this.expression.evaluate(this._evaluator);if(null==a||"number"==typeof a&&a!=a)return this._defaultValue;if(this._enumValues&&!(a in this._enumValues))throw new ce("Expected value to be one of "+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", ")+", but found "+JSON.stringify(a)+" instead.");return a}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}};var Xn=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Be(e.expression)};Xn.prototype.evaluateWithoutErrorHandling=function(t,e,n,r,o,i){return this._styleExpression.evaluateWithoutErrorHandling(t,e,n,r,o,i)},Xn.prototype.evaluate=function(t,e,n,r,o,i){return this._styleExpression.evaluate(t,e,n,r,o,i)};var $n=function(t,e,n,r){this.kind=t,this.zoomStops=n,this._styleExpression=e,this.isStateDependent="camera"!==t&&!Be(e.expression),this.interpolationType=r};function Kn(t,e){if("error"===(t=Hn(t,e)).result)return t;var n=t.value.expression,r=je(n);if(!r&&!Rn(e))return Mn([new Dt("","data expressions not supported")]);var o=Ne(n,["zoom"]);if(!o&&!Dn(e))return Mn([new Dt("","zoom expressions not supported")]);var i=function t(e){var n=null;if(e instanceof un)n=t(e.result);else if(e instanceof ln)for(var r=0,o=e.args;r<o.length&&!(n=t(o[r]));r+=1);else(e instanceof qe||e instanceof an)&&e.input instanceof _e&&"zoom"===e.input.name&&(n=e);return n instanceof Dt||e.eachChild((function(e){var r=t(e);r instanceof Dt?n=r:!n&&r?n=new Dt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&r&&n!==r&&(n=new Dt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),n}(n);return i||o?i instanceof Dt?Mn([i]):i instanceof an&&!Ln(e)?Mn([new Dt("",'"interpolate" expressions cannot be used with this property')]):zn(i?new $n(r?"camera":"composite",t.value,i.labels,i instanceof an?i.interpolation:void 0):new Xn(r?"constant":"source",t.value)):Mn([new Dt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}$n.prototype.evaluateWithoutErrorHandling=function(t,e,n,r,o,i){return this._styleExpression.evaluateWithoutErrorHandling(t,e,n,r,o,i)},$n.prototype.evaluate=function(t,e,n,r,o,i){return this._styleExpression.evaluate(t,e,n,r,o,i)},$n.prototype.interpolationFactor=function(t,e,n){return this.interpolationType?an.interpolationFactor(this.interpolationType,t,e,n):0};var Yn=function(t,e){this._parameters=t,this._specification=e,zt(this,function t(e,n){var r,o,i,a="color"===n.type,s=e.stops&&"object"==typeof e.stops[0][0],l=s||!(s||void 0!==e.property),u=e.type||(Ln(n)?"exponential":"interval");if(a&&((e=zt({},e)).stops&&(e.stops=e.stops.map((function(t){return[t[0],te.parse(t[1])]}))),e.default=te.parse(e.default?e.default:n.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!on[e.colorSpace])throw new Error("Unknown color space: "+e.colorSpace);if("exponential"===u)r=qn;else if("interval"===u)r=Vn;else if("categorical"===u){r=Un,o=Object.create(null);for(var c=0,p=e.stops;c<p.length;c+=1){var f=p[c];o[f[0]]=f[1]}i=typeof e.stops[0][0]}else{if("identity"!==u)throw new Error('Unknown function type "'+u+'"');r=Gn}if(s){for(var h={},d=[],m=0;m<e.stops.length;m++){var y=e.stops[m],g=y[0].zoom;void 0===h[g]&&(h[g]={zoom:g,type:e.type,property:e.property,default:e.default,stops:[]},d.push(g)),h[g].stops.push([y[0].value,y[1]])}for(var v=[],_=0,b=d;_<b.length;_+=1){var x=b[_];v.push([h[x].zoom,t(h[x],n)])}var w={name:"linear"};return{kind:"composite",interpolationType:w,interpolationFactor:an.interpolationFactor.bind(void 0,w),zoomStops:v.map((function(t){return t[0]})),evaluate:function(t,r){var o=t.zoom;return qn({stops:v,base:e.base},n,o).evaluate(o,r)}}}if(l){var E="exponential"===u?{name:"exponential",base:void 0!==e.base?e.base:1}:null;return{kind:"camera",interpolationType:E,interpolationFactor:an.interpolationFactor.bind(void 0,E),zoomStops:e.stops.map((function(t){return t[0]})),evaluate:function(t){return r(e,n,t.zoom,o,i)}}}return{kind:"source",evaluate:function(t,a){var s=a&&a.properties?a.properties[e.property]:void 0;return void 0===s?Fn(e.default,n.default):r(e,n,s,o,i)}}}(this._parameters,this._specification))};function Jn(t){var e=t.key,n=t.value,r=t.valueSpec||{},o=t.objectElementValidators||{},i=t.style,a=t.styleSpec,s=[],l=jn(n);if("object"!==l)return[new Ot(e,n,"object expected, "+l+" found")];for(var u in n){var c=u.split(".")[0],p=r[c]||r["*"],f=void 0;if(o[c])f=o[c];else if(r[c])f=Er;else if(o["*"])f=o["*"];else{if(!r["*"]){s.push(new Ot(e,n[u],'unknown property "'+u+'"'));continue}f=Er}s=s.concat(f({key:(e?e+".":e)+u,value:n[u],valueSpec:p,style:i,styleSpec:a,object:n,objectKey:u},n))}for(var h in r)o[h]||r[h].required&&void 0===r[h].default&&void 0===n[h]&&s.push(new Ot(e,n,'missing required property "'+h+'"'));return s}function Qn(t){var e=t.value,n=t.valueSpec,r=t.style,o=t.styleSpec,i=t.key,a=t.arrayElementValidator||Er;if("array"!==jn(e))return[new Ot(i,e,"array expected, "+jn(e)+" found")];if(n.length&&e.length!==n.length)return[new Ot(i,e,"array length "+n.length+" expected, length "+e.length+" found")];if(n["min-length"]&&e.length<n["min-length"])return[new Ot(i,e,"array length at least "+n["min-length"]+" expected, length "+e.length+" found")];var s={type:n.value,values:n.values};o.$version<7&&(s.function=n.function),"object"===jn(n.value)&&(s=n.value);for(var l=[],u=0;u<e.length;u++)l=l.concat(a({array:e,arrayIndex:u,value:e[u],valueSpec:s,style:r,styleSpec:o,key:i+"["+u+"]"}));return l}function tr(t){var e=t.key,n=t.value,r=t.valueSpec,o=jn(n);return"number"===o&&n!=n&&(o="NaN"),"number"!==o?[new Ot(e,n,"number expected, "+o+" found")]:"minimum"in r&&n<r.minimum?[new Ot(e,n,n+" is less than the minimum value "+r.minimum)]:"maximum"in r&&n>r.maximum?[new Ot(e,n,n+" is greater than the maximum value "+r.maximum)]:[]}function er(t){var e,n,r,o=t.valueSpec,i=Mt(t.value.type),a={},s="categorical"!==i&&void 0===t.value.property,l=!s,u="array"===jn(t.value.stops)&&"array"===jn(t.value.stops[0])&&"object"===jn(t.value.stops[0][0]),c=Jn({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===i)return[new Ot(t.key,t.value,'identity function may not have a "stops" property')];var e=[],n=t.value;return e=e.concat(Qn({key:t.key,value:n,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:p})),"array"===jn(n)&&0===n.length&&e.push(new Ot(t.key,n,"array must have at least one stop")),e},default:function(t){return Er({key:t.key,value:t.value,valueSpec:o,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===i&&s&&c.push(new Ot(t.key,t.value,'missing required property "property"')),"identity"===i||t.value.stops||c.push(new Ot(t.key,t.value,'missing required property "stops"')),"exponential"===i&&t.valueSpec.expression&&!Ln(t.valueSpec)&&c.push(new Ot(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!Rn(t.valueSpec)?c.push(new Ot(t.key,t.value,"property functions not supported")):s&&!Dn(t.valueSpec)&&c.push(new Ot(t.key,t.value,"zoom functions not supported"))),"categorical"!==i&&!u||void 0!==t.value.property||c.push(new Ot(t.key,t.value,'"property" property is required')),c;function p(t){var e=[],i=t.value,s=t.key;if("array"!==jn(i))return[new Ot(s,i,"array expected, "+jn(i)+" found")];if(2!==i.length)return[new Ot(s,i,"array length 2 expected, length "+i.length+" found")];if(u){if("object"!==jn(i[0]))return[new Ot(s,i,"object expected, "+jn(i[0])+" found")];if(void 0===i[0].zoom)return[new Ot(s,i,"object stop key must have zoom")];if(void 0===i[0].value)return[new Ot(s,i,"object stop key must have value")];if(r&&r>Mt(i[0].zoom))return[new Ot(s,i[0].zoom,"stop zoom values must appear in ascending order")];Mt(i[0].zoom)!==r&&(r=Mt(i[0].zoom),n=void 0,a={}),e=e.concat(Jn({key:s+"[0]",value:i[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:tr,value:f}}))}else e=e.concat(f({key:s+"[0]",value:i[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},i));return Zn(Rt(i[1]))?e.concat([new Ot(s+"[1]",i[1],"expressions are not allowed in function stops.")]):e.concat(Er({key:s+"[1]",value:i[1],valueSpec:o,style:t.style,styleSpec:t.styleSpec}))}function f(t,r){var s=jn(t.value),l=Mt(t.value),u=null!==t.value?t.value:r;if(e){if(s!==e)return[new Ot(t.key,u,s+" stop domain type must match previous stop domain type "+e)]}else e=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new Ot(t.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==i){var c="number expected, "+s+" found";return Rn(o)&&void 0===i&&(c+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Ot(t.key,u,c)]}return"categorical"!==i||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==i&&"number"===s&&void 0!==n&&l<n?[new Ot(t.key,u,"stop domain values must appear in ascending order")]:(n=l,"categorical"===i&&l in a?[new Ot(t.key,u,"stop domain values must be unique")]:(a[l]=!0,[])):[new Ot(t.key,u,"integer expected, found "+l)]}}function nr(t){var e=("property"===t.expressionContext?Kn:Hn)(Rt(t.value),t.valueSpec);if("error"===e.result)return e.value.map((function(e){return new Ot(""+t.key+e.key,t.value,e.message)}));var n=e.value.expression||e.value._styleExpression.expression;if("property"===t.expressionContext&&"text-font"===t.propertyKey&&!n.outputDefined())return[new Ot(t.key,t.value,'Invalid data expression for "'+t.propertyKey+'". Output values must be contained as literals within the expression.')];if("property"===t.expressionContext&&"layout"===t.propertyType&&!Be(n))return[new Ot(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===t.expressionContext&&!Be(n))return[new Ot(t.key,t.value,'"feature-state" data expressions are not supported with filters.')];if(t.expressionContext&&0===t.expressionContext.indexOf("cluster")){if(!Ne(n,["zoom","feature-state"]))return[new Ot(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===t.expressionContext&&!je(n))return[new Ot(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function rr(t){var e=t.key,n=t.value,r=t.valueSpec,o=[];return Array.isArray(r.values)?-1===r.values.indexOf(Mt(n))&&o.push(new Ot(e,n,"expected one of ["+r.values.join(", ")+"], "+JSON.stringify(n)+" found")):-1===Object.keys(r.values).indexOf(Mt(n))&&o.push(new Ot(e,n,"expected one of ["+Object.keys(r.values).join(", ")+"], "+JSON.stringify(n)+" found")),o}function or(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,n=t.slice(1);e<n.length;e+=1){var r=n[e];if(!or(r)&&"boolean"!=typeof r)return!1}return!0;default:return!0}}Yn.deserialize=function(t){return new Yn(t._parameters,t._specification)},Yn.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var ir={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function ar(t){if(null==t)return{filter:function(){return!0},needGeometry:!1};or(t)||(t=lr(t));var e=Hn(t,ir);if("error"===e.result)throw new Error(e.value.map((function(t){return t.key+": "+t.message})).join(", "));return{filter:function(t,n,r){return e.value.evaluate(t,n,{},r)},needGeometry:function t(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(var n=1;n<e.length;n++)if(t(e[n]))return!0;return!1}(t)}}function sr(t,e){return t<e?-1:t>e?1:0}function lr(t){if(!t)return!0;var e,n=t[0];return t.length<=1?"any"!==n:"=="===n?ur(t[1],t[2],"=="):"!="===n?fr(ur(t[1],t[2],"==")):"<"===n||">"===n||"<="===n||">="===n?ur(t[1],t[2],n):"any"===n?(e=t.slice(1),["any"].concat(e.map(lr))):"all"===n?["all"].concat(t.slice(1).map(lr)):"none"===n?["all"].concat(t.slice(1).map(lr).map(fr)):"in"===n?cr(t[1],t.slice(2)):"!in"===n?fr(cr(t[1],t.slice(2))):"has"===n?pr(t[1]):"!has"===n?fr(pr(t[1])):"within"!==n||t}function ur(t,e,n){switch(t){case"$type":return["filter-type-"+n,e];case"$id":return["filter-id-"+n,e];default:return["filter-"+n,t,e]}}function cr(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((function(t){return typeof t!=typeof e[0]}))?["filter-in-large",t,["literal",e.sort(sr)]]:["filter-in-small",t,["literal",e]]}}function pr(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function fr(t){return["!",t]}function hr(t){return or(Rt(t.value))?nr(zt({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function t(e){var n=e.value,r=e.key;if("array"!==jn(n))return[new Ot(r,n,"array expected, "+jn(n)+" found")];var o,i=e.styleSpec,a=[];if(n.length<1)return[new Ot(r,n,"filter array must have at least 1 element")];switch(a=a.concat(rr({key:r+"[0]",value:n[0],valueSpec:i.filter_operator,style:e.style,styleSpec:e.styleSpec})),Mt(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&"$type"===Mt(n[1])&&a.push(new Ot(r,n,'"$type" cannot be use with operator "'+n[0]+'"'));case"==":case"!=":3!==n.length&&a.push(new Ot(r,n,'filter array for operator "'+n[0]+'" must have 3 elements'));case"in":case"!in":n.length>=2&&"string"!==(o=jn(n[1]))&&a.push(new Ot(r+"[1]",n[1],"string expected, "+o+" found"));for(var s=2;s<n.length;s++)o=jn(n[s]),"$type"===Mt(n[1])?a=a.concat(rr({key:r+"["+s+"]",value:n[s],valueSpec:i.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==o&&"number"!==o&&"boolean"!==o&&a.push(new Ot(r+"["+s+"]",n[s],"string, number, or boolean expected, "+o+" found"));break;case"any":case"all":case"none":for(var l=1;l<n.length;l++)a=a.concat(t({key:r+"["+l+"]",value:n[l],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":o=jn(n[1]),2!==n.length?a.push(new Ot(r,n,'filter array for "'+n[0]+'" operator must have 2 elements')):"string"!==o&&a.push(new Ot(r+"[1]",n[1],"string expected, "+o+" found"));break;case"within":o=jn(n[1]),2!==n.length?a.push(new Ot(r,n,'filter array for "'+n[0]+'" operator must have 2 elements')):"object"!==o&&a.push(new Ot(r+"[1]",n[1],"object expected, "+o+" found"))}return a}(t)}function dr(t,e){var n=t.key,r=t.style,o=t.styleSpec,i=t.value,a=t.objectKey,s=o[e+"_"+t.layerType];if(!s)return[];var l=a.match(/^(.*)-transition$/);if("paint"===e&&l&&s[l[1]]&&s[l[1]].transition)return Er({key:n,value:i,valueSpec:o.transition,style:r,styleSpec:o});var u,c=t.valueSpec||s[a];if(!c)return[new Ot(n,i,'unknown property "'+a+'"')];if("string"===jn(i)&&Rn(c)&&!c.tokens&&(u=/^{([^}]+)}$/.exec(i)))return[new Ot(n,i,'"'+a+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(u[1])+" }`.")];var p=[];return"symbol"===t.layerType&&("text-field"===a&&r&&!r.glyphs&&p.push(new Ot(n,i,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&Bn(Rt(i))&&"identity"===Mt(i.type)&&p.push(new Ot(n,i,'"text-font" does not support identity functions'))),p.concat(Er({key:t.key,value:i,valueSpec:c,style:r,styleSpec:o,expressionContext:"property",propertyType:e,propertyKey:a}))}function mr(t){return dr(t,"paint")}function yr(t){return dr(t,"layout")}function gr(t){var e=[],n=t.value,r=t.key,o=t.style,i=t.styleSpec;n.type||n.ref||e.push(new Ot(r,n,'either "type" or "ref" is required'));var a,s=Mt(n.type),l=Mt(n.ref);if(n.id)for(var u=Mt(n.id),c=0;c<t.arrayIndex;c++){var p=o.layers[c];Mt(p.id)===u&&e.push(new Ot(r,n.id,'duplicate layer id "'+n.id+'", previously used at line '+p.id.__line__))}if("ref"in n)["type","source","source-layer","filter","layout"].forEach((function(t){t in n&&e.push(new Ot(r,n[t],'"'+t+'" is prohibited for ref layers'))})),o.layers.forEach((function(t){Mt(t.id)===l&&(a=t)})),a?a.ref?e.push(new Ot(r,n.ref,"ref cannot reference another ref layer")):s=Mt(a.type):e.push(new Ot(r,n.ref,'ref layer "'+l+'" not found'));else if("background"!==s)if(n.source){var f=o.sources&&o.sources[n.source],h=f&&Mt(f.type);f?"vector"===h&&"raster"===s?e.push(new Ot(r,n.source,'layer "'+n.id+'" requires a raster source')):"raster"===h&&"raster"!==s?e.push(new Ot(r,n.source,'layer "'+n.id+'" requires a vector source')):"vector"!==h||n["source-layer"]?"raster-dem"===h&&"hillshade"!==s?e.push(new Ot(r,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!n.paint||!n.paint["line-gradient"]||"geojson"===h&&f.lineMetrics||e.push(new Ot(r,n,'layer "'+n.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new Ot(r,n,'layer "'+n.id+'" must specify a "source-layer"')):e.push(new Ot(r,n.source,'source "'+n.source+'" not found'))}else e.push(new Ot(r,n,'missing required property "source"'));return e=e.concat(Jn({key:r,value:n,valueSpec:i.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return Er({key:r+".type",value:n.type,valueSpec:i.layer.type,style:t.style,styleSpec:t.styleSpec,object:n,objectKey:"type"})},filter:hr,layout:function(t){return Jn({layer:n,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return yr(zt({layerType:s},t))}}})},paint:function(t){return Jn({layer:n,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return mr(zt({layerType:s},t))}}})}}}))}function vr(t){var e=t.value,n=t.key,r=jn(e);return"string"!==r?[new Ot(n,e,"string expected, "+r+" found")]:[]}var _r={promoteId:function(t){var e=t.key,n=t.value;if("string"===jn(n))return vr({key:e,value:n});var r=[];for(var o in n)r.push.apply(r,vr({key:e+"."+o,value:n[o]}));return r}};function br(t){var e=t.value,n=t.key,r=t.styleSpec,o=t.style;if(!e.type)return[new Ot(n,e,'"type" is required')];var i,a=Mt(e.type);switch(a){case"vector":case"raster":case"raster-dem":return Jn({key:n,value:e,valueSpec:r["source_"+a.replace("-","_")],style:t.style,styleSpec:r,objectElementValidators:_r});case"geojson":if(i=Jn({key:n,value:e,valueSpec:r.source_geojson,style:o,styleSpec:r,objectElementValidators:_r}),e.cluster)for(var s in e.clusterProperties){var l=e.clusterProperties[s],u=l[0],c="string"==typeof u?[u,["accumulated"],["get",s]]:u;i.push.apply(i,nr({key:n+"."+s+".map",value:l[1],expressionContext:"cluster-map"})),i.push.apply(i,nr({key:n+"."+s+".reduce",value:c,expressionContext:"cluster-reduce"}))}return i;case"video":return Jn({key:n,value:e,valueSpec:r.source_video,style:o,styleSpec:r});case"image":return Jn({key:n,value:e,valueSpec:r.source_image,style:o,styleSpec:r});case"canvas":return[new Ot(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return rr({key:n+".type",value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:o,styleSpec:r})}}function xr(t){var e=t.value,n=t.styleSpec,r=n.light,o=t.style,i=[],a=jn(e);if(void 0===e)return i;if("object"!==a)return i.concat([new Ot("light",e,"object expected, "+a+" found")]);for(var s in e){var l=s.match(/^(.*)-transition$/);i=i.concat(l&&r[l[1]]&&r[l[1]].transition?Er({key:s,value:e[s],valueSpec:n.transition,style:o,styleSpec:n}):r[s]?Er({key:s,value:e[s],valueSpec:r[s],style:o,styleSpec:n}):[new Ot(s,e[s],'unknown property "'+s+'"')])}return i}var wr={"*":function(){return[]},array:Qn,boolean:function(t){var e=t.value,n=t.key,r=jn(e);return"boolean"!==r?[new Ot(n,e,"boolean expected, "+r+" found")]:[]},number:tr,color:function(t){var e=t.key,n=t.value,r=jn(n);return"string"!==r?[new Ot(e,n,"color expected, "+r+" found")]:null===Qt(n)?[new Ot(e,n,'color expected, "'+n+'" found')]:[]},constants:At,enum:rr,filter:hr,function:er,layer:gr,object:Jn,source:br,light:xr,string:vr,formatted:function(t){return 0===vr(t).length?[]:nr(t)},resolvedImage:function(t){return 0===vr(t).length?[]:nr(t)}};function Er(t){var e=t.value,n=t.valueSpec,r=t.styleSpec;return n.expression&&Bn(Mt(e))?er(t):n.expression&&Zn(Rt(e))?nr(t):n.type&&wr[n.type]?wr[n.type](t):Jn(zt({},t,{valueSpec:n.type?r[n.type]:n}))}function Sr(t){var e=t.value,n=t.key,r=vr(t);return r.length||(-1===e.indexOf("{fontstack}")&&r.push(new Ot(n,e,'"glyphs" url must include a "{fontstack}" token')),-1===e.indexOf("{range}")&&r.push(new Ot(n,e,'"glyphs" url must include a "{range}" token'))),r}function kr(t,e){void 0===e&&(e=It);var n=[];return n=n.concat(Er({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:Sr,"*":function(){return[]}}})),t.constants&&(n=n.concat(At({key:"constants",value:t.constants,style:t,styleSpec:e}))),Tr(n)}function Tr(t){return[].concat(t).sort((function(t,e){return t.line-e.line}))}function Cr(t){return function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return Tr(t.apply(this,e))}}kr.source=Cr(br),kr.light=Cr(xr),kr.layer=Cr(gr),kr.filter=Cr(hr),kr.paintProperty=Cr(mr),kr.layoutProperty=Cr(yr);var Pr=kr,Ir=Pr.light,Or=Pr.paintProperty,Ar=Pr.layoutProperty;function zr(t,e){var n=!1;if(e&&e.length)for(var r=0,o=e;r<o.length;r+=1)t.fire(new Ct(new Error(o[r].message))),n=!0;return n}var Mr=Rr;function Rr(t,e,n){var r=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var o=new Int32Array(this.arrayBuffer);t=o[0],this.d=(e=o[1])+2*(n=o[2]);for(var i=0;i<this.d*this.d;i++){var a=o[3+i],s=o[3+i+1];r.push(a===s?null:o.subarray(a,s))}var l=o[3+r.length+1];this.keys=o.subarray(o[3+r.length],l),this.bboxes=o.subarray(l),this.insert=this._insertReadonly}else{this.d=e+2*n;for(var u=0;u<this.d*this.d;u++)r.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=n,this.scale=e/t,this.uid=0;var c=n/e*t;this.min=-c,this.max=t+c}Rr.prototype.insert=function(t,e,n,r,o){this._forEachCell(e,n,r,o,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(o)},Rr.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Rr.prototype._insertCell=function(t,e,n,r,o,i){this.cells[o].push(i)},Rr.prototype.query=function(t,e,n,r,o){var i=this.min,a=this.max;if(t<=i&&e<=i&&a<=n&&a<=r&&!o)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,n,r,this._queryCell,s,{},o),s},Rr.prototype._queryCell=function(t,e,n,r,o,i,a,s){var l=this.cells[o];if(null!==l)for(var u=this.keys,c=this.bboxes,p=0;p<l.length;p++){var f=l[p];if(void 0===a[f]){var h=4*f;(s?s(c[h+0],c[h+1],c[h+2],c[h+3]):t<=c[h+2]&&e<=c[h+3]&&n>=c[h+0]&&r>=c[h+1])?(a[f]=!0,i.push(u[f])):a[f]=!1}}},Rr.prototype._forEachCell=function(t,e,n,r,o,i,a,s){for(var l=this._convertToCellCoord(t),u=this._convertToCellCoord(e),c=this._convertToCellCoord(n),p=this._convertToCellCoord(r),f=l;f<=c;f++)for(var h=u;h<=p;h++){var d=this.d*h+f;if((!s||s(this._convertFromCellCoord(f),this._convertFromCellCoord(h),this._convertFromCellCoord(f+1),this._convertFromCellCoord(h+1)))&&o.call(this,t,e,n,r,d,i,a,s))return}},Rr.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},Rr.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},Rr.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,n=0,r=0;r<this.cells.length;r++)n+=this.cells[r].length;var o=new Int32Array(e+n+this.keys.length+this.bboxes.length);o[0]=this.extent,o[1]=this.n,o[2]=this.padding;for(var i=e,a=0;a<t.length;a++){var s=t[a];o[3+a]=i,o.set(s,i),i+=s.length}return o[3+t.length]=i,o.set(this.keys,i),o[3+t.length+1]=i+=this.keys.length,o.set(this.bboxes,i),i+=this.bboxes.length,o.buffer};var Dr=a.ImageData,Lr=a.ImageBitmap,jr={};function Br(t,e,n){void 0===n&&(n={}),Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),jr[t]={klass:e,omit:n.omit||[],shallow:n.shallow||[]}}for(var Nr in Br("Object",Object),Mr.serialize=function(t,e){var n=t.toArrayBuffer();return e&&e.push(n),{buffer:n}},Mr.deserialize=function(t){return new Mr(t.buffer)},Br("Grid",Mr),Br("Color",te),Br("Error",Error),Br("ResolvedImage",oe),Br("StylePropertyFunction",Yn),Br("StyleExpression",Wn,{omit:["_evaluator"]}),Br("ZoomDependentExpression",$n),Br("ZoomConstantExpression",Xn),Br("CompoundExpression",_e,{omit:["_evaluate"]}),Cn)Cn[Nr]._classRegistryKey||Br("Expression_"+Nr,Cn[Nr]);function Fr(t){return t&&"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}function Ur(t){return Lr&&t instanceof Lr}function Vr(t,e){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(Fr(t)||Ur(t))return e&&e.push(t),t;if(ArrayBuffer.isView(t)){var n=t;return e&&e.push(n.buffer),n}if(t instanceof Dr)return e&&e.push(t.data.buffer),t;if(Array.isArray(t)){for(var r=[],o=0,i=t;o<i.length;o+=1)r.push(Vr(i[o],e));return r}if("object"==typeof t){var a=t.constructor,s=a._classRegistryKey;if(!s)throw new Error("can't serialize object of unregistered class");var l=a.serialize?a.serialize(t,e):{};if(!a.serialize){for(var u in t)if(t.hasOwnProperty(u)&&!(jr[s].omit.indexOf(u)>=0)){var c=t[u];l[u]=jr[s].shallow.indexOf(u)>=0?c:Vr(c,e)}t instanceof Error&&(l.message=t.message)}if(l.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==s&&(l.$name=s),l}throw new Error("can't serialize object of type "+typeof t)}function qr(t){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||Fr(t)||Ur(t)||ArrayBuffer.isView(t)||t instanceof Dr)return t;if(Array.isArray(t))return t.map(qr);if("object"==typeof t){var e=t.$name||"Object",n=jr[e].klass;if(!n)throw new Error("can't deserialize unregistered class "+e);if(n.deserialize)return n.deserialize(t);for(var r=Object.create(n.prototype),o=0,i=Object.keys(t);o<i.length;o+=1){var a=i[o];if("$name"!==a){var s=t[a];r[a]=jr[e].shallow.indexOf(a)>=0?s:qr(s)}}return r}throw new Error("can't deserialize object of type "+typeof t)}var Gr=function(){this.first=!0};Gr.prototype.update=function(t,e){var n=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=e):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=e),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=n,!0))};var Wr={"Latin-1 Supplement":function(t){return t>=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},"Arabic Supplement":function(t){return t>=1872&&t<=1919},"Arabic Extended-A":function(t){return t>=2208&&t<=2303},"Hangul Jamo":function(t){return t>=4352&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return t>=5120&&t<=5759},Khmer:function(t){return t>=6016&&t<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(t){return t>=6320&&t<=6399},"General Punctuation":function(t){return t>=8192&&t<=8303},"Letterlike Symbols":function(t){return t>=8448&&t<=8527},"Number Forms":function(t){return t>=8528&&t<=8591},"Miscellaneous Technical":function(t){return t>=8960&&t<=9215},"Control Pictures":function(t){return t>=9216&&t<=9279},"Optical Character Recognition":function(t){return t>=9280&&t<=9311},"Enclosed Alphanumerics":function(t){return t>=9312&&t<=9471},"Geometric Shapes":function(t){return t>=9632&&t<=9727},"Miscellaneous Symbols":function(t){return t>=9728&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return t>=11008&&t<=11263},"CJK Radicals Supplement":function(t){return t>=11904&&t<=12031},"Kangxi Radicals":function(t){return t>=12032&&t<=12255},"Ideographic Description Characters":function(t){return t>=12272&&t<=12287},"CJK Symbols and Punctuation":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},"Hangul Compatibility Jamo":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},"Bopomofo Extended":function(t){return t>=12704&&t<=12735},"CJK Strokes":function(t){return t>=12736&&t<=12783},"Katakana Phonetic Extensions":function(t){return t>=12784&&t<=12799},"Enclosed CJK Letters and Months":function(t){return t>=12800&&t<=13055},"CJK Compatibility":function(t){return t>=13056&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return t>=13312&&t<=19903},"Yijing Hexagram Symbols":function(t){return t>=19904&&t<=19967},"CJK Unified Ideographs":function(t){return t>=19968&&t<=40959},"Yi Syllables":function(t){return t>=40960&&t<=42127},"Yi Radicals":function(t){return t>=42128&&t<=42191},"Hangul Jamo Extended-A":function(t){return t>=43360&&t<=43391},"Hangul Syllables":function(t){return t>=44032&&t<=55215},"Hangul Jamo Extended-B":function(t){return t>=55216&&t<=55295},"Private Use Area":function(t){return t>=57344&&t<=63743},"CJK Compatibility Ideographs":function(t){return t>=63744&&t<=64255},"Arabic Presentation Forms-A":function(t){return t>=64336&&t<=65023},"Vertical Forms":function(t){return t>=65040&&t<=65055},"CJK Compatibility Forms":function(t){return t>=65072&&t<=65103},"Small Form Variants":function(t){return t>=65104&&t<=65135},"Arabic Presentation Forms-B":function(t){return t>=65136&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return t>=65280&&t<=65519}};function Zr(t){for(var e=0,n=t;e<n.length;e+=1)if(Hr(n[e].charCodeAt(0)))return!0;return!1}function Hr(t){return!(746!==t&&747!==t&&(t<4352||!(Wr["Bopomofo Extended"](t)||Wr.Bopomofo(t)||Wr["CJK Compatibility Forms"](t)&&!(t>=65097&&t<=65103)||Wr["CJK Compatibility Ideographs"](t)||Wr["CJK Compatibility"](t)||Wr["CJK Radicals Supplement"](t)||Wr["CJK Strokes"](t)||!(!Wr["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||Wr["CJK Unified Ideographs Extension A"](t)||Wr["CJK Unified Ideographs"](t)||Wr["Enclosed CJK Letters and Months"](t)||Wr["Hangul Compatibility Jamo"](t)||Wr["Hangul Jamo Extended-A"](t)||Wr["Hangul Jamo Extended-B"](t)||Wr["Hangul Jamo"](t)||Wr["Hangul Syllables"](t)||Wr.Hiragana(t)||Wr["Ideographic Description Characters"](t)||Wr.Kanbun(t)||Wr["Kangxi Radicals"](t)||Wr["Katakana Phonetic Extensions"](t)||Wr.Katakana(t)&&12540!==t||!(!Wr["Halfwidth and Fullwidth Forms"](t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!Wr["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||Wr["Unified Canadian Aboriginal Syllabics"](t)||Wr["Unified Canadian Aboriginal Syllabics Extended"](t)||Wr["Vertical Forms"](t)||Wr["Yijing Hexagram Symbols"](t)||Wr["Yi Syllables"](t)||Wr["Yi Radicals"](t))))}function Xr(t){return!(Hr(t)||function(t){return!!(Wr["Latin-1 Supplement"](t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||Wr["General Punctuation"](t)&&(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||Wr["Letterlike Symbols"](t)||Wr["Number Forms"](t)||Wr["Miscellaneous Technical"](t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215)||Wr["Control Pictures"](t)&&9251!==t||Wr["Optical Character Recognition"](t)||Wr["Enclosed Alphanumerics"](t)||Wr["Geometric Shapes"](t)||Wr["Miscellaneous Symbols"](t)&&!(t>=9754&&t<=9759)||Wr["Miscellaneous Symbols and Arrows"](t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||Wr["CJK Symbols and Punctuation"](t)||Wr.Katakana(t)||Wr["Private Use Area"](t)||Wr["CJK Compatibility Forms"](t)||Wr["Small Form Variants"](t)||Wr["Halfwidth and Fullwidth Forms"](t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t)}(t))}function $r(t){return t>=1424&&t<=2303||Wr["Arabic Presentation Forms-A"](t)||Wr["Arabic Presentation Forms-B"](t)}function Kr(t,e){return!(!e&&$r(t)||t>=2304&&t<=3583||t>=3840&&t<=4255||Wr.Khmer(t))}function Yr(t){for(var e=0,n=t;e<n.length;e+=1)if($r(n[e].charCodeAt(0)))return!0;return!1}var Jr=null,Qr="unavailable",to=null,eo=function(t){t&&"string"==typeof t&&t.indexOf("NetworkError")>-1&&(Qr="error"),Jr&&Jr(t)};function no(){ro.fire(new Tt("pluginStateChange",{pluginStatus:Qr,pluginURL:to}))}var ro=new Pt,oo=function(){return Qr},io=function(){if("deferred"!==Qr||!to)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Qr="loading",no(),to&&bt({url:to},(function(t){t?eo(t):(Qr="loaded",no())}))},ao={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return"loaded"===Qr||null!=ao.applyArabicShaping},isLoading:function(){return"loading"===Qr},setState:function(t){Qr=t.pluginStatus,to=t.pluginURL},isParsed:function(){return null!=ao.applyArabicShaping&&null!=ao.processBidirectionalText&&null!=ao.processStyledBidirectionalText},getPluginURL:function(){return to}},so=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Gr,this.transition={})};so.prototype.isSupportedScript=function(t){return function(t,e){for(var n=0,r=t;n<r.length;n+=1)if(!Kr(r[n].charCodeAt(0),e))return!1;return!0}(t,ao.isLoaded())},so.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},so.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),n=this.crossFadingFactor();return t>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*e}};var lo=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Bn(t))return new Yn(t,e);if(Zn(t)){var n=Kn(t,e);if("error"===n.result)throw new Error(n.value.map((function(t){return t.key+": "+t.message})).join(", "));return n.value}var r=t;return"string"==typeof t&&"color"===e.type&&(r=te.parse(t)),{kind:"constant",evaluate:function(){return r}}}(void 0===e?t.specification.default:e,t.specification)};lo.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},lo.prototype.possiblyEvaluate=function(t,e,n){return this.property.possiblyEvaluate(this,t,e,n)};var uo=function(t){this.property=t,this.value=new lo(t,void 0)};uo.prototype.transitioned=function(t,e){return new po(this.property,this.value,e,f({},t.transition,this.transition),t.now)},uo.prototype.untransitioned=function(){return new po(this.property,this.value,null,{},0)};var co=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};co.prototype.getValue=function(t){return x(this._values[t].value.value)},co.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new uo(this._values[t].property)),this._values[t].value=new lo(this._values[t].property,null===e?void 0:x(e))},co.prototype.getTransition=function(t){return x(this._values[t].transition)},co.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new uo(this._values[t].property)),this._values[t].transition=x(e)||void 0},co.prototype.serialize=function(){for(var t={},e=0,n=Object.keys(this._values);e<n.length;e+=1){var r=n[e],o=this.getValue(r);void 0!==o&&(t[r]=o);var i=this.getTransition(r);void 0!==i&&(t[r+"-transition"]=i)}return t},co.prototype.transitioned=function(t,e){for(var n=new fo(this._properties),r=0,o=Object.keys(this._values);r<o.length;r+=1){var i=o[r];n._values[i]=this._values[i].transitioned(t,e._values[i])}return n},co.prototype.untransitioned=function(){for(var t=new fo(this._properties),e=0,n=Object.keys(this._values);e<n.length;e+=1){var r=n[e];t._values[r]=this._values[r].untransitioned()}return t};var po=function(t,e,n,r,o){this.property=t,this.value=e,this.begin=o+r.delay||0,this.end=this.begin+r.duration||0,t.specification.transition&&(r.delay||r.duration)&&(this.prior=n)};po.prototype.possiblyEvaluate=function(t,e,n){var r=t.now||0,o=this.value.possiblyEvaluate(t,e,n),i=this.prior;if(i){if(r>this.end)return this.prior=null,o;if(this.value.isDataDriven())return this.prior=null,o;if(r<this.begin)return i.possiblyEvaluate(t,e,n);var a=(r-this.begin)/(this.end-this.begin);return this.property.interpolate(i.possiblyEvaluate(t,e,n),o,function(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}(a))}return o};var fo=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};fo.prototype.possiblyEvaluate=function(t,e,n){for(var r=new yo(this._properties),o=0,i=Object.keys(this._values);o<i.length;o+=1){var a=i[o];r._values[a]=this._values[a].possiblyEvaluate(t,e,n)}return r},fo.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t<e.length;t+=1)if(this._values[e[t]].prior)return!0;return!1};var ho=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};ho.prototype.getValue=function(t){return x(this._values[t].value)},ho.prototype.setValue=function(t,e){this._values[t]=new lo(this._values[t].property,null===e?void 0:x(e))},ho.prototype.serialize=function(){for(var t={},e=0,n=Object.keys(this._values);e<n.length;e+=1){var r=n[e],o=this.getValue(r);void 0!==o&&(t[r]=o)}return t},ho.prototype.possiblyEvaluate=function(t,e,n){for(var r=new yo(this._properties),o=0,i=Object.keys(this._values);o<i.length;o+=1){var a=i[o];r._values[a]=this._values[a].possiblyEvaluate(t,e,n)}return r};var mo=function(t,e,n){this.property=t,this.value=e,this.parameters=n};mo.prototype.isConstant=function(){return"constant"===this.value.kind},mo.prototype.constantOr=function(t){return"constant"===this.value.kind?this.value.value:t},mo.prototype.evaluate=function(t,e,n,r){return this.property.evaluate(this.value,this.parameters,t,e,n,r)};var yo=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};yo.prototype.get=function(t){return this._values[t]};var go=function(t){this.specification=t};go.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},go.prototype.interpolate=function(t,e,n){var r=We[this.specification.type];return r?r(t,e,n):t};var vo=function(t,e){this.specification=t,this.overrides=e};vo.prototype.possiblyEvaluate=function(t,e,n,r){return new mo(this,"constant"===t.expression.kind||"camera"===t.expression.kind?{kind:"constant",value:t.expression.evaluate(e,null,{},n,r)}:t.expression,e)},vo.prototype.interpolate=function(t,e,n){if("constant"!==t.value.kind||"constant"!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new mo(this,{kind:"constant",value:void 0},t.parameters);var r=We[this.specification.type];return r?new mo(this,{kind:"constant",value:r(t.value.value,e.value.value,n)},t.parameters):t},vo.prototype.evaluate=function(t,e,n,r,o,i){return"constant"===t.kind?t.value:t.evaluate(e,n,r,o,i)};var _o=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(t,e,n,r){if(void 0===t.value)return new mo(this,{kind:"constant",value:void 0},e);if("constant"===t.expression.kind){var o=t.expression.evaluate(e,null,{},n,r),i="resolvedImage"===t.property.specification.type&&"string"!=typeof o?o.name:o,a=this._calculate(i,i,i,e);return new mo(this,{kind:"constant",value:a},e)}if("camera"===t.expression.kind){var s=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new mo(this,{kind:"constant",value:s},e)}return new mo(this,t.expression,e)},e.prototype.evaluate=function(t,e,n,r,o,i){if("source"===t.kind){var a=t.evaluate(e,n,r,o,i);return this._calculate(a,a,a,e)}return"composite"===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},n,r),t.evaluate({zoom:Math.floor(e.zoom)},n,r),t.evaluate({zoom:Math.floor(e.zoom)+1},n,r),e):t.value},e.prototype._calculate=function(t,e,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:n,to:e}},e.prototype.interpolate=function(t){return t},e}(vo),bo=function(t){this.specification=t};bo.prototype.possiblyEvaluate=function(t,e,n,r){if(void 0!==t.value){if("constant"===t.expression.kind){var o=t.expression.evaluate(e,null,{},n,r);return this._calculate(o,o,o,e)}return this._calculate(t.expression.evaluate(new so(Math.floor(e.zoom-1),e)),t.expression.evaluate(new so(Math.floor(e.zoom),e)),t.expression.evaluate(new so(Math.floor(e.zoom+1),e)),e)}},bo.prototype._calculate=function(t,e,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:n,to:e}},bo.prototype.interpolate=function(t){return t};var xo=function(t){this.specification=t};xo.prototype.possiblyEvaluate=function(t,e,n,r){return!!t.expression.evaluate(e,null,{},n,r)},xo.prototype.interpolate=function(){return!1};var wo=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var n=t[e];n.specification.overridable&&this.overridableProperties.push(e);var r=this.defaultPropertyValues[e]=new lo(n,void 0),o=this.defaultTransitionablePropertyValues[e]=new uo(n);this.defaultTransitioningPropertyValues[e]=o.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=r.possiblyEvaluate({})}};Br("DataDrivenProperty",vo),Br("DataConstantProperty",go),Br("CrossFadedDataDrivenProperty",_o),Br("CrossFadedProperty",bo),Br("ColorRampProperty",xo);var Eo=function(t){function e(e,n){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},"custom"!==e.type&&(this.metadata=(e=e).metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),n.layout&&(this._unevaluatedLayout=new ho(n.layout)),n.paint)){for(var r in this._transitionablePaint=new co(n.paint),e.paint)this.setPaintProperty(r,e.paint[r],{validate:!1});for(var o in e.layout)this.setLayoutProperty(o,e.layout[o],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new yo(n.paint)}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,n){void 0===n&&(n={}),null!=e&&this._validate(Ar,"layers."+this.id+".layout."+t,t,e,n)||("visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e)},e.prototype.getPaintProperty=function(t){return v(t,"-transition")?this._transitionablePaint.getTransition(t.slice(0,-"-transition".length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,n){if(void 0===n&&(n={}),null!=e&&this._validate(Or,"layers."+this.id+".paint."+t,t,e,n))return!1;if(v(t,"-transition"))return this._transitionablePaint.setTransition(t.slice(0,-"-transition".length),e||void 0),!1;var r=this._transitionablePaint._values[t],o="cross-faded-data-driven"===r.property.specification["property-type"],i=r.value.isDataDriven(),a=r.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var s=this._transitionablePaint._values[t].value;return s.isDataDriven()||i||o||this._handleOverridablePaintPropertyUpdate(t,a,s)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,n){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&&t<this.minzoom)||!!(this.maxzoom&&t>=this.maxzoom)||"none"===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(t.layout=t.layout||{},t.layout.visibility=this.visibility),b(t,(function(t,e){return!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length)}))},e.prototype._validate=function(t,e,n,r,o){return void 0===o&&(o={}),(!o||!1!==o.validate)&&zr(this,t.call(Pr,{key:e,layerType:this.type,objectKey:n,value:r,styleSpec:It,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof mo&&Rn(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return!0}return!1},e}(Pt),So={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},ko=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},To=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Co(t,e){void 0===e&&(e=1);var n=0,r=0;return{members:t.map((function(t){var o=So[t.type].BYTES_PER_ELEMENT,i=n=Po(n,Math.max(e,o)),a=t.components||1;return r=Math.max(r,o),n+=o*a,{name:t.name,type:t.type,components:a,offset:i}})),size:Po(n,Math.max(r,e)),alignment:e}}function Po(t,e){return Math.ceil(t/e)*e}To.serialize=function(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},To.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},To.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},To.prototype.clear=function(){this.length=0},To.prototype.resize=function(t){this.reserve(t),this.length=t},To.prototype.reserve=function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}},To.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Io=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var n=this.length;return this.resize(n+1),this.emplace(n,t,e)},e.prototype.emplace=function(t,e,n){var r=2*t;return this.int16[r+0]=e,this.int16[r+1]=n,t},e}(To);Io.prototype.bytesPerElement=4,Br("StructArrayLayout2i4",Io);var Oo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,n,r)},e.prototype.emplace=function(t,e,n,r,o){var i=4*t;return this.int16[i+0]=e,this.int16[i+1]=n,this.int16[i+2]=r,this.int16[i+3]=o,t},e}(To);Oo.prototype.bytesPerElement=8,Br("StructArrayLayout4i8",Oo);var Ao=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,o,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,r,o,i)},e.prototype.emplace=function(t,e,n,r,o,i,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=o,this.int16[s+4]=i,this.int16[s+5]=a,t},e}(To);Ao.prototype.bytesPerElement=12,Br("StructArrayLayout2i4i12",Ao);var zo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,o,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,r,o,i)},e.prototype.emplace=function(t,e,n,r,o,i,a){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=n,this.uint8[l+4]=r,this.uint8[l+5]=o,this.uint8[l+6]=i,this.uint8[l+7]=a,t},e}(To);zo.prototype.bytesPerElement=8,Br("StructArrayLayout2i4ub8",zo);var Mo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var n=this.length;return this.resize(n+1),this.emplace(n,t,e)},e.prototype.emplace=function(t,e,n){var r=2*t;return this.float32[r+0]=e,this.float32[r+1]=n,t},e}(To);Mo.prototype.bytesPerElement=8,Br("StructArrayLayout2f8",Mo);var Ro=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,o,i,a,s,l,u){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,n,r,o,i,a,s,l,u)},e.prototype.emplace=function(t,e,n,r,o,i,a,s,l,u,c){var p=10*t;return this.uint16[p+0]=e,this.uint16[p+1]=n,this.uint16[p+2]=r,this.uint16[p+3]=o,this.uint16[p+4]=i,this.uint16[p+5]=a,this.uint16[p+6]=s,this.uint16[p+7]=l,this.uint16[p+8]=u,this.uint16[p+9]=c,t},e}(To);Ro.prototype.bytesPerElement=20,Br("StructArrayLayout10ui20",Ro);var Do=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,o,i,a,s,l,u,c,p){var f=this.length;return this.resize(f+1),this.emplace(f,t,e,n,r,o,i,a,s,l,u,c,p)},e.prototype.emplace=function(t,e,n,r,o,i,a,s,l,u,c,p,f){var h=12*t;return this.int16[h+0]=e,this.int16[h+1]=n,this.int16[h+2]=r,this.int16[h+3]=o,this.uint16[h+4]=i,this.uint16[h+5]=a,this.uint16[h+6]=s,this.uint16[h+7]=l,this.int16[h+8]=u,this.int16[h+9]=c,this.int16[h+10]=p,this.int16[h+11]=f,t},e}(To);Do.prototype.bytesPerElement=24,Br("StructArrayLayout4i4ui4i24",Do);var Lo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)},e.prototype.emplace=function(t,e,n,r){var o=3*t;return this.float32[o+0]=e,this.float32[o+1]=n,this.float32[o+2]=r,t},e}(To);Lo.prototype.bytesPerElement=12,Br("StructArrayLayout3f12",Lo);var jo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint32[1*t+0]=e,t},e}(To);jo.prototype.bytesPerElement=4,Br("StructArrayLayout1ul4",jo);var Bo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,o,i,a,s,l){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,n,r,o,i,a,s,l)},e.prototype.emplace=function(t,e,n,r,o,i,a,s,l,u){var c=10*t,p=5*t;return this.int16[c+0]=e,this.int16[c+1]=n,this.int16[c+2]=r,this.int16[c+3]=o,this.int16[c+4]=i,this.int16[c+5]=a,this.uint32[p+3]=s,this.uint16[c+8]=l,this.uint16[c+9]=u,t},e}(To);Bo.prototype.bytesPerElement=20,Br("StructArrayLayout6i1ul2ui20",Bo);var No=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,o,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,r,o,i)},e.prototype.emplace=function(t,e,n,r,o,i,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=o,this.int16[s+4]=i,this.int16[s+5]=a,t},e}(To);No.prototype.bytesPerElement=12,Br("StructArrayLayout2i2i2i12",No);var Fo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,o){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,n,r,o)},e.prototype.emplace=function(t,e,n,r,o,i){var a=4*t,s=8*t;return this.float32[a+0]=e,this.float32[a+1]=n,this.float32[a+2]=r,this.int16[s+6]=o,this.int16[s+7]=i,t},e}(To);Fo.prototype.bytesPerElement=16,Br("StructArrayLayout2f1f2i16",Fo);var Uo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,n,r)},e.prototype.emplace=function(t,e,n,r,o){var i=12*t,a=3*t;return this.uint8[i+0]=e,this.uint8[i+1]=n,this.float32[a+1]=r,this.float32[a+2]=o,t},e}(To);Uo.prototype.bytesPerElement=12,Br("StructArrayLayout2ub2f12",Uo);var Vo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)},e.prototype.emplace=function(t,e,n,r){var o=3*t;return this.uint16[o+0]=e,this.uint16[o+1]=n,this.uint16[o+2]=r,t},e}(To);Vo.prototype.bytesPerElement=6,Br("StructArrayLayout3ui6",Vo);var qo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,o,i,a,s,l,u,c,p,f,h,d,m,y){var g=this.length;return this.resize(g+1),this.emplace(g,t,e,n,r,o,i,a,s,l,u,c,p,f,h,d,m,y)},e.prototype.emplace=function(t,e,n,r,o,i,a,s,l,u,c,p,f,h,d,m,y,g){var v=24*t,_=12*t,b=48*t;return this.int16[v+0]=e,this.int16[v+1]=n,this.uint16[v+2]=r,this.uint16[v+3]=o,this.uint32[_+2]=i,this.uint32[_+3]=a,this.uint32[_+4]=s,this.uint16[v+10]=l,this.uint16[v+11]=u,this.uint16[v+12]=c,this.float32[_+7]=p,this.float32[_+8]=f,this.uint8[b+36]=h,this.uint8[b+37]=d,this.uint8[b+38]=m,this.uint32[_+10]=y,this.int16[v+22]=g,t},e}(To);qo.prototype.bytesPerElement=48,Br("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",qo);var Go=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,o,i,a,s,l,u,c,p,f,h,d,m,y,g,v,_,b,x,w,E,S,k,T,C){var P=this.length;return this.resize(P+1),this.emplace(P,t,e,n,r,o,i,a,s,l,u,c,p,f,h,d,m,y,g,v,_,b,x,w,E,S,k,T,C)},e.prototype.emplace=function(t,e,n,r,o,i,a,s,l,u,c,p,f,h,d,m,y,g,v,_,b,x,w,E,S,k,T,C,P){var I=34*t,O=17*t;return this.int16[I+0]=e,this.int16[I+1]=n,this.int16[I+2]=r,this.int16[I+3]=o,this.int16[I+4]=i,this.int16[I+5]=a,this.int16[I+6]=s,this.int16[I+7]=l,this.uint16[I+8]=u,this.uint16[I+9]=c,this.uint16[I+10]=p,this.uint16[I+11]=f,this.uint16[I+12]=h,this.uint16[I+13]=d,this.uint16[I+14]=m,this.uint16[I+15]=y,this.uint16[I+16]=g,this.uint16[I+17]=v,this.uint16[I+18]=_,this.uint16[I+19]=b,this.uint16[I+20]=x,this.uint16[I+21]=w,this.uint16[I+22]=E,this.uint32[O+12]=S,this.float32[O+13]=k,this.float32[O+14]=T,this.float32[O+15]=C,this.float32[O+16]=P,t},e}(To);Go.prototype.bytesPerElement=68,Br("StructArrayLayout8i15ui1ul4f68",Go);var Wo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.float32[1*t+0]=e,t},e}(To);Wo.prototype.bytesPerElement=4,Br("StructArrayLayout1f4",Wo);var Zo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)},e.prototype.emplace=function(t,e,n,r){var o=3*t;return this.int16[o+0]=e,this.int16[o+1]=n,this.int16[o+2]=r,t},e}(To);Zo.prototype.bytesPerElement=6,Br("StructArrayLayout3i6",Zo);var Ho=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)},e.prototype.emplace=function(t,e,n,r){var o=4*t;return this.uint32[2*t+0]=e,this.uint16[o+2]=n,this.uint16[o+3]=r,t},e}(To);Ho.prototype.bytesPerElement=8,Br("StructArrayLayout1ul2ui8",Ho);var Xo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var n=this.length;return this.resize(n+1),this.emplace(n,t,e)},e.prototype.emplace=function(t,e,n){var r=2*t;return this.uint16[r+0]=e,this.uint16[r+1]=n,t},e}(To);Xo.prototype.bytesPerElement=4,Br("StructArrayLayout2ui4",Xo);var $o=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint16[1*t+0]=e,t},e}(To);$o.prototype.bytesPerElement=2,Br("StructArrayLayout1ui2",$o);var Ko=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,n,r)},e.prototype.emplace=function(t,e,n,r,o){var i=4*t;return this.float32[i+0]=e,this.float32[i+1]=n,this.float32[i+2]=r,this.float32[i+3]=o,t},e}(To);Ko.prototype.bytesPerElement=16,Br("StructArrayLayout4f16",Ko);var Yo=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return n.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},n.x1.get=function(){return this._structArray.int16[this._pos2+2]},n.y1.get=function(){return this._structArray.int16[this._pos2+3]},n.x2.get=function(){return this._structArray.int16[this._pos2+4]},n.y2.get=function(){return this._structArray.int16[this._pos2+5]},n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.anchorPoint.get=function(){return new o(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,n),e}(ko);Yo.prototype.size=20;var Jo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new Yo(this,t)},e}(Bo);Br("CollisionBoxArray",Jo);var Qo=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},n.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},n.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},n.segment.get=function(){return this._structArray.uint16[this._pos2+10]},n.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},n.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},n.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},n.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},n.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},n.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},n.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},n.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},n.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},n.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},n.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,n),e}(ko);Qo.prototype.size=48;var ti=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new Qo(this,t)},e}(qo);Br("PlacedSymbolArray",ti);var ei=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},n.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},n.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},n.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},n.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},n.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},n.key.get=function(){return this._structArray.uint16[this._pos2+8]},n.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},n.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},n.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},n.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},n.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},n.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},n.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},n.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},n.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},n.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},n.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},n.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},n.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},n.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},n.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},n.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},n.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},n.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,n),e}(ko);ei.prototype.size=68;var ni=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new ei(this,t)},e}(Go);Br("SymbolInstanceArray",ni);var ri=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(Wo);Br("GlyphOffsetArray",ri);var oi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(Zo);Br("SymbolLineVertexArray",oi);var ii=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,n),e}(ko);ii.prototype.size=8;var ai=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new ii(this,t)},e}(Ho);Br("FeatureIndexArray",ai);var si=Co([{name:"a_pos",components:2,type:"Int16"}],4).members,li=function(t){void 0===t&&(t=[]),this.segments=t};function ui(t,e){return 256*(t=c(Math.floor(t),0,255))+c(Math.floor(e),0,255)}li.prototype.prepareSegment=function(t,e,n,r){var o=this.segments[this.segments.length-1];return t>li.MAX_VERTEX_ARRAY_LENGTH&&E("Max vertices per segment is "+li.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+t),(!o||o.vertexLength+t>li.MAX_VERTEX_ARRAY_LENGTH||o.sortKey!==r)&&(o={vertexOffset:e.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==r&&(o.sortKey=r),this.segments.push(o)),o},li.prototype.get=function(){return this.segments},li.prototype.destroy=function(){for(var t=0,e=this.segments;t<e.length;t+=1){var n=e[t];for(var r in n.vaos)n.vaos[r].destroy()}},li.simpleSegment=function(t,e,n,r){return new li([{vertexOffset:t,primitiveOffset:e,vertexLength:n,primitiveLength:r,vaos:{},sortKey:0}])},li.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Br("SegmentVector",li);var ci=Co([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),pi=e((function(t){t.exports=function(t,e){var n,r,o,i,a,s,l,u;for(r=t.length-(n=3&t.length),o=e,a=3432918353,s=461845907,u=0;u<r;)l=255&t.charCodeAt(u)|(255&t.charCodeAt(++u))<<8|(255&t.charCodeAt(++u))<<16|(255&t.charCodeAt(++u))<<24,++u,o=27492+(65535&(i=5*(65535&(o=(o^=l=(65535&(l=(l=(65535&l)*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|o>>>19))+((5*(o>>>16)&65535)<<16)&4294967295))+((58964+(i>>>16)&65535)<<16);switch(l=0,n){case 3:l^=(255&t.charCodeAt(u+2))<<16;case 2:l^=(255&t.charCodeAt(u+1))<<8;case 1:o^=l=(65535&(l=(l=(65535&(l^=255&t.charCodeAt(u)))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return o^=t.length,o=2246822507*(65535&(o^=o>>>16))+((2246822507*(o>>>16)&65535)<<16)&4294967295,o=3266489909*(65535&(o^=o>>>13))+((3266489909*(o>>>16)&65535)<<16)&4294967295,(o^=o>>>16)>>>0}})),fi=e((function(t){t.exports=function(t,e){for(var n,r=t.length,o=e^r,i=0;r>=4;)n=1540483477*(65535&(n=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+((1540483477*(n>>>16)&65535)<<16),o=1540483477*(65535&o)+((1540483477*(o>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++i;switch(r){case 3:o^=(255&t.charCodeAt(i+2))<<16;case 2:o^=(255&t.charCodeAt(i+1))<<8;case 1:o=1540483477*(65535&(o^=255&t.charCodeAt(i)))+((1540483477*(o>>>16)&65535)<<16)}return o=1540483477*(65535&(o^=o>>>13))+((1540483477*(o>>>16)&65535)<<16),(o^=o>>>15)>>>0}})),hi=pi,di=fi;hi.murmur3=pi,hi.murmur2=di;var mi=function(){this.ids=[],this.positions=[],this.indexed=!1};mi.prototype.add=function(t,e,n,r){this.ids.push(gi(t)),this.positions.push(e,n,r)},mi.prototype.getPositions=function(t){for(var e=gi(t),n=0,r=this.ids.length-1;n<r;){var o=n+r>>1;this.ids[o]>=e?r=o:n=o+1}for(var i=[];this.ids[n]===e;)i.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return i},mi.serialize=function(t,e){var n=new Float64Array(t.ids),r=new Uint32Array(t.positions);return function t(e,n,r,o){for(;r<o;){for(var i=e[r+o>>1],a=r-1,s=o+1;;){do{a++}while(e[a]<i);do{s--}while(e[s]>i);if(a>=s)break;vi(e,a,s),vi(n,3*a,3*s),vi(n,3*a+1,3*s+1),vi(n,3*a+2,3*s+2)}s-r<o-s?(t(e,n,r,s),r=s+1):(t(e,n,s+1,o),o=s)}}(n,r,0,n.length-1),e&&e.push(n.buffer,r.buffer),{ids:n,positions:r}},mi.deserialize=function(t){var e=new mi;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e};var yi=Math.pow(2,53)-1;function gi(t){var e=+t;return!isNaN(e)&&e<=yi?e:hi(String(t))}function vi(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}Br("FeaturePositionMap",mi);var _i=function(t,e){this.gl=t.gl,this.location=e},bi=function(t){function e(e,n){t.call(this,e,n),this.current=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&&(this.current=t,this.gl.uniform1i(this.location,t))},e}(_i),xi=function(t){function e(e,n){t.call(this,e,n),this.current=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&&(this.current=t,this.gl.uniform1f(this.location,t))},e}(_i),wi=function(t){function e(e,n){t.call(this,e,n),this.current=[0,0]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},e}(_i),Ei=function(t){function e(e,n){t.call(this,e,n),this.current=[0,0,0]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},e}(_i),Si=function(t){function e(e,n){t.call(this,e,n),this.current=[0,0,0,0]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]&&t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},e}(_i),ki=function(t){function e(e,n){t.call(this,e,n),this.current=te.transparent}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){t.r===this.current.r&&t.g===this.current.g&&t.b===this.current.b&&t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},e}(_i),Ti=new Float32Array(16),Ci=function(t){function e(e,n){t.call(this,e,n),this.current=Ti}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e<16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},e}(_i);function Pi(t){return[ui(255*t.r,255*t.g),ui(255*t.b,255*t.a)]}var Ii=function(t,e,n){this.value=t,this.uniformNames=e.map((function(t){return"u_"+t})),this.type=n};Ii.prototype.setUniform=function(t,e,n){t.set(n.constantOr(this.value))},Ii.prototype.getBinding=function(t,e,n){return"color"===this.type?new ki(t,e):new xi(t,e)};var Oi=function(t,e){this.uniformNames=e.map((function(t){return"u_"+t})),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};Oi.prototype.setConstantPatternPositions=function(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr},Oi.prototype.setUniform=function(t,e,n,r){var o="u_pattern_to"===r?this.patternTo:"u_pattern_from"===r?this.patternFrom:"u_pixel_ratio_to"===r?this.pixelRatioTo:"u_pixel_ratio_from"===r?this.pixelRatioFrom:null;o&&t.set(o)},Oi.prototype.getBinding=function(t,e,n){return"u_pattern"===n.substr(0,9)?new Si(t,e):new xi(t,e)};var Ai=function(t,e,n,r){this.expression=t,this.type=n,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:"a_"+t,type:"Float32",components:"color"===n?2:1,offset:0}})),this.paintVertexArray=new r};Ai.prototype.populatePaintArray=function(t,e,n,r,o){var i=this.paintVertexArray.length,a=this.expression.evaluate(new so(0),e,{},r,[],o);this.paintVertexArray.resize(t),this._setPaintValue(i,t,a)},Ai.prototype.updatePaintArray=function(t,e,n,r){var o=this.expression.evaluate({zoom:0},n,r);this._setPaintValue(t,e,o)},Ai.prototype._setPaintValue=function(t,e,n){if("color"===this.type)for(var r=Pi(n),o=t;o<e;o++)this.paintVertexArray.emplace(o,r[0],r[1]);else{for(var i=t;i<e;i++)this.paintVertexArray.emplace(i,n);this.maxValue=Math.max(this.maxValue,Math.abs(n))}},Ai.prototype.upload=function(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Ai.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()};var zi=function(t,e,n,r,o,i){this.expression=t,this.uniformNames=e.map((function(t){return"u_"+t+"_t"})),this.type=n,this.useIntegerZoom=r,this.zoom=o,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:"a_"+t,type:"Float32",components:"color"===n?4:2,offset:0}})),this.paintVertexArray=new i};zi.prototype.populatePaintArray=function(t,e,n,r,o){var i=this.expression.evaluate(new so(this.zoom),e,{},r,[],o),a=this.expression.evaluate(new so(this.zoom+1),e,{},r,[],o),s=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(s,t,i,a)},zi.prototype.updatePaintArray=function(t,e,n,r){var o=this.expression.evaluate({zoom:this.zoom},n,r),i=this.expression.evaluate({zoom:this.zoom+1},n,r);this._setPaintValue(t,e,o,i)},zi.prototype._setPaintValue=function(t,e,n,r){if("color"===this.type)for(var o=Pi(n),i=Pi(r),a=t;a<e;a++)this.paintVertexArray.emplace(a,o[0],o[1],i[0],i[1]);else{for(var s=t;s<e;s++)this.paintVertexArray.emplace(s,n,r);this.maxValue=Math.max(this.maxValue,Math.abs(n),Math.abs(r))}},zi.prototype.upload=function(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},zi.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},zi.prototype.setUniform=function(t,e){var n=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,r=c(this.expression.interpolationFactor(n,this.zoom,this.zoom+1),0,1);t.set(r)},zi.prototype.getBinding=function(t,e,n){return new xi(t,e)};var Mi=function(t,e,n,r,o,i){this.expression=t,this.type=e,this.useIntegerZoom=n,this.zoom=r,this.layerId=i,this.zoomInPaintVertexArray=new o,this.zoomOutPaintVertexArray=new o};Mi.prototype.populatePaintArray=function(t,e,n){var r=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(r,t,e.patterns&&e.patterns[this.layerId],n)},Mi.prototype.updatePaintArray=function(t,e,n,r,o){this._setPaintValues(t,e,n.patterns&&n.patterns[this.layerId],o)},Mi.prototype._setPaintValues=function(t,e,n,r){if(r&&n){var o=r[n.min],i=r[n.mid],a=r[n.max];if(o&&i&&a)for(var s=t;s<e;s++)this.zoomInPaintVertexArray.emplace(s,i.tl[0],i.tl[1],i.br[0],i.br[1],o.tl[0],o.tl[1],o.br[0],o.br[1],i.pixelRatio,o.pixelRatio),this.zoomOutPaintVertexArray.emplace(s,i.tl[0],i.tl[1],i.br[0],i.br[1],a.tl[0],a.tl[1],a.br[0],a.br[1],i.pixelRatio,a.pixelRatio)}},Mi.prototype.upload=function(t){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,ci.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,ci.members,this.expression.isStateDependent))},Mi.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()};var Ri=function(t,e,n){this.binders={},this._buffers=[];var r=[];for(var o in t.paint._values)if(n(o)){var i=t.paint.get(o);if(i instanceof mo&&Rn(i.property.specification)){var a=Li(o,t.type),s=i.value,l=i.property.specification.type,u=i.property.useIntegerZoom,c=i.property.specification["property-type"],p="cross-faded"===c||"cross-faded-data-driven"===c;if("constant"===s.kind)this.binders[o]=p?new Oi(s.value,a):new Ii(s.value,a,l),r.push("/u_"+o);else if("source"===s.kind||p){var f=ji(o,l,"source");this.binders[o]=p?new Mi(s,l,u,e,f,t.id):new Ai(s,a,l,f),r.push("/a_"+o)}else{var h=ji(o,l,"composite");this.binders[o]=new zi(s,a,l,u,e,h),r.push("/z_"+o)}}}this.cacheKey=r.sort().join("")};Ri.prototype.getMaxValue=function(t){var e=this.binders[t];return e instanceof Ai||e instanceof zi?e.maxValue:0},Ri.prototype.populatePaintArrays=function(t,e,n,r,o){for(var i in this.binders){var a=this.binders[i];(a instanceof Ai||a instanceof zi||a instanceof Mi)&&a.populatePaintArray(t,e,n,r,o)}},Ri.prototype.setConstantPatternPositions=function(t,e){for(var n in this.binders){var r=this.binders[n];r instanceof Oi&&r.setConstantPatternPositions(t,e)}},Ri.prototype.updatePaintArrays=function(t,e,n,r,o){var i=!1;for(var a in t)for(var s=0,l=e.getPositions(a);s<l.length;s+=1){var u=l[s],c=n.feature(u.index);for(var p in this.binders){var f=this.binders[p];if((f instanceof Ai||f instanceof zi||f instanceof Mi)&&!0===f.expression.isStateDependent){var h=r.paint.get(p);f.expression=h.value,f.updatePaintArray(u.start,u.end,c,t[a],o),i=!0}}}return i},Ri.prototype.defines=function(){var t=[];for(var e in this.binders){var n=this.binders[e];(n instanceof Ii||n instanceof Oi)&&t.push.apply(t,n.uniformNames.map((function(t){return"#define HAS_UNIFORM_"+t})))}return t},Ri.prototype.getBinderAttributes=function(){var t=[];for(var e in this.binders){var n=this.binders[e];if(n instanceof Ai||n instanceof zi)for(var r=0;r<n.paintVertexAttributes.length;r++)t.push(n.paintVertexAttributes[r].name);else if(n instanceof Mi)for(var o=0;o<ci.members.length;o++)t.push(ci.members[o].name)}return t},Ri.prototype.getBinderUniforms=function(){var t=[];for(var e in this.binders){var n=this.binders[e];if(n instanceof Ii||n instanceof Oi||n instanceof zi)for(var r=0,o=n.uniformNames;r<o.length;r+=1)t.push(o[r])}return t},Ri.prototype.getPaintVertexBuffers=function(){return this._buffers},Ri.prototype.getUniforms=function(t,e){var n=[];for(var r in this.binders){var o=this.binders[r];if(o instanceof Ii||o instanceof Oi||o instanceof zi)for(var i=0,a=o.uniformNames;i<a.length;i+=1){var s=a[i];if(e[s]){var l=o.getBinding(t,e[s],s);n.push({name:s,property:r,binding:l})}}}return n},Ri.prototype.setUniforms=function(t,e,n,r){for(var o=0,i=e;o<i.length;o+=1){var a=i[o],s=a.name,l=a.property;this.binders[l].setUniform(a.binding,r,n.get(l),s)}},Ri.prototype.updatePaintBuffers=function(t){for(var e in this._buffers=[],this.binders){var n=this.binders[e];if(t&&n instanceof Mi){var r=2===t.fromScale?n.zoomInPaintVertexBuffer:n.zoomOutPaintVertexBuffer;r&&this._buffers.push(r)}else(n instanceof Ai||n instanceof zi)&&n.paintVertexBuffer&&this._buffers.push(n.paintVertexBuffer)}},Ri.prototype.upload=function(t){for(var e in this.binders){var n=this.binders[e];(n instanceof Ai||n instanceof zi||n instanceof Mi)&&n.upload(t)}this.updatePaintBuffers()},Ri.prototype.destroy=function(){for(var t in this.binders){var e=this.binders[t];(e instanceof Ai||e instanceof zi||e instanceof Mi)&&e.destroy()}};var Di=function(t,e,n){void 0===n&&(n=function(){return!0}),this.programConfigurations={};for(var r=0,o=t;r<o.length;r+=1){var i=o[r];this.programConfigurations[i.id]=new Ri(i,e,n)}this.needsUpload=!1,this._featureMap=new mi,this._bufferOffset=0};function Li(t,e){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[t]||[t.replace(e+"-","").replace(/-/g,"_")]}function ji(t,e,n){var r={color:{source:Mo,composite:Ko},number:{source:Wo,composite:Mo}},o=function(t){return{"line-pattern":{source:Ro,composite:Ro},"fill-pattern":{source:Ro,composite:Ro},"fill-extrusion-pattern":{source:Ro,composite:Ro}}[t]}(t);return o&&o[n]||r[e][n]}Di.prototype.populatePaintArrays=function(t,e,n,r,o,i){for(var a in this.programConfigurations)this.programConfigurations[a].populatePaintArrays(t,e,r,o,i);void 0!==e.id&&this._featureMap.add(e.id,n,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0},Di.prototype.updatePaintArrays=function(t,e,n,r){for(var o=0,i=n;o<i.length;o+=1){var a=i[o];this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(t,this._featureMap,e,a,r)||this.needsUpload}},Di.prototype.get=function(t){return this.programConfigurations[t]},Di.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},Di.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},Br("ConstantBinder",Ii),Br("CrossFadedConstantBinder",Oi),Br("SourceExpressionBinder",Ai),Br("CrossFadedCompositeBinder",Mi),Br("CompositeExpressionBinder",zi),Br("ProgramConfiguration",Ri,{omit:["_buffers"]}),Br("ProgramConfigurationSet",Di);var Bi=Math.pow(2,14)-1,Ni=-Bi-1;function Fi(t){for(var e=8192/t.extent,n=t.loadGeometry(),r=0;r<n.length;r++)for(var o=n[r],i=0;i<o.length;i++){var a=o[i],s=Math.round(a.x*e),l=Math.round(a.y*e);a.x=c(s,Ni,Bi),a.y=c(l,Ni,Bi),(s<a.x||s>a.x+1||l<a.y||l>a.y+1)&&E("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return n}function Ui(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?Fi(t):[]}}function Vi(t,e,n,r,o){t.emplaceBack(2*e+(r+1)/2,2*n+(o+1)/2)}var qi=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Io,this.indexArray=new Vo,this.segments=new li,this.programConfigurations=new Di(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Gi(t,e){for(var n=0;n<t.length;n++)if(Qi(e,t[n]))return!0;for(var r=0;r<e.length;r++)if(Qi(t,e[r]))return!0;return!!Xi(t,e)}function Wi(t,e,n){return!!Qi(t,e)||!!Ki(e,t,n)}function Zi(t,e){if(1===t.length)return Ji(e,t[0]);for(var n=0;n<e.length;n++)for(var r=e[n],o=0;o<r.length;o++)if(Qi(t,r[o]))return!0;for(var i=0;i<t.length;i++)if(Ji(e,t[i]))return!0;for(var a=0;a<e.length;a++)if(Xi(t,e[a]))return!0;return!1}function Hi(t,e,n){if(t.length>1){if(Xi(t,e))return!0;for(var r=0;r<e.length;r++)if(Ki(e[r],t,n))return!0}for(var o=0;o<t.length;o++)if(Ki(t[o],e,n))return!0;return!1}function Xi(t,e){if(0===t.length||0===e.length)return!1;for(var n=0;n<t.length-1;n++)for(var r=t[n],o=t[n+1],i=0;i<e.length-1;i++)if($i(r,o,e[i],e[i+1]))return!0;return!1}function $i(t,e,n,r){return S(t,n,r)!==S(e,n,r)&&S(t,e,n)!==S(t,e,r)}function Ki(t,e,n){var r=n*n;if(1===e.length)return t.distSqr(e[0])<r;for(var o=1;o<e.length;o++)if(Yi(t,e[o-1],e[o])<r)return!0;return!1}function Yi(t,e,n){var r=e.distSqr(n);if(0===r)return t.distSqr(e);var o=((t.x-e.x)*(n.x-e.x)+(t.y-e.y)*(n.y-e.y))/r;return t.distSqr(o<0?e:o>1?n:n.sub(e)._mult(o)._add(e))}function Ji(t,e){for(var n,r,o,i=!1,a=0;a<t.length;a++)for(var s=0,l=(n=t[a]).length-1;s<n.length;l=s++)(r=n[s]).y>e.y!=(o=n[l]).y>e.y&&e.x<(o.x-r.x)*(e.y-r.y)/(o.y-r.y)+r.x&&(i=!i);return i}function Qi(t,e){for(var n=!1,r=0,o=t.length-1;r<t.length;o=r++){var i=t[r],a=t[o];i.y>e.y!=a.y>e.y&&e.x<(a.x-i.x)*(e.y-i.y)/(a.y-i.y)+i.x&&(n=!n)}return n}function ta(t,e,n){var r=n[0],o=n[2];if(t.x<r.x&&e.x<r.x||t.x>o.x&&e.x>o.x||t.y<r.y&&e.y<r.y||t.y>o.y&&e.y>o.y)return!1;var i=S(t,e,n[0]);return i!==S(t,e,n[1])||i!==S(t,e,n[2])||i!==S(t,e,n[3])}function ea(t,e,n){var r=e.paint.get(t).value;return"constant"===r.kind?r.value:n.programConfigurations.get(e.id).getMaxValue(t)}function na(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ra(t,e,n,r,i){if(!e[0]&&!e[1])return t;var a=o.convert(e)._mult(i);"viewport"===n&&a._rotate(-r);for(var s=[],l=0;l<t.length;l++)s.push(t[l].sub(a));return s}qi.prototype.populate=function(t,e,n){var r=this.layers[0],o=[],i=null;"circle"===r.type&&(i=r.layout.get("circle-sort-key"));for(var a=0,s=t;a<s.length;a+=1){var l=s[a],u=l.feature,c=l.id,p=l.index,f=l.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,d=Ui(u,h);if(this.layers[0]._featureFilter.filter(new so(this.zoom),d,n)){var m=i?i.evaluate(d,{},n):void 0,y={id:c,properties:u.properties,type:u.type,sourceLayerIndex:f,index:p,geometry:h?d.geometry:Fi(u),patterns:{},sortKey:m};o.push(y)}}i&&o.sort((function(t,e){return t.sortKey-e.sortKey}));for(var g=0,v=o;g<v.length;g+=1){var _=v[g],b=_.geometry,x=_.index,w=_.sourceLayerIndex,E=t[x].feature;this.addFeature(_,b,x,n),e.featureIndex.insert(E,b,x,w,this.index)}},qi.prototype.update=function(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)},qi.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},qi.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},qi.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,si),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},qi.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},qi.prototype.addFeature=function(t,e,n,r){for(var o=0,i=e;o<i.length;o+=1)for(var a=0,s=i[o];a<s.length;a+=1){var l=s[a],u=l.x,c=l.y;if(!(u<0||u>=8192||c<0||c>=8192)){var p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),f=p.vertexLength;Vi(this.layoutVertexArray,u,c,-1,-1),Vi(this.layoutVertexArray,u,c,1,-1),Vi(this.layoutVertexArray,u,c,1,1),Vi(this.layoutVertexArray,u,c,-1,1),this.indexArray.emplaceBack(f,f+1,f+2),this.indexArray.emplaceBack(f,f+3,f+2),p.vertexLength+=4,p.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,{},r)},Br("CircleBucket",qi,{omit:["layers"]});var oa=new wo({"circle-sort-key":new vo(It.layout_circle["circle-sort-key"])}),ia={paint:new wo({"circle-radius":new vo(It.paint_circle["circle-radius"]),"circle-color":new vo(It.paint_circle["circle-color"]),"circle-blur":new vo(It.paint_circle["circle-blur"]),"circle-opacity":new vo(It.paint_circle["circle-opacity"]),"circle-translate":new go(It.paint_circle["circle-translate"]),"circle-translate-anchor":new go(It.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new go(It.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new go(It.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new vo(It.paint_circle["circle-stroke-width"]),"circle-stroke-color":new vo(It.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new vo(It.paint_circle["circle-stroke-opacity"])}),layout:oa},aa="undefined"!=typeof Float32Array?Float32Array:Array;function sa(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function la(t,e,n){var r=e[0],o=e[1],i=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],p=e[8],f=e[9],h=e[10],d=e[11],m=e[12],y=e[13],g=e[14],v=e[15],_=n[0],b=n[1],x=n[2],w=n[3];return t[0]=_*r+b*s+x*p+w*m,t[1]=_*o+b*l+x*f+w*y,t[2]=_*i+b*u+x*h+w*g,t[3]=_*a+b*c+x*d+w*v,t[4]=(_=n[4])*r+(b=n[5])*s+(x=n[6])*p+(w=n[7])*m,t[5]=_*o+b*l+x*f+w*y,t[6]=_*i+b*u+x*h+w*g,t[7]=_*a+b*c+x*d+w*v,t[8]=(_=n[8])*r+(b=n[9])*s+(x=n[10])*p+(w=n[11])*m,t[9]=_*o+b*l+x*f+w*y,t[10]=_*i+b*u+x*h+w*g,t[11]=_*a+b*c+x*d+w*v,t[12]=(_=n[12])*r+(b=n[13])*s+(x=n[14])*p+(w=n[15])*m,t[13]=_*o+b*l+x*f+w*y,t[14]=_*i+b*u+x*h+w*g,t[15]=_*a+b*c+x*d+w*v,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,n=arguments.length;n--;)e+=t[n]*t[n];return Math.sqrt(e)});var ua,ca=la;function pa(t,e,n){var r=e[0],o=e[1],i=e[2],a=e[3];return t[0]=n[0]*r+n[4]*o+n[8]*i+n[12]*a,t[1]=n[1]*r+n[5]*o+n[9]*i+n[13]*a,t[2]=n[2]*r+n[6]*o+n[10]*i+n[14]*a,t[3]=n[3]*r+n[7]*o+n[11]*i+n[15]*a,t}ua=new aa(3),aa!=Float32Array&&(ua[0]=0,ua[1]=0,ua[2]=0),function(){var t=new aa(4);aa!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var fa=(function(){var t=new aa(2);aa!=Float32Array&&(t[0]=0,t[1]=0)}(),function(t){function e(e){t.call(this,e,ia)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new qi(t)},e.prototype.queryRadius=function(t){var e=t;return ea("circle-radius",this,e)+ea("circle-stroke-width",this,e)+na(this.paint.get("circle-translate"))},e.prototype.queryIntersectsFeature=function(t,e,n,r,o,i,a,s){for(var l=ra(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),i.angle,a),u=this.paint.get("circle-radius").evaluate(e,n)+this.paint.get("circle-stroke-width").evaluate(e,n),c="map"===this.paint.get("circle-pitch-alignment"),p=c?l:function(t,e){return t.map((function(t){return ha(t,e)}))}(l,s),f=c?u*a:u,h=0,d=r;h<d.length;h+=1)for(var m=0,y=d[h];m<y.length;m+=1){var g=y[m],v=c?g:ha(g,s),_=f,b=pa([],[g.x,g.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?_*=b[3]/i.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(_*=i.cameraToCenterDistance/b[3]),Wi(p,v,_))return!0}return!1},e}(Eo));function ha(t,e){var n=pa([],[t.x,t.y,0,1],e);return new o(n[0]/n[3],n[1]/n[3])}var da=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(qi);function ma(t,e,n,r){var o=e.width,i=e.height;if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==o*i*n)throw new RangeError("mismatched image size")}else r=new Uint8Array(o*i*n);return t.width=o,t.height=i,t.data=r,t}function ya(t,e,n){var r=e.width,o=e.height;if(r!==t.width||o!==t.height){var i=ma({},{width:r,height:o},n);ga(t,i,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,r),height:Math.min(t.height,o)},n),t.width=r,t.height=o,t.data=i.data}}function ga(t,e,n,r,o,i){if(0===o.width||0===o.height)return e;if(o.width>t.width||o.height>t.height||n.x>t.width-o.width||n.y>t.height-o.height)throw new RangeError("out of range source coordinates for image copy");if(o.width>e.width||o.height>e.height||r.x>e.width-o.width||r.y>e.height-o.height)throw new RangeError("out of range destination coordinates for image copy");for(var a=t.data,s=e.data,l=0;l<o.height;l++)for(var u=((n.y+l)*t.width+n.x)*i,c=((r.y+l)*e.width+r.x)*i,p=0;p<o.width*i;p++)s[c+p]=a[u+p];return e}Br("HeatmapBucket",da,{omit:["layers"]});var va=function(t,e){ma(this,t,1,e)};va.prototype.resize=function(t){ya(this,t,1)},va.prototype.clone=function(){return new va({width:this.width,height:this.height},new Uint8Array(this.data))},va.copy=function(t,e,n,r,o){ga(t,e,n,r,o,1)};var _a=function(t,e){ma(this,t,4,e)};_a.prototype.resize=function(t){ya(this,t,4)},_a.prototype.replace=function(t,e){e?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t},_a.prototype.clone=function(){return new _a({width:this.width,height:this.height},new Uint8Array(this.data))},_a.copy=function(t,e,n,r,o){ga(t,e,n,r,o,4)},Br("AlphaImage",va),Br("RGBAImage",_a);var ba={paint:new wo({"heatmap-radius":new vo(It.paint_heatmap["heatmap-radius"]),"heatmap-weight":new vo(It.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new go(It.paint_heatmap["heatmap-intensity"]),"heatmap-color":new xo(It.paint_heatmap["heatmap-color"]),"heatmap-opacity":new go(It.paint_heatmap["heatmap-opacity"])})};function xa(t){var e={},n=t.resolution||256,r=t.clips?t.clips.length:1,o=t.image||new _a({width:n,height:r}),i=function(n,r,i){e[t.evaluationKey]=i;var a=t.expression.evaluate(e);o.data[n+r+0]=Math.floor(255*a.r/a.a),o.data[n+r+1]=Math.floor(255*a.g/a.a),o.data[n+r+2]=Math.floor(255*a.b/a.a),o.data[n+r+3]=Math.floor(255*a.a)};if(t.clips)for(var a=0,s=0;a<r;++a,s+=4*n)for(var l=0,u=0;l<n;l++,u+=4){var c=l/(n-1),p=t.clips[a];i(s,u,p.start*(1-c)+p.end*c)}else for(var f=0,h=0;f<n;f++,h+=4)i(0,h,f/(n-1));return o}var wa=function(t){function e(e){t.call(this,e,ba),this._updateColorRamp()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new da(t)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){"heatmap-color"===t&&this._updateColorRamp()},e.prototype._updateColorRamp=function(){this.colorRamp=xa({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility},e}(Eo),Ea={paint:new wo({"hillshade-illumination-direction":new go(It.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new go(It.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new go(It.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new go(It.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new go(It.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new go(It.paint_hillshade["hillshade-accent-color"])})},Sa=function(t){function e(e){t.call(this,e,Ea)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility},e}(Eo),ka=Co([{name:"a_pos",components:2,type:"Int16"}],4).members,Ta=Pa,Ca=Pa;function Pa(t,e,n){n=n||2;var r,o,i,a,s,l,u,c=e&&e.length,p=c?e[0]*n:t.length,f=Ia(t,0,p,n,!0),h=[];if(!f||f.next===f.prev)return h;if(c&&(f=function(t,e,n,r){var o,i,a,s=[];for(o=0,i=e.length;o<i;o++)(a=Ia(t,e[o]*r,o<i-1?e[o+1]*r:t.length,r,!1))===a.next&&(a.steiner=!0),s.push(Fa(a));for(s.sort(La),o=0;o<s.length;o++)ja(s[o],n),n=Oa(n,n.next);return n}(t,e,f,n)),t.length>80*n){r=i=t[0],o=a=t[1];for(var d=n;d<p;d+=n)(s=t[d])<r&&(r=s),(l=t[d+1])<o&&(o=l),s>i&&(i=s),l>a&&(a=l);u=0!==(u=Math.max(i-r,a-o))?1/u:0}return Aa(f,h,n,r,o,u),h}function Ia(t,e,n,r,o){var i,a;if(o===Qa(t,e,n,r)>0)for(i=e;i<n;i+=r)a=Ka(i,t[i],t[i+1],a);else for(i=n-r;i>=e;i-=r)a=Ka(i,t[i],t[i+1],a);return a&&Ga(a,a.next)&&(Ya(a),a=a.next),a}function Oa(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!Ga(r,r.next)&&0!==qa(r.prev,r,r.next))r=r.next;else{if(Ya(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function Aa(t,e,n,r,o,i,a){if(t){!a&&i&&function(t,e,n,r){var o=t;do{null===o.z&&(o.z=Na(o.x,o.y,e,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==t);o.prevZ.nextZ=null,o.prevZ=null,function(t){var e,n,r,o,i,a,s,l,u=1;do{for(n=t,t=null,i=null,a=0;n;){for(a++,r=n,s=0,e=0;e<u&&(s++,r=r.nextZ);e++);for(l=u;s>0||l>0&&r;)0!==s&&(0===l||!r||n.z<=r.z)?(o=n,n=n.nextZ,s--):(o=r,r=r.nextZ,l--),i?i.nextZ=o:t=o,o.prevZ=i,i=o;n=r}i.nextZ=null,u*=2}while(a>1)}(o)}(t,r,o,i);for(var s,l,u=t;t.prev!==t.next;)if(s=t.prev,l=t.next,i?Ma(t,r,o,i):za(t))e.push(s.i/n),e.push(t.i/n),e.push(l.i/n),Ya(t),t=l.next,u=l.next;else if((t=l)===u){a?1===a?Aa(t=Ra(Oa(t),e,n),e,n,r,o,i,2):2===a&&Da(t,e,n,r,o,i):Aa(Oa(t),e,n,r,o,i,1);break}}}function za(t){var e=t.prev,n=t,r=t.next;if(qa(e,n,r)>=0)return!1;for(var o=t.next.next;o!==t.prev;){if(Ua(e.x,e.y,n.x,n.y,r.x,r.y,o.x,o.y)&&qa(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function Ma(t,e,n,r){var o=t.prev,i=t,a=t.next;if(qa(o,i,a)>=0)return!1;for(var s=o.x>i.x?o.x>a.x?o.x:a.x:i.x>a.x?i.x:a.x,l=o.y>i.y?o.y>a.y?o.y:a.y:i.y>a.y?i.y:a.y,u=Na(o.x<i.x?o.x<a.x?o.x:a.x:i.x<a.x?i.x:a.x,o.y<i.y?o.y<a.y?o.y:a.y:i.y<a.y?i.y:a.y,e,n,r),c=Na(s,l,e,n,r),p=t.prevZ,f=t.nextZ;p&&p.z>=u&&f&&f.z<=c;){if(p!==t.prev&&p!==t.next&&Ua(o.x,o.y,i.x,i.y,a.x,a.y,p.x,p.y)&&qa(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,f!==t.prev&&f!==t.next&&Ua(o.x,o.y,i.x,i.y,a.x,a.y,f.x,f.y)&&qa(f.prev,f,f.next)>=0)return!1;f=f.nextZ}for(;p&&p.z>=u;){if(p!==t.prev&&p!==t.next&&Ua(o.x,o.y,i.x,i.y,a.x,a.y,p.x,p.y)&&qa(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;f&&f.z<=c;){if(f!==t.prev&&f!==t.next&&Ua(o.x,o.y,i.x,i.y,a.x,a.y,f.x,f.y)&&qa(f.prev,f,f.next)>=0)return!1;f=f.nextZ}return!0}function Ra(t,e,n){var r=t;do{var o=r.prev,i=r.next.next;!Ga(o,i)&&Wa(o,r,r.next,i)&&Xa(o,i)&&Xa(i,o)&&(e.push(o.i/n),e.push(r.i/n),e.push(i.i/n),Ya(r),Ya(r.next),r=t=i),r=r.next}while(r!==t);return Oa(r)}function Da(t,e,n,r,o,i){var a=t;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&Va(a,s)){var l=$a(a,s);return a=Oa(a,a.next),l=Oa(l,l.next),Aa(a,e,n,r,o,i),void Aa(l,e,n,r,o,i)}s=s.next}a=a.next}while(a!==t)}function La(t,e){return t.x-e.x}function ja(t,e){if(e=function(t,e){var n,r=e,o=t.x,i=t.y,a=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=o&&s>a){if(a=s,s===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(o===a)return n;var l,u=n,c=n.x,p=n.y,f=1/0;r=n;do{o>=r.x&&r.x>=c&&o!==r.x&&Ua(i<p?o:a,i,c,p,i<p?a:o,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(o-r.x),Xa(r,t)&&(l<f||l===f&&(r.x>n.x||r.x===n.x&&Ba(n,r)))&&(n=r,f=l)),r=r.next}while(r!==u);return n}(t,e)){var n=$a(e,t);Oa(e,e.next),Oa(n,n.next)}}function Ba(t,e){return qa(t.prev,t,e.prev)<0&&qa(e.next,t,t.next)<0}function Na(t,e,n,r,o){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*o)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*o)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Fa(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function Ua(t,e,n,r,o,i,a,s){return(o-a)*(e-s)-(t-a)*(i-s)>=0&&(t-a)*(r-s)-(n-a)*(e-s)>=0&&(n-a)*(i-s)-(o-a)*(r-s)>=0}function Va(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&Wa(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(Xa(t,e)&&Xa(e,t)&&function(t,e){var n=t,r=!1,o=(t.x+e.x)/2,i=(t.y+e.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(qa(t.prev,t,e.prev)||qa(t,e.prev,e))||Ga(t,e)&&qa(t.prev,t,t.next)>0&&qa(e.prev,e,e.next)>0)}function qa(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function Ga(t,e){return t.x===e.x&&t.y===e.y}function Wa(t,e,n,r){var o=Ha(qa(t,e,n)),i=Ha(qa(t,e,r)),a=Ha(qa(n,r,t)),s=Ha(qa(n,r,e));return o!==i&&a!==s||!(0!==o||!Za(t,n,e))||!(0!==i||!Za(t,r,e))||!(0!==a||!Za(n,t,r))||!(0!==s||!Za(n,e,r))}function Za(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function Ha(t){return t>0?1:t<0?-1:0}function Xa(t,e){return qa(t.prev,t,t.next)<0?qa(t,e,t.next)>=0&&qa(t,t.prev,e)>=0:qa(t,e,t.prev)<0||qa(t,t.next,e)<0}function $a(t,e){var n=new Ja(t.i,t.x,t.y),r=new Ja(e.i,e.x,e.y),o=t.next,i=e.prev;return t.next=e,e.prev=t,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function Ka(t,e,n,r){var o=new Ja(t,e,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function Ya(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Ja(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Qa(t,e,n,r){for(var o=0,i=e,a=n-r;i<n;i+=r)o+=(t[a]-t[i])*(t[i+1]+t[a+1]),a=i;return o}function ts(t,e,n,r,o){!function t(e,n,r,o,i){for(;o>r;){if(o-r>600){var a=o-r+1,s=n-r+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(s-a/2<0?-1:1);t(e,n,Math.max(r,Math.floor(n-s*u/a+c)),Math.min(o,Math.floor(n+(a-s)*u/a+c)),i)}var p=e[n],f=r,h=o;for(es(e,r,n),i(e[o],p)>0&&es(e,r,o);f<h;){for(es(e,f,h),f++,h--;i(e[f],p)<0;)f++;for(;i(e[h],p)>0;)h--}0===i(e[r],p)?es(e,r,h):es(e,++h,o),h<=n&&(r=h+1),n<=h&&(o=h-1)}}(t,e,n||0,r||t.length-1,o||ns)}function es(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function ns(t,e){return t<e?-1:t>e?1:0}function rs(t,e){var n=t.length;if(n<=1)return[t];for(var r,o,i=[],a=0;a<n;a++){var s=k(t[a]);0!==s&&(t[a].area=Math.abs(s),void 0===o&&(o=s<0),o===s<0?(r&&i.push(r),r=[t[a]]):r.push(t[a]))}if(r&&i.push(r),e>1)for(var l=0;l<i.length;l++)i[l].length<=e||(ts(i[l],e,1,i[l].length-1,os),i[l]=i[l].slice(0,e));return i}function os(t,e){return e.area-t.area}function is(t,e,n){for(var r=n.patternDependencies,o=!1,i=0,a=e;i<a.length;i+=1){var s=a[i].paint.get(t+"-pattern");s.isConstant()||(o=!0);var l=s.constantOr(null);l&&(o=!0,r[l.to]=!0,r[l.from]=!0)}return o}function as(t,e,n,r,o){for(var i=o.patternDependencies,a=0,s=e;a<s.length;a+=1){var l=s[a],u=l.paint.get(t+"-pattern").value;if("constant"!==u.kind){var c=u.evaluate({zoom:r-1},n,{},o.availableImages),p=u.evaluate({zoom:r},n,{},o.availableImages),f=u.evaluate({zoom:r+1},n,{},o.availableImages);p=p&&p.name?p.name:p,f=f&&f.name?f.name:f,i[c=c&&c.name?c.name:c]=!0,i[p]=!0,i[f]=!0,n.patterns[l.id]={min:c,mid:p,max:f}}}return n}Pa.deviation=function(t,e,n,r){var o=e&&e.length,i=Math.abs(Qa(t,0,o?e[0]*n:t.length,n));if(o)for(var a=0,s=e.length;a<s;a++)i-=Math.abs(Qa(t,e[a]*n,a<s-1?e[a+1]*n:t.length,n));var l=0;for(a=0;a<r.length;a+=3){var u=r[a]*n,c=r[a+1]*n,p=r[a+2]*n;l+=Math.abs((t[u]-t[p])*(t[c+1]-t[u+1])-(t[u]-t[c])*(t[p+1]-t[u+1]))}return 0===i&&0===l?0:Math.abs((l-i)/i)},Pa.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,o=0;o<t.length;o++){for(var i=0;i<t[o].length;i++)for(var a=0;a<e;a++)n.vertices.push(t[o][i][a]);o>0&&n.holes.push(r+=t[o-1].length)}return n},Ta.default=Ca;var ss=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Io,this.indexArray=new Vo,this.indexArray2=new Xo,this.programConfigurations=new Di(t.layers,t.zoom),this.segments=new li,this.segments2=new li,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};ss.prototype.populate=function(t,e,n){this.hasPattern=is("fill",this.layers,e);for(var r=this.layers[0].layout.get("fill-sort-key"),o=[],i=0,a=t;i<a.length;i+=1){var s=a[i],l=s.feature,u=s.id,c=s.index,p=s.sourceLayerIndex,f=this.layers[0]._featureFilter.needGeometry,h=Ui(l,f);if(this.layers[0]._featureFilter.filter(new so(this.zoom),h,n)){var d=r?r.evaluate(h,{},n,e.availableImages):void 0,m={id:u,properties:l.properties,type:l.type,sourceLayerIndex:p,index:c,geometry:f?h.geometry:Fi(l),patterns:{},sortKey:d};o.push(m)}}r&&o.sort((function(t,e){return t.sortKey-e.sortKey}));for(var y=0,g=o;y<g.length;y+=1){var v=g[y],_=v.geometry,b=v.index,x=v.sourceLayerIndex;if(this.hasPattern){var w=as("fill",this.layers,v,this.zoom,e);this.patternFeatures.push(w)}else this.addFeature(v,_,b,n,{});e.featureIndex.insert(t[b].feature,_,b,x,this.index)}},ss.prototype.update=function(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)},ss.prototype.addFeatures=function(t,e,n){for(var r=0,o=this.patternFeatures;r<o.length;r+=1){var i=o[r];this.addFeature(i,i.geometry,i.index,e,n)}},ss.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},ss.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},ss.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ka),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},ss.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},ss.prototype.addFeature=function(t,e,n,r,o){for(var i=0,a=rs(e,500);i<a.length;i+=1){for(var s=a[i],l=0,u=0,c=s;u<c.length;u+=1)l+=c[u].length;for(var p=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray),f=p.vertexLength,h=[],d=[],m=0,y=s;m<y.length;m+=1){var g=y[m];if(0!==g.length){g!==s[0]&&d.push(h.length/2);var v=this.segments2.prepareSegment(g.length,this.layoutVertexArray,this.indexArray2),_=v.vertexLength;this.layoutVertexArray.emplaceBack(g[0].x,g[0].y),this.indexArray2.emplaceBack(_+g.length-1,_),h.push(g[0].x),h.push(g[0].y);for(var b=1;b<g.length;b++)this.layoutVertexArray.emplaceBack(g[b].x,g[b].y),this.indexArray2.emplaceBack(_+b-1,_+b),h.push(g[b].x),h.push(g[b].y);v.vertexLength+=g.length,v.primitiveLength+=g.length}}for(var x=Ta(h,d),w=0;w<x.length;w+=3)this.indexArray.emplaceBack(f+x[w],f+x[w+1],f+x[w+2]);p.vertexLength+=l,p.primitiveLength+=x.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,o,r)},Br("FillBucket",ss,{omit:["layers","patternFeatures"]});var ls=new wo({"fill-sort-key":new vo(It.layout_fill["fill-sort-key"])}),us={paint:new wo({"fill-antialias":new go(It.paint_fill["fill-antialias"]),"fill-opacity":new vo(It.paint_fill["fill-opacity"]),"fill-color":new vo(It.paint_fill["fill-color"]),"fill-outline-color":new vo(It.paint_fill["fill-outline-color"]),"fill-translate":new go(It.paint_fill["fill-translate"]),"fill-translate-anchor":new go(It.paint_fill["fill-translate-anchor"]),"fill-pattern":new _o(It.paint_fill["fill-pattern"])}),layout:ls},cs=function(t){function e(e){t.call(this,e,us)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.recalculate=function(e,n){t.prototype.recalculate.call(this,e,n);var r=this.paint._values["fill-outline-color"];"constant"===r.value.kind&&void 0===r.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])},e.prototype.createBucket=function(t){return new ss(t)},e.prototype.queryRadius=function(){return na(this.paint.get("fill-translate"))},e.prototype.queryIntersectsFeature=function(t,e,n,r,o,i,a){return Zi(ra(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),i.angle,a),r)},e.prototype.isTileClipped=function(){return!0},e}(Eo),ps=Co([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4).members,fs=hs;function hs(t,e,n,r,o){this.properties={},this.extent=n,this.type=0,this._pbf=t,this._geometry=-1,this._keys=r,this._values=o,t.readFields(ds,this,e)}function ds(t,e,n){1==t?e.id=n.readVarint():2==t?function(t,e){for(var n=t.readVarint()+t.pos;t.pos<n;){var r=e._keys[t.readVarint()],o=e._values[t.readVarint()];e.properties[r]=o}}(n,e):3==t?e.type=n.readVarint():4==t&&(e._geometry=n.pos)}function ms(t){for(var e,n,r=0,o=0,i=t.length,a=i-1;o<i;a=o++)r+=((n=t[a]).x-(e=t[o]).x)*(e.y+n.y);return r}hs.types=["Unknown","Point","LineString","Polygon"],hs.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,n=t.readVarint()+t.pos,r=1,i=0,a=0,s=0,l=[];t.pos<n;){if(i<=0){var u=t.readVarint();r=7&u,i=u>>3}if(i--,1===r||2===r)a+=t.readSVarint(),s+=t.readSVarint(),1===r&&(e&&l.push(e),e=[]),e.push(new o(a,s));else{if(7!==r)throw new Error("unknown command "+r);e&&e.push(e[0].clone())}}return e&&l.push(e),l},hs.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,n=1,r=0,o=0,i=0,a=1/0,s=-1/0,l=1/0,u=-1/0;t.pos<e;){if(r<=0){var c=t.readVarint();n=7&c,r=c>>3}if(r--,1===n||2===n)(o+=t.readSVarint())<a&&(a=o),o>s&&(s=o),(i+=t.readSVarint())<l&&(l=i),i>u&&(u=i);else if(7!==n)throw new Error("unknown command "+n)}return[a,l,s,u]},hs.prototype.toGeoJSON=function(t,e,n){var r,o,i=this.extent*Math.pow(2,n),a=this.extent*t,s=this.extent*e,l=this.loadGeometry(),u=hs.types[this.type];function c(t){for(var e=0;e<t.length;e++){var n=t[e];t[e]=[360*(n.x+a)/i-180,360/Math.PI*Math.atan(Math.exp((180-360*(n.y+s)/i)*Math.PI/180))-90]}}switch(this.type){case 1:var p=[];for(r=0;r<l.length;r++)p[r]=l[r][0];c(l=p);break;case 2:for(r=0;r<l.length;r++)c(l[r]);break;case 3:for(l=function(t){var e=t.length;if(e<=1)return[t];for(var n,r,o=[],i=0;i<e;i++){var a=ms(t[i]);0!==a&&(void 0===r&&(r=a<0),r===a<0?(n&&o.push(n),n=[t[i]]):n.push(t[i]))}return n&&o.push(n),o}(l),r=0;r<l.length;r++)for(o=0;o<l[r].length;o++)c(l[r][o])}1===l.length?l=l[0]:u="Multi"+u;var f={type:"Feature",geometry:{type:u,coordinates:l},properties:this.properties};return"id"in this&&(f.id=this.id),f};var ys=gs;function gs(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(vs,this,e),this.length=this._features.length}function vs(t,e,n){15===t?e.version=n.readVarint():1===t?e.name=n.readString():5===t?e.extent=n.readVarint():2===t?e._features.push(n.pos):3===t?e._keys.push(n.readString()):4===t&&e._values.push(function(t){for(var e=null,n=t.readVarint()+t.pos;t.pos<n;){var r=t.readVarint()>>3;e=1===r?t.readString():2===r?t.readFloat():3===r?t.readDouble():4===r?t.readVarint64():5===r?t.readVarint():6===r?t.readSVarint():7===r?t.readBoolean():null}return e}(n))}function _s(t,e,n){if(3===t){var r=new ys(n,n.readVarint()+n.pos);r.length&&(e[r.name]=r)}}gs.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new fs(this._pbf,e,this.extent,this._keys,this._values)};var bs={VectorTile:function(t,e){this.layers=t.readFields(_s,{},e)},VectorTileFeature:fs,VectorTileLayer:ys},xs=bs.VectorTileFeature.types,ws=Math.pow(2,13);function Es(t,e,n,r,o,i,a,s){t.emplaceBack(e,n,2*Math.floor(r*ws)+a,o*ws*2,i*ws*2,Math.round(s))}var Ss=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Ao,this.indexArray=new Vo,this.programConfigurations=new Di(t.layers,t.zoom),this.segments=new li,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function ks(t,e){return t.x===e.x&&(t.x<0||t.x>8192)||t.y===e.y&&(t.y<0||t.y>8192)}Ss.prototype.populate=function(t,e,n){this.features=[],this.hasPattern=is("fill-extrusion",this.layers,e);for(var r=0,o=t;r<o.length;r+=1){var i=o[r],a=i.feature,s=i.id,l=i.index,u=i.sourceLayerIndex,c=this.layers[0]._featureFilter.needGeometry,p=Ui(a,c);if(this.layers[0]._featureFilter.filter(new so(this.zoom),p,n)){var f={id:s,sourceLayerIndex:u,index:l,geometry:c?p.geometry:Fi(a),properties:a.properties,type:a.type,patterns:{}};this.hasPattern?this.features.push(as("fill-extrusion",this.layers,f,this.zoom,e)):this.addFeature(f,f.geometry,l,n,{}),e.featureIndex.insert(a,f.geometry,l,u,this.index,!0)}}},Ss.prototype.addFeatures=function(t,e,n){for(var r=0,o=this.features;r<o.length;r+=1){var i=o[r];this.addFeature(i,i.geometry,i.index,e,n)}},Ss.prototype.update=function(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)},Ss.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Ss.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Ss.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ps),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Ss.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Ss.prototype.addFeature=function(t,e,n,r,o){for(var i=0,a=rs(e,500);i<a.length;i+=1){for(var s=a[i],l=0,u=0,c=s;u<c.length;u+=1)l+=c[u].length;for(var p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),f=0,h=s;f<h.length;f+=1){var d=h[f];if(0!==d.length&&!((z=d).every((function(t){return t.x<0}))||z.every((function(t){return t.x>8192}))||z.every((function(t){return t.y<0}))||z.every((function(t){return t.y>8192}))))for(var m=0,y=0;y<d.length;y++){var g=d[y];if(y>=1){var v=d[y-1];if(!ks(g,v)){p.vertexLength+4>li.MAX_VERTEX_ARRAY_LENGTH&&(p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var _=g.sub(v)._perp()._unit(),b=v.dist(g);m+b>32768&&(m=0),Es(this.layoutVertexArray,g.x,g.y,_.x,_.y,0,0,m),Es(this.layoutVertexArray,g.x,g.y,_.x,_.y,0,1,m),Es(this.layoutVertexArray,v.x,v.y,_.x,_.y,0,0,m+=b),Es(this.layoutVertexArray,v.x,v.y,_.x,_.y,0,1,m);var x=p.vertexLength;this.indexArray.emplaceBack(x,x+2,x+1),this.indexArray.emplaceBack(x+1,x+2,x+3),p.vertexLength+=4,p.primitiveLength+=2}}}}if(p.vertexLength+l>li.MAX_VERTEX_ARRAY_LENGTH&&(p=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),"Polygon"===xs[t.type]){for(var w=[],E=[],S=p.vertexLength,k=0,T=s;k<T.length;k+=1){var C=T[k];if(0!==C.length){C!==s[0]&&E.push(w.length/2);for(var P=0;P<C.length;P++){var I=C[P];Es(this.layoutVertexArray,I.x,I.y,0,0,1,1,0),w.push(I.x),w.push(I.y)}}}for(var O=Ta(w,E),A=0;A<O.length;A+=3)this.indexArray.emplaceBack(S+O[A],S+O[A+2],S+O[A+1]);p.primitiveLength+=O.length/3,p.vertexLength+=l}}var z;this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,o,r)},Br("FillExtrusionBucket",Ss,{omit:["layers","features"]});var Ts={paint:new wo({"fill-extrusion-opacity":new go(It["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new vo(It["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new go(It["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new go(It["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new _o(It["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new vo(It["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new vo(It["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new go(It["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})},Cs=function(t){function e(e){t.call(this,e,Ts)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new Ss(t)},e.prototype.queryRadius=function(){return na(this.paint.get("fill-extrusion-translate"))},e.prototype.is3D=function(){return!0},e.prototype.queryIntersectsFeature=function(t,e,n,r,i,a,s,l){var u=ra(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),a.angle,s),c=this.paint.get("fill-extrusion-height").evaluate(e,n),p=this.paint.get("fill-extrusion-base").evaluate(e,n),f=function(t,e,n,r){for(var i=[],a=0,s=t;a<s.length;a+=1){var l=s[a],u=[l.x,l.y,0,1];pa(u,u,e),i.push(new o(u[0]/u[3],u[1]/u[3]))}return i}(u,l),h=function(t,e,n,r){for(var i=[],a=[],s=r[8]*e,l=r[9]*e,u=r[10]*e,c=r[11]*e,p=r[8]*n,f=r[9]*n,h=r[10]*n,d=r[11]*n,m=0,y=t;m<y.length;m+=1){for(var g=[],v=[],_=0,b=y[m];_<b.length;_+=1){var x=b[_],w=x.x,E=x.y,S=r[0]*w+r[4]*E+r[12],k=r[1]*w+r[5]*E+r[13],T=r[2]*w+r[6]*E+r[14],C=r[3]*w+r[7]*E+r[15],P=T+u,I=C+c,O=S+p,A=k+f,z=T+h,M=C+d,R=new o((S+s)/I,(k+l)/I);R.z=P/I,g.push(R);var D=new o(O/M,A/M);D.z=z/M,v.push(D)}i.push(g),a.push(v)}return[i,a]}(r,p,c,l);return function(t,e,n){var r=1/0;Zi(n,e)&&(r=Is(n,e[0]));for(var o=0;o<e.length;o++)for(var i=e[o],a=t[o],s=0;s<i.length-1;s++){var l=i[s],u=[l,i[s+1],a[s+1],a[s],l];Gi(n,u)&&(r=Math.min(r,Is(n,u)))}return r!==1/0&&r}(h[0],h[1],f)},e}(Eo);function Ps(t,e){return t.x*e.x+t.y*e.y}function Is(t,e){if(1===t.length){for(var n,r=0,o=e[r++];!n||o.equals(n);)if(!(n=e[r++]))return 1/0;for(;r<e.length;r++){var i=e[r],a=t[0],s=n.sub(o),l=i.sub(o),u=a.sub(o),c=Ps(s,s),p=Ps(s,l),f=Ps(l,l),h=Ps(u,s),d=Ps(u,l),m=c*f-p*p,y=(f*h-p*d)/m,g=(c*d-p*h)/m,v=o.z*(1-y-g)+n.z*y+i.z*g;if(isFinite(v))return v}return 1/0}for(var _=1/0,b=0,x=e;b<x.length;b+=1)_=Math.min(_,x[b].z);return _}var Os=Co([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4).members,As=Co([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]).members,zs=bs.VectorTileFeature.types,Ms=Math.cos(Math.PI/180*37.5),Rs=Math.pow(2,14)/.5,Ds=function(t){var e=this;this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach((function(t){e.gradients[t.id]={}})),this.layoutVertexArray=new zo,this.layoutVertexArray2=new Mo,this.indexArray=new Vo,this.programConfigurations=new Di(t.layers,t.zoom),this.segments=new li,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};Ds.prototype.populate=function(t,e,n){this.hasPattern=is("line",this.layers,e);for(var r=this.layers[0].layout.get("line-sort-key"),o=[],i=0,a=t;i<a.length;i+=1){var s=a[i],l=s.feature,u=s.id,c=s.index,p=s.sourceLayerIndex,f=this.layers[0]._featureFilter.needGeometry,h=Ui(l,f);if(this.layers[0]._featureFilter.filter(new so(this.zoom),h,n)){var d=r?r.evaluate(h,{},n):void 0,m={id:u,properties:l.properties,type:l.type,sourceLayerIndex:p,index:c,geometry:f?h.geometry:Fi(l),patterns:{},sortKey:d};o.push(m)}}r&&o.sort((function(t,e){return t.sortKey-e.sortKey}));for(var y=0,g=o;y<g.length;y+=1){var v=g[y],_=v.geometry,b=v.index,x=v.sourceLayerIndex;if(this.hasPattern){var w=as("line",this.layers,v,this.zoom,e);this.patternFeatures.push(w)}else this.addFeature(v,_,b,n,{});e.featureIndex.insert(t[b].feature,_,b,x,this.index)}},Ds.prototype.update=function(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)},Ds.prototype.addFeatures=function(t,e,n){for(var r=0,o=this.patternFeatures;r<o.length;r+=1){var i=o[r];this.addFeature(i,i.geometry,i.index,e,n)}},Ds.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Ds.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Ds.prototype.upload=function(t){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,As)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Os),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Ds.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Ds.prototype.lineFeatureClips=function(t){if(t.properties&&t.properties.hasOwnProperty("mapbox_clip_start")&&t.properties.hasOwnProperty("mapbox_clip_end"))return{start:+t.properties.mapbox_clip_start,end:+t.properties.mapbox_clip_end}},Ds.prototype.addFeature=function(t,e,n,r,o){var i=this.layers[0].layout,a=i.get("line-join").evaluate(t,{}),s=i.get("line-cap"),l=i.get("line-miter-limit"),u=i.get("line-round-limit");this.lineClips=this.lineFeatureClips(t);for(var c=0,p=e;c<p.length;c+=1)this.addLine(p[c],t,a,s,l,u);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,o,r)},Ds.prototype.addLine=function(t,e,n,r,o,i){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(var a=0;a<t.length-1;a++)this.totalDistance+=t[a].dist(t[a+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}for(var s="Polygon"===zs[e.type],l=t.length;l>=2&&t[l-1].equals(t[l-2]);)l--;for(var u=0;u<l-1&&t[u].equals(t[u+1]);)u++;if(!(l<(s?3:2))){"bevel"===n&&(o=1.05);var c,p=this.overscaling<=16?122880/(512*this.overscaling):0,f=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray),h=void 0,d=void 0,m=void 0,y=void 0;this.e1=this.e2=-1,s&&(y=t[u].sub(c=t[l-2])._unit()._perp());for(var g=u;g<l;g++)if(!(d=g===l-1?s?t[u+1]:void 0:t[g+1])||!t[g].equals(d)){y&&(m=y),c&&(h=c),c=t[g],y=d?d.sub(c)._unit()._perp():m;var v=(m=m||y).add(y);0===v.x&&0===v.y||v._unit();var _=m.x*y.x+m.y*y.y,b=v.x*y.x+v.y*y.y,x=0!==b?1/b:1/0,w=2*Math.sqrt(2-2*b),E=b<Ms&&h&&d,S=m.x*y.y-m.y*y.x>0;if(E&&g>u){var k=c.dist(h);if(k>2*p){var T=c.sub(c.sub(h)._mult(p/k)._round());this.updateDistance(h,T),this.addCurrentVertex(T,m,0,0,f),h=T}}var C=h&&d,P=C?n:s?"butt":r;if(C&&"round"===P&&(x<i?P="miter":x<=2&&(P="fakeround")),"miter"===P&&x>o&&(P="bevel"),"bevel"===P&&(x>2&&(P="flipbevel"),x<o&&(P="miter")),h&&this.updateDistance(h,c),"miter"===P)v._mult(x),this.addCurrentVertex(c,v,0,0,f);else if("flipbevel"===P){if(x>100)v=y.mult(-1);else{var I=x*m.add(y).mag()/m.sub(y).mag();v._perp()._mult(I*(S?-1:1))}this.addCurrentVertex(c,v,0,0,f),this.addCurrentVertex(c,v.mult(-1),0,0,f)}else if("bevel"===P||"fakeround"===P){var O=-Math.sqrt(x*x-1),A=S?O:0,z=S?0:O;if(h&&this.addCurrentVertex(c,m,A,z,f),"fakeround"===P)for(var M=Math.round(180*w/Math.PI/20),R=1;R<M;R++){var D=R/M;if(.5!==D){var L=D-.5;D+=D*L*(D-1)*((1.0904+_*(_*(3.55645-1.43519*_)-3.2452))*L*L+(.848013+_*(.215638*_-1.06021)))}var j=y.sub(m)._mult(D)._add(m)._unit()._mult(S?-1:1);this.addHalfVertex(c,j.x,j.y,!1,S,0,f)}d&&this.addCurrentVertex(c,y,-A,-z,f)}else if("butt"===P)this.addCurrentVertex(c,v,0,0,f);else if("square"===P){var B=h?1:-1;this.addCurrentVertex(c,v,B,B,f)}else"round"===P&&(h&&(this.addCurrentVertex(c,m,0,0,f),this.addCurrentVertex(c,m,1,1,f,!0)),d&&(this.addCurrentVertex(c,y,-1,-1,f,!0),this.addCurrentVertex(c,y,0,0,f)));if(E&&g<l-1){var N=c.dist(d);if(N>2*p){var F=c.add(d.sub(c)._mult(p/N)._round());this.updateDistance(c,F),this.addCurrentVertex(F,y,0,0,f),c=F}}}}},Ds.prototype.addCurrentVertex=function(t,e,n,r,o,i){void 0===i&&(i=!1);var a=e.y*r-e.x,s=-e.y-e.x*r;this.addHalfVertex(t,e.x+e.y*n,e.y-e.x*n,i,!1,n,o),this.addHalfVertex(t,a,s,i,!0,-r,o),this.distance>Rs/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(t,e,n,r,o,i))},Ds.prototype.addHalfVertex=function(t,e,n,r,o,i,a){var s=.5*(this.lineClips?this.scaledDistance*(Rs-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((t.x<<1)+(r?1:0),(t.y<<1)+(o?1:0),Math.round(63*e)+128,Math.round(63*n)+128,1+(0===i?0:i<0?-1:1)|(63&s)<<2,s>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var l=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,l),a.primitiveLength++),o?this.e2=l:this.e1=l},Ds.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Ds.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Br("LineBucket",Ds,{omit:["layers","patternFeatures"]});var Ls=new wo({"line-cap":new go(It.layout_line["line-cap"]),"line-join":new vo(It.layout_line["line-join"]),"line-miter-limit":new go(It.layout_line["line-miter-limit"]),"line-round-limit":new go(It.layout_line["line-round-limit"]),"line-sort-key":new vo(It.layout_line["line-sort-key"])}),js={paint:new wo({"line-opacity":new vo(It.paint_line["line-opacity"]),"line-color":new vo(It.paint_line["line-color"]),"line-translate":new go(It.paint_line["line-translate"]),"line-translate-anchor":new go(It.paint_line["line-translate-anchor"]),"line-width":new vo(It.paint_line["line-width"]),"line-gap-width":new vo(It.paint_line["line-gap-width"]),"line-offset":new vo(It.paint_line["line-offset"]),"line-blur":new vo(It.paint_line["line-blur"]),"line-dasharray":new bo(It.paint_line["line-dasharray"]),"line-pattern":new _o(It.paint_line["line-pattern"]),"line-gradient":new xo(It.paint_line["line-gradient"])}),layout:Ls},Bs=new(function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(e,n){return n=new so(Math.floor(n.zoom),{now:n.now,fadeDuration:n.fadeDuration,zoomHistory:n.zoomHistory,transition:n.transition}),t.prototype.possiblyEvaluate.call(this,e,n)},e.prototype.evaluate=function(e,n,r,o){return n=f({},n,{zoom:Math.floor(n.zoom)}),t.prototype.evaluate.call(this,e,n,r,o)},e}(vo))(js.paint.properties["line-width"].specification);Bs.useIntegerZoom=!0;var Ns=function(t){function e(e){t.call(this,e,js),this.gradientVersion=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){"line-gradient"===t&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof qe,this.gradientVersion=(this.gradientVersion+1)%s)},e.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},e.prototype.recalculate=function(e,n){t.prototype.recalculate.call(this,e,n),this.paint._values["line-floorwidth"]=Bs.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)},e.prototype.createBucket=function(t){return new Ds(t)},e.prototype.queryRadius=function(t){var e=t,n=Fs(ea("line-width",this,e),ea("line-gap-width",this,e)),r=ea("line-offset",this,e);return n/2+Math.abs(r)+na(this.paint.get("line-translate"))},e.prototype.queryIntersectsFeature=function(t,e,n,r,i,a,s){var l=ra(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,s),u=s/2*Fs(this.paint.get("line-width").evaluate(e,n),this.paint.get("line-gap-width").evaluate(e,n)),c=this.paint.get("line-offset").evaluate(e,n);return c&&(r=function(t,e){for(var n=[],r=new o(0,0),i=0;i<t.length;i++){for(var a=t[i],s=[],l=0;l<a.length;l++){var u=a[l],c=a[l+1],p=0===l?r:u.sub(a[l-1])._unit()._perp(),f=l===a.length-1?r:c.sub(u)._unit()._perp(),h=p._add(f)._unit();h._mult(1/(h.x*f.x+h.y*f.y)),s.push(h._mult(e)._add(u))}n.push(s)}return n}(r,c*s)),function(t,e,n){for(var r=0;r<e.length;r++){var o=e[r];if(t.length>=3)for(var i=0;i<o.length;i++)if(Qi(t,o[i]))return!0;if(Hi(t,o,n))return!0}return!1}(l,r,u)},e.prototype.isTileClipped=function(){return!0},e}(Eo);function Fs(t,e){return e>0?e+2*t:t}var Us=Co([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Vs=Co([{name:"a_projected_pos",components:3,type:"Float32"}],4),qs=(Co([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Co([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Gs=(Co([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),Co([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Ws=Co([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Zs(t,e,n){return t.sections.forEach((function(t){t.text=function(t,e,n){var r=e.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?t=t.toLocaleUpperCase():"lowercase"===r&&(t=t.toLocaleLowerCase()),ao.applyArabicShaping&&(t=ao.applyArabicShaping(t)),t}(t.text,e,n)})),t}Co([{name:"triangle",components:3,type:"Uint16"}]),Co([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Co([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Co([{type:"Float32",name:"offsetX"}]),Co([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Hs={"!":"ï¸","#":"ï¼",$:"ï¼","%":"ï¼
","&":"ï¼","(":"︵",")":"︶","*":"ï¼","+":"ï¼",",":"ï¸","-":"︲",".":"ã»","/":"ï¼",":":"ï¸",";":"ï¸","<":"︿","=":"ï¼",">":"ï¹","?":"ï¸","@":"ï¼ ","[":"ï¹","\\":"ï¼¼","]":"ï¹","^":"ï¼¾",_:"︳","`":"ï½","{":"︷","|":"â","}":"︸","~":"ï½","¢":"ï¿ ","£":"ï¿¡","Â¥":"ï¿¥","¦":"¦","¬":"ï¿¢","¯":"ï¿£","â":"︲","â":"︱","â":"ï¹","â":"ï¹","â":"ï¹","â":"ï¹","â¦":"ï¸","â§":"ã»","â©":"₩","ã":"ï¸","ã":"ï¸","ã":"︿","ã":"ï¹","ã":"︽","ã":"︾","ã":"ï¹","ã":"ï¹","ã":"ï¹","ã":"ï¹","ã":"︻","ã":"︼","ã":"︹","ã":"︺","ã":"ï¸","ã":"ï¸","ï¼":"ï¸","ï¼":"︵","ï¼":"︶","ï¼":"ï¸","ï¼":"︲","ï¼":"ã»","ï¼":"ï¸","ï¼":"ï¸","ï¼":"︿","ï¼":"ï¹","ï¼":"ï¸","ï¼»":"ï¹","ï¼½":"ï¹","_":"︳","ï½":"︷","ï½":"â","ï½":"︸","ï½":"︵","ï½ ":"︶","。":"ï¸","ï½¢":"ï¹","ï½£":"ï¹"},Xs=function(t,e,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,u=l>>1,c=-7,p=n?o-1:0,f=n?-1:1,h=t[e+p];for(p+=f,i=h&(1<<-c)-1,h>>=-c,c+=s;c>0;i=256*i+t[e+p],p+=f,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+t[e+p],p+=f,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=u}return(h?-1:1)*a*Math.pow(2,i-r)},$s=function(t,e,n,r,o,i){var a,s,l,u=8*i-o-1,c=(1<<u)-1,p=c>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+p>=1?f/l:f*Math.pow(2,1-p))*l>=2&&(a++,l/=2),a+p>=c?(s=0,a=c):a+p>=1?(s=(e*l-1)*Math.pow(2,o),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;t[n+h]=255&s,h+=d,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;t[n+h]=255&a,h+=d,a/=256,u-=8);t[n+h-d]|=128*m},Ks=Ys;function Ys(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Ys.Varint=0,Ys.Fixed64=1,Ys.Bytes=2,Ys.Fixed32=5;var Js="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Qs(t){return t.type===Ys.Bytes?t.readVarint()+t.pos:t.pos+1}function tl(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function el(t,e,n){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));n.realloc(r);for(var o=n.pos-1;o>=t;o--)n.buf[o+r]=n.buf[o]}function nl(t,e){for(var n=0;n<t.length;n++)e.writeVarint(t[n])}function rl(t,e){for(var n=0;n<t.length;n++)e.writeSVarint(t[n])}function ol(t,e){for(var n=0;n<t.length;n++)e.writeFloat(t[n])}function il(t,e){for(var n=0;n<t.length;n++)e.writeDouble(t[n])}function al(t,e){for(var n=0;n<t.length;n++)e.writeBoolean(t[n])}function sl(t,e){for(var n=0;n<t.length;n++)e.writeFixed32(t[n])}function ll(t,e){for(var n=0;n<t.length;n++)e.writeSFixed32(t[n])}function ul(t,e){for(var n=0;n<t.length;n++)e.writeFixed64(t[n])}function cl(t,e){for(var n=0;n<t.length;n++)e.writeSFixed64(t[n])}function pl(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function fl(t,e,n){t[n]=e,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function hl(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function dl(t,e,n){1===t&&n.readMessage(ml,e)}function ml(t,e,n){if(3===t){var r=n.readMessage(yl,{}),o=r.width,i=r.height,a=r.left,s=r.top,l=r.advance;e.push({id:r.id,bitmap:new va({width:o+6,height:i+6},r.bitmap),metrics:{width:o,height:i,left:a,top:s,advance:l}})}}function yl(t,e,n){1===t?e.id=n.readVarint():2===t?e.bitmap=n.readBytes():3===t?e.width=n.readVarint():4===t?e.height=n.readVarint():5===t?e.left=n.readSVarint():6===t?e.top=n.readSVarint():7===t&&(e.advance=n.readVarint())}function gl(t){for(var e=0,n=0,r=0,o=t;r<o.length;r+=1){var i=o[r];e+=i.w*i.h,n=Math.max(n,i.w)}t.sort((function(t,e){return e.h-t.h}));for(var a=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),n),h:1/0}],s=0,l=0,u=0,c=t;u<c.length;u+=1)for(var p=c[u],f=a.length-1;f>=0;f--){var h=a[f];if(!(p.w>h.w||p.h>h.h)){if(p.x=h.x,p.y=h.y,l=Math.max(l,p.y+p.h),s=Math.max(s,p.x+p.w),p.w===h.w&&p.h===h.h){var d=a.pop();f<a.length&&(a[f]=d)}else p.h===h.h?(h.x+=p.w,h.w-=p.w):p.w===h.w?(h.y+=p.h,h.h-=p.h):(a.push({x:h.x+p.w,y:h.y,w:h.w-p.w,h:p.h}),h.y+=p.h,h.h-=p.h);break}}return{w:s,h:l,fill:e/(s*l)||0}}Ys.prototype={destroy:function(){this.buf=null},readFields:function(t,e,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),o=r>>3,i=this.pos;this.type=7&r,t(o,e,this),this.pos===i&&this.skip(r)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=pl(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=hl(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=pl(this.buf,this.pos)+4294967296*pl(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=pl(this.buf,this.pos)+4294967296*hl(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=Xs(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Xs(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,n,r=this.buf;return e=127&(n=r[this.pos++]),n<128?e:(e|=(127&(n=r[this.pos++]))<<7,n<128?e:(e|=(127&(n=r[this.pos++]))<<14,n<128?e:(e|=(127&(n=r[this.pos++]))<<21,n<128?e:function(t,e,n){var r,o,i=n.buf;if(r=(112&(o=i[n.pos++]))>>4,o<128)return tl(t,r,e);if(r|=(127&(o=i[n.pos++]))<<3,o<128)return tl(t,r,e);if(r|=(127&(o=i[n.pos++]))<<10,o<128)return tl(t,r,e);if(r|=(127&(o=i[n.pos++]))<<17,o<128)return tl(t,r,e);if(r|=(127&(o=i[n.pos++]))<<24,o<128)return tl(t,r,e);if(r|=(1&(o=i[n.pos++]))<<31,o<128)return tl(t,r,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(n=r[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&Js?function(t,e,n){return Js.decode(t.subarray(e,n))}(this.buf,e,t):function(t,e,n){for(var r="",o=e;o<n;){var i,a,s,l=t[o],u=null,c=l>239?4:l>223?3:l>191?2:1;if(o+c>n)break;1===c?l<128&&(u=l):2===c?128==(192&(i=t[o+1]))&&(u=(31&l)<<6|63&i)<=127&&(u=null):3===c?(a=t[o+2],128==(192&(i=t[o+1]))&&128==(192&a)&&((u=(15&l)<<12|(63&i)<<6|63&a)<=2047||u>=55296&&u<=57343)&&(u=null)):4===c&&(a=t[o+2],s=t[o+3],128==(192&(i=t[o+1]))&&128==(192&a)&&128==(192&s)&&((u=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,c=1):u>65535&&(u-=65536,r+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),r+=String.fromCharCode(u),o+=c}return r}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Ys.Bytes)return t.push(this.readVarint(e));var n=Qs(this);for(t=t||[];this.pos<n;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==Ys.Bytes)return t.push(this.readSVarint());var e=Qs(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==Ys.Bytes)return t.push(this.readBoolean());var e=Qs(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==Ys.Bytes)return t.push(this.readFloat());var e=Qs(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==Ys.Bytes)return t.push(this.readDouble());var e=Qs(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==Ys.Bytes)return t.push(this.readFixed32());var e=Qs(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==Ys.Bytes)return t.push(this.readSFixed32());var e=Qs(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==Ys.Bytes)return t.push(this.readFixed64());var e=Qs(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==Ys.Bytes)return t.push(this.readSFixed64());var e=Qs(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===Ys.Varint)for(;this.buf[this.pos++]>127;);else if(e===Ys.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Ys.Fixed32)this.pos+=4;else{if(e!==Ys.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var n=new Uint8Array(e);n.set(this.buf),this.buf=n,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),fl(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),fl(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),fl(this.buf,-1&t,this.pos),fl(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),fl(this.buf,-1&t,this.pos),fl(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var n,r;if(t>=0?(n=t%4294967296|0,r=t/4294967296|0):(r=~(-t/4294967296),4294967295^(n=~(-t%4294967296))?n=n+1|0:(n=0,r=r+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,n){n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,n.buf[n.pos]=127&(t>>>=7)}(n,0,e),function(t,e){var n=(7&t)<<4;e.buf[e.pos++]|=n|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(r,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,n){for(var r,o,i=0;i<e.length;i++){if((r=e.charCodeAt(i))>55295&&r<57344){if(!o){r>56319||i+1===e.length?(t[n++]=239,t[n++]=191,t[n++]=189):o=r;continue}if(r<56320){t[n++]=239,t[n++]=191,t[n++]=189,o=r;continue}r=o-55296<<10|r-56320|65536,o=null}else o&&(t[n++]=239,t[n++]=191,t[n++]=189,o=null);r<128?t[n++]=r:(r<2048?t[n++]=r>>6|192:(r<65536?t[n++]=r>>12|224:(t[n++]=r>>18|240,t[n++]=r>>12&63|128),t[n++]=r>>6&63|128),t[n++]=63&r|128)}return n}(this.buf,t,this.pos);var n=this.pos-e;n>=128&&el(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),$s(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),$s(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var n=0;n<e;n++)this.buf[this.pos++]=t[n]},writeRawMessage:function(t,e){this.pos++;var n=this.pos;t(e,this);var r=this.pos-n;r>=128&&el(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(t,e,n){this.writeTag(t,Ys.Bytes),this.writeRawMessage(e,n)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,nl,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,rl,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,al,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,ol,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,il,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,sl,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,ll,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,ul,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,cl,e)},writeBytesField:function(t,e){this.writeTag(t,Ys.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Ys.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Ys.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Ys.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Ys.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Ys.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Ys.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Ys.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Ys.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Ys.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var vl=function(t,e){var n=e.pixelRatio,r=e.version,o=e.stretchX,i=e.stretchY,a=e.content;this.paddedRect=t,this.pixelRatio=n,this.stretchX=o,this.stretchY=i,this.content=a,this.version=r},_l={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};_l.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},_l.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},_l.tlbr.get=function(){return this.tl.concat(this.br)},_l.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(vl.prototype,_l);var bl=function(t,e){var n={},r={};this.haveRenderCallbacks=[];var o=[];this.addImages(t,n,o),this.addImages(e,r,o);var i=gl(o),a=new _a({width:i.w||1,height:i.h||1});for(var s in t){var l=t[s],u=n[s].paddedRect;_a.copy(l.data,a,{x:0,y:0},{x:u.x+1,y:u.y+1},l.data)}for(var c in e){var p=e[c],f=r[c].paddedRect,h=f.x+1,d=f.y+1,m=p.data.width,y=p.data.height;_a.copy(p.data,a,{x:0,y:0},{x:h,y:d},p.data),_a.copy(p.data,a,{x:0,y:y-1},{x:h,y:d-1},{width:m,height:1}),_a.copy(p.data,a,{x:0,y:0},{x:h,y:d+y},{width:m,height:1}),_a.copy(p.data,a,{x:m-1,y:0},{x:h-1,y:d},{width:1,height:y}),_a.copy(p.data,a,{x:0,y:0},{x:h+m,y:d},{width:1,height:y})}this.image=a,this.iconPositions=n,this.patternPositions=r};bl.prototype.addImages=function(t,e,n){for(var r in t){var o=t[r],i={x:0,y:0,w:o.data.width+2,h:o.data.height+2};n.push(i),e[r]=new vl(i,o),o.hasRenderCallback&&this.haveRenderCallbacks.push(r)}},bl.prototype.patchUpdatedImages=function(t,e){for(var n in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[n],t.getImage(n),e),this.patchUpdatedImage(this.patternPositions[n],t.getImage(n),e)},bl.prototype.patchUpdatedImage=function(t,e,n){if(t&&e&&t.version!==e.version){t.version=e.version;var r=t.tl;n.update(e.data,void 0,{x:r[0],y:r[1]})}},Br("ImagePosition",vl),Br("ImageAtlas",bl);var xl={horizontal:1,vertical:2,horizontalOnly:3},wl=function(){this.scale=1,this.fontStack="",this.imageName=null};wl.forText=function(t,e){var n=new wl;return n.scale=t||1,n.fontStack=e,n},wl.forImage=function(t){var e=new wl;return e.imageName=t,e};var El=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function Sl(t,e,n,r,o,i,a,s,l,u,c,p,f,h,d,m){var y,g=El.fromFeature(t,o);p===xl.vertical&&g.verticalizePunctuation();var v=ao.processBidirectionalText,_=ao.processStyledBidirectionalText;if(v&&1===g.sections.length){y=[];for(var b=0,x=v(g.toString(),Al(g,u,i,e,r,h,d));b<x.length;b+=1){var w=x[b],E=new El;E.text=w,E.sections=g.sections;for(var S=0;S<w.length;S++)E.sectionIndex.push(0);y.push(E)}}else if(_){y=[];for(var k=0,T=_(g.text,g.sectionIndex,Al(g,u,i,e,r,h,d));k<T.length;k+=1){var C=T[k],P=new El;P.text=C[0],P.sectionIndex=C[1],P.sections=g.sections,y.push(P)}}else y=function(t,e){for(var n=[],r=t.text,o=0,i=0,a=e;i<a.length;i+=1){var s=a[i];n.push(t.substring(o,s)),o=s}return o<r.length&&n.push(t.substring(o,r.length)),n}(g,Al(g,u,i,e,r,h,d));var I=[],O={positionedLines:I,text:g.toString(),top:c[1],bottom:c[1],left:c[0],right:c[0],writingMode:p,iconsInText:!1,verticalizable:!1};return function(t,e,n,r,o,i,a,s,l,u,c,p){for(var f=0,h=-17,d=0,m=0,y="right"===s?1:"left"===s?0:.5,g=0,v=0,_=o;v<_.length;v+=1){var b=_[v];b.trim();var x=b.getMaxScale(),w=24*(x-1),E={positionedGlyphs:[],lineOffset:0};t.positionedLines[g]=E;var S=E.positionedGlyphs,k=0;if(b.length()){for(var T=0;T<b.length();T++){var C=b.getSection(T),P=b.getSectionIndex(T),I=b.getCharCode(T),O=0,A=null,z=null,M=null,R=24,D=!(l===xl.horizontal||!c&&!Hr(I)||c&&(kl[I]||(G=I,Wr.Arabic(G)||Wr["Arabic Supplement"](G)||Wr["Arabic Extended-A"](G)||Wr["Arabic Presentation Forms-A"](G)||Wr["Arabic Presentation Forms-B"](G))));if(C.imageName){var L=r[C.imageName];if(!L)continue;M=C.imageName,t.iconsInText=t.iconsInText||!0,z=L.paddedRect;var j=L.displaySize;C.scale=24*C.scale/p,O=w+(24-j[1]*C.scale),R=(A={width:j[0],height:j[1],left:1,top:-3,advance:D?j[1]:j[0]}).advance;var B=D?j[0]*C.scale-24*x:j[1]*C.scale-24*x;B>0&&B>k&&(k=B)}else{var N=n[C.fontStack],F=N&&N[I];if(F&&F.rect)z=F.rect,A=F.metrics;else{var U=e[C.fontStack],V=U&&U[I];if(!V)continue;A=V.metrics}O=24*(x-C.scale)}D?(t.verticalizable=!0,S.push({glyph:I,imageName:M,x:f,y:h+O,vertical:D,scale:C.scale,fontStack:C.fontStack,sectionIndex:P,metrics:A,rect:z}),f+=R*C.scale+u):(S.push({glyph:I,imageName:M,x:f,y:h+O,vertical:D,scale:C.scale,fontStack:C.fontStack,sectionIndex:P,metrics:A,rect:z}),f+=A.advance*C.scale+u)}0!==S.length&&(d=Math.max(f-u,d),Ml(S,0,S.length-1,y,k)),f=0;var q=i*x+k;E.lineOffset=Math.max(k,w),h+=q,m=Math.max(q,m),++g}else h+=i,++g}var G,W=h- -17,Z=zl(a),H=Z.horizontalAlign,X=Z.verticalAlign;(function(t,e,n,r,o,i,a,s,l){var u,c=(e-n)*o;u=i!==a?-s*r- -17:(-r*l+.5)*a;for(var p=0,f=t;p<f.length;p+=1)for(var h=0,d=f[p].positionedGlyphs;h<d.length;h+=1){var m=d[h];m.x+=c,m.y+=u}})(t.positionedLines,y,H,X,d,m,i,W,o.length),t.top+=-X*W,t.bottom=t.top+W,t.left+=-H*d,t.right=t.left+d}(O,e,n,r,y,a,s,l,p,u,f,m),!function(t){for(var e=0,n=t;e<n.length;e+=1)if(0!==n[e].positionedGlyphs.length)return!1;return!0}(I)&&O}El.fromFeature=function(t,e){for(var n=new El,r=0;r<t.sections.length;r++){var o=t.sections[r];o.image?n.addImageSection(o):n.addTextSection(o,e)}return n},El.prototype.length=function(){return this.text.length},El.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},El.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},El.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},El.prototype.verticalizePunctuation=function(){this.text=function(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n+1)||null,o=t.charCodeAt(n-1)||null;e+=r&&Xr(r)&&!Hs[t[n+1]]||o&&Xr(o)&&!Hs[t[n-1]]||!Hs[t[n]]?t[n]:Hs[t[n]]}return e}(this.text)},El.prototype.trim=function(){for(var t=0,e=0;e<this.text.length&&kl[this.text.charCodeAt(e)];e++)t++;for(var n=this.text.length,r=this.text.length-1;r>=0&&r>=t&&kl[this.text.charCodeAt(r)];r--)n--;this.text=this.text.substring(t,n),this.sectionIndex=this.sectionIndex.slice(t,n)},El.prototype.substring=function(t,e){var n=new El;return n.text=this.text.substring(t,e),n.sectionIndex=this.sectionIndex.slice(t,e),n.sections=this.sections,n},El.prototype.toString=function(){return this.text},El.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,n){return Math.max(e,t.sections[n].scale)}
vendor: 1,043 bytes, line 1
1),0)},El.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(wl.forText(t.scale,t.fontStack||e));for(var n=this.sections.length-1,r=0;r<t.text.length;++r)this.sectionIndex.push(n)},El.prototype.addImageSection=function(t){var e=t.image?t.image.name:"";if(0!==e.length){var n=this.getNextImageSectionCharCode();n?(this.text+=String.fromCharCode(n),this.sections.push(wl.forImage(e)),this.sectionIndex.push(this.sections.length-1)):E("Reached maximum number of images 6401")}else E("Can't add FormattedSection with an empty image.")},El.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var kl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Tl={};function Cl(t,e,n,r,o,i){if(e.imageName){var a=r[e.imageName];return a?a.displaySize[0]*e.scale*24/i+o:0}var s=n[e.fontStack],l=s&&s[t];return l?l.metrics.advance*e.scale+o:0}function Pl(t,e,n,r){var o=Math.pow(t-e,2);return r?t<e?o/2:2*o:o+Math.abs(n)*n}
vendor: 119,580 bytes, line 1
1function Il(t,e,n){var r=0;return 10===t&&(r-=1e4),n&&(r+=150),40!==t&&65288!==t||(r+=50),41!==e&&65289!==e||(r+=50),r}function Ol(t,e,n,r,o,i){for(var a=null,s=Pl(e,n,o,i),l=0,u=r;l<u.length;l+=1){var c=u[l],p=Pl(e-c.x,n,o,i)+c.badness;p<=s&&(a=c,s=p)}return{index:t,x:e,priorBreak:a,badness:s}}function Al(t,e,n,r,o,i,a){if("point"!==i)return[];if(!t)return[];for(var s,l=[],u=function(t,e,n,r,o,i){for(var a=0,s=0;s<t.length();s++){var l=t.getSection(s);a+=Cl(t.getCharCode(s),l,r,o,e,i)}return a/Math.max(1,Math.ceil(a/n))}(t,e,n,r,o,a),c=t.text.indexOf("â")>=0,p=0,f=0;f<t.length();f++){var h=t.getSection(f),d=t.getCharCode(f);if(kl[d]||(p+=Cl(d,h,r,o,e,a)),f<t.length()-1){var m=!((s=d)<11904||!(Wr["Bopomofo Extended"](s)||Wr.Bopomofo(s)||Wr["CJK Compatibility Forms"](s)||Wr["CJK Compatibility Ideographs"](s)||Wr["CJK Compatibility"](s)||Wr["CJK Radicals Supplement"](s)||Wr["CJK Strokes"](s)||Wr["CJK Symbols and Punctuation"](s)||Wr["CJK Unified Ideographs Extension A"](s)||Wr["CJK Unified Ideographs"](s)||Wr["Enclosed CJK Letters and Months"](s)||Wr["Halfwidth and Fullwidth Forms"](s)||Wr.Hiragana(s)||Wr["Ideographic Description Characters"](s)||Wr["Kangxi Radicals"](s)||Wr["Katakana Phonetic Extensions"](s)||Wr.Katakana(s)||Wr["Vertical Forms"](s)||Wr["Yi Radicals"](s)||Wr["Yi Syllables"](s)));(Tl[d]||m||h.imageName)&&l.push(Ol(f+1,p,u,l,Il(d,t.getCharCode(f+1),m&&c),!1))}}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(Ol(t.length(),p,u,l,0,!0))}function zl(t){var e=.5,n=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:e,verticalAlign:n}}function Ml(t,e,n,r,o){if(r||o)for(var i=t[n],a=(t[n].x+i.metrics.advance*i.scale)*r,s=e;s<=n;s++)t[s].x-=a,t[s].y+=o}function Rl(t,e,n,r,o,i){var a,s=t.image;if(s.content){var l=s.content,u=s.pixelRatio||1;a=[l[0]/u,l[1]/u,s.displaySize[0]-l[2]/u,s.displaySize[1]-l[3]/u]}var c,p,f,h,d=e.left*i,m=e.right*i;"width"===n||"both"===n?(h=o[0]+d-r[3],p=o[0]+m+r[1]):p=(h=o[0]+(d+m-s.displaySize[0])/2)+s.displaySize[0];var y=e.top*i,g=e.bottom*i;return"height"===n||"both"===n?(c=o[1]+y-r[0],f=o[1]+g+r[2]):f=(c=o[1]+(y+g-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:c,right:p,bottom:f,left:h,collisionPadding:a}}Tl[10]=!0,Tl[32]=!0,Tl[38]=!0,Tl[40]=!0,Tl[41]=!0,Tl[43]=!0,Tl[45]=!0,Tl[47]=!0,Tl[173]=!0,Tl[183]=!0,Tl[8203]=!0,Tl[8208]=!0,Tl[8211]=!0,Tl[8231]=!0;var Dl=function(t){function e(e,n,r,o){t.call(this,e,n),this.angle=r,void 0!==o&&(this.segment=o)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(o);function Ll(t,e){var n=e.expression;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new so(t+1))};if("source"===n.kind)return{kind:"source"};for(var r=n.zoomStops,o=n.interpolationType,i=0;i<r.length&&r[i]<=t;)i++;for(var a=i=Math.max(0,i-1);a<r.length&&r[a]<t+1;)a++;a=Math.min(r.length-1,a);var s=r[i],l=r[a];return"composite"===n.kind?{kind:"composite",minZoom:s,maxZoom:l,interpolationType:o}:{kind:"camera",minZoom:s,maxZoom:l,minSize:n.evaluate(new so(s)),maxSize:n.evaluate(new so(l)),interpolationType:o}}function jl(t,e,n){var r=e.uSize,o=n.lowerSize;return"source"===t.kind?o/128:"composite"===t.kind?Ge(o/128,n.upperSize/128,e.uSizeT):r}function Bl(t,e){var n=0,r=0;if("constant"===t.kind)r=t.layoutSize;else if("source"!==t.kind){var o=t.interpolationType,i=o?c(an.interpolationFactor(o,e,t.minZoom,t.maxZoom),0,1):0;"camera"===t.kind?r=Ge(t.minSize,t.maxSize,i):n=i}return{uSizeT:n,uSize:r}}Br("Anchor",Dl);var Nl=Object.freeze({__proto__:null,getSizeData:Ll,evaluateSizeForFeature:jl,evaluateSizeForZoom:Bl,SIZE_PACK_FACTOR:128});function Fl(t,e,n,r,o){if(void 0===e.segment)return!0;for(var i=e,a=e.segment+1,s=0;s>-n/2;){if(--a<0)return!1;s-=t[a].dist(i),i=t[a]}s+=t[a].dist(t[a+1]),a++;for(var l=[],u=0;s<n/2;){var c=t[a],p=t[a+1];if(!p)return!1;var f=t[a-1].angleTo(c)-c.angleTo(p);for(f=Math.abs((f+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:f}),u+=f;s-l[0].distance>r;)u-=l.shift().angleDelta;if(u>o)return!1;a++,s+=c.dist(p)}return!0}function Ul(t){for(var e=0,n=0;n<t.length-1;n++)e+=t[n].dist(t[n+1]);return e}function Vl(t,e,n){return t?.6*e*n:0}function ql(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function Gl(t,e,n,r,o,i){for(var a=Vl(n,o,i),s=ql(n,r)*i,l=0,u=Ul(t)/2,c=0;c<t.length-1;c++){var p=t[c],f=t[c+1],h=p.dist(f);if(l+h>u){var d=(u-l)/h,m=Ge(p.x,f.x,d),y=Ge(p.y,f.y,d),g=new Dl(m,y,f.angleTo(p),c);return g._round(),!a||Fl(t,g,s,a,e)?g:void 0}l+=h}}function Wl(t,e,n,r,o,i,a,s,l){var u=Vl(r,i,a),c=ql(r,o),p=c*a,f=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-p<e/4&&(e=p+e/4),function t(e,n,r,o,i,a,s,l,u){for(var c=a/2,p=Ul(e),f=0,h=n-r,d=[],m=0;m<e.length-1;m++){for(var y=e[m],g=e[m+1],v=y.dist(g),_=g.angleTo(y);h+r<f+v;){var b=((h+=r)-f)/v,x=Ge(y.x,g.x,b),w=Ge(y.y,g.y,b);if(x>=0&&x<u&&w>=0&&w<u&&h-c>=0&&h+c<=p){var E=new Dl(x,w,_,m);E._round(),o&&!Fl(e,E,a,o,i)||d.push(E)}}f+=v}return l||d.length||s||(d=t(e,f/2,r,o,i,a,s,!0,u)),d}(t,f?e/2*s%e:(c/2+2*i)*a*s%e,e,u,n,p,f,!1,l)}function Zl(t,e,n,r,i){for(var a=[],s=0;s<t.length;s++)for(var l=t[s],u=void 0,c=0;c<l.length-1;c++){var p=l[c],f=l[c+1];p.x<e&&f.x<e||(p.x<e?p=new o(e,p.y+(e-p.x)/(f.x-p.x)*(f.y-p.y))._round():f.x<e&&(f=new o(e,p.y+(e-p.x)/(f.x-p.x)*(f.y-p.y))._round()),p.y<n&&f.y<n||(p.y<n?p=new o(p.x+(n-p.y)/(f.y-p.y)*(f.x-p.x),n)._round():f.y<n&&(f=new o(p.x+(n-p.y)/(f.y-p.y)*(f.x-p.x),n)._round()),p.x>=r&&f.x>=r||(p.x>=r?p=new o(r,p.y+(r-p.x)/(f.x-p.x)*(f.y-p.y))._round():f.x>=r&&(f=new o(r,p.y+(r-p.x)/(f.x-p.x)*(f.y-p.y))._round()),p.y>=i&&f.y>=i||(p.y>=i?p=new o(p.x+(i-p.y)/(f.y-p.y)*(f.x-p.x),i)._round():f.y>=i&&(f=new o(p.x+(i-p.y)/(f.y-p.y)*(f.x-p.x),i)._round()),u&&p.equals(u[u.length-1])||a.push(u=[p]),u.push(f)))))}return a}function Hl(t,e,n,r){var i=[],a=t.image,s=a.pixelRatio,l=a.paddedRect.w-2,u=a.paddedRect.h-2,c=t.right-t.left,p=t.bottom-t.top,f=a.stretchX||[[0,l]],h=a.stretchY||[[0,u]],d=function(t,e){return t+e[1]-e[0]},m=f.reduce(d,0),y=h.reduce(d,0),g=l-m,v=u-y,_=0,b=m,x=0,w=y,E=0,S=g,k=0,T=v;if(a.content&&r){var C=a.content;_=Xl(f,0,C[0]),x=Xl(h,0,C[1]),b=Xl(f,C[0],C[2]),w=Xl(h,C[1],C[3]),E=C[0]-_,k=C[1]-x,S=C[2]-C[0]-b,T=C[3]-C[1]-w}var P=function(r,i,l,u){var f=Kl(r.stretch-_,b,c,t.left),h=Yl(r.fixed-E,S,r.stretch,m),d=Kl(i.stretch-x,w,p,t.top),g=Yl(i.fixed-k,T,i.stretch,y),v=Kl(l.stretch-_,b,c,t.left),C=Yl(l.fixed-E,S,l.stretch,m),P=Kl(u.stretch-x,w,p,t.top),I=Yl(u.fixed-k,T,u.stretch,y),O=new o(f,d),A=new o(v,d),z=new o(v,P),M=new o(f,P),R=new o(h/s,g/s),D=new o(C/s,I/s),L=e*Math.PI/180;if(L){var j=Math.sin(L),B=Math.cos(L),N=[B,-j,j,B];O._matMult(N),A._matMult(N),M._matMult(N),z._matMult(N)}var F=r.stretch+r.fixed,U=i.stretch+i.fixed;return{tl:O,tr:A,bl:M,br:z,tex:{x:a.paddedRect.x+1+F,y:a.paddedRect.y+1+U,w:l.stretch+l.fixed-F,h:u.stretch+u.fixed-U},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:R,pixelOffsetBR:D,minFontScaleX:S/s/c,minFontScaleY:T/s/p,isSDF:n}};if(r&&(a.stretchX||a.stretchY))for(var I=$l(f,g,m),O=$l(h,v,y),A=0;A<I.length-1;A++)for(var z=I[A],M=I[A+1],R=0;R<O.length-1;R++)i.push(P(z,O[R],M,O[R+1]));else i.push(P({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:u+1}));return i}function Xl(t,e,n){for(var r=0,o=0,i=t;o<i.length;o+=1){var a=i[o];r+=Math.max(e,Math.min(n,a[1]))-Math.max(e,Math.min(n,a[0]))}return r}function $l(t,e,n){for(var r=[{fixed:-1,stretch:0}],o=0,i=t;o<i.length;o+=1){var a=i[o],s=a[0],l=a[1],u=r[r.length-1];r.push({fixed:s-u.stretch,stretch:u.stretch}),r.push({fixed:s-u.stretch,stretch:u.stretch+(l-s)})}return r.push({fixed:e+1,stretch:n}),r}function Kl(t,e,n,r){return t/e*n+r}function Yl(t,e,n,r){return t-e*n/r}var Jl=function(t,e,n,r,i,a,s,l,u,c){if(this.boxStartIndex=t.length,u){var p=a.top,f=a.bottom,h=a.collisionPadding;h&&(p-=h[1],f+=h[3]);var d=f-p;d>0&&(d=Math.max(10,d),this.circleDiameter=d)}else{var m=a.top*s-l,y=a.bottom*s+l,g=a.left*s-l,v=a.right*s+l,_=a.collisionPadding;if(_&&(g-=_[0]*s,m-=_[1]*s,v+=_[2]*s,y+=_[3]*s),c){var b=new o(g,m),x=new o(v,m),w=new o(g,y),E=new o(v,y),S=c*Math.PI/180;b._rotate(S),x._rotate(S),w._rotate(S),E._rotate(S),g=Math.min(b.x,x.x,w.x,E.x),v=Math.max(b.x,x.x,w.x,E.x),m=Math.min(b.y,x.y,w.y,E.y),y=Math.max(b.y,x.y,w.y,E.y)}t.emplaceBack(e.x,e.y,g,m,v,y,n,r,i)}this.boxEndIndex=t.length},Ql=function(t,e){if(void 0===t&&(t=[]),void 0===e&&(e=tu),this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)};function tu(t,e){return t<e?-1:t>e?1:0}function eu(t,e,n){void 0===e&&(e=1),void 0===n&&(n=!1);for(var r=1/0,i=1/0,a=-1/0,s=-1/0,l=t[0],u=0;u<l.length;u++){var c=l[u];(!u||c.x<r)&&(r=c.x),(!u||c.y<i)&&(i=c.y),(!u||c.x>a)&&(a=c.x),(!u||c.y>s)&&(s=c.y)}var p=Math.min(a-r,s-i),f=p/2,h=new Ql([],nu);if(0===p)return new o(r,i);for(var d=r;d<a;d+=p)for(var m=i;m<s;m+=p)h.push(new ru(d+f,m+f,f,t));for(var y=function(t){for(var e=0,n=0,r=0,o=t[0],i=0,a=o.length,s=a-1;i<a;s=i++){var l=o[i],u=o[s],c=l.x*u.y-u.x*l.y;n+=(l.x+u.x)*c,r+=(l.y+u.y)*c,e+=3*c}return new ru(n/e,r/e,0,t)}(t),g=h.length;h.length;){var v=h.pop();(v.d>y.d||!y.d)&&(y=v,n&&console.log("found best %d after %d probes",Math.round(1e4*v.d)/1e4,g)),v.max-y.d<=e||(h.push(new ru(v.p.x-(f=v.h/2),v.p.y-f,f,t)),h.push(new ru(v.p.x+f,v.p.y-f,f,t)),h.push(new ru(v.p.x-f,v.p.y+f,f,t)),h.push(new ru(v.p.x+f,v.p.y+f,f,t)),g+=4)}return n&&(console.log("num probes: "+g),console.log("best distance: "+y.d)),y.p}function nu(t,e){return e.max-t.max}function ru(t,e,n,r){this.p=new o(t,e),this.h=n,this.d=function(t,e){for(var n=!1,r=1/0,o=0;o<e.length;o++)for(var i=e[o],a=0,s=i.length,l=s-1;a<s;l=a++){var u=i[a],c=i[l];u.y>t.y!=c.y>t.y&&t.x<(c.x-u.x)*(t.y-u.y)/(c.y-u.y)+u.x&&(n=!n),r=Math.min(r,Yi(t,u,c))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}Ql.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},Ql.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}},Ql.prototype.peek=function(){return this.data[0]},Ql.prototype._up=function(t){for(var e=this.data,n=this.compare,r=e[t];t>0;){var o=t-1>>1,i=e[o];if(n(r,i)>=0)break;e[t]=i,t=o}e[t]=r},Ql.prototype._down=function(t){for(var e=this.data,n=this.compare,r=this.length>>1,o=e[t];t<r;){var i=1+(t<<1),a=e[i],s=i+1;if(s<this.length&&n(e[s],a)<0&&(i=s,a=e[s]),n(a,o)>=0)break;e[t]=a,t=i}e[t]=o};var ou=Number.POSITIVE_INFINITY;function iu(t,e){return e[1]!==ou?function(t,e,n){var r=0,o=0;switch(e=Math.abs(e),n=Math.abs(n),t){case"top-right":case"top-left":case"top":o=n-7;break;case"bottom-right":case"bottom-left":case"bottom":o=7-n}switch(t){case"top-right":case"bottom-right":case"right":r=-e;break;case"top-left":case"bottom-left":case"left":r=e}return[r,o]}(t,e[0],e[1]):function(t,e){var n=0,r=0;e<0&&(e=0);var o=e/Math.sqrt(2);switch(t){case"top-right":case"top-left":r=o-7;break;case"bottom-right":case"bottom-left":r=7-o;break;case"bottom":r=7-e;break;case"top":r=e-7}switch(t){case"top-right":case"bottom-right":n=-o;break;case"top-left":case"bottom-left":n=o;break;case"left":n=e;break;case"right":n=-e}return[n,r]}(t,e[0])}function au(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function su(t,e,n,r,i,a,s,l,u,c,p,f,h,d,m){var y=function(t,e,n,r,i,a,s,l){for(var u=r.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,c=[],p=0,f=e.positionedLines;p<f.length;p+=1)for(var h=f[p],d=0,m=h.positionedGlyphs;d<m.length;d+=1){var y=m[d];if(y.rect){var g=y.rect||{},v=4,_=!0,b=1,x=0,w=(i||l)&&y.vertical,E=y.metrics.advance*y.scale/2;if(l&&e.verticalizable&&(x=h.lineOffset/2-(y.imageName?-(24-y.metrics.width*y.scale)/2:24*(y.scale-1))),y.imageName){var S=s[y.imageName];_=S.sdf,v=1/(b=S.pixelRatio)}var k=i?[y.x+E,y.y]:[0,0],T=i?[0,0]:[y.x+E+n[0],y.y+n[1]-x],C=[0,0];w&&(C=T,T=[0,0]);var P=(y.metrics.left-v)*y.scale-E+T[0],I=(-y.metrics.top-v)*y.scale+T[1],O=P+g.w*y.scale/b,A=I+g.h*y.scale/b,z=new o(P,I),M=new o(O,I),R=new o(P,A),D=new o(O,A);if(w){var L=new o(-E,E- -17),j=-Math.PI/2,B=12-E,N=new o(22-B,-(y.imageName?B:0)),F=new(Function.prototype.bind.apply(o,[null].concat(C)));z._rotateAround(j,L)._add(N)._add(F),M._rotateAround(j,L)._add(N)._add(F),R._rotateAround(j,L)._add(N)._add(F),D._rotateAround(j,L)._add(N)._add(F)}if(u){var U=Math.sin(u),V=Math.cos(u),q=[V,-U,U,V];z._matMult(q),M._matMult(q),R._matMult(q),D._matMult(q)}var G=new o(0,0),W=new o(0,0);c.push({tl:z,tr:M,bl:R,br:D,tex:g,writingMode:e.writingMode,glyphOffset:k,sectionIndex:y.sectionIndex,isSDF:_,pixelOffsetTL:G,pixelOffsetBR:W,minFontScaleX:0,minFontScaleY:0})}}return c}(0,n,l,i,a,s,r,t.allowVerticalPlacement),g=t.textSizeData,v=null;"source"===g.kind?(v=[128*i.layout.get("text-size").evaluate(s,{})])[0]>32640&&E(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):"composite"===g.kind&&((v=[128*d.compositeTextSizes[0].evaluate(s,{},m),128*d.compositeTextSizes[1].evaluate(s,{},m)])[0]>32640||v[1]>32640)&&E(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),t.addSymbols(t.text,y,v,l,a,s,c,e,u.lineStartIndex,u.lineLength,h,m);for(var _=0,b=p;_<b.length;_+=1)f[b[_]]=t.text.placedSymbolArray.length-1;return 4*y.length}function lu(t){for(var e in t)return t[e];return null}function uu(t,e,n,r){var o=t.compareText;if(e in o){for(var i=o[e],a=i.length-1;a>=0;a--)if(r.dist(i[a])<n)return!0}else o[e]=[];return o[e].push(r),!1}var cu=bs.VectorTileFeature.types,pu=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function fu(t,e,n,r,o,i,a,s,l,u,c,p,f){var h=s?Math.min(32640,Math.round(s[0])):0,d=s?Math.min(32640,Math.round(s[1])):0;t.emplaceBack(e,n,Math.round(32*r),Math.round(32*o),i,a,(h<<1)+(l?1:0),d,16*u,16*c,256*p,256*f)}function hu(t,e,n){t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n)}function du(t){for(var e=0,n=t.sections;e<n.length;e+=1)if(Yr(n[e].text))return!0;return!1}var mu=function(t){this.layoutVertexArray=new Do,this.indexArray=new Vo,this.programConfigurations=t,this.segments=new li,this.dynamicLayoutVertexArray=new Lo,this.opacityVertexArray=new jo,this.placedSymbolArray=new ti};mu.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length},mu.prototype.upload=function(t,e,n,r){this.isEmpty()||(n&&(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Us.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,Vs.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,pu,!0),this.opacityVertexBuffer.itemSize=1),(n||r)&&this.programConfigurations.upload(t))},mu.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},Br("SymbolBuffers",mu);var yu=function(t,e,n){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new n,this.segments=new li,this.collisionVertexArray=new Uo};yu.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,qs.members,!0)},yu.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},Br("CollisionBuffers",yu);var gu=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=sa([]),this.placementViewportMatrix=sa([]);var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ll(this.zoom,e["text-size"]),this.iconSizeData=Ll(this.zoom,e["icon-size"]);var n=this.layers[0].layout,r=n.get("symbol-sort-key"),o=n.get("symbol-z-order");this.canOverlap=n.get("text-allow-overlap")||n.get("icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==o&&void 0!==r.constantOr(1),this.sortFeaturesByY=("viewport-y"===o||"auto"===o&&!this.sortFeaturesByKey)&&this.canOverlap,"point"===n.get("symbol-placement")&&(this.writingModes=n.get("text-writing-mode").map((function(t){return xl[t]}))),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id})),this.sourceID=t.sourceID};gu.prototype.createArrays=function(){this.text=new mu(new Di(this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new mu(new Di(this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.glyphOffsetArray=new ri,this.lineVertexArray=new oi,this.symbolInstances=new ni},gu.prototype.calculateGlyphDependencies=function(t,e,n,r,o){for(var i=0;i<t.length;i++)if(e[t.charCodeAt(i)]=!0,(n||r)&&o){var a=Hs[t.charAt(i)];a&&(e[a.charCodeAt(0)]=!0)}},gu.prototype.populate=function(t,e,n){var r=this.layers[0],o=r.layout,i=o.get("text-font"),a=o.get("text-field"),s=o.get("icon-image"),l=("constant"!==a.value.kind||a.value.value instanceof re&&!a.value.value.isEmpty()||a.value.value.toString().length>0)&&("constant"!==i.value.kind||i.value.value.length>0),u="constant"!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length>0,c=o.get("symbol-sort-key");if(this.features=[],l||u){for(var p=e.iconDependencies,f=e.glyphDependencies,h=e.availableImages,d=new so(this.zoom),m=0,y=t;m<y.length;m+=1){var g=y[m],v=g.feature,_=g.id,b=g.index,x=g.sourceLayerIndex,w=r._featureFilter.needGeometry,E=Ui(v,w);if(r._featureFilter.filter(d,E,n)){w||(E.geometry=Fi(v));var S=void 0;if(l){var k=r.getValueAndResolveTokens("text-field",E,n,h),T=re.factory(k);du(T)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===oo()||this.hasRTLText&&ao.isParsed())&&(S=Zs(T,r,E))}var C=void 0;if(u){var P=r.getValueAndResolveTokens("icon-image",E,n,h);C=P instanceof oe?P:oe.fromString(P)}if(S||C){var I=this.sortFeaturesByKey?c.evaluate(E,{},n):void 0;if(this.features.push({id:_,text:S,icon:C,index:b,sourceLayerIndex:x,geometry:E.geometry,properties:v.properties,type:cu[v.type],sortKey:I}),C&&(p[C.name]=!0),S){var O=i.evaluate(E,{},n).join(","),A="map"===o.get("text-rotation-alignment")&&"point"!==o.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(xl.vertical)>=0;for(var z=0,M=S.sections;z<M.length;z+=1){var R=M[z];if(R.image)p[R.image.name]=!0;else{var D=Zr(S.toString()),L=R.fontStack||O,j=f[L]=f[L]||{};this.calculateGlyphDependencies(R.text,j,A,this.allowVerticalPlacement,D)}}}}}}"line"===o.get("symbol-placement")&&(this.features=function(t){var e={},n={},r=[],o=0;function i(e){r.push(t[e]),o++}function a(t,e,o){var i=n[t];return delete n[t],n[e]=i,r[i].geometry[0].pop(),r[i].geometry[0]=r[i].geometry[0].concat(o[0]),i}function s(t,n,o){var i=e[n];return delete e[n],e[t]=i,r[i].geometry[0].shift(),r[i].geometry[0]=o[0].concat(r[i].geometry[0]),i}function l(t,e,n){var r=n?e[0][e[0].length-1]:e[0][0];return t+":"+r.x+":"+r.y}for(var u=0;u<t.length;u++){var c=t[u],p=c.geometry,f=c.text?c.text.toString():null;if(f){var h=l(f,p),d=l(f,p,!0);if(h in n&&d in e&&n[h]!==e[d]){var m=s(h,d,p),y=a(h,d,r[m].geometry);delete e[h],delete n[d],n[l(f,r[y].geometry,!0)]=y,r[m].geometry=null}else h in n?a(h,d,p):d in e?s(h,d,p):(i(u),e[h]=o-1,n[d]=o-1)}else i(u)}return r.filter((function(t){return t.geometry}))}(this.features)),this.sortFeaturesByKey&&this.features.sort((function(t,e){return t.sortKey-e.sortKey}))}},gu.prototype.update=function(t,e,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,n),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,n))},gu.prototype.isEmpty=function(){return 0===this.symbolInstances.length&&!this.hasRTLText},gu.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},gu.prototype.upload=function(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},gu.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},gu.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()},gu.prototype.addToLineVertexArray=function(t,e){var n=this.lineVertexArray.length;if(void 0!==t.segment){for(var r=t.dist(e[t.segment+1]),o=t.dist(e[t.segment]),i={},a=t.segment+1;a<e.length;a++)i[a]={x:e[a].x,y:e[a].y,tileUnitDistanceFromAnchor:r},a<e.length-1&&(r+=e[a+1].dist(e[a]));for(var s=t.segment||0;s>=0;s--)i[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:o},s>0&&(o+=e[s-1].dist(e[s]));for(var l=0;l<e.length;l++){var u=i[l];this.lineVertexArray.emplaceBack(u.x,u.y,u.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}},gu.prototype.addSymbols=function(t,e,n,r,o,i,a,s,l,u,c,p){for(var f=t.indexArray,h=t.layoutVertexArray,d=t.segments.prepareSegment(4*e.length,h,f,this.canOverlap?i.sortKey:void 0),m=this.glyphOffsetArray.length,y=d.vertexLength,g=this.allowVerticalPlacement&&a===xl.vertical?Math.PI/2:0,v=i.text&&i.text.sections,_=0;_<e.length;_++){var b=e[_],x=b.tl,w=b.tr,E=b.bl,S=b.br,k=b.tex,T=b.pixelOffsetTL,C=b.pixelOffsetBR,P=b.minFontScaleX,I=b.minFontScaleY,O=b.glyphOffset,A=b.isSDF,z=b.sectionIndex,M=d.vertexLength,R=O[1];fu(h,s.x,s.y,x.x,R+x.y,k.x,k.y,n,A,T.x,T.y,P,I),fu(h,s.x,s.y,w.x,R+w.y,k.x+k.w,k.y,n,A,C.x,T.y,P,I),fu(h,s.x,s.y,E.x,R+E.y,k.x,k.y+k.h,n,A,T.x,C.y,P,I),fu(h,s.x,s.y,S.x,R+S.y,k.x+k.w,k.y+k.h,n,A,C.x,C.y,P,I),hu(t.dynamicLayoutVertexArray,s,g),f.emplaceBack(M,M+1,M+2),f.emplaceBack(M+1,M+2,M+3),d.vertexLength+=4,d.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(O[0]),_!==e.length-1&&z===e[_+1].sectionIndex||t.programConfigurations.populatePaintArrays(h.length,i,i.index,{},p,v&&v[z])}t.placedSymbolArray.emplaceBack(s.x,s.y,m,this.glyphOffsetArray.length-m,y,l,u,s.segment,n?n[0]:0,n?n[1]:0,r[0],r[1],a,0,!1,0,c)},gu.prototype._addCollisionDebugVertex=function(t,e,n,r,o,i){return e.emplaceBack(0,0),t.emplaceBack(n.x,n.y,r,o,Math.round(i.x),Math.round(i.y))},gu.prototype.addCollisionDebugVertices=function(t,e,n,r,i,a,s){var l=i.segments.prepareSegment(4,i.layoutVertexArray,i.indexArray),u=l.vertexLength,c=i.layoutVertexArray,p=i.collisionVertexArray,f=s.anchorX,h=s.anchorY;this._addCollisionDebugVertex(c,p,a,f,h,new o(t,e)),this._addCollisionDebugVertex(c,p,a,f,h,new o(n,e)),this._addCollisionDebugVertex(c,p,a,f,h,new o(n,r)),this._addCollisionDebugVertex(c,p,a,f,h,new o(t,r)),l.vertexLength+=4;var d=i.indexArray;d.emplaceBack(u,u+1),d.emplaceBack(u+1,u+2),d.emplaceBack(u+2,u+3),d.emplaceBack(u+3,u),l.primitiveLength+=4},gu.prototype.addDebugCollisionBoxes=function(t,e,n,r){for(var o=t;o<e;o++){var i=this.collisionBoxArray.get(o);this.addCollisionDebugVertices(i.x1,i.y1,i.x2,i.y2,r?this.textCollisionBox:this.iconCollisionBox,i.anchorPoint,n)}},gu.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new yu(No,Gs.members,Xo),this.iconCollisionBox=new yu(No,Gs.members,Xo);for(var t=0;t<this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e,!1),this.addDebugCollisionBoxes(e.verticalIconBoxStartIndex,e.verticalIconBoxEndIndex,e,!1)}},gu.prototype._deserializeCollisionBoxesForSymbol=function(t,e,n,r,o,i,a,s,l){for(var u={},c=e;c<n;c++){var p=t.get(c);u.textBox={x1:p.x1,y1:p.y1,x2:p.x2,y2:p.y2,anchorPointX:p.anchorPointX,anchorPointY:p.anchorPointY},u.textFeatureIndex=p.featureIndex;break}for(var f=r;f<o;f++){var h=t.get(f);u.verticalTextBox={x1:h.x1,y1:h.y1,x2:h.x2,y2:h.y2,anchorPointX:h.anchorPointX,anchorPointY:h.anchorPointY},u.verticalTextFeatureIndex=h.featureIndex;break}for(var d=i;d<a;d++){var m=t.get(d);u.iconBox={x1:m.x1,y1:m.y1,x2:m.x2,y2:m.y2,anchorPointX:m.anchorPointX,anchorPointY:m.anchorPointY},u.iconFeatureIndex=m.featureIndex;break}for(var y=s;y<l;y++){var g=t.get(y);u.verticalIconBox={x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,anchorPointX:g.anchorPointX,anchorPointY:g.anchorPointY},u.verticalIconFeatureIndex=g.featureIndex;break}return u},gu.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e<this.symbolInstances.length;e++){var n=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}},gu.prototype.hasTextData=function(){return this.text.segments.get().length>0},gu.prototype.hasIconData=function(){return this.icon.segments.get().length>0},gu.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},gu.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},gu.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},gu.prototype.addIndicesForPlacedSymbol=function(t,e){for(var n=t.placedSymbolArray.get(e),r=n.vertexStartIndex+4*n.numGlyphs,o=n.vertexStartIndex;o<r;o+=4)t.indexArray.emplaceBack(o,o+1,o+2),t.indexArray.emplaceBack(o+1,o+2,o+3)},gu.prototype.getSortedSymbolIndexes=function(t){if(this.sortedAngle===t&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var e=Math.sin(t),n=Math.cos(t),r=[],o=[],i=[],a=0;a<this.symbolInstances.length;++a){i.push(a);var s=this.symbolInstances.get(a);r.push(0|Math.round(e*s.anchorX+n*s.anchorY)),o.push(s.featureIndex)}return i.sort((function(t,e){return r[t]-r[e]||o[e]-o[t]})),i},gu.prototype.addToSortKeyRanges=function(t,e){var n=this.sortKeyRanges[this.sortKeyRanges.length-1];n&&n.sortKey===e?n.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})},gu.prototype.sortFeatures=function(t){var e=this;if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var n=0,r=this.symbolInstanceIndexes;n<r.length;n+=1){var o=this.symbolInstances.get(r[n]);this.featureSortOrder.push(o.featureIndex),[o.rightJustifiedTextSymbolIndex,o.centerJustifiedTextSymbolIndex,o.leftJustifiedTextSymbolIndex].forEach((function(t,n,r){t>=0&&r.indexOf(t)===n&&e.addIndicesForPlacedSymbol(e.text,t)})),o.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,o.verticalPlacedTextSymbolIndex),o.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,o.placedIconSymbolIndex),o.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,o.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Br("SymbolBucket",gu,{omit:["layers","collisionBoxArray","features","compareText"]}),gu.MAX_GLYPHS=65535,gu.addDynamicAttributes=hu;var vu=new wo({"symbol-placement":new go(It.layout_symbol["symbol-placement"]),"symbol-spacing":new go(It.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new go(It.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new vo(It.layout_symbol["symbol-sort-key"]),"symbol-z-order":new go(It.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new go(It.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new go(It.layout_symbol["icon-ignore-placement"]),"icon-optional":new go(It.layout_symbol["icon-optional"]),"icon-rotation-alignment":new go(It.layout_symbol["icon-rotation-alignment"]),"icon-size":new vo(It.layout_symbol["icon-size"]),"icon-text-fit":new go(It.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new go(It.layout_symbol["icon-text-fit-padding"]),"icon-image":new vo(It.layout_symbol["icon-image"]),"icon-rotate":new vo(It.layout_symbol["icon-rotate"]),"icon-padding":new go(It.layout_symbol["icon-padding"]),"icon-keep-upright":new go(It.layout_symbol["icon-keep-upright"]),"icon-offset":new vo(It.layout_symbol["icon-offset"]),"icon-anchor":new vo(It.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new go(It.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new go(It.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new go(It.layout_symbol["text-rotation-alignment"]),"text-field":new vo(It.layout_symbol["text-field"]),"text-font":new vo(It.layout_symbol["text-font"]),"text-size":new vo(It.layout_symbol["text-size"]),"text-max-width":new vo(It.layout_symbol["text-max-width"]),"text-line-height":new go(It.layout_symbol["text-line-height"]),"text-letter-spacing":new vo(It.layout_symbol["text-letter-spacing"]),"text-justify":new vo(It.layout_symbol["text-justify"]),"text-radial-offset":new vo(It.layout_symbol["text-radial-offset"]),"text-variable-anchor":new go(It.layout_symbol["text-variable-anchor"]),"text-anchor":new vo(It.layout_symbol["text-anchor"]),"text-max-angle":new go(It.layout_symbol["text-max-angle"]),"text-writing-mode":new go(It.layout_symbol["text-writing-mode"]),"text-rotate":new vo(It.layout_symbol["text-rotate"]),"text-padding":new go(It.layout_symbol["text-padding"]),"text-keep-upright":new go(It.layout_symbol["text-keep-upright"]),"text-transform":new vo(It.layout_symbol["text-transform"]),"text-offset":new vo(It.layout_symbol["text-offset"]),"text-allow-overlap":new go(It.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new go(It.layout_symbol["text-ignore-placement"]),"text-optional":new go(It.layout_symbol["text-optional"])}),_u={paint:new wo({"icon-opacity":new vo(It.paint_symbol["icon-opacity"]),"icon-color":new vo(It.paint_symbol["icon-color"]),"icon-halo-color":new vo(It.paint_symbol["icon-halo-color"]),"icon-halo-width":new vo(It.paint_symbol["icon-halo-width"]),"icon-halo-blur":new vo(It.paint_symbol["icon-halo-blur"]),"icon-translate":new go(It.paint_symbol["icon-translate"]),"icon-translate-anchor":new go(It.paint_symbol["icon-translate-anchor"]),"text-opacity":new vo(It.paint_symbol["text-opacity"]),"text-color":new vo(It.paint_symbol["text-color"],{runtimeType:Ut,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),"text-halo-color":new vo(It.paint_symbol["text-halo-color"]),"text-halo-width":new vo(It.paint_symbol["text-halo-width"]),"text-halo-blur":new vo(It.paint_symbol["text-halo-blur"]),"text-translate":new go(It.paint_symbol["text-translate"]),"text-translate-anchor":new go(It.paint_symbol["text-translate-anchor"])}),layout:vu},bu=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:jt,this.defaultValue=t};bu.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},bu.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},bu.prototype.outputDefined=function(){return!1},bu.prototype.serialize=function(){return null},Br("FormatSectionOverride",bu,{omit:["defaultValue"]});var xu=function(t){function e(e){t.call(this,e,_u)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.recalculate=function(e,n){if(t.prototype.recalculate.call(this,e,n),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var r=this.layout.get("text-writing-mode");if(r){for(var o=[],i=0,a=r;i<a.length;i+=1){var s=a[i];o.indexOf(s)<0&&o.push(s)}this.layout._values["text-writing-mode"]=o}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()},e.prototype.getValueAndResolveTokens=function(t,e,n,r){var o=this.layout.get(t).evaluate(e,{},n,r),i=this._unevaluatedLayout._values[t];return i.isDataDriven()||Zn(i.value)||!o?o:function(t,e){return e.replace(/{([^{}]+)}/g,(function(e,n){return n in t?String(t[n]):""}))}(e.properties,o)},e.prototype.createBucket=function(t){return new gu(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var t=0,n=_u.paint.overridableProperties;t<n.length;t+=1){var r=n[t];if(e.hasPaintOverride(this.layout,r)){var o,i=this.paint.get(r),a=new bu(i),s=new Wn(a,i.property.specification);o="constant"===i.value.kind||"source"===i.value.kind?new Xn("source",s):new $n("composite",s,i.value.zoomStops,i.value._interpolationType),this.paint._values[r]=new mo(i.property,o,i.parameters)}}},e.prototype._handleOverridablePaintPropertyUpdate=function(t,n,r){return!(!this.layout||n.isDataDriven()||r.isDataDriven())&&e.hasPaintOverride(this.layout,t)},e.hasPaintOverride=function(t,e){var n=t.get("text-field"),r=_u.paint.properties[e],o=!1,i=function(t){for(var e=0,n=t;e<n.length;e+=1)if(r.overrides&&r.overrides.hasOverride(n[e]))return void(o=!0)};if("constant"===n.value.kind&&n.value.value instanceof re)i(n.value.value.sections);else if("source"===n.value.kind){var a=function(t){o||(t instanceof ue&&se(t.value)===Wt?i(t.value.sections):t instanceof he?i(t.sections):t.eachChild(a))},s=n.value;s._styleExpression&&a(s._styleExpression.expression)}return o},e}(Eo),wu={paint:new wo({"background-color":new go(It.paint_background["background-color"]),"background-pattern":new bo(It.paint_background["background-pattern"]),"background-opacity":new go(It.paint_background["background-opacity"])})},Eu=function(t){function e(e){t.call(this,e,wu)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Eo),Su={paint:new wo({"raster-opacity":new go(It.paint_raster["raster-opacity"]),"raster-hue-rotate":new go(It.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new go(It.paint_raster["raster-brightness-min"]),"raster-brightness-max":new go(It.paint_raster["raster-brightness-max"]),"raster-saturation":new go(It.paint_raster["raster-saturation"]),"raster-contrast":new go(It.paint_raster["raster-contrast"]),"raster-resampling":new go(It.paint_raster["raster-resampling"]),"raster-fade-duration":new go(It.paint_raster["raster-fade-duration"])})},ku=function(t){function e(e){t.call(this,e,Su)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Eo),Tu=function(t){function e(e){t.call(this,e,{}),this.implementation=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.is3D=function(){return"3d"===this.implementation.renderingMode},e.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},e.prototype.recalculate=function(){},e.prototype.updateTransitions=function(){},e.prototype.hasTransition=function(){},e.prototype.serialize=function(){},e.prototype.onAdd=function(t){this.implementation.onAdd&&this.implementation.onAdd(t,t.painter.context.gl)},e.prototype.onRemove=function(t){this.implementation.onRemove&&this.implementation.onRemove(t,t.painter.context.gl)},e}(Eo),Cu={circle:fa,heatmap:wa,hillshade:Sa,fill:cs,"fill-extrusion":Cs,line:Ns,symbol:xu,background:Eu,raster:ku},Pu=a.HTMLImageElement,Iu=a.HTMLCanvasElement,Ou=a.HTMLVideoElement,Au=a.ImageData,zu=a.ImageBitmap,Mu=function(t,e,n,r){this.context=t,this.format=n,this.texture=t.gl.createTexture(),this.update(e,r)};Mu.prototype.update=function(t,e,n){var r=t.width,o=t.height,i=!(this.size&&this.size[0]===r&&this.size[1]===o||n),a=this.context,s=a.gl;if(this.useMipmap=Boolean(e&&e.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),a.pixelStoreUnpackFlipY.set(!1),a.pixelStoreUnpack.set(1),a.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&&(!e||!1!==e.premultiply)),i)this.size=[r,o],t instanceof Pu||t instanceof Iu||t instanceof Ou||t instanceof Au||zu&&t instanceof zu?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,t):s.texImage2D(s.TEXTURE_2D,0,this.format,r,o,0,this.format,s.UNSIGNED_BYTE,t.data);else{var l=n||{x:0,y:0},u=l.x,c=l.y;t instanceof Pu||t instanceof Iu||t instanceof Ou||t instanceof Au||zu&&t instanceof zu?s.texSubImage2D(s.TEXTURE_2D,0,u,c,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,u,c,r,o,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&&this.isSizePowerOfTwo()&&s.generateMipmap(s.TEXTURE_2D)},Mu.prototype.bind=function(t,e,n){var r=this.context.gl;r.bindTexture(r.TEXTURE_2D,this.texture),n!==r.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(n=r.LINEAR),t!==this.filter&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,n||t),this.filter=t),e!==this.wrap&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,e),this.wrap=e)},Mu.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0},Mu.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var Ru=function(t){var e=this;this._callback=t,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){e._triggered=!1,e._callback()})};Ru.prototype.trigger=function(){var t=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){t._triggered=!1,t._callback()}),0))},Ru.prototype.remove=function(){delete this._channel,this._callback=function(){}};var Du=function(t,e,n){this.target=t,this.parent=e,this.mapId=n,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},g(["receive","process"],this),this.invoker=new Ru(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=T()?t:a};function Lu(t,e,n){var r=2*Math.PI*6378137/256/Math.pow(2,n);return[t*r-2*Math.PI*6378137/2,e*r-2*Math.PI*6378137/2]}Du.prototype.send=function(t,e,n,r,o){var i=this;void 0===o&&(o=!1);var a=Math.round(1e18*Math.random()).toString(36).substring(0,10);n&&(this.callbacks[a]=n);var s=I(this.globalScope)?void 0:[];return this.target.postMessage({id:a,type:t,hasCallback:!!n,targetMapId:r,mustQueue:o,sourceMapId:this.mapId,data:Vr(e,s)},s),{cancel:function(){n&&delete i.callbacks[a],i.target.postMessage({id:a,type:"<cancel>",targetMapId:r,sourceMapId:i.mapId})}}},Du.prototype.receive=function(t){var e=t.data,n=e.id;if(n&&(!e.targetMapId||this.mapId===e.targetMapId))if("<cancel>"===e.type){delete this.tasks[n];var r=this.cancelCallbacks[n];delete this.cancelCallbacks[n],r&&r()}else T()||e.mustQueue?(this.tasks[n]=e,this.taskQueue.push(n),this.invoker.trigger()):this.processTask(n,e)},Du.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),e&&this.processTask(t,e)}},Du.prototype.processTask=function(t,e){var n=this;if("<response>"===e.type){var r=this.callbacks[t];delete this.callbacks[t],r&&(e.error?r(qr(e.error)):r(null,qr(e.data)))}else{var o=!1,i=I(this.globalScope)?void 0:[],a=e.hasCallback?function(e,r){o=!0,delete n.cancelCallbacks[t],n.target.postMessage({id:t,type:"<response>",sourceMapId:n.mapId,error:e?Vr(e):null,data:Vr(r,i)},i)}:function(t){o=!0},s=null,l=qr(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,l,a);else if(this.parent.getWorkerSource){var u=e.type.split(".");s=this.parent.getWorkerSource(e.sourceMapId,u[0],l.source)[u[1]](l,a)}else a(new Error("Could not find function "+e.type));!o&&s&&s.cancel&&(this.cancelCallbacks[t]=s.cancel)}},Du.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var ju=function(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};ju.prototype.setNorthEast=function(t){return this._ne=t instanceof Bu?new Bu(t.lng,t.lat):Bu.convert(t),this},ju.prototype.setSouthWest=function(t){return this._sw=t instanceof Bu?new Bu(t.lng,t.lat):Bu.convert(t),this},ju.prototype.extend=function(t){var e,n,r=this._sw,o=this._ne;if(t instanceof Bu)e=t,n=t;else{if(!(t instanceof ju))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(ju.convert(t)):this.extend(Bu.convert(t)):this;if(n=t._ne,!(e=t._sw)||!n)return this}return r||o?(r.lng=Math.min(e.lng,r.lng),r.lat=Math.min(e.lat,r.lat),o.lng=Math.max(n.lng,o.lng),o.lat=Math.max(n.lat,o.lat)):(this._sw=new Bu(e.lng,e.lat),this._ne=new Bu(n.lng,n.lat)),this},ju.prototype.getCenter=function(){return new Bu((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},ju.prototype.getSouthWest=function(){return this._sw},ju.prototype.getNorthEast=function(){return this._ne},ju.prototype.getNorthWest=function(){return new Bu(this.getWest(),this.getNorth())},ju.prototype.getSouthEast=function(){return new Bu(this.getEast(),this.getSouth())},ju.prototype.getWest=function(){return this._sw.lng},ju.prototype.getSouth=function(){return this._sw.lat},ju.prototype.getEast=function(){return this._ne.lng},ju.prototype.getNorth=function(){return this._ne.lat},ju.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},ju.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},ju.prototype.isEmpty=function(){return!(this._sw&&this._ne)},ju.prototype.contains=function(t){var e=Bu.convert(t),n=e.lng,r=e.lat,o=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(o=this._sw.lng>=n&&n>=this._ne.lng),this._sw.lat<=r&&r<=this._ne.lat&&o},ju.convert=function(t){return!t||t instanceof ju?t:new ju(t)};var Bu=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid LngLat object: ("+t+", "+e+")");if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Bu.prototype.wrap=function(){return new Bu(p(this.lng,-180,180),this.lat)},Bu.prototype.toArray=function(){return[this.lng,this.lat]},Bu.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Bu.prototype.distanceTo=function(t){var e=Math.PI/180,n=this.lat*e,r=t.lat*e,o=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(o,1))},Bu.prototype.toBounds=function(t){void 0===t&&(t=0);var e=360*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return new ju(new Bu(this.lng-n,this.lat-e),new Bu(this.lng+n,this.lat+e))},Bu.convert=function(t){if(t instanceof Bu)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new Bu(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new Bu(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")};var Nu=2*Math.PI*6371008.8;function Fu(t){return Nu*Math.cos(t*Math.PI/180)}function Uu(t){return(180+t)/360}function Vu(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function qu(t,e){return t/Fu(e)}function Gu(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}var Wu=function(t,e,n){void 0===n&&(n=0),this.x=+t,this.y=+e,this.z=+n};Wu.fromLngLat=function(t,e){void 0===e&&(e=0);var n=Bu.convert(t);return new Wu(Uu(n.lng),Vu(n.lat),qu(e,n.lat))},Wu.prototype.toLngLat=function(){return new Bu(360*this.x-180,Gu(this.y))},Wu.prototype.toAltitude=function(){return this.z*Fu(Gu(this.y))},Wu.prototype.meterInMercatorCoordinateUnits=function(){return 1/Nu*(t=Gu(this.y),1/Math.cos(t*Math.PI/180));var t};var Zu=function(t,e,n){this.z=t,this.x=e,this.y=n,this.key=$u(0,t,t,e,n)};Zu.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},Zu.prototype.url=function(t,e){var n,r,o,i,a,s=(r=this.y,o=this.z,i=Lu(256*(n=this.x),256*(r=Math.pow(2,o)-r-1),o),a=Lu(256*(n+1),256*(r+1),o),i[0]+","+i[1]+","+a[0]+","+a[1]),l=function(t,e,n){for(var r,o="",i=t;i>0;i--)o+=(e&(r=1<<i-1)?1:0)+(n&r?2:0);return o}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===e?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",l).replace("{bbox-epsg-3857}",s)},Zu.prototype.getTilePoint=function(t){var e=Math.pow(2,this.z);return new o(8192*(t.x*e-this.x),8192*(t.y*e-this.y))},Zu.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var Hu=function(t,e){this.wrap=t,this.canonical=e,this.key=$u(t,e.z,e.z,e.x,e.y)},Xu=function(t,e,n,r,o){this.overscaledZ=t,this.wrap=e,this.canonical=new Zu(n,+r,+o),this.key=$u(e,t,n,r,o)};function $u(t,e,n,r,o){(t*=2)<0&&(t=-1*t-1);var i=1<<n;return(i*i*t+i*o+r).toString(36)+n.toString(36)+e.toString(36)}Xu.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)},Xu.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t>this.canonical.z?new Xu(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Xu(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)},Xu.prototype.calculateScaledKey=function(t,e){var n=this.canonical.z-t;return t>this.canonical.z?$u(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):$u(this.wrap*+e,t,t,this.canonical.x>>n,this.canonical.y>>n)},Xu.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ<this.overscaledZ&&t.canonical.x===this.canonical.x>>e&&t.canonical.y===this.canonical.y>>e},Xu.prototype.children=function(t){if(this.overscaledZ>=t)return[new Xu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,n=2*this.canonical.x,r=2*this.canonical.y;return[new Xu(e,this.wrap,e,n,r),new Xu(e,this.wrap,e,n+1,r),new Xu(e,this.wrap,e,n,r+1),new Xu(e,this.wrap,e,n+1,r+1)]},Xu.prototype.isLessThan=function(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))},Xu.prototype.wrapped=function(){return new Xu(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Xu.prototype.unwrapTo=function(t){return new Xu(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},Xu.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Xu.prototype.toUnwrapped=function(){return new Hu(this.wrap,this.canonical)},Xu.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},Xu.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new Wu(t.x-this.wrap,t.y))},Br("CanonicalTileID",Zu),Br("OverscaledTileID",Xu,{omit:["posMatrix"]});var Ku=function(t,e,n){if(this.uid=t,e.height!==e.width)throw new RangeError("DEM tiles must be square");if(n&&"mapbox"!==n&&"terrarium"!==n)return E('"'+n+'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".');this.stride=e.height;var r=this.dim=e.height-2;this.data=new Uint32Array(e.data.buffer),this.encoding=n||"mapbox";for(var o=0;o<r;o++)this.data[this._idx(-1,o)]=this.data[this._idx(0,o)],this.data[this._idx(r,o)]=this.data[this._idx(r-1,o)],this.data[this._idx(o,-1)]=this.data[this._idx(o,0)],this.data[this._idx(o,r)]=this.data[this._idx(o,r-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(r,-1)]=this.data[this._idx(r-1,0)],this.data[this._idx(-1,r)]=this.data[this._idx(0,r-1)],this.data[this._idx(r,r)]=this.data[this._idx(r-1,r-1)]};Ku.prototype.get=function(t,e){var n=new Uint8Array(this.data.buffer),r=4*this._idx(t,e);return("terrarium"===this.encoding?this._unpackTerrarium:this._unpackMapbox)(n[r],n[r+1],n[r+2])},Ku.prototype.getUnpackVector=function(){return"terrarium"===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},Ku.prototype._idx=function(t,e){if(t<-1||t>=this.dim+1||e<-1||e>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(e+1)*this.stride+(t+1)},Ku.prototype._unpackMapbox=function(t,e,n){return(256*t*256+256*e+n)/10-1e4},Ku.prototype._unpackTerrarium=function(t,e,n){return 256*t+e+n/256-32768},Ku.prototype.getPixels=function(){return new _a({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Ku.prototype.backfillBorder=function(t,e,n){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");var r=e*this.dim,o=e*this.dim+this.dim,i=n*this.dim,a=n*this.dim+this.dim;switch(e){case-1:r=o-1;break;case 1:o=r+1}switch(n){case-1:i=a-1;break;case 1:a=i+1}for(var s=-e*this.dim,l=-n*this.dim,u=i;u<a;u++)for(var c=r;c<o;c++)this.data[this._idx(c,u)]=t.data[this._idx(c+s,u+l)]},Br("DEMData",Ku);var Yu=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e<t.length;e++){var n=t[e];this._stringToNumber[n]=e,this._numberToString[e]=n}};Yu.prototype.encode=function(t){return this._stringToNumber[t]},Yu.prototype.decode=function(t){return this._numberToString[t]};var Ju=function(t,e,n,r,o){this.type="Feature",this._vectorTileFeature=t,t._z=e,t._x=n,t._y=r,this.properties=t.properties,this.id=o},Qu={geometry:{configurable:!0}};Qu.geometry.get=function(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Qu.geometry.set=function(t){this._geometry=t},Ju.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)"_geometry"!==e&&"_vectorTileFeature"!==e&&(t[e]=this[e]);return t},Object.defineProperties(Ju.prototype,Qu);var tc=function(){this.state={},this.stateChanges={},this.deletedStates={}};tc.prototype.updateState=function(t,e,n){var r=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][r]=this.stateChanges[t][r]||{},f(this.stateChanges[t][r],n),null===this.deletedStates[t])for(var o in this.deletedStates[t]={},this.state[t])o!==r&&(this.deletedStates[t][o]=null);else if(this.deletedStates[t]&&null===this.deletedStates[t][r])for(var i in this.deletedStates[t][r]={},this.state[t][r])n[i]||(this.deletedStates[t][r][i]=null);else for(var a in n)this.deletedStates[t]&&this.deletedStates[t][r]&&null===this.deletedStates[t][r][a]&&delete this.deletedStates[t][r][a]},tc.prototype.removeFeatureState=function(t,e,n){if(null!==this.deletedStates[t]){var r=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},n&&void 0!==e)null!==this.deletedStates[t][r]&&(this.deletedStates[t][r]=this.deletedStates[t][r]||{},this.deletedStates[t][r][n]=null);else if(void 0!==e)if(this.stateChanges[t]&&this.stateChanges[t][r])for(n in this.deletedStates[t][r]={},this.stateChanges[t][r])this.deletedStates[t][r][n]=null;else this.deletedStates[t][r]=null;else this.deletedStates[t]=null}},tc.prototype.getState=function(t,e){var n=String(e),r=f({},(this.state[t]||{})[n],(this.stateChanges[t]||{})[n]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var o=this.deletedStates[t][e];if(null===o)return{};for(var i in o)delete r[i]}return r},tc.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},tc.prototype.coalesceChanges=function(t,e){var n={};for(var r in this.stateChanges){this.state[r]=this.state[r]||{};var o={};for(var i in this.stateChanges[r])this.state[r][i]||(this.state[r][i]={}),f(this.state[r][i],this.stateChanges[r][i]),o[i]=this.state[r][i];n[r]=o}for(var a in this.deletedStates){this.state[a]=this.state[a]||{};var s={};if(null===this.deletedStates[a])for(var l in this.state[a])s[l]={},this.state[a][l]={};else for(var u in this.deletedStates[a]){if(null===this.deletedStates[a][u])this.state[a][u]={};else for(var c=0,p=Object.keys(this.deletedStates[a][u]);c<p.length;c+=1)delete this.state[a][u][p[c]];s[u]=this.state[a][u]}n[a]=n[a]||{},f(n[a],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(var h in t)t[h].setFeatureState(n,e)};var ec=function(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new Mr(8192,16,0),this.grid3D=new Mr(8192,16,0),this.featureIndexArray=new ai,this.promoteId=e};function nc(t,e,n,r,o){return _(t,(function(t,i){var a=e instanceof yo?e.get(i):null;return a&&a.evaluate?a.evaluate(n,r,o):a}))}function rc(t){for(var e=1/0,n=1/0,r=-1/0,o=-1/0,i=0,a=t;i<a.length;i+=1){var s=a[i];e=Math.min(e,s.x),n=Math.min(n,s.y),r=Math.max(r,s.x),o=Math.max(o,s.y)}return{minX:e,minY:n,maxX:r,maxY:o}}function oc(t,e){return e-t}ec.prototype.insert=function(t,e,n,r,o,i){var a=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,o);for(var s=i?this.grid3D:this.grid,l=0;l<e.length;l++){for(var u=e[l],c=[1/0,1/0,-1/0,-1/0],p=0;p<u.length;p++){var f=u[p];c[0]=Math.min(c[0],f.x),c[1]=Math.min(c[1],f.y),c[2]=Math.max(c[2],f.x),c[3]=Math.max(c[3],f.y)}c[0]<8192&&c[1]<8192&&c[2]>=0&&c[3]>=0&&s.insert(a,c[0],c[1],c[2],c[3])}},ec.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new bs.VectorTile(new Ks(this.rawTileData)).layers,this.sourceLayerCoder=new Yu(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},ec.prototype.query=function(t,e,n,r){var i=this;this.loadVTLayers();for(var a=t.params||{},s=8192/t.tileSize/t.scale,l=ar(a.filter),u=t.queryGeometry,c=t.queryPadding*s,p=rc(u),f=this.grid.query(p.minX-c,p.minY-c,p.maxX+c,p.maxY+c),h=rc(t.cameraQueryGeometry),d=0,m=this.grid3D.query(h.minX-c,h.minY-c,h.maxX+c,h.maxY+c,(function(e,n,r,i){return function(t,e,n,r,i){for(var a=0,s=t;a<s.length;a+=1){var l=s[a];if(e<=l.x&&n<=l.y&&r>=l.x&&i>=l.y)return!0}var u=[new o(e,n),new o(e,i),new o(r,i),new o(r,n)];if(t.length>2)for(var c=0,p=u;c<p.length;c+=1)if(Qi(t,p[c]))return!0;for(var f=0;f<t.length-1;f++)if(ta(t[f],t[f+1],u))return!0;return!1}(t.cameraQueryGeometry,e-c,n-c,r+c,i+c)}));d<m.length;d+=1)f.push(m[d]);f.sort(oc);for(var y,g={},v=function(o){var c=f[o];if(c!==y){y=c;var p=i.featureIndexArray.get(c),h=null;i.loadMatchingFeature(g,p.bucketIndex,p.sourceLayerIndex,p.featureIndex,l,a.layers,a.availableImages,e,n,r,(function(e,n,r){return h||(h=Fi(e)),n.queryIntersectsFeature(u,e,r,h,i.z,t.transform,s,t.pixelPosMatrix)}))}},_=0;_<f.length;_++)v(_);return g},ec.prototype.loadMatchingFeature=function(t,e,n,r,o,i,a,s,l,u,c){var p=this.bucketLayerIDs[e];if(!i||function(t,e){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])>=0)return!0;return!1}(i,p)){var h=this.sourceLayerCoder.decode(n),d=this.vtLayers[h].feature(r);if(o.needGeometry){var m=Ui(d,!0);if(!o.filter(new so(this.tileID.overscaledZ),m,this.tileID.canonical))return}else if(!o.filter(new so(this.tileID.overscaledZ),d))return;for(var y=this.getId(d,h),g=0;g<p.length;g++){var v=p[g];if(!(i&&i.indexOf(v)<0)){var _=s[v];if(_){var b={};void 0!==y&&u&&(b=u.getState(_.sourceLayer||"_geojsonTileLayer",y));var x=f({},l[v]);x.paint=nc(x.paint,_.paint,d,b,a),x.layout=nc(x.layout,_.layout,d,b,a);var w=!c||c(d,_,b);if(w){var E=new Ju(d,this.z,this.x,this.y,y);E.layer=x;var S=t[v];void 0===S&&(S=t[v]=[]),S.push({featureIndex:r,feature:E,intersectionZ:w})}}}}}},ec.prototype.lookupSymbolFeatures=function(t,e,n,r,o,i,a,s){var l={};this.loadVTLayers();for(var u=ar(o),c=0,p=t;c<p.length;c+=1)this.loadMatchingFeature(l,n,r,p[c],u,i,a,s,e);return l},ec.prototype.hasLayer=function(t){for(var e=0,n=this.bucketLayerIDs;e<n.length;e+=1)for(var r=0,o=n[e];r<o.length;r+=1)if(t===o[r])return!0;return!1},ec.prototype.getId=function(t,e){var n=t.id;return this.promoteId&&"boolean"==typeof(n=t.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[e]])&&(n=Number(n)),n},Br("FeatureIndex",ec,{omit:["rawTileData","sourceLayerCoder"]});var ic=function(t,e){this.tileID=t,this.uid=d(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state="loading"};ic.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e<B.now()||this.fadeEndTime&&e<this.fadeEndTime||(this.fadeEndTime=e)},ic.prototype.wasRequested=function(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state},ic.prototype.loadVectorData=function(t,e,n){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",t){for(var r in t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){var n={};if(!e)return n;for(var r=function(){var t=i[o],r=t.layerIds.map((function(t){return e.getLayer(t)})).filter(Boolean);if(0!==r.length){t.layers=r,t.stateDependentLayerIds&&(t.stateDependentLayers=t.stateDependentLayerIds.map((function(t){return r.filter((function(e){return e.id===t}))[0]})));for(var a=0,s=r;a<s.length;a+=1)n[s[a].id]=t}},o=0,i=t;o<i.length;o+=1)r();return n}(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var o=this.buckets[r];if(o instanceof gu){if(this.hasSymbolBuckets=!0,!n)break;o.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var i in this.buckets){var a=this.buckets[i];if(a instanceof gu&&a.hasRTLText){this.hasRTLText=!0,ao.isLoading()||ao.isLoaded()||"deferred"!==oo()||io();break}}for(var s in this.queryPadding=0,this.buckets){var l=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(s).queryRadius(l))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new Jo},ic.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"},ic.prototype.getBucket=function(t){return this.buckets[t.id]},ic.prototype.upload=function(t){for(var e in this.buckets){var n=this.buckets[e];n.uploadPending()&&n.upload(t)}var r=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Mu(t,this.imageAtlas.image,r.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Mu(t,this.glyphAtlasImage,r.ALPHA),this.glyphAtlasImage=null)},ic.prototype.prepare=function(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)},ic.prototype.queryRenderedFeatures=function(t,e,n,r,o,i,a,s,l,u){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:r,cameraQueryGeometry:o,scale:i,tileSize:this.tileSize,pixelPosMatrix:u,transform:s,params:a,queryPadding:this.queryPadding*l},t,e,n):{}},ic.prototype.querySourceFeatures=function(t,e){var n=this.latestFeatureIndex;if(n&&n.rawTileData){var r=n.loadVTLayers(),o=e?e.sourceLayer:"",i=r._geojsonTileLayer||r[o];if(i)for(var a=ar(e&&e.filter),s=this.tileID.canonical,l=s.z,u=s.x,c=s.y,p={z:l,x:u,y:c},f=0;f<i.length;f++){var h=i.feature(f);if(a.needGeometry){var d=Ui(h,!0);if(!a.filter(new so(this.tileID.overscaledZ),d,this.tileID.canonical))continue}else if(!a.filter(new so(this.tileID.overscaledZ),h))continue;var m=n.getId(h,o),y=new Ju(h,l,u,c,m);y.tile=p,t.push(y)}}},ic.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},ic.prototype.patternsLoaded=function(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length},ic.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var n=C(t.cacheControl);n["max-age"]&&(this.expirationTime=Date.now()+1e3*n["max-age"])}else t.expires&&(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var r=Date.now(),o=!1;if(this.expirationTime>r)o=!1;else if(e)if(this.expirationTime<e)o=!0;else{var i=this.expirationTime-e;i?this.expirationTime=r+Math.max(i,3e4):o=!0}else o=!0;o?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}},ic.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},ic.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData&&0!==Object.keys(t).length){var n=this.latestFeatureIndex.loadVTLayers();for(var r in this.buckets)if(e.style.hasLayer(r)){var o=this.buckets[r],i=o.layers[0].sourceLayer||"_geojsonTileLayer",a=n[i],s=t[i];if(a&&s&&0!==Object.keys(s).length){o.update(s,a,this.imageAtlas&&this.imageAtlas.patternPositions||{});var l=e&&e.style&&e.style.getLayer(r);l&&(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(o)))}}}},ic.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},ic.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<B.now()},ic.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},ic.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=B.now()+t},ic.prototype.setDependencies=function(t,e){for(var n={},r=0,o=e;r<o.length;r+=1)n[o[r]]=!0;this.dependencies[t]=n},ic.prototype.hasDependency=function(t,e){for(var n=0,r=t;n<r.length;n+=1){var o=this.dependencies[r[n]];if(o)for(var i=0,a=e;i<a.length;i+=1)if(o[a[i]])return!0}return!1};var ac=a.performance,sc=function(t){this._marks={start:[t.url,"start"].join("#"),end:[t.url,"end"].join("#"),measure:t.url.toString()},ac.mark(this._marks.start)};sc.prototype.finish=function(){ac.mark(this._marks.end);var t=ac.getEntriesByName(this._marks.measure);return 0===t.length&&(ac.measure(this._marks.measure,this._marks.start,this._marks.end),t=ac.getEntriesByName(this._marks.measure),ac.clearMarks(this._marks.start),ac.clearMarks(this._marks.end),ac.clearMeasures(this._marks.measure)),t},t.Actor=Du,t.AlphaImage=va,t.CanonicalTileID=Zu,t.CollisionBoxArray=Jo,t.Color=te,t.DEMData=Ku,t.DataConstantProperty=go,t.DictionaryCoder=Yu,t.EXTENT=8192,t.ErrorEvent=Ct,t.EvaluationParameters=so,t.Event=Tt,t.Evented=Pt,t.FeatureIndex=ec,t.FillBucket=ss,t.FillExtrusionBucket=Ss,t.ImageAtlas=bl,t.ImagePosition=vl,t.LineBucket=Ds,t.LngLat=Bu,t.LngLatBounds=ju,t.MercatorCoordinate=Wu,t.ONE_EM=24,t.OverscaledTileID=Xu,t.Point=o,t.Point$1=o,t.Properties=wo,t.Protobuf=Ks,t.RGBAImage=_a,t.RequestManager=W,t.RequestPerformance=sc,t.ResourceType=dt,t.SegmentVector=li,t.SourceFeatureState=tc,t.StructArrayLayout1ui2=$o,t.StructArrayLayout2f1f2i16=Fo,t.StructArrayLayout2i4=Io,t.StructArrayLayout3ui6=Vo,t.StructArrayLayout4i8=Oo,t.SymbolBucket=gu,t.Texture=Mu,t.Tile=ic,t.Transitionable=co,t.Uniform1f=xi,t.Uniform1i=bi,t.Uniform2f=wi,t.Uniform3f=Ei,t.Uniform4f=Si,t.UniformColor=ki,t.UniformMatrix4f=Ci,t.UnwrappedTileID=Hu,t.ValidationError=Ot,t.WritingMode=xl,t.ZoomHistory=Gr,t.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},t.addDynamicAttributes=hu,t.asyncAll=function(t,e,n){if(!t.length)return n(null,[]);var r=t.length,o=new Array(t.length),i=null;t.forEach((function(t,a){e(t,(function(t,e){t&&(i=t),o[a]=e,0==--r&&n(i,o)}))}))},t.bezier=l,t.bindAll=g,t.browser=B,t.cacheEntryPossiblyAdded=function(t){++ft>lt&&(t.getActor().send("enforceCacheSizeLimit",st),ft=0)},t.clamp=c,t.clearTileCache=function(t){var e=a.caches.delete("mapbox-tiles");t&&e.catch(t).then((function(){return t()}))},t.clipLine=Zl,t.clone=function(t){var e=new aa(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=x,t.clone$2=function(t){var e=new aa(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=Ws,t.config=N,t.create=function(){var t=new aa(16);return aa!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new aa(9);return aa!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new aa(4);return aa!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=Hn,t.createLayout=Co,t.createStyleLayer=function(t){return"custom"===t.type?new Tu(t):new Cu[t.type](t)},t.cross=function(t,e,n){var r=e[0],o=e[1],i=e[2],a=n[0],s=n[1],l=n[2];return t[0]=o*l-i*s,t[1]=i*a-r*l,t[2]=r*s-o*a,t},t.deepEqual=function t(e,n){if(Array.isArray(e)){if(!Array.isArray(n)||e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(!t(e[r],n[r]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==n){if("object"!=typeof n)return!1;if(Object.keys(e).length!==Object.keys(n).length)return!1;for(var o in e)if(!t(e[o],n[o]))return!1;return!0}return e===n},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},t.dot$1=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},t.ease=u,t.emitValidationErrors=zr,t.endsWith=v,t.enforceCacheSizeLimit=function(t){ut(),tt&&tt.then((function(e){e.keys().then((function(n){for(var r=0;r<n.length-t;r++)e.delete(n[r])}))}))},t.evaluateSizeForFeature=jl,t.evaluateSizeForZoom=Bl,t.evaluateVariableOffset=iu,t.evented=ro,t.extend=f,t.featureFilter=ar,t.filterObject=b,t.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.getAnchorAlignment=zl,t.getAnchorJustification=au,t.getArrayBuffer=bt,t.getImage=Et,t.getJSON=function(t,e){return _t(f(t,{type:"json"}),e)},t.getRTLTextPluginStatus=oo,t.getReferrer=vt,t.getVideo=function(t,e){var n,r,o=a.document.createElement("video");o.muted=!0,o.onloadstart=function(){e(null,o)};for(var i=0;i<t.length;i++){var s=a.document.createElement("source");n=t[i],r=void 0,(r=a.document.createElement("a")).href=n,(r.protocol!==a.document.location.protocol||r.host!==a.document.location.host)&&(o.crossOrigin="Anonymous"),s.src=t[i],o.appendChild(s)}return{cancel:function(){}}},t.identity=sa,t.invert=function(t,e){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],p=e[9],f=e[10],h=e[11],d=e[12],m=e[13],y=e[14],g=e[15],v=n*s-r*a,_=n*l-o*a,b=n*u-i*a,x=r*l-o*s,w=r*u-i*s,E=o*u-i*l,S=c*m-p*d,k=c*y-f*d,T=c*g-h*d,C=p*y-f*m,P=p*g-h*m,I=f*g-h*y,O=v*I-_*P+b*C+x*T-w*k+E*S;return O?(t[0]=(s*I-l*P+u*C)*(O=1/O),t[1]=(o*P-r*I-i*C)*O,t[2]=(m*E-y*w+g*x)*O,t[3]=(f*w-p*E-h*x)*O,t[4]=(l*T-a*I-u*k)*O,t[5]=(n*I-o*T+i*k)*O,t[6]=(y*b-d*E-g*_)*O,t[7]=(c*E-f*b+h*_)*O,t[8]=(a*P-s*T+u*S)*O,t[9]=(r*T-n*P-i*S)*O,t[10]=(d*w-m*b+g*v)*O,t[11]=(p*b-c*w-h*v)*O,t[12]=(s*k-a*C-l*S)*O,t[13]=(n*C-r*k+o*S)*O,t[14]=(m*_-d*x-y*v)*O,t[15]=(c*x-p*_+f*v)*O,t):null},t.isChar=Wr,t.isMapboxURL=Z,t.keysDifference=function(t,e){var n=[];for(var r in t)r in e||n.push(r);return n},t.makeRequest=_t,t.mapObject=_,t.mercatorXfromLng=Uu,t.mercatorYfromLat=Vu,t.mercatorZfromAltitude=qu,t.mul=ca,t.multiply=la,t.mvt=bs,t.nextPowerOfTwo=function(t){return t<=1?1:Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},t.normalize=function(t,e){var n=e[0],r=e[1],o=e[2],i=n*n+r*r+o*o;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t},t.number=Ge,t.offscreenCanvasSupported=ht,t.ortho=function(t,e,n,r,o,i,a){var s=1/(e-n),l=1/(r-o),u=1/(i-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(o+r)*l,t[14]=(a+i)*u,t[15]=1,t},t.parseGlyphPBF=function(t){return new Ks(t).readFields(dl,[])},t.pbf=Ks,t.performSymbolLayout=function(t,e,n,r,o,i,a){t.createArrays(),t.tilePixelRatio=8192/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;var s=t.layers[0].layout,l=t.layers[0]._unevaluatedLayout._values,u={};if("composite"===t.textSizeData.kind){var c=t.textSizeData,p=c.maxZoom;u.compositeTextSizes=[l["text-size"].possiblyEvaluate(new so(c.minZoom),a),l["text-size"].possiblyEvaluate(new so(p),a)]}if("composite"===t.iconSizeData.kind){var f=t.iconSizeData,h=f.maxZoom;u.compositeIconSizes=[l["icon-size"].possiblyEvaluate(new so(f.minZoom),a),l["icon-size"].possiblyEvaluate(new so(h),a)]}u.layoutTextSize=l["text-size"].possiblyEvaluate(new so(t.zoom+1),a),u.layoutIconSize=l["icon-size"].possiblyEvaluate(new so(t.zoom+1),a),u.textMaxSize=l["text-size"].possiblyEvaluate(new so(18));for(var d=24*s.get("text-line-height"),m="map"===s.get("text-rotation-alignment")&&"point"!==s.get("symbol-placement"),y=s.get("text-keep-upright"),g=s.get("text-size"),v=function(){var i=b[_],l=s.get("text-font").evaluate(i,{},a).join(","),c=g.evaluate(i,{},a),p=u.layoutTextSize.evaluate(i,{},a),f=u.layoutIconSize.evaluate(i,{},a),h={horizontal:{},vertical:void 0},v=i.text,x=[0,0];if(v){var w=v.toString(),S=24*s.get("text-letter-spacing").evaluate(i,{},a),k=function(t){for(var e=0,n=t;e<n.length;e+=1)if(r=n[e].charCodeAt(0),Wr.Arabic(r)||Wr["Arabic Supplement"](r)||Wr["Arabic Extended-A"](r)||Wr["Arabic Presentation Forms-A"](r)||Wr["Arabic Presentation Forms-B"](r))return!1;var r;return!0}(w)?S:0,T=s.get("text-anchor").evaluate(i,{},a),C=s.get("text-variable-anchor");if(!C){var P=s.get("text-radial-offset").evaluate(i,{},a);x=P?iu(T,[24*P,ou]):s.get("text-offset").evaluate(i,{},a).map((function(t){return 24*t}))}var I=m?"center":s.get("text-justify").evaluate(i,{},a),O=s.get("symbol-placement"),A="point"===O?24*s.get("text-max-width").evaluate(i,{},a):0,z=function(){t.allowVerticalPlacement&&Zr(w)&&(h.vertical=Sl(v,e,n,o,l,A,d,T,"left",k,x,xl.vertical,!0,O,p,c))};if(!m&&C){for(var M="auto"===I?C.map((function(t){return au(t)})):[I],R=!1,D=0;D<M.length;D++){var L=M[D];if(!h.horizontal[L])if(R)h.horizontal[L]=h.horizontal[0];else{var j=Sl(v,e,n,o,l,A,d,"center",L,k,x,xl.horizontal,!1,O,p,c);j&&(h.horizontal[L]=j,R=1===j.positionedLines.length)}}z()}else{"auto"===I&&(I=au(T));var B=Sl(v,e,n,o,l,A,d,T,I,k,x,xl.horizontal,!1,O,p,c);B&&(h.horizontal[I]=B),z(),Zr(w)&&m&&y&&(h.vertical=Sl(v,e,n,o,l,A,d,T,I,k,x,xl.vertical,!1,O,p,c))}}var N=void 0,F=!1;if(i.icon&&i.icon.name){var U=r[i.icon.name];U&&(N=function(t,e,n){var r=zl(n),o=e[0]-t.displaySize[0]*r.horizontalAlign,i=e[1]-t.displaySize[1]*r.verticalAlign;return{image:t,top:i,bottom:i+t.displaySize[1],left:o,right:o+t.displaySize[0]}}(o[i.icon.name],s.get("icon-offset").evaluate(i,{},a),s.get("icon-anchor").evaluate(i,{},a)),F=U.sdf,void 0===t.sdfIcons?t.sdfIcons=U.sdf:t.sdfIcons!==U.sdf&&E("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(U.pixelRatio!==t.pixelRatio||0!==s.get("icon-rotate").constantOr(1))&&(t.iconsNeedLinear=!0))}var V=lu(h.horizontal)||h.vertical;t.iconsInText=!!V&&V.iconsInText,(V||N)&&function(t,e,n,r,o,i,a,s,l,u,c){var p=i.textMaxSize.evaluate(e,{});void 0===p&&(p=a);var f,h=t.layers[0].layout,d=h.get("icon-offset").evaluate(e,{},c),m=lu(n.horizontal),y=a/24,g=t.tilePixelRatio*y,v=t.tilePixelRatio*p/24,_=t.tilePixelRatio*s,b=t.tilePixelRatio*h.get("symbol-spacing"),x=h.get("text-padding")*t.tilePixelRatio,w=h.get("icon-padding")*t.tilePixelRatio,S=h.get("text-max-angle")/180*Math.PI,k="map"===h.get("text-rotation-alignment")&&"point"!==h.get("symbol-placement"),T="map"===h.get("icon-rotation-alignment")&&"point"!==h.get("symbol-placement"),C=h.get("symbol-placement"),P=b/2,I=h.get("icon-text-fit");r&&"none"!==I&&(t.allowVerticalPlacement&&n.vertical&&(f=Rl(r,n.vertical,I,h.get("icon-text-fit-padding"),d,y)),m&&(r=Rl(r,m,I,h.get("icon-text-fit-padding"),d,y)));var O=function(s,p){p.x<0||p.x>=8192||p.y<0||p.y>=8192||function(t,e,n,r,o,i,a,s,l,u,c,p,f,h,d,m,y,g,v,_,b,x,w,S,k){var T,C,P,I,O,A=t.addToLineVertexArray(e,n),z=0,M=0,R=0,D=0,L=-1,j=-1,B={},N=hi(""),F=0,U=0;if(void 0===s._unevaluatedLayout.getValue("text-radial-offset")?(F=(T=s.layout.get("text-offset").evaluate(b,{},S).map((function(t){return 24*t})))[0],U=T[1]):(F=24*s.layout.get("text-radial-offset").evaluate(b,{},S),U=ou),t.allowVerticalPlacement&&r.vertical){var V=s.layout.get("text-rotate").evaluate(b,{},S)+90;I=new Jl(l,e,u,c,p,r.vertical,f,h,d,V),a&&(O=new Jl(l,e,u,c,p,a,y,g,d,V))}if(o){var q=s.layout.get("icon-rotate").evaluate(b,{}),G="none"!==s.layout.get("icon-text-fit"),W=Hl(o,q,w,G),Z=a?Hl(a,q,w,G):void 0;P=new Jl(l,e,u,c,p,o,y,g,!1,q),z=4*W.length;var H=t.iconSizeData,X=null;"source"===H.kind?(X=[128*s.layout.get("icon-size").evaluate(b,{})])[0]>32640&&E(t.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):"composite"===H.kind&&((X=[128*x.compositeIconSizes[0].evaluate(b,{},S),128*x.compositeIconSizes[1].evaluate(b,{},S)])[0]>32640||X[1]>32640)&&E(t.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),t.addSymbols(t.icon,W,X,_,v,b,!1,e,A.lineStartIndex,A.lineLength,-1,S),L=t.icon.placedSymbolArray.length-1,Z&&(M=4*Z.length,t.addSymbols(t.icon,Z,X,_,v,b,xl.vertical,e,A.lineStartIndex,A.lineLength,-1,S),j=t.icon.placedSymbolArray.length-1)}for(var $ in r.horizontal){var K=r.horizontal[$];if(!C){N=hi(K.text);var Y=s.layout.get("text-rotate").evaluate(b,{},S);C=new Jl(l,e,u,c,p,K,f,h,d,Y)}var J=1===K.positionedLines.length;if(R+=su(t,e,K,i,s,d,b,m,A,r.vertical?xl.horizontal:xl.horizontalOnly,J?Object.keys(r.horizontal):[$],B,L,x,S),J)break}r.vertical&&(D+=su(t,e,r.vertical,i,s,d,b,m,A,xl.vertical,["vertical"],B,j,x,S));var Q=C?C.boxStartIndex:t.collisionBoxArray.length,tt=C?C.boxEndIndex:t.collisionBoxArray.length,et=I?I.boxStartIndex:t.collisionBoxArray.length,nt=I?I.boxEndIndex:t.collisionBoxArray.length,rt=P?P.boxStartIndex:t.collisionBoxArray.length,ot=P?P.boxEndIndex:t.collisionBoxArray.length,it=O?O.boxStartIndex:t.collisionBoxArray.length,at=O?O.boxEndIndex:t.collisionBoxArray.length,st=-1,lt=function(t,e){return t&&t.circleDiameter?Math.max(t.circleDiameter,e):e};st=lt(C,st),st=lt(I,st),st=lt(P,st);var ut=(st=lt(O,st))>-1?1:0;ut&&(st*=k/24),t.glyphOffsetArray.length>=gu.MAX_GLYPHS&&E("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==b.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,B.right>=0?B.right:-1,B.center>=0?B.center:-1,B.left>=0?B.left:-1,B.vertical||-1,L,j,N,Q,tt,et,nt,rt,ot,it,at,u,R,D,z,M,ut,0,f,F,U,st)}(t,p,s,n,r,o,f,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,g,x,k,l,_,w,T,d,e,i,u,c,a)};if("line"===C)for(var A=0,z=Zl(e.geometry,0,0,8192,8192);A<z.length;A+=1)for(var M=z[A],R=0,D=Wl(M,b,S,n.vertical||m,r,24,v,t.overscaling,8192);R<D.length;R+=1){var L=D[R];m&&uu(t,m.text,P,L)||O(M,L)}else if("line-center"===C)for(var j=0,B=e.geometry;j<B.length;j+=1){var N=B[j];if(N.length>1){var F=Gl(N,S,n.vertical||m,r,24,v);F&&O(N,F)}}else if("Polygon"===e.type)for(var U=0,V=rs(e.geometry,0);U<V.length;U+=1){var q=V[U],G=eu(q,16);O(q[0],new Dl(G.x,G.y,0))}else if("LineString"===e.type)for(var W=0,Z=e.geometry;W<Z.length;W+=1){var H=Z[W];O(H,new Dl(H[0].x,H[0].y,0))}else if("Point"===e.type)for(var X=0,$=e.geometry;X<$.length;X+=1)for(var K=0,Y=$[X];K<Y.length;K+=1){var J=Y[K];O([J],new Dl(J.x,J.y,0))}}(t,i,h,N,r,u,p,f,x,F,a)},_=0,b=t.features;_<b.length;_+=1)v();i&&t.generateCollisionDebugBuffers()},t.perspective=function(t,e,n,r,o){var i,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(t[10]=(o+r)*(i=1/(r-o)),t[14]=2*o*r*i):(t[10]=-1,t[14]=-2*r),t},t.pick=function(t,e){for(var n={},r=0;r<e.length;r++){var o=e[r];o in t&&(n[o]=t[o])}return n},t.plugin=ao,t.polygonIntersectsPolygon=Gi,t.postMapLoadEvent=at,t.postTurnstileEvent=ot,t.potpack=gl,t.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],t.register=Br,t.registerForPluginStateChange=function(t){return t({pluginStatus:Qr,pluginURL:to}),ro.on("pluginStateChange",t),t},t.renderColorRamp=xa,t.rotate=function(t,e,n){var r=e[0],o=e[1],i=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+i*s,t[1]=o*l+a*s,t[2]=r*-s+i*l,t[3]=o*-s+a*l,t},t.rotateX=function(t,e,n){var r=Math.sin(n),o=Math.cos(n),i=e[4],a=e[5],s=e[6],l=e[7],u=e[8],c=e[9],p=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=i*o+u*r,t[5]=a*o+c*r,t[6]=s*o+p*r,t[7]=l*o+f*r,t[8]=u*o-i*r,t[9]=c*o-a*r,t[10]=p*o-s*r,t[11]=f*o-l*r,t},t.rotateZ=function(t,e,n){var r=Math.sin(n),o=Math.cos(n),i=e[0],a=e[1],s=e[2],l=e[3],u=e[4],c=e[5],p=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*o+u*r,t[1]=a*o+c*r,t[2]=s*o+p*r,t[3]=l*o+f*r,t[4]=u*o-i*r,t[5]=c*o-a*r,t[6]=p*o-s*r,t[7]=f*o-l*r,t},t.scale=function(t,e,n){var r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.scale$1=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},t.scale$2=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},t.setCacheLimits=function(t,e){st=t,lt=e},t.setRTLTextPlugin=function(t,e,n){if(void 0===n&&(n=!1),"deferred"===Qr||"loading"===Qr||"loaded"===Qr)throw new Error("setRTLTextPlugin cannot be called multiple times.");to=B.resolveURL(t),Qr="deferred",Jr=e,no(),n||io()},t.sphericalToCartesian=function(t){var e=t[0],n=t[1],r=t[2];return n+=90,n*=Math.PI/180,r*=Math.PI/180,{x:e*Math.cos(n)*Math.sin(r),y:e*Math.sin(n)*Math.sin(r),z:e*Math.cos(r)}},t.sqrLen=function(t){var e=t[0],n=t[1];return e*e+n*n},t.styleSpec=It,t.sub=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t},t.symbolSize=Nl,t.transformMat3=function(t,e,n){var r=e[0],o=e[1],i=e[2];return t[0]=r*n[0]+o*n[3]+i*n[6],t[1]=r*n[1]+o*n[4]+i*n[7],t[2]=r*n[2]+o*n[5]+i*n[8],t},t.transformMat4=pa,t.translate=function(t,e,n){var r,o,i,a,s,l,u,c,p,f,h,d,m=n[0],y=n[1],g=n[2];return e===t?(t[12]=e[0]*m+e[4]*y+e[8]*g+e[12],t[13]=e[1]*m+e[5]*y+e[9]*g+e[13],t[14]=e[2]*m+e[6]*y+e[10]*g+e[14],t[15]=e[3]*m+e[7]*y+e[11]*g+e[15]):(o=e[1],i=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],p=e[8],f=e[9],h=e[10],d=e[11],t[0]=r=e[0],t[1]=o,t[2]=i,t[3]=a,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=p,t[9]=f,t[10]=h,t[11]=d,t[12]=r*m+s*y+p*g+e[12],t[13]=o*m+l*y+f*g+e[13],t[14]=i*m+u*y+h*g+e[14],t[15]=a*m+c*y+d*g+e[15]),t},t.triggerPluginCompletionEvent=eo,t.uniqueId=d,t.validateCustomStyleLayer=function(t){var e=[],n=t.id;return void 0===n&&e.push({message:"layers."+n+': missing required property "id"'}),void 0===t.render&&e.push({message:"layers."+n+': missing required method "render"'}),t.renderingMode&&"2d"!==t.renderingMode&&"3d"!==t.renderingMode&&e.push({message:"layers."+n+': property "renderingMode" must be either "2d" or "3d"'}),e},t.validateLight=Ir,t.validateStyle=Pr,t.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},t.vectorTile=bs,t.version="1.13.0",t.warnOnce=E,t.webpSupported=F,t.window=a,t.wrap=p})),r(0,(function(t){function e(t){var n=typeof t;if("number"===n||"boolean"===n||"string"===n||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var r="[",o=0,i=t;o<i.length;o+=1)r+=e(i[o])+",";return r+"]"}for(var a=Object.keys(t).sort(),s="{",l=0;l<a.length;l++)s+=JSON.stringify(a[l])+":"+e(t[a[l]])+",";return s+"}"}function n(n){for(var r="",o=0,i=t.refProperties;o<i.length;o+=1)r+="/"+e(n[i[o]]);return r}var r=function(t){this.keyCache={},t&&this.replace(t)};r.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},r.prototype.update=function(e,r){for(var o=this,i=0,a=e;i<a.length;i+=1){var s=a[i];this._layerConfigs[s.id]=s;var l=this._layers[s.id]=t.createStyleLayer(s);l._featureFilter=t.featureFilter(l.filter),this.keyCache[s.id]&&delete this.keyCache[s.id]}for(var u=0,c=r;u<c.length;u+=1){var p=c[u];delete this.keyCache[p],delete this._layerConfigs[p],delete this._layers[p]}this.familiesBySource={};for(var f=0,h=function(t,e){for(var r={},o=0;o<t.length;o++){var i=e&&e[t[o].id]||n(t[o]);e&&(e[t[o].id]=i);var a=r[i];a||(a=r[i]=[]),a.push(t[o])}var s=[];for(var l in r)s.push(r[l]);return s}(t.values(this._layerConfigs),this.keyCache);f<h.length;f+=1){var d=h[f].map((function(t){return o._layers[t.id]})),m=d[0];if("none"!==m.visibility){var y=m.source||"",g=this.familiesBySource[y];g||(g=this.familiesBySource[y]={});var v=m.sourceLayer||"_geojsonTileLayer",_=g[v];_||(_=g[v]=[]),_.push(d)}}};var o=function(e){var n={},r=[];for(var o in e){var i=e[o],a=n[o]={};for(var s in i){var l=i[+s];if(l&&0!==l.bitmap.width&&0!==l.bitmap.height){var u={x:0,y:0,w:l.bitmap.width+2,h:l.bitmap.height+2};r.push(u),a[s]={rect:u,metrics:l.metrics}}}}var c=t.potpack(r),p=new t.AlphaImage({width:c.w||1,height:c.h||1});for(var f in e){var h=e[f];for(var d in h){var m=h[+d];if(m&&0!==m.bitmap.width&&0!==m.bitmap.height){var y=n[f][d].rect;t.AlphaImage.copy(m.bitmap,p,{x:0,y:0},{x:y.x+1,y:y.y+1},m.bitmap)}}}this.image=p,this.positions=n};t.register("GlyphAtlas",o);var i=function(e){this.tileID=new t.OverscaledTileID(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId};function a(e,n,r){for(var o=new t.EvaluationParameters(n),i=0,a=e;i<a.length;i+=1)a[i].recalculate(o,r)}function s(e,n){var r=t.getArrayBuffer(e.request,(function(e,r,o,i){e?n(e):r&&n(null,{vectorTile:new t.vectorTile.VectorTile(new t.pbf(r)),rawData:r,cacheControl:o,expires:i})}));return function(){r.cancel(),n()}}i.prototype.parse=function(e,n,r,i,s){var l=this;this.status="parsing",this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var u=new t.DictionaryCoder(Object.keys(e.layers).sort()),c=new t.FeatureIndex(this.tileID,this.promoteId);c.bucketLayerIDs=[];var p,f,h,d,m={},y={featureIndex:c,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:r},g=n.familiesBySource[this.source];for(var v in g){var _=e.layers[v];if(_){1===_.version&&t.warnOnce('Vector tile source "'+this.source+'" layer "'+v+'" does not use vector tile spec v2 and therefore may have some rendering errors.');for(var b=u.encode(v),x=[],w=0;w<_.length;w++){var E=_.feature(w),S=c.getId(E,v);x.push({feature:E,id:S,index:w,sourceLayerIndex:b})}for(var k=0,T=g[v];k<T.length;k+=1){var C=T[k],P=C[0];P.minzoom&&this.zoom<Math.floor(P.minzoom)||P.maxzoom&&this.zoom>=P.maxzoom||"none"!==P.visibility&&(a(C,this.zoom,r),(m[P.id]=P.createBucket({index:c.bucketLayerIDs.length,layers:C,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:b,sourceID:this.source})).populate(x,y,this.tileID.canonical),c.bucketLayerIDs.push(C.map((function(t){return t.id}))))}}}var I=t.mapObject(y.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(I).length?i.send("getGlyphs",{uid:this.uid,stacks:I},(function(t,e){p||(p=t,f=e,z.call(l))})):f={};var O=Object.keys(y.iconDependencies);O.length?i.send("getImages",{icons:O,source:this.source,tileID:this.tileID,type:"icons"},(function(t,e){p||(p=t,h=e,z.call(l))})):h={};var A=Object.keys(y.patternDependencies);function z(){if(p)return s(p);if(f&&h&&d){var e=new o(f),n=new t.ImageAtlas(h,d);for(var i in m){var l=m[i];l instanceof t.SymbolBucket?(a(l.layers,this.zoom,r),t.performSymbolLayout(l,f,e.positions,h,n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):l.hasPattern&&(l instanceof t.LineBucket||l instanceof t.FillBucket||l instanceof t.FillExtrusionBucket)&&(a(l.layers,this.zoom,r),l.addFeatures(y,this.tileID.canonical,n.patternPositions))}this.status="done",s(null,{buckets:t.values(m).filter((function(t){return!t.isEmpty()})),featureIndex:c,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:n,glyphMap:this.returnDependencies?f:null,iconMap:this.returnDependencies?h:null,glyphPositions:this.returnDependencies?e.positions:null})}}A.length?i.send("getImages",{icons:A,source:this.source,tileID:this.tileID,type:"patterns"},(function(t,e){p||(p=t,d=e,z.call(l))})):d={},z.call(this)};var l=function(t,e,n,r){this.actor=t,this.layerIndex=e,this.availableImages=n,this.loadVectorData=r||s,this.loading={},this.loaded={}};l.prototype.loadTile=function(e,n){var r=this,o=e.uid;this.loading||(this.loading={});var a=!!(e&&e.request&&e.request.collectResourceTiming)&&new t.RequestPerformance(e.request),s=this.loading[o]=new i(e);s.abort=this.loadVectorData(e,(function(e,i){if(delete r.loading[o],e||!i)return s.status="done",r.loaded[o]=s,n(e);var l=i.rawData,u={};i.expires&&(u.expires=i.expires),i.cacheControl&&(u.cacheControl=i.cacheControl);var c={};if(a){var p=a.finish();p&&(c.resourceTiming=JSON.parse(JSON.stringify(p)))}s.vectorTile=i.vectorTile,s.parse(i.vectorTile,r.layerIndex,r.availableImages,r.actor,(function(e,r){if(e||!r)return n(e);n(null,t.extend({rawTileData:l.slice(0)},r,u,c))})),r.loaded=r.loaded||{},r.loaded[o]=s}))},l.prototype.reloadTile=function(t,e){var n=this,r=this.loaded,o=t.uid,i=this;if(r&&r[o]){var a=r[o];a.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,r){var o=a.reloadCallback;o&&(delete a.reloadCallback,a.parse(a.vectorTile,i.layerIndex,n.availableImages,i.actor,o)),e(t,r)};"parsing"===a.status?a.reloadCallback=s:"done"===a.status&&(a.vectorTile?a.parse(a.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},l.prototype.abortTile=function(t,e){var n=this.loading,r=t.uid;n&&n[r]&&n[r].abort&&(n[r].abort(),delete n[r]),e()},l.prototype.removeTile=function(t,e){var n=this.loaded,r=t.uid;n&&n[r]&&delete n[r],e()};var u=t.window.ImageBitmap,c=function(){this.loaded={}};function p(t,e){if(0!==t.length){f(t[0],e);for(var n=1;n<t.length;n++)f(t[n],!e)}}function f(t,e){for(var n=0,r=0,o=t.length,i=o-1;r<o;i=r++)n+=(t[r][0]-t[i][0])*(t[i][1]+t[r][1]);n>=0!=!!e&&t.reverse()}c.prototype.loadTile=function(e,n){var r=e.uid,o=e.encoding,i=e.rawImageData,a=u&&i instanceof u?this.getImageData(i):i,s=new t.DEMData(r,a,o);this.loaded=this.loaded||{},this.loaded[r]=s,n(null,s)},c.prototype.getImageData=function(e){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var n=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:n.width,height:n.height},n.data)},c.prototype.removeTile=function(t){var e=this.loaded,n=t.uid;e&&e[n]&&delete e[n]};var h=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,d=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,"id"in e&&!isNaN(e.id)&&(this.id=parseInt(e.id,10))};d.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],n=0,r=this._feature.geometry;n<r.length;n+=1){var o=r[n];e.push([new t.Point$1(o[0],o[1])])}return e}for(var i=[],a=0,s=this._feature.geometry;a<s.length;a+=1){for(var l=[],u=0,c=s[a];u<c.length;u+=1){var p=c[u];l.push(new t.Point$1(p[0],p[1]))}i.push(l)}return i},d.prototype.toGeoJSON=function(t,e,n){return h.call(this,t,e,n)};var m=function(e){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=t.EXTENT,this.length=e.length,this._features=e};m.prototype.feature=function(t){return new d(this._features[t])};var y=t.vectorTile.VectorTileFeature,g=v;function v(t,e){this.options=e||{},this.features=t,this.length=t.length}function _(t,e){this.id="number"==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}v.prototype.feature=function(t){return new _(this.features[t],this.options.extent)},_.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var n=0;n<e.length;n++){for(var r=e[n],o=[],i=0;i<r.length;i++)o.push(new t.Point$1(r[i][0],r[i][1]));this.geometry.push(o)}return this.geometry},_.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,n=-1/0,r=1/0,o=-1/0,i=0;i<t.length;i++)for(var a=t[i],s=0;s<a.length;s++){var l=a[s];e=Math.min(e,l.x),n=Math.max(n,l.x),r=Math.min(r,l.y),o=Math.max(o,l.y)}return[e,r,n,o]},_.prototype.toGeoJSON=y.prototype.toGeoJSON;var b=w,x=g;function w(e){var n=new t.pbf;return function(t,e){for(var n in t.layers)e.writeMessage(3,E,t.layers[n])}(e,n),n.finish()}function E(t,e){var n;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);var r={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<t.length;n++)r.feature=t.feature(n),e.writeMessage(2,S,r);var o=r.keys;for(n=0;n<o.length;n++)e.writeStringField(3,o[n]);var i=r.values;for(n=0;n<i.length;n++)e.writeMessage(4,I,i[n])}function S(t,e){var n=t.feature;void 0!==n.id&&e.writeVarintField(1,n.id),e.writeMessage(2,k,t),e.writeVarintField(3,n.type),e.writeMessage(4,P,n)}function k(t,e){var n=t.feature,r=t.keys,o=t.values,i=t.keycache,a=t.valuecache;for(var s in n.properties){var l=i[s];void 0===l&&(r.push(s),i[s]=l=r.length-1),e.writeVarint(l);var u=n.properties[s],c=typeof u;"string"!==c&&"boolean"!==c&&"number"!==c&&(u=JSON.stringify(u));var p=c+":"+u,f=a[p];void 0===f&&(o.push(u),a[p]=f=o.length-1),e.writeVarint(f)}}function T(t,e){return(e<<3)+(7&t)}function C(t){return t<<1^t>>31}function P(t,e){for(var n=t.loadGeometry(),r=t.type,o=0,i=0,a=n.length,s=0;s<a;s++){var l=n[s],u=1;1===r&&(u=l.length),e.writeVarint(T(1,u));for(var c=3===r?l.length-1:l.length,p=0;p<c;p++){1===p&&1!==r&&e.writeVarint(T(2,c-1));var f=l[p].x-o,h=l[p].y-i;e.writeVarint(C(f)),e.writeVarint(C(h)),o+=f,i+=h}3===r&&e.writeVarint(T(7,1))}}function I(t,e){var n=typeof t;"string"===n?e.writeStringField(1,t):"boolean"===n?e.writeBooleanField(7,t):"number"===n&&(t%1!=0?e.writeDoubleField(3,t):t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function O(t,e,n,r){A(t,n,r),A(e,2*n,2*r),A(e,2*n+1,2*r+1)}function A(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function z(t,e,n,r){var o=t-n,i=e-r;return o*o+i*i}b.fromVectorTileJs=w,b.fromGeojsonVt=function(t,e){e=e||{};var n={};for(var r in t)n[r]=new g(t[r].features,e),n[r].name=r,n[r].version=e.version,n[r].extent=e.extent;return w({layers:n})},b.GeoJSONWrapper=x;var M=function(t){return t[0]},R=function(t){return t[1]},D=function(t,e,n,r,o){void 0===e&&(e=M),void 0===n&&(n=R),void 0===r&&(r=64),void 0===o&&(o=Float64Array),this.nodeSize=r,this.points=t;for(var i=t.length<65536?Uint16Array:Uint32Array,a=this.ids=new i(t.length),s=this.coords=new o(2*t.length),l=0;l<t.length;l++)a[l]=l,s[2*l]=e(t[l]),s[2*l+1]=n(t[l]);!function t(e,n,r,o,i,a){if(!(i-o<=r)){var s=o+i>>1;!function t(e,n,r,o,i,a){for(;i>o;){if(i-o>600){var s=i-o+1,l=r-o+1,u=Math.log(s),c=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);t(e,n,r,Math.max(o,Math.floor(r-l*c/s+p)),Math.min(i,Math.floor(r+(s-l)*c/s+p)),a)}var f=n[2*r+a],h=o,d=i;for(O(e,n,o,r),n[2*i+a]>f&&O(e,n,o,i);h<d;){for(O(e,n,h,d),h++,d--;n[2*h+a]<f;)h++;for(;n[2*d+a]>f;)d--}n[2*o+a]===f?O(e,n,o,d):O(e,n,++d,i),d<=r&&(o=d+1),r<=d&&(i=d-1)}}(e,n,s,o,i,a%2),t(e,n,r,o,s-1,a+1),t(e,n,r,s+1,i,a+1)}}(a,s,r,0,a.length-1,0)};D.prototype.range=function(t,e,n,r){return function(t,e,n,r,o,i,a){for(var s,l,u=[0,t.length-1,0],c=[];u.length;){var p=u.pop(),f=u.pop(),h=u.pop();if(f-h<=a)for(var d=h;d<=f;d++)l=e[2*d+1],(s=e[2*d])>=n&&s<=o&&l>=r&&l<=i&&c.push(t[d]);else{var m=Math.floor((h+f)/2);l=e[2*m+1],(s=e[2*m])>=n&&s<=o&&l>=r&&l<=i&&c.push(t[m]);var y=(p+1)%2;(0===p?n<=s:r<=l)&&(u.push(h),u.push(m-1),u.push(y)),(0===p?o>=s:i>=l)&&(u.push(m+1),u.push(f),u.push(y))}}return c}(this.ids,this.coords,t,e,n,r,this.nodeSize)},D.prototype.within=function(t,e,n){return function(t,e,n,r,o,i){for(var a=[0,t.length-1,0],s=[],l=o*o;a.length;){var u=a.pop(),c=a.pop(),p=a.pop();if(c-p<=i)for(var f=p;f<=c;f++)z(e[2*f],e[2*f+1],n,r)<=l&&s.push(t[f]);else{var h=Math.floor((p+c)/2),d=e[2*h],m=e[2*h+1];z(d,m,n,r)<=l&&s.push(t[h]);var y=(u+1)%2;(0===u?n-o<=d:r-o<=m)&&(a.push(p),a.push(h-1),a.push(y)),(0===u?n+o>=d:r+o>=m)&&(a.push(h+1),a.push(c),a.push(y))}}return s}(this.ids,this.coords,t,e,n,this.nodeSize)};var L={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},j=function(t){this.options=G(Object.create(L),t),this.trees=new Array(this.options.maxZoom+1)};function B(t,e,n,r,o){return{x:t,y:e,zoom:1/0,id:n,parentId:-1,numPoints:r,properties:o}}function N(t,e){var n=t.geometry.coordinates,r=n[1];return{x:V(n[0]),y:q(r),zoom:1/0,index:e,parentId:-1}}function F(t){return{type:"Feature",id:t.id,properties:U(t),geometry:{type:"Point",coordinates:[(r=t.x,360*(r-.5)),(e=t.y,n=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var e,n,r}function U(t){var e=t.numPoints,n=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return G(G({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:n})}function V(t){return t/360+.5}function q(t){var e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function G(t,e){for(var n in e)t[n]=e[n];return t}function W(t){return t.x}function Z(t){return t.y}function H(t,e,n,r,o,i){var a=o-n,s=i-r;if(0!==a||0!==s){var l=((t-n)*a+(e-r)*s)/(a*a+s*s);l>1?(n=o,r=i):l>0&&(n+=a*l,r+=s*l)}return(a=t-n)*a+(s=e-r)*s}function X(t,e,n,r){var o={id:void 0===t?null:t,type:e,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,n=t.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)$(t,e);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r<e.length;r++)$(t,e[r]);else if("MultiPolygon"===n)for(r=0;r<e.length;r++)for(var o=0;o<e[r].length;o++)$(t,e[r][o])}(o),o}function $(t,e){for(var n=0;n<e.length;n+=3)t.minX=Math.min(t.minX,e[n]),t.minY=Math.min(t.minY,e[n+1]),t.maxX=Math.max(t.maxX,e[n]),t.maxY=Math.max(t.maxY,e[n+1])}function K(t,e,n,r){if(e.geometry){var o=e.geometry.coordinates,i=e.geometry.type,a=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),s=[],l=e.id;if(n.promoteId?l=e.properties[n.promoteId]:n.generateId&&(l=r||0),"Point"===i)Y(o,s);else if("MultiPoint"===i)for(var u=0;u<o.length;u++)Y(o[u],s);else if("LineString"===i)J(o,s,a,!1);else if("MultiLineString"===i){if(n.lineMetrics){for(u=0;u<o.length;u++)J(o[u],s=[],a,!1),t.push(X(l,"LineString",s,e.properties));return}Q(o,s,a,!1)}else if("Polygon"===i)Q(o,s,a,!0);else{if("MultiPolygon"!==i){if("GeometryCollection"===i){for(u=0;u<e.geometry.geometries.length;u++)K(t,{id:l,geometry:e.geometry.geometries[u],properties:e.properties},n,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(u=0;u<o.length;u++){var c=[];Q(o[u],c,a,!0),s.push(c)}}t.push(X(l,i,s,e.properties))}}function Y(t,e){e.push(tt(t[0])),e.push(et(t[1])),e.push(0)}function J(t,e,n,r){for(var o,i,a=0,s=0;s<t.length;s++){var l=tt(t[s][0]),u=et(t[s][1]);e.push(l),e.push(u),e.push(0),s>0&&(a+=r?(o*u-l*i)/2:Math.sqrt(Math.pow(l-o,2)+Math.pow(u-i,2))),o=l,i=u}var c=e.length-3;e[2]=1,function t(e,n,r,o){for(var i,a=o,s=r-n>>1,l=r-n,u=e[n],c=e[n+1],p=e[r],f=e[r+1],h=n+3;h<r;h+=3){var d=H(e[h],e[h+1],u,c,p,f);if(d>a)i=h,a=d;else if(d===a){var m=Math.abs(h-s);m<l&&(i=h,l=m)}}a>o&&(i-n>3&&t(e,n,i,o),e[i+2]=a,r-i>3&&t(e,i,r,o))}(e,0,c,n),e[c+2]=1,e.size=Math.abs(a),e.start=0,e.end=e.size}function Q(t,e,n,r){for(var o=0;o<t.length;o++){var i=[];J(t[o],i,n,r),e.push(i)}}function tt(t){return t/360+.5}function et(t){var e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function nt(t,e,n,r,o,i,a,s){if(r/=e,i>=(n/=e)&&a<r)return t;if(a<n||i>=r)return null;for(var l=[],u=0;u<t.length;u++){var c=t[u],p=c.geometry,f=c.type,h=0===o?c.minX:c.minY,d=0===o?c.maxX:c.maxY;if(h>=n&&d<r)l.push(c);else if(!(d<n||h>=r)){var m=[];if("Point"===f||"MultiPoint"===f)rt(p,m,n,r,o);else if("LineString"===f)ot(p,m,n,r,o,!1,s.lineMetrics);else if("MultiLineString"===f)at(p,m,n,r,o,!1);else if("Polygon"===f)at(p,m,n,r,o,!0);else if("MultiPolygon"===f)for(var y=0;y<p.length;y++){var g=[];at(p[y],g,n,r,o,!0),g.length&&m.push(g)}if(m.length){if(s.lineMetrics&&"LineString"===f){for(y=0;y<m.length;y++)l.push(X(c.id,f,m[y],c.tags));continue}"LineString"!==f&&"MultiLineString"!==f||(1===m.length?(f="LineString",m=m[0]):f="MultiLineString"),"Point"!==f&&"MultiPoint"!==f||(f=3===m.length?"Point":"MultiPoint"),l.push(X(c.id,f,m,c.tags))}}}return l.length?l:null}function rt(t,e,n,r,o){for(var i=0;i<t.length;i+=3){var a=t[i+o];a>=n&&a<=r&&(e.push(t[i]),e.push(t[i+1]),e.push(t[i+2]))}}function ot(t,e,n,r,o,i,a){for(var s,l,u=it(t),c=0===o?lt:ut,p=t.start,f=0;f<t.length-3;f+=3){var h=t[f],d=t[f+1],m=t[f+2],y=t[f+3],g=t[f+4],v=0===o?h:d,_=0===o?y:g,b=!1;a&&(s=Math.sqrt(Math.pow(h-y,2)+Math.pow(d-g,2))),v<n?_>n&&(l=c(u,h,d,y,g,n),a&&(u.start=p+s*l)):v>r?_<r&&(l=c(u,h,d,y,g,r),a&&(u.start=p+s*l)):st(u,h,d,m),_<n&&v>=n&&(l=c(u,h,d,y,g,n),b=!0),_>r&&v<=r&&(l=c(u,h,d,y,g,r),b=!0),!i&&b&&(a&&(u.end=p+s*l),e.push(u),u=it(t)),a&&(p+=s)}var x=t.length-3;h=t[x],d=t[x+1],m=t[x+2],(v=0===o?h:d)>=n&&v<=r&&st(u,h,d,m),x=u.length-3,i&&x>=3&&(u[x]!==u[0]||u[x+1]!==u[1])&&st(u,u[0],u[1],u[2]),u.length&&e.push(u)}function it(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function at(t,e,n,r,o,i){for(var a=0;a<t.length;a++)ot(t[a],e,n,r,o,i,!1)}function st(t,e,n,r){t.push(e),t.push(n),t.push(r)}function lt(t,e,n,r,o,i){var a=(i-e)/(r-e);return t.push(i),t.push(n+(o-n)*a),t.push(1),a}function ut(t,e,n,r,o,i){var a=(i-n)/(o-n);return t.push(e+(r-e)*a),t.push(i),t.push(1),a}function ct(t,e){for(var n=[],r=0;r<t.length;r++){var o,i=t[r],a=i.type;if("Point"===a||"MultiPoint"===a||"LineString"===a)o=pt(i.geometry,e);else if("MultiLineString"===a||"Polygon"===a){o=[];for(var s=0;s<i.geometry.length;s++)o.push(pt(i.geometry[s],e))}else if("MultiPolygon"===a)for(o=[],s=0;s<i.geometry.length;s++){for(var l=[],u=0;u<i.geometry[s].length;u++)l.push(pt(i.geometry[s][u],e));o.push(l)}n.push(X(i.id,a,o,i.tags))}return n}function pt(t,e){var n=[];n.size=t.size,void 0!==t.start&&(n.start=t.start,n.end=t.end);for(var r=0;r<t.length;r+=3)n.push(t[r]+e,t[r+1],t[r+2]);return n}function ft(t,e){if(t.transformed)return t;var n,r,o,i=1<<t.z,a=t.x,s=t.y;for(n=0;n<t.features.length;n++){var l=t.features[n],u=l.geometry,c=l.type;if(l.geometry=[],1===c)for(r=0;r<u.length;r+=2)l.geometry.push(ht(u[r],u[r+1],e,i,a,s));else for(r=0;r<u.length;r++){var p=[];for(o=0;o<u[r].length;o+=2)p.push(ht(u[r][o],u[r][o+1],e,i,a,s));l.geometry.push(p)}}return t.transformed=!0,t}function ht(t,e,n,r,o,i){return[Math.round(n*(t*r-o)),Math.round(n*(e*r-i))]}function dt(t,e,n,r,o){for(var i=e===o.maxZoom?0:o.tolerance/((1<<e)*o.extent),a={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:r,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<t.length;s++){a.numFeatures++,mt(a,t[s],i,o);var l=t[s].minX,u=t[s].minY,c=t[s].maxX,p=t[s].maxY;l<a.minX&&(a.minX=l),u<a.minY&&(a.minY=u),c>a.maxX&&(a.maxX=c),p>a.maxY&&(a.maxY=p)}return a}function mt(t,e,n,r){var o=e.geometry,i=e.type,a=[];if("Point"===i||"MultiPoint"===i)for(var s=0;s<o.length;s+=3)a.push(o[s]),a.push(o[s+1]),t.numPoints++,t.numSimplified++;else if("LineString"===i)yt(a,o,t,n,!1,!1);else if("MultiLineString"===i||"Polygon"===i)for(s=0;s<o.length;s++)yt(a,o[s],t,n,"Polygon"===i,0===s);else if("MultiPolygon"===i)for(var l=0;l<o.length;l++){var u=o[l];for(s=0;s<u.length;s++)yt(a,u[s],t,n,!0,0===s)}if(a.length){var c=e.tags||null;if("LineString"===i&&r.lineMetrics){for(var p in c={},e.tags)c[p]=e.tags[p];c.mapbox_clip_start=o.start/o.size,c.mapbox_clip_end=o.end/o.size}var f={geometry:a,type:"Polygon"===i||"MultiPolygon"===i?3:"LineString"===i||"MultiLineString"===i?2:1,tags:c};null!==e.id&&(f.id=e.id),t.features.push(f)}}function yt(t,e,n,r,o,i){var a=r*r;if(r>0&&e.size<(o?a:r))n.numPoints+=e.length/3;else{for(var s=[],l=0;l<e.length;l+=3)(0===r||e[l+2]>a)&&(n.numSimplified++,s.push(e[l]),s.push(e[l+1])),n.numPoints++;o&&function(t,e){for(var n=0,r=0,o=t.length,i=o-2;r<o;i=r,r+=2)n+=(t[r]-t[i])*(t[r+1]+t[i+1]);if(n>0===e)for(r=0,o=t.length;r<o/2;r+=2){var a=t[r],s=t[r+1];t[r]=t[o-2-r],t[r+1]=t[o-1-r],t[o-2-r]=a,t[o-1-r]=s}}(s,i),t.push(s)}}function gt(t,e){var n=(e=this.options=function(t,e){for(var n in e)t[n]=e[n];return t}(Object.create(this.options),e)).debug;if(n&&console.time("preprocess data"),e.maxZoom<0||e.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(t,e){var n=[];if("FeatureCollection"===t.type)for(var r=0;r<t.features.length;r++)K(n,t.features[r],e,r);else K(n,"Feature"===t.type?t:{geometry:t},e);return n}(t,e);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(r=function(t,e){var n=e.buffer/e.extent,r=t,o=nt(t,1,-1-n,n,0,-1,2,e),i=nt(t,1,1-n,2+n,0,-1,2,e);return(o||i)&&(r=nt(t,1,-n,1+n,0,-1,2,e)||[],o&&(r=ct(o,1).concat(r)),i&&(r=r.concat(ct(i,-1)))),r}(r,e)).length&&this.splitTile(r,0,0,0),n&&(r.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function vt(t,e,n){return 32*((1<<t)*n+e)+t}function _t(t,e){var n=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var r=this._geoJSONIndex.getTile(n.z,n.x,n.y);if(!r)return e(null,null);var o=new m(r.features),i=b(o);0===i.byteOffset&&i.byteLength===i.buffer.byteLength||(i=new Uint8Array(i)),e(null,{vectorTile:o,rawData:i.buffer})}j.prototype.load=function(t){var e=this.options,n=e.log,r=e.minZoom,o=e.maxZoom,i=e.nodeSize;n&&console.time("total time");var a="prepare "+t.length+" points";n&&console.time(a),this.points=t;for(var s=[],l=0;l<t.length;l++)t[l].geometry&&s.push(N(t[l],l));this.trees[o+1]=new D(s,W,Z,i,Float32Array),n&&console.timeEnd(a);for(var u=o;u>=r;u--){var c=+Date.now();s=this._cluster(s,u),this.trees[u]=new D(s,W,Z,i,Float32Array),n&&console.log("z%d: %d clusters in %dms",u,s.length,+Date.now()-c)}return n&&console.timeEnd("total time"),this},j.prototype.getClusters=function(t,e){var n=((t[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,t[1])),o=180===t[2]?180:((t[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)n=-180,o=180;else if(n>o){var a=this.getClusters([n,r,180,i],e),s=this.getClusters([-180,r,o,i],e);return a.concat(s)}for(var l=this.trees[this._limitZoom(e)],u=[],c=0,p=l.range(V(n),q(i),V(o),q(r));c<p.length;c+=1){var f=l.points[p[c]];u.push(f.numPoints?F(f):this.points[f.index])}return u},j.prototype.getChildren=function(t){var e=this._getOriginId(t),n=this._getOriginZoom(t),r="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(r);var i=o.points[e];if(!i)throw new Error(r);for(var a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=[],l=0,u=o.within(i.x,i.y,a);l<u.length;l+=1){var c=o.points[u[l]];c.parentId===t&&s.push(c.numPoints?F(c):this.points[c.index])}if(0===s.length)throw new Error(r);return s},j.prototype.getLeaves=function(t,e,n){var r=[];return this._appendLeaves(r,t,e=e||10,n=n||0,0),r},j.prototype.getTile=function(t,e,n){var r=this.trees[this._limitZoom(t)],o=Math.pow(2,t),i=this.options,a=i.radius/i.extent,s=(n-a)/o,l=(n+1+a)/o,u={features:[]};return this._addTileFeatures(r.range((e-a)/o,s,(e+1+a)/o,l),r.points,e,n,o,u),0===e&&this._addTileFeatures(r.range(1-a/o,s,1,l),r.points,o,n,o,u),e===o-1&&this._addTileFeatures(r.range(0,s,a/o,l),r.points,-1,n,o,u),u.features.length?u:null},j.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e<=this.options.maxZoom;){var n=this.getChildren(t);if(e++,1!==n.length)break;t=n[0].properties.cluster_id}return e},j.prototype._appendLeaves=function(t,e,n,r,o){for(var i=0,a=this.getChildren(e);i<a.length;i+=1){var s=a[i],l=s.properties;if(l&&l.cluster?o+l.point_count<=r?o+=l.point_count:o=this._appendLeaves(t,l.cluster_id,n,r,o):o<r?o++:t.push(s),t.length===n)break}return o},j.prototype._addTileFeatures=function(t,e,n,r,o,i){for(var a=0,s=t;a<s.length;a+=1){var l=e[s[a]],u=l.numPoints,c={type:1,geometry:[[Math.round(this.options.extent*(l.x*o-n)),Math.round(this.options.extent*(l.y*o-r))]],tags:u?U(l):this.points[l.index].properties},p=void 0;u?p=l.id:this.options.generateId?p=l.index:this.points[l.index].id&&(p=this.points[l.index].id),void 0!==p&&(c.id=p),i.features.push(c)}},j.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(+t,this.options.maxZoom+1))},j.prototype._cluster=function(t,e){for(var n=[],r=this.options,o=r.reduce,i=r.minPoints,a=r.radius/(r.extent*Math.pow(2,e)),s=0;s<t.length;s++){var l=t[s];if(!(l.zoom<=e)){l.zoom=e;for(var u=this.trees[e+1],c=u.within(l.x,l.y,a),p=l.numPoints||1,f=p,h=0,d=c;h<d.length;h+=1){var m=u.points[d[h]];m.zoom>e&&(f+=m.numPoints||1)}if(f>=i){for(var y=l.x*p,g=l.y*p,v=o&&p>1?this._map(l,!0):null,_=(s<<5)+(e+1)+this.points.length,b=0,x=c;b<x.length;b+=1){var w=u.points[x[b]];if(!(w.zoom<=e)){w.zoom=e;var E=w.numPoints||1;y+=w.x*E,g+=w.y*E,w.parentId=_,o&&(v||(v=this._map(l,!0)),o(v,this._map(w)))}}l.parentId=_,n.push(B(y/f,g/f,_,f,v))}else if(n.push(l),f>1)for(var S=0,k=c;S<k.length;S+=1){var T=u.points[k[S]];T.zoom<=e||(T.zoom=e,n.push(T))}}}return n},j.prototype._getOriginId=function(t){return t-this.points.length>>5},j.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},j.prototype._map=function(t,e){if(t.numPoints)return e?G({},t.properties):t.properties;var n=this.points[t.index].properties,r=this.options.map(n);return e&&r===n?G({},r):r},gt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},gt.prototype.splitTile=function(t,e,n,r,o,i,a){for(var s=[t,e,n,r],l=this.options,u=l.debug;s.length;){r=s.pop(),n=s.pop(),e=s.pop(),t=s.pop();var c=1<<e,p=vt(e,n,r),f=this.tiles[p];if(!f&&(u>1&&console.time("creation"),f=this.tiles[p]=dt(t,e,n,r,l),this.tileCoords.push({z:e,x:n,y:r}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,n,r,f.numFeatures,f.numPoints,f.numSimplified),console.timeEnd("creation"));var h="z"+e;this.stats[h]=(this.stats[h]||0)+1,this.total++}if(f.source=t,o){if(e===l.maxZoom||e===o)continue;var d=1<<o-e;if(n!==Math.floor(i/d)||r!==Math.floor(a/d))continue}else if(e===l.indexMaxZoom||f.numPoints<=l.indexMaxPoints)continue;if(f.source=null,0!==t.length){u>1&&console.time("clipping");var m,y,g,v,_,b,x=.5*l.buffer/l.extent,w=.5-x,E=.5+x,S=1+x;m=y=g=v=null,_=nt(t,c,n-x,n+E,0,f.minX,f.maxX,l),b=nt(t,c,n+w,n+S,0,f.minX,f.maxX,l),t=null,_&&(m=nt(_,c,r-x,r+E,1,f.minY,f.maxY,l),y=nt(_,c,r+w,r+S,1,f.minY,f.maxY,l),_=null),b&&(g=nt(b,c,r-x,r+E,1,f.minY,f.maxY,l),v=nt(b,c,r+w,r+S,1,f.minY,f.maxY,l),b=null),u>1&&console.timeEnd("clipping"),s.push(m||[],e+1,2*n,2*r),s.push(y||[],e+1,2*n,2*r+1),s.push(g||[],e+1,2*n+1,2*r),s.push(v||[],e+1,2*n+1,2*r+1)}}},gt.prototype.getTile=function(t,e,n){var r=this.options,o=r.extent,i=r.debug;if(t<0||t>24)return null;var a=1<<t,s=vt(t,e=(e%a+a)%a,n);if(this.tiles[s])return ft(this.tiles[s],o);i>1&&console.log("drilling down to z%d-%d-%d",t,e,n);for(var l,u=t,c=e,p=n;!l&&u>0;)u--,c=Math.floor(c/2),p=Math.floor(p/2),l=this.tiles[vt(u,c,p)];return l&&l.source?(i>1&&console.log("found parent tile z%d-%d-%d",u,c,p),i>1&&console.time("drilling down"),this.splitTile(l.source,u,c,p,t,e,n),i>1&&console.timeEnd("drilling down"),this.tiles[s]?ft(this.tiles[s],o):null):null};var bt=function(e){function n(t,n,r,o){e.call(this,t,n,r,_t),o&&(this.loadGeoJSON=o)}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.loadData=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},n.prototype._loadData=function(){var e=this;if(this._pendingCallback&&this._pendingLoadDataParams){var n=this._pendingCallback,r=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var o=!!(r&&r.request&&r.request.collectResourceTiming)&&new t.RequestPerformance(r.request);this.loadGeoJSON(r,(function(i,a){if(i||!a)return n(i);if("object"!=typeof a)return n(new Error("Input data given to '"+r.source+"' is not a valid GeoJSON object."));!function t(e,n){var r,o=e&&e.type;if("FeatureCollection"===o)for(r=0;r<e.features.length;r++)t(e.features[r],n);else if("GeometryCollection"===o)for(r=0;r<e.geometries.length;r++)t(e.geometries[r],n);else if("Feature"===o)t(e.geometry,n);else if("Polygon"===o)p(e.coordinates,n);else if("MultiPolygon"===o)for(r=0;r<e.coordinates.length;r++)p(e.coordinates[r],n);return e}(a,!0);try{if(r.filter){var s=t.createExpression(r.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===s.result)throw new Error(s.value.map((function(t){return t.key+": "+t.message})).join(", "));var l=a.features.filter((function(t){return s.value.evaluate({zoom:0},t)}));a={type:"FeatureCollection",features:l}}e._geoJSONIndex=r.cluster?new j(function(e){var n=e.superclusterOptions,r=e.clusterProperties;if(!r||!n)return n;for(var o={},i={},a={accumulated:null,zoom:0},s={properties:null},l=Object.keys(r),u=0,c=l;u<c.length;u+=1){var p=c[u],f=r[p],h=f[0],d=t.createExpression(f[1]),m=t.createExpression("string"==typeof h?[h,["accumulated"],["get",p]]:h);o[p]=d.value,i[p]=m.value}return n.map=function(t){s.properties=t;for(var e={},n=0,r=l;n<r.length;n+=1){var i=r[n];e[i]=o[i].evaluate(a,s)}return e},n.reduce=function(t,e){s.properties=e;for(var n=0,r=l;n<r.length;n+=1){var o=r[n];a.accumulated=t[o],t[o]=i[o].evaluate(a,s)}},n}(r)).load(a.features):function(t,e){return new gt(t,e)}(a,r.geojsonVtOptions)}catch(i){return n(i)}e.loaded={};var u={};if(o){var c=o.finish();c&&(u.resourceTiming={},u.resourceTiming[r.source]=JSON.parse(JSON.stringify(c)))}n(null,u)}))}},n.prototype.coalesce=function(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&&(this._state="Coalescing",this._loadData())},n.prototype.reloadTile=function(t,n){var r=this.loaded;return r&&r[t.uid]?e.prototype.reloadTile.call(this,t,n):this.loadTile(t,n)},n.prototype.loadGeoJSON=function(e,n){if(e.request)t.getJSON(e.request,n);else{if("string"!=typeof e.data)return n(new Error("Input data given to '"+e.source+"' is not a valid GeoJSON object."));try{return n(null,JSON.parse(e.data))}catch(t){return n(new Error("Input data given to '"+e.source+"' is not a valid GeoJSON object."))}}},n.prototype.removeSource=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),e()},n.prototype.getClusterExpansionZoom=function(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}},n.prototype.getClusterChildren=function(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}},n.prototype.getClusterLeaves=function(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}},n}(l),xt=function(e){var n=this;this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:l,geojson:bt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(n.workerSourceTypes[t])throw new Error('Worker source with name "'+t+'" already registered.');n.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isParsed())throw new Error("RTL text plugin already registered.");t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}};return xt.prototype.setReferrer=function(t,e){this.referrer=e},xt.prototype.setImages=function(t,e,n){for(var r in this.availableImages[t]=e,this.workerSources[t]){var o=this.workerSources[t][r];for(var i in o)o[i].availableImages=e}n()},xt.prototype.setLayers=function(t,e,n){this.getLayerIndex(t).replace(e),n()},xt.prototype.updateLayers=function(t,e,n){this.getLayerIndex(t).update(e.layers,e.removedIds),n()},xt.prototype.loadTile=function(t,e,n){this.getWorkerSource(t,e.type,e.source).loadTile(e,n)},xt.prototype.loadDEMTile=function(t,e,n){this.getDEMWorkerSource(t,e.source).loadTile(e,n)},xt.prototype.reloadTile=function(t,e,n){this.getWorkerSource(t,e.type,e.source).reloadTile(e,n)},xt.prototype.abortTile=function(t,e,n){this.getWorkerSource(t,e.type,e.source).abortTile(e,n)},xt.prototype.removeTile=function(t,e,n){this.getWorkerSource(t,e.type,e.source).removeTile(e,n)},xt.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},xt.prototype.removeSource=function(t,e,n){if(this.workerSources[t]&&this.workerSources[t][e.type]&&this.workerSources[t][e.type][e.source]){var r=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==r.removeSource?r.removeSource(e,n):n()}},xt.prototype.loadWorkerSource=function(t,e,n){try{this.self.importScripts(e.url),n()}catch(t){n(t.toString())}},xt.prototype.syncRTLPluginState=function(e,n,r){try{t.plugin.setState(n);var o=t.plugin.getPluginURL();if(t.plugin.isLoaded()&&!t.plugin.isParsed()&&null!=o){this.self.importScripts(o);var i=t.plugin.isParsed();r(i?void 0:new Error("RTL Text Plugin failed to import scripts from "+o),i)}}catch(t){r(t.toString())}},xt.prototype.getAvailableImages=function(t){var e=this.availableImages[t];return e||(e=[]),e},xt.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new r),e},xt.prototype.getWorkerSource=function(t,e,n){var r=this;return this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),this.workerSources[t][e][n]||(this.workerSources[t][e][n]=new this.workerSourceTypes[e]({send:function(e,n,o){r.actor.send(e,n,o,t)}},this.getLayerIndex(t),this.getAvailableImages(t))),this.workerSources[t][e][n]},xt.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new c),this.demWorkerSources[t][e]},xt.prototype.enforceCacheSizeLimit=function(e,n){t.enforceCacheSizeLimit(n)},"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new xt(self)),xt})),r(0,(function(t){var e=t.createCommonjsModule((function(t){function e(t){return!n(t)}function n(t){return"undefined"==typeof window||"undefined"==typeof document?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var t,e,n=new Blob([""],{type:"text/javascript"}),r=URL.createObjectURL(n);try{e=new Worker(r),t=!0}catch(e){t=!1}return e&&e.terminate(),URL.revokeObjectURL(r),t}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var t=document.createElement("canvas");t.width=t.height=1;var e=t.getContext("2d");if(!e)return!1;var n=e.getImageData(0,0,1,1);return n&&n.width===t.width}()?(void 0===r[n=t&&t.failIfMajorPerformanceCaveat]&&(r[n]=function(t){var n=function(t){var n=document.createElement("canvas"),r=Object.create(e.webGLContextAttributes);return r.failIfMajorPerformanceCaveat=t,n.probablySupportsContext?n.probablySupportsContext("webgl",r)||n.probablySupportsContext("experimental-webgl",r):n.supportsContext?n.supportsContext("webgl",r)||n.supportsContext("experimental-webgl",r):n.getContext("webgl",r)||n.getContext("experimental-webgl",r)}(t);if(!n)return!1;var r=n.createShader(n.VERTEX_SHADER);return!(!r||n.isContextLost())&&(n.shaderSource(r,"void main() {}"),n.compileShader(r),!0===n.getShaderParameter(r,n.COMPILE_STATUS))}(n)),r[n]?void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray supp
1ort":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var n}t.exports?t.exports=e:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e,window.mapboxgl.notSupportedReason=n);var r={};e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),n={create:function(e,n,r){var o=t.window.document.createElement(e);return void 0!==n&&(o.className=n),r&&r.appendChild(o),o},createNS:function(e,n){return t.window.document.createElementNS(e,n)}},r=t.window.document&&t.window.document.documentElement.style;function o(t){if(!r)return t[0];for(var e=0;e<t.length;e++)if(t[e]in r)return t[e];return t[0]}var i,a=o(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);n.disableDrag=function(){r&&a&&(i=r[a],r[a]="none")},n.enableDrag=function(){r&&a&&(r[a]=i)};var s=o(["transform","WebkitTransform"]);n.setTransform=function(t,e){t.style[s]=e};var l=!1;try{var u=Object.defineProperty({},"passive",{get:function(){l=!0}});t.window.addEventListener("test",u,u),t.window.removeEventListener("test",u,u)}catch(t){l=!1}n.addEventListener=function(t,e,n,r){void 0===r&&(r={}),t.addEventListener(e,n,"passive"in r&&l?r:r.capture)},n.removeEventListener=function(t,e,n,r){void 0===r&&(r={}),t.removeEventListener(e,n,"passive"in r&&l?r:r.capture)};var c=function(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener("click",c,!0)};function p(t){var e=t.userImage;return!!(e&&e.render&&e.render())&&(t.data.replace(new Uint8Array(e.data.buffer)),!0)}n.suppressClick=function(){t.window.addEventListener("click",c,!0),t.window.setTimeout((function(){t.window.removeEventListener("click",c,!0)}),0)},n.mousePos=function(e,n){var r=e.getBoundingClientRect();return new t.Point(n.clientX-r.left-e.clientLeft,n.clientY-r.top-e.clientTop)},n.touchPos=function(e,n){for(var r=e.getBoundingClientRect(),o=[],i=0;i<n.length;i++)o.push(new t.Point(n[i].clientX-r.left-e.clientLeft,n[i].clientY-r.top-e.clientTop));return o},n.mouseButton=function(e){return void 0!==t.window.InstallTrigger&&2===e.button&&e.ctrlKey&&t.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:e.button},n.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)};var f=function(e){function n(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.isLoaded=function(){return this.loaded},n.prototype.setLoaded=function(t){if(this.loaded!==t&&(this.loaded=t,t)){for(var e=0,n=this.requestors;e<n.length;e+=1){var r=n[e];this._notify(r.ids,r.callback)}this.requestors=[]}},n.prototype.getImage=function(t){return this.images[t]},n.prototype.addImage=function(t,e){this._validate(t,e)&&(this.images[t]=e)},n.prototype._validate=function(e,n){var r=!0;return this._validateStretch(n.stretchX,n.data&&n.data.width)||(this.fire(new t.ErrorEvent(new Error('Image "'+e+'" has invalid "stretchX" value'))),r=!1),this._validateStretch(n.stretchY,n.data&&n.data.height)||(this.fire(new t.ErrorEvent(new Error('Image "'+e+'" has invalid "stretchY" value'))),r=!1),this._validateContent(n.content,n)||(this.fire(new t.ErrorEvent(new Error('Image "'+e+'" has invalid "content" value'))),r=!1),r},n.prototype._validateStretch=function(t,e){if(!t)return!0;for(var n=0,r=0,o=t;r<o.length;r+=1){var i=o[r];if(i[0]<n||i[1]<i[0]||e<i[1])return!1;n=i[1]}return!0},n.prototype._validateContent=function(t,e){return!(t&&(4!==t.length||t[0]<0||e.data.width<t[0]||t[1]<0||e.data.height<t[1]||t[2]<0||e.data.width<t[2]||t[3]<0||e.data.height<t[3]||t[2]<t[0]||t[3]<t[1]))},n.prototype.updateImage=function(t,e){e.version=this.images[t].version+1,this.images[t]=e,this.updatedImages[t]=!0},n.prototype.removeImage=function(t){var e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&&e.userImage.onRemove&&e.userImage.onRemove()},n.prototype.listImages=function(){return Object.keys(this.images)},n.prototype.getImages=function(t,e){var n=!0;if(!this.isLoaded())for(var r=0,o=t;r<o.length;r+=1)this.images[o[r]]||(n=!1);this.isLoaded()||n?this._notify(t,e):this.requestors.push({ids:t,callback:e})},n.prototype._notify=function(e,n){for(var r={},o=0,i=e;o<i.length;o+=1){var a=i[o];this.images[a]||this.fire(new t.Event("styleimagemissing",{id:a}));var s=this.images[a];s?r[a]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,ver
vendor: 105,549 bytes, line 1
1sion:s.version,stretchX:s.stretchX,stretchY:s.stretchY,content:s.content,hasRenderCallback:Boolean(s.userImage&&s.userImage.render)}:t.warnOnce('Image "'+a+'" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.')}n(null,r)},n.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},n.prototype.getPattern=function(e){var n=this.patterns[e],r=this.getImage(e);if(!r)return null;if(n&&n.position.version===r.version)return n.position;if(n)n.position.version=r.version;else{var o={w:r.data.width+2,h:r.data.height+2,x:0,y:0},i=new t.ImagePosition(o,r);this.patterns[e]={bin:o,position:i}}return this._updatePatternAtlas(),this.patterns[e].position},n.prototype.bind=function(e){var n=e.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,n.RGBA),this.atlasTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)},n.prototype._updatePatternAtlas=function(){var e=[];for(var n in this.patterns)e.push(this.patterns[n].bin);var r=t.potpack(e),o=r.w,i=r.h,a=this.atlasImage;for(var s in a.resize({width:o||1,height:i||1}),this.patterns){var l=this.patterns[s].bin,u=l.x+1,c=l.y+1,p=this.images[s].data,f=p.width,h=p.height;t.RGBAImage.copy(p,a,{x:0,y:0},{x:u,y:c},{width:f,height:h}),t.RGBAImage.copy(p,a,{x:0,y:h-1},{x:u,y:c-1},{width:f,height:1}),t.RGBAImage.copy(p,a,{x:0,y:0},{x:u,y:c+h},{width:f,height:1}),t.RGBAImage.copy(p,a,{x:f-1,y:0},{x:u-1,y:c},{width:1,height:h}),t.RGBAImage.copy(p,a,{x:0,y:0},{x:u+f,y:c},{width:1,height:h})}this.dirty=!0},n.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},n.prototype.dispatchRenderCallbacks=function(t){for(var e=0,n=t;e<n.length;e+=1){var r=n[e];if(!this.callbackDispatchedThisFrame[r]){this.callbackDispatchedThisFrame[r]=!0;var o=this.images[r];p(o)&&this.updateImage(r,o)}}},n}(t.Evented),h=y,d=y,m=1e20;function y(t,e,n,r,o,i){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=r||.25,this.fontFamily=o||"sans-serif",this.fontWeight=i||"normal",this.radius=n||8;var a=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=a,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textBaseline="middle",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.d=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Int16Array(a),this.middle=Math.round(a/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function g(t,e,n,r,o,i,a){for(var s=0;s<e;s++){for(var l=0;l<n;l++)r[l]=t[l*e+s];for(v(r,o,i,a,n),l=0;l<n;l++)t[l*e+s]=o[l]}for(l=0;l<n;l++){for(s=0;s<e;s++)r[s]=t[l*e+s];for(v(r,o,i,a,e),s=0;s<e;s++)t[l*e+s]=Math.sqrt(o[s])}}function v(t,e,n,r,o){n[0]=0,r[0]=-m,r[1]=+m;for(var i=1,a=0;i<o;i++){for(var s=(t[i]+i*i-(t[n[a]]+n[a]*n[a]))/(2*i-2*n[a]);s<=r[a];)a--,s=(t[i]+i*i-(t[n[a]]+n[a]*n[a]))/(2*i-2*n[a]);n[++a]=i,r[a]=s,r[a+1]=+m}for(i=0,a=0;i<o;i++){for(;r[a+1]<i;)a++;e[i]=(i-n[a])*(i-n[a])+t[n[a]]}}y.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),n=new Uint8ClampedArray(this.size*this.size),r=0;r<this.size*this.size;r++){var o=e.data[4*r+3]/255;this.gridOuter[r]=1===o?0:0===o?m:Math.pow(Math.max(0,.5-o),2),this.gridInner[r]=1===o?m:0===o?0:Math.pow(Math.max(0,o-.5),2)}for(g(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),g(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),r=0;r<this.size*this.size;r++)n[r]=Math.max(0,Math.min(255,Math.round(255-255*((this.gridOuter[r]-this.gridInner[r])/this.radius+this.cutoff))));return n},h.default=d;var _=function(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={}};_.prototype.setURL=function(t){this.url=t},_.prototype.getGlyphs=function(e,n){var r=this,o=[];for(var i in e)for(var a=0,s=e[i];a<s.length;a+=1)o.push({stack:i,id:s[a]});t.asyncAll(o,(function(t,e){var n=t.stack,o=t.id,i=r.entries[n];i||(i=r.entries[n]={glyphs:{},requests:{},ranges:{}});var a=i.glyphs[o];if(void 0===a){if(a=r._tinySDF(i,n,o))return i.glyphs[o]=a,void e(null,{stack:n,id:o,glyph:a});var s=Math.floor(o/256);if(256*s>65535)e(new Error("glyphs > 65535 not supported"));else if(i.ranges[s])e(null,{stack:n,id:o,glyph:a});else{var l=i.requests[s];l||(l=i.requests[s]=[],_.loadGlyphRange(n,s,r.url,r.requestManager,(function(t,e){if(e){for(var n in e)r._doesCharSupportLocalGlyph(+n)||(i.glyphs[+n]=e[+n]);i.ranges[s]=!0}for(var o=0,a=l;o<a.length;o+=1)(0,a[o])(t,e);delete i.requests[s]}))),l.push((function(t,r){t?e(t):r&&e(null,{stack:n,id:o,glyph:r[o]||null})}))}}else e(null,{stack:n,id:o,glyph:a})}),(function(t,e){if(t)n(t);else if(e){for(var r={},o=0,i=e;o<i.length;o+=1){var a=i[o],s=a.stack,l=a.id,u=a.glyph;(r[s]||(r[s]={}))[l]=u&&{id:u.id,bitmap:u.bitmap.clone(),metrics:u.metrics}}n(null,r)}}))},_.prototype._doesCharSupportLocalGlyph=function(e){return!!this.localIdeographFontFamily&&(t.isChar["CJK Unified Ideographs"](e)||t.isChar["Hangul Syllables"](e)||t.isChar.Hiragana(e)||t.isChar.Katakana(e))},_.prototype._tinySDF=function(e,n,r){var o=this.localIdeographFontFamily;if(o&&this._doesCharSupportLocalGlyph(r)){var i=e.tinySDF;if(!i){var a="400";/bold/i.test(n)?a="900":/medium/i.test(n)?a="500":/light/i.test(n)&&(a="200"),i=e.tinySDF=new _.TinySDF(24,3,8,.25,o,a)}return{id:r,bitmap:new t.AlphaImage({width:30,height:30},i.draw(String.fromCharCode(r))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},_.loadGlyphRange=function(e,n,r,o,i){var a=256*n,s=a+255,l=o.transformRequest(o.normalizeGlyphsURL(r).replace("{fontstack}",e).replace("{range}",a+"-"+s),t.ResourceType.Glyphs);t.getArrayBuffer(l,(function(e,n){if(e)i(e);else if(n){for(var r={},o=0,a=t.parseGlyphPBF(n);o<a.length;o+=1){var s=a[o];r[s.id]=s}i(null,r)}}))},_.TinySDF=h;var b=function(){this.specification=t.styleSpec.light.position};b.prototype.possiblyEvaluate=function(e,n){return t.sphericalToCartesian(e.expression.evaluate(n))},b.prototype.interpolate=function(e,n,r){return{x:t.number(e.x,n.x,r),y:t.number(e.y,n.y,r),z:t.number(e.z,n.z,r)}};var x=new t.Properties({anchor:new t.DataConstantProperty(t.styleSpec.light.anchor),position:new b,color:new t.DataConstantProperty(t.styleSpec.light.color),intensity:new t.DataConstantProperty(t.styleSpec.light.intensity)}),w=function(e){function n(n){e.call(this),this._transitionable=new t.Transitionable(x),this.setLight(n),this._transitioning=this._transitionable.untransitioned()}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.getLight=function(){return this._transitionable.serialize()},n.prototype.setLight=function(e,n){if(void 0===n&&(n={}),!this._validate(t.validateLight,e,n))for(var r in e){var o=e[r];t.endsWith(r,"-transition")?this._transitionable.setTransition(r.slice(0,-"-transition".length),o):this._transitionable.setValue(r,o)}},n.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},n.prototype.hasTransition=function(){return this._transitioning.hasTransition()},n.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},n.prototype._validate=function(e,n,r){return(!r||!1!==r.validate)&&t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:t.styleSpec})))},n}(t.Evented),E=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};E.prototype.getDash=function(t,e){var n=t.join(",")+String(e);return this.dashEntry[n]||(this.dashEntry[n]=this.addDash(t,e)),this.dashEntry[n]},E.prototype.getDashRanges=function(t,e,n){var r=[],o=t.length%2==1?-t[t.length-1]*n:0,i=t[0]*n,a=!0;r.push({left:o,right:i,isDash:a,zeroLength:0===t[0]});for(var s=t[0],l=1;l<t.length;l++){var u=t[l];r.push({left:o=s*n,right:i=(s+=u)*n,isDash:a=!a,zeroLength:0===u})}return r},E.prototype.addRoundDash=function(t,e,n){for(var r=e/2,o=-n;o<=n;o++)for(var i=this.width*(this.nextRow+n+o),a=0,s=t[a],l=0;l<this.width;l++){l/s.right>1&&(s=t[++a]);var u=Math.abs(l-s.left),c=Math.abs(l-s.right),p=Math.min(u,c),f=void 0,h=o/n*(r+1);if(s.isDash){var d=r-Math.abs(h);f=Math.sqrt(p*p+d*d)}else f=r-Math.sqrt(p*p+h*h);this.data[i+l]=Math.max(0,Math.min(255,f+128))}},E.prototype.addRegularDash=function(t){for(var e=t.length-1;e>=0;--e){var n=t[e],r=t[e+1];n.zeroLength?t.splice(e,1):r&&r.isDash===n.isDash&&(r.left=n.left,t.splice(e,1))}var o=t[0],i=t[t.length-1];o.isDash===i.isDash&&(o.left=i.left-this.width,i.right=o.right+this.width);for(var a=this.width*this.nextRow,s=0,l=t[s],u=0;u<this.width;u++){u/l.right>1&&(l=t[++s]);var c=Math.abs(u-l.left),p=Math.abs(u-l.right),f=Math.min(c,p);this.data[a+u]=Math.max(0,Math.min(255,(l.isDash?f:-f)+128))}},E.prototype.addDash=function(e,n){var r=n?7:0,o=2*r+1;if(this.nextRow+o>this.height)return t.warnOnce("LineAtlas out of space"),null;for(var i=0,a=0;a<e.length;a++)i+=e[a];if(0!==i){var s=this.width/i,l=this.getDashRanges(e,this.width,s);n?this.addRoundDash(l,s,r):this.addRegularDash(l)}var u={y:(this.nextRow+r+.5)/this.height,height:2*r/this.height,width:i};return this.nextRow+=o,this.dirty=!0,u},E.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.ALPHA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.width,this.height,0,e.ALPHA,e.UNSIGNED_BYTE,this.data))};var S=function e(n,r){this.workerPool=n,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var o=this.workerPool.acquire(this.id),i=0;i<o.length;i++){var a=new e.Actor(o[i],r,this.id);a.name="Worker "+i,this.actors.push(a)}};function k(e,n,r){var o=function(o,i){if(o)return r(o);if(i){var a=t.pick(t.extend(i,e),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);i.vector_layers&&(a.vectorLayers=i.vector_layers,a.vectorLayerIds=a.vectorLayers.map((function(t){return t.id}))),a.tiles=n.canonicalizeTileset(a,e.url),r(null,a)}};return e.url?t.getJSON(n.transformRequest(n.normalizeSourceURL(e.url),t.ResourceType.Source),o):t.browser.frame((function(){return o(null,e)}))}S.prototype.broadcast=function(e,n,r){t.asyncAll(this.actors,(function(t,r){t.send(e,n,r)}),r=r||function(){})},S.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},S.prototype.remove=function(){this.actors.forEach((function(t){t.remove()})),this.actors=[],this.workerPool.release(this.id)},S.Actor=t.Actor;var T=function(e,n,r){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=n||0,this.maxzoom=r||24};T.prototype.validateBounds=function(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},T.prototype.contains=function(e){var n=Math.pow(2,e.z),r=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*n),o=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*n),i=Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*n),a=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*n);return e.x>=r&&e.x<i&&e.y>=o&&e.y<a};var C=function(e){function n(n,r,o,i){if(e.call(this),this.id=n,this.dispatcher=o,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(r,["url","scheme","tileSize","promoteId"])),this._options=t.extend({type:"vector"},r),this._collectResourceTiming=r.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(i)}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=k(this._options,this.map._requestManager,(function(n,r){e._tileJSONRequest=null,e._loaded=!0,n?e.fire(new t.ErrorEvent(n)):r&&(t.extend(e,r),r.bounds&&(e.tileBounds=new T(r.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(r.tiles,e.map._requestManager._customAccessToken),t.postMapLoadEvent(r.tiles,e.map._getMapId(),e.map._requestManager._skuToken,e.map._requestManager._customAccessToken),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},n.prototype.onAdd=function(t){this.map=t,this.load()},n.prototype.setSourceProperty=function(t){this._tileJSONRequest&&this._tileJSONRequest.cancel(),t(),this.map.style.sourceCaches[this.id].clearTiles(),this.load()},n.prototype.setTiles=function(t){var e=this;return this.setSourceProperty((function(){e._options.tiles=t})),this},n.prototype.setUrl=function(t){var e=this;return this.setSourceProperty((function(){e.url=t,e._options.url=t})),this},n.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},n.prototype.serialize=function(){return t.extend({},this._options)},n.prototype.loadTile=function(e,n){var r=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),o={request:this.map._requestManager.transformRequest(r,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function i(r,o){return delete e.request,e.aborted?n(null):r&&404!==r.status?n(r):(o&&o.resourceTiming&&(e.resourceTiming=o.resourceTiming),this.map._refreshExpiredTiles&&o&&e.setExpiryData(o),e.loadVectorData(o,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),n(null),void(e.reloadCallback&&(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}o.request.collectResourceTiming=this._collectResourceTiming,e.actor&&"expired"!==e.state?"loading"===e.state?e.reloadCallback=n:e.request=e.actor.send("reloadTile",o,i.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send("loadTile",o,i.bind(this)))},n.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.actor&&t.actor.send("abortTile",{uid:t.uid,type:this.type,source:this.id},void 0)},n.prototype.unloadTile=function(t){t.unloadVectorData(),t.actor&&t.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id},void 0)},n.prototype.hasTransition=function(){return!1},n}(t.Evented),P=function(e){function n(n,r,o,i){e.call(this),this.id=n,this.dispatcher=o,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=t.extend({type:"raster"},r),t.extend(this,t.pick(r,["url","scheme","tileSize"]))}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=k(this._options,this.map._requestManager,(function(n,r){e._tileJSONRequest=null,e._loaded=!0,n?e.fire(new t.ErrorEvent(n)):r&&(t.extend(e,r),r.bounds&&(e.tileBounds=new T(r.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(r.tiles),t.postMapLoadEvent(r.tiles,e.map._getMapId(),e.map._requestManager._skuToken),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.onAdd=function(t){this.map=t,this.load()},n.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},n.prototype.serialize=function(){return t.extend({},this._options)},n.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},n.prototype.loadTile=function(e,n){var r=this,o=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(o,t.ResourceType.Tile),(function(o,i){if(delete e.request,e.aborted)e.state="unloaded",n(null);else if(o)e.state="errored",n(o);else if(i){r.map._refreshExpiredTiles&&e.setExpiryData(i),delete i.cacheControl,delete i.expires;var a=r.map.painter.context,s=a.gl;e.texture=r.map.painter.getTileTexture(i.width),e.texture?e.texture.update(i,{useMipmap:!0}):(e.texture=new t.Texture(a,i,s.RGBA,{useMipmap:!0}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),a.extTextureFilterAnisotropic&&s.texParameterf(s.TEXTURE_2D,a.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,a.extTextureFilterAnisotropicMax)),e.state="loaded",t.cacheEntryPossiblyAdded(r.dispatcher),n(null)}}))},n.prototype.abortTile=function(t,e){t.request&&(t.request.cancel(),delete t.request),e()},n.prototype.unloadTile=function(t,e){t.texture&&this.map.painter.saveTileTexture(t.texture),e()},n.prototype.hasTransition=function(){return!1},n}(t.Evented),I=function(e){function n(n,r,o,i){e.call(this,n,r,o,i),this.type="raster-dem",this.maxzoom=22,this._options=t.extend({type:"raster-dem"},r),this.encoding=r.encoding||"mapbox"}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.serialize=function(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},n.prototype.loadTile=function(e,n){var r=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function o(t,r){t&&(e.state="errored",n(t)),r&&(e.dem=r,e.needsHillshadePrepare=!0,e.state="loaded",n(null))}e.request=t.getImage(this.map._requestManager.transformRequest(r,t.ResourceType.Tile),function(r,i){if(delete e.request,e.aborted)e.state="unloaded",n(null);else if(r)e.state="errored",n(r);else if(i){this.map._refreshExpiredTiles&&e.setExpiryData(i),delete i.cacheControl,delete i.expires;var a=t.window.ImageBitmap&&i instanceof t.window.ImageBitmap&&t.offscreenCanvasSupported()?i:t.browser.getImageData(i,1),s={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:a,encoding:this.encoding};e.actor&&"expired"!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send("loadDEMTile",s,o.bind(this)))}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},n.prototype._getNeighboringTiles=function(e){var n=e.canonical,r=Math.pow(2,n.z),o=(n.x-1+r)%r,i=0===n.x?e.wrap-1:e.wrap,a=(n.x+1+r)%r,s=n.x+1===r?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,i,n.z,o,n.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,n.z,a,n.y).key]={backfilled:!1},n.y>0&&(l[new t.OverscaledTileID(e.overscaledZ,i,n.z,o,n.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,n.z,a,n.y-1).key]={backfilled:!1}),n.y+1<r&&(l[new t.OverscaledTileID(e.overscaledZ,i,n.z,o,n.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,n.z,n.x,n.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,n.z,a,n.y+1).key]={backfilled:!1}),l},n.prototype.unloadTile=function(t){t.demTexture&&this.map.painter.saveTileTexture(t.demTexture),t.fbo&&(t.fbo.destroy(),delete t.fbo),t.dem&&delete t.dem,delete t.neighboringTiles,t.state="unloaded",t.actor&&t.actor.send("removeDEMTile",{uid:t.uid,source:this.id})},n}(P),O=function(e){function n(n,r,o,i){e.call(this),this.id=n,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=o.getActor(),this.setEventedParent(i),this._data=r.data,this._options=t.extend({},r),this._collectResourceTiming=r.collectResourceTiming,this._resourceTiming=[],void 0!==r.maxzoom&&(this.maxzoom=r.maxzoom),r.type&&(this.type=r.type),r.attribution&&(this.attribution=r.attribution),this.promoteId=r.promoteId;var a=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:r.cluster||!1,geojsonVtOptions:{buffer:(void 0!==r.buffer?r.buffer:128)*a,tolerance:(void 0!==r.tolerance?r.tolerance:.375)*a,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:r.lineMetrics||!1,generateId:r.generateId||!1},superclusterOptions:{maxZoom:void 0!==r.clusterMaxZoom?Math.min(r.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,minPoints:Math.max(2,r.clusterMinPoints||2),extent:t.EXTENT,radius:(r.clusterRadius||50)*a,log:!1,generateId:r.generateId||!1},clusterProperties:r.clusterProperties,filter:r.filter},r.workerOptions)}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.load=function(){var e=this;this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(n){if(n)e.fire(new t.ErrorEvent(n));else{var r={dataType:"source",sourceDataType:"metadata"};e._collectResourceTiming&&e._resourceTiming&&e._resourceTiming.length>0&&(r.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event("data",r))}}))},n.prototype.onAdd=function(t){this.map=t,this.load()},n.prototype.setData=function(e){var n=this;return this._data=e,this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(e){if(e)n.fire(new t.ErrorEvent(e));else{var r={dataType:"source",sourceDataType:"content"};n._collectResourceTiming&&n._resourceTiming&&n._resourceTiming.length>0&&(r.resourceTiming=n._resourceTiming,n._resourceTiming=[]),n.fire(new t.Event("data",r))}})),this},n.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e),this},n.prototype.getClusterChildren=function(t,e){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e),this},n.prototype.getClusterLeaves=function(t,e,n,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:n},r),this},n.prototype._updateWorkerData=function(e){var n=this;this._loaded=!1;var r=t.extend({},this.workerOptions),o=this._data;"string"==typeof o?(r.request=this.map._requestManager.transformRequest(t.browser.resolveURL(o),t.ResourceType.Source),r.request.collectResourceTiming=this._collectResourceTiming):r.data=JSON.stringify(o),this.actor.send(this.type+".loadData",r,(function(t,o){n._removed||o&&o.abandoned||(n._loaded=!0,o&&o.resourceTiming&&o.resourceTiming[n.id]&&(n._resourceTiming=o.resourceTiming[n.id].slice(0)),n.actor.send(n.type+".coalesce",{source:r.source},null),e(t))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.loadTile=function(e,n){var r=this,o=e.actor?"reloadTile":"loadTile";e.actor=this.actor,e.request=this.actor.send(o,{type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(function(t,i){return delete e.request,e.unloadVectorData(),e.aborted?n(null):t?n(t):(e.loadVectorData(i,r.map.painter,"reloadTile"===o),n(null))}))},n.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0},n.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})},n.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},n.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},n.prototype.hasTransition=function(){return!1},n}(t.Evented),A=t.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),z=function(e){function n(t,n,r,o){e.call(this),this.id=t,this.dispatcher=r,this.coordinates=n.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(o),this.options=n}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.load=function(e,n){var r=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(o,i){r._loaded=!0,o?r.fire(new t.ErrorEvent(o)):i&&(r.image=i,e&&(r.coordinates=e),n&&n(),r._finishLoading())}))},n.prototype.loaded=function(){return this._loaded},n.prototype.updateImage=function(t){var e=this;return this.image&&t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},n.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})))},n.prototype.onAdd=function(t){this.map=t,this.load()},n.prototype.setCoordinates=function(e){var n=this;this.coordinates=e;var r=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0,s=e;a<s.length;a+=1){var l=s[a];n=Math.min(n,l.x),r=Math.min(r,l.y),o=Math.max(o,l.x),i=Math.max(i,l.y)}var u=Math.max(o-n,i-r),c=Math.max(0,Math.floor(-Math.log(u)/Math.LN2)),p=Math.pow(2,c);return new t.CanonicalTileID(c,Math.floor((n+o)/2*p),Math.floor((r+i)/2*p))}(r),this.minzoom=this.maxzoom=this.tileID.z;var o=r.map((function(t){return n.tileID.getTilePoint(t)._round()}));return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(o[0].x,o[0].y,0,0),this._boundsArray.emplaceBack(o[1].x,o[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(o[3].x,o[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(o[2].x,o[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})),this},n.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&&this.image){var e=this.map.painter.context,n=e.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,A.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(e,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this.tiles){var o=this.tiles[r];"loaded"!==o.state&&(o.state="loaded",o.texture=this.texture)}}},n.prototype.loadTile=function(t,e){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state="errored",e(null))},n.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},n.prototype.hasTransition=function(){return!1},n}(t.Evented),M=function(e){function n(t,n,r,o){e.call(this,t,n,r,o),this.roundZoom=!0,this.type="video",this.options=n}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.load=function(){var e=this;this._loaded=!1;var n=this.options;this.urls=[];for(var r=0,o=n.urls;r<o.length;r+=1)this.urls.push(this.map._requestManager.transformRequest(o[r],t.ResourceType.Source).url);t.getVideo(this.urls,(function(n,r){e._loaded=!0,n?e.fire(new t.ErrorEvent(n)):r&&(e.video=r,e.video.loop=!0,e.video.addEventListener("playing",(function(){e.map.triggerRepaint()})),e.map&&e.video.play(),e._finishLoading())}))},n.prototype.pause=function(){this.video&&this.video.pause()},n.prototype.play=function(){this.video&&this.video.play()},n.prototype.seek=function(e){if(this.video){var n=this.video.seekable;e<n.start(0)||e>n.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+n.start(0)+" and "+n.end(0)+"-second mark."))):this.video.currentTime=e}},n.prototype.getVideo=function(){return this.video},n.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},n.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var e=this.map.painter.context,n=e.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,A.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this.tiles){var o=this.tiles[r];"loaded"!==o.state&&(o.state="loaded",o.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this.video&&!this.video.paused},n}(z),R=function(e){function n(n,r,o,i){e.call(this,n,r,o,i),r.coordinates?Array.isArray(r.coordinates)&&4===r.coordinates.length&&!r.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return"number"!=typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'missing required property "coordinates"'))),r.animate&&"boolean"!=typeof r.animate&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'optional "animate" property must be a boolean value'))),r.canvas?"string"==typeof r.canvas||r.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'missing required property "canvas"'))),this.options=r,this.animate=void 0===r.animate||r.animate}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},n.prototype.getCanvas=function(){return this.canvas},n.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()},n.prototype.onRemove=function(){this.pause()},n.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var n=this.map.painter.context,r=n.gl;for(var o in this.boundsBuffer||(this.boundsBuffer=n.createVertexBuffer(this._boundsArray,A.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(n,this.canvas,r.RGBA,{premultiply:!0}),this.tiles){var i=this.tiles[o];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this._playing},n.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t<e.length;t+=1){var n=e[t];if(isNaN(n)||n<=0)return!0}return!1},n}(z),D={vector:C,raster:P,"raster-dem":I,geojson:O,video:M,image:z,canvas:R};function L(e,n){var r=t.identity([]);return t.translate(r,r,[1,1,0]),t.scale(r,r,[.5*e.width,.5*e.height,1]),t.multiply(r,r,e.calculatePosMatrix(n.toUnwrapped()))}function j(t,e,n,r,o,i){var a=function(t,e,n){if(t)for(var r=0,o=t;r<o.length;r+=1){var i=e[o[r]];if(i&&i.source===n&&"fill-extrusion"===i.type)return!0}else for(var a in e){var s=e[a];if(s.source===n&&"fill-extrusion"===s.type)return!0}return!1}(o&&o.layers,e,t.id),s=i.maxPitchScaleFactor(),l=t.tilesIn(r,s,a);l.sort(B);for(var u=[],c=0,p=l;c<p.length;c+=1){var f=p[c];u.push({wrappedTileID:f.tileID.wrapped().key,queryResults:f.tile.queryRenderedFeatures(e,n,t._state,f.queryGeometry,f.cameraQueryGeometry,f.scale,o,i,s,L(t.transform,f.tileID))})}var h=function(t){for(var e={},n={},r=0,o=t;r<o.length;r+=1){var i=o[r],a=i.queryResults,s=i.wrappedTileID,l=n[s]=n[s]||{};for(var u in a)for(var c=a[u],p=l[u]=l[u]||{},f=e[u]=e[u]||[],h=0,d=c;h<d.length;h+=1){var m=d[h];p[m.featureIndex]||(p[m.featureIndex]=!0,f.push(m))}}return e}(u);for(var d in h)h[d].forEach((function(e){var n=e.feature,r=t.getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=r}));return h}function B(t,e){var n=t.tileID,r=e.tileID;return n.overscaledZ-r.overscaledZ||n.canonical.y-r.canonical.y||n.wrap-r.wrap||n.canonical.x-r.canonical.x}var N=function(t,e){this.max=t,this.onRemove=e,this.reset()};N.prototype.reset=function(){for(var t in this.data)for(var e=0,n=this.data[t];e<n.length;e+=1){var r=n[e];r.timeout&&clearTimeout(r.timeout),this.onRemove(r.value)}return this.data={},this.order=[],this},N.prototype.add=function(t,e,n){var r=this,o=t.wrapped().key;void 0===this.data[o]&&(this.data[o]=[]);var i={value:e,timeout:void 0};if(void 0!==n&&(i.timeout=setTimeout((function(){r.remove(t,i)}),n)),this.data[o].push(i),this.order.push(o),this.order.length>this.max){var a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this},N.prototype.has=function(t){return t.wrapped().key in this.data},N.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},N.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},N.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},N.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},N.prototype.remove=function(t,e){if(!this.has(t))return this;var n=t.wrapped().key,r=void 0===e?0:this.data[n].indexOf(e),o=this.data[n][r];return this.data[n].splice(r,1),o.timeout&&clearTimeout(o.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(o.value),this.order.splice(this.order.indexOf(n),1),this},N.prototype.setMaxSize=function(t){for(this.max=t;this.order.length>this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this},N.prototype.filter=function(t){var e=[];for(var n in this.data)for(var r=0,o=this.data[n];r<o.length;r+=1){var i=o[r];t(i.value)||e.push(i)}for(var a=0,s=e;a<s.length;a+=1){var l=s[a];this.remove(l.value.tileID,l)}};var F=function(t,e,n){this.context=t;var r=t.gl;this.buffer=r.createBuffer(),this.dynamicDraw=Boolean(n),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),r.bufferData(r.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};F.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},F.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},F.prototype.destroy=function(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var U={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},V=function(t,e,n,r){this.length=e.length,this.attributes=n,this.itemSize=e.bytesPerElement,this.dynamicDraw=r,this.context=t;var o=t.gl;this.buffer=o.createBuffer(),t.bindVertexBuffer.set(this.buffer),o.bufferData(o.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?o.DYNAMIC_DRAW:o.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};V.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},V.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},V.prototype.enableAttributes=function(t,e){for(var n=0;n<this.attributes.length;n++){var r=e.attributes[this.attributes[n].name];void 0!==r&&t.enableVertexAttribArray(r)}},V.prototype.setVertexAttribPointers=function(t,e,n){for(var r=0;r<this.attributes.length;r++){var o=this.attributes[r],i=e.attributes[o.name];void 0!==i&&t.vertexAttribPointer(i,o.components,t[U[o.type]],!1,this.itemSize,o.offset+this.itemSize*(n||0))}},V.prototype.destroy=function(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var q=function(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};q.prototype.get=function(){return this.current},q.prototype.set=function(t){},q.prototype.getDefault=function(){return this.default},q.prototype.setDefault=function(){this.set(this.default)};var G=function(e){function n(){e.apply(this,arguments)}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.getDefault=function(){return t.Color.transparent},n.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},n}(q),W=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return 1},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.clearDepth(t),this.current=t,this.dirty=!1)},e}(q),Z=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return 0},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.clearStencil(t),this.current=t,this.dirty=!1)},e}(q),H=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return[!0,!0,!0,!0]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),X=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!0},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.depthMask(t),this.current=t,this.dirty=!1)},e}(q),$=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return 255},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.stencilMask(t),this.current=t,this.dirty=!1)},e}(q),K=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},e.prototype.set=function(t){var e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&&(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)},e}(q),Y=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&&(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)},e}(q),J=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}},e}(q),Q=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return[0,1]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),tt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}},e}(q),et=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.LESS},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.depthFunc(t),this.current=t,this.dirty=!1)},e}(q),nt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}},e}(q),rt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.ONE,t.ZERO]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),ot=function(e){function n(){e.apply(this,arguments)}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.getDefault=function(){return t.Color.transparent},n.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},n}(q),it=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.FUNC_ADD},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.blendEquation(t),this.current=t,this.dirty=!1)},e}(q),at=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}},e}(q),st=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.BACK},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.cullFace(t),this.current=t,this.dirty=!1)},e}(q),lt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.CCW},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.frontFace(t),this.current=t,this.dirty=!1)},e}(q),ut=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.useProgram(t),this.current=t,this.dirty=!1)},e}(q),ct=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.TEXTURE0},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.activeTexture(t),this.current=t,this.dirty=!1)},e}(q),pt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),ft=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},e}(q),ht=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(q),dt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}},e}(q),mt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},e}(q),yt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1},e}(q),gt=function(t){function e(e){t.call(this,e),this.vao=e.extVertexArrayObject}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){this.vao&&(t!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)},e}(q),vt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return 4},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},e}(q),_t=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),bt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),xt=function(t){function e(e,n){t.call(this,e),this.context=e,this.parent=n}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e}(q),wt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.setDirty=function(){this.dirty=!0},e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e}(xt),Et=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(xt),St=function(t,e,n,r){this.context=t,this.width=e,this.height=n;var o=this.framebuffer=t.gl.createFramebuffer();this.colorAttachment=new wt(t,o),r&&(this.depthAttachment=new Et(t,o))};St.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();if(e&&t.deleteTexture(e),this.depthAttachment){var n=this.depthAttachment.get();n&&t.deleteRenderbuffer(n)}t.deleteFramebuffer(this.framebuffer)};var kt=function(t,e,n){this.func=t,this.mask=e,this.range=n};kt.ReadOnly=!1,kt.ReadWrite=!0,kt.disabled=new kt(519,kt.ReadOnly,[0,1]);var Tt=function(t,e,n,r,o,i){this.test=t,this.ref=e,this.mask=n,this.fail=r,this.depthFail=o,this.pass=i};Tt.disabled=new Tt({func:519,mask:0},0,0,7680,7680,7680);var Ct=function(t,e,n){this.blendFunction=t,this.blendColor=e,this.mask=n};Ct.disabled=new Ct(Ct.Replace=[1,0],t.Color.transparent,[!1,!1,!1,!1]),Ct.unblended=new Ct(Ct.Replace,t.Color.transparent,[!0,!0,!0,!0]),Ct.alphaBlended=new Ct([1,771],t.Color.transparent,[!0,!0,!0,!0]);var Pt=function(t,e,n){this.enable=t,this.mode=e,this.frontFace=n};Pt.disabled=new Pt(!1,1029,2305),Pt.backCCW=new Pt(!0,1029,2305);var It=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new G(this),this.clearDepth=new W(this),this.clearStencil=new Z(this),this.colorMask=new H(this),this.depthMask=new X(this),this.stencilMask=new $(this),this.stencilFunc=new K(this),this.stencilOp=new Y(this),this.stencilTest=new J(this),this.depthRange=new Q(this),this.depthTest=new tt(this),this.depthFunc=new et(this),this.blend=new nt(this),this.blendFunc=new rt(this),this.blendColor=new ot(this),this.blendEquation=new it(this),this.cullFace=new at(this),this.cullFaceSide=new st(this),this.frontFace=new lt(this),this.program=new ut(this),this.activeTexture=new ct(this),this.viewport=new pt(this),this.bindFramebuffer=new ft(this),this.bindRenderbuffer=new ht(this),this.bindTexture=new dt(this),this.bindVertexBuffer=new mt(this),this.bindElementBuffer=new yt(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new gt(this),this.pixelStoreUnpack=new vt(this),this.pixelStoreUnpackPremultiplyAlpha=new _t(this),this.pixelStoreUnpackFlipY=new bt(this),this.extTextureFilterAnisotropic=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&(t.getExtension("OES_texture_half_float_linear"),this.extRenderToTextureHalfFloat=t.getExtension("EXT_color_buffer_half_float")),this.extTimerQuery=t.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=t.getParameter(t.MAX_TEXTURE_SIZE)};It.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},It.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},It.prototype.createIndexBuffer=function(t,e){return new F(this,t,e)},It.prototype.createVertexBuffer=function(t,e,n){return new V(this,t,e,n)},It.prototype.createRenderbuffer=function(t,e,n){var r=this.gl,o=r.createRenderbuffer();return this.bindRenderbuffer.set(o),r.renderbufferStorage(r.RENDERBUFFER,t,e,n),this.bindRenderbuffer.set(null),o},It.prototype.createFramebuffer=function(t,e,n){return new St(this,t,e,n)},It.prototype.clear=function(t){var e=t.color,n=t.depth,r=this.gl,o=0;e&&(o|=r.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==n&&(o|=r.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(n),this.depthMask.set(!0)),r.clear(o)},It.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},It.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},It.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},It.prototype.setColorMode=function(e){t.deepEqual(e.blendFunction,Ct.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)},It.prototype.unbindVAO=function(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)};var Ot=function(e){function n(n,r,o){var i=this;e.call(this),this.id=n,this.dispatcher=o,this.on("data",(function(t){"source"===t.dataType&&"metadata"===t.sourceDataType&&(i._sourceLoaded=!0),i._sourceLoaded&&!i._paused&&"source"===t.dataType&&"content"===t.sourceDataType&&(i.reload(),i.transform&&i.update(i.transform))})),this.on("error",(function(){i._sourceErrored=!0})),this._source=function(e,n,r,o){var i=new D[n.type](e,n,r,o);if(i.id!==e)throw new Error("Expected Source id to be "+e+" instead of "+i.id);return t.bindAll(["load","abort","unload","serialize","prepare"],i),i}(n,r,o,this),this._tiles={},this._cache=new N(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new t.SourceFeatureState}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&&this._source.onAdd&&this._source.onAdd(t)},n.prototype.onRemove=function(t){this._source&&this._source.onRemove&&this._source.onRemove(t)},n.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var t in this._tiles){var e=this._tiles[t];if("loaded"!==e.state&&"errored"!==e.state)return!1}return!0},n.prototype.getSource=function(){return this._source},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform)}},n.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},n.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,(function(){}))},n.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,(function(){}))},n.prototype.serialize=function(){return this._source.serialize()},n.prototype.prepare=function(t){for(var e in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var n=this._tiles[e];n.upload(t),n.prepare(this.map.style.imageManager)}},n.prototype.getIds=function(){return t.values(this._tiles).map((function(t){return t.tileID})).sort(At).map((function(t){return t.key}))},n.prototype.getRenderableIds=function(e){var n=this,r=[];for(var o in this._tiles)this._isIdRenderable(o,e)&&r.push(this._tiles[o]);return e?r.sort((function(e,r){var o=e.tileID,i=r.tileID,a=new t.Point(o.canonical.x,o.canonical.y)._rotate(n.transform.angle),s=new t.Point(i.canonical.x,i.canonical.y)._rotate(n.transform.angle);return o.overscaledZ-i.overscaledZ||s.y-a.y||s.x-a.x})).map((function(t){return t.tileID.key})):r.map((function(t){return t.tileID})).sort(At).map((function(t){return t.key}))},n.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&&this._isIdRenderable(e.tileID.key)},n.prototype._isIdRenderable=function(t,e){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]&&(e||!this._tiles[t].holdingForFade())},n.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)"errored"!==this._tiles[t].state&&this._reloadTile(t,"reloading")},n.prototype._reloadTile=function(t,e){var n=this._tiles[t];n&&("loading"!==n.state&&(n.state=e),this._loadTile(n,this._tileLoaded.bind(this,n,t,e)))},n.prototype._tileLoaded=function(e,n,r,o){if(o)return e.state="errored",void(404!==o.status?this._source.fire(new t.ErrorEvent(o,{tile:e})):this.update(this.transform));e.timeAdded=t.browser.now(),"expired"===r&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(n,e),"raster-dem"===this.getSource().type&&e.dem&&this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new t.Event("data",{dataType:"source",tile:e,coord:e.tileID}))},n.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),n=0;n<e.length;n++){var r=e[n];if(t.neighboringTiles&&t.neighboringTiles[r]){var o=this.getTileByID(r);i(t,o),i(o,t)}}function i(t,e){t.needsHillshadePrepare=!0;var n=e.tileID.canonical.x-t.tileID.canonical.x,r=e.tileID.canonical.y-t.tileID.canonical.y,o=Math.pow(2,t.tileID.canonical.z),i=e.tileID.key;0===n&&0===r||Math.abs(r)>1||(Math.abs(n)>1&&(1===Math.abs(n+o)?n+=o:1===Math.abs(n-o)&&(n-=o)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,n,r),t.neighboringTiles&&t.neighboringTiles[i]&&(t.neighboringTiles[i].backfilled=!0)))}},n.prototype.getTile=function(t){return this.getTileByID(t.key)},n.prototype.getTileByID=function(t){return this._tiles[t]},n.prototype._retainLoadedChildren=function(t,e,n,r){for(var o in this._tiles){var i=this._tiles[o];if(!(r[o]||!i.hasData()||i.tileID.overscaledZ<=e||i.tileID.overscaledZ>n)){for(var a=i.tileID;i&&i.tileID.overscaledZ>e+1;){var s=i.tileID.scaledTo(i.tileID.overscaledZ-1);(i=this._tiles[s.key])&&i.hasData()&&(a=s)}for(var l=a;l.overscaledZ>e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){r[a.key]=a;break}}}},n.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var n=this._loadedParentTiles[t.key];return n&&n.tileID.overscaledZ>=e?n:null}for(var r=t.overscaledZ-1;r>=e;r--){var o=t.scaledTo(r),i=this._getLoadedTile(o);if(i)return i}},n.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&&e.hasData()?e:this._cache.getByKey(t.wrapped().key)},n.prototype.updateCacheSize=function(t){var e=Math.ceil(t.width/this._source.tileSize)+1,n=Math.ceil(t.height/this._source.tileSize)+1,r=Math.floor(e*n*5),o="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(o)},n.prototype.handleWrapJump=function(t){var e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){var n={};for(var r in this._tiles){var o=this._tiles[r];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+e),n[o.tileID.key]=o}for(var i in this._tiles=n,this._timers)clearTimeout(this._timers[i]),delete this._timers[i];for(var a in this._tiles)this._setTileReloadTimer(a,this._tiles[a])}},n.prototype.update=function(e){var r=this;if(this.transform=e,this._sourceLoaded&&!this._paused){var o;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?o=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(o=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(o=o.filter((function(t){return r._source.hasTile(t)})))):o=[];var i=e.coveringZoomLevel(this._source),a=Math.max(i-n.maxOverzooming,this._source.minzoom),s=Math.max(i+n.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(o,i);if(zt(this._source.type)){for(var u={},c={},p=0,f=Object.keys(l);p<f.length;p+=1){var h=f[p],d=l[h],m=this._tiles[h];if(m&&!(m.fadeEndTime&&m.fadeEndTime<=t.browser.now())){var y=this.findLoadedParent(d,a);y&&(this._addTile(y.tileID),u[y.tileID.key]=y.tileID),c[h]=d}}for(var g in this._retainLoadedChildren(c,i,s,l),u)l[g]||(this._coveredTiles[g]=!0,l[g]=u[g])}for(var v in l)this._tiles[v].clearFadeHold();for(var _=0,b=t.keysDifference(this._tiles,l);_<b.length;_+=1){var x=b[_],w=this._tiles[x];w.hasSymbolBuckets&&!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&&!w.symbolFadeFinished()||this._removeTile(x)}this._updateLoadedParentTileCache()}},n.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&&this._removeTile(t)},n.prototype._updateRetainedTiles=function(t,e){for(var r={},o={},i=Math.max(e-n.maxOverzooming,this._source.minzoom),a=Math.max(e+n.maxUnderzooming,this._source.minzoom),s={},l=0,u=t;l<u.length;l+=1){var c=u[l],p=this._addTile(c);r[c.key]=c,p.hasData()||e<this._source.maxzoom&&(s[c.key]=c)}this._retainLoadedChildren(s,e,a,r);for(var f=0,h=t;f<h.length;f+=1){var d=h[f],m=this._tiles[d.key];if(!m.hasData()){if(e+1>this._source.maxzoom){var y=d.children(this._source.maxzoom)[0],g=this.getTile(y);if(g&&g.hasData()){r[y.key]=y;continue}}else{var v=d.children(this._source.maxzoom);if(r[v[0].key]&&r[v[1].key]&&r[v[2].key]&&r[v[3].key])continue}for(var _=m.wasRequested(),b=d.overscaledZ-1;b>=i;--b){var x=d.scaledTo(b);if(o[x.key])break;if(o[x.key]=!0,!(m=this.getTile(x))&&_&&(m=this._addTile(x)),m&&(r[x.key]=x,_=m.wasRequested(),m.hasData()))break}}}return r},n.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],n=void 0,r=this._tiles[t].tileID;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){n=this._loadedParentTiles[r.key];break}e.push(r.key);var o=r.scaledTo(r.overscaledZ-1);if(n=this._getLoadedTile(o))break;r=o}for(var i=0,a=e;i<a.length;i+=1)this._loadedParentTiles[a[i]]=n}},n.prototype._addTile=function(e){var n=this._tiles[e.key];if(n)return n;(n=this._cache.getAndRemove(e))&&(this._setTileReloadTimer(e.key,n),n.tileID=e,this._state.initializeTileState(n,this.map?this.map.painter:null),this._cacheTimers[e.key]&&(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,n)));var r=Boolean(n);return r||(n=new t.Tile(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(n,this._tileLoaded.bind(this,n,e.key,n.state))),n?(n.uses++,this._tiles[e.key]=n,r||this._source.fire(new t.Event("dataloading",{tile:n,coord:n.tileID,dataType:"source"})),n):null},n.prototype._setTileReloadTimer=function(t,e){var n=this;t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);var r=e.getExpiryTimeout();r&&(this._timers[t]=setTimeout((function(){n._reloadTile(t,"expired"),delete n._timers[t]}),r))},n.prototype._removeTile=function(t){var e=this._tiles[t];e&&(e.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses>0||(e.hasData()&&"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},n.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},n.prototype.tilesIn=function(e,n,r){var o=this,i=[],a=this.transform;if(!a)return i;for(var s=r?a.getCameraQueryGeometry(e):e,l=e.map((function(t){return a.pointCoordinate(t)})),u=s.map((function(t){return a.pointCoordinate(t)})),c=this.getIds(),p=1/0,f=1/0,h=-1/0,d=-1/0,m=0,y=u;m<y.length;m+=1){var g=y[m];p=Math.min(p,g.x),f=Math.min(f,g.y),h=Math.max(h,g.x),d=Math.max(d,g.y)}for(var v=function(e){var r=o._tiles[c[e]];if(!r.holdingForFade()){var s=r.tileID,m=Math.pow(2,a.zoom-r.tileID.overscaledZ),y=n*r.queryPadding*t.EXTENT/r.tileSize/m,g=[s.getTilePoint(new t.MercatorCoordinate(p,f)),s.getTilePoint(new t.MercatorCoordinate(h,d))];if(g[0].x-y<t.EXTENT&&g[0].y-y<t.EXTENT&&g[1].x+y>=0&&g[1].y+y>=0){var v=l.map((function(t){return s.getTilePoint(t)})),_=u.map((function(t){return s.getTilePoint(t)}));i.push({tile:r,tileID:s,queryGeometry:v,cameraQueryGeometry:_,scale:m})}}},_=0;_<c.length;_++)v(_);return i},n.prototype.getVisibleCoordinates=function(t){for(var e=this,n=this.getRenderableIds(t).map((function(t){return e._tiles[t].tileID})),r=0,o=n;r<o.length;r+=1){var i=o[r];i.posMatrix=this.transform.calculatePosMatrix(i.toUnwrapped())}return n},n.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(zt(this._source.type))for(var e in this._tiles){var n=this._tiles[e];if(void 0!==n.fadeEndTime&&n.fadeEndTime>=t.browser.now())return!0}return!1},n.prototype.setFeatureState=function(t,e,n){this._state.updateState(t=t||"_geojsonTileLayer",e,n)},n.prototype.removeFeatureState=function(t,e,n){this._state.removeFeatureState(t=t||"_geojsonTileLayer",e,n)},n.prototype.getFeatureState=function(t,e){return this._state.getState(t=t||"_geojsonTileLayer",e)},n.prototype.setDependencies=function(t,e,n){var r=this._tiles[t];r&&r.setDependencies(e,n)},n.prototype.reloadTilesForDependencies=function(t,e){for(var n in this._tiles)this._tiles[n].hasDependency(t,e)&&this._reloadTile(n,"reloading");this._cache.filter((function(n){return!n.hasDependency(t,e)}))},n}(t.Evented);function At(t,e){var n=Math.abs(2*t.wrap)-+(t.wrap<0),r=Math.abs(2*e.wrap)-+(e.wrap<0);return t.overscaledZ-e.overscaledZ||r-n||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function zt(t){return"raster"===t||"image"===t||"video"===t}function Mt(){return new t.window.Worker(Ko.workerUrl)}Ot.maxOverzooming=10,Ot.maxUnderzooming=3;var Rt="mapboxgl_preloaded_worker_pool",Dt=function(){this.active={}};Dt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length<Dt.workerCount;)this.workers.push(new Mt);return this.active[t]=!0,this.workers.slice()},Dt.prototype.release=function(t){delete this.active[t],0===this.numActive()&&(this.workers.forEach((function(t){t.terminate()})),this.workers=null)},Dt.prototype.isPreloaded=function(){return!!this.active[Rt]},Dt.prototype.numActive=function(){return Object.keys(this.active).length};var Lt,jt=Math.floor(t.browser.hardwareConcurrency/2);function Bt(){return Lt||(Lt=new Dt),Lt}function Nt(e,n){var r={};for(var o in e)"ref"!==o&&(r[o]=e[o]);return t.refProperties.forEach((function(t){t in n&&(r[t]=n[t])})),r}function Ft(t){t=t.slice();for(var e=Object.create(null),n=0;n<t.length;n++)e[t[n].id]=t[n];for(var r=0;r<t.length;r++)"ref"in t[r]&&(t[r]=Nt(t[r],e[t[r].ref]));return t}Dt.workerCount=Math.max(Math.min(jt,6),1);var Ut={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight"};function Vt(t,e,n){n.push({command:Ut.addSource,args:[t,e[t]]})}function qt(t,e,n){e.push({command:Ut.removeSource,args:[t]}),n[t]=!0}function Gt(t,e,n,r){qt(t,n,r),Vt(t,e,n)}function Wt(e,n,r){var o;for(o in e[r])if(e[r].hasOwnProperty(o)&&"data"!==o&&!t.deepEqual(e[r][o],n[r][o]))return!1;for(o in n[r])if(n[r].hasOwnProperty(o)&&"data"!==o&&!t.deepEqual(e[r][o],n[r][o]))return!1;return!0}function Zt(e,n,r,o,i,a){var s;for(s in n=n||{},e=e||{})e.hasOwnProperty(s)&&(t.deepEqual(e[s],n[s])||r.push({command:a,args:[o,s,n[s],i]}));for(s in n)n.hasOwnProperty(s)&&!e.hasOwnProperty(s)&&(t.deepEqual(e[s],n[s])||r.push({command:a,args:[o,s,n[s],i]}))}function Ht(t){return t.id}function Xt(t,e){return t[e.id]=e,t}var $t=function(t,e){this.reset(t,e)};$t.prototype.reset=function(t,e){this.points=t||[],this._distances=[0];for(var n=1;n<this.points.length;n++)this._distances[n]=this._distances[n-1]+this.points[n].dist(this.points[n-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding},$t.prototype.lerp=function(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);for(var n=1,r=this._distances[n],o=e*this.paddedLength+this.padding;r<o&&n<this._distances.length;)r=this._distances[++n];var i=n-1,a=this._distances[i],s=r-a,l=s>0?(o-a)/s:0;return this.points[i].mult(1-l).add(this.points[n].mult(l))};var Kt=function(t,e,n){var r=this.boxCells=[],o=this.circleCells=[];this.xCellCount=Math.ceil(t/n),this.yCellCount=Math.ceil(e/n);for(var i=0;i<this.xCellCount*this.yCellCount;i++)r.push([]),o.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};function Yt(e,n,r,o,i){var a=t.create();return n?(t.scale(a,a,[1/i,1/i,1]),r||t.rotateZ(a,a,o.angle)):t.multiply(a,o.labelPlaneMatrix,e),a}function Jt(e,n,r,o,i){if(n){var a=t.clone(e);return t.scale(a,a,[i,i,1]),r||t.rotateZ(a,a,-o.angle),a}return o.glCoordMatrix}function Qt(e,n){var r=[e.x,e.y,0,1];ce(r,r,n);var o=r[3];return{point:new t.Point(r[0]/o,r[1]/o),signedDistanceFromCamera:o}}function te(t,e){return.5+t/e*.5}function ee(t,e){var n=t[0]/t[3],r=t[1]/t[3];return n>=-e[0]&&n<=e[0]&&r>=-e[1]&&r<=e[1]}function ne(e,n,r,o,i,a,s,l){var u=o?e.textSizeData:e.iconSizeData,c=t.evaluateSizeForZoom(u,r.transform.zoom),p=[256/r.width*2+1,256/r.height*2+1],f=o?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;f.clear();for(var h=e.lineVertexArray,d=o?e.text.placedSymbolArray:e.icon.placedSymbolArray,m=r.transform.width/r.transform.height,y=!1,g=0;g<d.length;g++){var v=d.get(g);if(v.hidden||v.writingMode===t.WritingMode.vertical&&!y)ue(v.numGlyphs,f);else{y=!1;var _=[v.anchorX,v.anchorY,0,1];if(t.transformMat4(_,_,n),ee(_,p)){var b=te(r.transform.cameraToCenterDistance,_[3]),x=t.evaluateSizeForFeature(u,c,v),w=s?x/b:x*b,E=new t.Point(v.anchorX,v.anchorY),S=Qt(E,i).point,k={},T=ie(v,w,!1,l,n,i,a,e.glyphOffsetArray,h,f,S,E,k,m);y=T.useVertical,(T.notEnoughRoom||y||T.needsFlipping&&ie(v,w,!0,l,n,i,a,e.glyphOffsetArray,h,f,S,E,k,m).notEnoughRoom)&&ue(v.numGlyphs,f)}else ue(v.numGlyphs,f)}}o?e.text.dynamicLayoutVertexBuffer.updateData(f):e.icon.dynamicLayoutVertexBuffer.updateData(f)}function re(t,e,n,r,o,i,a,s,l,u,c){var p=s.glyphStartIndex+s.numGlyphs,f=s.lineStartIndex,h=s.lineStartIndex+s.lineLength,d=e.getoffsetX(s.glyphStartIndex),m=e.getoffsetX(p-1),y=se(t*d,n,r,o,i,a,s.segment,f,h,l,u,c);if(!y)return null;var g=se(t*m,n,r,o,i,a,s.segment,f,h,l,u,c);return g?{first:y,last:g}:null}function oe(e,n,r,o){return e===t.WritingMode.horizontal&&Math.abs(r.y-n.y)>Math.abs(r.x-n.x)*o?{useVertical:!0}:(e===t.WritingMode.vertical?n.y<r.y:n.x>r.x)?{needsFlipping:!0}:null}function ie(e,n,r,o,i,a,s,l,u,c,p,f,h,d){var m,y=n/24,g=e.lineOffsetX*y,v=e.lineOffsetY*y;if(e.numGlyphs>1){var _=e.glyphStartIndex+e.numGlyphs,b=e.lineStartIndex,x=e.lineStartIndex+e.lineLength,w=re(y,l,g,v,r,p,f,e,u,a,h);if(!w)return{notEnoughRoom:!0};var E=Qt(w.first.point,s).point,S=Qt(w.last.point,s).point;if(o&&!r){var k=oe(e.writingMode,E,S,d);if(k)return k}m=[w.first];for(var T=e.glyphStartIndex+1;T<_-1;T++)m.push(se(y*l.getoffsetX(T),g,v,r,p,f,e.segment,b,x,u,a,h));m.push(w.last)}else{if(o&&!r){var C=Qt(f,i).point,P=e.lineStartIndex+e.segment+1,I=new t.Point(u.getx(P),u.gety(P)),O=Qt(I,i),A=O.signedDistanceFromCamera>0?O.point:ae(f,I,C,1,i),z=oe(e.writingMode,C,A,d);if(z)return z}var M=se(y*l.getoffsetX(e.glyphStartIndex),g,v,r,p,f,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,u,a,h);if(!M)return{notEnoughRoom:!0};m=[M]}for(var R=0,D=m;R<D.length;R+=1){var L=D[R];t.addDynamicAttributes(c,L.point,L.angle)}return{}}function ae(t,e,n,r,o){var i=Qt(t.add(t.sub(e)._unit()),o).point,a=n.sub(i);return n.add(a._mult(r/a.mag()))}function se(e,n,r,o,i,a,s,l,u,c,p,f){var h=o?e-n:e+n,d=h>0?1:-1,m=0;o&&(d*=-1,m=Math.PI),d<0&&(m+=Math.PI);for(var y=d>0?l+s:l+s+1,g=i,v=i,_=0,b=0,x=Math.abs(h),w=[];_+b<=x;){if((y+=d)<l||y>=u)return null;if(v=g,w.push(g),void 0===(g=f[y])){var E=new t.Point(c.getx(y),c.gety(y)),S=Qt(E,p);if(S.signedDistanceFromCamera>0)g=f[y]=S.point;else{var k=y-d;g=ae(0===_?a:new t.Point(c.getx(k),c.gety(k)),E,v,x-_+1,p)}}_+=b,b=v.dist(g)}var T=(x-_)/b,C=g.sub(v),P=C.mult(T)._add(v);P._add(C._unit()._perp()._mult(r*d));var I=m+Math.atan2(g.y-v.y,g.x-v.x);return w.push(P),{point:P,angle:I,path:w}}Kt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Kt.prototype.insert=function(t,e,n,r,o){this._forEachCell(e,n,r,o,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(o)},Kt.prototype.insertCircle=function(t,e,n,r){this._forEachCell(e-r,n-r,e+r,n+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(n),this.circles.push(r)},Kt.prototype._insertBoxCell=function(t,e,n,r,o,i){this.boxCells[o].push(i)},Kt.prototype._insertCircleCell=function(t,e,n,r,o,i){this.circleCells[o].push(i)},Kt.prototype._query=function(t,e,n,r,o,i){if(n<0||t>this.width||r<0||e>this.height)return!o&&[];var a=[];if(t<=0&&e<=0&&this.width<=n&&this.height<=r){if(o)return!0;for(var s=0;s<this.boxKeys.length;s++)a.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l<this.circleKeys.length;l++){var u=this.circles[3*l],c=this.circles[3*l+1],p=this.circles[3*l+2];a.push({key:this.circleKeys[l],x1:u-p,y1:c-p,x2:u+p,y2:c+p})}return i?a.filter(i):a}return this._forEachCell(t,e,n,r,this._queryCell,a,{hitTest:o,seenUids:{box:{},circle:{}}},i),o?a.length>0:a},Kt.prototype._queryCircle=function(t,e,n,r,o){var i=t-n,a=t+n,s=e-n,l=e+n;if(a<0||i>this.width||l<0||s>this.height)return!r&&[];var u=[];return this._forEachCell(i,s,a,l,this._queryCellCircle,u,{hitTest:r,circle:{x:t,y:e,radius:n},seenUids:{box:{},circle:{}}},o),r?u.length>0:u},Kt.prototype.query=function(t,e,n,r,o){return this._query(t,e,n,r,!1,o)},Kt.prototype.hitTest=function(t,e,n,r,o){return this._query(t,e,n,r,!0,o)},Kt.prototype.hitTestCircle=function(t,e,n,r){return this._queryCircle(t,e,n,!0,r)},Kt.prototype._queryCell=function(t,e,n,r,o,i,a,s){var l=a.seenUids,u=this.boxCells[o];if(null!==u)for(var c=this.bboxes,p=0,f=u;p<f.length;p+=1){var h=f[p];if(!l.box[h]){l.box[h]=!0;var d=4*h;if(t<=c[d+2]&&e<=c[d+3]&&n>=c[d+0]&&r>=c[d+1]&&(!s||s(this.boxKeys[h]))){if(a.hitTest)return i.push(!0),!0;i.push({key:this.boxKeys[h],x1:c[d],y1:c[d+1],x2:c[d+2],y2:c[d+3]})}}}var m=this.circleCells[o];if(null!==m)for(var y=this.circles,g=0,v=m;g<v.length;g+=1){var _=v[g];if(!l.circle[_]){l.circle[_]=!0;var b=3*_;if(this._circleAndRectCollide(y[b],y[b+1],y[b+2],t,e,n,r)&&(!s||s(this.circleKeys[_]))){if(a.hitTest)return i.push(!0),!0;var x=y[b],w=y[b+1],E=y[b+2];i.push({key:this.circleKeys[_],x1:x-E,y1:w-E,x2:x+E,y2:w+E})}}}},Kt.prototype._queryCellCircle=function(t,e,n,r,o,i,a,s){var l=a.circle,u=a.seenUids,c=this.boxCells[o];if(null!==c)for(var p=this.bboxes,f=0,h=c;f<h.length;f+=1){var d=h[f];if(!u.box[d]){u.box[d]=!0;var m=4*d;if(this._circleAndRectCollide(l.x,l.y,l.radius,p[m+0],p[m+1],p[m+2],p[m+3])&&(!s||s(this.boxKeys[d])))return i.push(!0),!0}}var y=this.circleCells[o];if(null!==y)for(var g=this.circles,v=0,_=y;v<_.length;v+=1){var b=_[v];if(!u.circle[b]){u.circle[b]=!0;var x=3*b;if(this._circlesCollide(g[x],g[x+1],g[x+2],l.x,l.y,l.radius)&&(!s||s(this.circleKeys[b])))return i.push(!0),!0}}},Kt.prototype._forEachCell=function(t,e,n,r,o,i,a,s){for(var l=this._convertToXCellCoord(t),u=this._convertToYCellCoord(e),c=this._convertToXCellCoord(n),p=this._convertToYCellCoord(r),f=l;f<=c;f++)for(var h=u;h<=p;h++)if(o.call(this,t,e,n,r,this.xCellCount*h+f,i,a,s))return},Kt.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},Kt.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},Kt.prototype._circlesCollide=function(t,e,n,r,o,i){var a=r-t,s=o-e,l=n+i;return l*l>a*a+s*s},Kt.prototype._circleAndRectCollide=function(t,e,n,r,o,i,a){var s=(i-r)/2,l=Math.abs(t-(r+s));if(l>s+n)return!1;var u=(a-o)/2,c=Math.abs(e-(o+u));if(c>u+n)return!1;if(l<=s||c<=u)return!0;var p=l-s,f=c-u;return p*p+f*f<=n*n};var le=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ue(t,e){for(var n=0;n<t;n++){var r=e.length;e.resize(r+4),e.float32.set(le,3*r)}}function ce(t,e,n){var r=e[0],o=e[1];return t[0]=n[0]*r+n[4]*o+n[12],t[1]=n[1]*r+n[5]*o+n[13],t[3]=n[3]*r+n[7]*o+n[15],t}var pe=function(t,e,n){void 0===e&&(e=new Kt(t.width+200,t.height+200,25)),void 0===n&&(n=new Kt(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=n,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200};function fe(e,n,r){return n*(t.EXTENT/(e.tileSize*Math.pow(2,r-e.tileID.overscaledZ)))}pe.prototype.placeCollisionBox=function(t,e,n,r,o){var i=this.projectAndGetPerspectiveRatio(r,t.anchorPointX,t.anchorPointY),a=n*i.perspectiveRatio,s=t.x1*a+i.point.x,l=t.y1*a+i.point.y,u=t.x2*a+i.point.x,c=t.y2*a+i.point.y;return!this.isInsideGrid(s,l,u,c)||!e&&this.grid.hitTest(s,l,u,c,o)?{box:[],offscreen:!1}:{box:[s,l,u,c],offscreen:this.isOffscreen(s,l,u,c)}},pe.prototype.placeCollisionCircles=function(e,n,r,o,i,a,s,l,u,c,p,f,h){var d=[],m=new t.Point(n.anchorX,n.anchorY),y=Qt(m,a),g=te(this.transform.cameraToCenterDistance,y.signedDistanceFromCamera),v=(c?i/g:i*g)/t.ONE_EM,_=Qt(m,s).point,b=re(v,o,n.lineOffsetX*v,n.lineOffsetY*v,!1,_,m,n,r,s,{}),x=!1,w=!1,E=!0;if(b){for(var S=.5*f*g+h,k=new t.Point(-100,-100),T=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),C=new $t,P=b.first,I=b.last,O=[],A=P.path.length-1;A>=1;A--)O.push(P.path[A]);for(var z=1;z<I.path.length;z++)O.push(I.path[z]);var M=2.5*S;if(l){var R=O.map((function(t){return Qt(t,l)}));O=R.some((function(t){return t.signedDistanceFromCamera<=0}))?[]:R.map((function(t){return t.point}))}var D=[];if(O.length>0){for(var L=O[0].clone(),j=O[0].clone(),B=1;B<O.length;B++)L.x=Math.min(L.x,O[B].x),L.y=Math.min(L.y,O[B].y),j.x=Math.max(j.x,O[B].x),j.y=Math.max(j.y,O[B].y);D=L.x>=k.x&&j.x<=T.x&&L.y>=k.y&&j.y<=T.y?[O]:j.x<k.x||L.x>T.x||j.y<k.y||L.y>T.y?[]:t.clipLine([O],k.x,k.y,T.x,T.y)}for(var N=0,F=D;N<F.length;N+=1){var U;C.reset(F[N],.25*S),U=C.length<=.5*S?1:Math.ceil(C.paddedLength/M)+1;for(var V=0;V<U;V++){var q=V/Math.max(U-1,1),G=C.lerp(q),W=G.x+100,Z=G.y+100;d.push(W,Z,S,0);var H=W-S,X=Z-S,$=W+S,K=Z+S;if(E=E&&this.isOffscreen(H,X,$,K),w=w||this.isInsideGrid(H,X,$,K),!e&&this.grid.hitTestCircle(W,Z,S,p)&&(x=!0,!u))return{circles:[],offscreen:!1,collisionDetected:x}}}}return{circles:!u&&x||!w?[]:d,offscreen:E,collisionDetected:x}},pe.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};for(var n=[],r=1/0,o=1/0,i=-1/0,a=-1/0,s=0,l=e;s<l.length;s+=1){var u=l[s],c=new t.Point(u.x+100,u.y+100);r=Math.min(r,c.x),o=Math.min(o,c.y),i=Math.max(i,c.x),a=Math.max(a,c.y),n.push(c)}for(var p={},f={},h=0,d=this.grid.query(r,o,i,a).concat(this.ignoredGrid.query(r,o,i,a));h<d.length;h+=1){var m=d[h],y=m.key;if(void 0===p[y.bucketInstanceId]&&(p[y.bucketInstanceId]={}),!p[y.bucketInstanceId][y.featureIndex]){var g=[new t.Point(m.x1,m.y1),new t.Point(m.x2,m.y1),new t.Point(m.x2,m.y2),new t.Point(m.x1,m.y2)];t.polygonIntersectsPolygon(n,g)&&(p[y.bucketInstanceId][y.featureIndex]=!0,void 0===f[y.bucketInstanceId]&&(f[y.bucketInstanceId]=[]),f[y.bucketInstanceId].push(y.featureIndex))}}return f},pe.prototype.insertCollisionBox=function(t,e,n,r,o){(e?this.ignoredGrid:this.grid).insert({bucketInstanceId:n,featureIndex:r,collisionGroupID:o},t[0],t[1],t[2],t[3])},pe.prototype.insertCollisionCircles=function(t,e,n,r,o){for(var i=e?this.ignoredGrid:this.grid,a={bucketInstanceId:n,featureIndex:r,collisionGroupID:o},s=0;s<t.length;s+=4)i.insertCircle(a,t[s],t[s+1],t[s+2])},pe.prototype.projectAndGetPerspectiveRatio=function(e,n,r){var o=[n,r,0,1];return ce(o,o,e),{point:new t.Point((o[0]/o[3]+1)/2*this.transform.width+100,(-o[1]/o[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/o[3]*.5}},pe.prototype.isOffscreen=function(t,e,n,r){return n<100||t>=this.screenRightBoundary||r<100||e>this.screenBottomBoundary},pe.prototype.isInsideGrid=function(t,e,n,r){return n>=0&&t<this.gridRightBoundary&&r>=0&&e<this.gridBottomBoundary},pe.prototype.getViewportMatrix=function(){var e=t.identity([]);return t.translate(e,e,[-100,-100,0]),e};var he=function(t,e,n,r){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):r&&n?1:0,this.placed=n};he.prototype.isHidden=function(){return 0===this.opacity&&!this.placed};var de=function(t,e,n,r,o){this.text=new he(t?t.text:null,e,n,o),this.icon=new he(t?t.icon:null,e,r,o)};de.prototype.isHidden=function(){return this.text.isHidden()&&this.icon.isHidden()};var me=function(t,e,n){this.text=t,this.icon=e,this.skipFade=n},ye=function(){this.invProjMatrix=t.create(),this.viewportMatrix=t.create(),this.circles=[]},ge=function(t,e,n,r,o){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=n,this.bucketIndex=r,this.tileID=o},ve=function(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}};function _e(e,n,r,o,i){var a=t.getAnchorAlignment(e),s=-(a.horizontalAlign-.5)*n,l=-(a.verticalAlign-.5)*r,u=t.evaluateVariableOffset(e,o);return new t.Point(s+u[0]*i,l+u[1]*i)}function be(e,n,r,o,i,a){var s=e.x1,l=e.x2,u=e.y1,c=e.y2,p=e.anchorPointX,f=e.anchorPointY,h=new t.Point(n,r);return o&&h._rotate(i?a:-a),{x1:s+h.x,y1:u+h.y,x2:l+h.x,y2:c+h.y,anchorPointX:p,anchorPointY:f}}ve.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]};var xe=function(t,e,n,r){this.transform=t.clone(),this.collisionIndex=new pe(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new ve(n),this.collisionCircleArrays={},this.prevPlacement=r,r&&(r.prevPlacement=void 0),this.placedOrientations={}};function we(t,e,n,r,o){t.emplaceBack(e?1:0,n?1:0,r||0,o||0),t.emplaceBack(e?1:0,n?1:0,r||0,o||0),t.emplaceBack(e?1:0,n?1:0,r||0,o||0),t.emplaceBack(e?1:0,n?1:0,r||0,o||0)}xe.prototype.getBucketParts=function(e,n,r,o){var i=r.getBucket(n),a=r.latestFeatureIndex;if(i&&a&&n.id===i.layerIds[0]){var s=r.collisionBoxArray,l=i.layers[0].layout,u=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),c=r.tileSize/t.EXTENT,p=this.transform.calculatePosMatrix(r.tileID.toUnwrapped()),f="map"===l.get("text-pitch-alignment"),h="map"===l.get("text-rotation-alignment"),d=fe(r,1,this.transform.zoom),m=Yt(p,f,h,this.transform,d),y=null;if(f){var g=Jt(p,f,h,this.transform,d);y=t.multiply([],this.transform.labelPlaneMatrix,g)}this.retainedQueryData[i.bucketInstanceId]=new ge(i.bucketInstanceId,a,i.sourceLayerIndex,i.index,r.tileID);var v={bucket:i,layout:l,posMatrix:p,textLabelPlaneMatrix:m,labelToScreenMatrix:y,scale:u,textPixelRatio:c,holdingForFade:r.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(i.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(i.sourceID)};if(o)for(var _=0,b=i.sortKeyRanges;_<b.length;_+=1){var x=b[_];e.push({sortKey:x.sortKey,symbolInstanceStart:x.symbolInstanceStart,symbolInstanceEnd:x.symbolInstanceEnd,parameters:v})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:i.symbolInstances.length,parameters:v})}},xe.prototype.attemptAnchorPlacement=function(t,e,n,r,o,i,a,s,l,u,c,p,f,h,d){var m,y=[p.textOffset0,p.textOffset1],g=_e(t,n,r,y,o),v=this.collisionIndex.placeCollisionBox(be(e,g.x,g.y,i,a,this.transform.angle),c,s,l,u.predicate);if(!d||0!==this.collisionIndex.placeCollisionBox(be(d,g.x,g.y,i,a,this.transform.angle),c,s,l,u.predicate).box.length)return v.box.length>0?(this.prevPlacement&&this.prevPlacement.variableOffsets[p.crossTileID]&&this.prevPlacement.placements[p.crossTileID]&&this.prevPlacement.placements[p.crossTileID].text&&(m=this.prevPlacement.variableOffsets[p.crossTileID].anchor),this.variableOffsets[p.crossTileID]={textOffset:y,width:n,height:r,anchor:t,textBoxScale:o,prevAnchor:m},this.markUsedJustification(f,t,p,h),f.allowVerticalPlacement&&(this.markUsedOrientation(f,h,p),this.placedOrientations[p.crossTileID]=h),{shift:g,placedGlyphBoxes:v}):void 0},xe.prototype.placeLayerBucketPart=function(e,n,r){var o=this,i=e.parameters,a=i.bucket,s=i.layout,l=i.posMatrix,u=i.textLabelPlaneMatrix,c=i.labelToScreenMatrix,p=i.textPixelRatio,f=i.holdingForFade,h=i.collisionBoxArray,d=i.partiallyEvaluatedTextSize,m=i.collisionGroup,y=s.get("text-optional"),g=s.get("icon-optional"),v=s.get("text-allow-overlap"),_=s.get("icon-allow-overlap"),b="map"===s.get("text-rotation-alignment"),x="map"===s.get("text-pitch-alignment"),w="none"!==s.get("icon-text-fit"),E="viewport-y"===s.get("symbol-z-order"),S=v&&(_||!a.hasIconData()||g),k=_&&(v||!a.hasTextData()||y);!a.collisionArrays&&h&&a.deserializeCollisionBoxes(h);var T=function(e,i){if(!n[e.crossTileID])if(f)o.placements[e.crossTileID]=new me(!1,!1,!1);else{var h,E=!1,T=!1,C=!0,P=null,I={box:null,offscreen:null},O={box:null,offscreen:null},A=null,z=null,M=0,R=0,D=0;i.textFeatureIndex?M=i.textFeatureIndex:e.useRuntimeCollisionCircles&&(M=e.featureIndex),i.verticalTextFeatureIndex&&(R=i.verticalTextFeatureIndex);var L=i.textBox;if(L){var j=function(n){var r=t.WritingMode.horizontal;if(a.allowVerticalPlacement&&!n&&o.prevPlacement){var i=o.prevPlacement.placedOrientations[e.crossTileID];i&&(o.placedOrientations[e.crossTileID]=i,o.markUsedOrientation(a,r=i,e))}return r},B=function(n,r){if(a.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&i.verticalTextBox)for(var o=0,s=a.writingModes;o<s.length&&(s[o]===t.WritingMode.vertical?(I=r(),O=I):I=n(),!(I&&I.box&&I.box.length));o+=1);else I=n()};if(s.get("text-variable-anchor")){var N=s.get("text-variable-anchor");if(o.prevPlacement&&o.prevPlacement.variableOffsets[e.crossTileID]){var F=o.prevPlacement.variableOffsets[e.crossTileID];N.indexOf(F.anchor)>0&&(N=N.filter((function(t){return t!==F.anchor}))).unshift(F.anchor)}var U=function(t,n,r){for(var i=t.x2-t.x1,s=t.y2-t.y1,u=e.textBoxScale,c=w&&!_?n:null,f={box:[],offscreen:!1},h=v?2*N.length:N.length,d=0;d<h;++d){var y=o.attemptAnchorPlacement(N[d%N.length],t,i,s,u,b,x,p,l,m,d>=N.length,e,a,r,c);if(y&&(f=y.placedGlyphBoxes)&&f.box&&f.box.length){E=!0,P=y.shift;break}}return f};B((function(){return U(L,i.iconBox,t.WritingMode.horizontal)}),(function(){var n=i.verticalTextBox;return a.allowVerticalPlacement&&!(I&&I.box&&I.box.length)&&e.numVerticalGlyphVertices>0&&n?U(n,i.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),I&&(E=I.box,C=I.offscreen);var V=j(I&&I.box);if(!E&&o.prevPlacement){var q=o.prevPlacement.variableOffsets[e.crossTileID];q&&(o.variableOffsets[e.crossTileID]=q,o.markUsedJustification(a,q.anchor,e,V))}}else{var G=function(t,n){var r=o.collisionIndex.placeCollisionBox(t,v,p,l,m.predicate);return r&&r.box&&r.box.length&&(o.markUsedOrientation(a,n,e),o.placedOrientations[e.crossTileID]=n),r};B((function(){return G(L,t.WritingMode.horizontal)}),(function(){var n=i.verticalTextBox;return a.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&n?G(n,t.WritingMode.vertical):{box:null,offscreen:null}})),j(I&&I.box&&I.box.length)}}if(E=(h=I)&&h.box&&h.box.length>0,C=h&&h.offscreen,e.useRuntimeCollisionCircles){var W=a.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),Z=t.evaluateSizeForFeature(a.textSizeData,d,W),H=s.get("text-padding");A=o.collisionIndex.placeCollisionCircles(v,W,a.lineVertexArray,a.glyphOffsetArray,Z,l,u,c,r,x,m.predicate,e.collisionCircleDiameter,H),E=v||A.circles.length>0&&!A.collisionDetected,C=C&&A.offscreen}if(i.iconFeatureIndex&&(D=i.iconFeatureIndex),i.iconBox){var X=function(t){var e=w&&P?be(t,P.x,P.y,b,x,o.transform.angle):t;return o.collisionIndex.placeCollisionBox(e,_,p,l,m.predicate)};T=O&&O.box&&O.box.length&&i.verticalIconBox?(z=X(i.verticalIconBox)).box.length>0:(z=X(i.iconBox)).box.length>0,C=C&&z.offscreen}var $=y||0===e.numHorizontalGlyphVertices&&0===e.numVerticalGlyphVertices,K=g||0===e.numIconVertices;if($||K?K?$||(T=T&&E):E=T&&E:T=E=T&&E,E&&h&&h.box&&o.collisionIndex.insertCollisionBox(h.box,s.get("text-ignore-placement"),a.bucketInstanceId,O&&O.box&&R?R:M,m.ID),T&&z&&o.collisionIndex.insertCollisionBox(z.box,s.get("icon-ignore-placement"),a.bucketInstanceId,D,m.ID),A&&(E&&o.collisionIndex.insertCollisionCircles(A.circles,s.get("text-ignore-placement"),a.bucketInstanceId,M,m.ID),r)){var Y=a.bucketInstanceId,J=o.collisionCircleArrays[Y];void 0===J&&(J=o.collisionCircleArrays[Y]=new ye);for(var Q=0;Q<A.circles.length;Q+=4)J.circles.push(A.circles[Q+0]),J.circles.push(A.circles[Q+1]),J.circles.push(A.circles[Q+2]),J.circles.push(A.collisionDetected?1:0)}o.placements[e.crossTileID]=new me(E||S,T||k,C||a.justReloaded),n[e.crossTileID]=!0}};if(E)for(var C=a.getSortedSymbolIndexes(this.transform.angle),P=C.length-1;P>=0;--P){var I=C[P];T(a.symbolInstances.get(I),a.collisionArrays[I])}else for(var O=e.symbolInstanceStart;O<e.symbolInstanceEnd;O++)T(a.symbolInstances.get(O),a.collisionArrays[O]);if(r&&a.bucketInstanceId in this.collisionCircleArrays){var A=this.collisionCircleArrays[a.bucketInstanceId];t.invert(A.invProjMatrix,l),A.viewportMatrix=this.collisionIndex.getViewportMatrix()}a.justReloaded=!1},xe.prototype.markUsedJustification=function(e,n,r,o){var i;i=o===t.WritingMode.vertical?r.verticalPlacedTextSymbolIndex:{left:r.leftJustifiedTextSymbolIndex,center:r.centerJustifiedTextSymbolIndex,right:r.rightJustifiedTextSymbolIndex}[t.getAnchorJustification(n)];for(var a=0,s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex,r.verticalPlacedTextSymbolIndex];a<s.length;a+=1){var l=s[a];l>=0&&(e.text.placedSymbolArray.get(l).crossTileID=i>=0&&l!==i?0:r.crossTileID)}},xe.prototype.markUsedOrientation=function(e,n,r){for(var o=n===t.WritingMode.horizontal||n===t.WritingMode.horizontalOnly?n:0,i=n===t.WritingMode.vertical?n:0,a=0,s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];a<s.length;a+=1)e.text.placedSymbolArray.get(s[a]).placedOrientation=o;r.verticalPlacedTextSymbolIndex&&(e.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=i)},xe.prototype.commit=function(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;var e=this.prevPlacement,n=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;var r=e?e.symbolFadeChange(t):1,o=e?e.opacities:{},i=e?e.variableOffsets:{},a=e?e.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],u=o[s];u?(this.opacities[s]=new de(u,r,l.text,l.icon),n=n||l.text!==u.text.placed||l.icon!==u.icon.placed):(this.opacities[s]=new de(null,r,l.text,l.icon,l.skipFade),n=n||l.text||l.icon)}for(var c in o){var p=o[c];if(!this.opacities[c]){var f=new de(p,r,!1,!1);f.isHidden()||(this.opacities[c]=f,n=n||p.text.placed||p.icon.placed)}}for(var h in i)this.variableOffsets[h]||!this.opacities[h]||this.opacities[h].isHidden()||(this.variableOffsets[h]=i[h]);for(var d in a)this.placedOrientations[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.placedOrientations[d]=a[d]);n?this.lastPlacementChangeTime=t:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)},xe.prototype.updateLayerOpacities=function(t,e){for(var n={},r=0,o=e;r<o.length;r+=1){var i=o[r],a=i.getBucket(t);a&&i.latestFeatureIndex&&t.id===a.layerIds[0]&&this.updateBucketOpacities(a,n,i.collisionBoxArray)}},xe.prototype.updateBucketOpacities=function(e,n,r){var o=this;e.hasTextData()&&e.text.opacityVertexArray.clear(),e.hasIconData()&&e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();var i=e.layers[0].layout,a=new de(null,0,!1,!1,!0),s=i.get("text-allow-overlap"),l=i.get("icon-allow-overlap"),u=i.get("text-variable-anchor"),c="map"===i.get("text-rotation-alignment"),p="map"===i.get("text-pitch-alignment"),f="none"!==i.get("icon-text-fit"),h=new de(null,0,s&&(l||!e.hasIconData()||i.get("icon-optional")),l&&(s||!e.hasTextData()||i.get("text-optional")),!0);!e.collisionArrays&&r&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(r);for(var d=function(t,e,n){for(var r=0;r<e/4;r++)t.opacityVertexArray.emplaceBack(n)},m=function(r){var i=e.symbolInstances.get(r),s=i.numHorizontalGlyphVertices,l=i.numVerticalGlyphVertices,m=i.crossTileID,y=o.opacities[m];n[m]?y=a:y||(o.opacities[m]=y=h),n[m]=!0;var g=i.numIconVertices>0,v=o.placedOrientations[i.crossTileID],_=v===t.WritingMode.vertical,b=v===t.WritingMode.horizontal||v===t.WritingMode.horizontalOnly;if(s>0||l>0){var x=Oe(y.text);d(e.text,s,_?Ae:x),d(e.text,l,b?Ae:x);var w=y.text.isHidden();[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach((function(t){t>=0&&(e.text.placedSymbolArray.get(t).hidden=w||_?1:0)})),i.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(i.verticalPlacedTextSymbolIndex).hidden=w||b?1:0);var E=o.variableOffsets[i.crossTileID];E&&o.markUsedJustification(e,E.anchor,i,v);var S=o.placedOrientations[i.crossTileID];S&&(o.markUsedJustification(e,"left",i,S),o.markUsedOrientation(e,S,i))}if(g){var k=Oe(y.icon),T=!(f&&i.verticalPlacedIconSymbolIndex&&_);i.placedIconSymbolIndex>=0&&(d(e.icon,i.numIconVertices,T?k:Ae),e.icon.placedSymbolArray.get(i.placedIconSymbolIndex).hidden=y.icon.isHidden()),i.verticalPlacedIconSymbolIndex>=0&&(d(e.icon,i.numVerticalIconVertices,T?Ae:k),e.icon.placedSymbolArray.get(i.verticalPlacedIconSymbolIndex).hidden=y.icon.isHidden())}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var C=e.collisionArrays[r];if(C){var P=new t.Point(0,0);if(C.textBox||C.verticalTextBox){var I=!0;if(u){var O=o.variableOffsets[m];O?(P=_e(O.anchor,O.width,O.height,O.textOffset,O.textBoxScale),c&&P._rotate(p?o.transform.angle:-o.transform.angle)):I=!1}C.textBox&&we(e.textCollisionBox.collisionVertexArray,y.text.placed,!I||_,P.x,P.y),C.verticalTextBox&&we(e.textCollisionBox.collisionVertexArray,y.text.placed,!I||b,P.x,P.y)}var A=Boolean(!b&&C.verticalIconBox);C.iconBox&&we(e.iconCollisionBox.collisionVertexArray,y.icon.placed,A,f?P.x:0,f?P.y:0),C.verticalIconBox&&we(e.iconCollisionBox.collisionVertexArray,y.icon.placed,!A,f?P.x:0,f?P.y:0)}}},y=0;y<e.symbolInstances.length;y++)m(y);if(e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){var g=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=g.invProjMatrix,e.placementViewportMatrix=g.viewportMatrix,e.collisionCircleArray=g.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}},xe.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},xe.prototype.zoomAdjustment=function(t){return Math.max(0,(this.transform.zoom-t)/1.5)},xe.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime<this.fadeDuration},xe.prototype.stillRecent=function(t,e){var n=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*n>t},xe.prototype.setStale=function(){this.stale=!0};var Ee=Math.pow(2,25),Se=Math.pow(2,24),ke=Math.pow(2,17),Te=Math.pow(2,16),Ce=Math.pow(2,9),Pe=Math.pow(2,8),Ie=Math.pow(2,1);function Oe(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;var e=t.placed?1:0,n=Math.floor(127*t.opacity);return n*Ee+e*Se+n*ke+e*Te+n*Ce+e*Pe+n*Ie+e}var Ae=0,ze=function(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&void 0!==t.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};ze.prototype.continuePlacement=function(t,e,n,r,o){for(var i=this._bucketParts;this._currentTileIndex<t.length;)if(e.getBucketParts(i,r,t[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,o())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,i.sort((function(t,e){return t.sortKey-e.sortKey})));this._currentPartIndex<i.length;)if(e.placeLayerBucketPart(i[this._currentPartIndex],this._seenCrossTileIDs,n),this._currentPartIndex++,o())return!0;return!1};var Me=function(t,e,n,r,o,i,a){this.placement=new xe(t,o,i,a),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=n,this._showCollisionBoxes=r,this._done=!1};Me.prototype.isDone=function(){return this._done},Me.prototype.continuePlacement=function(e,n,r){for(var o=this,i=t.browser.now(),a=function(){var e=t.browser.now()-i;return!o._forceFullPlacement&&e>2};this._currentPlacementIndex>=0;){var s=n[e[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=l)&&(!s.maxzoom||s.maxzoom>l)){if(this._inProgressLayer||(this._inProgressLayer=new ze(s)),this._inProgressLayer.continuePlacement(r[s.source],this.placement,this._showCollisionBoxes,s,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Me.prototype.commit=function(t){return this.placement.commit(t),this.placement};var Re=512/t.EXTENT/2,De=function(t,e,n){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=n;for(var r=0;r<e.length;r++){var o=e.get(r),i=o.key;this.indexedSymbolInstances[i]||(this.indexedSymbolInstances[i]=[]),this.indexedSymbolInstances[i].push({crossTileID:o.crossTileID,coord:this.getScaledCoordinates(o,t)})}};De.prototype.getScaledCoordinates=function(e,n){var r=Re/Math.pow(2,n.canonical.z-this.tileID.canonical.z);return{x:Math.floor((n.canonical.x*t.EXTENT+e.anchorX)*r),y:Math.floor((n.canonical.y*t.EXTENT+e.anchorY)*r)}},De.prototype.findMatches=function(t,e,n){for(var r=this.tileID.canonical.z<e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),o=0;o<t.length;o++){var i=t.get(o);if(!i.crossTileID){var a=this.indexedSymbolInstances[i.key];if(a)for(var s=this.getScaledCoordinates(i,e),l=0,u=a;l<u.length;l+=1){var c=u[l];if(Math.abs(c.coord.x-s.x)<=r&&Math.abs(c.coord.y-s.y)<=r&&!n[c.crossTileID]){n[c.crossTileID]=!0,i.crossTileID=c.crossTileID;break}}}}};var Le=function(){this.maxCrossTileID=0};Le.prototype.generate=function(){return++this.maxCrossTileID};var je=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};je.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var n in this.indexes){var r=this.indexes[n],o={};for(var i in r){var a=r[i];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+e),o[a.tileID.key]=a}this.indexes[n]=o}this.lng=t},je.prototype.addBucket=function(t,e,n){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var r=0;r<e.symbolInstances.length;r++)e.symbolInstances.get(r).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var o=this.usedCrossTileIDs[t.overscaledZ];for(var i in this.indexes){var a=this.indexes[i];if(Number(i)>t.overscaledZ)for(var s in a){var l=a[s];l.tileID.isChildOf(t)&&l.findMatches(e.symbolInstances,t,o)}else{var u=a[t.scaledTo(Number(i)).key];u&&u.findMatches(e.symbolInstances,t,o)}}for(var c=0;c<e.symbolInstances.length;c++){var p=e.symbolInstances.get(c);p.crossTileID||(p.crossTileID=n.generate(),o[p.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&&(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new De(t,e.symbolInstances,e.bucketInstanceId),!0},je.prototype.removeBucketCrossTileIDs=function(t,e){for(var n in e.indexedSymbolInstances)for(var r=0,o=e.indexedSymbolInstances[n];r<o.length;r+=1)delete this.usedCrossTileIDs[t][o[r].crossTileID]},je.prototype.removeStaleBuckets=function(t){var e=!1;for(var n in this.indexes){var r=this.indexes[n];for(var o in r)t[r[o].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,r[o]),delete r[o],e=!0)}return e};var Be=function(){this.layerIndexes={},this.crossTileIDs=new Le,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Be.prototype.addLayer=function(t,e,n){var r=this.layerIndexes[t.id];void 0===r&&(r=this.layerIndexes[t.id]=new je);var o=!1,i={};r.handleWrapJump(n);for(var a=0,s=e;a<s.length;a+=1){var l=s[a],u=l.getBucket(t);u&&t.id===u.layerIds[0]&&(u.bucketInstanceId||(u.bucketInstanceId=++this.maxBucketInstanceId),r.addBucket(l.tileID,u,this.crossTileIDs)&&(o=!0),i[u.bucketInstanceId]=!0)}return r.removeStaleBuckets(i)&&(o=!0),o},Be.prototype.pruneUnusedLayers=function(t){var e={};for(var n in t.forEach((function(t){e[t]=!0})),this.layerIndexes)e[n]||delete this.layerIndexes[n]};var Ne=function(e,n){return t.emitValidationErrors(e,n&&n.filter((function(t){return"source.canvas"!==t.identifier})))},Fe=t.pick(Ut,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData"]),Ue=t.pick(Ut,["setCenter","setZoom","setBearing","setP
1itch"]),Ve=function(){var e={},n=t.styleSpec.$version;for(var r in t.styleSpec.$root){var o,i=t.styleSpec.$root[r];i.required&&null!=(o="version"===r?n:"array"===i.type?[]:{})&&(e[r]=o)}return e}(),qe=function(e){function n(r,o){var i=this;void 0===o&&(o={}),e.call(this),this.map=r,this.dispatcher=new S(Bt(),this),this.imageManager=new f,this.imageManager.setEventedParent(this),this.glyphManager=new _(r._requestManager,o.localIdeographFontFamily),this.lineAtlas=new E(256,512),this.crossTileSymbolIndex=new Be,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",t.getReferrer());var a=this;this._rtlTextPluginCallback=n.registerForPluginStateChange((function(e){a.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:e.pluginStatus,pluginURL:e.pluginURL},(function(e,n){if(t.triggerPluginCompletionEvent(e),n&&n.every((function(t){return t})))for(var r in a.sourceCaches)a.sourceCaches[r].reload()}))})),this.on("data",(function(t){if("source"===t.dataType&&"metadata"===t.sourceDataType){var e=i.sourceCaches[t.sourceId];if(e){var n=e.getSource();if(n&&n.vectorLayerIds)for(var r in i._layers){var o=i._layers[r];o.source===n.id&&i._validateLayer(o)}}}}))}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.loadURL=function(e,n){var r=this;void 0===n&&(n={}),this.fire(new t.Event("dataloading",{dataType:"style"}));var o="boolean"==typeof n.validate?n.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,n.accessToken);var i=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(i,(function(e,n){r._request=null,e?r.fire(new t.ErrorEvent(e)):n&&r._load(n,o)}))},n.prototype.loadJSON=function(e,n){var r=this;void 0===n&&(n={}),this.fire(new t.Event("dataloading",{dataType:"style"})),this._request=t.browser.frame((function(){r._request=null,r._load(e,!1!==n.validate)}))},n.prototype.loadEmpty=function(){this.fire(new t.Event("dataloading",{dataType:"style"})),this._load(Ve,!1)},n.prototype._load=function(e,n){if(!n||!Ne(this,t.validateStyle(e))){for(var r in this._loaded=!0,this.stylesheet=e,e.sources)this.addSource(r,e.sources[r],{validate:!1});e.sprite?this._loadSprite(e.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var o=Ft(this.stylesheet.layers);this._order=o.map((function(t){return t.id})),this._layers={},this._serializedLayers={};for(var i=0,a=o;i<a.length;i+=1){var s=a[i];(s=t.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.serialize()}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new t.Event("data",{dataType:"style"})),this.fire(new t.Event("style.load"))}},n.prototype._loadSprite=function(e){var n=this;this._spriteRequest=function(e,n,r){var o,i,a,s=t.browser.devicePixelRatio>1?"@2x":"",l=t.getJSON(n.transformRequest(n.normalizeSpriteURL(e,s,".json"),t.ResourceType.SpriteJSON),(function(t,e){l=null,a||(a=t,o=e,c())})),u=t.getImage(n.transformRequest(n.normalizeSpriteURL(e,s,".png"),t.ResourceType.SpriteImage),(function(t,e){u=null,a||(a=t,i=e,c())}));function c(){if(a)r(a);else if(o&&i){var e=t.browser.getImageData(i),n={};for(var s in o){var l=o[s],u=l.width,c=l.height,p=l.x,f=l.y,h=l.sdf,d=l.pixelRatio,m=l.stretchX,y=l.stretchY,g=l.content,v=new t.RGBAImage({width:u,height:c});t.RGBAImage.copy(e,v,{x:p,y:f},{x:0,y:0},{width:u,height:c}),n[s]={data:v,pixelRatio:d,sdf:h,stretchX:m,stretchY:y,content:g}}r(null,n)}}return{cancel:function(){l&&(l.cancel(),l=null),u&&(u.cancel(),u=null)}}}(e,this.map._requestManager,(function(e,r){if(n._spriteRequest=null,e)n.fire(new t.ErrorEvent(e));else if(r)for(var o in r)n.imageManager.addImage(o,r[o]);n.imageManager.setLoaded(!0),n._availableImages=n.imageManager.listImages(),n.dispatcher.broadcast("setImages",n._availableImages),n.fire(new t.Event("data",{dataType:"style"}))}))},n.prototype._validateLayer=function(e){var n=this.sourceCaches[e.source];if(n){var r=e.sourceLayer;
vendor: 8,734 bytes, line 1
1if(r){var o=n.getSource();("geojson"===o.type||o.vectorLayerIds&&-1===o.vectorLayerIds.indexOf(r))&&this.fire(new t.ErrorEvent(new Error('Source layer "'+r+'" does not exist on source "'+o.id+'" as specified by style layer "'+e.id+'"')))}}},n.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},n.prototype._serializeLayers=function(t){for(var e=[],n=0,r=t;n<r.length;n+=1){var o=this._layers[r[n]];"custom"!==o.type&&e.push(o.serialize())}return e},n.prototype.hasTransitions=function(){if(this.light&&this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},n.prototype._checkLoaded=function(){if(!this._loaded)throw new Error("Style is not done loading")},n.prototype.update=function(e){if(this._loaded){var n=this._changed;if(this._changed){var r=Object.keys(this._updatedLayers),o=Object.keys(this._removedLayers);for(var i in(r.length||o.length)&&this._updateWorkerLayers(r,o),this._updatedSources){var a=this._updatedSources[i];"reload"===a?this._reloadSource(i):"clear"===a&&this._clearSource(i)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates()}var l={};for(var u in this.sourceCaches){var c=this.sourceCaches[u];l[u]=c.used,c.used=!1}for(var p=0,f=this._order;p<f.length;p+=1){var h=this._layers[f[p]];h.recalculate(e,this._availableImages),!h.isHidden(e.zoom)&&h.source&&(this.sourceCaches[h.source].used=!0)}for(var d in l){var m=this.sourceCaches[d];l[d]!==m.used&&m.fire(new t.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:d}))}this.light.recalculate(e),this.z=e.zoom,n&&this.fire(new t.Event("data",{dataType:"style"}))}},n.prototype._updateTilesForChangedImages=function(){var t=Object.keys(this._changedImages);if(t.length){for(var e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies(["icons","patterns"],t);this._changedImages={}}},n.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(t),removedIds:e})},n.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},n.prototype.setState=function(e){var n=this;if(this._checkLoaded(),Ne(this,t.validateStyle(e)))return!1;(e=t.clone$1(e)).layers=Ft(e.layers);var r=function(e,n){if(!e)return[{command:Ut.setStyle,args:[n]}];var r=[];try{if(!t.deepEqual(e.version,n.version))return[{command:Ut.setStyle,args:[n]}];t.deepEqual(e.center,n.center)||r.push({command:Ut.setCenter,args:[n.center]}),t.deepEqual(e.zoom,n.zoom)||r.push({command:Ut.setZoom,args:[n.zoom]}),t.deepEqual(e.bearing,n.bearing)||r.push({command:Ut.setBearing,args:[n.bearing]}),t.deepEqual(e.pitch,n.pitch)||r.push({command:Ut.setPitch,args:[n.pitch]}),t.deepEqual(e.sprite,n.sprite)||r.push({command:Ut.setSprite,args:[n.sprite]}),t.deepEqual(e.glyphs,n.glyphs)||r.push({command:Ut.setGlyphs,args:[n.glyphs]}),t.deepEqual(e.transition,n.transition)||r.push({command:Ut.setTransition,args:[n.transition]}),t.deepEqual(e.light,n.light)||r.push({command:Ut.setLight,args:[n.light]});var o={},i=[];!function(e,n,r,o){var i;for(i in n=n||{},e=e||{})e.hasOwnProperty(i)&&(n.hasOwnProperty(i)||qt(i,r,o));for(i in n)n.hasOwnProperty(i)&&(e.hasOwnProperty(i)?t.deepEqual(e[i],n[i])||("geojson"===e[i].type&&"geojson"===n[i].type&&Wt(e,n,i)?r.push({command:Ut.setGeoJSONSourceData,args:[i,n[i].data]}):Gt(i,n,r,o)):Vt(i,n,r))}(e.sources,n.sources,i,o);var a=[];e.layers&&e.layers.forEach((function(t){o[t.source]?r.push({command:Ut.removeLayer,args:[t.id]}):a.push(t)})),r=r.concat(i),function(e,n,r){n=n||[];var o,i,a,s,l,u,c,p=(e=e||[]).map(Ht),f=n.map(Ht),h=e.reduce(Xt,{}),d=n.reduce(Xt,{}),m=p.slice(),y=Object.create(null);for(o=0,i=0;o<p.length;o++)d.hasOwnProperty(a=p[o])?i++:(r.push({command:Ut.removeLayer,args:[a]}),m.splice(m.indexOf(a,i),1));for(o=0,i=0;o<f.length;o++)m[m.length-1-o]!==(a=f[f.length-1-o])&&(h.hasOwnProperty(a)?(r.push({command:Ut.removeLayer,args:[a]}),m.splice(m.lastIndexOf(a,m.length-i),1)):i++,r.push({command:Ut.addLayer,args:[d[a],u=m[m.length-o]]}),m.splice(m.length-o,0,a),y[a]=!0);for(o=0;o<f.length;o++)if(s=h[a=f[o]],l=d[a],!y[a]&&!t.deepEqual(s,l))if(t.deepEqual(s.source,l.source)&&t.deepEqual(s["source-layer"],l["source-layer"])&&t.deepEqual(s.type,l.type)){for(c in Zt(s.layout,l.layout,r,a,null,Ut.setLayoutProperty),Zt(s.paint,l.paint,r,a,null,Ut.setPaintProperty),t.deepEqual(s.filter,l.filter)||r.push({command:Ut.setFilter,args:[a,l.filter]}),t.deepEqual(s.minzoom,l.minzoom)&&t.deepEqual(s.maxzoom,l.maxzoom)||r.push({command:Ut.setLayerZoomRange,args:[a,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?Zt(s[c],l[c],r,a,c.slice(6),Ut.setPaintProperty):t.deepEqual(s[c],l[c])||r.push({command:Ut.setLayerProperty,args:[a,c,l[c]]}));for(c in l)l.hasOwnProperty(c)&&!s.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?Zt(s[c],l[c],r,a,c.slice(6),Ut.setPaintProperty):t.deepEqual(s[c],l[c])||r.push({command:Ut.setLayerProperty,args:[a,c,l[c]]}))}else r.push({command:Ut.removeLayer,args:[a]}),u=m[m.lastIndexOf(a)+1],r.push({command:Ut.addLayer,args:[l,u]})}(a,n.layers,r)}catch(t){console.warn("Unable to compute style diff:",t),r=[{command:Ut.setStyle,args:[n]}]}return r}(this.serialize(),e).filter((function(t){return!(t.command in Ue)}));if(0===r.length)return!1;var o=r.filter((function(t){return!(t.command in Fe)}));if(o.length>0)throw new Error("Unimplemented: "+o.map((function(t){return t.command})).join(", ")+".");return r.forEach((function(t){"setTransition"!==t.command&&n[t.command].apply(n,t.args)})),this.stylesheet=e,!0},n.prototype.addImage=function(e,n){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(e,n),this._afterImageUpdated(e)},n.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},n.prototype.getImage=function(t){return this.imageManager.getImage(t)},n.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(e),this._afterImageUpdated(e)},n.prototype._afterImageUpdated=function(e){this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new t.Event("data",{dataType:"style"}))},n.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},n.prototype.addSource=function(e,n,r){var o=this;if(void 0===r&&(r={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error("There is already a source with this ID");if(!n.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(n).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(t.validateStyle.source,"sources."+e,n,null,r))){this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);var i=this.sourceCaches[e]=new Ot(e,n,this.dispatcher);i.style=this,i.setEventedParent(this,(function(){return{isSourceLoaded:o.loaded(),source:i.serialize(),sourceId:e}})),i.onAdd(this.map),this._changed=!0}},n.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error("There is no source with this ID");for(var n in this._layers)if(this._layers[n].source===e)return this.fire(new t.ErrorEvent(new Error('Source "'+e+'" cannot be removed while layer "'+n+'" is using it.')));var r=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],r.fire(new t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:e})),r.setEventedParent(null),r.clearTiles(),r.onRemove&&r.onRemove(this.map),this._changed=!0},n.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},n.prototype.getSource=function(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()},n.prototype.addLayer=function(e,n,r){void 0===r&&(r={}),this._checkLoaded();var o=e.id;if(this.getLayer(o))this.fire(new t.ErrorEvent(new Error('Layer with i
1d "'+o+'" already exists on this map')));else{var i;if("custom"===e.type){if(Ne(this,t.validateCustomStyleLayer(e)))return;i=t.createStyleLayer(e)}else{if("object"==typeof e.source&&(this.addSource(o,e.source),e=t.clone$1(e),e=t.extend(e,{source:o})),this._validate(t.validateStyle.layer,"layers."+o,e,{arrayIndex:-1},r))return;i=t.createStyleLayer(e),this._validateLayer(i),i.setEventedParent(this,{layer:{id:o}}),this._serializedLayers[i.id]=i.serialize()}var a=n?this._order.indexOf(n):this._order.length;if(n&&-1===a)this.fire(new t.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.')));else{if(this._order.splice(a,0,o),this._layerOrderChanged=!0,this._layers[o]=i,this._removedLayers[o]&&i.source&&"custom"!==i.type){var s=this._removedLayers[o];delete this._removedLayers[o],s.type!==i.type?this._updatedSources[i.source]="clear":(this._updatedSources[i.source]="reload",this.sourceCaches[i.source].pause())}this._updateLayer(i),i.onAdd&&i.onAdd(this.map)}}},n.prototype.moveLayer=function(e,n){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==n){var r=this._order.indexOf(e);this._order.splice(r,1);var o=n?this._order.indexOf(n):this._order.length;
vendor: 13,287 bytes, line 1
1n&&-1===o?this.fire(new t.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.'))):(this._order.splice(o,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be moved.")))},n.prototype.removeLayer=function(e){this._checkLoaded();var n=this._layers[e];if(n){n.setEventedParent(null);var r=this._order.indexOf(e);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=n,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],n.onRemove&&n.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be removed.")))},n.prototype.getLayer=function(t){return this._layers[t]},n.prototype.hasLayer=function(t){return t in this._layers},n.prototype.setLayerZoomRange=function(e,n,r){this._checkLoaded();var o=this.getLayer(e);o?o.minzoom===n&&o.maxzoom===r||(null!=n&&(o.minzoom=n),null!=r&&(o.maxzoom=r),this._updateLayer(o)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot have zoom extent.")))},n.prototype.setFilter=function(e,n,r){void 0===r&&(r={}),this._checkLoaded();var o=this.getLayer(e);if(o){if(!t.deepEqual(o.filter,n))return null==n?(o.filter=void 0,void this._updateLayer(o)):void(this._validate(t.validateStyle.filter,"layers."+o.id+".filter",n,null,r)||(o.filter=t.clone$1(n),this._updateLayer(o)))}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be filtered.")))},n.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},n.prototype.setLayoutProperty=function(e,n,r,o){void 0===o&&(o={}),this._checkLoaded();var i=this.getLayer(e);i?t.deepEqual(i.getLayoutProperty(n),r)||(i.setLayoutProperty(n,r,o),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getLayoutProperty=function(e,n){var r=this.getLayer(e);if(r)return r.getLayoutProperty(n);this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style.")))},n.prototype.setPaintProperty=function(e,n,r,o){void 0===o&&(o={}),this._checkLoaded();var i=this.getLayer(e);i?t.deepEqual(i.getPaintProperty(n),r)||(i.setPaintProperty(n,r,o)&&this._updateLayer(i),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},n.prototype.setFeatureState=function(e,n){this._checkLoaded();var r=e.source,o=e.sourceLayer,i=this.sourceCaches[r];if(void 0!==i){var a=i.getSource().type;"geojson"===a&&o?this.fire(new t.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==a||o?(void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),i.setFeatureState(o,e.id,n)):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.removeFeatureState=function(e,n){this._checkLoaded();var r=e.source,o=this.sourceCaches[r];if(void 0!==o){var i=o.getSource().type,a="vector"===i?e.sourceLayer:void 0;"vector"!==i||a?n&&"string"!=typeof e.id&&"number"!=typeof e.id?this.fire(new t.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):o.removeFeatureState(a,e.id,n):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.getFeatureState=function(e){this._checkLoaded();var n=e.source,r=e.sourceLayer,o=this.sourceCaches[n];if(void 0!==o){if("vector"!==o.getSource().type||r)return void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),o.getFeatureState(r,e.id);this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},n.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},n.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},n.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&"raster"!==this.sourceCaches[t.source].getSource().type&&(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._changed=!0},n.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,n=function(t){return"fill-extrusion"===e._layers[t].type},r={},o=[],i=this._order.length-1;i>=0;i--){var a=this._order[i];if(n(a)){r[a]=i;for(var s=0,l=t;s<l.length;s+=1){var u=l[s][a];if(u)for(var c=0,p=u;c<p.length;c+=1)o.push(p[c])}}}o.sort((function(t,e){return e.intersectionZ-t.intersectionZ}));for(var f=[],h=this._order.length-1;h>=0;h--){var d=this._order[h];if(n(d))for(var m=o.length-1;m>=0;m--){var y=o[m].feature;if(r[y.layer.id]<h)break;f.push(y),o.pop()}else for(var g=0,v=t;g<v.length;g+=1){var _=v[g][d];if(_)for(var b=0,x=_;b<x.length;b+=1)f.push(x[b].feature)}}return f},n.prototype.queryRenderedFeatures=function(e,n,r){n&&n.filter&&this._validate(t.validateStyle.filter,"queryRenderedFeatures.filter",n.filter,null,n);var o={};if(n&&n.layers){if(!Array.isArray(n.layers))return this.fire(new t.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(var i=0,a=n.layers;i<a.length;i+=1){var s=a[i],l=this._layers[s];if(!l)return this.fire(new t.ErrorEvent(new Error("The layer '"+s+"' does not exist in the map's style and cannot be queried for features."))),[];o[l.source]=!0}}var u=[];for(var c in n.availableImages=this._availableImages,this.sourceCaches)n.layers&&!o[c]||u.push(j(this.sourceCaches[c],this._layers,this._serializedLayers,e,n,r));return this.placement&&u.push(function(t,e,n,r,o,i,a){for(var s={},l=i.queryRenderedSymbols(r),u=[],c=0,p=Object.keys(l).map(Number);c<p.length;c+=1)u.push(a[p[c]]);u.sort(B);for(var f=function(){var n=d[h],r=n.featureIndex.lookupSymbolFeatures(l[n.bucketInstanceId],e,n.bucketIndex,n.sourceLayerIndex,o.filter,o.layers,o.availableImages,t);for(var i in r){var a=s[i]=s[i]||[],u=r[i];u.sort((function(t,e){var r=n.featureSortOrder;if(r){var o=r.indexOf(t.featureIndex);return r.indexOf(e.featureIndex)-o}return e.featureIndex-t.featureIndex}));for(var c=0,p=u;c<p.length;c+=1)a.push(p[c])}},h=0,d=u;h<d.length;h+=1)f();var m=function(e){s[e].forEach((function(r){var o=r.feature,i=n[t[e].source].getFeatureState(o.layer["source-layer"],o.id);o.source=o.layer.source,o.layer["source-layer"]&&(o.sourceLayer=o.layer["source-layer"]),o.state=i}))};for(var y in s)m(y);return s}(this._layers,this._serializedLayers,this.sourceCaches,e,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(u)},n.prototype.querySourceFeatures=function(e,n){n&&n.filter&&this._validate(t.validateStyle.filter,"querySourceFeatures.filter",n.filter,null,n);var r=this.sourceCaches[e];return r?function(t,e){for(var n=t.getRenderableIds().map((function(e){return t.getTileByID(e)})),r=[],o={},i=0;i<n.length;i++){var a=n[i],s=a.tileID.canonical.key;o[s]||(o[s]=!0,a.querySourceFeatures(r,e))}return r}(r,n):[]},n.prototype.addSourceType=function(t,e,r){return n.getSourceType(t)?r(new Error('A source type called "'+t+'" already exists.')):(n.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:t,url:e.workerSourceURL},r):r(null,null))},n.prototype.getLight=function(){return this.light.getLight()},n.prototype.setLight=function(e,n){void 0===n&&(n={}),this._checkLoaded();var r=this.light.getLight(),o=!1;for(var i in e)if(!t.deepEqual(e[i],r[i])){o=!0;break}if(o){var a={now:t.browser.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,n),this.light.updateTransitions(a)}},n.prototype._validate=function(e,n,r,o,i){return void 0===i&&(i={}),(!i||!1!==i.validate)&&Ne(this,e.call(t.validateStyle,t.extend({key:n,style:this.serialize(),value:r,styleSpec:t.styleSpec},o)))},n.prototype._remove=function(){for(var e in this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off("pluginStateChange",this._rtlTextPluginCallback),this._layers)this._layers[e].setEventedParent(null);for(var n in this.sourceCaches)this.sourceCaches[n].clearTiles(),this.sourceCaches[n].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},n.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},n.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},n.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},n.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},n.prototype._updatePlacement=function(e,n,r,o,i){void 0===i&&(i=!1);for(var a=!1,s=!1,l={},u=0,c=this._order;u<c.length;u+=1){var p=this._layers[c[u]];if("symbol"===p.type){if(!l[p.source]){var f=this.sourceCaches[p.source];l[p.source]=f.getRenderableIds(!0).map((function(t){return f.getTileByID(t)})).sort((function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)}))}var h=this.crossTileSymbolIndex.addLayer(p,l[p.source],e.center.lng);a=a||h}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((i=i||this._layerOrderChanged||0===r)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(t.browser.now(),e.zoom))&&(this.pauseablePlacement=new Me(e,this._order,i,n,r,o,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(t.browser.now()),s=!0),a&&this.pauseablePlacement.placement.setStale()),s||a)for(var d=0,m=this._order;d<m.length;d+=1){var y=this._layers[m[d]];"symbol"===y.type&&this.placement.updateLayerOpacities(y,l[y.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.browser.now())},n.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()},n.prototype.getImages=function(t,e,n){this.imageManager.getImages(e.icons,n),this._updateTilesForChangedImages();var r=this.sourceCaches[e.source];r&&r.setDependencies(e.tileID.key,e.type,e.icons)},n.prototype.getGlyphs=function(t,e,n){this.glyphManager.getGlyphs(e.stacks,n)},n.prototype.getResource=function(e,n,r){return t.makeRequest(n,r)},n}(t.Evented);qe.getSourceType=function(t){return D[t]},qe.setSourceType=function(t,e){D[t]=e},qe.registerForPluginStateChange=t.registerForPluginStateChange;var Ge=t.createLayout([{name:"a_pos",type:"Int16",components:2}]),We=vn("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);
1return (tile_units_to_pixels*pos+offset)/pattern_size;}"),Ze=vn("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),He=vn("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),Xe=vn("varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),$e=vn("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),Ke=vn("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}"),Ye=vn("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),Je=vn("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Qe=vn("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),tn=vn("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),en=vn("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),nn=vn("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),rn=vn("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),on=vn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),an=vn("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=amb
1ientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),sn=vn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),ln=vn("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),un=vn("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;
1\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),cn=vn("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),pn=vn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),fn=vn("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),hn=vn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;
1uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),dn=vn("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),mn=vn("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),yn=vn("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),gn=vn("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;
1gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}");function vn(t,e){var n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=e.match(/attribute ([\w]+) ([\w]+)/g),o=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),i=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=i?i.concat(o):o,s={};return{fragmentSource:t=t.replace(n,(function(t,e,n,r,o){return s[o]=!0,"define"===e?"\n#ifndef HAS_UNIFORM_u_"+o+"\nvarying "+n+" "+r+" "+o+";\n#else\nuniform "+n+" "+r+" u_"+o+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+o+"\n "+n+" "+r+" "+o+" = u_"+o+";\n#endif\n"})),vertexSource:e=e.replace(n,(function(t,e,n,r,o){var i="float"===r?"vec2":"vec4",a=o.match(/color/)?"color":i;return s[o]?"define"===e?"\n#ifndef HAS_UNIFORM_u_"+o+"\nuniform lowp float u_"+o+"_t;\nattribute "+n+" "+i+" a_"+o+";\nvarying "+n+" "+r+" "+o+";\n#else\nuniform "+n+" "+r+" u_"+o+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+o+"\n "+o+" = a_"+o+";\n#else\n "+n+" "+r+" "+o+" = u_"+o+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+o+"\n "+o+" = unpack_mix_"+a+"(a_"+o+", u_"+o+"_t);\n#else\n "+n+" "+r+" "+o+" = u_"+o+";\n#endif\n":"define"===e?"\n#ifndef HAS_UNIFORM_u_"+o+"\nuniform lowp float u_"+o+"_t;\nattribute "+n+" "+i+" a_"+o+";\n#else\nuniform "+n+" "+r+" u_"+o+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+o+"\n "+n+" "+r+" "+o+" = a_"+o+";\n#else\n "+n+" "+r+" "+o+" = u_"+o+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+o+"\n "+n+" "+r+" "+o+" = unpack_mix_"+a+"(a_"+o+", u_"+o+"_t);\n#else\n "+n+" "+r+" "+o+" = u_"+o+";\n#endif\n"})),staticAttributes:r,staticUniforms:a}}var _n=Object.freeze({__proto__:null,prelude:We,background:Ze,backgroundPattern:He,circle:Xe,clippingMask:$e,heatmap:Ke,heatmapTexture:Ye,collisionBox:Je,collisionCircle:Qe,debug:tn,fill:en,fillOutline:nn,fillOutlinePattern:rn,fillPattern:on,fillExtrusion:an,fillExtrusionPattern:sn,hillshadePrepare:ln,hillshade:un,line:cn,lineGradient:pn,linePattern:fn,lineSDF:hn,raster:dn,symbolIcon:mn,symbolSDF:yn,symbolTextAndIcon:gn}),bn=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function xn(t){for(var e=[],n=0;n<t.length;n++)if(null!==t[n]){var r=t[n].split(" ");e.push(r.pop())}return e}bn.prototype.bind=function(t,e,n,r,o,i,a,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==r.length,u=0;!l&&u<r.length;u++)this.boundPaintVertexBuffers[u]!==r[u]&&(l=!0);t.extVertexArrayObject&&this.vao&&this.boundProgram===e&&this.boundLayoutVertexBuffer===n&&!l&&this.boundIndexBuffer===o&&this.boundVertexOffset===i&&this.boundDynamicVertexBuffer===a&&this.boundDynamicVertexBuffer2===s?(t.bindVertexArrayOES.set(this.vao),a&&a.bind(),o&&o.dynamicDraw&&o.bind(),s&&s.bind()):this.freshBind(e,n,r,o,i,a,s)}
vendor: 11,326 bytes, line 1
1,bn.prototype.freshBind=function(t,e,n,r,o,i,a){var s,l=t.numAttributes,u=this.context,c=u.gl;if(u.extVertexArrayObject)this.vao&&this.destroy(),this.vao=u.extVertexArrayObject.createVertexArrayOES(),u.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=n,this.boundIndexBuffer=r,this.boundVertexOffset=o,this.boundDynamicVertexBuffer=i,this.boundDynamicVertexBuffer2=a;else{s=u.currentNumAttributes||0;for(var p=l;p<s;p++)c.disableVertexAttribArray(p)}e.enableAttributes(c,t);for(var f=0,h=n;f<h.length;f+=1)h[f].enableAttributes(c,t);i&&i.enableAttributes(c,t),a&&a.enableAttributes(c,t),e.bind(),e.setVertexAttribPointers(c,t,o);for(var d=0,m=n;d<m.length;d+=1){var y=m[d];y.bind(),y.setVertexAttribPointers(c,t,o)}i&&(i.bind(),i.setVertexAttribPointers(c,t,o)),r&&r.bind(),a&&(a.bind(),a.setVertexAttribPointers(c,t,o)),u.currentNumAttributes=l},bn.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var wn=function(t,e,n,r,o,i){var a=t.gl;this.program=a.createProgram();for(var s=xn(n.staticAttributes),l=r?r.getBinderAttributes():[],u=s.concat(l),c=n.staticUniforms?xn(n.staticUniforms):[],p=r?r.getBinderUniforms():[],f=[],h=0,d=c.concat(p);h<d.length;h+=1){var m=d[h];f.indexOf(m)<0&&f.push(m)}var y=r?r.defines():[];i&&y.push("#define OVERDRAW_INSPECTOR;");var g=y.concat(We.fragmentSource,n.fragmentSource).join("\n"),v=y.concat(We.vertexSource,n.vertexSource).join("\n"),_=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(_,g),a.compileShader(_),a.attachShader(this.program,_);var b=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(b,v),a.compileShader(b),a.attachShader(this.program,b),this.attributes={};var x={};this.numAttributes=u.length;for(var w=0;w<this.numAttributes;w++)u[w]&&(a.bindAttribLocation(this.program,w,u[w]),this.attributes[u[w]]=w);a.linkProgram(this.program),a.deleteShader(b),a.deleteShader(_);for(var E=0;E<f.length;E++){var S=f[E];if(S&&!x[S]){var k=a.getUniformLocation(this.program,S);k&&(x[S]=k)}}this.fixedUniforms=o(t,x),this.binderUniforms=r?r.getUniforms(t,x):[]}}};function En(t,e,n){var r=1/fe(n,1,e.transform.tileZoom),o=Math.pow(2,n.tileID.overscaledZ),i=n.tileSize*Math.pow(2,e.transform.tileZoom)/o,a=i*(n.tileID.canonical.x+n.tileID.wrap*o),s=i*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[r,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[a>>16,s>>16],u_pixel_coord_lower:[65535&a,65535&s]}}wn.prototype.draw=function(t,e,n,r,o,i,a,s,l,u,c,p,f,h,d,m){var y,g=t.gl;if(!this.failedToCreate){for(var v in t.program.set(this.program),t.setDepthMode(n),t.setStencilMode(r),t.setColorMode(o),t.setCullFace(i),this.fixedUniforms)this.fixedUniforms[v].set(a[v]);h&&h.setUniforms(t,this.binderUniforms,p,{zoom:f});for(var _=(y={},y[g.LINES]=2,y[g.TRIANGLES]=3,y[g.LINE_STRIP]=1,y)[e],b=0,x=c.get();b<x.length;b+=1){var w=x[b],E=w.vaos||(w.vaos={});(E[s]||(E[s]=new bn)).bind(t,this,l,h?h.getPaintVertexBuffers():[],u,w.vertexOffset,d,m),g.drawElements(e,w.primitiveLength*_,g.UNSIGNED_SHORT,w.primitiveOffset*_*2)}}};var Sn=function(e,n,r,o){var i=n.style.light,a=i.properties.get("position"),s=[a.x,a.y,a.z],l=t.create$1();"viewport"===i.properties.get("anchor")&&t.fromRotation(l,-n.transform.angle),t.transformMat3(s,s,l);var u=i.properties.get("color");return{u_matrix:e,u_lightpos:s,u_lightintensity:i.properties.get("intensity"),u_lightcolor:[u.r,u.g,u.b],u_vertical_gradient:+r,u_opacity:o}},kn=function(e,n,r,o,i,a,s){return t.extend(Sn(e,n,r,o),En(a,n,s),{u_height_factor:-Math.pow(2,i.overscaledZ)/s.tileSize/8})},Tn=function(t){return{u_matrix:t}},Cn=function(e,n,r,o){return t.extend(Tn(e),En(r,n,o))},Pn=function(t,e){return{u_matrix:t,u_world:e}},In=function(e,n,r,o,i){return t.extend(Cn(e,n,r,o),{u_world:i})},On=function(e,n,r,o){var i,a,s=e.transform;if("map"===o.paint.get("circle-pitch-alignment")){var l=fe(r,1,s.zoom);i=!0,a=[l,l]}else i=!1,a=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+("map"===o.paint.get("circle-pitch-scale")),u_matrix:e.translatePosMatrix(n.posMatrix,r,o.paint.get("circle-translate"),o.paint.get("circle-translate-anchor")),u_pitch_with_map:+i,u_device_pixel_ratio:t.browser.devicePixelRatio,u_extrude_scale:a}},An=function(t,e,n){var r=fe(n,1,e.zoom),o=Math.pow(2,e.zoom-n.tileID.overscaledZ),i=n.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:r,u_extrude_scale:[e.pixelsToGLUnits[0]/(r*o),e.pixelsToGLUnits[1]/(r*o)],u_overscale_factor:i}},zn=function(t,e,n){return{u_matrix:t,u_inv_matrix:e,u_camera_to_center_distance:n.cameraToCenterDistance,u_viewport_size:[n.width,n.height]}},Mn=function(t,e,n){return void 0===n&&(n=1),{u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:n}},Rn=function(t){return{u_matrix:t}},Dn=function(t,e,n,r){return{u_matrix:t,u_extrude_scale:fe(e,1,n),u_intensity:r}},Ln=function(e,n,r){var o=e.transform;return{u_matrix:Un(e,n,r),u_ratio:1/fe(n,1,o.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]]}},jn=function(e,n,r,o){return t.extend(Ln(e,n,r),{u_image:0,u_image_height:o})},Bn=function(e,n,r,o){var i=e.transform,a=Fn(n,i);return{u_matrix:Un(e,n,r),u_texsize:n.imageAtlasTexture.size,u_ratio:1/fe(n,1,i.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_image:0,u_scale:[a,o.fromScale,o.toScale],u_fade:o.t,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Nn=function(e,n,r,o,i){var a=e.lineAtlas,s=Fn(n,e.transform),l="round"===r.layout.get("line-cap"),u=a.getDash(o.from,l),c=a.getDash(o.to,l),p=u.width*i.fromScale,f=c.width*i.toScale;return t.extend(Ln(e,n,r),{u_patternscale_a:[s/p,-u.height/2],u_patternscale_b:[s/f,-c.height/2],u_sdfgamma:a.width/(256*Math.min(p,f)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:u.y,u_tex_y_b:c.y,u_mix:i.t})};function Fn(t,e){return 1/fe(t,1,e.tileZoom)}function Un(t,e,n){return t.translatePosMatrix(e.tileID.posMatrix,e,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}var Vn=function(t,e,n,r,o){return{u_matrix:t,u_tl_parent:e,u_scale_parent:n,u_buffer_scale:1,u_fade_t:r.mix,u_opacity:r.opacity*o.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:o.paint.get("raster-brightness-min"),u_brightness_high:o.paint.get("raster-brightness-max"),u_saturation_factor:(a=o.paint.get("raster-saturation"),a>0?1-1/(1.001-a):-a),u_contrast_factor:(i=o.paint.get("raster-contrast"),i>0?1/(1-i):1+i),u_spin_weights:qn(o.paint.get("raster-hue-rotate"))};var i,a};function qn(t){t*=Math.PI/180;var e=Math.sin(t),n=Math.cos(t);return[(2*n+1)/3,(-Math.sqrt(3)*e-n+1)/3,(Math.sqrt(3)*e-n+1)/3]}var Gn,Wn=function(t,e,n,r,o,i,a,s,l,u){var c=o.transform;return{u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:c.cameraToCenterDistance,u_pitch:c.pitch/360*2*Math.PI,u_rotate_symbol:+n,u_aspect_ratio:c.width/c.height,u_fade_change:o.options.fadeDuration?o.symbolFadeChange:1,u_matrix:i,u_label_plane_matrix:a,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+r,u_texsize:u,u_texture:0}},Zn=function(e,n,r,o,i,a,s,l,u,c,p){var f=i.transform;return t.extend(Wn(e,n,r,o,i,a,s,l,u,c),{u_gamma_scale:o?Math.cos(f._pitch)*f.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+p})},Hn=function(e,n,r,o,i,a,s,l,u,c){return t.extend(Zn(e,n,r,o,i,a,s,l,!0,u,!0),{u_texsize_icon:c,u_texture_icon:1})},Xn=function(t,e,n){return{u_matrix:t,u_opacity:e,u_color:n}},$n=function(e,n,r,o,i,a){return t.extend(function(t,e,n,r){var o=n.imageManager.getPattern(t.from.toString()),i=n.imageManager.getPattern(t.to.toString()),a=n.imageManager.getPixelSize(),s=a.width,l=a.height,u=Math.pow(2,r.tileID.overscaledZ),c=r.tileSize*Math.pow(2,n.transform.tileZoom)/u,p=c*(r.tileID.canonical.x+r.tileID.wrap*u),f=c*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:o.tl,u_pattern_br_a:o.br,u_pattern_tl_b:i.tl,u_pattern_br_b:i.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:o.displaySize,u_pattern_size_b:i.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/fe(r,1,n.transform.tileZoom),u_pixel_coord_upper:[p>>16,f>>16],u_pixel_coord_lower:[65535&p,65535&f]}}(o,a,r,i),{u_matrix:e,u_opacity:n})},Kn={fillExtrusion:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_lightpos:new t.Uniform3f(e,n.u_lightpos),u_lightintensity:new t.Uniform1f(e,n.u_lightintensity),u_lightcolor:new t.Uniform3f(e,n.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,n.u_vertical_gradient),u_opacity:new t.Uniform1f(e,n.u_opacity)}},fillExtrusionPattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_lightpos:new t.Uniform3f(e,n.u_lightpos),u_lightintensity:new t.Uniform1f(e,n.u_lightintensity),u_lightcolor:new t.Uniform3f(e,n.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,n.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,n.u_height_factor),u_image:new t.Uniform1i(e,n.u_image),u_texsize:new t.Uniform2f(e,n.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade),u_opacity:new t.Uniform1f(e,n.u_opacity)}},fill:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}},fillPattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_image:new t.Uniform1i(e,n.u_image),u_texsize:new t.Uniform2f(e,n.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade)}},fillOutline:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_world:new t.Uniform2f(e,n.u_world)}},fillOutlinePattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_world:new t.Uniform2f(e,n.u_world),u_image:new t.Uniform1i(e,n.u_image),u_texsize:new t.Uniform2f(e,n.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade)}},circle:function(e,n){return{u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,n.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,n.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}},collisionBox:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,n.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,n.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,n.u_overscale_factor)}},collisionCircle:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,n.u_inv_matrix
1),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,n.u_viewport_size)}},debug:function(e,n){return{u_color:new t.UniformColor(e,n.u_color),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_overlay:new t.Uniform1i(e,n.u_overlay),u_overlay_scale:new t.Uniform1f(e,n.u_overlay_scale)}},clippingMask:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}},heatmap:function(e,n){return{u_extrude_scale:new t.Uniform1f(e,n.u_extrude_scale),u_intensity:new t.Uniform1f(e,n.u_intensity),u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}},heatmapTexture:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_world:new t.Uniform2f(e,n.u_world),u_image:new t.Uniform1i(e,n.u_image),u_color_ramp:new t.Uniform1i(e,n.u_color_ramp),u_opacity:new t.Uniform1f(e,n.u_opacity)}},hillshade:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_image:new t.Uniform1i(e,n.u_image),u_latrange:new t.Uniform2f(e,n.u_latrange),u_light:new t.Uniform2f(e,n.u_light),u_shadow:new t.UniformColor(e,n.u_shadow),u_highlight:new t.UniformColor(e,n.u_highlight),u_accent:new t.UniformColor(e,n.u_accent)}},hillshadePrepare:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_image:new t.Uniform1i(e,n.u_image),u_dimension:new t.Uniform2f(e,n.u_dimension),u_zoom:new t.Uniform1f(e,n.u_zoom),u_unpack:new t.Uniform4f(e,n.u_unpack)}},line:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels)}},lineGradient:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels),u_image:new t.Uniform1i(e,n.u_image),u_image_height:new t.Uniform1f(e,n.u_image_height)}},linePattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_texsize:new t.Uniform2f(e,n.u_texsize),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_image:new t.Uniform1i(e,n.u_image),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade)}},lineSDF:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,n.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,n.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,n.u_sdfgamma),u_image:new t.Uniform1i(e,n.u_image),u_tex_y_a:new t.Uniform1f(e,n.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,n.u_tex_y_b),u_mix:new t.Uniform1f(e,n.u_mix)}},raster:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_tl_parent:new t.Uniform2f(e,n.u_tl_parent),u_scale_parent:new t.Uniform1f(e,n.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,n.u_buffer_scale),u_fade_t:new t.Uniform1f(e,n.u_fade_t),u_opacity:new t.Uniform1f(e,n.u_opacity),u_image0:new t.Uniform1i(e,n.u_image0),u_image1:new t.Uniform1i(e,n.u_image1),u_brightness_low:new t.Uniform1f(e,n.u_brightness_low),u_brightness_high:new t.Uniform1f(e,n.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,n.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,n.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,n.u_spin_weights)}},symbolIcon:function(e,n){return{u_is_size_zoom_constant:new t.Uniform1i(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,n.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,n.u_size_t),u_size:new t.Uniform1f(e,n.u_size),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,n.u_pitch),u_rotate_symbol:new t.Uniform1i(e,n.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,n.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,n.u_fade_change),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,n.u_label_plane_matrix
vendor: 121,024 bytes, line 1
1),u_coord_matrix:new t.UniformMatrix4f(e,n.u_coord_matrix),u_is_text:new t.Uniform1i(e,n.u_is_text),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_texsize:new t.Uniform2f(e,n.u_texsize),u_texture:new t.Uniform1i(e,n.u_texture)}},symbolSDF:function(e,n){return{u_is_size_zoom_constant:new t.Uniform1i(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,n.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,n.u_size_t),u_size:new t.Uniform1f(e,n.u_size),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,n.u_pitch),u_rotate_symbol:new t.Uniform1i(e,n.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,n.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,n.u_fade_change),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,n.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,n.u_coord_matrix),u_is_text:new t.Uniform1i(e,n.u_is_text),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_texsize:new t.Uniform2f(e,n.u_texsize),u_texture:new t.Uniform1i(e,n.u_texture),u_gamma_scale:new t.Uniform1f(e,n.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,n.u_is_halo)}},symbolTextAndIcon:function(e,n){return{u_is_size_zoom_constant:new t.Uniform1i(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,n.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,n.u_size_t),u_size:new t.Uniform1f(e,n.u_size),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,n.u_pitch),u_rotate_symbol:new t.Uniform1i(e,n.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,n.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,n.u_fade_change),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,n.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,n.u_coord_matrix),u_is_text:new t.Uniform1i(e,n.u_is_text),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_texsize:new t.Uniform2f(e,n.u_texsize),u_texsize_icon:new t.Uniform2f(e,n.u_texsize_icon),u_texture:new t.Uniform1i(e,n.u_texture),u_texture_icon:new t.Uniform1i(e,n.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,n.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,n.u_is_halo)}},background:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_opacity:new t.Uniform1f(e,n.u_opacity),u_color:new t.UniformColor(e,n.u_color)}},backgroundPattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_opacity:new t.Uniform1f(e,n.u_opacity),u_image:new t.Uniform1i(e,n.u_image),u_pattern_tl_a:new t.Uniform2f(e,n.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,n.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,n.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,n.u_pattern_br_b),u_texsize:new t.Uniform2f(e,n.u_texsize),u_mix:new t.Uniform1f(e,n.u_mix),u_pattern_size_a:new t.Uniform2f(e,n.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,n.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,n.u_scale_a),u_scale_b:new t.Uniform1f(e,n.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,n.u_tile_units_to_pixels)}}};function Yn(e,n,r,o,i,a,s){for(var l=e.context,u=l.gl,c=e.useProgram("collisionBox"),p=[],f=0,h=0,d=0;d<o.length;d++){var m=o[d],y=n.getTile(m),g=y.getBucket(r);if(g){var v=m.posMatrix;0===i[0]&&0===i[1]||(v=e.translatePosMatrix(m.posMatrix,y,i,a));var _=s?g.textCollisionBox:g.iconCollisionBox,b=g.collisionCircleArray;if(b.length>0){var x=t.create(),w=v;t.mul(x,g.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(x,x,g.placementViewportMatrix),p.push({circleArray:b,circleOffset:h,transform:w,invTransform:x}),h=f+=b.length/4}_&&c.draw(l,u.LINES,kt.disabled,Tt.disabled,e.colorModeForRenderPass(),Pt.disabled,An(v,e.transform,y),r.id,_.layoutVertexBuffer,_.indexBuffer,_.segments,null,e.transform.zoom,null,null,_.collisionVertexBuffer)}}if(s&&p.length){var E=e.useProgram("collisionCircle"),S=new t.StructArrayLayout2f1f2i16;S.resize(4*f),S._trim();for(var k=0,T=0,C=p;T<C.length;T+=1)for(var P=C[T],I=0;I<P.circleArray.length/4;I++){var O=4*I,A=P.circleArray[O+0],z=P.circleArray[O+1],M=P.circleArray[O+2],R=P.circleArray[O+3];S.emplace(k++,A,z,M,R,0),S.emplace(k++,A,z,M,R,1),S.emplace(k++,A,z,M,R,2),S.emplace(k++,A,z,M,R,3)}(!Gn||Gn.length<2*f)&&(Gn=function(e){var n=2*e,r=new t.StructArrayLayout3ui6;r.resize(n),r._trim();for(var o=0;o<n;o++){var i=6*o;r.uint16[i+0]=4*o+0,r.uint16[i+1]=4*o+1,r.uint16[i+2]=4*o+2,r.uint16[i+3]=4*o+2,r.uint16[i+4]=4*o+3,r.uint16[i+5]=4*o+0}return r}(f));for(var D=l.createIndexBuffer(Gn,!0),L=l.createVertexBuffer(S,t.collisionCircleLayout.members,!0),j=0,B=p;j<B.length;j+=1){var N=B[j],F=zn(N.transform,N.invTransform,e.transform);E.draw(l,u.TRIANGLES,kt.disabled,Tt.disabled,e.colorModeForRenderPass(),Pt.disabled,F,r.id,L,D,t.SegmentVector.simpleSegment(0,2*N.circleOffset,N.circleArray.length,N.circleArray.length/2),null,e.transform.zoom,null,null,null)}L.destroy(),D.destroy()}}var Jn=t.identity(new Float32Array(16));function Qn(e,n,r,o,i,a){var s=t.getAnchorAlignment(e),l=-(s.horizontalAlign-.5)*n,u=-(s.verticalAlign-.5)*r,c=t.evaluateVariableOffset(e,o);return new t.Point((l/i+c[0])*a,(u/i+c[1])*a)}function tr(e,n,r,o,i,a,s,l,u,c,p){var f=e.text.placedSymbolArray,h=e.text.dynamicLayoutVertexArray,d=e.icon.dynamicLayoutVertexArray,m={};h.clear();for(var y=0;y<f.length;y++){var g=f.get(y),v=g.hidden||!g.crossTileID||e.allowVerticalPlacement&&!g.placedOrientation?null:o[g.crossTileID];if(v){var _=new t.Point(g.anchorX,g.anchorY),b=Qt(_,r?l:s),x=te(a.cameraToCenterDistance,b.signedDistanceFromCamera),w=i.evaluateSizeForFeature(e.textSizeData,c,g)*x/t.ONE_EM;r&&(w*=e.tilePixelRatio/u);for(var E=Qn(v.anchor,v.width,v.height,v.textOffset,v.textBoxScale,w),S=r?Qt(_.add(E),s).point:b.point.add(n?E.rotate(-a.angle):E),k=e.allowVerticalPlacement&&g.placedOrientation===t.WritingMode.vertical?Math.PI/2:0,T=0;T<g.numGlyphs;T++)t.addDynamicAttributes(h,S,k);p&&g.associatedIconIndex>=0&&(m[g.associatedIconIndex]={shiftedAnchor:S,angle:k})}else ue(g.numGlyphs,h)}if(p){d.clear();for(var C=e.icon.placedSymbolArray,P=0;P<C.length;P++){var I=C.get(P);if(I.hidden)ue(I.numGlyphs,d);else{var O=m[P];if(O)for(var A=0;A<I.numGlyphs;A++)t.addDynamicAttributes(d,O.shiftedAnchor,O.angle);else ue(I.numGlyphs,d)}}e.icon.dynamicLayoutVertexBuffer.updateData(d)}e.text.dynamicLayoutVertexBuffer.updateData(h)}function er(t,e,n){return n.iconsInText&&e?"symbolTextAndIcon":t?"symbolSDF":"symbolIcon"}function nr(e,n,r,o,i,a,s,l,u,c,p,f){for(var h=e.context,d=h.gl,m=e.transform,y="map"===l,g="map"===u,v=y&&"point"!==r.layout.get("symbol-placement"),_=y&&!g&&!v,b=void 0!==r.layout.get("symbol-sort-key").constantOr(1),x=!1,w=e.depthModeForSublayer(0,kt.ReadOnly),E=r.layout.get("text-variable-anchor"),S=[],k=0,T=o;k<T.length;k+=1){var C=T[k],P=n.getTile(C),I=P.getBucket(r);if(I){var O=i?I.text:I.icon;if(O&&O.segments.get().length){var A=O.programConfigurations.get(r.id),z=i||I.sdfIcons,M=i?I.textSizeData:I.iconSizeData,R=g||0!==m.pitch,D=e.useProgram(er(z,i,I),A),L=t.evaluateSizeForZoom(M,m.zoom),j=void 0,B=[0,0],N=void 0,F=void 0,U=null,V=void 0;if(i)N=P.glyphAtlasTexture,F=d.LINEAR,j=P.glyphAtlasTexture.size,I.iconsInText&&(B=P.imageAtlasTexture.size,U=P.imageAtlasTexture,V=R||e.options.rotating||e.options.zooming||"composite"===M.kind||"camera"===M.kind?d.LINEAR:d.NEAREST);else{var q=1!==r.layout.get("icon-size").constantOr(0)||I.iconsNeedLinear;N=P.imageAtlasTexture,F=z||e.options.rotating||e.options.zooming||q||R?d.LINEAR:d.NEAREST,j=P.imageAtlasTexture.size}var G=fe(P,1,e.transform.zoom),W=Yt(C.posMatrix,g,y,e.transform,G),Z=Jt(C.posMatrix,g,y,e.transform,G),H=E&&I.hasTextData(),X="none"!==r.layout.get("icon-text-fit")&&H&&I.hasIconData();v&&ne(I,C.posMatrix,e,i,W,Z,g,c);var $=e.translatePosMatrix(C.posMatrix,P,a,s),K=v||i&&E||X?Jn:W,Y=e.translatePosMatrix(Z,P,a,s,!0),J=z&&0!==r.paint.get(i?"text-halo-width":"icon-halo-width").constantOr(1),Q={program:D,buffers:O,uniformValues:z?I.iconsInText?Hn(M.kind,L,_,g,e,$,K,Y,j,B):Zn(M.kind,L,_,g,e,$,K,Y,i,j,!0):Wn(M.kind,L,_,g,e,$,K,Y,i,j),atlasTexture:N,atlasTextureIcon:U,atlasInterpolation:F,atlasInterpolationIcon:V,isSDF:z,hasHalo:J};if(b&&I.canOverlap){x=!0;for(var tt=0,et=O.segments.get();tt<et.length;tt+=1){var nt=et[tt];S.push({segments:new t.SegmentVector([nt]),sortKey:nt.sortKey,state:Q})}}else S.push({segments:O.segments,sortKey:0,state:Q})}}}x&&S.sort((function(t,e){return t.sortKey-e.sortKey}));for(var rt=0,ot=S;rt<ot.length;rt+=1){var it=ot[rt],at=it.state;if(h.activeTexture.set(d.TEXTURE0),at.atlasTexture.bind(at.atlasInterpolation,d.CLAMP_TO_EDGE),at.atlasTextureIcon&&(h.activeTexture.set(d.TEXTURE1),at.atlasTextureIcon&&at.atlasTextureIcon.bind(at.atlasInterpolationIcon,d.CLAMP_TO_EDGE)),at.isSDF){var st=at.uniformValues;at.hasHalo&&(st.u_is_halo=1,rr(at.buffers,it.segments,r,e,at.program,w,p,f,st)),st.u_is_halo=0}rr(at.buffers,it.segments,r,e,at.program,w,p,f,at.uniformValues)}}function rr(t,e,n,r,o,i,a,s,l){var u=r.context;o.draw(u,u.gl.TRIANGLES,i,a,s,Pt.disabled,l,n.id,t.layoutVertexBuffer,t.indexBuffer,e,n.paint,r.transform.zoom,t.programConfigurations.get(n.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function or(t,e,n,r,o,i,a){var s,l,u,c,p,f=t.context.gl,h=n.paint.get("fill-pattern"),d=h&&h.constantOr(1),m=n.getCrossfadeParameters();a?(l=d&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",s=f.LINES):(l=d?"fillPattern":"fill",s=f.TRIANGLES);for(var y=0,g=r;y<g.length;y+=1){var v=g[y],_=e.getTile(v);if(!d||_.patternsLoaded()){var b=_.getBucket(n);if(b){var x=b.programConfigurations.get(n.id),w=t.useProgram(l,x);d&&(t.context.activeTexture.set(f.TEXTURE0),_.imageAtlasTexture.bind(f.LINEAR,f.CLAMP_TO_EDGE),x.updatePaintBuffers(m));var E=h.constantOr(null);if(E&&_.imageAtlas){var S=_.imageAtlas,k=S.patternPositions[E.to.toString()],T=S.patternPositions[E.from.toString()];k&&T&&x.setConstantPatternPositions(k,T)}var C=t.translatePosMatrix(v.posMatrix,_,n.paint.get("fill-translate"),n.paint.get("fill-translate-anchor"));if(a){c=b.indexBuffer2,p=b.segments2;var P=[f.drawingBufferWidth,f.drawingBufferHeight];u="fillOutlinePattern"===l&&d?In(C,t,m,_,P):Pn(C,P)}else c=b.indexBuffer,p=b.segments,u=d?Cn(C,t,m,_):Tn(C);w.draw(t.context,s,o,t.stencilModeForClipping(v),i,Pt.disabled,u,n.id,b.layoutVertexBuffer,c,p,n.paint,t.transform.zoom,x)}}}}function ir(t,e,n,r,o,i,a){for(var s=t.context,l=s.gl,u=n.paint.get("fill-extrusion-pattern"),c=u.constantOr(1),p=n.getCrossfadeParameters(),f=n.paint.get("fill-extrusion-opacity"),h=0,d=r;h<d.length;h+=1){var m=d[h],y=e.getTile(m),g=y.getBucket(n);if(g){var v=g.programConfigurations.get(n.id),_=t.useProgram(c?"fillExtrusionPattern":"fillExtrusion",v);c&&(t.context.activeTexture.set(l.TEXTURE0),y.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),v.updatePaintBuffers(p));var b=u.constantOr(null);if(b&&y.imageAtlas){var x=y.imageAtlas,w=x.patternPositions[b.to.toString()],E=x.patternPositions[b.from.toString()];w&&E&&v.setConstantPatternPositions(w,E)}var S=t.translatePosMatrix(m.posMatrix,y,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),k=n.paint.get("fill-extrusion-vertical-gradient"),T=c?kn(S,t,k,f,m,p,y):Sn(S,t,k,f);_.draw(s,s.gl.TRIANGLES,o,i,a,Pt.backCCW,T,n.id,g.layoutVertexBuffer,g.indexBuffer,g.segments,n.paint,t.transform.zoom,v)}}}function ar(e,n,r,o,i,a){var s=e.context,l=s.gl,u=n.fbo;if(u){var c=e.useProgram("hillshade");s.activeTexture.set(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,u.colorAttachment.get());var p=function(e,n,r){var o=r.paint.get("hillshade-shadow-color"),i=r.paint.get("hillshade-highlight-color"),a=r.paint.get("hillshade-accent-color"),s=r.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===r.paint.get("hillshade-illumination-anchor")&&(s-=e.transform.angle);var l,u,c,p=!e.options.moving;return{u_matrix:e.transform.calculatePosMatrix(n.tileID.toUnwrapped(),p),u_image:0,u_latrange:(l=n.tileID,u=Math.pow(2,l.canonical.z),c=l.canonical.y,[new t.MercatorCoordinate(0,c/u).toLngLat().lat,new t.MercatorCoordinate(0,(c+1)/u).toLngLat().lat]),u_light:[r.paint.get("hillshade-exaggeration"),s],u_shadow:o,u_highlight:i,u_accent:a}}(e,n,r);c.draw(s,l.TRIANGLES,o,i,a,Pt.disabled,p,r.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}}function sr(e,n,r,o,i,a){var s=e.context,l=s.gl,u=n.dem;if(u&&u.data){var c=u.dim,p=u.stride,f=u.getPixels();if(s.activeTexture.set(l.TEXTURE1),s.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||e.getTileTexture(p),n.demTexture){var h=n.demTexture;h.update(f,{premultiply:!1}),h.bind(l.NEAREST,l.CLAMP_TO_EDGE)}else n.demTexture=new t.Texture(s,f,l.RGBA,{premultiply:!1}),n.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE);s.activeTexture.set(l.TEXTURE0);var d=n.fbo;if(!d){var m=new t.Texture(s,{width:c,height:c,data:null},l.RGBA);m.bind(l.LINEAR,l.CLAMP_TO_EDGE),(d=n.fbo=s.createFramebuffer(c,c,!0)).colorAttachment.set(m.texture)}s.bindFramebuffer.set(d.framebuffer),s.viewport.set([0,0,c,c]),e.useProgram("hillshadePrepare").draw(s,l.TRIANGLES,o,i,a,Pt.disabled,function(e,n){var r=n.stride,o=t.create();return t.ortho(o,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(o,o,[0,-t.EXTENT,0]),{u_matrix:o,u_image:1,u_dimension:[r,r],u_zoom:e.overscaledZ,u_unpack:n.getUnpackVector()}}(n.tileID,u),r.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),n.needsHillshadePrepare=!1}}function lr(e,n,r,o,i){var a=o.paint.get("raster-fade-duration");if(a>0){var s=t.browser.now(),l=(s-e.timeAdded)/a,u=n?(s-n.timeAdded)/a:-1,c=r.getSource(),p=i.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),f=!n||Math.abs(n.tileID.overscaledZ-p)>Math.abs(e.tileID.overscaledZ-p),h=f&&e.refreshedUponExpiration?1:t.clamp(f?l:1-u,0,1);return e.refreshedUponExpiration&&l>=1&&(e.refreshedUponExpiration=!1),n?{opacity:1,mix:1-h}:{opacity:h,mix:0}}return{opacity:1,mix:0}}var ur=new t.Color(1,0,0,1),cr=new t.Color(0,1,0,1),pr=new t.Color(0,0,1,1),fr=new t.Color(1,0,1,1),hr=new t.Color(0,1,1,1);function dr(t,e,n,r){yr(t,0,e+n/2,t.transform.width,n,r)}function mr(t,e,n,r){yr(t,e-n/2,0,n,t.transform.height,r)}function yr(e,n,r,o,i,a){var s=e.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(n*t.browser.devicePixelRatio,r*t.browser.devicePixelRatio,o*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio),s.clear({color:a}),l.disable(l.SCISSOR_TEST)}function gr(e,n,r){var o=e.context,i=o.gl,a=r.posMatrix,s=e.useProgram("debug"),l=kt.disabled,u=Tt.disabled,c=e.colorModeForRenderPass();o.activeTexture.set(i.TEXTURE0),e.emptyTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE),s.draw(o,i.LINE_STRIP,l,u,c,Pt.disabled,Mn(a,t.Color.red),"$debug",e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var p=n.getTileByID(r.key).latestRawTileData,f=Math.floor((p&&p.byteLength||0)/1024),h=n.getTile(r).tileSize,d=512/Math.min(h,512)*(r.overscaledZ/e.transform.zoom)*.5,m=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(m+=" => "+r.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var n=t.debugOverlayCanvas,r=t.context.gl,o=t.debugOverlayCanvas.getContext("2d");o.clearRect(0,0,n.width,n.height),o.shadowColor="white",o.shadowBlur=2,o.lineWidth=1.5,o.strokeStyle="white",o.textBaseline="top",o.font="bold 36px Open Sans, sans-serif",o.fillText(e,5,5),o.strokeText(e,5,5),t.debugOverlayTexture.update(n),t.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(e,m+" "+f+"kb"),s.draw(o,i.TRIANGLES,l,u,Ct.alphaBlended,Pt.disabled,Mn(a,t.Color.transparent,d),"$debug",e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var vr={symbol:function(e,n,r,o,i){if("translucent"===e.renderPass){var a=Tt.disabled,s=e.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(e,n,r,o,i,a,s){for(var l=n.transform,u="map"===i,c="map"===a,p=0,f=e;p<f.length;p+=1){var h=f[p],d=o.getTile(h),m=d.getBucket(r);if(m&&m.text&&m.text.segments.get().length){var y=t.evaluateSizeForZoom(m.textSizeData,l.zoom),g=fe(d,1,n.transform.zoom),v=Yt(h.posMatrix,c,u,n.transform,g),_="none"!==r.layout.get("icon-text-fit")&&m.hasIconData();if(y){var b=Math.pow(2,l.zoom-d.tileID.overscaledZ);tr(m,u,c,s,t.symbolSize,l,v,h.posMatrix,b,y,_)}}}}(o,e,r,n,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),i),0!==r.paint.get("icon-opacity").constantOr(1)&&nr(e,n,r,o,!1,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),r.layout.get("icon-rotation-alignment"),r.layout.get("icon-pitch-alignment"),r.layout.get("icon-keep-upright"),a,s),0!==r.paint.get("text-opacity").constantOr(1)&&nr(e,n,r,o,!0,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.layout.get("text-keep-upright"),a,s),n.map.showCollisionBoxes&&(Yn(e,n,r,o,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),Yn(e,n,r,o,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))}},circle:function(e,n,r,o){if("translucent"===e.renderPass){var i=r.paint.get("circle-opacity"),a=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),l=void 0!==r.layout.get("circle-sort-key").constantOr(1);if(0!==i.constantOr(1)||0!==a.constantOr(1)&&0!==s.constantOr(1)){for(var u=e.context,c=u.gl,p=e.depthModeForSublayer(0,kt.ReadOnly),f=Tt.disabled,h=e.colorModeForRenderPass(),d=[],m=0;m<o.length;m++){var y=o[m],g=n.getTile(y),v=g.getBucket(r);if(v){var _=v.programConfigurations.get(r.id),b={programConfiguration:_,program:e.useProgram("circle",_),layoutVertexBuffer:v.layoutVertexBuffer,indexBuffer:v.indexBuffer,uniformValues:On(e,y,g,r)};if(l)for(var x=0,w=v.segments.get();x<w.length;x+=1){var E=w[x];d.push({segments:new t.SegmentVector([E]),sortKey:E.sortKey,state:b})}else d.push({segments:v.segments,sortKey:0,state:b})}}l&&d.sort((function(t,e){return t.sortKey-e.sortKey}));for(var S=0,k=d;S<k.length;S+=1){var T=k[S],C=T.state;C.program.draw(u,c.TRIANGLES,p,f,h,Pt.disabled,C.uniformValues,r.id,C.layoutVertexBuffer,C.indexBuffer,T.segments,r.paint,e.transform.zoom,C.programConfiguration)}}}},heatmap:function(e,n,r,o){if(0!==r.paint.get("heatmap-opacity"))if("offscreen"===e.renderPass){var i=e.context,a=i.gl,s=Tt.disabled,l=new Ct([a.ONE,a.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,n){var r=t.gl;t.activeTexture.set(r.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var o=n.heatmapFbo;if(o)r.bindTexture(r.TEXTURE_2D,o.colorAttachment.get()),t.bindFramebuffer.set(o.framebuffer);else{var i=r.createTexture();r.bindTexture(r.TEXTURE_2D,i),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),o=n.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4,!1),function(t,e,n,r){var o=t.gl;o.texImage2D(o.TEXTURE_2D,0,o.RGBA,e.width/4,e.height/4,0,o.RGBA,t.extRenderToTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:o.UNSIGNED_BYTE,null),r.colorAttachment.set(n)}(t,e,i,o)}}(i,e,r),i.clear({color:t.Color.transparent});for(var u=0;u<o.length;u++){var c=o[u];if(!n.hasRenderableParent(c)){var p=n.getTile(c),f=p.getBucket(r);if(f){var h=f.programConfigurations.get(r.id);e.useProgram("heatmap",h).draw(i,a.TRIANGLES,kt.disabled,s,l,Pt.disabled,Dn(c.posMatrix,p,e.transform.zoom,r.paint.get("heatmap-intensity")),r.id,f.layoutVertexBuffer,f.indexBuffer,f.segments,r.paint,e.transform.zoom,h)}}}i.viewport.set([0,0,e.width,e.height])}else"translucent"===e.renderPass&&(e.context.setColorMode(e.colorModeForRenderPass()),function(e,n){var r=e.context,o=r.gl,i=n.heatmapFbo;if(i){r.activeTexture.set(o.TEXTURE0),o.bindTexture(o.TEXTURE_2D,i.colorAttachment.get()),r.activeTexture.set(o.TEXTURE1);var a=n.colorRampTexture;a||(a=n.colorRampTexture=new t.Texture(r,n.colorRamp,o.RGBA)),a.bind(o.LINEAR,o.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(r,o.TRIANGLES,kt.disabled,Tt.disabled,e.colorModeForRenderPass(),Pt.disabled,function(e,n,r,o){var i=t.create();t.ortho(i,0,e.width,e.height,0,0,1);var a=e.context.gl;return{u_matrix:i,u_world:[a.drawingBufferWidth,a.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:n.paint.get("heatmap-opacity")}}(e,n),n.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,n.paint,e.transform.zoom)}}(e,r))},line:function(e,n,r,o){if("translucent"===e.renderPass){var i=r.paint.get("line-opacity"),a=r.paint.get("line-width");if(0!==i.constantOr(1)&&0!==a.constantOr(1))for(var s=e.depthModeForSublayer(0,kt.ReadOnly),l=e.colorModeForRenderPass(),u=r.paint.get("line-dasharray"),c=r.paint.get("line-pattern"),p=c.constantOr(1),f=r.paint.get("line-gradient"),h=r.getCrossfadeParameters(),d=p?"linePattern":u?"lineSDF":f?"lineGradient":"line",m=e.context,y=m.gl,g=!0,v=0,_=o;v<_.length;v+=1){var b=_[v],x=n.getTile(b);if(!p||x.patternsLoaded()){var w=x.getBucket(r);if(w){var E=w.programConfigurations.get(r.id),S=e.context.program.get(),k=e.useProgram(d,E),T=g||k.program!==S,C=c.constantOr(null);if(C&&x.imageAtlas){var P=x.imageAtlas,I=P.patternPositions[C.to.toString()],O=P.patternPositions[C.from.toString()];I&&O&&E.setConstantPatternPositions(I,O)}var A=p?Bn(e,x,r,h):u?Nn(e,x,r,u,h):f?jn(e,x,r,w.lineClipsArray.length):Ln(e,x,r);if(p)m.activeTexture.set(y.TEXTURE0),x.imageAtlasTexture.bind(y.LINEAR,y.CLAMP_TO_EDGE),E.updatePaintBuffers(h);else if(u&&(T||e.lineAtlas.dirty))m.activeTexture.set(y.TEXTURE0),e.lineAtlas.bind(m);else if(f){var z=w.gradients[r.id],M=z.texture;if(r.gradientVersion!==z.version){var R=256;if(r.stepInterpolant){var D=n.getSource().maxzoom,L=b.canonical.z===D?Math.ceil(1<<e.transform.maxZoom-b.canonical.z):1;R=t.clamp(t.nextPowerOfTwo(w.maxLineLength/t.EXTENT*1024*L),256,m.maxTextureSize)}z.gradient=t.renderColorRamp({expression:r.gradientExpression(),evaluationKey:"lineProgress",resolution:R,image:z.gradient||void 0,clips:w.lineClipsArray}),z.texture?z.texture.update(z.gradient):z.texture=new t.Texture(m,z.gradient,y.RGBA),z.version=r.gradientVersion,M=z.texture}m.activeTexture.set(y.TEXTURE0),M.bind(r.stepInterpolant?y.NEAREST:y.LINEAR,y.CLAMP_TO_EDGE)}k.draw(m,y.TRIANGLES,s,e.stencilModeForClipping(b),l,Pt.disabled,A,r.id,w.layoutVertexBuffer,w.indexBuffer,w.segments,r.paint,e.transform.zoom,E,w.layoutVertexBuffer2),g=!1}}}}},fill:function(e,n,r,o){var i=r.paint.get("fill-color"),a=r.paint.get("fill-opacity");if(0!==a.constantOr(1)){var s=e.colorModeForRenderPass(),l=r.paint.get("fill-pattern"),u=e.opaquePassEnabledForLayer()&&!l.constantOr(1)&&1===i.constantOr(t.Color.transparent).a&&1===a.constantOr(0)?"opaque":"translucent";if(e.renderPass===u){var c=e.depthModeForSublayer(1,"opaque"===e.renderPass?kt.ReadWrite:kt.ReadOnly);or(e,n,r,o,c,s,!1)}if("translucent"===e.renderPass&&r.paint.get("fill-antialias")){var p=e.depthModeForSublayer(r.getPaintProperty("fill-outline-color")?2:0,kt.ReadOnly);or(e,n,r,o,p,s,!0)}}},"fill-extrusion":function(t,e,n,r){var o=n.paint.get("fill-extrusion-opacity");if(0!==o&&"translucent"===t.renderPass){var i=new kt(t.context.gl.LEQUAL,kt.ReadWrite,t.depthRangeFor3D);if(1!==o||n.paint.get("fill-extrusion-pattern").constantOr(1))ir(t,e,n,r,i,Tt.disabled,Ct.disabled),ir(t,e,n,r,i,t.stencilModeFor3D(),t.colorModeForRenderPass());else{var a=t.colorModeForRenderPass();ir(t,e,n,r,i,Tt.disabled,a)}}},hillshade:function(t,e,n,r){if("offscreen"===t.renderPass||"translucent"===t.renderPass){for(var o=t.context,i=t.depthModeForSublayer(0,kt.ReadOnly),a=t.colorModeForRenderPass(),s="translucent"===t.renderPass?t.stencilConfigForOverlap(r):[{},r],l=s[0],u=0,c=s[1];u<c.length;u+=1){var p=c[u],f=e.getTile(p);f.needsHillshadePrepare&&"offscreen"===t.renderPass?sr(t,f,n,i,Tt.disabled,a):"translucent"===t.renderPass&&ar(t,f,n,i,l[p.overscaledZ],a)}o.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,n,r){if("translucent"===t.renderPass&&0!==n.paint.get("raster-opacity")&&r.length)for(var o=t.context,i=o.gl,a=e.getSource(),s=t.useProgram("raster"),l=t.colorModeForRenderPass(),u=a instanceof z?[{},r]:t.stencilConfigForOverlap(r),c=u[0],p=u[1],f=p[p.length-1].overscaledZ,h=!t.options.moving,d=0,m=p;d<m.length;d+=1){var y=m[d],g=t.depthModeForSublayer(y.overscaledZ-f,1===n.paint.get("raster-opacity")?kt.ReadWrite:kt.ReadOnly,i.LESS),v=e.getTile(y),_=t.transform.calculatePosMatrix(y.toUnwrapped(),h);v.registerFadeDuration(n.paint.get("raster-fade-duration"));var b=e.findLoadedParent(y,0),x=lr(v,b,e,n,t.transform),w=void 0,E=void 0,S="nearest"===n.paint.get("raster-resampling")?i.NEAREST:i.LINEAR;o.activeTexture.set(i.TEXTURE0),v.texture.bind(S,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST),o.activeTexture.set(i.TEXTURE1),b?(b.texture.bind(S,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,b.tileID.overscaledZ-v.tileID.overscaledZ),E=[v.tileID.canonical.x*w%1,v.tileID.canonical.y*w%1]):v.texture.bind(S,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST);var k=Vn(_,E||[0,0],w||1,x,n);a instanceof z?s.draw(o,i.TRIANGLES,g,Tt.disabled,l,Pt.disabled,k,n.id,a.boundsBuffer,t.quadTriangleIndexBuffer,a.boundsSegments):s.draw(o,i.TRIANGLES,g,c[y.overscaledZ],l,Pt.disabled,k,n.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,e,n){var r=n.paint.get("background-color"),o=n.paint.get("background-opacity");if(0!==o){var i=t.context,a=i.gl,s=t.transform,l=s.tileSize,u=n.paint.get("background-pattern");if(!t.isPatternMissing(u)){var c=!u&&1===r.a&&1===o&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass===c){var p=Tt.disabled,f=t.depthModeForSublayer(0,"opaque"===c?kt.ReadWrite:kt.ReadOnly),h=t.colorModeForRenderPass(),d=t.useProgram(u?"backgroundPattern":"background"),m=s.coveringTiles({tileSize:l});u&&(i.activeTexture.set(a.TEXTURE0),t.imageManager.bind(t.context));for(var y=n.getCrossfadeParameters(),g=0,v=m;g<v.length;g+=1){var _=v[g],b=t.transform.calculatePosMatrix(_.toUnwrapped()),x=u?$n(b,o,t,u,{tileID:_,tileSize:l},y):Xn(b,o,r);d.draw(i,a.TRIANGLES,f,p,h,Pt.disabled,x,n.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}},debug:function(t,e,n){for(var r=0;r<n.length;r++)gr(t,e,n[r])},custom:function(t,e,n){var r=t.context,o=n.implementation;if("offscreen"===t.renderPass){var i=o.prerender;i&&(t.setCustomLayerDefaults(),r.setColorMode(t.colorModeForRenderPass()),i.call(o,r.gl,t.transform.customLayerMatrix()),r.setDirty(),t.setBaseState())}else if("translucent"===t.renderPass){t.setCustomLayerDefaults(),r.setColorMode(t.colorModeForRenderPass()),r.setStencilMode(Tt.disabled);var a="3d"===o.renderingMode?new kt(t.context.gl.LEQUAL,kt.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,kt.ReadOnly);r.setDepthMode(a),o.render(r.gl,t.transform.customLayerMatrix()),r.setDirty(),t.setBaseState(),r.bindFramebuffer.set(null)}}},_r=function(t,e){this.context=new It(t),this.transform=e,this._tileTextures={},this.setup(),this.numSublayers=Ot.maxUnderzooming+Ot.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Be,this.gpuTimers={}};_r.prototype.resize=function(e,n){if(this.width=e*t.browser.devicePixelRatio,this.height=n*t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var r=0,o=this.style._order;r<o.length;r+=1)this.style._layers[o[r]].resize()},_r.prototype.setup=function(){var e=this.context,n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(n,Ge.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);var r=new t.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(t.EXTENT,0),r.emplaceBack(0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(r,Ge.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);var o=new t.StructArrayLayout4i8;o.emplaceBack(0,0,0,0),o.emplaceBack(t.EXTENT,0,t.EXTENT,0),o.emplaceBack(0,t.EXTENT,0,t.EXTENT),o.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(o,A.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);var i=new t.StructArrayLayout2i4;i.emplaceBack(0,0),i.emplaceBack(1,0),i.emplaceBack(0,1),i.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(i,Ge.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);var a=new t.StructArrayLayout1ui2;a.emplaceBack(0),a.emplaceBack(1),a.emplaceBack(3),a.emplaceBack(2),a.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(a);var s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s),this.emptyTexture=new t.Texture(e,{width:1,height:1,data:new Uint8Array([0,0,0,0])},e.gl.RGBA);var l=this.context.gl;this.stencilClearMode=new Tt({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)},_r.prototype.clearStencil=function(){var e=this.context,n=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var r=t.create();t.ortho(r,0,this.width,this.height,0,0,1),t.scale(r,r,[n.drawingBufferWidth,n.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(e,n.TRIANGLES,kt.disabled,this.stencilClearMode,Ct.disabled,Pt.disabled,Rn(r),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},_r.prototype._renderTileClippingMasks=function(t,e){if(this.currentStencilSource!==t.source&&t.isTileClipped()&&e&&e.length){this.currentStencilSource=t.source;var n=this.context,r=n.gl;this.nextStencilID+e.length>256&&this.clearStencil(),n.setColorMode(Ct.disabled),n.setDepthMode(kt.disabled);var o=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var i=0,a=e;i<a.length;i+=1){var s=a[i],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;o.draw(n,r.TRIANGLES,kt.disabled,new Tt({func:r.ALWAYS,mask:0},l,255,r.KEEP,r.KEEP,r.REPLACE),Ct.disabled,Pt.disabled,Rn(s.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},_r.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new Tt({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},_r.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new Tt({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},_r.prototype.stencilConfigForOverlap=function(t){var e,n=this.context.gl,r=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),o=r[r.length-1].overscaledZ,i=r[0].overscaledZ-o+1;if(i>1){this.currentStencilSource=void 0,this.nextStencilID+i>256&&this.clearStencil();for(var a={},s=0;s<i;s++)a[s+o]=new Tt({func:n.GEQUAL,mask:255},s+this.nextStencilID,255,n.KEEP,n.KEEP,n.REPLACE);return this.nextStencilID+=i,[a,r]}return[(e={},e[o]=Tt.disabled,e),r]},_r.prototype.colorModeForRenderPass=function(){var e=this.context.gl;return this._showOverdrawInspector?new Ct([e.CONSTANT_COLOR,e.ONE],new t.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):"opaque"===this.renderPass?Ct.unblended:Ct.alphaBlended},_r.prototype.depthModeForSublayer=function(t,e,n){if(!this.opaquePassEnabledForLayer())return kt.disabled;var r=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new kt(n||this.context.gl.LEQUAL,e,[r,r])},_r.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer<this.opaquePassCutoff},_r.prototype.render=function(e,n){var r=this;this.style=e,this.options=n,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.browser.now()),this.imageManager.beginFrame();var o=this.style._order,i=this.style.sourceCaches;for(var a in i){var s=i[a];s.used&&s.prepare(this.context)}var l,u,c={},p={},f={};for(var h in i){var d=i[h];c[h]=d.getVisibleCoordinates(),p[h]=c[h].slice().reverse(),f[h]=d.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var m=0;m<o.length;m++)if(this.style._layers[o[m]].is3D()){this.opaquePassCutoff=m;break}this.renderPass="offscreen";for(var y=0,g=o;y<g.length;y+=1){var v=this.style._layers[g[y]];if(v.hasOffscreenPass()&&!v.isHidden(this.transform.zoom)){var _=p[v.source];("custom"===v.type||_.length)&&this.renderLayer(this,i[v.source],v,_)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:n.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=n.showOverdrawInspector,this.depthRangeFor3D=[0,1-(e._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass="opaque",this.currentLayer=o.length-1;this.currentLayer>=0;this.currentLayer--){var b=this.style._layers[o[this.currentLayer]],x=i[b.source],w=c[b.source];this._renderTileClippingMasks(b,w),this.renderLayer(this,x,b,w)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<o.length;this.currentLayer++){var E=this.style._layers[o[this.currentLayer]],S=i[E.source],k=("symbol"===E.type?f:p)[E.source];this._renderTileClippingMasks(E,c[E.source]),this.renderLayer(this,S,E,k)}this.options.showTileBoundaries&&(t.values(this.style._layers).forEach((function(t){t.source&&!t.isHidden(r.transform.zoom)&&(t.source!==(u&&u.id)&&(u=r.style.sourceCaches[t.source]),(!l||l.getSource().maxzoom<u.getSource().maxzoom)&&(l=u))})),l&&vr.debug(this,l,l.getVisibleCoordinates())),this.options.showPadding&&function(t){var e=t.transform.padding;dr(t,t.transform.height-(e.top||0),3,ur),dr(t,e.bottom||0,3,cr),mr(t,e.left||0,3,pr),mr(t,t.transform.width-(e.right||0),3,fr);var n=t.transform.centerPoint;!function(t,e,n,r){yr(t,e-1,n-10,2,20,r),yr(t,e-10,n-1,20,2,r)}(t,n.x,t.transform.height-n.y,hr)}(this),this.context.setDefault()},_r.prototype.renderLayer=function(t,e,n,r){n.isHidden(this.transform.zoom)||("background"===n.type||"custom"===n.type||r.length)&&(this.id=n.id,this.gpuTimingStart(n),vr[n.type](t,e,n,r,this.style.placement.variableOffsets),this.gpuTimingEnd())},_r.prototype.gpuTimingStart=function(t){if(this.options.gpuTiming){var e=this.context.extTimerQuery,n=this.gpuTimers[t.id];n||(n=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),n.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,n.query)}},_r.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}},_r.prototype.collectGpuTimers=function(){var t=this.gpuTimers;return this.gpuTimers={},t},_r.prototype.queryGpuTimers=function(t){var e={};for(var n in t){var r=t[n],o=this.context.extTimerQuery,i=o.getQueryObjectEXT(r.query,o.QUERY_RESULT_EXT)/1e6;o.deleteQueryEXT(r.query),e[n]=i}return e},_r.prototype.translatePosMatrix=function(e,n,r,o,i){if(!r[0]&&!r[1])return e;var a=i?"map"===o?this.transform.angle:0:"viewport"===o?-this.transform.angle:0;if(a){var s=Math.sin(a),l=Math.cos(a);r=[r[0]*l-r[1]*s,r[0]*s+r[1]*l]}var u=[i?r[0]:fe(n,r[0],this.transform.zoom),i?r[1]:fe(n,r[1],this.transform.zoom),0],c=new Float32Array(16);return t.translate(c,e,u),c},_r.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},_r.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&&e.length>0?e.pop():null},_r.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),n=this.imageManager.getPattern(t.to.toString());return!e||!n},_r.prototype.useProgram=function(t,e){this.cache=this.cache||{};var n=""+t+(e?e.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[n]||(this.cache[n]=new wn(this.context,t,_n[t],e,Kn[t],this._showOverdrawInspector)),this.cache[n]},_r.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},_r.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},_r.prototype.initDebugOverlayCanvas=function(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=t.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},_r.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var br=function(t,e){this.points=t,this.planes=e};br.fromInvProjectionMatrix=function(e,n,r){var o=Math.pow(2,r),i=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(n){return t.transformMat4([],n,e)})).map((function(e){return t.scale$1([],e,1/e[3]/n*o)})),a=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var n=t.sub([],i[e[0]],i[e[1]]),r=t.sub([],i[e[2]],i[e[1]]),o=t.normalize([],t.cross([],n,r)),a=-t.dot(o,i[e[1]]);return o.concat(a)}));return new br(i,a)};var xr=function(e,n){this.min=e,this.max=n,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};xr.prototype.quadrant=function(e){for(var n=[e%2==0,e<2],r=t.clone$2(this.min),o=t.clone$2(this.max),i=0;i<n.length;i++)r[i]=n[i]?this.min[i]:this.center[i],o[i]=n[i]?this.center[i]:this.max[i];return o[2]=this.max[2],new xr(r,o)},xr.prototype.distanceX=function(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]},xr.prototype.distanceY=function(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]},xr.prototype.intersects=function(e){for(var n=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],r=!0,o=0;o<e.planes.length;o++){for(var i=e.planes[o],a=0,s=0;s<n.length;s++)a+=t.dot$1(i,n[s])>=0;if(0===a)return 0;a!==n.length&&(r=!1)}if(r)return 2;for(var l=0;l<3;l++){for(var u=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p<e.points.length;p++){var f=e.points[p][l]-this.min[l];u=Math.min(u,f),c=Math.max(c,f)}if(c<0||u>this.max[l]-this.min[l])return 0}return 1};var wr=function(t,e,n,r){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),isNaN(t)||t<0||isNaN(e)||e<0||isNaN(n)||n<0||isNaN(r)||r<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=e,this.left=n,this.right=r};wr.prototype.interpolate=function(e,n,r){return null!=n.top&&null!=e.top&&(this.top=t.number(e.top,n.top,r)),null!=n.bottom&&null!=e.bottom&&(this.bottom=t.number(e.bottom,n.bottom,r)),null!=n.left&&null!=e.left&&(this.left=t.number(e.left,n.left,r)),null!=n.right&&null!=e.right&&(this.right=t.number(e.right,n.right,r)),this},wr.prototype.getCenter=function(e,n){var r=t.clamp((this.left+e-this.right)/2,0,e),o=t.clamp((this.top+n-this.bottom)/2,0,n);return new t.Point(r,o)},wr.prototype.equals=function(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right},wr.prototype.clone=function(){return new wr(this.top,this.bottom,this.left,this.right)},wr.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Er=function(e,n,r,o,i){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===i||i,this._minZoom=e||0,this._maxZoom=n||22,this._minPitch=null==r?0:r,this._maxPitch=null==o?60:o,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new wr,this._posMatrixCache={},this._alignedPosMatrixCache={}},Sr={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Er.prototype.clone=function(){var t=new Er(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},Sr.minZoom.get=function(){return this._minZoom},Sr.minZoom.set=function(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Sr.maxZoom.get=function(){return this._maxZoom},Sr.maxZoom.set=function(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Sr.minPitch.get=function(){return this._minPitch},Sr.minPitch.set=function(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Sr.maxPitch.get=function(){return this._maxPitch},Sr.maxPitch.set=function(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Sr.renderWorldCopies.get=function(){return this._renderWorldCopies},Sr.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t},Sr.worldSize.get=function(){return this.tileSize*this.scale},Sr.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Sr.size.get=function(){return new t.Point(this.width,this.height)},Sr.bearing.get=function(){return-this.angle/Math.PI*180},Sr.bearing.set=function(e){var n=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Sr.pitch.get=function(){return this._pitch/Math.PI*180},Sr.pitch.set=function(e){var n=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())},Sr.fov.get=function(){return this._fov/Math.PI*180},Sr.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Sr.zoom.get=function(){return this._zoom},Sr.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Sr.center.get=function(){return this._center},Sr.center.set=function(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Sr.padding.get=function(){return this._edgeInsets.toJSON()},Sr.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},Sr.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Er.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},Er.prototype.interpolatePadding=function(t,e,n){this._unmodified=!1,this._edgeInsets.interpolate(t,e,n),this._constrain(),this._calcMatrices()},Er.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},Er.prototype.getVisibleUnwrappedCoordinates=function(e){var n=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var r=this.pointCoordinate(new t.Point(0,0)),o=this.pointCoordinate(new t.Point(this.width,0)),i=this.pointCoordinate(new t.Point(this.width,this.height)),a=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(r.x,o.x,i.x,a.x)),l=Math.floor(Math.max(r.x,o.x,i.x,a.x)),u=s-1;u<=l+1;u++)0!==u&&n.push(new t.UnwrappedTileID(u,e));return n},Er.prototype.coveringTiles=function(e){var n=this.coveringZoomLevel(e),r=n;if(void 0!==e.minzoom&&n<e.minzoom)return[];void 0!==e.maxzoom&&n>e.maxzoom&&(n=e.maxzoom);var o=t.MercatorCoordinate.fromLngLat(this.center),i=Math.pow(2,n),a=[i*o.x,i*o.y,0],s=br.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,n),l=e.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(l=n);var u=function(t){return{aabb:new xr([t*i,0,0],[(t+1)*i,i,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},c=[],p=[],f=n,h=e.reparseOverscaled?r:n;if(this._renderWorldCopies)for(var d=1;d<=3;d++)c.push(u(-d)),c.push(u(d));for(c.push(u(0));c.length>0;){var m=c.pop(),y=m.x,g=m.y,v=m.fullyVisible;if(!v){var _=m.aabb.intersects(s);if(0===_)continue;v=2===_}var b=m.aabb.distanceX(a),x=m.aabb.distanceY(a),w=Math.max(Math.abs(b),Math.abs(x));if(m.zoom===f||w>3+(1<<f-m.zoom)-2&&m.zoom>=l)p.push({tileID:new t.OverscaledTileID(m.zoom===f?h:m.zoom,m.wrap,m.zoom,y,g),distanceSq:t.sqrLen([a[0]-.5-y,a[1]-.5-g])});else for(var E=0;E<4;E++){var S=(y<<1)+E%2,k=(g<<1)+(E>>1);c.push({aabb:m.aabb.quadrant(E),zoom:m.zoom+1,x:S,y:k,wrap:m.wrap,fullyVisible:v})}}return p.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},Er.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Sr.unmodified.get=function(){return this._unmodified},Er.prototype.zoomScale=function(t){return Math.pow(2,t)},Er.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},Er.prototype.project=function(e){var n=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(n)*this.worldSize)},Er.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},Sr.point.get=function(){return this.project(this.center)},Er.prototype.setLocationAtPoint=function(e,n){var r=this.pointCoordinate(n),o=this.pointCoordinate(this.centerPoint),i=this.locationCoordinate(e),a=new t.MercatorCoordinate(i.x-(r.x-o.x),i.y-(r.y-o.y));this.center=this.coordinateLocation(a),this._renderWorldCopies&&(this.center=this.center.wrap())},Er.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},Er.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},Er.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},Er.prototype.coordinateLocation=function(t){return t.toLngLat()},Er.prototype.pointCoordinate=function(e){var n=[e.x,e.y,0,1],r=[e.x,e.y,1,1];t.transformMat4(n,n,this.pixelMatrixInverse),t.transformMat4(r,r,this.pixelMatrixInverse);var o=n[3],i=r[3],a=n[1]/o,s=r[1]/i,l=n[2]/o,u=r[2]/i,c=l===u?0:(0-l)/(u-l);return new t.MercatorCoordinate(t.number(n[0]/o,r[0]/i,c)/this.worldSize,t.number(a,s,c)/this.worldSize)},Er.prototype.coordinatePoint=function(e){var n=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(n,n,this.pixelMatrix),new t.Point(n[0]/n[3],n[1]/n[3])},Er.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},Er.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Er.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Er.prototype.calculatePosMatrix=function(e,n){void 0===n&&(n=!1);var r=e.key,o=n?this._alignedPosMatrixCache:this._posMatrixCache;if(o[r])return o[r];var i=e.canonical,a=this.worldSize/this.zoomScale(i.z),s=i.x+Math.pow(2,i.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*a,i.y*a,0]),t.scale(l,l,[a/t.EXTENT,a/t.EXTENT,1]),t.multiply(l,n?this.alignedProjMatrix:this.projMatrix,l),o[r]=new Float32Array(l),o[r]},Er.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Er.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var e,n,r,o,i=-90,a=90,s=-180,l=180,u=this.size,c=this._unmodified;if(this.latRange){var p=this.latRange;i=t.mercatorYfromLat(p[1])*this.worldSize,e=(a=t.mercatorYfromLat(p[0])*this.worldSize)-i<u.y?u.y/(a-i):0}if(this.lngRange){var f=this.lngRange;s=t.mercatorXfromLng(f[0])*this.worldSize,n=(l=t.mercatorXfromLng(f[1])*this.worldSize)-s<u.x?u.x/(l-s):0}var h=this.point,d=Math.max(n||0,e||0);if(d)return this.center=this.unproject(new t.Point(n?(l+s)/2:h.x,e?(a+i)/2:h.y)),this.zoom+=this.scaleZoom(d),this._unmodified=c,void(this._constraining=!1);if(this.latRange){var m=h.y,y=u.y/2;m-y<i&&(o=i+y),m+y>a&&(o=a-y)}if(this.lngRange){var g=h.x,v=u.x/2;g-v<s&&(r=s+v),g+v>l&&(r=l-v)}void 0===r&&void 0===o||(this.center=this.unproject(new t.Point(void 0!==r?r:h.x,void 0!==o?o:h.y))),this._unmodified=c,this._constraining=!1}},Er.prototype._calcMatrices=function(){if(this.height){var e=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var n=Math.PI/2+this._pitch,r=this._fov*(.5+e.y/this.height),o=Math.sin(r)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-n-r,.01,Math.PI-.01)),i=this.point,a=i.x,s=i.y,l=1.01*(Math.cos(Math.PI/2-this._pitch)*o+this.cameraToCenterDistance),u=this.height/50,c=new Float64Array(16);t.perspective(c,this._fov,this.width/this.height,u,l),c[8]=2*-e.x/this.width,c[9]=2*e.y/this.height,t.scale(c,c,[1,-1,1]),t.translate(c,c,[0,0,-this.cameraToCenterDistance]),t.rotateX(c,c,this._pitch),t.rotateZ(c,c,this.angle),t.translate(c,c,[-a,-s,0]),this.mercatorMatrix=t.scale([],c,[this.worldSize,this.worldSize,this.worldSize]),t.scale(c,c,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=c,this.invProjMatrix=t.invert([],this.projMatrix);var p=this.width%2/2,f=this.height%2/2,h=Math.cos(this.angle),d=Math.sin(this.angle),m=a-Math.round(a)+h*p+d*f,y=s-Math.round(s)+h*f+d*p,g=new Float64Array(c);if(t.translate(g,g,[m>.5?m-1:m,y>.5?y-1:y,0]),this.alignedProjMatrix=g,c=t.create(),t.scale(c,c,[this.width/2,-this.height/2,1]),t.translate(c,c,[1,-1,0]),this.labelPlaneMatrix=c,c=t.create(),t.scale(c,c,[1,-1,1]),t.translate(c,c,[-1,-1,0]),t.scale(c,c,[2/this.width,2/this.height,1]),this.glCoordMatrix=c,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(c=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=c,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Er.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),n=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(n,n,this.pixelMatrix)[3]/this.cameraToCenterDistance},Er.prototype.getCameraPoint=function(){var e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,e))},Er.prototype.getCameraQueryGeometry=function(e){var n=this.getCameraPoint();if(1===e.length)return[e[0],n];for(var r=n.x,o=n.y,i=n.x,a=n.y,s=0,l=e;s<l.length;s+=1){var u=l[s];r=Math.min(r,u.x),o=Math.min(o,u.y),i=Math.max(i,u.x),a=Math.max(a,u.y)}return[new t.Point(r,o),new t.Point(i,o),new t.Point(i,a),new t.Point(r,a),new t.Point(r,o)]},Object.defineProperties(Er.prototype,Sr);var kr=function(e){var n,r,o,i;this._hashName=e&&encodeURIComponent(e),t.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=(n=this._updateHashUnthrottled.bind(this),r=!1,o=null,i=function(){o=null,r&&(n(),o=setTimeout(i,300),r=!1)},function(){return r=!0,o||i(),o})};kr.prototype.addTo=function(e){return this._map=e,t.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this},kr.prototype.remove=function(){return t.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},kr.prototype.getHashString=function(e){var n=this._map.getCenter(),r=Math.round(100*this._map.getZoom())/100,o=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),i=Math.pow(10,o),a=Math.round(n.lng*i)/i,s=Math.round(n.lat*i)/i,l=this._map.getBearing(),u=this._map.getPitch(),c="";if(c+=e?"/"+a+"/"+s+"/"+r:r+"/"+s+"/"+a,(l||u)&&(c+="/"+Math.round(10*l)/10),u&&(c+="/"+Math.round(u)),this._hashName){var p=this._hashName,f=!1,h=t.window.location.hash.slice(1).split("&").map((function(t){var e=t.split("=")[0];return e===p?(f=!0,e+"="+c):t})).filter((function(t){return t}));return f||h.push(p+"="+c),"#"+h.join("&")}return"#"+c},kr.prototype._getCurrentHash=function(){var e,n=this,r=t.window.location.hash.replace("#","");return this._hashName?(r.split("&").map((function(t){return t.split("=")})).forEach((function(t){t[0]===n._hashName&&(e=t)})),(e&&e[1]||"").split("/")):r.split("/")},kr.prototype._onHashChange=function(){var t=this._getCurrentHash();if(t.length>=3&&!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},kr.prototype._updateHashUnthrottled=function(){var e=t.window.location.href.replace(/(#.+)?$/,this.getHashString());try{t.window.history.replaceState(t.window.history.state,null,e)}catch(t){}};var Tr={linearity:.3,easing:t.bezier(0,0,.3,1)},Cr=t.extend({deceleration:2500,maxSpeed:1400},Tr),Pr=t.extend({deceleration:20,maxSpeed:1400},Tr),Ir=t.extend({deceleration:1e3,maxSpeed:360},Tr),Or=t.extend({deceleration:1e3,maxSpeed:90},Tr),Ar=function(t){this._map=t,this.clear()};function zr(t,e){(!t.duration||t.duration<e.duration)&&(t.duration=e.duration,t.easing=e.easing)}function Mr(e,n,r){var o=r.maxSpeed,i=r.linearity,a=r.deceleration,s=t.clamp(e*i/(n/1e3),-o,o),l=Math.abs(s)/(a*i);return{easing:r.easing,duration:1e3*l,amount:s*(l/2)}}Ar.prototype.clear=function(){this._inertiaBuffer=[]},Ar.prototype.record=function(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.browser.now(),settings:e})},Ar.prototype._drainInertiaBuffer=function(){for(var e=this._inertiaBuffer,n=t.browser.now();e.length>0&&n-e[0].time>160;)e.shift()},Ar.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var n={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},r=0,o=this._inertiaBuffer;r<o.length;r+=1){var i=o[r].settings;n.zoom+=i.zoomDelta||0,n.bearing+=i.bearingDelta||0,n.pitch+=i.pitchDelta||0,i.panDelta&&n.pan._add(i.panDelta),i.around&&(n.around=i.around),i.pinchAround&&(n.pinchAround=i.pinchAround)}var a=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(n.pan.mag()){var l=Mr(n.pan.mag(),a,t.extend({},Cr,e||{}));s.offset=n.pan.mult(l.amount/n.pan.mag()),s.center=this._map.transform.center,zr(s,l)}if(n.zoom){var u=Mr(n.zoom,a,Pr);s.zoom=this._map.transform.zoom+u.amount,zr(s,u)}if(n.bearing){var c=Mr(n.bearing,a,Ir);s.bearing=this._map.transform.bearing+t.clamp(c.amount,-179,179),zr(s,c)}if(n.pitch){var p=Mr(n.pitch,a,Or);s.pitch=this._map.transform.pitch+p.amount,zr(s,p)}if(s.zoom||s.bearing){var f=void 0===n.pinchAround?n.around:n.pinchAround;s.around=f?this._map.unproject(f):this._map.getCenter()}return this.clear(),t.extend(s,{noMoveStart:!0})}};var Rr=function(e){function r(r,o,i,a){void 0===a&&(a={});var s=n.mousePos(o.getCanvasContainer(),i),l=o.unproject(s);e.call(this,r,t.extend({point:s,lngLat:l,originalEvent:i},a)),this._defaultPrevented=!1,this.target=o}e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r;var o={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},o.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,o),r}(t.Event),Dr=function(e){function r(r,o,i){var a="touchend"===r?i.changedTouches:i.touches,s=n.touchPos(o.getCanvasContainer(),a),l=s.map((function(t){return o.unproject(t)})),u=s.reduce((function(t,e,n,r){return t.add(e.div(r.length))}),new t.Point(0,0)),c=o.unproject(u);e.call(this,r,{points:s,point:u,lngLats:l,lngLat:c,originalEvent:i}),this._defaultPrevented=!1}e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r;var o={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},o.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,o),r}(t.Event),Lr=function(t){function e(e,n,r){t.call(this,e,{originalEvent:r}),this._defaultPrevented=!1}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},n.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,n),e}(t.Event),jr=function(t,e){this._map=t,this._clickTolerance=e.clickTolerance};jr.prototype.reset=function(){delete this._mousedownPos},jr.prototype.wheel=function(t){return this._firePreventable(new Lr(t.type,this._map,t))},jr.prototype.mousedown=function(t,e){return this._mousedownPos=e,this._firePreventable(new Rr(t.type,this._map,t))},jr.prototype.mouseup=function(t){this._map.fire(new Rr(t.type,this._map,t))},jr.prototype.click=function(t,e){this._mousedownPos&&this._mousedownPos.dist(e)>=this._clickTolerance||this._map.fire(new Rr(t.type,this._map,t))},jr.prototype.dblclick=function(t){return this._firePreventable(new Rr(t.type,this._map,t))},jr.prototype.mouseover=function(t){this._map.fire(new Rr(t.type,this._map,t))},jr.prototype.mouseout=function(t){this._map.fire(new Rr(t.type,this._map,t))},jr.prototype.touchstart=function(t){return this._firePreventable(new Dr(t.type,this._map,t))},jr.prototype.touchmove=function(t){this._map.fire(new Dr(t.type,this._map,t))},jr.prototype.touchend=function(t){this._map.fire(new Dr(t.type,this._map,t))},jr.prototype.touchcancel=function(t){this._map.fire(new Dr(t.type,this._map,t))},jr.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},jr.prototype.isEnabled=function(){return!0},jr.prototype.isActive=function(){return!1},jr.prototype.enable=function(){},jr.prototype.disable=function(){};var Br=function(t){this._map=t};Br.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Br.prototype.mousemove=function(t){this._map.fire(new Rr(t.type,this._map,t))},Br.prototype.mousedown=function(){this._delayContextMenu=!0},Br.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Rr("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Br.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new Rr(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()},Br.prototype.isEnabled=function(){return!0},Br.prototype.isActive=function(){return!1},Br.prototype.enable=function(){},Br.prototype.disable=function(){};var Nr=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function Fr(t,e){for(var n={},r=0;r<t.length;r++)n[t[r].identifier]=e[r];return n}Nr.prototype.isEnabled=function(){return!!this._enabled},Nr.prototype.isActive=function(){return!!this._active},Nr.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Nr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Nr.prototype.mousedown=function(t,e){this.isEnabled()&&t.shiftKey&&0===t.button&&(n.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)},Nr.prototype.mousemoveWindow=function(t,e){if(this._active){var r=e;if(!(this._lastPos.equals(r)||!this._box&&r.dist(this._startPos)<this._clickTolerance)){var o=this._startPos;this._lastPos=r,this._box||(this._box=n.create("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",t));var i=Math.min(o.x,r.x),a=Math.max(o.x,r.x),s=Math.min(o.y,r.y),l=Math.max(o.y,r.y);n.setTransform(this._box,"translate("+i+"px,"+s+"px)"),this._box.style.width=a-i+"px",this._box.style.height=l-s+"px"}}},Nr.prototype.mouseupWindow=function(e,r){var o=this;if(this._active&&0===e.button){var i=this._startPos,a=r;if(this.reset(),n.suppressClick(),i.x!==a.x||i.y!==a.y)return this._map.fire(new t.Event("boxzoomend",{originalEvent:e})),{cameraAnimation:function(t){return t.fitScreenCoordinates(i,a,o._map.getBearing(),{linear:!0})}};this._fireEvent("boxzoomcancel",e)}},Nr.prototype.keydown=function(t){this._active&&27===t.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",t))},Nr.prototype.reset=function(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(n.remove(this._box),this._box=null),n.enableDrag(),delete this._startPos,delete this._lastPos},Nr.prototype._fireEvent=function(e,n){return this._map.fire(new t.Event(e,{originalEvent:n}))};var Ur=function(t){this.reset(),this.numTouches=t.numTouches};Ur.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},Ur.prototype.touchstart=function(e,n,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=e.timeStamp),r.length===this.numTouches&&(this.centroid=function(e){for(var n=new t.Point(0,0),r=0,o=e;r<o.length;r+=1)n._add(o[r]);return n.div(e.length)}(n),this.touches=Fr(r,n)))},Ur.prototype.touchmove=function(t,e,n){if(!this.aborted&&this.centroid){var r=Fr(n,e);for(var o in this.touches){var i=r[o];(!i||i.dist(this.touches[o])>30)&&(this.aborted=!0)}}},Ur.prototype.touchend=function(t,e,n){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){var r=!this.aborted&&this.centroid;if(this.reset(),r)return r}};var Vr=function(t){this.singleTap=new Ur(t),this.numTaps=t.numTaps,this.reset()};Vr.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Vr.prototype.touchstart=function(t,e,n){this.singleTap.touchstart(t,e,n)},Vr.prototype.touchmove=function(t,e,n){this.singleTap.touchmove(t,e,n)},Vr.prototype.touchend=function(t,e,n){var r=this.singleTap.touchend(t,e,n);if(r){var o=t.timeStamp-this.lastTime<500,i=!this.lastTap||this.lastTap.dist(r)<30;if(o&&i||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}};var qr=function(){this._zoomIn=new Vr({numTouches:1,numTaps:2}),this._zoomOut=new Vr({numTouches:2,numTaps:1}),this.reset()};qr.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},qr.prototype.touchstart=function(t,e,n){this._zoomIn.touchstart(t,e,n),this._zoomOut.touchstart(t,e,n)},qr.prototype.touchmove=function(t,e,n){this._zoomIn.touchmove(t,e,n),this._zoomOut.touchmove(t,e,n)},qr.prototype.touchend=function(t,e,n){var r=this,o=this._zoomIn.touchend(t,e,n),i=this._zoomOut.touchend(t,e,n);return o?(this._active=!0,t.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(o)},{originalEvent:t})}}):i?(this._active=!0,t.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(i)},{originalEvent:t})}}):void 0},qr.prototype.touchcancel=function(){this.reset()},qr.prototype.enable=function(){this._enabled=!0},qr.prototype.disable=function(){this._enabled=!1,this.reset()},qr.prototype.isEnabled=function(){return this._enabled},qr.prototype.isActive=function(){return this._active};var Gr={0:1,2:2},Wr=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};Wr.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Wr.prototype._correctButton=function(t,e){return!1},Wr.prototype._move=function(t,e){return{}},Wr.prototype.mousedown=function(t,e){if(!this._lastPoint){var r=n.mouseButton(t);this._correctButton(t,r)&&(this._lastPoint=e,this._eventButton=r)}},Wr.prototype.mousemoveWindow=function(t,e){var n=this._lastPoint;if(n)if(t.preventDefault(),function(t,e){var n=Gr[e];return void 0===t.buttons||(t.buttons&n)!==n}(t,this._eventButton))this.reset();else if(this._moved||!(e.dist(n)<this._clickTolerance))return this._moved=!0,this._lastPoint=e,this._move(n,e)},Wr.prototype.mouseupWindow=function(t){this._lastPoint&&n.mouseButton(t)===this._eventButton&&(this._moved&&n.suppressClick(),this.reset())},Wr.prototype.enable=function(){this._enabled=!0},Wr.prototype.disable=function(){this._enabled=!1,this.reset()},Wr.prototype.isEnabled=function(){return this._enabled},Wr.prototype.isActive=function(){return this._active};var Zr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.mousedown=function(e,n){t.prototype.mousedown.call(this,e,n),this._lastPoint&&(this._active=!0)},e.prototype._correctButton=function(t,e){return 0===e&&!t.ctrlKey},e.prototype._move=function(t,e){return{around:e,panDelta:e.sub(t)}},e}(Wr),Hr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._correctButton=function(t,e){return 0===e&&t.ctrlKey||2===e},e.prototype._move=function(t,e){var n=.8*(e.x-t.x);if(n)return this._active=!0,{bearingDelta:n}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(Wr),Xr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._correctButton=function(t,e){return 0===e&&t.ctrlKey||2===e},e.prototype._move=function(t,e){var n=-.5*(e.y-t.y);if(n)return this._active=!0,{pitchDelta:n}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(Wr),$r=function(t){this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset()};$r.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new t.Point(0,0)},$r.prototype.touchstart=function(t,e,n){return this._calculateTransform(t,e,n)},$r.prototype.touchmove=function(t,e,n){if(this._active&&!(n.length<this._minTouches))return t.preventDefault(),this._calculateTransform(t,e,n)},$r.prototype.touchend=function(t,e,n){this._calculateTransform(t,e,n),this._active&&n.length<this._minTouches&&this.reset()},$r.prototype.touchcancel=function(){this.reset()},$r.prototype._calculateTransform=function(e,n,r){r.length>0&&(this._active=!0);var o=Fr(r,n),i=new t.Point(0,0),a=new t.Point(0,0),s=0;for(var l in o){var u=o[l],c=this._touches[l];c&&(i._add(u),a._add(u.sub(c)),s++,o[l]=u)}if(this._touches=o,!(s<this._minTouches)&&a.mag()){var p=a.div(s);if(this._sum._add(p),!(this._sum.mag()<this._clickTolerance))return{around:i.div(s),panDelta:p}}},$r.prototype.enable=function(){this._enabled=!0},$r.prototype.disable=function(){this._enabled=!1,this.reset()},$r.prototype.isEnabled=function(){return this._enabled},$r.prototype.isActive=function(){return this._active};var Kr=function(){this.reset()};function Yr(t,e,n){for(var r=0;r<t.length;r++)if(t[r].identifier===n)return e[r]}function Jr(t,e){return Math.log(t/e)/Math.LN2}Kr.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},Kr.prototype._start=function(t){},Kr.prototype._move=function(t,e,n){return{}},Kr.prototype.touchstart=function(t,e,n){this._firstTwoTouches||n.length<2||(this._firstTwoTouches=[n[0].identifier,n[1].identifier],this._start([e[0],e[1]]))},Kr.prototype.touchmove=function(t,e,n){if(this._firstTwoTouches){t.preventDefault();var r=this._firstTwoTouches,o=r[1],i=Yr(n,e,r[0]),a=Yr(n,e,o);if(i&&a){var s=this._aroundCenter?null:i.add(a).div(2);return this._move([i,a],s,t)}}},Kr.prototype.touchend=function(t,e,r){if(this._firstTwoTouches){var o=this._firstTwoTouches,i=o[1],a=Yr(r,e,o[0]),s=Yr(r,e,i);a&&s||(this._active&&n.suppressClick(),this.reset())}},Kr.prototype.touchcancel=function(){this.reset()},Kr.prototype.enable=function(t){this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around},Kr.prototype.disable=function(){this._enabled=!1,this.reset()},Kr.prototype.isEnabled=function(){return this._enabled},Kr.prototype.isActive=function(){return this._active};var Qr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._distance,delete this._startDistance},e.prototype._start=function(t){this._startDistance=this._distance=t[0].dist(t[1])},e.prototype._move=function(t,e){var n=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs(Jr(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Jr(this._distance,n),pinchAround:e}},e}(Kr);function to(t,e){return 180*t.angleWith(e)/Math.PI}var eo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},e.prototype._start=function(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])},e.prototype._move=function(t,e){var n=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:to(this._vector,n),pinchAround:e}},e.prototype._isBelowThreshold=function(t){this._minDiameter=Math.min(this._minDiameter,t.mag());var e=25/(Math.PI*this._minDiameter)*360,n=to(t,this._startVector);return Math.abs(n)<e},e}(Kr);function no(t){return Math.abs(t.y)>Math.abs(t.x)}var ro=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,no(t[0].sub(t[1]))&&(this._valid=!1)},e.prototype._move=function(t,e,n){var r=t[0].sub(this._lastPoints[0]),o=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(r,o,n.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(r.y+o.y)/2*-.5}},e.prototype.gestureBeginsVertically=function(t,e,n){if(void 0!==this._valid)return this._valid;var r=t.mag()>=2,o=e.mag()>=2;if(r||o){if(!r||!o)return void 0===this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;var i=t.y>0==e.y>0;return no(t)&&no(e)&&i}},e}(Kr),oo={panStep:100,bearingStep:15,pitchStep:10},io=function(){var t=oo;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep,this._rotationDisabled=!1};function ao(t){return t*(2-t)}io.prototype.reset=function(){this._active=!1},io.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var n=0,r=0,o=0,i=0,a=0;switch(t.keyCode){case 61:case 107:case 171:case 187:n=1;break;case 189:case 109:case 173:n=-1;break;case 37:t.shiftKey?r=-1:(t.preventDefault(),i=-1);break;case 39:t.shiftKey?r=1:(t.preventDefault(),i=1);break;case 38:t.shiftKey?o=1:(t.preventDefault(),a=-1);break;case 40:t.shiftKey?o=-1:(t.preventDefault(),a=1);break;default:return}return this._rotationDisabled&&(r=0,o=0),{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:ao,zoom:n?Math.round(l)+n*(t.shiftKey?2:1):l,bearing:s.getBearing()+r*e._bearingStep,pitch:s.getPitch()+o*e._pitchStep,offset:[-i*e._panStep,-a*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},io.prototype.enable=function(){this._enabled=!0},io.prototype.disable=function(){this._enabled=!1,this.reset()},io.prototype.isEnabled=function(){return this._enabled},io.prototype.isActive=function(){return this._active},io.prototype.disableRotation=function(){this._rotationDisabled=!0},io.prototype.enableRotation=function(){this._rotationDisabled=!1};var so=function(e,n){this._map=e,this._el=e.getCanvasContainer(),this._handler=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll(["_onTimeout"],this)};so.prototype.setZoomRate=function(t){this._defaultZoomRate=t},so.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},so.prototype.isEnabled=function(){return!!this._enabled},so.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},so.prototype.isZooming=function(){return!!this._zooming},so.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&"center"===t.around)},so.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},so.prototype.wheel=function(e){if(this.isEnabled()){var n=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,r=t.browser.now(),o=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==n&&n%4.000244140625==0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":o>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(o*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),e.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=e,this._delta-=n,this._active||this._start(e)),e.preventDefault()}},so.prototype._onTimeout=function(t){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t)},so.prototype._start=function(e){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var r=n.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(r)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},so.prototype.renderFrame=function(){var e=this;if(this._frameId&&(this._frameId=null,this.isActive())){var n=this._map.transform;if(0!==this._delta){var r="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,o=2/(1+Math.exp(-Math.abs(this._delta*r)));this._delta<0&&0!==o&&(o=1/o);var i="number"==typeof this._targetZoom?n.zoomScale(this._targetZoom):n.scale;this._targetZoom=Math.min(n.maxZoom,Math.max(n.minZoom,n.scaleZoom(i*o))),"wheel"===this._type&&(this._startZoom=n.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var a,s="number"==typeof this._targetZoom?this._targetZoom:n.zoom,l=this._startZoom,u=this._easing,c=!1;if("wheel"===this._type&&l&&u){var p=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),f=u(p);a=t.number(l,s,f),p<1?this._frameId||(this._frameId=!0):c=!0}else a=s,c=!0;return this._active=!0,c&&(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!c,zoomDelta:a-n.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},so.prototype._smoothOutEasing=function(e){var n=t.ease;if(this._prevEase){var r=this._prevEase,o=(t.browser.now()-r.start)/r.duration,i=r.easing(o+.01)-r.easing(o),a=.27/Math.sqrt(i*i+1e-4)*.01,s=Math.sqrt(.0729-a*a);n=t.bezier(a,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:n},n},so.prototype.reset=function(){this._active=!1};var lo=function(t,e){this._clickZoom=t,this._tapZoom=e};lo.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},lo.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},lo.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},lo.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var uo=function(){this.reset()};uo.prototype.reset=function(){this._active=!1},uo.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(n){n.easeTo({duration:300,zoom:n.getZoom()+(t.shiftKey?-1:1),around:n.unproject(e)},{originalEvent:t})}}},uo.prototype.enable=function(){this._enabled=!0},uo.prototype.disable=function(){this._enabled=!1,this.reset()},uo.prototype.isEnabled=function(){return this._enabled},uo.prototype.isActive=function(){return this._active};var co=function(){this._tap=new Vr({numTouches:1,numTaps:1}),this.reset()};co.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},co.prototype.touchstart=function(t,e,n){this._swipePoint||(this._tapTime&&t.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?n.length>0&&(this._swipePoint=e[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(t,e,n))},co.prototype.touchmove=function(t,e,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;var r=e[0],o=r.y-this._swipePoint.y;return this._swipePoint=r,t.preventDefault(),this._active=!0,{zoomDelta:o/128}}}else this._tap.touchmove(t,e,n)},co.prototype.touchend=function(t,e,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(t,e,n)&&(this._tapTime=t.timeStamp)},co.prototype.touchcancel=function(){this.reset()},co.prototype.enable=function(){this._enabled=!0},co.prototype.disable=function(){this._enabled=!1,this.reset()},co.prototype.isEnabled=function(){return this._enabled},co.prototype.isActive=function(){return this._active};var po=function(t,e,n){this._el=t,this._mousePan=e,this._touchPan=n};po.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},po.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},po.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},po.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var fo=function(t,e,n){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=n};fo.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},fo.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},fo.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},fo.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var ho=function(t,e,n,r){this._el=t,this._touchZoom=e,this._touchRotate=n,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0};ho.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},ho.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},ho.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},ho.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},ho.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},ho.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var mo=function(t){return t.zoom||t.drag||t.pitch||t.rotate},yo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(t.Event);function go(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var vo=function(e,r){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Ar(e),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r),t.bindAll(["handleEvent","handleWindowEvent"],this);var o=this._el;this._listeners=[[o,"touchstart",{passive:!0}],[o,"touchmove",{passive:!1}],[o,"touchend",void 0],[o,"touchcancel",void 0],[o,"mousedown",void 0],[o,"mousemove",void 0],[o,"mouseup",void 0],[t.window.document,"mousemove",{capture:!0}],[t.window.document,"mouseup",void 0],[o,"mouseover",void 0],[o,"mouseout",void 0],[o,"dblclick",void 0],[o,"click",void 0],[o,"keydown",{capture:!1}],[o,"keyup",void 0],[o,"wheel",{passive:!1}],[o,"contextmenu",void 0],[t.window,"blur",void 0]];for(var i=0,a=this._listeners;i<a.length;i+=1){var s=a[i],l=s[0];n.addEventListener(l,s[1],l===t.window.document?this.handleWindowEvent:this.handleEvent,s[2])}};vo.prototype.destroy=function(){for(var e=0,r=this._listeners;e<r.length;e+=1){var o=r[e],i=o[0];n.removeEventListener(i,o[1],i===t.window.document?this.handleWindowEvent:this.handleEvent,o[2])}},vo.prototype._addDefaultHandlers=function(t){var e=this._map,n=e.getCanvasContainer();this._add("mapEvent",new jr(e,t));var r=e.boxZoom=new Nr(e,t);this._add("boxZoom",r);var o=new qr,i=new uo;e.doubleClickZoom=new lo(i,o),this._add("tapZoom",o),this._add("clickZoom",i);var a=new co;this._add("tapDragZoom",a);var s=e.touchPitch=new ro;this._add("touchPitch",s);var l=new Hr(t),u=new Xr(t);e.dragRotate=new fo(t,l,u),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",u,["mouseRotate"]);var c=new Zr(t),p=new $r(t);e.dragPan=new po(n,c,p),this._add("mousePan",c),this._add("touchPan",p,["touchZoom","touchRotate"]);var f=new eo,h=new Qr;e.touchZoomRotate=new ho(n,h,f,a),this._add("touchRotate",f,["touchPan","touchZoom"]),this._add("touchZoom",h,["touchPan","touchRotate"]);var d=e.scrollZoom=new so(e,this);this._add("scrollZoom",d,["mousePan"]);var m=e.keyboard=new io;this._add("keyboard",m),this._add("blockableMapEvent",new Br(e));for(var y=0,g=["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"];y<g.length;y+=1){var v=g[y];t.interactive&&t[v]&&e[v].enable(t[v])}},vo.prototype._add=function(t,e,n){this._handlers.push({handlerName:t,handler:e,allowed:n}),this._handlersById[t]=e},vo.prototype.stop=function(t){if(!this._updatingCamera){for(var e=0,n=this._handlers;e<n.length;e+=1)n[e].handler.reset();this._inertia.clear(),this._fireEvents({},{},t),this._changes=[]}},vo.prototype.isActive=function(){for(var t=0,e=this._handlers;t<e.length;t+=1)if(e[t].handler.isActive())return!0;return!1},vo.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},vo.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},vo.prototype.isMoving=function(){return Boolean(mo(this._eventsInProgress))||this.isZooming()},vo.prototype._blockedByActive=function(t,e,n){for(var r in t)if(r!==n&&(!e||e.indexOf(r)<0))return!0;return!1},vo.prototype.handleWindowEvent=function(t){this.handleEvent(t,t.type+"Window")},vo.prototype._getMapTouches=function(t){for(var e=[],n=0,r=t;n<r.length;n+=1){var o=r[n];this._el.contains(o.target)&&e.push(o)}return e},vo.prototype.handleEvent=function(t,e){if("blur"!==t.type){this._updatingCamera=!0;for(var r="renderFrame"===t.type?void 0:t,o={needsRenderFrame:!1},i={},a={},s=t.touches?this._getMapTouches(t.touches):void 0,l=s?n.touchPos(this._el,s):n.mousePos(this._el,t),u=0,c=this._handlers;u<c.length;u+=1){var p=c[u],f=p.handlerName,h=p.handler,d=p.allowed;if(h.isEnabled()){var m=void 0;this._blockedByActive(a,d,f)?h.reset():h[e||t.type]&&(m=h[e||t.type](t,l,s),this.mergeHandlerResult(o,i,m,f,r),m&&m.needsRenderFrame&&this._triggerRenderFrame()),(m||h.isActive())&&(a[f]=h)}}var y={};for(var g in this._previousActiveHandlers)a[g]||(y[g]=r);this._previousActiveHandlers=a,(Object.keys(y).length||go(o))&&(this._changes.push([o,i,y]),this._triggerRenderFrame()),(Object.keys(a).length||go(o))&&this._map._stop(!0),this._updatingCamera=!1;var v=o.cameraAnimation;v&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],v(this._map))}else this.stop(!0)},vo.prototype.mergeHandlerResult=function(e,n,r,o,i){if(r){t.extend(e,r);var a={handlerName:o,originalEvent:r.originalEvent||i};void 0!==r.zoomDelta&&(n.zoom=a),void 0!==r.panDelta&&(n.drag=a),void 0!==r.pitchDelta&&(n.pitch=a),void 0!==r.bearingDelta&&(n.rotate=a)}},vo.prototype._applyChanges=function(){for(var e={},n={},r={},o=0,i=this._changes;o<i.length;o+=1){var a=i[o],s=a[0],l=a[1],u=a[2];s.panDelta&&(e.panDelta=(e.panDelta||new t.Point(0,0))._add(s.panDelta)),s.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+s.zoomDelta),s.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+s.bearingDelta),s.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+s.pitchDelta),void 0!==s.around&&(e.around=s.around),void 0!==s.pinchAround&&(e.pinchAround=s.pinchAround),s.noInertia&&(e.noInertia=s.noInertia),t.extend(n,l),t.extend(r,u)}this._updateMapTransform(e,n,r),this._changes=[]},vo.prototype._updateMapTransform=function(t,e,n){var r=this._map,o=r.transform;if(!go(t))return this._fireEvents(e,n,!0);var i=t.panDelta,a=t.zoomDelta,s=t.bearingDelta,l=t.pitchDelta,u=t.around,c=t.pinchAround;void 0!==c&&(u=c),r._stop(!0),u=u||r.transform.centerPoint;var p=o.pointLocation(i?u.sub(i):u);s&&(o.bearing+=s),l&&(o.pitch+=l),a&&(o.zoom+=a),o.setLocationAtPoint(p,u),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(e,n,!0)},vo.prototype._fireEvents=function(e,n,r){var o=this,i=mo(this._eventsInProgress),a=mo(e),s={};for(var l in e)this._eventsInProgress[l]||(s[l+"start"]=e[l].originalEvent),this._eventsInProgress[l]=e[l];for(var u in!i&&a&&this._fireEvent("movestart",a.originalEvent),s)this._fireEvent(u,s[u]);for(var c in a&&this._fireEvent("move",a.originalEvent),e)this._fireEvent(c,e[c].originalEvent);var p,f={};for(var h in this._eventsInProgress){var d=this._eventsInProgress[h],m=d.handlerName,y=d.originalEvent;this._handlersById[m].isActive()||(delete this._eventsInProgress[h],f[h+"end"]=p=n[m]||y)}for(var g in f)this._fireEvent(g,f[g]);var v=mo(this._eventsInProgress);if(r&&(i||a)&&!v){this._updatingCamera=!0;var _=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),b=function(t){return 0!==t&&-o._bearingSnap<t&&t<o._bearingSnap};_?(b(_.bearing||this._map.getBearing())&&(_.bearing=0),this._map.easeTo(_,{originalEvent:p})):(this._map.fire(new t.Event("moveend",{originalEvent:p})),b(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}},vo.prototype._fireEvent=function(e,n){this._map.fire(new t.Event(e,n?{originalEvent:n}:{}))},vo.prototype._requestFrame=function(){var t=this;return this._map.triggerRepaint(),this._map._renderTaskQueue.add((function(e){delete t._frameId,t.handleEvent(new yo("renderFrame",{timeStamp:e})),t._applyChanges()}))},vo.prototype._triggerRenderFrame=function(){void 0===this._frameId&&(this._frameId=this._requestFrame())};var _o=function(e){function n(n,r){e.call(this),this._moving=!1,this._zooming=!1,this.transform=n,this._bearingSnap=r.bearingSnap,t.bindAll(["_renderFrameCallback"],this)}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.getCenter=function(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)},n.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},n.prototype.panBy=function(e,n,r){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},n),r)},n.prototype.panTo=function(e,n,r){return this.easeTo(t.extend({center:e},n),r)},n.prototype.getZoom=function(){return this.transform.zoom},n.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},n.prototype.zoomTo=function(e,n,r){return this.easeTo(t.extend({zoom:e},n),r)},n.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},n.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},n.prototype.getBearing=function(){return this.transform.bearing},n.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},n.prototype.getPadding=function(){return this.transform.padding},n.prototype.setPadding=function(t,e){return this.jumpTo({padding:t},e),this},n.prototype.rotateTo=function(e,n,r){return this.easeTo(t.extend({bearing:e},n),r)},n.prototype.resetNorth=function(e,n){return this.rotateTo(0,t.extend({duration:1e3},e),n),this},n.prototype.resetNorthPitch=function(e,n){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),n),this},n.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(t,e):this},n.prototype.getPitch=function(){return this.transform.pitch},n.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},n.prototype.cameraForBounds=function(e,n){e=t.LngLatBounds.convert(e);var r=n&&n.bearing||0;return this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),r,n)},n.prototype._cameraForBoxAndBearing=function(e,n,r,o){var i={top:0,bottom:0,right:0,left:0};if("number"==typeof(o=t.extend({padding:i,offset:[0,0],maxZoom:this.transform.maxZoom},o)).padding){var a=o.padding;o.padding={top:a,bottom:a,right:a,left:a}}o.padding=t.extend(i,o.padding);var s=this.transform,l=s.padding,u=s.project(t.LngLat.convert(e)),c=s.project(t.LngLat.convert(n)),p=u.rotate(-r*Math.PI/180),f=c.rotate(-r*Math.PI/180),h=new t.Point(Math.max(p.x,f.x),Math.max(p.y,f.y)),d=new t.Point(Math.min(p.x,f.x),Math.min(p.y,f.y)),m=h.sub(d),y=(s.width-(l.left+l.right+o.padding.left+o.padding.right))/m.x,g=(s.height-(l.top+l.bottom+o.padding.top+o.padding.bottom))/m.y;if(!(g<0||y<0)){var v=Math.min(s.scaleZoom(s.scale*Math.min(y,g)),o.maxZoom),_="number"==typeof o.offset.x?new t.Point(o.offset.x,o.offset.y):t.Point.convert(o.offset),b=new t.Point((o.padding.left-o.padding.right)/2,(o.padding.top-o.padding.bottom)/2).rotate(r*Math.PI/180),x=_.add(b).mult(s.scale/s.zoomScale(v));return{center:s.unproject(u.add(c).div(2).sub(x)),zoom:v,bearing:r}}t.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")},n.prototype.fitBounds=function(t,e,n){return this._fitInternal(this.cameraForBounds(t,e),e,n)},n.prototype.fitScreenCoordinates=function(e,n,r,o,i){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.Point.convert(e)),this.transform.pointLocation(t.Point.convert(n)),r,o),o,i)},n.prototype._fitInternal=function(e,n,r){return e?(delete(n=t.extend(e,n)).padding,n.linear?this.easeTo(n,r):this.flyTo(n,r)):this},n.prototype.jumpTo=function(e,n){this.stop();var r=this.transform,o=!1,i=!1,a=!1;return"zoom"in e&&r.zoom!==+e.zoom&&(o=!0,r.zoom=+e.zoom),void 0!==e.center&&(r.center=t.LngLat.convert(e.center)),"bearing"in e&&r.bearing!==+e.bearing&&(i=!0,r.bearing=+e.bearing),"pitch"in e&&r.pitch!==+e.pitch&&(a=!0,r.pitch=+e.pitch),null==e.padding||r.isPaddingEqual(e.padding)||(r.padding=e.padding),this.fire(new t.Event("movestart",n)).fire(new t.Event("move",n)),o&&this.fire(new t.Event("zoomstart",n)).fire(new t.Event("zoom",n)).fire(new t.Event("zoomend",n)),i&&this.fire(new t.Event("rotatestart",n)).fire(new t.Event("rotate",n)).fire(new t.Event("rotateend",n)),a&&this.fire(new t.Event("pitchstart",n)).fire(new t.Event("pitch",n)).fire(new t.Event("pitchend",n)),this.fire(new t.Event("moveend",n))},n.prototype.easeTo=function(e,n){var r=this;this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||!e.essential&&t.browser.prefersReducedMotion)&&(e.duration=0);var o=this.transform,i=this.getZoom(),a=this.getBearing(),s=this.getPitch(),l=this.getPadding(),u="zoom"in e?+e.zoom:i,c="bearing"in e?this._normalizeBearing(e.bearing,a):a,p="pitch"in e?+e.pitch:s,f="padding"in e?e.padding:o.padding,h=t.Point.convert(e.offset),d=o.centerPoint.add(h),m=o.pointLocation(d),y=t.LngLat.convert(e.center||m);this._normalizeCenter(y);var g,v,_=o.project(m),b=o.project(y).sub(_),x=o.zoomScale(u-i);e.around&&(g=t.LngLat.convert(e.around),v=o.locationPoint(g));var w={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||u!==i,this._rotating=this._rotating||a!==c,this._pitching=this._pitching||p!==s,this._padding=!o.isPaddingEqual(f),this._easeId=e.easeId,this._prepareEase(n,e.noMoveStart,w),this._ease((function(e){if(r._zooming&&(o.zoom=t.number(i,u,e)),r._rotating&&(o.bearing=t.number(a,c,e)),r._pitching&&(o.pitch=t.number(s,p,e)),r._padding&&(o.interpolatePadding(l,f,e),d=o.centerPoint.add(h)),g)o.setLocationAtPoint(g,v);else{var m=o.zoomScale(o.zoom-i),y=u>i?Math.min(2,x):Math.max(.5,x),w=Math.pow(y,1-e),E=o.unproject(_.add(b.mult(e*w)).mult(m));o.setLocationAtPoint(o.renderWorldCopies?E.wrap():E,d)}r._fireMoveEvents(n)}),(function(t){r._afterEase(n,t)}),e),this},n.prototype._prepareEase=function(e,n,r){void 0===r&&(r={}),this._moving=!0,n||r.moving||this.fire(new t.Event("movestart",e)),this._zooming&&!r.zooming&&this.fire(new t.Event("zoomstart",e)),this._rotating&&!r.rotating&&this.fire(new t.Event("rotatestart",e)),this._pitching&&!r.pitching&&this.fire(new t.Event("pitchstart",e))},n.prototype._fireMoveEvents=function(e){this.fire(new t.Event("move",e)),this._zooming&&this.fire(new t.Event("zoom",e)),this._rotating&&this.fire(new t.Event("rotate",e)),this._pitching&&this.fire(new t.Event("pitch",e))},n.prototype._afterEase=function(e,n){if(!this._easeId||!n||this._easeId!==n){delete this._easeId;var r=this._zooming,o=this._rotating,i=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new t.Event("zoomend",e)),o&&this.fire(new t.Event("rotateend",e)),i&&this.fire(new t.Event("pitchend",e)),this.fire(new t.Event("moveend",e))}},n.prototype.flyTo=function(e,n){var r=this;if(!e.essential&&t.browser.prefersReducedMotion){var o=t.pick(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(o,n)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var i=this.transform,a=this.getZoom(),s=this.getBearing(),l=this.getPitch(),u=this.getPadding(),c="zoom"in e?t.clamp(+e.zoom,i.minZoom,i.maxZoom):a,p="bearing"in e?this._normalizeBearing(e.bearing,s):s,f="pitch"in e?+e.pitch:l,h="padding"in e?e.padding:i.padding,d=i.zoomScale(c-a),m=t.Point.convert(e.offset),y=i.centerPoint.add(m),g=i.pointLocation(y),v=t.LngLat.convert(e.center||g);this._normalizeCenter(v);var _=i.project(g),b=i.project(v).sub(_),x=e.curve,w=Math.max(i.width,i.height),E=w/d,S=b.mag();if("minZoom"in e){var k=t.clamp(Math.min(e.minZoom,a,c),i.minZoom,i.maxZoom),T=w/i.zoomScale(k-a);x=Math.sqrt(T/S*2)}var C=x*x;function P(t){var e=(E*E-w*w+(t?-1:1)*C*C*S*S)/(2*(t?E:w)*C*S);return Math.log(Math.sqrt(e*e+1)-e)}function I(t){return(Math.exp(t)-Math.exp(-t))/2}function O(t){return(Math.exp(t)+Math.exp(-t))/2}var A=P(0),z=function(t){return O(A)/O(A+x*t)},M=function(t){return w*((O(A)*(I(e=A+x*t)/O(e))-I(A))/C)/S;var e},R=(P(1)-A)/x;if(Math.abs(S)<1e-6||!isFinite(R)){if(Math.abs(w-E)<1e-6)return this.easeTo(e,n);var D=E<w?-1:1;R=Math.abs(Math.log(E/w))/x,M=function(){return 0},z=function(t){return Math.exp(D*x*t)}}return e.duration="duration"in e?+e.duration:1e3*R/("screenSpeed"in e?+e.screenSpeed/x:+e.speed),e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=s!==p,this._pitching=f!==l,this._padding=!i.isPaddingEqual(h),this._prepareEase(n,!1),this._ease((function(e){var o=e*R,d=1/z(o);i.zoom=1===e?c:a+i.scaleZoom(d),r._rotating&&(i.bearing=t.number(s,p,e)),r._pitching&&(i.pitch=t.number(l,f,e)),r._padding&&(i.interpolatePadding(u,h,e),y=i.centerPoint.add(m));var g=1===e?v:i.unproject(_.add(b.mult(M(o))).mult(d));i.setLocationAtPoint(i.renderWorldCopies?g.wrap():g,y),r._fireMoveEvents(n)}),(function(){return r._afterEase(n)}),e),this},n.prototype.isEasing=function(){return!!this._easeFrameId},n.prototype.stop=function(){return this._stop()},n.prototype._stop=function(t,e){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var n=this._onEaseEnd;delete this._onEaseEnd,n.call(this,e)}if(!t){var r=this.handlers;r&&r.stop(!1)}return this},n.prototype._ease=function(e,n,r){!1===r.animate||0===r.duration?(e(1),n()):(this._easeStart=t.browser.now(),this._easeOptions=r,this._onEaseFrame=e,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},n.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},n.prototype._normalizeBearing=function(e,n){e=t.wrap(e,-180,180);var r=Math.abs(e-n);return Math.abs(e-360-n)<r&&(e-=360),Math.abs(e+360-n)<r&&(e+=360),e},n.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&&!e.lngRange){var n=t.lng-e.center.lng;t.lng+=n>180?-360:n<-180?360:0}},n}(t.Evented),bo=function(e){void 0===e&&(e={}),this.options=e,t.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};bo.prototype.getDefaultPosition=function(){return"bottom-right"},bo.prototype.onAdd=function(t){var e=this.options&&this.options.compact;return this._map=t,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=n.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=n.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),e&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===e&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},bo.prototype.onRemove=function(){n.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},bo.prototype._setElementTitle=function(t,e){var n=this._map._getUIString("AttributionControl."+e);t.title=n,t.setAttribute("aria-label",n)},bo.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},bo.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(".mapbox-improve-map"));var n=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){var r=n.reduce((function(t,e,r){return e.value&&(t+=e.key+"="+e.value+(r<n.length-1?"&":"")),t}),"?");e.href=t.config.FEEDBACK_URL+"/"+r+(this._map._hash?this._map._hash.getHashString(!0):""),e.rel="noopener nofollow",this._setElementTitle(e,"MapFeedback")}},bo.prototype._updateData=function(t){!t||"metadata"!==t.sourceDataType&&"visibility"!==t.sourceDataType&&"style"!==t.dataType||(this._updateAttributions(),this._updateEditLink())},bo.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((function(t){return"string"!=typeof t?"":t}))):"string"==typeof this.options.customAttribution&&t.push(this.options.customAttribution)),this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var n=this._map.style.sourceCaches;for(var r in n){var o=n[r];if(o.used){var i=o.getSource();i.attribution&&t.indexOf(i.attribution)<0&&t.push(i.attribution)}}t.sort((function(t,e){return t.length-e.length}));var a=(t=t.filter((function(e,n){for(var r=n+1;r<t.length;r++)if(t[r].indexOf(e)>=0)return!1;return!0}))).join(" | ");a!==this._attribHTML&&(this._attribHTML=a,t.length?(this._innerContainer.innerHTML=a,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},bo.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var xo=function(){t.bindAll(["_updateLogo"],this),t.bindAll(["_updateCompact"],this)};xo.prototype.onAdd=function(t){this._map=t,this._container=n.create("div","mapboxgl-ctrl");var e=n.create("a","mapboxgl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://www.mapbox.com/",e.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},xo.prototype.onRemove=function(){n.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},xo.prototype.getDefaultPosition=function(){return"bottom-left"},xo.prototype._updateLogo=function(t){t&&"metadata"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},xo.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},xo.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth<250?e.classList.add("mapboxgl-compact"):e.classList.remove("mapboxgl-compact")}};var wo=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};wo.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},wo.prototype.remove=function(t){for(var e=this._currentlyRunning,n=0,r=e?this._queue.concat(e):this._queue;n<r.length;n+=1){var o=r[n];if(o.id===t)return void(o.cancelled=!0)}},wo.prototype.run=function(t){void 0===t&&(t=0);var e=this._currentlyRunning=this._queue;this._queue=[];for(var n=0,r=e;n<r.length;n+=1){var o=r[n];if(!o.cancelled&&(o.callback(t),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},wo.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var Eo={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm"},So=t.window.HTMLImageElement,ko=t.window.HTMLElement,To=t.window.ImageBitmap,Co={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Po=function(r){function o(e){var n=this;if(null!=(e=t.extend({},Co,e)).minZoom&&null!=e.maxZoom&&e.minZoom>e.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=e.minPitch&&null!=e.maxPitch&&e.minPitch>e.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=e.minPitch&&e.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=e.maxPitch&&e.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var o=new Er(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(r.call(this,o,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new wo,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},Eo,e.locale),this._clickTolerance=e.clickTolerance,this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),"string"==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error("Container '"+e.container+"' not found.")}else{if(!(e.container instanceof ko))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container}if(e.maxBounds&&this.setMaxBounds(e.maxBounds),t.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return n._update(!1)})),this.on("moveend",(function(){return n._update(!1)})),this.on("zoom",(function(){return n._update(!0)})),void 0!==t.window&&(t.window.addEventListener("online",this._onWindowOnline,!1),t.window.addEventListener("resize",this._onWindowResize,!1),t.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new vo(this,e),this._hash=e.hash&&new kr("string"==typeof e.hash&&e.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&&(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&&this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&&this.addControl(new bo({customAttribution:e.customAttribution})),this.addControl(new xo,e.logoPosition),this.on("style.load",(function(){n.transform.unmodified&&n.jumpTo(n.style.stylesheet)})),this.on("data",(function(e){n._update("style"===e.dataType),n.fire(new t.Event(e.dataType+"data",e))})),this.on("dataloading",(function(e){n.fire(new t.Event(e.dataType+"dataloading",e))}))}r&&(o.__proto__=r),(o.prototype=Object.create(r&&r.prototype)).constructor=o;var i={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return o.prototype._getMapId=function(){return this._mapId},o.prototype.addControl=function(e,n){if(void 0===n&&(n=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var r=e.onAdd(this);this._controls.push(e);var o=this._controlPositions[n];return-1!==n.indexOf("bottom")?o.insertBefore(r,o.firstChild):o.appendChild(r),this},o.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var n=this._controls.indexOf(e);return n>-1&&this._controls.splice(n,1),e.onRemove(this),this},o.prototype.hasControl=function(t){return this._controls.indexOf(t)>-1},o.prototype.resize=function(e){var n=this._containerDimensions(),r=n[0],o=n[1];this._resizeCanvas(r,o),this.transform.resize(r,o),this.painter.resize(r,o);var i=!this._moving;return i&&(this.stop(),this.fire(new t.Event("movestart",e)).fire(new t.Event("move",e))),this.fire(new t.Event("resize",e)),i&&this.fire(new t.Event("moveend",e)),this},o.prototype.getBounds=function(){return this.transform.getBounds()},o.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},o.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},o.prototype.setMinZoom=function(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t&&this.setZoom(t),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")},o.prototype.getMinZoom=function(){return this.transform.minZoom},o.prototype.setMaxZoom=function(t){if((t=null==t?22:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")},o.prototype.getMaxZoom=function(){return this.transform.maxZoom},o.prototype.setMinPitch=function(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()<t&&this.setPitch(t),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")},o.prototype.getMinPitch=function(){return this.transform.minPitch},o.prototype.setMaxPitch=function(t){if((t=null==t?60:t)>60)throw new Error("maxPitch must be less than or equal to 60");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t&&this.setPitch(t),this;throw new Error("maxPitch must be greater than the current minPitch")},o.prototype.getMaxPitch=function(){return this.transform.maxPitch},o.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},o.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},o.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},o.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},o.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},o.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},o.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},o.prototype._createDelegatedListener=function(t,e,n){var r,o=this;if("mouseenter"===t||"mouseover"===t){var i=!1;return{layer:e,listener:n,delegates:{mousemove:function(r){var a=o.getLayer(e)?o.queryRenderedFeatures(r.point,{layers:[e]}):[];a.length?i||(i=!0,n.call(o,new Rr(t,o,r.originalEvent,{features:a}))):i=!1},mouseout:function(){i=!1}}}}if("mouseleave"===t||"mouseout"===t){var a=!1;return{layer:e,listener:n,delegates:{mousemove:function(r){(o.getLayer(e)?o.queryRenderedFeatures(r.point,{layers:[e]}):[]).length?a=!0:a&&(a=!1,n.call(o,new Rr(t,o,r.originalEvent)))},mouseout:function(e){a&&(a=!1,n.call(o,new Rr(t,o,e.originalEvent)))}}}}return{layer:e,listener:n,delegates:(r={},r[t]=function(t){var r=o.getLayer(e)?o.queryRenderedFeatures(t.point,{layers:[e]}):[];r.length&&(t.features=r,n.call(o,t),delete t.features)},r)}},o.prototype.on=function(t,e,n){if(void 0===n)return r.prototype.on.call(this,t,e);var o=this._createDelegatedListener(t,e,n);for(var i in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(o),o.delegates)this.on(i,o.delegates[i]);return this},o.prototype.once=function(t,e,n){if(void 0===n)return r.prototype.once.call(this,t,e);var o=this._createDelegatedListener(t,e,n);for(var i in o.delegates)this.once(i,o.delegates[i]);return this},o.prototype.off=function(t,e,n){var o=this;return void 0===n?r.prototype.off.call(this,t,e):(this._delegatedListeners&&this._delegatedListeners[t]&&function(r){for(var i=r[t],a=0;a<i.length;a++){var s=i[a];if(s.layer===e&&s.listener===n){for(var l in s.delegates)o.off(l,s.delegates[l]);return i.splice(a,1),o}}}(this._delegatedListeners),this)},o.prototype.queryRenderedFeatures=function(e,n){if(!this.style)return[];var r;if(void 0!==n||void 0===e||e instanceof t.Point||Array.isArray(e)||(n=e,e=void 0),n=n||{},(e=e||[[0,0],[this.transform.width,this.transform.height]])instanceof t.Point||"number"==typeof e[0])r=[t.Point.convert(e)];else{var o=t.Point.convert(e[0]),i=t.Point.convert(e[1]);r=[o,new t.Point(i.x,o.y),i,new t.Point(o.x,i.y),o]}return this.style.queryRenderedFeatures(r,n,this.transform)},o.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},o.prototype.setStyle=function(e,n){return!1!==(n=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},n)).diff&&n.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&e?(this._diffStyle(e,n),this):(this._localIdeographFontFamily=n.localIdeographFontFamily,this._updateStyle(e,n))},o.prototype._getUIString=function(t){var e=this._locale[t];if(null==e)throw new Error("Missing UI string '"+t+"'");return e},o.prototype._updateStyle=function(t,e){return this.style&&(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new qe(this,e||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof t?this.style.loadURL(t):this.style.loadJSON(t),this):(delete this.style,this)},o.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new qe(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},o.prototype._diffStyle=function(e,n){var r=this;if("string"==typeof e){var o=this._requestManager.normalizeStyleURL(e),i=this._requestManager.transformRequest(o,t.ResourceType.Style);t.getJSON(i,(function(e,o){e?r.fire(new t.ErrorEvent(e)):o&&r._updateDiff(o,n)}))}else"object"==typeof e&&this._updateDiff(e,n)},o.prototype._updateDiff=function(e,n){try{this.style.setState(e)&&this._update(!0)}catch(r){t.warnOnce("Unable to perform style diff: "+(r.message||r.error||r)+". Rebuilding the style from scratch."),this._updateStyle(e,n)}},o.prototype.getStyle=function(){if(this.style)return this.style.serialize()},o.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce("There is no style added to the map.")},o.prototype.addSource=function(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)},o.prototype.isSourceLoaded=function(e){var n=this.style&&this.style.sourceCaches[e];if(void 0!==n)return n.loaded();this.fire(new t.ErrorEvent(new Error("There is no source with ID '"+e+"'")))},o.prototype.areTilesLoaded=function(){var t=this.style&&this.style.sourceCaches;for(var e in t){var n=t[e]._tiles;for(var r in n){var o=n[r];if("loaded"!==o.state&&"errored"!==o.state)return!1}}return!0},o.prototype.addSourceType=function(t,e,n){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,n)},o.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},o.prototype.getSource=function(t){return this.style.getSource(t)},o.prototype.addImage=function(e,n,r){void 0===r&&(r={});var o=r.pixelRatio;void 0===o&&(o=1);var i=r.sdf;void 0===i&&(i=!1);var a=r.stretchX,s=r.stretchY,l=r.content;if(this._lazyInitEmptyStyle(),n instanceof So||To&&n instanceof To){var u=t.browser.getImageData(n);this.style.addImage(e,{data:new t.RGBAImage({width:u.width,height:u.height},u.data),pixelRatio:o,stretchX:a,stretchY:s,content:l,sdf:i,version:0})}else{if(void 0===n.width||void 0===n.height)return this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));var c=n;this.style.addImage(e,{data:new t.RGBAImage({width:n.width,height:n.height},new Uint8Array(n.data)),pixelRatio:o,stretchX:a,stretchY:s,content:l,sdf:i,version:0,userImage:c}),c.onAdd&&c.onAdd(this,e)}},o.prototype.updateImage=function(e,n){var r=this.style.getImage(e);if(!r)return this.fire(new t.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));var o=n instanceof So||To&&n instanceof To?t.browser.getImageData(n):n,i=o.width,a=o.height,s=o.data;return void 0===i||void 0===a?this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))):i!==r.data.width||a!==r.data.height?this.fire(new t.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image"))):(r.data.replace(s,!(n instanceof So||To&&n instanceof To)),void this.style.updateImage(e,r))},o.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error("Missing required image id"))),!1)},o.prototype.removeImage=function(t){this.style.removeImage(t)},o.prototype.loadImage=function(e,n){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),n)},o.prototype.listImages=function(){return this.style.listImages()},o.prototype.addLayer=function(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)},o.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},o.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},o.prototype.getLayer=function(t){return this.style.getLayer(t)},o.prototype.setLayerZoomRange=function(t,e,n){return this.style.setLayerZoomRange(t,e,n),this._update(!0)},o.prototype.setFilter=function(t,e,n){return void 0===n&&(n={}),this.style.setFilter(t,e,n),this._update(!0)},o.prototype.getFilter=function(t){return this.style.getFilter(t)},o.prototype.setPaintProperty=function(t,e,n,r){return void 0===r&&(r={}),this.style.setPaintProperty(t,e,n,r),this._update(!0)},o.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},o.prototype.setLayoutProperty=function(t,e,n,r){return void 0===r&&(r={}),this.style.setLayoutProperty(t,e,n,r),this._update(!0)},o.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},o.prototype.setLight=function(t,e){return void 0===e&&(e={}),this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)},o.prototype.getLight=function(){return this.style.getLight()},o.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},o.prototype.removeFeatureState=function(t,e){return this.style.removeFeatureState(t,e),this._update()},o.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},o.prototype.getContainer=function(){return this._container},o.prototype.getCanvasContainer=function(){return this._canvasContainer},o.prototype.getCanvas=function(){return this._canvas},o.prototype._containerDimensions=function(){var t=0,e=0;return this._container&&(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},o.prototype._detectMissingCSS=function(){"rgb(250, 128, 114)"!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&t.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described
1in https://www.mapbox.com/mapbox-gl-js/api/.")},o.prototype._setupContainer=function(){var t=this._container;t.classList.add("mapboxgl-map"),(this._missingCSSCanary=n.create("div","mapboxgl-canary",t)).style.visibility="hidden",this._detectMissingCSS();var e=this._canvasContainer=n.create("div","mapboxgl-canvas-container",t);this._interactive&&e.classList.add("mapboxgl-interactive"),this._canvas=n.create("canvas","mapboxgl-canvas",e),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region");var r=this._containerDimensions();this._resizeCanvas(r[0],r[1]);var o=this._controlContainer=n.create("div","mapboxgl-control-container",t),i=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((function(t){i[t]=n.create("div","mapboxgl-ctrl-"+t,o)})),this._container.addEventListener("scroll",this._onMapScroll,!1)},o.prototype._resizeCanvas=function(e,n){var r=t.browser.devicePixelRatio||1;this._canvas.width=r*e,this._canvas.height=r*n,this._canvas.style.width=e+"px",this._canvas.style.height=n+"px"},o.prototype._setupPainter=function(){var n=t.extend({},e.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),r=this._canvas.getContext("webgl",n)||this._canvas.getContext("experimental-webgl",n);r?(this.painter=new _r(r,this.transform),t.webpSupported.testSupport(r)):this.fire(new t.ErrorEvent(new Error("Failed to initialize WebGL")))},o.prototype._contextLost=function(e){e.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new t.Event("webglcontextlost",{originalEvent:e}))},o.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event("webglcontextrestored",{originalEvent:e}))},o.prototype._onMapScroll=function(t){if(t.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},o.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()},o.prototype._update=function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this},o.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},o.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},o.prototype._render=function(e){var n,r=this,o=0,i=this.painter.context.extTimerQuery;if(this.listens("gpu-timing-frame")&&(n=i.createQueryEXT(),i.beginQueryEXT(i.TIME_ELAPSED_EXT,n),o=t.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),!this._removed){var a=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var s=this.transform.zoom,l=t.browser.now();this.style.zoomHistory.update(s,l);var u=new t.EvaluationParameters(s,{now:l,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),c=u.crossFadingFactor();1===c&&c===this._crossFadingFactor||(a=!0,this._crossFadingFactor=c),this.style.update(u)}if(this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer")}),this.fire(new t.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new t.Event("load"))),this.style&&(this.style.hasTransitions()||a)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){var p=t.browser.now()-o;i.endQueryEXT(i.TIME_ELAPSED_EXT,n),setTimeout((function(){var e=i.getQueryObjectEXT(n,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n),r.fire(new t.Event("gpu-timing-frame",{cpuTime:p,gpuTime:e}))}),50)}if(this.listens("gpu-timing-layer")){var f=this.painter.collectGpuTimers();setTimeout((function(){var e=r.painter.queryGpuTimers(f);r.fire(new t.Event("gpu-timing-layer",{layerTimes:e}))}),50)}var h=this._sourcesDirty||this._styleDirty||this._placementDirty;return h||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new t.Event("idle")),!this._loaded||this._fullyLoaded||h||(this._fullyLoaded=!0),this}},o.prototype.remove=function(){this._hash&&this._hash.remove();for(var e=0,n=this._controls;e<n.length;e+=1)n[e].onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==t.window&&(t.window.removeEventListener("resize",this._onWindowResize,!1),t.window.removeEventListener("orientationchange",this._onWindowResize,!1),t.window.removeEventListener("online",this._onWindowOnline,!1));var r=this.painter.context.gl.getExtension("WEBGL_lose_context");r&&r.loseContext(),Io(this._canvasContainer),Io(this._controlContainer),Io(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),this._removed=!0,this.fire(new t.Event("remove"))},o.prototype.triggerRepaint=function(){var e=this;this.style&&!this._frame&&(this._frame=t.browser.frame((function(t){e._frame=null,e._render(t)})))},o.prototype._onWindowOnline=function(){this._update()},o.prototype._onWindowResize=function(t){this._trackResize&&this.resize({originalEvent:t})._update()},i.showTileBoundaries.get=function(){return!!this._showTileBoundaries},i.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())},i.showPadding.get=function(){return!!this._showPadding},i.showPadding.set=function(t){this._showPadding!==t&&(this._showPadding=t,this._update())},i.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},i.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},i.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},i.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())},i.repaint.get=function(){return!!this._repaint},i.repaint.set=function(t){this._repaint!==t&&(this._repaint=t,this.triggerRepaint())},i.vertices.get=function(){return!!this._vertices}
vendor: 18,198 bytes, line 1
1,i.vertices.set=function(t){this._vertices=t,this._update()},o.prototype._setCacheLimits=function(e,n){t.setCacheLimits(e,n)},i.version.get=function(){return t.version},Object.defineProperties(o.prototype,i),o}(_o);function Io(t){t.parentNode&&t.parentNode.removeChild(t)}var Oo={showCompass:!0,showZoom:!0,visualizePitch:!1},Ao=function(e){var r=this;this.options=t.extend({},Oo,e),this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this.options.showZoom&&(t.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",(function(t){return r._map.zoomIn({},{originalEvent:t})})),n.create("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden",!0),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",(function(t){return r._map.zoomOut({},{originalEvent:t})})),n.create("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden",!0)),this.options.showCompass&&(t.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",(function(t){r.options.visualizePitch?r._map.resetNorthPitch({},{originalEvent:t}):r._map.resetNorth({},{originalEvent:t})})),this._compassIcon=n.create("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden",!0))};Ao.prototype._updateZoomButtons=function(){var t=this._map.getZoom(),e=t===this._map.getMaxZoom(),n=t===this._map.getMinZoom();this._zoomInButton.disabled=e,this._zoomOutButton.disabled=n,this._zoomInButton.setAttribute("aria-disabled",e.toString()),this._zoomOutButton.setAttribute("aria-disabled",n.toString())},Ao.prototype._rotateCompassArrow=function(){var t=this.options.visualizePitch?"scale("+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+") rotateX("+this._map.transform.pitch+"deg) rotateZ("+this._map.transform.angle*(180/Math.PI)+"deg)":"rotate("+this._map.transform.angle*(180/Math.PI)+"deg)";this._compassIcon.style.transform=t},Ao.prototype.onAdd=function(t){return this._map=t,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new zo(this._map,this._compass,this.options.visualizePitch)),this._container},Ao.prototype.onRemove=function(){n.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},Ao.prototype._createButton=function(t,e){var r=n.create("button",t,this._container);return r.type="button",r.addEventListener("click",e),r},Ao.prototype._setButtonTitle=function(t,e){var n=this._map._getUIString("NavigationControl."+e);t.title=n,t.setAttribute("aria-label",n)};var zo=function(e,r,o){void 0===o&&(o=!1),this._clickTolerance=10,this.element=r,this.mouseRotate=new Hr({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,o&&(this.mousePitch=new Xr({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),n.addEventListener(r,"mousedown",this.mousedown),n.addEventListener(r,"touchstart",this.touchstart,{passive:!1}),n.addEventListener(r,"touchmove",this.touchmove),n.addEventListener(r,"touchend",this.touchend),n.addEventListener(r,"touchcancel",this.reset)};function Mo(e,n,r){if(e=new t.LngLat(e.lng,e.lat),n){var o=new t.LngLat(e.lng-360,e.lat),i=new t.LngLat(e.lng+360,e.lat),a=r.locationPoint(e).distSqr(n);r.locationPoint(o).distSqr(n)<a?e=o:r.locationPoint(i).distSqr(n)<a&&(e=i)}for(;Math.abs(e.lng-r.center.lng)>180;){var s=r.locationPoint(e);if(s.x>=0&&s.y>=0&&s.x<=r.width&&s.y<=r.height)break;e.lng>r.center.lng?e.lng-=360:e.lng+=360}return e}zo.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&&this.mousePitch.mousedown(t,e),n.disableDrag()},zo.prototype.move=function(t,e){var n=this.map,r=this.mouseRotate.mousemoveWindow(t,e);if(r&&r.bearingDelta&&n.setBearing(n.getBearing()+r.bearingDelta),this.mousePitch){var o=this.mousePitch.mousemoveWindow(t,e);o&&o.pitchDelta&&n.setPitch(n.getPitch()+o.pitchDelta)}},zo.prototype.off=function(){var t=this.element;n.removeEventListener(t,"mousedown",this.mousedown),n.removeEventListener(t,"touchstart",this.touchstart,{passive:!1}),n.removeEventListener(t,"touchmove",this.touchmove),n.removeEventListener(t,"touchend",this.touchend),n.removeEventListener(t,"touchcancel",this.reset),this.offTemp()},zo.prototype.offTemp=function(){n.enableDrag(),n.removeEventListener(t.window,"mousemove",this.mousemove),n.removeEventListener(t.window,"mouseup",this.mouseup)},zo.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),n.mousePos(this.element,e)),n.addEventListener(t.window,"mousemove",this.mousemove),n.addEventListener(t.window,"mouseup",this.mouseup)},zo.prototype.mousemove=function(t){this.move(t,n.mousePos(this.element,t))},zo.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&&this.mousePitch.mouseupWindow(t),this.offTemp()},zo.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=n.touchPos(this.element,t.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},zo.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=n.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},zo.prototype.touchend=function(t){0===t.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()},zo.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var Ro={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Do(t,e,n){var r=t.classList;for(var o in Ro)r.remove("mapboxgl-"+n+"-anchor-"+o);r.add("mapboxgl-"+n+"-anchor-"+e)}var Lo,jo=function(e){function r(r,o){if(e.call(this),(r instanceof t.window.HTMLElement||o)&&(r=t.extend({element:r},o)),t.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=r&&r.anchor||"center",this._color=r&&r.color||"#3FB1CE",this._scale=r&&r.scale||1,this._draggable=r&&r.draggable||!1,this._clickTolerance=r&&r.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=r&&r.rotation||0,this._rotationAlignment=r&&r.rotationAlignment||"auto",this._pitchAlignment=r&&r.pitchAlignment&&"auto"!==r.pitchAlignment?r.pitchAlignment:this._rotationAlignment,r&&r.element)this._element=r.element,this._offset=t.Point.convert(r&&r.offset||[0,0]);else{this._defaultMarker=!0,this._element=n.create("div"),this._element.setAttribute("aria-label","Map marker");var i=n.createNS("http://www.w3.org/2000/svg","svg");i.setAttributeNS(null,"display","block"),i.setAttributeNS(null,"height","41px"),i.setAttributeNS(null,"width","27px"),i.setAttributeNS(null,"viewBox","0 0 27 41");var a=n.createNS("http://www.w3.org/2000/svg","g");a.setAttributeNS(null,"stroke","none"),a.setAttributeNS(null,"stroke-width","1"),a.setAttributeNS(null,"fill","none"),a.setAttributeNS(null,"fill-rule","evenodd");var s=n.createNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"fill-rule","nonzero");var l=n.createNS("http://www.w3.org/2000/svg","g");l.setAttributeNS(null,"transform","translate(3.0, 29.0)"),l.setAttributeNS(null,"fill","#000000");for(var u=0,c=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];u<c.length;u+=1){var p=c[u],f=n.createNS("http://www.w3.org/2000/svg","ellipse");f.setAttributeNS(null,"opacity","0.04"),f.setAttributeNS(null,"cx","10.5"),f.setAttributeNS(null,"cy","5.80029008"),f.setAttributeNS(null,"rx",p.rx),f.setAttributeNS(null,"ry",p.ry),l.appendChild(f)}var h=n.createNS("http://www.w3.org/2000/svg","g");h.setAttributeNS(null,"fill",this._color);var d=n.createNS("http://www.w3.org/2000/svg","path");d.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),h.appendChild(d);var m=n.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"opacity","0.25"),m.setAttributeNS(null,"fill","#000000");var y=n.createNS("http://www.w3.org/2000/svg","path");y.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),m.appendChild(y);var g=n.createNS("http://www.w3.org/2000/svg","g");g.setAttributeNS(null,"transform","translate(6.0, 7.0)"),g.setAttributeNS(null,"fill","#FFFFFF");var v=n.createNS("http://www.w3.org/2000/svg","g");v.setAttributeNS(null,"transform","translate(8.0, 8.0)");var _=n.createNS("http://www.w3.org/2000/svg","circle");_.setAttributeNS(null,"fill","#000000"),_.setAttributeNS(null,"opacity","0.25"),_.setAttributeNS(null,"cx","5.5"),_.setAttributeNS(null,"cy","5.5"),_.setAttributeNS(null,"r","5.4999962");var b=n.createNS("http://www.w3.org/2000/svg","circle");b.setAttributeNS(null,"fill","#FFFFFF"),b.setAttributeNS(null,"cx","5.5"),b.setAttributeNS(null,"cy","5.5"),b.setAttributeNS(null,"r","5.4999962"),v.appendChild(_),v.appendChild(b),s.appendChild(l),s.appendChild(h),s.appendChild(m),s.appendChild(g),s.appendChild(v),i.appendChild(s),i.setAttributeNS(null,"height",41*this._scale+"px"),i.setAttributeNS(null,"width",27*this._scale+"px"),this._element.appendChild(i),this._offset=t.Point.convert(r&&r.offset||[0,-14])}this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",(function(t){t.preventDefault()})),this._element.addEventListener("mousedown",(function(t){t.preventDefault()})),Do(this._element,this._anchor,"marker"),this._popup=null}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on("move",this._update),t.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this},r.prototype.remove=function(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),n.remove(this._element),this._popup&&this._popup.remove(),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this},r.prototype.getElement=function(){return this._element},r.prototype.setPopup=function(t){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),t){if(!("offset"in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[e,-1*(24.6+e)],"bottom-right":[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this},r.prototype._onKeyPress=function(t){var e=t.code,n=t.charCode||t.keyCode;"Space"!==e&&"Enter"!==e&&32!==n&&13!==n||this.togglePopup()},r.prototype._onMapClick=function(t){var e=t.originalEvent.target,n=this._element;this._popup&&(e===n||n.contains(e))&&this.togglePopup()},r.prototype.getPopup=function(){return this._popup},r.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},r.prototype._update=function(t){if(this._map){this._map.transform.renderWorldCopies&&(this._lngLat=Mo(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var e="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?e="rotateZ("+this._rotation+"deg)":"map"===this._rotationAlignment&&(e="rotateZ("+(this._rotation-this._map.getBearing())+"deg)");var r="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?r="rotateX(0deg)":"map"===this._pitchAlignment&&(r="rotateX("+this._map.getPitch()+"deg)"),t&&"moveend"!==t.type||(this._pos=this._pos.round()),n.setTransform(this._element,Ro[this._anchor]+" translate("+this._pos.x+"px, "+this._pos.y+"px) "+r+" "+e)}},r.prototype.getOffset=function(){return this._offset},r.prototype.setOffset=function(e){return this._offset=t.Point.convert(e),this._update(),this},r.prototype._onMove=function(e){if(!this._isDragging){var n=this._clickTolerance||this._map._clickTolerance;this._isDragging=e.point.dist(this._pointerdownPos)>=n}this._isDragging&&(this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new t.Event("dragstart"))),this.fire(new t.Event("drag")))},r.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new t.Event("dragend")),this._state="inactive"},r.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},r.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&&(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},r.prototype.isDraggable=function(){return this._draggable},r.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},r.prototype.getRotation=function(){return this._rotation},r.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||"auto",this._update(),this},r.prototype.getRotationAlignment=function(){return this._rotationAlignment},r.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&&"auto"!==t?t:this._rotationAlignment,this._update(),this},r.prototype.getPitchAlignment=function(){return this._pitchAlignment},r}(t.Evented),Bo={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},No=0,Fo=!1,Uo=function(e){function r(n){e.call(this),this.options=t.extend({},Bo,n),t.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.onAdd=function(e){var r;return this._map=e,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),r=this._setupUI,void 0!==Lo?r(Lo):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:"geolocation"}).then((function(t){r(Lo="denied"!==t.state)})):r(Lo=!!t.window.navigator.geolocation),this._container},r.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),n.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,No=0,Fo=!1},r.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),n=t.coords;return e&&(n.longitude<e.getWest()||n.longitude>e.getEast()||n.latitude<e.getSouth()||n.latitude>e.getNorth())},r.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_E
1RROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},r.prototype._onSuccess=function(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event("outofmaxbounds",e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(e),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(e),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("geolocate",e)),this._finish()}},r.prototype._updateCamera=function(e){var n=new t.LngLat(e.coords.longitude,e.coords.latitude),r=e.coords.accuracy,o=this._map.getBearing(),i=t.extend({bearing:o},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(r),i,{geolocateSource:!0})},r.prototype._updateMarker=function(e){if(e){var n=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},r.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),n=this._map.unproject([1,t]),r=e.distanceTo(n),o=Math.ceil(2*this._accuracy/r);this._circleElement.style.width=o+"px",this._circleElement.style.height=o+"px"},r.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},r.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=n,this._geolocateButton.setAttribute("aria-label",n),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===e.code&&Fo)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("error",e)),this._finish()}},r.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},r.prototype._setupUI=function(e){var r=this;if(this._container.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this._geolocateButton=n.create("button","mapboxgl-ctrl-geolocate",this._container),n.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===e){t.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var o=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=o,this._geolocateButton.setAttribute("aria-label",o)}else{var i=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=i,this._geolocateButton.setAttribute("aria-label",i)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","fal
1se"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=n.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new jo(this._dotElement),this._circleElement=n.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new jo({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(function(e){e.geolocateSource||"ACTIVE_LOCK"!==r._watchState||e.originalEvent&&"resize"===e.originalEvent.type||(r._watchState="BACKGROUND",r._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),r._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),r.fire(new t.Event("trackuserlocationend")))}))},r.prototype.trigger=function(){if(!this._setup)return t.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":No--,Fo=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new t.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++No>1?(e={maximumAge:6e5,timeout:0},Fo=!0):(e=this.options.positionOptions,Fo=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},r.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},r}(t.Evented),Vo={maxWidth:100,unit:"metric"},qo=function(e){this.options=t.extend({},Vo,e),t.bindAll(["_onMove","setUnit"],this)};function Go(t,e,n){var r=n&&n.maxWidth||100,o=t._container.clientHeight/2,i=t.unproject([0,o]),a=t.unproject([r,o]),s=i.distanceTo(a);if(n&&"imperial"===n.unit){var l=3.2808*s;l>5280?Wo(e,r,l/5280,t._getUIString("ScaleControl.Miles")):Wo(e,r,l,t._getUIString("ScaleControl.Feet"))}else n&&"nautical"===n.unit?Wo(e,r,s/1852,t._getUIString("ScaleControl.NauticalMiles")):s>=1e3?Wo(e,r,s/1e3,t._getUIString("ScaleControl.Kilometers")):Wo(e,r,s,t._getUIString("ScaleControl.Meters"))}function Wo(t,e,n,r){var o,i,a,s=(o=n,(i=Math.pow(10,(""+Math.floor(o)).length-1))*(a=(a=o/i)>=10?10:a>=5?5:a>=3?3:a>=2?2:a>=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(a)));t.style.width=e*(s/n)+"px",t.innerHTML=s+" "+r}qo.prototype.getDefaultPosition=function(){return"bottom-left"},qo.prototype._onMove=function(){Go(this._map,this._container,this.options)},qo.prototype.onAdd=function(t){return this._map=t,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},qo.prototype.onRemove=function(){n.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},qo.prototype.setUnit=function(t){this.options.unit=t,Go(this._map,this._container,this.options)};var Zo=function(e){this._fullscreen=!1,e&&e.container&&(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce("Full screen control 'container' must be a DOM element.")),t.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in t.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in t.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in t.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in t.window.document&&(this._fullscreenchange="MSFullscreenChange")};Zo.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",t.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Zo.prototype.onRemove=function(){n.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Zo.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},Zo.prototype._setupUI=function(){var e=this._fullscreenButton=n.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);n.create("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden",!0),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Zo.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.title=t},Zo.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Zo.prototype._isFullscreen=function(){return this._fullscreen},Zo.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Zo.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&&t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Ho={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"}
vendor: 6,977 bytes, line 1
1,Xo=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),$o=function(e){function r(n){e.call(this),this.options=t.extend(Object.create(Ho),n),t.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.addTo=function(e){return this._map&&this.remove(),this._map=e,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new t.Event("open")),this},r.prototype.isOpen=function(){return!!this._map},r.prototype.remove=function(){return this._content&&n.remove(this._content),this._container&&(n.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new t.Event("close")),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},r.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},r.prototype.getElement=function(){return this._container},r.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},r.prototype.setHTML=function(e){var n,r=t.window.document.createDocumentFragment(),o=t.window.document.createElement("body");for(o.innerHTML=e;n=o.firstChild;)r.appendChild(n);return this.setDOMContent(r)},r.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},r.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},r.prototype.setDOMContent=function(t){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=n.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(t),this._createCloseButton(),this._update(),this._focusFirstElement(),this},r.prototype.addClassName=function(t){this._container&&this._container.classList.add(t)},r.prototype.removeClassName=function(t){this._container&&this._container.classList.remove(t)},r.prototype.setOffset=function(t){return this.options.offset=t,this._update(),this},r.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},r.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=n.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},r.prototype._onMouseUp=function(t){this._update(t.point)},r.prototype._onMouseMove=function(t){this._update(t.point)},r.prototype._onDrag=function(t){this._update(t.point)},r.prototype._update=function(e){var r=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=n.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=n.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((function(t){return r._container.classList.add(t)})),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Mo(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var o=this._pos=this._trackPointer&&e?e:this._map.project(this._lngLat),i=this.options.anchor,a=function e(n){if(n){if("number"==typeof n){var r=Math.round(Math.sqrt(.5*Math.pow(n,2)));return{center:new t.Point(0,0),top:new t.Point(0,n),"top-left":new t.Point(r,r),"top-right":new t.Point(-r,r),bottom:new t.Point(0,-n),"bottom-left":new t.Point(r,-r),"bottom-right":new t.Point(-r,-r),left:new t.Point(n,0),right:new t.Point(-n,0)}}if(n instanceof t.Point||Array.isArray(n)){var o=t.Point.convert(n);return{center:o,top:o,"top-left":o,"top-right":o,bottom:o,"bottom-left":o,"bottom-right":o,left:o,right:o}}return{center:t.Point.convert(n.center||[0,0]),top:t.Point.convert(n.top||[0,0]),"top-left":t.Point.convert(n["top-left"]||[0,0]),"top-right":t.Point.convert(n["top-right"]||[0,0]),bottom:t.Point.convert(n.bottom||[0,0]),"bottom-left":t.Point.convert(n["bottom-left"]||[0,0]),"bottom-right":t.Point.convert(n["bottom-right"]||[0,0]),left:t.Point.convert(n.left||[0,0]),right:t.Point.convert(n.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!i){var s,l=this._container.offsetWidth,u=this._container.offsetHeight;s=o.y+a.bottom.y<u?["top"]:o.y>this._map.transform.height-u?["bottom"]:[],o.x<l/2?s.push("left"):o.x>this._map.transform.width-l/2&&s.push("right"),i=0===s.length?"bottom":s.join("-")}var c=o.add(a[i]).round();n.setTransform(this._container,Ro[i]+" translate("+c.x+"px,"+c.y+"px)"),Do(this._container,i,"popup")}},r.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var t=this._container.querySelector(Xo);t&&t.focus()}},r.prototype._onClose=function(){this.remove()},r}(t.Evented),Ko={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Po,NavigationControl:Ao,GeolocateControl:Uo,AttributionControl:bo,ScaleControl:qo,FullscreenControl:Zo,Popup:$o,Marker:jo,Style:qe,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.
vendor: 10,128 bytes, line 1
1Evented,config:t.config,prewarm:function(){Bt().acquire(Rt)},clearPrewarmedResources:function(){var t=Lt;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(Rt),Lt=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Dt.workerCount},set workerCount(t){Dt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:""};return Ko})),n}()},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o,i,a,s){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],c=0;(l=new Error(e.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(t,e,n){"use strict";var r=function(){};t.exports=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return b})),n.d(e,"c",(function(){return w})),n.d(e,"b",(function(){return d})),n.d(e,"e",(function(){return m})),n.d(e,"d",(function(){return h}));var r=n(8);function o(t){return"/"===t.charAt(0)}function i(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}var a=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],a=e&&e.split("/")||[],s=t&&o(t),l=e&&o(e),u=s||l;if(t&&o(t)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var c=a[a.length-1];n="."===c||".."===c||""===c}else n=!1;for(var p=0,f=a.length;f>=0;f--){var h=a[f];"."===h?i(a,f):".."===h?(i(a,f),p++):p&&(i(a,f),p--)}if(!u)for(;p--;p)a.unshift("..");!u||""===a[0]||a[0]&&o(a[0])||a.unshift("");var d=a.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function s(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}var l=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"==typeof e||"object"==typeof n){var r=s(e),o=s(n);return r!==e||o!==n?t(r,o):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1};var u=function(t,e){if(!t)throw new Error("Invariant failed")};function c(t){return"/"===t.charAt(0)?t:"/"+t}function p(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function f(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function h(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function d(t,e,n,o){var i;"string"==typeof t?(i=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(i=Object(r.a)({},t)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==e&&void 0===i.state&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function m(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&l(t.state,e.state)}function y(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}var g=!("undefined"==typeof window||!window.document||!window.document.createElement);function v(t,e){e(window.confirm(t))}function _(){try{return window.history.state||{}}catch(t){return{}}}function b(t){void 0===t&&(t={}),g||u(!1);var e,n=window.history,o=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),a=t,s=a.forceRefresh,l=void 0!==s&&s,m=a.getUserConfirmation,b=void 0===m?v:m,x=a.keyLength,w=void 0===x?6:x,E=t.basename?f(c(t.basename)):"";function S(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname+o.search+o.hash;return E&&(i=p(i,E)),d(i,r,n)}function k(){return Math.random().toString(36).substr(2,w)}var T=y();function C(t){Object(r.a)(N,t),N.length=n.length,T.notifyListeners(N.location,N.action)}function P(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||A(S(t.state))}function I(){A(S(_()))}var O=!1;function A(t){if(O)O=!1,C();else{T.confirmTransitionTo(t,"POP",b,(function(e){e?C({action:"POP",location:t}):function(t){var e=N.location,n=M.indexOf(e.key);-1===n&&(n=0);var r=M.indexOf(t.key);-1===r&&(r=0);var o=n-r;o&&(O=!0,D(o))}(t)}))}}var z=S(_()),M=[z.key];function R(t){return E+h(t)}function D(t){n.go(t)}var L=0;function j(t){1===(L+=t)&&1===t?(window.addEventListener("popstate",P),i&&window.addEventListener("hashchange",I)):0===L&&(window.removeEventListener("popstate",P),i&&window.removeEventListener("hashchange",I))}var B=!1;var N={length:n.length,action:"POP",location:z,createHref:R,push:function(t,e){var r=d(t,e,k(),N.location);T.confirmTransitionTo(r,"PUSH",b,(function(t){if(t){var e=R(r),i=r.key,a=r.state;if(o)if(n.pushState({key:i,state:a},null,e),l)window.location.href=e;else{var s=M.indexOf(N.location.key),u=M.slice(0,s+1);u.push(r.key),M=u,C({action:"PUSH",location:r})}else window.location.href=e}}))},replace:function(t,e){var r=d(t,e,k(),N.location);T.confirmTransitionTo(r,"REPLACE",b,(function(t){if(t){var e=R(r),i=r.key,a=r.state;if(o)if(n.replaceState({key:i,state:a},null,e),l)window.location.replace(e);else{var s=M.indexOf(N.location.key);-1!==s&&(M[s]=r.key),C({action:"REPLACE",location:r})}else window.location.replace(e)}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(t){void 0===t&&(t=!1);var e=T.setPrompt(t);return B||(j(1),B=!0),function(){return B&&(B=!1,j(-1)),e()}},listen:function(t){var e=T.appendListener(t);return j(1),function(){j(-1),e()}}};return N}function x(t,e,n){return Math.min(Math.max(t,e),n)}function w(t){void 0===t&&(t={});var e=t,n=e.getUserConfirmation,o=e.initialEntries,i=void 0===o?["/"]:o,a=e.initialIndex,s=void 0===a?0:a,l=e.keyLength,u=void 0===l?6:l,c=y();function p(t){Object(r.a)(b,t),b.length=b.entries.length,c.notifyListeners(b.location,b.action)}function f(){return Math.random().toString(36).substr(2,u)}var m=x(s,0,i.length-1),g=i.map((function(t){return d(t,void 0,"string"==typeof t?f():t.key||f())})),v=h;function _(t){var e=x(b.index+t,0,b.entries.length-1),r=b.entries[e];c.confirmTransitionTo(r,"POP",n,(function(t){t?p({action:"POP",location:r,index:e}):p()}))}var b={length:g.length,action:"POP",location:g[m],index:m,entries:g,createHref:v,push:function(t,e){var r=d(t,e,f(),b.location);c.confirmTransitionTo(r,"PUSH",n,(function(t){if(t){var e=b.index+1,n=b.entries.slice(0);n.length>e?n.splice(e,n.length-e,r):n.push(r),p({action:"PUSH",location:r,index:e,entries:n})}}))},replace:function(t,e){var r=d(t,e,f(),b.location);c.confirmTransitionTo(r,"REPLACE",n,(function(t){t&&(b.entries[b.index]=r,p({action:"REPLACE",location:r}))}))},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},canGo:function(t){var e=b.index+t;return e>=0&&e<b.entries.length},block:function(t){return void 0===t&&(t=!1),c.setPrompt(t)},listen:function(t){return c.appendListener(t)}};return b}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=n(44),o=n(111),i=Object.prototype.toString;function a(t){return"[object Array]"===i.call(t)}function s(t){return null!==t&&"object"==typeof t}function l(t){return"[object Function]"===i.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:a,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:l,isStream:function(t){return s(t)&&l(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}
1,forEach:u,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return e},extend:function(t,e,n){return u(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.r(e),n.d(e,"Provider",(function(){return p})),n.d(e,"createProvider",(function(){return c})),n.d(e,"connectAdvanced",(function(){return T})),n.d(e,"connect",(function(){return et}));var o=n(0),i=n.n(o),a=n(1),s=n.n(a),l=s.a.shape({trySubscribe:s.a.func.isRequired,tryUnsubscribe:s.a.func.isRequired,notifyNestedSubs:s.a.func.isRequired,isSubscribed:s.a.func.isRequired}),u=s.a.shape({subscribe:s.a.func.isRequired,dispatch:s.a.func.isRequired,getState:s.a.func.isRequired});i.a.forwardRef;function c(t){var e;void 0===t&&(t="store");var n=t+"Subscription",i=function(e){r(a,e);var i=a.prototype;function a(n,r){var o;return(o=e.call(this,n,r)||this)[t]=n.store,o}return i.getChildContext=function(){var e;return(e={})[t]=this[t],e[n]=null,e},i.render=function(){return o.Children.only(this.props.children)},a}(o.Component);return i.propTypes={store:u.isRequired,children:s.a.element.isRequired},i.childContextTypes=((e={})[t]=u.isRequired,e[n]=l,e),i}var p=c();function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(8);function d(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}var m=n(62),y=n.n(m),g=n(3),v=n.n(g),_=n(35),b={notify:function(){}};var x=function(){function t(t,e,n){this.store=t,this.parentSub=e,this.onStateChange=n,this.unsubscribe=null,this.listeners=b}var e=t.prototype;return e.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},e.notifyNestedSubs=function(){this.listeners.notify()},e.isSubscribed=function(){return Boolean(this.unsubscribe)},e.trySubscribe=function(){var t,e;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(t=[],e=[],{clear:function(){e=null,t=null},notify:function(){for(var n=t=e,r=0;r<n.length;r++)n[r]()},get:function(){return e},subscribe:function(n){var r=!0;return e===t&&(e=t.slice()),e.push(n),function(){r&&null!==t&&(r=!1,e===t&&(e=t.slice()),e.splice(e.indexOf(n),1))}}}))},e.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=b)},t}(),w=void 0!==i.a.forwardRef,E=0,S={};function k(){}function T(t,e){var n,i;void 0===e&&(e={});var a=e,s=a.getDisplayName,c=void 0===s?function(t){return"ConnectAdvanced("+t+")"}:s,p=a.methodName,m=void 0===p?"connectAdvanced":p,g=a.renderCountProp,b=void 0===g?void 0:g,T=a.shouldHandleStateChanges,C=void 0===T||T,P=a.storeKey,I=void 0===P?"store":P,O=a.withRef,A=void 0!==O&&O,z=d(a,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),M=I+"Subscription",R=E++,D=((n={})[I]=u,n[M]=l,n),L=((i={})[M]=l,i);return function(e){v()(Object(_.isValidElementType)(e),"You must pass a component to the function returned by "+m+". Instead received "+JSON.stringify(e));var n=e.displayName||e.name||"Component",i=c(n),a=Object(h.a)({},z,{getDisplayName:c,methodName:m,renderCountProp:b,shouldHandleStateChanges:C,storeKey:I,withRef:A,displayName:i,wrappedComponentName:n,WrappedComponent:e}),s=function(n){function s(t,e){var r;return(r=n.call(this,t,e)||this).version=R,r.state={},r.renderCount=0,r.store=t[I]||e[I],r.propsMode=Boolean(t[I]),r.setWrappedInstance=r.setWrappedInstance.bind(f(f(r))),v()(r.store,'Could not find "'+I+'" in either the context or props of "'+i+'". Either wrap the root component in a <Provi
1der>, or explicitly pass "'+I+'" as a prop to "'+i+'".'),r.initSelector(),r.initSubscription(),r}r(s,n);var l=s.prototype;return l.getChildContext=function(){var t,e=this.propsMode?null:this.subscription;return(t={})[M]=e||this.context[M],t},l.componentDidMount=function(){C&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},l.componentWillReceiveProps=function(t){this.selector.run(t)},l.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},l.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=k,this.store=null,this.selector.run=k,this.selector.shouldComponentUpdate=!1},l.getWrappedInstance=function(){return v()(A,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+m+"() call."),this.wrappedInstance},l.setWrappedInstance=function(t){this.wrappedInstance=t},l.initSelector=function(){var e=t(this.store.dispatch,a);this.selector=function(t,e){var n={run:function(r){try{var o=t(e.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(t){n.shouldComponentUpdate=!0,n.error=t}}};return n}(e,this.store),this.selector.run(this.props)},l.initSubscription=function(){if(C){var t=(this.propsMode?this.props:this.context)[M];this.subscription=new x(this.store,t,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},l.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(S)):this.notifyNestedSubs()},l.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},l.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},l.addExtraProps=function(t){if(!(A||b||this.propsMode&&this.subscription))return t;var e=Object(h.a)({},t);return A&&(e.ref=this.setWrappedInstance),b&&(e[b]=this.renderCount++),this.propsMode&&this.subscription&&(e[M]=this.subscription),e},l.render=function(){var t=this.selector;if(t.shouldComponentUpdate=!1,t.error)throw t.error;return Object(o.createElement)(e,this.addExtraProps(t.props))},s}(o.Component);return w&&(s.prototype.UNSAFE_componentWillReceiveProps=s.prototype.componentWillReceiveProps,delete s.prototype.componentWillReceiveProps),s.WrappedComponent=e,s.displayName=i,s.childContextTypes=L,s.contextTypes=D,s.propTypes=D,y()(s,e)}}var C=Object.prototype.hasOwnProperty;function P(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function I(t,e){if(P(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!C.call(e,n[o])||!P(t[n[o]],e[n[o]]))return!1;return!0}var O=n(15);function A(t){return function(e,n){var r=t(e,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function z(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}
vendor: 4,221 bytes, line 1
1function M(t,e){return function(e,n){n.displayName;var r=function(t,e){return r.dependsOnOwnProps?r.mapToProps(t,e):r.mapToProps(t)};return r.dependsOnOwnProps=!0,r.mapToProps=function(e,n){r.mapToProps=t,r.dependsOnOwnProps=z(t);var o=r(e,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=z(o),o=r(e,n)),o},r}}var R=[function(t){return"function"==typeof t?M(t):void 0},function(t){return t?void 0:A((function(t){return{dispatch:t}}))},function(t){return t&&"object"==typeof t?A((function(e){return Object(O.b)(t,e)})):void 0}];var D=[function(t){return"function"==typeof t?M(t):void 0},function(t){return t?void 0:A((function(){return{}}))}];function L(t,e,n){return Object(h.a)({},n,t,e)}var j=[function(t){return"function"==typeof t?function(t){return function(e,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(e,n,s){var l=t(e,n,s);return a?o&&i(l,r)||(r=l):(a=!0,r=l),r}}}(t):void 0},function(t){return t?void 0:function(){return L}}];function B(t,e,n,r){return function(o,i){return n(t(o,i),e(r,i),i)}}function N(t,e,n,r,o){var i,a,s,l,u,c=o.areStatesEqual,p=o.areOwnPropsEqual,f=o.areStatePropsEqual,h=!1;function d(o,h){var d,m,y=!p(h,a),g=!c(o,i);return i=o,a=h,y&&g?(s=t(i,a),e.dependsOnOwnProps&&(l=e(r,a)),u=n(s,l,a)):y?(t.dependsOnOwnProps&&(s=t(i,a)),e.dependsOnOwnProps&&(l=e(r,a)),u=n(s,l,a)):g?(d=t(i,a),m=!f(d,s),s=d,m&&(u=n(s,l,a)),u):u}return function(o,c){return h?d(o,c):(s=t(i=o,a=c),l=e(r,a),u=n(s,l,a),h=!0,u)}}function F(t,e){var n=e.initMapStateToProps,r=e.initMapDispatchToProps,o=e.initMergeProps,i=d(e,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(t,i),s=r(t,i),l=o(t,i);return(i.pure?N:B)(a,s,l,t,i)}function U(t,e,n){for(var r=e.length-1;r>=0;r--){var o=e[r](t);if(o)return o}return function(e,r){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function V(t,e){return t===e}var q,G,W,Z,H,X,$,K,Y,J,Q,tt,et=(W=(G=void 0===q?{}:q).connectHOC,Z=void 0===W?T:W,H=G.mapStateToPropsFactories,X=void 0===H?D:H,$=G.mapDispatchToPropsFactories,K=void 0===$?R:$,Y=G.mergePropsFactories,J=void 0===Y?j:Y,Q=G.selectorFactory,tt=void 0===Q?F:Q,function(t,e,n,r){void 0===r&&(r={});var o=r,i=o.pure,a=void 0===i||i,s=o.areStatesEqual,l=void 0===s?V:s,u=o.areOwnPropsEqual,c=void 0===u?I:u,p=o.areStatePropsEqual,f=void 0===p?I:p,m=o.areMergedPropsEqual,y=void 0===m?I:m,g=d(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),v=U(t,X,"mapStateToProps"),_=U(e,K,"mapDispatchToProps"),b=U(n,J,"mergeProps");return Z(tt,Object(h.a)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:v,initMapDispatchToProps:_,initMergeProps:b,pure:a,areStatesEqual:l,areOwnPropsEqual:c,areStatePropsEqual:f,areMergedPropsEqual:y},g))})},function(t,e,n){t.exports=n(110)},function(t,e,n){var r;r=function(){var t=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","Â¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã
":"A","Ã":"AE","Ã":"C","Ã":"E","Ã":"E","Ã":"E","Ã":"E","Ã":"I","Ã":"I","Ã":"I","Ã":"I","Ã":"D","Ã":"N","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"U","Ã":"U","Ã":"U","Ã":"U","Ã":"Y","Ã":"TH","Ã":"ss","à ":"a","á":"a","â":"a","ã":"a","ä":"a","Ã¥":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","Ã":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ä":"A","Ä":"a","Ä":"A","Ä":"a","Ä":"A","Ä
":"a","Ä":"C","Ä":"c","Ä":"C","Ä":"c","Ä":"D","Ä":"d","Ä":"DJ","Ä":"dj","Ä":"E","Ä":"e","Ä":"E","Ä":"e","Ä":"e","Ä":"e","Ä":"E","Ä":"e","Ä":"G","Ä":"g","Ä¢":"G","Ä£":"g","Ĩ":"I","Ä©":"i","Ī":"i","Ä«":"i","Ä®":"I","į":"i","İ":"I","ı":"i","Ķ":"k","Ä·":"k","Ä»":"L","ļ":"l","Ľ":"L","ľ":"l","Å":"L","Å":"l","Å":"N","Å":"n","Å
":"N","Å":"n","Å":"N","Å":"n","Å":"O","Å":"o","Å":"O","Å":"o","Å":"OE","Å":"oe","Å":"R","Å"
1:"r","Å":"R","Å":"r","Å":"S","Å":"s","Å":"S","Å":"s","Å ":"S","Å¡":"s","Å¢":"T","Å£":"t","Ť":"T","Å¥":"t","Ũ":"U","Å©":"u","Ū":"u","Å«":"u","Å®":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Å´":"W","ŵ":"w","Ŷ":"Y","Å·":"y","Ÿ":"Y","Ź":"Z","ź":"z","Å»":"Z","ż":"z","Ž":"Z","ž":"z","Æ":"E","Æ":"f","Æ ":"O","Æ¡":"o","Ư":"U","ư":"u","Ç":"LJ","Ç":"lj","Ç":"NJ","Ç":"nj","È":"S","È":"s","È":"T","È":"t","É":"e","Ë":"o","Î":"A","Î":"E","Î":"H","Î":"I","Î":"O","Î":"Y","Î":"W","Î":"i","Î":"A","Î":"B","Î":"G","Î":"D","Î":"E","Î":"Z","Î":"H","Î":"8","Î":"I","Î":"K","Î":"L","Î":"M","Î":"N","Î":"3","Î":"O","Î ":"P","Ρ":"R","Σ":"S","Τ":"T","Î¥":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","Î":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","Ï":"p","Ï":"r","Ï":"s","Ï":"s","Ï":"t","Ï
":"y","Ï":"f","Ï":"x","Ï":"ps","Ï":"w","Ï":"i","Ï":"y","Ï":"o","Ï":"y","Ï":"w","Ð":"Yo","Ð":"DJ","Ð":"Ye","Ð":"I","Ð":"Yi","Ð":"J","Ð":"LJ","Ð":"NJ","Ð":"C","Ð":"DZ","Ð":"A","Ð":"B","Ð":"V","Ð":"G","Ð":"D","Ð":"E","Ð":"Zh","Ð":"Z","Ð":"I","Ð":"J","Ð":"K","Ð":"L","Ð":"M","Ð":"N","Ð":"O","Ð":"P","Ð ":"R","С":"S","Т":"T","У":"U","Ф":"F","Ð¥":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Ð":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","Ñ":"r","Ñ":"s","Ñ":"t","Ñ":"u","Ñ":"f","Ñ
":"h","Ñ":"c","Ñ":"ch","Ñ":"sh","Ñ":"sh","Ñ":"u","Ñ":"y","Ñ":"","Ñ":"e","Ñ":"yu","Ñ":"ya","Ñ":"yo","Ñ":"dj","Ñ":"ye","Ñ":"i","Ñ":"yi","Ñ":"j","Ñ":"lj","Ñ":"nj","Ñ":"c","Ñ":"u","Ñ":"dz","Ò":"G","Ò":"g","Ò":"GH","Ò":"gh","Ò":"KH","Ò":"kh","Ò¢":"NG","Ò£":"ng","Ò®":"UE","Ò¯":"ue","Ò°":"U","Ò±":"u","Òº":"H","Ò»":"h","Ó":"AE","Ó":"ae","Ó¨":"OE","Ó©":"oe","฿":"baht","á":"a","á":"b","á":"g","á":"d","á":"e","á":"v","á":"z","á":"t","á":"i","á":"k","á":"l","á":"m","á":"n","á":"o","á":"p","á":"zh","á ":"r","á¡":"s","á¢":"t","á£":"u","á¤":"f","á¥":"k","á¦":"gh","á§":"q","á¨":"sh","á©":"ch","áª":"ts","á«":"dz","á¬":"ts","á":"ch","á®":"kh","á¯":"j","á°":"h","áº":"W","áº":"w","áº":"W","áº":"w","áº":"W","áº
":"w","áº":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","áº":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","á»":"E","á»":"e","á»":"E","á»":"e","á»":"E","á»
":"e","á»":"E","á»":"e","á»":"I","á»":"i","á»":"I","á»":"i","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á» ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","á»§":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","á»":"u","á»®":"U","ữ":"u","á»°":"U","á»±":"u","Ỳ":"Y","ỳ":"y","á»´":"Y","ỵ":"y","á»¶":"Y","á»·":"y","Ỹ":"Y","ỹ":"y","â":"\'","â":"\'","â":"\\"","â":"\\"","â ":"+","â¢":"*","â¦":"...","â ":"ecu","â¢":"cruzeiro","â£":"french franc","â¤":"lira","â¥":"mill","â¦":"naira","â§":"peseta","â¨":"rupee","â©":"won","âª":"new shequel","â«":"dong","â¬":"euro","â":"kip","â®":"tugrik","â¯":"drachma","â°":"penny","â±":"peso","â²":"guarani","â³":"austral","â´":"hryvnia","âµ":"cedi","â¸":"kazakhstani tenge","â¹":"indian rupee","âº":"turkish lira","â½":"russian ruble","â¿":"bitcoin","â ":"sm","â¢":"tm","â":"d","â":"delta","â":"sum","â":"infinity","â¥":"love","å
":"yuan","å":"yen","ï·¼":"rial"}'),e=JSON.parse('{"de":{"Ã":"AE","ä":"ae","Ã":"OE","ö":"oe","Ã":"UE","ü":"ue"},"vi":{"Ä":"D","Ä":"d"}}');function n(n,r){if("string"!=typeof n)throw new Error("slugify: string argument expected");var o=e[(r="string"==typeof r?{replacement:r}:r||{}).locale]||{},i=void 0===r.replacement?"-":r.replacement,a=n.split("").reduce((function(e,n){return e+(o[n]||t[n]||n).replace(r.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")}),"").trim().replace(new RegExp("[\\s"+i+"]+","g"),i);return r.lower&&(a=a.toLowerCase()),r.strict&&(a=a.replace(new RegExp("[^a-zA-Z0-9"+i+"]","g"),"").replace(new RegExp("[\\s"+i+"]+","g"),i)),a}return n.extend=function(e){for(var n in e)t[n]=e[n]},n},t.exports=r(),t.exports.default=r()},,function(t,e,n){"use strict";
1(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.__RewireAPI__=e.__ResetDependency__=e.__set__=e.__Rewire__=e.__GetDependency__=e.__get__=e.createMatchSelector=e.getAction=e.getLocation=e.routerMiddleware=e.connectRouter=e.ConnectedRouter=e.routerActions=e.goForward=e.goBack=e.go=e.replace=e.push=e.CALL_HISTORY_METHOD=e.LOCATION_CHANGE=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=a(n(87)),i=a(n(93));function a(t){return t&&t.__esModule?t:{default:t}}var s=I("createAll")(I("plainStructure")),l=s.LOCATION_CHANGE,u=s.CALL_HISTORY_METHOD,c=s.push,p=s.replace,f=s.go,h=s.goBack,d=s.goForward,m=s.routerActions,y=s.ConnectedRouter,g=s.connectRouter,v=s.routerMiddleware,_=s.getLocation,b=s.getAction,x=s.createMatchSelector;function w(){try{if(t)return t}catch(t){try{if(window)return window}catch(t){return this}}}e.LOCATION_CHANGE=l,e.CALL_HISTORY_METHOD=u,e.push=c,e.replace=p,e.go=f,e.goBack=h,e.goForward=d,e.routerActions=m,e.ConnectedRouter=y,e.connectRouter=g,e.routerMiddleware=v,e.getLocation=_,e.getAction=b,e.createMatchSelector=x;var E,S=null;function k(){if(null===S){var t=w();t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),S=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return S}function T(){var t=w();return t.__$$GLOBAL_REWIRE_REGISTRY__||(t.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function C(){var t=k(),e=T(),n=e[t];return n||(e[t]=Object.create(null),n=e[t]),n}(E=w()).__rewire_reset_all__||(E.__rewire_reset_all__=function(){E.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var P={};function I(t){var e=C();if(void 0===e[t])return function(t){switch(t){case"createAll":return o.default;case"plainStructure":return i.default}return}(t);var n=e[t];return"__INTENTIONAL_UNDEFINED__"===n?void 0:n}function O(t,e){var n=C();if("object"!==(void 0===t?"undefined":r(t)))return n[t]=void 0===e?"__INTENTIONAL_UNDEFINED__":e,function(){A(t)};Object.keys(t).forEach((function(e){n[e]=t[e]}))}function A(t){var e=C();delete e[t],0==Object.keys(e).length&&delete T()[k]}function z(t){var e=C(),n=Object.keys(t),r={};function o(){n.forEach((function(t){e[t]=r[t]}))}return function(i){n.forEach((function(n){r[n]=e[n],e[n]=t[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function t(t,e){Object.defineProperty(P,t,{value:e,enumerable:!1,configurable:!0})}t("__get__",I),t("__GetDependency__",I),t("__Rewire__",O),t("__set__",O),t("__reset__",A),t("__ResetDependency__",A),t("__with__",z)}(),e.__get__=I,e.__GetDependency__=I,e.__Rewire__=O,e.__set__=O,e.__ResetDependency__=A,e.__RewireAPI__=P,e.default=P}).call(this,n(6))},function(t,e,n){var r;"undefined"!=typeof self&&self,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=7)}([function(t,e,n){"use strict";t.exports=function(t,e,n,r,o,i,a,s){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],c=0;(l=new Error(e.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(t,e,n){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,n){"use strict"; 2/* 3object-assign 4(c) Sindre Sorhus 5@license MIT
vendor: 5,589 bytes, lines 6-14
6*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,l=a(t),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))o.call(n,c)&&(l[c]=n[c]);if(r){s=r(n);for(var p=0;p<s.length;p++)i.call(n,s[p])&&(l[s[p]]=n[s[p]])}}return l}},function(t,e,n){"use strict";var r=n(1);t.exports=r},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";t.exports={}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(8),a=u(i),s=u(n(11)),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(14));function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var f=function(t){function e(){var t,n,r;c(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=p(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(i))),r.state={delayed:r.props.delay>0},p(r,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"componentDidMount",value:function(){var t=this,e=this.props.delay;this.state.delayed&&(this.timeout=setTimeout((function(){t.setState({delayed:!1})}),e))}},{key:"componentWillUnmount",value:function(){var t=this.timeout;t&&clearTimeout(t)}},{key:"render",value:function(){var t=this.props,e=t.color,n=(t.delay,t.type),o=t.height,i=t.width,s=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["color","delay","type","height","width"]),u=this.state.delayed?"blank":n,c=l[u],p={fill:e,height:o,width:i};return a.default.createElement("div",r({style:p,dangerouslySetInnerHTML:{__html:c}},s))}}]),e}(i.Component);f.propTypes={color:s.default.string,delay:s.default.number,type:s.default.string,height:s.default.oneOfType([s.default.string,s.default.number]),width:s.default.oneOfType([s.default.string,s.default.number])},f.defaultProps={color:"#fff",delay:0,type:"balls",height:64,width:64},e.default=f},function(t,e,n){"use strict";t.exports=n(9)},function(t,e,n){"use strict"; 7/** @license React v16.3.2 8 * react.production.min.js 9 * 10 * Copyright (c) 2013-present, Facebook, Inc. 11 * 12 * This source code is licensed under the MIT license found in the 13 * LICENSE file in the root directory of this source tree. 14 */var r=n(2),o=n(0),i=n(5),a=n(1),s="function"==typeof Symbol&&Symbol.for,l=s?Symbol.for("react.element"):60103,u=s?Symbol.for("react.portal"):60106,c=s?Symbol.for("react.fragment"):60107,p=s?Symbol.for("react.strict_mode"):60108,f=s?Symbol.for("react.provider"):60109,h=s?Symbol.for("react.context"):60110,d=s?Symbol.for("react.async_mode"):60111,m=s?Symbol.for("react.forward_ref"):60112,y="function"==typeof Symbol&&Symbol.iterator;function g(t){for(var e=arguments.length-1,n="http://reactjs.org/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);o(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function _(t,e,n){this.props=t,this.context=e,this.refs=i,this.updater=n||v}function b(){}function x(t,e,n){this.props=t,this.context=e,this.refs=i,this.updater=n||v}_.prototype.isReactComponent={},_.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&g("85"),this.updater.enqueueSetState(this,t,e,"setState")},_.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},b.prototype=_.prototype;var w=x.prototype=new b;w.constructor=x,r(w,_.prototype),w.isPureReactComponent=!0;var E={current:null},S=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function T(t,e,n){var r=void 0,o={},i=null,a=null;
14if(null!=e)for(r in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(i=""+e.key),e)S.call(e,r)&&!k.hasOwnProperty(r)&&(o[r]=e[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(t&&t.defaultProps)for(r in s=t.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:l,type:t,key:i,ref:a,props:o,_owner:E.current}}function C(t){return"object"==typeof t&&null!==t&&t.$$typeof===l}var P=/\/+/g,I=[];function O(t,e,n,r){if(I.length){var o=I.pop();return o.result=t,o.keyPrefix=e,o.func=n,o.context=r,o.count=0,o}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function A(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>I.length&&I.push(t)}function z(t,e,n,r){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var i=!1;if(null===t)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case l:case u:i=!0}}if(i)return n(r,t,""===e?"."+M(t,0):e),1;if(i=0,e=""===e?".":e+":",Array.isArray(t))for(var a=0;a<t.length;a++){var s=e+M(o=t[a],a);i+=z(o,s,n,r)}else if("function"==typeof(s=null==t?null:"function"==typeof(s=y&&t[y]||t["@@iterator"])?s:null))for(t=s.call(t),a=0;!(o=t.next()).done;)i+=z(o=o.value,s=e+M(o,a++),n,r);else"object"===o&&g("31","[object Object]"==(n=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":n,"");return i}function M(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function R(t,e){t.func.call(t.context,e,t.count++)}function D(t,e,n){var r=t.result,o=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?L(t,r,n,a.thatReturnsArgument):null!=t&&(C(t)&&(e=o+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(P,"$&/")+"/")+n,t={$$typeof:l,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}),r.push(t))}function L(t,e,n,r,o){var i="";null!=n&&(i=(""+n).replace(P,"$&/")+"/"),e=O(e,i,r,o),null==t||z(t,"",D,e),A(e)}var j={Children:{map:function(t,e,n){if(null==t)return t;var r=[];return L(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;e=O(null,null,e,n),null==t||z(t,"",R,e),A(e)}
14,count:function(t){return null==t?0:z(t,"",a.thatReturnsNull,null)},toArray:function(t){var e=[];return L(t,e,null,a.thatReturnsArgument),e},only:function(t){return C(t)||g("143"),t}},createRef:function(){return{current:null}},Component:_,PureComponent:x,createContext:function(t,e){return void 0===e&&(e=null),(t={$$typeof:h,_calculateChangedBits:e,_defaultValue:t,_currentValue:t,_changedBits:0,Provider:null,Consumer:null}).Provider={$$typeof:f,_context:t},t.Consumer=t},forwardRef:function(t){return{$$typeof:m,render:t}},Fragment:c,StrictMode:p,unstable_AsyncMode:d,createElement:T,cloneElement:function(t,e,n){null==t&&g("267",t);var o=void 0,i=r({},t.props),a=t.key,s=t.ref,u=t._owner;if(null!=e){void 0!==e.ref&&(s=e.ref,u=E.current),void 0!==e.key&&(a=""+e.key);var c=void 0;for(o in t.type&&t.type.defaultProps&&(c=t.type.defaultProps),e)S.call(e,o)&&!k.hasOwnProperty(o)&&(i[o]=void 0===e[o]&&void 0!==c?c[o]:e[o])}if(1==(o=arguments.length-2))i.children=n;else if(1<o){c=Array(o);for(var p=0;p<o;p++)c[p]=arguments[p+2];i.children=c}return{$$typeof:l,type:t.type,key:a,ref:s,props:i,_owner:u}},createFactory:function(t){var e=T.bind(null,t);return e.type=t,e},isValidElement:C,version:"16.3.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:E,assign:r}},B=Object.freeze({default:j}),N=B&&j||B;t.exports=N.default?N.default:N},function(t,e,n){},function(t,e,n){t.exports=n(13)()},function(t,e,n){"use strict";var r=n(1),o=n(0),i=n(3),a=n(2),s=n(4),l=n(6);t.exports=function(t,e){var n="function"==typeof Symbol&&Symbol.iterator,u={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:p(r.thatReturnsNull),arrayOf:function(t){return p((function(e,n,r,o,i){if("function"!=typeof t)return new c("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=e[n];if(!Array.isArray(a))return new c("Invalid "+o+" `"+i+"` of type `"+d(a)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<a.length;l++){var u=t(a,l,r,o,i+"["+l+"]",s);if(u instanceof Error)return u}return null}))},element:p((function(e,n,r,o,i){var a=e[n];return t(a)?null:new c("Invalid "+o+" `"+i+"` of type `"+d(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(t){return p((function(e,n,r,o,i){if(!(e[n]instanceof t)){var a=t.name||"<<anonymous>>";return new c("Invalid "+o+" `"+i+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:"<<anonymous>>")+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:p((function(t,e,n,r,o){return h(t[e])?null:new c("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return p((function(e,n,r,o,i){if("function"!=typeof t)return new c("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=e[n],l=d(a);if("object"!==l)return new c("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var u in a)if(a.hasOwnProperty(u)){var p=t(a,u,r,o,i+"."+u,s);if(p instanceof Error)return p}return null}))},oneOf:function(t){return Array.isArray(t)?p((function(e,n,r,o,i){for(var a=e[n],s=0;s<t.length;s++)if(l=a,u=t[s],l===u?0!==l||1/l==1/u:l!=l&&u!=u)return null;var l,u;return new c("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(t)+".")})):r.thatReturnsNull},oneOfType:function(t){if(!Array.isArray(t))return r.thatReturnsNull;for(var e=0;e<t.length;e++){var n=t[e];if("function"!=typeof n)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",y(n),e),r.thatReturnsNull}return p((function(e,n,r,o,i){for(var a=0;a<t.length;a++)if(null==(0,t[a])(e,n,r,o,i,s))return null;return new c("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(t){return p((function(e,n,r,o,i){var a=e[n],l=d(a);if("object"!==l)return new c("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var u in t){var p=t[u];
14if(p){var f=p(a,u,r,o,i+"."+u,s);if(f)return f}}return null}))},exact:function(t){return p((function(e,n,r,o,i){var l=e[n],u=d(l);if("object"!==u)return new c("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");var p=a({},e[n],t);for(var f in p){var h=t[f];if(!h)return new c("Invalid "+o+" `"+i+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var m=h(l,f,r,o,i+"."+f,s);if(m)return m}return null}))}};function c(t){this.message=t,this.stack=""}function p(t){function n(n,r,i,a,l,u,p){return a=a||"<<anonymous>>",u=u||i,p!==s&&e&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"),null==r[i]?n?null===r[i]?new c("The "+l+" `"+u+"` is marked as required in `"+a+"`, but its value is `null`."):new c("The "+l+" `"+u+"` is marked as required in `"+a+"`, but its value is `undefined`."):null:t(r,i,a,l,u)}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function f(t){return p((function(e,n,r,o,i,a){var s=e[n];return d(s)!==t?new c("Invalid "+o+" `"+i+"` of type `"+m(s)+"` supplied to `"+r+"`, expected `"+t+"`."):null}))}function h(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(h);if(null===e||t(e))return!0;var r=function(t){var e=t&&(n&&t[n]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!r)return!1;var o,i=r.call(e);if(r!==e.entries){for(;!(o=i.next()).done;)if(!h(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!h(a[1]))return!1}return!0;default:return!1}}function d(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||"Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol}(e,t)?"symbol":e}function m(t){if(null==t)return""+t;var e=d(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function y(t){var e=m(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return c.prototype=Error.prototype,u.checkPropTypes=l,u.PropTypes=u,u}},function(t,e,n){"use strict";var r=n(1),o=n(0),i=n(4);t.exports=function(){function t(t,e,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15);Object.defineProperty(e,"blank",{enumerable:!0,get:function(){return f(r).default}});var o=n(16);Object.defineProperty(e,"balls",{enumerable:!0,get:function(){return f(o).default}});var i=n(17);Object.defineProperty(e,"bars",{enumerable:!0,get:function(){return f(i).default}});var a=n(18);Object.defineProperty(e,"bubbles",{enumerable:!0,get:function(){return f(a).default}});var s=n(19);Object.defineProperty(e,"cubes",{enumerable:!0,get:function(){return f(s).default}});var l=n(20);Object.defineProperty(e,"cylon",{enumerable:!0,get:function(){return f(l).default}});var u=n(21);Object.defineProperty(e,"spin",{enumerable:!0,get:function(){return f(u).default}});var c=n(22);Object.defineProperty(e,"spinningBubbles",{enumerable:!0,get:function(){return f(c).default}});var p=n(23);function f(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"spokes",{enumerable:!0,get:function(){return f(p).default}})},function(t,e){t.exports='<svg class="icon-blank" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>\n'},function(t,e){t.exports='<svg class="icon-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\n <path transform="translate(-8 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12"> \n <animateTransform attributeName="transform" type="translate" values="-8 0; 2 0; 2 0;
14" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.25;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />\n </path>\n <path transform="translate(2 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12"> \n <animateTransform attributeName="transform" type="translate" values="2 0; 12 0; 12 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.35;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />\n </path>\n <path transform="translate(12 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12"> \n <animateTransform attributeName="transform" type="translate" values="12 0; 22 0; 22 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.45;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />\n </path>\n <path transform="translate(24 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12"> \n <animateTransform attributeName="transform" type="translate" values="22 0; 32 0; 32 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.55;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />\n </path>\n</svg>\n'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\n <path transform="translate(2)" d="M0 12 V20 H4 V12z"> \n <animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />\n </path>\n <path transform="translate(8)" d="M0 12 V20 H4 V12z">\n <animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0.2" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />\n </path>\n <path transform="translate(14)" d="M0 12 V20 H4 V12z">\n <animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0.4" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />\n </path>\n <path transform="translate(20)" d="M0 12 V20 H4 V12z">\n <animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0.6" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />\n </path>\n <path transform="translate(26)" d="M0 12 V20 H4 V12z">\n <animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0.8" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />\n </path>\n</svg>\n'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\n <circle transform="translate(8 0)" cx="0" cy="16" r="0"> \n <animate attributeName="r" values="0; 4; 0; 0" dur="1.2s" repeatCount="indefinite" begin="0"\n keytimes="0;0.2;0.7;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />\n </circle>\n <circle transform="translate(16 0)" cx="0" cy="16" r="0"> \n <animate attributeName="r" values="0; 4; 0; 0" dur="1.2s" repeatCount="indefinite" begin="0.3"\n keytimes="0;0.2;0.7;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />\n </circle>\n <circle transform="translate(24 0)" cx="0" cy="16" r="0"> \n <animate attributeName="r" values="0; 4; 0; 0" dur="1.2s" repeatCount="indefinite" begin="0.6"\n keytimes="0;0.2;0.7;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />\n </circle>\n</svg>\n'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\n <path transform="translate(-8 0)" d="M0 12 V20 H8 V12z"> \n <animateTransform attributeName="transform" type="translate" values="-8 0; 2 0; 2 0;
14" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.25;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />\n </path>\n <path transform="translate(2 0)" d="M0 12 V20 H8 V12z"> \n <animateTransform attributeName="transform" type="translate" values="2 0; 12 0; 12 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.35;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />\n </path>\n <path transform="translate(12 0)" d="M0 12 V20 H8 V12z"> \n <animateTransform attributeName="transform" type="translate" values="12 0; 22 0; 22 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.45;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />\n </path>\n <path transform="translate(24 0)" d="M0 12 V20 H8 V12z"> \n <animateTransform attributeName="transform" type="translate" values="22 0; 32 0; 32 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.55;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />\n </path>\n</svg>\n'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\n <path transform="translate(0 0)" d="M0 12 V20 H4 V12z">\n <animateTransform attributeName="transform" type="translate" values="0 0; 28 0; 0 0; 0 0" dur="1.5s" begin="0" repeatCount="indefinite" keytimes="0;0.3;0.6;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />\n </path>\n <path opacity="0.5" transform="translate(0 0)" d="M0 12 V20 H4 V12z">\n <animateTransform attributeName="transform" type="translate" values="0 0; 28 0; 0 0; 0 0" dur="1.5s" begin="0.1s" repeatCount="indefinite" keytimes="0;0.3;0.6;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />\n </path>\n <path opacity="0.25" transform="translate(0 0)" d="M0 12 V20 H4 V12z">\n <animateTransform attributeName="transform" type="translate" values="0 0; 28 0; 0 0; 0 0" dur="1.5s" begin="0.2s" repeatCount="indefinite" keytimes="0;0.3;0.6;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />\n </path>\n</svg>\n'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\n <path opacity=".25" d="M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"/>\n <path d="M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z">\n <animateTransform attributeName="transform" type="rotate" from="0 16 16" to="360 16 16" dur="0.8s" repeatCount="indefinite" />\n </path>\n</svg>\n'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\n <circle cx="16" cy="3" r="0">\n <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />\n </circle>\n <circle transform="rotate(45 16 16)" cx="16" cy="3" r="0">\n <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.125s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />\n </circle>\n <circle transform="rotate(90 16 16)" cx="16" cy="3" r="0">\n <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.25s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />\n </circle>\n <circle transform="rotate(135 16 16)" cx="16" cy="3" r="0">\n <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.375s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />\n </circle>\n <circle transform="rotate(180 16 16)" cx="16" cy="3" r="0">\n <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />\n </circle>\n <circle transform="rotate(225 16 16)" cx="16" cy="3" r="0">\n <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.625s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />\n </circle>\n <circle transform="rotate(270 16 16)" cx="16" cy="3" r="0">\n <animate attributeName="r" values="0;3;0;
140" dur="1s" repeatCount="indefinite" begin="0.75s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />\n </circle>\n <circle transform="rotate(315 16 16)" cx="16" cy="3" r="0">\n <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.875s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />\n </circle>\n <circle transform="rotate(180 16 16)" cx="16" cy="3" r="0">\n <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />\n </circle>\n</svg>\n'},function(t,e){t.exports='<svg id="loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\n <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(0 16 16)">\n <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0"/>\n </path>\n <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(45 16 16)">\n <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.125s"/>\n </path>\n <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(90 16 16)">\n <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.25s"/>\n </path>\n <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(135 16 16)">\n <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.375s"/>\n </path>\n <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(180 16 16)">\n <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.5s"/>\n </path>\n <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(225 16 16)">\n <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.675s"/>\n </path>\n <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(270 16 16)">\n <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.75s"/>\n </path>\n <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(315 16 16)">\n <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.875s"/>\n </path>\n</svg>\n'}])},t.exports=r()},function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return m})),n.d(e,"e",(function(){return s}));var r=n(36),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function s(t,e,n){var o;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var l=t,u=e,c=[],p=c,f=!1;function h(){p===c&&(p=c.slice())}function d(){if(f)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return u}function m(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(f)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var e=!0;return h(),p.push(t),function(){if(e){if(f)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");e=!1,h();var n=p.indexOf(t);p.splice(n,1),c=null}}}function y(t){if(!a(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(f)throw new Error("Reducers may not dispatch actions.");try{f=!0,u=l(u,t)}finally{f=!1}for(var e=c=p,n=0;n<e.length;n++){(0,e[n])()}return t}function g(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");l=t,y({type:i.REPLACE})}function v(){var t,e=m;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new TypeError("Expected the observer to be an object.");function n(){t.next&&t.next(d())}return n(),{unsubscribe:e(n)}}})[r.a]=function(){return this},t}return y({type:i.INIT}),(o={dispatch:y,subscribe:m,getState:d,replaceReducer:g})[r.a]=v,o}function l(t,e){var n=e&&e.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function u(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var o=e[r];
vendor: 19,170 bytes, line 14
140,"function"==typeof t[o]&&(n[o]=t[o])}var a,s=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:i.INIT}))throw new Error('Reducer "'+e+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+i.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(t){a=t}return function(t,e){if(void 0===t&&(t={}),a)throw a;for(var r=!1,o={},i=0;i<s.length;i++){var u=s[i],c=n[u],p=t[u],f=c(p,e);if(void 0===f){var h=l(u,e);throw new Error(h)}o[u]=f,r=r||f!==p}return(r=r||s.length!==Object.keys(t).length)?o:t}}function c(t,e){return function(){return e(t.apply(this,arguments))}}function p(t,e){if("function"==typeof t)return c(t,e);if("object"!=typeof t||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in t){var o=t[r];"function"==typeof o&&(n[r]=c(o,e))}return n}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(n,!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function y(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(o)}));return d({},n,{dispatch:r=m.apply(void 0,i)(n.dispatch)})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={container:{background:"rgba(0, 0, 0, 0.8)",gutter:{horizontal:10,vertical:10},zIndex:2001},header:{height:40},close:{fill:"white"},footer:{color:"white",count:{color:"rgba(255, 255, 255, 0.75)",fontSize:"0.85em"},height:40,gutter:{horizontal:0,vertical:5}},thumbnail:{activeBorderColor:"white",size:50,gutter:2},arrow:{background:"none",fill:"white",height:120}};e.default=r},function(t,e,n){t.exports=n(152)},function(t,e,n){"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}}(),t.exports=n(80)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.default=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o({},e);return Object.keys(n).forEach((function(o){"object"===r(n[o])&&n[o]&&e[o]?i[o]=t(e[o],n[o]):i[o]=n[o]})),i}},function(t,e,n){"use strict";var r=n(4),o=n.n(r),i=n(3),a=n.n(i),s=n(0),l=n.n(s),u=n(1),c=n.n(u),p=n(21),f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var m=function(t){return 0===l.a.Children.count(t)},y=function(t){function e(){var n,r;h(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,t.call.apply(t,[this].concat(i))),r.state={match:r.computeMatch(r.props,r.context.router)},d(r,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{router:f({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},e.prototype.computeMatch=function(t,e){var n=t.computedMatch,r=t.location,o=t.path,i=t.strict,s=t.exact,l=t.sensitive;if(n)return n;a()(e,"You should not use <Route> or withRouter() outside a <Router>");var u=e.route,c=(r||u.location).pathname;return Object(p.a)(c,{path:o,strict:i,exact:s,sensitive:l},u.match)},e.prototype.componentWillMount=function(){o()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),o()(!(this.props.component&&this.props.children&&!m(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),o()(!(this.props.render&&this.props.children&&!m(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},e.prototype.componentWillReceiveProps=function(t,e){o()(!(t.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),o()(!(!t.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(t,e.router)})},e.prototype.render=function(){var t=this.state.match,e=this.props,n=e.children,r=e.component,o=e.render,i=this.context.router,a=i.history,s=i.route,u=i.staticContext,c={match:t,location:this.props.location||s.location,history:a,staticContext:u};return r?t?l.a.createElement(r,c):null:o?t?o(c):null:"function"==typeof n?n(c):n&&!m(n)?l.a.Children.only(n):null},e}(l.a.Component);y.propTypes={computedMatch:c.a.object,path:c.a.string,exact:c.a.bool,strict:c.a.bool,sensitive:c.a.bool,component:c.a.func,render:c.a.func,children:c.a.oneOfType([c.a.func,c.a.node]),location:c.a.object},y.contextTypes={router:c.a.shape({history:c.a.object.isRequired,route:c.a.object.isRequired,staticContext:c.a.object})},y.childContextTypes={router:c.a.object.isRequired},e.a=y},function(t,e,n){"use strict";var r=n(27),o=n.n(r),i={},a=0,s=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=i[n]||(i[n]={});if(r[t])return r[t];var s=[],l={re:o()(t,s,e),keys:s};return a<1e4&&(r[t]=l,a++),l};e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof e&&(e={path:e});var r=e,o=r.path,i=r.exact,a=void 0!==i&&i,l=r.strict,u=void 0!==l&&l,c=r.sensitive,p=void 0!==c&&c;if(null==o)return n;var f=s(o,{end:a,strict:u,sensitive:p}),h=f.re,d=f.keys,m=h.exec(t);if(!m)return null;var y=m[0],g=m.slice(1),v=t===y;return a&&!v?null:{path:o,url:"/"===o&&""===y?"/":y,isExact:v,params:d.reduce((function(t,e,n){return t[e.name]=g[n],t}),{})}}},function(t,e,n){"use strict";n.r(e),n.d(e,"MemoryRouter",(function(){return b})),n.d(e,"Prompt",(function(){return S})),n.d(e,"Redirect",(function(){return D})),n.d(e,"Route",(function(){return L.a})),n.d(e,"Router",(function(){return y})),n.d(e,"StaticRouter",(function(){return H})),n.d(e,"Switch",(function(){return X.a})),n.d(e,"generatePath",(function(){return O})),n.d(e,"matchPath",(function(){return $.a})),n.d(e,"withRouter",(function(){return K.a}));var r=n(4),o=n.n(r),i=n(0),a=n.n(i),s=n(1),l=n.n(s),u=n(5),c=n(3),p=n.n(c),f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var m=function(t){function e(){var n,r;h(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,t.call.apply(t,[this].concat(i))),r.state={match:r.computeMatch(r.props.history.location.pathname)},d(r,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{router:f({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},e.prototype.computeMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}},e.prototype.componentWillMount=function(){var t=this,e=this.props,n=e.children,r=e.history;p()(null==n||1===a.a.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen((function(){t.setState({match:t.computeMatch(r.location.pathname)})}))},e.prototype.componentWillReceiveProps=function(t){o()(this.props.history===t.history,"You cannot change <Router history>")},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){var t=this.props.children;return t?a.a.Children.only(t):null},e}(a.a.Component);m.propTypes={history:l.a.object.isRequired,children:l.a.node},m.contextTypes={router:l.a.object},m.childContextTypes={router:l.a.object.isRequired};var y=m;function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var _=function(t){function e(){var n,r;g(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=v(this,t.call.apply(t,[this].concat(i))),r.history=Object(u.c)(r.props),v(r,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentWillMount=function(){o()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},e.prototype.render=function(){return a.a.createElement(y,{history:this.history,children:this.props.children})},e}(a.a.Component);_.propTypes={initialEntries:l.a.array,initialIndex:l.a.number,getUserConfirmation:l.a.func,keyLength:l.a.number,children:l.a.node};var b=_;function x(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var E=function(t){function e(){return x(this,e),w(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.enable=function(t){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(t)},e.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},e.prototype.componentWillMount=function(){p()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},e.prototype.componentWillReceiveProps=function(t){t.when?this.props.when&&this.props.message===t.message||this.enable(t.message):this.disable()},e.prototype.componentWillUnmount=function(){this.disable()},e.prototype.render=function(){return null},e}(a.a.Component);E.propTypes={when:l.a.bool,message:l.a.oneOfType([l.a.func,l.a.string]).isRequired},E.defaultProps={when:!0},E.contextTypes={router:l.a.shape({history:l.a.shape({block:l.a.func.isRequired}).isRequired}).isRequired};var S=E,k=n(27),T=n.n(k),C={},P=0,I=function(t){var e=t,n=C[e]||(C[e]={});if(n[t])return n[t];var r=T.a.compile(t);return P<1e4&&(n[t]=r,P++),r},O=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("/"===t)return t;var n=I(t);return n(e,{pretty:!0})},A=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function z(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function M(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var R=function(t){function e(){return z(this,e),M(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){p()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.componentDidUpdate=function(t){var e=Object(u.b)(t.to),n=Object(u.b)(this.props.to);Object(u.e)(e,n)?o()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},e.prototype.computeTo=function(t){var e=t.computedMatch,n=t.to;return e?"string"==typeof n?O(n,e.params):A({},n,{pathname:O(n.pathname,e.params)}):n},e.prototype.perform=function(){var t=this.context.router.history,e=this.props.push,n=this.computeTo(this.props);e?t.push(n):t.replace(n)},e.prototype.render=function(){return null},e}(a.a.Component);R.propTypes={computedMatch:l.a.object,push:l.a.bool,from:l.a.string,to:l.a.oneOfType([l.a.string,l.a.object]).isRequired},R.defaultProps={push:!1},R.contextTypes={router:l.a.shape({history:l.a.shape({push:l.a.func.isRequired,replace:l.a.func.isRequired}).isRequired,staticContext:l.a.object}).isRequired};var D=R,L=n(20),j=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function B(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function N(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var F=function(t){return"/"===t.charAt(0)?t:"/"+t},U=function(t,e){return t?j({},e,{pathname:F(t)+e.pathname}):e},V=function(t,e){if(!t)return e;var n=F(t);return 0!==e.pathname.indexOf(n)?e:j({},e,{pathname:e.pathname.substr(n.length)})},q=function(t){return"string"==typeof t?t:Object(u.d)(t)},G=function(t){return function(){p()(!1,"You cannot %s with <StaticRouter>",t)}},W=function(){},Z=function(t){function e(){var n,r;B(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=N(this,t.call.apply(t,[this].concat(i))),r.createHref=function(t){return F(r.props.basename+q(t))},r.handlePush=function(t){var e=r.props,n=e.basename,o=e.context;o.action="PUSH",o.location=U(n,Object(u.b)(t)),o.url=q(o.location)},r.handleReplace=function(t){var e=r.props,n=e.basename,o=e.context;o.action="REPLACE",o.location=U(n,Object(u.b)(t)),o.url=q(o.location)},r.handleListen=function(){return W},r.handleBlock=function(){return W},N(r,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},e.prototype.componentWillMount=function(){o()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},e.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),r=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["basename","context","location"]),o={createHref:this.createHref,action:"POP",location:V(e,Object(u.b)(n)),push:this.handlePush,replace:this.handleReplace,go:G("go"),goBack:G("goBack"),goForward:G("goForward"),listen:this.handleListen,block:this.handleBlock};return a.a.createElement(y,j({},r,{history:o}))},e}(a.a.Component);Z.propTypes={basename:l.a.string,context:l.a.object.isRequired,location:l.a.oneOfType([l.a.string,l.a.object])},Z.defaultProps={basename:"",location:"/"},Z.childContextTypes={router:l.a.object.isRequired};var H=Z,X=n(26),$=n(21),K=n(42)},function(t,e){t.exports="/dist/images/sg_teaser.20936581a380f6922562962ab7f89875.png"},function(t,e,n){"use strict";
14(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=e.LOCATION_CHANGE="@@router/LOCATION_CHANGE",o=(e.onLocationChanged=function(t,e){return{type:v("LOCATION_CHANGE"),payload:{location:t,action:e}}},e.CALL_HISTORY_METHOD="@@router/CALL_HISTORY_METHOD"),i=function(t){return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return{type:v("CALL_HISTORY_METHOD"),payload:{method:t,args:n}}}},a=e.push=v("updateLocation")("push"),s=e.replace=v("updateLocation")("replace"),l=e.go=v("updateLocation")("go"),u=e.goBack=v("updateLocation")("goBack"),c=e.goForward=v("updateLocation")("goForward");e.routerActions={push:v("push"),replace:v("replace"),go:v("go"),goBack:v("goBack"),goForward:v("goForward")};function p(){try{if(t)return t}catch(t){try{if(window)return window}catch(t){return this}}}var f,h=null;function d(){if(null===h){var t=p();t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),h=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return h}function m(){var t=p();return t.__$$GLOBAL_REWIRE_REGISTRY__||(t.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function y(){var t=d(),e=m(),n=e[t];return n||(e[t]=Object.create(null),n=e[t]),n}(f=p()).__rewire_reset_all__||(f.__rewire_reset_all__=function(){f.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var g={};function v(t){var e=y();if(void 0===e[t])return function(t){switch(t){case"LOCATION_CHANGE":return r;case"CALL_HISTORY_METHOD":return o;case"updateLocation":return i;case"push":return a;case"replace":return s;case"go":return l;case"goBack":return u;case"goForward":return c}return}(t);var n=e[t];return"__INTENTIONAL_UNDEFINED__"===n?void 0:n}function _(t,e){var r=y();if("object"!==(void 0===t?"undefined":n(t)))return r[t]=void 0===e?"__INTENTIONAL_UNDEFINED__":e,function(){b(t)};Object.keys(t).forEach((function(e){r[e]=t[e]}))}function b(t){var e=y();delete e[t],0==Object.keys(e).length&&delete m()[d]}function x(t){var e=y(),n=Object.keys(t),r={};function o(){n.forEach((function(t){e[t]=r[t]}))}return function(i){n.forEach((function(n){r[n]=e[n],e[n]=t[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function t(t,e){Object.defineProperty(g,t,{value:e,enumerable:!1,configurable:!0})}t("__get__",v),t("__GetDependency__",v),t("__Rewire__",_),t("__set__",_),t("__reset__",b),t("__ResetDependency__",b),t("__with__",x)}(),e.__get__=v,e.__GetDependency__=v,e.__Rewire__=_,e.__set__=_,e.__ResetDependency__=b,e.__RewireAPI__=g,e.default=g}).call(this,n(6))},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=arguments.length<=2||void 0===arguments[2]?function(t,e){return t+e}:arguments[2];return r({},t,["-webkit-","-moz-",""].map((function(t){return n(t,e)})))},t.exports=e.default},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i),s=n(4),l=n.n(s),u=n(3),c=n.n(u),p=n(21);function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var d=function(t){function e(){return f(this,e),h(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentWillMount=function(){c()(this.context.router,"You should not use <Switch> outside a <Router>")},e.prototype.componentWillReceiveProps=function(t){l()(!(t.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),l()(!(!t.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},e.prototype.render=function(){var t=this.context.router.route,e=this.props.children,n=this.props.location||t.location,r=void 0,i=void 0;
vendor: 4,077 bytes, line 14
14return o.a.Children.forEach(e,(function(e){if(null==r&&o.a.isValidElement(e)){var a=e.props,s=a.path,l=a.exact,u=a.strict,c=a.sensitive,f=a.from,h=s||f;i=e,r=Object(p.a)(n.pathname,{path:h,exact:l,strict:u,sensitive:c},t.match)}})),r?o.a.cloneElement(i,{location:n,computedMatch:r}):null},e}(o.a.Component);d.contextTypes={router:a.a.shape({route:a.a.object.isRequired}).isRequired},d.propTypes={children:a.a.node,location:a.a.object},e.a=d},function(t,e,n){var r=n(89);t.exports=h,t.exports.parse=i,t.exports.compile=function(t,e){return s(i(t,e),e)},t.exports.tokensToFunction=s,t.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,e){for(var n,r=[],i=0,a=0,s="",c=e&&e.delimiter||"/";null!=(n=o.exec(t));){var p=n[0],f=n[1],h=n.index;if(s+=t.slice(a,h),a=h+p.length,f)s+=f[1];else{var d=t[a],m=n[2],y=n[3],g=n[4],v=n[5],_=n[6],b=n[7];s&&(r.push(s),s="");var x=null!=m&&null!=d&&d!==m,w="+"===_||"*"===_,E="?"===_||"*"===_,S=n[2]||c,k=g||v;r.push({name:y||i++,prefix:m||"",delimiter:S,optional:E,repeat:w,partial:x,asterisk:!!b,pattern:k?u(k):b?".*":"[^"+l(S)+"]+?"})}}return a<t.length&&(s+=t.substr(a)),s&&r.push(s),r}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function s(t,e){for(var n=new Array(t.length),o=0;o<t.length;o++)"object"==typeof t[o]&&(n[o]=new RegExp("^(?:"+t[o].pattern+")$",p(e)));return function(e,o){for(var i="",s=e||{},l=(o||{}).pretty?a:encodeURIComponent,u=0;u<t.length;u++){var c=t[u];if("string"!=typeof c){var p,f=s[c.name];if(null==f){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(f)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<f.length;h++){if(p=l(f[h]),!n[u].test(p))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(p)+"`");i+=(0===h?c.prefix:c.delimiter)+p}}else{if(p=c.asterisk?encodeURI(f).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[u].test(p))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+p+'"');i+=c.prefix+p}}else i+=c}return i}}function l(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function c(t,e){return t.keys=e,t}function p(t){return t&&t.sensitive?"":"i"}function f(t,e,n){r(e)||(n=e||n,e=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<t.length;s++){var u=t[s];if("string"==typeof u)a+=l(u);else{var f=l(u.prefix),h="(?:"+u.pattern+")";e.push(u),u.repeat&&(h+="(?:"+f+h+")*"),a+=h=u.optional?u.partial?f+"("+h+")?":"(?:"+f+"("+h+"))?":f+"("+h+")"}}var d=l(n.delimiter||"/"),m=a.slice(-d.length)===d;return o||(a=(m?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=i?"$":o&&m?"":"(?="+d+"|$)",c(new RegExp("^"+a,p(n)),e)}function h(t,e,n){return r(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(t,e)}(t,e):r(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(h(t[o],e,n).source);return c(new RegExp("(?:"+r.join("|")+")",p(n)),e)}(t,e,n):function(t,e,n){return f(i(t,n),e,n)}(t,e,n)}},function(t,e){t.exports="/dist/images/city-icon.71b008eee4b3ca25ee83f0fd94526c63.png"},function(t,e){t.exports="/dist/images/portrait_male_adault.51a2146fc624a5c0c3a548f0e72cfde8.jpg"},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";
14Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(2),i=(r=o)&&r.__esModule?r:{default:r};e.default=i.default,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var o=n(3),i=r(n(4)),a=r(n(14)),s=r(n(15));function l(t){var e=t.activeClassName,n=void 0===e?"":e,r=t.activeIndex,i=void 0===r?-1:r,l=t.activeStyle,u=t.autoEscape,c=t.caseSensitive,p=void 0!==c&&c,f=t.className,h=t.findChunks,d=t.highlightClassName,m=void 0===d?"":d,y=t.highlightStyle,g=void 0===y?{}:y,v=t.highlightTag,_=void 0===v?"mark":v,b=t.sanitize,x=t.searchWords,w=t.textToHighlight,E=t.unhighlightClassName,S=void 0===E?"":E,k=t.unhighlightStyle,T=(0,o.findAll)({autoEscape:u,caseSensitive:p,findChunks:h,sanitize:b,searchWords:x,textToHighlight:w}),C=_,P=-1,I="",O=void 0,A=(0,s.default)((function(t){var e={};for(var n in t)e[n.toLowerCase()]=t[n];return e}));return a.default.createElement("span",{className:f},T.map((function(t,e){var r=w.substr(t.start,t.end-t.start);if(t.highlight){P++;var o=void 0;o="object"==typeof m?p?m[r]:(m=A(m))[r.toLowerCase()]:m;var s=P===+i;return I=o+" "+(s?n:""),O=!0===s&&null!=l?Object.assign({},g,l):g,a.default.createElement(C,{className:I,key:e,style:O},r)}return a.default.createElement("span",{className:S,key:e,style:k},r)})))}l.propTypes={activeClassName:i.default.string,activeIndex:i.default.number,activeStyle:i.default.object,autoEscape:i.default.bool,className:i.default.string,findChunks:i.default.func,highlightClassName:i.default.oneOfType([i.default.object,i.default.string]),highlightStyle:i.default.object,highlightTag:i.default.oneOfType([i.default.node,i.default.func,i.default.string]),sanitize:i.default.func,searchWords:i.default.arrayOf(i.default.oneOfType([i.default.string,i.default.instanceOf(RegExp)])).isRequired,textToHighlight:i.default.string.isRequired,unhighlightClassName:i.default.string,unhighlightStyle:i.default.object},t.exports=e.default},function(t,e){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2);Object.defineProperty(e,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(e,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(e,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(e,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.findAll=function(t){var e=t.autoEscape,i=t.caseSensitive,a=void 0!==i&&i,s=t.findChunks,l=void 0===s?r:s,u=t.sanitize,c=t.searchWords,p=t.textToHighlight;return o({chunksToHighlight:n({chunks:l({autoEscape:e,caseSensitive:a,sanitize:u,searchWords:c,textToHighlight:p})}),totalLength:p?p.length:0})};var n=e.combineChunks=function(t){var e=t.chunks;return e=e.sort((function(t,e){return t.start-e.start})).reduce((function(t,e){if(0===t.length)return[e];var n=t.pop();if(e.start<=n.end){var r=Math.max(n.end,e.end);t.push({start:n.start,end:r})}else t.push(n,e);return t}),[])},r=function(t){var e=t.autoEscape,n=t.caseSensitive,r=t.sanitize,o=void 0===r?i:r,a=t.searchWords,s=t.textToHighlight;return s=o(s),a.filter((function(t){return t})).reduce((function(t,r){r=o(r),e&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),a=void 0;a=i.exec(s);){var l=a.index,u=i.lastIndex;u>l&&t.push({start:l,end:u}),a.index==i.lastIndex&&i.lastIndex++}return t}),[])};e.findChunks=r;var o=e.fillInChunks=function(t){var e=t.chunksToHighlight,n=t.totalLength,r=[],o=function(t,e,n){e-t>0&&r.push({start:t,end:e,highlight:n})};if(0===e.length)o(0,n,!1);else{var i=0;e.forEach((function(t){o(i,t.start,!1),o(t.start,t.end,!0),i=t.end})),o(i,n,!1)}return r};function i(t){return t}}])},function(t,e,n){(function(e){if("production"!==e.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=n(6)((function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r}),!0)}
14else t.exports=n(13)()}).call(e,n(5))},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var l,u=[],c=!1,p=-1;function f(){c&&l&&(c=!1,l.length?u=l.concat(u):p=-1,u.length&&h())}function h(){if(!c){var t=s(f);c=!0;for(var e=u.length;e;){for(l=u,u=[];++p<e;)l&&l[p].run();p=-1,e=u.length}l=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function m(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||c||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){(function(e){"use strict";var r=n(7),o=n(8),i=n(9),a=n(10),s=n(11),l=n(12);t.exports=function(t,n){var u="function"==typeof Symbol&&Symbol.iterator;var c={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:h(r.thatReturnsNull),arrayOf:function(t){return h((function(e,n,r,o,i){if("function"!=typeof t)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=e[n];if(!Array.isArray(a))return new f("Invalid "+o+" `"+i+"` of type `"+y(a)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<a.length;l++){var u=t(a,l,r,o,i+"["+l+"]",s);if(u instanceof Error)return u}return null}))},element:h((function(e,n,r,o,i){var a=e[n];return t(a)?null:new f("Invalid "+o+" `"+i+"` of type `"+y(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(t){return h((function(e,n,r,o,i){if(!(e[n]instanceof t)){var a=t.name||"<<anonymous>>";return new f("Invalid "+o+" `"+i+"` of type `"+function(t){if(!t.constructor||!t.constructor.name)return"<<anonymous>>";return t.constructor.name}(e[n])+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}return null}))},node:h((function(t,e,n,r,o){return m(t[e])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return h((function(e,n,r,o,i){if("function"!=typeof t)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=e[n],l=y(a);if("object"!==l)return new f("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var u in a)if(a.hasOwnProperty(u)){var c=t(a,u,r,o,i+"."+u,s);if(c instanceof Error)return c}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==e.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull;return h((function(e,n,r,o,i){for(var a=e[n],s=0;s<t.length;s++)if(p(a,t[s]))return null;return new f("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(t)+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==e.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<t.length;n++){var o=t[n];if("function"!=typeof o)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",v(o),n),r.thatReturnsNull}return h((function(e,n,r,o,i){for(var a=0;a<t.length;a++){if(null==(0,t[a])(e,n,r,o,i,s))return null}return new f("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(t){return h((function(e,n,r,o,i){var a=e[n],l=y(a);if("object"!==l)return new f("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var u in t){var c=t[u];
14if(c){var p=c(a,u,r,o,i+"."+u,s);if(p)return p}}return null}))},exact:function(t){return h((function(e,n,r,o,i){var l=e[n],u=y(l);if("object"!==u)return new f("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");var c=a({},e[n],t);for(var p in c){var h=t[p];if(!h)return new f("Invalid "+o+" `"+i+"` key `"+p+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var d=h(l,p,r,o,i+"."+p,s);if(d)return d}return null}))}};function p(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function f(t){this.message=t,this.stack=""}function h(t){if("production"!==e.env.NODE_ENV)var r={},a=0;function l(l,u,c,p,h,d,m){if(p=p||"<<anonymous>>",d=d||c,m!==s)if(n)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==e.env.NODE_ENV&&"undefined"!=typeof console){var y=p+":"+c;!r[y]&&a<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",d,p),r[y]=!0,a++)}return null==u[c]?l?null===u[c]?new f("The "+h+" `"+d+"` is marked as required in `"+p+"`, but its value is `null`."):new f("The "+h+" `"+d+"` is marked as required in `"+p+"`, but its value is `undefined`."):null:t(u,c,p,h,d)}var u=l.bind(null,!1);return u.isRequired=l.bind(null,!0),u}function d(t){return h((function(e,n,r,o,i,a){var s=e[n];return y(s)!==t?new f("Invalid "+o+" `"+i+"` of type `"+g(s)+"` supplied to `"+r+"`, expected `"+t+"`."):null}))}function m(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(m);if(null===e||t(e))return!0;var n=function(t){var e=t&&(u&&t[u]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!n)return!1;var r,o=n.call(e);if(n!==e.entries){for(;!(r=o.next()).done;)if(!m(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function y(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function g(t){if(null==t)return""+t;var e=y(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function v(t){var e=g(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return f.prototype=Error.prototype,c.checkPropTypes=l,c.PropTypes=c,c}}).call(e,n(5))},function(t,e){"use strict";function n(t){return function(){return t}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){(function(e){"use strict";var n=function(t){};"production"!==e.env.NODE_ENV&&(n=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")}),t.exports=function(t,e,r,o,i,a,s,l){if(n(e),!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,o,i,a,s,l],p=0;(u=new Error(e.replace(/%s/g,(function(){return c[p++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}}).call(e,n(5))},function(t,e,n){(function(e){"use strict";var r=n(7);if("production"!==e.env.NODE_ENV){var o=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+t.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(t){}};r=function(t,e){if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");
14if(0!==e.indexOf("Failed Composite propType: ")&&!t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];o.apply(void 0,[e].concat(r))}}}t.exports=r}).call(e,n(5))},function(t,e){ 15/* 16 object-assign 17 (c) Sindre Sorhus 18 @license MIT 19 */ 20"use strict";var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var a,s,l=i(t),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))r.call(a,c)&&(l[c]=a[c]);if(n){s=n(a);for(var p=0;p<s.length;p++)o.call(a,s[p])&&(l[s[p]]=a[s[p]])}}return l}},function(t,e){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){(function(e){"use strict";if("production"!==e.env.NODE_ENV)var r=n(8),o=n(9),i=n(11),a={};t.exports=function(t,n,s,l,u){if("production"!==e.env.NODE_ENV)for(var c in t)if(t.hasOwnProperty(c)){var p;try{r("function"==typeof t[c],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",l||"React class",s,c,typeof t[c]),p=t[c](n,c,l,s,null,i)}catch(t){p=t}if(o(!p||p instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",s,c,typeof p),p instanceof Error&&!(p.message in a)){a[p.message]=!0;var f=u?u():"";o(!1,"Failed %s type: %s%s",s,p.message,null!=f?f:"")}}}}).call(e,n(5))},function(t,e,n){"use strict";var r=n(7),o=n(8),i=n(11);t.exports=function(){function t(t,e,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e){t.exports=n(0)},function(t,e){"use strict";var n=function(t,e){return t===e};t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,r=void 0,o=[],i=void 0,a=!1,s=function(t,n){return e(t,o[n])},l=function(){for(var e=arguments.length,n=Array(e),l=0;l<e;l++)n[l]=arguments[l];return a&&r===this&&n.length===o.length&&n.every(s)?i:(a=!0,r=this,o=n,i=t.apply(this,n))};return l}}])},function(t,e,n){var r=Array.prototype.slice,o=n(107),i=n(108),a=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:function(t,e,n){var u,c;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(i(t))return!!i(e)&&(t=r.call(t),e=r.call(e),a(t,e,n));if(l(t)){if(!l(e))return!1;if(t.length!==e.length)return!1;for(u=0;u<t.length;u++)if(t[u]!==e[u])return!1;return!0}try{var p=o(t),f=o(e)}catch(t){return!1}if(p.length!=f.length)return!1;for(p.sort(),f.sort(),u=p.length-1;u>=0;u--)if(p[u]!=f[u])return!1;for(u=p.length-1;u>=0;u--)if(c=p[u],!a(t[c],e[c],n))return!1;return typeof t==typeof e}(t,e,n))};function s(t){return null==t}function l(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}},function(t,e,n){"use strict";(function(e){var r=n(7),o=n(114),i={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,l={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e)&&(s=n(45)),s),transformRequest:[function(t,e){return o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){l.headers[t]=r.merge(i)})),t.exports=l}).call(this,n(113))},function(t,e,n){"use strict";
20Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(t){return Object.keys(t).map((function(e){return[e,t[e]]}))};e.objectToPairs=i;e.mapObj=function(t,e){return n=i(t).map(e),o={},n.forEach((function(t){var e=r(t,2),n=e[0],i=e[1];o[n]=i})),o;var n,o};e.flatten=function(t){return t.reduce((function(t,e){return t.concat(e)}),[])};var a=/([A-Z])/g,s=/^ms-/;e.kebabifyStyleName=function(t){return function(t){return t.replace(a,"-$1").toLowerCase()}(t).replace(s,"-ms-")};e.recursiveMerge=function t(e,n){if("object"!=typeof e)return n;var r=o({},e);return Object.keys(n).forEach((function(o){r.hasOwnProperty(o)?r[o]=t(e[o],n[o]):r[o]=n[o]})),r};var l={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};var u=["Webkit","ms","Moz","O"];Object.keys(l).forEach((function(t){u.forEach((function(e){l[function(t,e){return t+e.charAt(0).toUpperCase()+e.substring(1)}(e,t)]=l[t]}))}));e.stringifyValue=function(t,e){return"number"==typeof e?l[t]?""+e:e+"px":e};e.hashObject=function(t){return function(t){for(var e=t.length,n=e,r=0,o=void 0;e>=4;)o=1540483477*(65535&(o=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+((1540483477*(o>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(o=1540483477*(65535&(o^=o>>>24))+((1540483477*(o>>>16)&65535)<<16)),e-=4,++r;switch(e){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),((n^=n>>>15)>>>0).toString(36)}(JSON.stringify(t))};var c=/^([^:]+:.*?)( !important)?;$/;e.importantify=function(t){return t.replace(c,(function(t,e,n){return e+" !important;"}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return Array.isArray(t)&&(t=t.join(",")),null!==t.match(/-webkit-|-moz-|-ms-/)},t.exports=e.default},function(t,e,n){"use strict";t.exports=n(85)},function(t,e,n){"use strict";(function(t,r){var o,i=n(63);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:r;var a=Object(i.a)(o);e.a=a}).call(this,n(6),n(86)(t))},function(t,e,n){var r=n(109).coordEach;t.exports=function(t){var e=[1/0,1/0,-1/0,-1/0];return r(t,(function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])})),e}},function(t,e){function n(t,e,n,r){if(void 0===t)throw new Error("geometry is required");if(e&&e.constructor!==Object)throw new Error("properties must be an Object");if(n&&4!==n.length)throw new Error("bbox must be an Array of 4 numbers");if(r&&-1===["string","number"].indexOf(typeof r))throw new Error("id must be a number or a string");var o={type:"Feature"};return r&&(o.id=r),n&&(o.bbox=n),o.properties=e||{},o.geometry=t,o}function r(t,e,r,o){if(!t)throw new Error("No coordinates passed");if(void 0===t.length)throw new Error("Coordinates must be an array");if(t.length<2)throw new Error("Coordinates must be at least 2 numbers long");if(!d(t[0])||!d(t[1]))throw new Error("Coordinates must contain numbers");return n({type:"Point",coordinates:t},e,r,o)}function o(t,e,r,o){if(!t)throw new Error("No coordinates passed");for(var i=0;i<t.length;i++){var a=t[i];
20if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var s=0;s<a[a.length-1].length;s++){if(0===i&&0===s&&!d(a[0][0])||!d(a[0][1]))throw new Error("Coordinates must contain numbers");if(a[a.length-1][s]!==a[0][s])throw new Error("First and last Position are not equivalent.")}}return n({type:"Polygon",coordinates:t},e,r,o)}function i(t,e,r,o){if(!t)throw new Error("No coordinates passed");if(t.length<2)throw new Error("Coordinates must be an array of two or more positions");if(!d(t[0][1])||!d(t[0][1]))throw new Error("Coordinates must contain numbers");return n({type:"LineString",coordinates:t},e,r,o)}function a(t,e,r,o){if(!t)throw new Error("No coordinates passed");return n({type:"MultiLineString",coordinates:t},e,r,o)}function s(t,e,r,o){if(!t)throw new Error("No coordinates passed");return n({type:"MultiPoint",coordinates:t},e,r,o)}function l(t,e,r,o){if(!t)throw new Error("No coordinates passed");return n({type:"MultiPolygon",coordinates:t},e,r,o)}var u={miles:3960,nauticalmiles:3441.145,degrees:57.2957795,radians:1,inches:250905600,yards:6969600,meters:6373e3,metres:6373e3,centimeters:6373e5,centimetres:6373e5,kilometers:6373,kilometres:6373,feet:20908792.65},c={kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,centimetres:1e4,millimeter:1e6,acres:247105e-9,miles:386e-9,yards:1.195990046,feet:10.763910417,inches:1550.003100006};function p(t,e){if(null==t)throw new Error("radians is required");var n=u[e||"kilometers"];
20if(!n)throw new Error("units is invalid");return t*n}function f(t,e){if(null==t)throw new Error("distance is required");var n=u[e||"kilometers"];if(!n)throw new Error("units is invalid");return t/n}function h(t){if(null==t)throw new Error("radians is required");return 180*(t%(2*Math.PI))/Math.PI}function d(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}t.exports={feature:n,geometry:function(t,e,n){if(!t)throw new Error("type is required");if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(n&&4!==n.length)throw new Error("bbox must be an Array of 4 numbers");var u;switch(t){case"Point":u=r(e).geometry;break;case"LineString":u=i(e).geometry;break;case"Polygon":u=o(e).geometry;break;case"MultiPoint":u=s(e).geometry;break;case"MultiLineString":u=a(e).geometry;break;case"MultiPolygon":u=l(e).geometry;break;default:throw new Error(t+" is invalid")}return n&&(u.bbox=n),u},featureCollection:function(t,e,n){if(!t)throw new Error("No features passed");if(!Array.isArray(t))throw new Error("features must be an Array");if(e&&4!==e.length)throw new Error("bbox must be an Array of 4 numbers");if(n&&-1===["string","number"].indexOf(typeof n))throw new Error("id must be a number or a string");var r={type:"FeatureCollection"};return n&&(r.id=n),e&&(r.bbox=e),r.features=t,r},geometryCollection:function(t,e,r,o){if(!t)throw new Error("geometries is required");if(!Array.isArray(t))throw new Error("geometries must be an Array");return n({type:"GeometryCollection",geometries:t},e,r,o)},point:r,multiPoint:s,lineString:i,multiLineString:a,polygon:o,multiPolygon:l,radiansToDistance:p,distanceToRadians:f,distanceToDegrees:function(t,e){return h(f(t,e))},radians2degrees:h,degrees2radians:function(t){if(null==t)throw new Error("degrees is required");return t%360*Math.PI/180},bearingToAngle:function(t){if(null==t)throw new Error("bearing is required");var e=t%360;return e<0&&(e+=360),e},convertDistance:function(t,e,n){if(null==t)throw new Error("distance is required");if(!(t>=0))throw new Error("distance must be a positive number");return p(f(t,e),n||"kilometers")},convertArea:function(t,e,n){if(null==t)throw new Error("area is required");if(!(t>=0))throw new Error("area must be a positive number");var r=c[e||"meters"];if(!r)throw new Error("invalid original units");var o=c[n||"kilometers"];if(!o)throw new Error("invalid final units");return t/r*o},round:function(t,e){if(null==t||isNaN(t))throw new Error("num is required");if(e&&!(e>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,e||0);return Math.round(t*n)/n},isNumber:d}},function(t,e){t.exports="/dist/images/mitmachen.725dfd53d76b09b26cbdd4cfe766811e.png"},function(t,e,n){"use strict";var r=n(0),o=/(\r\n|\r|\n)/g;t.exports=function(t){return"number"==typeof t?t:"string"!=typeof t?"":t.split(o).map((function(t,e){return t.match(o)?r.createElement("br",{key:e}):t}))}},function(t,e,n){"use strict"; 21/* 22object-assign 23(c) Sindre Sorhus 24@license MIT
25*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,l=a(t),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))o.call(n,c)&&(l[c]=n[c]);if(r){s=r(n);for(var p=0;p<s.length;p++)i.call(n,s[p])&&(l[s[p]]=n[s[p]])}}return l}},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i),s=n(64),l=n.n(s),u=n(20),c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(t){var e=function(e){var n=e.wrappedComponentRef,r=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(e,["wrappedComponentRef"]);return o.a.createElement(u.a,{children:function(e){return o.a.createElement(t,c({},r,e,{ref:n}))}})};return e.displayName="withRouter("+(t.displayName||t.name)+")",e.WrappedComponent=t,e.propTypes={wrappedComponentRef:a.a.func},l()(e,t)}},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}));return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(7),o=n(115),i=n(117),a=n(118),s=n(119),l=n(46);t.exports=function(t){return new Promise((function(e,u){var c=t.data,p=t.headers;r.isFormData(c)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",d=t.auth.password||"";p.Authorization="Basic "+btoa(h+":"+d)}if(f.open(t.method.toUpperCase(),i(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?a(f.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};o(e,u,r),f=null}},f.onerror=function(){u(l("Network Error",t,null,f)),f=null},f.ontimeout=function(){u(l("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var m=n(120),y=(t.withCredentials||s(t.url))&&t.xsrfCookieName?m.read(t.xsrfCookieName):void 0;y&&(p[t.xsrfHeaderName]=y)}if("setRequestHeader"in f&&r.forEach(p,(function(t,e){void 0===c&&"content-type"===e.toLowerCase()?delete p[e]:f.setRequestHeader(e,t)})),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),u(t),f=null)})),void 0===c&&(c=null),f.send(c)}))}},function(t,e,n){"use strict";var r=n(116);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},function(t,e,n){"use strict";
25t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(33),i=n(50),a={create:function(t){return(0,o.mapObj)(t,(function(t){var e=r(t,2),n=e[0],i=e[1];return[n,{_name:n+"_"+(0,o.hashObject)(i),_definition:i}]}))},rehydrate:function(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(0,i.addRenderedClassNames)(t)}},s={renderStatic:function(t){return(0,i.reset)(),(0,i.startBuffering)(),{html:t(),css:{content:(0,i.flushToString)(),renderedClassNames:(0,i.getRenderedClassNames)()}}}},l={suppressStyleInjection:function(){(0,i.reset)(),(0,i.startBuffering)()},clearBufferAndResumeStyleInjection:function(){(0,i.reset)()}};e.default={StyleSheet:a,StyleSheetServer:s,StyleSheetTestUtils:l,css:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=!0;return(0,i.injectAndGetClassName)(r,e)}},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(130),i=(r=o)&&r.__esModule?r:{default:r},a=n(132),s=n(33),l=null,u={fontFamily:function t(e){return Array.isArray(e)?e.map(t).join(","):"object"==typeof e?(d(e.fontFamily,"@font-face",[e],!1),'"'+e.fontFamily+'"'):e},animationName:function(t){if("object"!=typeof t)return t;var e="keyframe_"+(0,s.hashObject)(t),n="@keyframes "+e+"{";return Object.keys(t).forEach((function(e){n+=(0,a.generateCSS)(e,[t[e]
25],u,!1)})),h(e,n+="}"),e}},c={},p="",f=!1,h=function(t,e){if(!c[t]){if(!f){if("undefined"==typeof document)throw new Error("Cannot automatically buffer without a document");f=!0,(0,i.default)(y)}p+=e,c[t]=!0}},d=function(t,e,n,r){if(!c[t]){var o=(0,a.generateCSS)(e,n,u,r);h(t,o)}};e.injectStyleOnce=d;e.reset=function(){p="",c={},f=!1,l=null};e.startBuffering=function(){if(f)throw new Error("Cannot buffer while already buffering");f=!0};var m=function(){f=!1;var t=p;return p="",t};e.flushToString=m;var y=function(){var t=m();t.length>0&&function(t){if(null==l&&null==(l=document.querySelector("style[data-aphrodite]"))){var e=document.head||document.getElementsByTagName("head")[0];(l=document.createElement("style")).type="text/css",l.setAttribute("data-aphrodite",""),e.appendChild(l)}l.styleSheet?l.styleSheet.cssText+=t:l.appendChild(document.createTextNode(t))}(t)};e.flushToStyleTag=y;e.getRenderedClassNames=function(){return Object.keys(c)};e.addRenderedClassNames=function(t){t.forEach((function(t){c[t]=!0}))};e.injectAndGetClassName=function(t,e){var n=e.filter((function(t){return t}));if(0===n.length)return"";var r=n.map((function(t){return t._name})).join("-o_O-");return d(r,"."+r,n.map((function(t){return t._definition})),t),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={Webkit:{transform:!0,transformOrigin:!0,transformOriginX:!0,transformOriginY:!0,backfaceVisibility:!0,perspective:!0,perspectiveOrigin:!0,transformStyle:!0,transformOriginZ:!0,animation:!0,animationDelay:!0,animationDirection:!0,animationFillMode:!0,animationDuration:!0,animationIterationCount:!0,animationName:!0,animationPlayState:!0,animationTimingFunction:!0,appearance:!0,userSelect:!0,fontKerning:!0,textEmphasisPosition:!0,textEmphasis:!0,textEmphasisStyle:!0,textEmphasisColor:!0,boxDecorationBreak:!0,clipPath:!0,maskImage:!0,maskMode:!0,maskRepeat:!0,maskPosition:!0,maskClip:!0,maskOrigin:!0,maskSize:!0,maskComposite:!0,mask:!0,maskBorderSource:!0,maskBorderMode:!0,maskBorderSlice:!0,maskBorderWidth:!0,maskBorderOutset:!0,maskBorderRepeat:!0,maskBorder:!0,maskType:!0,textDecorationStyle:!0,textDecorationSkip:!0,textDecorationLine:!0,textDecorationColor:!0,filter:!0,fontFeatureSettings:!0,breakAfter:!0,breakBefore:!0,breakInside:!0,columnCount:!0,columnFill:!0,columnGap:!0,columnRule:!0,columnRuleColor:!0,columnRuleStyle:!0,columnRuleWidth:!0,columns:!0,columnSpan:!0,columnWidth:!0,flex:!0,flexBasis:!0,flexDirection:!0,flexGrow:!0,flexFlow:!0,flexShrink:!0,flexWrap:!0,alignContent:!0,alignItems:!0,alignSelf:!0,justifyContent:!0,order:!0,transition:!0,transitionDelay:!0,transitionDuration:!0,transitionProperty:!0,transitionTimingFunction:!0,backdropFilter:!0,scrollSnapType:!0,scrollSnapPointsX:!0,scrollSnapPointsY:!0,scrollSnapDestination:!0,scrollSnapCoordinate:!0,shapeImageThreshold:!0,shapeImageMargin:!0,shapeImageOutside:!0,hyphens:!0,flowInto:!0,flowFrom:!0,regionFragment:!0,textSizeAdjust:!0},Moz:{appearance:!0,userSelect:!0,boxSizing:!0,textAlignLast:!0,textDecorationStyle:!0,textDecorationSkip:!0,textDecorationLine:!0,textDecorationColor:!0,tabSize:!0,hyphens:!0,fontFeatureSettings:!0,breakAfter:!0,breakBefore:!0,breakInside:!0,columnCount:!0,columnFill:!0,columnGap:!0,columnRule:!0,columnRuleColor:!0,columnRuleStyle:!0,columnRuleWidth:!0,columns:!0,columnSpan:!0,columnWidth:!0},ms:{flex:!0,flexBasis:!1,flexDirection:!0,flexGrow:!1,flexFlow:!0,flexShrink:!1,flexWrap:!0,alignContent:!1,alignItems:!1,alignSelf:!1,justifyContent:!1,order:!1,transform:!0,transformOrigin:!0,transformOriginX:!0,transformOriginY:!0,userSelect:!0,wrapFlow:!0,wrapThrough:!0,wrapMargin:!0,scrollSnapType:!0,scrollSnapPointsX:!0,scrollSnapPointsY:!0,scrollSnapDestination:!0,scrollSnapCoordinate:!0,touchAction:!0,hyphens:!0,flowInto:!0,flowFrom:!0,breakBefore:!0,breakAfter:!0,breakInside:!0,regionFragment:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridTemplate:!0,gridAutoColumns:!0,gridAutoRows:!0,gridAutoFlow:!0,grid:!0,gridRowStart:!0,gridColumnStart:!0,gridRowEnd:!0,gridRow:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridRowGap:!0,gridArea:!0,gridGap:!0,textSizeAdjust:!0}},t.exports=e.default},function(t,e,n){"use strict";
25Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},t.exports=e.default},function(t,e,n){var r; 26/*! 27 Copyright (c) 2015 Jed Watson. 28 Based on code that is Copyright 2013-2015, Facebook, Inc. 29 All rights reserved. 30*/!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return i}.call(e,n,e,t))||(t.exports=r)}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultProps=void 0;var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(0);(r=i)&&r.__esModule;function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var l=e.defaultProps={attributes:{},styles:{}},u=function(t){function e(){var t,n,r;a(this,e);for(var o=arguments.length,i=Array(o),l=0;l<o;l++)i[l]=arguments[l];return n=r=s(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(i))),r.originalAttributes={},r.originalStyles={},s(r,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"componentDidMount",value:function(){var t=this,e=this.props,n=e.attributes,r=e.styles,o=e.target,i=void 0===o?document.body:o;i&&(this.attributeKeys=Object.keys(n),this.styleKeys=Object.keys(r),this.styleKeys.length&&this.styleKeys.forEach((function(e){t.originalStyles[e]=i.style.getPropertyValue(e),i.style.setProperty(e,r[e])})),this.attributeKeys.length&&this.attributeKeys.forEach((function(e){t.originalAttributes[e]=i.getAttribute(e)||"",i.setAttribute(e,n[e])})))}},{key:"componentWillUnmount",value:function(){var t=this,e=this.props.target,n=void 0===e?document.body:e;n&&(this.styleKeys.length&&this.styleKeys.forEach((function(e){n.style.setProperty(e,t.originalStyles[e])})),this.attributeKeys.length&&this.attributeKeys.forEach((function(e){t.originalAttributes[e]?n.setAttribute(e,t.originalAttributes[e]):n.removeAttribute(e)})))}},{key:"render",value:function(){return null}}]),e}(i.PureComponent);u.defaultProps=l,e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.preventTouchMove=function(t){t.preventDefault()},e.allowTouchMove=function(t){t.stopPropagation()},e.preventInertiaScroll=function(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;0===t?this.scrollTop=1:n===e&&(this.scrollTop=t-1)},e.isTouchDevice=function(){return!!window&&("ontouchstart"in window||navigator.maxTouchPoints)},e.getPadding=function(){if(!document||!window)return 0;var t=parseInt(document.body.paddingRight,10)||0,e=document.body?document.body.clientWidth:0;return window.innerWidth-e+t||0},e.camelToKebab=function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},e.getWindowHeight=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(window&&window.innerHeight)return window.innerHeight*t},e.getDocumentHeight=function(){if(document&&document.body)return document.body.clientHeight},e.parse=function(t){return isNaN(t)?t:t+"px"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=c(n(1)),i=c(n(0)),a=n(17),s=c(n(16)),l=c(n(19)),u=c(n(57));function c(t){return t&&t.__esModule?t:{default:t}}
30function p(t,e){var n=e.theme,o=t.direction,c=t.icon,p=t.onClick,h=t.size,d=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["direction","icon","onClick","size"]),m=a.StyleSheet.create((0,l.default)(f,n));return i.default.createElement("button",r({type:"button",className:(0,a.css)(m.arrow,m["arrow__direction__"+o],h&&m["arrow__size__"+h]),onClick:p,onTouchEnd:p},d),i.default.createElement(u.default,{fill:!!n.arrow&&n.arrow.fill||s.default.arrow.fill,type:c}))}p.propTypes={direction:o.default.oneOf(["left","right"]),icon:o.default.string,onClick:o.default.func.isRequired,size:o.default.oneOf(["medium","small"]).isRequired},p.defaultProps={size:"medium"},p.contextTypes={theme:o.default.object.isRequired};var f={arrow:{background:"none",border:"none",borderRadius:4,cursor:"pointer",outline:"none",padding:10,position:"absolute",top:"50%",WebkitTouchCallout:"none",userSelect:"none"},arrow__size__medium:{height:s.default.arrow.height,marginTop:s.default.arrow.height/-2,width:40,"@media (min-width: 768px)":{width:70}},arrow__size__small:{height:s.default.thumbnail.size,marginTop:s.default.thumbnail.size/-2,width:30,"@media (min-width: 500px)":{width:40}},arrow__direction__right:{right:s.default.container.gutter.horizontal},arrow__direction__left:{left:s.default.container.gutter.horizontal}};e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=u(n(1)),i=u(n(0)),a=u(n(153)),s=u(n(154)),l=u(n(155));function u(t){return t&&t.__esModule?t:{default:t}}var c={arrowLeft:a.default,arrowRight:s.default,close:l.default},p=function(t){var e=t.fill,n=t.type,o=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["fill","type"]),a=c[n];return i.default.createElement("span",r({dangerouslySetInnerHTML:{__html:a(e)}},o))};p.propTypes={fill:o.default.string,type:o.default.oneOf(Object.keys(c))},p.defaultProps={fill:"white"},e.default=p},function(t,e,n){"use strict";e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(1)),o=s(n(0)),i=s(n(18)),a=n(59);n(60);function s(t){return t&&t.__esModule?t:{default:t}}e.UNMOUNTED="unmounted";e.EXITED="exited";e.ENTERING="entering";e.ENTERED="entered";e.EXITING="exiting";var l=function(t){var e,n;function r(e,n){var r;r=t.call(this,e,n)||this;var o,i=n.transitionGroup,a=i&&!i.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(o="exited",r.appearStatus="entering"):o="entered":o=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(t,e){return t.in&&"unmounted"===e.status?{status:"exited"}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(e="entering"):"entering"!==n&&"entered"!==n||(e="exiting")}this.updateStatus(!1,e)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},a.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var n=i.default.findDOMNode(this);"entering"===e?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},a.performEnter=function(t,e){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,i=this.getTimeouts(),a=o?i.appear:i.enter;e||r?(this.props.onEnter(t,o),this.safeSetState({status:"entering"},(function(){n.props.onEntering(t,o),n.onTransitionEnd(t,a,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(t,o)}))}))}))):this.safeSetState({status:"entered"},(function(){n.props.onEntered(t)}))},a.performExit=function(t){var e=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(t),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(t),e.onTransitionEnd(t,r.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(t)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(t)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},a.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(t,e,n){this.setNextCallback(n);var r=null==e&&!this.props.addEndListener;t&&!r?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},a.render=function(){var t=this.state.status;if("unmounted"===t)return null;var e=this.props,n=e.children,r=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(e,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(t,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function u(){}l.contextTypes={transitionGroup:r.object},l.childContextTypes={transitionGroup:function(){}},l.propTypes={},l.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
vendor: 2,680 bytes, line 30
30:!0,exit:!0,onEnter:u,onEntering:u,onEntered:u,onExit:u,onExiting:u,onExited:u},l.UNMOUNTED=0,l.EXITED=1,l.ENTERING=2,l.ENTERED=3,l.EXITING=4;var c=(0,a.polyfill)(l);e.default=c},function(t,e,n){"use strict";function r(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function o(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!=n?n:null}.bind(this))}function i(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,s=null;if("function"==typeof e.componentWillMount?n="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?s="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=t.displayName||t.name,u="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=r,e.componentWillReceiveProps=o),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=i;var c=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,t,e,r)}}return t}n.r(e),n.d(e,"polyfill",(function(){return a})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(t,e,n){"use strict";e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0;var r;(r=n(1))&&r.__esModule;
30e.timeoutsShape=null;e.classNamesShape=null},function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=s(n(1)),o=s(n(0)),i=n(59),a=n(169);function s(t){return t&&t.__esModule?t:{default:t}}function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var c=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},p=function(t){var e,n;function r(e,n){var r,o=(r=t.call(this,e,n)||this).handleExited.bind(u(u(r)));return r.state={handleExited:o,firstRender:!0},r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},i.componentDidMount=function(){this.appeared=!0,this.mounted=!0},i.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,e){var n=e.children,r=e.handleExited;return{children:e.firstRender?(0,a.getInitialChildMapping)(t,r):(0,a.getNextChildMapping)(t,n,r),firstRender:!1}},i.handleExited=function(t,e){var n=(0,a.getChildMapping)(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var n=l({},e.children);return delete n[t.key],{children:n}})))},i.render=function(){var t=this.props,e=t.component,n=t.childFactory,r=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["component","childFactory"]),i=c(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?i:o.default.createElement(e,r,i)},r}(o.default.Component);p.childContextTypes={transitionGroup:r.default.object.isRequired},p.propTypes={},p.defaultProps={component:"div",childFactory:function(t){return t}};var f=(0,i.polyfill)(p);e.default=f,t.exports=e.default},function(t,e,n){"use strict";var r=n(35),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(t){return r.isMemo(t)?a:s[t.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(d){var o=h(n);o&&o!==d&&t(e,o,r)}var a=c(n);p&&(a=a.concat(p(n)));for(var s=l(e),m=l(n),y=0;y<a.length;++y){var g=a[y];if(!(i[g]||r&&r[g]||m&&m[g]||s&&s[g])){var v=f(n,g);try{u(e,g,v)}catch(t){}}}}return e}},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,c=u&&u(Object);t.exports=function t(e,n,p){if("string"!=typeof n){if(c){var f=u(n);f&&f!==c&&t(e,f,p)}var h=a(n);s&&(h=h.concat(s(n)));for(var d=0;d<h.length;++d){var m=h[d];if(!(r[m]||o[m]||p&&p[m])){var y=l(n,m);try{i(e,m,y)}catch(t){}}}return e}return e}},function(t,e){t.exports="/dist/images/portrait_male_adault_thumb.ff3c0dbbe55ffbd2394ec0b49e616af9.jpg"},function(t,e){t.exports="/dist/images/portrait_female_adault.e72fb20d747e5ea856c2dd461eb9f060.jpg"},function(t,e){t.exports="/dist/images/portrait_female_adault_thumb.b99bec118f70ba2209ff8adcf4eee6e9.jpg"},function(t,e){t.exports="/dist/images/portrait_male_child.023a45c05cb09cc6c5f6cf7806dfd152.jpg"},function(t,e){t.exports="/dist/images/portrait_male_child_thumb.baa7808e9635655b5e85c453df6aac0e.jpg"},function(t,e){t.exports="/dist/images/portrait_female_child.a33eddc7d57c6564edce3dc30ab76d32.jpg"},function(t,e){t.exports="/dist/images/portrait_female_child_thumb.3a62e96a2d749bfd04bdf6ae166eed7c.jpg"},function(t,e,n){var r=n(0);function o(t){return r.createElement("svg",t,[r.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18",key:0}),r.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18",key:1})])}o.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-x"},t.exports=o,o.default=o},function(t,e){t.exports="/dist/images/[email protected]"},function(t,e){t.exports="/dist/images/logoleiste.d819d6c2bfd1fa43b7999be9e6923df4.jpg"},function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,l=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function a(){n&&(n=!1,t()),r&&l()}function s(){i(a)}function l(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,e);o=t}return l}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}
vendor: 4,662 bytes, line 30
30));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;a.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),u=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},c=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||o},p=g(0,0,0,0);function f(t){return parseFloat(t)||0}function h(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+f(t["border-"+n+"-width"])}),0)}function d(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var r=c(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=f(i)}return e}(r),i=o.left+o.right,a=o.top+o.bottom,s=f(r.width),l=f(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==e&&(s-=h(r,"left","right")+i),Math.round(l+a)!==n&&(l-=h(r,"top","bottom")+a)),!function(t){return t===c(t).document.documentElement}(t)){var u=Math.round(s+i)-e,d=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(d)&&(l-=d)}return g(o.left,o.top,s,l)}var m="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof c(t).SVGGraphicsElement}:function(t){return t instanceof c(t).SVGElement&&"function"==typeof t.getBBox};function y(t){return r?m(t)?function(t){var e=t.getBBox();return g(0,0,e.width,e.height)}(t):d(t):p}function g(t,e,n,r){return{x:t,y:e,width:n,height:r}}var v=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=y(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),_=function(t,e){var n,r,o,i,a,s,l,c=(r=(n=e).x,o=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),u(l,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),l);u(this,{target:t,contentRect:c})},b=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof c(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new v(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof c(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new _(t.target,t.broadcastRect())}
30));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),x="undefined"!=typeof WeakMap?new WeakMap:new n,w=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new b(e,n,this);x.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){w.prototype[t]=function(){var e;return(e=x.get(this))[t].apply(e,arguments)}}));var E=void 0!==o.ResizeObserver?o.ResizeObserver:w;e.a=E}).call(this,n(6))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=b(n(1)),i=n(0),a=b(i),s=n(49),l=b(n(147)),u=b(n(16)),c=b(n(56)),p=b(n(156)),f=b(n(157)),h=b(n(158)),d=b(n(159)),m=b(n(161)),y=b(n(171)),g=b(n(172)),v=b(n(173)),_=b(n(19));function b(t){return t&&t.__esModule?t:{default:t}}function x(t){var e=t.srcSet||t.srcset;return Array.isArray(e)?e.join():e}var w=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.theme=(0,_.default)(u.default,t.theme),n.classes=s.StyleSheet.create((0,_.default)(E,n.theme)),n.state={imageLoaded:!1},g.default.call(n,["gotoNext","gotoPrev","closeBackdrop","handleKeyboardInput","handleImageLoaded"]),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"getChildContext",value:function(){return{theme:this.theme}}},{key:"componentDidMount",value:function(){this.props.isOpen&&(this.props.enableKeyboardInput&&window.addEventListener("keydown",this.handleKeyboardInput),"number"==typeof this.props.currentImage&&this.preloadImage(this.props.currentImage,this.handleImageLoaded))}},{key:"componentWillReceiveProps",value:function(t){if(v.default){if(t.preloadNextImage){var e=this.props.currentImage,n=t.currentImage+1,r=t.currentImage-1,o=void 0;e&&t.currentImage>e?o=n:e&&t.currentImage<e&&(o=r),o?this.preloadImage(o):(this.preloadImage(r),this.preloadImage(n))}if(this.props.currentImage!==t.currentImage||!this.props.isOpen&&t.isOpen){var i=this.preloadImageData(t.images[t.currentImage],this.handleImageLoaded);i&&this.setState({imageLoaded:i.complete})}!this.props.isOpen&&t.isOpen&&t.enableKeyboardInput&&window.addEventListener("keydown",this.handleKeyboardInput),!t.isOpen&&t.enableKeyboardInput&&window.removeEventListener("keydown",this.handleKeyboardInput)}}},{key:"componentWillUnmount",value:function(){this.props.enableKeyboardInput&&window.removeEventListener("keydown",this.handleKeyboardInput)}},{key:"preloadImage",value:function(t,e){return this.preloadImageData(this.props.images[t],e)}},{key:"preloadImageData",value:function(t,e){if(t){var n=new Image,r=x(t);return n.onerror=e,n.onload=e,n.src=t.src,r&&(n.srcset=r),n}}},{key:"gotoNext",value:function(t){var e=this.props,n=e.currentImage,r=e.images;this.state.imageLoaded&&n!==r.length-1&&(t&&(t.preventDefault(),t.stopPropagation()),this.props.onClickNext())}},{key:"gotoPrev",value:function(t){var e=this.props.currentImage;this.state.imageLoaded&&0!==e&&(t&&(t.preventDefault(),t.stopPropagation()),this.props.onClickPrev())}},{key:"closeBackdrop",value:function(t){"lightboxBackdrop"!==t.target.id&&"FIGURE"!==t.target.tagName||this.props.onClose()}},{key:"handleKeyboardInput",value:function(t){return 37===t.keyCode?(this.gotoPrev(t),!0):39===t.keyCode?(this.gotoNext(t),!0):27===t.keyCode&&(this.props.onClose(),!0)}},{key:"handleImageLoaded",value:function(){this.setState({imageLoaded:!0})}},{key:"renderArrowPrev",value:function(){return 0===this.props.currentImage?null:a.default.createElement(c.default,{direction:"left",icon:"arrowLeft",onClick:this.gotoPrev,title:this.props.leftArrowTitle,type:"button"})}},{key:"renderArrowNext",value:function(){return this.props.currentImage===this.props.images.length-1?null:a.default.createElement(c.default,{direction:"right",icon:"arrowRight",onClick:this.gotoNext,title:this.props.rightArrowTitle,type:"button"})}},{key:"renderDialog",value:function(){var t=this.props,e=t.backdropClosesModal,n=t.isOpen,r=t.showThumbnails,o=t.width,i=this.state.imageLoaded;if(!n)return a.default.createElement("span",{key:"closed"});var u=0;return r&&(u=this.theme.thumbnail.size+this.theme.container.gutter.vertical),a.default.createElement(p.default,{key:"open",onClick:e&&this.closeBackdrop,onTouchEnd:e&&this.closeBackdrop},a.default.createElement("div",null,a.default.createElement("div",{className:(0,s.css)(this.classes.content),style:{marginBottom:u,maxWidth:o}},i&&this.renderHeader(),this.renderImages(),this.renderSpinner(),i&&this.renderFooter()),i&&this.renderThumbnails(),i&&this.renderArrowPrev(),i&&this.renderArrowNext(),this.props.preventScroll&&a.default.createElement(l.default,null)))}},{key:"renderImages",value:function(){var t=this.props,e=t.currentImage,n=t.
30images,r=t.onClickImage,o=t.showThumbnails,i=this.state.imageLoaded;if(!n||!n.length)return null;var l=n[e],u=x(l),c=u?"100vw":null,p=o?this.theme.thumbnail.size:0,f=this.theme.header.height+this.theme.footer.height+p+this.theme.container.gutter.vertical+"px";return a.default.createElement("figure",{className:(0,s.css)(this.classes.figure)},a.default.createElement("img",{className:(0,s.css)(this.classes.image,i&&this.classes.imageLoaded),onClick:r,sizes:c,alt:l.alt,src:l.src,srcSet:u,style:{cursor:r?"pointer":"auto",maxHeight:"calc(100vh - "+f+")"}}))}},{key:"renderThumbnails",value:function(){var t=this.props,e=t.images,n=t.currentImage,r=t.onClickThumbnail,o=t.showThumbnails,i=t.thumbnailOffset;if(o)return a.default.createElement(d.default,{currentImage:n,images:e,offset:i,onClickThumbnail:r})}},{key:"renderHeader",value:function(){var t=this.props,e=t.closeButtonTitle,n=t.customControls,r=t.onClose,o=t.showCloseButton;return a.default.createElement(h.default,{customControls:n,onClose:r,showCloseButton:o,closeButtonTitle:e})}},{key:"renderFooter",value:function(){var t=this.props,e=t.currentImage,n=t.images,r=t.imageCountSeparator,o=t.showImageCount;return n&&n.length?a.default.createElement(f.default,{caption:n[e].caption,countCurrent:e+1,countSeparator:r,countTotal:n.length,showCount:o}):null}},{key:"renderSpinner",value:function(){var t=this.props,e=t.spinner,n=t.spinnerColor,r=t.spinnerSize,o=this.state.imageLoaded,i=e;return a.default.createElement("div",{className:(0,s.css)(this.classes.spinner,!o&&this.classes.spinnerActive)},a.default.createElement(i,{color:n,size:r}))}},{key:"render",value:function(){return a.default.createElement(m.default,null,this.renderDialog())}}]),e}(i.Component);w.propTypes={backdropClosesModal:o.default.bool,closeButtonTitle:o.default.string,currentImage:o.default.number,customControls:o.default.arrayOf(o.default.node),enableKeyboardInput:o.default.bool,imageCountSeparator:o.default.string,images:o.default.arrayOf(o.default.shape({src:o.default.string.isRequired,srcSet:o.default.oneOfType([o.default.string,o.default.arrayOf(o.default.string)]),caption:o.default.oneOfType([o.default.string,o.default.element]),thumbnail:o.default.string})).isRequired,isOpen:o.default.bool,leftArrowTitle:o.default.string,onClickImage:o.default.func,onClickNext:o.default.func,onClickPrev:o.default.func,onClose:o.default.func.isRequired,preloadNextImage:o.default.bool,preventScroll:o.default.bool,rightArrowTitle:o.default.string,showCloseButton:o.default.bool,showImageCount:o.default.bool,showThumbnails:o.default.bool,spinner:o.default.func,spinnerColor:o.default.string,spinnerSize:o.default.number,theme:o.default.object,thumbnailOffset:o.default.number,width:o.default.number},w.defaultProps={closeButtonTitle:"Close (Esc)",currentImage:0,enableKeyboardInput:!0,imageCountSeparator:" of ",leftArrowTitle:"Previous (Left arrow key)",onClickShowNextImage:!0,preloadNextImage:!0,preventScroll:!0,rightArrowTitle:"Next (Right arrow key)",showCloseButton:!0,showImageCount:!0,spinner:y.default,spinnerColor:"white",spinnerSize:100,theme:{},thumbnailOffset:2,width:1024},w.childContextTypes={theme:o.default.object.isRequired};var E={content:{position:"relative"},figure:{margin:0},image:{display:"block",height:"auto",margin:"0 auto",maxWidth:"100%",WebkitTouchCallout:"none",userSelect:"none",opacity:0,transition:"opacity 0.3s"},imageLoaded:{opacity:1},spinner:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:0,transition:"opacity 0.3s",pointerEvents:"none"},spinnerActive:{opacity:1}};e.default=w},function(t,e){t.exports="/dist/images/swr2_logo.701da4f1bd56309b831af3096912aab8.png"},function(t,e,n){var r=n(0);function o(t){return r.createElement("svg",t,[r.createElement("rect",{width:"164",height:"164",rx:"34",fill:"url(#paint0_linear)",key:0}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.37 79.066c0 5.673 1.838 8.448 6.025 10.312 4.507 2.005 10.96-.225 15.102-1.864 2.14-.846 3.108-2.5 2.17-4.51-1.183-2.537-3.733-1.57-4.818-1.18-2.232.803-5.1 2.091-7.567 1.856-2.023-.192-3.186-2.485-2.769-4.31.251-1.101 1.147-1.998 2.188-2.44v3.982c0 .517-.107.566.44.577 1.144.021 2.347-.125 3.388-.61.655-.306.54-.392.524-1.025l-.06-2.356-.104-4.067c-.004-.215 13.22-.799 14.663-.879l.103-.005.675 15.816c.014.331.317 5.019.177 5.035l-7.814.931-6.348.756-.182-3.382c-.728.13-5.462.65-5.462 1.147l-.002 4.402-.013 19.085-.011 17c-.001.821-.1 1.712.056 2.526.7 3.646 6.26 4.143 8.886 2.297 1.212-.851 1.709-2.133 1.712-3.526l.017-6.078.05-20.126.02-7.37c.002-.168-.118-.945.004-1.08.162-.181 1.58-.01 1.826-.011l2.042-.012v31.786c0 1.185.066 2.39 0 3.573-.191 3.446 4.192 4.085 6.793 3.716 2.17-.309 3.925-1.503 3.925-3.748v-55.15c0-2.663 2.002-3.766 4.848-5.824
301.925-1.394 5.373-3.533 7.167-5.123 3.149-2.79 5.228-5.616 7.169-9.367.713-1.378 1.142-2.245 1.75-3.67.433-1.015.275-2.709-1.136-3.627-1.97-1.28-4.547-.379-5.907 1.196-2.177 2.519-3.445 5.64-5.827 8.03a12.726 12.726 0 01-4.977 3.093c-1.858.623-5.836.448-8.685.44-4.362-.012-8.716-.002-13.079.013.864-.002-3.582.225-5.516.917-4.958 1.774-11.443 5.044-11.443 12.854",fill:"#101B2D",key:1}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M92.27 52.33c0 4.769-3.748 8.952-8.671 9.651-4.936.7-9.807-2.248-11.247-6.832-1.442-4.593.922-9.645 5.454-11.668 4.541-2.026 10.098-.483 12.825 3.536a9.486 9.486 0 011.639 5.314M116 60.389c-7.919-7.052-16.661-14.784-24.58-21.836l-10.167-9.055 15.09-4.704-5.675 13.369",fill:"#111C2F",key:2}),r.createElement("path",{d:"M116 60.389c-7.919-7.052-16.661-14.784-24.58-21.836l-10.167-9.055 15.09-4.704-5.675 13.369",stroke:"#101B2D",strokeWidth:"3.96",key:3}),r.createElement("defs",{key:4},r.createElement("linearGradient",{id:"paint0_linear",x1:"10",y1:"11",x2:"153",y2:"158.5",gradientUnits:"userSpaceOnUse"},[r.createElement("stop",{stopColor:"#FFE786",key:0}),r.createElement("stop",{offset:".333",stopColor:"#FFE374",key:1}),r.createElement("stop",{offset:".568",stopColor:"#FFDD57",key:2}),r.createElement("stop",{offset:"1",stopColor:"#EFCA35",key:3})]))])}o.defaultProps={fill:"none",viewBox:"0 0 164 164"},t.exports=o,o.default=o},function(t,e,n){"use strict"; 31/** @license React v16.14.0 32 * react.production.min.js 33 * 34 * Copyright (c) Facebook, Inc. and its affiliates. 35 * 36 * This source code is licensed under the MIT license found in the 37 * LICENSE file in the root directory of this source tree. 38 */var r=n(41),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,u=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,f=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,d=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function g(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function b(t,e,n){this.props=t,this.context=e,this.refs=_,this.updater=n||v}function x(){}function w(t,e,n){this.props=t,this.context=e,this.refs=_,this.updater=n||v}b.prototype.isReactComponent={},b.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(g(85));this.updater.enqueueSetState(this,t,e,"setState")},b.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},x.prototype=b.prototype;var E=w.prototype=new x;E.constructor=w,r(E,b.prototype),E.isPureReactComponent=!0;var S={current:null},k=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function C(t,e,n){var r,o={},a=null,s=null;
vendor: 33,282 bytes, lines 38-46
38if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)k.call(e,r)&&!T.hasOwnProperty(r)&&(o[r]=e[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(t&&t.defaultProps)for(r in l=t.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:t,key:a,ref:s,props:o,_owner:S.current}}function P(t){return"object"==typeof t&&null!==t&&t.$$typeof===i}var I=/\/+/g,O=[];function A(t,e,n,r){if(O.length){var o=O.pop();return o.result=t,o.keyPrefix=e,o.func=n,o.context=r,o.count=0,o}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function z(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>O.length&&O.push(t)}function M(t,e,n){return null==t?0:function t(e,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case a:l=!0}}if(l)return r(o,e,""===n?"."+R(e,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=n+R(s=e[u],u);l+=t(s,c,r,o)}else if(null===e||"object"!=typeof e?c=null:c="function"==typeof(c=y&&e[y]||e["@@iterator"])?c:null,"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=t(s=s.value,c=n+R(s,u++),r,o);else if("object"===s)throw r=""+e,Error(g(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return l}(t,"",e,n)}function R(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function D(t,e){t.func.call(t.context,e,t.count++)}function L(t,e,n){var r=t.result,o=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?j(t,r,n,(function(t){return t})):null!=t&&(P(t)&&(t=function(t,e){return{$$typeof:i,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,o+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(I,"$&/")+"/")+n)),r.push(t))}function j(t,e,n,r,o){var i="";null!=n&&(i=(""+n).replace(I,"$&/")+"/"),M(t,L,e=A(e,i,r,o)),z(e)}var B={current:null};function N(){var t=B.current;if(null===t)throw Error(g(321));return t}var F={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};e.Children={map:function(t,e,n){if(null==t)return t;var r=[];return j(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;M(t,D,e=A(null,null,e,n)),z(e)},count:function(t){return M(t,(function(){return null}),null)},toArray:function(t){var e=[];return j(t,e,null,(function(t){return t})),e},only:function(t){if(!P(t))throw Error(g(143));return t}},e.Component=b,e.Fragment=s,e.Profiler=u,e.PureComponent=w,e.StrictMode=l,e.Suspense=h,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,e.cloneElement=function(t,e,n){if(null==t)throw Error(g(267,t));var o=r({},t.props),a=t.key,s=t.ref,l=t._owner;if(null!=e){if(void 0!==e.ref&&(s=e.ref,l=S.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var u=t.type.defaultProps;for(c in e)k.call(e,c)&&!T.hasOwnProperty(c)&&(o[c]=void 0===e[c]&&void 0!==u?u[c]:e[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var p=0;p<c;p++)u[p]=arguments[p+2];o.children=u}return{$$typeof:i,type:t.type,key:a,ref:s,props:o,_owner:l}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:p,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:t},t.Consumer=t},e.createElement=C,e.createFactory=function(t){var e=C.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:f,render:t}},e.isValidElement=P,e.lazy=function(t){return{$$typeof:m,_ctor:t,_status:-1,_result:null}},e.memo=function(t,e){return{$$typeof:d,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return N().useCallback(t,e)},e.useContext=function(t,e){return N().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return N().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return N().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return N().useLayoutEffect(t,e)},e.useMemo=function(t,e){return N().useMemo(t,e)},e.useReducer=function(t,e,n){return N().useReducer(t,e,n)},e.useRef=function(t){return N().useRef(t)},e.useState=function(t){return N().useState(t)},e.version="16.14.0"},function(t,e,n){"use strict"; 39/** @license React v16.14.0 40 * react-dom.production.min.js 41 * 42 * Copyright (c) Facebook, Inc. and its affiliates. 43 * 44 * This source code is licensed under the MIT license found in the 45 * LICENSE file in the root directory of this source tree. 46 */var r=n(0),o=n(41),i=n(81);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(t,e,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(t){this.onError(t)}}var l=!1,u=null,c=!1,p=null,f={onError:function(t){l=!0,u=t}};function h(t,e,n,r,o,i,a,c,p){l=!1,u=null,s.apply(f,arguments)}var d=null,m=null,y=null;function g(t,e,n){var r=t.type||"unknown-event";t.currentTarget=y(n),function(t,e,n,r,o,i,s,f,d){if(h.apply(this,arguments),l){if(!l)throw Error(a(198));var m=u;l=!1,u=null,c||(c=!0,p=m)}}(r,e,void 0,t),t.currentTarget=null}var v=null,_={};function b(){if(v)for(var t in _){var e=_[t],n=v.indexOf(t);if(!(-1<n))throw Error(a(96,t));if(!w[n]){if(!e.extractEvents)throw Error(a(97,t));for(var r in w[n]=e,n=e.eventTypes){var o=void 0,i=n[r],s=e,l=r;if(E.hasOwnProperty(l))throw Error(a(99,l));E[l]=i;var u=i.phasedRegistrationNames;if(u){for(o in u)u.hasOwnProperty(o)&&x(u[o],s,l);o=!0}else i.registrationName?(x(i.registrationName,s,l),o=!0):o=!1;if(!o)throw Error(a(98,r,t))}}}}function x(t,e,n){if(S[t])throw Error(a(100,t));S[t]=e,k[t]=e.eventTypes[n].dependencies}var w=[],E={},S={},k={};function T(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];if(!_.hasOwnProperty(e)||_[e]!==r){if(_[e])throw Error(a(102,e));_[e]=r,n=!0}}n&&b()}var C=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),P=null,I=null,O=null;function A(t){if(t=m(t)){if("function"!=typeof P)throw Error(a(280));var e=t.stateNode;e&&(e=d(e),P(t.stateNode,t.type,e))}}function z(t){I?O?O.push(t):O=[t]:I=t}function M(){if(I){var t=I,e=O;if(O=I=null,A(t),e)for(t=0;t<e.length;t++)A(e[t])}}function R(t,e){return t(e)}function D(t,e,n,r,o){return t(e,n,r,o)}function L(){}var j=R,B=!1,N=!1;function F(){null===I&&null===O||(L(),M())}function U(t,e,n){if(N)return t(e,n);N=!0;try{return j(t,e,n)}finally{N=!1,F()}}var V=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,q=Object.prototype.hasOwnProperty,G={},W={};function Z(t,e,n,r,o,i){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i}var H={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){H[t]=new Z(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];H[e]=new Z(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){H[t]=new Z(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){H[t]=new Z(t,2,!1,t,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){H[t]=new Z(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){H[t]=new Z(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){H[t]=new Z(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){H[t]=new Z(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){H[t]=new Z(t,5,!1,t.toLowerCase(),null,!1)}));var X=/[\-:]([a-z])/g;function $(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(X,$);H[e]=new Z(e,1,!1,t,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(X,$);H[e]=new Z(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(X,$);H[e]=new Z(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){H[t]=new Z(t,1,!1,t.toLowerCase(),null,!1)})),H.xlinkHref=new Z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){H[t]=new Z(t,1,!1,t.toLowerCase(),null,!0)}));var K=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(t,e,n,r){var o=H.hasOwnProperty(e)?H[e]:null;(null!==o?0===o.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(t,e,n,r){if(null==e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,o,r)&&(n=null),r||null===o?function(t){return!!q.call(W,t)||!q.call(G,t)&&(V.test(t)?W[t]=!0:(G[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):o.mustUseProperty?t[o.propertyName]=null===n?3!==o.type&&"":n:(e=o.attributeName,r=o.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}K.hasOwnProperty("ReactCurrentDispatcher")||(K.ReactCurrentDispatcher={current:null}),K.hasOwnProperty("ReactCurrentBatchConfig")||(K.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Q="function"==typeof Symbol&&Symbol.for,tt=Q?Symbol.for("react.element"):60103,et=Q?Symbol.for("react.portal"):60106,nt=Q?Symbol.for("react.fragment"):60107,rt=Q?Symbol.for("react.strict_mode"):60108,ot=Q?Symbol.for("react.profiler"):60114,it=Q?Symbol.for("react.provider"):60109,at=Q?Symbol.for("react.context"):60110,st=Q?Symbol.for("react.concurrent_mode"):60111,lt=Q?Symbol.for("react.forward_ref"):60112,ut=Q?Symbol.for("react.suspense"):60113,ct=Q?Symbol.for("react.suspense_list"):60120,pt=Q?Symbol.for("react.memo"):60115,ft=Q?Symbol.for("react.lazy"):60116,ht=Q?Symbol.for("react.block"):60121,dt="function"==typeof Symbol&&Symbol.iterator;function mt(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=dt&&t[dt]||t["@@iterator"])?t:null}function yt(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case nt:return"Fragment";case et:return"Portal";case ot:return"Profiler";case rt:return"StrictMode";case ut:return"Suspense";case ct:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case at:return"Context.Consumer";case it:return"Context.Provider";case lt:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case pt:return yt(t.type);case ht:return yt(t.render);case ft:if(t=1===t._status?t._result:null)return yt(t)}return null}function gt(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break t;default:var r=t._debugOwner,o=t._debugSource,i=yt(t.type);n=null,r&&(n=yt(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(J,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}e+=n,t=t.return}while(t);return e}function vt(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function _t(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function bt(t){t._valueTracker||(t._valueTracker=function(t){var e=_t(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(t){r=""+t,i.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function xt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=_t(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function wt(t,e){var n=e.checked;return o({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function Et(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=vt(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function St(t,e){null!=(e=e.checked)&&Y(t,"checked",e,!1)}function kt(t,e){St(t,e);var n=vt(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?Ct(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ct(t,e.type,vt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function Tt(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function Ct(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function Pt(t,e){return t=o({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function It(t,e,n,r){if(t=t.options,e){e={};for(var o=0;o<n.length;o++)e["$"+n[o]]=!0;for(n=0;n<t.length;n++)o=e.hasOwnProperty("$"+t[n].value),t[n].selected!==o&&(t[n].selected=o),o&&r&&(t[n].defaultSelected=!0)}else{for(n=""+vt(n),e=null,o=0;o<t.length;o++){if(t[o].value===n)return t[o].selected=!0,void(r&&(t[o].defaultSelected=!0));null!==e||t[o].disabled||(e=t[o])}null!==e&&(e.selected=!0)}}function Ot(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(a(91));return o({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function At(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:vt(n)}}function zt(t,e){var n=vt(e.value),r=vt(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function Mt(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var Rt="http://www.w3.org/1999/xhtml",Dt="http://www.w3.org/2000/svg";function Lt(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function jt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Lt(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var Bt,Nt=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,o){MSApp.execUnsafeLocalFunction((function(){return t(e,n)}))}:t}((function(t,e){if(t.namespaceURI!==Dt||"innerHTML"in t)t.innerHTML=e;else{for((Bt=Bt||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Bt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}));function Ft(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function Ut(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Vt={animationend:Ut("Animation","AnimationEnd"),animationiteration:Ut("Animation","AnimationIteration"),animationstart:Ut("Animation","AnimationStart"),transitionend:Ut("Transition","TransitionEnd")},qt={},Gt={};function Wt(t){if(qt[t])return qt[t];if(!Vt[t])return t;var e,n=Vt[t];for(e in n)if(n.hasOwnProperty(e)&&e in Gt)return qt[t]=n[e];return t}C&&(Gt=document.createElement("div").style,"AnimationEvent"in window||(delete Vt.animationend.animation,delete Vt.animationiteration.animation,delete Vt.animationstart.animation),"TransitionEvent"in window||delete Vt.transitionend.transition);var Zt=Wt("animationend"),Ht=Wt("animationiteration"),Xt=Wt("animationstart"),$t=Wt("transitionend"),Kt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Yt=new("function"==typeof WeakMap?WeakMap:Map);function Jt(t){var e=Yt.get(t);return void 0===e&&(e=new Map,Yt.set(t,e)),e}function Qt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!=(1026&(e=t).effectTag)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function te(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function ee(t){if(Qt(t)!==t)throw Error(a(188))}function ne(t){if(!(t=function(t){var e=t.alternate;if(!e){if(null===(e=Qt(t)))throw Error(a(188));return e!==t?null:t}for(var n=t,r=e;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return ee(o),t;if(i===r)return ee(o),e;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?t:e}(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function re(t,e){if(null==e)throw Error(a(30));return null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function oe(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var ie=null;function ae(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var r=0;r<e.length&&!t.isPropagationStopped();r++)g(t,e[r],n[r]);else e&&g(t,e,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function se(t){if(null!==t&&(ie=re(ie,t)),t=ie,ie=null,t){if(oe(t,ae),ie)throw Error(a(95));if(c)throw t=p,c=!1,p=null,t}}function le(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function ue(t){if(!C)return!1;var e=(t="on"+t)in document;return e||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"==typeof e[t]),e}var ce=[];function pe(t){t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>ce.length&&ce.push(t)}function fe(t,e,n,r){if(ce.length){var o=ce.pop();return o.topLevelType=t,o.eventSystemFlags=r,o.nativeEvent=e,o.targetInst=n,o}return{topLevelType:t,eventSystemFlags:r,nativeEvent:e,targetInst:n,ancestors:[]}}function he(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(e=n.tag)&&6!==e||t.ancestors.push(n),n=Cn(r)}while(n);for(n=0;n<t.ancestors.length;n++){e=t.ancestors[n];var o=le(t.nativeEvent);r=t.topLevelType;var i=t.nativeEvent,a=t.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<w.length;l++){var u=w[l];u&&(u=u.extractEvents(r,e,i,o,a))&&(s=re(s,u))}se(s)}}function de(t,e,n){if(!n.has(t)){switch(t){case"scroll":Xe(e,"scroll",!0);break;case"focus":case"blur":Xe(e,"focus",!0),Xe(e,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ue(t)&&Xe(e,t,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Kt.indexOf(t)&&He(t,e)}n.set(t,null)}}var me,ye,ge,ve=!1,_e=[],be=null,xe=null,we=null,Ee=new Map,Se=new Map,ke=[],Te="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ce="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Pe(t,e,n,r,o){return{blockedOn:t,topLevelType:e,eventSystemFlags:32|n,nativeEvent:o,container:r}}function Ie(t,e){switch(t){case"focus":case"blur":be=null;break;case"dragenter":case"dragleave":xe=null;break;case"mouseover":case"mouseout":we=null;break;case"pointerover":case"pointerout":Ee.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Se.delete(e.pointerId)}}function Oe(t,e,n,r,o,i){return null===t||t.nativeEvent!==i?(t=Pe(e,n,r,o,i),null!==e&&(null!==(e=Pn(e))&&ye(e)),t):(t.eventSystemFlags|=r,t)}function Ae(t){var e=Cn(t.target);if(null!==e){var n=Qt(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=te(n)))return t.blockedOn=e,void i.unstable_runWithPriority(t.priority,(function(){ge(n)}))}else if(3===e&&n.stateNode.hydrate)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function ze(t){if(null!==t.blockedOn)return!1;var e=Je(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);if(null!==e){var n=Pn(e);return null!==n&&ye(n),t.blockedOn=e,!1}return!0}function Me(t,e,n){ze(t)&&n.delete(e)}function Re(){for(ve=!1;0<_e.length;){var t=_e[0];if(null!==t.blockedOn){null!==(t=Pn(t.blockedOn))&&me(t);break}var e=Je(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);null!==e?t.blockedOn=e:_e.shift()}null!==be&&ze(be)&&(be=null),null!==xe&&ze(xe)&&(xe=null),null!==we&&ze(we)&&(we=null),Ee.forEach(Me),Se.forEach(Me)}function De(t,e){t.blockedOn===e&&(t.blockedOn=null,ve||(ve=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Re)))}function Le(t){function e(e){return De(e,t)}if(0<_e.length){De(_e[0],t);for(var n=1;n<_e.length;n++){var r=_e[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==be&&De(be,t),null!==xe&&De(xe,t),null!==we&&De(we,t),Ee.forEach(e),Se.forEach(e),n=0;n<ke.length;n++)(r=ke[n]).blockedOn===t&&(r.blockedOn=null);for(;0<ke.length&&null===(n=ke[0]).blockedOn;)Ae(n),null===n.blockedOn&&ke.shift()}var je={},Be=new Map,Ne=new Map,Fe=["abort","abort",Zt,"animationEnd",Ht,"animationIteration",Xt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",$t,"transitionEnd","waiting","waiting"];function Ue(t,e){for(var n=0;n<t.length;n+=2){var r=t[n],o=t[n+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:e},Ne.set(r,e),Be.set(r,i),je[o]=i}}Ue("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ue("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ue(Fe,2);for(var Ve="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),qe=0;qe<Ve.length;qe++)Ne.set(Ve[qe],0);var Ge=i.unstable_UserBlockingPriority,We=i.unstable_runWithPriority,Ze=!0;function He(t,e){Xe(e,t,!1)}function Xe(t,e,n){var r=Ne.get(e);switch(void 0===r?2:r){case 0:r=$e.bind(null,e,1,t);break;case 1:r=Ke.bind(null,e,1,t);break;default:r=Ye.bind(null,e,1,t)}n?t.addEventListener(e,r,!0):t.addEventListener(e,r,!1)}function $e(t,e,n,r){B||L();var o=Ye,i=B;B=!0;try{D(o,t,e,n,r)}finally{(B=i)||F()}}function Ke(t,e,n,r){We(Ge,Ye.bind(null,t,e,n,r))}function Ye(t,e,n,r){if(Ze)if(0<_e.length&&-1<Te.indexOf(t))t=Pe(null,t,e,n,r),_e.push(t);else{var o=Je(t,e,n,r);if(null===o)Ie(t,r);else if(-1<Te.indexOf(t))t=Pe(o,t,e,n,r),_e.push(t);else if(!function(t,e,n,r,o){switch(e){case"focus":return be=Oe(be,t,e,n,r,o),!0;case"dragenter":return xe=Oe(xe,t,e,n,r,o),!0;case"mouseover":return we=Oe(we,t,e,n,r,o),!0;case"pointerover":var i=o.pointerId;return Ee.set(i,Oe(Ee.get(i)||null,t,e,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Se.set(i,Oe(Se.get(i)||null,t,e,n,r,o)),!0}return!1}(o,t,e,n,r)){Ie(t,r),t=fe(t,r,null,e);try{U(he,t)}finally{pe(t)}}}}function Je(t,e,n,r){if(null!==(n=Cn(n=le(r)))){var o=Qt(n);if(null===o)n=null;else{var i=o.tag;if(13===i){if(null!==(n=te(o)))return n;n=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}t=fe(t,r,n,e);try{U(he,t)}finally{pe(t)}return null}var Qe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tn=["Webkit","ms","Moz","O"];function en(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||Qe.hasOwnProperty(t)&&Qe[t]?(""+e).trim():e+"px"}function nn(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=en(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,o):t[n]=o}}Object.keys(Qe).forEach((function(t){tn.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Qe[e]=Qe[t]}))}));var rn=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(t,e){if(e){if(rn[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(a(137,t,""));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(a(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(a(62,""))}}function an(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sn=Rt;function ln(t,e){var n=Jt(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=k[e];for(var r=0;r<e.length;r++)de(e[r],t,n)}function un(){}function cn(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function pn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function fn(t,e){var n,r=pn(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=pn(r)}}function hn(){for(var t=window,e=cn();e instanceof t.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(t){n=!1}if(!n)break;e=cn((t=e.contentWindow).document)}return e}function dn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var mn=null,yn=null;function gn(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function vn(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var _n="function"==typeof setTimeout?setTimeout:void 0,bn="function"==typeof clearTimeout?clearTimeout:void 0;function xn(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function wn(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||"$!"===n||"$?"===n){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}var En=Math.random().toString(36).slice(2),Sn="__reactInternalInstance$"+En,kn="__reactEventHandlers$"+En,Tn="__reactContainere$"+En;function Cn(t){var e=t[Sn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Tn]||n[Sn]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=wn(t);null!==t;){if(n=t[Sn])return n;t=wn(t)}return e}n=(t=n).parentNode}return null}function Pn(t){return!(t=t[Sn]||t[Tn])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function In(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function On(t){return t[kn]||null}function An(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function zn(t,e){var n=t.stateNode;if(!n)return null;var r=d(n);if(!r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!=typeof n)throw Error(a(231,e,typeof n));return n}
vendor: 3,016 bytes, line 46
46function Mn(t,e,n){(e=zn(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=re(n._dispatchListeners,e),n._dispatchInstances=re(n._dispatchInstances,t))}function Rn(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=An(e);for(e=n.length;0<e--;)Mn(n[e],"captured",t);for(e=0;e<n.length;e++)Mn(n[e],"bubbled",t)}}function Dn(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=zn(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=re(n._dispatchListeners,e),n._dispatchInstances=re(n._dispatchInstances,t))}function Ln(t){t&&t.dispatchConfig.registrationName&&Dn(t._targetInst,null,t)}function jn(t){oe(t,Rn)}var Bn=null,Nn=null,Fn=null;function Un(){if(Fn)return Fn;var t,e,n=Nn,r=n.length,o="value"in Bn?Bn.value:Bn.textContent,i=o.length;for(t=0;t<r&&n[t]===o[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===o[i-e];e++);return Fn=o.slice(t,1<e?1-e:void 0)}function Vn(){return!0}function qn(){return!1}function Gn(t,e,n,r){for(var o in this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface)t.hasOwnProperty(o)&&((e=t[o])?this[o]=e(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Vn:qn,this.isPropagationStopped=qn,this}function Wn(t,e,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,t,e,n,r),o}return new this(t,e,n,r)}function Zn(t){if(!(t instanceof this))throw Error(a(279));t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function Hn(t){t.eventPool=[],t.getPooled=Wn,t.release=Zn}o(Gn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=Vn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=Vn)},persist:function(){this.isPersistent=Vn},isPersistent:qn,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=qn,this._dispatchInstances=this._dispatchListeners=null}}),Gn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Gn.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var i=new e;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,t),n.extend=r.extend,Hn(n),n},Hn(Gn);var Xn=Gn.extend({data:null}),$n=Gn.extend({data:null}),Kn=[9,13,27,32],Yn=C&&"CompositionEvent"in window,Jn=null;C&&"documentMode"in document&&(Jn=document.documentMode);var Qn=C&&"TextEvent"in window&&!Jn,tr=C&&(!Yn||Jn&&8<Jn&&11>
vendor: 9,384 bytes, line 46
46=Jn),er=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function or(t,e){switch(t){case"keyup":return-1!==Kn.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ir(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var ar=!1;var sr={eventTypes:nr,extractEvents:function(t,e,n,r){var o;if(Yn)t:{switch(t){case"compositionstart":var i=nr.compositionStart;break t;case"compositionend":i=nr.compositionEnd;break t;case"compositionupdate":i=nr.compositionUpdate;break t}i=void 0}else ar?or(t,n)&&(i=nr.compositionEnd):"keydown"===t&&229===n.keyCode&&(i=nr.compositionStart);return i?(tr&&"ko"!==n.locale&&(ar||i!==nr.compositionStart?i===nr.compositionEnd&&ar&&(o=Un()):(Nn="value"in(Bn=r)?Bn.value:Bn.textContent,ar=!0)),i=Xn.getPooled(i,e,n,r),o?i.data=o:null!==(o=ir(n))&&(i.data=o),jn(i),o=i):o=null,(t=Qn?function(t,e){switch(t){case"compositionend":return ir(e);case"keypress":return 32!==e.which?null:(rr=!0,er);case"textInput":return(t=e.data)===er&&rr?null:t;default:return null}}(t,n):function(t,e){if(ar)return"compositionend"===t||!Yn&&or(t,e)?(t=Un(),Fn=Nn=Bn=null,ar=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return tr&&"ko"!==e.locale?null:e.data;default:return null}}(t,n))?((e=$n.getPooled(nr.beforeInput,e,n,r)).data=t,jn(e)):e=null,null===o?e:null===e?o:[o,e]}},lr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ur(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!lr[t.type]:"textarea"===e}var cr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function pr(t,e,n){return(t=Gn.getPooled(cr.change,t,e,n)).type="change",z(n),jn(t),t}var fr=null,hr=null;function dr(t){se(t)}function mr(t){if(xt(In(t)))return t}function yr(t,e){if("change"===t)return e}var gr=!1;function vr(){fr&&(fr.detachEvent("onpropertychange",_r),hr=fr=null)}function _r(t){if("value"===t.propertyName&&mr(hr))if(t=pr(hr,t,le(t)),B)se(t);else{B=!0;try{R(dr,t)}finally{B=!1,F()}}}function br(t,e,n){"focus"===t?(vr(),hr=n,(fr=e).attachEvent("onpropertychange",_r)):"blur"===t&&vr()}function xr(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return mr(hr)}function wr(t,e){if("click"===t)return mr(e)}function Er(t,e){if("input"===t||"change"===t)return mr(e)}C&&(gr=ue("input")&&(!document.documentMode||9<document.documentMode));var Sr={eventTypes:cr,_isInputEventSupported:gr,extractEvents:function(t,e,n,r){var o=e?In(e):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=yr;else if(ur(o))if(gr)a=Er;else{a=xr;var s=br}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=wr);if(a&&(a=a(t,e)))return pr(a,n,r);s&&s(t,o,e),"blur"===t&&(t=o._wrapperState)&&t.controlled&&"number"===o.type&&Ct(o,"number",o.value)}},kr=Gn.extend({view:null,detail:null}),Tr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cr(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Tr[t])&&!!e[t]}function Pr(){return Cr}var Ir=0,Or=0,Ar=!1,zr=!1,Mr=kr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Pr,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=Ir;return Ir=t.screenX,Ar?"mousemove"===t.type?t.screenX-e:0:(Ar=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=Or;return Or=t.screenY,zr?"mousemove"===t.type?t.screenY-e:0:(zr=!0,0)}}),Rr=Mr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Dr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Lr={eventTypes:Dr,extractEvents:function(t,e,n,r,o){var i="mouseover"===t||"pointerover"===t,a="mouseout"===t||"pointerout"===t;if(i&&0==(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=e,null!==(e=(e=n.relatedTarget||n.toElement)?Cn(e):null)&&(e!==Qt(e)||5!==e.tag&&6!==e.tag)&&(e=null)):a=null;if(a===e)return null;if("mouseout"===t||"mouseover"===t)var s=Mr,l=Dr.mouseLeave,u=Dr.mouseEnter,c="mouse";else"pointerout"!==t&&"pointerover"!==t||(s=Rr,l=Dr.pointerLeave,u=Dr.pointerEnter,c="pointer");if(t=null==a?i:In(a),i=null==e?i:In(e),(l=s.getPooled(l,a,n,r)).type=c+"leave",l.target=t,l.relatedTarget=i,(n=s.getPooled(u,e,n,r)).type=c+"enter",n.target=i,n.relatedTarget=t,c=e,(r=a)&&c)t:{for(u=c,a=0,t=s=r;t;t=An(t))a++;for(t=0,e=u;e;e=An(e))t++;for(;0<a-t;)s=An(s),a--;for(;0<t-a;)u=An(u),t--;for(;a--;){if(s===u||s===u.alternate)break t;s=An(s),u=An(u)}s=null}else s=null;for(u=s,s=[];r&&r!==u&&(null===(a=r.alternate)||a!==u);)s.push(r),r=An(r);for(r=[];c&&c!==u&&(null===(a=c.alternate)||a!==u);)r.push(c),c=An(c);for(c=0;c<s.length;c++)Dn(s[c],"bubbled",l);for(c=r.length;0<c--;)Dn(r[c],"captured",n);return 0==(64&o)?[l]:[l,n]}};var jr="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},Br=Object.prototype.hasOwnProperty;function Nr(t,e){if(jr(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Br.call(e,n[r])||!jr(t[n[r]],e[n[r]]))return!1;return!0}var Fr=C&&"documentMode"in document&&11>=document.documentMode,Ur={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Vr=null,qr=null,Gr=null,Wr=!1;function Zr(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Wr||null==Vr||Vr!==cn(n)?null:("selectionStart"in(n=Vr)&&dn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Gr&&Nr(Gr,n)?null:(Gr=n,(t=Gn.getPooled(Ur.select,qr,t,e)).type="select",t.target=Vr,jn(t),t))}var Hr={eventTypes:Ur,extractEvents:function(t,e,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){t:{o=Jt(o),i=k.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break t}o=!0}i=!o}if(i)return null;switch(o=e?In(e):window,t){case"focus":(ur(o)||"true"===o.contentEditable)&&(Vr=o,qr=e,Gr=null);break;case"blur":Gr=qr=Vr=null;break;case"mousedown":Wr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Wr=!1,Zr(n,r);case"selectionchange":if(Fr)break;case"keydown":case"keyup":return Zr(n,r)}return null}},Xr=Gn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),$r=Gn.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Kr=kr.extend({relatedTarget:null});function Yr(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var Jr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},to=kr.extend({key:function(t){if(t.key){var e=Jr[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=Yr(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"ke
46yup"===t.type?Qr[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Pr,charCode:function(t){return"keypress"===t.type?Yr(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?Yr(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),eo=Mr.extend({dataTransfer:null}),no=kr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Pr}),ro=Gn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),oo=Mr.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),io={eventTypes:je,extractEvents:function(t,e,n,r){var o=Be.get(t);if(!o)return null;switch(t){case"keypress":if(0===Yr(n))return null;case"keydown":case"keyup":t=to;break;case"blur":case"focus":t=Kr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=Mr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=eo;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=no;break;case Zt:case Ht:case Xt:t=Xr;break;case $t:t=ro;break;case"scroll":t=kr;break;case"wheel":t=oo;break;case"copy":case"cut":case"paste":t=$r;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=Rr;break;default:t=Gn}return jn(e=t.getPooled(o,e,n,r)),e}};if(v)throw Error(a(101));v=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),b(),d=On,m=Pn,y=In,T({SimpleEventPlugin:io,EnterLeaveEventPlugin:Lr,ChangeEventPlugin:Sr,SelectEventPlugin:Hr,BeforeInputEventPlugin:sr});var ao=[],so=-1;function lo(t){0>so||(t.current=ao[so],ao[so]=null,so--)}function uo(t,e){so++,ao[so]=t.current,t.current=e}var co={},po={current:co},fo={current:!1},ho=co;function mo(t,e){var n=t.type.contextTypes;if(!n)return co;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=e[o];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function yo(t){return null!=(t=t.childContextTypes)}function go(){lo(fo),lo(po)}function vo(t,e,n){if(po.current!==co)throw Error(a(168));uo(po,e),uo(fo,n)}function _o(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(a(108,yt(e)||"Unknown",i));return o({},n,{},r)}function bo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||co,ho=po.current,uo(po,t),uo(fo,fo.current),!0}function xo(t,e,n){var r=t.stateNode;if(!r)throw Error(a(169));n?(t=_o(t,e,ho),r.__reactInternalMemoizedMergedChildContext=t,lo(fo),lo(po),uo(po,t)):lo(fo),uo(fo,n)}var wo=i.unstable_runWithPriority,Eo=i.unstable_scheduleCallback,So=i.unstable_cancelCallback,ko=i.unstable_requestPaint,To=i.unstable_now,Co=i.unstable_getCurrentPriorityLevel,Po=i.unstable_ImmediatePriority,Io=i.unstable_UserBlockingPriority,Oo=i.unstable_NormalPriority,Ao=i.unstable_LowPriority,zo=i.unstable_IdlePriority,Mo={},Ro=i.unstable_shouldYield,Do=void 0!==ko?ko:function(){},Lo=null,jo=null,Bo=!1,No=To(),Fo=1e4>No?To:function(){return To()-No};function Uo(){switch(Co()){case Po:return 99;case Io:return 98;case Oo:return 97;case Ao:return 96;case zo:return 95;default:throw Error(a(332))}}function Vo(t){switch(t){case 99:return Po;case 98:return Io;case 97:return Oo;case 96:return Ao;case 95:return zo;default:throw Error(a(332))}}function qo(t,e){return t=Vo(t),wo(t,e)}function Go(t,e,n){return t=Vo(t),Eo(t,e,n)}function Wo(t){return null===Lo?(Lo=[t],jo=Eo(Po,Ho)):Lo.push(t),Mo}function Zo(){if(null!==jo){var t=jo;jo=null,So(t)}Ho()}function Ho(){if(!Bo&&null!==Lo){Bo=!0;var t=0;try{var e=Lo;qo(99,(function(){for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}})),Lo=null}catch(e){throw null!==Lo&&(Lo=Lo.slice(t+1)),Eo(Po,Zo),e}finally{Bo=!1}}}function Xo(t,e,n){return 1073741821-(1+((1073741821-t+e/10)/(n/=10)|0))*n}function $o(t,e){if(t&&t.defaultProps)for(var n in e=o({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}var Ko={current:null},Yo=null,Jo=null,Qo=null;function ti(){Qo=Jo=Yo=null}function ei(t){var e=Ko.current;
vendor: 80,371 bytes, lines 46-62
46lo(Ko),t.type._context._currentValue=e}function ni(t,e){for(;null!==t;){var n=t.alternate;if(t.childExpirationTime<e)t.childExpirationTime=e,null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e);else{if(!(null!==n&&n.childExpirationTime<e))break;n.childExpirationTime=e}t=t.return}}function ri(t,e){Yo=t,Qo=Jo=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(t.expirationTime>=e&&(Oa=!0),t.firstContext=null)}function oi(t,e){if(Qo!==t&&!1!==e&&0!==e)if("number"==typeof e&&1073741823!==e||(Qo=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Jo){if(null===Yo)throw Error(a(308));Jo=e,Yo.dependencies={expirationTime:0,firstContext:e,responders:null}}else Jo=Jo.next=e;return t._currentValue}var ii=!1;function ai(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function si(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function li(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function ui(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function ci(t,e){var n=t.alternate;null!==n&&si(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function pi(t,e,n,r){var i=t.updateQueue;ii=!1;var a=i.baseQueue,s=i.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,i.shared.pending=null,null!==(l=t.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=s))}if(null!==a){l=a.next;var u=i.baseState,c=0,p=null,f=null,h=null;if(null!==l)for(var d=l;;){if((s=d.expirationTime)<r){var m={expirationTime:d.expirationTime,suspenseConfig:d.suspenseConfig,tag:d.tag,payload:d.payload,callback:d.callback,next:null};null===h?(f=h=m,p=u):h=h.next=m,s>c&&(c=s)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:d.suspenseConfig,tag:d.tag,payload:d.payload,callback:d.callback,next:null}),il(s,d.suspenseConfig);t:{var y=t,g=d;switch(s=e,m=n,g.tag){case 1:if("function"==typeof(y=g.payload)){u=y.call(m,u,s);break t}u=y;break t;case 3:y.effectTag=-4097&y.effectTag|64;case 0:if(null==(s="function"==typeof(y=g.payload)?y.call(m,u,s):y))break t;u=o({},u,s);break t;case 2:ii=!0}}null!==d.callback&&(t.effectTag|=32,null===(s=i.effects)?i.effects=[d]:s.push(d))}if(null===(d=d.next)||d===l){if(null===(s=i.shared.pending))break;d=a.next=s.next,s.next=l,i.baseQueue=a=s,i.shared.pending=null}}null===h?p=u:h.next=f,i.baseState=p,i.baseQueue=h,al(c),t.expirationTime=c,t.memoizedState=u}}function fi(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var r=t[e],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!=typeof r)throw Error(a(191,r));r.call(o)}}}var hi=K.ReactCurrentBatchConfig,di=(new r.Component).refs;function mi(t,e,n,r){n=null==(n=n(r,e=t.memoizedState))?e:o({},e,n),t.memoizedState=n,0===t.expirationTime&&(t.updateQueue.baseState=n)}var yi={isMounted:function(t){return!!(t=t._reactInternalFiber)&&Qt(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=Zs(),o=hi.suspense;(o=li(r=Hs(r,t,o),o)).payload=e,null!=n&&(o.callback=n),ui(t,o),Xs(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=Zs(),o=hi.suspense;(o=li(r=Hs(r,t,o),o)).tag=1,o.payload=e,null!=n&&(o.callback=n),ui(t,o),Xs(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=Zs(),r=hi.suspense;(r=li(n=Hs(n,t,r),r)).tag=2,null!=e&&(r.callback=e),ui(t,r),Xs(t,n)}};function gi(t,e,n,r,o,i,a){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,i,a):!e.prototype||!e.prototype.isPureReactComponent||(!Nr(n,r)||!Nr(o,i))}function vi(t,e,n){var r=!1,o=co,i=e.contextType;return"object"==typeof i&&null!==i?i=oi(i):(o=yo(e)?ho:po.current,i=(r=null!=(r=e.contextTypes))?mo(t,o):co),e=new e(n,i),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=yi,t.stateNode=e,e._reactInternalFiber=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=i),e}function _i(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&yi.enqueueReplaceState(e,e.state,null)}function bi(t,e,n,r){var o=t.stateNode;o.props=n,o.state=t.memoizedState,o.refs=di,ai(t);var i=e.contextType;"object"==typeof i&&null!==i?o.context=oi(i):(i=yo(e)?ho:po.current,o.context=mo(t,i)),pi(t,n,o,r),o.state=t.memoizedState,"function"==typeof(i=e.getDerivedStateFromProps)&&(mi(t,e,i,n),o.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(e=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),e!==o.state&&yi.enqueueReplaceState(o,o.state,null),pi(t,n,o,r),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.effectTag|=4)}var xi=Array.isArray;function wi(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,t));var o=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===o?e.ref:((e=function(t){var e=r.refs;e===di&&(e=r.refs={}),null===t?delete e[o]:e[o]=t})._stringRef=o,e)}if("string"!=typeof t)throw Error(a(284));if(!n._owner)throw Error(a(290,t))}return t}function Ei(t,e){if("textarea"!==t.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,""))}function Si(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(t,e){return(t=Tl(t,e)).index=0,t.sibling=null,t}function i(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.effectTag=2,n):r:(e.effectTag=2,n):n}function s(e){return t&&null===e.alternate&&(e.effectTag=2),e}function l(t,e,n,r){return null===e||6!==e.tag?((e=Il(n,t.mode,r)).return=t,e):((e=o(e,n)).return=t,e)}function u(t,e,n,r){return null!==e&&e.elementType===n.type?((r=o(e,n.props)).ref=wi(t,e,n),r.return=t,r):((r=Cl(n.type,n.key,n.props,null,t.mode,r)).ref=wi(t,e,n),r.return=t,r)}function c(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Ol(n,t.mode,r)).return=t,e):((e=o(e,n.children||[])).return=t,e)}function p(t,e,n,r,i){return null===e||7!==e.tag?((e=Pl(n,t.mode,r,i)).return=t,e):((e=o(e,n)).return=t,e)}function f(t,e,n){if("string"==typeof e||"number"==typeof e)return(e=Il(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case tt:return(n=Cl(e.type,e.key,e.props,null,t.mode,n)).ref=wi(t,null,e),n.return=t,n;case et:return(e=Ol(e,t.mode,n)).return=t,e}if(xi(e)||mt(e))return(e=Pl(e,t.mode,n,null)).return=t,e;Ei(t,e)}return null}function h(t,e,n,r){var o=null!==e?e.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case tt:return n.key===o?n.type===nt?p(t,e,n.props.children,r,o):u(t,e,n,r):null;case et:return n.key===o?c(t,e,n,r):null}if(xi(n)||mt(n))return null!==o?null:p(t,e,n,r,null);Ei(t,n)}return null}function d(t,e,n,r,o){if("string"==typeof r||"number"==typeof r)return l(e,t=t.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case tt:return t=t.get(null===r.key?n:r.key)||null,r.type===nt?p(e,t,r.props.children,o,r.key):u(e,t,r,o);case et:return c(e,t=t.get(null===r.key?n:r.key)||null,r,o)}if(xi(r)||mt(r))return p(e,t=t.get(n)||null,r,o,null);Ei(e,r)}return null}function m(o,a,s,l){for(var u=null,c=null,p=a,m=a=0,y=null;null!==p&&m<s.length;m++){p.index>m?(y=p,p=null):y=p.sibling;var g=h(o,p,s[m],l);if(null===g){null===p&&(p=y);break}t&&p&&null===g.alternate&&e(o,p),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g,p=y}if(m===s.length)return n(o,p),u;if(null===p){for(;m<s.length;m++)null!==(p=f(o,s[m],l))&&(a=i(p,a,m),null===c?u=p:c.sibling=p,c=p);return u}for(p=r(o,p);m<s.length;m++)null!==(y=d(p,o,m,s[m],l))&&(t&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=i(y,a,m),null===c?u=y:c.sibling=y,c=y);return t&&p.forEach((function(t){return e(o,t)})),u}function y(o,s,l,u){var c=mt(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var p=c=null,m=s,y=s=0,g=null,v=l.next();null!==m&&!v.done;y++,v=l.next()){m.index>y?(g=m,m=null):g=m.sibling;var _=h(o,m,v.value,u);if(null===_){null===m&&(m=g);break}t&&m&&null===_.alternate&&e(o,m),s=i(_,s,y),null===p?c=_:p.sibling=_,p=_,m=g}if(v.done)return n(o,m),c;if(null===m){for(;!v.done;y++,v=l.next())null!==(v=f(o,v.value,u))&&(s=i(v,s,y),null===p?c=v:p.sibling=v,p=v);return c}for(m=r(o,m);!v.done;y++,v=l.next())null!==(v=d(m,o,y,v.value,u))&&(t&&null!==v.alternate&&m.delete(null===v.key?y:v.key),s=i(v,s,y),null===p?c=v:p.sibling=v,p=v);return t&&m.forEach((function(t){return e(o,t)})),c}return function(t,r,i,l){var u="object"==typeof i&&null!==i&&i.type===nt&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case tt:t:{for(c=i.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(i.type===nt){n(t,u.sibling),(r=o(u,i.props.children)).return=t,t=r;break t}break;default:if(u.elementType===i.type){n(t,u.sibling),(r=o(u,i.props)).ref=wi(t,u,i),r.return=t,t=r;break t}}n(t,u);break}e(t,u),u=u.sibling}i.type===nt?((r=Pl(i.props.children,t.mode,l,i.key)).return=t,t=r):((l=Cl(i.type,i.key,i.props,null,t.mode,l)).ref=wi(t,r,i),l.return=t,t=l)}return s(t);case et:t:{for(u=i.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(t,r.sibling),(r=o(r,i.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=Ol(i,t.mode,l)).return=t,t=r}return s(t)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(t,r.sibling),(r=o(r,i)).return=t,t=r):(n(t,r),(r=Il(i,t.mode,l)).return=t,t=r),s(t);if(xi(i))return m(t,r,i,l);if(mt(i))return y(t,r,i,l);if(c&&Ei(t,i),void 0===i&&!u)switch(t.tag){case 1:case 0:throw t=t.type,Error(a(152,t.displayName||t.name||"Component"))}return n(t,r)}}var ki=Si(!0),Ti=Si(!1),Ci={},Pi={current:Ci},Ii={current:Ci},Oi={current:Ci};function Ai(t){if(t===Ci)throw Error(a(174));return t}function zi(t,e){switch(uo(Oi,e),uo(Ii,t),uo(Pi,Ci),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:jt(null,"");break;default:e=jt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}lo(Pi),uo(Pi,e)}function Mi(){lo(Pi),lo(Ii),lo(Oi)}function Ri(t){Ai(Oi.current);var e=Ai(Pi.current),n=jt(e,t.type);e!==n&&(uo(Ii,t),uo(Pi,n))}function Di(t){Ii.current===t&&(lo(Pi),lo(Ii))}var Li={current:0};function ji(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!=(64&e.effectTag))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Bi(t,e){return{responder:t,props:e}}var Ni=K.ReactCurrentDispatcher,Fi=K.ReactCurrentBatchConfig,Ui=0,Vi=null,qi=null,Gi=null,Wi=!1;function Zi(){throw Error(a(321))}function Hi(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!jr(t[n],e[n]))return!1;return!0}function Xi(t,e,n,r,o,i){if(Ui=i,Vi=e,e.memoizedState=null,e.updateQueue=null,e.expirationTime=0,Ni.current=null===t||null===t.memoizedState?ga:va,t=n(r,o),e.expirationTime===Ui){i=0;do{if(e.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Gi=qi=null,e.updateQueue=null,Ni.current=_a,t=n(r,o)}while(e.expirationTime===Ui)}if(Ni.current=ya,e=null!==qi&&null!==qi.next,Ui=0,Gi=qi=Vi=null,Wi=!1,e)throw Error(a(300));return t}function $i(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Gi?Vi.memoizedState=Gi=t:Gi=Gi.next=t,Gi}function Ki(){if(null===qi){var t=Vi.alternate;t=null!==t?t.memoizedState:null}else t=qi.next;var e=null===Gi?Vi.memoizedState:Gi.next;if(null!==e)Gi=e,qi=t;else{if(null===t)throw Error(a(310));t={memoizedState:(qi=t).memoizedState,baseState:qi.baseState,baseQueue:qi.baseQueue,queue:qi.queue,next:null},null===Gi?Vi.memoizedState=Gi=t:Gi=Gi.next=t}return Gi}function Yi(t,e){return"function"==typeof e?e(t):e}function Ji(t){var e=Ki(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=qi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=i=null,u=o;do{var c=u.expirationTime;if(c<Ui){var p={expirationTime:u.expirationTime,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=p,i=r):l=l.next=p,c>Vi.expirationTime&&(Vi.expirationTime=c,al(c))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),il(c,u.suspenseConfig),r=u.eagerReducer===t?u.eagerState:t(r,u.action);u=u.next}while(null!==u&&u!==o);null===l?i=r:l.next=s,jr(r,e.memoizedState)||(Oa=!0),e.memoizedState=r,e.baseState=i,e.baseQueue=l,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function Qi(t){var e=Ki(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=n.dispatch,o=n.pending,i=e.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=t(i,s.action),s=s.next}while(s!==o);jr(i,e.memoizedState)||(Oa=!0),e.memoizedState=i,null===e.baseQueue&&(e.baseState=i),n.lastRenderedState=i}return[i,r]}function ta(t){var e=$i();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:t}).dispatch=ma.bind(null,Vi,t),[e.memoizedState,t]}function ea(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=Vi.updateQueue)?(e={lastEffect:null},Vi.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function na(){return Ki().memoizedState}function ra(t,e,n,r){var o=$i();Vi.effectTag|=t,o.memoizedState=ea(1|e,n,void 0,void 0===r?null:r)}function oa(t,e,n,r){var o=Ki();r=void 0===r?null:r;var i=void 0;if(null!==qi){var a=qi.memoizedState;if(i=a.destroy,null!==r&&Hi(r,a.deps))return void ea(e,n,i,r)}Vi.effectTag|=t,o.memoizedState=ea(1|e,n,i,r)}function ia(t,e){return ra(516,4,t,e)}function aa(t,e){return oa(516,4,t,e)}function sa(t,e){return oa(4,2,t,e)}function la(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function ua(t,e,n){return n=null!=n?n.concat([t]):null,oa(4,2,la.bind(null,e,t),n)}function ca(){}function pa(t,e){return $i().memoizedState=[t,void 0===e?null:e],t}function fa(t,e){var n=Ki();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Hi(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function ha(t,e){var n=Ki();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Hi(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function da(t,e,n){var r=Uo();qo(98>r?98:r,(function(){t(!0)})),qo(97<r?97:r,(function(){var r=Fi.suspense;Fi.suspense=void 0===e?null:e;try{t(!1),n()}finally{Fi.suspense=r}}))}function ma(t,e,n){var r=Zs(),o=hi.suspense;o={expirationTime:r=Hs(r,t,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var i=e.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),e.pending=o,i=t.alternate,t===Vi||null!==i&&i===Vi)Wi=!0,o.expirationTime=Ui,Vi.expirationTime=Ui;else{if(0===t.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=e.lastRenderedReducer))try{var a=e.lastRenderedState,s=i(a,n);if(o.eagerReducer=i,o.eagerState=s,jr(s,a))return}catch(t){}Xs(t,r)}}var ya={readContext:oi,useCallback:Zi,useContext:Zi,useEffect:Zi,useImperativeHandle:Zi,useLayoutEffect:Zi,useMemo:Zi,useReducer:Zi,useRef:Zi,useState:Zi,useDebugValue:Zi,useResponder:Zi,useDeferredValue:Zi,useTransition:Zi},ga={readContext:oi,useCallback:pa,useContext:oi,useEffect:ia,useImperativeHandle:function(t,e,n){return n=null!=n?n.concat([t]):null,ra(4,2,la.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ra(4,2,t,e)},useMemo:function(t,e){var n=$i();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=$i();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t=(t=r.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e}).dispatch=ma.bind(null,Vi,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},$i().memoizedState=t},useState:ta,useDebugValue:ca,useResponder:Bi,useDeferredValue:function(t,e){var n=ta(t),r=n[0],o=n[1];return ia((function(){var n=Fi.suspense;Fi.suspense=void 0===e?null:e;try{o(t)}finally{Fi.suspense=n}}),[t,e]),r},useTransition:function(t){var e=ta(!1),n=e[0];return e=e[1],[pa(da.bind(null,e,t),[e,t]),n]}},va={readContext:oi,useCallback:fa,useContext:oi,useEffect:aa,useImperativeHandle:ua,useLayoutEffect:sa,useMemo:ha,useReducer:Ji,useRef:na,useState:function(){return Ji(Yi)},useDebugValue:ca,useResponder:Bi,useDeferredValue:function(t,e){var n=Ji(Yi),r=n[0],o=n[1];return aa((function(){var n=Fi.suspense;Fi.suspense=void 0===e?null:e;try{o(t)}finally{Fi.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Ji(Yi),n=e[0];return e=e[1],[fa(da.bind(null,e,t),[e,t]),n]}},_a={readContext:oi,useCallback:fa,useContext:oi,useEffect:aa,useImperativeHandle:ua,useLayoutEffect:sa,useMemo:ha,useReducer:Qi,useRef:na,useState:function(){return Qi(Yi)},useDebugValue:ca,useResponder:Bi,useDeferredValue:function(t,e){var n=Qi(Yi),r=n[0],o=n[1];return aa((function(){var n=Fi.suspense;Fi.suspense=void 0===e?null:e;try{o(t)}finally{Fi.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Qi(Yi),n=e[0];return e=e[1],[fa(da.bind(null,e,t),[e,t]),n]}},ba=null,xa=null,wa=!1;function Ea(t,e){var n=Sl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function Sa(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);case 13:default:return!1}}function ka(t){if(wa){var e=xa;if(e){var n=e;if(!Sa(t,e)){if(!(e=xn(n.nextSibling))||!Sa(t,e))return t.effectTag=-1025&t.effectTag|2,wa=!1,void(ba=t);Ea(ba,n)}ba=t,xa=xn(e.firstChild)}else t.effectTag=-1025&t.effectTag|2,wa=!1,ba=t}}function Ta(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;ba=t}function Ca(t){if(t!==ba)return!1;if(!wa)return Ta(t),wa=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!vn(e,t.memoizedProps))for(e=xa;e;)Ea(t,e),e=xn(e.nextSibling);if(Ta(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(a(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){xa=xn(t.nextSibling);break t}e--}else"$"!==n&&"$!"!==n&&"$?"!==n||e++}t=t.nextSibling}xa=null}}else xa=ba?xn(t.stateNode.nextSibling):null;return!0}function Pa(){xa=ba=null,wa=!1}var Ia=K.ReactCurrentOwner,Oa=!1;function Aa(t,e,n,r){e.child=null===t?Ti(e,null,n,r):ki(e,t.child,n,r)}function za(t,e,n,r,o){n=n.render;var i=e.ref;return ri(e,o),r=Xi(t,e,n,r,i,o),null===t||Oa?(e.effectTag|=1,Aa(t,e,r,o),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=o&&(t.expirationTime=0),Xa(t,e,o))}function Ma(t,e,n,r,o,i){if(null===t){var a=n.type;return"function"!=typeof a||kl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Cl(n.type,null,r,null,e.mode,i)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,Ra(t,e,a,r,o,i))}return a=t.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Nr)(o,r)&&t.ref===e.ref)?Xa(t,e,i):(e.effectTag|=1,(t=Tl(a,r)).ref=e.ref,t.return=e,e.child=t)}function Ra(t,e,n,r,o,i){return null!==t&&Nr(t.memoizedProps,r)&&t.ref===e.ref&&(Oa=!1,o<i)?(e.expirationTime=t.expirationTime,Xa(t,e,i)):La(t,e,n,r,i)}function Da(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function La(t,e,n,r,o){var i=yo(n)?ho:po.current;return i=mo(e,i),ri(e,o),n=Xi(t,e,n,r,i,o),null===t||Oa?(e.effectTag|=1,Aa(t,e,n,o),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=o&&(t.expirationTime=0),Xa(t,e,o))}function ja(t,e,n,r,o){if(yo(n)){var i=!0;bo(e)}else i=!1;if(ri(e,o),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),vi(e,n,r),bi(e,n,r,o),r=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=oi(u):u=mo(e,u=yo(n)?ho:po.current);var c=n.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;p||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&_i(e,a,r,u),ii=!1;var f=e.memoizedState;a.state=f,pi(e,r,a,o),l=e.memoizedState,s!==r||f!==l||fo.current||ii?("function"==typeof c&&(mi(e,n,c,r),l=e.memoizedState),(s=ii||gi(e,n,s,r,f,l,u))?(p||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(e.effectTag|=4)):("function"==typeof a.componentDidMount&&(e.effectTag|=4),e.memoizedProps=r,e.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(e.effectTag|=4),r=!1)}else a=e.stateNode,si(t,e),s=e.memoizedProps,a.props=e.type===e.elementType?s:$o(e.type,s),l=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=oi(u):u=mo(e,u=yo(n)?ho:po.current),(p="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&_i(e,a,r,u),ii=!1,l=e.memoizedState,a.state=l,pi(e,r,a,o),f=e.memoizedState,s!==r||l!==f||fo.current||ii?("function"==typeof c&&(mi(e,n,c,r),f=e.memoizedState),(c=ii||gi(e,n,s,r,l,f,u))?(p||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,u)),"function"==typeof a.componentDidUpdate&&(e.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=256),e.memoizedProps=r,e.memoizedState=f),a.props=r,a.state=f,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=256),r=!1);return Ba(t,e,n,r,i,o)}function Ba(t,e,n,r,o,i){Da(t,e);var a=0!=(64&e.effectTag);if(!r&&!a)return o&&xo(e,n,!1),Xa(t,e,i);r=e.stateNode,Ia.current=e;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return e.effectTag|=1,null!==t&&a?(e.child=ki(e,t.child,null,i),e.child=ki(e,null,s,i)):Aa(t,e,s,i),e.memoizedState=r.state,o&&xo(e,n,!0),e.child}function Na(t){var e=t.stateNode;e.pendingContext?vo(0,e.pendingContext,e.pendingContext!==e.context):e.context&&vo(0,e.context,!1),zi(t,e.containerInfo)}var Fa,Ua,Va,qa={dehydrated:null,retryTime:0};function Ga(t,e,n){var r,o=e.mode,i=e.pendingProps,a=Li.current,s=!1;if((r=0!=(64&e.effectTag))||(r=0!=(2&a)&&(null===t||null!==t.memoizedState)),r?(s=!0,e.effectTag&=-65):null!==t&&null===t.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),uo(Li,1&a),null===t){if(void 0!==i.fallback&&ka(e),s){if(s=i.fallback,(i=Pl(null,o,0,null)).return=e,0==(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,i.child=t;null!==t;)t.return=i,t=t.sibling;return(n=Pl(s,o,n,null)).return=e,i.sibling=n,e.memoizedState=qa,e.child=i,n}return o=i.children,e.memoizedState=null,e.child=Ti(e,null,o,n)}if(null!==t.memoizedState){if(o=(t=t.child).sibling,s){if(i=i.fallback,(n=Tl(t,t.pendingProps)).return=e,0==(2&e.mode)&&(s=null!==e.memoizedState?e.child.child:e.child)!==t.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(o=Tl(o,i)).return=e,n.sibling=o,n.childExpirationTime=0,e.memoizedState=qa,e.child=n,o}return n=ki(e,t.child,i.children,n),e.memoizedState=null,e.child=n}if(t=t.child,s){if(s=i.fallback,(i=Pl(null,o,0,null)).return=e,i.child=t,null!==t&&(t.return=i),0==(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,i.child=t;null!==t;)t.return=i,t=t.sibling;return(n=Pl(s,o,n,null)).return=e,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,e.memoizedState=qa,e.child=i,n}return e.memoizedState=null,e.child=ki(e,t,i.children,n)}function Wa(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e),ni(t.return,e)}function Za(t,e,n,r,o,i){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function Ha(t,e,n){var r=e.pendingProps,o=r.revealOrder,i=r.tail;if(Aa(t,e,r.children,n),0!=(2&(r=Li.current)))r=1&r|2,e.effectTag|=64;else{if(null!==t&&0!=(64&t.effectTag))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&Wa(t,n);else if(19===t.tag)Wa(t,n);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(uo(Li,r),0==(2&e.mode))e.memoizedState=null;else switch(o){case"forwards":for(n=e.child,o=null;null!==n;)null!==(t=n.alternate)&&null===ji(t)&&(o=n),n=n.sibling;null===(n=o)?(o=e.child,e.child=null):(o=n.sibling,n.sibling=null),Za(e,!1,o,n,i,e.lastEffect);break;case"backwards":for(n=null,o=e.child,e.child=null;null!==o;){if(null!==(t=o.alternate)&&null===ji(t)){e.child=o;break}t=o.sibling,o.sibling=n,n=o,o=t}Za(e,!0,n,null,i,e.lastEffect);break;case"together":Za(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Xa(t,e,n){null!==t&&(e.dependencies=t.dependencies);var r=e.expirationTime;if(0!==r&&al(r),e.childExpirationTime<n)return null;if(null!==t&&e.child!==t.child)throw Error(a(153));if(null!==e.child){for(n=Tl(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Tl(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function $a(t,e){switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Ka(t,e,n){var r=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return yo(e.type)&&go(),null;case 3:return Mi(),lo(fo),lo(po),(n=e.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||!Ca(e)||(e.effectTag|=4),null;case 5:Di(e),n=Ai(Oi.current);var i=e.type;if(null!==t&&null!=e.stateNode)Ua(t,e,i,r,n),t.ref!==e.ref&&(e.effectTag|=128);else{if(!r){if(null===e.stateNode)throw Error(a(166));return null}if(t=Ai(Pi.current),Ca(e)){r=e.stateNode,i=e.type;var s=e.memoizedProps;switch(r[Sn]=e,r[kn]=s,i){case"iframe":case"object":case"embed":He("load",r);break;case"video":case"audio":for(t=0;t<Kt.length;t++)He(Kt[t],r);break;case"source":He("error",r);break;case"img":case"image":case"link":He("error",r),He("load",r);break;case"form":He("reset",r),He("submit",r);break;case"details":He("toggle",r);break;case"input":Et(r,s),He("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},He("invalid",r),ln(n,"onChange");break;case"textarea":At(r,s),He("invalid",r),ln(n,"onChange")}for(var l in on(i,s),t=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?r.textContent!==u&&(t=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(t=["children",""+u]):S.hasOwnProperty(l)&&null!=u&&ln(n,l)}switch(i){case"input":bt(r),Tt(r,s,!0);break;case"textarea":bt(r),Mt(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=un)}n=t,e.updateQueue=n,null!==n&&(e.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,t===sn&&(t=Lt(i)),t===sn?"script"===i?((t=l.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"==typeof r.is?t=l.createElement(i,{is:r.is}):(t=l.createElement(i),"select"===i&&(l=t,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):t=l.createElementNS(t,i),t[Sn]=e,t[kn]=r,Fa(t,e),e.stateNode=t,l=an(i,r),i){case"iframe":case"object":case"embed":He("load",t),u=r;break;case"video":case"audio":for(u=0;u<Kt.length;u++)He(Kt[u],t);u=r;break;case"source":He("error",t),u=r;break;case"img":case"image":case"link":He("error",t),He("load",t),u=r;break;case"form":He("reset",t),He("submit",t),u=r;break;case"details":He("toggle",t),u=r;break;case"input":Et(t,r),u=wt(t,r),He("invalid",t),ln(n,"onChange");break;case"option":u=Pt(t,r);break;case"select":t._wrapperState={wasMultiple:!!r.multiple},u=o({},r,{value:void 0}),He("invalid",t),ln(n,"onChange");break;case"textarea":At(t,r),u=Ot(t,r),He("invalid",t),ln(n,"onChange");break;default:u=r}on(i,u);var c=u;for(s in c)if(c.hasOwnProperty(s)){var p=c[s];"style"===s?nn(t,p):"dangerouslySetInnerHTML"===s?null!=(p=p?p.__html:void 0)&&Nt(t,p):"children"===s?"string"==typeof p?("textarea"!==i||""!==p)&&Ft(t,p):"number"==typeof p&&Ft(t,""+p):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?null!=p&&ln(n,s):null!=p&&Y(t,s,p,l))}switch(i){case"input":bt(t),Tt(t,r,!1);break;case"textarea":bt(t),Mt(t);break;case"option":null!=r.value&&t.setAttribute("value",""+vt(r.value));break;case"select":t.multiple=!!r.multiple,null!=(n=r.value)?It(t,!!r.multiple,n,!1):null!=r.defaultValue&&It(t,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof u.onClick&&(t.onclick=un)}gn(i,r)&&(e.effectTag|=4)}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)Va(0,e,t.memoizedProps,r);else{if("string"!=typeof r&&null===e.stateNode)throw Error(a(166));n=Ai(Oi.current),Ai(Pi.current),Ca(e)?(n=e.stateNode,r=e.memoizedProps,n[Sn]=e,n.nodeValue!==r&&(e.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Sn]=e,e.stateNode=n)}return null;case 13:return lo(Li),r=e.memoizedState,0!=(64&e.effectTag)?(e.expirationTime=n,e):(n=null!==r,r=!1,null===t?void 0!==e.memoizedProps.fallback&&Ca(e):(r=null!==(i=t.memoizedState),n||null===i||null!==(i=t.child.sibling)&&(null!==(s=e.firstEffect)?(e.firstEffect=i,i.nextEffect=s):(e.firstEffect=e.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!=(2&e.mode)&&(null===t&&!0!==e.memoizedProps.unstable_avoidThisFallback||0!=(1&Li.current)?Cs===bs&&(Cs=xs):(Cs!==bs&&Cs!==xs||(Cs=ws),0!==zs&&null!==Ss&&(Ml(Ss,Ts),Rl(Ss,zs)))),(n||r)&&(e.effectTag|=4),null);case 4:return Mi(),null;case 10:return ei(e),null;case 17:return yo(e.type)&&go(),null;case 19:if(lo(Li),null===(r=e.memoizedState))return null;if(i=0!=(64&e.effectTag),null===(s=r.rendering)){if(i)$a(r,!1);else if(Cs!==bs||null!==t&&0!=(64&t.effectTag))for(s=e.child;null!==s;){if(null!==(t=ji(s))){for(e.effectTag|=64,$a(r,!1),null!==(i=t.updateQueue)&&(e.updateQueue=i,e.effectTag|=4),null===r.lastEffect&&(e.firstEffect=null),e.lastEffect=r.lastEffect,r=e.child;null!==r;)s=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(t=i.alternate)?(i.childExpirationTime=0,i.expirationTime=s,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=t.childExpirationTime,i.expirationTime=t.expirationTime,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,s=t.dependencies,i.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return uo(Li,1&Li.current|2),e.child}s=s.sibling}}else{if(!i)if(null!==(t=ji(s))){if(e.effectTag|=64,i=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.effectTag|=4),$a(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(e=e.lastEffect=r.lastEffect)&&(e.nextEffect=null),null}else 2*Fo()-r.renderingStartTime>r.tailExpiration&&1<n&&(e.effectTag|=64,i=!0,$a(r,!1),e.expirationTime=e.childExpirationTime=n-1);r.isBackwards?(s.sibling=e.child,e.child=s):(null!==(n=r.last)?n.sibling=s:e.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Fo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=e.lastEffect,r.renderingStartTime=Fo(),n.sibling=null,e=Li.current,uo(Li,i?1&e|2:1&e),n):null}throw Error(a(156,e.tag))}function Ya(t){switch(t.tag){case 1:yo(t.type)&&go();var e=t.effectTag;return 4096&e?(t.effectTag=-4097&e|64,t):null;case 3:if(Mi(),lo(fo),lo(po),0!=(64&(e=t.effectTag)))throw Error(a(285));return t.effectTag=-4097&e|64,t;case 5:return Di(t),null;case 13:return lo(Li),4096&(e=t.effectTag)?(t.effectTag=-4097&e|64,t):null;case 19:return lo(Li),null;case 4:return Mi(),null;case 10:return ei(t),null;default:return null}}function Ja(t,e){return{value:t,source:e,stack:gt(e)}}Fa=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ua=function(t,e,n,r,i){var a=t.memoizedProps;if(a!==r){var s,l,u=e.stateNode;switch(Ai(Pi.current),t=null,n){case"input":a=wt(u,a),r=wt(u,r),t=[];break;case"option":a=Pt(u,a),r=Pt(u,r),t=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),t=[];break;case"textarea":a=Ot(u,a),r=Ot(u,r),t=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(u.onclick=un)}for(s in on(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in u=a[s])u.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?t||(t=[]):(t=t||[]).push(s,null));for(s in r){var c=r[s];if(u=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&c!==u&&(null!=c||null!=u))if("style"===s)if(u){for(l in u)!u.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&u[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(t||(t=[]),t.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(t=t||[]).push(s,c)):"children"===s?u===c||"string"!=typeof c&&"number"!=typeof c||(t=t||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(S.hasOwnProperty(s)?(null!=c&&ln(i,s),t||u===c||(t=[])):(t=t||[]).push(s,c))}n&&(t=t||[]).push("style",n),i=t,(e.updateQueue=i)&&(e.effectTag|=4)}},Va=function(t,e,n,r){n!==r&&(e.effectTag|=4)};var Qa="function"==typeof WeakSet?WeakSet:Set;function ts(t,e){var n=e.source,r=e.stack;null===r&&null!==n&&(r=gt(n)),null!==n&&yt(n.type),e=e.value,null!==t&&1===t.tag&&yt(t.type);try{console.error(e)}catch(t){setTimeout((function(){throw t}))}}function es(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){vl(t,e)}else e.current=null}function ns(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&e.effectTag&&null!==t){var n=t.memoizedProps,r=t.memoizedState;e=(t=e.stateNode).getSnapshotBeforeUpdate(e.elementType===e.type?n:$o(e.type,n),r),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function rs(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==e)}}function os(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function is(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:return void os(3,n);case 1:if(t=n.stateNode,4&n.effectTag)if(null===e)t.componentDidMount();else{var r=n.elementType===n.type?e.memoizedProps:$o(n.type,e.memoizedProps);t.componentDidUpdate(r,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate)}return void(null!==(e=n.updateQueue)&&fi(n,e,t));case 3:if(null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}fi(n,e,t)}return;case 5:return t=n.stateNode,void(null===e&&4&n.effectTag&&gn(n.type,n.memoizedProps)&&t.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Le(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(t,e,n){switch("function"==typeof wl&&wl(e),e.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(t=e.updateQueue)&&null!==(t=t.lastEffect)){var r=t.next;qo(97<n?97:n,(function(){var t=r;do{var n=t.destroy;if(void 0!==n){var o=e;try{n()}catch(t){vl(o,t)}}t=t.next}while(t!==r)}))}break;case 1:es(e),"function"==typeof(n=e.stateNode).componentWillUnmount&&function(t,e){try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){vl(t,e)}}(e,n);break;case 5:es(e);break;case 4:cs(t,e,n)}}function ss(t){var e=t.alternate;t.return=null,t.child=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.alternate=null,t.firstEffect=null,t.lastEffect=null,t.pendingProps=null,t.memoizedProps=null,t.stateNode=null,null!==e&&ss(e)}function ls(t){return 5===t.tag||3===t.tag||4===t.tag}function us(t){t:{for(var e=t.return;null!==e;){if(ls(e)){var n=e;break t}e=e.return}throw Error(a(160))}switch(e=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:e=e.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Ft(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||ls(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}r?function t(e,n,r){var o=e.tag,i=5===o||6===o;if(i)e=i?e.stateNode:e.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(e,n):r.insertBefore(e,n):(8===r.nodeType?(n=r.parentNode).insertBefore(e,r):(n=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=un));else if(4!==o&&null!==(e=e.child))for(t(e,n,r),e=e.sibling;null!==e;)t(e,n,r),e=e.sibling}(t,n,e):function t(e,n,r){var o=e.tag,i=5===o||6===o;if(i)e=i?e.stateNode:e.stateNode.instance,n?r.insertBefore(e,n):r.appendChild(e);else if(4!==o&&null!==(e=e.child))for(t(e,n,r),e=e.sibling;null!==e;)t(e,n,r),e=e.sibling}(t,n,e)}function cs(t,e,n){for(var r,o,i=e,s=!1;;){if(!s){s=i.return;t:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:o=!1;break t;case 3:case 4:r=r.containerInfo,o=!0;break t}s=s.return}s=!0}if(5===i.tag||6===i.tag){t:for(var l=t,u=i,c=n,p=u;;)if(as(l,p,c),null!==p.child&&4!==p.tag)p.child.return=p,p=p.child;else{if(p===u)break t;for(;null===p.sibling;){if(null===p.return||p.return===u)break t;p=p.return}p.sibling.return=p.return,p=p.sibling}o?(l=r,u=i.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(as(t,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;4===(i=i.return).tag&&(s=!1)}i.sibling.return=i.return,i=i.sibling}}function ps(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:return void rs(3,e);case 1:return;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps,o=null!==t?t.memoizedProps:r;t=e.type;var i=e.updateQueue;if(e.updateQueue=null,null!==i){for(n[kn]=r,"input"===t&&"radio"===r.type&&null!=r.name&&St(n,r),an(t,o),e=an(t,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?nn(n,l):"dangerouslySetInnerHTML"===s?Nt(n,l):"children"===s?Ft(n,l):Y(n,s,l,e)}switch(t){case"input":kt(n,r);break;case"textarea":zt(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(t=r.value)?It(n,!!r.multiple,t,!1):e!==!!r.multiple&&(null!=r.defaultValue?It(n,!!r.multiple,r.defaultValue,!0):It(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===e.stateNode)throw Error(a(162));return void(e.stateNode.nodeValue=e.memoizedProps);case 3:return void((e=e.stateNode).hydrate&&(e.hydrate=!1,Le(e.containerInfo)));case 12:return;case 13:if(n=e,null===e.memoizedState?r=!1:(r=!0,n=e.child,Rs=Fo()),null!==n)t:for(t=n;;){if(5===t.tag)i=t.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=t.stateNode,o=null!=(o=t.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=en("display",o));else if(6===t.tag)t.stateNode.nodeValue=r?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState&&null===t.memoizedState.dehydrated){(i=t.child.sibling).return=t,t=i;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}return void fs(e);case 19:return void fs(e);case 17:return}throw Error(a(163))}function fs(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new Qa),e.forEach((function(e){var r=bl.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))}))}}var hs="function"==typeof WeakMap?WeakMap:Map;function ds(t,e,n){(n=li(n,null)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Ls||(Ls=!0,js=r),ts(t,e)},n}function ms(t,e,n){(n=li(n,null)).tag=3;var r=t.type.getDerivedStateFromError;if("function"==typeof r){var o=e.value;n.payload=function(){return ts(t,e),r(o)}}var i=t.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Bs?Bs=new Set([this]):Bs.add(this),ts(t,e));var n=e.stack;this.componentDidCatch(e.value,{componentStack:null!==n?n:""})}),n}var ys,gs=Math.ceil,vs=K.ReactCurrentDispatcher,_s=K.ReactCurrentOwner,bs=0,xs=3,ws=4,Es=0,Ss=null,ks=null,Ts=0,Cs=bs,Ps=null,Is=1073741823,Os=1073741823,As=null,zs=0,Ms=!1,Rs=0,Ds=null,Ls=!1,js=null,Bs=null,Ns=!1,Fs=null,Us=90,Vs=null,qs=0,Gs=null,Ws=0;function Zs(){return 0!=(48&Es)?1073741821-(Fo()/10|0):0!==Ws?Ws:Ws=1073741821-(Fo()/10|0)}function Hs(t,e,n){if(0==(2&(e=e.mode)))return 1073741823;var r=Uo();if(0==(4&e))return 99===r?1073741823:1073741822;if(0!=(16&Es))return Ts;if(null!==n)t=Xo(t,0|n.timeoutMs||5e3,250);else switch(r){case 99:t=1073741823;break;case 98:t=Xo(t,150,100);break;case 97:case 96:t=Xo(t,5e3,250);break;case 95:t=2;break;default:throw Error(a(326))}return null!==Ss&&t===Ts&&--t,t}function Xs(t,e){if(50<qs)throw qs=0,Gs=null,Error(a(185));if(null!==(t=$s(t,e))){var n=Uo();1073741823===e?0!=(8&Es)&&0==(48&Es)?Qs(t):(Ys(t),0===Es&&Zo()):Ys(t),0==(4&Es)||98!==n&&99!==n||(null===Vs?Vs=new Map([[t,e]]):(void 0===(n=Vs.get(t))||n>e)&&Vs.set(t,e))}}function $s(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e);var r=t.return,o=null;if(null===r&&3===t.tag)o=t.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<e&&(r.childExpirationTime=e),null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(Ss===o&&(al(e),Cs===ws&&Ml(o,Ts)),Rl(o,e)),o}function Ks(t){var e=t.lastExpiredTime;if(0!==e)return e;if(!zl(t,e=t.firstPendingTime))return e;var n=t.lastPingedTime;return 2>=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function Ys(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Wo(Qs.bind(null,t));else{var e=Ks(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r=Zs();if(1073741823===e?r=99:1===e||2===e?r=95:r=0>=(r=10*(1073741821-e)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=t.callbackPriority;if(t.callbackExpirationTime===e&&o>=r)return;n!==Mo&&So(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?Wo(Qs.bind(null,t)):Go(r,Js.bind(null,t),{timeout:10*(1073741821-e)-Fo()}),t.callbackNode=e}}}function Js(t,e){if(Ws=0,e)return Dl(t,e=Zs()),Ys(t),null;var n=Ks(t);if(0!==n){if(e=t.callbackNode,0!=(48&Es))throw Error(a(327));if(ml(),t===Ss&&n===Ts||nl(t,n),null!==ks){var r=Es;Es|=16;for(var o=ol();;)try{ll();break}catch(e){rl(t,e)}if(ti(),Es=r,vs.current=o,1===Cs)throw e=Ps,nl(t,n),Ml(t,n),Ys(t),e;if(null===ks)switch(o=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,r=Cs,Ss=null,r){case bs:case 1:throw Error(a(345));case 2:Dl(t,2<n?2:n);break;case xs:if(Ml(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=pl(o)),1073741823===Is&&10<(o=Rs+500-Fo())){if(Ms){var i=t.lastPingedTime;if(0===i||i>=n){t.lastPingedTime=n,nl(t,n);break}}if(0!==(i=Ks(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}t.timeoutHandle=_n(fl.bind(null,t),o);break}fl(t);break;case ws:if(Ml(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=pl(o)),Ms&&(0===(o=t.lastPingedTime)||o>=n)){t.lastPingedTime=n,nl(t,n);break}if(0!==(o=Ks(t))&&o!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==Os?r=10*(1073741821-Os)-Fo():1073741823===Is?r=0:(r=10*(1073741821-Is)-5e3,0>(r=(o=Fo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gs(r/1960))-r)&&(r=n)),10<r){t.timeoutHandle=_n(fl.bind(null,t),r);break}fl(t);break;case 5:if(1073741823!==Is&&null!==As){i=Is;var s=As;if(0>=(r=0|s.busyMinDurationMs)?r=0:(o=0|s.busyDelayMs,r=(i=Fo()-(10*(1073741821-i)-(0|s.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Ml(t,n),t.timeoutHandle=_n(fl.bind(null,t),r);break}}fl(t);break;default:throw Error(a(329))}if(Ys(t),t.callbackNode===e)return Js.bind(null,t)}}return null}function Qs(t){var e=t.lastExpiredTime;if(e=0!==e?e:1073741823,0!=(48&Es))throw Error(a(327));if(ml(),t===Ss&&e===Ts||nl(t,e),null!==ks){var n=Es;Es|=16;for(var r=ol();;)try{sl();break}catch(e){rl(t,e)}if(ti(),Es=n,vs.current=r,1===Cs)throw n=Ps,nl(t,e),Ml(t,e),Ys(t),n;if(null!==ks)throw Error(a(261));t.finishedWork=t.current.alternate,t.finishedExpirationTime=e,Ss=null,fl(t),Ys(t)}return null}function tl(t,e){var n=Es;Es|=1;try{return t(e)}finally{0===(Es=n)&&Zo()}}function el(t,e){var n=Es;Es&=-2,Es|=8;try{return t(e)}finally{0===(Es=n)&&Zo()}}function nl(t,e){t.finishedWork=null,t.finishedExpirationTime=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,bn(n)),null!==ks)for(n=ks.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&go();break;case 3:Mi(),lo(fo),lo(po);break;case 5:Di(r);break;case 4:Mi();break;case 13:case 19:lo(Li);break;case 10:ei(r)}n=n.return}Ss=t,ks=Tl(t.current,null),Ts=e,Cs=bs,Ps=null,Os=Is=1073741823,As=null,zs=0,Ms=!1}function rl(t,e){for(;;){try{if(ti(),Ni.current=ya,Wi)for(var n=Vi.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Ui=0,Gi=qi=Vi=null,Wi=!1,null===ks||null===ks.return)return Cs=1,Ps=e,ks=null;t:{var o=t,i=ks.return,a=ks,s=e;if(e=Ts,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(0==(2&a.mode)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.expirationTime=u.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=0!=(1&Li.current),p=i;do{var f;if(f=13===p.tag){var h=p.memoizedState;if(null!==h)f=null!==h.dehydrated;else{var d=p.memoizedProps;f=void 0!==d.fallback&&(!0!==d.unstable_avoidThisFallback||!c)}}if(f){var m=p.updateQueue;if(null===m){var y=new Set;y.add(l),p.updateQueue=y}else m.add(l);if(0==(2&p.mode)){if(p.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=li(1073741823,null);g.tag=2,ui(a,g)}a.expirationTime=1073741823;break t}s=void 0,a=e;var v=o.pingCache;if(null===v?(v=o.pingCache=new hs,s=new Set,v.set(l,s)):void 0===(s=v.get(l))&&(s=new Set,v.set(l,s)),!s.has(a)){s.add(a);var _=_l.bind(null,o,l,a);l.then(_,_)}p.effectTag|=4096,p.expirationTime=e;break t}p=p.return}while(null!==p);s=Error((yt(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+gt(a))}5!==Cs&&(Cs=2),s=Ja(s,a),p=i;do{switch(p.tag){case 3:l=s,p.effectTag|=4096,p.expirationTime=e,ci(p,ds(p,l,e));break t;case 1:l=s;var b=p.type,x=p.stateNode;if(0==(64&p.effectTag)&&("function"==typeof b.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===Bs||!Bs.has(x)))){p.effectTag|=4096,p.expirationTime=e,ci(p,ms(p,l,e));break t}}p=p.return}while(null!==p)}ks=cl(ks)}catch(t){e=t;continue}break}}function ol(){var t=vs.current;return vs.current=ya,null===t?ya:t}function il(t,e){t<Is&&2<t&&(Is=t),null!==e&&t<Os&&2<t&&(Os=t,As=e)}function al(t){t>zs&&(zs=t)}function sl(){for(;null!==ks;)ks=ul(ks)}function ll(){for(;null!==ks&&!Ro();)ks=ul(ks)}function ul(t){var e=ys(t.alternate,t,Ts);return t.memoizedProps=t.pendingProps,null===e&&(e=cl(t)),_s.current=null,e}function cl(t){ks=t;do{var e=ks.alternate;if(t=ks.return,0==(2048&ks.effectTag)){if(e=Ka(e,ks,Ts),1===Ts||1!==ks.childExpirationTime){for(var n=0,r=ks.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}ks.childExpirationTime=n}if(null!==e)return e;null!==t&&0==(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=ks.firstEffect),null!==ks.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=ks.firstEffect),t.lastEffect=ks.lastEffect),1<ks.effectTag&&(null!==t.lastEffect?t.lastEffect.nextEffect=ks:t.firstEffect=ks,t.lastEffect=ks))}else{if(null!==(e=Ya(ks)))return e.effectTag&=2047,e;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=2048)}if(null!==(e=ks.sibling))return e;ks=t}while(null!==ks);return Cs===bs&&(Cs=5),null}function pl(t){var e=t.expirationTime;return e>(t=t.childExpirationTime)?e:t}function fl(t){var e=Uo();return qo(99,hl.bind(null,t,e)),null}function hl(t,e){do{ml()}while(null!==Fs);if(0!=(48&Es))throw Error(a(327));var n=t.finishedWork,r=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(a(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var o=pl(n);if(t.firstPendingTime=o,r<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:r<=t.firstSuspendedTime&&(t.firstSuspendedTime=r-1),r<=t.lastPingedTime&&(t.lastPingedTime=0),r<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===Ss&&(ks=Ss=null,Ts=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=Es;Es|=32,_s.current=null,mn=Ze;var s=hn();if(dn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else t:{var u=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(u&&0!==u.rangeCount){l=u.anchorNode;var c=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{l.nodeType,p.nodeType}catch(t){l=null;break t}var f=0,h=-1,d=-1,m=0,y=0,g=s,v=null;e:for(;;){for(var _;g!==l||0!==c&&3!==g.nodeType||(h=f+c),g!==p||0!==u&&3!==g.nodeType||(d=f+u),3===g.nodeType&&(f+=g.nodeValue.length),null!==(_=g.firstChild);)v=g,g=_;for(;;){if(g===s)break e;if(v===l&&++m===c&&(h=f),v===p&&++y===u&&(d=f),null!==(_=g.nextSibling))break;v=(g=v).parentNode}g=_}l=-1===h||-1===d?null:{start:h,end:d}}else l=null}l=l||{start:0,end:0}}else l=null;yn={activeElementDetached:null,focusedElem:s,selectionRange:l},Ze=!1,Ds=o;do{try{dl()}catch(t){if(null===Ds)throw Error(a(330));vl(Ds,t),Ds=Ds.nextEffect}}while(null!==Ds);Ds=o;do{try{for(s=t,l=e;null!==Ds;){var b=Ds.effectTag;if(16&b&&Ft(Ds.stateNode,""),128&b){var x=Ds.alternate;if(null!==x){var w=x.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:us(Ds),Ds.effectTag&=-3;break;case 6:us(Ds),Ds.effectTag&=-3,ps(Ds.alternate,Ds);break;case 1024:Ds.effectTag&=-1025;break;case 1028:Ds.effectTag&=-1025,ps(Ds.alternate,Ds);break;case 4:ps(Ds.alternate,Ds);break;case 8:cs(s,c=Ds,l),ss(c)}Ds=Ds.nextEffect}}catch(t){if(null===Ds)throw Error(a(330));vl(Ds,t),Ds=Ds.nextEffect}}while(null!==Ds);if(w=yn,x=hn(),b=w.focusedElem,l=w.selectionRange,x!==b&&b&&b.ownerDocument&&function t(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==l&&dn(b)&&(x=l.start,void 0===(w=l.end)&&(w=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(w,b.value.length)):(w=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(w=w.getSelection(),c=b.textContent.length,s=Math.min(l.start,c),l=void 0===l.end?s:Math.min(l.end,c),!w.extend&&s>l&&(c=l,l=s,s=c),c=fn(b,s),p=fn(b,l),c&&p&&(1!==w.rangeCount||w.anchorNode!==c.node||w.anchorOffset!==c.offset||w.focusNode!==p.node||w.focusOffset!==p.offset)&&((x=x.createRange()).setStart(c.node,c.offset),w.removeAllRanges(),s>l?(w.addRange(x),w.extend(p.node,p.offset)):(x.setEnd(p.node,p.offset),w.addRange(x))))),x=[];for(w=b;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<x.length;b++)(w=x[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Ze=!!mn,yn=mn=null,t.current=n,Ds=o;do{try{for(b=t;null!==Ds;){var E=Ds.effectTag;if(36&E&&is(b,Ds.alternate,Ds),128&E){x=void 0;var S=Ds.ref;if(null!==S){var k=Ds.stateNode;switch(Ds.tag){case 5:x=k;break;default:x=k}"function"==typeof S?S(x):S.current=x}}Ds=Ds.nextEffect}}catch(t){if(null===Ds)throw Error(a(330));vl(Ds,t),Ds=Ds.nextEffect}}while(null!==Ds);Ds=null,Do(),Es=i}else t.current=n;if(Ns)Ns=!1,Fs=t,Us=e;else for(Ds=o;null!==Ds;)e=Ds.nextEffect,Ds.nextEffect=null,Ds=e;if(0===(e=t.firstPendingTime)&&(Bs=null),1073741823===e?t===Gs?qs++:(qs=0,Gs=t):qs=0,"function"==typeof xl&&xl(n.stateNode,r),Ys(t),Ls)throw Ls=!1,t=js,js=null,t;return 0!=(8&Es)||Zo(),null}function dl(){for(;null!==Ds;){var t=Ds.effectTag;0!=(256&t)&&ns(Ds.alternate,Ds),0==(512&t)||Ns||(Ns=!0,Go(97,(function(){return ml(),null}))),Ds=Ds.nextEffect}}function ml(){if(90!==Us){var t=97<Us?97:Us;return Us=90,qo(t,yl)}}function yl(){if(null===Fs)return!1;var t=Fs;if(Fs=null,0!=(48&Es))throw Error(a(331));var e=Es;for(Es|=32,t=t.current.firstEffect;null!==t;){try{var n=t;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:rs(5,n),os(5,n)}}catch(e){if(null===t)throw Error(a(330));vl(t,e)}n=t.nextEffect,t.nextEffect=null,t=n}return Es=e,Zo(),!0}function gl(t,e,n){ui(t,e=ds(t,e=Ja(n,e),1073741823)),null!==(t=$s(t,1073741823))&&Ys(t)}function vl(t,e){if(3===t.tag)gl(t,t,e);else for(var n=t.return;null!==n;){if(3===n.tag){gl(n,t,e);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Bs||!Bs.has(r))){ui(n,t=ms(n,t=Ja(e,t),1073741823)),null!==(n=$s(n,1073741823))&&Ys(n);break}}n=n.return}}function _l(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),Ss===t&&Ts===n?Cs===ws||Cs===xs&&1073741823===Is&&Fo()-Rs<500?nl(t,Ts):Ms=!0:zl(t,n)&&(0!==(e=t.lastPingedTime)&&e<n||(t.lastPingedTime=n,Ys(t)))}function bl(t,e){var n=t.stateNode;null!==n&&n.delete(e),0===(e=0)&&(e=Hs(e=Zs(),t,null)),null!==(t=$s(t,e))&&Ys(t)}ys=function(t,e,n){var r=e.expirationTime;if(null!==t){var o=e.pendingProps;if(t.memoizedProps!==o||fo.current)Oa=!0;else{if(r<n){switch(Oa=!1,e.tag){case 3:Na(e),Pa();break;case 5:if(Ri(e),4&e.mode&&1!==n&&o.hidden)return e.expirationTime=e.childExpirationTime=1,null;break;case 1:yo(e.type)&&bo(e);break;case 4:zi(e,e.stateNode.containerInfo);break;case 10:r=e.memoizedProps.value,o=e.type._context,uo(Ko,o._currentValue),o._currentValue=r;break;case 13:if(null!==e.memoizedState)return 0!==(r=e.child.childExpirationTime)&&r>=n?Ga(t,e,n):(uo(Li,1&Li.current),null!==(e=Xa(t,e,n))?e.sibling:null);uo(Li,1&Li.current);break;case 19:if(r=e.childExpirationTime>=n,0!=(64&t.effectTag)){if(r)return Ha(t,e,n);e.effectTag|=64}if(null!==(o=e.memoizedState)&&(o.rendering=null,o.tail=null),uo(Li,Li.current),!r)return null}return Xa(t,e,n)}Oa=!1}}else Oa=!1;switch(e.expirationTime=0,e.tag){case 2:if(r=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,o=mo(e,po.current),ri(e,n),o=Xi(null,e,r,t,o,n),e.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,yo(r)){var i=!0;bo(e)}else i=!1;e.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ai(e);var s=r.getDerivedStateFromProps;"function"==typeof s&&mi(e,r,s,t),o.updater=yi,e.stateNode=o,o._reactInternalFiber=e,bi(e,r,t,n),e=Ba(null,e,r,!0,i,n)}else e.tag=0,Aa(null,e,o,n),e=e.child;return e;case 16:t:{if(o=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,e.type=o,i=e.tag=function(t){if("function"==typeof t)return kl(t)?1:0;if(null!=t){if((t=t.$$typeof)===lt)return 11;if(t===pt)return 14}return 2}(o),t=$o(o,t),i){case 0:e=La(null,e,o,t,n);break t;case 1:e=ja(null,e,o,t,n);break t;case 11:e=za(null,e,o,t,n);break t;case 14:e=Ma(null,e,o,$o(o.type,t),r,n);break t}throw Error(a(306,o,""))}return e;case 0:return r=e.type,o=e.pendingProps,La(t,e,r,o=e.elementType===r?o:$o(r,o),n);case 1:return r=e.type,o=e.pendingProps,ja(t,e,r,o=e.elementType===r?o:$o(r,o),n);case 3:if(Na(e),r=e.updateQueue,null===t||null===r)throw Error(a(282));if(r=e.pendingProps,o=null!==(o=e.memoizedState)?o.element:null,si(t,e),pi(e,r,null,n),(r=e.memoizedState.element)===o)Pa(),e=Xa(t,e,n);else{if((o=e.stateNode.hydrate)&&(xa=xn(e.stateNode.containerInfo.firstChild),ba=e,o=wa=!0),o)for(n=Ti(e,null,r,n),e.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Aa(t,e,r,n),Pa();e=e.child}return e;case 5:return Ri(e),null===t&&ka(e),r=e.type,o=e.pendingProps,i=null!==t?t.memoizedProps:null,s=o.children,vn(r,o)?s=null:null!==i&&vn(r,i)&&(e.effectTag|=16),Da(t,e),4&e.mode&&1!==n&&o.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(Aa(t,e,s,n),e=e.child),e;case 6:return null===t&&ka(e),null;case 13:return Ga(t,e,n);case 4:return zi(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=ki(e,null,r,n):Aa(t,e,r,n),e.child;case 11:return r=e.type,o=e.pendingProps,za(t,e,r,o=e.elementType===r?o:$o(r,o),n);case 7:return Aa(t,e,e.pendingProps,n),e.child;case 8:case 12:return Aa(t,e,e.pendingProps.children,n),e.child;case 10:t:{r=e.type._context,o=e.pendingProps,s=e.memoizedProps,i=o.value;var l=e.type._context;if(uo(Ko,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0===(i=jr(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!fo.current){e=Xa(t,e,n);break t}}else for(null!==(l=e.child)&&(l.return=e);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&i)){1===l.tag&&((c=li(n,null)).tag=2,ui(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),ni(l.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else s=10===l.tag&&l.type===e.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===e){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Aa(t,e,o.children,n),e=e.child}return e;case 9:return o=e.type,r=(i=e.pendingProps).children,ri(e,n),r=r(o=oi(o,i.unstable_observedBits)),e.effectTag|=1,Aa(t,e,r,n),e.child;case 14:return i=$o(o=e.type,e.pendingProps),Ma(t,e,o,i=$o(o.type,i),r,n);case 15:return Ra(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:$o(r,o),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,yo(r)?(t=!0,bo(e)):t=!1,ri(e,n),vi(e,r,o),bi(e,r,o,n),Ba(null,e,r,!0,t,n);case 19:return Ha(t,e,n)}throw Error(a(156,e.tag))};var xl=null,wl=null;function El(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Sl(t,e,n,r){return new El(t,e,n,r)}function kl(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Tl(t,e){var n=t.alternate;return null===n?((n=Sl(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{expirationTime:e.expirationTime,firstContext:e.firstContext,responders:e.responders},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Cl(t,e,n,r,o,i){var s=2;if(r=t,"function"==typeof t)kl(t)&&(s=1);else if("string"==typeof t)s=5;else t:switch(t){case nt:return Pl(n.children,o,i,e);case st:s=8,o|=7;break;case rt:s=8,o|=1;break;case ot:return(t=Sl(12,n,e,8|o)).elementType=ot,t.type=ot,t.expirationTime=i,t;case ut:return(t=Sl(13,n,e,o)).type=ut,t.elementType=ut,t.expirationTime=i,t;case ct:return(t=Sl(19,n,e,o)).elementType=ct,t.expirationTime=i,t;default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case it:s=10;break t;case at:s=9;break t;case lt:s=11;break t;case pt:s=14;break t;case ft:s=16,r=null;break t;case ht:s=22;break t}throw Error(a(130,null==t?t:typeof t,""))}return(e=Sl(s,n,e,o)).elementType=t,e.type=r,e.expirationTime=i,e}function Pl(t,e,n,r){return(t=Sl(7,t,r,e)).expirationTime=n,t}function Il(t,e,n){return(t=Sl(6,t,null,e)).expirationTime=n,t}function Ol(t,e,n){return(e=Sl(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Al(t,e,n){this.tag=e,this.current=null,this.containerInfo=t,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function zl(t,e){var n=t.firstSuspendedTime;return t=t.lastSuspendedTime,0!==n&&n>=e&&t<=e}function Ml(t,e){var n=t.firstSuspendedTime,r=t.lastSuspendedTime;n<e&&(t.firstSuspendedTime=e),(r>e||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function Rl(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function Dl(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function Ll(t,e,n,r){var o=e.current,i=Zs(),s=hi.suspense;i=Hs(i,o,s);t:if(n){e:{if(Qt(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(yo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var u=n.type;if(yo(u)){n=_o(n,u,l);break t}}n=l}else n=co;return null===e.context?e.context=n:e.pendingContext=n,(e=li(i,s)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),ui(o,e),Xs(o,i),i}function jl(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function Bl(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime<e&&(t.retryTime=e)}function Nl(t,e){Bl(t,e),(t=t.alternate)&&Bl(t,e)}function Fl(t,e,n){var r=new Al(t,e,n=null!=n&&!0===n.hydrate),o=Sl(3,null,null,2===e?7:1===e?3:0);r.current=o,o.stateNode=r,ai(o),t[Tn]=r.current,n&&0!==e&&function(t,e){var n=Jt(e);Te.forEach((function(t){de(t,e,n)})),Ce.forEach((function(t){de(t,e,n)}))}(0,9===t.nodeType?t:t.ownerDocument),this._internalRoot=r}function Ul(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Vl(t,e,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var s=o;o=function(){var t=jl(a);s.call(t)}}Ll(e,a,t,o)}else{if(i=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new Fl(t,0,e?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var t=jl(a);l.call(t)}}el((function(){Ll(e,a,t,o)}))}return jl(a)}function ql(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:et,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}function Gl(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ul(e))throw Error(a(200));return ql(t,e,null,n)}Fl.prototype.render=function(t){Ll(t,this._internalRoot,null,null)},Fl.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Ll(null,t,null,(function(){e[Tn]=null}))},me=function(t){if(13===t.tag){var e=Xo(Zs(),150,100);Xs(t,e),Nl(t,e)}},ye=function(t){13===t.tag&&(Xs(t,3),Nl(t,3))},ge=function(t){if(13===t.tag){var e=Zs();Xs(t,e=Hs(e,t,null)),Nl(t,e)}},P=function(t,e,n){switch(e){case"input":if(kt(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var o=On(r);if(!o)throw Error(a(90));xt(r),kt(r,o)}}}break;case"textarea":zt(t,n);break;case"select":null!=(e=n.value)&&It(t,!!n.multiple,e,!1)}},R=tl,D=function(t,e,n,r,o){var i=Es;Es|=4;try{return qo(98,t.bind(null,e,n,r,o))}finally{0===(Es=i)&&Zo()}},L=function(){0==(49&Es)&&(function(){if(null!==Vs){var t=Vs;Vs=null,t.forEach((function(t,e){Dl(e,t),Ys(e)})),Zo()}}(),ml())},j=function(t,e){var n=Es;Es|=2;try{return t(e)}finally{0===(Es=n)&&Zo()}};var Wl,Zl,Hl={Events:[Pn,In,On,T,E,jn,function(t){oe(t,Ln)},z,M,Ye,se,ml,{current:!1}]};Zl=(Wl={findFiberByHostInstance:Cn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);xl=function(t){try{e.onCommitFiberRoot(n,t,void 0,64==(64&t.current.effectTag))}catch(t){}},wl=function(t){try{e.onCommitFiberUnmount(n,t)}catch(t){}}}catch(t){}}(o({},Wl,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:K.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=ne(t))?null:t.stateNode},findFiberByHostInstance:function(t){return Zl?Zl(t):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hl,e.createPortal=Gl,e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;if(void 0===e){if("function"==typeof t.render)throw Error(a(188));throw Error(a(268,Object.keys(t)))}return t=null===(t=ne(e))?null:t.stateNode},e.flushSync=function(t,e){if(0!=(48&Es))throw Error(a(187));var n=Es;Es|=1;try{return qo(99,t.bind(null,e))}finally{Es=n,Zo()}},e.hydrate=function(t,e,n){if(!Ul(e))throw Error(a(200));return Vl(null,t,e,!0,n)},e.render=function(t,e,n){if(!Ul(e))throw Error(a(200));return Vl(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!Ul(t))throw Error(a(40));return!!t._reactRootContainer&&(el((function(){Vl(null,null,t,!1,(function(){t._reactRootContainer=null,t[Tn]=null}))})),!0)},e.unstable_batchedUpdates=tl,e.unstable_createPortal=function(t,e){return Gl(t,e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},e.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!Ul(n))throw Error(a(200));if(null==t||void 0===t._reactInternalFiber)throw Error(a(38));return Vl(t,e,n,!1,r)},e.version="16.14.0"},function(t,e,n){"use strict";t.exports=n(82)},function(t,e,n){"use strict"; 47/** @license React v0.19.1 48 * scheduler.production.min.js 49 * 50 * Copyright (c) Facebook, Inc. and its affiliates. 51 * 52 * This source code is licensed under the MIT license found in the 53 * LICENSE file in the root directory of this source tree. 54 */var r,o,i,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,u=null,c=function(){if(null!==l)try{var t=e.unstable_now();l(!0,t),l=null}catch(t){throw setTimeout(c,0),t}},p=Date.now();e.unstable_now=function(){return Date.now()-p},r=function(t){null!==l?setTimeout(r,0,t):(l=t,setTimeout(c,0))},o=function(t,e){u=setTimeout(t,e)},i=function(){clearTimeout(u)},a=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var f=window.performance,h=window.Date,d=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var y=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)e.unstable_now=function(){return f.now()};else{var g=h.now();e.unstable_now=function(){return h.now()-g}}var v=!1,_=null,b=-1,x=5,w=0;a=function(){return e.unstable_now()>=w},s=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):x=0<t?Math.floor(1e3/t):5};var E=new MessageChannel,S=E.port2;E.port1.onmessage=function(){if(null!==_){var t=e.unstable_now();w=t+x;try{_(!0,t)?S.postMessage(null):(v=!1,_=null)}catch(t){throw S.postMessage(null),t}}else v=!1},r=function(t){_=t,v||(v=!0,S.postMessage(null))},o=function(t,n){b=d((function(){t(e.unstable_now())}),n)},i=function(){m(b),b=-1}}function k(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,o=t[r];if(!(void 0!==o&&0<P(o,e)))break t;t[r]=e,t[n]=o,n=r}}function T(t){return void 0===(t=t[0])?null:t}function C(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,o=t.length;r<o;){var i=2*(r+1)-1,a=t[i],s=i+1,l=t[s];if(void 0!==a&&0>P(a,n))void 0!==l&&0>P(l,a)?(t[r]=l,t[s]=n,r=s):(t[r]=a,t[i]=n,r=i);else{if(!(void 0!==l&&0>P(l,n)))break t;t[r]=l,t[s]=n,r=s}}}return e}return null}function P(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var I=[],O=[],A=1,z=null,M=3,R=!1,D=!1,L=!1;function j(t){for(var e=T(O);null!==e;){if(null===e.callback)C(O);else{if(!(e.startTime<=t))break;C(O),e.sortIndex=e.expirationTime,k(I,e)}e=T(O)}}function B(t){if(L=!1,j(t),!D)if(null!==T(I))D=!0,r(N);else{var e=T(O);null!==e&&o(B,e.startTime-t)}}function N(t,n){D=!1,L&&(L=!1,i()),R=!0;var r=M;try{for(j(n),z=T(I);null!==z&&(!(z.expirationTime>n)||t&&!a());){var s=z.callback;if(null!==s){z.callback=null,M=z.priorityLevel;var l=s(z.expirationTime<=n);n=e.unstable_now(),"function"==typeof l?z.callback=l:z===T(I)&&C(I),j(n)}else C(I);z=T(I)}if(null!==z)var u=!0;else{var c=T(O);null!==c&&o(B,c.startTime-n),u=!1}return u}finally{z=null,M=r,R=!1}}function F(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=s;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){D||R||(D=!0,r(N))},e.unstable_getCurrentPriorityLevel=function(){return M},e.unstable_getFirstCallbackNode=function(){return T(I)},e.unstable_next=function(t){switch(M){case 1:case 2:case 3:var e=3;break;default:e=M}var n=M;M=e;try{return t()}finally{M=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=U,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=M;M=t;try{return e()}finally{M=n}},e.unstable_scheduleCallback=function(t,n,a){var s=e.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:F(t)}else a=F(t),l=s;return t={id:A++,callback:n,priorityLevel:t,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(t.sortIndex=l,k(O,t),null===T(I)&&t===T(O)&&(L?i():L=!0,o(B,l-s))):(t.sortIndex=a,k(I,t),D||R||(D=!0,r(N))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();j(t);var n=T(I);return n!==z&&null!==z&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<z.expirationTime||a()},e.unstable_wrapCallback=function(t){var e=M;return function(){var n=M;M=e;try{return t.apply(this,arguments)}finally{M=n}}}},function(t,e,n){"use strict";var r=n(84);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict"; 55/** @license React v16.13.1 56 * react-is.production.min.js 57 * 58 * Copyright (c) Facebook, Inc. and its affiliates. 59 * 60 * This source code is licensed under the MIT license found in the 61 * LICENSE file in the root directory of this source tree. 62 */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,_=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case o:switch(t=t.type){case p:case f:case a:case l:case s:case d:return t;default:switch(t=t&&t.$$typeof){case c:case h:case g:case y:case u:return t;default:return e}}case i:return e}}}function E(t){return w(t)===f}e.AsyncMode=p,e.ConcurrentMode=f,e.ContextConsumer=c,e.ContextProvider=u,e.Element=o,e.ForwardRef=h,e.Fragment=a,e.Lazy=g,e.Memo=y,e.Portal=i,e.Profiler=l,e.StrictMode=s,e.Suspense=d,e.isAsyncMode=function(t){return E(t)||w(t)===p},e.isConcurrentMode=E,e.isContextConsumer=function(t){return w(t)===c},e.isContextProvider=function(t){return w(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===o},e.isForwardRef=function(t){return w(t)===h},e.isFragment=function(t){return w(t)===a},e.isLazy=function(t){return w(t)===g},e.isMemo=function(t){return w(t)===y},e.isPortal=function(t){return w(t)===i},e.isProfiler=function(t){return w(t)===l},e.isStrictMode=function(t){return w(t)===s},e.isSuspense=function(t){return w(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===f||t===l||t===s||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===g||t.$$typeof===y||t.$$typeof===u||t.$$typeof===c||t.$$typeof===h||t.$$typeof===_||t.$$typeof===b||t.$$typeof===x||t.$$typeof===v)},e.typeOf=w},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.__RewireAPI__=e.__ResetDependency__=e.__set__=e.__Rewire__=e.__GetDependency__=e.__get__=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(24)),a=c(n(88)),s=c(n(90)),l=c(n(91)),u=c(n(92));function c(t){return t&&t.__esModule?t:{default:t}}var p=function(t){return o({},_("actions"),_("createSelectors")(t),{ConnectedRouter:_("createConnectedRouter")(t),connectRouter:_("createConnectRouter")(t),routerMiddleware:_("routerMiddleware")})};function f(){try{if(t)return t}catch(t){try{if(window)return window}
62catch(t){return this}}}e.default=_("createAll");var h,d=null;function m(){if(null===d){var t=f();t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),d=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return d}function y(){var t=f();return t.__$$GLOBAL_REWIRE_REGISTRY__||(t.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function g(){var t=m(),e=y(),n=e[t];return n||(e[t]=Object.create(null),n=e[t]),n}(h=f()).__rewire_reset_all__||(h.__rewire_reset_all__=function(){h.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var v={};function _(t){var e=g();if(void 0===e[t])return function(t){switch(t){case"actions":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.keys(t).filter((function(t){return"__get__"!==t&&"__set__"!==t&&"__reset__"!==t&&"__with__"!==t&&"__GetDependency__"!==t&&"__Rewire__"!==t&&"__ResetDependency__"!==t&&"__RewireAPI__"!==t}));return e.reduce((function(e,n){return e[n]=t[n],e}),{})}(i);case"createSelectors":return u.default;case"createConnectedRouter":return a.default;case"createConnectRouter":return s.default;case"routerMiddleware":return l.default;case"createAll":return p}return}(t);var n=e[t];return"__INTENTIONAL_UNDEFINED__"===n?void 0:n}function b(t,e){var n=g();if("object"!==(void 0===t?"undefined":r(t)))return n[t]=void 0===e?"__INTENTIONAL_UNDEFINED__":e,function(){x(t)};Object.keys(t).forEach((function(e){n[e]=t[e]}))}function x(t){var e=g();delete e[t],0==Object.keys(e).length&&delete y()[m]}function w(t){var e=g(),n=Object.keys(t),r={};function o(){n.forEach((function(t){e[t]=r[t]}))}return function(i){n.forEach((function(n){r[n]=e[n],e[n]=t[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function t(t,e){Object.defineProperty(v,t,{value:e,enumerable:!1,configurable:!0})}t("__get__",_),t("__GetDependency__",_),t("__Rewire__",b),t("__set__",b),t("__reset__",x),t("__ResetDependency__",x),t("__with__",w)}();var E=void 0===p?"undefined":r(p);function S(t,e){Object.defineProperty(p,t,{value:e,enumerable:!1,configurable:!0})}"object"!==E&&"function"!==E||!Object.isExtensible(p)||(S("__get__",_),S("__GetDependency__",_),S("__Rewire__",b),S("__set__",b),S("__reset__",x),S("__ResetDependency__",x),S("__with__",w),S("__RewireAPI__",v)),e.__get__=_,e.__GetDependency__=_,e.__Rewire__=b,e.__set__=b,e.__ResetDependency__=x,e.__RewireAPI__=v}).call(this,n(6))},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.__RewireAPI__=e.__ResetDependency__=e.__set__=e.__Rewire__=e.__GetDependency__=e.__get__=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(0),a=p(i),s=p(n(1)),l=n(9),u=n(22),c=n(24);function p(t){return t&&t.__esModule?t:{default:t}}var f=function(t){var e=t.getIn,n=t.toJS,r=function(t){function r(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,t));i.inTimeTravelling=!1,i.unsubscribe=o.store.subscribe((function(){var r=n(e(o.store.getState(),["router","location"])),a=r.pathname,s=r.search,l=r.hash,u=t.history.location,c=u.pathname,p=u.search,f=u.hash;c===a&&p===s&&f===l||(i.inTimeTravelling=!0,t.history.push({pathname:a,search:s,hash:l}))}));var a=function(e,n){i.inTimeTravelling?i.inTimeTravelling=!1:t.onLocationChanged(e,n)};return i.unlisten=t.history.listen(a),a(t.history.location,t.history.action),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
62(r,t),o(r,[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var t=this.props,e=t.history,n=t.children;return b("React").createElement(b("Router"),{history:e},n)}}]),r}(b("Component"));r.contextTypes={store:b("PropTypes").shape({getState:b("PropTypes").func.isRequired,subscribe:b("PropTypes").func.isRequired}).isRequired},r.propTypes={history:b("PropTypes").shape({action:b("PropTypes").string.isRequired,listen:b("PropTypes").func.isRequired,location:b("PropTypes").object.isRequired,push:b("PropTypes").func.isRequired}).isRequired,location:b("PropTypes").oneOfType([b("PropTypes").object,b("PropTypes").string]).isRequired,action:b("PropTypes").string.isRequired,basename:b("PropTypes").string,children:b("PropTypes").oneOfType([b("PropTypes").func,b("PropTypes").node]),onLocationChanged:b("PropTypes").func.isRequired};return b("connect")((function(t){return{action:e(t,["router","action"]),location:e(t,["router","location"])}}),(function(t){return{onLocationChanged:function(e,n){return t(b("onLocationChanged")(e,n))}}}))(r)};function h(){try{if(t)return t}catch(t){try{if(window)return window}catch(t){return this}}}e.default=b("createConnectedRouter");var d,m=null;function y(){if(null===m){var t=h();t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),m=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return m}function g(){var t=h();return t.__$$GLOBAL_REWIRE_REGISTRY__||(t.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function v(){var t=y(),e=g(),n=e[t];return n||(e[t]=Object.create(null),n=e[t]),n}(d=h()).__rewire_reset_all__||(d.__rewire_reset_all__=function(){d.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var _={};function b(t){var e=v();if(void 0===e[t])return function(t){switch(t){case"Component":return i.Component;case"PropTypes":return s.default;case"onLocationChanged":return c.onLocationChanged;case"connect":return l.connect;case"createConnectedRouter":return f;case"React":return a.default;case"Router":return u.Router}return}(t);var n=e[t];return"__INTENTIONAL_UNDEFINED__"===n?void 0:n}function x(t,e){var n=v();if("object"!==(void 0===t?"undefined":r(t)))return n[t]=void 0===e?"__INTENTIONAL_UNDEFINED__":e,function(){w(t)};Object.keys(t).forEach((function(e){n[e]=t[e]}))}function w(t){var e=v();delete e[t],0==Object.keys(e).length&&delete g()[y]}function E(t){var e=v(),n=Object.keys(t),r={};function o(){n.forEach((function(t){e[t]=r[t]}))}return function(i){n.forEach((function(n){r[n]=e[n],e[n]=t[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function t(t,e){Object.defineProperty(_,t,{value:e,enumerable:!1,configurable:!0})}t("__get__",b),t("__GetDependency__",b),t("__Rewire__",x),t("__set__",x),t("__reset__",w),t("__ResetDependency__",w),t("__with__",E)}();var S=void 0===f?"undefined":r(f);function k(t,e){Object.defineProperty(f,t,{value:e,enumerable:!1,configurable:!0})}"object"!==S&&"function"!==S||!Object.isExtensible(f)||(k("__get__",b),k("__GetDependency__",b),k("__Rewire__",x),k("__set__",x),k("__reset__",w),k("__ResetDependency__",w),k("__with__",E),k("__RewireAPI__",_)),e.__get__=b,e.__GetDependency__=b,e.__Rewire__=x,e.__set__=x,e.__ResetDependency__=w,e.__RewireAPI__=_}).call(this,n(6))},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.__RewireAPI__=e.__ResetDependency__=e.__set__=e.__Rewire__=e.__GetDependency__=e.__get__=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(24),i=function(t){var e=t.fromJS,n=t.merge;return function(t){var r=e({location:t.location,action:t.action});return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.type,i=e.payload;return o===h("LOCATION_CHANGE")?n(t,i):t}}};function a(){try{if(t)return t}catch(t){try{if(window)return window}
62catch(t){return this}}}e.default=h("createConnectRouter");var s,l=null;function u(){if(null===l){var t=a();t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),l=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return l}function c(){var t=a();return t.__$$GLOBAL_REWIRE_REGISTRY__||(t.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function p(){var t=u(),e=c(),n=e[t];return n||(e[t]=Object.create(null),n=e[t]),n}(s=a()).__rewire_reset_all__||(s.__rewire_reset_all__=function(){s.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var f={};function h(t){var e=p();if(void 0===e[t])return function(t){switch(t){case"LOCATION_CHANGE":return o.LOCATION_CHANGE;case"createConnectRouter":return i}return}(t);var n=e[t];return"__INTENTIONAL_UNDEFINED__"===n?void 0:n}function d(t,e){var n=p();if("object"!==(void 0===t?"undefined":r(t)))return n[t]=void 0===e?"__INTENTIONAL_UNDEFINED__":e,function(){m(t)};Object.keys(t).forEach((function(e){n[e]=t[e]}))}function m(t){var e=p();delete e[t],0==Object.keys(e).length&&delete c()[u]}function y(t){var e=p(),n=Object.keys(t),r={};function o(){n.forEach((function(t){e[t]=r[t]}))}return function(i){n.forEach((function(n){r[n]=e[n],e[n]=t[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function t(t,e){Object.defineProperty(f,t,{value:e,enumerable:!1,configurable:!0})}t("__get__",h),t("__GetDependency__",h),t("__Rewire__",d),t("__set__",d),t("__reset__",m),t("__ResetDependency__",m),t("__with__",y)}();var g=void 0===i?"undefined":r(i);function v(t,e){Object.defineProperty(i,t,{value:e,enumerable:!1,configurable:!0})}"object"!==g&&"function"!==g||!Object.isExtensible(i)||(v("__get__",h),v("__GetDependency__",h),v("__Rewire__",d),v("__set__",d),v("__reset__",m),v("__ResetDependency__",m),v("__with__",y),v("__RewireAPI__",f)),e.__get__=h,e.__GetDependency__=h,e.__Rewire__=d,e.__set__=d,e.__ResetDependency__=m,e.__RewireAPI__=f}).call(this,n(6))},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.__RewireAPI__=e.__ResetDependency__=e.__set__=e.__Rewire__=e.__GetDependency__=e.__get__=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(24);var i=function(t){return function(e){return function(e){return function(n){if(n.type!==h("CALL_HISTORY_METHOD"))return e(n);var r=n.payload,o=r.method,i=r.args;t[o].apply(t,function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(i))}}}};function a(){try{if(t)return t}catch(t){try{if(window)return window}catch(t){return this}}}e.default=h("routerMiddleware");var s,l=null;function u(){if(null===l){var t=a();t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),l=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return l}function c(){var t=a();return t.__$$GLOBAL_REWIRE_REGISTRY__||(t.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function p(){var t=u(),e=c(),n=e[t];return n||(e[t]=Object.create(null),n=e[t]),n}(s=a()).__rewire_reset_all__||(s.__rewire_reset_all__=function(){s.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var f={};function h(t){var e=p();if(void 0===e[t])return function(t){switch(t){case"CALL_HISTORY_METHOD":return o.CALL_HISTORY_METHOD;case"routerMiddleware":return i}return}(t);var n=e[t];return"__INTENTIONAL_UNDEFINED__"===n?void 0:n}function d(t,e){var n=p();if("object"!==(void 0===t?"undefined":r(t)))return n[t]=void 0===e?"__INTENTIONAL_UNDEFINED__":e,function(){m(t)};Object.keys(t).forEach((function(e){n[e]=t[e]}))}function m(t){var e=p();delete e[t],0==Object.keys(e).length&&delete c()[u]}function y(t){var e=p(),n=Object.keys(t),r={};function o(){n.forEach((function(t){e[t]=r[t]}))}return function(i){n.forEach((function(n){r[n]=e[n],e[n]=t[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function t(t,e){Object.defineProperty(f,t,{value:e,enumerable:!1,
62configurable:!0})}t("__get__",h),t("__GetDependency__",h),t("__Rewire__",d),t("__set__",d),t("__reset__",m),t("__ResetDependency__",m),t("__with__",y)}();var g=void 0===i?"undefined":r(i);function v(t,e){Object.defineProperty(i,t,{value:e,enumerable:!1,configurable:!0})}"object"!==g&&"function"!==g||!Object.isExtensible(i)||(v("__get__",h),v("__GetDependency__",h),v("__Rewire__",d),v("__set__",d),v("__reset__",m),v("__ResetDependency__",m),v("__with__",y),v("__RewireAPI__",f)),e.__get__=h,e.__GetDependency__=h,e.__Rewire__=d,e.__set__=d,e.__ResetDependency__=m,e.__RewireAPI__=f}).call(this,n(6))},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.__RewireAPI__=e.__ResetDependency__=e.__set__=e.__Rewire__=e.__GetDependency__=e.__get__=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(22),i=function(t){var e=t.getIn,n=t.toJS,r=function(t){return n(e(t,["router","location"]))};return{getLocation:r,getAction:function(t){return n(e(t,["router","action"]))},createMatchSelector:function(t){var e=null,n=null;return function(o){var i=(r(o)||{}).pathname;if(i===e)return n;e=i;var a=h("matchPath")(i,t);return a&&n&&a.url===n.url||(n=a),n}}}};function a(){try{if(t)return t}catch(t){try{if(window)return window}catch(t){return this}}}e.default=h("createSelectors");var s,l=null;function u(){if(null===l){var t=a();t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),l=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return l}function c(){var t=a();return t.__$$GLOBAL_REWIRE_REGISTRY__||(t.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function p(){var t=u(),e=c(),n=e[t];return n||(e[t]=Object.create(null),n=e[t]),n}(s=a()).__rewire_reset_all__||(s.__rewire_reset_all__=function(){s.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var f={};function h(t){var e=p();if(void 0===e[t])return function(t){switch(t){case"matchPath":return o.matchPath;case"createSelectors":return i}return}(t);var n=e[t];return"__INTENTIONAL_UNDEFINED__"===n?void 0:n}function d(t,e){var n=p();if("object"!==(void 0===t?"undefined":r(t)))return n[t]=void 0===e?"__INTENTIONAL_UNDEFINED__":e,function(){m(t)};Object.keys(t).forEach((function(e){n[e]=t[e]}))}function m(t){var e=p();delete e[t],0==Object.keys(e).length&&delete c()[u]}function y(t){var e=p(),n=Object.keys(t),r={};function o(){n.forEach((function(t){e[t]=r[t]}))}return function(i){n.forEach((function(n){r[n]=e[n],e[n]=t[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function t(t,e){Object.defineProperty(f,t,{value:e,enumerable:!1,configurable:!0})}t("__get__",h),t("__GetDependency__",h),t("__Rewire__",d),t("__set__",d),t("__reset__",m),t("__ResetDependency__",m),t("__with__",y)}();var g=void 0===i?"undefined":r(i);function v(t,e){Object.defineProperty(i,t,{value:e,enumerable:!1,configurable:!0})}"object"!==g&&"function"!==g||!Object.isExtensible(i)||(v("__get__",h),v("__GetDependency__",h),v("__Rewire__",d),v("__set__",d),v("__reset__",m),v("__ResetDependency__",m),v("__with__",y),v("__RewireAPI__",f)),e.__get__=h,e.__GetDependency__=h,e.__Rewire__=d,e.__set__=d,e.__ResetDependency__=m,e.__RewireAPI__=f}).call(this,n(6))},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.__RewireAPI__=e.__ResetDependency__=e.__set__=e.__Rewire__=e.__GetDependency__=e.__get__=void 0;var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a=n(94),s=(r=a)&&r.__esModule?r:{default:r};var l={fromJS:function(t){return t},getIn:y("getIn"),merge:function(t,e){return i({},t,e)},toJS:function(t){return t}};function u(){try{if(t)return t}catch(t){try{if(window)return window}
62catch(t){return this}}}e.default=y("structure");var c,p=null;function f(){if(null===p){var t=u();t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),p=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return p}function h(){var t=u();return t.__$$GLOBAL_REWIRE_REGISTRY__||(t.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function d(){var t=f(),e=h(),n=e[t];return n||(e[t]=Object.create(null),n=e[t]),n}(c=u()).__rewire_reset_all__||(c.__rewire_reset_all__=function(){c.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var m={};function y(t){var e=d();if(void 0===e[t])return function(t){switch(t){case"getIn":return s.default;case"structure":return l}return}(t);var n=e[t];return"__INTENTIONAL_UNDEFINED__"===n?void 0:n}function g(t,e){var n=d();if("object"!==(void 0===t?"undefined":o(t)))return n[t]=void 0===e?"__INTENTIONAL_UNDEFINED__":e,function(){v(t)};Object.keys(t).forEach((function(e){n[e]=t[e]}))}function v(t){var e=d();delete e[t],0==Object.keys(e).length&&delete h()[f]}function _(t){var e=d(),n=Object.keys(t),r={};function o(){n.forEach((function(t){e[t]=r[t]}))}return function(i){n.forEach((function(n){r[n]=e[n],e[n]=t[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function t(t,e){Object.defineProperty(m,t,{value:e,enumerable:!1,configurable:!0})}t("__get__",y),t("__GetDependency__",y),t("__Rewire__",g),t("__set__",g),t("__reset__",v),t("__ResetDependency__",v),t("__with__",_)}();var b=void 0===l?"undefined":o(l);function x(t,e){Object.defineProperty(l,t,{value:e,enumerable:!1,configurable:!0})}"object"!==b&&"function"!==b||!Object.isExtensible(l)||(x("__get__",y),x("__GetDependency__",y),x("__Rewire__",g),x("__set__",g),x("__reset__",v),x("__ResetDependency__",v),x("__with__",_),x("__RewireAPI__",m)),e.__get__=y,e.__GetDependency__=y,e.__Rewire__=g,e.__set__=g,e.__ResetDependency__=v,e.__RewireAPI__=m}).call(this,n(6))},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(t,e){if(!t)return t;var n=e.length;if(n){for(var r=t,o=0;o<n&&r;++o)r=r[e[o]];return r}};function o(){try{if(t)return t}catch(t){try{if(window)return window}catch(t){return this}}}e.default=p("getIn");var i,a=null;function s(){if(null===a){var t=o();t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(t.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),a=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return a}function l(){var t=o();return t.__$$GLOBAL_REWIRE_REGISTRY__||(t.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function u(){var t=s(),e=l(),n=e[t];return n||(e[t]=Object.create(null),n=e[t]),n}(i=o()).__rewire_reset_all__||(i.__rewire_reset_all__=function(){i.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var c={};function p(t){var e=u();if(void 0===e[t])return function(t){switch(t){case"getIn":return r}return}(t);var n=e[t];return"__INTENTIONAL_UNDEFINED__"===n?void 0:n}function f(t,e){var r=u();if("object"!==(void 0===t?"undefined":n(t)))return r[t]=void 0===e?"__INTENTIONAL_UNDEFINED__":e,function(){h(t)};Object.keys(t).forEach((function(e){r[e]=t[e]}))}function h(t){var e=u();delete e[t],0==Object.keys(e).length&&delete l()[s]}function d(t){var e=u(),n=Object.keys(t),r={};function o(){n.forEach((function(t){e[t]=r[t]}))}return function(i){n.forEach((function(n){r[n]=e[n],e[n]=t[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function t(t,e){Object.defineProperty(c,t,{value:e,enumerable:!1,configurable:!0})}t("__get__",p),t("__GetDependency__",p),t("__Rewire__",f),t("__set__",f),t("__reset__",h),t("__ResetDependency__",h),t("__with__",d)}();var m=void 0===r?"undefined":n(r);function y(t,e){Object.defineProperty(r,t,{value:e,enumerable:!1,configurable:!0})}"object"!==m&&"function"!==m||!Object.isExtensible(r)||(y("__get__",p),y("__GetDependency__",p),y("__Rewire__",f),y("__set__",f),y("__reset__",h),y("__ResetDependency__",h),y("__with__",d),y("__RewireAPI__",c)),e.__get__=p,e.__GetDependency__=p,e.__Rewire__=f,e.__set__=f,e.__ResetDependency__=h,e.__RewireAPI__=c}).call(this,n(6))},function(t,e,n){var r=n(96);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(105)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(97);(e=t.exports=n(43)(!1)).i(n(98),""),e.push([t.i,'@font-face{font-family:"Spectral";font-style:normal;font-weight:normal;src:url('+r(n(99))+') format("truetype")}@font-face{font-family:"Spectral";font-style:italic;font-weight:normal;src:url('+r(n(100))+') format("truetype")}@font-face{font-family:"Spectral";font-style:normal;font-weight:500;src:url('+r(n(101))+') format("truetype")}@font-face{font-family:"Spectral";font-style:normal;font-weight:bold;src:url('+r(n(102))+') format("truetype")}@font-face{font-family:"Jost";font-style:normal;font-weight:normal;src:url('+r(n(103))+') format("truetype")}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-size:20px;background-color:#fbfaf6;background-size:30%;font-family:"Spectral",serif}@media(min-width: 700px){#app{display:flex;flex-direction:column}}#headerContainer{width:100vw;padding:5px 10px;border-bottom:1px solid #e2dfcf}@media(min-width: 700px){#contentMapWrapper{display:flex;flex-direction:row;flex:1}}.headerTopContent{padding:15px 15px;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.headerTopContent .sg-button{font-size:.8em;padding:3px 10px}#contentContainer{overflow-x:hidden;z-index:999;-webkit-box-shadow:2px 3px 15px 0px rgba(168,168,168,.67);box-shadow:2px 3px 15px 0px rgba(168,168,168,.67);-webkit-overflow-scrolling:touch;max-width:700px}@media(min-width: 700px){#contentContainer{display:flex;flex-direction:column;flex:1;height:100vh}}#content{clear:both;display:flex;flex-direction:column;height:100%}@media(min-width: 700px){#content{overflow-y:scroll}}#content>*:first-child{flex:1}#mapContainer{display:none;flex:0}@media(min-width: 700px){#mapContainer{display:block;height:100vh;flex:1}#mapContainer>.mapboxgl-map{flex:1;height:100vh}}h1,h2,h3,h4{font-family:"Jost",sans-serif;font-weight:500;margin:0}h1{font-size:1.5em;line-height:1.5em;vertical-align:middle}h1 img{margin-bottom:-4px;margin-right:10px}h2{font-size:1.2em}a{color:#000}a:hover{color:#575448}p{margin:.2em 0 1em 0}.darkHead{background:#263042}#logo{line-height:30px;vertical-align:middle;font-family:"Jost",serif;font-weight:500;text-decoration:none;color:#f7f5ed}#logo svg{width:30px;float:left;margin-right:.5em}.logos{display:flex;flex-direction:column;justify-content:flex-start;padding:20;align-items:flex-start;padding-top:1em}.logos img{max-width:100%;margin-bottom:1.5em}.aboutSection{margin:2em 0 0 0;font-family:"Jost",serif;background:#fff;border-top:1px solid #eee;font-size:.8em;line-height:1.5em}.aboutSection h3{margin-bottom:1em}.aboutSection p{margin-top:1em;text-transform:none}.error{color:red}.success{color:green}#stores{margin-bottom:28px;margin-top:1em}.mapboxgl-popup-content{overflow-y:scroll;-webkit-overflow-scrolling:touch;max-height:190px}#popupContainer{clear:both}#popupContainer>a{display:block;clear:both;text-align:center;border-bottom:1px solid #000;margin:10px 0;padding-bottom:8px}#popupContainer>a:last-child{border-bottom:none;margin:0;padding-bottom:0}.modalPaddingBottom{height:30px;clear:both}.newsletterMessage{background:#ffdc51;padding:1rem;border-radius:1px;margin:3em 0;display:flex}.newsletterMessage .nmImage{width:50px;margin-left:1em}.newsletterMessage .nmImage img{width:100%}.newsletterMessage .nmContent{flex-grow:10;flex-shrink:1;flex-basis:auto}.newsletterMessage h2{margin-top:0}#place h3{font-family:"Spectral",serif;font-weight:600}#place-header{width:100%;padding:2em 1em;position:relative;transition:all 2s}#place-header::after{content:"";background-color:#2c384c;position:absolute;top:0;left:0;bottom:0;right:0;z-index:-2}#place-header:hover{cursor:pointer}#place-header:hover .galleryButton{opacity:1}#place-header h1{color:#fff;text-align:center;font-size:2.2em;line-height:1.2em}@media(max-width: 768px){#place-header h1{font-size:1.6em}}#place-header .stones{margin-top:2em;display:flex;flex-direction:row;align-items:flex-start;justify-content:center;flex-wrap:wrap;gap:1em}#place-header .stones .stone{width:120px}@media(max-width: 768px){#place-header .stones .stone{width:100px}}#place-header .stones .stone img{width:70px;height:70px;object-fit:cover;border-radius:50%;border:2px solid #fff;display:block;margin:0 auto;cursor:pointer;transition:all 100ms}#place-header .stones .stone img:hover{transform:scale(1.05);box-shadow:0 0 20px #262f42}@media(max-width: 768px){#place-header .stones .stone img{width:60px;height:60px}}#place-header .stones .stone p{color:#fff;text-align:center;margin:5px 0;flex:1 0 auto;line-height:1.2em;font-size:.7em;font-family:"Jost",serif}@media(max-width: 768px){#place-header .stones .stone p{font-size:.7em}}@media(max-width: 768px){#place-header .stones{gap:.5em}}#place-header .galleryButton{position:absolute;
62left:10px;bottom:10px;opacity:.8;cursor:pointer}#place-header .galleryButton:hover{opacity:1}#place-header .galleryButton img{width:50%}#place-header-background{position:absolute;opacity:.2;-webkit-filter:grayscale(100%) blur(5px);filter:grayscale(100%) blur(5px);top:0;left:0;bottom:0;right:0;background-size:cover;background-position:center;z-index:-1;animation-name:imageBlur;animation-duration:1000ms}#place-header-background:hover{-webkit-filter:grayscale(100%) blur(0px);filter:grayscale(100%) blur(0px);opacity:1}@keyframes imageBlur{from{filter:grayscale(100%) blur(10px);opacity:0}to{filter:grayscale(100%) blur(5px);opacity:.2}}.padded-content{padding:15px 15px}.popup-portraits{max-width:300px}.popup-portraits img{width:50px;height:50px;margin-right:5px;border-radius:4px;border-bottom:2px solid #c1c1c1;background-size:50px}.popup-title{color:#000;font-size:1.2em;font-family:"Spectral",serif;font-weight:normal;text-decoration:underline}#place-gallery{display:none !important}#place-gallery-mobile{position:absolute;left:0;right:0}#place-gallery-mobile img{margin:0 5px;border-radius:4px;box-shadow:0px 3px 7px 0 rgba(45,41,35,.25)}#place-gallery-mobile-height-div{height:230px}.slick-track{height:200px}.slick-list{overflow:visible}#infoTextSpan{display:none}@media(min-width: 400px){#infoTextSpan{display:inline}}a.mapbox-improve-map{display:none}.closeModalButton{font-weight:600;text-align:center;padding:.3em 0;border-bottom:1px solid rgba(67,60,48,.2);border-top:1px solid rgba(67,60,48,.2)}.closeModalButton:hover{cursor:pointer}.upperCloseButton{display:block}button.user-location-button{background:url('+r(n(104))+') no-repeat;background-size:14px;background-position:center center}.search-component-container{padding:10px}.search-component{position:relative}.search-component .search-input{width:100%;box-sizing:border-box;height:40px;display:flex;flex-direction:row}.search-component .search-input input[type=search]{display:inline-block;-webkit-appearance:none;flex:1;padding:5px 10px;font-size:1em;border:1px solid #e2dfcf;opacity:.9;border-radius:1px}.search-component .search-input input[type=search]:focus{outline:none;opacity:1}.search-component .search-input input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.search-component .search-input a{width:0px;opacity:0;border-left:none;fill:#fff;transition:200ms ease-in}.search-component .search-input a.visible{width:40px;opacity:1}.search-component .search-input a svg{width:40px;height:40px;display:block;margin:auto;stroke:#d4d6d9}.search-component .search-input a:hover svg{stroke:#fff}.search-component .results{list-style-position:inside;padding:0;margin:0;width:100%;position:absolute;box-sizing:border-box;background-color:#fdfdf9;z-index:5;box-shadow:0 19px 40px rgba(0,0,0,.1882352941)}.search-component .results li{list-style:none;border-bottom:1px solid #e2dfcf}.search-component .results li a{text-decoration:none;width:100%;height:100%;display:flex;flex-direction:row;padding:10px}.search-component .results li a:hover{cursor:pointer;background:#eeece7}.search-component .results li a.active{background:#eeece7}.search-component .results li img{height:50px;width:50px;align-self:center;border-radius:25px}.search-component .results li p{flex:1;padding:0 10px;vertical-align:middle;font-size:.8em;display:table-cell;margin:auto}.search-component .results li p .address{font-size:.8em;color:#3c3c3c;font-style:italic;white-space:pre;display:block}@media(min-width: 768px){.upperCloseButton{display:none}#place-gallery{display:block !important}#place-gallery-mobile{display:none !important}#place-gallery-mobile-height-div{display:none !important}}#place-description{margin:0;padding:1em}#place-description .collapsed{display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden}#place-audio{background-color:rgba(0,0,0,.05);padding:15px;margin-bottom:20px;display:flex}#place-audio audio{flex:9;align-self:center}#place-audio .audio-copyright{flex:1;padding:.4em;align-self:center}#place-audio .audio-copyright img{width:100%}#place-copyright{font-size:.9em}.ug-thumb-wrapper{border-radius:4px;box-shadow:0px 3px 7px 0 rgba(45,41,35,.25)}.ug-thumb-wrapper:hover{z-index:1099;border-radius:4px;box-shadow:0px 10px 20px 0 rgba(0,0,0,.2)}.ug-thumb-wrapper .ug-textpanel-textwrapper{height:46px}.ug-thumb-wrapper .ug-textpanel-textwrapper .ug-textpanel-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ug-textpanel-title{text-shadow:2px 2px 2px rgba(0,0,0,.57);font-weight:600 !important}.ug-textpanel{background:none}.ug-textpanel-bg{background:none !important}.ug-lightbox-top-panel{bottom:0;top:auto}.sg-list{list-style-position:inside;padding:0;margin:0;width:100%;box-sizing:border-box;font-family:"Jost",sans-serif}.sg-list a{text-decoration:none}.sg-list li{list-style:none;border-bottom:1px solid #e2dfcf}.sg-list li a{text-decoration:none;width:100%;height:100%;display:flex;flex-direction:row;padding:8px 15px;font-size:1.2em}.sg-list li a:hover{background:#eeece7;cursor:pointer}.sg-list li img{height:50px;width:50px;align-self:center;border-radius:25px}.sg-list li p{flex:1;padding:0 10px;vertical-align:middle;font-size:.8em;display:table-cell;margin:auto}.sg-button{border-bottom:2px solid #acacac;background:#111c2f;color:#ecf1f8;border:none;text-decoration:none;padding:10px 20px;border-radius:5px;font-size:1em;font-weight:500}.sg-button:hover{background:#243858;cursor:pointer;color:#fff}.sg-button-primary{background-color:#edeae1;color:#2e2d21;border:none;width:100%}.sg-button-primary:hover{background-color:#e4dfd1;color:#000}.sg-button-place{background-color:#eae6dd;color:#000;border:none;font-family:"Spectral",serif;width:100%}.sg-button-place:hover{background-color:#e5e0d4;color:#000}.sg-form input[type=text],.sg-form input[type=password],.sg-form input[type=email],.sg-form input[type=url],.sg-form input[type=date],.sg-form input[type=month],.sg-form input[type=time],.sg-form input[type=datetime],.sg-form input[type=datetime-local],.sg-form input[type=week],.sg-form input[type=number],.sg-form input[type=search],.sg-form input[type=tel],.sg-form input[type=color],.sg-form select,.sg-form textarea{box-shadow:none}.sg-form input,.sg-form textarea{line-height:2em;width:100%;font-size:.9em;padding:5px 10px}.sg-form label{font-size:.8em;font-weight:bold}.sg-form .sg-form-group{margin-bottom:10px}.sg-form .sg-submit-button{margin-top:10px;margin-bottom:10px}ul.checklist{list-style-type:none;padding:0}ul.checklist li{padding-left:30px;margin-bottom:20px}ul.checklist li:before{content:"\\2713";padding-right:5px;margin-left:-30px}#lightboxBackdrop{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}#footer{list-style-type:none;margin:0;color:#c1c1c1;font-size:.8em;padding-left:0;border-top:1px solid #eee}#footer li{float:left;margin:10px}@media(max-width: 768px){#footer li{float:left;text-align:center;margin:4px}}#footer li a{text-decoration:none}#footer li .icon{height:25px;width:25px;display:block;opacity:.7}#footer li .icon :hover{opacity:1}@media(max-width: 768px){#footer{margin-top:40px;margin-bottom:80px;text-align:center;padding:0}}',""])},function(t,e){t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.
62slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},function(t,e,n){(t.exports=n(43)(!1)).push([t.i,".mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mapboxgl-canvas{position:absolute;left:0;top:0}.mapboxgl-map:-webkit-full-screen{width:100%;height:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.mapboxgl-ctrl-top-left{top:0;left:0}.mapboxgl-ctrl-top-right{top:0;right:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{right:0;bottom:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{margin:10px 0 0 10px;float:left}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{margin:10px 10px 0 0;float:right}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0 0 10px 10px;float:left}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin:0 10px 10px 0;float:right}.mapboxgl-ctrl-group{border-radius:4px;background:#fff}.mapboxgl-ctrl-group:not(:empty){-moz-box-shadow:0 0 2px rgba(0,0,0,.1);-webkit-box-shadow:0 0 2px rgba(0,0,0,.1);box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl button::-moz-focus-inner{border:0;padding:0}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.mapboxgl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:focus:only-child{border-radius:inherit}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E\")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E\")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E\")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E\")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E\")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E\")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3
62E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3
62E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{-webkit-animation:mapboxgl-spin 2s linear infinite;-moz-animation:mapboxgl-spin 2s infinite linear;-o-animation:mapboxgl-spin 2s infinite linear;-ms-animation:mapboxgl-spin 2s infinite linear;animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3
62E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3
62E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3
62E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E\")}}@-webkit-keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@-moz-keyframes mapboxgl-spin{0%{-moz-transform:rotate(0deg)}to{-moz-transform:rotate(1turn)}}@-o-keyframes mapboxgl-spin{0%{-o-transform:rotate(0deg)}to{-o-transform:rotate(1turn)}}@-ms-keyframes mapboxgl-spin{0%{-ms-transform:rotate(0deg)}to{-ms-transform:rotate(1turn)}}@keyframes mapboxgl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg opacity='.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg opacity='.9' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3
62E%3C/g%3E%3C/svg%3E\")}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.
6212.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/svg%3E\")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E\");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner,.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E\")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E\")}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;box-sizing:border-box}.mapboxgl-popup{position:absolute;top:0;left:0;display:-webkit-flex;display:flex;will-change:transform;pointer-events:none}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{-webkit-flex-direction:column;flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{-webkit-flex-direction:column-reverse;flex-direction:column-reverse}.mapboxgl-popup-anchor-left{-webkit-flex-direction:row;flex-direction:row}.mapboxgl-popup-anchor-right{-webkit-flex-direction:row-reverse;flex-direction:row-reverse}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{-webkit-align-self:center;align-self:center;border-top:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{-webkit-align-self:center;align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{-webkit-align-self:center;align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{-webkit-align-self:center;align-self:center;border-right:none;border-left-color:#fff}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:10px 10px 15px;pointer-events:auto}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.mapboxgl-user-location-dot:before{content:\"\";position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;-moz-animation:mapboxgl-user-location-dot-pulse 2s infinite;-ms-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:\"\";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);opacity:0}
62to{-webkit-transform:scale(1);opacity:0}}@-ms-keyframes mapboxgl-user-location-dot-pulse{0%{-ms-transform:scale(1);opacity:1}70%{-ms-transform:scale(3);opacity:0}to{-ms-transform:scale(1);opacity:0}}@keyframes mapboxgl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:rgba(29,161,242,.2);width:1px;height:1px;border-radius:100%}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}@media print{.mapbox-improve-map{display:none}}",""])},function(t,e){t.exports="/dist/fonts/Spectral-Regular.ttf"},function(t,e){t.exports="/dist/fonts/Spectral-Italic.ttf"},function(t,e){t.exports="/dist/fonts/Spectral-SemiBold.ttf"},function(t,e){t.exports="/dist/fonts/Spectral-Bold.ttf"},function(t,e){t.exports="/dist/fonts/Jost-400-Book.ttf"},function(t,e){t.exports="/dist/images/locale.f0e42ebde615b62828da3b9bf06487e3.png"},function(t,e,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),s=function(t,e){return e?e.querySelector(t):document.querySelector(t)},l=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var r=s.call(this,t,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),u=null,c=0,p=[],f=n(106);function h(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(_(r.parts[a],e))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(_(r.parts[a],e));i[r.id]={id:r.id,refs:1,parts:s}}}}function d(t,e){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=e.base?i[0]+e.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function m(t,e){var n=l(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=p[p.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),p.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=l(t.insertAt.before,n);n.insertBefore(e,o)}}function y(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=p.indexOf(t);e>=0&&p.splice(e,1)}function g(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return v(e,t.attrs),m(t,e),e}function v(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function _(t,e){var n,r,o,i;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}if(e.singleton){var a=c++;n=u||(u=g(e)),r=w.bind(null,n,a,!1),o=w.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",v(e,t.attrs),m(t,e),e}(e),r=S.bind(null,n,e),o=function(){y(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(e),r=E.bind(null,n),o=function(){y(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.
62insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=d(t,e);return h(n,e),function(t){for(var r=[],o=0;o<n.length;o++){var a=n[o];(s=i[a.id]).refs--,r.push(s)}t&&h(d(t,e),e);for(o=0;o<r.length;o++){var s;if(0===(s=r[o]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete i[s.id]}}}};var b,x=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function w(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=x(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function E(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function S(t,e,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=f(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var o,i=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?t:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}(t.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function o(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}(e=t.exports=n?r:o).supported=r,e.unsupported=o},function(t,e,n){"use strict";function r(t,e,n){if(null!==t){var o,i,a,s,l,u,c,p,f,h,d=0,m=0,y=t.type,g="FeatureCollection"===y,v="Feature"===y,_=g?t.features.length:1;for(o=0;o<_;o++)for(c=(h=!!(f=g?t.features[o].geometry:v?t.geometry:t)&&"GeometryCollection"===f.type)?f.geometries.length:1,i=0;i<c;i++){var b=0;if(null!==(u=h?f.geometries[i]:f)){p=u.coordinates;var x=u.type;switch(d=!n||"Polygon"!==x&&"MultiPolygon"!==x?0:1,x){case null:break;case"Point":e(p,m,o,b),m++,b++;break;case"LineString":case"MultiPoint":for(a=0;a<p.length;a++)e(p[a],m,o,b),m++,"MultiPoint"===x&&b++;"LineString"===x&&b++;break;case"Polygon":case"MultiLineString":for(a=0;a<p.length;a++){for(s=0;s<p[a].length-d;s++)e(p[a][s],m,o,b),m++;"MultiLineString"===x&&b++}"Polygon"===x&&b++;break;case"MultiPolygon":for(a=0;a<p.length;a++){for(s=0;s<p[a].length;s++)for(l=0;l<p[a][s].length-d;l++)e(p[a][s][l],m,o,b),m++;b++}break;case"GeometryCollection":for(a=0;a<u.geometries.length;a++)r(u.geometries[a],e,n);break;default:throw new Error("Unknown Geometry Type")}}}}}function o(t,e,n,o){var i=n;return r(t,(function(t,r,o,a){i=0===r&&void 0===n?t:e(i,t,r,o,a)}),o),i}function i(t,e){var n;switch(t.type){case"FeatureCollection":for(n=0;n<t.features.length;n++)e(t.features[n].properties,n);break;case"Feature":e(t.properties,0)}}function a(t,e,n){var r=n;return i(t,(function(t,o){r=0===o&&void 0===n?t:e(r,t,o)})),r}function s(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var n=0;n<t.features.length;n++)e(t.features[n],n)}function l(t,e,n){var r=n;return s(t,(function(t,o){r=0===o&&void 0===n?t:e(r,t,o)})),r}function u(t){var e=[];return r(t,(function(t){e.push(t)})),e}function c(t,e){var n,r,o,i,a,s,l,u,c=0,p="FeatureCollection"===t.type,f="Feature"===t.type,h=p?t.features.length:1;for(n=0;n<h;n++){for(s=p?t.features[n].geometry:f?t.geometry:t,u=p?t.features[n].properties:f?t.properties:{},a=(l=!!s&&"GeometryCollection"===s.type)?s.geometries.length:1,o=0;o<a;o++)if(null!==(i=l?s.geometries[o]:s))switch(i.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":e(i,c,u);break;case"GeometryCollection":for(r=0;r<i.geometries.length;r++)e(i.geometries[r],c,u);break;default:throw new Error("Unknown Geometry Type")}else e(null,c,u);c++}}function p(t,e,n){var r=n;return c(t,(function(t,o,i){r=0===o&&void 0===n?t:e(r,t,o,i)})),r}function f(t,e){c(t,(function(t,n,r){var o,i=null===t?null:t.type;switch(i){case null:case"Point":case"LineString":case"Polygon":return void e(y(t,r),n,0)}switch(i){case"MultiPoint":o="Point";break;case"MultiLineString":o="LineString";break;case"MultiPolygon":o="Polygon"}
62t.coordinates.forEach((function(t,i){e(y({type:o,coordinates:t},r),n,i)}))}))}function h(t,e,n){var r=n;return f(t,(function(t,o,i){r=0===o&&0===i&&void 0===n?t:e(r,t,o,i)})),r}function d(t,e){f(t,(function(t,n,r){var i=0;if(t.geometry){var a=t.geometry.type;"Point"!==a&&"MultiPoint"!==a&&o(t,(function(o,a){var s=g([o,a],t.properties);return e(s,n,r,i),i++,a}))}}))}function m(t,e,n){var r=n,o=!1;return d(t,(function(t,i,a,s){r=!1===o&&void 0===n?t:e(r,t,i,a,s),o=!0})),r}function y(t,e){if(void 0===t)throw new Error("No geometry passed");return{type:"Feature",properties:e||{},geometry:t}}function g(t,e){if(!t)throw new Error("No coordinates passed");if(t.length<2)throw new Error("Coordinates must be an array of two or more positions");return{type:"Feature",properties:e||{},geometry:{type:"LineString",coordinates:t}}}function v(t,e){if(!t)throw new Error("geojson is required");var n=t.geometry?t.geometry.type:t.type;if(!n)throw new Error("invalid geojson");if("FeatureCollection"===n)throw new Error("FeatureCollection is not supported");if("GeometryCollection"===n)throw new Error("GeometryCollection is not supported");var r=t.geometry?t.geometry.coordinates:t.coordinates;if(!r)throw new Error("geojson must contain coordinates");switch(n){case"LineString":return void e(r,0,0);case"Polygon":case"MultiLineString":for(var o=0,i=0;i<r.length;i++)"MultiLineString"===n&&(o=i),e(r[i],i,o);return;case"MultiPolygon":for(var a=0;a<r.length;a++)for(var s=0;s<r[a].length;s++)e(r[a][s],s,a);return;default:throw new Error(n+" geometry not supported")}}function _(t,e,n){var r=n;return v(t,(function(t,o,i){r=0===o&&void 0===n?t:e(r,t,o,i)})),r}n.r(e),n.d(e,"coordEach",(function(){return r})),n.d(e,"coordReduce",(function(){return o})),n.d(e,"propEach",(function(){return i})),n.d(e,"propReduce",(function(){return a})),n.d(e,"featureEach",(function(){return s})),n.d(e,"featureReduce",(function(){return l})),n.d(e,"coordAll",(function(){return u})),n.d(e,"geomEach",(function(){return c})),n.d(e,"geomReduce",(function(){return p})),n.d(e,"flattenEach",(function(){return f})),n.d(e,"flattenReduce",(function(){return h})),n.d(e,"segmentEach",(function(){return d})),n.d(e,"segmentReduce",(function(){return m})),n.d(e,"feature",(function(){return y})),n.d(e,"lineString",(function(){return g})),n.d(e,"lineEach",(function(){return v})),n.d(e,"lineReduce",(function(){return _}))},function(t,e,n){"use strict";var r=n(7),o=n(44),i=n(112),a=n(32);function s(t){var e=new i(t),n=o(i.prototype.request,e);return r.extend(n,i.prototype,e),r.extend(n,e),n}var l=s(a);l.Axios=i,l.create=function(t){return s(r.merge(a,t))},l.Cancel=n(48),l.CancelToken=n(126),l.isCancel=n(47),l.all=function(t){return Promise.all(t)},l.spread=n(127),t.exports=l,t.exports.default=l},function(t,e){ 63/*! 64 * Determine if an object is a Buffer 65 * 66 * @author Feross Aboukhadijeh <https://feross.org> 67 * @license MIT 68 */ 69t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";var r=n(32),o=n(7),i=n(121),a=n(122);function s(t){this.defaults=t,this.interceptors={request:new i,response:new i}}s.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),(t=o.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},o.forEach(["delete","get","head","options"],(function(t){s.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}})),o.forEach(["post","put","patch"],(function(t){s.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))}})),t.exports=s},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var l,u=[],c=!1,p=-1;function f(){c&&l&&(c=!1,l.length?u=l.concat(u):p=-1,u.length&&h())}function h(){if(!c){var t=s(f);c=!0;for(var e=u.length;e;){for(l=u,u=[];++p<e;)l&&l[p].run();p=-1,e=u.length}l=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);
vendor: 4,994 bytes, line 69
69if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function m(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||c||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(7);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(46);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t}},function(t,e,n){"use strict";var r=n(7);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}return i&&(t+=(-1===t.indexOf("?")?"?":"&")+i),t}},function(t,e,n){"use strict";var r=n(7),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(7);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(7);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(7);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,n){"use strict";var r=n(7),o=n(123),i=n(47),a=n(32),s=n(124),l=n(125);function u(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return u(t),t.baseURL&&!s(t.url)&&(t.url=l(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return u(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(u(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(7);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";
69t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(48);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e){t.exports="/dist/images/logo_saebig.54342971a4b87325d196006ff9a8b180.png"},function(t,e){t.exports="/dist/images/logo_slub.cefc4c2e2675e7f19b850da139fe6f04.png"},function(t,e,n){"use strict";var r=n(131),o=[],i=[],a=r.makeRequestCallFromTimer((function(){if(i.length)throw i.shift()}));function s(t){var e;(e=o.length?o.pop():new l).task=t,r(e)}function l(){this.task=null}t.exports=s,l.prototype.call=function(){try{this.task.call()}catch(t){s.onerror?s.onerror(t):(i.push(t),a())}finally{this.task=null,o[o.length]=this}}},function(t,e,n){"use strict";(function(e){function n(t){o.length||(r(),!0),o[o.length]=t}t.exports=n;var r,o=[],i=0;function a(){for(;i<o.length;){var t=i;if(i+=1,o[t].call(),i>1024){for(var e=0,n=o.length-i;e<n;e++)o[e]=o[e+i];o.length-=i,i=0}}o.length=0,i=0,!1}var s,l,u,c=void 0!==e?e:self,p=c.MutationObserver||c.WebKitMutationObserver;function f(t){return function(){var e=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(e),clearInterval(n),t()}}}"function"==typeof p?(s=1,l=new p(a),u=document.createTextNode(""),l.observe(u,{characterData:!0}),r=function(){s=-s,u.data=s}):r=f(a),n.requestFlush=r,n.makeRequestCallFromTimer=f}).call(this,n(6))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};var o,i=n(133),a=(o=i)&&o.__esModule?o:{default:o},s=n(33);e.generateCSS=function t(e,n,r,o){var i=n.reduce(s.recursiveMerge),a={},u={},c={};
69return Object.keys(i).forEach((function(t){":"===t[0]?c[t]=i[t]:"@"===t[0]?u[t]=i[t]:a[t]=i[t]})),l(e,a,r,o)+Object.keys(c).map((function(t){return l(e+t,c[t],r,o)})).join("")+Object.keys(u).map((function(n){return n+"{"+t(e,[u[n]],r,o)+"}"})).join("")};var l=function(t,e,n,o){var i=function(t,e){var n={};return Object.keys(t).forEach((function(r){e&&e.hasOwnProperty(r)?n[r]=e[r](t[r]):n[r]=t[r]})),n}(e,n),l=(0,a.default)(i),u=(0,s.flatten)((0,s.objectToPairs)(l).map((function(t){var e,n,o=r(t,2),i=o[0],a=o[1];if(Array.isArray(a)){var s=(e=[],n=[],a.forEach((function(t){0===t.indexOf("-")?e.push(t):n.push(t)})),e.sort(),n.sort(),{v:e.concat(n).map((function(t){return[i,t]}))});if("object"==typeof s)return s.v}return[[i,a]]}))).map((function(t){var e=r(t,2),n=e[0],i=e[1],a=(0,s.stringifyValue)(n,i),l=(0,s.kebabifyStyleName)(n)+":"+a+";";return!1===o?l:(0,s.importantify)(l)})).join("");return u?t+"{"+u+"}":""};e.generateCSSRuleset=l},function(t,e,n){t.exports=n(134)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){return Object.keys(e).forEach((function(n){var i=e[n];i instanceof Object&&!Array.isArray(i)?e[n]=t(i):Object.keys(r.default).forEach((function(t){r.default[t][n]&&(e[t+(0,o.default)(n)]=i)}))})),Object.keys(e).forEach((function(t){[].concat(e[t]).forEach((function(n,r){y.forEach((function(r){return function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];Object.keys(e).forEach((function(n){var r=t[n];Array.isArray(r)?[].concat(e[n]).forEach((function(e){var o=r.indexOf(e);o>-1&&t[n].splice(o,1),t[n].push(e)})):t[n]=e[n]}))}(e,r(t,n))}))}))})),(0,i.default)(e)};var r=m(n(51)),o=m(n(52)),i=m(n(135)),a=m(n(137)),s=m(n(138)),l=m(n(139)),u=m(n(140)),c=m(n(141)),p=m(n(142)),f=m(n(143)),h=m(n(145)),d=m(n(146));function m(t){return t&&t.__esModule?t:{default:t}}var y=[a.default,s.default,l.default,c.default,p.default,f.default,h.default,d.default,u.default];t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return Object.keys(t).sort((function(t,e){return(0,i.default)(t)&&!(0,i.default)(e)?-1:!(0,i.default)(t)&&(0,i.default)(e)?1:0})).reduce((function(e,n){return e[n]=t[n],e}),{})};var r,o=n(136),i=(r=o)&&r.__esModule?r:{default:r};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null!==t.match(/^(Webkit|Moz|O|ms)/)},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("position"===t&&"sticky"===e)return{position:["-webkit-sticky","sticky"]}},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("string"==typeof e&&!(0,o.default)(e)&&e.indexOf("calc(")>-1)return(0,r.default)(t,e,(function(t,e){return e.replace(/calc\(/g,t+"calc(")}))};var r=i(n(25)),o=i(n(34));function i(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("cursor"===t&&a[e])return(0,i.default)(t,e)};var r,o=n(25),i=(r=o)&&r.__esModule?r:{default:r};var a={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("display"===t&&r[e])return{display:["-webkit-box","-moz-box","-ms-"+e+"box","-webkit-"+e,e]}};var r={flex:!0,"inline-flex":!0};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(a[t]&&s[e])return(0,i.default)(t,e)};var r,o=n(25),i=(r=o)&&r.__esModule?r:{default:r};var a={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},s={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("string"==typeof e&&!(0,o.default)(e)&&null!==e.match(a))return(0,r.default)(t,e)};var r=i(n(25)),o=i(n(34));function i(t){return t&&t.__esModule?t:{default:t}}var a=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;t.exports=e.default},function(t,e,n){"use strict";
69Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("string"==typeof e&&u[t]){var n,s=function(t){if((0,i.default)(t))return t;var e=t.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return e.forEach((function(t,n){e[n]=Object.keys(a.default).reduce((function(e,n){var o="-"+n.toLowerCase()+"-";return Object.keys(a.default[n]).forEach((function(n){var i=(0,r.default)(n);t.indexOf(i)>-1&&"order"!==i&&(e=t.replace(i,o+i)+","+e)})),e}),t)})),e.join(",")}(e),c=s.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter((function(t){return null===t.match(/-moz-|-ms-/)})).join(",");return t.indexOf("Webkit")>-1?l({},t,c):(l(n={},"Webkit"+(0,o.default)(t),c),l(n,t,s),n)}};var r=s(n(144)),o=s(n(52)),i=s(n(34)),a=s(n(51));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0};t.exports=e.default},function(t,e,n){"use strict";n.r(e);var r=/[A-Z]/g,o=/^ms-/,i={};function a(t){return"-"+t.toLowerCase()}e.default=function(t){if(i.hasOwnProperty(t))return i[t];var e=t.replace(r,a);return i[t]=o.test(e)?"-"+e:e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(o[t])return function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n;return t}({},o[t],r[e]||e)};var r={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},o={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msPreferredSize"};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("flexDirection"===t&&"string"==typeof e)return{WebkitBoxOrient:e.indexOf("column")>-1?"vertical":"horizontal",WebkitBoxDirection:e.indexOf("reverse")>-1?"reverse":"normal"};if(o[t])return function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n;return t}({},o[t],r[e]||e)};var r={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},o={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(148);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return(t=r,t&&t.__esModule?t:{default:t}).default;var t}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(0),a=p(i),s=n(53),l=n(149),u=n(55),c=p(n(151));function p(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var d=0,m=function(t){function e(){return f(this,e),h(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"componentDidMount",value:function(){d++,s.canUseDOM&&(this.initialHeight=window.innerHeight)}},{key:"componentWillUnmount",value:function(){if(d=Math.max(d-1,0),s.canUseDOM){var t=window.innerHeight-this.initialHeight;t&&window.scrollTo(0,window.pageYOffset+t)}this.initialHeight=window.innerHeight}},{key:"render",value:function(){var t=this.props.accountForScrollbars&&d<1?{"padding-right":(0,u.getPadding)()+"px"}:{},e=(0,u.getDocumentHeight)()+"px";return a.default.createElement(l.SimpleToggle,{styles:r({"box-sizing":"border-box",overflow:"hidden",position:"relative",height:e},t)})}}]),e}(i.PureComponent);m.defaultProps={accountForScrollbars:!0},e.default=(0,c.default)(m)},function(t,e,n){"use strict";
69Object.defineProperty(e,"__esModule",{value:!0});var r=n(150);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i(r).default}});var o=n(54);function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"SimpleToggle",{enumerable:!0,get:function(){return i(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(0)),o=n(54),i=a(o);function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){var e=t.isActive,n=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["isActive"]);return e?r.default.createElement(i.default,n):null};s.defaultProps=o.defaultProps,e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.default=function(t){return function(e){function n(){var t,e,r;u(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=c(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(i))),r.listenerOptions={capture:!1,passive:!1},c(r,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,e),r(n,[{key:"componentDidMount",value:function(){if(s.canUseDOM){var t=this.props.touchScrollTarget,e=document.body;e&&(0,l.isTouchDevice)()&&(e.addEventListener("touchmove",l.preventTouchMove,this.listenerOptions),t&&(t.addEventListener("touchstart",l.preventInertiaScroll,this.listenerOptions),t.addEventListener("touchmove",l.allowTouchMove,this.listenerOptions)))}}},{key:"componentWillUnmount",value:function(){if(s.canUseDOM){var t=this.props.touchScrollTarget,e=document.body;e&&(0,l.isTouchDevice)()&&(e.removeEventListener("touchmove",l.preventTouchMove,this.listenerOptions),t&&(t.removeEventListener("touchstart",l.preventInertiaScroll,this.listenerOptions),t.removeEventListener("touchmove",l.allowTouchMove,this.listenerOptions)))}}},{key:"render",value:function(){return a.default.createElement(t,this.props)}}]),n}(i.PureComponent)};var o,i=n(0),a=(o=i)&&o.__esModule?o:{default:o},s=n(53),l=n(55);function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(50),o=n(49);e.StyleSheet=o.StyleSheet,e.StyleSheetServer=o.StyleSheetServer,e.StyleSheetTestUtils=o.StyleSheetTestUtils,e.css=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=!1;return(0,r.injectAndGetClassName)(o,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return'<svg fill="'+t+'" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 512 512" xml:space="preserve">\n\t\t<path d="M213.7,256L213.7,256L213.7,256L380.9,81.9c4.2-4.3,4.1-11.4-0.2-15.8l-29.9-30.6c-4.3-4.4-11.3-4.5-15.5-0.2L131.1,247.9 c-2.2,2.2-3.2,5.2-3,8.1c-0.1,3,0.9,5.9,3,8.1l204.2,212.7c4.2,4.3,11.2,4.2,15.5-0.2l29.9-30.6c4.3-4.4,4.4-11.5,0.2-15.8 L213.7,256z"/>\n\t</svg>'}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return'<svg fill="'+t+'" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 512 512" xml:space="preserve">\n\t\t<path d="M298.3,256L298.3,256L298.3,256L131.1,81.9c-4.2-4.3-4.1-11.4,0.2-15.8l29.9-30.6c4.3-4.4,11.3-4.5,15.5-0.2l204.2,212.7 c2.2,2.2,3.2,5.2,3,8.1c0.1,3-0.9,5.9-3,8.1L176.7,476.8c-4.2,4.3-11.2,4.2-15.5-0.2L131.3,446c-4.3-4.4-4.4-11.5-0.2-15.8 L298.3,256z"/>\n\t</svg>'}},function(t,e,n){"use strict";
69Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return'<svg fill="'+t+'" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">\n\t\t<path d="M443.6,387.1L312.4,255.4l131.5-130c5.4-5.4,5.4-14.2,0-19.6l-37.4-37.6c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4 L256,197.8L124.9,68.3c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4L68,105.9c-5.4,5.4-5.4,14.2,0,19.6l131.5,130L68.4,387.1 c-2.6,2.6-4.1,6.1-4.1,9.8c0,3.7,1.4,7.2,4.1,9.8l37.4,37.6c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1L256,313.1l130.7,131.1 c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1l37.4-37.6c2.6-2.6,4.1-6.1,4.1-9.8C447.7,393.2,446.2,389.7,443.6,387.1z"/>\n\t</svg>'}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=u(n(1)),i=u(n(0)),a=n(17),s=u(n(16)),l=u(n(19));function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){var n=e.theme,o=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,[]),s=a.StyleSheet.create((0,l.default)(p,n));return i.default.createElement("div",r({id:"lightboxBackdrop",className:(0,a.css)(s.container)},o))}c.contextTypes={theme:o.default.object.isRequired};var p={container:{alignItems:"center",backgroundColor:s.default.container.background,boxSizing:"border-box",display:"flex",height:"100%",justifyContent:"center",left:0,paddingBottom:s.default.container.gutter.vertical,paddingLeft:s.default.container.gutter.horizontal,paddingRight:s.default.container.gutter.horizontal,paddingTop:s.default.container.gutter.vertical,position:"fixed",top:0,width:"100%",zIndex:s.default.container.zIndex}};e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=u(n(1)),i=u(n(0)),a=n(17),s=u(n(16)),l=u(n(19));function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){var n=e.theme,o=t.caption,s=t.countCurrent,u=t.countSeparator,c=t.countTotal,f=t.showCount,h=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["caption","countCurrent","countSeparator","countTotal","showCount"]);if(!o&&!f)return null;var d=a.StyleSheet.create((0,l.default)(p,n)),m=f?i.default.createElement("div",{className:(0,a.css)(d.footerCount)},s,u,c):i.default.createElement("span",null);return i.default.createElement("div",r({className:(0,a.css)(d.footer)},h),o?i.default.createElement("figcaption",{className:(0,a.css)(d.footerCaption)},o):i.default.createElement("span",null),m)}c.propTypes={caption:o.default.oneOfType([o.default.string,o.default.element]),countCurrent:o.default.number,countSeparator:o.default.string,countTotal:o.default.number,showCount:o.default.bool},c.contextTypes={theme:o.default.object.isRequired};var p={footer:{boxSizing:"border-box",color:s.default.footer.color,cursor:"auto",display:"flex",justifyContent:"space-between",left:0,lineHeight:1.3,paddingBottom:s.default.footer.gutter.vertical,paddingLeft:s.default.footer.gutter.horizontal,paddingRight:s.default.footer.gutter.horizontal,paddingTop:s.default.footer.gutter.vertical},footerCount:{color:s.default.footer.count.color,fontSize:s.default.footer.count.fontSize,paddingLeft:"1em"},footerCaption:{flex:"1 1 0"}};e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=c(n(1)),i=c(n(0)),a=n(17),s=c(n(16)),l=c(n(19)),u=c(n(57));function c(t){return t&&t.__esModule?t:{default:t}}function p(t,e){var n=e.theme,o=t.customControls,c=t.onClose,p=t.showCloseButton,h=t.closeButtonTitle,d=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["customControls","onClose","showCloseButton","closeButtonTitle"]),m=a.StyleSheet.create((0,l.default)(f,n));return i.default.createElement("div",r({className:(0,a.css)(m.header)}
69,d),o||i.default.createElement("span",null),!!p&&i.default.createElement("button",{title:h,className:(0,a.css)(m.close),onClick:c},i.default.createElement(u.default,{fill:!!n.close&&n.close.fill||s.default.close.fill,type:"close"})))}p.propTypes={customControls:o.default.array,onClose:o.default.func.isRequired,showCloseButton:o.default.bool},p.contextTypes={theme:o.default.object.isRequired};var f={header:{display:"flex",justifyContent:"space-between",height:s.default.header.height},close:{background:"none",border:"none",cursor:"pointer",outline:"none",position:"relative",top:0,verticalAlign:"bottom",zIndex:1,height:40,marginRight:-10,padding:10,width:40}};e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=f(n(1)),a=n(0),s=f(a),l=n(17),u=f(n(160)),c=f(n(56)),p=f(n(16));function f(t){return t&&t.__esModule?t:{default:t}}var h=l.StyleSheet.create({paginatedThumbnails:{bottom:p.default.container.gutter.vertical,height:p.default.thumbnail.size,padding:"0 50px",position:"absolute",textAlign:"center",whiteSpace:"nowrap",left:"50%",transform:"translateX(-50%)"}}),d={height:p.default.thumbnail.size+2*p.default.thumbnail.gutter,width:40},m=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={hasCustomPage:!1},n.gotoPrev=n.gotoPrev.bind(n),n.gotoNext=n.gotoNext.bind(n),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"componentWillReceiveProps",value:function(t){t.currentImage!==this.props.currentImage&&this.setState({hasCustomPage:!1})}},{key:"getFirst",value:function(){var t=this.props,e=t.currentImage,n=t.offset;return this.state.hasCustomPage?this.clampFirst(this.state.first):this.clampFirst(e-n)}},{key:"setFirst",value:function(t,e){var n=this.state.first;t&&(t.preventDefault(),t.stopPropagation()),n!==e&&this.setState({hasCustomPage:!0,first:e})}},{key:"gotoPrev",value:function(t){this.setFirst(t,this.getFirst()-this.props.offset)}},{key:"gotoNext",value:function(t){this.setFirst(t,this.getFirst()+this.props.offset)}},{key:"clampFirst",value:function(t){var e=this.props,n=e.images,r=2*e.offset+1;return t<0?0:t+r>n.length?n.length-r:t}},{key:"renderArrowPrev",value:function(){return this.getFirst()<=0?null:s.default.createElement(c.default,{direction:"left",size:"small",icon:"arrowLeft",onClick:this.gotoPrev,style:d,title:"Previous (Left arrow key)",type:"button"})}},{key:"renderArrowNext",value:function(){var t=this.props,e=t.offset,n=t.images,r=2*e+1;return this.getFirst()+r>=n.length?null:s.default.createElement(c.default,{direction:"right",size:"small",icon:"arrowRight",onClick:this.gotoNext,style:d,title:"Next (Right arrow key)",type:"button"})}},{key:"render",value:function(){var t=this.props,e=t.images,n=t.currentImage,o=t.onClickThumbnail,i=2*t.offset+1,a=[],c=0;return e.length<=i?a=e:(c=this.getFirst(),a=e.slice(c,c+i)),s.default.createElement("div",{className:(0,l.css)(h.paginatedThumbnails)},this.renderArrowPrev(),a.map((function(t,e){return s.default.createElement(u.default,r({key:c+e},t,{index:c+e,onClick:o,active:c+e===n}))})),this.renderArrowNext())}}]),e}(a.Component);e.default=m,m.propTypes={currentImage:i.default.number,images:i.default.array,offset:i.default.number,onClickThumbnail:i.default.func.isRequired}},function(t,e,n){"use strict";
69Object.defineProperty(e,"__esModule",{value:!0});var r=l(n(1)),o=l(n(0)),i=n(17),a=l(n(16)),s=l(n(19));function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){var n=t.index,r=t.src,a=t.thumbnail,l=t.active,u=t.onClick,p=e.theme,f=a||r,h=i.StyleSheet.create((0,s.default)(c,p));return o.default.createElement("div",{className:(0,i.css)(h.thumbnail,l&&h.thumbnail__active),onClick:function(t){t.preventDefault(),t.stopPropagation(),u(n)},style:{backgroundImage:'url("'+f+'")'}})}u.propTypes={active:r.default.bool,index:r.default.number,onClick:r.default.func.isRequired,src:r.default.string,thumbnail:r.default.string},u.contextTypes={theme:r.default.object.isRequired};var c={thumbnail:{backgroundPosition:"center",backgroundSize:"cover",borderRadius:2,boxShadow:"inset 0 0 0 1px hsla(0,0%,100%,.2)",cursor:"pointer",display:"inline-block",height:a.default.thumbnail.size,margin:a.default.thumbnail.gutter,overflow:"hidden",width:a.default.thumbnail.size},thumbnail__active:{boxShadow:"inset 0 0 0 2px "+a.default.thumbnail.activeBorderColor}};e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=c(n(1)),i=n(0),a=c(i),s=n(162),l=n(18),u=c(n(170));function c(t){return t&&t.__esModule?t:{default:t}}var p=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.portalElement=null,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"componentDidMount",value:function(){var t=document.createElement("div");document.body.appendChild(t),this.portalElement=t,this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){(0,l.render)(a.default.createElement(u.default,{context:this.context},a.default.createElement("div",null,a.default.createElement("style",null,"\n\t\t\t\t.fade-enter { opacity: 0.01; }\n\t\t\t\t.fade-enter.fade-enter-active { opacity: 1; transition: opacity 200ms; }\n\t\t\t\t.fade-leave { opacity: 1; }\n\t\t\t\t.fade-leave.fade-leave-active { opacity: 0.01; transition: opacity 200ms; }\n\t\t"),a.default.createElement(s.TransitionGroup,this.props,a.default.createElement(s.CSSTransition,{timeout:{enter:200,exit:200},classNames:"fade"},this.props.children)))),this.portalElement)}},{key:"componentWillUnmount",value:function(){(0,l.unmountComponentAtNode)(this.portalElement),document.body.removeChild(this.portalElement)}},{key:"render",value:function(){return null}}]),e}(i.Component);e.default=p,p.contextTypes={theme:o.default.object.isRequired}},function(t,e,n){"use strict";var r=s(n(163)),o=s(n(168)),i=s(n(61)),a=s(n(58));function s(t){return t&&t.__esModule?t:{default:t}}t.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}e.default=t}(n(1));var r=s(n(164)),o=s(n(167)),i=s(n(0)),a=s(n(58));n(60);function s(t){return t&&t.__esModule?t:{default:t}}function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var u=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,r.default)(t,e)}))},c=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,o.default)(t,e)}))},p=function(t){var e,n;function r(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).onEnter=function(t,n){var r=e.getClassNames(n?"appear":"enter").className;e.removeClasses(t,"exit"),u(t,r),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.getClassNames(n?"appear":"enter").activeClassName;e.reflowAndAddClass(t,r),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.getClassNames("appear").doneClassName,o=e.getClassNames("enter").doneClassName,i=n?r+" "+o:o;
69e.removeClasses(t,n?"appear":"enter"),u(t,i),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.getClassNames("exit").className;e.removeClasses(t,"appear"),e.removeClasses(t,"enter"),u(t,n),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.getClassNames("exit").activeClassName;e.reflowAndAddClass(t,n),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.getClassNames("exit").doneClassName;e.removeClasses(t,"exit"),u(t,n),e.props.onExited&&e.props.onExited(t)},e.getClassNames=function(t){var n=e.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+t:n[t];return{className:o,activeClassName:r?o+"-active":n[t+"Active"],doneClassName:r?o+"-done":n[t+"Done"]}},e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.removeClasses=function(t,e){var n=this.getClassNames(e),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&c(t,r),o&&c(t,o),i&&c(t,i)},o.reflowAndAddClass=function(t,e){e&&(t&&t.scrollTop,u(t,e))},o.render=function(){var t=l({},this.props);return delete t.classNames,i.default.createElement(a.default,l({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(i.default.Component);p.defaultProps={classNames:""},p.propTypes={};var f=p;e.default=f,t.exports=e.default},function(t,e,n){"use strict";var r=n(165);e.__esModule=!0,e.default=function(t,e){t.classList?t.classList.add(e):(0,o.default)(t,e)||("string"==typeof t.className?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))};var o=r(n(166));t.exports=e.default},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")},t.exports=e.default},function(t,e,n){"use strict";function r(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}t.exports=function(t,e){t.classList?t.classList.remove(e):"string"==typeof t.className?t.className=r(t.className,e):t.setAttribute("class",r(t.className&&t.className.baseVal||"",e))}},function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;a(n(1));var r=a(n(0)),o=n(18),i=a(n(61));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){var e,n;function a(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).handleEnter=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEnter",0,n)},e.handleEntering=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntering",0,n)},e.handleEntered=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntered",0,n)},e.handleExit=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExit",1,n)},e.handleExiting=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExiting",1,n)},e.handleExited=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExited",1,n)},e}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=a.prototype;return s.handleLifecycle=function(t,e,n){var i,a=this.props.children,s=r.default.Children.toArray(a)[e];s.props[t]&&(i=s.props)[t].apply(i,n),this.props[t]&&this.props[t]((0,o.findDOMNode)(this))},s.render=function(){var t=this.props,e=t.children,n=t.in,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["children","in"]),a=r.default.Children.toArray(e),s=a[0],l=a[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(i.default,o,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);s.propTypes={};var l=s;e.default=l,t.exports=e.default},function(t,e,n){"use strict";
69e.__esModule=!0,e.getChildMapping=o,e.mergeChildMappings=i,e.getInitialChildMapping=function(t,e){return o(t.children,(function(n){return(0,r.cloneElement)(n,{onExited:e.bind(null,n),in:!0,appear:a(n,"appear",t),enter:a(n,"enter",t),exit:a(n,"exit",t)})}))},e.getNextChildMapping=function(t,e,n){var s=o(t.children),l=i(e,s);return Object.keys(l).forEach((function(o){var i=l[o];if((0,r.isValidElement)(i)){var u=o in e,c=o in s,p=e[o],f=(0,r.isValidElement)(p)&&!p.props.in;!c||u&&!f?c||!u||f?c&&u&&(0,r.isValidElement)(p)&&(l[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:p.props.in,exit:a(i,"exit",t),enter:a(i,"enter",t)})):l[o]=(0,r.cloneElement)(i,{in:!1}):l[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:a(i,"exit",t),enter:a(i,"enter",t)})}})),l};var r=n(0);function o(t,e){var n=Object.create(null);return t&&r.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&(0,r.isValidElement)(t)?e(t):t}(t)})),n}function i(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in e){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}function a(t,e,n){return null!=n[e]?n[e]:t.props[e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(1),a=(r=i)&&r.__esModule?r:{default:r},s=n(0);function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"getChildContext",value:function(){return this.props.context}},{key:"render",value:function(){return s.Children.only(this.props.children)}}]),e}(s.Component);c.propTypes={context:a.default.object.isRequired},c.childContextTypes={theme:a.default.object},e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(1)),o=a(n(0)),i=n(17);function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){var e=i.StyleSheet.create(u(t));return o.default.createElement("div",{className:(0,i.css)(e.spinner)},o.default.createElement("div",{className:(0,i.css)(e.ripple)}))};s.propTypes={color:r.default.string,size:r.default.number};var l={"0%":{top:"50%",left:"50%",width:0,height:0,opacity:1},"100%":{top:0,left:0,width:"100%",height:"100%",opacity:0}
69},u=function(t){var e=t.color,n=t.size;return{spinner:{display:"inline-block",position:"relative",width:n,height:n},ripple:{position:"absolute",border:"4px solid "+e,opacity:1,borderRadius:"50%",animationName:l,animationDuration:"1s",animationTimingFunction:"cubic-bezier(0, 0.2, 0.8, 1)",animationIterationCount:"infinite"}}};e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=this;t.forEach((function(t){return e[t]=e[t].bind(e)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=!("undefined"==typeof window||!window.document||!window.document.createElement)},function(t,e){t.exports="/dist/images/gallery_icon2.45e52e8ef24393cba666df7fb43e1284.png"},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return Ti}));var r=n(0),o=n.n(r),i=n(18),a=n.n(i),s=n(1),l=n.n(s),u=n(3),c=n.n(u),p=n(5),f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var m=function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)},y=function(t){function e(){var n,r;h(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,t.call.apply(t,[this].concat(i))),r.handleClick=function(t){if(r.props.onClick&&r.props.onClick(t),!t.defaultPrevented&&0===t.button&&!r.props.target&&!m(t)){t.preventDefault();var e=r.context.router.history,n=r.props,o=n.replace,i=n.to;o?e.replace(i):e.push(i)}},d(r,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.render=function(){var t=this.props,e=(t.replace,t.to),n=t.innerRef,r=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["replace","to","innerRef"]);c()(this.context.router,"You should not use <Link> outside a <Router>"),c()(void 0!==e,'You must specify the "to" property');var i=this.context.router.history,a="string"==typeof e?Object(p.b)(e,null,null,i.location):e,s=i.createHref(a);return o.a.createElement("a",f({},r,{onClick:this.handleClick,href:s,ref:n}))},e}(o.a.Component);y.propTypes={onClick:l.a.func,target:l.a.string,replace:l.a.bool,to:l.a.oneOfType([l.a.string,l.a.object]).isRequired,innerRef:l.a.oneOfType([l.a.string,l.a.func])},y.defaultProps={replace:!1},y.contextTypes={router:l.a.shape({history:l.a.shape({push:l.a.func.isRequired,replace:l.a.func.isRequired,createHref:l.a.func.isRequired}).isRequired}).isRequired};var g=y,v=n(26).a,_=n(20).a,b=n(9),x=n(15),w=n(13);function E(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(o){return"function"==typeof o?o(n,r,t):e(o)}}}}var S=E();S.withExtraArgument=E;var k=S;function T(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SEARCH_KEY_CHANGED":return e.searchKey;default:return t}}function C(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SEARCH_RESULTS_IS_ERRORED":return e.isErrored;default:return t}}function P(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SEARCH_RESULTS_IS_LOADING":return e.isLoading;default:return t}}function I(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SEARCH_RESULTS_FETCH_DATA_SUCCESS":return e.searchResults;default:return t}}function O(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ACTIVE_PLACE_CHANGED":return e.activePlace;default:return t}}function A(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ACTIVE_PLACE_IS_ERRORED":return e.isErrored;default:return t}}function z(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ACTIVE_PLACE_IS_LOADING":return e.isLoading;default:return t}}function M(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ACTIVE_TOWN_CHANGED":return e.activeTown;default:return t}}function R(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;
69switch(e.type){case"ACTIVE_TOWN_IS_ERRORED":return e.isErrored;default:return t}}function D(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ACTIVE_TOWN_IS_LOADING":return e.isLoading;default:return t}}function L(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ACTIVE_TOWN_STONES_CHANGED":return e.activeTownStones;default:return t}}function j(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ACTIVE_TOWN_STONES_IS_ERRORED":return e.isErrored;default:return t}}function B(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ACTIVE_TOWN_STONES_IS_LOADING":return e.isLoading;default:return t}}var N,F=Object(p.a)({basename:"/map/"}),U=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||x.d,V=Object(x.e)((N=F,Object(x.c)({router:Object(w.connectRouter)(N),searchKey:T,searchResults:I,searchResultsIsErrored:C,searchResultsIsLoading:P,activePlace:O,activePlaceIsErrored:A,activePlaceIsLoading:z,activeTown:M,activeTownIsErrored:R,activeTownIsLoading:D,activeTownStones:L,activeTownStonesIsErrored:j,activeTownStonesIsLoading:B})),U(Object(x.a)(Object(w.routerMiddleware)(F),k))),q=(n(95),n(2)),G=n.n(q),W=function(){return(W=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Z={onResize:"resize",onDblClick:"dblclick",onClick:"click",onMouseMove:"mousemove",onMouseOut:"mouseout",onMoveStart:"movestart",onMove:"move",onMoveEnd:"moveend",onMouseUp:"mouseup",onMouseDown:"mousedown",onDragStart:"dragstart",onDrag:"drag",onDragEnd:"dragend",onZoomStart:"zoomstart",onZoom:"zoom",onZoomEnd:"zoomend",onPitch:"pitch",onPitchStart:"pitchstart",onPitchEnd:"pitchend",onWebGlContextLost:"webglcontextlost",onWebGlContextRestored:"webglcontextrestored",onRemove:"remove",onContextMenu:"contextmenu",onRender:"render",onError:"error",onSourceData:"sourcedata",onDataLoading:"dataloading",onStyleDataLoading:"styledataloading",onStyleImageMissing:"styleimagemissing",onTouchCancel:"touchcancel",onData:"data",onSourceDataLoading:"sourcedataloading",onTouchMove:"touchmove",onTouchEnd:"touchend",onTouchStart:"touchstart",onStyleData:"styledata",onBoxZoomStart:"boxzoomstart",onBoxZoomEnd:"boxzoomend",onBoxZoomCancel:"boxzoomcancel",onRotateStart:"rotatestart",onRotate:"rotate",onRotateEnd:"rotateend"},H=function(t,e,n){return Object.keys(t).reduce((function(r,o){var i=e[o];if(i){var a=function(t){i(n,t)};n.on(t[o],a),r[o]=a}return r}),{})},X=function(){return(X=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},$=r.createContext(void 0);function K(t){return function(e){return r.createElement($.Consumer,null,(function(n){return r.createElement(t,X({map:n},e))}))}}var Y,J=(Y=function(t,e){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Y(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Q=function(){return(Q=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},tt=n(31),et=[11],nt=[-.2416815,51.5285582],rt=function(t){var e,n=t.accessToken,o=t.apiUrl,a=t.minZoom,s=void 0===a?0:a,l=t.maxZoom,u=void 0===l?20:l,c=t.hash,p=void 0!==c&&c,f=t.preserveDrawingBuffer,h=void 0!==f&&f,d=t.scrollZoom,m=void 0===d||d,y=t.interactive,g=void 0===y||y,v=t.dragRotate,_=void 0===v||v,b=t.pitchWithRotate,x=void 0===b||b,w=t.attributionControl,E=void 0===w||w,S=t.customAttribution,k=t.logoPosition,T=void 0===k?"bottom-left":k,C=t.renderWorldCopies,P=void 0===C||C,I=t.trackResize,O=void 0===I||I,A=t.touchZoomRotate,z=void 0===A||A,M=t.doubleClickZoom,R=void 0===M||M,D=t.keyboard,L=void 0===D||D,j=t.dragPan,B=void 0===j||j,N=t.boxZoom,F=void 0===N||N,U=t.refreshExpiredTiles,V=void 0===U||U,G=t.failIfMajorPerformanceCaveat,X=void 0!==G&&G,K=t.bearingSnap,Y=void 0===K?7:K,rt=t.antialias,ot=void 0!==rt&&rt,it=t.mapInstance,at=t.transformRequest;return(e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={map:it,ready:!1},e.listeners={},e._isMounted=!0,e.calcCenter=function(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},e.setRef=function(t){e.container=t},e}return J(e,t),e.prototype.componentDidMount=function(){var t=this,e=this.props,r=e.style,i=e.onStyleLoad,a=e.center,l=e.pitch,c=e.zoom,f=e.fitBounds,d=e.fitBoundsOptions,y=e.bearing,v=e.max
69Bounds;if(q.accessToken=n,o&&(q.config.API_URL=o),!Array.isArray(c))throw new Error("zoom need to be an array type of length 1 for reliable update");var b={preserveDrawingBuffer:h,hash:p,zoom:c[0],minZoom:s,maxZoom:u,maxBounds:v,container:this.container,center:f&&a===nt?this.calcCenter(f):a,style:r,scrollZoom:m,attributionControl:E,customAttribution:S,interactive:g,dragRotate:_,pitchWithRotate:x,renderWorldCopies:P,trackResize:O,touchZoomRotate:z,doubleClickZoom:R,keyboard:L,dragPan:B,boxZoom:F,refreshExpiredTiles:V,logoPosition:T,bearingSnap:Y,failIfMajorPerformanceCaveat:X,antialias:ot,transformRequest:at};if(y){if(!Array.isArray(y))throw new Error("bearing need to be an array type of length 1 for reliable update");b.bearing=y[0]}if(l){if(!Array.isArray(l))throw new Error("pitch need to be an array type of length 1 for reliable update");b.pitch=l[0]}var w=this.state.map;w||(w=new q.Map(b),this.setState({map:w})),f&&w.fitBounds(f,d,{fitboundUpdate:!0}),w.on("load",(function(e){t._isMounted&&t.setState({ready:!0}),i&&i(w,e)})),this.listeners=H(Z,this.props,w)},e.prototype.componentWillUnmount=function(){var t=this.state.map;this._isMounted=!1,t&&t.remove()},e.prototype.componentDidUpdate=function(t){var e=this,n=this.state.map;if(!n)return null;this.listeners=function(t,e,n){Object.keys(Z).filter((function(n){return t[n]&&"function"!=typeof e[n]})).forEach((function(e){n.off(Z[e],t[e]),delete t[e]}));var r=Object.keys(Z).filter((function(n){return!t[n]&&"function"==typeof e[n]})).reduce((function(t,e){return t[e]=Z[e],t}),{}),o=H(r,e,n);return W({},t,o)}(this.listeners,this.props,n);var r=n.getCenter(),o=n.getZoom(),i=n.getBearing(),a=n.getPitch(),s=t.zoom!==this.props.zoom&&(this.props.zoom&&this.props.zoom[0])!==o,l=t.center!==this.props.center&&((this.props.center&&this.props.center[0])!==r.lng||(this.props.center&&this.props.center[1])!==r.lat),u=t.bearing!==this.props.bearing&&(this.props.bearing&&this.props.bearing[0])!==i,c=t.pitch!==this.props.pitch&&(this.props.pitch&&this.props.pitch[0])!==a;this.props.maxBounds&&(t.maxBounds!==this.props.maxBounds&&n.setMaxBounds(this.props.maxBounds));if(this.props.fitBounds){var p=t.fitBounds;!(p!==this.props.fitBounds||this.props.fitBounds.length!==(p&&p.length)||!!p.filter((function(t,n){var r=e.props.fitBounds&&e.props.fitBounds[n];return t[0]!==(r&&r[0])||t[1]!==(r&&r[1])}))[0])&&tt(t.fitBoundsOptions,this.props.fitBoundsOptions)||n.fitBounds(this.props.fitBounds,this.props.fitBoundsOptions,{fitboundUpdate:!0})}if(s||l||u||c){var f=this.props.movingMethod||"flyTo",h=this.props,d=h.flyToOptions,m=h.animationOptions;n[f](Q({},m,d,{zoom:s&&this.props.zoom?this.props.zoom[0]:o,center:l?this.props.center:r,bearing:u?this.props.bearing:i,pitch:c?this.props.pitch:a}))}return tt(t.style,this.props.style)||n.setStyle(this.props.style),null},e.prototype.render=function(){var t=this.props,e=t.containerStyle,n=t.className,o=t.children,a=t.renderChildrenInPortal,s=this.state,l=s.ready,u=s.map;if(a){var c=l&&u&&"function"==typeof u.getCanvasContainer?u.getCanvasContainer():void 0;return r.createElement($.Provider,{value:u},r.createElement("div",{ref:this.setRef,className:n,style:Q({},e)},l&&c&&Object(i.createPortal)(o,c)))}return r.createElement($.Provider,{value:u},r.createElement("div",{ref:this.setRef,className:n,style:Q({},e)},l&&o))},e}(r.Component)).defaultProps={onStyleLoad:function(t,e){return null},center:nt,zoom:et,bearing:0,movingMethod:"flyTo",pitch:0,containerStyle:{textAlign:"left"}},e},ot=function(t,e){var n={};return Array.from(new Set(Object.keys(t).concat(Object.keys(e)))).map((function(r){t[r]!==e[r]&&(n[r]=e[r])})),n},it=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),at=function(){return(at=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},st=n(31),lt={touchstart:"onTouchStart",touchend:"onTouchEnd",touchcancel:"onTouchCancel",mousemove:"onMouseMove",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousedown:"onMouseDown",mouseup:"onMouseUp",click:"onClick"},ut=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.source=at({type:"geojson"},e.props.geoJSONSourceOptions,{data:{type:"FeatureCollection",features:[]}}),e.geometry=function(t){switch(e.props.type){case"symbol":case"circle":return{type:"Point",coordinates:t};case"fill":return Array.isArray(t[0][0][0])?{type:"MultiPolygon",coordinates:t}:{type:"Polygon",coordinates:t};case"line":return{type:"LineString",coordinates:t};default:return{type:"Point",coordinates:t}}},e.makeFeature=function(t,n){return{type:"Feature",geometry:e.geometry(t.coordinates),properties:at({},t.properties,{id:n})}},e.initialize=function(){var t=e.props,n=t.type,r=t.layout,o=t.paint,i=t.sourceId,a=t.before,s=t.images,l=t.id,u=t.metadata,c=t.sourceLayer,p=t.minZoom,f=t.maxZoom,h=t.filter,d=e.props.map,m={id:l,source:i||l,type:n,layout:r,paint:o,metadata:u};(c&&(m["source-layer"]=c),p&&(m.minzoom=p),f&&(m.maxzoom=f),h&&(m.filter=h),s)&&(Array.isArray(s[0])?s:[s]).filter((function(t){return!d.hasImage(t[0])}
69)).forEach((function(t){d.addImage(t[0],t[1],t[2])}));i||d.getSource(l)||d.addSource(l,e.source),d.getLayer(l)||d.addLayer(m,a),Object.entries(lt).forEach((function(t){var n=t[0],r=t[1],o=e.props[r];o&&d.on(n,l,o)}))},e.onStyleDataChange=function(){e.props.map.getLayer(e.props.id)||(e.initialize(),e.forceUpdate())},e.getChildren=function(){var t=e.props.children;return t?Array.isArray(t)?t.reduce((function(t,e){return t.concat(e)}),[]):[t]:[]},e}return it(e,t),e.prototype.componentDidMount=function(){var t=this.props.map;this.initialize(),t.on("styledata",this.onStyleDataChange)},e.prototype.componentWillUnmount=function(){var t=this,e=this.props.map,n=this.props,r=n.images,o=n.id;e&&e.getStyle()&&(e.off("styledata",this.onStyleDataChange),Object.entries(lt).forEach((function(n){var r=n[0],i=n[1],a=t.props[i];a&&e.off(r,o,a)})),e.getLayer(o)&&e.removeLayer(o),this.props.sourceId||e.removeSource(o),r&&(Array.isArray(r[0])?r:[r]).map((function(t){var e=t[0];t.slice(1);return e})).forEach(e.removeImage.bind(e)))},e.prototype.componentDidUpdate=function(t){var e=this,n=t.paint,r=t.layout,o=t.before,i=t.filter,a=t.id,s=t.minZoom,l=t.maxZoom,u=t.map;
69if(!st(this.props.paint,n)){var c=ot(n,this.props.paint);Object.keys(c).forEach((function(t){u.setPaintProperty(a,t,c[t])}))}if(!st(this.props.layout,r)){var p=ot(r,this.props.layout);Object.keys(p).forEach((function(t){u.setLayoutProperty(a,t,p[t])}))}st(this.props.filter,i)||u.setFilter(a,this.props.filter),o!==this.props.before&&u.moveLayer(a,this.props.before),s===this.props.minZoom&&l===this.props.maxZoom||u.setLayerZoomRange(a,this.props.minZoom,this.props.maxZoom),Object.entries(lt).forEach((function(n){var r=n[0],o=n[1],i=t[o],s=e.props[o];i!==s&&(i&&u.off(r,a,i),s&&u.on(r,a,s))}))},e.prototype.render=function(){var t=this,e=this.props.map,n=this.props,r=n.sourceId,o=n.draggedChildren,i=this.getChildren();if(o){var a=o.map((function(t){return t.key}));i=i.map((function(t){var e=a.indexOf(t.key);return-1!==e?o[e]:t}))}var s=i.map((function(e,n){var r=e.props;return t.makeFeature(r,n)})).filter(Boolean),l=e.getSource(r||this.props.id);return l&&!r&&l.setData&&l.setData({type:"FeatureCollection",features:s}),null},e.defaultProps={type:"symbol",layout:{},paint:{}},e}(r.Component),ct=0,pt=function(){return ct+=1},ft=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ht=function(){return(ht=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};var dt=function(t){return function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.hover=[],t.draggedChildren=void 0,t.id=t.props.id||"layer-"+pt(),t.getChildren=function(){return[].concat(t.props.children).filter((function(t){return void 0!==t}))},t.getChildFromId=function(t,e){return t[e]},t.areFeaturesDraggable=function(e,n){return void 0===n&&(n=t.hover),!!n.map((function(n){return!!t.getChildFromId(e,n)&&t.getChildFromId(e,n).props.draggable})).filter(Boolean).length},t.onClick=function(e){var n=e.features,r=t.getChildren(),o=t.props.map;n&&n.forEach((function(n){var i=n.properties.id;if(r){var a=t.getChildFromId(r,i),s=a&&a.props.onClick;s&&s(ht({},e,{feature:n,map:o}))}}))},t.onMouseEnter=function(e){var n=t.getChildren(),r=t.props.map;t.hover=[],e.features.forEach((function(o){var i=o.properties.id,a=t.getChildFromId(n,i);t.hover.push(i);var s=a&&a.props.onMouseEnter;s&&s(ht({},e,{feature:o,map:r}))})),t.areFeaturesDraggable(n)&&r.dragPan.disable()},t.onMouseLeave=function(e){var n=t.getChildren(),r=t.props.map;t.areFeaturesDraggable(n)&&r.dragPan.enable(),t.hover.forEach((function(o){var i=t.getChildFromId(n,o),a=i&&i.props.onMouseLeave;a&&a(ht({},e,{map:r}))})),t.draggedChildren||(t.hover=[])},t.onMouseDown=function(){t.hover.length&&t.onFeatureDown("mousedown")},t.onTouchStart=function(e){t.hover=e.features.map((function(t){return t.properties.id})),t.hover.length&&t.onFeatureDown("touchstart")},t.onFeatureDown=function(e){var n="mousedown"===e?"mousemove":"touchmove",r="mousedown"===e?"mouseup":"touchend",o=t.props.map;o.once(n,t.onFeatureDragStart),o.on(n,t.onFeatureDrag),o.once(r,(function(e){o.off(n,t.onFeatureDragStart),o.off(n,t.onFeatureDrag),t.onFeatureDragEnd(e)}))},t.onFeatureDragStart=function(e){var n=t.props.map,r=t.getChildren();t.hover.forEach((function(o){var i=t.getChildFromId(r,o);if(!i||i.props.draggable){var a=i&&i.props.onDragStart;a&&a(ht({},e,{map:n}))}}))},t.onFeatureDrag=function(e){var n=t.getChildren(),o=t.props.map,i=e.lngLat,a=i.lng,s=i.lat;t.draggedChildren=[],t.hover.forEach((function(i){var l=t.getChildFromId(n,i),u=l&&l.props.onDrag;l&&l.props.draggable&&(t.draggedChildren.push(r.cloneElement(l,{coordinates:[a,s]})),u&&u(ht({},e,{map:o})))})),t.forceUpdate()},t.onFeatureDragEnd=function(e){var n=t.props.map,r=t.getChildren();t.hover.forEach((function(o){var i=t.getChildFromId(r,o),a=i&&i.props.onDragEnd;a&&i.props.draggable&&t.draggedChildren&&a(ht({},e,{map:n}))})),t.draggedChildren=void 0},t}return ft(n,e),n.prototype.componentDidMount=function(){var t=this.props.map;t.on("click",this.id,this.onClick),t.on("mouseenter",this.id,this.onMouseEnter),t.on("mouseleave",this.id,this.onMouseLeave),t.on("mousedown",this.id,this.onMouseDown),t.on("touchstart",this.id,this.onTouchStart)},n.prototype.componentWillUnmount=function(){var t=this.props.map;t.off("click",this.onClick),t.off("mouseenter",this.onMouseEnter),t.off("mouseleave",this.onMouseLeave),t.off("mousedown",this.onMouseDown),t.off("touchstart",this.onTouchStart)},n.prototype.render=function(){return r.createElement(t,ht({},this.props,{id:this.id,map:this.props.map,draggedChildren:this.draggedChildren}))},n}(r.Component)},mt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yt=function(){return(yt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},gt=n(31),vt=["symbol","line","fill","fill-extrusion","circle"],_t=function(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(function(t,e){return 0===e?t.toLowerCase():t.toUpperCase()})).replace(/[\s+]|-/g,"")},bt={mousemove:"OnMouseMove",mouseenter:"OnMouseEnter",mouseleave:"OnMouseLeave",mousedown:"OnMouseDown",mouseup:"OnMouseUp",click:"O
69nClick"},xt=K(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.id=e.props.id||"geojson-"+pt(),e.source=yt({type:"geojson"},e.props.sourceOptions,{data:e.props.data}),e.layerIds=[],e.buildLayerId=function(t){return e.id+"-"+t},e.createLayer=function(t){var n=e.props,r=n.before,o=n.layerOptions,i=n.map,a=e.buildLayerId(t);e.layerIds.push(a);var s=e.props[_t(t)+"Paint"]||{},l=Object.keys(s).length?"visible":"none",u=e.props[_t(t)+"Layout"]||{visibility:l},c=yt({id:a,source:e.id,type:t,paint:s,layout:u},o);i.addLayer(c,r),e.mapLayerMouseHandlers(t)},e.mapLayerMouseHandlers=function(t){var n=e.props.map,r=e.buildLayerId(t);Object.keys(bt).forEach((function(o){var i=e.props[""+_t(t)+bt[o]]||null;i&&n.on(o,r,i)}))},e.onStyleDataChange=function(){e.props.map.getSource(e.id)||(e.unbind(),e.initialize(),e.forceUpdate())},e.isGeoJSONSource=function(t){return!!t&&"function"==typeof t.setData},e}return mt(e,t),e.prototype.initialize=function(){this.props.map.addSource(this.id,this.source),this.createLayer("symbol"),this.createLayer("line"),this.createLayer("fill"),this.createLayer("fill-extrusion"),this.createLayer("circle")},e.prototype.unbind=function(){var t=this,e=this.props.map;if(e.getSource(this.id)){var n=e.getStyle().layers;n&&n.filter((function(e){return e.source===t.id})).forEach((function(t){return e.removeLayer(t.id)})),e.removeSource(this.id)}vt.forEach((function(n){Object.keys(bt).forEach((function(r){var o=_t(n)+bt[r];t.props[o]&&e.off(r,t.buildLayerId(n),t.props[o])}))})),this.layerIds.forEach((function(t){e.getLayer(t)&&e.removeLayer(t)}))},e.prototype.componentDidMount=function(){var t=this.props.map;this.initialize(),t.on("styledata",this.onStyleDataChange)},e.prototype.componentWillUnmount=function(){var t=this.props.map;t&&t.getStyle()&&(t.off("styledata",this.onStyleDataChange),this.unbind())},e.prototype.componentDidUpdate=function(t){var e=this,n=t.data,r=t.before,o=t.layerOptions,i=t.map,a=i.getSource(this.id);if(this.isGeoJSONSource(a)){this.props.data!==n&&(a.setData(this.props.data),this.source=yt({type:"geojson"},this.props.sourceOptions,{data:this.props.data}));var s=this.props.layerOptions&&o&&!gt(this.props.layerOptions.filter,o.filter);vt.forEach((function(n){var o=e.buildLayerId(n);e.props.layerOptions&&s&&i.setFilter(o,e.props.layerOptions.filter||[]);var a=_t(n)+"Paint";if(!gt(t[a],e.props[a])){var l=ot(t[a],e.props[a]);Object.keys(l).forEach((function(t){i.setPaintProperty(o,t,l[t])}))}var u=_t(n)+"Layout";if(!gt(t[u],e.props[u])){var c=ot(t[u],e.props[u]);Object.keys(c).forEach((function(t){i.setLayoutProperty(o,t,c[t])}))}Object.keys(bt).forEach((function(r){var a=_t(n)+bt[r];t[a]!==e.props[a]&&(t[a]&&i.off(r,o,t[a]),e.props[a]&&i.on(r,o,e.props[a]))})),r!==e.props.before&&i.moveLayer(o,e.props.before)}))}},e.prototype.render=function(){return null},e}(r.Component)),wt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Et=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}wt(e,t),e.prototype.render=function(){return null}}(r.Component),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),St=function(){return(St=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},kt={position:"absolute",zIndex:10,display:"flex",flexDirection:"column",boxShadow:"0px 1px 4px rgba(0, 0, 0, .3)",border:"1px solid rgba(0, 0, 0, 0.1)"},Tt={"top-right":{top:10,right:10,bottom:"auto",left:"auto"},"top-left":{top:10,left:10,bottom:"auto",right:"auto"},"bottom-right":{bottom:10,right:10,top:"auto",left:"auto"},"bottom-left":{bottom:10,left:10,top:"auto",right:"auto"}},Ct={backgroundColor:"#f9f9f9",opacity:.95,transition:"background-color 0.16s ease-out",cursor:"pointer",border:0,height:26,width:26,backgroundImage:"url('https://api.mapbox.com/mapbox.js/v2.4.0/images/[email protected]')",backgroundPosition:"0px 0px",backgroundSize:"26px 260px",outline:0},Pt={backgroundColor:"#fff",opacity:1},It={borderBottom:"1px solid rgba(0, 0, 0, 0.1)",borderTopLeftRadius:2,borderTopRightRadius:2},Ot={backgroundPosition:"0px -26px",borderBottomLeftRadius:2,borderBottomRightRadius:2},At=[0,1],zt=At[0],Mt=At[1],Rt=Object.keys(Tt),Dt=K(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={hover:void 0},e.onMouseOut=function(){e.setState({hover:void 0})},e.plusOver=function(){zt!==e.state.hover&&e.setState({hover:zt})},e.minusOver=function(){Mt!==e.state.hover&&e.setState({hover:Mt})},e.onClickPlus=function(){e.props.onControlClick(e.props.map,e.props.zoomDiff)},e.onClickMinus=function(){e.props.onControlClick(e.props.map,-e.props.zoomDiff)},e}return Et(e,t),e.prototype.render=function(){var t=this.props,e=t.position,n=t.style,o=t.className,i=t.tabIndex,a=this.state.hover,s=St({},Ct,It,a===zt?Pt:{}),l=St({},Ct,Ot,a===Mt?Pt:{});return r.createElement("div",{className:o,tabIndex:i,style:St({},kt,Tt[e],n)},r.createElement("button",{id:"zoomIn",type:"button",style:s,"aria-label":"Zoom in",onMouseOver:this.plusOver,onMouseOut:this.onMouseOut,onClick:this.onClickPlus}),r.createElement("button",{id:"zoomOut",type:"button",style:l,"aria-label":"Zoom out",onMouseOver:this.minusOver,onMouseOut:this.onMouseOut,onClick:this.onClickMinus}))},e.defaultProps={position:Rt[0],zoomDiff:.5,onControlClick:function(t,e){t.zoomTo(t.getZoom()+e)}},e}(r.Component)),Lt=["center","top","bottom","left","right","top-left","top-right","bottom-left","bottom-right"],jt={center:"translate(-50%, -50%)",to
69p:"translate(-50%, 0)",left:"translate(0, -50%)",right:"translate(-100%, -50%)",bottom:"translate(-50%, -100%)","top-left":"translate(0, 0)","top-right":"translate(-100%, 0)","bottom-left":"translate(0, -100%)","bottom-right":"translate(-100%, -100%)"},Bt={offsetWidth:0,offsetHeight:0},Nt=[0,0],Ft=function(t){if(!t)return Ft(new q.Point(0,0));if("number"==typeof t){var e=Math.round(Math.sqrt(.5*Math.pow(t,2)));return{center:new q.Point(t,t),top:new q.Point(0,t),bottom:new q.Point(0,-t),left:new q.Point(t,0),right:new q.Point(-t,0),"top-left":new q.Point(e,e),"top-right":new q.Point(-e,e),"bottom-left":new q.Point(e,-e),"bottom-right":new q.Point(-e,-e)}}return t instanceof q.Point||Array.isArray(t)?Lt.reduce((function(e,n){return e[n]=q.Point.convert(t),e}),{}):Lt.reduce((function(e,n){return e[n]=q.Point.convert(t[n]||Nt),e}),{})},Ut=function(t,e,n){var r=function(t,e){return t.project(q.LngLat.convert(e))}(e,t.coordinates),o=Ft(t.offset),i=t.anchor||function(t,e,n,r){var o=void 0===r?Bt:r,i=o.offsetHeight,a=o.offsetWidth,s=[];return n.y+e.bottom.y-i<0?s=[Lt[1]]:n.y+e.top.y+i>t.transform.height&&(s=[Lt[2]]),n.x<a/2?s.push(Lt[3]):n.x>t.transform.width-a/2&&s.push(Lt[4]),0===s.length?Lt[2]:s.join("-")}(e,o,r,n);return{anchor:i,position:r,offset:o[i]}},Vt=function(t){return t?"translate("+t.x.toFixed(0)+"px, "+t.y.toFixed(0)+"px)":""},qt=function(t){var e=t.anchor,n=t.position,r=t.offset,o=[];return n&&o.push(Vt(n)),r&&void 0!==r.x&&void 0!==r.y&&o.push(Vt(r)),e&&o.push(jt[e]),o},Gt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wt=function(){return(Wt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Zt={zIndex:3},Ht=K(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.container=void 0,e.prevent=!1,e.state={},e.setContainer=function(t){t&&(e.container=t)},e.handleMapMove=function(){e.prevent||e.setState(Ut(e.props,e.props.map,e.container))},e}return Gt(e,t),e.prototype.componentDidMount=function(){this.props.map.on("move",this.handleMapMove),this.handleMapMove()},e.prototype.havePropsChanged=function(t,e){return t.coordinates[0]!==e.coordinates[0]||t.coordinates[1]!==e.coordinates[1]||t.offset!==e.offset||t.anchor!==e.anchor},e.prototype.componentDidUpdate=function(t){this.havePropsChanged(this.props,t)&&this.setState(Ut(this.props,this.props.map,this.container))},e.prototype.componentWillUnmount=function(){var t=this.props.map;this.prevent=!0,t.off("move",this.handleMapMove)},e.prototype.render=function(){var t=this.props,e=t.style,n=t.children,o=t.className,i=t.onClick,a=t.onDoubleClick,s=t.onMouseEnter,l=t.onMouseLeave,u=t.onScroll,c=t.onWheel,p=t.type,f=t.tabIndex,h=this.state.anchor,d=Wt({},Zt,e,{transform:qt(this.state).join(" ")}),m=h&&"popup"===p?"mapboxgl-popup-anchor-"+h:"";return r.createElement("div",{className:o+" "+m,onClick:i,onDoubleClick:a,onMouseEnter:s,onMouseLeave:l,onScroll:u,onWheel:c,style:d,ref:this.setContainer,tabIndex:f},n)},e.defaultProps={offset:0,onClick:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t}},e}(r.Component)),Xt=function(t,e){return e?e.split(" ").concat(t).join(" "):t.join(" ")},$t=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kt=function(){return(Kt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Yt=["mapboxgl-popup"],Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $t(e,t),e.prototype.render=function(){var t=this.props,e=t.children,n=t.className,o=Kt({},this.props,{children:void 0}),i=Xt(Yt,n);return r.createElement(Ht,Kt({},o,{type:"popup",className:i}),r.createElement("div",{className:"mapboxgl-popup-tip"}),r.createElement("div",{className:"mapboxgl-popup-content"},e))},e}(r.Component),Qt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),te=function(){return(te=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},ee=["moveend","touchend","zoomend"],ne=[.01,.02,.05,.1,.2,.5,1,2,5,10,20,50,100,200,500,1e3,2e3,5e3,1e4],re={"top-right":{top:10,right:10,bottom:"auto",left:"auto"},"top-left":{top:10,left:10,bottom:"auto",right:"auto"},"bottom-right":{bottom:10,right:10,top:"auto",left:"auto"},"bottom-left":{bottom:10,left:10,top:"auto",right:"auto"}},oe={position:"absolute",zIndex:10,boxShadow:"0px 1px 4px rgba(0, 0, 0, .3)",border:"1px solid rgba(0, 0, 0, 0.1)",right:50,backgroundColor:"#fff",opacity:.85,display:"flex",flexDirection:"row",alignItems:"baseline",padding:"3px 7px"}
69,ie={border:"2px solid #7e8490",boxShadow:"0px 1px 4px rgba(0, 0, 0, .3)",borderTop:"none",height:7,borderBottomLeftRadius:1,borderBottomRightRadius:1},ae=Object.keys(re),se=["km","mi"],le=(K(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={chosenScale:0,scaleWidth:60},e.setScale=function(){var t=e.props,n=t.measurement,r=t.map,o=r._canvas.clientWidth,i=r.getBounds(),a=i._ne,s=i._sw,l=e._getDistanceTwoPoints([s.lng,a.lat],[a.lng,a.lat],n),u=l/o*60,c=ne.reduce((function(t,e){return!t&&e>u?e:t}),0),p=c/l*o;e.setState({chosenScale:c,scaleWidth:p})},e}return Qt(e,t),e.prototype.componentDidMount=function(){var t=this;this.setScale(),ee.forEach((function(e){t.props.map.on(e,t.setScale)}))},e.prototype.componentWillUnmount=function(){var t=this;this.props.map&&ee.forEach((function(e){t.props.map.off(e,t.setScale)}))},e.prototype._getDistanceTwoPoints=function(t,e,n){void 0===n&&(n="km");var r=t[0],o=t[1],i=e[0],a=e[1],s="km"===n?6371:6371/1.60934,l=this._deg2rad(a-o),u=this._deg2rad(i-r),c=Math.sin(l/2)*Math.sin(l/2)+Math.cos(this._deg2rad(o))*Math.cos(this._deg2rad(a))*Math.sin(u/2)*Math.sin(u/2);return s*(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)))},e.prototype._deg2rad=function(t){return t*(Math.PI/180)},e.prototype._displayMeasurement=function(t,e){return e>=1?e+" "+t:"mi"===t?Math.floor(5280*e)+" ft":Math.floor(1e3*e)+" m"},e.prototype.render=function(){var t=this.props,e=t.measurement,n=t.style,o=t.position,i=t.className,a=t.tabIndex,s=this.state,l=s.chosenScale,u=s.scaleWidth;return r.createElement("div",{tabIndex:a,style:te({},oe,re[o],n),className:i},r.createElement("div",{style:te({},ie,{width:u})}),r.createElement("div",{style:{paddingLeft:10}},this._displayMeasurement(e,l)))},e.defaultProps={measurement:se[0],position:ae[2]},e}(r.Component)),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ue=function(){return(ue=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};K(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.id=e.props.id,e.onStyleDataChange=function(){e.props.map.getLayer(e.id)||(e.initialize(),e.forceUpdate())},e.initialize=function(){var t=e.props.map,n=e.props,r=n.geoJsonSource,o=n.tileJsonSource,i=n.onSourceAdded;t.getSource(e.id)||!r&&!o||(r?t.addSource(e.id,r):o&&t.addSource(e.id,o),t.on("sourcedata",e.onData),i&&i(t.getSource(e.id)))},e.onData=function(){var t=e.props.map,n=t.getSource(e.props.id);if(n&&t.isSourceLoaded(e.props.id)){var r=e.props.onSourceLoaded;n&&r&&r(n),n&&e.props.geoJsonSource&&e.props.geoJsonSource.data&&n.setData(e.props.geoJsonSource.data),t.off("sourcedata",e.onData)}},e}return le(e,t),e.prototype.componentDidMount=function(){this.props.map.on("styledata",this.onStyleDataChange),this.initialize()},e.prototype.removeSource=function(){var t=this,e=this.props.map;if(e.getSource(this.id)){var n=e.getStyle().layers,r=void 0===n?[]:n;return(r=r.map((function(t,e){var n=(r[e+1]||{id:void 0}).id;return ue({},t,{before:n})})).filter((function(e){return e.source===t.id}))).forEach((function(t){return e.removeLayer(t.id)})),e.removeSource(this.id),r.reverse()}return[]},e.prototype.componentWillUnmount=function(){var t=this.props.map;t&&t.getStyle()&&(t.off("styledata",this.onStyleDataChange),this.removeSource())},e.prototype.componentDidUpdate=function(t){var e=t.geoJsonSource,n=t.tileJsonSource,r=t.map,o=r.getSource(this.id);if(n&&this.props.tileJsonSource){var i=!1,a=!1;if(o&&"vector"===o.type)n.url!==this.props.tileJsonSource.url&&void 0!==this.props.tileJsonSource.url&&(o.setUrl(this.props.tileJsonSource.url),i=!0),n.tiles!==this.props.tileJsonSource.tiles&&void 0!==this.props.tileJsonSource.tiles&&(o.setTiles(this.props.tileJsonSource.tiles),a=!0);if(!i&&n.url!==this.props.tileJsonSource.url||!a&&n.tiles!==this.props.tileJsonSource.tiles||n.minzoom!==this.props.tileJsonSource.minzoom||n.maxzoom!==this.props.tileJsonSource.maxzoom){var s=this.removeSource();
vendor: 5,665 bytes, line 69
69r.addSource(this.id,this.props.tileJsonSource),s.forEach((function(t){return r.addLayer(t,t.before)}))}}e&&this.props.geoJsonSource&&this.props.geoJsonSource.data!==e.data&&this.props.geoJsonSource.data&&o&&"geojson"===o.type&&o.setData(this.props.geoJsonSource.data)},e.prototype.render=function(){return null},e}(r.Component));function ce(t,e,n,r,o,i){if(o-r<=n)return;const a=r+o>>1;!function t(e,n,r,o,i,a){for(;i>o;){if(i-o>600){const s=i-o+1,l=r-o+1,u=Math.log(s),c=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1),f=Math.max(o,Math.floor(r-l*c/s+p)),h=Math.min(i,Math.floor(r+(s-l)*c/s+p));t(e,n,r,f,h,a)}const s=n[2*r+a];let l=o,u=i;for(pe(e,n,o,r),n[2*i+a]>s&&pe(e,n,o,i);l<u;){for(pe(e,n,l,u),l++,u--;n[2*l+a]<s;)l++;for(;n[2*u+a]>s;)u--}n[2*o+a]===s?pe(e,n,o,u):(u++,pe(e,n,u,i)),u<=r&&(o=u+1),r<=u&&(i=u-1)}}(t,e,a,r,o,i%2),ce(t,e,n,r,a-1,i+1),ce(t,e,n,a+1,o,i+1)}function pe(t,e,n,r){fe(t,n,r),fe(e,2*n,2*r),fe(e,2*n+1,2*r+1)}function fe(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function he(t,e,n,r){const o=t-n,i=e-r;return o*o+i*i}const de=t=>t[0],me=t=>t[1];class ye{constructor(t,e=de,n=me,r=64,o=Float64Array){this.nodeSize=r,this.points=t;const i=t.length<65536?Uint16Array:Uint32Array,a=this.ids=new i(t.length),s=this.coords=new o(2*t.length);for(let r=0;r<t.length;r++)a[r]=r,s[2*r]=e(t[r]),s[2*r+1]=n(t[r]);ce(a,s,r,0,a.length-1,0)}range(t,e,n,r){return function(t,e,n,r,o,i,a){const s=[0,t.length-1,0],l=[];let u,c;for(;s.length;){const p=s.pop(),f=s.pop(),h=s.pop();if(f-h<=a){for(let a=h;a<=f;a++)u=e[2*a],c=e[2*a+1],u>=n&&u<=o&&c>=r&&c<=i&&l.push(t[a]);continue}const d=Math.floor((h+f)/2);u=e[2*d],c=e[2*d+1],u>=n&&u<=o&&c>=r&&c<=i&&l.push(t[d]);const m=(p+1)%2;(0===p?n<=u:r<=c)&&(s.push(h),s.push(d-1),s.push(m)),(0===p?o>=u:i>=c)&&(s.push(d+1),s.push(f),s.push(m))}return l}(this.ids,this.coords,t,e,n,r,this.nodeSize)}within(t,e,n){return function(t,e,n,r,o,i){const a=[0,t.length-1,0],s=[],l=o*o;for(;a.length;){const u=a.pop(),c=a.pop(),p=a.pop();if(c-p<=i){for(let o=p;o<=c;o++)he(e[2*o],e[2*o+1],n,r)<=l&&s.push(t[o]);continue}const f=Math.floor((p+c)/2),h=e[2*f],d=e[2*f+1];he(h,d,n,r)<=l&&s.push(t[f]);const m=(u+1)%2;(0===u?n-o<=h:r-o<=d)&&(a.push(p),a.push(f-1),a.push(m)),(0===u?n+o>=h:r+o>=d)&&(a.push(f+1),a.push(c),a.push(m))}return s}(this.ids,this.coords,t,e,n,this.nodeSize)}}const ge={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t};class ve{constructor(t){this.options=Te(Object.create(ge),t),this.trees=new Array(this.options.maxZoom+1)}load(t){const{log:e,minZoom:n,maxZoom:r,nodeSize:o}=this.options;e&&console.time("total time");const i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;let a=[];for(let e=0;e<t.length;e++)t[e].geometry&&a.push(be(t[e],e));this.trees[r+1]=new ye(a,Ce,Pe,o,Float32Array),e&&console.timeEnd(i);for(let t=r;t>=n;t--){const n=+Date.now();a=this._cluster(a,t),this.trees[t]=new ye(a,Ce,Pe,o,Float32Array),e&&console.log("z%d: %d clusters in %dms",t,a.length,+Date.now()-n)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let n=((t[0]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,t[1]));let o=180===t[2]?180:((t[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)n=-180,o=180;else if(n>o){const t=this.getClusters([n,r,180,i],e),a=this.getClusters([-180,r,o,i],e);return t.concat(a)}const a=this.trees[this._limitZoom(e)],s=a.range(Ee(n),Se(i),Ee(o),Se(r)),l=[];for(const t of s){const e=a.points[t];l.push(e.numPoints?xe(e):this.points[e.index])}return l}getChildren(t){const e=this._getOriginId(t),n=this._getOriginZoom(t),r="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(r);const i=o.points[e];if(!i)throw new Error(r);const a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=o.within(i.x,i.y,a),l=[];for(const e of s){const n=o.points[e];n.parentId===t&&l.push(n.numPoints?xe(n):this.points[n.index])}if(0===l.length)throw new Error(r);return l}getLeaves(t,e,n){e=e||10,n=n||0;const r=[];return this._appendLeaves(r,t,e,n,0),r}getTile(t,e,n){const r=this.trees[this._limitZoom(t)],o=Math.pow(2,t),{extent:i,radius:a}=this.options,s=a/i,l=(n-s)/o,u=(n+1+s)/o,c={features:[]};return this._addTileFeatures(r.range((e-s)/o,l,(e+1+s)/o,u),r.points,e,n,o,c),0===e&&this._addTileFeatures(r.range(1-s/o,l,1,u),r.points,o,n,o,c),e===o-1&&this._addTileFeatures(r.range(0,l,s/o,u),r.points,-1,n,o,c),c.features.length?c:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const n=this.getChildren(t);if(e++,1!==n.length)break;t=n[0].properties.cluster_id}return e}_appendLeaves(t,e,n,r,o){const i=this.getChildren(e);for(const e of i){const i=e.properties;if(i&&i.cluster?o+i.point_count<=r?o+=i.point_count:o=this._appendLeaves(t,i.cluster_id,n,r,o):o<r?o++:t.push(e),t.length===n)break}return o}_addTileFeatures(t,e,n,r,o,i){for(const a of t){const t=e[a],s=t.numPoints,l={type:1,geometry:[[Math.round(this.options.extent*(t.x*o-n)),Math.round(this.options.extent*(t.y*o-r))]],tags:s?we(t):this.points[t.index].properties};let u;s?u=t.id:this.options.generateId?u=t.index:this.points[t.index].id&&(u=this.points[t.index].id),void 0!==u&&(l.id=u),i.features.push(l)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(+t,this.options.maxZoom+1))}_cluster(t,e){const n=[],{radius:r,extent:o,reduce:i,minPoints:a}=this.options,s=r/(o*Math.pow(2,e));for(let r=0;r<t.length;r++){const o=t[r];if(o.zoom<=e)continue;o.zoom=e;const l=this.trees[e+1],u=l.within(o.x,o.y,s),c=o.numPoints||1;let p=c;for(const t of u){const n=l.points[t];n.zoom>e&&(p+=n.numPoints||1)}if(p>
69=a){let t=o.x*c,a=o.y*c,s=i&&c>1?this._map(o,!0):null;const f=(r<<5)+(e+1)+this.points.length;for(const n of u){const r=l.points[n];if(r.zoom<=e)continue;r.zoom=e;const u=r.numPoints||1;t+=r.x*u,a+=r.y*u,r.parentId=f,i&&(s||(s=this._map(o,!0)),i(s,this._map(r)))}o.parentId=f,n.push(_e(t/p,a/p,f,p,s))}else if(n.push(o),p>1)for(const t of u){const r=l.points[t];r.zoom<=e||(r.zoom=e,n.push(r))}}return n}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e){if(t.numPoints)return e?Te({},t.properties):t.properties;const n=this.points[t.index].properties,r=this.options.map(n);return e&&r===n?Te({},r):r}}function _e(t,e,n,r,o){return{x:t,y:e,zoom:1/0,id:n,parentId:-1,numPoints:r,properties:o}}function be(t,e){const[n,r]=t.geometry.coordinates;return{x:Ee(n),y:Se(r),zoom:1/0,index:e,parentId:-1}}function xe(t){return{type:"Feature",id:t.id,properties:we(t),geometry:{type:"Point",coordinates:[(e=t.x,360*(e-.5)),ke(t.y)]}};var e}function we(t){const e=t.numPoints,n=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return Te(Te({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:n})}function Ee(t){return t/360+.5}function Se(t){const e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function ke(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function Te(t,e){for(const n in e)t[n]=e[n];return t}function Ce(t){return t.x}function Pe(t){return t.y}var Ie=n(37),Oe=n.n(Ie),Ae=n(38),ze=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Me=(K(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={superC:new ve({radius:e.props.radius,maxZoom:e.props.maxZoom,minZoom:e.props.minZoom,extent:e.props.extent,nodeSize:e.props.nodeSize,log:e.props.log}),clusterPoints:[]},e.featureClusterMap=new WeakMap,e.childrenChange=function(t){var n=e.state.superC;e.featureClusterMap=new WeakMap;var r=e.childrenToFeatures(t);n.load(r)},e.mapChange=function(t){void 0===t&&(t=!1);var n=e.props.map,r=e.state,o=r.superC,i=r.clusterPoints,a=n.getZoom(),s=n.getCanvas(),l=s.width,u=s.height,c=n.unproject([0,0]).toArray(),p=n.unproject([l,0]).toArray(),f=n.unproject([l,u]).toArray(),h=n.unproject([0,u]).toArray(),d=o.getClusters(Oe()(Object(Ae.polygon)([[c,p,f,h,c]])),Math.round(a));(d.length!==i.length||t)&&e.setState({clusterPoints:d})},e.childrenToFeatures=function(t){return t.map((function(t){var n=e.feature(t&&t.props.coordinates);return e.featureClusterMap.set(n,t),n}))},e.getLeaves=function(t,n,r){return e.state.superC.getLeaves(t.properties&&t.properties.cluster_id,n||1/0,r).map((function(t){return e.featureClusterMap.get(t)}))},e.zoomToClusterBounds=function(t){var n=Array.prototype.slice.call(t.currentTarget.children),r=e.findMarkerElement(t.currentTarget,t.target),o=n.indexOf(r),i=e.state.clusterPoints[o];if(i.properties&&i.properties.cluster_id){var a=e.state.superC.getLeaves(i.properties&&i.properties.cluster_id,1/0),s=Oe()(Object(Ae.featureCollection)(a));e.props.map.fitBounds(q.LngLatBounds.convert(s),{padding:e.props.zoomOnClickPadding})}},e}return ze(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.children,n=t.map;e&&this.childrenChange(e),n.on("move",this.mapChange),n.on("zoom",this.mapChange),this.mapChange()},e.prototype.componentWillUnmount=function(){var t=this.props.map;t.off("move",this.mapChange),t.off("zoom",this.mapChange)},e.prototype.componentDidUpdate=function(t){t.children!==this.props.children&&this.props.children&&(this.childrenChange(this.props.children),this.mapChange(!0))},e.prototype.feature=function(t){return{type:"Feature",geometry:{type:"Point",coordinates:t},properties:{}}},e.prototype.findMarkerElement=function(t,e){return e.parentElement===t?e:this.findMarkerElement(t,e.parentElement)},e.prototype.render=function(){var t=this,e=this.props,n=e.ClusterMarkerFactory,o=e.style,i=e.className,a=e.tabIndex,s=this.state.clusterPoints;return r.createElement("div",{style:o,className:i,tabIndex:a,onClick:this.props.zoomOnClick?this.zoomToClusterBounds:void 0},s.map((function(e){return e.properties&&e.properties.cluster?n(e.geometry.coordinates,e.properties.point_count,t.getLeaves.bind(t,e)):t.featureClusterMap.get(e)})))},e.defaultProps={radius:60,minZoom:0,maxZoom:16,extent:512,nodeSize:64,log:!1,zoomOnClick:!1,zoomOnClickPadding:20},e}(r.Component)),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Re=function(){return(Re=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},De={position:"absolute",zIndex:10,display:"flex",flexDirection:"column",boxShadow:"0px 1px 4px rgba(0, 0, 0, .3)",border:"1px solid rgba(0, 0, 0, 0.1)"},Le={"top-right":{top:62,right:10,bottom:"auto",left:"auto"},"top-left":{top:62,left:10,bottom:"auto",right:"auto"},"bottom-right":{bottom:63,right:10,top:"auto",left:"auto"},"bottom-left":{bottom:63,left:10,top:"auto",right:"auto"}},je={backgroundColor:"#f9f9f9",opacity:.95,transition:"background-color 0.16s ease-out",cursor:"pointer",border:0,height:26,width:26,outline:0,padding:3},Be={backgroundColor:"#fff",opacity:1},Ne={borderBottom:"1px solid rgba(0, 0, 0, 0.1)",borderTopLeftRadius:2,borderTopRightRadius:2,borderBottomLeftRadius:2,borderBottomRightRadius:2}
69,Fe=function(){return r.createElement("svg",{viewBox:"0 0 20 20"},r.createElement("polygon",{fill:"#333333",points:"6,9 10,1 14,9"}),r.createElement("polygon",{fill:"#CCCCCC",points:"6,11 10,19 14,11"}))},Ue={width:20,height:20,display:"inline-block"},Ve=Object.keys(Le),qe=K(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={hover:void 0},e.compassIcon=null,e.onMouseOut=function(){e.state.hover||e.setState({hover:void 0})},e.onMouseIn=function(){0!==e.state.hover&&e.setState({hover:0})},e.onClickCompass=function(){e.props.map.resetNorth()},e.onMapRotate=function(){var t="rotate("+e.props.map.transform.angle*(180/Math.PI)+"deg)";e.compassIcon&&(e.compassIcon.style.transform=t)},e.assignRef=function(t){e.compassIcon=t},e}return Me(e,t),e.prototype.componentDidMount=function(){this.props.map.on("rotate",this.onMapRotate)},e.prototype.componentWillUnmount=function(){this.props.map.off("rotate",this.onMapRotate)},e.prototype.render=function(){var t=this.props,e=t.position,n=t.style,o=t.className,i=t.tabIndex,a=this.state.hover,s=Re({},je,Ne,0===a?Be:{});return r.createElement("div",{className:o,tabIndex:i,style:Re({},De,Le[e],n)},r.createElement("button",{style:s,onMouseOver:this.onMouseIn,onMouseOut:this.onMouseOut,onClick:this.onClickCompass},r.createElement("span",{ref:this.assignRef,style:Ue},r.createElement(Fe,null))))},e.defaultProps={position:Ve[0]},e}(r.Component)),Ge=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),We=(K(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ge(e,t),e.prototype.componentDidMount=function(){this.loadImage(this.props)},e.prototype.componentWillUnmount=function(){e.removeImage(this.props)},e.prototype.componentDidUpdate=function(t){var n=t.id;t.map!==this.props.map&&e.removeImage(this.props),this.props.map&&!this.props.map.hasImage(n)&&this.loadImage(this.props)},e.prototype.render=function(){return null},e.prototype.loadImage=function(t){var e=this,n=t.map,r=t.id,o=t.url,i=t.data,a=t.options,s=t.onError;i?(n.addImage(r,i,a),this.loaded()):o&&n.loadImage(o,(function(t,o){t?s&&s(t):(n.addImage(r,o,a),e.loaded())}))},e.removeImage=function(t){var e=t.id,n=t.map;n&&n.getStyle()&&n.removeImage(e)},e.prototype.loaded=function(){var t=this.props.onLoaded;t&&t()},e}(r.Component)),K(dt(ut)),rt),Ze=n(42),He=n(10),Xe=n.n(He),$e=n(11),Ke=n.n($e),Ye=n(29),Je=n.n(Ye),Qe=n(65),tn=n.n(Qe),en=n(66),nn=n.n(en),rn=n(67),on=n.n(rn),an=n(68),sn=n.n(an),ln=n(69),un=n.n(ln),cn=n(70),pn=n.n(cn),fn=n(71),hn=n.n(fn);function dn(t){return(dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gn(t,e){return(gn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function vn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=bn(t);if(e){var o=bn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _n(this,n)}}function _n(t,e){return!e||"object"!==dn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function bn(t){return(bn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gn(t,e)}(a,t);var e,n,r,i=vn(a);function a(){return mn(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"getSrc",value:function(){if(!this.props.stone)return Je.a;var t=this.props.thumbnail?"thumbnail":"original",e=this.props.stone;if(e.portrait){var n=e.portrait;if("thumbnail"==t&&n.thumb)return n.thumb;if("original"==t&&n.original)return n.original}return e.gender&&e.stadium?{original:{male:{adault:Je.a,child:sn.a},female:{adault:nn.a,child:pn.a}},thumbnail:{male:{adault:tn.a,child:un.a},female:{adault:on.a,child:hn.a}}}[t][e.gender][e.stadium]:Je.a}},{key:"render",value:function(){return o.a.createElement("img",{src:this.getSrc(),onClick:this.props.onClick,className:this.props.className,alt:this.props.alt})}}])&&yn(e.prototype,n),r&&yn(e,r),a}(o.a.Component);function wn(t){return(wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function En(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}
69function Sn(t,e){return(Sn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function kn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Cn(t);if(e){var o=Cn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tn(this,n)}}function Tn(t,e){return!e||"object"!==wn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Cn(t){return(Cn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Pn=We({accessToken:"pk.eyJ1IjoiYWZyb3BmZXJkIiwiYSI6Ii1qZnhtSHMifQ.KfHOnzQmLcNnr2blFXmaFg"}),In=[[-31,27],[77,72]],On={center:[9,51],zoom:[5]},An=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sn(t,e)}(a,t);var e,n,r,i=kn(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).state={popup:{open:!1,coordinates:null,places:null},map:On},e.prevMapState=e.state.map,e}return e=a,(n=[{key:"componentDidUpdate",value:function(t,e){if(this.props.activePlace!==t.activePlace){var n=this.props.activePlace;if(n){var r=n.coords;this.setState({popup:{open:!0,coordinates:[r.lng,r.lat],places:[n]},map:{center:[r.lng,r.lat],zoom:[17]}})}n||this.setState({popup:{open:!1,coordinates:null,places:null}})}this.props.activeTown&&this.props.activeTown!==t.activeTown&&void 0!==this.props.activeTown.coords&&this.setState({popup:{open:!1,coordinates:null,places:null},map:{center:[this.props.activeTown.coords.lng,this.props.activeTown.coords.lat],zoom:[13]}}),this.props.activePlace||this.props.activeTown||!t.activePlace&&!t.activeTown||this.setState({popup:{open:!1,coordinates:null,places:null},map:On})}},{key:"loadCoordinates",value:function(){var t=this;Xe.a.get("/api2?place=".concat(this.props.activePlace.id)).then((function(e){t.setState({popup:{open:!0,coordinates:[e.data.coords.lng,e.data.coords.lat],places:[e.data]},map:{center:[e.data.coords.lng,e.data.coords.lat],zoom:[17]}})}))}},{key:"onClickMarker",value:function(t){var e=t.target,n=e.getZoom();if(n<12)this.setState({map:{center:t.features[0].geometry.coordinates,zoom:[13]}});else{if(t.features.length>
691){var r=this.getBounds(t),o=r.getNorthEast(),i=r.getSouthWest();if(this.distanceBetween(o,i)>5)return void e.fitBounds(r,{maxZoom:[17]})}var a=t.features.map((function(t){return JSON.parse(t.properties.place)})),s=[a[0].coords.lng,a[0].coords.lat];this.setState({popup:{open:!0,coordinates:s,places:a}})}}},{key:"getBounds",value:function(t){t.target;var e=t.features,n=new G.a.LngLatBounds;return e.map((function(t){n.extend(t.geometry.coordinates)})),n}},{key:"distanceBetween",value:function(t,e){var n=function(t){return t*(Math.PI/180)},r=t.lat,o=t.lng,i=e.lat,a=e.lng,s=n(i-r),l=n(a-o),u=Math.sin(s/2)*Math.sin(s/2)+Math.cos(n(r))*Math.cos(n(i))*Math.sin(l/2)*Math.sin(l/2);return 2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))*6371*1e3}},{key:"closePopup",value:function(){this.setState({popup:{open:!1,coordinates:this.state.popup.coordinates,places:this.state.popup.places}})}},{key:"handleMapClick",value:function(){var t=this.state.popup;this.state.popup.open&&(t.open=!1),this.setState({popup:t})}},{key:"render",value:function(){var t=this.state.popup;return o.a.createElement(Pn,{ref:"map",style:"mapbox://styles/afropferd/cjnncdk4x07kh2spgz1ib3cnc",center:this.state.map.center,zoom:this.state.map.zoom,maxBounds:In,className:this.props.modalOpen?"mapboxgl-map shrinked":"mapboxgl-map",onClick:this.handleMapClick.bind(this),movingMethod:"flyTo",flyToOptions:{speed:1.7}},o.a.createElement(Dt,null),o.a.createElement(qe,null),o.a.createElement(xt,{data:"/geojson/places.json",symbolLayout:{"icon-image":"{marker-symbol}","text-field":"{title}","text-font":["Open Sans Semibold","Arial Unicode MS Bold"],"text-offset":[0,.6],"text-anchor":"top","icon-allow-overlap":!1,"icon-size":.7},symbolOnClick:this.onClickMarker.bind(this),symbolOnMouseEnter:function(t){t.target.getCanvas().style.cursor=t.features.length?"pointer":""},symbolOnMouseLeave:function(t){t.target.getCanvas().style.cursor="grab"},layerOptions:{maxzoom:12}}),o.a.createElement(xt,{data:"/geojson/places.json",symbolLayout:{"icon-image":"{marker-symbol}","text-field":"{title}","text-font":["Open Sans Semibold","Arial Unicode MS Bold"],"text-offset":[0,.6],"text-anchor":"top","icon-allow-overlap":!0,"icon-size":.7},symbolOnClick:this.onClickMarker.bind(this),symbolOnMouseEnter:function(t){t.target.getCanvas().style.cursor=t.features.length?"pointer":""},symbolOnMouseLeave:function(t){t.target.getCanvas().style.cursor="grab"},layerOptions:{minzoom:12}}),t.open?o.a.createElement(Jt,{coordinates:t.coordinates,offset:0},o.a.createElement("div",{id:"popupContainer"},t.places.map((function(t){return o.a.createElement(g,{key:t.id,className:"popup",to:"/biografie/".concat(t.id,"/").concat(Ke()(t.title,{lower:!0}))},o.a.createElement("div",{className:"popup-portraits"},t.stones.map((function(t){return o.a.createElement(xn,{stone:t,thumbnail:!0,key:t.id,className:"".concat(t.gender," ").concat(t.stadium)})}))),o.a.createElement("span",{className:"popup-title"},t.title))})))):null)}}])&&En(e.prototype,n),r&&En(e,r),a}(o.a.Component),zn=Object(Ze.a)(Object(b.connect)((function(t){return{activePlace:t.activePlace,activeTown:t.activeTown}}))(An));function Mn(t){return function(e){t.length<3?e(Dn([])):e(function(t){return function(e){e(Rn(!0)),Xe.a.get("/api2?search=".concat(t,"&townLimit=2&placeLimit=5")).then((function(t){e(Rn(!0)),e(Dn(t.data))}))}}(t)),e({type:"SEARCH_KEY_CHANGED",searchKey:t})}}function Rn(t){return{type:"SEARCH_RESULTS_IS_LOADING",isLoading:t}}function Dn(t){return{type:"SEARCH_RESULTS_FETCH_DATA_SUCCESS",searchResults:t}}var Ln=n(14),jn=n.n(Ln),Bn=n(30),Nn=n.n(Bn),Fn=n(72),Un=n.n(Fn),Vn=n(28),qn=n.n(Vn);function Gn(t){return(Gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zn(t,e){return(Zn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Hn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$n(t);if(e){var o=$n(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xn(this,n)}}function Xn(t,e){return!e||"object"!==Gn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}
69function $n(t){return($n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Kn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zn(t,e)}(a,t);var e,n,r,i=Hn(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).state={searchInputIsFocused:!0,activeResultIndex:0},e}return e=a,(n=[{key:"componentDidUpdate",value:function(t,e){var n=this.props.activePlace!==t.activePlace,r=this.props.activeTown!==t.activeTown;if(n||r){var o="";n&&this.props.activePlace&&(o=this.props.activePlace.title),r&&this.props.activeTown&&(o=this.props.activeTown.title),this.props.searchKeyChanged(o),""!=o&&this.setState({searchInputIsFocused:!1}),this.setState({activeResultIndex:0})}this.state.searchInputIsFocused!==e.searchInputIsFocused&&(this.state.searchInputIsFocused&&(this.searchInput.focus(),this.searchInput.select()),this.state.searchInputIsFocused||this.searchInput.blur())}},{key:"handleSearch",value:function(t){t.preventDefault();var e=t.target.value;this.props.searchKeyChanged(e)}},{key:"handleResultsStoneClick",value:function(t,e,n){this.setState({searchInputIsFocused:!1})}},{key:"handleResultsTownClick",value:function(t,e){this.setState({searchInputIsFocused:!1})}},{key:"handleSearchFocus",value:function(t){this.setState({searchInputIsFocused:!0})}},{key:"handleSearchBlur",value:function(t){}},{key:"handleClearButtonClick",value:function(t){this.props.searchKeyChanged(""),this.setState({searchInputIsFocused:!0})}},{key:"handleKeyDown",value:function(t){if(["Enter","ArrowDown","ArrowUp"].includes(t.key)&&!(this.props.searchResults.length<=0)&&("ArrowDown"==t.key&&this.state.activeResultIndex<this.props.searchResults.length-1&&this.setState({activeResultIndex:this.state.activeResultIndex+1}),"ArrowUp"==t.key&&this.state.activeResultIndex>0&&this.setState({activeResultIndex:this.state.activeResultIndex-1}),"Enter"==t.key)){var e=this.props.searchResults[this.state.activeResultIndex];"stone"==e.type&&this.props.push("/biografie/".concat(e.place.id,"/").concat(Ke()(e.place.title,{lower:!0}))),"town"==e.type&&this.props.push("/staedte/".concat(e.town.id,"/").concat(Ke()(e.town.title,{lower:!0})))}}},{key:"render",value:function(){var t=this,e=this.props.searchKey.length>0&&this.props.searchResults.length>0&&this.state.searchInputIsFocused;return o.a.createElement("div",{className:"search-component-container",onKeyDown:this.handleKeyDown.bind(this)},o.a.createElement("div",{className:"search-component"},o.a.createElement("div",{className:"search-input"},o.a.createElement("input",{ref:function(e){t.searchInput=e},type:"search",onChange:this.handleSearch.bind(this),onFocus:this.handleSearchFocus.bind(this),onBlur:this.handleSearchBlur.bind(this),placeholder:"Stolperstein oder Ort suchen",value:this.props.searchKey}),o.a.createElement(g,{to:"/suche",className:this.props.searchKey.length>0?"clear-button visible":"clear-button",onClick:this.handleClearButtonClick.bind(this)},o.a.createElement(Un.a,null))),e?o.a.createElement("ul",{ref:function(e){t.resultsList=e},className:"results"},this.props.searchResults.map((function(e,n){var r=e.type,i=e.stone,a=e.place,s=e.town;return"stone"==r?o.a.createElement("li",{key:"search-stone-".concat(i.id)},o.a.createElement(g,{to:"/biografie/".concat(a.id,"/").concat(Ke()(a.title,{lower:!0})),onClick:t.handleResultsStoneClick.bind(t,i,a),className:null!==t.state.activeResultIndex&&t.state.activeResultIndex===n?"active":null},o.a.createElement(xn,{stone:i,thumbnail:!0}),o.a.createElement("p",null,o.a.createElement(Nn.a,{searchWords:t.props.searchKey.split(" "),textToHighlight:"".concat(i.firstname," ").concat(i.name)}),o.a.createElement("span",{className:"address"},o.a.createElement(Nn.a,{searchWords:t.props.searchKey.split(" "),textToHighlight:s.title}))))):"town"==r?o.a.createElement("li",{key:"search-town-".concat(s.id)},o.a.createElement(g,{to:"/staedte/".concat(s.id,"/").concat(Ke()(s.title,{lower:!0})),onClick:t.handleResultsTownClick.bind(t,s),className:null!==t.state.activeResultIndex&&t.state.activeResultIndex===n?"active":null},o.a.createElement("img",{src:qn.a}),o.a.createElement("p",null,o.a.createElement(Nn.a,{searchWords:t.props.searchKey.split(" "),textToHighlight:"".concat(s.title)})))):null}))):null))}}])&&Wn(e.prototype,n),r&&Wn(e,r),a}(o.a.Component),Yn=Object(b.connect)((function(t){return{searchKey:t.searchKey,searchResults:t.searchResults,hasErrored:t.searchResultsHasErrored,isLoading:t.searchResultsIsLoading,activePlace:t.activePlace,activeTown:t.activeTown}}),(function(t){return{searchKeyChanged:function(e){return t(Mn(e))},push:function(e){return t(Object(w.push)(e))}}}))(Kn);function Jn(t){return(Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function er(t,e){return(er=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function nr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=or(t);if(e){var o=or(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rr(this,n)}}function rr(t,e){return!e||"object"!==Jn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function or(t){return(or=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ir=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&er(t,e)}(a,t);var e,n,r,i=nr(a);function a(){return Qn(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"render",value:function(){return o.a.createElement("div",{id:"content"},o.a.createElement("div",null,o.a.createElement("div",{className:"padded-content"},o.a.createElement("h1",null,"Der Stolpersteine Guide"),o.a.createElement("p",null,"Erkunde die Geschichte hinter den Stolpersteinen direkt an dem Ort, an dem sie geschrieben wurde. Die App mit Führungen und Biografien für iOS und Android."),o.a.createElement(g,{className:"sg-button sg-button-primary",to:"/suche"},"Stolpersteine anzeigen"),o.a.createElement("div",{id:"stores"},o.a.createElement("a",{href:"https://apps.apple.com/us/app/stolpersteine-guide/id717896281?itsct=apps_box_badge&itscg=46145",style:{display:"inline-block",overflow:"hidden",borderRadius:"13px",width:"145px",height:"46px"}},o.a.createElement("img",{src:"https://tools.applemediaservices.com/api/badges/download-on-the-app-store/black/de
69-de?size=145x46&releaseDate=1384387200",alt:"Download on the App Store",style:{borderRadius:"13px",width:"145px",height:"46px"}})),o.a.createElement("a",{href:"https://play.google.com/store/apps/details?id=com.stolpersteine&utm_campaign=website&pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1",target:"blank"},o.a.createElement("img",{style:{marginBottom:"-2px"},height:"50px",alt:"Get it on Google Play",src:"https://play.google.com/intl/en_us/badges/images/apps/de-play-badge.png"})))),o.a.createElement("div",{className:"padded-content"},o.a.createElement("h2",null,"Unterstützen Sie uns"),o.a.createElement("p",null,"Gerne können Sie uns mit einem Betrag zum Betrieb und Weiterentwicklung der App und Website unterstützen."),o.a.createElement("a",{target:"blank",className:"sg-button sg-button-primary",href:"/support"},"Jetzt unterstützen")),o.a.createElement("br",null),o.a.createElement("div",{className:"padded-content"},o.a.createElement("h2",null,"Stolpersteine beitragen"),o.a.createElement("p",null,"Sie verwalten die Stolpersteine in ihrem Ort und möchten bei uns mitmachen? Dann können Sie sich hier kostenlos registrieren und Ihre Inhalte selbstständig in den Stolpersteine Guide eintragen."),o.a.createElement("a",{target:"blank",className:"sg-button sg-button-primary",href:"https://forms.stolpersteine-guide.de/STG7KV"},"Zugang anfragen"))),o.a.createElement("ul",{id:"footer"},o.a.createElement("li",null,o.a.createElement("a",{className:"icon",target:"_blank",title:"Instagram Stolpersteine Guide",href:"https://www.instagram.com/stolpersteineguide"},o.a.createElement("svg",{"data-name":"Instagram w/circle",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 19.2 19.2"},o.a.createElement("path",{d:"M13.498 6.651a1.656 1.656 0 00-.95-.949 2.766 2.766 0 00-.928-.172c-.527-.024-.685-.03-2.02-.03s-1.493.006-2.02.03a2.766 2.766 0 00-.929.172 1.656 1.656 0 00-.949.95 2.766 2.766 0 00-.172.928c-.024.527-.03.685-.03 2.02s.006 1.493.03 2.02a2.766 2.766 0 00.172.929 1.656 1.656 0 00.95.949 2.766 2.766 0 00.928.172c.527.024.685.029 2.02.029s1.493-.005 2.02-.03a2.766 2.766 0 00.929-.171 1.656 1.656 0 00.949-.95 2.766 2.766 0 00.172-.928c.024-.527.029-.685.029-2.02s-.005-1.493-.03-2.02a2.766 2.766 0 00-.171-.929zM9.6 12.168A2.568 2.568 0 1112.168 9.6 2.568 2.568 0 019.6 12.168zm2.669-4.637a.6.6 0 11.6-.6.6.6 0 01-.6.6z"}),o.a.createElement("circle",{cx:"9.6",cy:"9.6",r:"1.667"}),o.a.createElement("path",{d:"M9.6 0a9.6 9.6 0 109.6 9.6A9.6 9.6 0 009.6 0zm4.97 11.661a3.67 3.67 0 01-.233 1.214 2.556 2.556 0 01-1.462 1.462 3.67 3.67 0 01-1.213.233c-.534.024-.704.03-2.062.03s-1.528-.006-2.062-.03a3.67 3.67 0 01-1.213-.233 2.556 2.556 0 01-1.462-1.462 3.67 3.67 0 01-.233-1.213c-.024-.534-.03-.704-.03-2.062s.006-1.528.03-2.062a3.67 3.67 0 01.232-1.213 2.556 2.556 0 011.463-1.463 3.67 3.67 0 011.213-.232c.534-.024.704-.03 2.062-.03s1.528.006 2.062.03a3.67 3.67 0 011.213.232 2.556 2.556 0 011.462 1.463 3.67 3.67 0 01.233 1.213c.024.534.03.704.03 2.062s-.006 1.528-.03 2.062z"})))),o.a.createElement("li",null,o.a.createElement("a",{className:"icon",target:"_blank",title:"Facebook Stolpersteine Guide",href:"https://www.facebook.com/stolpersteineguide"},o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},o.a.createElement("path",{d:"M10 .4C4.698.4.4 4.698.4 10s4.298 9.6 9.6 9.6 9.6-4.298 9.6-9.6S15.302.4 10 .4zm2.274 6.634h-1.443c-.171 0-.361.225-.361.524V8.6h1.805l-.273 1.486H10.47v4.461H8.767v-4.461H7.222V8.6h1.545v-.874c0-1.254.87-2.273 2.064-2.273h1.443v1.581z"})))),o.a.createElement("li",null,o.a.createElement("a",{target:"_blank",title:"Pressekit Stolpersteine Guide",href:"https://drive.google.com/drive/folders/1wnF9q50vQeaIWQJ8tTFg1jbg-yUVUGzp?usp=sharing"},"Pressekit")),o.a.createElement("li",null,o.a.createElement("a",{target:"blank",href:"/imprint"},"Impressum")),o.a.createElement("li",null,o.a.createElement("a",{target:"blank",href:"/datenschutz"},"Datenschutz"))))}}])&&tr(e.prototype,n),r&&tr(e,r),a}(o.a.Component),ar=n(39),sr=n.n(ar),lr=n(73),ur=n.n(lr);function cr(t){return(cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}
vendor: 4,566 bytes, line 69
69function hr(t,e){return(hr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function dr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=yr(t);if(e){var o=yr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mr(this,n)}}function mr(t,e){return!e||"object"!==cr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function yr(t){return(yr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var gr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&hr(t,e)}(a,t);var e,n,r,i=dr(a);function a(){return pr(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"render",value:function(){return o.a.createElement("div",{id:"content",className:"padded-content"},o.a.createElement(g,{to:"/"},"zurück"),o.a.createElement("h1",null,o.a.createElement("img",{src:sr.a,srcSet:"".concat(sr.a," 1x, ").concat(ur.a," 2x")}),"Mitmachen"),o.a.createElement("p",null,"Sie verwalten die Stolpersteine in ihrem Ort und möchten bei uns mitmachen? Dann können Sie sich hier kostenlos registrieren. Nach einer kurzen Ãberprüfung richten wir Ihnen einen Zugang zu unserer Verwaltungsplattform ein, mit der Sie dann selbst die Stolpersteine und Führungen anlegen können."),o.a.createElement("h2",null,"Checkliste"),o.a.createElement("p",null,"Folgende Punkte sollten zutreffen, um bei uns mitmachen zu können:"),o.a.createElement("ul",{className:"checklist"},o.a.createElement("li",null,"Sie oder Ihr Verein verwalten die Stolpersteine"),o.a.createElement("li",null,"Es sind Biografien zu vielen Stolpersteinen vorhanden"),o.a.createElement("li",null,"Sie haben die nötigen Rechte an den Texten")),o.a.createElement("div",null,o.a.createElement("a",{className:"sg-button sg-button-primary",href:"https://stolpersteineguide.zapier.app/page",target:"_blank"},"Anfragen")),o.a.createElement("br",null),o.a.createElement("ul",{id:"footer"},o.a.createElement("li",null,o.a.createElement("a",{className:"icon",target:"_blank",title:"Twitter Stolpersteine Guide",href:"https://twitter.com/stolpersteinapp"},o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},o.a.createElement("path",{d:"M10 .4C4.698.4.4 4.698.4 10s4.298 9.6 9.6 9.6 9.6-4.298 9.6-9.6S15.302.4 10 .4zm3.905 7.864c.004.082.005.164.005.244 0 2.5-1.901 5.381-5.379 5.381a5.335 5.335 0 01-2.898-.85c.147.018.298.025.451.025.886 0 1.701-.301 2.348-.809a1.895 1.895 0 01-1.766-1.312 1.9 1.9 0 00.853-.033 1.892 1.892 0 01-1.517-1.854v-.023c.255.141.547.227.857.237a1.89 1.89 0 01-.585-2.526 5.376 5.376 0 003.897 1.977 1.891 1.891 0 013.222-1.725 3.797 3.797 0 001.2-.459 1.9 1.9 0 01-.831 1.047 3.799 3.799 0 001.086-.299 3.834 3.834 0 01-.943.979z"})))),o.a.createElement("li",null,o.a.createElement("a",{className:"icon",target:"_blank",title:"Instagram Stolpersteine Guide",href:"https://www.instagram.com/stolpersteineguide"},o.a.createElement("svg",{"data-name":"Instagram w/circle",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 19.2 19.2"},o.a.createElement("path",{d:"M13.498 6.651a1.656 1.656 0 00-.95-.949 2.766 2.766 0 00-.928-.172c-.527-.024-.685-.03-2.02-.03s-1.493.006-2.02.03a2.766 2.766 0 00-.929.172 1.656 1.656 0 00-.949.95 2.766 2.766 0 00-.172.928c-.024.527-.03.685-.03 2.02s.006 1.493.03 2.02a2.766 2.766 0 00.172.929 1.656 1.656 0 00.95.949 2.766 2.766 0 00.928.172c.527.024.685.029 2.02.029s1.493-.005 2.02-.03a2.766 2.766 0 00.929-.171 1.656 1.656 0 00.949-.95 2.766 2.766 0 00.172-.928c.024-.527.029-.685.029-2.02s-.005-1.493-.03-2.02a2.766 2.766 0 00-.171-.929zM9.6 12.168A2.568 2.568 0 1112.168 9.6 2.568 2.568 0 019.6 12.168zm2.669-4.637a.6.6 0 11.6-.6.6.6 0 01-.6.6z"}),o.a.createElement("circle",{cx:"9.6",cy:"9.6",r:"1.667"}),o.a.createElement("path",{d:"M9.6 0a9.6 9.6 0 109.6 9.6A9.6 9.6 0 009.6 0zm4.97 11.661a3.67 3.67 0 01-.233 1.214 2.556 2.556 0 01-1.462 1.462 3.67 3.67 0 01-1.213.233c-.534.024-.704.03-2.062.03s-1.528-.006-2.062-.03a3.67 3.67 0 01-1.213-.233 2.556 2.556 0 01-1.462-1.462 3.67 3.67 0 01-.233-1.213c-.024-.534-.03
69-.704-.03-2.062s.006-1.528.03-2.062a3.67 3.67 0 01.232-1.213 2.556 2.556 0 011.463-1.463 3.67 3.67 0 011.213-.232c.534-.024.704-.03 2.062-.03s1.528.006 2.062.03a3.67 3.67 0 011.213.232 2.556 2.556 0 011.462 1.463 3.67 3.67 0 01.233 1.213c.024.534.03.704.03 2.062s-.006 1.528-.03 2.062z"})))),o.a.createElement("li",null,o.a.createElement("a",{className:"icon",target:"_blank",title:"Facebook Stolpersteine Guide",href:"https://www.facebook.com/stolpersteineguide"},o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},o.a.createElement("path",{d:"M10 .4C4.698.4.4 4.698.4 10s4.298 9.6 9.6 9.6 9.6-4.298 9.6-9.6S15.302.4 10 .4zm2.274 6.634h-1.443c-.171 0-.361.225-.361.524V8.6h1.805l-.273 1.486H10.47v4.461H8.767v-4.461H7.222V8.6h1.545v-.874c0-1.254.87-2.273 2.064-2.273h1.443v1.581z"})))),o.a.createElement("li",null,o.a.createElement("a",{target:"_blank",title:"Pressekit Stolpersteine Guide",href:"https://drive.google.com/drive/folders/1wnF9q50vQeaIWQJ8tTFg1jbg-yUVUGzp?usp=sharing"},"Pressekit")),o.a.createElement("li",null,o.a.createElement(g,{to:"/impressum"},"Impressum"))))}}])&&fr(e.prototype,n),r&&fr(e,r),a}(o.a.Component),vr=(n(128),n(74)),_r=n.n(vr);n(129);function br(t){return(br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Er(t,e){return(Er=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Sr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Tr(t);if(e){var o=Tr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kr(this,n)}}function kr(t,e){return!e||"object"!==br(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Tr(t){return(Tr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Cr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Er(t,e)}(a,t);var e,n,r,i=Sr(a);function a(){return xr(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"render",value:function(){return o.a.createElement("div",null,o.a.createElement("div",{id:"content",className:"padded-content"},o.a.createElement(g,{to:"/"},"zurück"),o.a.createElement("h1",null,"Impressum"),o.a.createElement("br",null),o.a.createElement("strong",null,"Stolpersteine Guide GbR",o.a.createElement("br",null),"P. Nürnberger und K. Becker"),o.a.createElement("br",null),"WeiÃenfelser Str. 47",o.a.createElement("br",null),"04229 Leipzig",o.a.createElement("br",null),o.a.createElement("br",null),"Ansprechpartner:",o.a.createElement("br",null),"Peter Nürnberger",o.a.createElement("br",null),"Tel.: ",o.a.createElement("a",{href:"tel:+4934123460076"},"+49 341 23460076"),o.a.createElement("br",null),"E-Mail (bevorzugt):"," ",o.a.createElement("a",{href:"mailto:[email protected]"},"[email protected]")," ",o.a.createElement("br",null),o.a.createElement("br",null),o.a.createElement("p",null,"Mehr Infos zum Projekt Stolpersteine von Gunther Demnig gibt es unter"," ",o.a.createElement("a",{target:"_blank",href:"http://www.stolpersteine.eu"},"Stolpersteine.eu")),o.a.createElement("p",null,o.a.createElement("div",null,"Icons made by"," ",o.a.createElement("a",{target:"_blank",href:"http://www.freepik.com",title:"Freepik"},"Freepik")," ","from"," ",o.a.createElement("a",{href:"http://www.flaticon.com",title:"Flaticon"},"www.flaticon.com")," ","is licensed by"," ",o.a.createElement("a",{href:"http://creativecommons.org/licenses/by/3.0/",title:"Creative
69Commons BY 3.0"},"CC BY 3.0")))),o.a.createElement("div",{className:"aboutSection"},o.a.createElement("div",{className:"padded-content"},o.a.createElement("p",null,"Ein Projekt von Peter Nürnberger und Kim-Julian Becker, App zeitweise gefördert aus Mitteln des Landesdigitalisierungsprogramms für Wissenschaft und Kultur."),o.a.createElement("div",{className:"logos",style:{maxWidth:"500px"}},o.a.createElement("img",{src:_r.a})),o.a.createElement("p",null,"Ursprünglich an der Hochschule Trier in Zusammenarbeit mit Alexander Prümm entstanden."))))}}])&&wr(e.prototype,n),r&&wr(e,r),a}(o.a.Component);function Pr(t){return(Pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ir(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Or(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ar(t,e){return(Ar=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function zr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Rr(t);if(e){var o=Rr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mr(this,n)}}function Mr(t,e){return!e||"object"!==Pr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Rr(t){return(Rr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Dr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ar(t,e)}(a,t);var e,n,r,i=zr(a);function a(){return Ir(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"render",value:function(){return o.a.createElement("div",{id:"content",className:"padded-content"},o.a.createElement(g,{to:"/"},"zurück"),o.a.createElement("h1",null,"Pressebereich"),o.a.createElement("a",{className:"sg-button",href:"/files/Pressekit_StolpersteineGuide.zip"},"Download Presskit"),o.a.createElement("h2",null,"Pressemitteilung Release 2.0"),o.a.createElement("div",null,o.a.createElement("h3",null,"Die neue App zu den Stolpersteinen"),o.a.createElement("blockquote",null,"Entdecke die Geschichte hinter den Stolpersteinen, direkt an dem Ort, an dem sie geschrieben wurde!"),o.a.createElement("p",null,"Der Stolpersteine Guide ist eine App mit der die Stolpersteine der Umgebung erkundet werden können. Stolpersteine sind kleine Gedenktafeln für die Opfer des Nationalsozialismus, die sich meist vor ihrem letzten bekannten Wohnort befinden. Die Geschichte dieser Menschen soll mit Hilfe der App so vielen Menschen wie möglich zugänglich gemacht werden. Hierfür werden Biografien, Bilder und Videos zur jeweiligen Person angeboten und auf einer Karte und in kuratierten Führungen in der App dargestellt."),o.a.createElement("p",null,"Seit dem Start im Jahr 2013 haben sich bereits 62 Stolpersteininitiativen beteiligt, die Biografien zu über 2300 Stolpersteinen bereitstellen!"),o.a.createElement("h4",null,"Die neue App für iOS und Android"),o.a.createElement("p",null,"Die App kann ab sofort für iOS und Android kostenlos heruntergeladen werden."),o.a.createElement("p",null,"iOS:"," ",o.a.createElement("a",{target:"_blank",href:"https://apps.apple.com/de/app/stolpersteine-guide-inkl-swr2-stolpersteine/id717896281?mt=8"},"https://apps.apple.com/de/app/stolpersteine-guide-inkl-swr2-stolpersteine/id717896281?mt=8")),o.a.createElement("p",null,"Android:"," ",o.a.createElement("a",{target:"_blank",href:"http://play.google.com/store/apps/details?id=de.stolpersteineguide.app"},"http://play.google.com/store/apps/details?id=de.stolpersteineguide.app")),o.a.createElement("h4",null,"Funktionen im Ãberblick"),o.a.createElement("h5",null,"Führungen"),o.a.createElement("p",null,"Komm mit auf einen Rundgang von Stolperstein zu Stolperstein! Egal, ob es nur ein kurzer Spaziergang sein soll oder ob du dir mehr Zeit nehmen möchtest, hier findest du die passende Führung dazu."),o.a.createElement("ul",null,o.a.createElement("li",null,"Nimm deine Freunde, Schüler, Kollegen oder deine Familie mit und entdeckt zusammen die lokale Geschichte!"),o.a.createElement("li",null,"Menschen vor Ort, die sich in Initiativen engagieren, haben die Rundgänge für Euch ausgearbeitet.")),o.a.createElement("h5",null,"Freie Karte"),o.a.createElement("p",null,"Erkunde die Stolpersteine einer Stadt unabhängig von deinem aktuellen Standort."),o.a.createElement("h5",null,"Biografien"),o.a.createElement("p",null,"Mit dem Stolpersteine Guide hast du jederzeit Zugriff auf ausführliche Hintergrundinformationen zu den Stolpersteinen: Biografien der Opfer, Bilder, Audiobeiträge und manchmal auch Videos.")))}}])&&Or(e.prototype,n),r&&Or(e,r),a}(o.a.Component),Lr=n(75);function jr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Br(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Nr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fr(){return(Fr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Ur(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Nr(t,e,n[e])}))}return t}function Vr(t){return(Vr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function qr(t,e){return(qr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Gr(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Wr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zr(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?Wr(t):e}function Hr(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Xr={cursor:"pointer"},$r=function(t){var e=t.index,n=t.onClick,r=t.photo,i=t.margin,a=t.direction,s=t.top,l=t.left,u={margin:i};"column"===a&&(u.position="absolute",u.left=l,u.top=s);return o.a.createElement("img",Fr({style:n?Ur({},u,Xr):u},r,{onClick:n?function(t){n(t,{photo:r,index:e})}:null}))},Kr=l.a.shape({src:l.a.string.isRequired,width:l.a.number.isRequired,height:l.a.number.isRequired,alt:l.a.string,title:l.a.string,
69srcSet:l.a.oneOfType([l.a.string,l.a.array]),sizes:l.a.oneOfType([l.a.string,l.a.array])});function Yr(t,e){return e||(e=0),Number(Math.round(t+"e"+e)+"e-"+e)}function Jr(t){return Yr(t.width/t.height,2)}$r.propTypes={index:l.a.number.isRequired,onClick:l.a.func,photo:Kr.isRequired,margin:l.a.number,top:function(t){if("column"===t.direction&&"number"!=typeof t.top)return new Error("top is a required number when direction is set to `column`")},left:function(t){if("column"===t.direction&&"number"!=typeof t.left)return new Error("left is a required number when direction is set to `column`")},direction:l.a.string};var Qr=function(t){function e(){var t,n;jr(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Nr(Wr(Wr(n=Zr(this,(t=Vr(e)).call.apply(t,[this].concat(o))))),"state",{containerWidth:0}),Nr(Wr(Wr(n)),"handleClick",(function(t,e){var r=e.index,o=n.props,i=o.photos;(0,o.onClick)(t,{index:r,photo:i[r],previous:i[r-1]||null,next:i[r+1]||null})})),n}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qr(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){var t=this;this.animationFrameID=null,this.observer=new Lr.a((function(e){var n=e[0].contentRect.width;t.state.containerWidth!==n&&(t.animationFrameID=window.requestAnimationFrame((function(){t.setState({containerWidth:Math.floor(n)})})))})),this.observer.observe(this._gallery)}},{key:"componentWillUnmount",value:function(){this.observer.disconnect(),window.cancelAnimationFrame(this.animationFrameID)}},{key:"render",value:function(){var t=this,e=this.state.containerWidth;if(!e)return o.a.createElement("div",{ref:function(e){return t._gallery=e}},"Â ");var n=this.props.ImageComponent,r=void 0===n?$r:n,i=this.props,a=i.margin,s=i.onClick,l=i.direction,u=this.props.columns;"function"==typeof u&&(u=u(e)),void 0===u&&(u=1,e>=500&&(u=2),e>=900&&(u=3),e>=1500&&(u=4));var c,p,f=this.props.photos,h=e-1;return"row"===l&&(c={display:"flex",flexWrap:"wrap",flexDirection:"row"},p=function(t){var e=t.photos,n=t.columns,r=t.width,o=t.margin;if(!r)return[];var i=e.reduce((function(t,e,r){var o=Math.floor(r/n);return t[o]=t[o]?[].concat(Hr(t[o]),[e]):[e],t}),[]),a=[];return i.map((function(t,s){var l=t.reduce((function(t,e){return t+Jr(e)}),0),u=r-t.length*(2*o);s!==i.length-1&&a.push(l);var c=t.length===n?u/l:e.length<n?u/l*(t.length/n):u/(a.reduce((function(t,e){return t+e}),0)/(i.length-1));return t.map((function(t){return Ur({},t,{height:Yr(c,1),width:Yr(c*Jr(t),1)})}))})).reduce((function(t,e){return[].concat(Hr(t),Hr(e))}),[])}({width:h,columns:u,margin:a,photos:f})),"column"===l&&(c={position:"relative"},p=function(t){for(var e=t.photos,n=t.columns,r=t.width,o=t.margin,i=(r-2*o*n)/n,a=e.map((function(t){var e=t.height/t.width*i;return Ur({},t,{width:Yr(i,1),height:Yr(e,1)})})),s=[],l=[],u=0;u<n;u++)s[u]=Yr(u*(i+2*o),1),l[u]=0;return a.map((function(t){var e=l.reduce((function(t,e,n){return t=e<l[t]?n:t}),0);t.top=l[e],t.left=s[e],l[e]=l[e]+t.height+2*o;var n=l.reduce((function(t,e,n){return t=e>l[t]?n:t}),0);return t.containerHeight=l[n],t}))}({width:h,columns:u,margin:a,photos:f}),c.height=p[p.length-1].containerHeight),o.a.createElement("div",{className:"react-photo-gallery--gallery"},o.a.createElement("div",{ref:function(e){return t._gallery=e},style:c},p.map((function(e,n){var i=e.left,u=e.top,c=(e.containerHeight,Gr(e,["left","top","containerHeight"]));return o.a.createElement(r,{key:e.key||e.src,margin:a,index:n,photo:c,direction:l,left:i,top:u,onClick:s?t.handleClick:null})}))))}}])&&Br(n.prototype,r),i&&Br(n,i),e}(o.a.Component);Qr.propTypes={photos:l.a.arrayOf(Kr).isRequired,direction:l.a.string,onClick:l.a.func,columns:l.a.oneOfType([l.a.func,l.a.number]),margin:l.a.number,ImageComponent:l.a.func},Qr.defaultProps={margin:2,direction:"row"};var to=Qr,eo=n(76),no=n.n(eo);function ro(t){return(ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function oo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}
69function io(t,e){return(io=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ao(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=uo(t);if(e){var o=uo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return so(this,n)}}function so(t,e){return!e||"object"!==ro(e)&&"function"!=typeof e?lo(t):e}function lo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function uo(t){return(uo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var co=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&io(t,e)}(a,t);var e,n,r,i=ao(a);function a(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this)).state={currentImage:0},t.closeLightbox=t.closeLightbox.bind(lo(t)),t.openLightbox=t.openLightbox.bind(lo(t)),t.gotoNext=t.gotoNext.bind(lo(t)),t.gotoPrevious=t.gotoPrevious.bind(lo(t)),t.onClickLightboxThumbnail=t.onClickLightboxThumbnail.bind(lo(t)),t}return e=a,(n=[{key:"componentDidUpdate",value:function(t,e){null!==this.props.portraitImageToOpen&&this.props.portraitImageToOpen!==t.portraitImageToOpen&&this.setState({currentImage:this.props.portraitImageToOpen,lightboxIsOpen:!0}),null!==this.props.galleryImageToOpen&&this.props.galleryImageToOpen!==t.galleryImageToOpen&&this.setState({currentImage:this.props.portraitPhotos.length+this.props.galleryImageToOpen,lightboxIsOpen:!0}),this.state.lightboxIsOpen&&!e.lightboxIsOpen&&this.props.openedLightbox()}},{key:"openLightbox",value:function(t,e){var n=e.index;n+=this.props.portraitPhotos.length,this.setState({currentImage:n,lightboxIsOpen:!0})}},{key:"closeLightbox",value:function(){this.setState({currentImage:0,lightboxIsOpen:!1})}},{key:"gotoPrevious",value:function(){this.setState({currentImage:this.state.currentImage-1})}},{key:"gotoNext",value:function(){this.setState({currentImage:this.state.currentImage+1})}},{key:"onClickLightboxThumbnail",value:function(t){this.setState({currentImage:t})}},{key:"render",value:function(){var t=this.props.portraitPhotos;return this.props.galleryPhotos&&(t=t.concat(this.props.galleryPhotos)),o.a.createElement("div",null,this.props.galleryPhotos?o.a.createElement(to,{photos:this.props.galleryPhotos,onClick:this.openLightbox,columns:2}):null,o.a.createElement(no.a,{images:t,onClose:this.closeLightbox,onClickPrev:this.gotoPrevious,onClickNext:this.gotoNext,currentImage:this.state.currentImage,isOpen:this.state.lightboxIsOpen,imageCountSeparator:" von ",backdropClosesModal:!0,showThumbnails:!0,onClickThumbnail:this.onClickLightboxThumbnail}))}}])&&oo(e.prototype,n),r&&oo(e,r),a}(o.a.Component),po=n(40),fo=n.n(po),ho=n(23),mo=n.n(ho);function yo(t){return(yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function go(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _o(t,e){return(_o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=wo(t);if(e){var o=wo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xo(this,n)}}function xo(t,e){return!e||"object"!==yo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}
69function wo(t){return(wo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}o.a.Component,n(174);function Eo(t){return(Eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function So(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ko(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function To(t,e){return(To=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Co(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Io(t);if(e){var o=Io(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Po(this,n)}}function Po(t,e){return!e||"object"!==Eo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Io(t){return(Io=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Oo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&To(t,e)}(a,t);var e,n,r,i=Co(a);function a(){return So(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"handleClickHeader",value:function(t){void 0===this.props.place.photos||this.props.place.photos.length<=0||t.target.classList.contains("portrait-image")||this.props.galleryIconClicked()}},{key:"handlePortraitClick",value:function(t,e){e.preventDefault(),this.props.imageClicked(t,e)}},{key:"render",value:function(){var t=this,e=this.props.place;return o.a.createElement("div",{id:"place-header",onClick:this.handleClickHeader.bind(this)},void 0!==e.photos&&e.photos.length>0?o.a.createElement("div",{id:"place-header-background",style:{backgroundImage:"url(".concat(e.photos[0].original,")")}}):null,void 0!==e.title?o.a.createElement("h1",null,e.title):null,void 0!==e.stones&&e.stones.length>0?o.a.createElement("div",{className:"stones"},e.stones.map((function(e,n){return o.a.createElement("div",{className:"stone",key:e.id},o.a.createElement(xn,{className:"portrait-image",stone:e,thumbnail:!0,onClick:t.handlePortraitClick.bind(t,n)}),o.a.createElement("p",null,"".concat(e.firstname," ").concat(e.name)))}))):null)}}])&&ko(e.prototype,n),r&&ko(e,r),a}(o.a.Component),Ao=n(77),zo=n.n(Ao);function Mo(t){return{type:"ACTIVE_PLACE_CHANGED",activePlace:t}}function Ro(t){return{type:"ACTIVE_PLACE_IS_LOADING",isLoading:t}}function Do(t){return(Do="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jo(t,e){return(jo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Bo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Fo(t);if(e){var o=Fo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return No(this,n)}}function No(t,e){return!e||"object"!==Do(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}
69function Fo(t){return(Fo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Uo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jo(t,e)}(a,t);var e,n,r,i=Bo(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).state=e.defaultState(),e}return e=a,(n=[{key:"defaultState",value:function(){return{portraitImageToOpen:null,galleryImageToOpen:null,isTextExpaned:!1}}},{key:"componentDidMount",value:function(){this.props.place&&this.props.place.id===this.props.match.params.placeID||this.props.activePlaceFetchData(this.props.match.params.placeID)}},{key:"componentDidUpdate",value:function(t){this.props.place&&this.props.place.id===this.props.match.params.placeID||this.props.isLoading||this.props.isErrored||(this.props.activePlaceFetchData(this.props.match.params.placeID),this.setState(this.defaultState()))}},{key:"componentWillUnmount",value:function(){this.props.activePlaceChanged(null)}},{key:"getPortraitPhotos",value:function(){var t=[];return this.props.place.stones&&this.props.place.stones.map((function(e){var n=new xn({stone:e}),r={src:"".concat(n.getSrc(),"#").concat(e.id),width:274,height:358,alt:"".concat(e.firstname," ").concat(e.name),caption:"".concat(e.firstname," ").concat(e.name)};t.push(r)})),t.length>0?t:null}},{key:"getGalleryPhotos",value:function(){var t=[];return this.props.place.photos&&this.props.place.photos.map((function(e){var n={src:e.original,width:e.width,height:e.height,alt:e.caption,caption:e.caption};t.push(n)})),t.length>0?t:null}},{key:"getVideos",value:function(){var t=[];return this.props.place.videos&&this.props.place.videos.map((function(e){var n={youtube_id:e.youtube_id,thumb:e.thumb};t.push(n)})),t.length>0?t:null}},{key:"portraitImageClicked",value:function(t){this.setState({portraitImageToOpen:t})}},{key:"galleryIconClicked",value:function(){this.setState({galleryImageToOpen:0})}},{key:"openedGalleryLightbox",value:function(){this.setState({portraitImageToOpen:null,galleryImageToOpen:null})}},{key:"toggleTextExpanded",value:function(t){this.setState({isTextExpaned:!this.state.isTextExpaned})}},{key:"render",value:function(){if(!this.props.place)return o.a.createElement(jn.a,{type:"cubes",color:"rgba(40, 40, 0, 0.1)"});var t=this.props.place,e=this.getGalleryPhotos(),n=this.getVideos(),r=this.getPortraitPhotos();return o.a.createElement("div",{id:"place"},t.title?o.a.createElement(Oo,{place:t,imageClicked:this.portraitImageClicked.bind(this),galleryIconClicked:this.galleryIconClicked.bind(this)}):null,this.props.isLoading?o.a.createElement(jn.a,{type:"cubes",color:"rgba(40, 40, 0, 0.1)"}):null,t.audio?o.a.createElement("div",{id:"place-audio"},o.a.createElement("audio",{controls:!0},o.a.createElement("source",{src:t.audio,type:"audio/mpeg"}),"Your browser does not support the audio tag."),"58"===t.town.id?o.a.createElement("div",{className:"audio-copyright"},o.a.createElement("img",{src:zo.a})):null):null,t.text?o.a.createElement("div",{id:"place-description"},o.a.createElement("h3",null,"Biografie"),o.a.createElement("p",{className:this.state.isTextExpaned?"":"collapsed",lang:"de"},fo()(t.text)),this.state.isTextExpaned?null:o.a.createElement("button",{className:"sg-button sg-button-place",onClick:this.toggleTextExpanded.bind(this)},"Weiterlesen")):null,e||n?o.a.createElement("div",{className:"padded-content"},o.a.createElement("h3",null,"Medien"),n?o.a.createElement("div",{id:"place-videos"},n.map((function(t,e){return o.a.createElement("div",{className:"place-video",key:e},o.a.createElement("a",{href:"https://www.youtube.com/watch?v=".concat(t.youtube_id),target:"_blank",rel:"noreferrer",style:{position:"relative",display:"block",width:"200px"}},o.a.createElement("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",fontSize:"48px",color:"white",textDecoration:"none"}}
69,"â¶ï¸"),o.a.createElement("img",{src:t.thumb,alt:"Video Thumbnail",style:{display:"block",width:"100%"}})))}))):null,e?o.a.createElement(co,{galleryPhotos:e,portraitPhotos:r,portraitImageToOpen:this.state.portraitImageToOpen,galleryImageToOpen:this.state.galleryImageToOpen,openedLightbox:this.openedGalleryLightbox.bind(this)}):null):null,t.town?o.a.createElement("div",{className:"aboutSection"},o.a.createElement("div",{className:"padded-content"},o.a.createElement("h3",null,"Quellen & Impressum"),o.a.createElement("h4",null,t.town.association),t.town.association_url?o.a.createElement("a",{id:"place-copyright",target:"_blank",href:t.town.association_url},t.town.association_url):null,o.a.createElement("p",null,fo()(t.town.impressum)))):null)}}])&&Lo(e.prototype,n),r&&Lo(e,r),a}(o.a.Component),Vo=Object(Ze.a)(Object(b.connect)((function(t){return{place:t.activePlace,isErrored:t.activePlaceIsErrored,isLoading:t.activePlaceIsLoading}}),(function(t){return{activePlaceChanged:function(e){return t(Mo(e))},activePlaceFetchData:function(e){return t((n=e,function(t){t(Ro(!0)),Xe.a.get("/api2?place=".concat(n)).then((function(e){t(Ro(!1)),t(Mo(e.data))}))}));var n}}}))(Uo));function qo(t){return(qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Go(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zo(t,e){return(Zo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ho(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$o(t);if(e){var o=$o(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xo(this,n)}}function Xo(t,e){return!e||"object"!==qo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $o(t){return($o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ko=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zo(t,e)}(a,t);var e,n,r,i=Ho(a);function a(){return Go(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"render",value:function(){return o.a.createElement("div",{id:"content"},o.a.createElement(Vo,null),o.a.createElement("ul",{id:"footer"},o.a.createElement("li",null,o.a.createElement("a",{className:"icon",target:"_blank",title:"Twitter Stolpersteine Guide",href:"https://twitter.com/stolpersteinapp"},o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},o.a.createElement("path",{d:"M10 .4C4.698.4.4 4.698.4 10s4.298 9.6 9.6 9.6 9.6-4.298 9.6-9.6S15.302.4 10 .4zm3.905 7.864c.004.082.005.164.005.244 0 2.5-1.901 5.381-5.379 5.381a5.335 5.335 0 01-2.898-.85c.147.018.298.025.451.025.886 0 1.701-.301 2.348-.809a1.895 1.895 0 01-1.766-1.312 1.9 1.9 0 00.853-.033 1.892 1.892 0 01-1.517-1.854v-.023c.255.141.547.227.857.237a1.89 1.89 0 01-.585-2.526 5.376 5.376 0 003.897 1.977 1.891 1.891 0 013.222-1.725 3.797 3.797 0 001.2-.459 1.9 1.9 0 01-.831 1.047 3.799 3.799 0 001.086-.299 3.834 3.834 0 01-.943.979z"})))),o.a.createElement("li",null,o.a.createElement("a",{className:"icon",target:"_blank",title:"Instagram Stolpersteine Guide",href:"https://www.instagram.com/stolpersteineguide"},o.a.createElement("svg",{"data-name":"Instagram w/circle",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 19.2 19.2"},o.a.createElement("path",{d:"M13.498 6.651a1.656 1.656 0 00-.95-.949 2.766 2.766 0 00-.928-.172c-.527-.024-.685-.03-2.02-.03s-1.493.006-2.02.03a2.766 2.766 0 00-.929.172 1.656 1.656 0 00-.949.95 2.766 2.766 0 00-.172.928c-.024.527-.03.685-.03 2.02s.006 1.493.03 2.02a2.766 2.766 0 00.172.929 1.656 1.656 0 00.95.949 2.766 2.766 0 00.928.172c.527.024.685.029 2.02.029s1.493-.005 2.02-.03a2.766 2.766 0 00.929-.171 1.656 1.656 0 00.949-.95 2.766 2.766 0 00.172-.928c.024-.527.029-.685.029-2.02s-.005-1.493-.03-2.02a2.766 2.766 0 00-.171-.929zM9.6 12.168A2.568 2.568 0 1112.168 9.6 2.568 2.568 0 019.6 12.168zm2.669-4.637a.6.6 0 11.6-.6.6.6 0 01-.6.6z"}),o.a.createElement("circle",{cx:"9.6",cy:"9.6",r:"1.667"}),o.a.createElement("path",{d:"M9.6 0a9.6 9.6 0 109.6 9.6A9.6 9.6 0 009.6 0zm4.97 11.661a3.67 3.67 0 01-.233 1.214 2.556 2.556 0 01-1.462 1.462 3.67 3.67 0 01-1.213.233c-.534.024-.704.03-2.062.03s-1.528-.006-2.062-.03a3.67 3.67 0 01-1.213-.233 2.556 2.556 0 01-1.462-1.462 3.67 3.67 0 01-.233-1.213c-.024-.534-.03
69-.704-.03-2.062s.006-1.528.03-2.062a3.67 3.67 0 01.232-1.213 2.556 2.556 0 011.463-1.463 3.67 3.67 0 011.213-.232c.534-.024.704-.03 2.062-.03s1.528.006 2.062.03a3.67 3.67 0 011.213.232 2.556 2.556 0 011.462 1.463 3.67 3.67 0 01.233 1.213c.024.534.03.704.03 2.062s-.006 1.528-.03 2.062z"})))),o.a.createElement("li",null,o.a.createElement("a",{className:"icon",target:"_blank",title:"Facebook Stolpersteine Guide",href:"https://www.facebook.com/stolpersteineguide"},o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},o.a.createElement("path",{d:"M10 .4C4.698.4.4 4.698.4 10s4.298 9.6 9.6 9.6 9.6-4.298 9.6-9.6S15.302.4 10 .4zm2.274 6.634h-1.443c-.171 0-.361.225-.361.524V8.6h1.805l-.273 1.486H10.47v4.461H8.767v-4.461H7.222V8.6h1.545v-.874c0-1.254.87-2.273 2.064-2.273h1.443v1.581z"})))),o.a.createElement("li",null,o.a.createElement("a",{target:"_blank",title:"Pressekit Stolpersteine Guide",href:"https://drive.google.com/drive/folders/1wnF9q50vQeaIWQJ8tTFg1jbg-yUVUGzp?usp=sharing"},"Pressekit")),o.a.createElement("li",null,o.a.createElement(g,{to:"/impressum"},"Impressum"))))}}])&&Wo(e.prototype,n),r&&Wo(e,r),a}(o.a.Component);function Yo(t){return(Yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qo(t,e){return(Qo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ti(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ni(t);if(e){var o=ni(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ei(this,n)}}function ei(t,e){return!e||"object"!==Yo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ni(t){return(ni=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ri=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qo(t,e)}(a,t);var e,n,r,i=ti(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).state={loading:!0,towns:[]},e}return e=a,(n=[{key:"componentDidMount",value:function(){var t=this;Xe.a.get("/api2?towns").then((function(e){t.setState({towns:e.data,loading:!1})}))}},{key:"render",value:function(){return o.a.createElement("div",{id:"content"},this.state.loading?o.a.createElement(jn.a,{type:"cubes",color:"rgba(40, 40, 0, 0.1)"}):null,this.state.towns.length>0?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"padded-content"},o.a.createElement("h2",null,"Orte im Stolpersteine Guide")),o.a.createElement("ul",{className:"sg-list sg-list-towns"},this.state.towns.map((function(t){return o.a.createElement("li",{key:"town-".concat(t.id)},o.a.createElement(g,{to:"/staedte/".concat(t.id,"/").concat(Ke()(t.title,{lower:!0}))},o.a.createElement("img",{src:qn.a}),o.a.createElement("p",null,t.title)))})))):null)}}])&&Jo(e.prototype,n),r&&Jo(e,r),a}(o.a.Component);function oi(t){return{type:"ACTIVE_TOWN_CHANGED",activeTown:t}}function ii(t){return{type:"ACTIVE_TOWN_IS_LOADING",isLoading:t}}function ai(t){return function(e){e(ii(!0)),Xe.a.get("/api2?town=".concat(t)).then((function(n){e(ii(!1)),e(oi(n.data)),e(function(t){return function(e){e(si(!0)),Xe.a.get("/api2?town=".concat(t,"&stones")).then((function(t){e(si(!1)),e(function(t){return{type:"ACTIVE_TOWN_STONES_CHANGED",activeTownStones:t}}(t.data))}))}}(t))}))}}function si(t){return{type:"ACTIVE_TOWN_STONES_IS_LOADING",isLoading:t}}function li(t){return(li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ui(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ci(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}
69function pi(t,e){return(pi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function fi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=di(t);if(e){var o=di(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hi(this,n)}}function hi(t,e){return!e||"object"!==li(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function di(t){return(di=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var mi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&pi(t,e)}(a,t);var e,n,r,i=fi(a);function a(){return ui(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"componentDidMount",value:function(){this.props.town&&this.props.town.id===this.props.match.params.townID||this.props.activeTownFetchData(this.props.match.params.townID)}},{key:"componentDidUpdate",value:function(t){this.props.town&&this.props.town.id===this.props.match.params.townID||this.props.isLoading||this.props.isErrored||this.props.activeTownFetchData(this.props.match.params.townID)}},{key:"componentWillUnmount",value:function(){this.props.activeTownChanged(null)}},{key:"render",value:function(){return o.a.createElement("div",{id:"content"},o.a.createElement("div",{className:"padded-content"},this.props.town?o.a.createElement("h2",null,"Stolpersteine in ",this.props.town.title):null),this.props.isTownLoading||this.props.isStonesLoading?o.a.createElement(jn.a,{type:"cubes",color:"rgba(40, 40, 0, 0.1)"}):null,this.props.stones.length>0?o.a.createElement("ul",{className:"sg-list sg-list-stones"},this.props.stones.map((function(t){var e=t.stone,n=t.place;return o.a.createElement("li",{key:"stone-".concat(e.id)},o.a.createElement(g,{to:"/biografie/".concat(n.id,"/").concat(Ke()(n.title,{lower:!0}))},o.a.createElement(xn,{stone:e,thumbnail:!0}),o.a.createElement("p",null,"".concat(e.firstname," ").concat(e.name))))}))):null)}}])&&ci(e.prototype,n),r&&ci(e,r),a}(o.a.Component),yi=Object(Ze.a)(Object(b.connect)((function(t){return{town:t.activeTown,stones:t.activeTownStones,isTownErrored:t.activeTownIsErrored,isTownLoading:t.activeTownIsLoading,isStonesErrored:t.activeStonesIsErrored,isStonesLoading:t.activeStonesIsLoading}}),(function(t){return{activeTownChanged:function(e){return t(oi(e))},activeTownFetchData:function(e){return t(ai(e))}}}))(mi)),gi=n(78),vi=n.n(gi);function _i(t){return(_i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wi(t,e){return(wi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ei(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ki(t);if(e){var o=ki(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Si(this,n)}}function Si(t,e){return!e||"object"!==_i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}
vendor: 1,741 bytes, line 69
69function ki(t){return(ki=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ti=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wi(t,e)}(a,t);var e,n,r,i=Ei(a);function a(){return bi(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"render",value:function(){return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{id:"contentMapWrapper"},o.a.createElement("div",{id:"contentContainer"},o.a.createElement("div",{className:"darkHead"},o.a.createElement("div",{className:"headerTopContent"},o.a.createElement(g,{to:"/",id:"logo"},o.a.createElement(vi.a,null),o.a.createElement("span",null,"Stolpersteine Guide")),o.a.createElement("a",{target:"_blank",className:"sg-button",href:"/support"},"Unterstützen")),o.a.createElement(Yn,null)),o.a.createElement(v,null,o.a.createElement(_,{exact:!0,path:"/",component:ir}),o.a.createElement(_,{exact:!0,path:"/suche",component:ri}),o.a.createElement(_,{exact:!0,path:"/mitmachen",component:gr}),o.a.createElement(_,{exact:!0,path:"/impressum",component:Cr}),o.a.createElement(_,{exact:!0,path:"/press",component:Dr}),o.a.createElement(_,{path:"/staedte/:townID/:title",component:yi}),o.a.createElement(_,{path:"/biografie/:placeID/:title",component:Ko}))),o.a.createElement("div",{id:"mapContainer"},o.a.createElement(zn,null))))}}])&&xi(e.prototype,n),r&&xi(e,r),a}(o.a.Component);a.a.render(o.a.createElement(b.Provider,{store:V},o.a.createElement(w.ConnectedRouter,{history:F},o.a.createElement(Ti,null))),document.getElementById("app"))}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.