diff options
Diffstat (limited to 'docs/style-generator')
-rw-r--r-- | docs/style-generator/index.html | 2 | ||||
-rw-r--r-- | docs/style-generator/style-generator.6de626e5.js | 39 |
2 files changed, 40 insertions, 1 deletions
diff --git a/docs/style-generator/index.html b/docs/style-generator/index.html index 6b28656..612c0cd 100644 --- a/docs/style-generator/index.html +++ b/docs/style-generator/index.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Mapbox Style to Elm</title> <link rel="stylesheet" href="style-generator.90798390.css"></head> <body> <script src="style-generator.e65d4760.js"></script> </body> </html>
\ No newline at end of file +<!DOCTYPE html><html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Mapbox Style to Elm</title> <link rel="stylesheet" href="style-generator.90798390.css"></head> <body> <script src="style-generator.6de626e5.js"></script> </body> </html>
\ No newline at end of file diff --git a/docs/style-generator/style-generator.6de626e5.js b/docs/style-generator/style-generator.6de626e5.js new file mode 100644 index 0000000..b16de00 --- /dev/null +++ b/docs/style-generator/style-generator.6de626e5.js @@ -0,0 +1,39 @@ +parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r},p.cache={};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({"3oS9":[function(require,module,exports) { +!function(r){"use strict";function n(r,n,e){return e.a=r,e.f=n,e}function e(r){return n(2,r,function(n){return function(e){return r(n,e)}})}function t(r){return n(3,r,function(n){return function(e){return function(t){return r(n,e,t)}}})}function a(r){return n(4,r,function(n){return function(e){return function(t){return function(a){return r(n,e,t,a)}}}})}function u(r){return n(5,r,function(n){return function(e){return function(t){return function(a){return function(u){return r(n,e,t,a,u)}}}}})}function i(r){return n(6,r,function(n){return function(e){return function(t){return function(a){return function(u){return function(i){return r(n,e,t,a,u,i)}}}}}})}function c(r){return n(7,r,function(n){return function(e){return function(t){return function(a){return function(u){return function(i){return function(c){return r(n,e,t,a,u,i,c)}}}}}}})}function o(r){return n(8,r,function(n){return function(e){return function(t){return function(a){return function(u){return function(i){return function(c){return function(o){return r(n,e,t,a,u,i,c,o)}}}}}}}})}function f(r,n,e){return 2===r.a?r.f(n,e):r(n)(e)}function s(r,n,e,t){return 3===r.a?r.f(n,e,t):r(n)(e)(t)}function l(r,n,e,t,a){return 4===r.a?r.f(n,e,t,a):r(n)(e)(t)(a)}function b(r,n,e,t,a,u){return 5===r.a?r.f(n,e,t,a,u):r(n)(e)(t)(a)(u)}function d(r,n,e,t,a,u,i){return 6===r.a?r.f(n,e,t,a,u,i):r(n)(e)(t)(a)(u)(i)}function h(r,n,e,t,a,u,i,c){return 7===r.a?r.f(n,e,t,a,u,i,c):r(n)(e)(t)(a)(u)(i)(c)}function v(r,n,e,t,a,u,i,c,o){return 8===r.a?r.f(n,e,t,a,u,i,c,o):r(n)(e)(t)(a)(u)(i)(c)(o)}var p={$:0};function g(r,n){return{$:1,a:r,b:n}}var m=e(g);function $(r){for(var n=p,e=r.length;e--;)n=g(r[e],n);return n}function y(r){for(var n=[];r.b;r=r.b)n.push(r.a);return n}var w=t(function(r,n,e){for(var t=[];n.b&&e.b;n=n.b,e=e.b)t.push(f(r,n.a,e.a));return $(t)}),x=e(function(r,n){return $(y(n).sort(function(n,e){return L(r(n),r(e))}))});function k(r,n){for(var e,t=[],a=j(r,n,0,t);a&&(e=t.pop());a=j(e.a,e.b,0,t));return a}function j(r,n,e,t){if(e>100)return t.push(E(r,n)),!0;if(r===n)return!0;if("object"!=typeof r||null===r||null===n)return"function"==typeof r&&R(5),!1;for(var a in 0>r.$&&(r=_n(r),n=_n(n)),r)if(!j(r[a],n[a],e+1,t))return!1;return!0}function L(r,n,e){if("object"!=typeof r)return r===n?0:n>r?-1:1;if(!r.$)return(e=L(r.a,n.a))?e:(e=L(r.b,n.b))?e:L(r.c,n.c);for(;r.b&&n.b&&!(e=L(r.a,n.a));r=r.b,n=n.b);return e||(r.b?1:n.b?-1:0)}var A=e(function(r,n){var e=L(r,n);return 0>e?zn:e?Cn:Mn}),q=0;function E(r,n){return{a:r,b:n}}function S(r,n,e){return{a:r,b:n,c:e}}function T(r){return r}function M(r,n){var e={};for(var t in r)e[t]=r[t];for(var t in n)e[t]=n[t];return e}function C(r,n){if("string"==typeof r)return r+n;if(!r.b)return n;var e=g(r.a,n);r=r.b;for(var t=e;r.b;r=r.b)t=t.b=g(r.a,n);return e}var z=t(function(r,n,e){for(var t=Array(r),a=0;r>a;a++)t[a]=e(n+a);return t}),B=e(function(r,n){for(var e=Array(r),t=0;r>t&&n.b;t++)e[t]=n.a,n=n.b;return e.length=t,E(e,n)});function R(r){throw Error("https://github.com/elm/core/blob/1.0.0/hints/"+r+".md")}var _=Math.ceil,N=Math.floor,P=Math.round,O=Math.log,F=e(function(r,n){return r+n}),I=t(function(r,n,e){for(var t=e.length;t--;){var a=e[t],u=e.charCodeAt(t);56320>u||u>57343||(a=e[--t]+a),n=f(r,T(a),n)}return n}),J=e(function(r,n){return n.split(r)}),U=e(function(r,n){return n.join(r)}),X=t(function(r,n,e){return e.slice(r,n)}),D=e(function(r,n){for(var e=n.length;e--;){var t=n[e],a=n.charCodeAt(e);if(56320>a||a>57343||(t=n[--e]+t),!r(T(t)))return!1}return!0});function G(r){return r+""}var K=e(function(r,n){return{$:10,d:r,b:n}}),H=e(function(r,n){return{$:11,e:r,b:n}});function Q(r,n){return{$:13,f:r,g:n}}var W=e(function(r,n){return{$:14,b:n,h:r}}),V=e(function(r,n){return Q(r,[n])}),Z=t(function(r,n,e){return Q(r,[n,e])}),Y=a(function(r,n,e,t){return Q(r,[n,e,t])}),rr=i(function(r,n,e,t,a,u){return Q(r,[n,e,t,a,u])}),nr=c(function(r,n,e,t,a,u,i){return Q(r,[n,e,t,a,u,i])}),er=e(function(r,n){return tr(r,lr(n))});function tr(r,n){switch(r.$){case 3:return"boolean"==typeof n?ie(n):ir("a BOOL",n);case 2:return"number"!=typeof n?ir("an INT",n):n>-2147483647&&2147483647>n&&(0|n)===n?ie(n):!isFinite(n)||n%1?ir("an INT",n):ie(n);case 4:return"number"==typeof n?ie(n):ir("a FLOAT",n);case 6:return"string"==typeof n?ie(n):n instanceof String?ie(n+""):ir("a STRING",n);case 9:return null===n?ie(r.c):ir("null",n);case 5:return ie(sr(n));case 7:return Array.isArray(n)?ar(r.b,n,$):ir("a LIST",n);case 8:return Array.isArray(n)?ar(r.b,n,ur):ir("an ARRAY",n);case 10:var e=r.d;if("object"!=typeof n||null===n||!(e in n))return ir("an OBJECT with a field named `"+e+"`",n);var t=tr(r.b,n[e]);return Tn(t)?t:ue(f(oe,e,t.a));case 11:var a=r.e;return Array.isArray(n)?n.length>a?(t=tr(r.b,n[a]),Tn(t)?t:ue(f(fe,a,t.a))):ir("a LONGER array. Need index "+a+" but only see "+n.length+" entries",n):ir("an ARRAY",n);case 12:if("object"!=typeof n||null===n||Array.isArray(n))return ir("an OBJECT",n);var u=p;for(var i in n)if(n.hasOwnProperty(i)){if(t=tr(r.b,n[i]),!Tn(t))return ue(f(oe,i,t.a));u=g(E(i,t.a),u)}return ie(Gn(u));case 13:for(var c=r.f,o=r.g,s=0;o.length>s;s++){if(t=tr(o[s],n),!Tn(t))return t;c=c(t.a)}return ie(c);case 14:return t=tr(r.b,n),Tn(t)?tr(r.h(t.a),n):t;case 15:for(var l=p,b=r.g;b.b;b=b.b){if(t=tr(b.a,n),Tn(t))return t;l=g(t.a,l)}return ue(se(Gn(l)));case 1:return ue(f(ce,r.a,sr(n)));case 0:return ie(r.a)}}function ar(r,n,e){for(var t=n.length,a=Array(t),u=0;t>u;u++){var i=tr(r,n[u]);if(!Tn(i))return ue(f(fe,u,i.a));a[u]=i.a}return ie(e(a))}function ur(r){return f(te,r.length,function(n){return r[n]})}function ir(r,n){return ue(f(ce,"Expecting "+r,sr(n)))}function cr(r,n){if(r===n)return!0;if(r.$!==n.$)return!1;switch(r.$){case 0:case 1:return r.a===n.a;case 3:case 2:case 4:case 6:case 5:return!0;case 9:return r.c===n.c;case 7:case 8:case 12:return cr(r.b,n.b);case 10:return r.d===n.d&&cr(r.b,n.b);case 11:return r.e===n.e&&cr(r.b,n.b);case 13:return r.f===n.f&&or(r.g,n.g);case 14:return r.h===n.h&&cr(r.b,n.b);case 15:return or(r.g,n.g)}}function or(r,n){var e=r.length;if(e!==n.length)return!1;for(var t=0;e>t;t++)if(!cr(r[t],n[t]))return!1;return!0}var fr=e(function(r,n){return JSON.stringify(lr(n),null,r)+""});function sr(r){return r}function lr(r){return r}function br(r){return{$:0,a:r}}function dr(r){return{$:1,a:r}}function hr(r){return{$:2,b:r,c:null}}sr(null);var vr=e(function(r,n){return{$:3,b:r,d:n}}),pr=e(function(r,n){return{$:4,b:r,d:n}}),gr=0;function mr(r){var n={$:0,e:gr++,f:r,g:null,h:[]};return wr(n),n}var $r=!1,yr=[];function wr(r){if(yr.push(r),!$r){for($r=!0;r=yr.shift();)xr(r);$r=!1}}function xr(r){for(;r.f;){var n=r.f.$;if(0===n||1===n){for(;r.g&&r.g.$!==n;)r.g=r.g.i;if(!r.g)return;r.f=r.g.b(r.f.a),r.g=r.g.i}else{if(2===n)return void(r.f.c=r.f.b(function(n){r.f=n,wr(r)}));if(5===n){if(0===r.h.length)return;r.f=r.f.b(r.h.shift())}else r.g={$:3===n?0:1,b:r.f.b,i:r.g},r.f=r.f.d}}}var kr={};function jr(r,n){var e={g:n,h:void 0},t=r.c,a=r.d,u=r.e,i=r.f;function c(r){return f(vr,c,{$:5,b:function(n){var c=n.a;return 0===n.$?s(a,e,c,r):u&&i?l(t,e,c.i,c.j,r):s(t,e,u?c.i:c.j,r)}})}return e.h=mr(f(vr,c,r.b))}var Lr=e(function(r,n){return hr(function(e){r.g(n),e(br(q))})});function Ar(r){return function(n){return{$:1,k:r,l:n}}}function qr(r,n,e){var t,a={};for(var u in Er(!0,n,a,null),Er(!1,e,a,null),r)(t=r[u]).h.push({$:"fx",a:a[u]||{i:p,j:p}}),wr(t)}function Er(r,n,e,t){switch(n.$){case 1:var a=n.k,u=function(r,e,t){function a(r){for(var n=t;n;n=n.q)r=n.p(r);return r}return f(r?kr[e].e:kr[e].f,a,n.l)}(r,a,t);return void(e[a]=function(r,n,e){return e=e||{i:p,j:p},r?e.i=g(n,e.i):e.j=g(n,e.j),e}(r,u,e[a]));case 2:for(var i=n.m;i.b;i=i.b)Er(r,i.a,e,t);return;case 3:return void Er(r,n.o,e,{p:n.n,q:t})}}function Sr(r){kr[r]&&R(3)}var Tr=e(function(r,n){return n});function Mr(r){var n=[],e=kr[r].r,a=(0,hr(function(r){var n=setTimeout(function(){r(br(q))},0);return function(){clearTimeout(n)}}));return kr[r].b=a,kr[r].c=t(function(r,t){for(;t.b;t=t.b)for(var u=n,i=lr(e(t.a)),c=0;u.length>c;c++)u[c](i);return a}),{subscribe:function(r){n.push(r)},unsubscribe:function(r){var e=(n=n.slice()).indexOf(r);0>e||n.splice(e,1)}}}var Cr=e(function(r,n){return function(e){return r(n(e))}});var zr,Br=u(function(r,n,e,t,a){for(var u=r.length,i=a.length>=n+u,c=0;i&&u>c;){var o=a.charCodeAt(n);i=r[c++]===a[n++]&&(10===o?(e++,t=1):(t++,55296==(63488&o)?r[c++]===a[n++]:1))}return S(i?n:-1,e,t)}),Rr=t(function(r,n,e){return e.length>n?55296==(63488&e.charCodeAt(n))?r(T(e.substr(n,2)))?n+2:-1:r(T(e[n]))?"\n"===e[n]?-2:n+1:-1:-1}),_r=t(function(r,n,e){return e.charCodeAt(n)===r}),Nr=e(function(r,n){for(;n.length>r;r++){var e=n.charCodeAt(r);if(48>e||e>57)return r}return r}),Pr=t(function(r,n,e){for(var t=0;e.length>n;n++){var a=e.charCodeAt(n)-48;if(0>a||a>=r)break;t=r*t+a}return E(n,t)}),Or=e(function(r,n){for(var e=0;n.length>r;r++){var t=n.charCodeAt(r);if(48>t||t>57)if(65>t||t>70){if(97>t||t>102)break;e=16*e+t-87}else e=16*e+t-55;else e=16*e+t-48}return E(r,e)}),Fr=e(function(r,n){return hr(function(e){var t=new XMLHttpRequest;!function(r,n){Xi(n)&&r.addEventListener("progress",function(r){r.lengthComputable&&mr(n.a({c4:r.loaded,c5:r.total}))})}(t,n),t.addEventListener("error",function(){e(dr(Hi))}),t.addEventListener("timeout",function(){e(dr(Qi))}),t.addEventListener("load",function(){e(function(r,n){var e=function(r){return{eE:r.responseURL,cq:{M:r.status,dP:r.statusText},aJ:Ir(r.getAllResponseHeaders()),cX:r.response}}(r);if(200>r.status||r.status>=300)return e.body=r.responseText,dr(Gi(e));var t=n(e);return Tn(t)?br(t.a):(e.body=r.responseText,dr(f(Di,t.a,e)))}(t,r.a2.a))});try{t.open(r.a8,r.eE,!0)}catch(n){return e(dr(Ki(r.eE)))}!function(r,n){for(var e=n.aJ;e.b;e=e.b)r.setRequestHeader(e.a.a,e.a.b);r.responseType=n.a2.b,r.withCredentials=n.bE,Xi(n.bB)&&(r.timeout=n.bB.a)}(t,r);var a=r.cX;return t.send(Wi(a)?(t.setRequestHeader("Content-Type",a.a),a.b):a.a),function(){t.abort()}})});function Ir(r){var n=gt;if(!r)return n;for(var e=r.split("\r\n"),t=e.length;t--;){var a=e[t],u=a.indexOf(": ");if(u>0){var i=a.substring(0,u),c=a.substring(u+2);n=s(Ui,i,function(r){return ae(Xi(r)?c+", "+r.a:c)},n)}}return n}var Jr="undefined"!=typeof document?document:{};function Ur(r,n){r.appendChild(n)}function Xr(r){return{$:0,a:r}}var Dr,Gr=e(function(r,n){return e(function(e,t){for(var a=[],u=0;t.b;t=t.b){var i=t.a;u+=i.b||0,a.push(i)}return u+=a.length,{$:1,c:n,d:rn(e),e:a,f:r,b:u}})})(void 0),Kr=e(function(r,n){return e(function(e,t){for(var a=[],u=0;t.b;t=t.b){var i=t.a;u+=i.b.b||0,a.push(i)}return u+=a.length,{$:2,c:n,d:rn(e),e:a,f:r,b:u}})})(void 0),Hr=e(function(r,n){return{$:"a0",n:r,o:n}}),Qr=e(function(r,n){return{$:"a1",n:r,o:n}}),Wr=e(function(r,n){return{$:"a2",n:r,o:n}}),Vr=e(function(r,n){return{$:"a3",n:r,o:n}});function Zr(r){return"script"==r?"p":r}function Yr(r){return/^\s*(javascript:|data:text\/html)/i.test(r)?"":r}function rn(r){for(var n={};r.b;r=r.b){var e=r.a,t=e.$,a=e.n,u=e.o;if("a2"!==t){var i=n[t]||(n[t]={});"a3"===t&&"class"===a?nn(i,a,u):i[a]=u}else"className"===a?nn(n,a,lr(u)):n[a]=lr(u)}return n}function nn(r,n,e){var t=r[n];r[n]=t?t+" "+e:e}function en(r,n){var e=r.$;if(5===e)return en(r.k||(r.k=r.m()),n);if(0===e)return Jr.createTextNode(r.a);if(4===e){for(var t=r.k,a=r.j;4===t.$;)"object"!=typeof a?a=[a,t.j]:a.push(t.j),t=t.k;var u={j:a,p:n};return(i=en(t,u)).elm_event_node_ref=u,i}if(3===e)return tn(i=r.h(r.g),n,r.d),i;var i=r.f?Jr.createElementNS(r.f,r.c):Jr.createElement(r.c);zr&&"a"==r.c&&i.addEventListener("click",zr(i)),tn(i,n,r.d);for(var c=r.e,o=0;c.length>o;o++)Ur(i,en(1===e?c[o]:c[o].b,n));return i}function tn(r,n,e){for(var t in e){var a=e[t];"a1"===t?an(r,a):"a0"===t?on(r,n,a):"a3"===t?un(r,a):"a4"===t?cn(r,a):("value"!==t||"checked"!==t||r[t]!==a)&&(r[t]=a)}}function an(r,n){var e=r.style;for(var t in n)e[t]=n[t]}function un(r,n){for(var e in n){var t=n[e];t?r.setAttribute(e,t):r.removeAttribute(e)}}function cn(r,n){for(var e in n){var t=n[e],a=t.f,u=t.o;u?r.setAttributeNS(a,e,u):r.removeAttributeNS(a,e)}}function on(r,n,e){var t=r.elmFs||(r.elmFs={});for(var a in e){var u=e[a],i=t[a];if(u){if(i){if(i.q.$===u.$){i.q=u;continue}r.removeEventListener(a,i)}i=fn(n,u),r.addEventListener(a,i,Dr&&{passive:2>Ac(u)}),t[a]=i}else r.removeEventListener(a,i),t[a]=void 0}}try{window.addEventListener("t",null,Object.defineProperty({},"passive",{get:function(){Dr=!0}}))}catch(r){}function fn(r,n){function e(n){var t=e.q,a=tr(t.a,n);if(Tn(a)){for(var u,i=Ac(t),c=a.a,o=i?3>i?c.a:c.dP:c,f=1==i?c.b:3==i&&c.by,s=(f&&n.stopPropagation(),(2==i?c.b:3==i&&c.bt)&&n.preventDefault(),r);u=s.j;){if("function"==typeof u)o=u(o);else for(var l=u.length;l--;)o=u[l](o);s=s.p}s(o,f)}}return e.q=n,e}function sn(r,n){return r.$==n.$&&cr(r.a,n.a)}function ln(r,n,e,t){var a={$:n,r:e,s:t,t:void 0,u:void 0};return r.push(a),a}function bn(r,n,e,t){if(r!==n){var a=r.$,u=n.$;if(a!==u){if(1!==a||2!==u)return void ln(e,0,t,n);n=function(r){for(var n=r.e,e=n.length,t=Array(e),a=0;e>a;a++)t[a]=n[a].b;return{$:1,c:r.c,d:r.d,e:t,f:r.f,b:r.b}}(n),u=1}switch(u){case 5:for(var i=r.l,c=n.l,o=i.length,f=o===c.length;f&&o--;)f=i[o]===c[o];if(f)return void(n.k=r.k);n.k=n.m();var s=[];return bn(r.k,n.k,s,0),void(s.length>0&&ln(e,1,t,s));case 4:for(var l=r.j,b=n.j,d=!1,h=r.k;4===h.$;)d=!0,"object"!=typeof l?l=[l,h.j]:l.push(h.j),h=h.k;for(var v=n.k;4===v.$;)d=!0,"object"!=typeof b?b=[b,v.j]:b.push(v.j),v=v.k;return d&&l.length!==b.length?void ln(e,0,t,n):((d?function(r,n){for(var e=0;r.length>e;e++)if(r[e]!==n[e])return!1;return!0}(l,b):l===b)||ln(e,2,t,b),void bn(h,v,e,t+1));case 0:return void(r.a!==n.a&&ln(e,3,t,n.a));case 1:return void dn(r,n,e,t,vn);case 2:return void dn(r,n,e,t,pn);case 3:if(r.h!==n.h)return void ln(e,0,t,n);var p=hn(r.d,n.d);p&&ln(e,4,t,p);var g=n.i(r.g,n.g);return void(g&&ln(e,5,t,g))}}}function dn(r,n,e,t,a){if(r.c===n.c&&r.f===n.f){var u=hn(r.d,n.d);u&&ln(e,4,t,u),a(r,n,e,t)}else ln(e,0,t,n)}function hn(r,n,e){var t;for(var a in r)if("a1"!==a&&"a0"!==a&&"a3"!==a&&"a4"!==a)if(a in n){var u=r[a],i=n[a];u===i&&"value"!==a&&"checked"!==a||"a0"===e&&sn(u,i)||((t=t||{})[a]=i)}else(t=t||{})[a]=e?"a1"===e?"":"a0"===e||"a3"===e?void 0:{f:r[a].f,o:void 0}:"string"==typeof r[a]?"":null;else{var c=hn(r[a],n[a]||{},a);c&&((t=t||{})[a]=c)}for(var o in n)o in r||((t=t||{})[o]=n[o]);return t}function vn(r,n,e,t){var a=r.e,u=n.e,i=a.length,c=u.length;i>c?ln(e,6,t,{v:c,i:i-c}):c>i&&ln(e,7,t,{v:i,e:u});for(var o=c>i?i:c,f=0;o>f;f++){var s=a[f];bn(s,u[f],e,++t),t+=s.b||0}}function pn(r,n,e,t){for(var a=[],u={},i=[],c=r.e,o=n.e,f=c.length,s=o.length,l=0,b=0,d=t;f>l&&s>b;){var h=(A=c[l]).a,v=(q=o[b]).a,p=A.b,g=q.b;if(h!==v){var m=c[l+1],$=o[b+1];if(m)var y=m.a,w=m.b,x=v===y;if($)var k=$.a,j=$.b,L=h===k;if(L&&x)bn(p,j,a,++d),mn(u,a,h,g,b,i),d+=p.b||0,$n(u,a,h,w,++d),d+=w.b||0,l+=2,b+=2;else if(L)d++,mn(u,a,v,g,b,i),bn(p,j,a,d),d+=p.b||0,l+=1,b+=2;else if(x)$n(u,a,h,p,++d),d+=p.b||0,bn(w,g,a,++d),d+=w.b||0,l+=2,b+=1;else{if(!m||y!==k)break;$n(u,a,h,p,++d),mn(u,a,v,g,b,i),d+=p.b||0,bn(w,j,a,++d),d+=w.b||0,l+=2,b+=2}}else bn(p,g,a,++d),d+=p.b||0,l++,b++}for(;f>l;){var A;$n(u,a,(A=c[l]).a,p=A.b,++d),d+=p.b||0,l++}for(;s>b;){var q,E=E||[];mn(u,a,(q=o[b]).a,q.b,void 0,E),b++}(a.length>0||i.length>0||E)&&ln(e,8,t,{w:a,x:i,y:E})}var gn="_elmW6BL";function mn(r,n,e,t,a,u){var i=r[e];if(!i)return u.push({r:a,A:i={c:0,z:t,r:a,s:void 0}}),void(r[e]=i);if(1===i.c){u.push({r:a,A:i}),i.c=2;var c=[];return bn(i.z,t,c,i.r),i.r=a,void(i.s.s={w:c,A:i})}mn(r,n,e+gn,t,a,u)}function $n(r,n,e,t,a){var u=r[e];if(u){if(0===u.c){u.c=2;var i=[];return bn(t,u.z,i,a),void ln(n,9,a,{w:i,A:u})}$n(r,n,e+gn,t,a)}else{var c=ln(n,9,a,void 0);r[e]={c:1,z:t,r:a,s:c}}}function yn(r,n,e,t){return 0===e.length?r:(function r(n,e,t,a){!function n(e,t,a,u,i,c,o){for(var f=a[u],s=f.r;s===i;){var l=f.$;if(1===l)r(e,t.k,f.s,o);else if(8===l)f.t=e,f.u=o,(b=f.s.w).length>0&&n(e,t,b,0,i,c,o);else if(9===l){f.t=e,f.u=o;var b,d=f.s;d&&(d.A.s=e,(b=d.w).length>0&&n(e,t,b,0,i,c,o))}else f.t=e,f.u=o;if(!(f=a[++u])||(s=f.r)>c)return u}var h=t.$;if(4===h){for(var v=t.k;4===v.$;)v=v.k;return n(e,v,a,u,i+1,c,e.elm_event_node_ref)}for(var p=t.e,g=e.childNodes,m=0;p.length>m;m++){var $=1===h?p[m]:p[m].b,y=++i+($.b||0);if(!(i>s||s>y||(f=a[u=n(g[m],$,a,u,i,y,o)])&&(s=f.r)<=c))return u;i=y}return u}(n,e,t,0,0,e.b,a)}(r,n,e,t),wn(r,e))}function wn(r,n){for(var e=0;n.length>e;e++){var t=n[e],a=t.t,u=xn(a,t);a===r&&(r=u)}return r}function xn(r,n){switch(n.$){case 0:return function(r){var e=r.parentNode,t=en(n.s,n.u);return t.elm_event_node_ref||(t.elm_event_node_ref=r.elm_event_node_ref),e&&t!==r&&e.replaceChild(t,r),t}(r);case 4:return tn(r,n.u,n.s),r;case 3:return r.replaceData(0,r.length,n.s),r;case 1:return wn(r,n.s);case 2:return r.elm_event_node_ref?r.elm_event_node_ref.j=n.s:r.elm_event_node_ref={j:n.s,p:n.u},r;case 6:for(var e=n.s,t=0;e.i>t;t++)r.removeChild(r.childNodes[e.v]);return r;case 7:for(var a=(e=n.s).e,u=r.childNodes[t=e.v];a.length>t;t++)r.insertBefore(en(a[t],n.u),u);return r;case 9:if(!(e=n.s))return r.parentNode.removeChild(r),r;var i=e.A;return void 0!==i.r&&r.parentNode.removeChild(r),i.s=wn(r,e.w),r;case 8:return function(r,n){var e=n.s,t=function(r,n){if(r){for(var e=Jr.createDocumentFragment(),t=0;r.length>t;t++){var a=r[t].A;Ur(e,2===a.c?a.s:en(a.z,n.u))}return e}}(e.y,n);r=wn(r,e.w);for(var a=e.x,u=0;a.length>u;u++){var i=a[u],c=i.A,o=2===c.c?c.s:en(c.z,n.u);r.insertBefore(o,r.childNodes[i.r])}return t&&Ur(r,t),r}(r,n);case 5:return n.s(r);default:R(10)}}var kn=a(function(r,n,e,t){return function(r,n,e,t,a,u){var i=f(er,r,sr(n?n.flags:void 0));Tn(i)||R(2);var c={},o=(i=e(i.a)).a,s=u(b,o),l=function(r,n){var e;for(var t in kr){var a=kr[t];a.a&&((e=e||{})[t]=a.a(t,n)),r[t]=jr(a,n)}return e}(c,b);function b(r,n){s(o=(i=f(t,r,o)).a,n),qr(c,i.b,a(o))}return qr(c,i.b,a(o)),l?{ports:l}:{}}(n,t,r.dG,r.eD,r.ej,function(n,e){var t=r.aq&&r.aq(n),a=r.eG,u=Jr.title,i=Jr.body,c=function r(n){if(3===n.nodeType)return Xr(n.textContent);if(1!==n.nodeType)return Xr("");for(var e=p,t=n.attributes,a=t.length;a--;){var u=t[a];e=g(f(Vr,u.name,u.value),e)}var i=n.tagName.toLowerCase(),c=p,o=n.childNodes;for(a=o.length;a--;)c=g(r(o[a]),c);return s(Gr,i,e,c)}(i);return function(r,n){n(r);var e=0;function t(){e=1===e?0:(jn(t),n(r),1)}return function(a,u){r=a,u?(n(r),2===e&&(e=1)):(0===e&&jn(t),e=2)}}(e,function(r){zr=t;var e=a(r),o=Gr("body")(p)(e.cX),f=function(r,n){var e=[];return bn(r,n,e,0),e}(c,o);i=yn(i,c,f,n),c=o,zr=0,u!==e.ey&&(Jr.title=u=e.ey)})})}),jn="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:function(r){setTimeout(r,1e3/60)};"undefined"!=typeof document&&document,"undefined"!=typeof window&&window;var Ln,An,qn,En,Sn={$:1},Tn=function(r){return!r.$},Mn=1,Cn=2,zn=0,Bn=t(function(r,n,e){for(;;){if(-2===e.$)return n;var t=e.d,a=r,u=s(r,e.b,e.c,s(Bn,r,n,e.e));r=a,n=u,e=t}}),Rn=m,_n=function(r){return s(Bn,t(function(r,n,e){return f(Rn,E(r,n),e)}),p,r)},Nn=a(function(r,n,e,t){return{$:0,a:r,b:n,c:e,d:t}}),Pn=_,On=e(function(r,n){return O(n)/O(r)}),Fn=function(r){return r},In=Pn(f(On,2,32)),Jn=[],Un=l(Nn,0,In,Jn,Jn),Xn=B,Dn=t(function(r,n,e){for(;;){if(!e.b)return n;var t=e.b,a=r,u=f(r,e.a,n);r=a,n=u,e=t}}),Gn=function(r){return s(Dn,Rn,p,r)},Kn=e(function(r,n){for(;;){var e=f(Xn,32,r),t=e.b,a=f(Rn,{$:0,a:e.a},n);if(!t.b)return Gn(a);r=t,n=a}}),Hn=function(r){return r.a},Qn=e(function(r,n){for(;;){var e=Pn(n/32);if(1===e)return f(Xn,32,r).a;r=f(Kn,r,p),n=e}}),Wn=e(function(r,n){return r(n)}),Vn=N,Zn=e(function(r,n){return L(r,n)>0?r:n}),Yn=function(r){return r.length},re=e(function(r,n){if(n.f){var e=32*n.f,t=Vn(f(On,32,e-1)),a=r?Gn(n.i):n.i,u=f(Qn,a,n.f);return l(Nn,Yn(n.h)+e,f(Zn,5,t*In),u,n.h)}return l(Nn,Yn(n.h),In,Jn,n.h)}),ne=z,ee=u(function(r,n,e,t,a){for(;;){if(0>n)return f(re,!1,{i:t,f:e/32|0,h:a});var u={$:1,a:s(ne,32,n,r)};r=r,n-=32,e=e,t=f(Rn,u,t),a=a}}),te=e(function(r,n){if(r>0){var e=r%32;return b(ee,n,r-e-32,r,p,s(ne,e,r-e,n))}return Un}),ae=function(r){return{$:0,a:r}},ue=function(r){return{$:1,a:r}},ie=function(r){return{$:0,a:r}},ce=e(function(r,n){return{$:3,a:r,b:n}}),oe=e(function(r,n){return{$:0,a:r,b:n}}),fe=e(function(r,n){return{$:1,a:r,b:n}}),se=function(r){return{$:2,a:r}},le=function(r){var n=r.charCodeAt(0);return 55296>n||n>56319?n:1024*(n-55296)+r.charCodeAt(1)-56320+65536},be=function(r){var n=le(r);return n>=97&&122>=n},de=function(r){var n=le(r);return 90>=n&&n>=65},he=function(r){return be(r)||de(r)},ve=function(r){var n=le(r);return 57>=n&&n>=48},pe=function(r){return be(r)||de(r)||ve(r)},ge=function(r){return s(Dn,e(function(r,n){return n+1}),0,r)},me=w,$e=t(function(r,n,e){for(;;){if(L(r,n)>=1)return e;var t=r,a=n-1,u=f(Rn,n,e);r=t,n=a,e=u}}),ye=e(function(r,n){return s($e,r,n,p)}),we=e(function(r,n){return s(me,r,f(ye,0,ge(n)-1),n)}),xe=D,ke=G,je=e(function(r,n){return f(U,r,y(n))}),Le=e(function(r,n){return $(f(J,r,n))}),Ae=function(r){return f(je,"\n ",f(Le,"\n",r))},qe=fr,Ee=e(function(r,n){return"\n\n("+ke(r+1)+") "+Ae(Se(n))}),Se=function(r){return f(Te,r,p)},Te=e(function(r,n){r:for(;;)switch(r.$){case 0:var e=r.a,t=r.b,a=function(){var r,n,t=(n=(r=e).charCodeAt(0))?ae(55296>n||n>56319?E(T(r[0]),r.slice(1)):E(T(r[0]+r[1]),r.slice(2))):Sn;if(1===t.$)return!1;var a=t.a,u=a.b;return he(a.a)&&f(xe,pe,u)}();r=t,n=f(Rn,a?"."+e:"['"+e+"']",n);continue r;case 1:t=r.b;var u="["+ke(r.a)+"]";r=t,n=f(Rn,u,n);continue r;case 2:var i=r.a;if(i.b){if(i.b.b){var c=(n.b?"The Json.Decode.oneOf at json"+f(je,"",Gn(n)):"Json.Decode.oneOf")+" failed in the following "+ke(ge(i))+" ways:";return f(je,"\n\n",f(Rn,c,f(we,Ee,i)))}r=t=i.a,n=n;continue r}return"Ran into a Json.Decode.oneOf with no possibilities"+(n.b?" at json"+f(je,"",Gn(n)):"!");default:var o=r.a,s=r.b;return(c=n.b?"Problem with the value at json"+f(je,"",Gn(n))+":\n\n ":"Problem with the given value:\n\n")+Ae(f(qe,4,s))+"\n\n"+o}}),Me={$:2,m:p},Ce=function(r){return{$:4,a:r}},ze={$:5},Be=(An=ze,Sr(Ln="styleUpgradeComplete"),kr[Ln]={f:Cr,r:An,a:function(r,n){var e=p,a=kr[r].r,u=br(null);return kr[r].b=u,kr[r].c=t(function(r,n){return e=n,u}),{send:function(r){var t=f(er,a,sr(r));Tn(t)||R(4);for(var u=t.a,i=e;i.b;i=i.b)n(i.a(u))}}}},Ar(Ln)),Re=$(["Mapbox","Style"]),_e=e(function(r,n){return{$:0,a:r,b:n}}),Ne=e(function(r,n){return f(_e,r,$([n]))}),Pe=e(function(r,n){return{$:3,a:r,b:n}}),Oe=e(function(r,n){return{$:0,a:r,b:n}}),Fe=t(function(r,n,e){return f(Pe,r,f(Oe,n,e))}),Ie=function(r){return{$:4,a:r}},Je=e(function(r,n){return{$:0,a:r,b:n}}),Ue=function(r){return{$:1,a:r}},Xe=e(function(r,n){return f(Pe,r,Ue(n))}),De=a(function(r,n,e,t){return{$:2,a:r,b:n,c:e,d:t}}),Ge=t(function(r,n,e){return l(De,r,$([n]),p,e)}),Ke=function(r){return $([s(Ge,"style",(n=f(Xe,Re,"Style"),f(Je,n,p)),f(Ne,s(Fe,$(["Mapbox","Style"]),"Style","Style"),Ie(r)))]);var n},He=function(r){return r},Qe=F,We=e(function(r,n){for(;;){if(!n.b)return!1;var e=n.b;if(r(n.a))return!0;r=r,n=e}}),Ve=function(r){return r.length},Ze=a(function(r,n,t,a){return f(We,function(r){return ge(f(Le,"\n",r))>1},a)||s(Dn,e(function(r,n){return n+Ve(r)}),0,a)>100?"\n"+f(Qe," ",f(je,"\n ",f(Le,"\n",r+" "+f(je,"\n"+n,a)+"\n"+t))):""===t&&""===r?f(je,n,a):r+" "+f(je,n,a)+" "+t}),Ye=function(r){return!r.$&&!!r.b.b},rt=function(r){var n=function(r){return r.$?r.a:r.b};switch(r.$){case 0:return n(e=r.a);case 1:var e=r.b;return f(je,".",r.a)+"."+n(e);case 2:return r.b+"."+n(e=r.c);default:return n(e=r.b)}},nt=a(function(r,n,e,t){if(t.b){var a=t.a,u=t.b;if(u.b){var i=u.a,c=u.b;if(c.b){var o=c.a,b=c.b;if(b.b){var d=b.b;return f(r,a,f(r,i,f(r,o,f(r,b.a,e>500?s(Dn,r,n,Gn(d)):l(nt,r,n,e+1,d)))))}return f(r,a,f(r,i,f(r,o,n)))}return f(r,a,f(r,i,n))}return f(r,a,n)}return n}),et=t(function(r,n,e){return l(nt,r,n,0,e)}),tt=e(function(r,n){return s(et,e(function(n,e){return f(Rn,r(n),e)}),p,n)}),at=function(r){return Ye(r)?"("+ut(r)+")":ut(r)},ut=function(r){switch(r.$){case 0:var n=r.b,e=rt(r.a);if(function(){switch(e){case"++":case"-":case"+":case"*":case"/":case"//":case"^":case"|>":case"<|":return!0;default:return!1}}()){if(n.b&&n.b.b){var t=n.a,a=n.b,u=a.a,i=a.b;return"|>"===e?l(Ze,""," |> ","",$([ut(t),f(je," ",f(tt,ut,f(Rn,u,i)))])):ut(t)+" "+e+" "+f(je," ",f(tt,ut,f(Rn,u,i)))}return"("+e+") "+f(je," ",f(tt,at,n))}return f(je," ",f(Rn,e,f(tt,function(r){return Ye(r)?"("+ut(r)+")":ut(r)},n)));case 1:return r.a;case 2:return l(Ze,"[",", ","]",f(tt,ut,r.a));case 3:return l(Ze,"(",", ",")",f(tt,ut,r.a));default:return l(Ze,"{",", ","}",f(tt,function(r){return r.a+" = "+ut(r.b)},r.a))}},it=e(function(r,n){switch(n.$){case 0:var e=n.a;return ge(t=n.b)>0?r?"("+rt(e)+" "+f(je," ",f(tt,it(!0),t))+")":rt(e)+" "+f(je," ",f(tt,it(!0),t)):rt(e);case 1:return"{ "+f(je,", ",f(tt,function(r){return r.a+" = "+f(it,!1,r.b)},n.a))+" }";case 2:var t=n.a,a=f(je," -> ",f(tt,it(!1),t));return r?"("+a+")":a;case 3:return t=n.a,"( "+f(je,", ",f(tt,it(!1),t))+" )";default:return n.a}}),ct=it(!1),ot=function(r){switch(r.$){case 0:var n=r.c;return"type "+f(je," ",f(Rn,t=r.a,r.b))+"\n = "+f(je,"\n | ",f(tt,function(r){var n=r.b;return f(je," ",f(Rn,r.a,f(tt,it(!0),n)))},n))+"\n\n\n";case 1:var e=r.c;return"type alias "+f(je," ",f(Rn,t=r.a,r.b))+"\n ="+ct(e)+"\n\n\n";case 3:return"{-|"+r.a+"}";default:var t,a=r.b,u=r.d,i=(t=r.a)+" "+f(je," ",f(tt,He,r.c))+" ="+function(r){return ge(f(Le,"\n",r))>1?r:"\n "+r}(ut(u))+"\n\n\n";return a.b?t+" : "+f(je," -> ",f(tt,ct,a))+"\n"+i:i}},ft=function(r){switch(r.$){case 0:case 1:return r.a;default:return r.a+"(..)"}},st=function(r){r:for(;;){if(r.b&&r.b.b){var n=r.a,e=n.a,t=n.b,a=n.c,u=r.b,i=u.a,c=i.a,o=i.b,s=i.c,l=u.b;if(k(e,c)&&(k(t,o)||""===t||""===o)){r=f(Rn,S(e,""===t?o:t,C(a,s)),l);continue r}return f(Rn,S(e,t,a),st(f(Rn,S(c,o,s),l)))}return r}},lt=function(r){switch(r.$){case 0:return!1;case 1:var n=r.a;r:for(;n.b&&!n.b.b;)switch(n.a){case"Basics":case"List":case"Maybe":case"Result":case"String":case"Char":case"Tuple":case"Debug":case"Platform":return!1;default:break r}return!0;case 2:var e=E(n=r.a,r.b);r:for(;e.a.b&&"Platform"===e.a.a&&e.a.b.b&&!e.a.b.b.b;)switch(e.a.b.a){case"Cmd":if("Cmd"===e.b)return!1;break r;case"Sub":if("Sub"===e.b)return!1;break r;default:break r}return!0;default:if(r.b.$){var t=E(n=r.a,r.b.a);r:for(;t.a.b;)if(t.a.b.b){if("Platform"!==t.a.a||t.a.b.b.b)break r;switch(t.a.b.a){case"Cmd":if("Cmd"===t.b)return!1;break r;case"Sub":if("Sub"===t.b)return!1;break r;default:break r}}else switch(t.a.a){case"Basics":return!1;case"List":switch(t.b){case"List":case"::":return!1;default:break r}case"Maybe":if("Maybe"===t.b)return!1;break r;case"Result":if("Result"===t.b)return!1;break r;case"String":if("String"===t.b)return!1;break r;case"Char":if("Char"===t.b)return!1;break r;case"Platform":if("Program"===t.b)return!1;break r;default:break r}return!0}var a=E(n=r.a,r.b.a);r:for(;a.a.b&&!a.a.b.b;)switch(a.a.a){case"Basics":return!1;case"List":if("List"===a.b)return!1;break r;case"Maybe":if("Maybe"===a.b)return!1;break r;case"Result":if("Result"===a.b)return!1;break r;default:break r}return!0}},bt=function(r){switch(r.$){case 0:return S("not-possible","",p);case 1:var n=r.b;return S(f(je,".",r.a),"",p);case 2:var e=r.b;return n=r.c,S(f(je,".",r.a),e,p);default:return n=r.b,S(f(je,".",r.a),"",$((t=n).$?[t.a]:[t.a+"(..)"]))}var t},dt=e(function(r,n){return s(et,e(function(n,e){return r(n)?f(Rn,n,e):e}),p,n)}),ht=function(r){return r},vt=x,pt={$:-2},gt=pt,mt=gt,$t=u(function(r,n,e,t,a){return{$:-1,a:r,b:n,c:e,d:t,e:a}}),yt=A,wt=u(function(r,n,e,t,a){if(-1!==a.$||a.a){if(-1!==t.$||t.a||-1!==t.d.$||t.d.a)return b($t,r,n,e,t,a);var u=t.d;return i=t.e,b($t,0,t.b,t.c,b($t,1,u.b,u.c,u.d,u.e),b($t,1,n,e,i,a))}var i,c=a.b,o=a.c,f=a.d,s=a.e;return-1!==t.$||t.a?b($t,r,c,o,b($t,0,n,e,t,f),s):b($t,0,n,e,b($t,1,t.b,t.c,t.d,i=t.e),b($t,1,c,o,f,s))}),xt=t(function(r,n,e){if(-2===e.$)return b($t,0,r,n,pt,pt);var t=e.a,a=e.b,u=e.c,i=e.d,c=e.e;switch(f(yt,r,a)){case 0:return b(wt,t,a,u,s(xt,r,n,i),c);case 1:return b($t,t,a,n,i,c);default:return b(wt,t,a,u,i,s(xt,r,n,c))}}),kt=t(function(r,n,e){var t=s(xt,r,n,e);return-1!==t.$||t.a?t:b($t,1,t.b,t.c,t.d,t.e)}),jt=e(function(r,n){return s(kt,r,0,n)}),Lt=function(r){return f(tt,function(r){var n=r.b,e=r.c,t="import "+r.a,a=ge(e)>0?" exposing ("+f(je,", ",e)+")":"";return f(je,"",$([t,""===n?"":" as "+n,a]))},st((n=s(Dn,jt,mt,f(tt,bt,f(dt,lt,r))),f(vt,ht,s(Bn,t(function(r,n,e){return f(Rn,r,e)}),p,n)))));var n},At=t(function(r,n,e){return n(r(e))}),qt=e(function(r,n){return n.b?s(et,Rn,n,r):r}),Et=function(r){return s(et,qt,p,r)},St=e(function(r,n){return Et(f(tt,r,n))}),Tt=function(r){return r.b},Mt=function(r){switch(r.$){case 0:return f(Rn,r.a,f(St,Mt,r.b));case 1:return p;case 2:case 3:return f(St,Mt,r.a);default:var n=r.a;return f(St,f(At,Tt,Mt),n)}},Ct=function(r){switch(r.$){case 0:return f(Rn,r.a,f(St,Ct,r.b));case 1:return f(St,function(r){return Ct(r.b)},r.a);case 2:case 3:return f(St,Ct,r.a);default:return p}},zt=St(function(r){switch(r.$){case 0:return f(St,function(r){return f(St,Ct,r.b)},r.c);case 1:return Ct(r.c);case 3:return p;default:var n=r.d;return C(f(St,Ct,r.b),Mt(n))}}),Bt=function(r){return n={di:Ke(r),dm:Sn,dq:$([(s="style",{$:0,a:s})]),ac:$(["Style"])},t=(e={di:n.di,dm:n.dm,dq:n.dq,dE:Lt(zt(n.di)),ac:f(je,".",n.ac)}).ac,a=e.dq,u=e.dm,c=e.di,o=C(f(je,"\n",i=e.dE),ge(i)>0?"\n\n\n":""),C("module "+t+" exposing ("+f(je,", ",f(tt,ft,a))+")\n\n",C(u.$?"":"{-|"+u.a+"-}\n\n",C(o,f(je,"",f(tt,ot,c)))));var n,e,t,a,u,i,c,o,s},Rt=$(["Mapbox","Layer"]),_t=t(function(r,n,e){return{$:2,a:r,b:n,c:e}}),Nt=function(r){var n=r.aw;return s(_t,r.ao,r.aj,n.$?Ue(r.ac):f(Oe,n.a,r.ac))},Pt=function(r){return Nt({aj:"Layer",ao:Rt,ac:r,aw:Sn})},Ot=function(r){return{$:1,a:r}},Ft=function(r){return{$:0,a:r}},It=function(r){return r.$?Ot(Se(r.a)):Ft(r.a)},Jt=er,Ut=V,Xt=e(function(r,n){if(n.b){var t=n.b;return f(Rn,n.a,s(et,e(function(n,e){return f(Rn,r,f(Rn,n,e))}),p,t))}return p}),Dt=function(r){return f(je,"",r)},Gt=function(r){return!r},Kt=function(r){return T(r.toLowerCase())},Ht=I,Qt=function(r){return s(Ht,Rn,p,r)},Wt=de,Vt=t(function(r,n,t){var a,u=e(function(n,e){return M(e,!e.aa&&e.o||e.aa&&r?{q:f(Rn,(t=n,T(t.toUpperCase())),e.q)}:{q:f(Rn,Kt(n),e.q)});var t}),i=e(function(r,n){return M(n,r?{q:p,X:f(Rn,(e=Gn(n.q),y(e).join("")),n.X)}:{q:n.q,X:n.X});var e}),c=e(function(r,n){return M(n,{l:0,o:!1})}),o=e(function(r,e){return t=f(u,r,function(){switch(e.l){case 0:return f(i,!e.ab,M(e,{ab:!1,l:1,o:n}));case 1:case 2:return M(e,{l:2,o:!1});default:return f(i,!0,M(e,{l:1,o:n}))}}()),M(t,{aa:!1});var t}),l=e(function(r,e){return t=f(u,r,function(){switch(e.l){case 0:return f(i,!e.ab,M(e,{ab:!1,l:1,o:n}));case 1:case 2:default:return M(e,{l:3,o:!1})}}()),M(t,{aa:!1});var t}),b=e(function(r,n){return Wt(r)?f(o,r,n):function(r){return de(r)||be(r)||ve(r)}(r)?f(l,r,n):f(c,r,n)});return(a=s(Dn,function(r){return function(n){return f(b,r,n)}},{q:p,aa:!0,ab:!0,l:0,o:!1,X:p},Qt(t)),k(a.q,p)?a:f(i,!0,a)).X}),Zt=a(function(r,n,e,t){return Dt(f(Xt,r,Gn(s(Vt,n,e,t))))}),Yt=function(r){return l(Zt,"",!1,!0,r)},ra=t(function(r,n,e){return ae(f(Ut,Ne(Pt(Yt(r))),It(f(Jt,n,e))))}),na=$(["Mapbox","Expression"]),ea=e(function(r,n){return f(Pe,r,Ue(n))})(na),ta=function(r){return f(_e,r,p)},aa=ta(ea("false")),ua=ta(ea("true")),ia=f(Ut,function(r){return r?ua:aa},{$:3}),ca=e(function(r){return r}),oa=e(function(r,n){return{$:1,a:r,b:n}}),fa=t(function(r,n,e){return{$:0,a:r,b:n,c:e}}),sa=t(function(r,n,e){var t=n,a=e;return function(n){var e=t(n);if(1===e.$)return f(oa,e.a,e.b);var u=e.a,i=e.b,c=a(e.c);if(1===c.$){var o=c.a;return f(oa,u||o,c.b)}o=c.a;var l=c.c;return s(fa,u||o,f(r,i,c.b),l)}}),la=e(function(r,n){return s(sa,ca,r,n)}),ba={$:0},da=e(function(r,n){return{$:2,a:r,b:n}}),ha=t(function(r,n,e){r:for(;;){if(e.b){var t=e.b,a=(0,e.a)(r);if(a.$){var u;if((u=a).a)return u;r=r,n=f(da,n,u.b),e=t;continue r}return a}return f(oa,!1,n)}}),va=function(r){return function(n){return s(ha,n,ba,r)}},pa=function(r){return function(n){return s(fa,!1,r,n)}},ga=e(function(r,n){return{$:0,a:r,b:n}}),ma=function(r){return""===r},$a=e(function(r,n){return{$:1,a:r,b:n}}),ya=a(function(r,n,e,t){return{bM:n,de:t,cd:e,cl:r}}),wa=e(function(r,n){return f($a,ba,l(ya,r.cl,r.bM,n,r.c))}),xa=Br,ka=function(r){return function(r){var n=r.a,e=r.b,t=!ma(n);return function(r){var a=b(xa,n,r.b,r.cl,r.bM,r.a),u=a.a,i=a.b,c=a.c;return k(u,-1)?f(oa,!1,f(wa,r,e)):s(fa,t,0,{bM:c,c:r.c,d:r.d,b:u,cl:i,a:r.a})}}(f(ga,r,{$:8,a:r}))},ja=va($([f(la,pa(0),ka("0")),f(la,pa(1),ka("1")),f(la,pa(2),ka("2")),f(la,pa(3),ka("3")),f(la,pa(4),ka("4")),f(la,pa(5),ka("5")),f(la,pa(6),ka("6")),f(la,pa(7),ka("7")),f(la,pa(8),ka("8")),f(la,pa(9),ka("9")),f(la,pa(10),ka("A")),f(la,pa(11),ka("B")),f(la,pa(12),ka("C")),f(la,pa(13),ka("D")),f(la,pa(14),ka("E")),f(la,pa(15),ka("F")),f(la,pa(10),ka("a")),f(la,pa(11),ka("b")),f(la,pa(12),ka("c")),f(la,pa(13),ka("d")),f(la,pa(14),ka("e")),f(la,pa(15),ka("f"))])),La=e(function(r,n){return(r<<4)+n}),Aa=e(function(r,n){return s(sa,Wn,r,n)}),qa=f(Aa,f(Aa,f(Aa,f(Aa,f(la,pa(a(function(r,n,e,t){if(t.$)return{aV:1,a_:f(La,e,e),a3:f(La,n,n),bu:f(La,r,r)};var a=t.a,u=a.a;return{aV:1,a_:f(La,a.b,a.c),a3:f(La,e,u),bu:f(La,r,n)}})),ka("#")),ja),ja),ja),va($([f(Aa,f(Aa,f(Aa,pa(t(function(r,n,e){return ae(S(r,n,e))})),ja),ja),ja),pa(Sn)]))),Ea=P,Sa={$:5},Ta=Pr,Ma=Or,Ca=X,za=e(function(r,n){return{bM:n.bM+(r-n.b),c:n.c,d:n.d,b:r,cl:n.cl,a:n.a}}),Ba=Nr,Ra=_r,_a=e(function(r,n){if(s(Ra,101,r,n)||s(Ra,69,r,n)){var e=r+1,t=s(Ra,43,e,n)||s(Ra,45,e,n)?e+1:e,a=f(Ba,t,n);return k(t,a)?-a:a}return r}),Na=e(function(r,n){return f(_a,s(Ra,46,r,n)?f(Ba,r+1,n):r,n)}),Pa=u(function(r,n,e,t,a){var u=t.a,i=t.b;if(1===n.$)return f(oa,!0,f(wa,a,n.a));var c=n.a;return k(e,u)?f(oa,0>L(a.b,e),f(wa,a,r)):s(fa,!0,c(i),f(za,u,a))}),Oa=a(function(r,n,e,t){return f($a,ba,l(ya,r,n,e,t))}),Fa=i(function(r,n,e,t,a,u){var i=a.a,c=f(Na,i,u.a);if(0>c)return f(oa,!0,l(Oa,u.cl,u.bM-(c+u.b),r,u.c));if(k(u.b,c))return f(oa,!1,f(wa,u,n));if(k(i,c))return b(Pa,r,e,u.b,a,u);if(1===t.$)return f(oa,!0,f(wa,u,r));var o=t.a,d=function(r){if(0===r.length||/[\sxbo]/.test(r))return Sn;var n=+r;return n==n?ae(n):Sn}(s(Ca,u.b,c,u.a));return 1===d.$?f(oa,!0,f(wa,u,r)):s(fa,!0,o(d.a),f(za,c,u))}),Ia=function(r){return function(n){if(s(Ra,48,n.b,n.a)){var e=n.b+1,t=e+1;return s(Ra,120,e,n.a)?b(Pa,r.dL,r.dy,t,f(Ma,t,n.a),n):s(Ra,111,e,n.a)?b(Pa,r.dL,r.dR,t,s(Ta,8,t,n.a),n):s(Ra,98,e,n.a)?b(Pa,r.dL,r.cW,t,s(Ta,2,t,n.a),n):d(Fa,r.dL,r.bQ,r.dJ,r.dt,E(e,0),n)}return d(Fa,r.dL,r.bQ,r.dJ,r.dt,s(Ta,10,n.b,n.a),n)}},Ja=f(e(function(r,n){return Ia({cW:ue(n),bQ:r,dt:ie(ht),dy:ue(n),dJ:ie(Fn),dL:n,dR:ue(n)})}),Sa,Sa),Ua=e(function(r,n){var e=n;return function(n){var t=e(n);if(t.$)return f(oa,t.a,t.b);var a=t.c;return s(fa,t.a,r(t.b),a)}}),Xa=f(Ua,Ea,Ja),Da=a(function(r,n,e,t){return{aV:t,a_:e,a3:n,bu:r}}),Ga=a(function(r,n,e,t){var a=S(r/360,n/100,e/100),u=a.a,i=a.b,c=a.c,o=c>.5?c+i-c*i:c*(i+1),f=2*c-o,s=function(r){var n=0>r?r+1:r>1?r-1:r;return 1>6*n?f+(o-f)*n*6:1>2*n?o:2>3*n?f+(o-f)*(2/3-n)*6:f},b=s(u-1/3),d=s(u),h=s(u+1/3);return l(Da,Vn(255*h),Vn(255*d),Vn(255*b),t)}),Ka=f(la,f(Ua,Ea,Ja),ka("%")),Ha=Rr,Qa=function(r){return function(r){var n=r.a,e=r.b,t=!ma(n);return function(r){var a=b(xa,n,r.b,r.cl,r.bM,r.a),u=a.a,i=a.b,c=a.c;return k(u,-1)||s(Ha,function(r){return pe(r)||"_"===r},u,r.a)>=0?f(oa,!1,f(wa,r,e)):s(fa,t,0,{bM:c,c:r.c,d:r.d,b:u,cl:i,a:r.a})}}(f(ga,r,{$:9,a:r}))},Wa=u(function(r,n,e,t,a){for(;;){var u=s(Ha,r,n,a.a);if(k(u,-1))return s(fa,0>L(a.b,n),0,{bM:t,c:a.c,d:a.d,b:n,cl:e,a:a.a});k(u,-2)?(r=r,n+=1,e+=1,t=1,a=a):(r=r,n=u,e=e,t+=1,a=a)}}),Va=(qn=function(r){return" "===r||"\n"===r||"\r"===r},function(r){return b(Wa,qn,r.b,r.cl,r.bM,r)}),Za=f(Aa,f(Aa,f(Aa,f(Aa,f(la,f(la,pa(Ga),va($([Qa("hsla"),Qa("hsl")]))),ka("(")),f(la,f(la,f(la,Xa,Va),ka(",")),Va)),f(la,f(la,f(la,Ka,Va),ka(",")),Va)),Ka),f(la,va($([f(Aa,f(la,f(la,pa(ht),ka(",")),Va),Ja),pa(1)])),ka(")"))),Ya=function(r){switch(Kt(r)){case"0":return ae(0);case"1":return ae(1);case"2":return ae(2);case"3":return ae(3);case"4":return ae(4);case"5":return ae(5);case"6":return ae(6);case"7":return ae(7);case"8":return ae(8);case"9":return ae(9);case"a":return ae(10);case"b":return ae(11);case"c":return ae(12);case"d":return ae(13);case"e":return ae(14);case"f":return ae(15);default:return Sn}},ru=t(function(r,n,e){return 1===n.$?Sn:1===e.$?Sn:ae(f(r,n.a,e.a))}),nu=e(function(r,n){return s(ru,e(function(r,n){return(r<<4)+n}),Ya(r),Ya(n))}),eu=function(r){return n={$:12,a:r},function(r){return f(oa,!1,f(wa,r,n))};var n},tu=u(function(r,n,e,t,a){return 1===n.$?Sn:1===e.$?Sn:1===t.$?Sn:1===a.$?Sn:ae(l(r,n.a,e.a,t.a,a.a))}),au=a(function(r,n,e,t){var u,i=r.a,c=r.b,o=n.a,s=n.b,d=e.a,h=e.b,v=t.a,p=t.b;return(u=b(tu,a(function(r,n,e,t){return l(Da,r,n,e,t/255)}),f(nu,i,c),f(nu,o,s),f(nu,d,h),f(nu,v,p))).$?eu("something went wrong"):pa(u.a)}),uu=function(r){var n=Qt(r);r:for(;;){if(n.b&&n.b.b&&n.b.b.b){if(n.b.b.b.b){if(n.b.b.b.b.b){if(n.b.b.b.b.b.b){if(n.b.b.b.b.b.b.b){if(n.b.b.b.b.b.b.b.b){if(n.b.b.b.b.b.b.b.b.b){if("#"!==n.a||n.b.b.b.b.b.b.b.b.b.b)break r;var e=n.b,t=e.b,a=t.b,u=(w=a.a,a.b),i=(k=u.a,u.b),c=(L=i.a,i.b),o=(A=c.a,c.b),f=o.a,s=o.b.a;return l(au,E(e.a,t.a),E(w,k),E(L,A),E(f,s))}var b=n.b,d=b.b,h=(w=d.a,d.b),v=(k=h.a,h.b),p=(L=v.a,v.b),g=(A=p.a,p.b);return f=g.a,s=g.b.a,l(au,E(n.a,b.a),E(w,k),E(L,A),E(f,s))}if("#"===n.a){var m=n.b,$=m.b,y=$.b,w=y.a,x=y.b,k=x.a,j=x.b,L=j.a,A=j.b.a;return l(au,E(m.a,$.a),E(w,k),E(L,A),E("f","f"))}break r}var q=n.b,S=q.b,T=(w=S.a,S.b),M=(k=T.a,T.b);L=M.a,A=M.b.a;return l(au,E(n.a,q.a),E(w,k),E(L,A),E("f","f"))}if("#"===n.a){var C=n.b,z=C.b,B=(N=z.a,z.b);return P=B.a,I=B.b.a,l(au,E(J=C.a,J),E(N,N),E(P,P),E(I,I))}break r}if("#"===n.a){var R=n.b,_=R.b,N=_.a,P=_.b.a;return l(au,E(J=R.a,J),E(N,N),E(P,P),E("f","f"))}var O=n.b,F=(N=O.a,O.b),I=(P=F.a,F.b.a);return l(au,E(J=n.a,J),E(N,N),E(P,P),E(I,I))}var J,U=n.b;N=U.a,P=U.b.a;return l(au,E(J=n.a,J),E(N,N),E(P,P),E("f","f"))}break r}return eu("Invalid color")},iu=va($([f(la,uu("#000000"),Qa("black")),f(la,uu("#c0c0c0"),Qa("silver")),f(la,uu("#808080"),Qa("gray")),f(la,uu("#ffffff"),Qa("white")),f(la,uu("#800000"),Qa("maroon")),f(la,uu("#ff0000"),Qa("red")),f(la,uu("#800080"),Qa("purple")),f(la,uu("#ff00ff"),Qa("fuchsia")),f(la,uu("#008000"),Qa("green")),f(la,uu("#00ff00"),Qa("lime")),f(la,uu("#808000"),Qa("olive")),f(la,uu("#ffff00"),Qa("yellow")),f(la,uu("#000080"),Qa("navy")),f(la,uu("#0000ff"),Qa("blue")),f(la,uu("#008080"),Qa("teal")),f(la,uu("#00ffff"),Qa("aqua")),f(la,uu("#ffa500"),Qa("orange")),f(la,uu("#f0f8ff"),Qa("aliceblue")),f(la,uu("#faebd7"),Qa("antiquewhite")),f(la,uu("#7fffd4"),Qa("aquamarine")),f(la,uu("#f0ffff"),Qa("azure")),f(la,uu("#f5f5dc"),Qa("beige")),f(la,uu("#ffe4c4"),Qa("bisque")),f(la,uu("#ffebcd"),Qa("blanchedalmond")),f(la,uu("#8a2be2"),Qa("blueviolet")),f(la,uu("#a52a2a"),Qa("brown")),f(la,uu("#deb887"),Qa("burlywood")),f(la,uu("#5f9ea0"),Qa("cadetblue")),f(la,uu("#7fff00"),Qa("chartreuse")),f(la,uu("#d2691e"),Qa("chocolate")),f(la,uu("#ff7f50"),Qa("coral")),f(la,uu("#6495ed"),Qa("cornflowerblue")),f(la,uu("#fff8dc"),Qa("cornsilk")),f(la,uu("#dc143c"),Qa("crimson")),f(la,uu("#00ffff"),Qa("cyan")),f(la,uu("#00008b"),Qa("darkblue")),f(la,uu("#008b8b"),Qa("darkcyan")),f(la,uu("#b8860b"),Qa("darkgoldenrod")),f(la,uu("#a9a9a9"),Qa("darkgray")),f(la,uu("#006400"),Qa("darkgreen")),f(la,uu("#a9a9a9"),Qa("darkgrey")),f(la,uu("#bdb76b"),Qa("darkkhaki")),f(la,uu("#8b008b"),Qa("darkmagenta")),f(la,uu("#556b2f"),Qa("darkolivegreen")),f(la,uu("#ff8c00"),Qa("darkorange")),f(la,uu("#9932cc"),Qa("darkorchid")),f(la,uu("#8b0000"),Qa("darkred")),f(la,uu("#e9967a"),Qa("darksalmon")),f(la,uu("#8fbc8f"),Qa("darkseagreen")),f(la,uu("#483d8b"),Qa("darkslateblue")),f(la,uu("#2f4f4f"),Qa("darkslategray")),f(la,uu("#2f4f4f"),Qa("darkslategrey")),f(la,uu("#00ced1"),Qa("darkturquoise")),f(la,uu("#9400d3"),Qa("darkviolet")),f(la,uu("#ff1493"),Qa("deeppink")),f(la,uu("#00bfff"),Qa("deepskyblue")),f(la,uu("#696969"),Qa("dimgray")),f(la,uu("#696969"),Qa("dimgrey")),f(la,uu("#1e90ff"),Qa("dodgerblue")),f(la,uu("#b22222"),Qa("firebrick")),f(la,uu("#fffaf0"),Qa("floralwhite")),f(la,uu("#228b22"),Qa("forestgreen")),f(la,uu("#dcdcdc"),Qa("gainsboro")),f(la,uu("#f8f8ff"),Qa("ghostwhite")),f(la,uu("#ffd700"),Qa("gold")),f(la,uu("#daa520"),Qa("goldenrod")),f(la,uu("#adff2f"),Qa("greenyellow")),f(la,uu("#808080"),Qa("grey")),f(la,uu("#f0fff0"),Qa("honeydew")),f(la,uu("#ff69b4"),Qa("hotpink")),f(la,uu("#cd5c5c"),Qa("indianred")),f(la,uu("#4b0082"),Qa("indigo")),f(la,uu("#fffff0"),Qa("ivory")),f(la,uu("#f0e68c"),Qa("khaki")),f(la,uu("#e6e6fa"),Qa("lavender")),f(la,uu("#fff0f5"),Qa("lavenderblush")),f(la,uu("#7cfc00"),Qa("lawngreen")),f(la,uu("#fffacd"),Qa("lemonchiffon")),f(la,uu("#add8e6"),Qa("lightblue")),f(la,uu("#f08080"),Qa("lightcoral")),f(la,uu("#e0ffff"),Qa("lightcyan")),f(la,uu("#fafad2"),Qa("lightgoldenrodyellow")),f(la,uu("#d3d3d3"),Qa("lightgray")),f(la,uu("#90ee90"),Qa("lightgreen")),f(la,uu("#d3d3d3"),Qa("lightgrey")),f(la,uu("#ffb6c1"),Qa("lightpink")),f(la,uu("#ffa07a"),Qa("lightsalmon")),f(la,uu("#20b2aa"),Qa("lightseagreen")),f(la,uu("#87cefa"),Qa("lightskyblue")),f(la,uu("#778899"),Qa("lightslategray")),f(la,uu("#778899"),Qa("lightslategrey")),f(la,uu("#b0c4de"),Qa("lightsteelblue")),f(la,uu("#ffffe0"),Qa("lightyellow")),f(la,uu("#32cd32"),Qa("limegreen")),f(la,uu("#faf0e6"),Qa("linen")),f(la,uu("#ff00ff"),Qa("magenta")),f(la,uu("#66cdaa"),Qa("mediumaquamarine")),f(la,uu("#0000cd"),Qa("mediumblue")),f(la,uu("#ba55d3"),Qa("mediumorchid")),f(la,uu("#9370db"),Qa("mediumpurple")),f(la,uu("#3cb371"),Qa("mediumseagreen")),f(la,uu("#7b68ee"),Qa("mediumslateblue")),f(la,uu("#00fa9a"),Qa("mediumspringgreen")),f(la,uu("#48d1cc"),Qa("mediumturquoise")),f(la,uu("#c71585"),Qa("mediumvioletred")),f(la,uu("#191970"),Qa("midnightblue")),f(la,uu("#f5fffa"),Qa("mintcream")),f(la,uu("#ffe4e1"),Qa("mistyrose")),f(la,uu("#ffe4b5"),Qa("moccasin")),f(la,uu("#ffdead"),Qa("navajowhite")),f(la,uu("#fdf5e6"),Qa("oldlace")),f(la,uu("#6b8e23"),Qa("olivedrab")),f(la,uu("#ff4500"),Qa("orangered")),f(la,uu("#da70d6"),Qa("orchid")),f(la,uu("#eee8aa"),Qa("palegoldenrod")),f(la,uu("#98fb98"),Qa("palegreen")),f(la,uu("#afeeee"),Qa("paleturquoise")),f(la,uu("#db7093"),Qa("palevioletred")),f(la,uu("#ffefd5"),Qa("papayawhip")),f(la,uu("#ffdab9"),Qa("peachpuff")),f(la,uu("#cd853f"),Qa("peru")),f(la,uu("#ffc0cb"),Qa("pink")),f(la,uu("#dda0dd"),Qa("plum")),f(la,uu("#b0e0e6"),Qa("powderblue")),f(la,uu("#bc8f8f"),Qa("rosybrown")),f(la,uu("#4169e1"),Qa("royalblue")),f(la,uu("#8b4513"),Qa("saddlebrown")),f(la,uu("#fa8072"),Qa("salmon")),f(la,uu("#f4a460"),Qa("sandybrown")),f(la,uu("#2e8b57"),Qa("seagreen")),f(la,uu("#fff5ee"),Qa("seashell")),f(la,uu("#a0522d"),Qa("sienna")),f(la,uu("#87ceeb"),Qa("skyblue")),f(la,uu("#6a5acd"),Qa("slateblue")),f(la,uu("#708090"),Qa("slategray")),f(la,uu("#708090"),Qa("slategrey")),f(la,uu("#fffafa"),Qa("snow")),f(la,uu("#00ff7f"),Qa("springgreen")),f(la,uu("#4682b4"),Qa("steelblue")),f(la,uu("#d2b48c"),Qa("tan")),f(la,uu("#d8bfd8"),Qa("thistle")),f(la,uu("#ff6347"),Qa("tomato")),f(la,uu("#40e0d0"),Qa("turquoise")),f(la,uu("#ee82ee"),Qa("violet")),f(la,uu("#f5deb3"),Qa("wheat")),f(la,uu("#f5f5f5"),Qa("whitesmoke")),f(la,uu("#9acd32"),Qa("yellowgreen")),f(la,uu("#663399"),Qa("rebeccapurple")),f(la,pa(l(Da,0,0,0,0)),Qa("transparent"))])),cu={$:1},ou=f(e(function(r,n){return Ia({cW:ue(n),bQ:r,dt:ue(n),dy:ue(n),dJ:ie(ht),dL:n,dR:ue(n)})}),cu,cu),fu=f(Aa,f(Aa,f(Aa,f(Aa,f(la,f(la,pa(Da),va($([Qa("rgba"),Qa("rgb")]))),ka("(")),f(la,f(la,f(la,ou,Va),ka(",")),Va)),f(la,f(la,f(la,ou,Va),ka(",")),Va)),ou),f(la,va($([f(Aa,f(la,f(la,pa(ht),ka(",")),Va),Ja),pa(1)])),ka(")"))),su=(En={$:10},function(r){return k(Ve(r.a),r.b)?s(fa,!1,0,r):f(oa,!1,f(wa,r,En))}),lu=f(la,va($([iu,Za,fu,qa])),su),bu=e(function(r,n){return n.$?ue(r(n.a)):ie(n.a)}),du=function(){return"TODO deadEndsToString"},hu=t(function(r,n,e){return{bM:n,cd:e,cl:r}}),vu=function(r){return s(hu,r.cl,r.bM,r.cd)},pu=e(function(r,n){r:for(;;)switch(r.$){case 0:return n;case 1:var e=r.b;r=r.a,n=f(Rn,e,n);continue r;default:var t=r.b;r=r.a,n=f(pu,t,n);continue r}}),gu=e(function(r,n){var e=r({bM:1,c:p,d:1,b:0,cl:1,a:n});return e.$?ue(f(pu,e.b,p)):ie(e.b)}),mu=e(function(r,n){var e=f(gu,r,n);return e.$?ue(f(tt,vu,e.a)):ie(e.a)}),$u=function(r){return Nt({aj:"E",ao:na,ac:r,aw:Sn})},yu=f(At,$u,ta),wu=Ne(ea("str")),xu=e(function(r,n){return f(_e,r,n)}),ku=function(r){return{$:1,a:r}},ju=G,Lu=function(r){return ku(ju(r))},Au=function(r){return ku(ke(r))},qu=t(function(r,n,e){return f(je,n,f(Le,r,e))}),Eu=function(r){return ku('"'+s(qu,'"','\\"',r)+'"')},Su=function(r){switch(r){case"map":return yu("anchorMap");case"viewport":return yu("anchorViewport");case"auto":return yu("anchorAuto");case"center":return yu("positionCenter");case"left":return yu("positionLeft");case"right":return yu("positionRight");case"top":return yu("positionTop");case"bottom":return yu("positionBottom");case"topRight":return yu("positionTopRight");case"topLeft":return yu("positionTopLeft");case"bottomLeft":return yu("positionBottomLeft");case"bottomRight":return yu("positionBottomRight");case"none":return yu("textFitNone");case"width":return yu("textFitWidth");case"height":return yu("textFitHeight");case"both":return yu("textFitBoth");case"butt":return yu("lineCapButt");case"round":return yu("lineCapRound");case"square":return yu("lineCapSquare");case"bevel":return yu("lineJoinBevel");case"miter":return yu("lineJoinMiter");case"point":return yu("symbolPlacementPoint");case"line-center":return yu("symbolPlacementLineCenter");case"line":return yu("symbolPlacementLine");case"uppercase":return yu("textTransformUppercase");case"lowercase":return yu("textTransformLowercase");case"linear":return yu("rasterResamplingLinear");case"nearest":return yu("rasterResamplingNearest");default:var n=f(bu,du,f(mu,lu,r));if(n.$)return wu(Eu(r));var e=n.a.bu,t=n.a.a3,a=n.a.a_,u=n.a.aV;return f(xu,$u("rgba"),$([Au(e),Au(t),Au(a),Lu(u)]))}},Tu=function(r){return{$:7,b:r}},Mu=function(r){if(r.b&&r.b.b){var n=r.a,e=r.b,t=e.a,a=e.b,u=f(Jt,Tu(ze),n);return 1===u.$?f(Rn,n,f(Rn,t,a)):C(f(St,function(r){return $([r,t])},u.a),Mu(a))}return r},Cu=Z,zu=f(et,Cu(Rn),Ft(p)),Bu=e(function(r,n){return It(f(Jt,r,n))}),Ru=W,_u=function(r){return f(Ru,function(n){if(n.b){var e=n.b;return zu(f(tt,Bu(r),e))}return Ot("Can't get tail of empty")},Tu(ze))},Nu=e(function(r,n){return{$:1,a:r,b:n}}),Pu=e(function(r,n){return f(Nu,r,Ue(n))}),Ou=function(r){return f(Ne,f(Pu,$(["Debug"]),"todo"),Eu(r))},Fu=f(Ut,function(r){return Ou("The expression "+f(qe,0,r)+" is not yet supported")},ze),Iu=Ne(ea("float")),Ju=Ne($u("floats")),Uu=Ne(ea("int")),Xu=t(function(r,n,e){return f(_e,r,$([n,e]))}),Du=function(r){return{$:0,a:Ue(r)}},Gu=e(function(r,n){if(n.b){var e=n.a,t=n.b;return s(Xu,Du("|>"),e,f(xu,$u(r),t))}return Ou("Wrong number of arguments passed to E."+r)}),Ku=e(function(r,n){if(n.b){var t=n.a,a=n.b;return s(Dn,e(function(r,n){return s(Xu,Du("|>"),n,r)}),t,f(tt,Ne($u(r)),a))}return Ou("Wrong number of arguments passed to E."+r)}),Hu=function(r){return{$:2,a:r}},Qu=e(function(r,n){return function(r){return{$:3,a:r}}($([r,n]))}),Wu=e(function(r,n){r:for(;;){if(r>0){if(n.b){r-=1,n=n.b;continue r}return n}return n}}),Vu=function(r){return r.toLowerCase()},Zu={$:4},Yu=H,ri={$:2},ni=Y,ei=function(r){return{$:15,g:r}},ti={$:6},ai=function(r){switch(r){case"literal":return f(Yu,1,ei($([f(Ut,function(r){return f(xu,$u("strings"),$([Hu(f(tt,Eu,r))]))},Tu(ti)),f(Ut,function(r){return f(xu,$u("floats"),$([Hu(f(tt,Lu,r))]))},Tu(Zu))])));case"match":return ei($([f(Ru,ui(!0),f(Yu,2,ti)),f(Ru,ui(!1),f(Yu,2,Zu)),f(Ru,ui(!0),f(Yu,2,Tu(ti))),f(Ru,ui(!1),f(Yu,2,Tu(Zu)))]));case"exponential":return f(Ut,function(r){return f(xu,$u("Exponential"),$([Lu(r)]))},f(Yu,1,Zu));case"interpolate":return l(ni,t(function(r,n,e){return f(Gu,"interpolate",f(Rn,e,f(Rn,r,n)))}),f(Yu,1,ci()),f(Ru,f(ii,f(Ut,Lu,Zu),p),f(Ut,Wu(2),_u(ze))),f(Yu,2,ci()));case"step":return l(ni,t(function(r,n,e){return f(Gu,"step",f(Rn,r,f(Rn,n,e)))}),f(Yu,1,ci()),f(Yu,2,ci()),f(Ru,f(ii,f(Ut,Lu,Zu),p),f(Ut,Wu(2),_u(ze))));case"case":return f(Ut,xu($u("conditionally")),f(Ru,f(ii,ci(),p),_u(ze)));default:var n=f(Ut,function(n){switch(r){case"==":return f(Gu,"isEqual",n);case"!=":return f(Gu,"notEqual",n);case"!has":return Ou("!has is not supported");case"!in":return Ou("!in is not supported");case"in":return Ou("in is not supported");case">=":return f(Gu,"greaterThanOrEqual",n);case">":return f(Gu,"greaterThan",n);case"<=":return f(Gu,"lessThanOrEqual",n);case"<":return f(Gu,"lessThan",n);case"concat":return f(Ku,"append",n);case"linear":return f(xu,$u("Linear"),n);case"rgb":return f(xu,$u("makeRGBColor"),n);case"rgba":return f(xu,$u("makeRGBAColor"),n);case"to-rgba":return f(xu,$u("rgbaChannels"),n);case"-":return f(Ku,"minus",n);case"*":return f(Ku,"multiply",n);case"+":return f(Ku,"plus",n);case"/":return f(Ku,"divideBy",n);case"%":return f(Ku,"modBy",n);case"^":return f(Ku,"raiseBy",n);case"get":return 1===ge(n)?f(xu,$u("getProperty"),n):f(xu,$u("get"),n);case"all":return f(Ne,$u("all"),Hu(n));case"any":return f(Ne,$u("any"),Hu(n));default:return f(xu,$u(Yt(r)),n)}},_u(ci()));return k(Vu(r),r)?n:ei($([f(Ut,function(r){return f(xu,$u("strings"),$([Hu(f(tt,Eu,r))]))},Tu(ti)),n]))}},ui=e(function(r){return f(Ru,function(n){if(n.b){var t=n.a,a=n.b;return s(Cu,e(function(n,e){return f(Gu,r?"matchesStr":"matchesFloat",f(Rn,n,e))}),f(Bu,ci(),t),s(ii,r?f(Ut,Eu,ti):f(Ut,Lu,Zu),p,Mu(a)))}return Fu},_u(ze))}),ii=t(function(r,n,e){r:for(;;){if(e.b){if(e.b.b){var t=e.b,a=t.a,u=t.b,i=f(Rn,s(Cu,Qu,f(Bu,r,e.a),f(Bu,ci(),a)),n);r=r,n=i,e=u;continue r}var c=e.a;return zu($([f(Ut,Hu,zu(Gn(n))),f(Bu,ci(),c)]))}return zu($([f(Ut,Hu,zu(Gn(n)))]))}});function ci(){return ei($([f(Ut,Su,ti),ia,f(Ut,f(At,Lu,Iu),Zu),f(Ut,f(At,Au,Uu),ri),f(Ru,ai,f(Yu,0,ti)),f(Ru,ca(f(Ut,f(At,tt(Au),f(At,Hu,Ju)),Tu(ri))),f(Yu,0,ri)),f(Ru,ca(f(Ut,f(At,tt(Lu),f(At,Hu,Ju)),Tu(Zu))),f(Yu,0,Zu)),Fu]))}var oi=ci();ci=function(){return oi};var fi=e(function(r,n){return ei($([n,Ft(r)]))}),si=function(r){return $([r])};function li(){var r=Tu(ei($([f(Ut,f(At,Eu,wu),ti),f(Ut,f(At,Lu,Iu),Zu),ia]))),n=f(Yu,2,ei($([f(Ut,f(At,Eu,wu),ti),f(Ut,f(At,Lu,Iu),Zu),ia]))),t=f(Ut,function(r){switch(r){case"$type":return yu("geometryType");case"$id":return yu("id");default:return f(xu,$u("getProperty"),$([wu(Eu(r))]))}},f(Yu,1,ti)),a=function(r){return s(Cu,e(function(n,e){return f(Gu,r,$([n,e]))}),t,n)};return f(Ru,function(n){switch(n){case"all":return f(Ut,function(r){return f(xu,$u("all"),$([Hu(r)]))},_u(li()));case"any":return f(Ut,function(r){return f(xu,$u("any"),$([Hu(r)]))},_u(li()));case"none":return f(Ut,function(r){return f(xu,$u("all"),$([Hu(f(tt,function(r){return f(xu,$u("not"),$([r]))},r))]))},_u(li()));case"has":return f(Ut,function(r){return f(xu,$u("hasProperty"),$([wu(Eu(r))]))},f(Yu,1,ti));case"!has":return f(Ut,function(r){return f(xu,$u("not"),$([f(xu,$u("hasProperty"),$([wu(Eu(r))]))]))},f(Yu,1,ti));case"==":return a("isEqual");case"!=":return a("notEqual");case">":return a("greaterThan");case">=":return a("greaterThanOrEqual");case"<":return a("lessThan");case"<=":return a("lessThanOrEqual");case"in":return s(Cu,e(function(r,n){return f(xu,$u("any"),si(Hu(f(tt,function(n){return f(Gu,"isEqual",$([r,n]))},f(Wu,2,n)))))}),t,r);case"!in":return s(Cu,e(function(r,n){return f(xu,$u("all"),si(Hu(f(tt,function(n){return f(Gu,"notEqual",$([r,n]))},f(Wu,2,n)))))}),t,r);default:return Ot("not actually a legacy filter")}},f(Yu,0,ti))}var bi=li();li=function(){return bi};var di=t(function(r,n,e){var t=r(n);return t.$?e:f(Rn,t.a,e)}),hi=e(function(r,n){return s(et,di(r),p,n)}),vi=K,pi=function(r){return{$:12,b:r}},gi=f(Ru,f(At,hi(function(r){var n=r.a,e=r.b;switch(n){case"id":case"type":case"source":case"paint":case"layout":case"metadata":return Sn;case"source-layer":return s(ra,"sourceLayer",f(Ut,Eu,ti),e);case"minzoom":return s(ra,"minzoom",f(Ut,Lu,Zu),e);case"maxzoom":return s(ra,"maxzoom",f(Ut,Lu,Zu),e);case"filter":return s(ra,"filter",ei($([bi,oi])),e);default:return s(ra,Yt(n),oi,e)}}),zu),l(ni,t(function(r,n,e){return C(r,C(n,e))}),pi(ze),f(fi,p,f(vi,"paint",pi(ze))),f(fi,p,f(vi,"layout",pi(ze))))),mi=a(function(r,n,e,t){return f(_e,r,$([n,e,t]))}),$i=function(r){return l(ni,t(function(n,e,t){return l(mi,Pt(r),Eu(n),Eu(e),Hu(t))}),f(vi,"id",ti),f(vi,"source",ti),gi)},yi=f(Ru,function(r){switch(r){case"background":return s(Cu,e(function(r,n){return s(Xu,Pt("background"),Eu(r),Hu(n))}),f(vi,"id",ti),gi);case"fill":return $i("fill");case"symbol":return $i("symbol");case"line":return $i("line");case"raster":return $i("raster");case"circle":return $i("circle");case"fill-extrusion":return $i("fillExtrusion");case"heatmap":return $i("heatmap");case"hillshade":return $i("hillshade");default:return Ot("Layer type "+r+" not supported")}},f(vi,"type",ti)),wi=f(Ut,Hu,Tu(yi)),xi=e(function(r,n){return Ft(ta(Nt({aj:r,ao:$(["Mapbox",r]),ac:n,aw:Sn})))}),ki=f(xi,"Style","defaultLight"),ji=a(function(r,n,e,t){return function(r){return ei($([f(Ut,ae,r),Ft(Sn)]))}(f(vi,r,f(Ut,function(r){return f(Ne,Nt({aj:"Style",ao:Re,ac:n,aw:Sn}),t(r))},e)))}),Li=h(nr,i(function(r,n,e,t,a,u){return Hu(f(hi,ht,$([r,n,e,t,a,u])))}),l(ji,"sprite","sprite",ti,Eu),l(ji,"glyphs","glyphs",ti,Eu),l(ji,"name","name",ti,Eu),l(ji,"zoom","defaultZoomLevel",Zu,Lu),l(ji,"bearing","defaultBearing",Zu,Lu),l(ji,"pitch","defaultPitch",Zu,Lu)),Ai=$(["Mapbox","Source"]),qi=f(Ru,function(r){switch(r){case"vector":return f(Ut,function(r){return function(n){return s(Xu,Nt({aj:"Source",ao:Ai,ac:"vectorFromUrl",aw:Sn}),Eu(n),Eu(r))}},f(vi,"url",ti));case"raster":return f(Ut,function(r){return function(n){return s(Xu,Nt({aj:"Source",ao:Ai,ac:"rasterFromUrl",aw:Sn}),Eu(n),Eu(r))}},f(vi,"url",ti));default:return Ft(function(){return Ou("type "+r+" not yet supported")})}},f(vi,"type",ti)),Ei=f(Ut,Hu,f(Ut,tt(function(r){return(0,r.b)(r.a)}),pi(qi))),Si=s(Cu,e(function(r,n){return Ie($([E("duration",Au(r)),E("delay",Au(n))]))}),ei($([f(vi,"duration",ri),Ft(300)])),ei($([f(vi,"delay",ri),Ft(0)]))),Ti=d(rr,u(function(r,n,e,t,a){return $([E("transition",r),E("light",n),E("layers",e),E("sources",t),E("misc",a)])}),ei($([f(vi,"transition",Si),f(xi,"Style","defaultTransition")])),ei($([f(vi,"light",ki),f(xi,"Style","defaultLight")])),f(vi,"layers",wi),f(vi,"sources",Ei),Li),Mi=f(Ut,Bt,Ti),Ci=function(r){switch(r.$){case 0:return"Invalid URL. Check the inputs to make sure that it is a valid https url or starts with mapbox://styles/";case 1:return"Request timed out. Try again later.";case 2:return"Network error. Are you online?";case 3:var n=r.a;switch(n.cq.M){case 401:return"An authentication error occurred. Check your key and try again.";case 404:return"Couldn't find that style";default:return n.cq.dP}default:return r.a}},zi=function(r){return{$:0,a:r}},Bi={$:0},Ri=e(function(r,n){r:for(;;){if(-2===n.$)return Sn;var e=n.c,t=n.d,a=n.e;switch(f(yt,r,n.b)){case 0:r=r,n=t;continue r;case 1:return ae(e);default:r=r,n=a;continue r}}}),_i=function(r){if(-1===r.$&&-1===r.d.$&&-1===r.e.$){if(-1!==r.e.d.$||r.e.d.a){var n=r.d,e=r.e;return i=e.b,c=e.c,t=e.d,s=e.e,b($t,1,r.b,r.c,b($t,0,n.b,n.c,n.d,n.e),b($t,0,i,c,t,s))}var t,a=r.d,u=r.e,i=u.b,c=u.c,o=(t=u.d).d,f=t.e,s=u.e;return b($t,0,t.b,t.c,b($t,1,r.b,r.c,b($t,0,a.b,a.c,a.d,a.e),o),b($t,1,i,c,f,s))}return r},Ni=function(r){if(-1===r.$&&-1===r.d.$&&-1===r.e.$){if(-1!==r.d.d.$||r.d.d.a){var n=r.d,e=r.e;return f=e.b,s=e.c,l=e.d,d=e.e,b($t,1,t=r.b,a=r.c,b($t,0,n.b,n.c,n.d,c=n.e),b($t,0,f,s,l,d))}var t=r.b,a=r.c,u=r.d,i=u.d,c=u.e,o=r.e,f=o.b,s=o.c,l=o.d,d=o.e;return b($t,0,u.b,u.c,b($t,1,i.b,i.c,i.d,i.e),b($t,1,t,a,c,b($t,0,f,s,l,d)))}return r},Pi=c(function(r,n,e,t,a,u,i){if(-1!==u.$||u.a){r:for(;;){if(-1===i.$&&1===i.a){if(-1===i.d.$){if(1===i.d.a)return Ni(n);break r}return Ni(n)}break r}return n}return b($t,e,u.b,u.c,u.d,b($t,0,t,a,u.e,i))}),Oi=function(r){if(-1===r.$&&-1===r.d.$){var n=r.a,e=r.b,t=r.c,a=r.d,u=a.d,i=r.e;if(1===a.a){if(-1!==u.$||u.a){var c=_i(r);if(-1===c.$){var o=c.e;return b(wt,c.a,c.b,c.c,Oi(c.d),o)}return pt}return b($t,n,e,t,Oi(a),i)}return b($t,n,e,t,Oi(a),i)}return pt},Fi=e(function(r,n){if(-2===n.$)return pt;var e=n.a,t=n.b,a=n.c,u=n.d,i=n.e;if(0>L(r,t)){if(-1===u.$&&1===u.a){var c=u.d;if(-1!==c.$||c.a){var o=_i(n);if(-1===o.$){var s=o.e;return b(wt,o.a,o.b,o.c,f(Fi,r,o.d),s)}return pt}return b($t,e,t,a,f(Fi,r,u),i)}return b($t,e,t,a,f(Fi,r,u),i)}return f(Ii,r,h(Pi,r,n,e,t,a,u,i))}),Ii=e(function(r,n){if(-1===n.$){var e=n.a,t=n.b,a=n.c,u=n.d,i=n.e;if(k(r,t)){var c=function(r){for(;;){if(-1!==r.$||-1!==r.d.$)return r;r=r.d}}(i);return-1===c.$?b(wt,e,c.b,c.c,u,Oi(i)):pt}return b(wt,e,t,a,u,f(Fi,r,i))}return pt}),Ji=e(function(r,n){var e=f(Fi,r,n);return-1!==e.$||e.a?e:b($t,1,e.b,e.c,e.d,e.e)}),Ui=t(function(r,n,e){var t=n(f(Ri,r,e));return t.$?f(Ji,r,e):s(kt,r,t.a,e)}),Xi=function(r){return!r.$},Di=e(function(r,n){return{$:4,a:r,b:n}}),Gi=function(r){return{$:3,a:r}},Ki=function(r){return{$:0,a:r}},Hi={$:2},Qi={$:1},Wi=function(r){return 1===r.$},Vi={$:0,b:"text",a:function(r){return ie(r.cX)}},Zi=ht,Yi=t(function(r,n,e){return r(n(e))}),rc=vr,nc=br,ec=nc(0),tc=e(function(r,n){return f(rc,function(n){return nc(r(n))},n)}),ac=t(function(r,n,e){return f(rc,function(n){return f(rc,function(e){return nc(f(r,n,e))},e)},n)}),uc=Lr,ic=e(function(r,n){var e=n;return function(r){return hr(function(n){n(br(mr(r)))})}(f(rc,uc(r),e))});kr.Task={b:ec,c:t(function(r,n){return f(tc,function(){return 0},(e=f(tt,ic(r),n),s(et,ac(Rn),nc(p),e)));var e}),d:t(function(){return nc(0)}),e:e(function(r,n){return f(tc,r,n)}),f:void 0};var cc,oc,fc,sc,lc,bc,dc=Ar("Task"),hc=pr,vc=e(function(r,n){return dc(f(hc,f(Yi,f(Yi,nc,r),ue),f(rc,f(Yi,f(Yi,nc,r),ie),n)))}),pc=e(function(r,n){return f(vc,r,f(Fr,n,Sn))}),gc=e(function(r,n){return f(pc,zi,Zi({cX:Bi,a2:Vi,aJ:p,a8:"GET",bB:Sn,eE:s(qu,"mapbox://styles/","https://api.mapbox.com/styles/v1/",r)+"?access_token="+n,bE:!1}))}),mc=sr,$c=function(r,n){return Sr(r),kr[r]={e:Tr,r:n,a:Mr},Ar(r)}("requestStyleUpgrade",mc),yc=e(function(r,n){return n.$?r:n.a}),wc=e(function(r,n){return s(et,vi,n,r)}),xc=e(function(r,n){switch(r.$){case 0:return r.a.$?E(M(n,{a1:ae(Ci(r.a.a))}),Me):E(M(n,{bz:ae(e=r.a.a)}),$c(e));case 1:return E(n,f(gc,n.aQ,n.aS));case 2:return E(M(n,{aQ:r.a}),Me);case 3:return E(M(n,{aS:r.a}),Me);default:var e=r.a;return E(M(n,{M:function(){var r=f(Jt,f(vi,"type",ti),e);r:for(;!r.$;)switch(r.a){case"Ok":return ae(f(bu,Se,f(Jt,f(vi,"result",Mi),e)));case"Err":return ae(ue(f(yc,"Something went wrong",f(Jt,f(wc,$(["error","message"]),ti),e))));default:break r}return ae(ue("Something went wrong"))}()}),Me)}}),kc={$:1},jc=function(r){return{$:2,a:r}},Lc=function(r){return{$:3,a:r}},Ac=function(r){switch(r.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3}},qc=function(r){return Gr(Zr(r))},Ec=qc,Sc=e(function(r,n){return f(Wr,function(r){return"innerHTML"==r||"formAction"==r?"data-"+r:r}(r),Yr(n))}),Tc=Sc,Mc=Qr,Cc=Mc,zc=Hr,Bc=e(function(r,n){return f(zc,r,{$:0,a:n})}),Rc=sr,_c=function(r){return{$:0,a:r}},Nc=f(Yi,_c,ca),Pc=Nc,Oc=function(r){var n,e=(n=r.ap).$?f(Tc,"readonly",Rc(!0)):f(Bc,"editorChanged",f(Ut,n.a,f(wc,$(["detail"]),ti)));return Pc(s(Ec,"code-editor",$([f(Tc,"editorValue",mc(r.M)),e,f(Tc,"mode",mc("elm")),f(Cc,"width","50vw"),f(Cc,"height","100%")]),p))},Fc=e(function(r,n){return n.$?r:n.a}),Ic=(1,{$:5,a:1}),Jc=function(r){return{$:8,a:r}},Uc={$:1},Xc=function(r){return{$:7,a:r}},Dc=function(r){return{$:0,a:r}},Gc={$:0},Kc=e(function(r,n){return{$:0,a:r,b:n}}),Hc=f(Kc,0,0),Qc={$:0},Wc=function(r){return!r.b},Vc=function(r){return{$:1,a:r}},Zc={$:0},Yc=function(r){return{$:1,a:r}},ro=e(function(r,n){switch(n.$){case 0:return r;case 1:return C(n.a,r);case 2:return C(r,n.a);default:return C(n.a,C(r,n.b))}}),no=t(function(r,n,e){switch(e.$){case 0:return n;case 1:return C(f(tt,function(n){return E(r,n)},e.a),n);case 2:return C(n,f(tt,function(n){return E(r,n)},t=e.a));default:var t=e.b;return C(f(tt,function(n){return E(r,n)},e.a),C(n,f(tt,function(n){return E(r,n)},t)))}}),eo=Gr("div"),to=Gr("p"),ao=Gr("s"),uo=Gr("u"),io=e(function(r,n){return f(Wr,r,mc(n))}),co=io("className"),oo=function(r){return Kr(Zr(r))},fo=function(r){return r>31?{$:1,a:1<<r-32}:{$:0,a:1<<r}},so=fo(41),lo=fo(40),bo=fo(42),ho=fo(43),vo=fo(45),po=fo(37),go=e(function(r,n){var e=n.a;if(r.$){var t=r.a;return k(t&n.b,t)}var a=r.a;return k(a&e,a)}),mo=fo(44),$o=fo(39),yo=e(function(r,n){return!f(Ri,r,n).$}),wo=e(function(r,n){return f(yo,r,n)}),xo=function(r){switch(r.$){case 0:return ke(r.a)+"px";case 1:return"auto";case 2:return ke(r.a)+"fr";case 3:var n=r.b;return"min"+(ke(r.a)+xo(n));default:return n=r.b,"max"+(ke(r.a)+xo(n))}},ko=function(r){return ke(Ea(255*r))},jo=function(r){switch(r.$){case 0:return Sn;case 1:var n=r.a,e=n.b,t=n.c;return ae("mv-"+ko(n.a)+"-"+ko(e)+"-"+ko(t));default:var a=r.a,u=a.b,i=a.c,c=r.b,o=c.a,f=c.b,s=c.c,l=r.c,b=l.a,d=l.b,h=l.c,v=r.d;return ae("tfrm-"+ko(a.a)+"-"+ko(u)+"-"+ko(i)+"-"+ko(o)+"-"+ko(f)+"-"+ko(s)+"-"+ko(b)+"-"+ko(d)+"-"+ko(h)+"-"+ko(v))}},Lo=function(r){switch(r.$){case 13:case 12:return u=r.a;case 0:return r.a;case 1:return u=r.a;case 2:return"font-size-"+ke(r.a);case 3:case 4:case 5:return r.a;case 7:case 6:return r.a;case 8:var n=r.a;return"grid-rows-"+f(je,"-",f(tt,xo,n.d3))+"-cols-"+f(je,"-",f(tt,xo,n.y))+"-space-x-"+xo(n.ed.a)+"-space-y-"+xo(n.ed.b);case 9:var e=r.a;return"gp grid-pos-"+ke(e.cl)+"-"+ke(e.bM)+"-"+ke(e.cA)+"-"+ke(e.bU);case 11:var t=r.a,a=r.b,u=function(){switch(t){case 0:return"fs";case 1:return"hv";default:return"act"}}();return f(je," ",f(tt,function(r){var n=Lo(r);return""===n?"":n+"-"+u},a));default:return f(Fc,"",jo(r.a))}},Ao=e(function(r,n){var e=n.a,t=n.b,a=Lo(r);return f(wo,a,e)?n:E(f(jt,a,e),f(Rn,r,t))}),qo=e(function(r,n){return n.$?Sn:ae(r(n.a))}),Eo=e(function(r,n){var e=n.b;return E(r(n.a),e)}),So=e(function(r,n){return E(n.a,r(n.b))}),To=e(function(r,n){return{$:0,a:r,b:n}}),Mo=e(function(r,n){return{$:0,a:r,b:n}}),Co=function(r){var n=r.b,e=r.c,t=r.d;return"rgba("+ke(Ea(255*r.a))+","+ke(Ea(255*n))+","+ke(Ea(255*e))+","+ju(t)+")"},zo=function(r){return"."+r},Bo=function(r){return f(Mo,zo("s")+":focus .focusable, "+zo("s")+".focusable:focus",f(hi,ht,$([f(qo,function(r){return f(To,"border-color",Co(r))},r.cZ),f(qo,function(r){return f(To,"background-color",Co(r))},r.cS),f(qo,function(r){return f(To,"box-shadow",function(r){return f(je," ",f(hi,ht,$([r.b_?ae("inset"):Sn,ae(ju(r.b.a)+"px"),ae(ju(r.b.b)+"px"),ae(ju(r.Y)+"px"),ae(ju(r.ag)+"px"),ae(Co(r.Z))])))}({Y:r.Y,Z:r.Z,b_:!1,b:f(So,Fn,f(Eo,Fn,r.b)),ag:r.ag}))},r.d8),ae(f(To,"outline","none"))])))},Ro=Xr,_o=function(r){return{$:5,a:r}},No=e(function(r,n){return{$:1,a:r,b:n}}),Po=e(function(r,n){return{$:0,a:r,b:n}}),Oo=e(function(r,n){return{$:3,a:r,b:n}}),Fo=e(function(r,n){return{$:0,a:r,b:n}}),Io=e(function(r,n){return{$:2,a:r,b:n}}),Jo=$([0,1,2,3,4,5]),Uo=function(r){switch(r){case 0:return zo("ct");case 1:return zo("cb");case 2:return zo("cr");case 3:return zo("cl");case 4:return zo("ccx");default:return zo("ccy")}},Xo=function(r){switch(r){case 0:return zo("at");case 1:return zo("ab");case 2:return zo("ar");case 3:return zo("al");case 4:return zo("cx");default:return zo("cy")}},Do=function(r){return _o(f(St,function(n){var e=r(n),t=e.a,a=e.b;return $([f(Oo,Uo(n),t),f(No,zo("s"),$([f(Oo,Xo(n),a)]))])},Jo))},Go=$([f(Fo,"display","flex"),f(Fo,"flex-direction","column"),f(Fo,"white-space","pre"),f(Oo,zo("hbh"),$([f(Fo,"z-index","0"),f(No,zo("bh"),$([f(Fo,"z-index","-1")]))])),f(Oo,zo("sbt"),$([f(No,zo("t"),$([f(Oo,zo("hf"),$([f(Fo,"flex-grow","0")])),f(Oo,zo("wf"),$([f(Fo,"align-self","auto !important")]))]))])),f(No,zo("hc"),$([f(Fo,"height","auto")])),f(No,zo("hf"),$([f(Fo,"flex-grow","100000")])),f(No,zo("wf"),$([f(Fo,"width","100%")])),f(No,zo("wc"),$([f(Fo,"align-self","flex-start")])),Do(function(r){switch(r){case 0:return E($([f(Fo,"justify-content","flex-start")]),$([f(Fo,"margin-bottom","auto !important"),f(Fo,"margin-top","0 !important")]));case 1:return E($([f(Fo,"justify-content","flex-end")]),$([f(Fo,"margin-top","auto !important"),f(Fo,"margin-bottom","0 !important")]));case 2:return E($([f(Fo,"align-items","flex-end")]),$([f(Fo,"align-self","flex-end")]));case 3:return E($([f(Fo,"align-items","flex-start")]),$([f(Fo,"align-self","flex-start")]));case 4:return E($([f(Fo,"align-items","center")]),$([f(Fo,"align-self","center")]));default:return E($([f(No,zo("s"),$([f(Fo,"margin-top","auto"),f(Fo,"margin-bottom","auto")]))]),$([f(Fo,"margin-top","auto !important"),f(Fo,"margin-bottom","auto !important")]))}})]),Ko=$([0,1,2,3,4,5]),Ho=$([f(Po,"html,body",$([f(Fo,"height","100%"),f(Fo,"padding","0"),f(Fo,"margin","0")])),f(Po,C(zo("s"),C(zo("e"),zo("ic"))),$([f(Fo,"display","block")])),f(Po,zo("s")+":focus",$([f(Fo,"outline","none")])),f(Po,zo("ui"),$([f(Fo,"width","100%"),f(Fo,"height","auto"),f(Fo,"min-height","100%"),f(Fo,"z-index","0"),f(Oo,C(zo("s"),zo("hf")),$([f(Fo,"height","100%"),f(No,zo("hf"),$([f(Fo,"height","100%")]))])),f(No,zo("fr"),$([f(Oo,zo("nb"),$([f(Fo,"position","fixed")]))]))])),f(Po,zo("nb"),$([f(Fo,"position","relative"),f(Fo,"border","none"),f(Fo,"display","flex"),f(Fo,"flex-direction","row"),f(Fo,"flex-basis","auto"),f(Oo,zo("e"),Go),_o(f(tt,function(r){switch(r){case 0:return f(Oo,zo("a"),$([f(Fo,"position","absolute"),f(Fo,"bottom","100%"),f(Fo,"left","0"),f(Fo,"width","100%"),f(Fo,"z-index","20"),f(Fo,"margin","0 !important"),f(No,zo("hf"),$([f(Fo,"height","auto")])),f(No,zo("wf"),$([f(Fo,"width","100%")])),f(Fo,"pointer-events","none"),f(No,"*",$([f(Fo,"pointer-events","auto")]))]));case 1:return f(Oo,zo("b"),$([f(Fo,"position","absolute"),f(Fo,"bottom","0"),f(Fo,"left","0"),f(Fo,"height","0"),f(Fo,"width","100%"),f(Fo,"z-index","20"),f(Fo,"margin","0 !important"),f(Fo,"pointer-events","none"),f(No,"*",$([f(Fo,"pointer-events","auto")])),f(No,zo("hf"),$([f(Fo,"height","auto")]))]));case 2:return f(Oo,zo("or"),$([f(Fo,"position","absolute"),f(Fo,"left","100%"),f(Fo,"top","0"),f(Fo,"height","100%"),f(Fo,"margin","0 !important"),f(Fo,"z-index","20"),f(Fo,"pointer-events","none"),f(No,"*",$([f(Fo,"pointer-events","auto")]))]));case 3:return f(Oo,zo("ol"),$([f(Fo,"position","absolute"),f(Fo,"right","100%"),f(Fo,"top","0"),f(Fo,"height","100%"),f(Fo,"margin","0 !important"),f(Fo,"z-index","20"),f(Fo,"pointer-events","none"),f(No,"*",$([f(Fo,"pointer-events","auto")]))]));case 4:return f(Oo,zo("fr"),$([f(Fo,"position","absolute"),f(Fo,"width","100%"),f(Fo,"height","100%"),f(Fo,"left","0"),f(Fo,"top","0"),f(Fo,"margin","0 !important"),f(Fo,"pointer-events","none"),f(No,"*",$([f(Fo,"pointer-events","auto")]))]));default:return f(Oo,zo("bh"),$([f(Fo,"position","absolute"),f(Fo,"width","100%"),f(Fo,"height","100%"),f(Fo,"left","0"),f(Fo,"top","0"),f(Fo,"margin","0 !important"),f(Fo,"z-index","0"),f(Fo,"pointer-events","none"),f(No,"*",$([f(Fo,"pointer-events","auto")]))]))}},Ko))])),f(Po,zo("s"),$([f(Fo,"position","relative"),f(Fo,"border","none"),f(Fo,"flex-shrink","0"),f(Fo,"display","flex"),f(Fo,"flex-direction","row"),f(Fo,"flex-basis","auto"),f(Fo,"resize","none"),f(Fo,"font-feature-settings","inherit"),f(Fo,"box-sizing","border-box"),f(Fo,"margin","0"),f(Fo,"padding","0"),f(Fo,"border-width","0"),f(Fo,"border-style","solid"),f(Fo,"font-size","inherit"),f(Fo,"color","inherit"),f(Fo,"font-family","inherit"),f(Fo,"line-height","1"),f(Fo,"font-weight","inherit"),f(Fo,"text-decoration","none"),f(Fo,"font-style","inherit"),f(Oo,zo("wrp"),$([f(Fo,"flex-wrap","wrap")])),f(Oo,zo("notxt"),$([f(Fo,"-moz-user-select","none"),f(Fo,"-webkit-user-select","none"),f(Fo,"-ms-user-select","none"),f(Fo,"user-select","none")])),f(Oo,zo("cptr"),$([f(Fo,"cursor","pointer")])),f(Oo,zo("ctxt"),$([f(Fo,"cursor","text")])),f(Oo,zo("ppe"),$([f(Fo,"pointer-events","none !important")])),f(Oo,zo("cpe"),$([f(Fo,"pointer-events","auto !important")])),f(Oo,zo("clr"),$([f(Fo,"opacity","0")])),f(Oo,zo("oq"),$([f(Fo,"opacity","1")])),f(Oo,zo(C("hv","clr"))+":hover",$([f(Fo,"opacity","0")])),f(Oo,zo(C("hv","oq"))+":hover",$([f(Fo,"opacity","1")])),f(Oo,zo(C("fcs","clr"))+":focus",$([f(Fo,"opacity","0")])),f(Oo,zo(C("fcs","oq"))+":focus",$([f(Fo,"opacity","1")])),f(Oo,zo(C("atv","clr"))+":active",$([f(Fo,"opacity","0")])),f(Oo,zo(C("atv","oq"))+":active",$([f(Fo,"opacity","1")])),f(Oo,zo("ts"),$([f(Fo,"transition",f(je,", ",f(tt,function(r){return r+" 160ms"},$(["transform","opacity","filter","background-color","color","font-size"]))))])),f(Oo,zo("sb"),$([f(Fo,"overflow","auto"),f(Fo,"flex-shrink","1")])),f(Oo,zo("sbx"),$([f(Fo,"overflow-x","auto"),f(Oo,zo("r"),$([f(Fo,"flex-shrink","1")]))])),f(Oo,zo("sby"),$([f(Fo,"overflow-y","auto"),f(Oo,zo("c"),$([f(Fo,"flex-shrink","1")])),f(Oo,zo("e"),$([f(Fo,"flex-shrink","1")]))])),f(Oo,zo("cp"),$([f(Fo,"overflow","hidden")])),f(Oo,zo("cpx"),$([f(Fo,"overflow-x","hidden")])),f(Oo,zo("cpy"),$([f(Fo,"overflow-y","hidden")])),f(Oo,zo("wc"),$([f(Fo,"width","auto")])),f(Oo,zo("bn"),$([f(Fo,"border-width","0")])),f(Oo,zo("bd"),$([f(Fo,"border-style","dashed")])),f(Oo,zo("bdt"),$([f(Fo,"border-style","dotted")])),f(Oo,zo("bs"),$([f(Fo,"border-style","solid")])),f(Oo,zo("t"),$([f(Fo,"white-space","pre"),f(Fo,"display","inline-block")])),f(Oo,zo("it"),$([f(Fo,"line-height","1.05")])),f(Oo,zo("e"),Go),f(Oo,zo("r"),$([f(Fo,"display","flex"),f(Fo,"flex-direction","row"),f(No,zo("s"),$([f(Fo,"flex-basis","0%"),f(Oo,zo("we"),$([f(Fo,"flex-basis","auto")]))])),f(No,zo("hf"),$([f(Fo,"align-self","stretch !important")])),f(No,zo("hfp"),$([f(Fo,"align-self","stretch !important")])),f(No,zo("wf"),$([f(Fo,"flex-grow","100000")])),f(No,zo("ctr"),$([f(Fo,"flex-grow","0"),f(Fo,"flex-basis","auto"),f(Fo,"align-self","stretch")])),f(No,"u:first-of-type.acr",$([f(Fo,"flex-grow","1")])),f(No,"s:first-of-type.accx",$([f(Fo,"flex-grow","1"),f(No,zo("cx"),$([f(Fo,"margin-left","auto !important")]))])),f(No,"s:last-of-type.accx",$([f(Fo,"flex-grow","1"),f(No,zo("cx"),$([f(Fo,"margin-right","auto !important")]))])),f(No,"s:only-of-type.accx",$([f(Fo,"flex-grow","1"),f(No,zo("cy"),$([f(Fo,"margin-top","auto !important"),f(Fo,"margin-bottom","auto !important")]))])),f(No,"s:last-of-type.accx ~ u",$([f(Fo,"flex-grow","0")])),f(No,"u:first-of-type.acr ~ s.accx",$([f(Fo,"flex-grow","0")])),Do(function(r){switch(r){case 0:return E($([f(Fo,"align-items","flex-start")]),$([f(Fo,"align-self","flex-start")]));case 1:return E($([f(Fo,"align-items","flex-end")]),$([f(Fo,"align-self","flex-end")]));case 2:return E($([f(Fo,"justify-content","flex-end")]),p);case 3:return E($([f(Fo,"justify-content","flex-start")]),p);case 4:return E($([f(Fo,"justify-content","center")]),p);default:return E($([f(Fo,"align-items","center")]),$([f(Fo,"align-self","center")]))}}),f(Oo,zo("sev"),$([f(Fo,"justify-content","space-between")]))])),f(Oo,zo("c"),$([f(Fo,"display","flex"),f(Fo,"flex-direction","column"),f(No,zo("hf"),$([f(Fo,"flex-grow","100000")])),f(No,zo("wf"),$([f(Fo,"width","100%")])),f(No,zo("wfp"),$([f(Fo,"width","100%")])),f(No,zo("wc"),$([f(Fo,"align-self","flex-start")])),f(No,"u:first-of-type.acb",$([f(Fo,"flex-grow","1")])),f(No,"s:first-of-type.accy",$([f(Fo,"flex-grow","1"),f(No,zo("cy"),$([f(Fo,"margin-top","auto !important"),f(Fo,"margin-bottom","0 !important")]))])),f(No,"s:last-of-type.accy",$([f(Fo,"flex-grow","1"),f(No,zo("cy"),$([f(Fo,"margin-bottom","auto !important"),f(Fo,"margin-top","0 !important")]))])),f(No,"s:only-of-type.accy",$([f(Fo,"flex-grow","1"),f(No,zo("cy"),$([f(Fo,"margin-top","auto !important"),f(Fo,"margin-bottom","auto !important")]))])),f(No,"s:last-of-type.accy ~ u",$([f(Fo,"flex-grow","0")])),f(No,"u:first-of-type.acb ~ s.accy",$([f(Fo,"flex-grow","0")])),Do(function(r){switch(r){case 0:return E($([f(Fo,"justify-content","flex-start")]),$([f(Fo,"margin-bottom","auto")]));case 1:return E($([f(Fo,"justify-content","flex-end")]),$([f(Fo,"margin-top","auto")]));case 2:return E($([f(Fo,"align-items","flex-end")]),$([f(Fo,"align-self","flex-end")]));case 3:return E($([f(Fo,"align-items","flex-start")]),$([f(Fo,"align-self","flex-start")]));case 4:return E($([f(Fo,"align-items","center")]),$([f(Fo,"align-self","center")]));default:return E($([f(Fo,"justify-content","center")]),p)}}),f(No,zo("ctr"),$([f(Fo,"flex-grow","0"),f(Fo,"flex-basis","auto"),f(Fo,"width","100%"),f(Fo,"align-self","stretch !important")])),f(Oo,zo("sev"),$([f(Fo,"justify-content","space-between")]))])),f(Oo,zo("g"),$([f(Fo,"display","-ms-grid"),f(No,".gp",$([f(No,zo("s"),$([f(Fo,"width","100%")]))])),f(Io,E("display","grid"),$([E("display","grid")])),(cc=function(r){switch(r){case 0:return $([f(Fo,"justify-content","flex-start")]);case 1:return $([f(Fo,"justify-content","flex-end")]);case 2:return $([f(Fo,"align-items","flex-end")]);case 3:return $([f(Fo,"align-items","flex-start")]);case 4:return $([f(Fo,"align-items","center")]);default:return $([f(Fo,"justify-content","center")])}},_o(f(St,function(r){return $([f(No,zo("s"),$([f(Oo,Xo(r),cc(r))]))])},Jo)))])),f(Oo,zo("pg"),$([f(Fo,"display","block"),f(No,zo("s:first-child"),$([f(Fo,"margin","0 !important")])),f(No,zo("s"+Xo(3)+":first-child + .s"),$([f(Fo,"margin","0 !important")])),f(No,zo("s"+Xo(2)+":first-child + .s"),$([f(Fo,"margin","0 !important")])),Do(function(r){switch(r){case 0:case 1:return E(p,p);case 2:return E(p,$([f(Fo,"float","right"),f(Oo,"::after",$([f(Fo,"content",'""'),f(Fo,"display","table"),f(Fo,"clear","both")]))]));case 3:return E(p,$([f(Fo,"float","left"),f(Oo,"::after",$([f(Fo,"content",'""'),f(Fo,"display","table"),f(Fo,"clear","both")]))]));case 4:default:return E(p,p)}})])),f(Oo,zo("iml"),$([f(Fo,"white-space","pre-wrap")])),f(Oo,zo("p"),$([f(Fo,"display","block"),f(Fo,"white-space","normal"),f(Oo,zo("hbh"),$([f(Fo,"z-index","0"),f(No,zo("bh"),$([f(Fo,"z-index","-1")]))])),f(No,zo("t"),$([f(Fo,"display","inline"),f(Fo,"white-space","normal")])),f(No,zo("e"),$([f(Fo,"display","inline"),f(Fo,"white-space","normal"),f(Oo,zo("fr"),$([f(Fo,"display","flex")])),f(Oo,zo("bh"),$([f(Fo,"display","flex")])),f(Oo,zo("a"),$([f(Fo,"display","flex")])),f(Oo,zo("b"),$([f(Fo,"display","flex")])),f(Oo,zo("or"),$([f(Fo,"display","flex")])),f(Oo,zo("ol"),$([f(Fo,"display","flex")])),f(No,zo("t"),$([f(Fo,"display","inline"),f(Fo,"white-space","normal")]))])),f(No,zo("r"),$([f(Fo,"display","inline-flex")])),f(No,zo("c"),$([f(Fo,"display","inline-flex")])),f(No,zo("g"),$([f(Fo,"display","inline-grid")])),Do(function(r){switch(r){case 0:case 1:return E(p,p);case 2:return E(p,$([f(Fo,"float","right")]));case 3:return E(p,$([f(Fo,"float","left")]));case 4:default:return E(p,p)}})])),f(Oo,".hidden",$([f(Fo,"display","none")])),f(Oo,zo("w1"),$([f(Fo,"font-weight","100")])),f(Oo,zo("w2"),$([f(Fo,"font-weight","200")])),f(Oo,zo("w3"),$([f(Fo,"font-weight","300")])),f(Oo,zo("w4"),$([f(Fo,"font-weight","400")])),f(Oo,zo("w5"),$([f(Fo,"font-weight","500")])),f(Oo,zo("w6"),$([f(Fo,"font-weight","600")])),f(Oo,zo("w7"),$([f(Fo,"font-weight","700")])),f(Oo,zo("w8"),$([f(Fo,"font-weight","800")])),f(Oo,zo("w9"),$([f(Fo,"font-weight","900")])),f(Oo,zo("i"),$([f(Fo,"font-style","italic")])),f(Oo,zo("sk"),$([f(Fo,"text-decoration","line-through")])),f(Oo,zo("u"),$([f(Fo,"text-decoration","underline"),f(Fo,"text-decoration-skip-ink","auto"),f(Fo,"text-decoration-skip","ink")])),f(Oo,C(zo("u"),zo("sk")),$([f(Fo,"text-decoration","line-through underline"),f(Fo,"text-decoration-skip-ink","auto"),f(Fo,"text-decoration-skip","ink")])),f(Oo,zo("tun"),$([f(Fo,"font-style","normal")])),f(Oo,zo("tj"),$([f(Fo,"text-align","justify")])),f(Oo,zo("tja"),$([f(Fo,"text-align","justify-all")])),f(Oo,zo("tc"),$([f(Fo,"text-align","center")])),f(Oo,zo("tr"),$([f(Fo,"text-align","right")])),f(Oo,zo("tl"),$([f(Fo,"text-align","left")])),f(Oo,".modal",$([f(Fo,"position","fixed"),f(Fo,"left","0"),f(Fo,"top","0"),f(Fo,"width","100%"),f(Fo,"height","100%"),f(Fo,"pointer-events","none")]))]))]),Qo=function(r){return $([f(Po,".v-"+r,$([f(Fo,"font-feature-settings",'"'+r+'"')])),f(Po,".v-"+r+"-off",$([f(Fo,"font-feature-settings",'"'+r+'" 0')]))])},Wo=Et($([f(tt,function(r){return f(Po,".border-"+ke(r),$([f(Fo,"border-width",ke(r)+"px")]))},f(ye,0,6)),f(tt,function(r){return f(Po,".font-size-"+ke(r),$([f(Fo,"font-size",ke(r)+"px")]))},f(ye,8,32)),f(tt,function(r){return f(Po,".p-"+ke(r),$([f(Fo,"padding",ke(r)+"px")]))},f(ye,0,24)),$([f(Po,".v-smcp",$([f(Fo,"font-variant","small-caps")])),f(Po,".v-smcp-off",$([f(Fo,"font-variant","normal")]))]),Qo("zero"),Qo("onum"),Qo("liga"),Qo("dlig"),Qo("ordn"),Qo("tnum"),Qo("afrc"),Qo("frac")])),Vo="@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {"+zo("s")+zo("r")+" > "+zo("s")+" { flex-basis: auto !important; } "+zo("s")+zo("r")+" > "+zo("s")+zo("ctr")+" { flex-basis: auto !important; }}\n\n/* General Input Reset */\ninput[type=range] {\n -webkit-appearance: none; /* Hides the slider so that custom slider can be made */\n /* width: 100%; Specific width is required for Firefox. */\n background: transparent; /* Otherwise white in Chrome */\n position:absolute;\n left:0;\n top:0;\n z-index:10;\n width: 100%;\n outline: dashed 1px;\n height: 100%;\n opacity: 0;\n}\n\n/* Hide all syling for track */\ninput[type=range]::-moz-range-track {\n background: transparent;\n cursor: pointer;\n}\ninput[type=range]::-ms-track {\n background: transparent;\n cursor: pointer;\n}\ninput[type=range]::-webkit-slider-runnable-track {\n background: transparent;\n cursor: pointer;\n}\n\n/* Thumbs */\ninput[type=range]::-webkit-slider-thumb {\n -webkit-appearance: none;\n opacity: 0.5;\n width: 80px;\n height: 80px;\n background-color: black;\n border:none;\n border-radius: 5px;\n}\ninput[type=range]::-moz-range-thumb {\n opacity: 0.5;\n width: 80px;\n height: 80px;\n background-color: black;\n border:none;\n border-radius: 5px;\n}\ninput[type=range]::-ms-thumb {\n opacity: 0.5;\n width: 80px;\n height: 80px;\n background-color: black;\n border:none;\n border-radius: 5px;\n}\ninput[type=range][orient=vertical]{\n writing-mode: bt-lr; /* IE */\n -webkit-appearance: slider-vertical; /* WebKit */\n}\n\n.explain {\n border: 6px solid rgb(174, 121, 15) !important;\n}\n.explain > .s {\n border: 4px dashed rgb(0, 151, 167) !important;\n}\n\n.ctr {\n border: none !important;\n}\n.explain > .ctr > .s {\n border: 4px dashed rgb(0, 151, 167) !important;\n}\n\n",Zo=e(function(r,n){return{aB:n,j:p,I:p,B:r}}),Yo=e(function(r,n){var t=r;return s(et,e(function(r,n){switch(r.$){case 0:return M(n,{I:f(Rn,E(r.a,r.b),n.I)});case 2:var e=r.a;return M(n,{j:f(Rn,{aB:"\n}",j:p,I:r.b,B:"@supports ("+e.a+":"+e.b+") {"+t.B},n.j)});case 4:var a=r.b;return M(n,{j:f(Rn,f(Yo,f(Zo,t.B+" + "+r.a,""),a),n.j)});case 1:var u=r.b;return M(n,{j:f(Rn,f(Yo,f(Zo,t.B+" > "+r.a,""),u),n.j)});case 3:var i=r.b;return M(n,{j:f(Rn,f(Yo,f(Zo,C(t.B,r.a),""),i),n.j)});default:var c=r.a;return M(n,{j:f(Rn,f(Yo,f(Zo,t.B,""),c),n.j)})}}),t,n)}),rf=C(Vo,(oc=C(Ho,Wo),fc=function(r){return r.I.b?r.B+"{"+Dt(f(tt,function(r){return r.a+":"+r.b+";"},r.I))+r.aB+"}":""},sc=function(r){var n=r;return C(fc(n),Dt(f(tt,sc,n.j)))},Dt(f(tt,sc,s(et,e(function(r,n){var e=r.b;return f(Rn,f(Yo,f(Zo,r.a,""),e),n)}),p,oc))))),nf=s(qc,"style",p,$([Ro(rf)])),ef=e(function(r,n){return 0>L(r,n)?r:n}),tf=function(r){switch(r.$){case 0:return"serif";case 1:return"sans-serif";case 2:return"monospace";case 3:case 4:return'"'+r.a+'"';default:return'"'+r.a.ac+'"'}},af=function(r){switch(r.$){case 0:return"smcp"===r.a;case 1:return!1;default:return"smcp"===r.a&&1===r.b}},uf=function(r){return 5===r.$&&f(We,af,r.a.cx)},cf=t(function(r,n,e){var t=n.a,a=n.b;return r?e+"\n "+t+": "+a+" !important;":e+"\n "+t+": "+a+";"}),of=e(function(r,n){return r+" {"+f(je,"",f(tt,function(r){return r.a+": "+r.b+";"},n))+"}"}),ff=t(function(r,n,e){var t=e.b;return $([f(of,"."+r+"."+n+", ."+r+" ."+n,e.a),f(of,"."+r+"."+n+"> .t, ."+r+" ."+n+" > .t",t)])}),sf=t(function(r,n,e){var t=n.a,a=n.b,u=k(r,e)?r:e+" ."+r;return f(je," ",C(s(ff,u,"cap",a),s(ff,u,"fs",t)))}),lf=e(function(r,n){var e=k(r,n)?r:n+" ."+r;return f(je," ",$([f(of,"."+e+".cap, ."+e+" .cap",$([E("line-height","1")])),f(of,"."+e+".cap> .t, ."+e+" .cap > .t",$([E("vertical-align","0"),E("line-height","1")]))]))}),bf=function(r){return r.b?ae(s(Dn,ef,r.a,r.b)):Sn},df=t(function(r,n,e){return{bU:n/r,ag:r,cy:e}}),hf=function(r){var n,e=$([r.c6,r.cT,r.dj,r.dO]),t=f(Fc,r.dj,bf(e)),a=f(Fc,r.cT,bf(f(dt,function(r){return!k(r,t)},e))),u=f(Fc,r.c6,(n=e).b?ae(s(Dn,Zn,n.a,n.b)):Sn),i=1/(u-t),c=1-u;return{c6:s(df,1/(u-a),u-a,1-u),bS:s(df,i,u-t,c)}},vf=function(r){return E($([E("display","block")]),$([E("display","inline-block"),E("line-height",ju(r.bU)),E("vertical-align",ju(r.cy)+"em"),E("font-size",ju(r.ag)+"em")]))},pf=function(r){switch(r.$){case 0:return'"'+r.a+'"';case 1:return'"'+r.a+'" 0';default:return'"'+r.a+'" '+ke(r.b)}},gf=function(r){return 5===r.$?ae(f(je,", ",f(tt,pf,r.a.cx))):Sn},mf=e(function(r,n){var a=t(function(n,e,t){if(1===n.$)return e+"{"+s(Dn,cf(!1),"",t)+"\n}";switch(n.a){case 1:switch(r.dA){case 0:return"";case 2:return e+"-hv {"+s(Dn,cf(!0),"",t)+"\n}";default:return e+"-hv:hover {"+s(Dn,cf(!1),"",t)+"\n}"}case 0:var a=s(Dn,cf(!1),"",t);return f(je,"\n",$([e+"-fs:focus {"+a+"\n}",".s:focus ~ "+e+"-fs:not(.focus) {"+a+"\n}",".s:focus "+e+"-fs {"+a+"\n}",".focusable-parent:focus ~ .s "+e+"-fs {"+a+"\n}"]));default:return e+"-act:active {"+s(Dn,cf(!1),"",t)+"\n}"}}),u=e(function(r,n){switch(r.$){case 0:return s(a,n,r.a,r.b);case 13:return s(a,n,"."+(i=r.a),$([f(To,"box-shadow",r.b)]));case 12:return s(a,n,"."+(i=r.a),$([f(To,"opacity",ju(f(Zn,0,f(ef,1,1-r.b))))]));case 2:var e=r.a;return s(a,n,".font-size-"+ke(e),$([f(To,"font-size",ke(e)+"px")]));case 1:var i=r.a,c=r.b,o=f(je,", ",f(hi,gf,c)),l=$([f(To,"font-family",f(je,", ",f(tt,tf,c))),f(To,"font-feature-settings",o),f(To,"font-variant",f(We,uf,c)?"small-caps":"normal")]);return f(je," ",$([s(a,n,"."+i,l)]));case 3:return s(a,n,"."+(P=r.a),$([f(To,r.b,F=r.c)]));case 4:return s(a,n,"."+(P=r.a),$([f(To,r.b,Co(r.c))]));case 5:var b=r.a,d=r.b,h=r.c,v=ke(h)+"px",p=ke(d)+"px",g=".ar",m=".al",y=ju(h/2)+"px",w=ju(d/2)+"px";return Dt($([s(a,n,(P="."+b)+".r > .s + .s",$([f(To,"margin-left",p)])),s(a,n,P+".wrp.r > .s",$([f(To,"margin",y+" "+w)])),s(a,n,P+".c > .s + .s",$([f(To,"margin-top",v)])),s(a,n,P+".pg > .s + .s",$([f(To,"margin-top",v)])),s(a,n,P+".pg > "+m,$([f(To,"margin-right",p)])),s(a,n,P+".pg > "+g,$([f(To,"margin-left",p)])),s(a,n,C(P,".p"),$([f(To,"line-height","calc(1em + "+ke(h)+"px)")])),s(a,n,"textarea"+P,$([f(To,"line-height","calc(1em + "+ke(h)+"px)")])),s(a,n,P+".p > "+m,$([f(To,"margin-right",p)])),s(a,n,P+".p > "+g,$([f(To,"margin-left",p)])),s(a,n,P+".p::after",$([f(To,"content","''"),f(To,"display","block"),f(To,"height","0"),f(To,"width","0"),f(To,"margin-top",ke(-1*(h/2|0))+"px")])),s(a,n,P+".p::before",$([f(To,"content","''"),f(To,"display","block"),f(To,"height","0"),f(To,"width","0"),f(To,"margin-bottom",ke(-1*(h/2|0))+"px")]))]));case 7:g=r.c;var x=r.d;return m=r.e,s(a,n,P="."+(b=r.a),$([f(To,"padding",ke(r.b)+"px "+ke(g)+"px "+ke(x)+"px "+ke(m)+"px")]));case 6:return g=r.c,x=r.d,m=r.e,s(a,n,P="."+(b=r.a),$([f(To,"border-width",ke(r.b)+"px "+ke(g)+"px "+ke(x)+"px "+ke(m)+"px")]));case 8:var k=r.a,j=t(function(r,n,e){r:for(;;)switch(e.$){case 0:return ke(e.a)+"px";case 1:var t=E(r,n);if(1===t.a.$)return 1===t.b.$?"max-content":"minmax(max-content, "+ke(a=t.b.a)+"px)";if(1===t.b.$)return"minmax("+ke(t.a.a)+"px, max-content)";var a=t.b.a;return"minmax("+ke(t.a.a)+"px, "+ke(a)+"px)";case 2:var u=e.a,i=E(r,n);return 1===i.a.$?1===i.b.$?ke(u)+"fr":"minmax(max-content, "+ke(a=i.b.a)+"px)":1===i.b.$?"minmax("+ke(i.a.a)+"px, "+ke(u)+"frfr)":(a=i.b.a,"minmax("+ke(i.a.a)+"px, "+ke(a)+"px)");case 3:var c=e.b;r=ae(e.a),n=n,e=c;continue r;default:c=e.b,r=r,n=ae(e.a),e=c;continue r}}),L=function(r){return s(j,Sn,Sn,r)},A=(L(k.ed.a),L(k.ed.b)),q="grid-template-rows: "+f(je," ",f(tt,L,k.d3))+";",S="-ms-grid-rows: "+f(je,A,f(tt,L,k.y))+";",T="-ms-grid-columns: "+f(je,A,f(tt,L,k.y))+";",M="grid-row-gap:"+L(k.ed.b)+";",z="grid-column-gap:"+L(k.ed.a)+";",B="grid-template-columns: "+f(je," ",f(tt,L,k.y))+";";return C((P=".grid-rows-"+f(je,"-",f(tt,xo,k.d3))+"-cols-"+f(je,"-",f(tt,xo,k.y))+"-space-x-"+xo(k.ed.a)+"-space-y-"+xo(k.ed.b))+"{"+T+S+"}","@supports (display:grid) {"+P+"{"+B+q+z+M+"}}");case 9:var R=r.a,_=f(je," ",$(["-ms-grid-row: "+ke(R.cl)+";","-ms-grid-row-span: "+ke(R.bU)+";","-ms-grid-column: "+ke(R.bM)+";","-ms-grid-column-span: "+ke(R.cA)+";"])),N=f(je," ",$(["grid-row: "+ke(R.cl)+" / "+ke(R.cl+R.bU)+";","grid-column: "+ke(R.bM)+" / "+ke(R.bM+R.cA)+";"]));return C((P=".grid-pos-"+ke(R.cl)+"-"+ke(R.bM)+"-"+ke(R.cA)+"-"+ke(R.bU))+"{"+_+"}","@supports (display:grid) {"+P+"{"+N+"}}");case 11:var P=r.a;return f(je," ",f(tt,function(r){return f(u,r,ae(P))},r.b));default:var O=r.a,F=function(r){switch(r.$){case 0:return Sn;case 1:var n=r.a,e=n.b,t=n.c;return ae("translate3d("+ju(n.a)+"px, "+ju(e)+"px, "+ju(t)+"px)");default:var a=r.a,u=a.b,i=a.c,c=r.b,o=c.a,f=c.b,s=c.c,l=r.c,b=l.a,d=l.b,h=l.c,v=r.d,p="translate3d("+ju(a.a)+"px, "+ju(u)+"px, "+ju(i)+"px)",g="scale3d("+ju(o)+", "+ju(f)+", "+ju(s)+")",m="rotate3d("+ju(b)+", "+ju(d)+", "+ju(h)+", "+ju(v)+"rad)";return ae(p+" "+g+" "+m)}}(O),I=E(P=jo(O),F);return I.a.$||I.b.$?"":s(a,n,"."+(b=I.a.a),$([f(To,"transform",I.b.a)]))}}),i=s(Dn,e(function(r,n){return{aP:C(n.aP,f(u,r,Sn)),av:(t=1===(e=r).$?ae(E(e.a,e.b)):Sn,1===t.$?n.av:f(Rn,t.a,n.av))};var e,t}),{aP:"",av:p},n),c=i.aP;return C(function(r){var n=function(r){return 4===r.$?ae("@import url('"+r.b+"');"):Sn},t=function(r){return f(je,"\n",f(hi,n,r.b))},a=f(tt,Hn,r),u=function(r){var n,t=r.a,u=(n=r.b,s(Dn,e(function(r,n){if(1===n.$){if(5===r.$){var e=r.a.cF;if(1===e.$)return n;var t=e.a;return ae(E(vf(hf(t).bS),vf(hf(t).c6)))}return n}return n}),Sn,n));return f(je,"",f(tt,1===u.$?lf(t):f(sf,t,u.a),a))};return C(f(je,"\n",f(tt,t,r)),f(je,"\n",f(tt,u,r)))}(i.av),c)}),$f=e(function(r,n){return s(qc,"style",p,$([Ro(f(mf,r,n))]))}),yf=a(function(r,n,e,t){return r?f(Rn,E("static-stylesheet",nf),f(Rn,E("dynamic-stylesheet",f($f,n,s(Dn,Ao,E(mt,$([Bo(n.du)])),e).b)),t)):f(Rn,E("dynamic-stylesheet",f($f,n,s(Dn,Ao,E(mt,$([Bo(n.du)])),e).b)),t)}),wf=a(function(r,n,e,t){return r?f(Rn,nf,f(Rn,f($f,n,s(Dn,Ao,E(mt,$([Bo(n.du)])),e).b),t)):f(Rn,f($f,n,s(Dn,Ao,E(mt,$([Bo(n.du)])),e).b),t)}),xf=i(function(r,n,t,a,u,i){var c=e(function(r,n){if(1===a.$){var e=a.a;return s(oo,r,n,function(){switch(u.$){case 0:return e;case 2:return l(yf,!1,u.a,u.b,e);default:return l(yf,!0,u.a,u.b,e)}}())}var t=a.a;return f(function(){switch(r){case"div":return eo;case"p":return to;default:return qc(r)}}(),n,function(){switch(u.$){case 0:return t;case 2:return l(wf,!1,u.a,u.b,t);default:return l(wf,!0,u.a,u.b,t)}}())}),o=function(){switch(n.$){case 0:return f(c,"div",t);case 1:return f(c,n.a,t);default:return s(qc,n.a,t,$([f(c,n.b,$([co("s e")]))]))}}();switch(i){case 0:return f(go,$o,r)&&!f(go,mo,r)?o:f(go,lo,r)?f(uo,$([co(f(je," ",$(["s","e","ctr","ccy","acr"])))]),$([o])):f(go,bo,r)?f(ao,$([co(f(je," ",$(["s","e","ctr","ccy","accx"])))]),$([o])):o;case 1:return f(go,po,r)&&!f(go,vo,r)?o:f(go,ho,r)?f(ao,$([co(f(je," ",$(["s","e","ctr","accy"])))]),$([o])):f(go,so,r)?f(uo,$([co(f(je," ",$(["s","e","ctr","acb"])))]),$([o])):o;default:return o}}),kf=Ro,jf=function(r){return f(eo,$([co(f(je," ",$(["s","t","wc","hc"])))]),$([kf(r)]))},Lf=function(r){return s(qc,"div",$([co(f(je," ",$(["s","t","wf","hf"])))]),$([Ro(r)]))},Af=t(function(r,n,t){var a=e(function(n,e){var t=n.a,a=n.b,u=e.a,i=e.b;switch(a.$){case 0:var c=a.a;return k(r,4),E(f(Rn,E(t,c(r)),u),i);case 1:var o=a.a;return k(r,4),E(f(Rn,E(t,f(o.dB,Zc,r)),u),Wc(i)?o.ei:C(o.ei,i));case 2:var s=a.a;return E(f(Rn,E(t,k(r,2)?Lf(s):jf(s)),u),i);default:return E(u,i)}}),u=e(function(n,e){var t=e.a,a=e.b;switch(n.$){case 0:var u=n.a;return k(r,4),E(f(Rn,u(r),t),a);case 1:var i=n.a;return k(r,4),E(f(Rn,f(i.dB,Zc,r),t),Wc(a)?i.ei:C(i.ei,a));case 2:var c=n.a;return E(f(Rn,k(r,2)?Lf(c):jf(c),t),a);default:return E(t,a)}});if(1===n.$){var i=n.a,c=s(et,a,E(p,p),i),o=c.a;if((v=Wc(h=c.b)?t.ei:C(t.ei,h)).b){var d=v;return Yc({dB:l(xf,t.P,t.S,t.K,Vc(s(no,"nearby-element-pls",o,t.L))),ei:d})}return _c(b(xf,t.P,t.S,t.K,Vc(s(no,"nearby-element-pls",o,t.L)),Zc))}var h,v,g=n.a,m=s(et,u,E(p,p),g),$=m.a;return(v=Wc(h=m.b)?t.ei:C(t.ei,h)).b?(d=v,Yc({dB:l(xf,t.P,t.S,t.K,Dc(f(ro,$,t.L))),ei:d})):_c(b(xf,t.P,t.S,t.K,Dc(f(ro,$,t.L)),Zc))}),qf=e(function(r,n){return f(Vr,function(r){return/^(on|formAction$)/i.test(r)?"data-"+r:r}(r),Yr(n))}),Ef=e(function(r,n){var e=n.a,t=n.b;return r.$?f(Kc,e,r.a|t):f(Kc,r.a|e,t)}),Sf=fo(7),Tf=fo(36),Mf=e(function(r,n){return f(Kc,r.a|n.a,r.b|n.b)}),Cf=fo(6),zf=fo(38),Bf=fo(30),Rf=fo(29),_f=e(function(r,n){return{$:2,a:r,b:n}}),Nf=function(r){return{$:1,a:r}},Pf=t(function(r,n,e){return{$:3,a:r,b:n,c:e}}),Of=function(r){return{$:1,a:r}},Ff=e(function(r,n){return{$:3,a:r,b:n}}),If=function(r){return{$:2,a:r}},Jf=e(function(r,n){return f(eo,$([co(function(){switch(r){case 0:return f(je," ",$(["nb","e","a"]));case 1:return f(je," ",$(["nb","e","b"]));case 2:return f(je," ",$(["nb","e","or"]));case 3:return f(je," ",$(["nb","e","ol"]));case 4:return f(je," ",$(["nb","e","fr"]));default:return f(je," ",$(["nb","e","bh"]))}}())]),$([function(){switch(n.$){case 3:return Ro("");case 2:return jf(n.a);case 0:return(0,n.a)(2);default:return f(n.a.dB,Zc,2)}}()]))}),Uf=t(function(r,n,e){var t=f(Jf,r,n);switch(e.$){case 0:return 5===r?Of($([t])):If($([t]));case 1:var a=e.a;return 5===r?Of(f(Rn,t,a)):f(Ff,a,$([t]));case 2:var u=e.a;return 5===r?f(Ff,$([t]),u):If(f(Rn,t,u));default:return a=e.a,u=e.b,5===r?f(Ff,f(Rn,t,a),u):f(Ff,a,f(Rn,t,u))}}),Xf=e(function(r,n){switch(n.$){case 0:return Nf(r);case 1:return f(_f,n.a,r);default:return f(_f,n.a,n.b)}}),Df=function(r){switch(r){case 0:return"ah al";case 2:return"ah ar";default:return"ah cx"}},Gf=function(r){switch(r){case 0:return"av at";case 2:return"av ab";default:return"av cy"}},Kf=a(function(r,n,e,t){return{$:2,a:r,b:n,c:e,d:t}}),Hf=function(r){return{$:1,a:r}},Qf=e(function(r,n){switch(r.$){case 0:switch(n.$){case 0:return Hf(S(a=n.a,0,0));case 1:return Hf(S(0,u=n.a,0));case 2:return Hf(S(0,0,i=n.a));case 3:return Hf(e=n.a);case 4:var e=n.a,t=n.b;return l(Kf,S(0,0,0),S(1,1,1),e,t);default:return e=n.a,l(Kf,S(0,0,0),e,S(0,0,1),0)}case 1:var a=(c=r.a).a,u=c.b,i=c.c;switch(n.$){case 0:return Hf(S(n.a,u,i));case 1:return Hf(S(a,n.a,i));case 2:return Hf(S(a,u,n.a));case 3:return Hf(e=n.a);case 4:return e=n.a,t=n.b,l(Kf,c,S(1,1,1),e,t);default:return l(Kf,c,n.a,S(0,0,1),0)}default:a=(c=r.a).a,u=c.b,i=c.c;var c,o=r.b,f=r.c;switch(t=r.d,n.$){case 0:return l(Kf,S(n.a,u,i),o,f,t);case 1:return l(Kf,S(a,n.a,i),o,f,t);case 2:return l(Kf,S(a,u,n.a),o,f,t);case 3:return l(Kf,n.a,o,f,t);case 4:return l(Kf,c,o,n.a,n.b);default:return l(Kf,c,n.a,f,t)}}}),Wf=function(r){switch(r.$){case 0:var n=ke(r.a),e="height-px-"+n;return S(Hc,e,$([s(Pf,e,"height",n+"px")]));case 1:return S(f(Ef,Tf,Hc),"hc",p);case 2:var t=r.a;return 1===t?S(f(Ef,po,Hc),"hf",p):S(f(Ef,po,Hc),"hfp height-fill-"+ke(t),$([s(Pf,"s.r > "+zo("height-fill-"+ke(t)),"flex-grow",ke(1e5*t))]));case 3:var a=r.a,u=r.b,i="min-height-"+ke(a),c=s(Pf,i,"min-height",ke(a)+"px"),o=Wf(u),l=o.b,b=o.c;return S(f(Ef,vo,o.a),i+" "+l,f(Rn,c,b));default:var d=r.a,h=(u=r.b,i="max-height-"+ke(d),c=s(Pf,i,"max-height",ke(d)+"px"),Wf(u));return l=h.b,b=h.c,S(f(Ef,vo,h.a),i+" "+l,f(Rn,c,b))}},Vf=function(r){switch(r.$){case 0:var n=r.a;return S(Hc,"we width-px-"+ke(n),$([s(Pf,"width-px-"+ke(n),"width",ke(n)+"px")]));case 1:return S(f(Ef,zf,Hc),"wc",p);case 2:var e=r.a;return 1===e?S(f(Ef,$o,Hc),"wf",p):S(f(Ef,$o,Hc),"wfp width-fill-"+ke(e),$([s(Pf,"s.r > "+zo("width-fill-"+ke(e)),"flex-grow",ke(1e5*e))]));case 3:var t=r.a,a=r.b,u="min-width-"+ke(t),i=s(Pf,u,"min-width",ke(t)+"px"),c=Vf(a),o=c.b,l=c.c;return S(f(Ef,mo,c.a),u+" "+o,f(Rn,i,l));default:var b=r.a,d=(a=r.b,u="max-width-"+ke(b),i=s(Pf,u,"max-width",ke(b)+"px"),Vf(a));return o=d.b,l=d.c,S(f(Ef,mo,d.a),u+" "+o,f(Rn,i,l))}},Zf=fo(27),Yf=e(function(r,n){if(k(r,Zf)){if(3!==n.$)return!1;switch(n.c){case"0px":case"1px":case"2px":case"3px":case"4px":case"5px":case"6px":return!0;default:return!1}}else switch(n.$){case 2:var e=n.a;return e>=8&&32>=e;case 7:var t=n.b,a=n.c,u=n.e;return k(t,n.d)&&k(t,a)&&k(t,u)&&t>=0&&24>=t;default:return!1}}),rs=o(function(r,n,e,t,a,u,i,c){r:for(;;){if(!c.b){var o=jo(t);return 1===o.$?{K:f(Rn,co(r),u),L:i,P:e,S:n,ei:a}:{K:f(Rn,co(r+" "+o.a),u),L:i,P:e,S:n,ei:f(Rn,(O=t,{$:10,a:O}),a)}}var l=c.a,b=c.b;switch(l.$){case 0:r=m=r,n=$=n,e=y=e,t=w=t,a=x=a,u=u,i=i,c=b;continue r;case 3:var d=l.b;if(f(go,v=l.a,e)){r=m=r,n=$=n,e=y=e,t=w=t,a=x=a,u=u,i=i,c=b;continue r}r=m=d+" "+r,n=$=n,e=y=f(Ef,v,e),t=w=t,a=x=a,u=u,i=i,c=b;continue r;case 1:r=m=r,n=$=n,e=y=e,t=w=t,a=x=a,u=f(Rn,l.a,u),i=i,c=b;continue r;case 4:var h=l.b;if(f(go,v=l.a,e)){r=m=r,n=$=n,e=y=e,t=w=t,a=x=a,u=u,i=i,c=b;continue r}if(f(Yf,v,h)){r=m=Lo(h)+" "+r,n=$=n,e=y=f(Ef,v,e),t=w=t,a=x=a,u=u,i=i,c=b;continue r}r=m=Lo(h)+" "+r,n=$=n,e=y=f(Ef,v,e),t=w=t,a=x=f(Rn,h,a),u=u,i=i,c=b;continue r;case 10:var v,p=l.b;r=m=r,n=$=n,e=y=f(Ef,v=l.a,e),t=w=f(Qf,t,p),a=x=a,u=u,i=i,c=b;continue r;case 7:var g=l.a;if(f(go,Cf,e)){r=m=r,n=$=n,e=y=e,t=w=t,a=x=a,u=u,i=i,c=b;continue r}switch(g.$){case 0:var m="we width-px-"+ke(A=g.a)+" "+r,$=n,y=f(Ef,Cf,e),w=t,x=f(Rn,s(Pf,"width-px-"+ke(A),"width",ke(A)+"px"),a);r=m,n=$,e=y,t=w,a=x,u=u,i=i,c=b;continue r;case 1:r=m=r+" wc",n=$=n,e=y=f(Ef,zf,f(Ef,Cf,e)),t=w=t,a=x=a,u=u,i=i,c=b;continue r;case 2:if(1===(S=g.a)){r=m=r+" wf",n=$=n,e=y=f(Ef,$o,f(Ef,Cf,e)),t=w=t,a=x=a,u=u,i=i,c=b;continue r}m=r+" wfp width-fill-"+ke(S),$=n,y=f(Ef,$o,f(Ef,Cf,e)),w=t,x=f(Rn,s(Pf,"s.r > "+zo("width-fill-"+ke(S)),"flex-grow",ke(1e5*S)),a),r=m,n=$,e=y,t=w,a=x,u=u,i=i,c=b;continue r;default:var k=Vf(g),j=k.c;m=r+" "+k.b,$=n,y=f(Mf,k.a,e),w=t,x=C(j,a),r=m,n=$,e=y,t=w,a=x,u=u,i=i,c=b;continue r}case 8:var L=l.a;if(f(go,Sf,e)){r=m=r,n=$=n,e=y=e,t=w=t,a=x=a,u=u,i=i,c=b;continue r}switch(L.$){case 0:var A,q=ke(A=L.a)+"px",E="height-px-"+q;r=m=E+" "+r,n=$=n,e=y=f(Ef,Sf,e),t=w=t,a=x=f(Rn,s(Pf,E,"height ",q),a),u=u,i=i,c=b;continue r;case 1:r=m="hc "+r,n=$=n,e=y=f(Ef,Tf,f(Ef,Sf,e)),t=w=t,a=x=a,u=u,i=i,c=b;continue r;case 2:var S;if(1===(S=L.a)){r=m="hf "+r,n=$=n,e=y=f(Ef,po,f(Ef,Sf,e)),t=w=t,a=x=a,u=u,i=i,c=b;continue r}m=r+" hfp height-fill-"+ke(S),$=n,y=f(Ef,po,f(Ef,Sf,e)),w=t,x=f(Rn,s(Pf,"s.c > "+zo("height-fill-"+ke(S)),"flex-grow",ke(1e5*S)),a),r=m,n=$,e=y,t=w,a=x,u=u,i=i,c=b;continue r;default:var T=Wf(L);j=T.c,m=r+" "+T.b,$=n,y=f(Mf,T.a,e),w=t,x=C(j,a),r=m,n=$,e=y,t=w,a=x,u=u,i=i,c=b;continue r}case 2:var M=l.a;switch(M.$){case 0:r=m=r,n=$=f(Xf,"main",n),e=y=e,t=w=t,a=x=a,u=u,i=i,c=b;continue r;case 1:r=m=r,n=$=f(Xf,"nav",n),e=y=e,t=w=t,a=x=a,u=u,i=i,c=b;continue r;case 2:r=m=r,n=$=f(Xf,"footer",n),e=y=e,t=w=t,a=x=a,u=u,i=i,c=b;continue r;case 3:r=m=r,n=$=f(Xf,"aside",n),e=y=e,t=w=t,a=x=a,u=u,i=i,c=b;continue r;case 4:var z=M.a;if(z>1){if(7>z){m=r,$=f(Xf,"h"+ke(z),n),r=m,n=$,e=y=e,t=w=t,a=x=a,u=u,i=i,c=b;continue r}r=m=r,n=$=f(Xf,"h6",n),e=y=e,t=w=t,a=x=a,u=u,i=i,c=b;continue r}r=m=r,n=$=f(Xf,"h1",n),e=y=e,t=w=t,a=x=a,u=u,i=i,c=b;continue r;case 9:var B=function(){switch(n.$){case 0:return Nf("p");case 1:return Nf(n.a);default:return f(_f,n.a,n.b)}}();r=m=r,n=$=B,e=y=e,t=w=t,a=x=a,u=u,i=i,c=b;continue r;case 8:r=m=r,n=$=n,e=y=e,t=w=t,a=x=a,u=f(Rn,f(qf,"role","button"),u),i=i,c=b;continue r;case 5:r=m=r,n=$=n,e=y=e,t=w=t,a=x=a,u=f(Rn,f(qf,"aria-label",M.a),u),i=i,c=b;continue r;case 6:r=m=r,n=$=n,e=y=e,t=w=t,a=x=a,u=f(Rn,f(qf,"aria-live","polite"),u),i=i,c=b;continue r;default:r=m=r,n=$=n,e=y=e,t=w=t,a=x=a,u=f(Rn,f(qf,"aria-live","assertive"),u),i=i,c=b;continue r}case 9:var R=l.a,_=l.b;j=function(){switch(_.$){case 3:case 2:case 0:return a;default:return C(a,_.a.ei)}}(),r=m=r,n=$=n,e=y=e,t=w=t,a=x=j,u=u,i=s(Uf,R,_,i),c=b;continue r;case 6:var N=l.a;if(f(go,Bf,e)){r=m=r,n=$=n,e=y=e,t=w=t,a=x=a,u=u,i=i,c=b;continue r}m=Df(N)+" "+r,$=n,y=function(r){switch(N){case 1:return f(Ef,bo,r);case 2:return f(Ef,lo,r);default:return r}}(f(Ef,Bf,e)),r=m,n=$,e=y,t=w=t,a=x=a,u=u,i=i,c=b;continue r;default:var P=l.a;if(f(go,Rf,e)){r=m=r,n=$=n,e=y=e,t=w=t,a=x=a,u=u,i=i,c=b;continue r}m=Gf(P)+" "+r,$=n,y=function(r){switch(P){case 1:return f(Ef,ho,r);case 2:return f(Ef,so,r);default:return r}}(f(Ef,Rf,e)),r=m,n=$,e=y,t=w=t,a=x=a,u=u,i=i,c=b;continue r}}var O}),ns={$:0},es=a(function(r,n,e,t){return s(Af,r,t,v(rs,function(r){switch(r){case 0:return"s r";case 1:return"s c";case 2:return"s e";case 3:return"s g";case 4:return"s p";default:return"s pg"}}(r),n,Hc,ns,p,p,Qc,Gn(e)))}),ts=function(r){return{$:1,a:r}},as=function(r){return ts(co(r))},us=e(function(r,n){return l(es,1,Gc,f(Rn,as("ct cl"),f(Rn,Jc(Uc),f(Rn,Xc(Uc),r))),Dc(n))}),is=e(function(r,n){return l(es,2,Gc,f(Rn,Xc(Uc),f(Rn,Jc(Uc),r)),Dc($([n])))}),cs=fo(2),os=u(function(r,n,e,t,a){return{$:7,a:r,b:n,c:e,d:t,e:a}}),fs=e(function(r,n){return{$:4,a:r,b:n}}),ss=function(r){return f(fs,cs,b(os,"p-"+ke(r),r,r,r,r))},ls=function(r){return{$:0,a:r}},bs=a(function(r,n,e,t){return{$:0,a:r,b:n,c:e,d:t}}),ds=t(function(r,n,e){return l(bs,r/255,n/255,e/255,1)}),hs=function(r){return{$:2,a:r}},vs=fo(8),ps=t(function(r,n,e){return{$:4,a:r,b:n,c:e}}),gs=function(r){var n=r.b,e=r.c,t=r.d;return ko(r.a)+"-"+ko(n)+"-"+ko(e)+"-"+ko(t)},ms=function(r){return f(fs,vs,s(ps,"bg-"+gs(r),"background-color",r))},$s=e(function(r,n){return f(Wr,r,Rc(n))}),ys=$s("disabled"),ws=fo(21),xs=e(function(r,n){return{$:3,a:r,b:n}}),ks=f(xs,ws,"cptr"),js=f(Yi,ts,function(r){return f(Bc,"click",Ft(r))}),Ls=function(r){return 4===r.$&&11===r.b.$&&!r.b.a},As={$:0},qs=function(r){return f(We,Ls,r)?As:as("focusable")},Es=e(function(r,n){return f(zc,r,{$:2,a:n})}),Ss=e(function(r,n){return ts(f(Es,"keyup",f(Ut,function(r){return E(r,!0)},f(Ru,function(e){return k(e,r)?Ft(n):Ot("Not the enter key")},f(vi,"key",ti)))))}),Ts={$:8},Ms=function(r){return{$:2,a:r}},Cs=e(function(r,n){var e=n.dT,t=n.aL;return l(es,2,Gc,f(Rn,Xc(Uc),f(Rn,Jc(Uc),f(Rn,as("ccx ccy sbt notxt"),f(Rn,ks,f(Rn,qs(r),f(Rn,Ms(Ts),f(Rn,ts(f(Vr,"tabIndex",ke(0))),function(){if(1===e.$)return f(Rn,ts(ys(!0)),r);var n=e.a;return f(Rn,js(n),f(Rn,function(r){return f(Ss,"Enter",r)}(n),r))}()))))))),Dc($([t])))}),zs=t(function(r,n,e){return{$:0,a:r,b:n,c:e}})(1),Bs=io("type"),Rs=function(r){return E(r,!0)},_s=e(function(r,n){return f(zc,r,{$:1,a:n})}),Ns=f(wc,$(["target","value"]),ti),Ps=fo(0),Os=e(function(r,n){return{$:12,a:r,b:n}}),Fs={$:2,a:1},Is=e(function(r,n){return{$:9,a:r,b:n}}),Js=a(function(r,n,e,t){return"pad-"+ke(r)+"-"+ke(n)+"-"+ke(e)+"-"+ke(t)}),Us=bs,Xs=fo(3),Ds=t(function(r,n,e){return{$:5,a:r,b:n,c:e}}),Gs=e(function(r,n){return"spacing-"+ke(r)+"-"+ke(n)}),Ks=function(r){return f(fs,Xs,s(Ds,f(Gs,r,r),r,r))},Hs=fo(28),Qs=function(r){return f(fs,Hs,s(ps,"bc-"+gs(r),"border-color",r))},Ws=fo(14),Vs=function(r){return f(fs,Ws,s(ps,"fc-"+gs(r),"color",r))},Zs=a(function(r,n,e,t){return{$:0,a:r,b:n,c:e,d:t}}),Ys=t(function(r,n,e){if(1===n.$)return l(es,1,Nf("label"),r,Dc($([e])));var t=n.a,a=l(es,2,Gc,n.b,Dc($([n.c])));switch(t){case 2:return l(es,1,Nf("label"),r,Dc($([a,e])));case 3:return l(es,1,Nf("label"),r,Dc($([e,a])));case 0:return l(es,0,Nf("label"),r,Dc($([e,a])));default:return l(es,0,Nf("label"),r,Dc($([a,e])))}}),rl=f(Yi,ts,qf("autocomplete")),nl=t(function(r,n,e){return l(bs,r,n,e,1)}),el=s(nl,136/255,138/255,133/255),tl=fo(17),al=u(function(r,n,e,t,a){return{$:6,a:r,b:n,c:e,d:t,e:a}}),ul=function(r){return f(fs,Zf,b(al,"b-"+ke(r),r,r,r,r))},il=s(nl,186/255,189/255,182/255),cl=f(e(function(r,n){return k(r,n)?f(fs,cs,b(os,"p-"+ke(r),r,r,r,r)):f(fs,cs,b(os,"p-"+ke(r)+"-"+ke(n),n,r,n,r))}),12,12),ol=s(nl,1,1,1),fl=$([cl,(3,f(fs,tl,s(Pf,"br-"+ke(3),"border-radius",ke(3)+"px"))),Qs(il),ms(ol),ul(1),Ks(3),Xc(Fs)]),sl=function(r){r:for(;4===r.$;)switch(r.b.$){case 7:case 6:case 10:return!0;default:break r}return!1},ll=$s("spellcheck"),bl=f(Yi,ts,ll),dl=fo(47),hl=a(function(r,n,e,t){var a,u=function(r){return r.a+r.c},i=1>(a=ge($(r.split(/\r\n|\r|\n/g))))?1:a,c=(i-1)*n+f(Fc,0,f(qo,u,e))+f(Fc,0,f(qo,u,t));return f(fs,dl,s(Pf,"textarea-height-"+ke(i),"height","calc("+ke(i)+"em + "+ke(c)+"px) !important"))}),vl=io("value"),pl=f(Yi,ts,vl),gl=Ms({$:6}),ml=e(function(r,n){return s(et,e(function(r,e){return n(r)?f(Rn,r,e):e}),p,function(r){return s(et,e(function(r,n){var e=n.a,t=n.b;switch(r.$){case 0:return E(e,t);case 3:case 1:case 4:return E(f(Rn,r,e),t);case 7:return f(wo,"width",t)?E(e,t):E(f(Rn,r,e),f(jt,"width",t));case 8:return f(wo,"height",t)?E(e,t):E(f(Rn,r,e),f(jt,"height",t));case 2:return f(wo,"described",t)?E(e,t):E(f(Rn,r,e),f(jt,"described",t));case 9:return E(f(Rn,r,e),t);case 6:return f(wo,"align-x",t)?E(e,t):E(f(Rn,r,e),f(jt,"align-x",t));case 5:return f(wo,"align-y",t)?E(e,t):E(f(Rn,r,e),f(jt,"align-y",t));default:return f(wo,"transform",t)?E(e,t):E(f(Rn,r,e),f(jt,"transform",t))}}),E(p,mt),r).a}(r))}),$l=function(r){r:for(;;)switch(r.$){case 1:return!0;case 4:case 3:r=r.b;continue r;default:return!1}},yl=t(function(r,n,t){var a,u,i=function(r){return 9===r.$},c=$([ts((a=t.ap,f(_s,"input",f(Ut,Rs,f(Ut,a,Ns)))))]),o=C(fl,n),d=f(ml,o,function(r){r:for(;;)switch(r.$){case 7:case 8:if(2===r.a.$)return!0;break r;case 6:case 5:return!0;case 4:switch(r.b.$){case 5:case 2:case 1:return!0;default:break r}default:break r}return!1}),h=f(dt,sl,o),v=f(ml,o,function(r){return 8===r.$&&2===r.a.$}),g=f(ml,o,function(r){return 9===r.$}),m=f(dt,f(Yi,Gt,i),o),y=function(){var n=r.x;if(n.$){var a=s(et,e(function(r,n){r:for(;;)switch(r.$){case 2:return n;case 8:var e=r.a;return 1===n.aK.$?M(n,{m:f(Rn,r,n.m),aK:ae($l(e))}):n;case 4:switch(r.b.$){case 6:var t=r.b,a=t.b,u=t.c,i=t.d,c=t.e;return 1===n.aM.$?M(n,{m:f(Rn,r,n.m),aM:ae(l(Zs,a,u,i,c))}):n;case 7:var o=r.b;return a=o.b,u=o.c,i=o.d,c=o.e,1===n.aN.$?M(n,{m:n.m,aN:ae(l(Zs,a,u,i,c))}):n;case 5:var s=r.b.c;return 1===n.aO.$?M(n,{m:f(Rn,r,n.m),aO:ae(s)}):n;default:break r}default:break r}return M(n,{m:f(Rn,r,n.m)})}),{m:p,aK:Sn,aM:Sn,aN:Sn,aO:Sn},o),u=a.aN,i=a.aK,c=a.m,d=a.aM,h=f(Fc,5,a.aO);return S("textarea",C($([bl(r.r),as("iml"),f(Fc,As,f(qo,rl,r.p)),function(){if(1===u.$)return As;var r,n,e,t,a,i=u.a,c=i.a,o=i.b,s=i.d;return t=(r={c1:f(Zn,0,i.c-(h/2|0)),dN:s,d1:o,ez:f(Zn,0,c-(h/2|0))}).c1,a=r.dN,k(n=r.ez,e=r.d1)&&k(n,t)&&k(n,a)?f(fs,cs,b(os,"p-"+ke(n),n,n,n,n)):f(fs,cs,b(os,l(Js,n,e,t,a),n,e,t,a))}(),1===i.$?As:i.a?l(hl,t.ct,h,u,d):As]),c),$([Nc(kf(t.ct))]))}var v,g=n.a;return S("input",C($([pl(t.ct),ts(Bs(g)),bl(r.r),as("it"),(v=r.p,1===v.$?As:rl(v.a))]),m),p)}(),w=y.a,x=y.b,j=y.c,L=l(es,2,Gc,f(Rn,Xc(Fs),Et($([g,v,function(){var r=t.cb;if(1===r.$)return p;var n,e,a,u=r.a,i=u.a,c=u.b;return $([(n=f(is,f(Rn,cl,C(h,C($([Vs(el),as("notxt ppe"),Qs(l(Us,0,0,0,0)),ms(l(Us,0,0,0,0)),Jc(Fs),Xc(Fs),(e=""===t.ct?1:0,a=1-f(ef,1,f(Zn,0,e)),f(fs,Ps,f(Os,"transparency-"+ko(a),a)))]),i))),c),f(Is,4,n))])}()]))),Dc($([l(es,2,Nf(w),Et($([$([qs(n),(u=t.aL,1===u.$?Ms({$:5,a:u.a}):As)]),x,c])),Dc(j))])));return s(Ys,f(Rn,f(xs,ws,"ctxt"),f(Rn,1===t.aL.$?As:Ks(5),f(Rn,gl,d))),t.aL,L)})({p:Sn,r:!1,x:{$:0,a:"text"}}),wl=e(function(r,n){return f(us,r,$([f(is,p,hs("Import style from Mapbox")),f(yl,p,{aL:f(zs,$([Ic,Xc(ls(100))]),hs("Style URL")),ap:jc,cb:Sn,ct:n.aQ}),f(yl,p,{aL:f(zs,$([Ic,Xc(ls(100))]),hs("Token")),ap:Lc,cb:Sn,ct:n.aS}),f(Cs,$([ms(s(ds,238,238,238)),ss(20)]),{aL:hs("Fetch style"),dT:ae(kc)}),f(is,p,hs("Or paste your style here:")),Oc({M:f(Fc,"",n.bz),bU:"100%",b2:"json",ap:ae(f(At,ie,zi)),cA:"100%"})]))}),xl=fo(5),kl=e(function(r,n){return{$:1,a:r,b:n}}),jl=function(r){return $(r.trim().split(/\s+/g))},Ll=e(function(r,n){return C(n,function(){switch(r.$){case 0:return"serif";case 1:return"sans-serif";case 2:return"monospace";case 3:case 4:return f(je,"-",jl(Vu(r.a)));default:return f(je,"-",jl(Vu(r.a.ac)))}}())}),Al=f(Yi,is($([(lc=$([{$:2}]),f(fs,xl,f(kl,s(Dn,Ll,"ff-",lc),lc)))])),hs),ql={$:9},El=e(function(r,n){return l(es,4,Gc,f(Rn,Ms(ql),f(Rn,Xc(Fs),f(Rn,Ks(5),r))),Dc(n))}),Sl=e(function(r,n){return f(is,r,function(){var r=E(n.a1,n.M);if(r.a.$)return r.b.$?f(us,$([ss(20),Ks(20)]),$([f(El,p,$([hs("This is a tool that helps you generate elm-mapbox styles from Mapbox Studio.")])),f(El,p,$([hs("In Studio, hit the share button. This will give you the style url and token. This tool will attempt to generate an elm-mapbox style for you. It is not perfect, but should give a nice head-start. Try to compile the file and see if you get any errors.")])),f(El,p,$([hs("There are a few common limitations that are relatively easy to fix with some grepping. For example, "),Al("Layer.lineJoin E.lineCapRound"),hs(" should be replaced by "),Al("Layer.lineJoin E.lineJoinRound"),hs(". Also "),Al("Layer.textField"),hs(" is often followed by "),Al("E.toString"),hs(", but should instead be followed by "),Al("E.toFormattedText"),hs(".")]))])):1===r.b.a.$?(e=r.b.a.a,f(El,$([Vs(s(ds,207,7,19)),ss(20)]),$([hs(e)]))):Oc({M:r.b.a.a,bU:"100%",b2:"elm",ap:Sn,cA:"50vw"});var e=r.a.a;return f(El,$([Vs(s(ds,207,7,19)),ss(20)]),$([hs(e)]))}())}),Tl={$:6,a:2},Ml=e(function(r,n){return{$:2,a:r,b:n}}),Cl=e(function(r,n){return{$:1,a:r,b:n}}),zl={cS:Sn,cZ:Sn,d8:ae({Y:3,Z:l(bs,155/255,203/255,1,1),b:E(0,0),ag:3})},Bl=e(function(r,n){switch(n.$){case 0:return(0,n.a)(2);case 1:return f(n.a.dB,r(n.a.ei),2);case 2:return jf(n.a);default:return jf("")}}),Rl=t(function(r,n,t){var a=function(r){var n,t,a,u;return{du:(u=(n=s(et,e(function(r,n){switch(r.$){case 0:return 1===n.dA.$?M(n,{dA:ae(r.a)}):n;case 1:return 1===n.du.$?M(n,{du:ae(r.a)}):n;default:return 1===n.b2.$?M(n,{b2:ae(r.a)}):n}}),{du:Sn,dA:Sn,b2:Sn},r)).du,1===u.$?zl:u.a),dA:(a=n.dA,1===a.$?1:a.a),b2:(t=n.b2,1===t.$?1:t.a)}}(r),u=2===a.b2?Ml(a):Cl(a);return f(Bl,u,l(es,2,Gc,n,Dc($([t]))))}),_l=fo(4),Nl={$:1},Pl=function(r){return{$:3,a:r}},Ol=function(){var r=$([Pl("Open Sans"),Pl("Helvetica"),Pl("Verdana"),Nl]);return $([f(fs,vs,s(ps,"bg-color-"+gs(l(bs,1,1,1,0)),"background-color",l(bs,1,1,1,0))),f(fs,Ws,s(ps,"font-color-"+gs(l(bs,0,0,0,1)),"color",l(bs,0,0,0,1))),f(fs,_l,(20,{$:2,a:20})),f(fs,xl,f(kl,s(Dn,Ll,"font-",r),r))])}(),Fl=t(function(r,n,e){return s(Rl,r.b5,f(Rn,as(f(je," ",$(["ui","s","e"]))),C(Ol,n)),e)})({b5:p}),Il=Vr("rel"),Jl=e(function(r,n){var e=n.eE,t=n.aL;return l(es,2,Nf("a"),f(Rn,ts(function(r){return f(io,"href",/^javascript:/i.test((n=r).replace(/\s/g,""))?"":n);var n}(e)),f(Rn,ts(Il("noopener noreferrer")),f(Rn,Xc(Uc),f(Rn,Jc(Uc),f(Rn,as("ccx ccy"),r))))),Dc($([t])))}),Ul=e(function(r,n){return l(es,0,Gc,f(Rn,as("cl ccy"),f(Rn,Xc(Uc),f(Rn,Jc(Uc),r))),Dc(n))}),Xl=e(function(r,n){return f(fs,Zf,b(al,"b-"+ke(r)+"-"+ke(n),n,r,n,r))}),Dl=function(r){return f(Fl,$([Xc(Fs),Jc(Fs)]),f(us,$([Xc(Fs),Jc(Fs),Ks(20)]),$([f(Ul,$([Xc(Fs),Jc(ls(60)),ms(s(ds,238,238,238)),ss(20),Qs(s(ds,96,181,204)),({c1:2,dN:0,d1:0,ez:0},2,0,0,0,k(0,2)&&k(0,0)?k(0,0)?ul(0):f(Xl,0,0):f(fs,Zf,b(al,"b-"+ke(0)+"-"+ke(0)+"-"+ke(2)+"-"+ke(0),0,0,2,0)))]),$([f(is,p,hs("Mapbox to Elm Style Converter")),f(Jl,$([Vs(s(ds,18,133,207)),Tl]),{aL:hs("GitHub"),eE:"https://github.com/gampleman/elm-mapbox/tree/master/style-generator"})])),f(Ul,$([Xc(Fs),Jc(Fs)]),$([f(wl,$([Jc(Fs),Xc(Fs),Ks(20),ss(20)]),r),f(Sl,$([Jc(Fs),Xc(Fs)]),r)]))])))};bc={Main:{init:kn({dG:function(){return E({M:Sn,a1:Sn,bz:Sn,aQ:"",aS:""},Me)},ej:function(){return Be(Ce)},eD:xc,eG:function(r){return{cX:$([Dl(r)]),ey:"Style Generator"}}})(Ft(0))(0)}},r.Elm?function r(n,e){for(var t in e)t in n?"init"==t?R(6):r(n[t],e[t]):n[t]=e[t]}(r.Elm,bc):r.Elm=bc}(this); +},{}],"FRly":[function(require,module,exports) { +"use strict";exports.byteLength=u,exports.toByteArray=i,exports.fromByteArray=d;for(var r=[],t=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)r[o]=n[o],t[n.charCodeAt(o)]=o;function h(r){var t=r.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");return-1===e&&(e=t),[e,e===t?0:4-e%4]}function u(r){var t=h(r),e=t[0],n=t[1];return 3*(e+n)/4-n}function c(r,t,e){return 3*(t+e)/4-e}function i(r){for(var n,o=h(r),a=o[0],u=o[1],i=new e(c(r,a,u)),f=0,A=u>0?a-4:a,d=0;d<A;d+=4)n=t[r.charCodeAt(d)]<<18|t[r.charCodeAt(d+1)]<<12|t[r.charCodeAt(d+2)]<<6|t[r.charCodeAt(d+3)],i[f++]=n>>16&255,i[f++]=n>>8&255,i[f++]=255&n;return 2===u&&(n=t[r.charCodeAt(d)]<<2|t[r.charCodeAt(d+1)]>>4,i[f++]=255&n),1===u&&(n=t[r.charCodeAt(d)]<<10|t[r.charCodeAt(d+1)]<<4|t[r.charCodeAt(d+2)]>>2,i[f++]=n>>8&255,i[f++]=255&n),i}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function A(r,t,e){for(var n,o=[],a=t;a<e;a+=3)n=(r[a]<<16&16711680)+(r[a+1]<<8&65280)+(255&r[a+2]),o.push(f(n));return o.join("")}function d(t){for(var e,n=t.length,o=n%3,a=[],h=0,u=n-o;h<u;h+=16383)a.push(A(t,h,h+16383>u?u:h+16383));return 1===o?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),a.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63; +},{}],"Quj6":[function(require,module,exports) { +exports.read=function(a,o,t,r,h){var M,p,w=8*h-r-1,f=(1<<w)-1,e=f>>1,i=-7,N=t?h-1:0,n=t?-1:1,s=a[o+N];for(N+=n,M=s&(1<<-i)-1,s>>=-i,i+=w;i>0;M=256*M+a[o+N],N+=n,i-=8);for(p=M&(1<<-i)-1,M>>=-i,i+=r;i>0;p=256*p+a[o+N],N+=n,i-=8);if(0===M)M=1-e;else{if(M===f)return p?NaN:1/0*(s?-1:1);p+=Math.pow(2,r),M-=e}return(s?-1:1)*p*Math.pow(2,M-r)},exports.write=function(a,o,t,r,h,M){var p,w,f,e=8*M-h-1,i=(1<<e)-1,N=i>>1,n=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,s=r?0:M-1,u=r?1:-1,l=o<0||0===o&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(w=isNaN(o)?1:0,p=i):(p=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-p))<1&&(p--,f*=2),(o+=p+N>=1?n/f:n*Math.pow(2,1-N))*f>=2&&(p++,f/=2),p+N>=i?(w=0,p=i):p+N>=1?(w=(o*f-1)*Math.pow(2,h),p+=N):(w=o*Math.pow(2,N-1)*Math.pow(2,h),p=0));h>=8;a[t+s]=255&w,s+=u,w/=256,h-=8);for(p=p<<h|w,e+=h;e>0;a[t+s]=255&p,s+=u,p/=256,e-=8);a[t+s-u]|=128*l}; +},{}],"aq/z":[function(require,module,exports) { +var r={}.toString;module.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}; +},{}],"aMB2":[function(require,module,exports) { + +var global = arguments[3]; +var t=arguments[3],r=require("base64-js"),e=require("ieee754"),n=require("isarray");function i(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(r){return!1}}function o(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,r){if(o()<r)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=f.prototype:(null===t&&(t=new f(r)),t.length=r),t}function f(t,r,e){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(t,r,e);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return s(this,t,r,e)}function s(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?g(t,r,e,n):"string"==typeof r?l(t,r,e):y(t,r)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function a(t,r,e,n){return h(r),r<=0?u(t,r):void 0!==e?"string"==typeof n?u(t,r).fill(e,n):u(t,r).fill(e):u(t,r)}function c(t,r){if(h(r),t=u(t,r<0?0:0|w(r)),!f.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}function l(t,r,e){if("string"==typeof e&&""!==e||(e="utf8"),!f.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|v(r,e),i=(t=u(t,n)).write(r,e);return i!==n&&(t=t.slice(0,i)),t}function p(t,r){var e=r.length<0?0:0|w(r.length);t=u(t,e);for(var n=0;n<e;n+=1)t[n]=255&r[n];return t}function g(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return r=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n),f.TYPED_ARRAY_SUPPORT?(t=r).__proto__=f.prototype:t=p(t,r),t}function y(t,r){if(f.isBuffer(r)){var e=0|w(r.length);return 0===(t=u(t,e)).length?t:(r.copy(t,0,0,e),t)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||W(r.length)?u(t,0):p(t,r);if("Buffer"===r.type&&n(r.data))return p(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function w(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function d(t){return+t!=t&&(t=0),f.alloc(+t)}function v(t,r){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return K(t).length;default:if(n)return $(t).length;r=(""+r).toLowerCase(),n=!0}}function E(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,r,e);case"utf8":case"utf-8":return Y(this,r,e);case"ascii":return L(this,r,e);case"latin1":case"binary":return D(this,r,e);case"base64":return S(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function R(t,r,e,n,i){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=f.from(r,n)),f.isBuffer(r))return 0===r.length?-1:_(t,r,e,n,i);if("number"==typeof r)return r&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):_(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,r,e,n,i){var o,u=1,f=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;u=2,f/=2,s/=2,e/=2}function h(t,r){return 1===u?t[r]:t.readUInt16BE(r*u)}if(i){var a=-1;for(o=e;o<f;o++)if(h(t,o)===h(r,-1===a?0:o-a)){if(-1===a&&(a=o),o-a+1===s)return a*u}else-1!==a&&(o-=o-a),a=-1}else for(e+s>f&&(e=f-s),o=e;o>=0;o--){for(var c=!0,l=0;l<s;l++)if(h(t,o+l)!==h(r,l)){c=!1;break}if(c)return o}return-1}function A(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n))>i&&(n=i):n=i;var o=r.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var u=0;u<n;++u){var f=parseInt(r.substr(2*u,2),16);if(isNaN(f))return u;t[e+u]=f}return u}function m(t,r,e,n){return Q($(r,t.length-e),t,e,n)}function P(t,r,e,n){return Q(G(r),t,e,n)}function T(t,r,e,n){return P(t,r,e,n)}function B(t,r,e,n){return Q(K(r),t,e,n)}function U(t,r,e,n){return Q(H(r,t.length-e),t,e,n)}function S(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function Y(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o,u,f,s,h=t[i],a=null,c=h>239?4:h>223?3:h>191?2:1;if(i+c<=e)switch(c){case 1:h<128&&(a=h);break;case 2:128==(192&(o=t[i+1]))&&(s=(31&h)<<6|63&o)>127&&(a=s);break;case 3:o=t[i+1],u=t[i+2],128==(192&o)&&128==(192&u)&&(s=(15&h)<<12|(63&o)<<6|63&u)>2047&&(s<55296||s>57343)&&(a=s);break;case 4:o=t[i+1],u=t[i+2],f=t[i+3],128==(192&o)&&128==(192&u)&&128==(192&f)&&(s=(15&h)<<18|(63&o)<<12|(63&u)<<6|63&f)>65535&&s<1114112&&(a=s)}null===a?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=c}return O(n)}exports.Buffer=f,exports.SlowBuffer=d,exports.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:i(),exports.kMaxLength=o(),f.poolSize=8192,f._augment=function(t){return t.__proto__=f.prototype,t},f.from=function(t,r,e){return s(null,t,r,e)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(t,r,e){return a(null,t,r,e)},f.allocUnsafe=function(t){return c(null,t)},f.allocUnsafeSlow=function(t){return c(null,t)},f.isBuffer=function(t){return!(null==t||!t._isBuffer)},f.compare=function(t,r){if(!f.isBuffer(t)||!f.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,n=r.length,i=0,o=Math.min(e,n);i<o;++i)if(t[i]!==r[i]){e=t[i],n=r[i];break}return e<n?-1:n<e?1:0},f.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(t,r){if(!n(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);var e;if(void 0===r)for(r=0,e=0;e<t.length;++e)r+=t[e].length;var i=f.allocUnsafe(r),o=0;for(e=0;e<t.length;++e){var u=t[e];if(!f.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(i,o),o+=u.length}return i},f.byteLength=v,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)b(this,r,r+1);return this},f.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)b(this,r,r+3),b(this,r+1,r+2);return this},f.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)b(this,r,r+7),b(this,r+1,r+6),b(this,r+2,r+5),b(this,r+3,r+4);return this},f.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?Y(this,0,t):E.apply(this,arguments)},f.prototype.equals=function(t){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===f.compare(this,t)},f.prototype.inspect=function(){var t="",r=exports.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},f.prototype.compare=function(t,r,e,n,i){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),r<0||e>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&r>=e)return 0;if(n>=i)return-1;if(r>=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),u=(e>>>=0)-(r>>>=0),s=Math.min(o,u),h=this.slice(n,i),a=t.slice(r,e),c=0;c<s;++c)if(h[c]!==a[c]){o=h[c],u=a[c];break}return o<u?-1:u<o?1:0},f.prototype.includes=function(t,r,e){return-1!==this.indexOf(t,r,e)},f.prototype.indexOf=function(t,r,e){return R(this,t,r,e,!0)},f.prototype.lastIndexOf=function(t,r,e){return R(this,t,r,e,!1)},f.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(e)?(e|=0,void 0===n&&(n="utf8")):(n=e,e=void 0)}var i=this.length-r;if((void 0===e||e>i)&&(e=i),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return A(this,t,r,e);case"utf8":case"utf-8":return m(this,t,r,e);case"ascii":return P(this,t,r,e);case"latin1":case"binary":return T(this,t,r,e);case"base64":return B(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r,e);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function O(t){var r=t.length;if(r<=I)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=I));return e}function L(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(127&t[i]);return n}function D(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function x(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=Z(t[o]);return i}function C(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function M(t,r,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}function k(t,r,e,n,i,o){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}function N(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);i<o;++i)t[e+i]=(r&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function z(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);i<o;++i)t[e+i]=r>>>8*(n?i:3-i)&255}function F(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function j(t,r,n,i,o){return o||F(t,r,n,4,3.4028234663852886e38,-3.4028234663852886e38),e.write(t,r,n,i,23,4),n+4}function q(t,r,n,i,o){return o||F(t,r,n,8,1.7976931348623157e308,-1.7976931348623157e308),e.write(t,r,n,i,52,8),n+8}f.prototype.slice=function(t,r){var e,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(r=void 0===r?n:~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),r<t&&(r=t),f.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,r)).__proto__=f.prototype;else{var i=r-t;e=new f(i,void 0);for(var o=0;o<i;++o)e[o]=this[o+t]}return e},f.prototype.readUIntLE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n},f.prototype.readUIntBE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t+--r],i=1;r>0&&(i*=256);)n+=this[t+--r]*i;return n},f.prototype.readUInt8=function(t,r){return r||M(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,r){return r||M(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,r){return r||M(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,r){return r||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUInt32BE=function(t,r){return r||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*r)),n},f.prototype.readIntBE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*r)),o},f.prototype.readInt8=function(t,r){return r||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,r){r||M(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},f.prototype.readInt16BE=function(t,r){r||M(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},f.prototype.readInt32LE=function(t,r){return r||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,r){return r||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,r){return r||M(t,4,this.length),e.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,r){return r||M(t,4,this.length),e.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,r){return r||M(t,8,this.length),e.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,r){return r||M(t,8,this.length),e.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||k(this,t,r,e,Math.pow(2,8*e)-1,0);var i=1,o=0;for(this[r]=255&t;++o<e&&(i*=256);)this[r+o]=t/i&255;return r+e},f.prototype.writeUIntBE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||k(this,t,r,e,Math.pow(2,8*e)-1,0);var i=e-1,o=1;for(this[r+i]=255&t;--i>=0&&(o*=256);)this[r+i]=t/o&255;return r+e},f.prototype.writeUInt8=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,1,255,0),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},f.prototype.writeUInt16LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):N(this,t,r,!0),r+2},f.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):N(this,t,r,!1),r+2},f.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):z(this,t,r,!0),r+4},f.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):z(this,t,r,!1),r+4},f.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);k(this,t,r,e,i-1,-i)}var o=0,u=1,f=0;for(this[r]=255&t;++o<e&&(u*=256);)t<0&&0===f&&0!==this[r+o-1]&&(f=1),this[r+o]=(t/u>>0)-f&255;return r+e},f.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);k(this,t,r,e,i-1,-i)}var o=e-1,u=1,f=0;for(this[r+o]=255&t;--o>=0&&(u*=256);)t<0&&0===f&&0!==this[r+o+1]&&(f=1),this[r+o]=(t/u>>0)-f&255;return r+e},f.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,1,127,-128),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},f.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):N(this,t,r,!0),r+2},f.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):N(this,t,r,!1),r+2},f.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):z(this,t,r,!0),r+4},f.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):z(this,t,r,!1),r+4},f.prototype.writeFloatLE=function(t,r,e){return j(this,t,r,!0,e)},f.prototype.writeFloatBE=function(t,r,e){return j(this,t,r,!1,e)},f.prototype.writeDoubleLE=function(t,r,e){return q(this,t,r,!0,e)},f.prototype.writeDoubleBE=function(t,r,e){return q(this,t,r,!1,e)},f.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var i,o=n-e;if(this===t&&e<r&&r<n)for(i=o-1;i>=0;--i)t[i+r]=this[i+e];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+o),r);return o},f.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<e)throw new RangeError("Out of range index");if(e<=r)return this;var o;if(r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o<e;++o)this[o]=t;else{var u=f.isBuffer(t)?t:$(new f(t,n).toString()),s=u.length;for(o=0;o<e-r;++o)this[o+r]=u[o%s]}return this};var V=/[^+\/0-9A-Za-z-_]/g;function X(t){if((t=J(t).replace(V,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}function J(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Z(t){return t<16?"0"+t.toString(16):t.toString(16)}function $(t,r){var e;r=r||1/0;for(var n=t.length,i=null,o=[],u=0;u<n;++u){if((e=t.charCodeAt(u))>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function G(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}function H(t,r){for(var e,n,i,o=[],u=0;u<t.length&&!((r-=2)<0);++u)n=(e=t.charCodeAt(u))>>8,i=e%256,o.push(i),o.push(n);return o}function K(t){return r.toByteArray(X(t))}function Q(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function W(t){return t!=t} +},{"base64-js":"FRly","ieee754":"Quj6","isarray":"aq/z","buffer":"aMB2"}],"WCBj":[function(require,module,exports) { +var define; +var global = arguments[3]; +var Buffer = require("buffer").Buffer; +var e,t=arguments[3],r=require("buffer").Buffer;!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof e&&e.amd?e(["exports"],r):r(t.mapboxGlStyleSpecification={})}(this,function(e){"use strict";var n={$version:8,$root:{version:{required:!0,type:"enum",values:[8],doc:"Style specification version number. Must be 8.",example:8},name:{type:"string",doc:"A human-readable name for the style.",example:"Bright"},metadata:{type:"*",doc:"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'mapbox:'."},center:{type:"array",value:"number",doc:"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:[-73.9749,40.7736]},zoom:{type:"number",doc:"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:12.5},bearing:{type:"number",default:0,period:360,units:"degrees",doc:'Default bearing, in degrees. The bearing is the compass direction that is "up"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by other means (e.g. map options or user interaction).',example:29},pitch:{type:"number",default:0,units:"degrees",doc:"Default pitch, in degrees. Zero is perpendicular to the surface, for a look straight down at the map, while a greater value like 60 looks ahead towards the horizon. The style pitch will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:50},light:{type:"light",doc:"The global light source.",example:{anchor:"viewport",color:"white",intensity:.4}},sources:{required:!0,type:"sources",doc:"Data source specifications.",example:{"mapbox-streets":{type:"vector",url:"mapbox://mapbox.mapbox-streets-v6"}}},sprite:{type:"string",doc:"A base URL for retrieving the sprite image and metadata. The extensions `.png`, `.json` and scale factor `@2x.png` will be automatically appended. This property is required if any layer uses the `background-pattern`, `fill-pattern`, `line-pattern`, `fill-extrusion-pattern`, or `icon-image` properties. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).",example:"mapbox://sprites/mapbox/bright-v8"},glyphs:{type:"string",doc:"A URL template for loading signed-distance-field glyph sets in PBF format. The URL must include `{fontstack}` and `{range}` tokens. This property is required if any layer uses the `text-field` layout property. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).",example:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},transition:{type:"transition",doc:"A global transition definition to use as a default across properties, to be used for timing transitions between one value and the next when no property-specific transition is set. Collision-based symbol fading is controlled independently of the style's `transition` property.",example:{duration:300,delay:0}},layers:{required:!0,type:"array",value:"layer",doc:"Layers will be drawn in the order of this array.",example:[{id:"water",source:"mapbox-streets","source-layer":"water",type:"fill",paint:{"fill-color":"#00ffff"}}]}},sources:{"*":{type:"source",doc:"Specification of a data source. For vector and raster sources, either TileJSON or a URL to a TileJSON must be provided. For image and video sources, a URL must be provided. For GeoJSON sources, a URL or inline GeoJSON must be provided."}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{doc:"A vector tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},"*":{type:"*",doc:"Other keys to configure the data source."}},source_raster:{type:{required:!0,type:"enum",values:{raster:{doc:"A raster tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},"*":{type:"*",doc:"Other keys to configure the data source."}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{doc:"A RGB-encoded raster DEM source"}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},encoding:{type:"enum",values:{terrarium:{doc:"Terrarium format PNG tiles. See https://aws.amazon.com/es/public-datasets/terrain/ for more info."},mapbox:{doc:"Mapbox Terrain RGB tiles. See https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb for more info."}},default:"mapbox",doc:"The encoding used by this source. Mapbox Terrain RGB is used by default"},"*":{type:"*",doc:"Other keys to configure the data source."}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{doc:"A GeoJSON data source."}},doc:"The data type of the GeoJSON source."},data:{type:"*",doc:"A URL to a GeoJSON file, or inline GeoJSON."},maxzoom:{type:"number",default:18,doc:"Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels)."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},buffer:{type:"number",default:128,maximum:512,minimum:0,doc:"Size of the tile buffer on each side. A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself. Larger values produce fewer rendering artifacts near tile edges and slower performance."},tolerance:{type:"number",default:.375,doc:"Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance)."},cluster:{type:"boolean",default:!1,doc:"If the data is a collection of point features, setting this to true clusters the points by radius into groups. Cluster groups become new `Point` features in the source with additional properties:\n * `cluster` Is `true` if the point is a cluster \n * `cluster_id` A unqiue id for the cluster to be used in conjunction with the [cluster inspection methods](https://www.mapbox.com/mapbox-gl-js/api/#geojsonsource#getclusterexpansionzoom)\n * `point_count` Number of original points grouped into this cluster\n * `point_count_abbreviated` An abbreviated point count"},clusterRadius:{type:"number",default:50,minimum:0,doc:"Radius of each cluster if clustering is enabled. A value of 512 indicates a radius equal to the width of a tile."},clusterMaxZoom:{type:"number",doc:"Max zoom on which to cluster points if clustering is enabled. Defaults to one zoom less than maxzoom (so that last zoom features are not clustered)."},lineMetrics:{type:"boolean",default:!1,doc:"Whether to calculate line distance metrics. This is required for line layers that specify `line-gradient` values."},generateId:{type:"boolean",default:!1,doc:"Whether to generate ids for the geojson features. When enabled, the `feature.id` property will be auto assigned based on its index in the `features` array, over-writing any previous values."}},source_video:{type:{required:!0,type:"enum",values:{video:{doc:"A video data source."}},doc:"The data type of the video source."},urls:{required:!0,type:"array",value:"string",doc:"URLs to video content in order of preferred format."},coordinates:{required:!0,doc:"Corners of video specified in longitude, latitude pairs.",type:"array",length:4,value:{type:"array",length:2,value:"number",doc:"A single longitude, latitude pair."}}},source_image:{type:{required:!0,type:"enum",values:{image:{doc:"An image data source."}},doc:"The data type of the image source."},url:{required:!0,type:"string",doc:"URL that points to an image."},coordinates:{required:!0,doc:"Corners of image specified in longitude, latitude pairs.",type:"array",length:4,value:{type:"array",length:2,value:"number",doc:"A single longitude, latitude pair."}}},layer:{id:{type:"string",doc:"Unique layer name.",required:!0},type:{type:"enum",values:{fill:{doc:"A filled polygon with an optional stroked border.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},line:{doc:"A stroked line.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},symbol:{doc:"An icon or a text label.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},circle:{doc:"A filled circle.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},heatmap:{doc:"A heatmap.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"fill-extrusion":{doc:"An extruded (3D) polygon.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},raster:{doc:"Raster map textures such as satellite imagery.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},hillshade:{doc:"Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},background:{doc:"The background color or pattern of the map.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}}},doc:"Rendering type of this layer.",required:!0},metadata:{type:"*",doc:"Arbitrary properties useful to track with the layer, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'mapbox:'."},source:{type:"string",doc:"Name of a source description to be used for this layer. Required for all layer types except `background`."},"source-layer":{type:"string",doc:"Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources."},minzoom:{type:"number",minimum:0,maximum:24,doc:"The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden."},maxzoom:{type:"number",minimum:0,maximum:24,doc:"The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden."},filter:{type:"filter",doc:"A expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The `feature-state` expression is not supported in filter expressions."},layout:{type:"layout",doc:"Layout properties for the layer."},paint:{type:"paint",doc:"Default paint properties for this layer."}},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:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_fill:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_circle:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},"property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{doc:"A cap with a squared-off end which is drawn to the exact endpoint of the line."},round:{doc:"A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line."},square:{doc:"A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width."}},default:"butt",doc:"The display of line endings.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{doc:"A join with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width."},round:{doc:"A join with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line."},miter:{doc:"A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet."}},default:"miter",doc:"The display of lines when joining.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,doc:"Used to automatically convert miter joins to bevel joins for sharp angles.",requires:[{"line-join":"miter"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,doc:"Used to automatically convert round joins to miter joins for shallow angles.",requires:[{"line-join":"round"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},"property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{doc:"The label is placed at the point where the geometry is located."},line:{doc:"The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries."},"line-center":{doc:"The label is placed at the center of the line of the geometry. Can only be used on `LineString` and `Polygon` geometries. Note that a single feature in a vector tile may contain multiple line geometries."}},default:"point",doc:"Label placement relative to its geometry.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`line-center` value":{js:"0.47.0",android:"6.4.0",ios:"4.3.0",macos:"0.10.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",doc:"Distance between two symbol anchors.",requires:[{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,doc:"If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-z-order":{type:"enum",values:{"viewport-y":{doc:"Symbols will be sorted by their y-position relative to the viewport."},source:{doc:"Symbols will be rendered in the same order as the source data with no sorting applied."}},default:"viewport-y",doc:"Controls the order in which overlapping symbols in the same layer are rendered","sdk-support":{"basic functionality":{js:"0.49.0",android:"6.6.0",ios:"4.5.0",macos:"0.12.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,doc:"If true, the icon will be visible even if it collides with other previously drawn symbols.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,doc:"If true, other symbols can be visible even if they collide with the icon.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,doc:"If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.",requires:["icon-image","text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{doc:"When `symbol-placement` is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line` or `line-center`, aligns icon x-axes with the line."},viewport:{doc:"Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},auto:{doc:"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`."}},default:"auto",doc:"In combination with `symbol-placement`, determines the rotation behavior of icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",doc:"Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `icon-size`. 1 is the original size; 3 triples the size of the image.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{doc:"The icon is displayed at its intrinsic aspect ratio."},width:{doc:"The icon is scaled in the x-dimension to fit the width of the text."},height:{doc:"The icon is scaled in the y-dimension to fit the height of the text."},both:{doc:"The icon is scaled in both x- and y-dimensions."}},default:"none",doc:"Scales the icon to fit around the associated text.",requires:["icon-image","text-field"],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"data-driven styling":{}},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",doc:"Size of the additional area added to dimensions determined by `icon-text-fit`, in clockwise order: top, right, bottom, left.",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"string",doc:"Name of image in sprite to use for drawing an image background.",tokens:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",doc:"Rotates the icon clockwise.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.21.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",doc:"Size of the additional area around the icon bounding box used for detecting symbol collisions.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,doc:"If true, the icon may be flipped to prevent it from being rendered upside-down.",requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],doc:"Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of `icon-size` to obtain the final offset in pixels. When combined with `icon-rotate` the offset will be as if the rotated direction was up.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{doc:"The center of the icon is placed closest to the anchor."},left:{doc:"The left side of the icon is placed closest to the anchor."},right:{doc:"The right side of the icon is placed closest to the anchor."},top:{doc:"The top of the icon is placed closest to the anchor."},bottom:{doc:"The bottom of the icon is placed closest to the anchor."},"top-left":{doc:"The top left corner of the icon is placed closest to the anchor."},"top-right":{doc:"The top right corner of the icon is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the icon is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the icon is placed closest to the anchor."}},default:"center",doc:"Part of the icon placed closest to the anchor.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{doc:"The icon is aligned to the plane of the map."},viewport:{doc:"The icon is aligned to the plane of the viewport."},auto:{doc:"Automatically matches the value of `icon-rotation-alignment`."}},default:"auto",doc:"Orientation of icon when map is pitched.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{doc:"The text is aligned to the plane of the map."},viewport:{doc:"The text is aligned to the plane of the viewport."},auto:{doc:"Automatically matches the value of `text-rotation-alignment`."}},default:"auto",doc:"Orientation of text when map is pitched.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{doc:"When `symbol-placement` is set to `point`, aligns text east-west. When `symbol-placement` is set to `line` or `line-center`, aligns text x-axes with the line."},viewport:{doc:"Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},auto:{doc:"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`."}},default:"auto",doc:"In combination with `symbol-placement`, determines the rotation behavior of the individual glyphs forming the text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,doc:"Value to use for a text label. If a plain `string` is provided, it will be treated as a `formatted` with default/inherited formatting options.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.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"],doc:"Font stack to use for displaying text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",doc:"Font size.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",doc:"The maximum line width for text wrapping.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",doc:"Text leading value for multi-line text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",doc:"Text tracking amount.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{left:{doc:"The text is aligned to the left."},center:{doc:"The text is centered."},right:{doc:"The text is aligned to the right."}},default:"center",doc:"Text justification options.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{doc:"The center of the text is placed closest to the anchor."},left:{doc:"The left side of the text is placed closest to the anchor."},right:{doc:"The right side of the text is placed closest to the anchor."},top:{doc:"The top of the text is placed closest to the anchor."},bottom:{doc:"The bottom of the text is placed closest to the anchor."},"top-left":{doc:"The top left corner of the text is placed closest to the anchor."},"top-right":{doc:"The top right corner of the text is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the text is placed closest to the anchor."}},default:"center",doc:"Part of the text placed closest to the anchor.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",doc:"Maximum angle change between adjacent characters.",requires:["text-field",{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",doc:"Rotates the text clockwise.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",doc:"Size of the additional area around the text bounding box used for detecting symbol collisions.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,doc:"If true, the text may be flipped vertically to prevent it from being rendered upside-down.",requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{doc:"The text is not altered."},uppercase:{doc:"Forces all letters to be displayed in uppercase."},lowercase:{doc:"Forces all letters to be displayed in lowercase."}},default:"none",doc:"Specifies how to capitalize text, similar to the CSS `text-transform` property.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",doc:"Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up.",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,doc:"If true, the text will be visible even if it collides with other previously drawn symbols.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,doc:"If true, other symbols can be visible even if they collide with the text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,doc:"If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.",requires:["text-field","icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},"property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},"property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},"property-type":"constant"}},filter:{type:"array",value:"*",doc:"A filter selects specific features from a layer."},filter_operator:{type:"enum",values:{"==":{doc:'`["==", key, value]` equality: `feature[key] = value`'},"!=":{doc:'`["!=", key, value]` inequality: `feature[key] ≠ value`'},">":{doc:'`[">", key, value]` greater than: `feature[key] > value`'},">=":{doc:'`[">=", key, value]` greater than or equal: `feature[key] ≥ value`'},"<":{doc:'`["<", key, value]` less than: `feature[key] < value`'},"<=":{doc:'`["<=", key, value]` less than or equal: `feature[key] ≤ value`'},in:{doc:'`["in", key, v0, ..., vn]` set inclusion: `feature[key] ∈ {v0, ..., vn}`'},"!in":{doc:'`["!in", key, v0, ..., vn]` set exclusion: `feature[key] ∉ {v0, ..., vn}`'},all:{doc:'`["all", f0, ..., fn]` logical `AND`: `f0 ∧ ... ∧ fn`'},any:{doc:'`["any", f0, ..., fn]` logical `OR`: `f0 ∨ ... ∨ fn`'},none:{doc:'`["none", f0, ..., fn]` logical `NOR`: `¬f0 ∧ ... ∧ ¬fn`'},has:{doc:'`["has", key]` `feature[key]` exists'},"!has":{doc:'`["!has", key]` `feature[key]` does not exist'}},doc:"The filter operator."},geometry_type:{type:"enum",values:{Point:{doc:"Filter to point geometries."},LineString:{doc:"Filter to line geometries."},Polygon:{doc:"Filter to polygon geometries."}},doc:"The geometry type for the filter to select."},function_stop:{type:"array",minimum:0,maximum:22,value:["number","color"],length:2,doc:"Zoom level and value pair."},expression:{type:"array",value:"*",minimum:1,doc:"An expression defines a function that can be used for data-driven style properties or feature filters."},expression_name:{doc:"",type:"enum",values:{let:{doc:'Binds expressions to named variables, which can then be referenced in the result expression using ["var", "variable_name"].',group:"Variable binding","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},var:{doc:'References variable bound using "let".',group:"Variable binding","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},literal:{doc:"Provides a literal array or object value.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},array:{doc:"Asserts that the input is an array (optionally with a specific item type and length). If, when the input expression is evaluated, it is not of the asserted type, then this assertion will cause the whole expression to be aborted.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},at:{doc:"Retrieves an item from an array.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},case:{doc:"Selects the first output whose corresponding test condition evaluates to true.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},match:{doc:'Selects the output whose label value matches the input value, or the fallback value if no match is found. The input can be any expression (e.g. `["get", "building_type"]`). Each label must either be a single literal value or an array of literal values (e.g. `"a"` or `["c", "b"]`), and those values must be all strings or all numbers. (The values `"1"` and `1` cannot both be labels in the same match expression.) If the input type does not match the type of the labels, the result will be the fallback value.',group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},coalesce:{doc:"Evaluates each expression in turn until the first non-null value is obtained, and returns that value.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},step:{doc:'Produces discrete, stepped results by evaluating a piecewise-constant function defined by pairs of input and output values ("stops"). The `input` may be any numeric expression (e.g., `["get", "population"]`). Stop inputs must be numeric literals in strictly ascending order. Returns the output value of the stop just less than the input, or the first input if the input is less than the first stop.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},interpolate:{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). The `input` may be any numeric expression (e.g., `["get", "population"]`). Stop inputs must be numeric literals in strictly ascending order. The output type must be `number`, `array<number>`, or `color`.\n\nInterpolation types:\n- `["linear"]`: interpolates linearly between the pair of stops just less than and just greater than the input.\n- `["exponential", base]`: interpolates exponentially between the stops just less than and just greater than the input. `base` controls the rate at which the output increases: higher values make the output increase more towards the high end of the range. With values close to 1 the output increases linearly.\n- `["cubic-bezier", x1, y1, x2, y2]`: interpolates using the cubic bezier curve defined by the given control points.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"interpolate-hcl":{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). Works like `interpolate`, but the output type must be `color`, and the interpolation is performed in the Hue-Chroma-Luminance color space.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.49.0"}}},"interpolate-lab":{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). Works like `interpolate`, but the output type must be `color`, and the interpolation is performed in the CIELAB color space.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.49.0"}}},ln2:{doc:"Returns mathematical constant ln(2).",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},pi:{doc:"Returns the mathematical constant pi.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},e:{doc:"Returns the mathematical constant e.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},typeof:{doc:"Returns a string describing the type of the given value.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},string:{doc:"Asserts that the input value is a string. If multiple values are provided, each one is evaluated in order until a string is obtained. If none of the inputs are strings, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},number:{doc:"Asserts that the input value is a number. If multiple values are provided, each one is evaluated in order until a number is obtained. If none of the inputs are numbers, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},boolean:{doc:"Asserts that the input value is a boolean. If multiple values are provided, each one is evaluated in order until a boolean is obtained. If none of the inputs are booleans, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},object:{doc:"Asserts that the input value is an object. If multiple values are provided, each one is evaluated in order until an object is obtained. If none of the inputs are objects, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},collator:{doc:"Returns a `collator` for use in locale-dependent comparison operations. The `case-sensitive` and `diacritic-sensitive` options default to `false`. The `locale` argument specifies the IETF language tag of the locale to use. If none is provided, the default locale is used. If the requested locale is not available, the `collator` will use a system-defined fallback locale. Use `resolved-locale` to test the results of locale fallback behavior.",group:"Types","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},format:{doc:"Returns `formatted` text containing annotations for use in mixed-format `text-field` entries. If set, the `text-font` argument overrides the font specified by the root layout properties. If set, the `font-scale` argument specifies a scaling factor relative to the `text-size` specified in the root layout properties.",group:"Types","sdk-support":{"basic functionality":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"}}},"to-string":{doc:'Converts the input value to a string. If the input is `null`, the result is `""`. If the input is a boolean, the result is `"true"` or `"false"`. If the input is a number, it is converted to a string as specified by the ["NumberToString" algorithm](https://tc39.github.io/ecma262/#sec-tostring-applied-to-the-number-type) of the ECMAScript Language Specification. If the input is a color, it is converted to a string of the form `"rgba(r,g,b,a)"`, where `r`, `g`, and `b` are numerals ranging from 0 to 255, and `a` ranges from 0 to 1. Otherwise, the input is converted to a string in the format specified by the [`JSON.stringify`](https://tc39.github.io/ecma262/#sec-json.stringify) function of the ECMAScript Language Specification.',group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-number":{doc:'Converts the input value to a number, if possible. If the input is `null` or `false`, the result is 0. If the input is `true`, the result is 1. If the input is a string, it is converted to a number as specified by the ["ToNumber Applied to the String Type" algorithm](https://tc39.github.io/ecma262/#sec-tonumber-applied-to-the-string-type) of the ECMAScript Language Specification. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.',group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-boolean":{doc:"Converts the input value to a boolean. The result is `false` when then input is an empty string, 0, `false`, `null`, or `NaN`; otherwise it is `true`.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-rgba":{doc:"Returns a four-element array containing the input color's red, green, blue, and alpha components, in that order.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-color":{doc:"Converts the input value to a color. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},rgb:{doc:"Creates a color value from red, green, and blue components, which must range between 0 and 255, and an alpha component of 1. If any component is out of range, the expression is an error.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},rgba:{doc:"Creates a color value from red, green, blue components, which must range between 0 and 255, and an alpha component which must range between 0 and 1. If any component is out of range, the expression is an error.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},get:{doc:"Retrieves a property value from the current feature's properties, or from another object if a second argument is provided. Returns null if the requested property is missing.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},has:{doc:"Tests for the presence of an property value in the current feature's properties, or from another object if a second argument is provided.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},length:{doc:"Gets the length of an array or string.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},properties:{doc:'Gets the feature properties object. Note that in some cases, it may be more efficient to use ["get", "property_name"] directly.',group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"feature-state":{doc:"Retrieves a property value from the current feature's state. Returns null if the requested property is not present on the feature's state. A feature's state is not part of the GeoJSON or vector tile data, and must be set programmatically on each feature. Note that [\"feature-state\"] can only be used with paint properties that support data-driven styling.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.46.0"}}},"geometry-type":{doc:"Gets the feature's geometry type: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},id:{doc:"Gets the feature's id, if it has one.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},zoom:{doc:'Gets the current zoom level. Note that in style layout and paint properties, ["zoom"] may only appear as the input to a top-level "step" or "interpolate" expression.',group:"Zoom","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"heatmap-density":{doc:"Gets the kernel density estimation of a pixel in a heatmap layer, which is a relative measure of how many data points are crowded around a particular pixel. Can only be used in the `heatmap-color` property.",group:"Heatmap","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"line-progress":{doc:"Gets the progress along a gradient line. Can only be used in the `line-gradient` property.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.6.0",macos:"0.12.0"}}},"+":{doc:"Returns the sum of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"*":{doc:"Returns the product of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"-":{doc:"For two inputs, returns the result of subtracting the second input from the first. For a single input, returns the result of subtracting it from 0.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"/":{doc:"Returns the result of floating point division of the first input by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"%":{doc:"Returns the remainder after integer division of the first input by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"^":{doc:"Returns the result of raising the first input to the power specified by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},sqrt:{doc:"Returns the square root of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},log10:{doc:"Returns the base-ten logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},ln:{doc:"Returns the natural logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},log2:{doc:"Returns the base-two logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},sin:{doc:"Returns the sine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},cos:{doc:"Returns the cosine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},tan:{doc:"Returns the tangent of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},asin:{doc:"Returns the arcsine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},acos:{doc:"Returns the arccosine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},atan:{doc:"Returns the arctangent of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},min:{doc:"Returns the minimum value of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},max:{doc:"Returns the maximum value of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},round:{doc:'Rounds the input to the nearest integer. Halfway values are rounded away from zero. For example, `["round", -1.5]` evaluates to -2.',group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},abs:{doc:"Returns the absolute value of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},ceil:{doc:"Returns the smallest integer that is greater than or equal to the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},floor:{doc:"Returns the largest integer that is less than or equal to the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"==":{doc:"Returns `true` if the input values are equal, `false` otherwise. The comparison is strictly typed: values of different runtime types are always considered unequal. Cases where the types are known to be different at parse time are considered invalid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"!=":{doc:"Returns `true` if the input values are not equal, `false` otherwise. The comparison is strictly typed: values of different runtime types are always considered unequal. Cases where the types are known to be different at parse time are considered invalid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},">":{doc:"Returns `true` if the first input is strictly greater than the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"<":{doc:"Returns `true` if the first input is strictly less than the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},">=":{doc:"Returns `true` if the first input is greater than or equal to the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"<=":{doc:"Returns `true` if the first input is less than or equal to the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},all:{doc:"Returns `true` if all the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `false`, the result is `false` and no further input expressions are evaluated.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},any:{doc:"Returns `true` if any of the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `true`, the result is `true` and no further input expressions are evaluated.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"!":{doc:"Logical negation. Returns `true` if the input is `false`, and `false` if the input is `true`.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"is-supported-script":{doc:"Returns `true` if the input string is expected to render legibly. Returns `false` if the input string contains sections that cannot be rendered without potential loss of meaning (e.g. Indic scripts that require complex text shaping, or right-to-left scripts if the the `mapbox-gl-rtl-text` plugin is not in use in Mapbox GL JS).",group:"String"},upcase:{doc:"Returns the input string converted to uppercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},downcase:{doc:"Returns the input string converted to lowercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},concat:{doc:"Returns a `string` consisting of the concatenation of the inputs. Each input is converted to a string as if by `to-string`.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"resolved-locale":{doc:"Returns the IETF language tag of the locale being used by the provided `collator`. This can be used to determine the default system locale, or to determine if a requested locale was successfully loaded.",group:"String","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{doc:"The position of the light source is aligned to the rotation of the map."},viewport:{doc:"The position of the light source is aligned to the rotation of the viewport."}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},doc:"Whether extruded geometries are lit relative to the map or viewport.",example:"map","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},doc:"Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).",example:[1.5,90,80],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Color tint for lighting extruded geometries.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.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,doc:"Whether or not the fill should be antialiased.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill layer. In contrast to the `fill-color`, this value will also affect the 1px stroke around the fill, if the stroke is used.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.21.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",doc:"The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.",transition:!0,requires:[{"!":"fill-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.19.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",doc:"The outline color of the fill. Matches the value of `fill-color` if unspecified.",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.19.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.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",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{doc:"The fill is translated relative to the map."},viewport:{doc:"The fill is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-translate`.",default:"map",requires:["fill-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"string",transition:!0,doc:"Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},paint_line:{"line-opacity":{type:"number",doc:"The opacity at which the line will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",doc:"The color with which the line will be drawn.",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.23.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{doc:"The line is translated relative to the map."},viewport:{doc:"The line is translated relative to the viewport."}},doc:"Controls the frame of reference for `line-translate`.",default:"map",requires:["line-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",doc:"Stroke thickness.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,doc:"Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.",transition:!0,units:"pixels","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,doc:"The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.",transition:!0,units:"pixels","sdk-support":{"basic functionality":{js:"0.12.1",android:"3.0.0",ios:"3.1.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Blur applied to the line, in pixels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",doc:"Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. Note that GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels.",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"string",transition:!0,doc:"Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",doc:'Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify `"lineMetrics": true`.',transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],"sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.4.0",macos:"0.11.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",doc:"Circle radius.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.18.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",doc:"The fill color of the circle.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.18.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,doc:"Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.20.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",doc:"The opacity at which the circle will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.20.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.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",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{doc:"The circle is translated relative to the map."},viewport:{doc:"The circle is translated relative to the viewport."}},doc:"Controls the frame of reference for `circle-translate`.",default:"map",requires:["circle-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{doc:"Circles are scaled according to their apparent distance to the camera."},viewport:{doc:"Circles are not scaled."}},default:"map",doc:"Controls the scaling behavior of the circle when the map is pitched.","sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{doc:"The circle is aligned to the plane of the map."},viewport:{doc:"The circle is aligned to the plane of the viewport."}},default:"viewport",doc:"Orientation of circle when map is pitched.","sdk-support":{"basic functionality":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"The width of the circle's stroke. Strokes are placed outside of the `circle-radius`.","sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",doc:"The stroke color of the circle.",transition:!0,"sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",doc:"The opacity of the circle's stroke.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.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",doc:"Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,doc:"A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,doc:"Similar to `heatmap-weight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},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"],doc:'Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmap-density"]` as input.',transition:!1,"sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",doc:"The global opacity at which the heatmap layer will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{doc:"The opacity at which the icon will be drawn.",type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,doc:"The color of the icon. This can only be used with sdf icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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,doc:"The color of the icon's halo. Icon halos can only be used with SDF icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"Distance of halo to the icon outline.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"Fade out the halo towards the outside.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{doc:"Icons are translated relative to the map."},viewport:{doc:"Icons are translated relative to the viewport."}},doc:"Controls the frame of reference for `icon-translate`.",default:"map",requires:["icon-image","icon-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",doc:"The opacity at which the text will be drawn.",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",doc:"The color with which the text will be drawn.",default:"#000000",transition:!0,requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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,doc:"The color of the text's halo, which helps it stand out from backgrounds.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"The halo's fadeout distance towards the outside.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{doc:"The text is translated relative to the map."},viewport:{doc:"The text is translated relative to the viewport."}},doc:"Controls the frame of reference for `text-translate`.",default:"map",requires:["text-field","text-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",doc:"The opacity at which the image will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",doc:"Rotates hues around the color wheel.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",doc:"Increase or reduce the brightness of the image. The value is the minimum brightness.",default:0,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",doc:"Increase or reduce the brightness of the image. The value is the maximum brightness.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",doc:"Increase or reduce the saturation of the image.",default:0,minimum:-1,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",doc:"Increase or reduce the contrast of the image.",default:0,minimum:-1,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",doc:"The resampling/interpolation method to use for overscaling, also known as texture magnification filter",values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"0.47.0",android:"6.3.0",ios:"4.2.0",macos:"0.9.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",doc:"Fade duration when a new tile is added.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,doc:"The direction of the light source used to generate the hillshading with 0 as the top of the viewport if `hillshade-illumination-anchor` is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`.",transition:!1,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{doc:"The hillshade illumination is relative to the north direction."},viewport:{doc:"The hillshade illumination is relative to the top of the viewport."}},default:"viewport",doc:"Direction of light source when map is rotated.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",doc:"Intensity of the hillshade",default:.5,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",doc:"The shading color of areas that face away from the light source.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",doc:"The shading color of areas that faces towards the light source.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",doc:"The shading color used to accentuate rugged terrain like sharp cliffs and gorges.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",doc:"The color with which the background will be drawn.",transition:!0,requires:[{"!":"background-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"string",transition:!0,doc:"Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the background will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds",doc:"Time allotted for transitions to complete."},delay:{type:"number",default:0,minimum:0,units:"milliseconds",doc:"Length of time before a transition begins."}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},"property-type":"constant"}},function:{expression:{type:"expression",doc:"An expression."},stops:{type:"array",doc:"An array of stops.",value:"function_stop"},base:{type:"number",default:1,minimum:0,doc:"The exponential base of the interpolation curve. It controls the rate at which the result increases. Higher values make the result increase more towards the high end of the range. With `1` the stops are interpolated linearly."},property:{type:"string",doc:"The name of a feature property to use as the function input.",default:"$zoom"},type:{type:"enum",values:{identity:{doc:"Return the input value as the output value."},exponential:{doc:"Generate an output by interpolating between stops just less than and just greater than the function input."},interval:{doc:"Return the output value of the stop just less than the function input."},categorical:{doc:"Return the output value of the stop equal to the function input."}},doc:"The interpolation strategy to use in function evaluation.",default:"exponential"},colorSpace:{type:"enum",values:{rgb:{doc:"Use the RGB color space to interpolate color values"},lab:{doc:"Use the LAB color space to interpolate color values."},hcl:{doc:"Use the HCL color space to interpolate color values, interpolating the Hue, Chroma, and Luminance channels individually."}},doc:"The color space in which colors interpolated. Interpolating colors in perceptual color spaces like LAB and HCL tend to produce color ramps that look more consistent and produce colors that can be differentiated more easily than those interpolated in RGB space.",default:"rgb"},default:{type:"*",required:!1,doc:"A value to serve as a fallback function result when a value isn't otherwise available. It is used in the following circumstances:\n* In categorical functions, when the feature value does not match any of the stop domain values.\n* In property and zoom-and-property functions, when a feature does not contain a value for the specified property.\n* In identity functions, when the feature value is not valid for the style property (for example, if the function is being used for a `circle-color` property but the feature property value is not a string or not a valid color).\n* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.\nIf no default is provided, the style property's default is used in these circumstances."}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},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",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"string",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"property-type":{"data-driven":{type:"property-type",doc:"Property is interpolable and can be represented using a property expression."},"cross-faded":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms."},"cross-faded-data-driven":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression."},"color-ramp":{type:"property-type",doc:"Property should be specified using a color ramp from which the output color can be sampled based on a property calculation."},"data-constant":{type:"property-type",doc:"Property is interpolable but cannot be represented using a property expression."},constant:{type:"property-type",doc:"Property is constant across all zoom levels and property values."}}};var o=/("(?:[^\\"]|\\.)*")|[:,\][}{]/g;function i(e,t,r){return t in e?e[t]:r}var a=function(e,t){t=t||{};var r=JSON.stringify([1],null,i(t,"indent",2)).slice(2,-3),n=i(t,"margins",!1),a=""===r?1/0:i(t,"maxLength",80);return function e(t,i,s){t&&"function"==typeof t.toJSON&&(t=t.toJSON());var l=JSON.stringify(t);if(void 0===l)return l;var u=a-i.length-s;if(l.length<=u){var p=function(e,t){var r=t?" ":"",n={"{":"{"+r,"[":"["+r,"}":r+"}","]":r+"]",",":", ",":":": "};return e.replace(o,function(e,t){return t?e:n[e]})}(l,n);if(p.length<=u)return p}if("object"==typeof t&&null!==t){var c,d=i+r,h=[],f=function(e,t){return t===e.length-1?0:1};if(Array.isArray(t)){for(var y=0;y<t.length;y++)h.push(e(t[y],d,f(t,y))||"null");c="[]"}else Object.keys(t).forEach(function(r,n,o){var i=JSON.stringify(r)+": ",a=e(t[r],d,i.length+f(o,n));void 0!==a&&h.push(i+a)}),c="{}";if(h.length>0)return[c[0],r+h.join(",\n"+d),c[1]].join("\n"+i)}return l}(e,"",0)};function s(e,t){var r={};for(var n in t)void 0!==e[n]&&(r[n]=e[n]);for(var o in e)void 0===r[o]&&(r[o]=e[o]);return r}var l="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function u(e,t){return e(t={exports:{}},t.exports),t.exports}var p=u(function(e,t){!function(r){var n=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,i="object"==typeof l&&l;i.global!==i&&i.window!==i&&i.self!==i||(r=i);var a,s,u=2147483647,p=36,c=1,d=26,h=38,f=700,y=72,m=128,v="-",g=/^xn--/,b=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=p-c,j=Math.floor,z=String.fromCharCode;function S(e){throw RangeError(w[e])}function _(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function T(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+_((e=e.replace(x,".")).split("."),t).join(".")}function O(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function A(e){return _(e,function(e){var t="";return e>65535&&(t+=z((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=z(e)}).join("")}function q(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,r){var n=0;for(e=r?j(e/f):e>>1,e+=j(e/t);e>k*d>>1;n+=p)e=j(e/k);return j(n+(k+1)*e/(e+h))}function E(e){var t,r,n,o,i,a,s,l,h,f,g,b=[],x=e.length,w=0,k=m,z=y;for((r=e.lastIndexOf(v))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&S("not-basic"),b.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<x;){for(i=w,a=1,s=p;o>=x&&S("invalid-input"),((l=(g=e.charCodeAt(o++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:p)>=p||l>j((u-w)/a))&&S("overflow"),w+=l*a,!(l<(h=s<=z?c:s>=z+d?d:s-z));s+=p)a>j(u/(f=p-h))&&S("overflow"),a*=f;z=C(w-i,t=b.length+1,0==i),j(w/t)>u-k&&S("overflow"),k+=j(w/t),w%=t,b.splice(w++,0,k)}return A(b)}function I(e){var t,r,n,o,i,a,s,l,h,f,g,b,x,w,k,_=[];for(b=(e=O(e)).length,t=m,r=0,i=y,a=0;a<b;++a)(g=e[a])<128&&_.push(z(g));for(n=o=_.length,o&&_.push(v);n<b;){for(s=u,a=0;a<b;++a)(g=e[a])>=t&&g<s&&(s=g);for(s-t>j((u-r)/(x=n+1))&&S("overflow"),r+=(s-t)*x,t=s,a=0;a<b;++a)if((g=e[a])<t&&++r>u&&S("overflow"),g==t){for(l=r,h=p;!(l<(f=h<=i?c:h>=i+d?d:h-i));h+=p)k=l-f,w=p-f,_.push(z(q(f+k%w,0))),l=j(k/w);_.push(z(q(l,0))),i=C(r,x,n==o),r=0,++n}++r,++t}return _.join("")}if(a={version:"1.3.2",ucs2:{decode:O,encode:A},decode:E,encode:I,toASCII:function(e){return T(e,function(e){return b.test(e)?"xn--"+I(e):e})},toUnicode:function(e){return T(e,function(e){return g.test(e)?E(e.slice(4).toLowerCase()):e})}},n&&o)if(e.exports==n)o.exports=a;else for(s in a)a.hasOwnProperty(s)&&(n[s]=a[s]);else r.punycode=a}(l)}),c={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}};function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var h=function(e,t,r,n){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var l=0;l<s;++l){var u,p,c,h,f=e[l].replace(i,"%20"),y=f.indexOf(r);y>=0?(u=f.substr(0,y),p=f.substr(y+1)):(u=f,p=""),c=decodeURIComponent(u),h=decodeURIComponent(p),d(o,c)?Array.isArray(o[c])?o[c].push(h):o[c]=[o[c],h]:o[c]=h}return o},f=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},y=function(e,t,r,n){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(n){var o=encodeURIComponent(f(n))+r;return Array.isArray(e[n])?e[n].map(function(e){return o+encodeURIComponent(f(e))}).join(t):o+encodeURIComponent(f(e[n]))}).join(t):n?encodeURIComponent(f(n))+r+encodeURIComponent(f(e)):""},m=u(function(e,t){t.decode=t.parse=h,t.encode=t.stringify=y}),v=(m.decode,m.parse,m.encode,m.stringify,M),g=function(e,t){return M(e,!1,!0).resolve(t)},b=function(e,t){if(!e)return t;return M(e,!1,!0).resolveObject(t)},x=function(e){c.isString(e)&&(e=M(e));if(!(e instanceof k))return k.prototype.format.call(e);return e.format()},w=k;function k(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var j=/^([a-z0-9.+-]+:)/i,z=/:[0-9]*$/,S=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,_=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),T=["'"].concat(_),O=["%","/","?",";","#"].concat(T),A=["/","?","#"],q=/^[+a-z0-9A-Z_-]{0,63}$/,C=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,E={javascript:!0,"javascript:":!0},I={javascript:!0,"javascript:":!0},N={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function M(e,t,r){if(e&&c.isObject(e)&&e instanceof k)return e;var n=new k;return n.parse(e,t,r),n}k.prototype.parse=function(e,t,r){if(!c.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),o=-1!==n&&n<e.indexOf("#")?"?":"#",i=e.split(o);i[0]=i[0].replace(/\\/g,"/");var a=e=i.join(o);if(a=a.trim(),!r&&1===e.split("#").length){var s=S.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var l=j.exec(a);if(l){var u=(l=l[0]).toLowerCase();this.protocol=u,a=a.substr(l.length)}if(r||l||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var d="//"===a.substr(0,2);!d||l&&I[l]||(a=a.substr(2),this.slashes=!0)}if(!I[l]&&(d||l&&!N[l])){for(var h,f,y=-1,v=0;v<A.length;v++){-1!==(g=a.indexOf(A[v]))&&(-1===y||g<y)&&(y=g)}-1!==(f=-1===y?a.lastIndexOf("@"):a.lastIndexOf("@",y))&&(h=a.slice(0,f),a=a.slice(f+1),this.auth=decodeURIComponent(h)),y=-1;for(v=0;v<O.length;v++){var g;-1!==(g=a.indexOf(O[v]))&&(-1===y||g<y)&&(y=g)}-1===y&&(y=a.length),this.host=a.slice(0,y),a=a.slice(y),this.parseHost(),this.hostname=this.hostname||"";var b="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!b)for(var x=this.hostname.split(/\./),w=(v=0,x.length);v<w;v++){var k=x[v];if(k&&!k.match(q)){for(var z="",_=0,M=k.length;_<M;_++)k.charCodeAt(_)>127?z+="x":z+=k[_];if(!z.match(q)){var R=x.slice(0,v),P=x.slice(v+1),L=k.match(C);L&&(R.push(L[1]),P.unshift(L[2])),P.length&&(a="/"+P.join(".")+a),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),b||(this.hostname=p.toASCII(this.hostname));var F=this.port?":"+this.port:"",$=this.hostname||"";this.host=$+F,this.href+=this.host,b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!E[u])for(v=0,w=T.length;v<w;v++){var U=T[v];if(-1!==a.indexOf(U)){var J=encodeURIComponent(U);J===U&&(J=escape(U)),a=a.split(U).join(J)}}var D=a.indexOf("#");-1!==D&&(this.hash=a.substr(D),a=a.slice(0,D));var G=a.indexOf("?");if(-1!==G?(this.search=a.substr(G),this.query=a.substr(G+1),t&&(this.query=m.parse(this.query)),a=a.slice(0,G)):t&&(this.search="",this.query={}),a&&(this.pathname=a),N[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var W=this.search||"";this.path=F+W}return this.href=this.format(),this},k.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&c.isObject(this.query)&&Object.keys(this.query).length&&(i=m.stringify(this.query));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||N[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+n},k.prototype.resolve=function(e){return this.resolveObject(M(e,!1,!0)).format()},k.prototype.resolveObject=function(e){if(c.isString(e)){var t=new k;t.parse(e,!1,!0),e=t}for(var r=new k,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];r[i]=this[i]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var l=a[s];"protocol"!==l&&(r[l]=e[l])}return N[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!N[e.protocol]){for(var u=Object.keys(e),p=0;p<u.length;p++){var d=u[p];r[d]=e[d]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||I[e.protocol])r.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var f=r.pathname||"",y=r.search||"";r.path=f+y}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),g=v||m||r.host&&e.pathname,b=g,x=r.pathname&&r.pathname.split("/")||[],w=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!N[r.protocol]);if(w&&(r.hostname="",r.port=null,r.host&&(""===x[0]?x[0]=r.host:x.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),g=g&&(""===h[0]||""===x[0])),v)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,x=h;else if(h.length)x||(x=[]),x.pop(),x=x.concat(h),r.search=e.search,r.query=e.query;else if(!c.isNullOrUndefined(e.search)){if(w)r.hostname=r.host=x.shift(),(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift());return r.search=e.search,r.query=e.query,c.isNull(r.pathname)&&c.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var j=x.slice(-1)[0],z=(r.host||e.host||x.length>1)&&("."===j||".."===j)||""===j,S=0,_=x.length;_>=0;_--)"."===(j=x[_])?x.splice(_,1):".."===j?(x.splice(_,1),S++):S&&(x.splice(_,1),S--);if(!g&&!b)for(;S--;S)x.unshift("..");!g||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),z&&"/"!==x.join("/").substr(-1)&&x.push("");var T,O=""===x[0]||x[0]&&"/"===x[0].charAt(0);w&&(r.hostname=r.host=O?"":x.length?x.shift():"",(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift()));return(g=g||r.host&&x.length)&&!O&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),c.isNull(r.pathname)&&c.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},k.prototype.parseHost=function(){var e=this.host,t=z.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var R={parse:v,resolve:g,resolveObject:b,format:x,Url:w};function P(e){for(var t=0;t<n.layout.length;t++)for(var r in n[n.layout[t]])if(r===e)return n[n.layout[t]][r];for(var o=0;o<n.paint.length;o++)for(var i in n[n.paint[o]])if(i===e)return n[n.paint[o]][i];return null}function L(e,t){for(var r in e.sources)t(e.sources[r])}function F(e,t){for(var r=0,n=e.layers;r<n.length;r+=1){t(n[r])}}function $(e,t,r){function n(e,t){var n=e[t];n&&Object.keys(n).forEach(function(o){r({path:[e.id,t,o],key:o,value:n[o],reference:P(o),set:function(e){n[o]=e}})})}F(e,function(e){t.paint&&n(e,"paint"),t.layout&&n(e,"layout")})}function U(e,t){for(var r in e)0===r.indexOf("layout")&&t(e[r],r)}function J(e,t){for(var r in e)0===r.indexOf("paint")&&t(e[r],r)}function D(e,t){return"string"==typeof t&&"@"===t[0]?D(e,e.constants[t]):t}function G(e,t,r){e[r]=e[t],delete e[t]}function W(e){var t,r,n;e.version=8,L(e,function(e){"video"===e.type&&void 0!==e.url&&G(e,"url","urls"),"video"===e.type&&e.coordinates.forEach(function(e){return e.reverse()})}),F(e,function(e){U(e,function(e){void 0!==e["symbol-min-distance"]&&G(e,"symbol-min-distance","symbol-spacing")}),J(e,function(e){void 0!==e["background-image"]&&G(e,"background-image","background-pattern"),void 0!==e["line-image"]&&G(e,"line-image","line-pattern"),void 0!==e["fill-image"]&&G(e,"fill-image","fill-pattern")})}),$(e,{paint:!0,layout:!0},function(t){var r=D(e,t.value);(function(e){return Array.isArray(e.stops)})(r)&&r.stops.forEach(function(t){t[1]=D(e,t[1])}),t.set(r)}),delete e.constants,F(e,function(e){U(e,function(e){delete e["text-max-size"],delete e["icon-max-size"]}),J(e,function(t){t["text-size"]&&(e.layout||(e.layout={}),e.layout["text-size"]=t["text-size"],delete t["text-size"]),t["icon-size"]&&(e.layout||(e.layout={}),e.layout["icon-size"]=t["icon-size"],delete t["icon-size"])})}),e.glyphs&&(e.glyphs=(t=e.glyphs,r=R.parse(t),n=r.pathname.split("/"),"mapbox:"!==r.protocol?t:"fontstack"===r.hostname?"mapbox://fonts/mapbox/{fontstack}/{range}.pbf":"fonts"===r.hostname?"mapbox://fonts/"+n[2]+"/{fontstack}/{range}.pbf":void 0)),F(e,function(e){U(e,function(e){e["text-font"]&&(e["text-font"]=function(e){function t(e){return e.split(",").map(function(e){return e.trim()})}if(Array.isArray(e))return e;if("string"==typeof e)return t(e);if("object"==typeof e)return e.stops.forEach(function(e){e[1]=t(e[1])}),e;throw new Error("unexpected font value")}(e["text-font"]))})});for(var o=0,i=e.layers.length-1;i>=0;i--){if("symbol"!==e.layers[i].type){o=i+1;break}}var a=e.layers.splice(o);return a.reverse(),e.layers=e.layers.concat(a),e}function B(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];for(var n=0,o=t;n<o.length;n+=1){var i=o[n];for(var a in i)e[a]=i[a]}return e}var V=function(e){function t(t,r){e.call(this,r),this.message=r,this.key=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),H=function(e,t){void 0===t&&(t=[]),this.parent=e,this.bindings={};for(var r=0,n=t;r<n.length;r+=1){var o=n[r],i=o[0],a=o[1];this.bindings[i]=a}};H.prototype.concat=function(e){return new H(this,e)},H.prototype.get=function(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(e+" not found in scope.")},H.prototype.has=function(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)};var Z={kind:"null"},X={kind:"number"},K={kind:"string"},Y={kind:"boolean"},Q={kind:"color"},ee={kind:"object"},te={kind:"value"},re={kind:"collator"},ne={kind:"formatted"};function oe(e,t){return{kind:"array",itemType:e,N:t}}function ie(e){if("array"===e.kind){var t=ie(e.itemType);return"number"==typeof e.N?"array<"+t+", "+e.N+">":"value"===e.itemType.kind?"array":"array<"+t+">"}return e.kind}var ae=[Z,X,K,Y,Q,ne,ee,oe(te)];function se(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!se(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(var r=0,n=ae;r<n.length;r+=1){if(!se(n[r],t))return null}}return"Expected "+ie(e)+" but found "+ie(t)+" instead."}var le=u(function(e,t){var r={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 n(e){return(e=Math.round(e))<0?0:e>255?255:e}function o(e){return e<0?0:e>1?1:e}function i(e){return"%"===e[e.length-1]?n(parseFloat(e)/100*255):n(parseInt(e))}function a(e){return"%"===e[e.length-1]?o(parseFloat(e)/100):o(parseFloat(e))}function s(e,t,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?e+(t-e)*r*6:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}try{t.parseCSSColor=function(e){var t,o=e.replace(/ /g,"").toLowerCase();if(o in r)return r[o].slice();if("#"===o[0])return 4===o.length?(t=parseInt(o.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===o.length&&(t=parseInt(o.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var l=o.indexOf("("),u=o.indexOf(")");if(-1!==l&&u+1===o.length){var p=o.substr(0,l),c=o.substr(l+1,u-(l+1)).split(","),d=1;switch(p){case"rgba":if(4!==c.length)return null;d=a(c.pop());case"rgb":return 3!==c.length?null:[i(c[0]),i(c[1]),i(c[2]),d];case"hsla":if(4!==c.length)return null;d=a(c.pop());case"hsl":if(3!==c.length)return null;var h=(parseFloat(c[0])%360+360)%360/360,f=a(c[1]),y=a(c[2]),m=y<=.5?y*(f+1):y+f-y*f,v=2*y-m;return[n(255*s(v,m,h+1/3)),n(255*s(v,m,h)),n(255*s(v,m,h-1/3)),d];default:return null}}return null}}catch(l){}}).parseCSSColor,ue=function(e,t,r,n){void 0===n&&(n=1),this.r=e,this.g=t,this.b=r,this.a=n};ue.parse=function(e){if(e){if(e instanceof ue)return e;if("string"==typeof e){var t=le(e);if(t)return new ue(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3])}}},ue.prototype.toString=function(){var e=this.toArray(),t=e[0],r=e[1],n=e[2],o=e[3];return"rgba("+Math.round(t)+","+Math.round(r)+","+Math.round(n)+","+o+")"},ue.prototype.toArray=function(){var e=this.r,t=this.g,r=this.b,n=this.a;return 0===n?[0,0,0,0]:[255*e/n,255*t/n,255*r/n,n]},ue.black=new ue(0,0,0,1),ue.white=new ue(1,1,1,1),ue.transparent=new ue(0,0,0,0),ue.red=new ue(1,0,0,1);var pe=function(e,t,r){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};pe.prototype.compare=function(e,t){return this.collator.compare(e,t)},pe.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var ce=function(e,t,r){this.text=e,this.scale=t,this.fontStack=r},de=function(e){this.sections=e};function he(e,t,r,n){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof r&&r>=0&&r<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:"Invalid rgba value ["+[e,t,r,n].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof n?[e,t,r,n]:[e,t,r]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function fe(e){if(null===e)return Z;if("string"==typeof e)return K;if("boolean"==typeof e)return Y;if("number"==typeof e)return X;if(e instanceof ue)return Q;if(e instanceof pe)return re;if(e instanceof de)return ne;if(Array.isArray(e)){for(var t,r=e.length,n=0,o=e;n<o.length;n+=1){var i=fe(o[n]);if(t){if(t===i)continue;t=te;break}t=i}return oe(t||te,r)}return ee}function ye(e){var t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof ue||e instanceof de?e.toString():JSON.stringify(e)}de.fromString=function(e){return new de([new ce(e,null,null)])},de.prototype.toString=function(){return this.sections.map(function(e){return e.text}).join("")},de.prototype.serialize=function(){for(var e=["format"],t=0,r=this.sections;t<r.length;t+=1){var n=r[t];e.push(n.text);var o={};n.fontStack&&(o["text-font"]=["literal",n.fontStack.split(",")]),n.scale&&(o["font-scale"]=n.scale),e.push(o)}return e};var me=function(e,t){this.type=e,this.value=t};me.parse=function(e,t){if(2!==e.length)return t.error("'literal' expression requires exactly one argument, but found "+(e.length-1)+" instead.");if(!function e(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 ue)return!0;if(t instanceof pe)return!0;if(t instanceof de)return!0;if(Array.isArray(t)){for(var r=0,n=t;r<n.length;r+=1)if(!e(n[r]))return!1;return!0}if("object"==typeof t){for(var o in t)if(!e(t[o]))return!1;return!0}return!1}(e[1]))return t.error("invalid value");var r=e[1],n=fe(r),o=t.expectedType;return"array"!==n.kind||0!==n.N||!o||"array"!==o.kind||"number"==typeof o.N&&0!==o.N||(n=o),new me(n,r)},me.prototype.evaluate=function(){return this.value},me.prototype.eachChild=function(){},me.prototype.possibleOutputs=function(){return[this.value]},me.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof ue?["rgba"].concat(this.value.toArray()):this.value instanceof de?this.value.serialize():this.value};var ve=function(e){this.name="ExpressionEvaluationError",this.message=e};ve.prototype.toJSON=function(){return this.message};var ge={string:K,number:X,boolean:Y,object:ee},be=function(e,t){this.type=e,this.args=t};be.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var r,n=1,o=e[0];if("array"===o){var i,a;if(e.length>2){var s=e[1];if("string"!=typeof s||!(s in ge)||"object"===s)return t.error('The item type argument of "array" must be one of string, number, boolean',1);i=ge[s],n++}else i=te;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);a=e[2],n++}r=oe(i,a)}else r=ge[o];for(var l=[];n<e.length;n++){var u=t.parse(e[n],n,te);if(!u)return null;l.push(u)}return new be(r,l)},be.prototype.evaluate=function(e){for(var t=0;t<this.args.length;t++){var r=this.args[t].evaluate(e);if(!se(this.type,fe(r)))return r;if(t===this.args.length-1)throw new ve("Expected value to be of type "+ie(this.type)+", but found "+ie(fe(r))+" instead.")}return null},be.prototype.eachChild=function(e){this.args.forEach(e)},be.prototype.possibleOutputs=function(){return(e=[]).concat.apply(e,this.args.map(function(e){return e.possibleOutputs()}));var e},be.prototype.serialize=function(){var e=this.type,t=[e.kind];if("array"===e.kind){var r=e.itemType;if("string"===r.kind||"number"===r.kind||"boolean"===r.kind){t.push(r.kind);var n=e.N;("number"==typeof n||this.args.length>1)&&t.push(n)}}return t.concat(this.args.map(function(e){return e.serialize()}))};var xe=function(e){this.type=ne,this.sections=e};xe.parse=function(e,t){if(e.length<3)return t.error("Expected at least two arguments.");if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");for(var r=[],n=1;n<e.length-1;n+=2){var o=t.parse(e[n],1,te);if(!o)return null;var i=o.type.kind;if("string"!==i&&"value"!==i&&"null"!==i)return t.error("Formatted text type must be 'string', 'value', or 'null'.");var a=e[n+1];if("object"!=typeof a||Array.isArray(a))return t.error("Format options argument must be an object.");var s=null;if(a["font-scale"]&&!(s=t.parse(a["font-scale"],1,X)))return null;var l=null;if(a["text-font"]&&!(l=t.parse(a["text-font"],1,oe(K))))return null;r.push({text:o,scale:s,font:l})}return new xe(r)},xe.prototype.evaluate=function(e){return new de(this.sections.map(function(t){return new ce(ye(t.text.evaluate(e)),t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null)}))},xe.prototype.eachChild=function(e){for(var t=0,r=this.sections;t<r.length;t+=1){var n=r[t];e(n.text),n.scale&&e(n.scale),n.font&&e(n.font)}},xe.prototype.possibleOutputs=function(){return[void 0]},xe.prototype.serialize=function(){for(var e=["format"],t=0,r=this.sections;t<r.length;t+=1){var n=r[t];e.push(n.text.serialize());var o={};n.scale&&(o["font-scale"]=n.scale.serialize()),n.font&&(o["text-font"]=n.font.serialize()),e.push(o)}return e};var we={"to-boolean":Y,"to-color":Q,"to-number":X,"to-string":K},ke=function(e,t){this.type=e,this.args=t};ke.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var r=e[0];if(("to-boolean"===r||"to-string"===r)&&2!==e.length)return t.error("Expected one argument.");for(var n=we[r],o=[],i=1;i<e.length;i++){var a=t.parse(e[i],i,te);if(!a)return null;o.push(a)}return new ke(n,o)},ke.prototype.evaluate=function(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){for(var t,r,n=0,o=this.args;n<o.length;n+=1){if(r=null,(t=o[n].evaluate(e))instanceof ue)return t;if("string"==typeof t){var i=e.parseColor(t);if(i)return i}else if(Array.isArray(t)&&!(r=t.length<3||t.length>4?"Invalid rbga value "+JSON.stringify(t)+": expected an array containing either three or four numeric values.":he(t[0],t[1],t[2],t[3])))return new ue(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new ve(r||"Could not parse color from value '"+("string"==typeof t?t:JSON.stringify(t))+"'")}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(e)))return 0;var u=Number(a);if(!isNaN(u))return u}throw new ve("Could not convert "+JSON.stringify(a)+" to number.")}return"formatted"===this.type.kind?de.fromString(ye(this.args[0].evaluate(e))):ye(this.args[0].evaluate(e))},ke.prototype.eachChild=function(e){this.args.forEach(e)},ke.prototype.possibleOutputs=function(){return(e=[]).concat.apply(e,this.args.map(function(e){return e.possibleOutputs()}));var e},ke.prototype.serialize=function(){if("formatted"===this.type.kind)return new xe([{text:this.args[0],scale:null,font:null}]).serialize();var e=["to-"+this.type.kind];return this.eachChild(function(t){e.push(t.serialize())}),e};var je=["Unknown","Point","LineString","Polygon"],ze=function(){this.globals=null,this.feature=null,this.featureState=null,this._parseColorCache={}};ze.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},ze.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?je[this.feature.type]:this.feature.type:null},ze.prototype.properties=function(){return this.feature&&this.feature.properties||{}},ze.prototype.parseColor=function(e){var t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=ue.parse(e)),t};var Se=function(e,t,r,n){this.name=e,this.type=t,this._evaluate=r,this.args=n};Se.prototype.evaluate=function(e){return this._evaluate(e,this.args)},Se.prototype.eachChild=function(e){this.args.forEach(e)},Se.prototype.possibleOutputs=function(){return[void 0]},Se.prototype.serialize=function(){return[this.name].concat(this.args.map(function(e){return e.serialize()}))},Se.parse=function(e,t){var r=e[0],n=Se.definitions[r];if(!n)return t.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0);for(var o,i=Array.isArray(n)?n[0]:n.type,a=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,s=a.filter(function(t){var r=t[0];return!Array.isArray(r)||r.length===e.length-1}),l=null,u=0,p=s;u<p.length;u+=1){var c=p[u],d=c[0],h=c[1];l=new Ce(t.registry,t.path,null,t.scope);for(var f=[],y=!1,m=1;m<e.length;m++){var v=e[m],g=Array.isArray(d)?d[m-1]:d.type,b=l.parse(v,1+f.length,g);if(!b){y=!0;break}f.push(b)}if(!y)if(Array.isArray(d)&&d.length!==f.length)l.error("Expected "+d.length+" arguments, but found "+f.length+" instead.");else{for(var x=0;x<f.length;x++){var w=Array.isArray(d)?d[x]:d.type,k=f[x];l.concat(x+1).checkSubtype(w,k.type)}if(0===l.errors.length)return new Se(r,i,h,f)}}if(1===s.length)(o=t.errors).push.apply(o,l.errors);else{for(var j=(s.length?s:a).map(function(e){var t,r=e[0];return t=r,Array.isArray(t)?"("+t.map(ie).join(", ")+")":"("+ie(t.type)+"...)"}).join(" | "),z=[],S=1;S<e.length;S++){var _=t.parse(e[S],1+z.length);if(!_)return null;z.push(ie(_.type))}t.error("Expected arguments of type "+j+", but found ("+z.join(", ")+") instead.")}return null},Se.register=function(e,t){for(var r in Se.definitions=t,t)e[r]=Se};var _e=function(e,t,r){this.type=re,this.locale=r,this.caseSensitive=e,this.diacriticSensitive=t};function Te(e){if(e instanceof Se){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}var t=!0;return e.eachChild(function(e){t&&!Te(e)&&(t=!1)}),t}function Oe(e){if(e instanceof Se&&"feature-state"===e.name)return!1;var t=!0;return e.eachChild(function(e){t&&!Oe(e)&&(t=!1)}),t}function Ae(e,t){if(e instanceof Se&&t.indexOf(e.name)>=0)return!1;var r=!0;return e.eachChild(function(e){r&&!Ae(e,t)&&(r=!1)}),r}_e.parse=function(e,t){if(2!==e.length)return t.error("Expected one argument.");var r=e[1];if("object"!=typeof r||Array.isArray(r))return t.error("Collator options argument must be an object.");var n=t.parse(void 0!==r["case-sensitive"]&&r["case-sensitive"],1,Y);if(!n)return null;var o=t.parse(void 0!==r["diacritic-sensitive"]&&r["diacritic-sensitive"],1,Y);if(!o)return null;var i=null;return r.locale&&!(i=t.parse(r.locale,1,K))?null:new _e(n,o,i)},_e.prototype.evaluate=function(e){return new pe(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)},_e.prototype.eachChild=function(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)},_e.prototype.possibleOutputs=function(){return[void 0]},_e.prototype.serialize=function(){var e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]};var qe=function(e,t){this.type=t.type,this.name=e,this.boundExpression=t};qe.parse=function(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");var r=e[1];return t.scope.has(r)?new qe(r,t.scope.get(r)):t.error('Unknown variable "'+r+'". Make sure "'+r+'" has been bound in an enclosing "let" expression before using it.',1)},qe.prototype.evaluate=function(e){return this.boundExpression.evaluate(e)},qe.prototype.eachChild=function(){},qe.prototype.possibleOutputs=function(){return[void 0]},qe.prototype.serialize=function(){return["var",this.name]};var Ce=function(e,t,r,n,o){void 0===t&&(t=[]),void 0===n&&(n=new H),void 0===o&&(o=[]),this.registry=e,this.path=t,this.key=t.map(function(e){return"["+e+"]"}).join(""),this.scope=n,this.errors=o,this.expectedType=r};function Ee(e,t){for(var r,n,o=0,i=e.length-1,a=0;o<=i;){if(r=e[a=Math.floor((o+i)/2)],n=e[a+1],t===r||t>r&&t<n)return a;if(r<t)o=a+1;else{if(!(r>t))throw new ve("Input is not a number.");i=a-1}}return Math.max(a-1,0)}Ce.prototype.parse=function(e,t,r,n,o){return void 0===o&&(o={}),t?this.concat(t,r,n)._parse(e,o):this._parse(e,o)},Ce.prototype._parse=function(e,t){function r(e,t,r){return"assert"===r?new be(t,[e]):"coerce"===r?new ke(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var n=e[0];if("string"!=typeof n)return this.error("Expression name must be a string, but found "+typeof n+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var o=this.registry[n];if(o){var i=o.parse(e,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||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else i=r(i,a,t.typeAnnotation||"coerce");else i=r(i,a,t.typeAnnotation||"assert")}if(!(i instanceof me)&&function e(t){if(t instanceof qe)return e(t.boundExpression);if(t instanceof Se&&"error"===t.name)return!1;if(t instanceof _e)return!1;var r=t instanceof ke||t instanceof be;var n=!0;t.eachChild(function(t){n=r?n&&e(t):n&&t instanceof me});if(!n)return!1;return Te(t)&&Ae(t,["zoom","heatmap-density","line-progress","is-supported-script"])}(i)){var l=new ze;try{i=new me(i.type,i.evaluate(l))}catch(u){return this.error(u.message),null}}return i}return this.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0)}return void 0===e?this.error("'undefined' value invalid. Use null instead."):"object"==typeof e?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof e+" instead.")},Ce.prototype.concat=function(e,t,r){var n="number"==typeof e?this.path.concat(e):this.path,o=r?this.scope.concat(r):this.scope;return new Ce(this.registry,n,t||null,o,this.errors)},Ce.prototype.error=function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];var n=""+this.key+t.map(function(e){return"["+e+"]"}).join("");this.errors.push(new V(n,e))},Ce.prototype.checkSubtype=function(e,t){var r=se(e,t);return r&&this.error(r),r};var Ie=function(e,t,r){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(var n=0,o=r;n<o.length;n+=1){var i=o[n],a=i[0],s=i[1];this.labels.push(a),this.outputs.push(s)}};Ie.parse=function(e,t){var r=e[1],n=e.slice(2);if(e.length-1<4)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(!(r=t.parse(r,1,X)))return null;var o=[],i=null;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType),n.unshift(-1/0);for(var a=0;a<n.length;a+=2){var s=n[a],l=n[a+1],u=a+1,p=a+2;if("number"!=typeof s)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',u);if(o.length&&o[o.length-1][0]>=s)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);var c=t.parse(l,p,i);if(!c)return null;i=i||c.type,o.push([s,c])}return new Ie(i,r,o)},Ie.prototype.evaluate=function(e){var t=this.labels,r=this.outputs;if(1===t.length)return r[0].evaluate(e);var n=this.input.evaluate(e);if(n<=t[0])return r[0].evaluate(e);var o=t.length;return n>=t[o-1]?r[o-1].evaluate(e):r[Ee(t,n)].evaluate(e)},Ie.prototype.eachChild=function(e){e(this.input);for(var t=0,r=this.outputs;t<r.length;t+=1){e(r[t])}},Ie.prototype.possibleOutputs=function(){return(e=[]).concat.apply(e,this.outputs.map(function(e){return e.possibleOutputs()}));var e},Ie.prototype.serialize=function(){for(var e=["step",this.input.serialize()],t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e};var Ne=Me;function Me(e,t,r,n){this.cx=3*e,this.bx=3*(r-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(n-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=n,this.p2x=r,this.p2y=n}function Re(e,t,r){return e*(1-r)+t*r}Me.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},Me.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},Me.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},Me.prototype.solveCurveX=function(e,t){var r,n,o,i,a;for(void 0===t&&(t=1e-6),o=e,a=0;a<8;a++){if(i=this.sampleCurveX(o)-e,Math.abs(i)<t)return o;var s=this.sampleCurveDerivativeX(o);if(Math.abs(s)<1e-6)break;o-=i/s}if((o=e)<(r=0))return r;if(o>(n=1))return n;for(;r<n;){if(i=this.sampleCurveX(o),Math.abs(i-e)<t)return o;e>i?r=o:n=o,o=.5*(n-r)+r}return o},Me.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var Pe=Object.freeze({number:Re,color:function(e,t,r){return new ue(Re(e.r,t.r,r),Re(e.g,t.g,r),Re(e.b,t.b,r),Re(e.a,t.a,r))},array:function(e,t,r){return e.map(function(e,n){return Re(e,t[n],r)})}}),Le=.95047,Fe=1,$e=1.08883,Ue=4/29,Je=6/29,De=3*Je*Je,Ge=Je*Je*Je,We=Math.PI/180,Be=180/Math.PI;function Ve(e){return e>Ge?Math.pow(e,1/3):e/De+Ue}function He(e){return e>Je?e*e*e:De*(e-Ue)}function Ze(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Xe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ke(e){var t=Xe(e.r),r=Xe(e.g),n=Xe(e.b),o=Ve((.4124564*t+.3575761*r+.1804375*n)/Le),i=Ve((.2126729*t+.7151522*r+.072175*n)/Fe);return{l:116*i-16,a:500*(o-i),b:200*(i-Ve((.0193339*t+.119192*r+.9503041*n)/$e)),alpha:e.a}}function Ye(e){var t=(e.l+16)/116,r=isNaN(e.a)?t:t+e.a/500,n=isNaN(e.b)?t:t-e.b/200;return t=Fe*He(t),r=Le*He(r),n=$e*He(n),new ue(Ze(3.2404542*r-1.5371385*t-.4985314*n),Ze(-.969266*r+1.8760108*t+.041556*n),Ze(.0556434*r-.2040259*t+1.0572252*n),e.alpha)}function Qe(e,t,r){var n=t-e;return e+r*(n>180||n<-180?n-360*Math.round(n/360):n)}var et={forward:Ke,reverse:Ye,interpolate:function(e,t,r){return{l:Re(e.l,t.l,r),a:Re(e.a,t.a,r),b:Re(e.b,t.b,r),alpha:Re(e.alpha,t.alpha,r)}}},tt={forward:function(e){var t=Ke(e),r=t.l,n=t.a,o=t.b,i=Math.atan2(o,n)*Be;return{h:i<0?i+360:i,c:Math.sqrt(n*n+o*o),l:r,alpha:e.a}},reverse:function(e){var t=e.h*We,r=e.c;return Ye({l:e.l,a:Math.cos(t)*r,b:Math.sin(t)*r,alpha:e.alpha})},interpolate:function(e,t,r){return{h:Qe(e.h,t.h,r),c:Re(e.c,t.c,r),l:Re(e.l,t.l,r),alpha:Re(e.alpha,t.alpha,r)}}},rt=Object.freeze({lab:et,hcl:tt}),nt=function(e,t,r,n,o){this.type=e,this.operator=t,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var i=0,a=o;i<a.length;i+=1){var s=a[i],l=s[0],u=s[1];this.labels.push(l),this.outputs.push(u)}};function ot(e,t,r,n){var o=n-r,i=e-r;return 0===o?0:1===t?i/o:(Math.pow(t,i)-1)/(Math.pow(t,o)-1)}nt.interpolationFactor=function(e,t,r,n){var o=0;if("exponential"===e.name)o=ot(t,e.base,r,n);else if("linear"===e.name)o=ot(t,1,r,n);else if("cubic-bezier"===e.name){var i=e.controlPoints;o=new Ne(i[0],i[1],i[2],i[3]).solve(ot(t,1,r,n))}return o},nt.parse=function(e,t){var r=e[0],n=e[1],o=e[2],i=e.slice(3);if(!Array.isArray(n)||0===n.length)return t.error("Expected an interpolation type expression.",1);if("linear"===n[0])n={name:"linear"};else if("exponential"===n[0]){var a=n[1];if("number"!=typeof a)return t.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:a}}else{if("cubic-bezier"!==n[0])return t.error("Unknown interpolation type "+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some(function(e){return"number"!=typeof e||e<0||e>1}))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:s}}if(e.length-1<4)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(!(o=t.parse(o,2,X)))return null;var l=[],u=null;"interpolate-hcl"===r||"interpolate-lab"===r?u=Q:t.expectedType&&"value"!==t.expectedType.kind&&(u=t.expectedType);for(var p=0;p<i.length;p+=2){var c=i[p],d=i[p+1],h=p+3,f=p+4;if("number"!=typeof c)return t.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]>=c)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',h);var y=t.parse(d,f,u);if(!y)return null;u=u||y.type,l.push([c,y])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"==typeof u.N?new nt(u,r,n,o,l):t.error("Type "+ie(u)+" is not interpolatable.")},nt.prototype.evaluate=function(e){var t=this.labels,r=this.outputs;if(1===t.length)return r[0].evaluate(e);var n=this.input.evaluate(e);if(n<=t[0])return r[0].evaluate(e);var o=t.length;if(n>=t[o-1])return r[o-1].evaluate(e);var i=Ee(t,n),a=t[i],s=t[i+1],l=nt.interpolationFactor(this.interpolation,n,a,s),u=r[i].evaluate(e),p=r[i+1].evaluate(e);return"interpolate"===this.operator?Pe[this.type.kind.toLowerCase()](u,p,l):"interpolate-hcl"===this.operator?tt.reverse(tt.interpolate(tt.forward(u),tt.forward(p),l)):et.reverse(et.interpolate(et.forward(u),et.forward(p),l))},nt.prototype.eachChild=function(e){e(this.input);for(var t=0,r=this.outputs;t<r.length;t+=1){e(r[t])}},nt.prototype.possibleOutputs=function(){return(e=[]).concat.apply(e,this.outputs.map(function(e){return e.possibleOutputs()}));var e},nt.prototype.serialize=function(){var e;e="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 t=[this.operator,e,this.input.serialize()],r=0;r<this.labels.length;r++)t.push(this.labels[r],this.outputs[r].serialize());return t};var it=function(e,t){this.type=e,this.args=t};it.parse=function(e,t){if(e.length<2)return t.error("Expectected at least one argument.");var r=null,n=t.expectedType;n&&"value"!==n.kind&&(r=n);for(var o=[],i=0,a=e.slice(1);i<a.length;i+=1){var s=a[i],l=t.parse(s,1+o.length,r,void 0,{typeAnnotation:"omit"});if(!l)return null;r=r||l.type,o.push(l)}var u=n&&o.some(function(e){return se(n,e.type)});return new it(u?te:r,o)},it.prototype.evaluate=function(e){for(var t=null,r=0,n=this.args;r<n.length;r+=1){if(null!==(t=n[r].evaluate(e)))break}return t},it.prototype.eachChild=function(e){this.args.forEach(e)},it.prototype.possibleOutputs=function(){return(e=[]).concat.apply(e,this.args.map(function(e){return e.possibleOutputs()}));var e},it.prototype.serialize=function(){var e=["coalesce"];return this.eachChild(function(t){e.push(t.serialize())}),e};var at=function(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t};at.prototype.evaluate=function(e){return this.result.evaluate(e)},at.prototype.eachChild=function(e){for(var t=0,r=this.bindings;t<r.length;t+=1){e(r[t][1])}e(this.result)},at.parse=function(e,t){if(e.length<4)return t.error("Expected at least 3 arguments, but found "+(e.length-1)+" instead.");for(var r=[],n=1;n<e.length-1;n+=2){var o=e[n];if("string"!=typeof o)return t.error("Expected string, but found "+typeof o+" instead.",n);if(/[^a-zA-Z0-9_]/.test(o))return t.error("Variable names must contain only alphanumeric characters or '_'.",n);var i=t.parse(e[n+1],n+1);if(!i)return null;r.push([o,i])}var a=t.parse(e[e.length-1],e.length-1,t.expectedType,r);return a?new at(r,a):null},at.prototype.possibleOutputs=function(){return this.result.possibleOutputs()},at.prototype.serialize=function(){for(var e=["let"],t=0,r=this.bindings;t<r.length;t+=1){var n=r[t],o=n[0],i=n[1];e.push(o,i.serialize())}return e.push(this.result.serialize()),e};var st=function(e,t,r){this.type=e,this.index=t,this.input=r};st.parse=function(e,t){if(3!==e.length)return t.error("Expected 2 arguments, but found "+(e.length-1)+" instead.");var r=t.parse(e[1],1,X),n=t.parse(e[2],2,oe(t.expectedType||te));if(!r||!n)return null;var o=n.type;return new st(o.itemType,r,n)},st.prototype.evaluate=function(e){var t=this.index.evaluate(e),r=this.input.evaluate(e);if(t<0)throw new ve("Array index out of bounds: "+t+" < 0.");if(t>=r.length)throw new ve("Array index out of bounds: "+t+" > "+(r.length-1)+".");if(t!==Math.floor(t))throw new ve("Array index must be an integer, but found "+t+" instead.");return r[t]},st.prototype.eachChild=function(e){e(this.index),e(this.input)},st.prototype.possibleOutputs=function(){return[void 0]},st.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var lt=function(e,t,r,n,o,i){this.inputType=e,this.type=t,this.input=r,this.cases=n,this.outputs=o,this.otherwise=i};lt.parse=function(e,t){if(e.length<5)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if(e.length%2!=1)return t.error("Expected an even number of arguments.");var r,n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);for(var o={},i=[],a=2;a<e.length-1;a+=2){var s=e[a],l=e[a+1];Array.isArray(s)||(s=[s]);var u=t.concat(a);if(0===s.length)return u.error("Expected at least one branch label.");for(var p=0,c=s;p<c.length;p+=1){var d=c[p];if("number"!=typeof d&&"string"!=typeof d)return u.error("Branch labels must be numbers or strings.");if("number"==typeof d&&Math.abs(d)>Number.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof d&&Math.floor(d)!==d)return u.error("Numeric branch labels must be integer values.");if(r){if(u.checkSubtype(r,fe(d)))return null}else r=fe(d);if(void 0!==o[String(d)])return u.error("Branch labels must be unique.");o[String(d)]=i.length}var h=t.parse(l,a,n);if(!h)return null;n=n||h.type,i.push(h)}var f=t.parse(e[1],1,te);if(!f)return null;var y=t.parse(e[e.length-1],e.length-1,n);return y?"value"!==f.type.kind&&t.concat(1).checkSubtype(r,f.type)?null:new lt(r,n,f,o,i,y):null},lt.prototype.evaluate=function(e){var t=this.input.evaluate(e);return(fe(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)},lt.prototype.eachChild=function(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)},lt.prototype.possibleOutputs=function(){return(e=[]).concat.apply(e,this.outputs.map(function(e){return e.possibleOutputs()})).concat(this.otherwise.possibleOutputs());var e},lt.prototype.serialize=function(){for(var e=this,t=["match",this.input.serialize()],r=[],n={},o=0,i=Object.keys(this.cases).sort();o<i.length;o+=1){var a=i[o],s=n[e.cases[a]];void 0===s?(n[e.cases[a]]=r.length,r.push([e.cases[a],[a]])):r[s][1].push(a)}for(var l=function(t){return"number"===e.inputType.kind?Number(t):t},u=0,p=r;u<p.length;u+=1){var c=p[u],d=c[0],h=c[1];1===h.length?t.push(l(h[0])):t.push(h.map(l)),t.push(e.outputs[d].serialize())}return t.push(this.otherwise.serialize()),t};var ut=function(e,t,r){this.type=e,this.branches=t,this.otherwise=r};function pt(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function ct(e,t,r,n){return 0===n.compare(t,r)}function dt(e,t,r){var n="=="!==e&&"!="!==e;return function(){function o(e,t,r){this.type=Y,this.lhs=e,this.rhs=t,this.collator=r,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}return o.parse=function(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");var r=e[0],i=t.parse(e[1],1,te);if(!i)return null;if(!pt(r,i.type))return t.concat(1).error('"'+r+"\" comparisons are not supported for type '"+ie(i.type)+"'.");var a=t.parse(e[2],2,te);if(!a)return null;if(!pt(r,a.type))return t.concat(2).error('"'+r+"\" comparisons are not supported for type '"+ie(a.type)+"'.");if(i.type.kind!==a.type.kind&&"value"!==i.type.kind&&"value"!==a.type.kind)return t.error("Cannot compare types '"+ie(i.type)+"' and '"+ie(a.type)+"'.");n&&("value"===i.type.kind&&"value"!==a.type.kind?i=new be(a.type,[i]):"value"!==i.type.kind&&"value"===a.type.kind&&(a=new be(i.type,[a])));var s=null;if(4===e.length){if("string"!==i.type.kind&&"string"!==a.type.kind&&"value"!==i.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(!(s=t.parse(e[3],3,re)))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(n&&this.hasUntypedArgument){var s=fe(i),l=fe(a);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new ve('Expected arguments for "'+e+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&&!n&&this.hasUntypedArgument){var u=fe(i),p=fe(a);if("string"!==u.kind||"string"!==p.kind)return t(o,i,a)}return this.collator?r(o,i,a,this.collator.evaluate(o)):t(o,i,a)},o.prototype.eachChild=function(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)},o.prototype.possibleOutputs=function(){return[!0,!1]},o.prototype.serialize=function(){var t=[e];return this.eachChild(function(e){t.push(e.serialize())}),t},o}()}ut.parse=function(e,t){if(e.length<4)return t.error("Expected at least 3 arguments, but found only "+(e.length-1)+".");if(e.length%2!=0)return t.error("Expected an odd number of arguments.");var r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);for(var n=[],o=1;o<e.length-1;o+=2){var i=t.parse(e[o],o,Y);if(!i)return null;var a=t.parse(e[o+1],o+1,r);if(!a)return null;n.push([i,a]),r=r||a.type}var s=t.parse(e[e.length-1],e.length-1,r);return s?new ut(r,n,s):null},ut.prototype.evaluate=function(e){for(var t=0,r=this.branches;t<r.length;t+=1){var n=r[t],o=n[0],i=n[1];if(o.evaluate(e))return i.evaluate(e)}return this.otherwise.evaluate(e)},ut.prototype.eachChild=function(e){for(var t=0,r=this.branches;t<r.length;t+=1){var n=r[t],o=n[0],i=n[1];e(o),e(i)}e(this.otherwise)},ut.prototype.possibleOutputs=function(){return(e=[]).concat.apply(e,this.branches.map(function(e){e[0];return e[1].possibleOutputs()})).concat(this.otherwise.possibleOutputs());var e},ut.prototype.serialize=function(){var e=["case"];return this.eachChild(function(t){e.push(t.serialize())}),e};var ht=dt("==",function(e,t,r){return t===r},ct),ft=dt("!=",function(e,t,r){return t!==r},function(e,t,r,n){return!ct(0,t,r,n)}),yt=dt("<",function(e,t,r){return t<r},function(e,t,r,n){return n.compare(t,r)<0}),mt=dt(">",function(e,t,r){return t>r},function(e,t,r,n){return n.compare(t,r)>0}),vt=dt("<=",function(e,t,r){return t<=r},function(e,t,r,n){return n.compare(t,r)<=0}),gt=dt(">=",function(e,t,r){return t>=r},function(e,t,r,n){return n.compare(t,r)>=0}),bt=function(e){this.type=X,this.input=e};bt.parse=function(e,t){if(2!==e.length)return t.error("Expected 1 argument, but found "+(e.length-1)+" instead.");var r=t.parse(e[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?t.error("Expected argument of type string or array, but found "+ie(r.type)+" instead."):new bt(r):null},bt.prototype.evaluate=function(e){var t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new ve("Expected value to be of type string or array, but found "+ie(fe(t))+" instead.")},bt.prototype.eachChild=function(e){e(this.input)},bt.prototype.possibleOutputs=function(){return[void 0]},bt.prototype.serialize=function(){var e=["length"];return this.eachChild(function(t){e.push(t.serialize())}),e};var xt={"==":ht,"!=":ft,">":mt,"<":yt,">=":gt,"<=":vt,array:be,at:st,boolean:be,case:ut,coalesce:it,collator:_e,format:xe,interpolate:nt,"interpolate-hcl":nt,"interpolate-lab":nt,length:bt,let:at,literal:me,match:lt,number:be,object:be,step:Ie,string:be,"to-boolean":ke,"to-color":ke,"to-number":ke,"to-string":ke,var:qe};function wt(e,t){var r=t[0],n=t[1],o=t[2],i=t[3];r=r.evaluate(e),n=n.evaluate(e),o=o.evaluate(e);var a=i?i.evaluate(e):1,s=he(r,n,o,a);if(s)throw new ve(s);return new ue(r/255*a,n/255*a,o/255*a,a)}function kt(e,t){return e in t}function jt(e,t){var r=t[e];return void 0===r?null:r}function zt(e){return{type:e}}function St(e){return{result:"success",value:e}}function _t(e){return{result:"error",value:e}}function Tt(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function Ot(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function At(e){return!!e.expression&&e.expression.interpolated}function qt(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function Ct(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Et(e){return e}function It(e,t){var r,n,o,i="color"===t.type,a=e.stops&&"object"==typeof e.stops[0][0],s=a||void 0!==e.property,l=a||!s,u=e.type||(At(t)?"exponential":"interval");if(i&&((e=B({},e)).stops&&(e.stops=e.stops.map(function(e){return[e[0],ue.parse(e[1])]})),e.default?e.default=ue.parse(e.default):e.default=ue.parse(t.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!rt[e.colorSpace])throw new Error("Unknown color space: "+e.colorSpace);if("exponential"===u)r=Pt;else if("interval"===u)r=Rt;else if("categorical"===u){r=Mt,n=Object.create(null);for(var p=0,c=e.stops;p<c.length;p+=1){var d=c[p];n[d[0]]=d[1]}o=typeof e.stops[0][0]}else{if("identity"!==u)throw new Error('Unknown function type "'+u+'"');r=Lt}if(a){for(var h={},f=[],y=0;y<e.stops.length;y++){var m=e.stops[y],v=m[0].zoom;void 0===h[v]&&(h[v]={zoom:v,type:e.type,property:e.property,default:e.default,stops:[]},f.push(v)),h[v].stops.push([m[0].value,m[1]])}for(var g=[],b=0,x=f;b<x.length;b+=1){var w=x[b];g.push([h[w].zoom,It(h[w],t)])}return{kind:"composite",interpolationFactor:nt.interpolationFactor.bind(void 0,{name:"linear"}),zoomStops:g.map(function(e){return e[0]}),evaluate:function(r,n){var o=r.zoom;return Pt({stops:g,base:e.base},t,o).evaluate(o,n)}}}return l?{kind:"camera",interpolationFactor:"exponential"===u?nt.interpolationFactor.bind(void 0,{name:"exponential",base:void 0!==e.base?e.base:1}):function(){return 0},zoomStops:e.stops.map(function(e){return e[0]}),evaluate:function(i){var a=i.zoom;return r(e,t,a,n,o)}}:{kind:"source",evaluate:function(i,a){var s=a&&a.properties?a.properties[e.property]:void 0;return void 0===s?Nt(e.default,t.default):r(e,t,s,n,o)}}}function Nt(e,t,r){return void 0!==e?e:void 0!==t?t:void 0!==r?r:void 0}function Mt(e,t,r,n,o){return Nt(typeof r===o?n[r]:void 0,e.default,t.default)}function Rt(e,t,r){if("number"!==qt(r))return Nt(e.default,t.default);var n=e.stops.length;if(1===n)return e.stops[0][1];if(r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[n-1][0])return e.stops[n-1][1];var o=Ft(e.stops,r);return e.stops[o][1]}function Pt(e,t,r){var n=void 0!==e.base?e.base:1;if("number"!==qt(r))return Nt(e.default,t.default);var o=e.stops.length;if(1===o)return e.stops[0][1];if(r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[o-1][0])return e.stops[o-1][1];var i=Ft(e.stops,r),a=function(e,t,r,n){var o=n-r,i=e-r;return 0===o?0:1===t?i/o:(Math.pow(t,i)-1)/(Math.pow(t,o)-1)}(r,n,e.stops[i][0],e.stops[i+1][0]),s=e.stops[i][1],l=e.stops[i+1][1],u=Pe[t.type]||Et;if(e.colorSpace&&"rgb"!==e.colorSpace){var p=rt[e.colorSpace];u=function(e,t){return p.reverse(p.interpolate(p.forward(e),p.forward(t),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=s.evaluate.apply(void 0,e),n=l.evaluate.apply(void 0,e);if(void 0!==r&&void 0!==n)return u(r,n,a)}}:u(s,l,a)}function Lt(e,t,r){return"color"===t.type?r=ue.parse(r):"formatted"===t.type?r=de.fromString(r.toString()):qt(r)===t.type||"enum"===t.type&&t.values[r]||(r=void 0),Nt(r,e.default,t.default)}function Ft(e,t){for(var r,n,o=0,i=e.length-1,a=0;o<=i;){if(r=e[a=Math.floor((o+i)/2)][0],n=e[a+1][0],t===r||t>r&&t<n)return a;r<t?o=a+1:r>t&&(i=a-1)}return Math.max(a-1,0)}Se.register(xt,{error:[{kind:"error"},[K],function(e,t){var r=t[0];throw new ve(r.evaluate(e))}],typeof:[K,[te],function(e,t){return ie(fe(t[0].evaluate(e)))}],"to-rgba":[oe(X,4),[Q],function(e,t){return t[0].evaluate(e).toArray()}],rgb:[Q,[X,X,X],wt],rgba:[Q,[X,X,X,X],wt],has:{type:Y,overloads:[[[K],function(e,t){return kt(t[0].evaluate(e),e.properties())}],[[K,ee],function(e,t){var r=t[0],n=t[1];return kt(r.evaluate(e),n.evaluate(e))}]]},get:{type:te,overloads:[[[K],function(e,t){return jt(t[0].evaluate(e),e.properties())}],[[K,ee],function(e,t){var r=t[0],n=t[1];return jt(r.evaluate(e),n.evaluate(e))}]]},"feature-state":[te,[K],function(e,t){return jt(t[0].evaluate(e),e.featureState||{})}],properties:[ee,[],function(e){return e.properties()}],"geometry-type":[K,[],function(e){return e.geometryType()}],id:[te,[],function(e){return e.id()}],zoom:[X,[],function(e){return e.globals.zoom}],"heatmap-density":[X,[],function(e){return e.globals.heatmapDensity||0}],"line-progress":[X,[],function(e){return e.globals.lineProgress||0}],"+":[X,zt(X),function(e,t){for(var r=0,n=0,o=t;n<o.length;n+=1){r+=o[n].evaluate(e)}return r}],"*":[X,zt(X),function(e,t){for(var r=1,n=0,o=t;n<o.length;n+=1){r*=o[n].evaluate(e)}return r}],"-":{type:X,overloads:[[[X,X],function(e,t){var r=t[0],n=t[1];return r.evaluate(e)-n.evaluate(e)}],[[X],function(e,t){return-t[0].evaluate(e)}]]},"/":[X,[X,X],function(e,t){var r=t[0],n=t[1];return r.evaluate(e)/n.evaluate(e)}],"%":[X,[X,X],function(e,t){var r=t[0],n=t[1];return r.evaluate(e)%n.evaluate(e)}],ln2:[X,[],function(){return Math.LN2}],pi:[X,[],function(){return Math.PI}],e:[X,[],function(){return Math.E}],"^":[X,[X,X],function(e,t){var r=t[0],n=t[1];return Math.pow(r.evaluate(e),n.evaluate(e))}],sqrt:[X,[X],function(e,t){var r=t[0];return Math.sqrt(r.evaluate(e))}],log10:[X,[X],function(e,t){var r=t[0];return Math.log(r.evaluate(e))/Math.LN10}],ln:[X,[X],function(e,t){var r=t[0];return Math.log(r.evaluate(e))}],log2:[X,[X],function(e,t){var r=t[0];return Math.log(r.evaluate(e))/Math.LN2}],sin:[X,[X],function(e,t){var r=t[0];return Math.sin(r.evaluate(e))}],cos:[X,[X],function(e,t){var r=t[0];return Math.cos(r.evaluate(e))}],tan:[X,[X],function(e,t){var r=t[0];return Math.tan(r.evaluate(e))}],asin:[X,[X],function(e,t){var r=t[0];return Math.asin(r.evaluate(e))}],acos:[X,[X],function(e,t){var r=t[0];return Math.acos(r.evaluate(e))}],atan:[X,[X],function(e,t){var r=t[0];return Math.atan(r.evaluate(e))}],min:[X,zt(X),function(e,t){return Math.min.apply(Math,t.map(function(t){return t.evaluate(e)}))}],max:[X,zt(X),function(e,t){return Math.max.apply(Math,t.map(function(t){return t.evaluate(e)}))}],abs:[X,[X],function(e,t){var r=t[0];return Math.abs(r.evaluate(e))}],round:[X,[X],function(e,t){var r=t[0].evaluate(e);return r<0?-Math.round(-r):Math.round(r)}],floor:[X,[X],function(e,t){var r=t[0];return Math.floor(r.evaluate(e))}],ceil:[X,[X],function(e,t){var r=t[0];return Math.ceil(r.evaluate(e))}],"filter-==":[Y,[K,te],function(e,t){var r=t[0],n=t[1];return e.properties()[r.value]===n.value}],"filter-id-==":[Y,[te],function(e,t){var r=t[0];return e.id()===r.value}],"filter-type-==":[Y,[K],function(e,t){var r=t[0];return e.geometryType()===r.value}],"filter-<":[Y,[K,te],function(e,t){var r=t[0],n=t[1],o=e.properties()[r.value],i=n.value;return typeof o==typeof i&&o<i}],"filter-id-<":[Y,[te],function(e,t){var r=t[0],n=e.id(),o=r.value;return typeof n==typeof o&&n<o}],"filter->":[Y,[K,te],function(e,t){var r=t[0],n=t[1],o=e.properties()[r.value],i=n.value;return typeof o==typeof i&&o>i}],"filter-id->":[Y,[te],function(e,t){var r=t[0],n=e.id(),o=r.value;return typeof n==typeof o&&n>o}],"filter-<=":[Y,[K,te],function(e,t){var r=t[0],n=t[1],o=e.properties()[r.value],i=n.value;return typeof o==typeof i&&o<=i}],"filter-id-<=":[Y,[te],function(e,t){var r=t[0],n=e.id(),o=r.value;return typeof n==typeof o&&n<=o}],"filter->=":[Y,[K,te],function(e,t){var r=t[0],n=t[1],o=e.properties()[r.value],i=n.value;return typeof o==typeof i&&o>=i}],"filter-id->=":[Y,[te],function(e,t){var r=t[0],n=e.id(),o=r.value;return typeof n==typeof o&&n>=o}],"filter-has":[Y,[te],function(e,t){return t[0].value in e.properties()}],"filter-has-id":[Y,[],function(e){return null!==e.id()}],"filter-type-in":[Y,[oe(K)],function(e,t){return t[0].value.indexOf(e.geometryType())>=0}],"filter-id-in":[Y,[oe(te)],function(e,t){return t[0].value.indexOf(e.id())>=0}],"filter-in-small":[Y,[K,oe(te)],function(e,t){var r=t[0];return t[1].value.indexOf(e.properties()[r.value])>=0}],"filter-in-large":[Y,[K,oe(te)],function(e,t){var r=t[0],n=t[1];return function(e,t,r,n){for(;r<=n;){var o=r+n>>1;if(t[o]===e)return!0;t[o]>e?n=o-1:r=o+1}return!1}(e.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:Y,overloads:[[[Y,Y],function(e,t){var r=t[0],n=t[1];return r.evaluate(e)&&n.evaluate(e)}],[zt(Y),function(e,t){for(var r=0,n=t;r<n.length;r+=1){if(!n[r].evaluate(e))return!1}return!0}]]},any:{type:Y,overloads:[[[Y,Y],function(e,t){var r=t[0],n=t[1];return r.evaluate(e)||n.evaluate(e)}],[zt(Y),function(e,t){for(var r=0,n=t;r<n.length;r+=1){if(n[r].evaluate(e))return!0}return!1}]]},"!":[Y,[Y],function(e,t){return!t[0].evaluate(e)}],"is-supported-script":[Y,[K],function(e,t){var r=t[0],n=e.globals&&e.globals.isSupportedScript;return!n||n(r.evaluate(e))}],upcase:[K,[K],function(e,t){return t[0].evaluate(e).toUpperCase()}],downcase:[K,[K],function(e,t){return t[0].evaluate(e).toLowerCase()}],concat:[K,zt(te),function(e,t){return t.map(function(t){return ye(t.evaluate(e))}).join("")}],"resolved-locale":[K,[re],function(e,t){return t[0].evaluate(e).resolvedLocale()}]});var $t=function(e,t){var r;this.expression=e,this._warningHistory={},this._evaluator=new ze,this._defaultValue="color"===(r=t).type&&Ct(r.default)?new ue(0,0,0,0):"color"===r.type?ue.parse(r.default)||null:void 0===r.default?null:r.default,this._enumValues="enum"===t.type?t.values:null};function Ut(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in xt}function Jt(e,t){var r=new Ce(xt,[],function(e){var t={color:Q,string:K,number:X,enum:K,boolean:Y,formatted:ne};if("array"===e.type)return oe(t[e.value]||te,e.length);return t[e.type]}(t)),n=r.parse(e,void 0,void 0,void 0,"string"===t.type?{typeAnnotation:"coerce"}:void 0);return n?St(new $t(n,t)):_t(r.errors)}$t.prototype.evaluateWithoutErrorHandling=function(e,t,r){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=r,this.expression.evaluate(this._evaluator)},$t.prototype.evaluate=function(e,t,r){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=r||null;try{var n=this.expression.evaluate(this._evaluator);if(null==n)return this._defaultValue;if(this._enumValues&&!(n in this._enumValues))throw new ve("Expected value to be one of "+Object.keys(this._enumValues).map(function(e){return JSON.stringify(e)}).join(", ")+", but found "+JSON.stringify(n)+" instead.");return n}catch(o){return this._warningHistory[o.message]||(this._warningHistory[o.message]=!0,"undefined"!=typeof console&&console.warn(o.message)),this._defaultValue}};var Dt=function(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!Oe(t.expression)};Dt.prototype.evaluateWithoutErrorHandling=function(e,t,r){return this._styleExpression.evaluateWithoutErrorHandling(e,t,r)},Dt.prototype.evaluate=function(e,t,r){return this._styleExpression.evaluate(e,t,r)};var Gt=function(e,t,r){this.kind=e,this.zoomStops=r.labels,this._styleExpression=t,this.isStateDependent="camera"!==e&&!Oe(t.expression),r instanceof nt&&(this._interpolationType=r.interpolation)};function Wt(e,t){if("error"===(e=Jt(e,t)).result)return e;var r=e.value.expression,n=Te(r);if(!n&&!Tt(t))return _t([new V("","data expressions not supported")]);var o=Ae(r,["zoom"]);if(!o&&!Ot(t))return _t([new V("","zoom expressions not supported")]);var i=function e(t){var r=null;if(t instanceof at)r=e(t.result);else if(t instanceof it)for(var n=0,o=t.args;n<o.length;n+=1){var i=o[n];if(r=e(i))break}else(t instanceof Ie||t instanceof nt)&&t.input instanceof Se&&"zoom"===t.input.name&&(r=t);if(r instanceof V)return r;t.eachChild(function(t){var n=e(t);n instanceof V?r=n:!r&&n?r=new V("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):r&&n&&r!==n&&(r=new V("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))});return r}(r);return i||o?i instanceof V?_t([i]):i instanceof nt&&!At(t)?_t([new V("",'"interpolate" expressions cannot be used with this property')]):St(i?new Gt(n?"camera":"composite",e.value,i):new Dt(n?"constant":"source",e.value)):_t([new V("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}Gt.prototype.evaluateWithoutErrorHandling=function(e,t,r){return this._styleExpression.evaluateWithoutErrorHandling(e,t,r)},Gt.prototype.evaluate=function(e,t,r){return this._styleExpression.evaluate(e,t,r)},Gt.prototype.interpolationFactor=function(e,t,r){return this._interpolationType?nt.interpolationFactor(this._interpolationType,e,t,r):0};var Bt=function(e,t){this._parameters=e,this._specification=t,B(this,It(this._parameters,this._specification))};function Vt(e){return"object"==typeof e?["literal",e]:e}function Ht(e,t){var r=e.stops;if(!r)return function(e,t){var r=["get",e.property];if(void 0===e.default)return"string"===t.type?["string",r]:r;if("enum"===t.type)return["match",r,Object.keys(t.values),r,e.default];var n=["color"===t.type?"to-color":t.type,r,Vt(e.default)];return"array"===t.type&&n.splice(1,0,t.value,t.length||null),n}(e,t);var n=r&&"object"==typeof r[0][0],o=n||void 0!==e.property,i=n||!o;return r=r.map(function(e){return!o&&t.tokens&&"string"==typeof e[1]?[e[0],tr(e[1])]:[e[0],Vt(e[1])]}),n?function(e,t,r){for(var n={},o={},i=[],a=0;a<r.length;a++){var s=r[a],l=s[0].zoom;void 0===n[l]&&(n[l]={zoom:l,type:e.type,property:e.property,default:e.default},o[l]=[],i.push(l)),o[l].push([s[0].value,s[1]])}if("exponential"===er({},t)){for(var u=[Zt(e),["linear"],["zoom"]],p=0,c=i;p<c.length;p+=1){var d=c[p],h=Kt(n[d],t,o[d]);Qt(u,d,h,!1)}return u}for(var f=["step",["zoom"]],y=0,m=i;y<m.length;y+=1){var v=m[y],g=Kt(n[v],t,o[v]);Qt(f,v,g,!0)}return Yt(f),f}(e,t,r):i?function(e,t,r,n){void 0===n&&(n=["zoom"]);var o,i=er(e,t),a=!1;if("interval"===i)o=["step",n],a=!0;else{if("exponential"!==i)throw new Error('Unknown zoom function type "'+i+'"');var s=void 0!==e.base?e.base:1;o=[Zt(e),["exponential",s],n]}for(var l=0,u=r;l<u.length;l+=1){var p=u[l];Qt(o,p[0],p[1],a)}return Yt(o),o}(e,t,r):Kt(e,t,r)}function Zt(e){switch(e.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function Xt(e,t){return void 0!==e?e:void 0!==t?t:void 0}function Kt(e,t,r){var n=er(e,t),o=["get",e.property];if("categorical"===n&&"boolean"==typeof r[0][0]){for(var i=["case"],a=0,s=r;a<s.length;a+=1){var l=s[a];i.push(["==",o,l[0]],l[1])}return i.push(Vt(Xt(e.default,t.default))),i}if("categorical"===n){for(var u=["match",o],p=0,c=r;p<c.length;p+=1){var d=c[p];Qt(u,d[0],d[1],!1)}return u.push(Vt(Xt(e.default,t.default))),u}if("interval"===n){for(var h=["step",["number",o]],f=0,y=r;f<y.length;f+=1){var m=y[f];Qt(h,m[0],m[1],!0)}return Yt(h),void 0===e.default?h:["case",["==",["typeof",o],"number"],h,Vt(e.default)]}if("exponential"===n){for(var v=void 0!==e.base?e.base:1,g=[Zt(e),["exponential",v],["number",o]],b=0,x=r;b<x.length;b+=1){var w=x[b];Qt(g,w[0],w[1],!1)}return void 0===e.default?g:["case",["==",["typeof",o],"number"],g,Vt(e.default)]}throw new Error("Unknown property function type "+n)}function Yt(e){"step"===e[0]&&3===e.length&&(e.push(0),e.push(e[3]))}function Qt(e,t,r,n){e.length>3&&t===e[e.length-2]||(n&&2===e.length||e.push(t),e.push(r))}function er(e,t){return e.type?e.type:t.expression.interpolated?"exponential":"interval"}function tr(e){for(var t=["concat"],r=/{([^{}]+)}/g,n=0,o=r.exec(e);null!==o;o=r.exec(e)){var i=e.slice(n,r.lastIndex-o[0].length);n=r.lastIndex,i.length>0&&t.push(i),t.push(["get",o[1]])}if(1===t.length)return e;if(n<e.length)t.push(e.slice(n));else if(2===t.length)return["to-string",t[1]];return t}function rr(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(var t=0,r=e.slice(1);t<r.length;t+=1){var n=r[t];if(!rr(n)&&"boolean"!=typeof n)return!1}return!0;default:return!0}}Bt.deserialize=function(e){return new Bt(e._parameters,e._specification)},Bt.serialize=function(e){return{_parameters:e._parameters,_specification:e._specification}};var nr={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function or(e,t){return e<t?-1:e>t?1:0}function ir(e){if(!e)return!0;var t,r=e[0];return e.length<=1?"any"!==r:"=="===r?ar(e[1],e[2],"=="):"!="===r?ur(ar(e[1],e[2],"==")):"<"===r||">"===r||"<="===r||">="===r?ar(e[1],e[2],r):"any"===r?(t=e.slice(1),["any"].concat(t.map(ir))):"all"===r?["all"].concat(e.slice(1).map(ir)):"none"===r?["all"].concat(e.slice(1).map(ir).map(ur)):"in"===r?sr(e[1],e.slice(2)):"!in"===r?ur(sr(e[1],e.slice(2))):"has"===r?lr(e[1]):"!has"!==r||ur(lr(e[1]))}function ar(e,t,r){switch(e){case"$type":return["filter-type-"+r,t];case"$id":return["filter-id-"+r,t];default:return["filter-"+r,e,t]}}function sr(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(function(e){return typeof e!=typeof t[0]})?["filter-in-large",e,["literal",t.sort(or)]]:["filter-in-small",e,["literal",t]]}}function lr(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function ur(e){return["!",e]}function pr(e){return function e(t,r){if(rr(t))return t;if(!t)return!0;var n=t[0];if(t.length<=1)return"any"!==n;var o;if("=="===n||"!="===n||"<"===n||">"===n||"<="===n||">="===n){var i=t,a=i[1],s=i[2];o=function(e,t,r,n){var o;if("$type"===e)return[r,["geometry-type"],t];o="$id"===e?["id"]:["get",e];if(n&&null!==t){var i=typeof t;n[e]=i}if("=="===r&&"$id"!==e&&null===t)return["all",["has",e],["==",o,null]];if("!="===r&&"$id"!==e&&null===t)return["any",["!",["has",e]],["!=",o,null]];return[r,o,t]}(a,s,n,r)}else{if("any"===n){var l=t.slice(1).map(function(t){var r={},n=e(t,r),o=function(e){var t=[];for(var r in e){var n="$id"===r?["id"]:["get",r];t.push(["==",["typeof",n],e[r]])}if(0===t.length)return!0;if(1===t.length)return t[0];return["all"].concat(t)}(r);return!0===o?n:["case",o,n,!1]});return["any"].concat(l)}if("all"===n){var u=t.slice(1).map(function(t){return e(t,r)});return u.length>1?["all"].concat(u):(p=[]).concat.apply(p,u)}if("none"===n)return["!",e(["any"].concat(t.slice(1)),{})];o="in"===n?cr(t[1],t.slice(2)):"!in"===n?cr(t[1],t.slice(2),!0):"has"===n?dr(t[1]):"!has"!==n||["!",dr(t[1])]}return o;var p}(e,{})}function cr(e,t,r){if(void 0===r&&(r=!1),0===t.length)return r;var n;n="$type"===e?["geometry-type"]:"$id"===e?["id"]:["get",e];for(var o=!0,i=typeof t[0],a=0,s=t;a<s.length;a+=1){if(typeof s[a]!==i){o=!1;break}}return!o||"string"!==i&&"number"!==i?[r?"all":"any"].concat(t.map(function(e){return[r?"!=":"==",n,e]})):["match",n,t,!r,r]}function dr(e){return"$type"===e||("$id"===e?["!=",["id"],null]:["has",e])}function hr(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!hr(e[r],t[r]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==t){if("object"!=typeof t)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!hr(e[n],t[n]))return!1;return!0}return e===t}var fr={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 yr(e,t,r){r.push({command:fr.addSource,args:[e,t[e]]})}function mr(e,t,r){t.push({command:fr.removeSource,args:[e]}),r[e]=!0}function vr(e,t,r,n){mr(e,r,n),yr(e,t,r)}function gr(e,t,r){var n;for(n in e[r])if(e[r].hasOwnProperty(n)&&"data"!==n&&!hr(e[r][n],t[r][n]))return!1;for(n in t[r])if(t[r].hasOwnProperty(n)&&"data"!==n&&!hr(e[r][n],t[r][n]))return!1;return!0}function br(e,t,r,n,o,i){var a;for(a in t=t||{},e=e||{})e.hasOwnProperty(a)&&(hr(e[a],t[a])||r.push({command:i,args:[n,a,t[a],o]}));for(a in t)t.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(hr(e[a],t[a])||r.push({command:i,args:[n,a,t[a],o]}))}function xr(e){return e.id}function wr(e,t){return e[t.id]=t,e}var kr=function(e,t,r,n){this.message=(e?e+": ":"")+r,n&&(this.identifier=n),null!=t&&t.__line__&&(this.line=t.__line__)};function jr(e){this.error=e,this.message=e.message;var t=e.message.match(/line (\d+)/);this.line=t?parseInt(t[1],10):0}function zr(e){var t=e.key,r=e.value;return r?[new kr(t,r,"constants have been deprecated as of v8")]:[]}function Sr(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function _r(e){return Array.isArray(e)?e.map(_r):Sr(e)}function Tr(e){var t=e.key,r=e.value,n=e.valueSpec||{},o=e.objectElementValidators||{},i=e.style,a=e.styleSpec,s=[],l=qt(r);if("object"!==l)return[new kr(t,r,"object expected, "+l+" found")];for(var u in r){var p=u.split(".")[0],c=n[p]||n["*"],d=void 0;if(o[p])d=o[p];else if(n[p])d=Jr;else if(o["*"])d=o["*"];else{if(!n["*"]){s.push(new kr(t,r[u],'unknown property "'+u+'"'));continue}d=Jr}s=s.concat(d({key:(t?t+".":t)+u,value:r[u],valueSpec:c,style:i,styleSpec:a,object:r,objectKey:u},r))}for(var h in n)o[h]||n[h].required&&void 0===n[h].default&&void 0===r[h]&&s.push(new kr(t,r,'missing required property "'+h+'"'));return s}function Or(e){var t=e.value,r=e.valueSpec,n=e.style,o=e.styleSpec,i=e.key,a=e.arrayElementValidator||Jr;if("array"!==qt(t))return[new kr(i,t,"array expected, "+qt(t)+" found")];if(r.length&&t.length!==r.length)return[new kr(i,t,"array length "+r.length+" expected, length "+t.length+" found")];if(r["min-length"]&&t.length<r["min-length"])return[new kr(i,t,"array length at least "+r["min-length"]+" expected, length "+t.length+" found")];var s={type:r.value};o.$version<7&&(s.function=r.function),"object"===qt(r.value)&&(s=r.value);for(var l=[],u=0;u<t.length;u++)l=l.concat(a({array:t,arrayIndex:u,value:t[u],valueSpec:s,style:n,styleSpec:o,key:i+"["+u+"]"}));return l}function Ar(e){var t=e.key,r=e.value,n=e.valueSpec,o=qt(r);return"number"!==o?[new kr(t,r,"number expected, "+o+" found")]:"minimum"in n&&r<n.minimum?[new kr(t,r,r+" is less than the minimum value "+n.minimum)]:"maximum"in n&&r>n.maximum?[new kr(t,r,r+" is greater than the maximum value "+n.maximum)]:[]}function qr(e){var t,r,n,o=e.valueSpec,i=Sr(e.value.type),a={},s="categorical"!==i&&void 0===e.value.property,l=!s,u="array"===qt(e.value.stops)&&"array"===qt(e.value.stops[0])&&"object"===qt(e.value.stops[0][0]),p=Tr({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===i)return[new kr(e.key,e.value,'identity function may not have a "stops" property')];var t=[],r=e.value;t=t.concat(Or({key:e.key,value:r,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:c})),"array"===qt(r)&&0===r.length&&t.push(new kr(e.key,r,"array must have at least one stop"));return t},default:function(e){return Jr({key:e.key,value:e.value,valueSpec:o,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===i&&s&&p.push(new kr(e.key,e.value,'missing required property "property"')),"identity"===i||e.value.stops||p.push(new kr(e.key,e.value,'missing required property "stops"')),"exponential"===i&&e.valueSpec.expression&&!At(e.valueSpec)&&p.push(new kr(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!Tt(e.valueSpec)?p.push(new kr(e.key,e.value,"property functions not supported")):s&&!Ot(e.valueSpec)&&p.push(new kr(e.key,e.value,"zoom functions not supported"))),"categorical"!==i&&!u||void 0!==e.value.property||p.push(new kr(e.key,e.value,'"property" property is required')),p;function c(e){var t=[],i=e.value,s=e.key;if("array"!==qt(i))return[new kr(s,i,"array expected, "+qt(i)+" found")];if(2!==i.length)return[new kr(s,i,"array length 2 expected, length "+i.length+" found")];if(u){if("object"!==qt(i[0]))return[new kr(s,i,"object expected, "+qt(i[0])+" found")];if(void 0===i[0].zoom)return[new kr(s,i,"object stop key must have zoom")];if(void 0===i[0].value)return[new kr(s,i,"object stop key must have value")];if(n&&n>Sr(i[0].zoom))return[new kr(s,i[0].zoom,"stop zoom values must appear in ascending order")];Sr(i[0].zoom)!==n&&(n=Sr(i[0].zoom),r=void 0,a={}),t=t.concat(Tr({key:s+"[0]",value:i[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:Ar,value:d}}))}else t=t.concat(d({key:s+"[0]",value:i[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},i));return Ut(_r(i[1]))?t.concat([new kr(s+"[1]",i[1],"expressions are not allowed in function stops.")]):t.concat(Jr({key:s+"[1]",value:i[1],valueSpec:o,style:e.style,styleSpec:e.styleSpec}))}function d(e,n){var s=qt(e.value),l=Sr(e.value),u=null!==e.value?e.value:n;if(t){if(s!==t)return[new kr(e.key,u,s+" stop domain type must match previous stop domain type "+t)]}else t=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new kr(e.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==i){var p="number expected, "+s+" found";return Tt(o)&&void 0===i&&(p+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new kr(e.key,u,p)]}return"categorical"!==i||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==i&&"number"===s&&void 0!==r&&l<r?[new kr(e.key,u,"stop domain values must appear in ascending order")]:(r=l,"categorical"===i&&l in a?[new kr(e.key,u,"stop domain values must be unique")]:(a[l]=!0,[])):[new kr(e.key,u,"integer expected, found "+l)]}}function Cr(e){var t=("property"===e.expressionContext?Wt:Jt)(_r(e.value),e.valueSpec);return"error"===t.result?t.value.map(function(t){return new kr(""+e.key+t.key,e.value,t.message)}):"property"===e.expressionContext&&"text-font"===e.propertyKey&&-1!==t.value._styleExpression.expression.possibleOutputs().indexOf(void 0)?[new kr(e.key,e.value,'Invalid data expression for "'+e.propertyKey+'". Output values must be contained as literals within the expression.')]:"property"!==e.expressionContext||"layout"!==e.propertyType||Oe(t.value._styleExpression.expression)?"filter"!==e.expressionContext||Oe(t.value.expression)?[]:[new kr(e.key,e.value,'"feature-state" data expressions are not supported with filters.')]:[new kr(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')]}function Er(e){var t=e.key,r=e.value,n=e.valueSpec,o=[];return Array.isArray(n.values)?-1===n.values.indexOf(Sr(r))&&o.push(new kr(t,r,"expected one of ["+n.values.join(", ")+"], "+JSON.stringify(r)+" found")):-1===Object.keys(n.values).indexOf(Sr(r))&&o.push(new kr(t,r,"expected one of ["+Object.keys(n.values).join(", ")+"], "+JSON.stringify(r)+" found")),o}function Ir(e){return rr(_r(e.value))?Cr(B({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function e(t){var r=t.value;var n=t.key;if("array"!==qt(r))return[new kr(n,r,"array expected, "+qt(r)+" found")];var o=t.styleSpec;var i;var a=[];if(r.length<1)return[new kr(n,r,"filter array must have at least 1 element")];a=a.concat(Er({key:n+"[0]",value:r[0],valueSpec:o.filter_operator,style:t.style,styleSpec:t.styleSpec}));switch(Sr(r[0])){case"<":case"<=":case">":case">=":r.length>=2&&"$type"===Sr(r[1])&&a.push(new kr(n,r,'"$type" cannot be use with operator "'+r[0]+'"'));case"==":case"!=":3!==r.length&&a.push(new kr(n,r,'filter array for operator "'+r[0]+'" must have 3 elements'));case"in":case"!in":r.length>=2&&"string"!==(i=qt(r[1]))&&a.push(new kr(n+"[1]",r[1],"string expected, "+i+" found"));for(var s=2;s<r.length;s++)i=qt(r[s]),"$type"===Sr(r[1])?a=a.concat(Er({key:n+"["+s+"]",value:r[s],valueSpec:o.geometry_type,style:t.style,styleSpec:t.styleSpec})):"string"!==i&&"number"!==i&&"boolean"!==i&&a.push(new kr(n+"["+s+"]",r[s],"string, number, or boolean expected, "+i+" found"));break;case"any":case"all":case"none":for(var l=1;l<r.length;l++)a=a.concat(e({key:n+"["+l+"]",value:r[l],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":i=qt(r[1]),2!==r.length?a.push(new kr(n,r,'filter array for "'+r[0]+'" operator must have 2 elements')):"string"!==i&&a.push(new kr(n+"[1]",r[1],"string expected, "+i+" found"))}return a}(e)}function Nr(e,t){var r=e.key,n=e.style,o=e.styleSpec,i=e.value,a=e.objectKey,s=o[t+"_"+e.layerType];if(!s)return[];var l=a.match(/^(.*)-transition$/);if("paint"===t&&l&&s[l[1]]&&s[l[1]].transition)return Jr({key:r,value:i,valueSpec:o.transition,style:n,styleSpec:o});var u,p=e.valueSpec||s[a];if(!p)return[new kr(r,i,'unknown property "'+a+'"')];if("string"===qt(i)&&Tt(p)&&!p.tokens&&(u=/^{([^}]+)}$/.exec(i)))return[new kr(r,i,'"'+a+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(u[1])+" }`.")];var c=[];return"symbol"===e.layerType&&("text-field"===a&&n&&!n.glyphs&&c.push(new kr(r,i,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&Ct(_r(i))&&"identity"===Sr(i.type)&&c.push(new kr(r,i,'"text-font" does not support identity functions'))),c.concat(Jr({key:e.key,value:i,valueSpec:p,style:n,styleSpec:o,expressionContext:"property",propertyType:t,propertyKey:a}))}function Mr(e){return Nr(e,"paint")}function Rr(e){return Nr(e,"layout")}function Pr(e){var t=[],r=e.value,n=e.key,o=e.style,i=e.styleSpec;r.type||r.ref||t.push(new kr(n,r,'either "type" or "ref" is required'));var a,s=Sr(r.type),l=Sr(r.ref);if(r.id)for(var u=Sr(r.id),p=0;p<e.arrayIndex;p++){var c=o.layers[p];Sr(c.id)===u&&t.push(new kr(n,r.id,'duplicate layer id "'+r.id+'", previously used at line '+c.id.__line__))}if("ref"in r)["type","source","source-layer","filter","layout"].forEach(function(e){e in r&&t.push(new kr(n,r[e],'"'+e+'" is prohibited for ref layers'))}),o.layers.forEach(function(e){Sr(e.id)===l&&(a=e)}),a?a.ref?t.push(new kr(n,r.ref,"ref cannot reference another ref layer")):s=Sr(a.type):t.push(new kr(n,r.ref,'ref layer "'+l+'" not found'));else if("background"!==s)if(r.source){var d=o.sources&&o.sources[r.source],h=d&&Sr(d.type);d?"vector"===h&&"raster"===s?t.push(new kr(n,r.source,'layer "'+r.id+'" requires a raster source')):"raster"===h&&"raster"!==s?t.push(new kr(n,r.source,'layer "'+r.id+'" requires a vector source')):"vector"!==h||r["source-layer"]?"raster-dem"===h&&"hillshade"!==s?t.push(new kr(n,r.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!r.paint||!r.paint["line-gradient"]||"geojson"===h&&d.lineMetrics||t.push(new kr(n,r,'layer "'+r.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):t.push(new kr(n,r,'layer "'+r.id+'" must specify a "source-layer"')):t.push(new kr(n,r.source,'source "'+r.source+'" not found'))}else t.push(new kr(n,r,'missing required property "source"'));return t=t.concat(Tr({key:n,value:r,valueSpec:i.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return Jr({key:n+".type",value:r.type,valueSpec:i.layer.type,style:e.style,styleSpec:e.styleSpec,object:r,objectKey:"type"})},filter:Ir,layout:function(e){return Tr({layer:r,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return Rr(B({layerType:s},e))}}})},paint:function(e){return Tr({layer:r,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return Mr(B({layerType:s},e))}}})}}}))}function Lr(e){var t=e.value,r=e.key,n=e.styleSpec,o=e.style;if(!t.type)return[new kr(r,t,'"type" is required')];var i=Sr(t.type),a=[];switch(i){case"vector":case"raster":case"raster-dem":if(a=a.concat(Tr({key:r,value:t,valueSpec:n["source_"+i.replace("-","_")],style:e.style,styleSpec:n})),"url"in t)for(var s in t)["type","url","tileSize"].indexOf(s)<0&&a.push(new kr(r+"."+s,t[s],'a source with a "url" property may not include a "'+s+'" property'));return a;case"geojson":return Tr({key:r,value:t,valueSpec:n.source_geojson,style:o,styleSpec:n});case"video":return Tr({key:r,value:t,valueSpec:n.source_video,style:o,styleSpec:n});case"image":return Tr({key:r,value:t,valueSpec:n.source_image,style:o,styleSpec:n});case"canvas":return a.push(new kr(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")),a;default:return Er({key:r+".type",value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:o,styleSpec:n})}}function Fr(e){var t=e.value,r=e.styleSpec,n=r.light,o=e.style,i=[],a=qt(t);if(void 0===t)return i;if("object"!==a)return i=i.concat([new kr("light",t,"object expected, "+a+" found")]);for(var s in t){var l=s.match(/^(.*)-transition$/);i=l&&n[l[1]]&&n[l[1]].transition?i.concat(Jr({key:s,value:t[s],valueSpec:r.transition,style:o,styleSpec:r})):n[s]?i.concat(Jr({key:s,value:t[s],valueSpec:n[s],style:o,styleSpec:r})):i.concat([new kr(s,t[s],'unknown property "'+s+'"')])}return i}function $r(e){var t=e.value,r=e.key,n=qt(t);return"string"!==n?[new kr(r,t,"string expected, "+n+" found")]:[]}var Ur={"*":function(){return[]},array:Or,boolean:function(e){var t=e.value,r=e.key,n=qt(t);return"boolean"!==n?[new kr(r,t,"boolean expected, "+n+" found")]:[]},number:Ar,color:function(e){var t=e.key,r=e.value,n=qt(r);return"string"!==n?[new kr(t,r,"color expected, "+n+" found")]:null===le(r)?[new kr(t,r,'color expected, "'+r+'" found')]:[]},constants:zr,enum:Er,filter:Ir,function:qr,layer:Pr,object:Tr,source:Lr,light:Fr,string:$r,formatted:function(e){return 0===$r(e).length?[]:Cr(e)}};function Jr(e){var t=e.value,r=e.valueSpec,n=e.styleSpec;return r.expression&&Ct(Sr(t))?qr(e):r.expression&&Ut(_r(t))?Cr(e):r.type&&Ur[r.type]?Ur[r.type](e):Tr(B({},e,{valueSpec:r.type?n[r.type]:r}))}function Dr(e){var t=e.value,r=e.key,n=$r(e);return n.length?n:(-1===t.indexOf("{fontstack}")&&n.push(new kr(r,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&n.push(new kr(r,t,'"glyphs" url must include a "{range}" token')),n)}function Gr(e,t){t=t||n;var r=[];return r=r.concat(Jr({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:Dr,"*":function(){return[]}}})),e.constants&&(r=r.concat(zr({key:"constants",value:e.constants,style:e,styleSpec:t}))),Wr(r)}function Wr(e){return[].concat(e).sort(function(e,t){return e.line-t.line})}function Br(e){return function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return Wr(e.apply(this,t))}}Gr.source=Br(Lr),Gr.light=Br(Fr),Gr.layer=Br(Pr),Gr.filter=Br(Ir),Gr.paintProperty=Br(Mr),Gr.layoutProperty=Br(Rr);var Vr=u(function(e,t){var r=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[1,12],r=[1,13],n=[1,9],o=[1,10],i=[1,11],a=[1,14],s=[1,15],l=[14,18,22,24],u=[18,22],p=[22,24],c={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(e,t,r,n,o,i,a){var s=i.length-1;switch(o){case 1:this.$=new String(e.replace(/\\(\\|")/g,"$1").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b")),this.$.__line__=this._$.first_line;break;case 2:this.$=new Number(e),this.$.__line__=this._$.first_line;break;case 3:this.$=null;break;case 4:this.$=new Boolean(!0),this.$.__line__=this._$.first_line;break;case 5:this.$=new Boolean(!1),this.$.__line__=this._$.first_line;break;case 6:return this.$=i[s-1];case 13:this.$={},Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 14:case 19:this.$=i[s-1],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 15:this.$=[i[s-2],i[s]];break;case 16:this.$={},this.$[i[s][0]]=i[s][1];break;case 17:this.$=i[s-2],i[s-2][i[s][0]]=i[s][1];break;case 18:this.$=[],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 20:this.$=[i[s]];break;case 21:this.$=i[s-2],i[s-2].push(i[s])}},table:[{3:5,4:t,5:6,6:r,7:3,8:n,9:4,10:o,11:i,12:1,13:2,15:7,16:8,17:a,23:s},{1:[3]},{14:[1,16]},e(l,[2,7]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11]),e(l,[2,12]),e(l,[2,3]),e(l,[2,4]),e(l,[2,5]),e([14,18,21,22,24],[2,1]),e(l,[2,2]),{3:20,4:t,18:[1,17],19:18,20:19},{3:5,4:t,5:6,6:r,7:3,8:n,9:4,10:o,11:i,13:23,15:7,16:8,17:a,23:s,24:[1,21],25:22},{1:[2,6]},e(l,[2,13]),{18:[1,24],22:[1,25]},e(u,[2,16]),{21:[1,26]},e(l,[2,18]),{22:[1,28],24:[1,27]},e(p,[2,20]),e(l,[2,14]),{3:20,4:t,20:29},{3:5,4:t,5:6,6:r,7:3,8:n,9:4,10:o,11:i,13:30,15:7,16:8,17:a,23:s},e(l,[2,19]),{3:5,4:t,5:6,6:r,7:3,8:n,9:4,10:o,11:i,13:31,15:7,16:8,17:a,23:s},e(u,[2,17]),e(u,[2,15]),e(p,[2,21])],defaultActions:{16:[2,6]},parseError:function(e,t){if(!t.recoverable)throw new Error(e);this.trace(e)},parse:function(e){var t=this,r=[0],n=[null],o=[],i=this.table,a="",s=0,l=0,u=1,p=o.slice.call(arguments,1),c=Object.create(this.lexer),d={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(d.yy[h]=this.yy[h]);c.setInput(e,d.yy),d.yy.lexer=c,d.yy.parser=this,void 0===c.yylloc&&(c.yylloc={});var f=c.yylloc;o.push(f);var y=c.options&&c.options.ranges;"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,v,g,b,x,w,k,j,z,S,_={};;){if(g=r[r.length-1],this.defaultActions[g]?b=this.defaultActions[g]:(null==m&&(S=void 0,"number"!=typeof(S=c.lex()||u)&&(S=t.symbols_[S]||S),m=S),b=i[g]&&i[g][m]),void 0===b||!b.length||!b[0]){var T="";for(w in z=[],i[g])this.terminals_[w]&&w>2&&z.push("'"+this.terminals_[w]+"'");T=c.showPosition?"Parse error on line "+(s+1)+":\n"+c.showPosition()+"\nExpecting "+z.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(s+1)+": Unexpected "+(m==u?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(T,{text:c.match,token:this.terminals_[m]||m,line:c.yylineno,loc:f,expected:z})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+m);switch(b[0]){case 1:r.push(m),n.push(c.yytext),o.push(c.yylloc),r.push(b[1]),m=null,v?(m=v,v=null):(l=c.yyleng,a=c.yytext,s=c.yylineno,f=c.yylloc);break;case 2:if(k=this.productions_[b[1]][1],_.$=n[n.length-k],_._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(_._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(_,[a,l,s,d.yy,b[1],n,o].concat(p))))return x;k&&(r=r.slice(0,-1*k*2),n=n.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[b[1]][0]),n.push(_.$),o.push(_._$),j=i[r[r.length-2]][r[r.length-1]],r.push(j);break;case 3:return!0}}return!0}},d={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,o;if(this.options.backtrack_lexer&&(o={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(o.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var i in o)this[i]=o[i];return!1}return!1},next:function(){var e,t,r,n;if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),i=0;i<o.length;i++)if((r=this._input.match(this.rules[o[i]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=i,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,o[i])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,o[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,r,n){switch(r){case 0:break;case 1:return 6;case 2:return t.yytext=t.yytext.substr(1,t.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt\/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};function h(){this.yy={}}return c.lexer=d,h.prototype=c,c.Parser=h,new h}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)}});Vr.parser,Vr.Parser,Vr.parse;function Hr(e,t){if(e instanceof String||"string"==typeof e||e instanceof r)try{e=Vr.parse(e.toString())}catch(o){return[new jr(o)]}return Gr(e,t=t||n)}var Zr={StyleExpression:$t,isExpression:Ut,createExpression:Jt,createPropertyExpression:Wt,normalizePropertyExpression:function(e,t){if(Ct(e))return new Bt(e,t);if(Ut(e)){var r=Wt(e,t);if("error"===r.result)throw new Error(r.value.map(function(e){return e.key+": "+e.message}).join(", "));return r.value}var n=e;return"string"==typeof e&&"color"===t.type&&(n=ue.parse(e)),{kind:"constant",evaluate:function(){return n}}},ZoomConstantExpression:Dt,ZoomDependentExpression:Gt,StylePropertyFunction:Bt},Xr={convertFunction:Ht,createFunction:It,isFunction:Ct},Kr={eachSource:L,eachLayer:F,eachProperty:$};Hr.parsed=Hr,Hr.latest=Hr,e.v8=n,e.latest=n,e.format=function(e,t){return void 0===t&&(t=2),(e=s(e,n.$root)).layers&&(e.layers=e.layers.map(function(e){return s(e,n.layer)})),a(e,{indent:t})},e.migrate=function(e){var t=!1;if(7===e.version&&(e=W(e),t=!0),8===e.version&&(t=function(e){var t=[];return F(e,function(e){e.filter&&(e.filter=pr(e.filter))}),$(e,{paint:!0,layout:!0},function(e){var r=e.path,n=e.value,o=e.reference,i=e.set;Ut(n)||("object"!=typeof n||Array.isArray(n)?o.tokens&&"string"==typeof n&&i(tr(n)):(i(Ht(n,o)),t.push(r.join("."))))}),e}(e),t=!0),!t)throw new Error("cannot migrate from",e.version);return e},e.composite=function(e){var t=[],r=[],n=[];for(var o in e.sources){var i=e.sources[o];if("vector"===i.type){var a=/^mapbox:\/\/(.*)/.exec(i.url);a&&(t.push(o),r.push(a[1]))}}if(t.length<2)return e;t.forEach(function(t){delete e.sources[t]});var s=r.join(",");return e.sources[s]={type:"vector",url:"mapbox://"+s},e.layers.forEach(function(e){if(t.indexOf(e.source)>=0&&(e.source=s,"source-layer"in e)){if(n.indexOf(e["source-layer"])>=0)throw new Error("Conflicting source layer names");n.push(e["source-layer"])}}),e},e.diff=function(e,t){if(!e)return[{command:fr.setStyle,args:[t]}];var r=[];try{if(!hr(e.version,t.version))return[{command:fr.setStyle,args:[t]}];hr(e.center,t.center)||r.push({command:fr.setCenter,args:[t.center]}),hr(e.zoom,t.zoom)||r.push({command:fr.setZoom,args:[t.zoom]}),hr(e.bearing,t.bearing)||r.push({command:fr.setBearing,args:[t.bearing]}),hr(e.pitch,t.pitch)||r.push({command:fr.setPitch,args:[t.pitch]}),hr(e.sprite,t.sprite)||r.push({command:fr.setSprite,args:[t.sprite]}),hr(e.glyphs,t.glyphs)||r.push({command:fr.setGlyphs,args:[t.glyphs]}),hr(e.transition,t.transition)||r.push({command:fr.setTransition,args:[t.transition]}),hr(e.light,t.light)||r.push({command:fr.setLight,args:[t.light]});var n={},o=[];!function(e,t,r,n){var o;for(o in t=t||{},e=e||{})e.hasOwnProperty(o)&&(t.hasOwnProperty(o)||mr(o,r,n));for(o in t)t.hasOwnProperty(o)&&(e.hasOwnProperty(o)?hr(e[o],t[o])||("geojson"===e[o].type&&"geojson"===t[o].type&&gr(e,t,o)?r.push({command:fr.setGeoJSONSourceData,args:[o,t[o].data]}):vr(o,t,r,n)):yr(o,t,r))}(e.sources,t.sources,o,n);var i=[];e.layers&&e.layers.forEach(function(e){n[e.source]?r.push({command:fr.removeLayer,args:[e.id]}):i.push(e)}),r=r.concat(o),function(e,t,r){t=t||[];var n,o,i,a,s,l,u,p=(e=e||[]).map(xr),c=t.map(xr),d=e.reduce(wr,{}),h=t.reduce(wr,{}),f=p.slice(),y=Object.create(null);for(n=0,o=0;n<p.length;n++)i=p[n],h.hasOwnProperty(i)?o++:(r.push({command:fr.removeLayer,args:[i]}),f.splice(f.indexOf(i,o),1));for(n=0,o=0;n<c.length;n++)i=c[c.length-1-n],f[f.length-1-n]!==i&&(d.hasOwnProperty(i)?(r.push({command:fr.removeLayer,args:[i]}),f.splice(f.lastIndexOf(i,f.length-o),1)):o++,l=f[f.length-n],r.push({command:fr.addLayer,args:[h[i],l]}),f.splice(f.length-n,0,i),y[i]=!0);for(n=0;n<c.length;n++)if(a=d[i=c[n]],s=h[i],!y[i]&&!hr(a,s))if(hr(a.source,s.source)&&hr(a["source-layer"],s["source-layer"])&&hr(a.type,s.type)){for(u in br(a.layout,s.layout,r,i,null,fr.setLayoutProperty),br(a.paint,s.paint,r,i,null,fr.setPaintProperty),hr(a.filter,s.filter)||r.push({command:fr.setFilter,args:[i,s.filter]}),hr(a.minzoom,s.minzoom)&&hr(a.maxzoom,s.maxzoom)||r.push({command:fr.setLayerZoomRange,args:[i,s.minzoom,s.maxzoom]}),a)a.hasOwnProperty(u)&&"layout"!==u&&"paint"!==u&&"filter"!==u&&"metadata"!==u&&"minzoom"!==u&&"maxzoom"!==u&&(0===u.indexOf("paint.")?br(a[u],s[u],r,i,u.slice(6),fr.setPaintProperty):hr(a[u],s[u])||r.push({command:fr.setLayerProperty,args:[i,u,s[u]]}));for(u in s)s.hasOwnProperty(u)&&!a.hasOwnProperty(u)&&"layout"!==u&&"paint"!==u&&"filter"!==u&&"metadata"!==u&&"minzoom"!==u&&"maxzoom"!==u&&(0===u.indexOf("paint.")?br(a[u],s[u],r,i,u.slice(6),fr.setPaintProperty):hr(a[u],s[u])||r.push({command:fr.setLayerProperty,args:[i,u,s[u]]}))}else r.push({command:fr.removeLayer,args:[i]}),l=f[f.lastIndexOf(i)+1],r.push({command:fr.addLayer,args:[s,l]})}(i,t.layers,r)}catch(a){console.warn("Unable to compute style diff:",a),r=[{command:fr.setStyle,args:[t]}]}return r},e.ValidationError=kr,e.ParsingError=jr,e.expression=Zr,e.featureFilter=function(e){if(null==e)return function(){return!0};rr(e)||(e=ir(e));var t=Jt(e,nr);if("error"===t.result)throw new Error(t.value.map(function(e){return e.key+": "+e.message}).join(", "));return function(e,r){return t.value.evaluate(e,r)}},e.Color=ue,e.function=Xr,e.validate=Hr,e.visit=Kr,Object.defineProperty(e,"__esModule",{value:!0})}); +},{"buffer":"aMB2"}],"i69k":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=["type","source","source-layer","minzoom","maxzoom","filter","layout"];exports.default=e; +},{}],"HYr1":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("./util/ref_properties"));function t(e){return e&&e.__esModule?e:{default:e}}function r(t,r){const n={};for(const e in t)"ref"!==e&&(n[e]=t[e]);return e.default.forEach(e=>{e in r&&(n[e]=r[e])}),n}var n=o;function o(e){e=e.slice();const t=Object.create(null);for(let r=0;r<e.length;r++)t[e[r].id]=e[r];for(let n=0;n<e.length;n++)"ref"in e[n]&&(e[n]=r(e[n],t[e[n].ref]));return e}exports.default=n; +},{"./util/ref_properties":"i69k"}],"Ldbb":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=n;var e=r(require("../deref"));function r(e){return e&&e.__esModule?e:{default:e}}function t(e,r){for(const t in e.layers)r(e.layers[t])}function n(r){return r.version=9,r.layers=(0,e.default)(r.layers),t(r,e=>{for(const r in e)/paint\..*/.test(r)&&delete e[r]}),r} +},{"../deref":"HYr1"}],"e7zg":[function(require,module,exports) { +var define; +var global = arguments[3]; +var e,t=arguments[3];!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof e&&e.amd?e(r):t.CodeMirror=r()}(this,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),l=n||i||o,s=l&&(n?document.documentMode||6:+(o||i)[1]),a=!o&&/WebKit\//.test(e),u=a&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),h=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),g=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),v=/Android/.test(e),m=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),w=/win/i.test(t),x=h&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(h=!1,a=!0);var C=y&&(u||h&&(null==x||x<12.11)),S=r||l&&s>=9;function L(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var k,T=function(e,t){var r=e.className,n=L(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function M(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function N(e,t){return M(e).appendChild(t)}function O(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function A(e,t,r,n){var i=O(e,t,r,n);return i.setAttribute("role","presentation"),i}function D(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function W(){var e;try{e=document.activeElement}catch(wt){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function H(e,t){var r=e.className;L(t).test(r)||(e.className+=(r?" ":"")+t)}function F(e,t){for(var r=e.split(" "),n=0;n<r.length;n++)r[n]&&!L(r[n]).test(t)&&(t+=" "+r[n]);return t}k=document.createRange?function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(wt){return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};var P=function(e){e.select()};function E(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function I(e,t,r){for(var n in t||(t={}),e)!e.hasOwnProperty(n)||!1===r&&t.hasOwnProperty(n)||(t[n]=e[n]);return t}function z(e,t,r,n,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=n||0,l=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return l+(t-o);l+=s-o,l+=r-l%r,o=s+1}}g?P=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:l&&(P=function(e){try{e.select()}catch(t){}});var R=function(){this.id=null};function B(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}R.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var G=30,U={toString:function(){return"CodeMirror.Pass"}},V={scroll:!1},K={origin:"*mouse"},j={origin:"+move"};function X(e,t,r){for(var n=0,i=0;;){var o=e.indexOf("\t",n);-1==o&&(o=e.length);var l=o-n;if(o==e.length||i+l>=t)return n+Math.min(l,t-i);if(i+=o-n,n=o+1,(i+=r-i%r)>=t)return n}}var Y=[""];function _(e){for(;Y.length<=e;)Y.push($(Y)+" ");return Y[e]}function $(e){return e[e.length-1]}function q(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function Z(){}function Q(e,t){var r;return Object.create?r=Object.create(e):(Z.prototype=e,r=new Z),t&&I(t,r),r}var J=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ee(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||J.test(e))}function te(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ee(e))||t.test(e):ee(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ie(e){return e.charCodeAt(0)>=768&&ne.test(e)}function oe(e,t,r){for(;(r<0?t>0:t<e.length)&&ie(e.charAt(t));)t+=r;return t}function le(e,t,r){for(var n=t>r?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function se(e,t,n){var i=this;this.input=n,i.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=A("div",null,"CodeMirror-code"),i.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=O("div",null,"CodeMirror-cursors"),i.measure=O("div",null,"CodeMirror-measure"),i.lineMeasure=O("div",null,"CodeMirror-measure"),i.lineSpace=A("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=A("div",[i.lineSpace],"CodeMirror-lines");i.mover=O("div",[o],null,"position: relative"),i.sizer=O("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=O("div",null,null,"position: absolute; height: "+G+"px; width: 1px;"),i.gutters=O("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=O("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=O("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),l&&s<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),a||r&&m||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,n.init(i)}function ae(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t<o){r=i;break}t-=o}return r.lines[t]}function ue(e,t,r){var n=[],i=t.line;return e.iter(t.line,r.line+1,function(e){var o=e.text;i==r.line&&(o=o.slice(0,r.ch)),i==t.line&&(o=o.slice(t.ch)),n.push(o),++i}),n}function ce(e,t,r){var n=[];return e.iter(t,r,function(e){n.push(e.text)}),n}function he(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function fe(e){if(null==e.parent)return null;for(var t=e.parent,r=B(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var i=0;n.children[i]!=t;++i)r+=n.children[i].chunkSize();return r+t.first}function de(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n){var i=e.children[n],o=i.height;if(t<o){e=i;continue e}t-=o,r+=i.chunkSize()}return r}while(!e.lines);for(var l=0;l<e.lines.length;++l){var s=e.lines[l].height;if(t<s)break;t-=s}return r+l}function pe(e,t){return t>=e.first&&t<e.first+e.size}function ge(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ve(e,t,r){if(void 0===r&&(r=null),!(this instanceof ve))return new ve(e,t,r);this.line=e,this.ch=t,this.sticky=r}function me(e,t){return e.line-t.line||e.ch-t.ch}function ye(e,t){return e.sticky==t.sticky&&0==me(e,t)}function be(e){return ve(e.line,e.ch)}function we(e,t){return me(e,t)<0?t:e}function xe(e,t){return me(e,t)<0?e:t}function Ce(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function Se(e,t){if(t.line<e.first)return ve(e.first,0);var r=e.first+e.size-1;return t.line>r?ve(r,ae(e,r).text.length):function(e,t){var r=e.ch;return null==r||r>t?ve(e.line,t):r<0?ve(e.line,0):e}(t,ae(e,t.line).text.length)}function Le(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=Se(e,t[n]);return r}var ke=!1,Te=!1;function Me(e,t,r){this.marker=e,this.from=t,this.to=r}function Ne(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function Oe(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function Ae(e,t){if(t.full)return null;var r=pe(e,t.from.line)&&ae(e,t.from.line).markedSpans,n=pe(e,t.to.line)&&ae(e,t.to.line).markedSpans;if(!r&&!n)return null;var i=t.from.ch,o=t.to.ch,l=0==me(t.from,t.to),s=function(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],l=o.marker;if(null==o.from||(l.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==l.type&&(!r||!o.marker.insertLeft)){var s=null==o.to||(l.inclusiveRight?o.to>=t:o.to>t);(n||(n=[])).push(new Me(l,o.from,s?null:o.to))}}return n}(r,i,l),a=function(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],l=o.marker;if(null==o.to||(l.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==l.type&&(!r||o.marker.insertLeft)){var s=null==o.from||(l.inclusiveLeft?o.from<=t:o.from<t);(n||(n=[])).push(new Me(l,s?null:o.from-t,null==o.to?null:o.to-t))}}return n}(n,o,l),u=1==t.text.length,c=$(t.text).length+(u?i:0);if(s)for(var h=0;h<s.length;++h){var f=s[h];if(null==f.to){var d=Ne(a,f.marker);d?u&&(f.to=null==d.to?null:d.to+c):f.to=i}}if(a)for(var p=0;p<a.length;++p){var g=a[p];if(null!=g.to&&(g.to+=c),null==g.from)Ne(s,g.marker)||(g.from=c,u&&(s||(s=[])).push(g));else g.from+=c,u&&(s||(s=[])).push(g)}s&&(s=De(s)),a&&a!=s&&(a=De(a));var v=[s];if(!u){var m,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(m||(m=[])).push(new Me(s[b].marker,null,null));for(var w=0;w<y;++w)v.push(m);v.push(a)}return v}function De(e){for(var t=0;t<e.length;++t){var r=e[t];null!=r.from&&r.from==r.to&&!1!==r.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function We(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function He(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function Fe(e){return e.inclusiveLeft?-1:0}function Pe(e){return e.inclusiveRight?1:0}function Ee(e,t){var r=e.lines.length-t.lines.length;if(0!=r)return r;var n=e.find(),i=t.find(),o=me(n.from,i.from)||Fe(e)-Fe(t);if(o)return-o;var l=me(n.to,i.to)||Pe(e)-Pe(t);return l||t.id-e.id}function Ie(e,t){var r,n=Te&&e.markedSpans;if(n)for(var i=void 0,o=0;o<n.length;++o)(i=n[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!r||Ee(r,i.marker)<0)&&(r=i.marker);return r}function ze(e){return Ie(e,!0)}function Re(e){return Ie(e,!1)}function Be(e,t){var r,n=Te&&e.markedSpans;if(n)for(var i=0;i<n.length;++i){var o=n[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!r||Ee(r,o.marker)<0)&&(r=o.marker)}return r}function Ge(e,t,r,n,i){var o=ae(e,t),l=Te&&o.markedSpans;if(l)for(var s=0;s<l.length;++s){var a=l[s];if(a.marker.collapsed){var u=a.marker.find(0),c=me(u.from,r)||Fe(a.marker)-Fe(i),h=me(u.to,n)||Pe(a.marker)-Pe(i);if(!(c>=0&&h<=0||c<=0&&h>=0)&&(c<=0&&(a.marker.inclusiveRight&&i.inclusiveLeft?me(u.to,r)>=0:me(u.to,r)>0)||c>=0&&(a.marker.inclusiveRight&&i.inclusiveLeft?me(u.from,n)<=0:me(u.from,n)<0)))return!0}}}function Ue(e){for(var t;t=ze(e);)e=t.find(-1,!0).line;return e}function Ve(e,t){var r=ae(e,t),n=Ue(r);return r==n?t:fe(n)}function Ke(e,t){if(t>e.lastLine())return t;var r,n=ae(e,t);if(!je(e,n))return t;for(;r=Re(n);)n=r.find(1,!0).line;return fe(n)+1}function je(e,t){var r=Te&&t.markedSpans;if(r)for(var n=void 0,i=0;i<r.length;++i)if((n=r[i]).marker.collapsed){if(null==n.from)return!0;if(!n.marker.widgetNode&&0==n.from&&n.marker.inclusiveLeft&&Xe(e,t,n))return!0}}function Xe(e,t,r){if(null==r.to){var n=r.marker.find(1,!0);return Xe(e,n.line,Ne(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==r.to&&(null==i.to||i.to!=r.from)&&(i.marker.inclusiveLeft||r.marker.inclusiveRight)&&Xe(e,t,i))return!0}function Ye(e){for(var t=0,r=(e=Ue(e)).parent,n=0;n<r.lines.length;++n){var i=r.lines[n];if(i==e)break;t+=i.height}for(var o=r.parent;o;o=(r=o).parent)for(var l=0;l<o.children.length;++l){var s=o.children[l];if(s==r)break;t+=s.height}return t}function _e(e){if(0==e.height)return 0;for(var t,r=e.text.length,n=e;t=ze(n);){var i=t.find(0,!0);n=i.from.line,r+=i.from.ch-i.to.ch}for(n=e;t=Re(n);){var o=t.find(0,!0);r-=n.text.length-o.from.ch,r+=(n=o.to.line).text.length-o.to.ch}return r}function $e(e){var t=e.display,r=e.doc;t.maxLine=ae(r,r.first),t.maxLineLength=_e(t.maxLine),t.maxLineChanged=!0,r.iter(function(e){var r=_e(e);r>t.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)})}var qe=null;function Ze(e,t,r){var n;qe=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:qe=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:qe=i)}return null!=n?n:qe}var Qe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,l=/[1n]/;function s(e,t,r){this.level=e,this.from=t,this.to=r}return function(a,u){var c="ltr"==u?"L":"R";if(0==a.length||"ltr"==u&&!r.test(a))return!1;for(var h,f=a.length,d=[],p=0;p<f;++p)d.push((h=a.charCodeAt(p))<=247?e.charAt(h):1424<=h&&h<=1524?"R":1536<=h&&h<=1785?t.charAt(h-1536):1774<=h&&h<=2220?"r":8192<=h&&h<=8203?"w":8204==h?"b":"L");for(var g=0,v=c;g<f;++g){var m=d[g];"m"==m?d[g]=v:v=m}for(var y=0,b=c;y<f;++y){var w=d[y];"1"==w&&"r"==b?d[y]="n":i.test(w)&&(b=w,"r"==w&&(d[y]="R"))}for(var x=1,C=d[0];x<f-1;++x){var S=d[x];"+"==S&&"1"==C&&"1"==d[x+1]?d[x]="1":","!=S||C!=d[x+1]||"1"!=C&&"n"!=C||(d[x]=C),C=S}for(var L=0;L<f;++L){var k=d[L];if(","==k)d[L]="N";else if("%"==k){var T=void 0;for(T=L+1;T<f&&"%"==d[T];++T);for(var M=L&&"!"==d[L-1]||T<f&&"1"==d[T]?"1":"N",N=L;N<T;++N)d[N]=M;L=T-1}}for(var O=0,A=c;O<f;++O){var D=d[O];"L"==A&&"1"==D?d[O]="L":i.test(D)&&(A=D)}for(var W=0;W<f;++W)if(n.test(d[W])){var H=void 0;for(H=W+1;H<f&&n.test(d[H]);++H);for(var F="L"==(W?d[W-1]:c),P=F==("L"==(H<f?d[H]:c))?F?"L":"R":c,E=W;E<H;++E)d[E]=P;W=H-1}for(var I,z=[],R=0;R<f;)if(o.test(d[R])){var B=R;for(++R;R<f&&o.test(d[R]);++R);z.push(new s(0,B,R))}else{var G=R,U=z.length;for(++R;R<f&&"L"!=d[R];++R);for(var V=G;V<R;)if(l.test(d[V])){G<V&&z.splice(U,0,new s(1,G,V));var K=V;for(++V;V<R&&l.test(d[V]);++V);z.splice(U,0,new s(2,K,V)),G=V}else++V;G<R&&z.splice(U,0,new s(1,G,R))}return"ltr"==u&&(1==z[0].level&&(I=a.match(/^\s+/))&&(z[0].from=I[0].length,z.unshift(new s(0,0,I[0].length))),1==$(z).level&&(I=a.match(/\s+$/))&&($(z).to-=I[0].length,z.push(new s(0,f-I[0].length,f)))),"rtl"==u?z.reverse():z}}();function Je(e,t){var r=e.order;return null==r&&(r=e.order=Qe(e.text,t)),r}var et=[],tt=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||et).concat(r)}};function rt(e,t){return e._handlers&&e._handlers[t]||et}function nt(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,i=n&&n[t];if(i){var o=B(i,r);o>-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function it(e,t){var r=rt(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,n)}function ot(e,t,r){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),it(e,r||t.type,e,t),ht(t)||t.codemirrorIgnore}function lt(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)-1==B(r,t[n])&&r.push(t[n])}function st(e,t){return rt(e,t).length>0}function at(e){e.prototype.on=function(e,t){tt(this,e,t)},e.prototype.off=function(e,t){nt(this,e,t)}}function ut(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ct(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ht(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ft(e){ut(e),ct(e)}function dt(e){return e.target||e.srcElement}function pt(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var gt,vt,mt=function(){if(l&&s<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function yt(e){if(null==gt){var t=O("span","");N(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(gt=t.offsetWidth<=1&&t.offsetHeight>2&&!(l&&s<8))}var r=gt?O("span",""):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function bt(e){if(null!=vt)return vt;var t=N(e,document.createTextNode("AخA")),r=k(t,0,1).getBoundingClientRect(),n=k(t,1,2).getBoundingClientRect();return M(e),!(!r||r.left==r.right)&&(vt=n.right-r.right<3)}var wt,xt=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),l=o.indexOf("\r");-1!=l?(r.push(o.slice(0,l)),t+=l+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Ct=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(wt){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(wt){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},St="oncopy"in(wt=O("div"))||(wt.setAttribute("oncopy","return;"),"function"==typeof wt.oncopy),Lt=null;var kt={},Tt={};function Mt(e){if("string"==typeof e&&Tt.hasOwnProperty(e))e=Tt[e];else if(e&&"string"==typeof e.name&&Tt.hasOwnProperty(e.name)){var t=Tt[e.name];"string"==typeof t&&(t={name:t}),(e=Q(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Mt("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Mt("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Nt(e,t){t=Mt(t);var r=kt[t.name];if(!r)return Nt(e,"text/plain");var n=r(e,t);if(Ot.hasOwnProperty(t.name)){var i=Ot[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}var Ot={};function At(e,t){I(t,Ot.hasOwnProperty(e)?Ot[e]:Ot[e]={})}function Dt(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Wt(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Ht(e,t,r){return!e.startState||e.startState(t,r)}var Ft=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};Ft.prototype.eol=function(){return this.pos>=this.string.length},Ft.prototype.sol=function(){return this.pos==this.lineStart},Ft.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ft.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ft.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ft.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ft.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ft.prototype.skipToEnd=function(){this.pos=this.string.length},Ft.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ft.prototype.backUp=function(e){this.pos-=e},Ft.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=z(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.indentation=function(){return z(this.string,null,this.tabSize)-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.match=function(e,t,r){if("string"!=typeof e){var n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var i=function(e){return r?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ft.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ft.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ft.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ft.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Pt=function(e,t){this.state=e,this.lookAhead=t},Et=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function It(e,t,r,n){var i=[e.state.modeGen],o={};Xt(e,t.text,e.doc.mode,r,function(e,t){return i.push(e,t)},o,n);for(var l=r.state,s=function(n){r.baseTokens=i;var s=e.state.overlays[n],a=1,u=0;r.state=!0,Xt(e,t.text,s.mode,r,function(e,t){for(var r=a;u<e;){var n=i[a];n>e&&i.splice(a,1,e,i[a+1],n),a+=2,u=Math.min(e,n)}if(t)if(s.opaque)i.splice(r,a-r,e,"overlay "+t),a=r+2;else for(;r<a;r+=2){var o=i[r+1];i[r+1]=(o?o+" ":"")+"overlay "+t}},o),r.state=l,r.baseTokens=null,r.baseTokenPos=1},a=0;a<e.state.overlays.length;++a)s(a);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function zt(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=Rt(e,fe(t)),i=t.text.length>e.options.maxHighlightLength&&Dt(e.doc.mode,n.state),o=It(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Rt(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new Et(n,!0,t);var o=function(e,t,r){for(var n,i,o=e.doc,l=r?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>l;--s){if(s<=o.first)return o.first;var a=ae(o,s-1),u=a.stateAfter;if(u&&(!r||s+(u instanceof Pt?u.lookAhead:0)<=o.modeFrontier))return s;var c=z(a.text,null,e.options.tabSize);(null==i||n>c)&&(i=s-1,n=c)}return i}(e,t,r),l=o>n.first&&ae(n,o-1).stateAfter,s=l?Et.fromSaved(n,l,o):new Et(n,Ht(n.mode),o);return n.iter(o,t,function(r){Bt(e,r.text,s);var n=s.line;r.stateAfter=n==t-1||n%5==0||n>=i.viewFrom&&n<i.viewTo?s.save():null,s.nextLine()}),r&&(n.modeFrontier=s.line),s}function Bt(e,t,r,n){var i=e.doc.mode,o=new Ft(t,e.options.tabSize,r);for(o.start=o.pos=n||0,""==t&&Gt(i,r.state);!o.eol();)Ut(i,o,r.state),o.start=o.pos}function Gt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=Wt(e,t);return r.mode.blankLine?r.mode.blankLine(r.state):void 0}}function Ut(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=Wt(e,r).mode);var o=e.token(t,r);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}Et.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Et.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Et.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Et.fromSaved=function(e,t,r){return t instanceof Pt?new Et(e,Dt(e.mode,t.state),r,t.lookAhead):new Et(e,Dt(e.mode,t),r)},Et.prototype.save=function(e){var t=!1!==e?Dt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Pt(t,this.maxLookAhead):t};var Vt=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function Kt(e,t,r,n){var i,o,l=e.doc,s=l.mode,a=ae(l,(t=Se(l,t)).line),u=Rt(e,t.line,r),c=new Ft(a.text,e.options.tabSize,u);for(n&&(o=[]);(n||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=Ut(s,c,u.state),n&&o.push(new Vt(c,i,Dt(l.mode,u.state)));return n?o:new Vt(c,i,u.state)}function jt(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";null==t[n]?t[n]=r[2]:new RegExp("(?:^|s)"+r[2]+"(?:$|s)").test(t[n])||(t[n]+=" "+r[2])}return e}function Xt(e,t,r,n,i,o,l){var s=r.flattenSpans;null==s&&(s=e.options.flattenSpans);var a,u=0,c=null,h=new Ft(t,e.options.tabSize,n),f=e.options.addModeClass&&[null];for(""==t&&jt(Gt(r,n.state),o);!h.eol();){if(h.pos>e.options.maxHighlightLength?(s=!1,l&&Bt(e,t,n,h.pos),h.pos=t.length,a=null):a=jt(Ut(r,h,n.state,f),o),f){var d=f[0].name;d&&(a="m-"+(a?d+" "+a:d))}if(!s||c!=a){for(;u<h.start;)i(u=Math.min(h.start,u+5e3),c);c=a}h.start=h.pos}for(;u<h.pos;){var p=Math.min(h.pos,u+5e3);i(p,c),u=p}}var Yt=function(e,t,r){this.text=e,He(this,t),this.height=r?r(this):1};function _t(e){e.parent=null,We(e)}Yt.prototype.lineNo=function(){return fe(this)},at(Yt);var $t={},qt={};function Zt(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?qt:$t;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function Qt(e,t){var r=A("span",null,null,a?"padding-right: .1px":null),n={pre:A("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;n.pos=0,n.addToken=er,bt(e.display.measure)&&(l=Je(o,e.doc.direction))&&(n.addToken=tr(n.addToken,l)),n.map=[],nr(o,n,zt(e,o,t!=e.display.externalMeasured&&fe(o))),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=F(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=F(o.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(yt(e.display.measure))),0==i?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(a){var s=n.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return it(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=F(n.pre.className,n.textClass||"")),n}function Jt(e){var t=O("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function er(e,t,r,n,i,o,a){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!r||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),n+=o,r=" "==o}return n}(t,e.trailingSpace):t,h=e.cm.state.specialChars,f=!1;if(h.test(t)){u=document.createDocumentFragment();for(var d=0;;){h.lastIndex=d;var p=h.exec(t),g=p?p.index-d:t.length-d;if(g){var v=document.createTextNode(c.slice(d,d+g));l&&s<9?u.appendChild(O("span",[v])):u.appendChild(v),e.map.push(e.pos,e.pos+g,v),e.col+=g,e.pos+=g}if(!p)break;d+=g+1;var m=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(m=u.appendChild(O("span",_(b),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?((m=u.appendChild(O("span","\r"==p[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((m=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),l&&s<9?u.appendChild(O("span",[m])):u.appendChild(m),e.col+=1);e.map.push(e.pos,e.pos+1,m),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),l&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),r||n||i||f||o){var w=r||"";n&&(w+=n),i&&(w+=i);var x=O("span",[u],w,o);if(a)for(var C in a)a.hasOwnProperty(C)&&"style"!=C&&"class"!=C&&x.setAttribute(C,a[C]);return e.content.appendChild(x)}e.content.appendChild(u)}}function tr(e,t){return function(r,n,i,o,l,s,a){i=i?i+" cm-force-border":"cm-force-border";for(var u=r.pos,c=u+n.length;;){for(var h=void 0,f=0;f<t.length&&!((h=t[f]).to>u&&h.from<=u);f++);if(h.to>=c)return e(r,n,i,o,l,s,a);e(r,n.slice(0,h.to-u),i,o,null,s,a),o=null,n=n.slice(h.to-u),u=h.to}}}function rr(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function nr(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var l,s,a,u,c,h,f,d=i.length,p=0,g=1,v="",m=0;;){if(m==p){a=u=c=s="",f=null,h=null,m=1/0;for(var y=[],b=void 0,w=0;w<n.length;++w){var x=n[w],C=x.marker;if("bookmark"==C.type&&x.from==p&&C.widgetNode)y.push(C);else if(x.from<=p&&(null==x.to||x.to>p||C.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&m>x.to&&(m=x.to,u=""),C.className&&(a+=" "+C.className),C.css&&(s=(s?s+";":"")+C.css),C.startStyle&&x.from==p&&(c+=" "+C.startStyle),C.endStyle&&x.to==m&&(b||(b=[])).push(C.endStyle,x.to),C.title&&((f||(f={})).title=C.title),C.attributes)for(var S in C.attributes)(f||(f={}))[S]=C.attributes[S];C.collapsed&&(!h||Ee(h.marker,C)<0)&&(h=x)}else x.from>p&&m>x.from&&(m=x.from)}if(b)for(var L=0;L<b.length;L+=2)b[L+1]==m&&(u+=" "+b[L]);if(!h||h.from==p)for(var k=0;k<y.length;++k)rr(t,0,y[k]);if(h&&(h.from||0)==p){if(rr(t,(null==h.to?d+1:h.to)-p,h.marker,null==h.from),null==h.to)return;h.to==p&&(h=!1)}}if(p>=d)break;for(var T=Math.min(d,m);;){if(v){var M=p+v.length;if(!h){var N=M>T?v.slice(0,T-p):v;t.addToken(t,N,l?l+a:a,c,p+N.length==m?u:"",s,f)}if(M>=T){v=v.slice(T-p),p=T;break}p=M,c=""}v=i.slice(o,o=r[g++]),l=Zt(r[g++],t.cm.options)}}else for(var O=1;O<r.length;O+=2)t.addToken(t,i.slice(o,o=r[O]),Zt(r[O+1],t.cm.options))}function ir(e,t,r){this.line=t,this.rest=function(e){for(var t,r;t=Re(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}(t),this.size=this.rest?fe($(this.rest))-r+1:1,this.node=this.text=null,this.hidden=je(e,t)}function or(e,t,r){for(var n,i=[],o=t;o<r;o=n){var l=new ir(e.doc,ae(e.doc,o),o);n=o+l.size,i.push(l)}return i}var lr=null;var sr=null;function ar(e,t){var r=rt(e,t);if(r.length){var n,i=Array.prototype.slice.call(arguments,2);lr?n=lr.delayedCallbacks:sr?n=sr:(n=sr=[],setTimeout(ur,0));for(var o=function(e){n.push(function(){return r[e].apply(null,i)})},l=0;l<r.length;++l)o(l)}}function ur(){var e=sr;sr=null;for(var t=0;t<e.length;++t)e[t]()}function cr(e,t,r,n){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?dr(e,t):"gutter"==o?gr(e,t,r,n):"class"==o?pr(e,t):"widget"==o&&vr(e,t,n)}t.changes=null}function hr(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),l&&s<8&&(e.node.style.zIndex=2)),e.node}function fr(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):Qt(e,t)}function dr(e,t){var r=t.text.className,n=fr(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,pr(e,t)):r&&(t.text.className=r)}function pr(e,t){!function(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var n=hr(t);t.background=n.insertBefore(O("div",null,r),n.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?hr(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function gr(e,t,r,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=hr(t);t.gutterBackground=O("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var l=hr(t),s=t.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),l.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(O("div",ge(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var a=0;a<e.options.gutters.length;++a){var u=e.options.gutters[a],c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(O("div",[c],"CodeMirror-gutter-elt","left: "+n.gutterLeft[u]+"px; width: "+n.gutterWidth[u]+"px"))}}}function vr(e,t,r){t.alignable&&(t.alignable=null);for(var n=t.node.firstChild,i=void 0;n;n=i)i=n.nextSibling,"CodeMirror-linewidget"==n.className&&t.node.removeChild(n);yr(e,t,r)}function mr(e,t,r,n){var i=fr(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),pr(e,t),gr(e,t,r,n),yr(e,t,n),t.node}function yr(e,t,r){if(br(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)br(e,t.rest[n],t,r,!1)}function br(e,t,r,n,i){if(t.widgets)for(var o=hr(r),l=0,s=t.widgets;l<s.length;++l){var a=s[l],u=O("div",[a.node],"CodeMirror-linewidget");a.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),wr(a,u,r,n),e.display.input.setUneditable(u),i&&a.above?o.insertBefore(u,r.gutter||r.text):o.appendChild(u),ar(a,"redraw")}}function wr(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var i=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(i-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function xr(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!D(document.body,e.node)){var r="position: relative;";e.coverGutter&&(r+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(r+="width: "+t.display.wrapper.clientWidth+"px;"),N(t.display.measure,O("div",[e.node],null,r))}return e.height=e.node.parentNode.offsetHeight}function Cr(e,t){for(var r=dt(t);r!=e.wrapper;r=r.parentNode)if(!r||1==r.nodeType&&"true"==r.getAttribute("cm-ignore-events")||r.parentNode==e.sizer&&r!=e.mover)return!0}function Sr(e){return e.lineSpace.offsetTop}function Lr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function kr(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=N(e.measure,O("pre","x")),r=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return isNaN(n.left)||isNaN(n.right)||(e.cachedPaddingH=n),n}function Tr(e){return G-e.display.nativeBarWidth}function Mr(e){return e.display.scroller.clientWidth-Tr(e)-e.display.barWidth}function Nr(e){return e.display.scroller.clientHeight-Tr(e)-e.display.barHeight}function Or(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var i=0;i<e.rest.length;i++)if(fe(e.rest[i])>r)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Ar(e,t,r,n){return Hr(e,Wr(e,t),r,n)}function Dr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[un(e,t)];var r=e.display.externalMeasured;return r&&t>=r.lineN&&t<r.lineN+r.size?r:void 0}function Wr(e,t){var r=fe(t),n=Dr(e,r);n&&!n.text?n=null:n&&n.changes&&(cr(e,n,r,nn(e)),e.curOp.forceUpdate=!0),n||(n=function(e,t){var r=fe(t=Ue(t)),n=e.display.externalMeasured=new ir(e.doc,t,r);n.lineN=r;var i=n.built=Qt(e,n);return n.text=i.pre,N(e.display.lineMeasure,i.pre),n}(e,t));var i=Or(n,t,r);return{line:t,view:n,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Hr(e,t,r,n,i){t.before&&(r=-1);var o,a=r+(n||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(!function(e,t,r){var n=e.options.lineWrapping,i=n&&Mr(e);if(!t.measure.heights||n&&t.measure.width!=i){var o=t.measure.heights=[];if(n){t.measure.width=i;for(var l=t.text.firstChild.getClientRects(),s=0;s<l.length-1;s++){var a=l[s],u=l[s+1];Math.abs(a.bottom-u.bottom)>2&&o.push((a.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,r,n){var i,o=Er(t.map,r,n),a=o.node,u=o.start,c=o.end,h=o.collapse;if(3==a.nodeType){for(var f=0;f<4;f++){for(;u&&ie(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&ie(t.line.text.charAt(o.coverStart+c));)++c;if((i=l&&s<9&&0==u&&c==o.coverEnd-o.coverStart?a.parentNode.getBoundingClientRect():Ir(k(a,u,c).getClientRects(),n)).left||i.right||0==u)break;c=u,u-=1,h="right"}l&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Lt)return Lt;var t=N(e,O("span","x")),r=t.getBoundingClientRect(),n=k(t,0,1).getBoundingClientRect();return Lt=Math.abs(r.left-n.left)>1}(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}(e.display.measure,i))}else{var d;u>0&&(h=n="right"),i=e.options.lineWrapping&&(d=a.getClientRects()).length>1?d["right"==n?d.length-1:0]:a.getBoundingClientRect()}if(l&&s<9&&!u&&(!i||!i.left&&!i.right)){var p=a.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+rn(e.display),top:p.top,bottom:p.bottom}:Pr}for(var g=i.top-t.rect.top,v=i.bottom-t.rect.top,m=(g+v)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(m<y[b]);b++);var w=b?y[b-1]:0,x=y[b],C={left:("right"==h?i.right:i.left)-t.rect.left,right:("left"==h?i.left:i.right)-t.rect.left,top:w,bottom:x};i.left||i.right||(C.bogus=!0);e.options.singleCursorHeightPerLine||(C.rtop=g,C.rbottom=v);return C}(e,t,r,n)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Fr,Pr={left:0,right:0,top:0,bottom:0};function Er(e,t,r){for(var n,i,o,l,s,a,u=0;u<e.length;u+=3)if(s=e[u],a=e[u+1],t<s?(i=0,o=1,l="left"):t<a?o=(i=t-s)+1:(u==e.length-3||t==a&&e[u+3]>t)&&(i=(o=a-s)-1,t>=a&&(l="right")),null!=i){if(n=e[u+2],s==a&&r==(n.insertLeft?"left":"right")&&(l=r),"left"==r&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[2+(u-=3)],l="left";if("right"==r&&i==a-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)n=e[(u+=3)+2],l="right";break}return{node:n,start:i,end:o,collapse:l,coverStart:s,coverEnd:a}}function Ir(e,t){var r=Pr;if("left"==t)for(var n=0;n<e.length&&(r=e[n]).left==r.right;n++);else for(var i=e.length-1;i>=0&&(r=e[i]).left==r.right;i--);return r}function zr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Rr(e){e.display.externalMeasure=null,M(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)zr(e.display.view[t])}function Br(e){Rr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Gr(){return c&&v?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ur(){return c&&v?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Vr(e){var t=0;if(e.widgets)for(var r=0;r<e.widgets.length;++r)e.widgets[r].above&&(t+=xr(e.widgets[r]));return t}function Kr(e,t,r,n,i){if(!i){var o=Vr(t);r.top+=o,r.bottom+=o}if("line"==n)return r;n||(n="local");var l=Ye(t);if("local"==n?l+=Sr(e.display):l-=e.display.viewOffset,"page"==n||"window"==n){var s=e.display.lineSpace.getBoundingClientRect();l+=s.top+("window"==n?0:Ur());var a=s.left+("window"==n?0:Gr());r.left+=a,r.right+=a}return r.top+=l,r.bottom+=l,r}function jr(e,t,r){if("div"==r)return t;var n=t.left,i=t.top;if("page"==r)n-=Gr(),i-=Ur();else if("local"==r||!r){var o=e.display.sizer.getBoundingClientRect();n+=o.left,i+=o.top}var l=e.display.lineSpace.getBoundingClientRect();return{left:n-l.left,top:i-l.top}}function Xr(e,t,r,n,i){return n||(n=ae(e.doc,t.line)),Kr(e,n,Ar(e,n,t.ch,i),r)}function Yr(e,t,r,n,i,o){function l(t,l){var s=Hr(e,i,t,l?"right":"left",o);return l?s.left=s.right:s.right=s.left,Kr(e,n,s,r)}n=n||ae(e.doc,t.line),i||(i=Wr(e,n));var s=Je(n,e.doc.direction),a=t.ch,u=t.sticky;if(a>=n.text.length?(a=n.text.length,u="before"):a<=0&&(a=0,u="after"),!s)return l("before"==u?a-1:a,"before"==u);function c(e,t,r){return l(r?e-1:e,1==s[t].level!=r)}var h=Ze(s,a,u),f=qe,d=c(a,h,"before"==u);return null!=f&&(d.other=c(a,f,"before"!=u)),d}function _r(e,t){var r=0;t=Se(e.doc,t),e.options.lineWrapping||(r=rn(e.display)*t.ch);var n=ae(e.doc,t.line),i=Ye(n)+Sr(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function $r(e,t,r,n,i){var o=ve(e,t,r);return o.xRel=i,n&&(o.outside=!0),o}function qr(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return $r(n.first,0,null,!0,-1);var i=de(n,r),o=n.first+n.size-1;if(i>o)return $r(n.first+n.size-1,ae(n,o).text.length,null,!0,1);t<0&&(t=0);for(var l=ae(n,i);;){var s=en(e,l,i,t,r),a=Be(l,s.ch+(s.xRel>0?1:0));if(!a)return s;var u=a.find(1);if(u.line==i)return u;l=ae(n,i=u.line)}}function Zr(e,t,r,n){n-=Vr(t);var i=t.text.length,o=le(function(t){return Hr(e,r,t-1).bottom<=n},i,0);return{begin:o,end:i=le(function(t){return Hr(e,r,t).top>n},o,i)}}function Qr(e,t,r,n){return r||(r=Wr(e,t)),Zr(e,t,r,Kr(e,t,Hr(e,r,n),"line").top)}function Jr(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function en(e,t,r,n,i){i-=Ye(t);var o=Wr(e,t),l=Vr(t),s=0,a=t.text.length,u=!0,c=Je(t,e.doc.direction);if(c){var h=(e.options.lineWrapping?function(e,t,r,n,i,o,l){var s=Zr(e,t,n,l),a=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,h=null,f=0;f<i.length;f++){var d=i[f];if(!(d.from>=u||d.to<=a)){var p=1!=d.level,g=Hr(e,n,p?Math.min(u,d.to)-1:Math.max(a,d.from)).right,v=g<o?o-g+1e9:g-o;(!c||h>v)&&(c=d,h=v)}}c||(c=i[i.length-1]);c.from<a&&(c={from:a,to:c.to,level:c.level});c.to>u&&(c={from:c.from,to:u,level:c.level});return c}:function(e,t,r,n,i,o,l){var s=le(function(s){var a=i[s],u=1!=a.level;return Jr(Yr(e,ve(r,u?a.to:a.from,u?"before":"after"),"line",t,n),o,l,!0)},0,i.length-1),a=i[s];if(s>0){var u=1!=a.level,c=Yr(e,ve(r,u?a.from:a.to,u?"after":"before"),"line",t,n);Jr(c,o,l,!0)&&c.top>l&&(a=i[s-1])}return a})(e,t,r,o,c,n,i);s=(u=1!=h.level)?h.from:h.to-1,a=u?h.to:h.from-1}var f,d,p=null,g=null,v=le(function(t){var r=Hr(e,o,t);return r.top+=l,r.bottom+=l,!!Jr(r,n,i,!1)&&(r.top<=i&&r.left<=n&&(p=t,g=r),!0)},s,a),m=!1;if(g){var y=n-g.left<g.right-n,b=y==u;v=p+(b?0:1),d=b?"after":"before",f=y?g.left:g.right}else{u||v!=a&&v!=s||v++,d=0==v?"after":v==t.text.length?"before":Hr(e,o,v-(u?1:0)).bottom+l<=i==u?"after":"before";var w=Yr(e,ve(r,v,d),"line",t,o);f=w.left,m=i<w.top||i>=w.bottom}return $r(r,v=oe(t.text,v,1),d,m,n-f)}function tn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Fr){Fr=O("pre");for(var t=0;t<49;++t)Fr.appendChild(document.createTextNode("x")),Fr.appendChild(O("br"));Fr.appendChild(document.createTextNode("x"))}N(e.measure,Fr);var r=Fr.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),M(e.measure),r||1}function rn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),r=O("pre",[t]);N(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function nn(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l)r[e.options.gutters[l]]=o.offsetLeft+o.clientLeft+i,n[e.options.gutters[l]]=o.clientWidth;return{fixedPos:on(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function on(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ln(e){var t=tn(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/rn(e.display)-3);return function(i){if(je(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l<i.widgets.length;l++)i.widgets[l].height&&(o+=i.widgets[l].height);return r?o+(Math.ceil(i.text.length/n)||1)*t:o+t}}function sn(e){var t=e.doc,r=ln(e);t.iter(function(e){var t=r(e);t!=e.height&&he(e,t)})}function an(e,t,r,n){var i=e.display;if(!r&&"true"==dt(t).getAttribute("cm-not-content"))return null;var o,l,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,l=t.clientY-s.top}catch(t){return null}var a,u=qr(e,o,l);if(n&&1==u.xRel&&(a=ae(e.doc,u.line).text).length==u.ch){var c=z(a,a.length,e.options.tabSize)-a.length;u=ve(u.line,Math.max(0,Math.round((o-kr(e.display).left)/rn(e.display))-c))}return u}function un(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;n<r.length;n++)if((t-=r[n].size)<0)return n}function cn(e){e.display.input.showSelection(e.display.input.prepareSelection())}function hn(e,t){void 0===t&&(t=!0);for(var r=e.doc,n={},i=n.cursors=document.createDocumentFragment(),o=n.selection=document.createDocumentFragment(),l=0;l<r.sel.ranges.length;l++)if(t||l!=r.sel.primIndex){var s=r.sel.ranges[l];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var a=s.empty();(a||e.options.showCursorWhenSelecting)&&fn(e,s.head,i),a||pn(e,s,o)}}return n}function fn(e,t,r){var n=Yr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=r.appendChild(O("div"," ","CodeMirror-cursor"));if(i.style.left=n.left+"px",i.style.top=n.top+"px",i.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",n.other){var o=r.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=n.other.left+"px",o.style.top=n.other.top+"px",o.style.height=.85*(n.other.bottom-n.other.top)+"px"}}function dn(e,t){return e.top-t.top||e.left-t.left}function pn(e,t,r){var n=e.display,i=e.doc,o=document.createDocumentFragment(),l=kr(e.display),s=l.left,a=Math.max(n.sizerWidth,Mr(e)-n.sizer.offsetLeft)-l.right,u="ltr"==i.direction;function c(e,t,r,n){t<0&&(t=0),t=Math.round(t),n=Math.round(n),o.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==r?a-e:r)+"px;\n height: "+(n-t)+"px"))}function h(t,r,n){var o,l,h=ae(i,t),f=h.text.length;function d(r,n){return Xr(e,ve(t,r),"div",h,n)}function p(t,r,n){var i=Qr(e,h,null,t),o="ltr"==r==("after"==n)?"left":"right";return d("after"==n?i.begin:i.end-(/\s/.test(h.text.charAt(i.end-1))?2:1),o)[o]}var g=Je(h,i.direction);return function(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var l=e[o];(l.from<r&&l.to>t||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),1==l.level?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}(g,r||0,null==n?f:n,function(e,t,i,h){var v="ltr"==i,m=d(e,v?"left":"right"),y=d(t-1,v?"right":"left"),b=null==r&&0==e,w=null==n&&t==f,x=0==h,C=!g||h==g.length-1;if(y.top-m.top<=3){var S=(u?w:b)&&C,L=(u?b:w)&&x?s:(v?m:y).left,k=S?a:(v?y:m).right;c(L,m.top,k-L,m.bottom)}else{var T,M,N,O;v?(T=u&&b&&x?s:m.left,M=u?a:p(e,i,"before"),N=u?s:p(t,i,"after"),O=u&&w&&C?a:y.right):(T=u?p(e,i,"before"):s,M=!u&&b&&x?a:m.right,N=!u&&w&&C?s:y.left,O=u?p(t,i,"after"):a),c(T,m.top,M-T,m.bottom),m.bottom<y.top&&c(s,m.bottom,null,y.top),c(N,y.top,O-N,y.bottom)}(!o||dn(m,o)<0)&&(o=m),dn(y,o)<0&&(o=y),(!l||dn(m,l)<0)&&(l=m),dn(y,l)<0&&(l=y)}),{start:o,end:l}}var f=t.from(),d=t.to();if(f.line==d.line)h(f.line,f.ch,d.ch);else{var p=ae(i,f.line),g=ae(i,d.line),v=Ue(p)==Ue(g),m=h(f.line,f.ch,v?p.text.length+1:null).end,y=h(d.line,v?0:null,d.ch).start;v&&(m.top<y.top-2?(c(m.right,m.top,null,m.bottom),c(s,y.top,y.left,y.bottom)):c(m.right,m.top,y.left-m.right,m.bottom)),m.bottom<y.top&&c(s,m.bottom,null,y.top)}r.appendChild(o)}function gn(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function vn(e){e.state.focused||(e.display.input.focus(),yn(e))}function mn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,bn(e))},100)}function yn(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(it(e,"focus",e,t),e.state.focused=!0,H(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),a&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),gn(e))}function bn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(it(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function wn(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var i=t.view[n],o=e.options.lineWrapping,a=void 0,u=0;if(!i.hidden){if(l&&s<8){var c=i.node.offsetTop+i.node.offsetHeight;a=c-r,r=c}else{var h=i.node.getBoundingClientRect();a=h.bottom-h.top,!o&&i.text.firstChild&&(u=i.text.firstChild.getBoundingClientRect().right-h.left-1)}var f=i.line.height-a;if(a<2&&(a=tn(t)),(f>.005||f<-.005)&&(he(i.line,a),xn(i.line),i.rest))for(var d=0;d<i.rest.length;d++)xn(i.rest[d]);if(u>e.display.sizerWidth){var p=Math.ceil(u/rn(e.display));p>e.display.maxLineLength&&(e.display.maxLineLength=p,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function xn(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e.widgets[t],n=r.node.parentNode;n&&(r.height=n.offsetHeight)}}function Cn(e,t,r){var n=r&&null!=r.top?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-Sr(e));var i=r&&null!=r.bottom?r.bottom:n+e.wrapper.clientHeight,o=de(t,n),l=de(t,i);if(r&&r.ensure){var s=r.ensure.from.line,a=r.ensure.to.line;s<o?(o=s,l=de(t,Ye(ae(t,s))+e.wrapper.clientHeight)):Math.min(a,t.lastLine())>=l&&(o=de(t,Ye(ae(t,a))-e.wrapper.clientHeight),l=a)}return{from:o,to:Math.max(l,o+1)}}function Sn(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=on(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",l=0;l<r.length;l++)if(!r[l].hidden){e.options.fixedGutter&&(r[l].gutter&&(r[l].gutter.style.left=o),r[l].gutterBackground&&(r[l].gutterBackground.style.left=o));var s=r[l].alignable;if(s)for(var a=0;a<s.length;a++)s[a].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=n+i+"px")}}function Ln(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=ge(e.options,t.first+t.size-1),n=e.display;if(r.length!=n.lineNumChars){var i=n.measure.appendChild(O("div",[O("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,l=i.offsetWidth-o;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(o,n.lineGutter.offsetWidth-l)+1,n.lineNumWidth=n.lineNumInnerWidth+l,n.lineNumChars=n.lineNumInnerWidth?r.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",ui(e),!0}return!1}function kn(e,t){var r=e.display,n=tn(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,o=Nr(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Lr(r),a=t.top<n,u=t.bottom>s-n;if(t.top<i)l.scrollTop=a?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(l.scrollTop=c)}var h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft,f=Mr(e)-(e.options.fixedGutter?r.gutters.offsetWidth:0),d=t.right-t.left>f;return d&&(t.right=t.left+f),t.left<10?l.scrollLeft=0:t.left<h?l.scrollLeft=Math.max(0,t.left-(d?0:10)):t.right>f+h-3&&(l.scrollLeft=t.right+(d?0:10)-f),l}function Tn(e,t){null!=t&&(On(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Mn(e){On(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Nn(e,t,r){null==t&&null==r||On(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function On(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,An(e,_r(e,t.from),_r(e,t.to),t.margin))}function An(e,t,r,n){var i=kn(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});Nn(e,i.scrollLeft,i.scrollTop)}function Dn(e,t){Math.abs(e.doc.scrollTop-t)<2||(r||ai(e,{top:t}),Wn(e,t,!0),r&&ai(e),ni(e,100))}function Wn(e,t,r){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Hn(e,t,r,n){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,Sn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Fn(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Lr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Tr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var Pn=function(e,t,r){this.cm=r;var n=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),tt(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),tt(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,l&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Pn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},Pn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Pn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Pn.prototype.zeroWidthHack=function(){var e=y&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new R,this.disableVert=new R},Pn.prototype.enableZeroWidthBar=function(e,t,r){e.style.pointerEvents="auto",t.set(1e3,function n(){var i=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,n)})},Pn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var En=function(){};function In(e,t){t||(t=Fn(e));var r=e.display.barWidth,n=e.display.barHeight;zn(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&wn(e),zn(e,Fn(e)),r=e.display.barWidth,n=e.display.barHeight}function zn(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}En.prototype.update=function(){return{bottom:0,right:0}},En.prototype.setScrollLeft=function(){},En.prototype.setScrollTop=function(){},En.prototype.clear=function(){};var Rn={native:Pn,null:En};function Bn(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Rn[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),tt(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){"horizontal"==r?Hn(e,t):Dn(e,t)},e),e.display.scrollbars.addClass&&H(e.display.wrapper,e.display.scrollbars.addClass)}var Gn=0;function Un(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Gn},t=e.curOp,lr?lr.ops.push(t):t.ownsGroup=lr={ops:[t],delayedCallbacks:[]}}function Vn(e){var t=e.curOp;t&&function(e,t){var r=e.ownsGroup;if(r)try{!function(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var n=0;n<e.ops.length;n++){var i=e.ops[n];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(r<t.length)}(r)}finally{lr=null,t(r)}}(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,r=0;r<t.length;r++)Kn(t[r]);for(var n=0;n<t.length;n++)(i=t[n]).updatedDisplay=i.mustUpdate&&li(i.cm,i.update);var i;for(var o=0;o<t.length;o++)jn(t[o]);for(var l=0;l<t.length;l++)Xn(t[l]);for(var s=0;s<t.length;s++)Yn(t[s])}(e)})}function Kn(e){var t=e.cm,r=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Tr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Tr(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&$e(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new oi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function jn(e){var t=e.cm,r=t.display;e.updatedDisplay&&wn(t),e.barMeasure=Fn(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ar(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Tr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Mr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function Xn(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Hn(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==W();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&In(t,e.barMeasure),e.updatedDisplay&&ci(t,e.barMeasure),e.selectionChanged&&gn(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&vn(e.cm)}function Yn(e){var t=e.cm,r=t.display,n=t.doc;(e.updatedDisplay&&si(t,e.update),null==r.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(r.wheelStartX=r.wheelStartY=null),null!=e.scrollTop&&Wn(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Hn(t,e.scrollLeft,!0,!0),e.scrollToPos)&&function(e,t){if(!ot(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null;if(t.top+n.top<0?i=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=O("div","",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Sr(e.display))+"px;\n height: "+(t.bottom-t.top+Tr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,r,n){var i;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==(t=t.ch?ve(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?ve(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var l=!1,s=Yr(e,t),a=r&&r!=t?Yr(e,r):s,u=kn(e,i={left:Math.min(s.left,a.left),top:Math.min(s.top,a.top)-n,right:Math.max(s.left,a.left),bottom:Math.max(s.bottom,a.bottom)+n}),c=e.doc.scrollTop,h=e.doc.scrollLeft;if(null!=u.scrollTop&&(Dn(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(l=!0)),null!=u.scrollLeft&&(Hn(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-h)>1&&(l=!0)),!l)break}return i}(t,Se(n,e.scrollToPos.from),Se(n,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var l=0;l<i.length;++l)i[l].lines.length||it(i[l],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&it(o[s],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&it(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function _n(e,t){if(e.curOp)return t();Un(e);try{return t()}finally{Vn(e)}}function $n(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Un(e);try{return t.apply(e,arguments)}finally{Vn(e)}}}function qn(e){return function(){if(this.curOp)return e.apply(this,arguments);Un(this);try{return e.apply(this,arguments)}finally{Vn(this)}}}function Zn(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Un(t);try{return e.apply(this,arguments)}finally{Vn(t)}}}function Qn(e,t,r,n){null==t&&(t=e.doc.first),null==r&&(r=e.doc.first+e.doc.size),n||(n=0);var i=e.display;if(n&&r<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Te&&Ve(e.doc,t)<i.viewTo&&ei(e);else if(r<=i.viewFrom)Te&&Ke(e.doc,r+n)>i.viewFrom?ei(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)ei(e);else if(t<=i.viewFrom){var o=ti(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):ei(e)}else if(r>=i.viewTo){var l=ti(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):ei(e)}else{var s=ti(e,t,t,-1),a=ti(e,r,r+n,1);s&&a?(i.view=i.view.slice(0,s.index).concat(or(e,s.lineN,a.lineN)).concat(i.view.slice(a.index)),i.viewTo+=n):ei(e)}var u=i.externalMeasured;u&&(r<u.lineN?u.lineN+=n:t<u.lineN+u.size&&(i.externalMeasured=null))}function Jn(e,t,r){e.curOp.viewChanged=!0;var n=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var o=n.view[un(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);-1==B(l,r)&&l.push(r)}}}function ei(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ti(e,t,r,n){var i,o=un(e,t),l=e.display.view;if(!Te||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var s=e.display.viewFrom,a=0;a<o;a++)s+=l[a].size;if(s!=t){if(n>0){if(o==l.length-1)return null;i=s+l[o].size-t,o++}else i=s-t;t+=i,r+=i}for(;Ve(e.doc,r)!=r;){if(o==(n<0?0:l.length-1))return null;r+=n*l[o-(n<0?1:0)].size,o+=n}return{index:o,lineN:r}}function ri(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var i=t[n];i.hidden||i.node&&!i.changes||++r}return r}function ni(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,E(ii,e))}function ii(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,n=Rt(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(n.line>=e.display.viewFrom){var l=o.styles,s=o.text.length>e.options.maxHighlightLength?Dt(t.mode,n.state):null,a=It(e,o,n,!0);s&&(n.state=s),o.styles=a.styles;var u=o.styleClasses,c=a.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var h=!l||l.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!h&&f<l.length;++f)h=l[f]!=o.styles[f];h&&i.push(n.line),o.stateAfter=n.save(),n.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Bt(e,o.text,n),o.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>r)return ni(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&_n(e,function(){for(var t=0;t<i.length;t++)Jn(e,i[t],"text")})}}var oi=function(e,t,r){var n=e.display;this.viewport=t,this.visible=Cn(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Mr(e),this.force=r,this.dims=nn(e),this.events=[]};function li(e,t){var r=e.display,n=e.doc;if(t.editorIsHidden)return ei(e),!1;if(!t.force&&t.visible.from>=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==ri(e))return!1;Ln(e)&&(ei(e),t.dims=nn(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFrom<o&&o-r.viewFrom<20&&(o=Math.max(n.first,r.viewFrom)),r.viewTo>l&&r.viewTo-l<20&&(l=Math.min(i,r.viewTo)),Te&&(o=Ve(e.doc,o),l=Ke(e.doc,l));var s=o!=r.viewFrom||l!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;!function(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=or(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=or(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(un(e,t))),n.viewFrom=t,n.viewTo<r?n.view=n.view.concat(or(e,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,un(e,r)))),n.viewTo=r}(e,o,l),r.viewOffset=Ye(ae(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var u=ri(e);if(!s&&0==u&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=W();if(!t||!D(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&D(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}(e);return u>4&&(r.lineDiv.style.display="none"),function(e,t,r){var n=e.display,i=e.options.lineNumbers,o=n.lineDiv,l=o.firstChild;function s(t){var r=t.nextSibling;return a&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}for(var u=n.view,c=n.viewFrom,h=0;h<u.length;h++){var f=u[h];if(f.hidden);else if(f.node&&f.node.parentNode==o){for(;l!=f.node;)l=s(l);var d=i&&null!=t&&t<=c&&f.lineNumber;f.changes&&(B(f.changes,"gutter")>-1&&(d=!1),cr(e,f,c,r)),d&&(M(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(ge(e.options,c)))),l=f.node.nextSibling}else{var p=mr(e,f,c,r);o.insertBefore(p,l)}c+=f.size}for(;l;)l=s(l)}(e,r.updateLineNumbers,t.dims),u>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,function(e){if(e&&e.activeElt&&e.activeElt!=W()&&(e.activeElt.focus(),e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=window.getSelection(),r=document.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),t.removeAllRanges(),t.addRange(r),t.extend(e.focusNode,e.focusOffset)}}(c),M(r.cursorDiv),M(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,s&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,ni(e,400)),r.updateLineNumbers=null,!0}function si(e,t){for(var r=t.viewport,n=!0;(n&&e.options.lineWrapping&&t.oldDisplayWidth!=Mr(e)||(r&&null!=r.top&&(r={top:Math.min(e.doc.height+Lr(e.display)-Nr(e),r.top)}),t.visible=Cn(e.display,e.doc,r),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&li(e,t);n=!1){wn(e);var i=Fn(e);cn(e),In(e,i),ci(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ai(e,t){var r=new oi(e,t);if(li(e,r)){wn(e),si(e,r);var n=Fn(e);cn(e),In(e,n),ci(e,n),r.finish()}}function ui(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function ci(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Tr(e)+"px"}function hi(e){var t=e.display.gutters,r=e.options.gutters;M(t);for(var n=0;n<r.length;++n){var i=r[n],o=t.appendChild(O("div",null,"CodeMirror-gutter "+i));"CodeMirror-linenumbers"==i&&(e.display.lineGutter=o,o.style.width=(e.display.lineNumWidth||1)+"px")}t.style.display=n?"":"none",ui(e)}function fi(e){var t=B(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}oi.prototype.signal=function(e,t){st(e,t)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)it.apply(null,this.events[e])};var di=0,pi=null;function gi(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==r&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:null==r&&(r=e.wheelDelta),{x:t,y:r}}function vi(e){var t=gi(e);return t.x*=pi,t.y*=pi,t}function mi(e,t){var n=gi(t),i=n.x,o=n.y,l=e.display,s=l.scroller,u=s.scrollWidth>s.clientWidth,c=s.scrollHeight>s.clientHeight;if(i&&u||o&&c){if(o&&y&&a)e:for(var f=t.target,d=l.view;f!=s;f=f.parentNode)for(var p=0;p<d.length;p++)if(d[p].node==f){e.display.currentWheelTarget=f;break e}if(i&&!r&&!h&&null!=pi)return o&&c&&Dn(e,Math.max(0,s.scrollTop+o*pi)),Hn(e,Math.max(0,s.scrollLeft+i*pi)),(!o||o&&c)&&ut(t),void(l.wheelStartX=null);if(o&&null!=pi){var g=o*pi,v=e.doc.scrollTop,m=v+l.wrapper.clientHeight;g<0?v=Math.max(0,v+g-50):m=Math.min(e.doc.height,m+g+50),ai(e,{top:v,bottom:m})}di<20&&(null==l.wheelStartX?(l.wheelStartX=s.scrollLeft,l.wheelStartY=s.scrollTop,l.wheelDX=i,l.wheelDY=o,setTimeout(function(){if(null!=l.wheelStartX){var e=s.scrollLeft-l.wheelStartX,t=s.scrollTop-l.wheelStartY,r=t&&l.wheelDY&&t/l.wheelDY||e&&l.wheelDX&&e/l.wheelDX;l.wheelStartX=l.wheelStartY=null,r&&(pi=(pi*di+r)/(di+1),++di)}},200)):(l.wheelDX+=i,l.wheelDY+=o))}}l?pi=-.53:r?pi=15:c?pi=-.7:f&&(pi=-1/3);var yi=function(e,t){this.ranges=e,this.primIndex=t};yi.prototype.primary=function(){return this.ranges[this.primIndex]},yi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var r=this.ranges[t],n=e.ranges[t];if(!ye(r.anchor,n.anchor)||!ye(r.head,n.head))return!1}return!0},yi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new bi(be(this.ranges[t].anchor),be(this.ranges[t].head));return new yi(e,this.primIndex)},yi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},yi.prototype.contains=function(e,t){t||(t=e);for(var r=0;r<this.ranges.length;r++){var n=this.ranges[r];if(me(t,n.from())>=0&&me(e,n.to())<=0)return r}return-1};var bi=function(e,t){this.anchor=e,this.head=t};function wi(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(e,t){return me(e.from(),t.from())}),r=B(t,i);for(var o=1;o<t.length;o++){var l=t[o],s=t[o-1],a=me(s.to(),l.from());if(n&&!l.empty()?a>0:a>=0){var u=xe(s.from(),l.from()),c=we(s.to(),l.to()),h=s.empty()?l.from()==l.head:s.from()==s.head;o<=r&&--r,t.splice(--o,2,new bi(h?c:u,h?u:c))}}return new yi(t,r)}function xi(e,t){return new yi([new bi(e,t||e)],0)}function Ci(e){return e.text?ve(e.from.line+e.text.length-1,$(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Si(e,t){if(me(e,t.from)<0)return e;if(me(e,t.to)<=0)return Ci(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Ci(t).ch-t.to.ch),ve(r,n)}function Li(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var i=e.sel.ranges[n];r.push(new bi(Si(i.anchor,t),Si(i.head,t)))}return wi(e.cm,r,e.sel.primIndex)}function ki(e,t,r){return e.line==t.line?ve(r.line,e.ch-t.ch+r.ch):ve(r.line+(e.line-t.line),e.ch)}function Ti(e){e.doc.mode=Nt(e.options,e.doc.modeOption),Mi(e)}function Mi(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ni(e,100),e.state.modeGen++,e.curOp&&Qn(e)}function Ni(e,t){return 0==t.from.ch&&0==t.to.ch&&""==$(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Oi(e,t,r,n){function i(e){return r?r[e]:null}function o(e,r,i){!function(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),We(e),He(e,r);var i=n?n(e):1;i!=e.height&&he(e,i)}(e,r,i,n),ar(e,"change",e,t)}function l(e,t){for(var r=[],o=e;o<t;++o)r.push(new Yt(u[o],i(o),n));return r}var s=t.from,a=t.to,u=t.text,c=ae(e,s.line),h=ae(e,a.line),f=$(u),d=i(u.length-1),p=a.line-s.line;if(t.full)e.insert(0,l(0,u.length)),e.remove(u.length,e.size-u.length);else if(Ni(e,t)){var g=l(0,u.length-1);o(h,h.text,d),p&&e.remove(s.line,p),g.length&&e.insert(s.line,g)}else if(c==h)if(1==u.length)o(c,c.text.slice(0,s.ch)+f+c.text.slice(a.ch),d);else{var v=l(1,u.length-1);v.push(new Yt(f+c.text.slice(a.ch),d,n)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,v)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+h.text.slice(a.ch),i(0)),e.remove(s.line+1,p);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(h,f+h.text.slice(a.ch),d);var m=l(1,u.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,m)}ar(e,"change",e,t)}function Ai(e,t,r){!function e(n,i,o){if(n.linked)for(var l=0;l<n.linked.length;++l){var s=n.linked[l];if(s.doc!=i){var a=o&&s.sharedHist;r&&!a||(t(s.doc,a),e(s.doc,n,a))}}}(e,null,!0)}function Di(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,sn(e),Ti(e),Wi(e),e.options.lineWrapping||$e(e),e.options.mode=t.modeOption,Qn(e)}function Wi(e){("rtl"==e.doc.direction?H:T)(e.display.lineDiv,"CodeMirror-rtl")}function Hi(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Fi(e,t){var r={from:be(t.from),to:Ci(t),text:ue(e,t.from,t.to)};return Ri(e,r,t.from.line,t.to.line+1),Ai(e,function(e){return Ri(e,r,t.from.line,t.to.line+1)},!0),r}function Pi(e){for(;e.length;){if(!$(e).ranges)break;e.pop()}}function Ei(e,t,r,n){var i=e.history;i.undone.length=0;var o,l,s=+new Date;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Pi(e.done),$(e.done)):e.done.length&&!$(e.done).ranges?$(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),$(e.done)):void 0}(i,i.lastOp==n)))l=$(o.changes),0==me(t.from,t.to)&&0==me(t.from,l.to)?l.to=Ci(t):o.changes.push(Fi(e,t));else{var a=$(i.done);for(a&&a.ranges||zi(e.sel,i.done),o={changes:[Fi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||it(e,"historyAdded")}function Ii(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,r,n){var i=t.charAt(0);return"*"==i||"+"==i&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,$(i.done),t))?i.done[i.done.length-1]=t:zi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&!1!==n.clearRedo&&Pi(i.undone)}function zi(e,t){var r=$(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Ri(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(r){r.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=r.markedSpans),++o})}function Bi(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function Gi(e,t){var r=function(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],i=0;i<t.text.length;++i)n.push(Bi(r[i]));return n}(e,t),n=Ae(e,t);if(!r)return n;if(!n)return r;for(var i=0;i<r.length;++i){var o=r[i],l=n[i];if(o&&l)e:for(var s=0;s<l.length;++s){for(var a=l[s],u=0;u<o.length;++u)if(o[u].marker==a.marker)continue e;o.push(a)}else l&&(r[i]=l)}return r}function Ui(e,t,r){for(var n=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)n.push(r?yi.prototype.deepCopy.call(o):o);else{var l=o.changes,s=[];n.push({changes:s});for(var a=0;a<l.length;++a){var u=l[a],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var h in u)(c=h.match(/^spans_(\d+)$/))&&B(t,Number(c[1]))>-1&&($(s)[h]=u[h],delete u[h])}}}return n}function Vi(e,t,r,n){if(n){var i=e.anchor;if(r){var o=me(t,i)<0;o!=me(r,i)<0?(i=t,t=r):o!=me(t,r)<0&&(t=r)}return new bi(i,t)}return new bi(r||t,t)}function Ki(e,t,r,n,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),$i(e,new yi([Vi(e.sel.primary(),t,r,i)],0),n)}function ji(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)n[o]=Vi(e.sel.ranges[o],t[o],null,i);$i(e,wi(e.cm,n,e.sel.primIndex),r)}function Xi(e,t,r,n){var i=e.sel.ranges.slice(0);i[t]=r,$i(e,wi(e.cm,i,e.sel.primIndex),n)}function Yi(e,t,r,n){$i(e,xi(t,r),n)}function _i(e,t,r){var n=e.history.done,i=$(n);i&&i.ranges?(n[n.length-1]=t,qi(e,t,r)):$i(e,t,r)}function $i(e,t,r){qi(e,t,r),Ii(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function qi(e,t,r){(st(e,"beforeSelectionChange")||e.cm&&st(e.cm,"beforeSelectionChange"))&&(t=function(e,t,r){var n={ranges:t.ranges,update:function(t){this.ranges=[];for(var r=0;r<t.length;r++)this.ranges[r]=new bi(Se(e,t[r].anchor),Se(e,t[r].head))},origin:r&&r.origin};return it(e,"beforeSelectionChange",e,n),e.cm&&it(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?wi(e.cm,n.ranges,n.ranges.length-1):t}(e,t,r));var n=r&&r.bias||(me(t.primary().head,e.sel.primary().head)<0?-1:1);Zi(e,Ji(e,t,n,!0)),r&&!1===r.scroll||!e.cm||Mn(e.cm)}function Zi(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,lt(e.cm)),ar(e,"cursorActivity",e))}function Qi(e){Zi(e,Ji(e,e.sel,null,!1))}function Ji(e,t,r,n){for(var i,o=0;o<t.ranges.length;o++){var l=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],a=to(e,l.anchor,s&&s.anchor,r,n),u=to(e,l.head,s&&s.head,r,n);(i||a!=l.anchor||u!=l.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new bi(a,u))}return i?wi(e.cm,i,t.primIndex):t}function eo(e,t,r,n,i){var o=ae(e,t.line);if(o.markedSpans)for(var l=0;l<o.markedSpans.length;++l){var s=o.markedSpans[l],a=s.marker;if((null==s.from||(a.inclusiveLeft?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(a.inclusiveRight?s.to>=t.ch:s.to>t.ch))){if(i&&(it(a,"beforeCursorEnter"),a.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!a.atomic)continue;if(r){var u=a.find(n<0?1:-1),c=void 0;if((n<0?a.inclusiveRight:a.inclusiveLeft)&&(u=ro(e,u,-n,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(c=me(u,r))&&(n<0?c<0:c>0))return eo(e,u,t,n,i)}var h=a.find(n<0?-1:1);return(n<0?a.inclusiveLeft:a.inclusiveRight)&&(h=ro(e,h,n,h.line==t.line?o:null)),h?eo(e,h,t,n,i):null}}return t}function to(e,t,r,n,i){var o=n||1,l=eo(e,t,r,o,i)||!i&&eo(e,t,r,o,!0)||eo(e,t,r,-o,i)||!i&&eo(e,t,r,-o,!0);return l||(e.cantEdit=!0,ve(e.first,0))}function ro(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?Se(e,ve(t.line-1)):null:r>0&&t.ch==(n||ae(e,t.line)).text.length?t.line<e.first+e.size-1?ve(t.line+1,0):null:new ve(t.line,t.ch+r)}function no(e){e.setSelection(ve(e.firstLine(),0),ve(e.lastLine()),V)}function io(e,t,r){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return r&&(n.update=function(t,r,i,o){t&&(n.from=Se(e,t)),r&&(n.to=Se(e,r)),i&&(n.text=i),void 0!==o&&(n.origin=o)}),it(e,"beforeChange",e,n),e.cm&&it(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function oo(e,t,r){if(e.cm){if(!e.cm.curOp)return $n(e.cm,oo)(e,t,r);if(e.cm.state.suppressEdits)return}if(!(st(e,"beforeChange")||e.cm&&st(e.cm,"beforeChange"))||(t=io(e,t,!0))){var n=ke&&!r&&function(e,t,r){var n=null;if(e.iter(t.line,r.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var r=e.markedSpans[t].marker;!r.readOnly||n&&-1!=B(n,r)||(n||(n=[])).push(r)}}),!n)return null;for(var i=[{from:t,to:r}],o=0;o<n.length;++o)for(var l=n[o],s=l.find(0),a=0;a<i.length;++a){var u=i[a];if(!(me(u.to,s.from)<0||me(u.from,s.to)>0)){var c=[a,1],h=me(u.from,s.from),f=me(u.to,s.to);(h<0||!l.inclusiveLeft&&!h)&&c.push({from:u.from,to:s.from}),(f>0||!l.inclusiveRight&&!f)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),a+=c.length-3}}return i}(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)lo(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else lo(e,t)}}function lo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=me(t.from,t.to)){var r=Li(e,t);Ei(e,t,r,e.cm?e.cm.curOp.id:NaN),uo(e,t,r,Ae(e,t));var n=[];Ai(e,function(e,r){r||-1!=B(n,e.history)||(po(e.history,t),n.push(e.history)),uo(e,t,null,Ae(e,t))})}}function so(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!n||r){for(var i,o=e.history,l=e.sel,s="undo"==t?o.done:o.undone,a="undo"==t?o.undone:o.done,u=0;u<s.length&&(i=s[u],r?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(n)return void s.push(i);break}if(zi(i,a),r&&!i.equals(e.sel))return void $i(e,i,{clearRedo:!1});l=i}var c=[];zi(l,a),a.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var h=st(e,"beforeChange")||e.cm&&st(e.cm,"beforeChange"),f=function(r){var n=i.changes[r];if(n.origin=t,h&&!io(e,n,!1))return s.length=0,{};c.push(Fi(e,n));var o=r?Li(e,n):$(s);uo(e,n,o,Gi(e,n)),!r&&e.cm&&e.cm.scrollIntoView({from:n.from,to:Ci(n)});var l=[];Ai(e,function(e,t){t||-1!=B(l,e.history)||(po(e.history,n),l.push(e.history)),uo(e,n,null,Gi(e,n))})},d=i.changes.length-1;d>=0;--d){var p=f(d);if(p)return p.v}}}}function ao(e,t){if(0!=t&&(e.first+=t,e.sel=new yi(q(e.sel.ranges,function(e){return new bi(ve(e.anchor.line+t,e.anchor.ch),ve(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Qn(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;n<r.viewTo;n++)Jn(e.cm,n,"gutter")}}function uo(e,t,r,n){if(e.cm&&!e.cm.curOp)return $n(e.cm,uo)(e,t,r,n);if(t.to.line<e.first)ao(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ao(e,i),t={from:ve(e.first,0),to:ve(t.to.line+i,t.to.ch),text:[$(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ve(o,ae(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ue(e,t.from,t.to),r||(r=Li(e,t)),e.cm?function(e,t,r){var n=e.doc,i=e.display,o=t.from,l=t.to,s=!1,a=o.line;e.options.lineWrapping||(a=fe(Ue(ae(n,o.line))),n.iter(a,l.line+1,function(e){if(e==i.maxLine)return s=!0,!0}));n.sel.contains(t.from,t.to)>-1&<(e);Oi(n,t,r,ln(e)),e.options.lineWrapping||(n.iter(a,o.line+t.text.length,function(e){var t=_e(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var r=e.first,n=t-1;n>r;n--){var i=ae(e,n).stateAfter;if(i&&(!(i instanceof Pt)||n+i.lookAhead<t)){r=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}})(n,o.line),ni(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?Qn(e):o.line!=l.line||1!=t.text.length||Ni(e.doc,t)?Qn(e,o.line,l.line+1,u):Jn(e,o.line,"text");var c=st(e,"changes"),h=st(e,"change");if(h||c){var f={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};h&&ar(e,"change",e,f),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}(e.cm,t,n):Oi(e,t,n),qi(e,r,V)}}function co(e,t,r,n,i){var o;n||(n=r),me(n,r)<0&&(r=(o=[n,r])[0],n=o[1]),"string"==typeof t&&(t=e.splitLines(t)),oo(e,{from:r,to:n,text:t,origin:i})}function ho(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function fo(e,t,r,n){for(var i=0;i<e.length;++i){var o=e[i],l=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)ho(o.ranges[s].anchor,t,r,n),ho(o.ranges[s].head,t,r,n)}else{for(var a=0;a<o.changes.length;++a){var u=o.changes[a];if(r<u.from.line)u.from=ve(u.from.line+n,u.from.ch),u.to=ve(u.to.line+n,u.to.ch);else if(t<=u.to.line){l=!1;break}}l||(e.splice(0,i+1),i=0)}}}function po(e,t){var r=t.from.line,n=t.to.line,i=t.text.length-(n-r)-1;fo(e.done,r,n,i),fo(e.undone,r,n,i)}function go(e,t,r,n){var i=t,o=t;return"number"==typeof t?o=ae(e,Ce(e,t)):i=fe(t),null==i?null:(n(o,i)&&e.cm&&Jn(e.cm,i,r),o)}function vo(e){this.lines=e,this.parent=null;for(var t=0,r=0;r<e.length;++r)e[r].parent=this,t+=e[r].height;this.height=t}function mo(e){this.children=e;for(var t=0,r=0,n=0;n<e.length;++n){var i=e[n];t+=i.chunkSize(),r+=i.height,i.parent=this}this.size=t,this.height=r,this.parent=null}bi.prototype.from=function(){return xe(this.anchor,this.head)},bi.prototype.to=function(){return we(this.anchor,this.head)},bi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},vo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var r=e,n=e+t;r<n;++r){var i=this.lines[r];this.height-=i.height,_t(i),ar(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,r){this.height+=r,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,r){for(var n=e+t;e<n;++e)if(r(this.lines[e]))return!0}},mo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var r=0;r<this.children.length;++r){var n=this.children[r],i=n.chunkSize();if(e<i){var o=Math.min(t,i-e),l=n.height;if(n.removeInner(e,o),this.height-=l-n.height,i==o&&(this.children.splice(r--,1),n.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof vo))){var s=[];this.collapse(s),this.children=[new vo(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,r){this.size+=t.length,this.height+=r;for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,r),i.lines&&i.lines.length>50){for(var l=i.lines.length%25+25,s=l;s<i.lines.length;){var a=new vo(i.lines.slice(s,s+=25));i.height-=a.height,this.children.splice(++n,0,a),a.parent=this}i.lines=i.lines.slice(0,l),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new mo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var r=B(e.parent.children,e);e.parent.children.splice(r+1,0,t)}else{var n=new mo(e.children);n.parent=e,e.children=[n,t],e=n}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(e<o){var l=Math.min(t,o-e);if(i.iterN(e,l,r))return!0;if(0==(t-=l))break;e=0}else e-=o}}};var yo=function(e,t,r){if(r)for(var n in r)r.hasOwnProperty(n)&&(this[n]=r[n]);this.doc=e,this.node=t};function bo(e,t,r){Ye(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Tn(e,r)}yo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,r=this.line,n=fe(r);if(null!=n&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(r.widgets=null);var o=xr(this);he(r,Math.max(0,r.height-o)),e&&(_n(e,function(){bo(e,r,-o),Jn(e,n,"widget")}),ar(e,"lineWidgetCleared",e,this,n))}},yo.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,n=this.line;this.height=null;var i=xr(this)-t;i&&(je(this.doc,n)||he(n,n.height+i),r&&_n(r,function(){r.curOp.forceUpdate=!0,bo(r,n,i),ar(r,"lineWidgetChanged",r,e,fe(n))}))},at(yo);var wo=0,xo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++wo};function Co(e,t,r,n,i){if(n&&n.shared)return function(e,t,r,n,i){(n=I(n)).shared=!1;var o=[Co(e,t,r,n,i)],l=o[0],s=n.widgetNode;return Ai(e,function(e){s&&(n.widgetNode=s.cloneNode(!0)),o.push(Co(e,Se(e,t),Se(e,r),n,i));for(var a=0;a<e.linked.length;++a)if(e.linked[a].isParent)return;l=$(o)}),new So(o,l)}(e,t,r,n,i);if(e.cm&&!e.cm.curOp)return $n(e.cm,Co)(e,t,r,n,i);var o=new xo(e,i),l=me(t,r);if(n&&I(n,o,!1),l>0||0==l&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=A("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ge(e,t.line,t,r,o)||t.line!=r.line&&Ge(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Te=!0}o.addToHistory&&Ei(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var s,a=t.line,u=e.cm;if(e.iter(a,r.line+1,function(e){u&&o.collapsed&&!u.options.lineWrapping&&Ue(e)==u.display.maxLine&&(s=!0),o.collapsed&&a!=t.line&&he(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Me(o,a==t.line?t.ch:null,a==r.line?r.ch:null)),++a}),o.collapsed&&e.iter(t.line,r.line+1,function(t){je(e,t)&&he(t,0)}),o.clearOnEnter&&tt(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(ke=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++wo,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)Qn(u,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=r.line;c++)Jn(u,c,"text");o.atomic&&Qi(u.doc),ar(u,"markerAdded",u,o)}return o}xo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Un(e),st(this,"clear")){var r=this.find();r&&ar(this,"clear",r.from,r.to)}for(var n=null,i=null,o=0;o<this.lines.length;++o){var l=this.lines[o],s=Ne(l.markedSpans,this);e&&!this.collapsed?Jn(e,fe(l),"text"):e&&(null!=s.to&&(i=fe(l)),null!=s.from&&(n=fe(l))),l.markedSpans=Oe(l.markedSpans,s),null==s.from&&this.collapsed&&!je(this.doc,l)&&e&&he(l,tn(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var a=0;a<this.lines.length;++a){var u=Ue(this.lines[a]),c=_e(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&Qn(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Qi(e.doc)),e&&ar(e,"markerCleared",e,this,n,i),t&&Vn(e),this.parent&&this.parent.clear()}},xo.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],l=Ne(o.markedSpans,this);if(null!=l.from&&(r=ve(t?o:fe(o),l.from),-1==e))return r;if(null!=l.to&&(n=ve(t?o:fe(o),l.to),1==e))return n}return r&&{from:r,to:n}},xo.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,n=this.doc.cm;t&&n&&_n(n,function(){var i=t.line,o=fe(t.line),l=Dr(n,o);if(l&&(zr(l),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!je(r.doc,i)&&null!=r.height){var s=r.height;r.height=null;var a=xr(r)-s;a&&he(i,i.height+a)}ar(n,"markerChanged",n,e)})},xo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=B(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},xo.prototype.detachLine=function(e){if(this.lines.splice(B(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},at(xo);var So=function(e,t){this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=this};function Lo(e){return e.findMarks(ve(e.first,0),e.clipPos(ve(e.lastLine())),function(e){return e.parent})}function ko(e){for(var t=function(t){var r=e[t],n=[r.primary.doc];Ai(r.primary.doc,function(e){return n.push(e)});for(var i=0;i<r.markers.length;i++){var o=r.markers[i];-1==B(n,o.doc)&&(o.parent=null,r.markers.splice(i--,1))}},r=0;r<e.length;r++)t(r)}So.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ar(this,"clear")}},So.prototype.find=function(e,t){return this.primary.find(e,t)},at(So);var To=0,Mo=function(e,t,r,n,i){if(!(this instanceof Mo))return new Mo(e,t,r,n,i);null==r&&(r=0),mo.call(this,[new vo([new Yt("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var o=ve(r,0);this.sel=xi(o),this.history=new Hi(null),this.id=++To,this.modeOption=t,this.lineSep=n,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Oi(this,{from:o,to:o,text:e}),$i(this,xi(o),V)};Mo.prototype=Q(mo.prototype,{constructor:Mo,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,n=0;n<t.length;++n)r+=t[n].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=ce(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Zn(function(e){var t=ve(this.first,0),r=this.first+this.size-1;oo(this,{from:t,to:ve(r,ae(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Nn(this.cm,0,0),$i(this,xi(t),V)}),replaceRange:function(e,t,r,n){co(this,e,t=Se(this,t),r=r?Se(this,r):t,n)},getRange:function(e,t,r){var n=ue(this,Se(this,e),Se(this,t));return!1===r?n:n.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(pe(this,e))return ae(this,e)},getLineNumber:function(e){return fe(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=ae(this,e)),Ue(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Se(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Zn(function(e,t,r){Yi(this,Se(this,"number"==typeof e?ve(e,t||0):e),null,r)}),setSelection:Zn(function(e,t,r){Yi(this,Se(this,e),Se(this,t||e),r)}),extendSelection:Zn(function(e,t,r){Ki(this,Se(this,e),t&&Se(this,t),r)}),extendSelections:Zn(function(e,t){ji(this,Le(this,e),t)}),extendSelectionsBy:Zn(function(e,t){ji(this,Le(this,q(this.sel.ranges,e)),t)}),setSelections:Zn(function(e,t,r){if(e.length){for(var n=[],i=0;i<e.length;i++)n[i]=new bi(Se(this,e[i].anchor),Se(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),$i(this,wi(this.cm,n,t),r)}}),addSelection:Zn(function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new bi(Se(this,e),Se(this,t||e))),$i(this,wi(this.cm,n,n.length-1),r)}),getSelection:function(e){for(var t,r=this.sel.ranges,n=0;n<r.length;n++){var i=ue(this,r[n].from(),r[n].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],r=this.sel.ranges,n=0;n<r.length;n++){var i=ue(this,r[n].from(),r[n].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[n]=i}return t},replaceSelection:function(e,t,r){for(var n=[],i=0;i<this.sel.ranges.length;i++)n[i]=e;this.replaceSelections(n,t,r||"+input")},replaceSelections:Zn(function(e,t,r){for(var n=[],i=this.sel,o=0;o<i.ranges.length;o++){var l=i.ranges[o];n[o]={from:l.from(),to:l.to(),text:this.splitLines(e[o]),origin:r}}for(var s=t&&"end"!=t&&function(e,t,r){for(var n=[],i=ve(e.first,0),o=i,l=0;l<t.length;l++){var s=t[l],a=ki(s.from,i,o),u=ki(Ci(s),i,o);if(i=s.to,o=u,"around"==r){var c=e.sel.ranges[l],h=me(c.head,c.anchor)<0;n[l]=new bi(h?u:a,h?a:u)}else n[l]=new bi(a,a)}return new yi(n,e.sel.primIndex)}(this,n,t),a=n.length-1;a>=0;a--)oo(this,n[a]);s?_i(this,s):this.cm&&Mn(this.cm)}),undo:Zn(function(){so(this,"undo")}),redo:Zn(function(){so(this,"redo")}),undoSelection:Zn(function(){so(this,"undo",!0)}),redoSelection:Zn(function(){so(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){this.history=new Hi(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ui(this.history.done),undone:Ui(this.history.undone)}},setHistory:function(e){var t=this.history=new Hi(this.history.maxGeneration);t.done=Ui(e.done.slice(0),null,!0),t.undone=Ui(e.undone.slice(0),null,!0)},setGutterMarker:Zn(function(e,t,r){return go(this,e,"gutter",function(e){var n=e.gutterMarkers||(e.gutterMarkers={});return n[t]=r,!r&&re(n)&&(e.gutterMarkers=null),!0})}),clearGutter:Zn(function(e){var t=this;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&go(t,r,"gutter",function(){return r.gutterMarkers[e]=null,re(r.gutterMarkers)&&(r.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!pe(this,e))return null;if(t=e,!(e=ae(this,e)))return null}else if(null==(t=fe(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Zn(function(e,t,r){return go(this,e,"gutter"==t?"gutter":"class",function(e){var n="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[n]){if(L(r).test(e[n]))return!1;e[n]+=" "+r}else e[n]=r;return!0})}),removeLineClass:Zn(function(e,t,r){return go(this,e,"gutter"==t?"gutter":"class",function(e){var n="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[n];if(!i)return!1;if(null==r)e[n]=null;else{var o=i.match(L(r));if(!o)return!1;var l=o.index+o[0].length;e[n]=i.slice(0,o.index)+(o.index&&l!=i.length?" ":"")+i.slice(l)||null}return!0})}),addLineWidget:Zn(function(e,t,r){return function(e,t,r,n){var i=new yo(e,r,n),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),go(e,t,"widget",function(t){var r=t.widgets||(t.widgets=[]);if(null==i.insertAt?r.push(i):r.splice(Math.min(r.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!je(e,t)){var n=Ye(t)<e.scrollTop;he(t,t.height+xr(i)),n&&Tn(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&ar(o,"lineWidgetAdded",o,i,"number"==typeof t?t:fe(t)),i}(this,e,t,r)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return Co(this,Se(this,e),Se(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return Co(this,e=Se(this,e),e,r,"bookmark")},findMarksAt:function(e){var t=[],r=ae(this,(e=Se(this,e)).line).markedSpans;if(r)for(var n=0;n<r.length;++n){var i=r[n];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=Se(this,e),t=Se(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var s=0;s<l.length;s++){var a=l[s];null!=a.to&&i==e.line&&e.ch>=a.to||null==a.from&&i!=e.line||null!=a.from&&i==t.line&&a.from>=t.ch||r&&!r(a.marker)||n.push(a.marker.parent||a.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;n<r.length;++n)null!=r[n].from&&e.push(r[n].marker)}),e},posFromIndex:function(e){var t,r=this.first,n=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+n;if(o>e)return t=e,!0;e-=o,++r}),Se(this,ve(r,t))},indexFromPos:function(e){var t=(e=Se(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+r}),t},copy:function(e){var t=new Mo(ce(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,r=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<r&&(r=e.to);var n=new Mo(ce(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.find(),o=e.clipPos(i.from),l=e.clipPos(i.to);if(me(o,l)){var s=Co(e,o,l,n.primary,n.primary.type);n.markers.push(s),s.parent=n}}}(n,Lo(this)),n},unlinkDoc:function(e){if(e instanceof Ll&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),ko(Lo(this));break}}if(e.history==this.history){var r=[e.id];Ai(e,function(e){return r.push(e.id)},!0),e.history=new Hi(null),e.history.done=Ui(this.history.done,r),e.history.undone=Ui(this.history.undone,r)}},iterLinkedDocs:function(e){Ai(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):xt(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Zn(function(e){var t;("rtl"!=e&&(e="ltr"),e!=this.direction)&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&_n(t=this.cm,function(){Wi(t),Qn(t)}))})}),Mo.prototype.eachLine=Mo.prototype.iter;var No=0;function Oo(e){var t=this;if(Ao(t),!ot(t,e)&&!Cr(t.display,e)){ut(e),l&&(No=+new Date);var r=an(t,e,!0),n=e.dataTransfer.files;if(r&&!t.isReadOnly())if(n&&n.length&&window.FileReader&&window.File)for(var i=n.length,o=Array(i),s=0,a=function(e,n){if(!t.options.allowDropFileTypes||-1!=B(t.options.allowDropFileTypes,e.type)){var l=new FileReader;l.onload=$n(t,function(){var e=l.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[n]=e,++s==i){var a={from:r=Se(t.doc,r),to:r,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};oo(t.doc,a),_i(t.doc,xi(r,Ci(a)))}}),l.readAsText(e)}},u=0;u<i;++u)a(n[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var c=e.dataTransfer.getData("Text");if(c){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),qi(t.doc,xi(r,r)),h)for(var f=0;f<h.length;++f)co(t.doc,"",h[f].anchor,h[f].head,"drag");t.replaceSelection(c,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ao(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Do(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),r=[],n=0;n<t.length;n++){var i=t[n].CodeMirror;i&&r.push(i)}r.length&&r[0].operation(function(){for(var t=0;t<r.length;t++)e(r[t])})}}var Wo=!1;function Ho(){var e;Wo||(tt(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Do(Fo)},100))}),tt(window,"blur",function(){return Do(bn)}),Wo=!0)}function Fo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Po={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Eo=0;Eo<10;Eo++)Po[Eo+48]=Po[Eo+96]=String(Eo);for(var Io=65;Io<=90;Io++)Po[Io]=String.fromCharCode(Io);for(var zo=1;zo<=12;zo++)Po[zo+111]=Po[zo+63235]="F"+zo;var Ro={};function Bo(e){var t,r,n,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var l=0;l<o.length-1;l++){var s=o[l];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);n=!0}}return t&&(e="Alt-"+e),r&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),n&&(e="Shift-"+e),e}function Go(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if("..."==n){delete e[r];continue}for(var i=q(r.split(" "),Bo),o=0;o<i.length;o++){var l=void 0,s=void 0;o==i.length-1?(s=i.join(" "),l=n):(s=i.slice(0,o+1).join(" "),l="...");var a=t[s];if(a){if(a!=l)throw new Error("Inconsistent bindings for "+s)}else t[s]=l}delete e[r]}for(var u in t)e[u]=t[u];return e}function Uo(e,t,r,n){var i=(t=Xo(t)).call?t.call(e,n):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&r(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Uo(e,t.fallthrough,r,n);for(var o=0;o<t.fallthrough.length;o++){var l=Uo(e,t.fallthrough[o],r,n);if(l)return l}}}function Vo(e){var t="string"==typeof e?e:Po[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Ko(e,t,r){var n=e;return t.altKey&&"Alt"!=n&&(e="Alt-"+e),(C?t.metaKey:t.ctrlKey)&&"Ctrl"!=n&&(e="Ctrl-"+e),(C?t.ctrlKey:t.metaKey)&&"Cmd"!=n&&(e="Cmd-"+e),!r&&t.shiftKey&&"Shift"!=n&&(e="Shift-"+e),e}function jo(e,t){if(h&&34==e.keyCode&&e.char)return!1;var r=Po[e.keyCode];return null!=r&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(r=e.code),Ko(r,e,t))}function Xo(e){return"string"==typeof e?Ro[e]:e}function Yo(e,t){for(var r=e.doc.sel.ranges,n=[],i=0;i<r.length;i++){for(var o=t(r[i]);n.length&&me(o.from,$(n).to)<=0;){var l=n.pop();if(me(l.from,o.from)<0){o.from=l.from;break}}n.push(o)}_n(e,function(){for(var t=n.length-1;t>=0;t--)co(e.doc,"",n[t].from,n[t].to,"+delete");Mn(e)})}function _o(e,t,r){var n=oe(e.text,t+r,r);return n<0||n>e.text.length?null:n}function $o(e,t,r){var n=_o(e,t.ch,r);return null==n?null:new ve(t.line,n,r<0?"after":"before")}function qo(e,t,r,n,i){if(e){var o=Je(r,t.doc.direction);if(o){var l,s=i<0?$(o):o[0],a=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=Wr(t,r);l=i<0?r.text.length-1:0;var c=Hr(t,u,l).top;l=le(function(e){return Hr(t,u,e).top==c},i<0==(1==s.level)?s.from:s.to-1,l),"before"==a&&(l=_o(r,l,1))}else l=i<0?s.to:s.from;return new ve(n,l,a)}}return new ve(n,i<0?r.text.length:0,i<0?"before":"after")}Ro.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ro.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ro.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ro.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ro.default=y?Ro.macDefault:Ro.pcDefault;var Zo={selectAll:no,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),V)},killLine:function(e){return Yo(e,function(t){if(t.empty()){var r=ae(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:ve(t.head.line+1,0)}:{from:t.head,to:ve(t.head.line,r)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Yo(e,function(t){return{from:ve(t.from().line,0),to:Se(e.doc,ve(t.to().line+1,0))}})},delLineLeft:function(e){return Yo(e,function(e){return{from:ve(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Yo(e,function(t){var r=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:r},"div"),to:t.from()}})},delWrappedLineRight:function(e){return Yo(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div");return{from:t.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ve(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ve(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Qo(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Jo(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(e,t){var r=ae(e.doc,t),n=function(e){for(var t;t=Re(e);)e=t.find(1,!0).line;return e}(r);n!=r&&(t=fe(n));return qo(!0,e,r,t,-1)}(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")},j)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")},j)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return n.ch<e.getLine(n.line).search(/\S/)?Jo(e,t.head):n},j)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],r=e.listSelections(),n=e.options.tabSize,i=0;i<r.length;i++){var o=r[i].from(),l=z(e.getLine(o.line),o.ch,n);t.push(_(n-l%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return _n(e,function(){for(var t=e.listSelections(),r=[],n=0;n<t.length;n++)if(t[n].empty()){var i=t[n].head,o=ae(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ve(i.line,i.ch-1)),i.ch>0)i=new ve(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ve(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=ae(e.doc,i.line-1).text;l&&(i=new ve(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),ve(i.line-1,l.length-1),i,"+transpose"))}r.push(new bi(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return _n(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);Mn(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Qo(e,t){var r=ae(e.doc,t),n=Ue(r);return n!=r&&(t=fe(n)),qo(!0,e,n,t,1)}function Jo(e,t){var r=Qo(e,t.line),n=ae(e.doc,r.line),i=Je(n,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,n.text.search(/\S/)),l=t.line==r.line&&t.ch<=o&&t.ch;return ve(r.line,l?0:o,r.sticky)}return r}function el(e,t,r){if("string"==typeof t&&!(t=Zo[t]))return!1;e.display.input.ensurePolled();var n=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),i=t(e)!=U}finally{e.display.shift=n,e.state.suppressEdits=!1}return i}var tl=new R;function rl(e,t,r,n){var i=e.state.keySeq;if(i){if(Vo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:tl.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),nl(e,i+" "+t,r,n))return!0}return nl(e,t,r,n)}function nl(e,t,r,n){var i=function(e,t,r){for(var n=0;n<e.state.keyMaps.length;n++){var i=Uo(t,e.state.keyMaps[n],r,e);if(i)return i}return e.options.extraKeys&&Uo(t,e.options.extraKeys,r,e)||Uo(t,e.options.keyMap,r,e)}(e,t,n);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&ar(e,"keyHandled",e,t,r),"handled"!=i&&"multi"!=i||(ut(r),gn(e)),!!i}function il(e,t){var r=jo(t,!0);return!!r&&(t.shiftKey&&!e.state.keySeq?rl(e,"Shift-"+r,t,function(t){return el(e,t,!0)})||rl(e,r,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return el(e,t)}):rl(e,r,t,function(t){return el(e,t)}))}var ol=null;function ll(e){var t=this;if(t.curOp.focus=W(),!ot(t,e)){l&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var n=il(t,e);h&&(ol=n?r:null,!n&&88==r&&!St&&(y?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function r(e){18!=e.keyCode&&e.altKey||(T(t,"CodeMirror-crosshair"),nt(document,"keyup",r),nt(document,"mouseover",r))}H(t,"CodeMirror-crosshair"),tt(document,"keyup",r),tt(document,"mouseover",r)}(t)}}function sl(e){16==e.keyCode&&(this.doc.sel.shift=!1),ot(this,e)}function al(e){var t=this;if(!(Cr(t.display,e)||ot(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var r=e.keyCode,n=e.charCode;if(h&&r==ol)return ol=null,void ut(e);if(!h||e.which&&!(e.which<10)||!il(t,e)){var i=String.fromCharCode(null==n?r:n);"\b"!=i&&(function(e,t,r){return rl(e,"'"+r+"'",t,function(t){return el(e,t,!0)})}(t,e,i)||t.display.input.onKeyPress(e))}}}var ul,cl,hl=function(e,t,r){this.time=e,this.pos=t,this.button=r};function fl(e){var t=this,r=t.display;if(!(ot(t,e)||r.activeTouch&&r.input.supportsTouch()))if(r.input.ensurePolled(),r.shift=e.shiftKey,Cr(r,e))a||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));else if(!gl(t,e)){var n=an(t,e),i=pt(e),o=n?function(e,t){var r=+new Date;return cl&&cl.compare(r,e,t)?(ul=cl=null,"triple"):ul&&ul.compare(r,e,t)?(cl=new hl(r,e,t),ul=null,"double"):(ul=new hl(r,e,t),cl=null,"single")}(n,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),n&&function(e,t,r,n,i){var o="Click";"double"==n?o="Double"+o:"triple"==n&&(o="Triple"+o);return rl(e,Ko(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,function(t){if("string"==typeof t&&(t=Zo[t]),!t)return!1;var n=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n=t(e,r)!=U}finally{e.state.suppressEdits=!1}return n})}(t,i,n,o,e)||(1==i?n?function(e,t,r,n){l?setTimeout(E(vn,e),0):e.curOp.focus=W();var i,o=function(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(null==i.unit){var o=b?r.shiftKey&&r.metaKey:r.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||r.shiftKey);null==i.addNew&&(i.addNew=y?r.metaKey:r.ctrlKey);null==i.moveOnDrag&&(i.moveOnDrag=!(y?r.altKey:r.ctrlKey));return i}(e,r,n),u=e.doc.sel;e.options.dragDrop&&mt&&!e.isReadOnly()&&"single"==r&&(i=u.contains(t))>-1&&(me((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(me(i.to(),t)>0||t.xRel<0)?function(e,t,r,n){var i=e.display,o=!1,u=$n(e,function(t){a&&(i.scroller.draggable=!1),e.state.draggingText=!1,nt(i.wrapper.ownerDocument,"mouseup",u),nt(i.wrapper.ownerDocument,"mousemove",c),nt(i.scroller,"dragstart",h),nt(i.scroller,"drop",u),o||(ut(t),n.addNew||Ki(e.doc,r,null,null,n.extend),a||l&&9==s?setTimeout(function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()},20):i.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},h=function(){return o=!0};a&&(i.scroller.draggable=!0);e.state.draggingText=u,u.copy=!n.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop();tt(i.wrapper.ownerDocument,"mouseup",u),tt(i.wrapper.ownerDocument,"mousemove",c),tt(i.scroller,"dragstart",h),tt(i.scroller,"drop",u),mn(e),setTimeout(function(){return i.input.focus()},20)}(e,n,t,o):function(e,t,r,n){var i=e.display,o=e.doc;ut(t);var l,s,a=o.sel,u=a.ranges;n.addNew&&!n.extend?(s=o.sel.contains(r),l=s>-1?u[s]:new bi(r,r)):(l=o.sel.primary(),s=o.sel.primIndex);if("rectangle"==n.unit)n.addNew||(l=new bi(r,r)),r=an(e,t,!0,!0),s=-1;else{var c=dl(e,r,n.unit);l=n.extend?Vi(l,c.anchor,c.head,n.extend):c}n.addNew?-1==s?(s=u.length,$i(o,wi(e,u.concat([l]),s),{scroll:!1,origin:"*mouse"})):u.length>1&&u[s].empty()&&"char"==n.unit&&!n.extend?($i(o,wi(e,u.slice(0,s).concat(u.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),a=o.sel):Xi(o,s,l,K):(s=0,$i(o,new yi([l],0),K),a=o.sel);var h=r;function f(t){if(0!=me(h,t))if(h=t,"rectangle"==n.unit){for(var i=[],u=e.options.tabSize,c=z(ae(o,r.line).text,r.ch,u),f=z(ae(o,t.line).text,t.ch,u),d=Math.min(c,f),p=Math.max(c,f),g=Math.min(r.line,t.line),v=Math.min(e.lastLine(),Math.max(r.line,t.line));g<=v;g++){var m=ae(o,g).text,y=X(m,d,u);d==p?i.push(new bi(ve(g,y),ve(g,y))):m.length>y&&i.push(new bi(ve(g,y),ve(g,X(m,p,u))))}i.length||i.push(new bi(r,r)),$i(o,wi(e,a.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=l,x=dl(e,t,n.unit),C=w.anchor;me(x.anchor,C)>0?(b=x.head,C=xe(w.from(),x.anchor)):(b=x.anchor,C=we(w.to(),x.head));var S=a.ranges.slice(0);S[s]=function(e,t){var r=t.anchor,n=t.head,i=ae(e.doc,r.line);if(0==me(r,n)&&r.sticky==n.sticky)return t;var o=Je(i);if(!o)return t;var l=Ze(o,r.ch,r.sticky),s=o[l];if(s.from!=r.ch&&s.to!=r.ch)return t;var a,u=l+(s.from==r.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(n.line!=r.line)a=(n.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=Ze(o,n.ch,n.sticky),h=c-l||(n.ch-r.ch)*(1==s.level?-1:1);a=c==u-1||c==u?h<0:h>0}var f=o[u+(a?-1:0)],d=a==(1==f.level),p=d?f.from:f.to,g=d?"after":"before";return r.ch==p&&r.sticky==g?t:new bi(new ve(r.line,p,g),n)}(e,new bi(Se(o,C),b)),$i(o,wi(e,S,s),K)}}var d=i.wrapper.getBoundingClientRect(),p=0;function g(t){e.state.selectingText=!1,p=1/0,ut(t),i.input.focus(),nt(i.wrapper.ownerDocument,"mousemove",v),nt(i.wrapper.ownerDocument,"mouseup",m),o.history.lastSelOrigin=null}var v=$n(e,function(t){0!==t.buttons&&pt(t)?function t(r){var l=++p;var s=an(e,r,!0,"rectangle"==n.unit);if(!s)return;if(0!=me(s,h)){e.curOp.focus=W(),f(s);var a=Cn(i,o);(s.line>=a.to||s.line<a.from)&&setTimeout($n(e,function(){p==l&&t(r)}),150)}else{var u=r.clientY<d.top?-20:r.clientY>d.bottom?20:0;u&&setTimeout($n(e,function(){p==l&&(i.scroller.scrollTop+=u,t(r))}),50)}}(t):g(t)}),m=$n(e,g);e.state.selectingText=m,tt(i.wrapper.ownerDocument,"mousemove",v),tt(i.wrapper.ownerDocument,"mouseup",m)}(e,n,t,o)}(t,n,o,e):dt(e)==r.scroller&&ut(e):2==i?(n&&Ki(t.doc,n),setTimeout(function(){return r.input.focus()},20)):3==i&&(S?t.display.input.onContextMenu(e):mn(t)))}}function dl(e,t,r){if("char"==r)return new bi(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new bi(ve(t.line,0),Se(e.doc,ve(t.line+1,0)));var n=r(e,t);return new bi(n.from,n.to)}function pl(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ut(t);var l=e.display,s=l.lineDiv.getBoundingClientRect();if(o>s.bottom||!st(e,r))return ht(t);o-=s.top-l.viewOffset;for(var a=0;a<e.options.gutters.length;++a){var u=l.gutters.childNodes[a];if(u&&u.getBoundingClientRect().right>=i)return it(e,r,e,de(e.doc,o),e.options.gutters[a],t),ht(t)}}function gl(e,t){return pl(e,t,"gutterClick",!0)}function vl(e,t){Cr(e.display,t)||function(e,t){if(!st(e,"gutterContextMenu"))return!1;return pl(e,t,"gutterContextMenu",!1)}(e,t)||ot(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function ml(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Br(e)}hl.prototype.compare=function(e,t,r){return this.time+400>e&&0==me(t,this.pos)&&r==this.button};var yl={toString:function(){return"CodeMirror.Init"}},bl={},wl={};function xl(e){hi(e),Qn(e),Sn(e)}function Cl(e,t,r){if(!t!=!(r&&r!=yl)){var n=e.display.dragFunctions,i=t?tt:nt;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function Sl(e){e.options.lineWrapping?(H(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),$e(e)),sn(e),Qn(e),Br(e),setTimeout(function(){return In(e)},100)}function Ll(e,t){var r=this;if(!(this instanceof Ll))return new Ll(e,t);this.options=t=t?I(t):{},I(bl,t,!1),fi(t);var n=t.value;"string"==typeof n?n=new Mo(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Ll.inputStyles[t.inputStyle](this),o=this.display=new se(e,n,i);for(var u in o.wrapper.CodeMirror=this,hi(this),ml(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Bn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new R,keySeq:null,specialChars:null},t.autofocus&&!m&&o.input.focus(),l&&s<11&&setTimeout(function(){return r.display.input.reset(!0)},20),function(e){var t=e.display;tt(t.scroller,"mousedown",$n(e,fl)),tt(t.scroller,"dblclick",l&&s<11?$n(e,function(t){if(!ot(e,t)){var r=an(e,t);if(r&&!gl(e,t)&&!Cr(e.display,t)){ut(t);var n=e.findWordAt(r);Ki(e.doc,n.anchor,n.head)}}}):function(t){return ot(e,t)||ut(t)});tt(t.scroller,"contextmenu",function(t){return vl(e,t)});var r,n={end:0};function i(){t.activeTouch&&(r=setTimeout(function(){return t.activeTouch=null},1e3),(n=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var r=t.left-e.left,n=t.top-e.top;return r*r+n*n>400}tt(t.scroller,"touchstart",function(i){if(!ot(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!gl(e,i)){t.input.ensurePolled(),clearTimeout(r);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-n.end<=300?n:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),tt(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),tt(t.scroller,"touchend",function(r){var n=t.activeTouch;if(n&&!Cr(t,r)&&null!=n.left&&!n.moved&&new Date-n.start<300){var l,s=e.coordsChar(t.activeTouch,"page");l=!n.prev||o(n,n.prev)?new bi(s,s):!n.prev.prev||o(n,n.prev.prev)?e.findWordAt(s):new bi(ve(s.line,0),Se(e.doc,ve(s.line+1,0))),e.setSelection(l.anchor,l.head),e.focus(),ut(r)}i()}),tt(t.scroller,"touchcancel",i),tt(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Dn(e,t.scroller.scrollTop),Hn(e,t.scroller.scrollLeft,!0),it(e,"scroll",e))}),tt(t.scroller,"mousewheel",function(t){return mi(e,t)}),tt(t.scroller,"DOMMouseScroll",function(t){return mi(e,t)}),tt(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){ot(e,t)||ft(t)},over:function(t){ot(e,t)||(!function(e,t){var r=an(e,t);if(r){var n=document.createDocumentFragment();fn(e,r,n),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),N(e.display.dragCursor,n)}}(e,t),ft(t))},start:function(t){return function(e,t){if(l&&(!e.state.draggingText||+new Date-No<100))ft(t);else if(!ot(e,t)&&!Cr(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var r=O("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",h&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),h&&r.parentNode.removeChild(r)}}(e,t)},drop:$n(e,Oo),leave:function(t){ot(e,t)||Ao(e)}};var a=t.input.getField();tt(a,"keyup",function(t){return sl.call(e,t)}),tt(a,"keydown",$n(e,ll)),tt(a,"keypress",$n(e,al)),tt(a,"focus",function(t){return yn(e,t)}),tt(a,"blur",function(t){return bn(e,t)})}(this),Ho(),Un(this),this.curOp.forceUpdate=!0,Di(this,n),t.autofocus&&!m||this.hasFocus()?setTimeout(E(yn,this),20):bn(this),wl)wl.hasOwnProperty(u)&&wl[u](r,t[u],yl);Ln(this),t.finishInit&&t.finishInit(this);for(var c=0;c<kl.length;++c)kl[c](r);Vn(this),a&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Ll.defaults=bl,Ll.optionHandlers=wl;var kl=[];function Tl(e,t,r,n){var i,o=e.doc;null==r&&(r="add"),"smart"==r&&(o.mode.indent?i=Rt(e,t).state:r="prev");var l=e.options.tabSize,s=ae(o,t),a=z(s.text,null,l);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(n||/\S/.test(s.text)){if("smart"==r&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==U||u>150)){if(!n)return;r="prev"}}else u=0,r="not";"prev"==r?u=t>o.first?z(ae(o,t-1).text,null,l):0:"add"==r?u=a+e.options.indentUnit:"subtract"==r?u=a-e.options.indentUnit:"number"==typeof r&&(u=a+r),u=Math.max(0,u);var h="",f=0;if(e.options.indentWithTabs)for(var d=Math.floor(u/l);d;--d)f+=l,h+="\t";if(f<u&&(h+=_(u-f)),h!=c)return co(o,h,ve(t,0),ve(t,c.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var g=o.sel.ranges[p];if(g.head.line==t&&g.head.ch<c.length){var v=ve(t,c.length);Xi(o,p,new bi(v,v));break}}}Ll.defineInitHook=function(e){return kl.push(e)};var Ml=null;function Nl(e){Ml=e}function Ol(e,t,r,n,i){var o=e.doc;e.display.shift=!1,n||(n=o.sel);var l=e.state.pasteIncoming||"paste"==i,s=xt(t),a=null;if(l&&n.ranges.length>1)if(Ml&&Ml.text.join("\n")==t){if(n.ranges.length%Ml.text.length==0){a=[];for(var u=0;u<Ml.text.length;u++)a.push(o.splitLines(Ml.text[u]))}}else s.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(a=q(s,function(e){return[e]}));for(var c=e.curOp.updateInput,h=n.ranges.length-1;h>=0;h--){var f=n.ranges[h],d=f.from(),p=f.to();f.empty()&&(r&&r>0?d=ve(d.line,d.ch-r):e.state.overwrite&&!l?p=ve(p.line,Math.min(ae(o,p.line).text.length,p.ch+$(s).length)):l&&Ml&&Ml.lineWise&&Ml.text.join("\n")==t&&(d=p=ve(d.line,0)));var g={from:d,to:p,text:a?a[h%a.length]:s,origin:i||(l?"paste":e.state.cutIncoming?"cut":"+input")};oo(e.doc,g),ar(e,"inputRead",e,g)}t&&!l&&Dl(e,t),Mn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=c),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Al(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||_n(t,function(){return Ol(t,r,0,null,"paste")}),!0}function Dl(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){l=Tl(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(ae(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=Tl(e,i.head.line,"smart"));l&&ar(e,"electricInput",e,i.head.line)}}}function Wl(e){for(var t=[],r=[],n=0;n<e.doc.sel.ranges.length;n++){var i=e.doc.sel.ranges[n].head.line,o={anchor:ve(i,0),head:ve(i+1,0)};r.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:r}}function Hl(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!!t)}function Fl(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return a?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),Hl(e),t}function Pl(e,t,r,n,i){var o=t,l=r,s=ae(e,t.line);function a(n){var o,l;if(null==(o=i?function(e,t,r,n){var i=Je(t,e.doc.direction);if(!i)return $o(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=Ze(i,r.ch,r.sticky),l=i[o];if("ltr"==e.doc.direction&&l.level%2==0&&(n>0?l.to>r.ch:l.from<r.ch))return $o(t,r,n);var s,a=function(e,r){return _o(t,e instanceof ve?e.ch:e,r)},u=function(r){return e.options.lineWrapping?(s=s||Wr(e,t),Qr(e,t,s,r)):{begin:0,end:t.text.length}},c=u("before"==r.sticky?a(r,-1):r.ch);if("rtl"==e.doc.direction||1==l.level){var h=1==l.level==n<0,f=a(r,h?1:-1);if(null!=f&&(h?f<=l.to&&f<=c.end:f>=l.from&&f>=c.begin)){var d=h?"before":"after";return new ve(r.line,f,d)}}var p=function(e,t,n){for(var o=function(e,t){return t?new ve(r.line,a(e,1),"before"):new ve(r.line,e,"after")};e>=0&&e<i.length;e+=t){var l=i[e],s=t>0==(1!=l.level),u=s?n.begin:a(n.end,-1);if(l.from<=u&&u<l.to)return o(u,s);if(u=s?l.from:a(l.to,-1),n.begin<=u&&u<n.end)return o(u,s)}},g=p(o+n,n,c);if(g)return g;var v=n>0?c.end:a(c.begin,-1);return null==v||n>0&&v==t.text.length||!(g=p(n>0?0:i.length-1,n,u(v)))?null:g}(e.cm,s,t,r):$o(s,t,r))){if(n||(l=t.line+r)<e.first||l>=e.first+e.size||(t=new ve(l,t.ch,t.sticky),!(s=ae(e,l))))return!1;t=qo(i,e.cm,s,t.line,r)}else t=o;return!0}if("char"==n)a();else if("column"==n)a(!0);else if("word"==n||"group"==n)for(var u=null,c="group"==n,h=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(r<0)||a(!f);f=!1){var d=s.text.charAt(t.ch)||"\n",p=te(d,h)?"w":c&&"\n"==d?"n":!c||/\s/.test(d)?null:"p";if(!c||f||p||(p="s"),u&&u!=p){r<0&&(r=1,a(),t.sticky="after");break}if(p&&(u=p),r>0&&!a(!f))break}var g=to(e,t,o,l,!0);return ye(o,g)&&(g.hitSide=!0),g}function El(e,t,r,n){var i,o,l=e.doc,s=t.left;if("page"==n){var a=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(a-.5*tn(e.display),3);i=(r>0?t.bottom:t.top)+r*u}else"line"==n&&(i=r>0?t.bottom+3:t.top-3);for(;(o=qr(e,s,i)).outside;){if(r<0?i<=0:i>=l.height){o.hitSide=!0;break}i+=5*r}return o}var Il=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function zl(e,t){var r=Dr(e,t.line);if(!r||r.hidden)return null;var n=ae(e.doc,t.line),i=Or(r,n,t.line),o=Je(n,e.doc.direction),l="left";o&&(l=Ze(o,t.ch)%2?"right":"left");var s=Er(i.map,t.ch,l);return s.offset="right"==s.collapse?s.end:s.start,s}function Rl(e,t){return t&&(e.bad=!0),e}function Bl(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return Rl(e.clipPos(ve(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==n)return Gl(o,t,r)}}function Gl(e,t,r){var n=e.text.firstChild,i=!1;if(!t||!D(n,t))return Rl(ve(fe(e.line),0),!0);if(t==n&&(i=!0,t=n.childNodes[r],r=0,!t)){var o=e.rest?$(e.rest):e.line;return Rl(ve(fe(o),o.text.length),i)}var l=3==t.nodeType?t:null,s=t;for(l||1!=t.childNodes.length||3!=t.firstChild.nodeType||(l=t.firstChild,r&&(r=l.nodeValue.length));s.parentNode!=n;)s=s.parentNode;var a=e.measure,u=a.maps;function c(t,r,n){for(var i=-1;i<(u?u.length:0);i++)for(var o=i<0?a.map:u[i],l=0;l<o.length;l+=3){var s=o[l+2];if(s==t||s==r){var c=fe(i<0?e.line:e.rest[i]),h=o[l]+n;return(n<0||s!=t)&&(h=o[l+(n?1:0)]),ve(c,h)}}}var h=c(l,s,r);if(h)return Rl(h,i);for(var f=s.nextSibling,d=l?l.nodeValue.length-r:0;f;f=f.nextSibling){if(h=c(f,f.firstChild,0))return Rl(ve(h.line,h.ch-d),i);d+=f.textContent.length}for(var p=s.previousSibling,g=r;p;p=p.previousSibling){if(h=c(p,p.firstChild,-1))return Rl(ve(h.line,h.ch+g),i);g+=p.textContent.length}}Il.prototype.init=function(e){var t=this,r=this,n=r.cm,i=r.div=e.lineDiv;function o(e){if(!ot(n,e)){if(n.somethingSelected())Nl({lineWise:!1,text:n.getSelections()}),"cut"==e.type&&n.replaceSelection("",null,"cut");else{if(!n.options.lineWiseCopyCut)return;var t=Wl(n);Nl({lineWise:!0,text:t.text}),"cut"==e.type&&n.operation(function(){n.setSelections(t.ranges,0,V),n.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var o=Ml.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var l=Fl(),s=l.firstChild;n.display.lineSpace.insertBefore(l,n.display.lineSpace.firstChild),s.value=Ml.text.join("\n");var a=document.activeElement;P(s),setTimeout(function(){n.display.lineSpace.removeChild(l),a.focus(),a==i&&r.showPrimarySelection()},50)}}Hl(i,n.options.spellcheck),tt(i,"paste",function(e){ot(n,e)||Al(e,n)||s<=11&&setTimeout($n(n,function(){return t.updateFromDOM()}),20)}),tt(i,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),tt(i,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),tt(i,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),tt(i,"touchstart",function(){return r.forceCompositionEnd()}),tt(i,"input",function(){t.composing||t.readFromDOMSoon()}),tt(i,"copy",o),tt(i,"cut",o)},Il.prototype.prepareSelection=function(){var e=hn(this.cm,!1);return e.focus=this.cm.state.focused,e},Il.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Il.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Il.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),i=n.from(),o=n.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var l=Bl(t,e.anchorNode,e.anchorOffset),s=Bl(t,e.focusNode,e.focusOffset);if(!l||l.bad||!s||s.bad||0!=me(xe(l,s),i)||0!=me(we(l,s),o)){var a=t.display.view,u=i.line>=t.display.viewFrom&&zl(t,i)||{node:a[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&zl(t,o);if(!c){var h=a[a.length-1].measure,f=h.maps?h.maps[h.maps.length-1]:h.map;c={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(u&&c){var d,p=e.rangeCount&&e.getRangeAt(0);try{d=k(u.node,u.offset,c.offset,c.node)}catch(wt){}d&&(!r&&t.state.focused?(e.collapse(u.node,u.offset),d.collapsed||(e.removeAllRanges(),e.addRange(d))):(e.removeAllRanges(),e.addRange(d)),p&&null==e.anchorNode?e.addRange(p):r&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Il.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Il.prototype.showMultipleSelections=function(e){N(this.cm.display.cursorDiv,e.cursors),N(this.cm.display.selectionDiv,e.selection)},Il.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Il.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},Il.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Il.prototype.blur=function(){this.div.blur()},Il.prototype.getField=function(){return this.div},Il.prototype.supportsTouch=function(){return!0},Il.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():_n(this.cm,function(){return e.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))})},Il.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Il.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&c&&this.cm.options.gutters.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var r=Bl(t,e.anchorNode,e.anchorOffset),n=Bl(t,e.focusNode,e.focusOffset);r&&n&&_n(t,function(){$i(t.doc,xi(r,n),V),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},Il.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,r,n=this.cm,i=n.display,o=n.doc.sel.primary(),l=o.from(),s=o.to();if(0==l.ch&&l.line>n.firstLine()&&(l=ve(l.line-1,ae(n.doc,l.line-1).length)),s.ch==ae(n.doc,s.line).text.length&&s.line<n.lastLine()&&(s=ve(s.line+1,0)),l.line<i.viewFrom||s.line>i.viewTo-1)return!1;l.line==i.viewFrom||0==(e=un(n,l.line))?(t=fe(i.view[0].line),r=i.view[0].node):(t=fe(i.view[e].line),r=i.view[e-1].node.nextSibling);var a,u,c=un(n,s.line);if(c==i.view.length-1?(a=i.viewTo-1,u=i.lineDiv.lastChild):(a=fe(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!r)return!1;for(var h=n.doc.splitLines(function(e,t,r,n,i){var o="",l=!1,s=e.doc.lineSeparator(),a=!1;function u(){l&&(o+=s,a&&(o+=s),l=a=!1)}function c(e){e&&(u(),o+=e)}function h(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void c(r);var o,f=t.getAttribute("cm-marker");if(f){var d=e.findMarks(ve(n,0),ve(i+1,0),(v=+f,function(e){return e.id==v}));return void(d.length&&(o=d[0].find(0))&&c(ue(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;p&&u();for(var g=0;g<t.childNodes.length;g++)h(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(a=!0),p&&(l=!0)}else 3==t.nodeType&&c(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var v}for(;h(t),t!=r;)t=t.nextSibling,a=!1;return o}(n,r,u,t,a)),f=ue(n.doc,ve(t,0),ve(a,ae(n.doc,a).text.length));h.length>1&&f.length>1;)if($(h)==$(f))h.pop(),f.pop(),a--;else{if(h[0]!=f[0])break;h.shift(),f.shift(),t++}for(var d=0,p=0,g=h[0],v=f[0],m=Math.min(g.length,v.length);d<m&&g.charCodeAt(d)==v.charCodeAt(d);)++d;for(var y=$(h),b=$(f),w=Math.min(y.length-(1==h.length?d:0),b.length-(1==f.length?d:0));p<w&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)++p;if(1==h.length&&1==f.length&&t==l.line)for(;d&&d>l.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)d--,p++;h[h.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),h[0]=h[0].slice(d).replace(/\u200b+$/,"");var x=ve(t,d),C=ve(a,f.length?$(f).length-p:0);return h.length>1||h[0]||me(x,C)?(co(n.doc,h,x,C,"+input"),!0):void 0},Il.prototype.ensurePolled=function(){this.forceCompositionEnd()},Il.prototype.reset=function(){this.forceCompositionEnd()},Il.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Il.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Il.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||_n(this.cm,function(){return Qn(e.cm)})},Il.prototype.setUneditable=function(e){e.contentEditable="false"},Il.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||$n(this.cm,Ol)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Il.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Il.prototype.onContextMenu=function(){},Il.prototype.resetPosition=function(){},Il.prototype.needsContentAttribute=!0;var Ul=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null};Ul.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ot(n,e)){if(n.somethingSelected())Nl({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var t=Wl(n);Nl({lineWise:!0,text:t.text}),"cut"==e.type?n.setSelections(t.ranges,null,V):(r.prevInput="",i.value=t.text.join("\n"),P(i))}"cut"==e.type&&(n.state.cutIncoming=!0)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),tt(i,"input",function(){l&&s>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),tt(i,"paste",function(e){ot(n,e)||Al(e,n)||(n.state.pasteIncoming=!0,r.fastPoll())}),tt(i,"cut",o),tt(i,"copy",o),tt(e.scroller,"paste",function(t){Cr(e,t)||ot(n,t)||(n.state.pasteIncoming=!0,r.focus())}),tt(e.lineSpace,"selectstart",function(t){Cr(e,t)||ut(t)}),tt(i,"compositionstart",function(){var e=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"CodeMirror-composing"})}}),tt(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},Ul.prototype.createField=function(e){this.wrapper=Fl(),this.textarea=this.wrapper.firstChild},Ul.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=hn(e);if(e.options.moveInputWithCursor){var i=Yr(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return n},Ul.prototype.showSelection=function(e){var t=this.cm.display;N(t.cursorDiv,e.cursors),N(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ul.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&P(this.textarea),l&&s>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",l&&s>=9&&(this.hasSelection=null))}},Ul.prototype.getField=function(){return this.textarea},Ul.prototype.supportsTouch=function(){return!1},Ul.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||W()!=this.textarea))try{this.textarea.focus()}catch(wt){}},Ul.prototype.blur=function(){this.textarea.blur()},Ul.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ul.prototype.receivedFocus=function(){this.slowPoll()},Ul.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ul.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function r(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,r))})},Ul.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ct(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(l&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||n||(n=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,u=Math.min(n.length,i.length);a<u&&n.charCodeAt(a)==i.charCodeAt(a);)++a;return _n(t,function(){Ol(t,i.slice(a),n.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ul.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ul.prototype.onKeyPress=function(){l&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ul.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=an(r,e),u=n.scroller.scrollTop;if(o&&!h){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(o)&&$n(r,$i)(r.doc,xi(o),V);var c,f=i.style.cssText,d=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(l?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",a&&(c=window.scrollY),n.input.focus(),a&&window.scrollTo(null,c),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=m,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),l&&s>=9&&v(),S){ft(e);var g=function(){nt(window,"mouseup",g),setTimeout(m,20)};tt(window,"mouseup",g)}else setTimeout(m,50)}function v(){if(null!=i.selectionStart){var e=r.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,n.selForContextMenu=r.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=f,l&&s<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=u),null!=i.selectionStart)){(!l||l&&s<9)&&v();var e=0,o=function(){n.selForContextMenu==r.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?$n(r,no)(r):e++<10?n.detectingSelectAll=setTimeout(o,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(o,200)}}},Ul.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Ul.prototype.setUneditable=function(){},Ul.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function r(r,n,i,o){e.defaults[r]=n,i&&(t[r]=o?function(e,t,r){r!=yl&&i(e,t,r)}:i)}e.defineOption=r,e.Init=yl,r("value","",function(e,t){return e.setValue(t)},!0),r("mode",null,function(e,t){e.doc.modeOption=t,Ti(e)},!0),r("indentUnit",2,Ti,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(e){Mi(e),Br(e),Qn(e)},!0),r("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,r.push(ve(n,o))}n++});for(var i=r.length-1;i>=0;i--)co(e.doc,t,r[i],ve(r[i].line,r[i].ch+t.length))}}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=yl&&e.refresh()}),r("specialCharPlaceholder",Jt,function(e){return e.refresh()},!0),r("electricChars",!0),r("inputStyle",m?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),r("rtlMoveVisually",!w),r("wholeLineUpdateBefore",!0),r("theme","default",function(e){ml(e),xl(e)},!0),r("keyMap","default",function(e,t,r){var n=Xo(t),i=r!=yl&&Xo(r);i&&i.detach&&i.detach(e,n),n.attach&&n.attach(e,i||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Sl,!0),r("gutters",[],function(e){fi(e.options),xl(e)},!0),r("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?on(e.display)+"px":"0",e.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(e){return In(e)},!0),r("scrollbarStyle","native",function(e){Bn(e),In(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),r("lineNumbers",!1,function(e){fi(e.options),xl(e)},!0),r("firstLineNumber",1,xl,!0),r("lineNumberFormatter",function(e){return e},xl,!0),r("showCursorWhenSelecting",!1,cn,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(e,t){"nocursor"==t&&(bn(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),r("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),r("dragDrop",!0,Cl),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,cn,!0),r("singleCursorHeightPerLine",!0,cn,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,Mi,!0),r("addModeClass",!1,Mi,!0),r("pollInterval",100),r("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),r("historyEventDelay",1250),r("viewportMargin",10,function(e){return e.refresh()},!0),r("maxHighlightLength",1e4,Mi,!0),r("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),r("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),r("autofocus",null),r("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),r("phrases",null)}(Ll),function(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,r){var n=this.options,i=n[e];n[e]==r&&"mode"!=e||(n[e]=r,t.hasOwnProperty(e)&&$n(this,t[e])(this,r,i),it(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Xo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,r=0;r<t.length;++r)if(t[r]==e||t[r].name==e)return t.splice(r,1),!0},addOverlay:qn(function(t,r){var n=t.token?t:e.getMode(this.options,t);if(n.startState)throw new Error("Overlays may not be stateful.");!function(e,t,r){for(var n=0,i=r(t);n<e.length&&r(e[n])<=i;)n++;e.splice(n,0,t)}(this.state.overlays,{mode:n,modeSpec:t,opaque:r&&r.opaque,priority:r&&r.priority||0},function(e){return e.priority}),this.state.modeGen++,Qn(this)}),removeOverlay:qn(function(e){for(var t=this.state.overlays,r=0;r<t.length;++r){var n=t[r].modeSpec;if(n==e||"string"==typeof e&&n.name==e)return t.splice(r,1),this.state.modeGen++,void Qn(this)}}),indentLine:qn(function(e,t,r){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),pe(this.doc,e)&&Tl(this,e,t,r)}),indentSelection:qn(function(e){for(var t=this.doc.sel.ranges,r=-1,n=0;n<t.length;n++){var i=t[n];if(i.empty())i.head.line>r&&(Tl(this,i.head.line,e,!0),r=i.head.line,n==this.doc.sel.primIndex&&Mn(this));else{var o=i.from(),l=i.to(),s=Math.max(r,o.line);r=Math.min(this.lastLine(),l.line-(l.ch?0:1))+1;for(var a=s;a<r;++a)Tl(this,a,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[n].from().ch>0&&Xi(this.doc,n,new bi(o,u[n].to()),V)}}}),getTokenAt:function(e,t){return Kt(this,e,t)},getLineTokens:function(e,t){return Kt(this,ve(e),t,!0)},getTokenTypeAt:function(e){e=Se(this.doc,e);var t,r=zt(this,ae(this.doc,e.line)),n=0,i=(r.length-1)/2,o=e.ch;if(0==o)t=r[2];else for(;;){var l=n+i>>1;if((l?r[2*l-1]:0)>=o)i=l;else{if(!(r[2*l+1]<o)){t=r[2*l+2];break}n=l+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var r=this.doc.mode;return r.innerMode?e.innerMode(r,this.getTokenAt(t).state).mode:r},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=[];if(!r.hasOwnProperty(t))return n;var i=r[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&n.push(i[o[t]]);else if(o[t])for(var l=0;l<o[t].length;l++){var s=i[o[t][l]];s&&n.push(s)}else o.helperType&&i[o.helperType]?n.push(i[o.helperType]):i[o.name]&&n.push(i[o.name]);for(var a=0;a<i._global.length;a++){var u=i._global[a];u.pred(o,this)&&-1==B(n,u.val)&&n.push(u.val)}return n},getStateAfter:function(e,t){var r=this.doc;return Rt(this,(e=Ce(r,null==e?r.first+r.size-1:e))+1,t).state},cursorCoords:function(e,t){var r=this.doc.sel.primary();return Yr(this,null==e?r.head:"object"==typeof e?Se(this.doc,e):e?r.from():r.to(),t||"page")},charCoords:function(e,t){return Xr(this,Se(this.doc,e),t||"page")},coordsChar:function(e,t){return qr(this,(e=jr(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=jr(this,{top:e,left:0},t||"page").top,de(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,r){var n,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),n=ae(this.doc,e)}else n=e;return Kr(this,n,{top:0,left:0},t||"page",r||i).top+(i?this.doc.height-Ye(n):0)},defaultTextHeight:function(){return tn(this.display)},defaultCharWidth:function(){return rn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,i){var o,l,s,a=this.display,u=(e=Yr(this,Se(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),a.sizer.appendChild(t),"over"==n)u=e.top;else if("above"==n||"near"==n){var h=Math.max(a.wrapper.clientHeight,this.doc.height),f=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>h)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=h&&(u=e.bottom),c+t.offsetWidth>f&&(c=f-t.offsetWidth)}t.style.top=u+"px",t.style.left=t.style.right="","right"==i?(c=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),r&&(o=this,l={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(s=kn(o,l)).scrollTop&&Dn(o,s.scrollTop),null!=s.scrollLeft&&Hn(o,s.scrollLeft))},triggerOnKeyDown:qn(ll),triggerOnKeyPress:qn(al),triggerOnKeyUp:sl,triggerOnMouseDown:qn(fl),execCommand:function(e){if(Zo.hasOwnProperty(e))return Zo[e].call(null,this)},triggerElectric:qn(function(e){Dl(this,e)}),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var o=Se(this.doc,e),l=0;l<t&&!(o=Pl(this.doc,o,i,r,n)).hitSide;++l);return o},moveH:qn(function(e,t){var r=this;this.extendSelectionsBy(function(n){return r.display.shift||r.doc.extend||n.empty()?Pl(r.doc,n.head,e,t,r.options.rtlMoveVisually):e<0?n.from():n.to()},j)}),deleteH:qn(function(e,t){var r=this.doc.sel,n=this.doc;r.somethingSelected()?n.replaceSelection("",null,"+delete"):Yo(this,function(r){var i=Pl(n,r.head,e,t,!1);return e<0?{from:i,to:r.head}:{from:r.head,to:i}})}),findPosV:function(e,t,r,n){var i=1,o=n;t<0&&(i=-1,t=-t);for(var l=Se(this.doc,e),s=0;s<t;++s){var a=Yr(this,l,"div");if(null==o?o=a.left:a.left=o,(l=El(this,a,i,r)).hitSide)break}return l},moveV:qn(function(e,t){var r=this,n=this.doc,i=[],o=!this.display.shift&&!n.extend&&n.sel.somethingSelected();if(n.extendSelectionsBy(function(l){if(o)return e<0?l.from():l.to();var s=Yr(r,l.head,"div");null!=l.goalColumn&&(s.left=l.goalColumn),i.push(s.left);var a=El(r,s,e,t);return"page"==t&&l==n.sel.primary()&&Tn(r,Xr(r,a,"div").top-s.top),a},j),i.length)for(var l=0;l<n.sel.ranges.length;l++)n.sel.ranges[l].goalColumn=i[l]}),findWordAt:function(e){var t=ae(this.doc,e.line).text,r=e.ch,n=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&n!=t.length||!r?++n:--r;for(var o=t.charAt(r),l=te(o,i)?function(e){return te(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!te(e)};r>0&&l(t.charAt(r-1));)--r;for(;n<t.length&&l(t.charAt(n));)++n}return new bi(ve(e.line,r),ve(e.line,n))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?H(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),it(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==W()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:qn(function(e,t){Nn(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Tr(this)-this.display.barHeight,width:e.scrollWidth-Tr(this)-this.display.barWidth,clientHeight:Nr(this),clientWidth:Mr(this)}},scrollIntoView:qn(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ve(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){On(e),e.curOp.scrollToPos=t}(this,e):An(this,e.from,e.to,e.margin)}),setSize:qn(function(e,t){var r=this,n=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=n(e)),null!=t&&(this.display.wrapper.style.height=n(t)),this.options.lineWrapping&&Rr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Jn(r,i,"widget");break}++i}),this.curOp.forceUpdate=!0,it(this,"refresh",this)}),operation:function(e){return _n(this,e)},startOperation:function(){return Un(this)},endOperation:function(){return Vn(this)},refresh:qn(function(){var e=this.display.cachedTextHeight;Qn(this),this.curOp.forceUpdate=!0,Br(this),Nn(this,this.doc.scrollLeft,this.doc.scrollTop),ui(this),(null==e||Math.abs(e-tn(this.display))>.5)&&sn(this),it(this,"refresh",this)}),swapDoc:qn(function(e){var t=this.doc;return t.cm=null,Di(this,e),Br(this),this.display.input.reset(),Nn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,ar(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},at(e),e.registerHelper=function(t,n,i){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=i},e.registerGlobalHelper=function(t,n,i,o){e.registerHelper(t,n,o),r[t]._global.push({pred:i,val:o})}}(Ll);var Vl="iter insert remove copy getEditor constructor".split(" ");for(var Kl in Mo.prototype)Mo.prototype.hasOwnProperty(Kl)&&B(Vl,Kl)<0&&(Ll.prototype[Kl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Mo.prototype[Kl]));return at(Mo),Ll.inputStyles={textarea:Ul,contenteditable:Il},Ll.defineMode=function(e){Ll.defaults.mode||"null"==e||(Ll.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),kt[e]=t}.apply(this,arguments)},Ll.defineMIME=function(e,t){Tt[e]=t},Ll.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ll.defineMIME("text/plain","null"),Ll.defineExtension=function(e,t){Ll.prototype[e]=t},Ll.defineDocExtension=function(e,t){Mo.prototype[e]=t},Ll.fromTextArea=function(e,t){if((t=t?I(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=W();t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}function n(){e.value=s.getValue()}var i;if(e.form&&(tt(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=l}}catch(wt){}}t.finishInit=function(t){t.save=n,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,n(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(nt(e.form,"submit",n),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var s=Ll(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s},function(e){e.off=nt,e.on=tt,e.wheelEventPixels=vi,e.Doc=Mo,e.splitLines=xt,e.countColumn=z,e.findColumn=X,e.isWordChar=ee,e.Pass=U,e.signal=it,e.Line=Yt,e.changeEnd=Ci,e.scrollbarModel=Rn,e.Pos=ve,e.cmpPos=me,e.modes=kt,e.mimeModes=Tt,e.resolveMode=Mt,e.getMode=Nt,e.modeExtensions=Ot,e.extendMode=At,e.copyState=Dt,e.startState=Ht,e.innerMode=Wt,e.commands=Zo,e.keyMap=Ro,e.keyName=jo,e.isModifierKey=Vo,e.lookupKey=Uo,e.normalizeKeyMap=Go,e.StringStream=Ft,e.SharedTextMarker=So,e.TextMarker=xo,e.LineWidget=yo,e.e_preventDefault=ut,e.e_stopPropagation=ct,e.e_stop=ft,e.addClass=H,e.contains=D,e.rmClass=T,e.keyNames=Po}(Ll),Ll.version="5.42.2",Ll}); +},{}],"5Uxn":[function(require,module,exports) { + +},{}],"BaoT":[function(require,module,exports) { +var define; +var e;!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof e&&e.amd?e(["../../lib/codemirror"],t):t(CodeMirror)}(function(e){"use strict";e.defineMode("elm",function(){function e(e,t,r){return t(r),r(e,t)}var t=/[a-z_]/,r=/[A-Z]/,n=/[0-9]/,i=/[0-9A-Fa-f]/,u=/[0-7]/,a=/[a-z_A-Z0-9\']/,o=/[-!#$%&*+.\/<=>?@\\^|~:\u03BB\u2192]/,f=/[(),;[\]`{}]/,l=/[ \t\v\f]/;function c(){return function(m,p){if(m.eatWhile(l))return null;var h=m.next();if(f.test(h)){if("{"==h&&m.eat("-")){var v="comment";return m.eat("#")&&(v="meta"),e(m,p,function e(t,r){if(0==r)return c();return function(n,i){for(var u=r;!n.eol();){var a=n.next();if("{"==a&&n.eat("-"))++u;else if("-"==a&&n.eat("}")&&0==--u)return i(c()),t}return i(e(t,u)),t}}(v,1))}return null}if("'"==h)return m.eat("\\"),m.next(),m.eat("'")?"string":"error";if('"'==h)return e(m,p,s);if(r.test(h))return m.eatWhile(a),m.eat(".")?"qualifier":"variable-2";if(t.test(h)){var x=1===m.pos;return m.eatWhile(a),x?"type":"variable"}if(n.test(h)){if("0"==h){if(m.eat(/[xX]/))return m.eatWhile(i),"integer";if(m.eat(/[oO]/))return m.eatWhile(u),"number"}m.eatWhile(n);v="number";return m.eat(".")&&(v="number",m.eatWhile(n)),m.eat(/[eE]/)&&(v="number",m.eat(/[-+]/),m.eatWhile(n)),v}return o.test(h)?"-"==h&&m.eat(/-/)&&(m.eatWhile(/-/),!m.eat(o))?(m.skipToEnd(),"comment"):(m.eatWhile(o),"builtin"):"error"}}function s(e,t){for(;!e.eol();){var r=e.next();if('"'==r)return t(c()),"string";if("\\"==r){if(e.eol()||e.eat(l))return t(m),"string";e.eat("&")||e.next()}}return t(c()),"error"}function m(t,r){return t.eat("\\")?e(t,r,s):(t.next(),r(c()),"error")}var p=function(){for(var e={},t=["case","of","as","if","then","else","let","in","infix","infixl","infixr","type","alias","input","output","foreign","loopback","module","where","import","exposing","_","..","|",":","=","\\",'"',"->","<-"],r=t.length;r--;)e[t[r]]="keyword";return e}();return{startState:function(){return{f:c()}},copyState:function(e){return{f:e.f}},token:function(e,t){var r=t.f(e,function(e){t.f=e}),n=e.current();return p.hasOwnProperty(n)?p[n]:r}}}),e.defineMIME("text/x-elm","elm")}); +},{"../../lib/codemirror":"e7zg"}],"iOBI":[function(require,module,exports) { +var define; +var e;!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof e&&e.amd?e(["../../lib/codemirror"],t):t(CodeMirror)}(function(e){"use strict";e.defineMode("javascript",function(t,r){var n,a,i=t.indentUnit,o=r.statementIndent,c=r.jsonld,s=r.json||c,u=r.typescript,l=r.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),i=e("operator"),o={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),d=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e,t,r){return n=e,a=r,t}function v(e,t){var r,n=e.next();if('"'==n||"'"==n)return t.tokenize=(r=n,function(e,t){var n,a=!1;if(c&&"@"==e.peek()&&e.match(p))return t.tokenize=v,m("jsonld-keyword","meta");for(;null!=(n=e.next())&&(n!=r||a);)a=!a&&"\\"==n;return a||(t.tokenize=v),m("string","string")}),t.tokenize(e,t);if("."==n&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return m("number","number");if("."==n&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return m(n);if("="==n&&e.eat(">"))return m("=>","operator");if("0"==n&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return m("number","number");if(/\d/.test(n))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),m("number","number");if("/"==n)return e.eat("*")?(t.tokenize=k,k(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):Le(e,t,1)?(function(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==n)return t.tokenize=y,y(e,t);if("#"==n)return e.skipToEnd(),m("error","error");if(d.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),m("operator","operator",e.current());if(l.test(n)){e.eatWhile(l);var a=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(a)){var i=f[a];return m(i.type,i.style,a)}if("async"==a&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",a)}return m("variable","variable",a)}}function k(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=v;break}n="*"==r}return m("comment","comment")}function y(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=v;break}n=!n&&"\\"==r}return m("quasi","string-2",e.current())}var w="([{}])";function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(u){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,i=!1,o=r-1;o>=0;--o){var c=e.string.charAt(o),s=w.indexOf(c);if(s>=0&&s<3){if(!a){++o;break}if(0==--a){"("==c&&(i=!0);break}}else if(s>=3&&s<6)++a;else if(l.test(c))i=!0;else{if(/["'\/]/.test(c))return;if(i&&!a){++o;break}}}i&&!a&&(t.fatArrowAt=o)}}var x={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function h(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function g(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}var j={state:null,column:null,marked:null,cc:null};function M(){for(var e=arguments.length-1;e>=0;e--)j.cc.push(arguments[e])}function V(){return M.apply(null,arguments),!0}function A(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function E(e){var t=j.state;if(j.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=function e(t,r){if(r){if(r.block){var n=e(t,r.prev);return n?n==r.prev?r:new I(n,r.vars,!0):null}return A(t,r.vars)?r:new I(r.prev,new T(t,r.vars),!1)}return null}(e,t.context);if(null!=n)return void(t.context=n)}else if(!A(e,t.localVars))return void(t.localVars=new T(e,t.localVars));r.globalVars&&!A(e,t.globalVars)&&(t.globalVars=new T(e,t.globalVars))}function z(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function I(e,t,r){this.prev=e,this.vars=t,this.block=r}function T(e,t){this.name=e,this.next=t}var $=new T("this",new T("arguments",null));function C(){j.state.context=new I(j.state.context,j.state.localVars,!1),j.state.localVars=$}function q(){j.state.context=new I(j.state.context,j.state.localVars,!0),j.state.localVars=null}function O(){j.state.localVars=j.state.context.vars,j.state.context=j.state.context.prev}function P(e,t){var r=function(){var r=j.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new h(n,j.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function S(){var e=j.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function N(e){return function t(r){return r==e?V():";"==e||"}"==r||")"==r||"]"==r?M():V(t)}}function U(e,t){return"var"==e?V(P("vardef",t),we,N(";"),S):"keyword a"==e?V(P("form"),D,U,S):"keyword b"==e?V(P("form"),U,S):"keyword d"==e?j.stream.match(/^\s*$/,!1)?V():V(P("stat"),G,N(";"),S):"debugger"==e?V(N(";")):"{"==e?V(P("}"),q,oe,S,O):";"==e?V():"if"==e?("else"==j.state.lexical.info&&j.state.cc[j.state.cc.length-1]==S&&j.state.cc.pop()(),V(P("form"),D,U,S,Me)):"function"==e?V(Te):"for"==e?V(P("form"),Ve,U,S):"class"==e||u&&"interface"==t?(j.marked="keyword",V(P("form"),qe,S)):"variable"==e?u&&"declare"==t?(j.marked="keyword",V(U)):u&&("module"==t||"enum"==t||"type"==t)&&j.stream.match(/^\s*\w/,!1)?(j.marked="keyword","enum"==t?V(Je):"type"==t?V(le,N("operator"),le,N(";")):V(P("form"),be,N("{"),P("}"),oe,S,S)):u&&"namespace"==t?(j.marked="keyword",V(P("form"),H,oe,S)):u&&"abstract"==t?(j.marked="keyword",V(U)):V(P("stat"),_):"switch"==e?V(P("form"),D,N("{"),P("}","switch"),q,oe,S,S,O):"case"==e?V(H,N(":")):"default"==e?V(N(":")):"catch"==e?V(P("form"),C,B,U,S,O):"export"==e?V(P("stat"),Ne,S):"import"==e?V(P("stat"),Be,S):"async"==e?V(U):"@"==t?V(H,U):M(P("stat"),H,N(";"),S)}function B(e){if("("==e)return V($e,N(")"))}function H(e,t){return F(e,t,!1)}function W(e,t){return F(e,t,!0)}function D(e){return"("!=e?M():V(P(")"),H,N(")"),S)}function F(e,t,r){if(j.state.fatArrowAt==j.stream.start){var n=r?X:R;if("("==e)return V(C,P(")"),ae($e,")"),S,N("=>"),n,O);if("variable"==e)return M(C,be,N("=>"),n,O)}var a=r?K:J;return x.hasOwnProperty(e)?V(a):"function"==e?V(Te,a):"class"==e||u&&"interface"==t?(j.marked="keyword",V(P("form"),Ce,S)):"keyword c"==e||"async"==e?V(r?W:H):"("==e?V(P(")"),G,N(")"),S,a):"operator"==e||"spread"==e?V(r?W:H):"["==e?V(P("]"),Ge,S,a):"{"==e?ie(te,"}",null,a):"quasi"==e?M(L,a):"new"==e?V(function(e){return function(t){return"."==t?V(e?Z:Y):"variable"==t&&u?V(ve,e?K:J):M(e?W:H)}}(r)):"import"==e?V(H):V()}function G(e){return e.match(/[;\}\)\],]/)?M():M(H)}function J(e,t){return","==e?V(H):K(e,t,!1)}function K(e,t,r){var n=0==r?J:K,a=0==r?H:W;return"=>"==e?V(C,r?X:R,O):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?V(n):u&&"<"==t&&j.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?V(P(">"),ae(le,">"),S,n):"?"==t?V(H,N(":"),a):V(a):"quasi"==e?M(L,n):";"!=e?"("==e?ie(W,")","call",n):"."==e?V(ee,n):"["==e?V(P("]"),G,N("]"),S,n):u&&"as"==t?(j.marked="keyword",V(le,n)):"regexp"==e?(j.state.lastType=j.marked="operator",j.stream.backUp(j.stream.pos-j.stream.start-1),V(a)):void 0:void 0}function L(e,t){return"quasi"!=e?M():"${"!=t.slice(t.length-2)?V(L):V(H,Q)}function Q(e){if("}"==e)return j.marked="string-2",j.state.tokenize=y,V(L)}function R(e){return b(j.stream,j.state),M("{"==e?U:H)}function X(e){return b(j.stream,j.state),M("{"==e?U:W)}function Y(e,t){if("target"==t)return j.marked="keyword",V(J)}function Z(e,t){if("target"==t)return j.marked="keyword",V(K)}function _(e){return":"==e?V(S,U):M(J,N(";"),S)}function ee(e){if("variable"==e)return j.marked="property",V()}function te(e,t){return"async"==e?(j.marked="property",V(te)):"variable"==e||"keyword"==j.style?(j.marked="property","get"==t||"set"==t?V(re):(u&&j.state.fatArrowAt==j.stream.start&&(r=j.stream.match(/^\s*:\s*/,!1))&&(j.state.fatArrowAt=j.stream.pos+r[0].length),V(ne))):"number"==e||"string"==e?(j.marked=c?"property":j.style+" property",V(ne)):"jsonld-keyword"==e?V(ne):u&&z(t)?(j.marked="keyword",V(te)):"["==e?V(H,ce,N("]"),ne):"spread"==e?V(W,ne):"*"==t?(j.marked="keyword",V(te)):":"==e?M(ne):void 0;var r}function re(e){return"variable"!=e?M(ne):(j.marked="property",V(Te))}function ne(e){return":"==e?V(W):"("==e?M(Te):void 0}function ae(e,t,r){function n(a,i){if(r?r.indexOf(a)>-1:","==a){var o=j.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),V(function(r,n){return r==t||n==t?M():M(e)},n)}return a==t||i==t?V():V(N(t))}return function(r,a){return r==t||a==t?V():M(e,n)}}function ie(e,t,r){for(var n=3;n<arguments.length;n++)j.cc.push(arguments[n]);return V(P(t,r),ae(e,t),S)}function oe(e){return"}"==e?V():M(U,oe)}function ce(e,t){if(u){if(":"==e)return V(le);if("?"==t)return V(ce)}}function se(e){if(u&&":"==e)return j.stream.match(/^\s*\w+\s+is\b/,!1)?V(H,ue,le):V(le)}function ue(e,t){if("is"==t)return j.marked="keyword",V()}function le(e,t){return"keyof"==t||"typeof"==t?(j.marked="keyword",V("keyof"==t?le:W)):"variable"==e||"void"==t?(j.marked="type",V(me)):"string"==e||"number"==e||"atom"==e?V(me):"["==e?V(P("]"),ae(le,"]",","),S,me):"{"==e?V(P("}"),ae(de,"}",",;"),S,me):"("==e?V(ae(pe,")"),fe):"<"==e?V(ae(le,">"),le):void 0}function fe(e){if("=>"==e)return V(le)}function de(e,t){return"variable"==e||"keyword"==j.style?(j.marked="property",V(de)):"?"==t?V(de):":"==e?V(le):"["==e?V(H,ce,N("]"),de):void 0}function pe(e,t){return"variable"==e&&j.stream.match(/^\s*[?:]/,!1)||"?"==t?V(pe):":"==e?V(le):M(le)}function me(e,t){return"<"==t?V(P(">"),ae(le,">"),S,me):"|"==t||"."==e||"&"==t?V(le):"["==e?V(N("]"),me):"extends"==t||"implements"==t?(j.marked="keyword",V(le)):void 0}function ve(e,t){if("<"==t)return V(P(">"),ae(le,">"),S,me)}function ke(){return M(le,ye)}function ye(e,t){if("="==t)return V(le)}function we(e,t){return"enum"==t?(j.marked="keyword",V(Je)):M(be,ce,ge,je)}function be(e,t){return u&&z(t)?(j.marked="keyword",V(be)):"variable"==e?(E(t),V()):"spread"==e?V(be):"["==e?ie(he,"]"):"{"==e?ie(xe,"}"):void 0}function xe(e,t){return"variable"!=e||j.stream.match(/^\s*:/,!1)?("variable"==e&&(j.marked="property"),"spread"==e?V(be):"}"==e?M():"["==e?V(H,N("]"),N(":"),xe):V(N(":"),be,ge)):(E(t),V(ge))}function he(){return M(be,ge)}function ge(e,t){if("="==t)return V(W)}function je(e){if(","==e)return V(we)}function Me(e,t){if("keyword b"==e&&"else"==t)return V(P("form","else"),U,S)}function Ve(e,t){return"await"==t?V(Ve):"("==e?V(P(")"),Ae,N(")"),S):void 0}function Ae(e){return"var"==e?V(we,N(";"),ze):";"==e?V(ze):"variable"==e?V(Ee):M(H,N(";"),ze)}function Ee(e,t){return"in"==t||"of"==t?(j.marked="keyword",V(H)):V(J,ze)}function ze(e,t){return";"==e?V(Ie):"in"==t||"of"==t?(j.marked="keyword",V(H)):M(H,N(";"),Ie)}function Ie(e){")"!=e&&V(H)}function Te(e,t){return"*"==t?(j.marked="keyword",V(Te)):"variable"==e?(E(t),V(Te)):"("==e?V(C,P(")"),ae($e,")"),S,se,U,O):u&&"<"==t?V(P(">"),ae(ke,">"),S,Te):void 0}function $e(e,t){return"@"==t&&V(H,$e),"spread"==e?V($e):u&&z(t)?(j.marked="keyword",V($e)):M(be,ce,ge)}function Ce(e,t){return"variable"==e?qe(e,t):Oe(e,t)}function qe(e,t){if("variable"==e)return E(t),V(Oe)}function Oe(e,t){return"<"==t?V(P(">"),ae(ke,">"),S,Oe):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(j.marked="keyword"),V(u?le:H,Oe)):"{"==e?V(P("}"),Pe,S):void 0}function Pe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&z(t))&&j.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(j.marked="keyword",V(Pe)):"variable"==e||"keyword"==j.style?(j.marked="property",V(u?Se:Te,Pe)):"["==e?V(H,ce,N("]"),u?Se:Te,Pe):"*"==t?(j.marked="keyword",V(Pe)):";"==e?V(Pe):"}"==e?V():"@"==t?V(H,Pe):void 0}function Se(e,t){return"?"==t?V(Se):":"==e?V(le,ge):"="==t?V(W):M(Te)}function Ne(e,t){return"*"==t?(j.marked="keyword",V(Fe,N(";"))):"default"==t?(j.marked="keyword",V(H,N(";"))):"{"==e?V(ae(Ue,"}"),Fe,N(";")):M(U)}function Ue(e,t){return"as"==t?(j.marked="keyword",V(N("variable"))):"variable"==e?M(W,Ue):void 0}function Be(e){return"string"==e?V():"("==e?M(H):M(He,We,Fe)}function He(e,t){return"{"==e?ie(He,"}"):("variable"==e&&E(t),"*"==t&&(j.marked="keyword"),V(De))}function We(e){if(","==e)return V(He,We)}function De(e,t){if("as"==t)return j.marked="keyword",V(He)}function Fe(e,t){if("from"==t)return j.marked="keyword",V(H)}function Ge(e){return"]"==e?V():M(ae(W,"]"))}function Je(){return M(P("form"),be,N("{"),P("}"),ae(Ke,"}"),S,S)}function Ke(){return M(be,ge)}function Le(e,t,r){return t.tokenize==v&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return O.lex=!0,S.lex=!0,{startState:function(e){var t={tokenize:v,lastType:"sof",cc:[],lexical:new h((e||0)-i,0,"block",!1),localVars:r.localVars,context:r.localVars&&new I(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=k&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=a&&"--"!=a?n:"incdec",function(e,t,r,n,a){var i=e.cc;for(j.state=e,j.stream=a,j.marked=null,j.cc=i,j.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((i.length?i.pop():s?H:U)(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return j.marked?j.marked:"variable"==r&&g(e,n)?"variable-2":t}}(t,r,n,a,e))},indent:function(t,n){if(t.tokenize==k)return e.Pass;if(t.tokenize!=v)return 0;var a,c=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var u=t.cc.length-1;u>=0;--u){var l=t.cc[u];if(l==S)s=s.prev;else if(l!=Me)break}for(;("stat"==s.type||"form"==s.type)&&("}"==c||(a=t.cc[t.cc.length-1])&&(a==J||a==K)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;o&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var f=s.type,p=c==f;return"vardef"==f?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==f&&"{"==c?s.indented:"form"==f?s.indented+i:"stat"==f?s.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,n)?o||i:0):"switch"!=s.info||p||0==r.doubleIndentSwitch?s.align?s.column+(p?0:1):s.indented+(p?0:i):s.indented+(/^(?:case|default)\b/.test(n)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:c,jsonMode:s,expressionAllowed:Le,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=H&&t!=W||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}); +},{"../../lib/codemirror":"e7zg"}],"Focm":[function(require,module,exports) { +"use strict";var e=require("./src/Main.elm"),t=require("@mapbox/mapbox-gl-style-spec"),r=o(require("@mapbox/mapbox-gl-style-spec/migrate/v9")),n=o(require("codemirror/lib/codemirror.js"));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),e}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?a(e):t}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function p(e){var t="function"==typeof Map?new Map:void 0;return(p=function(e){if(null===e||!h(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return y(e,arguments,b(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),m(r,e)})(e)}function d(){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(e){return!1}}function y(e,t,r){return(y=d()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&m(o,r.prototype),o}).apply(null,arguments)}function h(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}require("codemirror/lib/codemirror.css"),require("codemirror/theme/base16-light.css"),require("codemirror/mode/elm/elm.js"),require("codemirror/mode/javascript/javascript.js");var _=e.Elm.Main.init({});customElements.define("code-editor",function(e){function t(){var e;return u(this,t),(e=s(this,b(t).call(this)))._editorValue="",e}return f(t,p(HTMLElement)),l(t,[{key:"connectedCallback",value:function(){var e=this;this._editor=(0,n.default)(this,{identUnit:4,mode:this._mode,lineNumbers:!0,value:this._editorValue,readOnly:this._readonly,lineWrapping:!0}),this._editor.on("changes",function(){e._editorValue=e._editor.getValue(),console.log("changes",e._editorValue),e.dispatchEvent(new CustomEvent("editorChanged",{detail:e._editorValue}))});var t=this.getBoundingClientRect(),r=t.width,o=t.height;this._editor.setSize(r,o)}},{key:"editorValue",get:function(){return this._editorValue},set:function(e){this._editorValue!==e&&(this._editorValue=e,this._editor&&this._editor.setValue(e))}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=e,this._editor&&this._editor.setOption("readonly",e)}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._editor&&this._editor.setOption("mode",e)}}]),t}()),_.ports.requestStyleUpgrade.subscribe(function(e){try{var n=(0,r.default)((0,t.migrate)(JSON.parse(e)));_.ports.styleUpgradeComplete.send({type:"Ok",result:n})}catch(o){_.ports.styleUpgradeComplete.send({type:"Err",error:o})}}); +},{"./src/Main.elm":"3oS9","@mapbox/mapbox-gl-style-spec":"WCBj","@mapbox/mapbox-gl-style-spec/migrate/v9":"Ldbb","codemirror/lib/codemirror.js":"e7zg","codemirror/lib/codemirror.css":"5Uxn","codemirror/theme/base16-light.css":"5Uxn","codemirror/mode/elm/elm.js":"BaoT","codemirror/mode/javascript/javascript.js":"iOBI"}]},{},["Focm"], null) +//# sourceMappingURL=style-generator.3de3c5f3.map
\ No newline at end of file |